@kabmo-labs/kabmo 0.45.0 → 0.46.0

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 (361) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +412 -412
  3. package/dist/client/static/js/{CsvGrid-z74weshk.js → CsvGrid-br4j001k.js} +2 -2
  4. package/dist/client/static/js/{DocxView-dpe5x9ab.js → DocxView-kmtkbmmw.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-ftzwjf8v.js → DrawioView-3df0g3jr.js} +2 -2
  6. package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
  8. package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
  9. package/dist/client/static/js/{PdfView-vjec8z3z.js → PdfView-p5z7c7eg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-g7z3fxbp.js → SessionsView-t06h6zfx.js} +1 -1
  11. package/dist/client/static/js/{SheetView-hhtfkdhe.js → SheetView-agw459v2.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-48n3ex6p.js → SvgPreview-b9rfy1h6.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-bpvzdara.js → abnfDiagram-O67JEVCF-wbnhzcnj.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-xw62cr7j.js → architectureDiagram-NJMV4G6O-t2sgevea.js} +3 -3
  16. package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
  17. package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-x3a6cgar.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
  19. package/dist/client/static/js/c-acmn1zc9.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-katvaxbj.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bjz4mqqh.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-fsn80psf.js → cose-bilkent-JH36ORCC-c4tnh4mg.js} +1 -1
  23. package/dist/client/static/js/cpp-620mvjkk.js +1 -0
  24. package/dist/client/static/js/css-bt76kxbq.js +1 -0
  25. package/dist/client/static/js/css-drfs4n12.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-cfhbsnkm.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-j2wt7ns6.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-abrdj714.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-dbn15bxn.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-y79pwf7w.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-f8ryt86n.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-ws7wn3q9.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-zmznrg13.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-qgc921kw.js → dockerfile-00hqsk9c.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-y5q7hy1v.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.js} +1 -1
  37. package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-vddwbn6q.js → elk-276RUBZZ-dsq91er5.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-qdqcx4g4.js → erDiagram-OPXOYQCR-p7p13mbh.js} +9 -9
  40. package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-7b4w6phx.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-763hk9rm.js → ganttDiagram-FUAMR5RP-bwgnttyk.js} +4 -4
  44. package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
  45. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bgx1q5nw.js → gitGraphDiagram-X574FWY7-ca0gj5am.js} +13 -13
  46. package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
  47. package/dist/client/static/js/html-m0megrvb.js +1 -0
  48. package/dist/client/static/js/index-064vdkrs.js +2 -0
  49. package/dist/client/static/js/{index-w57zbym7.js → index-16sd19f0.js} +2 -2
  50. package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
  51. package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
  52. package/dist/client/static/js/{index-jpp0zm7t.js → index-29npynva.js} +19 -19
  53. package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
  54. package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
  55. package/dist/client/static/js/index-3bf7r7z4.js +12 -0
  56. package/dist/client/static/js/index-3qnjdjg2.js +1 -0
  57. package/dist/client/static/js/index-4bqssvt6.js +2 -0
  58. package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
  59. package/dist/client/static/js/{index-szk3vk8h.js → index-5gf52a6d.js} +2 -2
  60. package/dist/client/static/js/{index-fqatn0vh.js → index-5h8y54t6.js} +1 -1
  61. package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
  62. package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
  63. package/dist/client/static/js/{index-mwm8aptp.js → index-7055hdx1.js} +1 -1
  64. package/dist/client/static/js/index-8pksqzwq.js +1 -0
  65. package/dist/client/static/js/index-95kese1h.js +1 -0
  66. package/dist/client/static/js/{index-acphtw1r.js → index-9d3n04vb.js} +2 -2
  67. package/dist/client/static/js/{index-cj39b26c.js → index-aagt3382.js} +1 -1
  68. package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
  69. package/dist/client/static/js/{index-xkwybnf3.js → index-amys498v.js} +198 -198
  70. package/dist/client/static/js/{index-vkerrwpa.js → index-bafe7hmd.js} +2 -2
  71. package/dist/client/static/js/{index-34ff2vq6.js → index-bjv5ga2e.js} +2 -2
  72. package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
  73. package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
  74. package/dist/client/static/js/index-dpy3ewrn.css +1 -0
  75. package/dist/client/static/js/{index-61j9qkck.js → index-dr5hca5b.js} +3 -3
  76. package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
  77. package/dist/client/static/js/index-eqhjs1yv.js +4 -0
  78. package/dist/client/static/js/{index-x7rfmwg8.js → index-ex5dtdx2.js} +6 -6
  79. package/dist/client/static/js/{index-228yzebd.js → index-f7te27n5.js} +5 -5
  80. package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
  81. package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
  82. package/dist/client/static/js/index-gq5w5w8x.js +2 -0
  83. package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
  84. package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
  85. package/dist/client/static/js/{index-h0rmkz9n.js → index-j718pxb3.js} +2 -2
  86. package/dist/client/static/js/{index-3sqndc9n.js → index-jkay7aw7.js} +2 -2
  87. package/dist/client/static/js/{index-05hx4ftf.js → index-k5zfzgez.js} +2 -2
  88. package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
  89. package/dist/client/static/js/{index-3d21hpk7.js → index-ncpwteyt.js} +2 -2
  90. package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
  91. package/dist/client/static/js/{index-f7paep2f.js → index-pwe6chtp.js} +1 -1
  92. package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
  93. package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
  94. package/dist/client/static/js/{index-dn6pqym4.js → index-qn200x1b.js} +6 -6
  95. package/dist/client/static/js/index-red856x6.js +1 -0
  96. package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
  97. package/dist/client/static/js/{index-dgjerk4w.js → index-ta6gpcpw.js} +3 -3
  98. package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
  99. package/dist/client/static/js/{index-5b2vsbcf.js → index-twsbv1yn.js} +1 -1
  100. package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
  101. package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
  102. package/dist/client/static/js/{index-gmq5pbcv.js → index-x1fqhhpp.js} +64 -64
  103. package/dist/client/static/js/{index-p21mvqc2.js → index-y2z8nsvw.js} +2 -2
  104. package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
  105. package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
  106. package/dist/client/static/js/{index-mrw7qweg.js → index-zedt16w7.js} +1 -1
  107. package/dist/client/static/js/{index-r6e44vkx.js → index-zq0qxb17.js} +2 -2
  108. package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
  109. package/dist/client/static/js/{infoDiagram-VRGFBTTK-e66pw8d9.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
  110. package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
  111. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ehc0q24d.js → ishikawaDiagram-OU5B5YK6-9jmeszag.js} +3 -3
  112. package/dist/client/static/js/java-jj41mty3.js +1 -0
  113. package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
  114. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-hye05qtd.js → journeyDiagram-ZHPQQLJL-0d7xe845.js} +5 -5
  115. package/dist/client/static/js/json-rnh2h17x.js +1 -0
  116. package/dist/client/static/js/jsx-4gecrt29.js +1 -0
  117. package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
  118. package/dist/client/static/js/{kanban-definition-PNTS6WVX-vce614m8.js → kanban-definition-PNTS6WVX-7p83rwdn.js} +5 -5
  119. package/dist/client/static/js/lua-zszaw2f7.js +1 -0
  120. package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
  121. package/dist/client/static/js/{mermaid.core-gc79re5p.js → mermaid.core-hwhzw0wv.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ft1whaf5.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
  123. package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
  124. package/dist/client/static/js/one-light-e6r3vsz4.js +1 -0
  125. package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
  126. package/dist/client/static/js/{pegDiagram-GJSIUBJH-2s4ykhaa.js → pegDiagram-GJSIUBJH-kd8t53tx.js} +1 -1
  127. package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
  128. package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
  129. package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
  130. package/dist/client/static/js/{pieDiagram-5QR66LMP-7h8dp0z3.js → pieDiagram-5QR66LMP-h3x03f80.js} +3 -3
  131. package/dist/client/static/js/properties-rkptax7r.js +1 -0
  132. package/dist/client/static/js/python-qf1se1mj.js +1 -0
  133. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-pteyxjxr.js → quadrantDiagram-O4NWA36T-y2b1ncbg.js} +6 -6
  134. package/dist/client/static/js/r-ms0cygq2.js +1 -0
  135. package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
  136. package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
  137. package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
  138. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
  139. package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
  140. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-68z9wdt0.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-c08nmey6.js → requirementDiagram-PLB6GJNP-g5e9fk17.js} +10 -10
  142. package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
  143. package/dist/client/static/js/{rust-ke5ec0w5.js → rust-1v8xbxn9.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r3kvjs5.js → sankeyDiagram-IPEJSGJF-y9ht91gf.js} +4 -4
  145. package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
  146. package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
  147. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-ctjycd88.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-97ndea95.js → sizeCapture-INFHLROL-k6dhfxex.js} +1 -1
  149. package/dist/client/static/js/sql-hd42h8wx.js +1 -0
  150. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-aqnmsb96.js → stateDiagram-v2-GCMORJYK-y3akpsm4.js} +3 -3
  151. package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
  152. package/dist/client/static/js/{swimlanes-2SLR337P-v50cx1nx.js → swimlanes-2SLR337P-89081dr3.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-1ggrtdcj.js → timeline-definition-EJHVYXUP-tz6r8g3q.js} +6 -6
  155. package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
  156. package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
  157. package/dist/client/static/js/tsx-gx7td06z.js +1 -0
  158. package/dist/client/static/js/typescript-1a808spn.js +1 -0
  159. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ybcwhpzs.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9ggrt07.js → vennDiagram-UO4OBE2U-qdmjf6x3.js} +7 -7
  161. package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
  162. package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
  163. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-v79nb9kx.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
  164. package/dist/client/static/js/xml-3117mxd9.js +1 -0
  165. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-43thqscz.js → xychartDiagram-PMCCYNJV-d7n2av2t.js} +5 -5
  166. package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
  167. package/extensions/kabmo-modes/index.ts +1 -1
  168. package/extensions/kabmo-modes/parked.test.ts +2 -2
  169. package/extensions/kabmo-modes/parked.ts +10 -9
  170. package/extensions/kabmo-modes/plan.test.ts +4 -4
  171. package/extensions/kabmo-modes/plan.ts +6 -6
  172. package/extensions/kabmo-modes/session.ts +2 -2
  173. package/package.json +1 -1
  174. package/src/client/components/common/FolderPicker.tsx +1 -1
  175. package/src/client/components/common/Modal.tsx +8 -3
  176. package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
  177. package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
  178. package/src/client/components/common/PWAInstallButton.tsx +1 -1
  179. package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
  180. package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
  181. package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
  182. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +15 -0
  183. package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
  184. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  185. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
  186. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  187. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  188. package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
  189. package/src/client/components/mobile/RightSidebar.tsx +27 -10
  190. package/src/client/components/mobile/SessionSidebar.tsx +112 -137
  191. package/src/client/components/mobile/drawer-strip.tsx +85 -0
  192. package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
  193. package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
  194. package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
  195. package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
  196. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
  197. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
  198. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
  199. package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
  200. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
  201. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
  202. package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
  203. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
  204. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
  205. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
  206. package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
  207. package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +96 -0
  208. package/src/client/components/settings/Band.test.tsx +83 -0
  209. package/src/client/components/settings/Band.tsx +96 -0
  210. package/src/client/components/settings/Modal.tsx +44 -69
  211. package/src/client/components/settings/apply-side-effects.ts +15 -4
  212. package/src/client/components/settings/band-height.test.tsx +16 -3
  213. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
  214. package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
  215. package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
  216. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  217. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  218. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
  219. package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
  220. package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
  221. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
  222. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  223. package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
  224. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
  225. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
  226. package/src/client/components/settings/drill.tsx +113 -0
  227. package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
  228. package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
  229. package/src/client/components/settings/master-detail/index.tsx +45 -25
  230. package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
  231. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
  232. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
  233. package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
  234. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  235. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
  236. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
  237. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
  238. package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
  239. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  240. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
  241. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
  242. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
  243. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
  244. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  245. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
  246. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
  247. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
  248. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
  249. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
  250. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
  251. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
  252. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
  253. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
  254. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
  255. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
  256. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
  257. package/src/client/components/workspace/diff-panel/index.tsx +1 -1
  258. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
  259. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  260. package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
  261. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  262. package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
  263. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
  264. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
  265. package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
  266. package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
  267. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
  268. package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
  269. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  270. package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
  271. package/src/client/data/settings/omp-schema.json +103 -42
  272. package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
  273. package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
  274. package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
  275. package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
  276. package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
  277. package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
  278. package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
  279. package/src/client/hooks/workspace/left-dock.ts +19 -0
  280. package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
  281. package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
  282. package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +283 -0
  283. package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
  284. package/src/client/hooks/workspace/panel-tabs.ts +19 -2
  285. package/src/client/lib/ui/phone-row.test.ts +52 -0
  286. package/src/client/lib/ui/phone-row.ts +71 -0
  287. package/src/client/press-state.test.ts +179 -0
  288. package/src/client/tailwind.css +146 -0
  289. package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
  290. package/src/server/lib/omp/rpc/constants.test.ts +6 -1
  291. package/src/shared/lib/chat/ask-form/data.ts +155 -0
  292. package/src/shared/lib/chat/ask-form/fields.ts +4 -0
  293. package/src/shared/lib/chat/ask-form/index.ts +8 -0
  294. package/src/shared/lib/chat/ask-form/types.ts +12 -0
  295. package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
  296. package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
  297. package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
  298. package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
  299. package/src/shared/lib/omp/dialog-methods.ts +6 -0
  300. package/src/shared/lib/omp/session/wait-idle.ts +7 -3
  301. package/src/shared/lib/settings/defaults.ts +3 -2
  302. package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
  303. package/src/shared/lib/workspace/panel-nav.ts +20 -9
  304. package/src/shared/types/omp/agent.ts +20 -3
  305. package/src/shared/types/settings/state.ts +17 -5
  306. package/dist/client/static/js/ImageView-vchn6wyq.js +0 -1
  307. package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +0 -2
  308. package/dist/client/static/js/Modal-tteg7vtb.js +0 -59
  309. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
  310. package/dist/client/static/js/bash-mevzaywf.js +0 -1
  311. package/dist/client/static/js/c-y1y6v00q.js +0 -1
  312. package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
  313. package/dist/client/static/js/css-3w3p9s67.js +0 -1
  314. package/dist/client/static/js/css-g85rwzty.js +0 -1
  315. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
  316. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
  317. package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +0 -1
  318. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
  319. package/dist/client/static/js/graphql-027z8sc0.js +0 -1
  320. package/dist/client/static/js/html-fqda6wxx.js +0 -1
  321. package/dist/client/static/js/index-0vk6v4y4.js +0 -2
  322. package/dist/client/static/js/index-47wn2gjx.js +0 -2
  323. package/dist/client/static/js/index-4b5b6g0k.js +0 -1
  324. package/dist/client/static/js/index-5mrqfs82.js +0 -12
  325. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  326. package/dist/client/static/js/index-a11ptyzf.js +0 -1
  327. package/dist/client/static/js/index-f98dhbt4.js +0 -4
  328. package/dist/client/static/js/index-kg2sk8cf.js +0 -1
  329. package/dist/client/static/js/index-q76jfb54.js +0 -1
  330. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
  331. package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
  332. package/dist/client/static/js/java-zs6qh1dm.js +0 -1
  333. package/dist/client/static/js/javascript-b9mkygak.js +0 -1
  334. package/dist/client/static/js/json-qn73s8xb.js +0 -1
  335. package/dist/client/static/js/jsx-gahhfczw.js +0 -1
  336. package/dist/client/static/js/lua-d8enp14s.js +0 -1
  337. package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
  338. package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +0 -1
  339. package/dist/client/static/js/one-light-2b5w3ksh.js +0 -1
  340. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
  341. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
  342. package/dist/client/static/js/properties-g6tpq003.js +0 -1
  343. package/dist/client/static/js/python-cy06fzhg.js +0 -1
  344. package/dist/client/static/js/r-vw8berfv.js +0 -1
  345. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
  346. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
  347. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
  348. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
  349. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
  350. package/dist/client/static/js/sql-bwnasywx.js +0 -1
  351. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +0 -8
  352. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
  353. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
  354. package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
  355. package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
  356. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
  357. package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
  358. package/dist/client/static/js/yaml-avewh7n5.js +0 -1
  359. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
  360. package/src/shared/lib/ui/safe-area.test.ts +0 -28
  361. package/src/shared/lib/ui/safe-area.ts +0 -42
