@kingsoftcloud/ksadk-web 0.2.7

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 (469) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +202 -0
  3. package/README.md +72 -0
  4. package/dist-ksadk/assets/ArtifactsPanel-CMS54WAp.js +1 -0
  5. package/dist-ksadk/assets/CodeBlock-CHZaDmho.js +9 -0
  6. package/dist-ksadk/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  7. package/dist-ksadk/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  8. package/dist-ksadk/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  9. package/dist-ksadk/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  10. package/dist-ksadk/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  11. package/dist-ksadk/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  12. package/dist-ksadk/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  13. package/dist-ksadk/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  14. package/dist-ksadk/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  15. package/dist-ksadk/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  16. package/dist-ksadk/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  17. package/dist-ksadk/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  18. package/dist-ksadk/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  19. package/dist-ksadk/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  20. package/dist-ksadk/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  21. package/dist-ksadk/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  22. package/dist-ksadk/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  23. package/dist-ksadk/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  24. package/dist-ksadk/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  25. package/dist-ksadk/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  26. package/dist-ksadk/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  27. package/dist-ksadk/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  28. package/dist-ksadk/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  29. package/dist-ksadk/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  30. package/dist-ksadk/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  31. package/dist-ksadk/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  32. package/dist-ksadk/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  33. package/dist-ksadk/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  34. package/dist-ksadk/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  35. package/dist-ksadk/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  36. package/dist-ksadk/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  37. package/dist-ksadk/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  38. package/dist-ksadk/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  39. package/dist-ksadk/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  40. package/dist-ksadk/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  41. package/dist-ksadk/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  42. package/dist-ksadk/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  43. package/dist-ksadk/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  44. package/dist-ksadk/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  45. package/dist-ksadk/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  46. package/dist-ksadk/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  47. package/dist-ksadk/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  48. package/dist-ksadk/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  49. package/dist-ksadk/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  50. package/dist-ksadk/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  51. package/dist-ksadk/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  52. package/dist-ksadk/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  53. package/dist-ksadk/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  54. package/dist-ksadk/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  55. package/dist-ksadk/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  56. package/dist-ksadk/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  57. package/dist-ksadk/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  58. package/dist-ksadk/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  59. package/dist-ksadk/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  60. package/dist-ksadk/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  61. package/dist-ksadk/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  62. package/dist-ksadk/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  63. package/dist-ksadk/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  64. package/dist-ksadk/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  65. package/dist-ksadk/assets/MathMessageMarkdown-Cx9VSNQ8.js +8 -0
  66. package/dist-ksadk/assets/MathMessageMarkdown-DeYh8QPr.css +1 -0
  67. package/dist-ksadk/assets/MermaidBlock-CV56XpfU.js +303 -0
  68. package/dist-ksadk/assets/NativeTerminalPanel-BrbZygfC.js +1 -0
  69. package/dist-ksadk/assets/NativeTerminalPanel-CHOd7Rch.css +1 -0
  70. package/dist-ksadk/assets/addon-fit-DthTIhi3.js +1 -0
  71. package/dist-ksadk/assets/apl-CnwPGSsG.js +1 -0
  72. package/dist-ksadk/assets/arc-D3eSpKQi.js +1 -0
  73. package/dist-ksadk/assets/architecture-7EHR7CIX-aKvaoHF-.js +1 -0
  74. package/dist-ksadk/assets/architectureDiagram-3BPJPVTR-DLe5RfvU.js +36 -0
  75. package/dist-ksadk/assets/asciiarmor-qTkVPQu6.js +1 -0
  76. package/dist-ksadk/assets/asn1-Dr8qZg38.js +1 -0
  77. package/dist-ksadk/assets/asterisk-Bja0s6e1.js +1 -0
  78. package/dist-ksadk/assets/blockDiagram-GPEHLZMM-jrFAO8Bq.js +132 -0
  79. package/dist-ksadk/assets/brainfuck-D5EjA2JK.js +1 -0
  80. package/dist-ksadk/assets/c4Diagram-AAUBKEIU-BFwiG9fe.js +10 -0
  81. package/dist-ksadk/assets/channel-BNEchGhD.js +1 -0
  82. package/dist-ksadk/assets/chunk-2J33WTMH-5Qlobtnj.js +1 -0
  83. package/dist-ksadk/assets/chunk-4BX2VUAB-ou66Tq9f.js +1 -0
  84. package/dist-ksadk/assets/chunk-55IACEB6-CDvMSeFu.js +1 -0
  85. package/dist-ksadk/assets/chunk-727SXJPM-t3ZfYPXH.js +206 -0
  86. package/dist-ksadk/assets/chunk-AQP2D5EJ-CqPYcHtF.js +231 -0
  87. package/dist-ksadk/assets/chunk-FMBD7UC4-C79rRamw.js +15 -0
  88. package/dist-ksadk/assets/chunk-ND2GUHAM-EqP27pbM.js +1 -0
  89. package/dist-ksadk/assets/chunk-QZHKN3VN-DVqYdfgL.js +1 -0
  90. package/dist-ksadk/assets/classDiagram-4FO5ZUOK-DoFK3UDf.js +1 -0
  91. package/dist-ksadk/assets/classDiagram-v2-Q7XG4LA2-DoFK3UDf.js +1 -0
  92. package/dist-ksadk/assets/clike-DHH8Ad3s.js +1 -0
  93. package/dist-ksadk/assets/clojure-BflJGmDX.js +1 -0
  94. package/dist-ksadk/assets/cmake-CyVbuzPu.js +1 -0
  95. package/dist-ksadk/assets/cobol-B_OZ4V-R.js +1 -0
  96. package/dist-ksadk/assets/coffeescript-B2pKbFk8.js +1 -0
  97. package/dist-ksadk/assets/commonlisp-CcllspGY.js +1 -0
  98. package/dist-ksadk/assets/cose-bilkent-S5V4N54A-QMqM6zta.js +1 -0
  99. package/dist-ksadk/assets/crystal-M5-qzICs.js +1 -0
  100. package/dist-ksadk/assets/css-CYpP4FRV.js +1 -0
  101. package/dist-ksadk/assets/cypher-p9eYesGn.js +1 -0
  102. package/dist-ksadk/assets/cytoscape.esm-DelgaX4f.js +321 -0
  103. package/dist-ksadk/assets/d-BhMjBjQP.js +1 -0
  104. package/dist-ksadk/assets/dagre-BM42HDAG-CEakrtKq.js +4 -0
  105. package/dist-ksadk/assets/dagre-Bx709z4p.js +1 -0
  106. package/dist-ksadk/assets/defaultLocale-C8Fc0cco.js +1 -0
  107. package/dist-ksadk/assets/diagram-2AECGRRQ-BxdbhhCX.js +43 -0
  108. package/dist-ksadk/assets/diagram-5GNKFQAL-DBpIlxtZ.js +10 -0
  109. package/dist-ksadk/assets/diagram-KO2AKTUF-D4COO3HT.js +3 -0
  110. package/dist-ksadk/assets/diagram-LMA3HP47-DBSZ6aUz.js +24 -0
  111. package/dist-ksadk/assets/diagram-OG6HWLK6-CxLsy00E.js +24 -0
  112. package/dist-ksadk/assets/diff-ChtP43wD.js +1 -0
  113. package/dist-ksadk/assets/dist-6WsdpRSO.js +1 -0
  114. package/dist-ksadk/assets/dist-BEmeO2N2.js +1 -0
  115. package/dist-ksadk/assets/dist-BOHSAqwD.js +6 -0
  116. package/dist-ksadk/assets/dist-BWf6mC8G.js +1 -0
  117. package/dist-ksadk/assets/dist-BeLlHcxS.js +1 -0
  118. package/dist-ksadk/assets/dist-C4IRfjf3.js +1 -0
  119. package/dist-ksadk/assets/dist-CJmvMGxs.js +1 -0
  120. package/dist-ksadk/assets/dist-CTCQXcX7.js +1 -0
  121. package/dist-ksadk/assets/dist-CXnbkk51.js +2 -0
  122. package/dist-ksadk/assets/dist-Cpz8Cm0v.js +1 -0
  123. package/dist-ksadk/assets/dist-CqCrM4le.js +1 -0
  124. package/dist-ksadk/assets/dist-Cqzpy7oO.js +1 -0
  125. package/dist-ksadk/assets/dist-Cxij5I4C.js +23 -0
  126. package/dist-ksadk/assets/dist-DGm-pByN.js +1 -0
  127. package/dist-ksadk/assets/dist-D_gCRUxt.js +1 -0
  128. package/dist-ksadk/assets/dist-DelwQd2b.js +1 -0
  129. package/dist-ksadk/assets/dist-DqLb8QP7.js +1 -0
  130. package/dist-ksadk/assets/dist-DxJZpRF1.js +1 -0
  131. package/dist-ksadk/assets/dist-JOlStfdO.js +11 -0
  132. package/dist-ksadk/assets/dist-O8eCswTX.js +9 -0
  133. package/dist-ksadk/assets/dist-aq2knWnw.js +1 -0
  134. package/dist-ksadk/assets/dist-z5-DHNYg.js +1 -0
  135. package/dist-ksadk/assets/dockerfile-BLkNEvjs.js +1 -0
  136. package/dist-ksadk/assets/dtd-DTF72YNO.js +1 -0
  137. package/dist-ksadk/assets/dylan-C6jEEEk-.js +1 -0
  138. package/dist-ksadk/assets/ebnf-D4c0_ac3.js +1 -0
  139. package/dist-ksadk/assets/ecl-BSZaIHnp.js +1 -0
  140. package/dist-ksadk/assets/eiffel-BEjRio4Q.js +1 -0
  141. package/dist-ksadk/assets/elm-Cshzl8qu.js +1 -0
  142. package/dist-ksadk/assets/erDiagram-TEJ5UH35-CsjpG1Xb.js +85 -0
  143. package/dist-ksadk/assets/erlang-DaB2Rkuy.js +1 -0
  144. package/dist-ksadk/assets/eventmodeling-FCH6USID-CnNj0sZg.js +1 -0
  145. package/dist-ksadk/assets/factor-D7LVTn2l.js +1 -0
  146. package/dist-ksadk/assets/fcl-ClOhbFR7.js +1 -0
  147. package/dist-ksadk/assets/flowDiagram-I6XJVG4X-DZo3QdjC.js +162 -0
  148. package/dist-ksadk/assets/forth-Cezjo90N.js +1 -0
  149. package/dist-ksadk/assets/fortran-Bt6PBEDR.js +1 -0
  150. package/dist-ksadk/assets/ganttDiagram-6RSMTGT7-BGeXMpCW.js +292 -0
  151. package/dist-ksadk/assets/gas-BHEdbvp9.js +1 -0
  152. package/dist-ksadk/assets/gherkin-oBAE_ms0.js +1 -0
  153. package/dist-ksadk/assets/gitGraph-WXDBUCRP-CYAnXGvP.js +1 -0
  154. package/dist-ksadk/assets/gitGraphDiagram-PVQCEYII-CEgx70IJ.js +106 -0
  155. package/dist-ksadk/assets/graphlib-B8gBHxth.js +1 -0
  156. package/dist-ksadk/assets/groovy-BC3IOsC8.js +1 -0
  157. package/dist-ksadk/assets/haskell-BRsoo5mP.js +1 -0
  158. package/dist-ksadk/assets/haxe-DIz0ZZqd.js +1 -0
  159. package/dist-ksadk/assets/http-CLVgA2GD.js +1 -0
  160. package/dist-ksadk/assets/idl-BUZw3wgd.js +1 -0
  161. package/dist-ksadk/assets/index-CAl5bzeo.css +1 -0
  162. package/dist-ksadk/assets/index-DiS5sSwc.js +165 -0
  163. package/dist-ksadk/assets/info-J43DQDTF-CqhaeVQF.js +1 -0
  164. package/dist-ksadk/assets/infoDiagram-5YYISTIA-D7Mjh6YU.js +2 -0
  165. package/dist-ksadk/assets/init-D6jRqBbL.js +1 -0
  166. package/dist-ksadk/assets/ishikawaDiagram-YF4QCWOH-Dd4tDuCg.js +70 -0
  167. package/dist-ksadk/assets/javascript-9Tg8ixDm.js +1 -0
  168. package/dist-ksadk/assets/journeyDiagram-JHISSGLW-D8l_bo2Y.js +139 -0
  169. package/dist-ksadk/assets/julia-CQfgDRfP.js +1 -0
  170. package/dist-ksadk/assets/kanban-definition-UN3LZRKU-CPTqBqad.js +89 -0
  171. package/dist-ksadk/assets/katex-Cj6SHGk0.js +265 -0
  172. package/dist-ksadk/assets/linear-CtOo2EUV.js +1 -0
  173. package/dist-ksadk/assets/livescript-BXxG0Yva.js +1 -0
  174. package/dist-ksadk/assets/lua-CiA1ziua.js +1 -0
  175. package/dist-ksadk/assets/mathematica-u8YMmbU0.js +1 -0
  176. package/dist-ksadk/assets/mbox-BEMVcqjs.js +1 -0
  177. package/dist-ksadk/assets/mermaid-parser.core-BeKhTKTv.js +161 -0
  178. package/dist-ksadk/assets/mindmap-definition-RKZ34NQL-Cyeeb4Uv.js +96 -0
  179. package/dist-ksadk/assets/mirc-C9zpzAZU.js +1 -0
  180. package/dist-ksadk/assets/mllike-B45xgp2S.js +1 -0
  181. package/dist-ksadk/assets/modelica-CqHI_q-D.js +1 -0
  182. package/dist-ksadk/assets/mscgen-qgSLujhx.js +1 -0
  183. package/dist-ksadk/assets/mumps-CW_TBmxz.js +1 -0
  184. package/dist-ksadk/assets/nginx-BMaDbqW3.js +1 -0
  185. package/dist-ksadk/assets/nsis-AQ_alPln.js +1 -0
  186. package/dist-ksadk/assets/ntriples-d28e9m0E.js +1 -0
  187. package/dist-ksadk/assets/octave-D2Q8cUp1.js +1 -0
  188. package/dist-ksadk/assets/ordinal-hYBb2elL.js +1 -0
  189. package/dist-ksadk/assets/oz-BwTct_5T.js +1 -0
  190. package/dist-ksadk/assets/packet-YPE3B663-D42EsLYz.js +1 -0
  191. package/dist-ksadk/assets/pascal-Dp_KdFgX.js +1 -0
  192. package/dist-ksadk/assets/perl-CdEHsPfU.js +1 -0
  193. package/dist-ksadk/assets/pie-LRSECV5Y-Cgre-V_q.js +1 -0
  194. package/dist-ksadk/assets/pieDiagram-4H26LBE5-CYoruq9a.js +30 -0
  195. package/dist-ksadk/assets/pig-AF4Hwhju.js +1 -0
  196. package/dist-ksadk/assets/powershell-CzG71I4L.js +1 -0
  197. package/dist-ksadk/assets/properties-C357ku5U.js +1 -0
  198. package/dist-ksadk/assets/protobuf-D1ij_kNL.js +1 -0
  199. package/dist-ksadk/assets/pug-Bugr-47h.js +1 -0
  200. package/dist-ksadk/assets/puppet-B4hC2X4m.js +1 -0
  201. package/dist-ksadk/assets/python-BqYw9LYJ.js +1 -0
  202. package/dist-ksadk/assets/q-B9NhS7L_.js +1 -0
  203. package/dist-ksadk/assets/quadrantDiagram-W4KKPZXB-9Iyq0jYH.js +7 -0
  204. package/dist-ksadk/assets/r-DADKenSm.js +1 -0
  205. package/dist-ksadk/assets/radar-GUYGQ44K-_FsLsLP1.js +1 -0
  206. package/dist-ksadk/assets/requirementDiagram-4Y6WPE33-Dm-mLxH0.js +84 -0
  207. package/dist-ksadk/assets/rpm-gpDK5sbt.js +1 -0
  208. package/dist-ksadk/assets/ruby-DsYpTuWg.js +1 -0
  209. package/dist-ksadk/assets/sankeyDiagram-5OEKKPKP-BhpH0-7G.js +40 -0
  210. package/dist-ksadk/assets/sas-C2OyD2Y6.js +1 -0
  211. package/dist-ksadk/assets/scheme-CyDdOh7e.js +1 -0
  212. package/dist-ksadk/assets/sequenceDiagram-3UESZ5HK-DUPsgMMP.js +162 -0
  213. package/dist-ksadk/assets/shell-Du5Qg9im.js +1 -0
  214. package/dist-ksadk/assets/sieve-BAxa3IjF.js +1 -0
  215. package/dist-ksadk/assets/simple-mode-DRpGK0lJ.js +1 -0
  216. package/dist-ksadk/assets/smalltalk-BLp5-jwC.js +1 -0
  217. package/dist-ksadk/assets/solr-BBopId9w.js +1 -0
  218. package/dist-ksadk/assets/sparql-Dz-mlCAC.js +1 -0
  219. package/dist-ksadk/assets/spreadsheet-CTIncYxj.js +1 -0
  220. package/dist-ksadk/assets/sql-DcCJ9jop.js +1 -0
  221. package/dist-ksadk/assets/stateDiagram-AJRCARHV-XbM4cbgm.js +1 -0
  222. package/dist-ksadk/assets/stateDiagram-v2-BHNVJYJU-C1h6ve7b.js +1 -0
  223. package/dist-ksadk/assets/stex-sDrdk2BW.js +1 -0
  224. package/dist-ksadk/assets/stylus-DLLZ8dgm.js +1 -0
  225. package/dist-ksadk/assets/swift-DKB6_1j6.js +1 -0
  226. package/dist-ksadk/assets/tcl-BGfruO1u.js +1 -0
  227. package/dist-ksadk/assets/textile-DWBqthVk.js +1 -0
  228. package/dist-ksadk/assets/tiddlywiki-VlUiK86J.js +1 -0
  229. package/dist-ksadk/assets/tiki-CxVlf5KZ.js +1 -0
  230. package/dist-ksadk/assets/timeline-definition-PNZ67QCA-Tday4gED.js +120 -0
  231. package/dist-ksadk/assets/toml-LvoKBwCs.js +1 -0
  232. package/dist-ksadk/assets/treeView-BLDUP644-5bkV6oHA.js +1 -0
  233. package/dist-ksadk/assets/treemap-LRROVOQU-Ck8wquEY.js +1 -0
  234. package/dist-ksadk/assets/troff-C2dAgh7P.js +1 -0
  235. package/dist-ksadk/assets/ttcn-BePYh-hG.js +1 -0
  236. package/dist-ksadk/assets/ttcn-cfg-CY0aot7Q.js +1 -0
  237. package/dist-ksadk/assets/turtle-BDLWE2cD.js +1 -0
  238. package/dist-ksadk/assets/vb-BthdM_4N.js +1 -0
  239. package/dist-ksadk/assets/vbscript-D9f6rSsU.js +1 -0
  240. package/dist-ksadk/assets/velocity-CqftRsjg.js +1 -0
  241. package/dist-ksadk/assets/vennDiagram-CIIHVFJN-BOg1GA8S.js +34 -0
  242. package/dist-ksadk/assets/verilog-D-x6ne0Z.js +1 -0
  243. package/dist-ksadk/assets/vhdl-CMrOq2q1.js +1 -0
  244. package/dist-ksadk/assets/wardley-L42UT6IY-DPQZ7fpa.js +1 -0
  245. package/dist-ksadk/assets/wardleyDiagram-YWT4CUSO-Cy5RnJwi.js +78 -0
  246. package/dist-ksadk/assets/webidl-D5jiJvOU.js +1 -0
  247. package/dist-ksadk/assets/xquery-fj_R-kMw.js +1 -0
  248. package/dist-ksadk/assets/xterm-DooSxjI5.js +36 -0
  249. package/dist-ksadk/assets/xychartDiagram-2RQKCTM6-DHamdSL0.js +7 -0
  250. package/dist-ksadk/assets/yacas-CXXgtw0p.js +1 -0
  251. package/dist-ksadk/assets/z80-CL1naaMV.js +1 -0
  252. package/dist-ksadk/favicon.svg +1 -0
  253. package/dist-ksadk/icons.svg +24 -0
  254. package/dist-ksadk/index.html +14 -0
  255. package/dist-lib/App.d.ts +12 -0
  256. package/dist-lib/App.d.ts.map +1 -0
  257. package/dist-lib/ArtifactsPanel-DFx9Y2xE.js +57 -0
  258. package/dist-lib/CodeBlock-liGJ8t29.js +94 -0
  259. package/dist-lib/MathMessageMarkdown-hWMdpCVN.js +73 -0
  260. package/dist-lib/MermaidBlock-BFNE1NN8.js +33 -0
  261. package/dist-lib/NativeTerminalPanel-q4ECX8EX.js +391 -0
  262. package/dist-lib/WorkspacePanelContainer-26j9UzyY.js +2813 -0
  263. package/dist-lib/api/bootstrap.d.ts +2 -0
  264. package/dist-lib/api/bootstrap.d.ts.map +1 -0
  265. package/dist-lib/api/checkpoints.d.ts +38 -0
  266. package/dist-lib/api/checkpoints.d.ts.map +1 -0
  267. package/dist-lib/api/client.d.ts +35 -0
  268. package/dist-lib/api/client.d.ts.map +1 -0
  269. package/dist-lib/api/events.d.ts +2 -0
  270. package/dist-lib/api/events.d.ts.map +1 -0
  271. package/dist-lib/api/model.d.ts +2 -0
  272. package/dist-lib/api/model.d.ts.map +1 -0
  273. package/dist-lib/api/run.d.ts +4 -0
  274. package/dist-lib/api/run.d.ts.map +1 -0
  275. package/dist-lib/api/session.d.ts +23 -0
  276. package/dist-lib/api/session.d.ts.map +1 -0
  277. package/dist-lib/api/upload.d.ts +12 -0
  278. package/dist-lib/api/upload.d.ts.map +1 -0
  279. package/dist-lib/api/workspace.d.ts +8 -0
  280. package/dist-lib/api/workspace.d.ts.map +1 -0
  281. package/dist-lib/artifact-BfFsPe5A.js +19 -0
  282. package/dist-lib/capabilities-CiyyeRQ9.js +78 -0
  283. package/dist-lib/capabilities.js +16 -0
  284. package/dist-lib/components/ErrorBoundary.d.ts +17 -0
  285. package/dist-lib/components/ErrorBoundary.d.ts.map +1 -0
  286. package/dist-lib/components/MessageMarkdown.d.ts +5 -0
  287. package/dist-lib/components/MessageMarkdown.d.ts.map +1 -0
  288. package/dist-lib/components/ToastContainer.d.ts +2 -0
  289. package/dist-lib/components/ToastContainer.d.ts.map +1 -0
  290. package/dist-lib/components/artifacts/ArtifactsPanel.d.ts +2 -0
  291. package/dist-lib/components/artifacts/ArtifactsPanel.d.ts.map +1 -0
  292. package/dist-lib/components/chat/AttachmentPreview.d.ts +11 -0
  293. package/dist-lib/components/chat/AttachmentPreview.d.ts.map +1 -0
  294. package/dist-lib/components/chat/ChatComposer.d.ts +26 -0
  295. package/dist-lib/components/chat/ChatComposer.d.ts.map +1 -0
  296. package/dist-lib/components/chat/ChatHeader.d.ts +41 -0
  297. package/dist-lib/components/chat/ChatHeader.d.ts.map +1 -0
  298. package/dist-lib/components/chat/ChatMessageList.d.ts +36 -0
  299. package/dist-lib/components/chat/ChatMessageList.d.ts.map +1 -0
  300. package/dist-lib/components/chat/ChatSidebar.d.ts +14 -0
  301. package/dist-lib/components/chat/ChatSidebar.d.ts.map +1 -0
  302. package/dist-lib/components/chat/ConnectedComposer.d.ts +10 -0
  303. package/dist-lib/components/chat/ConnectedComposer.d.ts.map +1 -0
  304. package/dist-lib/components/chat/ConnectedMessageList.d.ts +27 -0
  305. package/dist-lib/components/chat/ConnectedMessageList.d.ts.map +1 -0
  306. package/dist-lib/components/chat/ConnectedSidebar.d.ts +10 -0
  307. package/dist-lib/components/chat/ConnectedSidebar.d.ts.map +1 -0
  308. package/dist-lib/components/chat/types.d.ts +126 -0
  309. package/dist-lib/components/chat/types.d.ts.map +1 -0
  310. package/dist-lib/components/markdown/CodeBlock.d.ts +8 -0
  311. package/dist-lib/components/markdown/CodeBlock.d.ts.map +1 -0
  312. package/dist-lib/components/markdown/MathMessageMarkdown.d.ts +8 -0
  313. package/dist-lib/components/markdown/MathMessageMarkdown.d.ts.map +1 -0
  314. package/dist-lib/components/markdown/MermaidBlock.d.ts +7 -0
  315. package/dist-lib/components/markdown/MermaidBlock.d.ts.map +1 -0
  316. package/dist-lib/components/native/NativeRuntimeLauncher.d.ts +20 -0
  317. package/dist-lib/components/native/NativeRuntimeLauncher.d.ts.map +1 -0
  318. package/dist-lib/components/native/NativeTerminalPanel.d.ts +15 -0
  319. package/dist-lib/components/native/NativeTerminalPanel.d.ts.map +1 -0
  320. package/dist-lib/components/ui/dialog.d.ts +20 -0
  321. package/dist-lib/components/ui/dialog.d.ts.map +1 -0
  322. package/dist-lib/components/ui/sheet.d.ts +28 -0
  323. package/dist-lib/components/ui/sheet.d.ts.map +1 -0
  324. package/dist-lib/components/workspace/FileEditor.d.ts +12 -0
  325. package/dist-lib/components/workspace/FileEditor.d.ts.map +1 -0
  326. package/dist-lib/components/workspace/FilePreview.d.ts +11 -0
  327. package/dist-lib/components/workspace/FilePreview.d.ts.map +1 -0
  328. package/dist-lib/components/workspace/HtmlPreview.d.ts +13 -0
  329. package/dist-lib/components/workspace/HtmlPreview.d.ts.map +1 -0
  330. package/dist-lib/components/workspace/MarkdownPreview.d.ts +11 -0
  331. package/dist-lib/components/workspace/MarkdownPreview.d.ts.map +1 -0
  332. package/dist-lib/components/workspace/WorkspacePanel.d.ts +15 -0
  333. package/dist-lib/components/workspace/WorkspacePanel.d.ts.map +1 -0
  334. package/dist-lib/components/workspace/WorkspacePanelContainer.d.ts +27 -0
  335. package/dist-lib/components/workspace/WorkspacePanelContainer.d.ts.map +1 -0
  336. package/dist-lib/components.js +99 -0
  337. package/dist-lib/core/api/facade.d.ts +96 -0
  338. package/dist-lib/core/api/facade.d.ts.map +1 -0
  339. package/dist-lib/core/api/types.d.ts +108 -0
  340. package/dist-lib/core/api/types.d.ts.map +1 -0
  341. package/dist-lib/core/capability/registry.d.ts +9 -0
  342. package/dist-lib/core/capability/registry.d.ts.map +1 -0
  343. package/dist-lib/core/capability/types.d.ts +13 -0
  344. package/dist-lib/core/capability/types.d.ts.map +1 -0
  345. package/dist-lib/core/run/dispatcher.d.ts +4 -0
  346. package/dist-lib/core/run/dispatcher.d.ts.map +1 -0
  347. package/dist-lib/core/run/engine.d.ts +53 -0
  348. package/dist-lib/core/run/engine.d.ts.map +1 -0
  349. package/dist-lib/core/run/index.d.ts +4 -0
  350. package/dist-lib/core/run/index.d.ts.map +1 -0
  351. package/dist-lib/core/run/types.d.ts +117 -0
  352. package/dist-lib/core/run/types.d.ts.map +1 -0
  353. package/dist-lib/core/stream/chat-completions-protocol.d.ts +8 -0
  354. package/dist-lib/core/stream/chat-completions-protocol.d.ts.map +1 -0
  355. package/dist-lib/core/stream/index.d.ts +4 -0
  356. package/dist-lib/core/stream/index.d.ts.map +1 -0
  357. package/dist-lib/core/stream/responses-protocol.d.ts +8 -0
  358. package/dist-lib/core/stream/responses-protocol.d.ts.map +1 -0
  359. package/dist-lib/core/stream/types.d.ts +43 -0
  360. package/dist-lib/core/stream/types.d.ts.map +1 -0
  361. package/dist-lib/core/transport/sse-parser.d.ts +7 -0
  362. package/dist-lib/core/transport/sse-parser.d.ts.map +1 -0
  363. package/dist-lib/core/transport/sse-transport.d.ts +22 -0
  364. package/dist-lib/core/transport/sse-transport.d.ts.map +1 -0
  365. package/dist-lib/core/transport/types.d.ts +20 -0
  366. package/dist-lib/core/transport/types.d.ts.map +1 -0
  367. package/dist-lib/favicon.svg +1 -0
  368. package/dist-lib/hooks/useBootstrap.d.ts +6 -0
  369. package/dist-lib/hooks/useBootstrap.d.ts.map +1 -0
  370. package/dist-lib/hooks/useFeedback.d.ts +24 -0
  371. package/dist-lib/hooks/useFeedback.d.ts.map +1 -0
  372. package/dist-lib/hooks/useResponsiveViewport.d.ts +7 -0
  373. package/dist-lib/hooks/useResponsiveViewport.d.ts.map +1 -0
  374. package/dist-lib/hooks/useRunAgent.d.ts +34 -0
  375. package/dist-lib/hooks/useRunAgent.d.ts.map +1 -0
  376. package/dist-lib/hooks/useSessionLifecycle.d.ts +22 -0
  377. package/dist-lib/hooks/useSessionLifecycle.d.ts.map +1 -0
  378. package/dist-lib/icons.svg +24 -0
  379. package/dist-lib/lib/utils.d.ts +3 -0
  380. package/dist-lib/lib/utils.d.ts.map +1 -0
  381. package/dist-lib/public/capabilities.d.ts +5 -0
  382. package/dist-lib/public/capabilities.d.ts.map +1 -0
  383. package/dist-lib/public/components.d.ts +12 -0
  384. package/dist-lib/public/components.d.ts.map +1 -0
  385. package/dist-lib/public/runtime.d.ts +11 -0
  386. package/dist-lib/public/runtime.d.ts.map +1 -0
  387. package/dist-lib/public/styles.d.ts +2 -0
  388. package/dist-lib/public/styles.d.ts.map +1 -0
  389. package/dist-lib/public/types.d.ts +6 -0
  390. package/dist-lib/public/types.d.ts.map +1 -0
  391. package/dist-lib/runtime.js +3464 -0
  392. package/dist-lib/stores/artifact.d.ts +13 -0
  393. package/dist-lib/stores/artifact.d.ts.map +1 -0
  394. package/dist-lib/stores/bootstrap.d.ts +23 -0
  395. package/dist-lib/stores/bootstrap.d.ts.map +1 -0
  396. package/dist-lib/stores/checkpoint.d.ts +48 -0
  397. package/dist-lib/stores/checkpoint.d.ts.map +1 -0
  398. package/dist-lib/stores/message.d.ts +11 -0
  399. package/dist-lib/stores/message.d.ts.map +1 -0
  400. package/dist-lib/stores/model.d.ts +19 -0
  401. package/dist-lib/stores/model.d.ts.map +1 -0
  402. package/dist-lib/stores/session.d.ts +14 -0
  403. package/dist-lib/stores/session.d.ts.map +1 -0
  404. package/dist-lib/stores/streaming.d.ts +49 -0
  405. package/dist-lib/stores/streaming.d.ts.map +1 -0
  406. package/dist-lib/stores/ui.d.ts +55 -0
  407. package/dist-lib/stores/ui.d.ts.map +1 -0
  408. package/dist-lib/styles.css +2 -0
  409. package/dist-lib/styles.js +0 -0
  410. package/dist-lib/types/api.d.ts +2 -0
  411. package/dist-lib/types/api.d.ts.map +1 -0
  412. package/dist-lib/types/bootstrap.d.ts +7 -0
  413. package/dist-lib/types/bootstrap.d.ts.map +1 -0
  414. package/dist-lib/types/capabilities.d.ts +47 -0
  415. package/dist-lib/types/capabilities.d.ts.map +1 -0
  416. package/dist-lib/types/input.d.ts +12 -0
  417. package/dist-lib/types/input.d.ts.map +1 -0
  418. package/dist-lib/types/session-events.d.ts +51 -0
  419. package/dist-lib/types/session-events.d.ts.map +1 -0
  420. package/dist-lib/types.js +0 -0
  421. package/dist-lib/utils/attachment.d.ts +4 -0
  422. package/dist-lib/utils/attachment.d.ts.map +1 -0
  423. package/dist-lib/utils/capabilities.d.ts +5 -0
  424. package/dist-lib/utils/capabilities.d.ts.map +1 -0
  425. package/dist-lib/utils/chunk-load-error.d.ts +2 -0
  426. package/dist-lib/utils/chunk-load-error.d.ts.map +1 -0
  427. package/dist-lib/utils/clipboard.d.ts +9 -0
  428. package/dist-lib/utils/clipboard.d.ts.map +1 -0
  429. package/dist-lib/utils/context.d.ts +23 -0
  430. package/dist-lib/utils/context.d.ts.map +1 -0
  431. package/dist-lib/utils/error.d.ts +2 -0
  432. package/dist-lib/utils/error.d.ts.map +1 -0
  433. package/dist-lib/utils/feedback.d.ts +90 -0
  434. package/dist-lib/utils/feedback.d.ts.map +1 -0
  435. package/dist-lib/utils/layout-constants.d.ts +13 -0
  436. package/dist-lib/utils/layout-constants.d.ts.map +1 -0
  437. package/dist-lib/utils/markdown.d.ts +2 -0
  438. package/dist-lib/utils/markdown.d.ts.map +1 -0
  439. package/dist-lib/utils/mobile-layout.d.ts +19 -0
  440. package/dist-lib/utils/mobile-layout.d.ts.map +1 -0
  441. package/dist-lib/utils/model-options.d.ts +15 -0
  442. package/dist-lib/utils/model-options.d.ts.map +1 -0
  443. package/dist-lib/utils/native-platform.d.ts +20 -0
  444. package/dist-lib/utils/native-platform.d.ts.map +1 -0
  445. package/dist-lib/utils/responses-stream.d.ts +13 -0
  446. package/dist-lib/utils/responses-stream.d.ts.map +1 -0
  447. package/dist-lib/utils/run-state.d.ts +3 -0
  448. package/dist-lib/utils/run-state.d.ts.map +1 -0
  449. package/dist-lib/utils/sandbox.d.ts +19 -0
  450. package/dist-lib/utils/sandbox.d.ts.map +1 -0
  451. package/dist-lib/utils/session-events.d.ts +40 -0
  452. package/dist-lib/utils/session-events.d.ts.map +1 -0
  453. package/dist-lib/utils/session-helpers.d.ts +6 -0
  454. package/dist-lib/utils/session-helpers.d.ts.map +1 -0
  455. package/dist-lib/utils/session-list.d.ts +9 -0
  456. package/dist-lib/utils/session-list.d.ts.map +1 -0
  457. package/dist-lib/utils/session.d.ts +5 -0
  458. package/dist-lib/utils/session.d.ts.map +1 -0
  459. package/dist-lib/utils/stream-control.d.ts +2 -0
  460. package/dist-lib/utils/stream-control.d.ts.map +1 -0
  461. package/dist-lib/utils/stream-parsing.d.ts +8 -0
  462. package/dist-lib/utils/stream-parsing.d.ts.map +1 -0
  463. package/dist-lib/utils/terminal-session.d.ts +10 -0
  464. package/dist-lib/utils/terminal-session.d.ts.map +1 -0
  465. package/dist-lib/utils/tool-display.d.ts +3 -0
  466. package/dist-lib/utils/tool-display.d.ts.map +1 -0
  467. package/dist-lib/utils/workspace.d.ts +52 -0
  468. package/dist-lib/utils/workspace.d.ts.map +1 -0
  469. package/package.json +131 -0
