@kabmo-labs/kabmo 0.32.0 → 0.32.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 (224) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +308 -308
  3. package/dist/client/static/js/{CsvGrid-amafmq3z.js → CsvGrid-4gx0jevc.js} +2 -2
  4. package/dist/client/static/js/{DocxView-851ps9t0.js → DocxView-0667nr8h.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-kw1vy3r2.js → DrawioView-522v0d0r.js} +2 -2
  6. package/dist/client/static/js/ImageView-t8xp60hm.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-xjnveecv.js +2 -0
  8. package/dist/client/static/js/{Modal-f8x3j3be.js → Modal-k2jr9hc4.js} +14 -14
  9. package/dist/client/static/js/{PdfView-f5jkm0rs.js → PdfView-3fx172xh.js} +1 -1
  10. package/dist/client/static/js/SessionsView-n3agmf5t.js +1 -0
  11. package/dist/client/static/js/{SheetView-23zxy30b.js → SheetView-nmrdb1b8.js} +23 -23
  12. package/dist/client/static/js/{SvgPreview-c341y50e.js → SvgPreview-0xsc6xam.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-2dc3mpk6.js → abnfDiagram-O67JEVCF-jj31rs62.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-1y9zvsyt.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7jmrr5ja.js → architectureDiagram-NJMV4G6O-ay3yr7pf.js} +3 -3
  16. package/dist/client/static/js/{astro-sjtf954j.js → astro-qgx1r159.js} +1 -1
  17. package/dist/client/static/js/bash-m0qjsyy0.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-jrk2m0ea.js → blockDiagram-BEXU5L5S-4x33e16k.js} +3 -3
  19. package/dist/client/static/js/c-wkgxb1t1.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-48cyncjd.js → c4Diagram-YGBWAQC7-dtb81cgz.js} +2 -2
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-gm7jt1cd.js → classDiagram-v2-NBCMYWYE-vk5a2n9w.js} +3 -3
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-g0g3z0xp.js → cose-bilkent-JH36ORCC-6rbjbe19.js} +1 -1
  23. package/dist/client/static/js/cpp-y0t6mynx.js +1 -0
  24. package/dist/client/static/js/css-t4ngafan.js +1 -0
  25. package/dist/client/static/js/cynefin-OW5HDTMX-k2188qcq.js +1 -0
  26. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-6vjde6am.js → cynefinDiagram-VND7K2PF-vyjksedr.js} +2 -2
  27. package/dist/client/static/js/{dagre-6A5THRUB-q6k8bx1j.js → dagre-6A5THRUB-7hey38z5.js} +2 -2
  28. package/dist/client/static/js/{diagram-22UHCM2B-87cmze2n.js → diagram-22UHCM2B-aes06jde.js} +11 -11
  29. package/dist/client/static/js/{diagram-3UASUU5V-1ejbr2p4.js → diagram-3UASUU5V-3cfkgm3x.js} +1 -1
  30. package/dist/client/static/js/{diagram-ATOU4E4O-vaw1r6k2.js → diagram-ATOU4E4O-z8mfhwpy.js} +3 -3
  31. package/dist/client/static/js/{diagram-CDSNMT55-gxm9zv7d.js → diagram-CDSNMT55-t4821ctz.js} +2 -2
  32. package/dist/client/static/js/{diagram-MLGK6HIB-x010xswm.js → diagram-MLGK6HIB-23yxbfrx.js} +1 -1
  33. package/dist/client/static/js/{diagram-MPIPVDR6-qtcq7e6c.js → diagram-MPIPVDR6-chhtf7v0.js} +2 -2
  34. package/dist/client/static/js/{dockerfile-k5xbramm.js → dockerfile-5b87ghm7.js} +1 -1
  35. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-nwwbasfh.js → ebnfDiagram-ZINNZB2B-9jejcvfr.js} +1 -1
  36. package/dist/client/static/js/{elk-276RUBZZ-xcp7thax.js → elk-276RUBZZ-xhhtkf58.js} +1 -1
  37. package/dist/client/static/js/{erDiagram-OPXOYQCR-xj1tp716.js → erDiagram-OPXOYQCR-mt2apjjb.js} +5 -5
  38. package/dist/client/static/js/{erlang-rz1g9mxy.js → erlang-6m6tpt72.js} +1 -1
  39. package/dist/client/static/js/eventmodeling-NTZA5JFV-pdr0qn0n.js +1 -0
  40. package/dist/client/static/js/flowDiagram-KWPJA3E3-zvz0mxne.js +1 -0
  41. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-f7q96bea.js → ganttDiagram-FUAMR5RP-8cm7a29w.js} +3 -3
  42. package/dist/client/static/js/gitGraph-4MIJSDKK-wmqf046s.js +1 -0
  43. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-1rydkyq9.js → gitGraphDiagram-X574FWY7-5s0gbnx2.js} +2 -2
  44. package/dist/client/static/js/graphql-692h0n2x.js +1 -0
  45. package/dist/client/static/js/{index-52bgxh6f.js → index-2gfc25tq.js} +1 -1
  46. package/dist/client/static/js/{index-x64kqgen.js → index-2xj14800.js} +2 -2
  47. package/dist/client/static/js/{index-8m3q2zpb.js → index-360d7j0d.js} +1 -1
  48. package/dist/client/static/js/{index-123e8tqq.js → index-3vhznzgr.js} +1 -1
  49. package/dist/client/static/js/{index-y139vc12.js → index-4s8ttfxj.js} +175 -175
  50. package/dist/client/static/js/{index-9nbxb421.js → index-532btjmp.js} +2 -2
  51. package/dist/client/static/js/{index-c8jzx6b0.js → index-59jb53v3.js} +1 -1
  52. package/dist/client/static/js/{index-2t2tnc3x.js → index-5x95n3hx.js} +1 -1
  53. package/dist/client/static/js/{index-f63y3mjj.js → index-5y7c62sm.js} +4 -4
  54. package/dist/client/static/js/index-61tm0v57.js +1 -0
  55. package/dist/client/static/js/{index-fc2j6bq2.js → index-629kfbcb.js} +2 -2
  56. package/dist/client/static/js/{index-0n9c85ke.js → index-6q80csr0.js} +2 -2
  57. package/dist/client/static/js/{index-6sdctwv2.js → index-7fdp9c7m.js} +2 -2
  58. package/dist/client/static/js/index-7n68yx6m.js +2 -0
  59. package/dist/client/static/js/{index-pe9j88d4.js → index-9sd0vjmh.js} +2 -2
  60. package/dist/client/static/js/{index-m6wwc5h6.js → index-9t82sx0w.js} +2 -2
  61. package/dist/client/static/js/{index-xa7nrnda.js → index-a0bdavdr.js} +2 -2
  62. package/dist/client/static/js/{index-xpf2ra60.js → index-a6k2hqke.js} +1 -1
  63. package/dist/client/static/js/{index-e26rd868.js → index-a733k69t.js} +2 -2
  64. package/dist/client/static/js/{index-31jrebvn.js → index-ay34b398.js} +6 -6
  65. package/dist/client/static/js/{index-w4re5r8w.js → index-bbggh3f8.js} +2 -2
  66. package/dist/client/static/js/{index-73xfkyea.js → index-brj8qwa6.js} +2 -2
  67. package/dist/client/static/js/{index-fmxn1rzs.js → index-c0x6s6f7.js} +2 -2
  68. package/dist/client/static/js/{index-vmvcse63.js → index-c93sp4yh.js} +1 -1
  69. package/dist/client/static/js/{index-e7a3fkvv.js → index-dnp07j57.js} +1 -1
  70. package/dist/client/static/js/{index-pkyrkkbt.js → index-dq1kdt03.js} +2 -2
  71. package/dist/client/static/js/{index-ggaqh9rt.js → index-dt7e1328.js} +2 -2
  72. package/dist/client/static/js/{index-hkq0y3pn.js → index-ehcpzk5b.js} +2 -2
  73. package/dist/client/static/js/{index-tr8754r0.js → index-ejgd8w3s.js} +45 -45
  74. package/dist/client/static/js/{index-0a1ekhqf.js → index-fdbfzshx.js} +2 -2
  75. package/dist/client/static/js/{index-c20a46ww.js → index-g33knza2.js} +2 -2
  76. package/dist/client/static/js/{index-hhm62nfj.js → index-gbfg0anm.js} +2 -2
  77. package/dist/client/static/js/{index-2n5wy1sh.js → index-h06bcfds.js} +1 -1
  78. package/dist/client/static/js/{index-22jaxtz1.js → index-h7pn9qw6.js} +2 -2
  79. package/dist/client/static/js/{index-qmh0h87h.js → index-hc2jmzpx.js} +48 -48
  80. package/dist/client/static/js/{index-nsrnyqcm.js → index-jppt5mgc.js} +2 -2
  81. package/dist/client/static/js/{index-deex10rz.js → index-jz9fpznk.js} +5 -5
  82. package/dist/client/static/js/{index-r416e9dt.js → index-kg86e3sy.js} +11 -11
  83. package/dist/client/static/js/{index-e6rar25v.js → index-kpspnztv.js} +2 -2
  84. package/dist/client/static/js/index-nmmxb4va.js +2 -0
  85. package/dist/client/static/js/{index-zca66d5d.js → index-p7btwjvj.js} +3 -3
  86. package/dist/client/static/js/{index-gvwqjpcr.js → index-pf5sbesf.js} +2 -2
  87. package/dist/client/static/js/{index-ynqnbvn2.js → index-pf7syd7t.js} +3 -3
  88. package/dist/client/static/js/{index-3anc30zh.js → index-qkscve6n.js} +2 -2
  89. package/dist/client/static/js/index-qnwqaczk.js +4 -0
  90. package/dist/client/static/js/{index-5zd1jx9r.js → index-rg8jpbsw.js} +2 -2
  91. package/dist/client/static/js/{index-hyry1n8x.js → index-sa9cp6km.js} +2 -2
  92. package/dist/client/static/js/{index-f519m6s3.js → index-vd0e25p0.js} +1 -1
  93. package/dist/client/static/js/{index-cwaz6geq.js → index-vtbbfwx0.js} +2 -2
  94. package/dist/client/static/js/{index-14wppnkx.js → index-wzma5n54.js} +2 -2
  95. package/dist/client/static/js/{index-s9vp6p70.js → index-x07kp3jz.js} +2 -2
  96. package/dist/client/static/js/{index-8a3tmm1h.js → index-xj9649ac.js} +7 -7
  97. package/dist/client/static/js/{index-vrbcj11n.js → index-xya34x4v.js} +2 -2
  98. package/dist/client/static/js/{index-yvcpdk5f.js → index-ye3sr7db.js} +2 -2
  99. package/dist/client/static/js/{index-w5131mtt.js → index-z4v1xmh1.js} +2 -2
  100. package/dist/client/static/js/{index-0g25yrc0.js → index-z5s27s26.js} +1 -1
  101. package/dist/client/static/js/info-A6RAGUB7-zg3twte6.js +1 -0
  102. package/dist/client/static/js/{infoDiagram-VRGFBTTK-ptg07tp2.js → infoDiagram-VRGFBTTK-3w1yz32c.js} +1 -1
  103. package/dist/client/static/js/ini-cg0a5wm3.js +1 -0
  104. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-bdk2dkf5.js → ishikawaDiagram-OU5B5YK6-ckt471dy.js} +1 -1
  105. package/dist/client/static/js/java-vcck089n.js +1 -0
  106. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-kez0ha4c.js → journeyDiagram-ZHPQQLJL-kfvn4w7e.js} +2 -2
  107. package/dist/client/static/js/json-j5q8nt57.js +1 -0
  108. package/dist/client/static/js/jsx-ht9zyzwa.js +1 -0
  109. package/dist/client/static/js/{julia-nmr85k8z.js → julia-0j0gsjvc.js} +1 -1
  110. package/dist/client/static/js/{kanban-definition-PNTS6WVX-dhzp3qg5.js → kanban-definition-PNTS6WVX-0q36cm83.js} +3 -3
  111. package/dist/client/static/js/lua-ke895s2q.js +1 -0
  112. package/dist/client/static/js/markdown-gwmsh53r.js +1 -0
  113. package/dist/client/static/js/{mermaid.core-h7wttbss.js → mermaid.core-b1ssa824.js} +7 -7
  114. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-tq5dd1em.js → mindmap-definition-NLK3R4M7-e2ym5en8.js} +4 -4
  115. package/dist/client/static/js/one-dark-pro-4geyzhjj.js +1 -0
  116. package/dist/client/static/js/one-light-tqssjm9t.js +1 -0
  117. package/dist/client/static/js/packet-AYTQ26CC-3pav51g0.js +1 -0
  118. package/dist/client/static/js/{pegDiagram-GJSIUBJH-e5hrdfzv.js → pegDiagram-GJSIUBJH-t8bbdyhe.js} +1 -1
  119. package/dist/client/static/js/{perl-prxcva8r.js → perl-7n7e9ncg.js} +1 -1
  120. package/dist/client/static/js/{php-m9kcctzs.js → php-32vy69vd.js} +1 -1
  121. package/dist/client/static/js/pie-WAS4IAKB-wqfh7zdk.js +1 -0
  122. package/dist/client/static/js/{pieDiagram-5QR66LMP-axvbvnz8.js → pieDiagram-5QR66LMP-envv4brj.js} +2 -2
  123. package/dist/client/static/js/properties-mzvvbqg5.js +1 -0
  124. package/dist/client/static/js/python-3w64wsyd.js +1 -0
  125. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-wtn28cfm.js → quadrantDiagram-O4NWA36T-72rk137a.js} +3 -3
  126. package/dist/client/static/js/r-32re2zwb.js +1 -0
  127. package/dist/client/static/js/radar-RG4KPBEZ-w7qjdr2g.js +1 -0
  128. package/dist/client/static/js/railroad-74A4TZTK-rhr99kkj.js +1 -0
  129. package/dist/client/static/js/railroad-abnf-HS5TGJTU-c4jeea3m.js +1 -0
  130. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-x2ee66ex.js +1 -0
  131. package/dist/client/static/js/railroad-peg-WCYAUIDC-yw8wjfwg.js +1 -0
  132. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-avjkq945.js → railroadDiagram-XR7U4H2S-1ej0f5hr.js} +1 -1
  133. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-bntx7r6q.js → requirementDiagram-PLB6GJNP-rvdaknpd.js} +3 -3
  134. package/dist/client/static/js/{ruby-t06c0e7g.js → ruby-5ty7fys7.js} +1 -1
  135. package/dist/client/static/js/{rust-6gqjxyf0.js → rust-2geezrcs.js} +1 -1
  136. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ps8nkdm2.js → sankeyDiagram-IPEJSGJF-nxvhtdaw.js} +3 -3
  137. package/dist/client/static/js/{sass-gsbyn3wh.js → sass-mey5150f.js} +1 -1
  138. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-3ckf1q6z.js → sequenceDiagram-PO4LG4MO-n5cn5qrt.js} +6 -6
  139. package/dist/client/static/js/{sizeCapture-INFHLROL-akvcr1x7.js → sizeCapture-INFHLROL-r074kj7s.js} +1 -1
  140. package/dist/client/static/js/sql-g8wcshpc.js +1 -0
  141. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-c82914fz.js → stateDiagram-v2-GCMORJYK-vxghxdb0.js} +3 -3
  142. package/dist/client/static/js/{svelte-j54gfrvq.js → svelte-3ewx0hzx.js} +1 -1
  143. package/dist/client/static/js/{swimlanes-2SLR337P-scgdefh4.js → swimlanes-2SLR337P-qkkv894p.js} +1 -1
  144. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y81h9n27.js +8 -0
  145. package/dist/client/static/js/{timeline-definition-EJHVYXUP-z2ha1rhq.js → timeline-definition-EJHVYXUP-5tbq4ex2.js} +2 -2
  146. package/dist/client/static/js/treeView-Q6P3EWNA-ekz05ccs.js +1 -0
  147. package/dist/client/static/js/treemap-WGGIJYW6-aq6qymjr.js +1 -0
  148. package/dist/client/static/js/tsx-0p183w2f.js +1 -0
  149. package/dist/client/static/js/typescript-t9a5jyvv.js +1 -0
  150. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-3wdmrfmk.js → usecaseDiagram-POWQR4AR-6p8hf0b7.js} +15 -15
  151. package/dist/client/static/js/{vennDiagram-UO4OBE2U-7m5tatzv.js → vennDiagram-UO4OBE2U-7k5jsxf9.js} +1 -1
  152. package/dist/client/static/js/{vue-y8bb5f3h.js → vue-06rdf4wh.js} +1 -1
  153. package/dist/client/static/js/wardley-WFR3VGLG-z34tj4y3.js +1 -0
  154. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-55ps9s4z.js → wardleyDiagram-VNRHLVJA-km2x4er8.js} +3 -3
  155. package/dist/client/static/js/xml-81hxjjt4.js +1 -0
  156. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-8bsjtm4t.js → xychartDiagram-PMCCYNJV-kr3sgr4m.js} +2 -2
  157. package/dist/client/static/js/yaml-yssayv8a.js +1 -0
  158. package/package.json +1 -1
  159. package/src/client/components/common/session-actions-menu/index.tsx +6 -1
  160. package/src/client/components/layout/session-sidebar/SessionsView.tsx +20 -33
  161. package/src/client/components/mobile/LayoutWrapper.tsx +16 -26
  162. package/src/client/components/mobile/worktree-session.ts +4 -1
  163. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +16 -15
  164. package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +11 -0
  165. package/src/client/hooks/chat/btw/mode.ts +5 -1
  166. package/src/client/hooks/chat/omp/session-sidebar-controller.ts +9 -3
  167. package/src/client/hooks/chat/timeline/new-chat.ts +4 -1
  168. package/src/client/hooks/chat/timeline/pending-dispatch.ts +6 -10
  169. package/src/client/hooks/chat/waiting/dispatch.ts +4 -1
  170. package/src/client/hooks/workspace/batch-delete-run.ts +5 -1
  171. package/src/client/hooks/workspace/session-delete.ts +5 -1
  172. package/src/client/lib/router/branch-params.test.ts +62 -0
  173. package/src/client/lib/router/branch-params.ts +48 -0
  174. package/src/server/lib/assets/shell-settings.server.test.ts +35 -0
  175. package/src/server/lib/assets/shell-settings.server.ts +33 -0
  176. package/src/server/lib/realtime/topics/peer-relay.server.test.ts +1 -11
  177. package/src/server/plugins/ssr.ts +20 -8
  178. package/src/test-support/peer-harness.ts +13 -5
  179. package/dist/client/static/js/ImageView-ksx9bbct.js +0 -1
  180. package/dist/client/static/js/LayoutWrapper-9ftz050x.js +0 -2
  181. package/dist/client/static/js/SessionsView-wzdf1cp6.js +0 -1
  182. package/dist/client/static/js/architecture-7GRP2DOG-4wsd6vk0.js +0 -1
  183. package/dist/client/static/js/bash-h6pkqvth.js +0 -1
  184. package/dist/client/static/js/c-thbdzmwv.js +0 -1
  185. package/dist/client/static/js/cpp-r1za1kke.js +0 -1
  186. package/dist/client/static/js/css-qsv4vvke.js +0 -1
  187. package/dist/client/static/js/cynefin-OW5HDTMX-eycwde8c.js +0 -1
  188. package/dist/client/static/js/eventmodeling-NTZA5JFV-srqbnmey.js +0 -1
  189. package/dist/client/static/js/flowDiagram-KWPJA3E3-yj98317w.js +0 -1
  190. package/dist/client/static/js/gitGraph-4MIJSDKK-5jcrvn94.js +0 -1
  191. package/dist/client/static/js/graphql-275pg7ya.js +0 -1
  192. package/dist/client/static/js/index-b08zd4eq.js +0 -1
  193. package/dist/client/static/js/index-g0pkzanm.js +0 -2
  194. package/dist/client/static/js/index-ga2xdef3.js +0 -2
  195. package/dist/client/static/js/index-xzfsaqyz.js +0 -4
  196. package/dist/client/static/js/info-A6RAGUB7-mbt0ryx5.js +0 -1
  197. package/dist/client/static/js/ini-jqdrx98c.js +0 -1
  198. package/dist/client/static/js/java-70zqqrkr.js +0 -1
  199. package/dist/client/static/js/json-kxk8gfet.js +0 -1
  200. package/dist/client/static/js/jsx-h1035eqk.js +0 -1
  201. package/dist/client/static/js/lua-j2356waf.js +0 -1
  202. package/dist/client/static/js/markdown-ffw6rgk6.js +0 -1
  203. package/dist/client/static/js/one-dark-pro-8acf6cn2.js +0 -1
  204. package/dist/client/static/js/one-light-ysc1knem.js +0 -1
  205. package/dist/client/static/js/packet-AYTQ26CC-a5yw789s.js +0 -1
  206. package/dist/client/static/js/pie-WAS4IAKB-x0y4v4r2.js +0 -1
  207. package/dist/client/static/js/properties-55mrarxr.js +0 -1
  208. package/dist/client/static/js/python-dhypc3j4.js +0 -1
  209. package/dist/client/static/js/r-6b8dt1wp.js +0 -1
  210. package/dist/client/static/js/radar-RG4KPBEZ-trrc3ta1.js +0 -1
  211. package/dist/client/static/js/railroad-74A4TZTK-dxgvx21w.js +0 -1
  212. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rbgkd8sk.js +0 -1
  213. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-exgw7j47.js +0 -1
  214. package/dist/client/static/js/railroad-peg-WCYAUIDC-28tpamzk.js +0 -1
  215. package/dist/client/static/js/sql-9dq913c8.js +0 -1
  216. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-0x2ashav.js +0 -8
  217. package/dist/client/static/js/treeView-Q6P3EWNA-1a00b6kc.js +0 -1
  218. package/dist/client/static/js/treemap-WGGIJYW6-2q4f2f7m.js +0 -1
  219. package/dist/client/static/js/tsx-wh5xgm7f.js +0 -1
  220. package/dist/client/static/js/typescript-ge85req5.js +0 -1
  221. package/dist/client/static/js/wardley-WFR3VGLG-x9v91the.js +0 -1
  222. package/dist/client/static/js/xml-7bgz40qa.js +0 -1
  223. package/dist/client/static/js/yaml-4ht9416k.js +0 -1
  224. package/src/client/components/layout/session-sidebar/new-session-context.test.ts +0 -55