@@ -1,9 +1,9 @@
1
- import{t,po,l,Ie,g,A,C,zr,lp,R,p,h,Ur,de,Nn,et,Vn}from"./index-gmq5pbcv.js";var ct=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,T){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=[],T=this.table,S="",W=0,G=0,D=0,q=2,B=1,O=y.slice.call(arguments,1),I=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(I.setInput(a,F.yy),F.yy.lexer=I,F.yy.parser=this,typeof I.yylloc>"u")I.yylloc={};var J=I.yylloc;y.push(J);var L=I.options&&I.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function E(K){d.length=d.length-2*K,v.length=v.length-K,y.length=y.length-K}t(E,"popStack");function H(){var K=m.pop()||I.lex()||B;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=f.symbols_[K]||K}return K}t(H,"lex");var N,P,V,M,ot,tt,j={},rt,X,yt,nt;while(!0){if(V=d[d.length-1],this.defaultActions[V])M=this.defaultActions[V];else{if(N===null||typeof N>"u")N=H();M=T[V]&&T[V][N]}if(typeof M>"u"||!M.length||!M[0]){var lt="";nt=[];for(rt in T[V])if(this.terminals_[rt]&&rt>q)nt.push("'"+this.terminals_[rt]+"'");if(I.showPosition)lt="Parse error on line "+(W+1)+`:
1
+ import{t,uo,l,_e,g,A,C,Ur,fp,F,p,h,Gr,pe,Rn,nt,Yn}from"./index-x1fqhhpp.js";var ct=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,T){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=[],T=this.table,S="",R=0,G=0,D=0,q=2,P=1,O=y.slice.call(arguments,1),I=Object.create(this.lexer),V={yy:{}};for(var U in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,U))V.yy[U]=this.yy[U];if(I.setInput(a,V.yy),V.yy.lexer=I,V.yy.parser=this,typeof I.yylloc>"u")I.yylloc={};var J=I.yylloc;y.push(J);var L=I.options&&I.options.ranges;if(typeof V.yy.parseError==="function")this.parseError=V.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function E(K){d.length=d.length-2*K,v.length=v.length-K,y.length=y.length-K}t(E,"popStack");function H(){var K=m.pop()||I.lex()||P;if(typeof K!=="number"){if(K instanceof Array)m=K,K=m.pop();K=f.symbols_[K]||K}return K}t(H,"lex");var N,W,B,M,ot,tt,j={},et,X,yt,rt;while(!0){if(B=d[d.length-1],this.defaultActions[B])M=this.defaultActions[B];else{if(N===null||typeof N>"u")N=H();M=T[B]&&T[B][N]}if(typeof M>"u"||!M.length||!M[0]){var lt="";rt=[];for(et in T[B])if(this.terminals_[et]&&et>q)rt.push("'"+this.terminals_[et]+"'");if(I.showPosition)lt="Parse error on line "+(R+1)+`:
2
2
  `+I.showPosition()+`
3
- Expecting `+nt.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else lt="Parse error on line "+(W+1)+": Unexpected "+(N==B?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(lt,{text:I.match,token:this.terminals_[N]||N,line:I.yylineno,loc:J,expected:nt})}if(M[0]instanceof Array&&M.length>1)throw Error("Parse Error: multiple actions possible at state: "+V+", token: "+N);switch(M[0]){case 1:if(d.push(N),v.push(I.yytext),y.push(I.yylloc),d.push(M[1]),N=null,!P){if(G=I.yyleng,S=I.yytext,W=I.yylineno,J=I.yylloc,D>0)D--}else N=P,P=null;break;case 2:if(X=this.productions_[M[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},L)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,M[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_[M[1]][0]),v.push(j.$),y.push(j._$),yt=T[d[d.length-2]][d[d.length-1]],d.push(yt);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).
3
+ Expecting `+rt.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else lt="Parse error on line "+(R+1)+": Unexpected "+(N==P?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(lt,{text:I.match,token:this.terminals_[N]||N,line:I.yylineno,loc:J,expected:rt})}if(M[0]instanceof Array&&M.length>1)throw Error("Parse Error: multiple actions possible at state: "+B+", token: "+N);switch(M[0]){case 1:if(d.push(N),v.push(I.yytext),y.push(I.yylloc),d.push(M[1]),N=null,!W){if(G=I.yyleng,S=I.yytext,R=I.yylineno,J=I.yylloc,D>0)D--}else N=W,W=null;break;case 2:if(X=this.productions_[M[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},L)j._$.range=[y[y.length-(X||1)].range[0],y[y.length-1].range[1]];if(tt=this.performAction.apply(j,[S,G,R,V.yy,M[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_[M[1]][0]),v.push(j.$),y.push(j._$),yt=T[d[d.length-2]][d[d.length-1]],d.push(yt);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}();ct.parser=ct;var Ft=ct,_t={};po(_t,{addEvent:()=>Mt,addSection:()=>Nt,addTask:()=>Lt,addTaskOrg:()=>At,clear:()=>Et,default:()=>zt,getCommonDb:()=>St,getDirection:()=>$t,getSections:()=>It,getTasks:()=>Ht,setDirection:()=>Tt});var Q="",wt=0,dt="LR",ut=[],it=[],Y=[],St=t(()=>lp,"getCommonDb"),Et=t(function(){ut.length=0,it.length=0,Q="",Y.length=0,dt="LR",R()},"clear"),Tt=t(function(r){dt=r},"setDirection"),$t=t(function(){return dt},"getDirection"),Nt=t(function(r){Q=r,ut.push(r)},"addSection"),It=t(function(){return ut},"getSections"),Ht=t(function(){let r=mt(),e=100,s=0;while(!r&&s<e)r=mt(),s++;return it.push(...Y),it},"getTasks"),Lt=t(function(r,e,s){let i={id:wt++,section:Q,type:Q,task:r,score:e?e:0,events:s?[s]:[]};Y.push(i)},"addTask"),Mt=t(function(r){Y.find((s)=>s.id===wt-1).events.push(r)},"addEvent"),At=t(function(r){let e={section:Q,type:Q,description:r,task:r,classes:[]};it.push(e)},"addTaskOrg"),mt=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"),zt={clear:Et,getCommonDb:St,getDirection:$t,setDirection:Tt,addSection:Nt,getSections:It,getTasks:Ht,addTask:Lt,addTaskOrg:At,addEvent:Mt},Ct=0,st=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"),Ot=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=Ur().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=Ur().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"),Gt=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"),Rt=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"),Dt=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,Rt(r,e)},"drawLabel"),Kt=t(function(r,e,s){let i=r.append("g"),n=pt();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,st(i,n),Wt(s)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),ht=-1,Ut=t(function(r,e,s,i){let n=e.x+s.width/2,u=r.append("g");ht++;let c=450;u.append("line").attr("id",i+"-task"+ht).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"),Ot(u,{cx:n,cy:300+(5-e.score)*30,score:e.score});let o=pt();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,st(u,o),Wt(s)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},s,e.colour)},"drawTask"),Xt=t(function(r,e){st(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),Zt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),pt=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Wt=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}}(),jt=t(function(r,e){Ct=0,ht=-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 gt(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(gt,"wrap");var qt=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(gt,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(Qt(w,e,_,n,i),o==="neo"){if(x.attr("data-look","neo"),b){let v=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),T=h(y),S=T.attr("id")??"",W=S?`${S}-drop-shadow`:"drop-shadow";if(T.select(`#${W}`).empty()){let G=T.select("defs");(G.empty()?T.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"),Jt=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(gt,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"),Qt=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-"+Ct++).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:st,drawCircle:Gt,drawSection:Kt,drawText:Rt,drawLabel:Dt,drawTask:Ut,drawBackgroundRect:Xt,getTextObj:Zt,getNoteRect:pt,initGraphics:jt,drawNode:qt,getVirtualNodeHeight:Jt},Yt=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 T=0,S=0,W=0,G=0,D=50+x,q=50;G=50;let B=0,O=!0;y.forEach(function(L){let E={number:B,descr:L,section:B,width:150,padding:20,maxHeight:T},H=z.getVirtualNodeHeight(d,E,n);l.debug("sectionHeight before draw",H),T=Math.max(T,H+20)});let I=0,F=0;l.debug("tasks.length",m.length);for(let[L,E]of m.entries()){let H={number:L,descr:E,section:E.section,width:150,padding:20,maxHeight:S},N=z.getVirtualNodeHeight(d,H,n);l.debug("taskHeight before draw",N),S=Math.max(S,N+20),I=Math.max(I,E.events.length);let P=0;for(let V of E.events){let M={descr:V,section:E.section,number:E.section,width:150,padding:20,maxHeight:50};P+=z.getVirtualNodeHeight(d,M,n)}if(E.events.length>0)P+=(E.events.length-1)*10;F=Math.max(F,P)}if(l.debug("maxSectionHeight before draw",T),l.debug("maxTaskHeight before draw",S),y&&y.length>0)y.forEach((L)=>{let E=m.filter((V)=>V.section===L),H={number:B,descr:L,section:B,width:200*Math.max(E.length,1)-50,padding:20,maxHeight:T};l.debug("sectionNode",H);let N=d.append("g"),P=z.drawNode(N,H,B,n,e);if(l.debug("sectionNode output",P),N.attr("transform",`translate(${D}, ${G})`),q+=T+50,E.length>0)kt(d,E,B,D,q,S,n,I,F,T,!1,e);D+=200*Math.max(E.length,1),q=G,B++});else O=!1,kt(d,m,B,D,q,S,n,I,F,T,!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?T+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 L=d.select("defs"),H=(L.empty()?d.append("defs"):L).append("linearGradient").attr("id",d.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");H.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),H.append("stop").attr("offset","100%").attr("stop-color",_).attr("stop-opacity",1)}zr(void 0,d,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),kt=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+te(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"),te=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"),ee={setConf:t(()=>{},"setConf"),draw:Yt},at=200,Z=5,re=at+Z*2,ft=at+100,ne=ft+Z*2,Pt=10,ie=0,xt=20,Bt=20,bt=30,Vt=50,se=t(function(r,e,s,i){let n=p(),u=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let c=de(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=re+Bt,v=ne+Vt,y=d+m,T=0,S=k&&k.length>0,W=S?y:w+m,G=Math.max(50,m+v-Z*2);k.forEach(function(L){let E={number:T,descr:L,section:T,width:G,padding:Z,maxHeight:_},H=z.getVirtualNodeHeight(c,E,n);l.debug("sectionHeight before draw",H),_=Math.max(_,H)});let D=0;l.debug("tasks.length",o.length);for(let[L,E]of o.entries()){let H={number:L,descr:E,section:E.section,width:at,padding:Z,maxHeight:x},N=z.getVirtualNodeHeight(c,H,n);l.debug("taskHeight before draw",N),x=Math.max(x,N);let P=0;for(let V of E.events){let M={descr:V,section:E.section,number:E.section,width:ft,padding:Z,maxHeight:50};P+=z.getVirtualNodeHeight(c,M,n)}if(E.events.length>0)P+=(E.events.length-1)*Pt;D=Math.max(D,P)+ie}l.debug("maxSectionHeight before draw",_),l.debug("maxTaskHeight before draw",x);let B=Math.max(x,D)+bt;if(S)k.forEach((L)=>{let E=o.filter((j)=>j.section===L),H={number:T,descr:L,section:T,width:G,padding:Z,maxHeight:_};l.debug("sectionNode",H);let N=c.append("g"),P=z.drawNode(N,H,T,n);l.debug("sectionNode output",P);let V=W-m;N.attr("transform",`translate(${V}, ${a})`);let M=a+P.height+xt;if(E.length>0)vt(c,E,T,W,M,x,n,B,!1);let ot=E.length,tt=P.height+xt+B*Math.max(ot,1)-(ot>0?bt*2:0);a+=tt,T++});else vt(c,o,T,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[I]=Nn(n.fontSize),F=(I??16)*2,U=(I??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(),zr(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),vt=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:at,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-Bt-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+Vt;ae(r,k.events,s,i,m,d,c)}if(n=n+o,b&&!c.timeline?.disableMulticolor)s++}},"drawTasks"),ae=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:ft,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+Pt}return o-u},"drawEvents"),oe={setConf:t(()=>{},"setConf"),draw:se},le=t((r)=>{let{theme:e}=C(),s=e?.includes("dark"),i=et(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",u=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let o=0;o<Vn(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}();ct.parser=ct;var Ft=ct,_t={};uo(_t,{addEvent:()=>Mt,addSection:()=>Nt,addTask:()=>Lt,addTaskOrg:()=>At,clear:()=>Et,default:()=>zt,getCommonDb:()=>St,getDirection:()=>$t,getSections:()=>It,getTasks:()=>Ht,setDirection:()=>Tt});var Q="",wt=0,dt="LR",ut=[],it=[],Y=[],St=t(()=>fp,"getCommonDb"),Et=t(function(){ut.length=0,it.length=0,Q="",Y.length=0,dt="LR",F()},"clear"),Tt=t(function(r){dt=r},"setDirection"),$t=t(function(){return dt},"getDirection"),Nt=t(function(r){Q=r,ut.push(r)},"addSection"),It=t(function(){return ut},"getSections"),Ht=t(function(){let r=mt(),e=100,s=0;while(!r&&s<e)r=mt(),s++;return it.push(...Y),it},"getTasks"),Lt=t(function(r,e,s){let i={id:wt++,section:Q,type:Q,task:r,score:e?e:0,events:s?[s]:[]};Y.push(i)},"addTask"),Mt=t(function(r){Y.find((s)=>s.id===wt-1).events.push(r)},"addEvent"),At=t(function(r){let e={section:Q,type:Q,description:r,task:r,classes:[]};it.push(e)},"addTaskOrg"),mt=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"),zt={clear:Et,getCommonDb:St,getDirection:$t,setDirection:Tt,addSection:Nt,getSections:It,getTasks:Ht,addTask:Lt,addTaskOrg:At,addEvent:Mt},Ct=0,st=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"),Ot=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=Gr().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=Gr().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"),Gt=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"),Rt=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"),Dt=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,Rt(r,e)},"drawLabel"),Kt=t(function(r,e,s){let i=r.append("g"),n=pt();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,st(i,n),Wt(s)(e.text,i,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),ht=-1,Ut=t(function(r,e,s,i){let n=e.x+s.width/2,u=r.append("g");ht++;let c=450;u.append("line").attr("id",i+"-task"+ht).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"),Ot(u,{cx:n,cy:300+(5-e.score)*30,score:e.score});let o=pt();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,st(u,o),Wt(s)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},s,e.colour)},"drawTask"),Xt=t(function(r,e){st(r,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),Zt=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),pt=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Wt=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}}(),jt=t(function(r,e){Ct=0,ht=-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 gt(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(gt,"wrap");var qt=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(gt,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(Qt(w,e,_,n,i),o==="neo"){if(x.attr("data-look","neo"),b){let v=c.includes("dark"),y=r.node()?.ownerSVGElement??r.node(),T=h(y),S=T.attr("id")??"",R=S?`${S}-drop-shadow`:"drop-shadow";if(T.select(`#${R}`).empty()){let G=T.select("defs");(G.empty()?T.append("defs"):G).append("filter").attr("id",R).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"),Jt=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(gt,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"),Qt=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-"+Ct++).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:st,drawCircle:Gt,drawSection:Kt,drawText:Rt,drawLabel:Dt,drawTask:Ut,drawBackgroundRect:Xt,getTextObj:Zt,getNoteRect:pt,initGraphics:jt,drawNode:qt,getVirtualNodeHeight:Jt},Yt=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 T=0,S=0,R=0,G=0,D=50+x,q=50;G=50;let P=0,O=!0;y.forEach(function(L){let E={number:P,descr:L,section:P,width:150,padding:20,maxHeight:T},H=z.getVirtualNodeHeight(d,E,n);l.debug("sectionHeight before draw",H),T=Math.max(T,H+20)});let I=0,V=0;l.debug("tasks.length",m.length);for(let[L,E]of m.entries()){let H={number:L,descr:E,section:E.section,width:150,padding:20,maxHeight:S},N=z.getVirtualNodeHeight(d,H,n);l.debug("taskHeight before draw",N),S=Math.max(S,N+20),I=Math.max(I,E.events.length);let W=0;for(let B of E.events){let M={descr:B,section:E.section,number:E.section,width:150,padding:20,maxHeight:50};W+=z.getVirtualNodeHeight(d,M,n)}if(E.events.length>0)W+=(E.events.length-1)*10;V=Math.max(V,W)}if(l.debug("maxSectionHeight before draw",T),l.debug("maxTaskHeight before draw",S),y&&y.length>0)y.forEach((L)=>{let E=m.filter((B)=>B.section===L),H={number:P,descr:L,section:P,width:200*Math.max(E.length,1)-50,padding:20,maxHeight:T};l.debug("sectionNode",H);let N=d.append("g"),W=z.drawNode(N,H,P,n,e);if(l.debug("sectionNode output",W),N.attr("transform",`translate(${D}, ${G})`),q+=T+50,E.length>0)kt(d,E,P,D,q,S,n,I,V,T,!1,e);D+=200*Math.max(E.length,1),q=G,P++});else O=!1,kt(d,m,P,D,q,S,n,I,V,T,!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(R=O?T+S+150:S+100,d.append("g").attr("class","lineWrapper").append("line").attr("x1",x).attr("y1",R).attr("x2",U.width+3*x).attr("y2",R).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),u==="neo"&&b&&c!=="neutral"){let L=d.select("defs"),H=(L.empty()?d.append("defs"):L).append("linearGradient").attr("id",d.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");H.append("stop").attr("offset","0%").attr("stop-color",k).attr("stop-opacity",1),H.append("stop").attr("offset","100%").attr("stop-color",_).attr("stop-opacity",1)}Ur(void 0,d,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),kt=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+te(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"),te=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"),ee={setConf:t(()=>{},"setConf"),draw:Yt},at=200,Z=5,re=at+Z*2,ft=at+100,ne=ft+Z*2,Pt=10,ie=0,xt=20,Bt=20,bt=30,Vt=50,se=t(function(r,e,s,i){let n=p(),u=n.timeline?.leftMargin??50;l.debug("timeline",i.db);let c=pe(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=re+Bt,v=ne+Vt,y=d+m,T=0,S=k&&k.length>0,R=S?y:w+m,G=Math.max(50,m+v-Z*2);k.forEach(function(L){let E={number:T,descr:L,section:T,width:G,padding:Z,maxHeight:_},H=z.getVirtualNodeHeight(c,E,n);l.debug("sectionHeight before draw",H),_=Math.max(_,H)});let D=0;l.debug("tasks.length",o.length);for(let[L,E]of o.entries()){let H={number:L,descr:E,section:E.section,width:at,padding:Z,maxHeight:x},N=z.getVirtualNodeHeight(c,H,n);l.debug("taskHeight before draw",N),x=Math.max(x,N);let W=0;for(let B of E.events){let M={descr:B,section:E.section,number:E.section,width:ft,padding:Z,maxHeight:50};W+=z.getVirtualNodeHeight(c,M,n)}if(E.events.length>0)W+=(E.events.length-1)*Pt;D=Math.max(D,W)+ie}l.debug("maxSectionHeight before draw",_),l.debug("maxTaskHeight before draw",x);let P=Math.max(x,D)+bt;if(S)k.forEach((L)=>{let E=o.filter((j)=>j.section===L),H={number:T,descr:L,section:T,width:G,padding:Z,maxHeight:_};l.debug("sectionNode",H);let N=c.append("g"),W=z.drawNode(N,H,T,n);l.debug("sectionNode output",W);let B=R-m;N.attr("transform",`translate(${B}, ${a})`);let M=a+W.height+xt;if(E.length>0)vt(c,E,T,R,M,x,n,P,!1);let ot=E.length,tt=W.height+xt+P*Math.max(ot,1)-(ot>0?bt*2:0);a+=tt,T++});else vt(c,o,T,R,a,x,n,P,!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[I]=Rn(n.fontSize),V=(I??16)*2,U=(I??16)*0.5+20,J=c.append("g").attr("class","lineWrapper");J.append("line").attr("x1",R).attr("y1",f-V).attr("x2",R).attr("y2",O.y+O.height+U).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),J.lower(),Ur(void 0,c,n.timeline?.padding??50,n.timeline?.useMaxWidth??!1)},"draw"),vt=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:at,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-Bt-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+Vt;ae(r,k.events,s,i,m,d,c)}if(n=n+o,b&&!c.timeline?.disableMulticolor)s++}},"drawTasks"),ae=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:ft,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+Pt}return o-u},"drawEvents"),oe={setConf:t(()=>{},"setConf"),draw:se},le=t((r)=>{let{theme:e}=C(),s=e?.includes("dark"),i=nt(e,r.borderColorArray),n=r.svgId?.replace(/^#/,"")??"",u=n?`url(#${n}-drop-shadow)`:r.dropShadow??"none",c="";for(let o=0;o<Yn(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 {
@@ -50,7 +50,7 @@ Expecting `+nt.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else lt="Parse e
50
50
  .disabled text {
51
51
  fill: ${r.clusterBorder??"#efefef"};
52
52
  }
53
- `}return c},"genReduxSections"),ce=t((r)=>{let e="",s=Vn(r.THEME_COLOR_LIMIT);for(let i=0;i<s;i++)if(r["lineColor"+i]=r["lineColor"+i]??r["cScaleInv"+i],Ie(r["lineColor"+i]))r["lineColor"+i]=g(r["lineColor"+i],20);else r["lineColor"+i]=A(r["lineColor"+i],20);for(let i=0;i<s;i++){let n=""+(17-3*i);e+=`
53
+ `}return c},"genReduxSections"),ce=t((r)=>{let e="",s=Yn(r.THEME_COLOR_LIMIT);for(let i=0;i<s;i++)if(r["lineColor"+i]=r["lineColor"+i]??r["cScaleInv"+i],_e(r["lineColor"+i]))r["lineColor"+i]=g(r["lineColor"+i],20);else r["lineColor"+i]=A(r["lineColor"+i],20);for(let i=0;i<s;i++){let n=""+(17-3*i);e+=`
54
54
  .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} path {
55
55
  fill: ${r["cScale"+i]};
56
56
  }
@@ -82,7 +82,7 @@ Expecting `+nt.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else lt="Parse e
82
82
  .disabled text {
83
83
  fill: ${r.clusterBorder??"#efefef"};
84
84
  }
85
- `}return e},"genSections"),he=t((r)=>{let{theme:e}=C(),s=e?.includes("redux"),i=e==="neutral",n=r.svgId?.replace(/^#/,"")??"",u="";if(r.useGradient&&n&&r.THEME_COLOR_LIMIT&&!i){let c=Vn(r.THEME_COLOR_LIMIT);for(let o=0;o<c;o++)u+=`
85
+ `}return e},"genSections"),he=t((r)=>{let{theme:e}=C(),s=e?.includes("redux"),i=e==="neutral",n=r.svgId?.replace(/^#/,"")??"",u="";if(r.useGradient&&n&&r.THEME_COLOR_LIMIT&&!i){let c=Yn(r.THEME_COLOR_LIMIT);for(let o=0;o<c;o++)u+=`
86
86
  .section-${o-1}[data-look="neo"] rect,
87
87
  .section-${o-1}[data-look="neo"] path,
88
88
  .section-${o-1}[data-look="neo"] circle {
@@ -117,4 +117,4 @@ Expecting `+nt.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else lt="Parse e
117
117
  .eventWrapper {
118
118
  filter: brightness(120%);
119
119
  }
120
- `},"getStyles"),ue=he,pe={setConf:t(()=>{},"setConf"),draw:t((r,e,s,i)=>{if((i?.db?.getDirection?.()??"LR")==="TD")return oe.draw(r,e,s,i);return ee.draw(r,e,s,i)},"draw")},we={db:_t,renderer:pe,parser:Ft,styles:ue};export{we as diagram};
120
+ `},"getStyles"),de=he,ue={setConf:t(()=>{},"setConf"),draw:t((r,e,s,i)=>{if((i?.db?.getDirection?.()??"LR")==="TD")return oe.draw(r,e,s,i);return ee.draw(r,e,s,i)},"draw")},Se={db:_t,renderer:ue,parser:Ft,styles:de};export{Se as diagram};
@@ -0,0 +1 @@
1
+ import{jf}from"./index-abs635a1.js";export{jf as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import{Mf}from"./index-abs635a1.js";export{Mf as createTreemapServices};
@@ -0,0 +1 @@
1
+ import{Wc}from"./index-64sqfr4a.js";export{Wc as default};
@@ -0,0 +1 @@
1
+ import{Na}from"./index-qf3y3ahx.js";export{Na as default};