@@ -0,0 +1 @@
1
+ import{h as e}from"./mermaid-parser.core-BeKhTKTv.js";export{e as createInfoServices};
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./mermaid-parser.core-BeKhTKTv.js";import{An as t,Zt as n,kn as r,mt as i}from"./MermaidBlock-CV56XpfU.js";var a={parse:r(async n=>{let r=await e(`info`,n);t.debug(r)},`parse`)},o={version:`11.15.0`},s={parser:a,db:{getVersion:r(()=>o.version,`getVersion`)},renderer:{draw:r((e,r,a)=>{t.debug(`rendering info diagram
2
+ `+e);let o=i(r);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -0,0 +1 @@
1
+ function e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}export{e as t};
@@ -0,0 +1,70 @@
1
+ import{Jt as e,R as t,Xt as n,Zt as r,_n as i,en as a,hn as o,in as s,kn as c,mn as l,mt as u,rn as d,tn as f,v as p}from"./MermaidBlock-CV56XpfU.js";var m=(function(){var e=c(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,14],r=[1,12],i=[1,13],a=[6,7,8],o=[1,20],s=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:c(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:c(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim());break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:i},e(a,[2,3]),{1:[2,2]},e(a,[2,4]),e(a,[2,5]),{1:[2,6],6:n,12:15,13:r,14:i},{6:n,9:16,12:11,13:r,14:i},{6:o,7:s,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:o,7:s,10:22,11:l},{1:[2,7],6:n,12:15,13:r,14:i},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:c(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}c(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}c(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:c(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:c(function(e,t){return this.yy=t||this.yy||{},this._input=e,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]),this.offset=0,this},`setInput`),input:c(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:c(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:c(function(){return this._more=!0,this},`more`),reject:c(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
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:c(function(e){this.unput(this.match.slice(e))},`less`),pastInput:c(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:c(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:c(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:c(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:c(function(){return this.next()||this.lex()},`lex`),begin:c(function(e){this.conditionStack.push(e)},`begin`),popState:c(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:c(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:c(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:c(function(e){this.begin(e)},`pushState`),stateStackSize:c(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:c(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return c(g,`Parser`),g.prototype=h,h.Parser=g,new g})();m.parser=m;var h=m,g=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{c(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,e()}getRoot(){return this.root}addNode(e,t){let r=n.sanitizeText(t,d());if(!this.root){this.root={text:r,children:[]},this.stack=[{level:0,node:this.root}],i(r);return}this.baseLevel??=e;let a=e-this.baseLevel+1;for(a<=0&&(a=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=a;)this.stack.pop();let o=this.stack[this.stack.length-1].node,s={text:r,children:[]};o.children.push(s),this.stack.push({level:a,node:s})}getAccTitle(){return f()}setAccTitle(e){o(e)}getAccDescription(){return a()}setAccDescription(e){l(e)}getDiagramTitle(){return s()}setDiagramTitle(e){i(e)}},_=14,v=250,y=30,b=60,x=5,S=82*Math.PI/180,C=Math.cos(S),w=Math.sin(S),T=c((e,t,n)=>{let i=e.node().getBBox(),a=i.width+t*2,o=i.height+t*2;r(e,o,a,n),e.attr(`viewBox`,`${i.x-t} ${i.y-t} ${a} ${o}`)},`applyPaddedViewBox`),E=c((e,n,r,i)=>{let a=i.db.getRoot();if(!a)return;let o=d(),{look:s,handDrawnSeed:c,themeVariables:l}=o,f=t(o.fontSize)[0]??_,m=s===`handDrawn`,h=a.children??[],g=o.ishikawa?.diagramPadding??20,y=o.ishikawa?.useMaxWidth??!1,b=u(n),x=b.append(`g`).attr(`class`,`ishikawa`),S=m?p.svg(b.node()):void 0,C=S?{roughSvg:S,seed:c??0,lineColor:l?.lineColor??`#333`,fillColor:l?.mainBkg??`#fff`}:void 0,w=`ishikawa-arrow-${n}`;m||x.append(`defs`).append(`marker`).attr(`id`,w).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let E=0,k=v,A=m?void 0:L(x,E,k,E,k,`ishikawa-spine`);if(O(x,E,k,a.text,f,C),!h.length){m&&L(x,E,k,E,k,`ishikawa-spine`,C),T(b,g,y);return}E-=20;let j=h.filter((e,t)=>t%2==0),N=h.filter((e,t)=>t%2==1),P=D(j),F=D(N),I=P.total+F.total,R=v,z=v;if(I>0){let e=v*2,t=v*.3;R=Math.max(t,e*(P.total/I)),z=Math.max(t,e*(F.total/I))}let B=f*2;R=Math.max(R,P.max*B),z=Math.max(z,F.max*B),k=Math.max(R,v),A&&A.attr(`y1`,k).attr(`y2`,k),x.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${k})`);let V=Math.ceil(h.length/2);for(let e=0;e<V;e++){let t=x.append(`g`).attr(`class`,`ishikawa-pair`);for(let[n,r,i]of[[h[e*2],-1,R],[h[e*2+1],1,z]])n&&M(t,n,E,k,r,i,f,C);E=t.selectAll(`text`).nodes().reduce((e,t)=>Math.min(e,t.getBBox().x),1/0)}if(m)L(x,E,k,0,k,`ishikawa-spine`,C);else{A.attr(`x1`,E);let e=`url(#${w})`;x.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}T(b,g,y)},`draw`),D=c(e=>{let t=c(e=>e.children.reduce((e,n)=>e+1+t(n),0),`countDescendants`);return e.reduce((e,n)=>{let r=t(n);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),O=c((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),c=F(s,P(r,o),0,0,`ishikawa-head-label`,`start`,i),l=c.node().getBBox(),u=Math.max(60,l.width+6),d=Math.max(40,l.height*2+40),f=`M 0 ${-d/2} L 0 ${d/2} Q ${u*2.4} 0 0 ${-d/2} Z`;if(a){let e=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,f);c.attr(`transform`,`translate(${(u-l.width)/2-l.x+3},${-l.y-l.height/2})`)},`drawHead`),k=c((e,t)=>{let n=[],r=[],i=c((e,a,o)=>{let s=t===-1?[...e].reverse():e;for(let e of s){let t=n.length,s=e.children??[];n.push({depth:o,text:P(e.text,15),parentIndex:a,childCount:s.length}),o%2==0?(r.push(t),s.length&&i(s,t,o+1)):(s.length&&i(s,t,o+1),r.push(t))}},`walk`);return i(e,-1,2),{entries:n,yOrder:r}},`flattenTree`),A=c((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),c=F(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,c.x-20).attr(`y`,c.y-2).attr(`width`,c.width+40).attr(`height`,c.height+4)},`drawCauseLabel`),j=c((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,c=i/o,l=-c*6,u=s*6,d=t,f=n,p=`M ${d} ${f} L ${d-s*6*2+l} ${f-c*6*2+u} L ${d-s*6*2-l} ${f-c*6*2-u} Z`,m=a.roughSvg.path(p,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>m)},`drawArrowMarker`),M=c((e,t,n,r,i,a,o,s)=>{let c=t.children??[],l=a*(c.length?1:.2),u=-C*l,d=w*l*i,f=n+u,p=r+d;if(L(e,n,r,f,p,`ishikawa-branch`,s),s&&j(e,n,r,n-f,r-p,s),A(e,t.text,f,p,i,o,s),!c.length)return;let{entries:m,yOrder:h}=k(c,i),g=m.length,_=Array(g);for(let[e,t]of h.entries())_[t]=r+d*((e+1)/(g+1));let v=new Map;v.set(-1,{x0:n,y0:r,x1:f,y1:p,childCount:c.length,childrenDrawn:0});let S=-C,T=w*i,E=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of m.entries()){let r=_[t],i=v.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),c=0,l=0,u=0;if(n.depth%2==0){let e=i.y1-i.y0;c=I(i.x0,i.x1,e?(r-i.y0)/e:.5),l=r,u=c-(n.childCount>0?b+n.childCount*x:y),L(a,c,r,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,r,1,0,s),F(a,n.text,u,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;c=I(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),l=i.y0,u=c+S*((r-l)/T),L(a,c,l,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,l,c-u,l-r,s),F(a,n.text,u,r,E,`end`,o)}n.childCount>0&&v.set(t,{x0:c,y0:l,x1:u,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),N=c(e=>e.split(/<br\s*\/?>|\n/),`splitLines`),P=c((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(`
7
+ `)},`wrapText`),F=c((e,t,n,r,i,a,o)=>{let s=N(t),c=o*1.05,l=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*c/2);for(let[e,t]of s.entries())l.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:c).text(t);return l},`drawMultilineText`),I=c((e,t,n)=>e+(t-e)*n,`lerp`),L=c((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),R={parser:h,get db(){return new g},renderer:{draw:E},styles:c(e=>`
8
+ .ishikawa .ishikawa-spine,
9
+ .ishikawa .ishikawa-branch,
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke: ${e.lineColor};
12
+ stroke-width: 2;
13
+ fill: none;
14
+ }
15
+
16
+ .ishikawa .ishikawa-sub-branch {
17
+ stroke-width: 1;
18
+ }
19
+
20
+ .ishikawa .ishikawa-arrow {
21
+ fill: ${e.lineColor};
22
+ }
23
+
24
+ .ishikawa .ishikawa-head {
25
+ fill: ${e.mainBkg};
26
+ stroke: ${e.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa .ishikawa-label-box {
31
+ fill: ${e.mainBkg};
32
+ stroke: ${e.lineColor};
33
+ stroke-width: 2;
34
+ }
35
+
36
+ .ishikawa text {
37
+ font-family: ${e.fontFamily};
38
+ font-size: ${e.fontSize};
39
+ fill: ${e.textColor};
40
+ }
41
+
42
+ .ishikawa .ishikawa-head-label {
43
+ font-weight: 600;
44
+ text-anchor: middle;
45
+ dominant-baseline: middle;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .ishikawa .ishikawa-label {
50
+ text-anchor: end;
51
+ }
52
+
53
+ .ishikawa .ishikawa-label.cause {
54
+ text-anchor: middle;
55
+ dominant-baseline: middle;
56
+ }
57
+
58
+ .ishikawa .ishikawa-label.align {
59
+ text-anchor: end;
60
+ dominant-baseline: middle;
61
+ }
62
+
63
+ .ishikawa .ishikawa-label.up {
64
+ dominant-baseline: baseline;
65
+ }
66
+
67
+ .ishikawa .ishikawa-label.down {
68
+ dominant-baseline: hanging;
69
+ }
70
+ `,`getStyles`)};export{R as diagram};
@@ -0,0 +1 @@
1
+ function e(e){var t=e.statementIndent,n=e.jsonld,r=e.json||n,i=e.typescript,a=e.wordCharacters||/[\w$\xa1-\uffff]/,o=function(){function e(e){return{type:e,style:`keyword`}}var t=e(`keyword a`),n=e(`keyword b`),r=e(`keyword c`),i=e(`keyword d`),a=e(`operator`),o={type:`atom`,style:`atom`};return{if:e(`if`),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e(`new`),delete:r,void:r,throw:r,debugger:e(`debugger`),var:e(`var`),const:e(`var`),let:e(`var`),function:e(`function`),catch:e(`catch`),for:e(`for`),switch:e(`switch`),case:e(`case`),default:e(`default`),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e(`this`),class:e(`class`),super:e(`atom`),yield:r,export:e(`export`),import:e(`import`),extends:r,await:r}}(),s=/[+\-*&%=<>!?|~^@]/,c=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function l(e){for(var t=!1,n,r=!1;(n=e.next())!=null;){if(!t){if(n==`/`&&!r)return;n==`[`?r=!0:r&&n==`]`&&(r=!1)}t=!t&&n==`\\`}}var u,d;function f(e,t,n){return u=e,d=n,t}function p(e,t){var n=e.next();if(n==`"`||n==`'`)return t.tokenize=ee(n),t.tokenize(e,t);if(n==`.`&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return f(`number`,`number`);if(n==`.`&&e.match(`..`))return f(`spread`,`meta`);if(/[\[\]{}\(\),;\:\.]/.test(n))return f(n);if(n==`=`&&e.eat(`>`))return f(`=>`,`operator`);if(n==`0`&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return f(`number`,`number`);if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),f(`number`,`number`);if(n==`/`)return e.eat(`*`)?(t.tokenize=m,m(e,t)):e.eat(`/`)?(e.skipToEnd(),f(`comment`,`comment`)):et(e,t,1)?(l(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f(`regexp`,`string.special`)):(e.eat(`=`),f(`operator`,`operator`,e.current()));if(n=="`")return t.tokenize=h,h(e,t);if(n==`#`&&e.peek()==`!`)return e.skipToEnd(),f(`meta`,`meta`);if(n==`#`&&e.eatWhile(a))return f(`variable`,`property`);if(n==`<`&&e.match(`!--`)||n==`-`&&e.match(`->`)&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),f(`comment`,`comment`);if(s.test(n))return(n!=`>`||!t.lexical||t.lexical.type!=`>`)&&(e.eat(`=`)?(n==`!`||n==`=`)&&e.eat(`=`):/[<>*+\-|&?]/.test(n)&&(e.eat(n),n==`>`&&e.eat(n))),n==`?`&&e.eat(`.`)?f(`.`):f(`operator`,`operator`,e.current());if(a.test(n)){e.eatWhile(a);var r=e.current();if(t.lastType!=`.`){if(o.propertyIsEnumerable(r)){var i=o[r];return f(i.type,i.style,r)}if(r==`async`&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return f(`async`,`keyword`,r)}return f(`variable`,`variable`,r)}}function ee(e){return function(t,r){var i=!1,a;if(n&&t.peek()==`@`&&t.match(c))return r.tokenize=p,f(`jsonld-keyword`,`meta`);for(;(a=t.next())!=null&&!(a==e&&!i);)i=!i&&a==`\\`;return i||(r.tokenize=p),f(`string`,`string`)}}function m(e,t){for(var n=!1,r;r=e.next();){if(r==`/`&&n){t.tokenize=p;break}n=r==`*`}return f(`comment`,`comment`)}function h(e,t){for(var n=!1,r;(r=e.next())!=null;){if(!n&&(r=="`"||r==`$`&&e.eat(`{`))){t.tokenize=p;break}n=!n&&r==`\\`}return f(`quasi`,`string.special`,e.current())}var te=`([{}])`;function ne(e,t){t.fatArrowAt&&=null;var n=e.string.indexOf(`=>`,e.start);if(!(n<0)){if(i){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,s=!1,c=n-1;c>=0;--c){var l=e.string.charAt(c),u=te.indexOf(l);if(u>=0&&u<3){if(!o){++c;break}if(--o==0){l==`(`&&(s=!0);break}}else if(u>=3&&u<6)++o;else if(a.test(l))s=!0;else if(/["'\/`]/.test(l))for(;;--c){if(c==0)return;if(e.string.charAt(c-1)==l&&e.string.charAt(c-2)!=`\\`){c--;break}}else if(s&&!o){++c;break}}s&&!o&&(t.fatArrowAt=c)}}var re={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,r!=null&&(this.align=r)}function ae(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function oe(e,t,n,i,a){var o=e.cc;for(g.state=e,g.stream=a,g.marked=null,g.cc=o,g.style=t,e.lexical.hasOwnProperty(`align`)||(e.lexical.align=!0);;)if((o.length?o.pop():r?A:k)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return g.marked?g.marked:n==`variable`&&ae(e,i)?`variableName.local`:t}}var g={state:null,column:null,marked:null,cc:null};function _(){for(var e=arguments.length-1;e>=0;e--)g.cc.push(arguments[e])}function v(){return _.apply(null,arguments),!0}function se(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function y(t){var n=g.state;if(g.marked=`def`,n.context){if(n.lexical.info==`var`&&n.context&&n.context.block){var r=ce(t,n.context);if(r!=null){n.context=r;return}}else if(!se(t,n.localVars)){n.localVars=new S(t,n.localVars);return}}e.globalVars&&!se(t,n.globalVars)&&(n.globalVars=new S(t,n.globalVars))}function ce(e,t){if(!t)return null;if(t.block){var n=ce(e,t.prev);return n?n==t.prev?t:new x(n,t.vars,!0):null}else if(se(e,t.vars))return t;else return new x(t.prev,new S(e,t.vars),!1)}function b(e){return e==`public`||e==`private`||e==`protected`||e==`abstract`||e==`readonly`}function x(e,t,n){this.prev=e,this.vars=t,this.block=n}function S(e,t){this.name=e,this.next=t}var le=new S(`this`,new S(`arguments`,null));function C(){g.state.context=new x(g.state.context,g.state.localVars,!1),g.state.localVars=le}function w(){g.state.context=new x(g.state.context,g.state.localVars,!0),g.state.localVars=null}C.lex=w.lex=!0;function T(){g.state.localVars=g.state.context.vars,g.state.context=g.state.context.prev}T.lex=!0;function E(e,t){var n=function(){var n=g.state,r=n.indented;if(n.lexical.type==`stat`)r=n.lexical.indented;else for(var i=n.lexical;i&&i.type==`)`&&i.align;i=i.prev)r=i.indented;n.lexical=new ie(r,g.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function D(){var e=g.state;e.lexical.prev&&(e.lexical.type==`)`&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}D.lex=!0;function O(e){function t(n){return n==e?v():e==`;`||n==`}`||n==`)`||n==`]`?_():v(t)}return t}function k(e,t){return e==`var`?v(E(`vardef`,t),Me,O(`;`),D):e==`keyword a`?v(E(`form`),de,k,D):e==`keyword b`?v(E(`form`),k,D):e==`keyword d`?g.stream.match(/^\s*$/,!1)?v():v(E(`stat`),M,O(`;`),D):e==`debugger`?v(O(`;`)):e==`{`?v(E(`}`),w,B,D,T):e==`;`?v():e==`if`?(g.state.lexical.info==`else`&&g.state.cc[g.state.cc.length-1]==D&&g.state.cc.pop()(),v(E(`form`),de,k,D,Ie)):e==`function`?v(Y):e==`for`?v(E(`form`),w,Le,k,T,D):e==`class`||i&&t==`interface`?(g.marked=`keyword`,v(E(`form`,e==`class`?e:t),Ve,D)):e==`variable`?i&&t==`declare`?(g.marked=`keyword`,v(k)):i&&(t==`module`||t==`enum`||t==`type`)&&g.stream.match(/^\s*\w/,!1)?(g.marked=`keyword`,t==`enum`?v(Ze):t==`type`?v(ze,O(`operator`),H,O(`;`)):v(E(`form`),K,O(`{`),E(`}`),B,D,D)):i&&t==`namespace`?(g.marked=`keyword`,v(E(`form`),A,k,D)):i&&t==`abstract`?(g.marked=`keyword`,v(k)):v(E(`stat`),ye):e==`switch`?v(E(`form`),de,O(`{`),E(`}`,`switch`),w,B,D,D,T):e==`case`?v(A,O(`:`)):e==`default`?v(O(`:`)):e==`catch`?v(E(`form`),C,ue,k,D,T):e==`export`?v(E(`stat`),Ue,D):e==`import`?v(E(`stat`),Ge,D):e==`async`?v(k):t==`@`?v(A,k):_(E(`stat`),A,O(`;`),D)}function ue(e){if(e==`(`)return v(Z,O(`)`))}function A(e,t){return fe(e,t,!1)}function j(e,t){return fe(e,t,!0)}function de(e){return e==`(`?v(E(`)`),M,O(`)`),D):_()}function fe(e,t,n){if(g.state.fatArrowAt==g.stream.start){var r=n?he:me;if(e==`(`)return v(C,E(`)`),R(Z,`)`),D,O(`=>`),r,T);if(e==`variable`)return _(C,K,O(`=>`),r,T)}var a=n?P:N;return re.hasOwnProperty(e)?v(a):e==`function`?v(Y,a):e==`class`||i&&t==`interface`?(g.marked=`keyword`,v(E(`form`),Be,D)):e==`keyword c`||e==`async`?v(n?j:A):e==`(`?v(E(`)`),M,O(`)`),D,a):e==`operator`||e==`spread`?v(n?j:A):e==`[`?v(E(`]`),Xe,D,a):e==`{`?z(I,`}`,null,a):e==`quasi`?_(F,a):e==`new`?v(ge(n)):v()}function M(e){return e.match(/[;\}\)\],]/)?_():_(A)}function N(e,t){return e==`,`?v(M):P(e,t,!1)}function P(e,t,n){var r=n==0?N:P,a=n==0?A:j;if(e==`=>`)return v(C,n?he:me,T);if(e==`operator`)return/\+\+|--/.test(t)||i&&t==`!`?v(r):i&&t==`<`&&g.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?v(E(`>`),R(H,`>`),D,r):t==`?`?v(A,O(`:`),a):v(a);if(e==`quasi`)return _(F,r);if(e!=`;`){if(e==`(`)return z(j,`)`,`call`,r);if(e==`.`)return v(be,r);if(e==`[`)return v(E(`]`),M,O(`]`),D,r);if(i&&t==`as`)return g.marked=`keyword`,v(H,r);if(e==`regexp`)return g.state.lastType=g.marked=`operator`,g.stream.backUp(g.stream.pos-g.stream.start-1),v(a)}}function F(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?v(M,pe):v(F):_()}function pe(e){if(e==`}`)return g.marked=`string.special`,g.state.tokenize=h,v(F)}function me(e){return ne(g.stream,g.state),_(e==`{`?k:A)}function he(e){return ne(g.stream,g.state),_(e==`{`?k:j)}function ge(e){return function(t){return t==`.`?v(e?ve:_e):t==`variable`&&i?v(Ae,e?P:N):_(e?j:A)}}function _e(e,t){if(t==`target`)return g.marked=`keyword`,v(N)}function ve(e,t){if(t==`target`)return g.marked=`keyword`,v(P)}function ye(e){return e==`:`?v(D,k):_(N,O(`;`),D)}function be(e){if(e==`variable`)return g.marked=`property`,v()}function I(e,t){if(e==`async`)return g.marked=`property`,v(I);if(e==`variable`||g.style==`keyword`){if(g.marked=`property`,t==`get`||t==`set`)return v(xe);var r;return i&&g.state.fatArrowAt==g.stream.start&&(r=g.stream.match(/^\s*:\s*/,!1))&&(g.state.fatArrowAt=g.stream.pos+r[0].length),v(L)}else if(e==`number`||e==`string`)return g.marked=n?`property`:g.style+` property`,v(L);else if(e==`jsonld-keyword`)return v(L);else if(i&&b(t))return g.marked=`keyword`,v(I);else if(e==`[`)return v(A,V,O(`]`),L);else if(e==`spread`)return v(j,L);else if(t==`*`)return g.marked=`keyword`,v(I);else if(e==`:`)return _(L)}function xe(e){return e==`variable`?(g.marked=`property`,v(Y)):_(L)}function L(e){if(e==`:`)return v(j);if(e==`(`)return _(Y)}function R(e,t,n){function r(i,a){if(n?n.indexOf(i)>-1:i==`,`){var o=g.state.lexical;return o.info==`call`&&(o.pos=(o.pos||0)+1),v(function(n,r){return n==t||r==t?_():_(e)},r)}return i==t||a==t?v():n&&n.indexOf(`;`)>-1?_(e):v(O(t))}return function(n,i){return n==t||i==t?v():_(e,r)}}function z(e,t,n){for(var r=3;r<arguments.length;r++)g.cc.push(arguments[r]);return v(E(t,n),R(e,t),D)}function B(e){return e==`}`?v():_(k,B)}function V(e,t){if(i){if(e==`:`)return v(H);if(t==`?`)return v(V)}}function Se(e,t){if(i&&(e==`:`||t==`in`))return v(H)}function Ce(e){if(i&&e==`:`)return g.stream.match(/^\s*\w+\s+is\b/,!1)?v(A,we,H):v(H)}function we(e,t){if(t==`is`)return g.marked=`keyword`,v()}function H(e,t){if(t==`keyof`||t==`typeof`||t==`infer`||t==`readonly`)return g.marked=`keyword`,v(t==`typeof`?j:H);if(e==`variable`||t==`void`)return g.marked=`type`,v(W);if(t==`|`||t==`&`)return v(H);if(e==`string`||e==`number`||e==`atom`)return v(W);if(e==`[`)return v(E(`]`),R(H,`]`,`,`),D,W);if(e==`{`)return v(E(`}`),Ee,D,W);if(e==`(`)return v(R(ke,`)`),Te,W);if(e==`<`)return v(R(H,`>`),H);if(e==`quasi`)return _(De,W)}function Te(e){if(e==`=>`)return v(H)}function Ee(e){return e.match(/[\}\)\]]/)?v():e==`,`||e==`;`?v(Ee):_(U,Ee)}function U(e,t){if(e==`variable`||g.style==`keyword`)return g.marked=`property`,v(U);if(t==`?`||e==`number`||e==`string`)return v(U);if(e==`:`)return v(H);if(e==`[`)return v(O(`variable`),Se,O(`]`),U);if(e==`(`)return _(X,U);if(!e.match(/[;\}\)\],]/))return v()}function De(e,t){return e==`quasi`?t.slice(t.length-2)=="${"?v(H,Oe):v(De):_()}function Oe(e){if(e==`}`)return g.marked=`string.special`,g.state.tokenize=h,v(De)}function ke(e,t){return e==`variable`&&g.stream.match(/^\s*[?:]/,!1)||t==`?`?v(ke):e==`:`?v(H):e==`spread`?v(ke):_(H)}function W(e,t){if(t==`<`)return v(E(`>`),R(H,`>`),D,W);if(t==`|`||e==`.`||t==`&`)return v(H);if(e==`[`)return v(H,O(`]`),W);if(t==`extends`||t==`implements`)return g.marked=`keyword`,v(H);if(t==`?`)return v(H,O(`:`),H)}function Ae(e,t){if(t==`<`)return v(E(`>`),R(H,`>`),D,W)}function G(){return _(H,je)}function je(e,t){if(t==`=`)return v(H)}function Me(e,t){return t==`enum`?(g.marked=`keyword`,v(Ze)):_(K,V,q,Fe)}function K(e,t){if(i&&b(t))return g.marked=`keyword`,v(K);if(e==`variable`)return y(t),v();if(e==`spread`)return v(K);if(e==`[`)return z(Pe,`]`);if(e==`{`)return z(Ne,`}`)}function Ne(e,t){return e==`variable`&&!g.stream.match(/^\s*:/,!1)?(y(t),v(q)):(e==`variable`&&(g.marked=`property`),e==`spread`?v(K):e==`}`?_():e==`[`?v(A,O(`]`),O(`:`),Ne):v(O(`:`),K,q))}function Pe(){return _(K,q)}function q(e,t){if(t==`=`)return v(j)}function Fe(e){if(e==`,`)return v(Me)}function Ie(e,t){if(e==`keyword b`&&t==`else`)return v(E(`form`,`else`),k,D)}function Le(e,t){if(t==`await`)return v(Le);if(e==`(`)return v(E(`)`),Re,D)}function Re(e){return e==`var`?v(Me,J):e==`variable`?v(J):_(J)}function J(e,t){return e==`)`?v():e==`;`?v(J):t==`in`||t==`of`?(g.marked=`keyword`,v(A,J)):_(A,J)}function Y(e,t){if(t==`*`)return g.marked=`keyword`,v(Y);if(e==`variable`)return y(t),v(Y);if(e==`(`)return v(C,E(`)`),R(Z,`)`),D,Ce,k,T);if(i&&t==`<`)return v(E(`>`),R(G,`>`),D,Y)}function X(e,t){if(t==`*`)return g.marked=`keyword`,v(X);if(e==`variable`)return y(t),v(X);if(e==`(`)return v(C,E(`)`),R(Z,`)`),D,Ce,T);if(i&&t==`<`)return v(E(`>`),R(G,`>`),D,X)}function ze(e,t){if(e==`keyword`||e==`variable`)return g.marked=`type`,v(ze);if(t==`<`)return v(E(`>`),R(G,`>`),D)}function Z(e,t){return t==`@`&&v(A,Z),e==`spread`?v(Z):i&&b(t)?(g.marked=`keyword`,v(Z)):i&&e==`this`?v(V,q):_(K,V,q)}function Be(e,t){return e==`variable`?Ve(e,t):Q(e,t)}function Ve(e,t){if(e==`variable`)return y(t),v(Q)}function Q(e,t){if(t==`<`)return v(E(`>`),R(G,`>`),D,Q);if(t==`extends`||t==`implements`||i&&e==`,`)return t==`implements`&&(g.marked=`keyword`),v(i?H:A,Q);if(e==`{`)return v(E(`}`),$,D)}function $(e,t){if(e==`async`||e==`variable`&&(t==`static`||t==`get`||t==`set`||i&&b(t))&&g.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return g.marked=`keyword`,v($);if(e==`variable`||g.style==`keyword`)return g.marked=`property`,v(He,$);if(e==`number`||e==`string`)return v(He,$);if(e==`[`)return v(A,V,O(`]`),He,$);if(t==`*`)return g.marked=`keyword`,v($);if(i&&e==`(`)return _(X,$);if(e==`;`||e==`,`)return v($);if(e==`}`)return v();if(t==`@`)return v(A,$)}function He(e,t){if(t==`!`||t==`?`)return v(He);if(e==`:`)return v(H,q);if(t==`=`)return v(j);var n=g.state.lexical.prev;return _(n&&n.info==`interface`?X:Y)}function Ue(e,t){return t==`*`?(g.marked=`keyword`,v(Ye,O(`;`))):t==`default`?(g.marked=`keyword`,v(A,O(`;`))):e==`{`?v(R(We,`}`),Ye,O(`;`)):_(k)}function We(e,t){if(t==`as`)return g.marked=`keyword`,v(O(`variable`));if(e==`variable`)return _(j,We)}function Ge(e){return e==`string`?v():e==`(`?_(A):e==`.`?_(N):_(Ke,qe,Ye)}function Ke(e,t){return e==`{`?z(Ke,`}`):(e==`variable`&&y(t),t==`*`&&(g.marked=`keyword`),v(Je))}function qe(e){if(e==`,`)return v(Ke,qe)}function Je(e,t){if(t==`as`)return g.marked=`keyword`,v(Ke)}function Ye(e,t){if(t==`from`)return g.marked=`keyword`,v(A)}function Xe(e){return e==`]`?v():_(R(j,`]`))}function Ze(){return _(E(`form`),K,O(`{`),E(`}`),R(Qe,`}`),D,D)}function Qe(){return _(K,q)}function $e(e,t){return e.lastType==`operator`||e.lastType==`,`||s.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function et(e,t,n){return t.tokenize==p&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||t.lastType==`quasi`&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return{name:e.name,startState:function(t){var n={tokenize:p,lastType:`sof`,cc:[],lexical:new ie(-t,0,`block`,!1),localVars:e.localVars,context:e.localVars&&new x(null,null,!1),indented:0};return e.globalVars&&typeof e.globalVars==`object`&&(n.globalVars=e.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty(`align`)||(t.lexical.align=!1),t.indented=e.indentation(),ne(e,t)),t.tokenize!=m&&e.eatSpace())return null;var n=t.tokenize(e,t);return u==`comment`?n:(t.lastType=u==`operator`&&(d==`++`||d==`--`)?`incdec`:u,oe(t,n,u,d,e))},indent:function(n,r,i){if(n.tokenize==m||n.tokenize==h)return null;if(n.tokenize!=p)return 0;var a=r&&r.charAt(0),o=n.lexical,s;if(!/^\s*else\b/.test(r))for(var c=n.cc.length-1;c>=0;--c){var l=n.cc[c];if(l==D)o=o.prev;else if(l!=Ie&&l!=T)break}for(;(o.type==`stat`||o.type==`form`)&&(a==`}`||(s=n.cc[n.cc.length-1])&&(s==N||s==P)&&!/^[,\.=+\-*:?[\(]/.test(r));)o=o.prev;t&&o.type==`)`&&o.prev.type==`stat`&&(o=o.prev);var u=o.type,d=a==u;return u==`vardef`?o.indented+(n.lastType==`operator`||n.lastType==`,`?o.info.length+1:0):u==`form`&&a==`{`?o.indented:u==`form`?o.indented+i.unit:u==`stat`?o.indented+($e(n,r)?t||i.unit:0):o.info==`switch`&&!d&&e.doubleIndentSwitch!=0?o.indented+(/^(?:case|default)\b/.test(r)?i.unit:2*i.unit):o.align?o.column+ +!d:o.indented+(d?0:i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:r?void 0:{line:`//`,block:{open:`/*`,close:`*/`}},closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},wordChars:`$`}}}var t=e({name:`javascript`});e({name:`json`,json:!0});var n=e({name:`json`,jsonld:!0});e({name:`typescript`,typescript:!0});export{t as javascript,n as jsonld};
@@ -0,0 +1,139 @@
1
+ import{t as e}from"./arc-D3eSpKQi.js";import{t}from"./chunk-FMBD7UC4-C79rRamw.js";import{a as n,n as r,o as i,s as a}from"./chunk-ND2GUHAM-EqP27pbM.js";import{Gt as o,Jt as s,Zt as c,_n as l,en as u,hn as d,in as f,kn as p,mn as m,rn as h,tn as g}from"./MermaidBlock-CV56XpfU.js";var _=(function(){var e=p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],n=[1,9],r=[1,10],i=[1,11],a=[1,12],o=[1,13],s=[1,14],c={trace:p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`;break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:n,12:r,14:i,16:a,17:o,18:s},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}p(b,`popStack`);function x(){var e=r.pop()||h.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==f?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};c.lexer=(function(){return{EOF:1,parseError:p(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:p(function(e,t){return this.yy=t||this.yy||{},this._input=e,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]),this.offset=0,this},`setInput`),input:p(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:p(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:p(function(){return this._more=!0,this},`more`),reject:p(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
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:p(function(e){this.unput(this.match.slice(e))},`less`),pastInput:p(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:p(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:p(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:p(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:p(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:p(function(){return this.next()||this.lex()},`lex`),begin:p(function(e){this.conditionStack.push(e)},`begin`),popState:p(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:p(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:p(function(e){this.begin(e)},`pushState`),stateStackSize:p(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:p(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\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,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function l(){this.yy={}}return p(l,`Parser`),l.prototype=c,c.Parser=l,new l})();_.parser=_;var v=_,y=``,b=[],x=[],S=[],C=p(function(){b.length=0,x.length=0,y=``,S.length=0,s()},`clear`),w=p(function(e){y=e,b.push(e)},`addSection`),T=p(function(){return b},`getSections`),E=p(function(){let e=A(),t=0;for(;!e&&t<100;)e=A(),t++;return x.push(...S),x},`getTasks`),D=p(function(){let e=[];return x.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),O=p(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:y,type:y,people:a,task:e,score:r};S.push(o)},`addTask`),k=p(function(e){let t={section:y,type:y,description:e,task:e,classes:[]};x.push(t)},`addTaskOrg`),A=p(function(){let e=p(function(e){return S[e].processed},`compileTask`),t=!0;for(let[n,r]of S.entries())e(n),t&&=r.processed;return t},`compileTasks`),j={getConfig:p(()=>h().journey,`getConfig`),clear:C,setDiagramTitle:l,getDiagramTitle:f,setAccTitle:d,getAccTitle:g,setAccDescription:m,getAccDescription:u,addSection:w,getSections:T,getTasks:E,addTask:O,addTaskOrg:k,getActors:p(function(){return D()},`getActors`)},M=p(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.textColor};
9
+ }
10
+ .mouth {
11
+ stroke: #666;
12
+ }
13
+
14
+ line {
15
+ stroke: ${e.textColor}
16
+ }
17
+
18
+ .legend {
19
+ fill: ${e.textColor};
20
+ font-family: ${e.fontFamily};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${e.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`};
32
+ stroke: #999;
33
+ }
34
+
35
+ .node rect,
36
+ .node circle,
37
+ .node ellipse,
38
+ .node polygon,
39
+ .node path {
40
+ fill: ${e.mainBkg};
41
+ stroke: ${e.nodeBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .node .label {
46
+ text-align: center;
47
+ }
48
+ .node.clickable {
49
+ cursor: pointer;
50
+ }
51
+
52
+ .arrowheadPath {
53
+ fill: ${e.arrowheadColor};
54
+ }
55
+
56
+ .edgePath .path {
57
+ stroke: ${e.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${e.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${e.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${e.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: ${e.fontFamily};
87
+ font-size: 12px;
88
+ background: ${e.tertiaryColor};
89
+ border: 1px solid ${e.border2};
90
+ border-radius: 2px;
91
+ pointer-events: none;
92
+ z-index: 100;
93
+ }
94
+
95
+ .task-type-0, .section-type-0 {
96
+ ${e.fillType0?`fill: ${e.fillType0}`:``};
97
+ }
98
+ .task-type-1, .section-type-1 {
99
+ ${e.fillType0?`fill: ${e.fillType1}`:``};
100
+ }
101
+ .task-type-2, .section-type-2 {
102
+ ${e.fillType0?`fill: ${e.fillType2}`:``};
103
+ }
104
+ .task-type-3, .section-type-3 {
105
+ ${e.fillType0?`fill: ${e.fillType3}`:``};
106
+ }
107
+ .task-type-4, .section-type-4 {
108
+ ${e.fillType0?`fill: ${e.fillType4}`:``};
109
+ }
110
+ .task-type-5, .section-type-5 {
111
+ ${e.fillType0?`fill: ${e.fillType5}`:``};
112
+ }
113
+ .task-type-6, .section-type-6 {
114
+ ${e.fillType0?`fill: ${e.fillType6}`:``};
115
+ }
116
+ .task-type-7, .section-type-7 {
117
+ ${e.fillType0?`fill: ${e.fillType7}`:``};
118
+ }
119
+
120
+ .actor-0 {
121
+ ${e.actor0?`fill: ${e.actor0}`:``};
122
+ }
123
+ .actor-1 {
124
+ ${e.actor1?`fill: ${e.actor1}`:``};
125
+ }
126
+ .actor-2 {
127
+ ${e.actor2?`fill: ${e.actor2}`:``};
128
+ }
129
+ .actor-3 {
130
+ ${e.actor3?`fill: ${e.actor3}`:``};
131
+ }
132
+ .actor-4 {
133
+ ${e.actor4?`fill: ${e.actor4}`:``};
134
+ }
135
+ .actor-5 {
136
+ ${e.actor5?`fill: ${e.actor5}`:``};
137
+ }
138
+ ${t()}
139
+ `,`getStyles`),N=p(function(e,t){return n(e,t)},`drawRect`),P=p(function(t,n){let r=t.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=t.append(`g`);i.append(`circle`).attr(`cx`,n.cx-15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+15/3).attr(`cy`,n.cy-15/3).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(t){let r=e().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);t.append(`path`).attr(`class`,`mouth`).attr(`d`,r).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}p(a,`smile`);function o(t){let r=e().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);t.append(`path`).attr(`class`,`mouth`).attr(`d`,r).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}p(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return p(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),F=p(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),I=p(function(e,t){return i(e,t)},`drawText`),L=p(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}p(n,`genPoints`);let r=e.append(`polygon`);r.attr(`points`,n(t.x,t.y,50,20,7)),r.attr(`class`,`labelBox`),t.y+=t.labelMargin,t.x+=.5*t.labelMargin,I(e,t)},`drawLabel`),R=p(function(e,t,n){let r=e.append(`g`),i=a();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,N(r,i),H(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,B=p(function(e,t,n,r){let i=t.x+n.width/2,o=e.append(`g`);z++,o.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),P(o,{cx:i,cy:300+(5-t.score)*30,score:t.score});let s=a();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=n.width,s.height=n.height,s.class=`task task-type-`+t.num,s.rx=3,s.ry=3,N(o,s);let c=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color;F(o,{cx:c,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position}),c+=10}),H(n)(t.task,o,s.x,s.y,s.width,s.height,{class:`task`},n,t.colour)},`drawTask`),V=p(function(e,t){r(e,t)},`drawBackgroundRect`),H=(function(){function e(e,t,n,i,a,o,s,c){r(t.append(`text`).attr(`x`,n+a/2).attr(`y`,i+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}p(e,`byText`);function t(e,t,n,i,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,i).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,i+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),r(p,s)}}p(t,`byTspan`);function n(e,n,i,a,o,s,c,l){let u=n.append(`switch`),d=u.append(`foreignObject`).attr(`x`,i).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),t(e,u,i,a,o,s,c,l),r(d,c)}p(n,`byFo`);function r(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return p(r,`_setTextAttrs`),function(r){return r.textPlacement===`fo`?n:r.textPlacement===`old`?e:t}})(),U={drawRect:N,drawCircle:F,drawSection:R,drawText:I,drawLabel:L,drawTask:B,drawBackgroundRect:V,initGraphics:p(function(e,t){z=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},W=p(function(e){Object.keys(e).forEach(function(t){J[t]=e[t]})},`setConf`),G={},K=0;function q(e){let t=h().journey,n=t.maxLabelWidth;K=0;let r=60;Object.keys(G).forEach(i=>{let a=G[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:G[i].position};U.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),c=s.node().getBoundingClientRect().width;s.remove();let l=[];if(c<=n)l=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&l.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(l.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&l.push(r),s.remove()}l.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=U.drawText(e,a).node().getBoundingClientRect().width;o>K&&o>t.leftMargin-o&&(K=o)}),r+=Math.max(20,l.length*20)})}p(q,`drawActorLegend`);var J=h().journey,Y=0,ee=p(function(e,t,n,r){let i=h(),a=i.journey.titleColor,s=i.journey.titleFontSize,l=i.journey.titleFontFamily,u=i.securityLevel,d;u===`sandbox`&&(d=o(`#i`+t));let f=o(u===`sandbox`?d.nodes()[0].contentDocument.body:`body`);X.init();let p=f.select(`#`+t);U.initGraphics(p,t);let m=r.db.getTasks(),g=r.db.getDiagramTitle(),_=r.db.getActors();for(let e in G)delete G[e];let v=0;_.forEach(e=>{G[e]={color:J.actorColours[v%J.actorColours.length],position:v},v++}),q(p),Y=J.leftMargin+K,X.insert(0,0,Y,Object.keys(G).length*50),te(p,m,0,t);let y=X.getBounds();g&&p.append(`text`).text(g).attr(`x`,Y).attr(`font-size`,s).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,a).attr(`font-family`,l);let b=y.stopy-y.starty+2*J.diagramMarginY,x=Y+y.stopx+2*J.diagramMarginX;c(p,b,x,J.useMaxWidth),p.append(`line`).attr(`x1`,Y).attr(`y1`,J.height*4).attr(`x2`,x-Y-4).attr(`y2`,J.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+t+`-arrowhead)`);let S=g?70:0;p.attr(`viewBox`,`${y.startx} -25 ${x} ${b+S}`),p.attr(`preserveAspectRatio`,`xMinYMin meet`),p.attr(`height`,b+S+25)},`draw`),X={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:p(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:p(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:p(function(e,t,n,r){let i=h().journey,a=this,o=0;function s(s){return p(function(c){o++;let l=a.sequenceItems.length-o+1;a.updateVal(c,`starty`,t-l*i.boxMargin,Math.min),a.updateVal(c,`stopy`,r+l*i.boxMargin,Math.max),a.updateVal(X.data,`startx`,e-l*i.boxMargin,Math.min),a.updateVal(X.data,`stopx`,n+l*i.boxMargin,Math.max),s!==`activation`&&(a.updateVal(c,`startx`,e-l*i.boxMargin,Math.min),a.updateVal(c,`stopx`,n+l*i.boxMargin,Math.max),a.updateVal(X.data,`starty`,t-l*i.boxMargin,Math.min),a.updateVal(X.data,`stopy`,r+l*i.boxMargin,Math.max))},`updateItemBounds`)}p(s,`updateFn`),this.sequenceItems.forEach(s())},`updateBounds`),insert:p(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(X.data,`startx`,i,Math.min),this.updateVal(X.data,`starty`,o,Math.min),this.updateVal(X.data,`stopx`,a,Math.max),this.updateVal(X.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:p(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:p(function(){return this.verticalPos},`getVerticalPos`),getBounds:p(function(){return this.data},`getBounds`)},Z=J.sectionFills,Q=J.sectionColours,te=p(function(e,t,n,r){let i=h().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,c=`#CCC`,l=`black`,u=0;for(let[n,d]of t.entries()){if(a!==d.section){c=Z[s%Z.length],u=s%Z.length,l=Q[s%Q.length];let r=0,o=d.section;for(let e=n;e<t.length&&t[e].section==o;e++)r+=1;let f={x:n*i.taskMargin+n*i.width+Y,y:50,text:d.section,fill:c,num:u,colour:l,taskCount:r};U.drawSection(e,f,i),a=d.section,s++}let f=d.people.reduce((e,t)=>(G[t]&&(e[t]=G[t]),e),{});d.x=n*i.taskMargin+n*i.width+Y,d.y=o,d.width=i.diagramMarginX,d.height=i.diagramMarginY,d.colour=l,d.fill=c,d.num=u,d.actors=f,U.drawTask(e,d,i,r),X.insert(d.x,d.y,d.x+d.width+i.taskMargin,450)}},`drawTasks`),$={setConf:W,draw:ee},ne={parser:v,db:j,renderer:$,styles:M,init:p(e=>{$.setConf(e.journey),j.clear()},`init`)};export{ne as diagram};
@@ -0,0 +1 @@
1
+ function e(e,t,n){return n===void 0&&(n=``),t===void 0&&(t=`\\b`),RegExp(`^`+n+`((`+e.join(`)|(`)+`))`+t)}var t=`\\\\[0-7]{1,3}`,n=`\\\\x[A-Fa-f0-9]{1,2}`,r=`\\\\[abefnrtv0%?'"\\\\]`,i=`([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])`,a=[`[<>]:`,`[<>=]=`,`<<=?`,`>>>?=?`,`=>`,`--?>`,`<--[->]?`,`\\/\\/`,`\\.{2,3}`,`[\\.\\\\%*+\\-<>!\\/^|&]=?`,`\\?`,`\\$`,`~`,`:`],o=e(`[<>]:,[<>=]=,[!=]==,<<=?,>>>?=?,=>?,--?>,<--[->]?,\\/\\/,[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?,\\?,\\$,~,:,\\u00D7,\\u2208,\\u2209,\\u220B,\\u220C,\\u2218,\\u221A,\\u221B,\\u2229,\\u222A,\\u2260,\\u2264,\\u2265,\\u2286,\\u2288,\\u228A,\\u22C5,\\b(in|isa)\\b(?!.?\\()`.split(`,`),``),s=/^[;,()[\]{}]/,c=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=e([t,n,r,i],`'`),u=[`begin`,`function`,`type`,`struct`,`immutable`,`let`,`macro`,`for`,`while`,`quote`,`if`,`else`,`elseif`,`try`,`finally`,`catch`,`do`],d=[`end`,`else`,`elseif`,`catch`,`finally`],f=`if.else.elseif.while.for.begin.let.end.do.try.catch.finally.return.break.continue.global.local.const.export.import.importall.using.function.where.macro.module.baremodule.struct.type.mutable.immutable.quote.typealias.abstract.primitive.bitstype`.split(`.`),p=[`true`,`false`,`nothing`,`NaN`,`Inf`],m=e(u),h=e(d),g=e(f),_=e(p),v=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,y=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,b=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,x=e(a,``,`@`),S=e(a,``,`:`);function C(e){return e.nestedArrays>0}function w(e){return e.nestedGenerators>0}function T(e,t){return t===void 0&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function E(e,t){if(e.match(`#=`,!1))return t.tokenize=O,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return`operator`;if(e.match(/\.{4,}/))return`error`;if(e.match(/\.{1,3}/))return`operator`;if(e.eatSpace())return null;var r=e.peek();if(r===`#`)return e.skipToEnd(),`comment`;if(r===`[`&&(t.scopes.push(`[`),t.nestedArrays++),r===`(`&&(t.scopes.push(`(`),t.nestedGenerators++),C(t)&&r===`]`){for(;t.scopes.length&&T(t)!==`[`;)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(w(t)&&r===`)`){for(;t.scopes.length&&T(t)!==`(`;)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(C(t)){if(t.lastToken==`end`&&e.match(`:`))return`operator`;if(e.match(`end`))return`number`}var i;if((i=e.match(m,!1))&&t.scopes.push(i[0]),e.match(h,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=D,t.tokenize(e,t);if(!n&&(e.match(y)||e.match(S)))return`builtin`;if(e.match(o))return`operator`;if(e.match(/^\.?\d/,!1)){var a=RegExp(/^im\b/),l=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(l=!0),e.match(/^0x[0-9a-f_]+/i)&&(l=!0),e.match(/^0b[01_]+/i)&&(l=!0),e.match(/^0o[0-7_]+/i)&&(l=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(l=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(l=!0),l)return e.match(a),t.leavingExpr=!0,`number`}if(e.match(`'`))return t.tokenize=k,t.tokenize(e,t);if(e.match(b))return t.tokenize=A(e.current()),t.tokenize(e,t);if(e.match(v)||e.match(x))return`meta`;if(e.match(s))return null;if(e.match(g))return`keyword`;if(e.match(_))return`builtin`;var u=t.isDefinition||t.lastToken==`function`||t.lastToken==`macro`||t.lastToken==`type`||t.lastToken==`struct`||t.lastToken==`immutable`;return e.match(c)?u?e.peek()===`.`?(t.isDefinition=!0,`variable`):(t.isDefinition=!1,`def`):(t.leavingExpr=!0,`variable`):(e.next(),`error`)}function D(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match(`{`)?t.nestedParameters++:e.match(`}`)&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():t.nestedParameters==0&&(t.tokenize=E),`builtin`}function O(e,t){return e.match(`#=`)&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match(`=#`)&&(t.nestedComments--,t.nestedComments==0&&(t.tokenize=E)),`comment`}function k(e,t){var n=!1,r;if(e.match(l))n=!0;else if(r=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var i=parseInt(r[1],16);(i<=55295||i>=57344)&&(n=!0,e.next())}else if(r=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i=parseInt(r[1],16);i<=1114111&&(n=!0,e.next())}return n?(t.leavingExpr=!0,t.tokenize=E,`string`):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match(`'`)&&(t.tokenize=E),`error`)}function A(e){e.substr(-3)===`"""`?e=`"""`:e.substr(-1)===`"`&&(e=`"`);function t(t,n){if(t.eat(`\\`))t.next();else if(t.match(e))return n.tokenize=E,n.leavingExpr=!0,`string`;else t.eat(/[`"]/);return t.eatWhile(/[^\\`"]/),`string`}return t}var j={name:`julia`,startState:function(){return{tokenize:E,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return(t===`]`||t===`)`||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:`#`,block:{open:`#=`,close:`=#`}},closeBrackets:{brackets:[`(`,`[`,`{`,`"`]},autocomplete:f.concat(p)}};export{j as julia};
@@ -0,0 +1,89 @@
1
+ import{t as e}from"./chunk-FMBD7UC4-C79rRamw.js";import{$t as t,An as n,Sn as r,f as i,h as a,kn as o,mt as s,n as c,p as l,pn as u,rn as d,t as f,vn as p,wn as m,xn as h}from"./MermaidBlock-CV56XpfU.js";var g=(function(){var e=o(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:o(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:s,23:c},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:o(function(e){var t=this,n=[0],r=[],i=[null],a=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}o(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}o(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:o(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:o(function(e,t){return this.yy=t||this.yy||{},this._input=e,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]),this.offset=0,this},`setInput`),input:o(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:o(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:o(function(){return this._more=!0,this},`more`),reject:o(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
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:o(function(e){this.unput(this.match.slice(e))},`less`),pastInput:o(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:o(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:o(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:o(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:o(function(){return this.next()||this.lex()},`lex`),begin:o(function(e){this.conditionStack.push(e)},`begin`),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:o(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:o(function(e){this.begin(e)},`pushState`),stateStackSize:o(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:o(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return o(S,`Parser`),S.prototype=x,x.Parser=S,new S})();g.parser=g;var _=g,v=[],y=[],b=0,x={},S=o(()=>{v=[],y=[],b=0,x={}},`clear`),C=o(e=>{if(v.length===0)return null;let t=v[0].level,n=null;for(let e=v.length-1;e>=0;e--)if(v[e].level===t&&!n&&(n=v[e]),v[e].level<t)throw Error(`Items without section detected, found section ("`+v[e].label+`")`);return e===n?.level?null:n},`getSection`),w=o(function(){return y},`getSections`),T=o(function(){let e=[],t=[],n=w(),r=d();for(let e of n){let n={id:e.id,label:u(e.label??``,r),labelType:`markdown`,isGroup:!0,ticket:e.ticket,shape:`kanbanSection`,level:e.level,look:r.look};t.push(n);let i=v.filter(t=>t.parentId===e.id);for(let n of i){let i={id:n.id,parentId:e.id,label:u(n.label??``,r),labelType:`markdown`,isGroup:!1,ticket:n?.ticket,priority:n?.priority,assigned:n?.assigned,icon:n?.icon,shape:`kanbanItem`,level:n.level,rx:5,ry:5,cssStyles:[`text-align: left`]};t.push(i)}}return{nodes:t,edges:e,other:{},config:d()}},`getData`),E=o((e,n,r,i,a)=>{let o=d(),s=o.mindmap?.padding??t.mindmap.padding;switch(i){case D.ROUNDED_RECT:case D.RECT:case D.HEXAGON:s*=2}let l={id:u(n,o)||`kbn`+ b++,level:e,label:u(r,o),width:o.mindmap?.maxNodeWidth??t.mindmap.maxNodeWidth,padding:s,isGroup:!1};if(a!==void 0){let e;e=a.includes(`
7
+ `)?a+`
8
+ `:`{
9
+ `+a+`
10
+ }`;let t=c(e,{schema:f});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(l.shape=t?.shape),t?.label&&(l.label=t?.label),t?.icon&&(l.icon=t?.icon.toString()),t?.assigned&&(l.assigned=t?.assigned.toString()),t?.ticket&&(l.ticket=t?.ticket.toString()),t?.priority&&(l.priority=t?.priority)}let p=C(e);p?l.parentId=p.id||`kbn`+ b++:y.push(l),v.push(l)},`addNode`),D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:E,getSections:w,getData:T,nodeType:D,getType:o((e,t)=>{switch(n.debug(`In get type`,e,t),e){case`[`:return D.RECT;case`(`:return t===`)`?D.ROUNDED_RECT:D.CLOUD;case`((`:return D.CIRCLE;case`)`:return D.CLOUD;case`))`:return D.BANG;case`{{`:return D.HEXAGON;default:return D.DEFAULT}},`getType`),setElementForId:o((e,t)=>{x[e]=t},`setElementForId`),decorateNode:o(e=>{if(!e)return;let t=d(),n=v[v.length-1];e.icon&&(n.icon=u(e.icon,t)),e.class&&(n.cssClasses=u(e.class,t))},`decorateNode`),type2Str:o(e=>{switch(e){case D.DEFAULT:return`no-border`;case D.RECT:return`rect`;case D.ROUNDED_RECT:return`rounded-rect`;case D.CIRCLE:return`circle`;case D.CLOUD:return`cloud`;case D.BANG:return`bang`;case D.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:o(()=>n,`getLogger`),getElementById:o(e=>x[e],`getElementById`)},k={draw:o(async(e,r,o,c)=>{n.debug(`Rendering kanban diagram
11
+ `+e);let u=c.db.getData(),f=d();f.htmlLabels=!1;let m=s(r);for(let e of u.nodes)e.domId=`${r}-${e.id}`;let h=m.append(`g`);h.attr(`class`,`sections`);let g=m.append(`g`);g.attr(`class`,`items`);let _=u.nodes.filter(e=>e.isGroup),v=0,y=[],b=25;for(let e of _){let t=f?.kanban?.sectionWidth||200;v+=1,e.x=t*v+(v-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+v;let n=await i(h,e);b=Math.max(b,n?.labelBBox?.height),y.push(n)}let x=0;for(let e of _){let t=y[x];x+=1;let n=f?.kanban?.sectionWidth||200,r=-n*3/2+b,i=r,o=u.nodes.filter(t=>t.parentId===e.id);for(let t of o){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-1.5*10;let r=(await l(g,t,{config:f})).node().getBBox();t.y=i+r.height/2,await a(t),i=t.y+r.height/2+10/2}let s=t.cluster.select(`rect`),c=Math.max(i-r+30,50)+(b-25);s.attr(`height`,c)}p(void 0,m,f.mindmap?.padding??t.kanban.padding,f.mindmap?.useMaxWidth??t.kanban.useMaxWidth)},`draw`)},A=o(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],m(e[`lineColor`+t])?e[`lineColor`+t]=r(e[`lineColor`+t],20):e[`lineColor`+t]=h(e[`lineColor`+t],20);let n=o((t,n)=>e.darkMode?h(t,n):r(t,n),`adjuster`);for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=``+(17-3*r);t+=`
12
+ .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
13
+ fill: ${n(e[`cScale`+r],10)};
14
+ stroke: ${n(e[`cScale`+r],10)};
15
+
16
+ }
17
+ .section-${r-1} text {
18
+ fill: ${e[`cScaleLabel`+r]};
19
+ }
20
+ .node-icon-${r-1} {
21
+ font-size: 40px;
22
+ color: ${e[`cScaleLabel`+r]};
23
+ }
24
+ .section-edge-${r-1}{
25
+ stroke: ${e[`cScale`+r]};
26
+ }
27
+ .edge-depth-${r-1}{
28
+ stroke-width: ${i};
29
+ }
30
+ .section-${r-1} line {
31
+ stroke: ${e[`cScaleInv`+r]} ;
32
+ stroke-width: 3;
33
+ }
34
+
35
+ .disabled, .disabled circle, .disabled text {
36
+ fill: lightgray;
37
+ }
38
+ .disabled text {
39
+ fill: #efefef;
40
+ }
41
+
42
+ .node rect,
43
+ .node circle,
44
+ .node ellipse,
45
+ .node polygon,
46
+ .node path {
47
+ fill: ${e.background};
48
+ stroke: ${e.nodeBorder};
49
+ stroke-width: 1px;
50
+ }
51
+
52
+ .kanban-ticket-link {
53
+ fill: ${e.background};
54
+ stroke: ${e.nodeBorder};
55
+ text-decoration: underline;
56
+ }
57
+ `}return t},`genSections`),j={db:O,renderer:k,parser:_,styles:o(t=>`
58
+ .edge {
59
+ stroke-width: 3;
60
+ }
61
+ ${A(t)}
62
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
+ fill: ${t.git0};
64
+ }
65
+ .section-root text {
66
+ fill: ${t.gitBranchLabel0};
67
+ }
68
+ .icon-container {
69
+ height:100%;
70
+ display: flex;
71
+ justify-content: center;
72
+ align-items: center;
73
+ }
74
+ .edge {
75
+ fill: none;
76
+ }
77
+ .cluster-label, .label {
78
+ color: ${t.textColor};
79
+ fill: ${t.textColor};
80
+ }
81
+ .kanban-label {
82
+ dy: 1em;
83
+ alignment-baseline: middle;
84
+ text-anchor: middle;
85
+ dominant-baseline: middle;
86
+ text-align: center;
87
+ }
88
+ ${e()}
89
+ `,`getStyles`)};export{j as diagram};