@@ -1,9 +1,9 @@
1
- import{t,ei,l,Ce,A,g,E,Nr,Md,R,p,h,Rr,ue,kn,Ye,zn}from"./index-qmh0h87h.js";var lt=function(){var r=t(function(w,a,f,d){for(f=f||{},d=w.length;d--;f[w[d]]=a);return f},"o"),e=[6,11,13,14,15,17,19,20,23,24],s=[1,12],i=[1,13],n=[1,14],u=[1,15],c=[1,16],o=[1,19],b=[1,20],k={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(a,f,d,m,v,y,N){var S=y.length-1;switch(v){case 1:return y[S-1];case 3:m.setDirection("LR");break;case 4:m.setDirection("TD");break;case 5:this.$=[];break;case 6:y[S-1].push(y[S]),this.$=y[S-1];break;case 7:case 8:this.$=y[S];break;case 9:case 10:this.$=[];break;case 11:m.getCommonDb().setDiagramTitle(y[S].substr(6)),this.$=y[S].substr(6);break;case 12:this.$=y[S].trim(),m.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=y[S].trim(),m.getCommonDb().setAccDescription(this.$);break;case 15:m.addSection(y[S].substr(8)),this.$=y[S].substr(8);break;case 18:m.addTask(y[S],0,""),this.$=y[S];break;case 19:m.addEvent(y[S].substr(2)),this.$=y[S];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(e,[2,5],{5:6}),r(e,[2,2]),r(e,[2,3]),r(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:i,17:n,19:u,20:c,21:17,22:18,23:o,24:b},r(e,[2,10],{1:[2,1]}),r(e,[2,6]),{12:21,14:s,15:i,17:n,19:u,20:c,21:17,22:18,23:o,24:b},r(e,[2,8]),r(e,[2,9]),r(e,[2,11]),{16:[1,22]},{18:[1,23]},r(e,[2,14]),r(e,[2,15]),r(e,[2,16]),r(e,[2,17]),r(e,[2,18]),r(e,[2,19]),r(e,[2,7]),r(e,[2,12]),r(e,[2,13])],defaultActions:{},parseError:t(function(a,f){if(f.recoverable)this.trace(a);else{var d=Error(a);throw d.hash=f,d}},"parseError"),parse:t(function(a){var f=this,d=[0],m=[],v=[null],y=[],N=this.table,S="",W=0,G=0,D=0,q=2,B=1,O=y.slice.call(arguments,1),H=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(H.setInput(a,F.yy),F.yy.lexer=H,F.yy.parser=this,typeof H.yylloc>"u")H.yylloc={};var J=H.yylloc;y.push(J);var M=H.options&&H.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function T(K){d.length=d.length-2*K,v.length=v.length-K,y.length=y.length-K}t(T,"popStack");function L(){var K=m.pop()||H.lex()||B;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=f.symbols_[K]||K}return K}t(L,"lex");var I,P,V,C,at,tt,j={},et,X,ft,rt;while(!0){if(V=d[d.length-1],this.defaultActions[V])C=this.defaultActions[V];else{if(I===null||typeof I>"u")I=L();C=N[V]&&N[V][I]}if(typeof C>"u"||!C.length||!C[0]){var ot="";rt=[];for(et in N[V])if(this.terminals_[et]&&et>q)rt.push("'"+this.terminals_[et]+"'");if(H.showPosition)ot="Parse error on line "+(W+1)+`:
1
+ import{t,ti,l,Ce,A,g,E,Rr,Pd,R,p,h,Fr,ue,kn,Ye,zn}from"./index-hc2jmzpx.js";var lt=function(){var r=t(function(w,a,f,d){for(f=f||{},d=w.length;d--;f[w[d]]=a);return f},"o"),e=[6,11,13,14,15,17,19,20,23,24],s=[1,12],i=[1,13],n=[1,14],u=[1,15],c=[1,16],o=[1,19],b=[1,20],k={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(a,f,d,m,v,y,N){var S=y.length-1;switch(v){case 1:return y[S-1];case 3:m.setDirection("LR");break;case 4:m.setDirection("TD");break;case 5:this.$=[];break;case 6:y[S-1].push(y[S]),this.$=y[S-1];break;case 7:case 8:this.$=y[S];break;case 9:case 10:this.$=[];break;case 11:m.getCommonDb().setDiagramTitle(y[S].substr(6)),this.$=y[S].substr(6);break;case 12:this.$=y[S].trim(),m.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=y[S].trim(),m.getCommonDb().setAccDescription(this.$);break;case 15:m.addSection(y[S].substr(8)),this.$=y[S].substr(8);break;case 18:m.addTask(y[S],0,""),this.$=y[S];break;case 19:m.addEvent(y[S].substr(2)),this.$=y[S];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},r(e,[2,5],{5:6}),r(e,[2,2]),r(e,[2,3]),r(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:i,17:n,19:u,20:c,21:17,22:18,23:o,24:b},r(e,[2,10],{1:[2,1]}),r(e,[2,6]),{12:21,14:s,15:i,17:n,19:u,20:c,21:17,22:18,23:o,24:b},r(e,[2,8]),r(e,[2,9]),r(e,[2,11]),{16:[1,22]},{18:[1,23]},r(e,[2,14]),r(e,[2,15]),r(e,[2,16]),r(e,[2,17]),r(e,[2,18]),r(e,[2,19]),r(e,[2,7]),r(e,[2,12]),r(e,[2,13])],defaultActions:{},parseError:t(function(a,f){if(f.recoverable)this.trace(a);else{var d=Error(a);throw d.hash=f,d}},"parseError"),parse:t(function(a){var f=this,d=[0],m=[],v=[null],y=[],N=this.table,S="",W=0,G=0,D=0,q=2,B=1,O=y.slice.call(arguments,1),H=Object.create(this.lexer),F={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))F.yy[U]=this.yy[U];if(H.setInput(a,F.yy),F.yy.lexer=H,F.yy.parser=this,typeof H.yylloc>"u")H.yylloc={};var J=H.yylloc;y.push(J);var M=H.options&&H.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function T(K){d.length=d.length-2*K,v.length=v.length-K,y.length=y.length-K}t(T,"popStack");function L(){var K=m.pop()||H.lex()||B;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=f.symbols_[K]||K}return K}t(L,"lex");var I,P,V,C,at,tt,j={},et,X,ft,rt;while(!0){if(V=d[d.length-1],this.defaultActions[V])C=this.defaultActions[V];else{if(I===null||typeof I>"u")I=L();C=N[V]&&N[V][I]}if(typeof C>"u"||!C.length||!C[0]){var ot="";rt=[];for(et in N[V])if(this.terminals_[et]&&et>q)rt.push("'"+this.terminals_[et]+"'");if(H.showPosition)ot="Parse error on line "+(W+1)+`:
2
2
  `+H.showPosition()+`
3
3
  Expecting `+rt.join(", ")+", got '"+(this.terminals_[I]||I)+"'";else ot="Parse error on line "+(W+1)+": Unexpected "+(I==B?"end of input":"'"+(this.terminals_[I]||I)+"'");this.parseError(ot,{text:H.match,token:this.terminals_[I]||I,line:H.yylineno,loc:J,expected:rt})}if(C[0]instanceof Array&&C.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+I);switch(C[0]){case 1:if(d.push(I),v.push(H.yytext),y.push(H.yylloc),d.push(C[1]),I=null,!P){if(G=H.yyleng,S=H.yytext,W=H.yylineno,J=H.yylloc,D>0)D--}else I=P,P=null;break;case 2:if(X=this.productions_[C[1]][1],j.$=v[v.length-X],j._$={first_line:y[y.length-(X||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(X||1)].first_column,last_column:y[y.length-1].last_column},M)j._$.range=[y[y.length-(X||1)].range[0],y[y.length-1].range[1]];if(tt=this.performAction.apply(j,[S,G,W,F.yy,C[1],v,y].concat(O)),typeof tt<"u")return tt;if(X)d=d.slice(0,-1*X*2),v=v.slice(0,-1*X),y=y.slice(0,-1*X);d.push(this.productions_[C[1]][0]),v.push(j.$),y.push(j._$),ft=N[d[d.length-2]][d[d.length-1]],d.push(ft);break;case 3:return!0}}return!0},"parse")},_=function(){var w={EOF:1,parseError:t(function(f,d){if(this.yy.parser)this.yy.parser.parseError(f,d);else throw Error(f)},"parseError"),setInput:t(function(a,f){if(this.yy=f||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:t(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var f=a.match(/(?:\r\n?|\n).*/g);if(f)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),a},"input"),unput:t(function(a){var f=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var m=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1)this.yylineno-=d.length-1;var v=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===m.length?this.yylloc.first_column:0)+m[m.length-d.length].length-d[0].length:this.yylloc.first_column-f},this.options.ranges)this.yylloc.range=[v[0],v[0]+this.yyleng-f];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:t(function(a){this.unput(this.match.slice(a))},"less"),pastInput:t(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var a=this.match;if(a.length<20)a+=this._input.substr(0,20-a.length);return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var a=this.pastInput(),f=Array(a.length+1).join("-");return a+this.upcomingInput()+`
5
5
  `+f+"^"},"showPosition"),test_match:t(function(a,f){var d,m,v;if(this.options.backtrack_lexer){if(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)v.yylloc.range=this.yylloc.range.slice(0)}if(m=a[0].match(/(?:\r\n?|\n).*/g),m)this.yylineno+=m.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],d=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(d)return d;else if(this._backtrack){for(var y in v)this[y]=v[y];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var a,f,d,m;if(!this._more)this.yytext="",this.match="";var v=this._currentRules();for(var y=0;y<v.length;y++)if(d=this._input.match(this.rules[v[y]]),d&&(!f||d[0].length>f[0].length)){if(f=d,m=y,this.options.backtrack_lexer)if(a=this.test_match(d,v[y]),a!==!1)return a;else if(this._backtrack){f=!1;continue}else return!1;else if(!this.options.flex)break}if(f){if(a=this.test_match(f,v[m]),a!==!1)return a;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var f=this.next();if(f)return f;else return this.lex()},"lex"),begin:t(function(f){this.conditionStack.push(f)},"begin"),popState:t(function(){var f=this.conditionStack.length-1;if(f>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(f){if(f=this.conditionStack.length-1-Math.abs(f||0),f>=0)return this.conditionStack[f];else return"INITIAL"},"topState"),pushState:t(function(f){this.begin(f)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(f,d,m,v){var y=v;switch(m){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/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],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return w}();k.lexer=_;function x(){this.yy={}}return t(x,"Parser"),x.prototype=k,k.Parser=x,new x}();lt.parser=lt;var Vt=lt,vt={};ei(vt,{addEvent:()=>Lt,addSection:()=>$t,addTask:()=>Ht,addTaskOrg:()=>Mt,clear:()=>St,default:()=>Ft,getCommonDb:()=>wt,getDirection:()=>Tt,getSections:()=>Nt,getTasks:()=>It,setDirection:()=>Et});var Q="",_t=0,ht="LR",dt=[],nt=[],Y=[],wt=t(()=>Md,"getCommonDb"),St=t(function(){dt.length=0,nt.length=0,Q="",Y.length=0,ht="LR",R()},"clear"),Et=t(function(r){ht=r},"setDirection"),Tt=t(function(){return ht},"getDirection"),$t=t(function(r){Q=r,dt.push(r)},"addSection"),Nt=t(function(){return dt},"getSections"),It=t(function(){let r=yt(),e=100,s=0;while(!r&&s<e)r=yt(),s++;return nt.push(...Y),nt},"getTasks"),Ht=t(function(r,e,s){let i={id:_t++,section:Q,type:Q,task:r,score:e?e:0,events:s?[s]:[]};Y.push(i)},"addTask"),Lt=t(function(r){Y.find((s)=>s.id===_t-1).events.push(r)},"addEvent"),Mt=t(function(r){let e={section:Q,type:Q,description:r,task:r,classes:[]};nt.push(e)},"addTaskOrg"),yt=t(function(){let r=t(function(s){return Y[s].processed},"compileTask"),e=!0;for(let[s,i]of Y.entries())r(s),e=e&&i.processed;return e},"compileTasks"),Ft={clear:St,getCommonDb:wt,getDirection:Tt,setDirection:Et,addSection:$t,getSections:Nt,getTasks:It,addTask:Ht,addTaskOrg:Mt,addEvent:Lt},At=0,it=t(function(r,e){let s=r.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),s.attr("rx",e.rx),s.attr("ry",e.ry),e.class!==void 0)s.attr("class",e.class);return s},"drawRect"),zt=t(function(r,e){let i=r.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=r.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(b){let k=Rr().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);b.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}t(u,"smile");function c(b){let k=Rr().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);b.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}t(c,"sad");function o(b){b.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),e.score>3)u(n);else if(e.score<3)c(n);else o(n);return i},"drawFace"),Ot=t(function(r,e){let s=r.append("circle");if(s.attr("cx",e.cx),s.attr("cy",e.cy),s.attr("class","actor-"+e.pos),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("r",e.r),s.class!==void 0)s.attr("class",s.class);if(e.title!==void 0)s.append("title").text(e.title);return s},"drawCircle"),Ct=t(function(r,e){let s=e.text.replace(/<br\s*\/?>/gi," "),i=r.append("text");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),e.class!==void 0)i.attr("class",e.class);let n=i.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(s),i},"drawText"),Gt=t(function(r,e){function s(n,u,c,o,b){return n+","+u+" "+(n+c)+","+u+" "+(n+c)+","+(u+o-b)+" "+(n+c-b*1.2)+","+(u+o)+" "+n+","+(u+o)}t(s,"genPoints");let i=r.append("polygon");i.attr("points",s(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+0.5*e.labelMargin,Ct(r,e)},"drawLabel"),Dt=t(function(r,e,s){let i=r.append("g"),n=ut();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=s.width,n.height=s.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,it(i,n),Rt(s)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),ct=-1,Kt=t(function(r,e,s,i){let n=e.x+s.width/2,u=r.append("g");ct++;let c=450;u.append("line").attr("id",i+"-task"+ct).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",c).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),zt(u,{cx:n,cy:300+(5-e.score)*30,score:e.score});let o=ut();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=s.width,o.height=s.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,it(u,o),Rt(s)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},s,e.colour)},"drawTask"),Ut=t(function(r,e){it(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),Xt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),ut=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Rt=function(){function r(n,u,c,o,b,k,_,x){let w=u.append("text").attr("x",c+b/2).attr("y",o+k/2+5).style("font-color",x).style("text-anchor","middle").text(n);i(w,_)}t(r,"byText");function e(n,u,c,o,b,k,_,x,w){let{taskFontSize:a,taskFontFamily:f}=x,d=n.split(/<br\s*\/?>/gi);for(let m=0;m<d.length;m++){let v=m*a-a*(d.length-1)/2,y=u.append("text").attr("x",c+b/2).attr("y",o).attr("fill",w).style("text-anchor","middle").style("font-size",a).style("font-family",f);y.append("tspan").attr("x",c+b/2).attr("dy",v).text(d[m]),y.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(y,_)}}t(e,"byTspan");function s(n,u,c,o,b,k,_,x){let w=u.append("switch"),f=w.append("foreignObject").attr("x",c).attr("y",o).attr("width",b).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");f.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,w,c,o,b,k,_,x),i(f,_)}t(s,"byFo");function i(n,u){for(let c in u)if(c in u)n.attr(c,u[c])}return t(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?s:n.textPlacement==="old"?r:e}}(),Zt=t(function(r,e){At=0,ct=-1,r.append("defs").append("marker").attr("id",e+"-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")},"initGraphics");function pt(r,e){r.each(function(){var s=h(this),i=s.text().split(/(\s+|<br>)/).reverse(),n,u=[],c=1.1,o=s.attr("y"),b=parseFloat(s.attr("dy")),k=s.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",b+"em");for(let _=0;_<i.length;_++)if(n=i[i.length-1-_],u.push(n),k.text(u.join(" ").trim()),k.node().getComputedTextLength()>e||n==="<br>"){if(u.pop(),k.text(u.join(" ").trim()),n==="<br>")u=[""];else u=[n];k=s.append("tspan").attr("x",0).attr("y",o).attr("dy",c+"em").text(n)}})}t(pt,"wrap");var jt=t(function(r,e,s,i,n,u=!1){let{theme:c,look:o}=i,b=c?.includes("redux"),k=i?.themeVariables?.THEME_COLOR_LIMIT??12,_=s%k-1,x=r.append("g");e.section=_,x.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+_));let w=x.append("g"),a=x.append("g"),d=a.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,e.width).node().getBBox(),m=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=d.height+m*1.1*0.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,a.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),b)a.attr("transform",`translate(${e.width/2}, ${u?e.padding/2+3:e.padding})`);if(Jt(w,e,_,n,i),o==="neo"){if(x.attr("data-look","neo"),b){let v=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),N=h(y),S=N.attr("id")??"",W=S?`${S}-drop-shadow`:"drop-shadow";if(N.select(`#${W}`).empty()){let G=N.select("defs");(G.empty()?N.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}}return e},"drawNode"),qt=t(function(r,e,s){let i=r.append("g"),u=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,e.width).node().getBBox(),c=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;return i.remove(),u.height+c*1.1*0.5+e.padding},"getVirtualNodeHeight"),Jt=t(function(r,e,s,i,n){let{theme:u}=n,c=u?.includes("redux")?0:5,o=5,b=c>0?`M0 ${e.height-5} v${-e.height+10} q0,-${c},${c},-${c} h${e.width-10} q${c},0,${c},${c} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;if(r.append("path").attr("id",i+"-node-"+At++).attr("class","node-bkg node-"+e.type).attr("d",b),!u?.includes("redux"))r.append("line").attr("class","node-line-"+s).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),z={drawRect:it,drawCircle:Ot,drawSection:Dt,drawText:Ct,drawLabel:Gt,drawTask:Kt,drawBackgroundRect:Ut,getTextObj:Xt,getNoteRect:ut,initGraphics:Zt,drawNode:jt,getVirtualNodeHeight:qt},Qt=t(function(r,e,s,i){let n=p(),{look:u,theme:c,themeVariables:o}=n,{useGradient:b,gradientStart:k,gradientStop:_}=o,x=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let w=n.securityLevel,a;if(w==="sandbox")a=h("#i"+e);let d=(w==="sandbox"?h(a.nodes()[0].contentDocument.body):h("body")).select("#"+e);d.append("g");let m=i.db.getTasks(),v=i.db.getCommonDb().getDiagramTitle();l.debug("task",m),z.initGraphics(d,e);let y=i.db.getSections();l.debug("sections",y);let N=0,S=0,W=0,G=0,D=50+x,q=50;G=50;let B=0,O=!0;y.forEach(function(M){let T={number:B,descr:M,section:B,width:150,padding:20,maxHeight:N},L=z.getVirtualNodeHeight(d,T,n);l.debug("sectionHeight before draw",L),N=Math.max(N,L+20)});let H=0,F=0;l.debug("tasks.length",m.length);for(let[M,T]of m.entries()){let L={number:M,descr:T,section:T.section,width:150,padding:20,maxHeight:S},I=z.getVirtualNodeHeight(d,L,n);l.debug("taskHeight before draw",I),S=Math.max(S,I+20),H=Math.max(H,T.events.length);let P=0;for(let V of T.events){let C={descr:V,section:T.section,number:T.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(d,C,n)}if(T.events.length>0)P+=(T.events.length-1)*10;F=Math.max(F,P)}if(l.debug("maxSectionHeight before draw",N),l.debug("maxTaskHeight before draw",S),y&&y.length>0)y.forEach((M)=>{let T=m.filter((V)=>V.section===M),L={number:B,descr:M,section:B,width:200*Math.max(T.length,1)-50,padding:20,maxHeight:N};l.debug("sectionNode",L);let I=d.append("g"),P=z.drawNode(I,L,B,n,e);if(l.debug("sectionNode output",P),I.attr("transform",`translate(${D}, ${G})`),q+=N+50,T.length>0)mt(d,T,B,D,q,S,n,H,F,N,!1,e);D+=200*Math.max(T.length,1),q=G,B++});else O=!1,mt(d,m,B,D,q,S,n,H,F,N,!0,e);let U=d.node().getBBox();if(l.debug("bounds",U),v)d.append("text").text(v).attr("x",u==="neo"?U.x*2+x:U.width/2-x).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?N+S+150:S+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",x).attr("y1",W).attr("x2",U.width+3*x).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),u==="neo"&&b&&c!=="neutral"){let M=d.select("defs"),L=(M.empty()?d.append("defs"):M).append("linearGradient").attr("id",d.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");L.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),L.append("stop").attr("offset","100%").attr("stop-color",_).attr("stop-opacity",1)}Nr(void 0,d,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),mt=t(function(r,e,s,i,n,u,c,o,b,k,_,x){for(let w of e){let a={descr:w.task,section:s,number:s,width:150,padding:20,maxHeight:u};l.debug("taskNode",a);let f=r.append("g").attr("class","taskWrapper"),m=z.drawNode(f,a,s,c,x).height;if(l.debug("taskHeight after draw",m),f.attr("transform",`translate(${i}, ${n})`),u=Math.max(u,m),w.events){let v=r.append("g").attr("class","lineWrapper"),y=u;n+=100,y=y+Yt(r,w.events,s,i,n,c,x),n-=100,v.append("line").attr("x1",i+95).attr("y1",n+u).attr("x2",i+95).attr("y2",n+u+100+b+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${x}-arrowhead)`).attr("stroke-dasharray","5,5")}if(i=i+200,_&&!c.timeline?.disableMulticolor)s++}n=n-10},"drawTasks"),Yt=t(function(r,e,s,i,n,u,c){let o=0,b=n;n=n+100;for(let k of e){let _={descr:k,section:s,number:s,width:150,padding:20,maxHeight:50};l.debug("eventNode",_);let x=r.append("g").attr("class","eventWrapper"),a=z.drawNode(x,_,s,u,c,!0).height;o=o+a,x.attr("transform",`translate(${i}, ${n})`),n=n+10+a}return n=b,o},"drawEvents"),te={setConf:t(()=>{},"setConf"),draw:Qt},st=200,Z=5,ee=st+Z*2,gt=st+100,re=gt+Z*2,Wt=10,ne=0,kt=20,Pt=20,xt=30,Bt=50,ie=t(function(r,e,s,i){let n=p(),u=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let c=ue(e);c.append("g");let o=i.db.getTasks(),b=i.db.getCommonDb().getDiagramTitle();l.debug("task",o),z.initGraphics(c);let k=i.db.getSections();l.debug("sections",k);let _=0,x=0,w=50+u,a=50,f=a,d=w,m=ee+Pt,v=re+Bt,y=d+m,N=0,S=k&&k.length>0,W=S?y:w+m,G=Math.max(50,m+v-Z*2);k.forEach(function(M){let T={number:N,descr:M,section:N,width:G,padding:Z,maxHeight:_},L=z.getVirtualNodeHeight(c,T,n);l.debug("sectionHeight before draw",L),_=Math.max(_,L)});let D=0;l.debug("tasks.length",o.length);for(let[M,T]of o.entries()){let L={number:M,descr:T,section:T.section,width:st,padding:Z,maxHeight:x},I=z.getVirtualNodeHeight(c,L,n);l.debug("taskHeight before draw",I),x=Math.max(x,I);let P=0;for(let V of T.events){let C={descr:V,section:T.section,number:T.section,width:gt,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,C,n)}if(T.events.length>0)P+=(T.events.length-1)*Wt;D=Math.max(D,P)+ne}l.debug("maxSectionHeight before draw",_),l.debug("maxTaskHeight before draw",x);let B=Math.max(x,D)+xt;if(S)k.forEach((M)=>{let T=o.filter((j)=>j.section===M),L={number:N,descr:M,section:N,width:G,padding:Z,maxHeight:_};l.debug("sectionNode",L);let I=c.append("g"),P=z.drawNode(I,L,N,n);l.debug("sectionNode output",P);let V=W-m;I.attr("transform",`translate(${V}, ${a})`);let C=a+P.height+kt;if(T.length>0)bt(c,T,N,W,C,x,n,B,!1);let at=T.length,tt=P.height+kt+B*Math.max(at,1)-(at>0?xt*2:0);a+=tt,N++});else bt(c,o,N,W,a,x,n,B,!0);let O=c.node()?.getBBox();if(!O)throw Error("bbox not found");if(l.debug("bounds",O),b){if(c.append("text").text(b).attr("x",O.width/2-u).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=c.node()?.getBBox(),!O)throw Error("bbox not found");l.debug("bounds after title",O)}let[H]=kn(n.fontSize),F=(H??16)*2,U=(H??16)*0.5+20,J=c.append("g").attr("class","lineWrapper");J.append("line").attr("x1",W).attr("y1",f-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),J.lower(),Nr(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),bt=t(function(r,e,s,i,n,u,c,o,b){for(let k of e){let _={descr:k.task,section:s,number:s,width:st,padding:Z,maxHeight:u};l.debug("taskNode",_);let x=r.append("g").attr("class","taskWrapper"),w=z.drawNode(x,_,s,c),a=w.height;l.debug("taskHeight after draw",a);let f=i-Pt-w.width;if(x.attr("transform",`translate(${f}, ${n})`),u=Math.max(u,a),k.events&&k.events.length>0){let d=n,m=i+Bt;se(r,k.events,s,i,m,d,c)}if(n=n+o,b&&!c.timeline?.disableMulticolor)s++}},"drawTasks"),se=t(function(r,e,s,i,n,u,c){let o=u;for(let b of e){let k={descr:b,section:s,number:s,width:gt,padding:Z,maxHeight:0};l.debug("eventNode",k);let _=r.append("g").attr("class","eventWrapper"),w=z.drawNode(_,k,s,c).height;_.attr("transform",`translate(${n}, ${o})`);let a=r.append("g").attr("class","lineWrapper"),f=o+w/2;a.append("line").attr("x1",i).attr("y1",f).attr("x2",n).attr("y2",f).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+w+Wt}return o-u},"drawEvents"),ae={setConf:t(()=>{},"setConf"),draw:ie},oe=t((r)=>{let{theme:e}=E(),s=e?.includes("dark"),i=Ye(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",u=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let o=0;o<zn(r.THEME_COLOR_LIMIT);o++){let b=`${17-3*o}`,k=i?r.borderColorArray[o%r.borderColorArray.length]:void 0,_=k??r.mainBkg,x=k??r.nodeBorder;c+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var f=this.next();if(f)return f;else return this.lex()},"lex"),begin:t(function(f){this.conditionStack.push(f)},"begin"),popState:t(function(){var f=this.conditionStack.length-1;if(f>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(f){if(f=this.conditionStack.length-1-Math.abs(f||0),f>=0)return this.conditionStack[f];else return"INITIAL"},"topState"),pushState:t(function(f){this.begin(f)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(f,d,m,v){var y=v;switch(m){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/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],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return w}();k.lexer=_;function x(){this.yy={}}return t(x,"Parser"),x.prototype=k,k.Parser=x,new x}();lt.parser=lt;var Vt=lt,vt={};ti(vt,{addEvent:()=>Lt,addSection:()=>$t,addTask:()=>Ht,addTaskOrg:()=>Mt,clear:()=>St,default:()=>Ft,getCommonDb:()=>wt,getDirection:()=>Tt,getSections:()=>Nt,getTasks:()=>It,setDirection:()=>Et});var Q="",_t=0,ht="LR",dt=[],nt=[],Y=[],wt=t(()=>Pd,"getCommonDb"),St=t(function(){dt.length=0,nt.length=0,Q="",Y.length=0,ht="LR",R()},"clear"),Et=t(function(r){ht=r},"setDirection"),Tt=t(function(){return ht},"getDirection"),$t=t(function(r){Q=r,dt.push(r)},"addSection"),Nt=t(function(){return dt},"getSections"),It=t(function(){let r=yt(),e=100,s=0;while(!r&&s<e)r=yt(),s++;return nt.push(...Y),nt},"getTasks"),Ht=t(function(r,e,s){let i={id:_t++,section:Q,type:Q,task:r,score:e?e:0,events:s?[s]:[]};Y.push(i)},"addTask"),Lt=t(function(r){Y.find((s)=>s.id===_t-1).events.push(r)},"addEvent"),Mt=t(function(r){let e={section:Q,type:Q,description:r,task:r,classes:[]};nt.push(e)},"addTaskOrg"),yt=t(function(){let r=t(function(s){return Y[s].processed},"compileTask"),e=!0;for(let[s,i]of Y.entries())r(s),e=e&&i.processed;return e},"compileTasks"),Ft={clear:St,getCommonDb:wt,getDirection:Tt,setDirection:Et,addSection:$t,getSections:Nt,getTasks:It,addTask:Ht,addTaskOrg:Mt,addEvent:Lt},At=0,it=t(function(r,e){let s=r.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),s.attr("rx",e.rx),s.attr("ry",e.ry),e.class!==void 0)s.attr("class",e.class);return s},"drawRect"),zt=t(function(r,e){let i=r.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=r.append("g");n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function u(b){let k=Fr().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);b.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}t(u,"smile");function c(b){let k=Fr().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);b.append("path").attr("class","mouth").attr("d",k).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}t(c,"sad");function o(b){b.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(t(o,"ambivalent"),e.score>3)u(n);else if(e.score<3)c(n);else o(n);return i},"drawFace"),Ot=t(function(r,e){let s=r.append("circle");if(s.attr("cx",e.cx),s.attr("cy",e.cy),s.attr("class","actor-"+e.pos),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("r",e.r),s.class!==void 0)s.attr("class",s.class);if(e.title!==void 0)s.append("title").text(e.title);return s},"drawCircle"),Ct=t(function(r,e){let s=e.text.replace(/<br\s*\/?>/gi," "),i=r.append("text");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),e.class!==void 0)i.attr("class",e.class);let n=i.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.text(s),i},"drawText"),Gt=t(function(r,e){function s(n,u,c,o,b){return n+","+u+" "+(n+c)+","+u+" "+(n+c)+","+(u+o-b)+" "+(n+c-b*1.2)+","+(u+o)+" "+n+","+(u+o)}t(s,"genPoints");let i=r.append("polygon");i.attr("points",s(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+0.5*e.labelMargin,Ct(r,e)},"drawLabel"),Dt=t(function(r,e,s){let i=r.append("g"),n=ut();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=s.width,n.height=s.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,it(i,n),Rt(s)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),ct=-1,Kt=t(function(r,e,s,i){let n=e.x+s.width/2,u=r.append("g");ct++;let c=450;u.append("line").attr("id",i+"-task"+ct).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",c).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),zt(u,{cx:n,cy:300+(5-e.score)*30,score:e.score});let o=ut();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=s.width,o.height=s.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,it(u,o),Rt(s)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},s,e.colour)},"drawTask"),Ut=t(function(r,e){it(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),Xt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),ut=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Rt=function(){function r(n,u,c,o,b,k,_,x){let w=u.append("text").attr("x",c+b/2).attr("y",o+k/2+5).style("font-color",x).style("text-anchor","middle").text(n);i(w,_)}t(r,"byText");function e(n,u,c,o,b,k,_,x,w){let{taskFontSize:a,taskFontFamily:f}=x,d=n.split(/<br\s*\/?>/gi);for(let m=0;m<d.length;m++){let v=m*a-a*(d.length-1)/2,y=u.append("text").attr("x",c+b/2).attr("y",o).attr("fill",w).style("text-anchor","middle").style("font-size",a).style("font-family",f);y.append("tspan").attr("x",c+b/2).attr("dy",v).text(d[m]),y.attr("y",o+k/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(y,_)}}t(e,"byTspan");function s(n,u,c,o,b,k,_,x){let w=u.append("switch"),f=w.append("foreignObject").attr("x",c).attr("y",o).attr("width",b).attr("height",k).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");f.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,w,c,o,b,k,_,x),i(f,_)}t(s,"byFo");function i(n,u){for(let c in u)if(c in u)n.attr(c,u[c])}return t(i,"_setTextAttrs"),function(n){return n.textPlacement==="fo"?s:n.textPlacement==="old"?r:e}}(),Zt=t(function(r,e){At=0,ct=-1,r.append("defs").append("marker").attr("id",e+"-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")},"initGraphics");function pt(r,e){r.each(function(){var s=h(this),i=s.text().split(/(\s+|<br>)/).reverse(),n,u=[],c=1.1,o=s.attr("y"),b=parseFloat(s.attr("dy")),k=s.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",b+"em");for(let _=0;_<i.length;_++)if(n=i[i.length-1-_],u.push(n),k.text(u.join(" ").trim()),k.node().getComputedTextLength()>e||n==="<br>"){if(u.pop(),k.text(u.join(" ").trim()),n==="<br>")u=[""];else u=[n];k=s.append("tspan").attr("x",0).attr("y",o).attr("dy",c+"em").text(n)}})}t(pt,"wrap");var jt=t(function(r,e,s,i,n,u=!1){let{theme:c,look:o}=i,b=c?.includes("redux"),k=i?.themeVariables?.THEME_COLOR_LIMIT??12,_=s%k-1,x=r.append("g");e.section=_,x.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+_));let w=x.append("g"),a=x.append("g"),d=a.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,e.width).node().getBBox(),m=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=d.height+m*1.1*0.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,a.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),b)a.attr("transform",`translate(${e.width/2}, ${u?e.padding/2+3:e.padding})`);if(Jt(w,e,_,n,i),o==="neo"){if(x.attr("data-look","neo"),b){let v=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),N=h(y),S=N.attr("id")??"",W=S?`${S}-drop-shadow`:"drop-shadow";if(N.select(`#${W}`).empty()){let G=N.select("defs");(G.empty()?N.append("defs"):G).append("filter").attr("id",W).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",v?"0.2":"0.06").attr("flood-color",v?"#FFFFFF":"#000000")}}}return e},"drawNode"),qt=t(function(r,e,s){let i=r.append("g"),u=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,e.width).node().getBBox(),c=s.fontSize?.replace?s.fontSize.replace("px",""):s.fontSize;return i.remove(),u.height+c*1.1*0.5+e.padding},"getVirtualNodeHeight"),Jt=t(function(r,e,s,i,n){let{theme:u}=n,c=u?.includes("redux")?0:5,o=5,b=c>0?`M0 ${e.height-5} v${-e.height+10} q0,-${c},${c},-${c} h${e.width-10} q${c},0,${c},${c} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;if(r.append("path").attr("id",i+"-node-"+At++).attr("class","node-bkg node-"+e.type).attr("d",b),!u?.includes("redux"))r.append("line").attr("class","node-line-"+s).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),z={drawRect:it,drawCircle:Ot,drawSection:Dt,drawText:Ct,drawLabel:Gt,drawTask:Kt,drawBackgroundRect:Ut,getTextObj:Xt,getNoteRect:ut,initGraphics:Zt,drawNode:jt,getVirtualNodeHeight:qt},Qt=t(function(r,e,s,i){let n=p(),{look:u,theme:c,themeVariables:o}=n,{useGradient:b,gradientStart:k,gradientStop:_}=o,x=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let w=n.securityLevel,a;if(w==="sandbox")a=h("#i"+e);let d=(w==="sandbox"?h(a.nodes()[0].contentDocument.body):h("body")).select("#"+e);d.append("g");let m=i.db.getTasks(),v=i.db.getCommonDb().getDiagramTitle();l.debug("task",m),z.initGraphics(d,e);let y=i.db.getSections();l.debug("sections",y);let N=0,S=0,W=0,G=0,D=50+x,q=50;G=50;let B=0,O=!0;y.forEach(function(M){let T={number:B,descr:M,section:B,width:150,padding:20,maxHeight:N},L=z.getVirtualNodeHeight(d,T,n);l.debug("sectionHeight before draw",L),N=Math.max(N,L+20)});let H=0,F=0;l.debug("tasks.length",m.length);for(let[M,T]of m.entries()){let L={number:M,descr:T,section:T.section,width:150,padding:20,maxHeight:S},I=z.getVirtualNodeHeight(d,L,n);l.debug("taskHeight before draw",I),S=Math.max(S,I+20),H=Math.max(H,T.events.length);let P=0;for(let V of T.events){let C={descr:V,section:T.section,number:T.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(d,C,n)}if(T.events.length>0)P+=(T.events.length-1)*10;F=Math.max(F,P)}if(l.debug("maxSectionHeight before draw",N),l.debug("maxTaskHeight before draw",S),y&&y.length>0)y.forEach((M)=>{let T=m.filter((V)=>V.section===M),L={number:B,descr:M,section:B,width:200*Math.max(T.length,1)-50,padding:20,maxHeight:N};l.debug("sectionNode",L);let I=d.append("g"),P=z.drawNode(I,L,B,n,e);if(l.debug("sectionNode output",P),I.attr("transform",`translate(${D}, ${G})`),q+=N+50,T.length>0)mt(d,T,B,D,q,S,n,H,F,N,!1,e);D+=200*Math.max(T.length,1),q=G,B++});else O=!1,mt(d,m,B,D,q,S,n,H,F,N,!0,e);let U=d.node().getBBox();if(l.debug("bounds",U),v)d.append("text").text(v).attr("x",u==="neo"?U.x*2+x:U.width/2-x).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(W=O?N+S+150:S+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",x).attr("y1",W).attr("x2",U.width+3*x).attr("y2",W).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),u==="neo"&&b&&c!=="neutral"){let M=d.select("defs"),L=(M.empty()?d.append("defs"):M).append("linearGradient").attr("id",d.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");L.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),L.append("stop").attr("offset","100%").attr("stop-color",_).attr("stop-opacity",1)}Rr(void 0,d,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),mt=t(function(r,e,s,i,n,u,c,o,b,k,_,x){for(let w of e){let a={descr:w.task,section:s,number:s,width:150,padding:20,maxHeight:u};l.debug("taskNode",a);let f=r.append("g").attr("class","taskWrapper"),m=z.drawNode(f,a,s,c,x).height;if(l.debug("taskHeight after draw",m),f.attr("transform",`translate(${i}, ${n})`),u=Math.max(u,m),w.events){let v=r.append("g").attr("class","lineWrapper"),y=u;n+=100,y=y+Yt(r,w.events,s,i,n,c,x),n-=100,v.append("line").attr("x1",i+95).attr("y1",n+u).attr("x2",i+95).attr("y2",n+u+100+b+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${x}-arrowhead)`).attr("stroke-dasharray","5,5")}if(i=i+200,_&&!c.timeline?.disableMulticolor)s++}n=n-10},"drawTasks"),Yt=t(function(r,e,s,i,n,u,c){let o=0,b=n;n=n+100;for(let k of e){let _={descr:k,section:s,number:s,width:150,padding:20,maxHeight:50};l.debug("eventNode",_);let x=r.append("g").attr("class","eventWrapper"),a=z.drawNode(x,_,s,u,c,!0).height;o=o+a,x.attr("transform",`translate(${i}, ${n})`),n=n+10+a}return n=b,o},"drawEvents"),te={setConf:t(()=>{},"setConf"),draw:Qt},st=200,Z=5,ee=st+Z*2,gt=st+100,re=gt+Z*2,Wt=10,ne=0,kt=20,Pt=20,xt=30,Bt=50,ie=t(function(r,e,s,i){let n=p(),u=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let c=ue(e);c.append("g");let o=i.db.getTasks(),b=i.db.getCommonDb().getDiagramTitle();l.debug("task",o),z.initGraphics(c);let k=i.db.getSections();l.debug("sections",k);let _=0,x=0,w=50+u,a=50,f=a,d=w,m=ee+Pt,v=re+Bt,y=d+m,N=0,S=k&&k.length>0,W=S?y:w+m,G=Math.max(50,m+v-Z*2);k.forEach(function(M){let T={number:N,descr:M,section:N,width:G,padding:Z,maxHeight:_},L=z.getVirtualNodeHeight(c,T,n);l.debug("sectionHeight before draw",L),_=Math.max(_,L)});let D=0;l.debug("tasks.length",o.length);for(let[M,T]of o.entries()){let L={number:M,descr:T,section:T.section,width:st,padding:Z,maxHeight:x},I=z.getVirtualNodeHeight(c,L,n);l.debug("taskHeight before draw",I),x=Math.max(x,I);let P=0;for(let V of T.events){let C={descr:V,section:T.section,number:T.section,width:gt,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,C,n)}if(T.events.length>0)P+=(T.events.length-1)*Wt;D=Math.max(D,P)+ne}l.debug("maxSectionHeight before draw",_),l.debug("maxTaskHeight before draw",x);let B=Math.max(x,D)+xt;if(S)k.forEach((M)=>{let T=o.filter((j)=>j.section===M),L={number:N,descr:M,section:N,width:G,padding:Z,maxHeight:_};l.debug("sectionNode",L);let I=c.append("g"),P=z.drawNode(I,L,N,n);l.debug("sectionNode output",P);let V=W-m;I.attr("transform",`translate(${V}, ${a})`);let C=a+P.height+kt;if(T.length>0)bt(c,T,N,W,C,x,n,B,!1);let at=T.length,tt=P.height+kt+B*Math.max(at,1)-(at>0?xt*2:0);a+=tt,N++});else bt(c,o,N,W,a,x,n,B,!0);let O=c.node()?.getBBox();if(!O)throw Error("bbox not found");if(l.debug("bounds",O),b){if(c.append("text").text(b).attr("x",O.width/2-u).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),O=c.node()?.getBBox(),!O)throw Error("bbox not found");l.debug("bounds after title",O)}let[H]=kn(n.fontSize),F=(H??16)*2,U=(H??16)*0.5+20,J=c.append("g").attr("class","lineWrapper");J.append("line").attr("x1",W).attr("y1",f-F).attr("x2",W).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),J.lower(),Rr(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),bt=t(function(r,e,s,i,n,u,c,o,b){for(let k of e){let _={descr:k.task,section:s,number:s,width:st,padding:Z,maxHeight:u};l.debug("taskNode",_);let x=r.append("g").attr("class","taskWrapper"),w=z.drawNode(x,_,s,c),a=w.height;l.debug("taskHeight after draw",a);let f=i-Pt-w.width;if(x.attr("transform",`translate(${f}, ${n})`),u=Math.max(u,a),k.events&&k.events.length>0){let d=n,m=i+Bt;se(r,k.events,s,i,m,d,c)}if(n=n+o,b&&!c.timeline?.disableMulticolor)s++}},"drawTasks"),se=t(function(r,e,s,i,n,u,c){let o=u;for(let b of e){let k={descr:b,section:s,number:s,width:gt,padding:Z,maxHeight:0};l.debug("eventNode",k);let _=r.append("g").attr("class","eventWrapper"),w=z.drawNode(_,k,s,c).height;_.attr("transform",`translate(${n}, ${o})`);let a=r.append("g").attr("class","lineWrapper"),f=o+w/2;a.append("line").attr("x1",i).attr("y1",f).attr("x2",n).attr("y2",f).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),o=o+w+Wt}return o-u},"drawEvents"),ae={setConf:t(()=>{},"setConf"),draw:ie},oe=t((r)=>{let{theme:e}=E(),s=e?.includes("dark"),i=Ye(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",u=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let o=0;o<zn(r.THEME_COLOR_LIMIT);o++){let b=`${17-3*o}`,k=i?r.borderColorArray[o%r.borderColorArray.length]:void 0,_=k??r.mainBkg,x=k??r.nodeBorder;c+=`
7
7
  .section-${o-1} rect,
8
8
  .section-${o-1} path,
9
9
  .section-${o-1} circle {
@@ -0,0 +1 @@
1
+ import{sf}from"./index-ejgd8w3s.js";export{sf as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import{Xm}from"./index-ejgd8w3s.js";export{Xm as createTreemapServices};
@@ -0,0 +1 @@
1
+ import{vc}from"./index-532btjmp.js";export{vc as default};
@@ -0,0 +1 @@
1
+ import{Ea}from"./index-jppt5mgc.js";export{Ea as default};