vibelet 1.2.238 → 1.2.239

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 (201) hide show
  1. package/README.md +6 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/inventory-scan-worker.cjs +1 -1
  4. package/dist/remoteDirect/vibelet-remote-direct-darwin-amd64 +0 -0
  5. package/dist/remoteDirect/vibelet-remote-direct-darwin-arm64 +0 -0
  6. package/dist/remoteDirect/vibelet-remote-direct-linux-amd64 +0 -0
  7. package/dist/remoteDirect/vibelet-remote-direct-linux-arm64 +0 -0
  8. package/dist/remoteDirect/vibelet-remote-direct-win32-amd64.exe +0 -0
  9. package/dist/remoteDirect/vibelet-remote-direct-win32-arm64.exe +0 -0
  10. package/dist/runtime-version.cjs +1 -1
  11. package/dist/vibelet.mjs +85 -19
  12. package/dist/web/assets/App-B0w50ugd.css +97 -0
  13. package/dist/web/assets/App-DKhLAmub.js +2 -0
  14. package/dist/web/assets/BrowserControlPanel-CauziPMg.js +1 -0
  15. package/dist/web/assets/ChatPane-CEoPrwLT.css +1 -0
  16. package/dist/web/assets/ChatPane-Dsv1Sp_0.js +2 -0
  17. package/dist/web/assets/{ChipGroup-YMpjYR9P.js → ChipGroup-CW7pSZ1H.js} +1 -1
  18. package/dist/web/assets/ComposerMenus-8RI97wiO.css +1 -0
  19. package/dist/web/assets/ComposerMenus-wrk6Gio2.js +1 -0
  20. package/dist/web/assets/ComposerModelSettings-CHnw14co.css +1 -0
  21. package/dist/web/assets/ComposerModelSettings-D3QMPRfS.js +1 -0
  22. package/dist/web/assets/DiffDrawer-BA2Hbb9d.js +1 -0
  23. package/dist/web/assets/FilesControlPanel-BazHfGx5.js +1 -0
  24. package/dist/web/assets/GlobalPendingDialog-CzVR6KXb.js +1 -0
  25. package/dist/web/assets/{ImageViewer-Fya-Uufq.css → ImageViewer-DilwNKHW.css} +1 -1
  26. package/dist/web/assets/ImageViewer-TeTrYqhq.js +1 -0
  27. package/dist/web/assets/InteractionPolish-Nkww8pqM.css +1 -0
  28. package/dist/web/assets/{LanguageSettingsPanel-BXx4BvyU.js → LanguageSettingsPanel-BU_E69VO.js} +1 -1
  29. package/dist/web/assets/{MarkdownModePanel-VRQHdCgq.js → MarkdownModePanel-Cf1zF1CS.js} +1 -1
  30. package/dist/web/assets/MessageImage-Beca9pI9.js +1 -0
  31. package/dist/web/assets/MessageImage-XcPrPLDn.css +1 -0
  32. package/dist/web/assets/NewSessionDialog-CPC0n7i2.js +1 -0
  33. package/dist/web/assets/{NotificationSettingsPanel-D78c9Tv6.js → NotificationSettingsPanel-DbDEqalL.js} +1 -1
  34. package/dist/web/assets/PanelFind-C_SuWRdx.js +1 -0
  35. package/dist/web/assets/PanelFind-Du02CWMm.css +1 -0
  36. package/dist/web/assets/RemoteLifeOSBlock-aE9tb99H.js +2 -0
  37. package/dist/web/assets/RemoteWorkspaceSettings-C2-LkNIY.js +1 -0
  38. package/dist/web/assets/SessionTerminalPanel-0eTDyrbE.js +2 -0
  39. package/dist/web/assets/SpeechInputSettingsPanel-CPbNY2rE.js +1 -0
  40. package/dist/web/assets/{ThemeSettingsPanel-BAHOGS0L.js → ThemeSettingsPanel-18vq_pMT.js} +1 -1
  41. package/dist/web/assets/__vite-browser-external-2447137e-DiZsMwIM.js +1 -0
  42. package/dist/web/assets/{_baseMerge-CwDZKfvJ.js → _baseMerge-DBQbsGvS.js} +1 -1
  43. package/dist/web/assets/{_initCloneObject-C781OlVa.js → _initCloneObject-BR1zWEqJ.js} +1 -1
  44. package/dist/web/assets/abnfDiagram-VRR7QNED-D16YT2oa.js +1 -0
  45. package/dist/web/assets/arc-CD8cZzH1.js +1 -0
  46. package/dist/web/assets/architectureDiagram-ZJ3FMSHR-BoHVV-Bf.js +1 -0
  47. package/dist/web/assets/arrow-left-BWX9F1j7.js +1 -0
  48. package/dist/web/assets/arrow-right-DL315HuR.js +1 -0
  49. package/dist/web/assets/blockDiagram-677ZJIJ3-dankl6OT.js +1 -0
  50. package/dist/web/assets/c4Diagram-LMCZKHZV-CnEfLirT.js +1 -0
  51. package/dist/web/assets/channel-eAy6Uhzj.js +1 -0
  52. package/dist/web/assets/chevron-up-bHY6-UxU.js +1 -0
  53. package/dist/web/assets/{chunk-2Q5K7J3B-CuStQQP5.js → chunk-2Q5K7J3B-Cf6eEkXb.js} +1 -1
  54. package/dist/web/assets/{chunk-32BRIVSS-CqcvfQyF.js → chunk-32BRIVSS-B-mFVfY1.js} +1 -1
  55. package/dist/web/assets/{chunk-5VM5RSS4-ClfzIwi_.js → chunk-5VM5RSS4-vZpebBcz.js} +1 -1
  56. package/dist/web/assets/{chunk-EX3LRPZG-km8mrFBg.js → chunk-EX3LRPZG-qX5Ystpv.js} +1 -1
  57. package/dist/web/assets/{chunk-JWPE2WC7-CwqQJZta.js → chunk-JWPE2WC7-CikZm0lV.js} +1 -1
  58. package/dist/web/assets/{chunk-MOJQB5TN-D6HJ3YLS.js → chunk-MOJQB5TN-BLeio_v0.js} +1 -1
  59. package/dist/web/assets/{chunk-RYQCIY6F-DzxL_I7L.js → chunk-RYQCIY6F-BYZjdg_s.js} +1 -1
  60. package/dist/web/assets/{chunk-V7JOEXUC-Cx4-zn7N.js → chunk-V7JOEXUC-5QaQnF3b.js} +1 -1
  61. package/dist/web/assets/{chunk-VR4S4FIN-uFIJLxCS.js → chunk-VR4S4FIN-ztEf7jtF.js} +1 -1
  62. package/dist/web/assets/{chunk-XXDRQBXY-Cg2Q6HPU.js → chunk-XXDRQBXY-BKO3NrVs.js} +1 -1
  63. package/dist/web/assets/classDiagram-OUVF2IWQ-DH_JRr8n.js +1 -0
  64. package/dist/web/assets/classDiagram-v2-EOCWNBFH-DH_JRr8n.js +1 -0
  65. package/dist/web/assets/collectMessageImages-D1Qfi5Ue.js +1 -0
  66. package/dist/web/assets/cose-bilkent-JH36ORCC-BjuHC-9r.js +1 -0
  67. package/dist/web/assets/{cynefin-VYW2F7L2-fGkbWpUF.js → cynefin-VYW2F7L2-C9WA3Klp.js} +1 -1
  68. package/dist/web/assets/cynefinDiagram-TSTJHNR4-BrkQLEng.js +1 -0
  69. package/dist/web/assets/dagre-VKFMJZFB-COXHxqP3.js +1 -0
  70. package/dist/web/assets/diagram-FQU43EPY-BFIgdo4s.js +1 -0
  71. package/dist/web/assets/diagram-G47NLZAW-D1fQm8BL.js +1 -0
  72. package/dist/web/assets/diagram-NH7WQ7WH-BD0xfVRd.js +1 -0
  73. package/dist/web/assets/diagram-OA4YK3LP-CaiohUvX.js +1 -0
  74. package/dist/web/assets/diagram-WEI45ONY-CcH3TCt-.js +1 -0
  75. package/dist/web/assets/ebnfDiagram-CCIWWBDH-qLIcGxWI.js +1 -0
  76. package/dist/web/assets/erDiagram-Q63AITRT-CoL7qrIU.js +1 -0
  77. package/dist/web/assets/{file-editor-FileCodeEditor-Cc7o0SoW.js → file-editor-FileCodeEditor-fPld0d8r.js} +2 -2
  78. package/dist/web/assets/{file-editor-ObsidianCodeEditor-DKHh91wx.js → file-editor-ObsidianCodeEditor-DfjD9J5s.js} +1 -1
  79. package/dist/web/assets/file-editor-ObsidianFileEditor-jdTZNnN9.js +2 -0
  80. package/dist/web/assets/{file-editor-index-CylY6jN7.js → file-editor-index--NhAFrCD.js} +1 -1
  81. package/dist/web/assets/{file-editor-index-BrEnI_H0.js → file-editor-index-BhOxVDWT.js} +1 -1
  82. package/dist/web/assets/{file-editor-index-Bg9-IMrE.js → file-editor-index-BkRDu8Ih.js} +1 -1
  83. package/dist/web/assets/{file-editor-index-DBUZobR-.js → file-editor-index-BxQDEPaH.js} +1 -1
  84. package/dist/web/assets/{file-editor-index-BocbUhDf.js → file-editor-index-CEjRXkxt.js} +1 -1
  85. package/dist/web/assets/{file-editor-index-DSJHLC6d.js → file-editor-index-CTfoBHg1.js} +1 -1
  86. package/dist/web/assets/{file-editor-index-DdTlNUV4.js → file-editor-index-DIH2DQ5-.js} +1 -1
  87. package/dist/web/assets/{file-editor-index-EvPD_eNu.js → file-editor-index-D_riXMER.js} +1 -1
  88. package/dist/web/assets/{file-editor-index-DPwrStxR.js → file-editor-index-DhGjGca-.js} +1 -1
  89. package/dist/web/assets/{file-editor-index-ByGYwqNf.js → file-editor-index-YeA2vzMT.js} +1 -1
  90. package/dist/web/assets/{file-editor-index-C-F4L_uP.js → file-editor-index-_YJUu8LH.js} +1 -1
  91. package/dist/web/assets/{file-editor-index-WprjWcs8.js → file-editor-index-x-jPAG-9.js} +1 -1
  92. package/dist/web/assets/{flowDiagram-23GEKE2U-CTWUxjYj.js → flowDiagram-23GEKE2U-upXJb-cK.js} +1 -1
  93. package/dist/web/assets/{folder-plus-Cud2L2F4.js → folder-plus-DrReR7Th.js} +1 -1
  94. package/dist/web/assets/ganttDiagram-NO4QXBWP-Boq7ZfbG.js +1 -0
  95. package/dist/web/assets/git-actions-DHCQ17VG.js +1 -0
  96. package/dist/web/assets/gitGraphDiagram-IHSO6WYX-C3UD7kxM.js +1 -0
  97. package/dist/web/assets/highlighted-body-TPN3WLV5-iUQ394Gx.js +1 -0
  98. package/dist/web/assets/imageViewerCopy-BMcwovIT.js +1 -0
  99. package/dist/web/assets/{index-B3XA1dVd.css → index-B0hzMPwQ.css} +1 -1
  100. package/dist/web/assets/index-BNl2LlC5.js +1 -0
  101. package/dist/web/assets/{index-Dx_1eu1W.js → index-CArel_iz.js} +2 -2
  102. package/dist/web/assets/index-CJZRHYmg.js +1 -0
  103. package/dist/web/assets/index-IHEjoxaX.js +1 -0
  104. package/dist/web/assets/index-OdgHTLbm.js +1 -0
  105. package/dist/web/assets/infoDiagram-FWYZ7A6U-D9e8ooN4.js +1 -0
  106. package/dist/web/assets/ishikawaDiagram-FXEZZL3T-C5c9muOA.js +1 -0
  107. package/dist/web/assets/journeyDiagram-5HDEW3XC-D6YhCPzt.js +1 -0
  108. package/dist/web/assets/kanban-definition-HUTT4EX6-DDtSDQB3.js +1 -0
  109. package/dist/web/assets/{key-round-BgAVbd3A.js → key-round-Bu4tTOs1.js} +1 -1
  110. package/dist/web/assets/{layout-DvVF2R1Q.js → layout-CmMX872C.js} +1 -1
  111. package/dist/web/assets/{linear-DmQK5Nk3.js → linear-Cn0QcXcT.js} +1 -1
  112. package/dist/web/assets/logo-Caf1Fn81.webp +0 -0
  113. package/dist/web/assets/{map-yP9qyz-l.js → map-Dwt0FgOz.js} +1 -1
  114. package/dist/web/assets/mermaid-O7DHMXV3-Da6OUdgR.js +2 -0
  115. package/dist/web/assets/{mermaid.core-jR_k1I8D.js → mermaid.core-B71KCuEy.js} +2 -2
  116. package/dist/web/assets/mic-BJRlwfse.js +1 -0
  117. package/dist/web/assets/mindmap-definition-LN4V7U3C-CzqgcnU8.js +1 -0
  118. package/dist/web/assets/pegDiagram-2B236MQR-BBBLeyAR.js +1 -0
  119. package/dist/web/assets/pieDiagram-ENE6RG2P-wDmBek2O.js +1 -0
  120. package/dist/web/assets/quadrantDiagram-ABIIQ3AL-CiHFwAYe.js +1 -0
  121. package/dist/web/assets/railroadDiagram-RFXS5EU6-Bzato2yp.js +1 -0
  122. package/dist/web/assets/requirementDiagram-TGXJPOKE-D_9LFmYp.js +1 -0
  123. package/dist/web/assets/sankeyDiagram-HTMAVEWB-D108ZeA-.js +1 -0
  124. package/dist/web/assets/sequenceDiagram-DBY2YBRQ-BpS0Gg69.js +1 -0
  125. package/dist/web/assets/shield-check-CGxGNyPR.js +1 -0
  126. package/dist/web/assets/sizeCapture-X5ZJPWSS-BSEM5OEf.js +1 -0
  127. package/dist/web/assets/stateDiagram-2N3HPSRC-Do4VQPVi.js +1 -0
  128. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-DEy9N7yk.js +1 -0
  129. package/dist/web/assets/swimlanes-5IMT3BWC-r788e2DT.js +2 -0
  130. package/dist/web/assets/swimlanesDiagram-G3AALYLV-BbEmmRWA.js +1 -0
  131. package/dist/web/assets/timeline-definition-FHXFAJF6-YulkUzoz.js +1 -0
  132. package/dist/web/assets/useMessageImage-DAqXbRED.js +1 -0
  133. package/dist/web/assets/vennDiagram-L72KCM5P-BQEO8zby.js +1 -0
  134. package/dist/web/assets/wardleyDiagram-EHGQE667-CR0Nflio.js +1 -0
  135. package/dist/web/assets/xychartDiagram-FW5EYKEG-DSDhUpzz.js +1 -0
  136. package/dist/web/assets/zap-CxrOlc87.js +1 -0
  137. package/dist/web/icon.svg +1 -7
  138. package/dist/web/index.html +2 -2
  139. package/dist/web/logo.svg +1 -13
  140. package/dist/web/obsidian-editor-assets.json +1 -1
  141. package/package.json +1 -1
  142. package/dist/web/assets/App-C21-MM7L.js +0 -2
  143. package/dist/web/assets/App-CbEM8WX0.css +0 -1
  144. package/dist/web/assets/BrowserControlPanel-CkKIuEsj.js +0 -1
  145. package/dist/web/assets/FilesControlPanel-CwbB5lm2.js +0 -1
  146. package/dist/web/assets/GlobalPendingDialog-DqEBvP53.js +0 -1
  147. package/dist/web/assets/ImageViewer-CK5ZHIVv.js +0 -1
  148. package/dist/web/assets/NewSessionDialog-CuL1-FFv.js +0 -1
  149. package/dist/web/assets/RemoteLifeOSBlock-BjYrjRa2.js +0 -2
  150. package/dist/web/assets/RemoteWorkspaceSettings-B9yBCaSU.js +0 -1
  151. package/dist/web/assets/SessionTerminalPanel-D_XqGjcx.js +0 -1
  152. package/dist/web/assets/abnfDiagram-VRR7QNED-C_g14JDy.js +0 -1
  153. package/dist/web/assets/arc-Dlh78dPq.js +0 -1
  154. package/dist/web/assets/architectureDiagram-ZJ3FMSHR-r6osYFBK.js +0 -1
  155. package/dist/web/assets/arrow-right-BtC2L5Xy.js +0 -1
  156. package/dist/web/assets/blockDiagram-677ZJIJ3-Dt1NkFp6.js +0 -1
  157. package/dist/web/assets/c4Diagram-LMCZKHZV-DgzJiNGp.js +0 -1
  158. package/dist/web/assets/channel-CoeVE6la.js +0 -1
  159. package/dist/web/assets/classDiagram-OUVF2IWQ-UcfsFNaj.js +0 -1
  160. package/dist/web/assets/classDiagram-v2-EOCWNBFH-UcfsFNaj.js +0 -1
  161. package/dist/web/assets/clsx-dhsJw0G5.js +0 -1
  162. package/dist/web/assets/collectMessageImages-ZyOAE6id.js +0 -1
  163. package/dist/web/assets/cose-bilkent-JH36ORCC-CcjvJAJB.js +0 -1
  164. package/dist/web/assets/cynefinDiagram-TSTJHNR4-Cvuw_uxU.js +0 -1
  165. package/dist/web/assets/dagre-VKFMJZFB-D07owLRU.js +0 -1
  166. package/dist/web/assets/diagram-FQU43EPY-C8yKetrQ.js +0 -1
  167. package/dist/web/assets/diagram-G47NLZAW-CM7slttO.js +0 -1
  168. package/dist/web/assets/diagram-NH7WQ7WH-CAqIaHvI.js +0 -1
  169. package/dist/web/assets/diagram-OA4YK3LP-s_8LmV3Y.js +0 -1
  170. package/dist/web/assets/diagram-WEI45ONY-DcL-hbJN.js +0 -1
  171. package/dist/web/assets/ebnfDiagram-CCIWWBDH-BiY1-WEY.js +0 -1
  172. package/dist/web/assets/erDiagram-Q63AITRT-iIeyBkVv.js +0 -1
  173. package/dist/web/assets/file-editor-ObsidianFileEditor-D4DiY_3P.js +0 -2
  174. package/dist/web/assets/ganttDiagram-NO4QXBWP-wo784lYB.js +0 -1
  175. package/dist/web/assets/gitGraphDiagram-IHSO6WYX-BY6lbwzB.js +0 -1
  176. package/dist/web/assets/highlighted-body-TPN3WLV5-CDeMvzq_.js +0 -1
  177. package/dist/web/assets/index-1M7_HtDu.js +0 -1
  178. package/dist/web/assets/index-BTavN9lk.js +0 -1
  179. package/dist/web/assets/infoDiagram-FWYZ7A6U-CfoivPz9.js +0 -1
  180. package/dist/web/assets/ishikawaDiagram-FXEZZL3T-Bt6xBkx3.js +0 -1
  181. package/dist/web/assets/journeyDiagram-5HDEW3XC-D_lKOA6h.js +0 -1
  182. package/dist/web/assets/kanban-definition-HUTT4EX6-Ce_DMiiq.js +0 -1
  183. package/dist/web/assets/logo-CVsV06Wq.webp +0 -0
  184. package/dist/web/assets/mermaid-O7DHMXV3-DKlyhw3K.js +0 -2
  185. package/dist/web/assets/mindmap-definition-LN4V7U3C-4KSBnEFJ.js +0 -1
  186. package/dist/web/assets/pegDiagram-2B236MQR-rZKZ-HjO.js +0 -1
  187. package/dist/web/assets/pieDiagram-ENE6RG2P-Fz-HbF4X.js +0 -1
  188. package/dist/web/assets/quadrantDiagram-ABIIQ3AL-G8TsEkFM.js +0 -1
  189. package/dist/web/assets/railroadDiagram-RFXS5EU6-ztb7MjCm.js +0 -1
  190. package/dist/web/assets/requirementDiagram-TGXJPOKE-4Y2Rvrbc.js +0 -1
  191. package/dist/web/assets/sankeyDiagram-HTMAVEWB-BfX7WEmV.js +0 -1
  192. package/dist/web/assets/sequenceDiagram-DBY2YBRQ-BMavjnNv.js +0 -1
  193. package/dist/web/assets/sizeCapture-X5ZJPWSS-DGkFWUNW.js +0 -1
  194. package/dist/web/assets/stateDiagram-2N3HPSRC-Bu42YWoA.js +0 -1
  195. package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BwgU75NJ.js +0 -1
  196. package/dist/web/assets/swimlanes-5IMT3BWC-BGb3og3u.js +0 -2
  197. package/dist/web/assets/swimlanesDiagram-G3AALYLV-D2gngEsl.js +0 -1
  198. package/dist/web/assets/timeline-definition-FHXFAJF6-Bvzb38qw.js +0 -1
  199. package/dist/web/assets/vennDiagram-L72KCM5P-n0xgqOqd.js +0 -1
  200. package/dist/web/assets/wardleyDiagram-EHGQE667-CwAxqpRk.js +0 -1
  201. package/dist/web/assets/xychartDiagram-FW5EYKEG-B6f2c1Rw.js +0 -1
@@ -1 +0,0 @@
1
- import{bf as t,bg as e,bh as n,bi as r,bj as i,bk as s,bl as a,_ as o,g as c,s as u,p as l,o as d,a as h,b as f,c as g,d as m,e as y,l as k,k as p,j as T,q as v,y as x}from"./mermaid.core-jR_k1I8D.js";import{d as b}from"./RemoteLifeOSBlock-BjYrjRa2.js";import{g as w}from"./index-BTavN9lk.js";import{b as D,t as M,c as C,a as $,l as _}from"./linear-DmQK5Nk3.js";import{i as S}from"./init-C0SZ43gy.js";import"./index-Dx_1eu1W.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./App-C21-MM7L.js";import"./file-editor-index-C6CU7Fik.js";import"./defaultLocale-Z7o9ZNZF.js";function Y(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function F(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function A(t){return t}var L=1e-6;function U(t){return"translate("+t+",0)"}function E(t){return"translate(0,"+t+")"}function O(t){return e=>+t(e)}function I(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function W(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",d=1===t||3===t?U:E;function h(h){var f=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):A),m=Math.max(s,0)+o,y=e.range(),k=+y[0]+c,p=+y[y.length-1]+c,T=(e.bandwidth?I:O)(e.copy(),c),v=h.selection?h.selection():h,x=v.selectAll(".domain").data([null]),b=v.selectAll(".tick").data(f,e).order(),w=b.exit(),D=b.enter().append("g").attr("class","tick"),M=b.select("line"),C=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(l+"2",u*s)),C=C.merge(D.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==v&&(x=x.transition(h),b=b.transition(h),M=M.transition(h),C=C.transition(h),w=w.transition(h).attr("opacity",L).attr("transform",function(t){return isFinite(t=T(t))?d(t+c):this.getAttribute("transform")}),D.attr("opacity",L).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:T(t))+c)})),w.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+k+"H"+c+"V"+p+"H"+u*a:"M"+c+","+k+"V"+p:a?"M"+k+","+u*a+"V"+c+"H"+p+"V"+u*a:"M"+k+","+c+"H"+p),b.attr("opacity",1).attr("transform",function(t){return d(T(t)+c)}),M.attr(l+"2",u*s),C.attr(l,u*m).text(g),v.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=T})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const P=Math.PI/180,N=180/Math.PI,z=.96422,j=.82521,B=4/29,V=6/29,R=3*V*V,Z=V*V*V;function G(n){if(n instanceof q)return new q(n.l,n.a,n.b,n.opacity);if(n instanceof et)return nt(n);n instanceof t||(n=e(n));var r,i,s=K(n.r),a=K(n.g),o=K(n.b),c=X((.2225045*s+.7168786*a+.0606169*o)/1);return s===a&&a===o?r=i=c:(r=X((.4360747*s+.3850649*a+.1430804*o)/z),i=X((.0139322*s+.0971045*a+.7141733*o)/j)),new q(116*c-16,500*(r-c),200*(c-i),n.opacity)}function q(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function X(t){return t>Z?Math.pow(t,1/3):t/R+B}function Q(t){return t>V?t*t*t:R*(t-B)}function J(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function K(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof q||(t=G(t)),0===t.a&&0===t.b)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*N;return new et(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new et(t,e,n,r??1)}function et(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function nt(t){if(isNaN(t.h))return new q(t.l,0,0,t.opacity);var e=t.h*P;return new q(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n(q,function(t,e,n,r){return 1===arguments.length?G(t):new q(t,e,n,r??1)},r(i,{brighter(t){return new q(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new q(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=z*Q(n),e=1*Q(e),r=j*Q(r),new t(J(3.1338561*n-1.6168667*e-.4906146*r),J(-.9787684*n+1.9161415*e+.033454*r),J(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),n(et,tt,r(i,{brighter(t){return new et(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return nt(this).rgb()}}));const rt=function(t){return function(e,n){var r=t((e=tt(e)).h,(n=tt(n)).h),i=s(e.c,n.c),a=s(e.l,n.l),o=s(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(a),it=new Date,st=new Date;function at(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{const a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;let o;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=n=>at(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(it.setTime(+e),st.setTime(+r),t(it),t(st),Math.floor(n(it,st))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ot=at(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ot.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?at(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ot:null),ot.range;const ct=1e3,ut=6e4,lt=36e5,dt=864e5,ht=6048e5,ft=31536e6,gt=at(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCSeconds());gt.range;const mt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getMinutes());mt.range,at(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCMinutes()).range;const yt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct-t.getMinutes()*ut)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getHours());yt.range,at(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCHours()).range;const kt=at(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/dt,t=>t.getDate()-1);kt.range;const pt=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);function Tt(t){return at(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/ht)}pt.range,at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt)).range;const vt=Tt(0),xt=Tt(1),bt=Tt(2),wt=Tt(3),Dt=Tt(4),Mt=Tt(5),Ct=Tt(6);function $t(t){return at(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ht)}vt.range,xt.range,bt.range,wt.range,Dt.range,Mt.range,Ct.range;const _t=$t(0),St=$t(1),Yt=$t(2),Ft=$t(3),At=$t(4),Lt=$t(5),Ut=$t(6);_t.range,St.range,Yt.range,Ft.range,At.range,Lt.range,Ut.range;const Et=at(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());Et.range,at(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()).range;const Ot=at(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ot.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ot.range;const It=at(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());It.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,It.range;const[Ht,Wt]=function(t){const e=[[gt,1,ct],[gt,5,5e3],[gt,15,15e3],[gt,30,3e4],[mt,1,ut],[mt,5,3e5],[mt,15,9e5],[mt,30,18e5],[yt,1,lt],[yt,3,108e5],[yt,6,216e5],[yt,12,432e5],[kt,1,dt],[kt,2,1728e5],[vt,1,ht],[Et,1,2592e6],[Et,3,7776e6],[t,1,ft]];function n(n,r,i){const s=Math.abs(r-n)/i,a=D(([,,t])=>t).right(e,s);if(a===e.length)return t.every(M(n/ft,r/ft,i));if(0===a)return ot.every(Math.max(M(n,r,i),1));const[o,c]=e[s/e[a-1][2]<e[a][2]/s?a-1:a];return o.every(c)}return[function(t,e,r){const i=e<t;i&&([t,e]=[e,t]);const s=r&&"function"==typeof r.range?r:n(t,e,r),a=s?s.range(t,+e+1):[];return i?a.reverse():a},n]}(Ot);function Pt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function zt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var jt,Bt,Vt={"-":"",_:" ",0:"0"},Rt=/^\s*\d+/,Zt=/^%/,Gt=/[\\^$*+?|[\]().{}]/g;function qt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Xt(t){return t.replace(Gt,"\\$&")}function Qt(t){return new RegExp("^(?:"+t.map(Xt).join("|")+")","i")}function Jt(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Kt(t,e,n){var r=Rt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function te(t,e,n){var r=Rt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ee(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ne(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function re(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ie(t,e,n){var r=Rt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function se(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ae(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oe(t,e,n){var r=Rt.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ce(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ue(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function le(t,e,n){var r=Rt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function de(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function he(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function fe(t,e,n){var r=Rt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ge(t,e,n){var r=Rt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function me(t,e,n){var r=Rt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ye(t,e,n){var r=Zt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ke(t,e,n){var r=Rt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=Rt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Te(t,e){return qt(t.getDate(),e,2)}function ve(t,e){return qt(t.getHours(),e,2)}function xe(t,e){return qt(t.getHours()%12||12,e,2)}function be(t,e){return qt(1+kt.count(Ot(t),t),e,3)}function we(t,e){return qt(t.getMilliseconds(),e,3)}function De(t,e){return we(t,e)+"000"}function Me(t,e){return qt(t.getMonth()+1,e,2)}function Ce(t,e){return qt(t.getMinutes(),e,2)}function $e(t,e){return qt(t.getSeconds(),e,2)}function _e(t){var e=t.getDay();return 0===e?7:e}function Se(t,e){return qt(vt.count(Ot(t)-1,t),e,2)}function Ye(t){var e=t.getDay();return e>=4||0===e?Dt(t):Dt.ceil(t)}function Fe(t,e){return t=Ye(t),qt(Dt.count(Ot(t),t)+(4===Ot(t).getDay()),e,2)}function Ae(t){return t.getDay()}function Le(t,e){return qt(xt.count(Ot(t)-1,t),e,2)}function Ue(t,e){return qt(t.getFullYear()%100,e,2)}function Ee(t,e){return qt((t=Ye(t)).getFullYear()%100,e,2)}function Oe(t,e){return qt(t.getFullYear()%1e4,e,4)}function Ie(t,e){var n=t.getDay();return qt((t=n>=4||0===n?Dt(t):Dt.ceil(t)).getFullYear()%1e4,e,4)}function He(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qt(e/60|0,"0",2)+qt(e%60,"0",2)}function We(t,e){return qt(t.getUTCDate(),e,2)}function Pe(t,e){return qt(t.getUTCHours(),e,2)}function Ne(t,e){return qt(t.getUTCHours()%12||12,e,2)}function ze(t,e){return qt(1+pt.count(It(t),t),e,3)}function je(t,e){return qt(t.getUTCMilliseconds(),e,3)}function Be(t,e){return je(t,e)+"000"}function Ve(t,e){return qt(t.getUTCMonth()+1,e,2)}function Re(t,e){return qt(t.getUTCMinutes(),e,2)}function Ze(t,e){return qt(t.getUTCSeconds(),e,2)}function Ge(t){var e=t.getUTCDay();return 0===e?7:e}function qe(t,e){return qt(_t.count(It(t)-1,t),e,2)}function Xe(t){var e=t.getUTCDay();return e>=4||0===e?At(t):At.ceil(t)}function Qe(t,e){return t=Xe(t),qt(At.count(It(t),t)+(4===It(t).getUTCDay()),e,2)}function Je(t){return t.getUTCDay()}function Ke(t,e){return qt(St.count(It(t)-1,t),e,2)}function tn(t,e){return qt(t.getUTCFullYear()%100,e,2)}function en(t,e){return qt((t=Xe(t)).getUTCFullYear()%100,e,2)}function nn(t,e){return qt(t.getUTCFullYear()%1e4,e,4)}function rn(t,e){var n=t.getUTCDay();return qt((t=n>=4||0===n?At(t):At.ceil(t)).getUTCFullYear()%1e4,e,4)}function sn(){return"+0000"}function an(){return"%"}function on(t){return+t}function cn(t){return Math.floor(+t/1e3)}function un(t){return new Date(t)}function ln(t){return t instanceof Date?+t:+new Date(+t)}function dn(t,e,n,r,i,s,a,o,c,u){var l=C(),d=l.invert,h=l.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),k=u("%a %d"),p=u("%b %d"),T=u("%B"),v=u("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?h(Array.from(t,ln)):h().map(un)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):l},l.copy=function(){return $(l,dn(t,e,n,r,i,s,a,o,c,u))},l}function hn(){return S.apply(dn(Ht,Wt,Ot,Et,vt,kt,yt,mt,gt,Bt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}jt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,u=Qt(i),l=Jt(i),d=Qt(s),h=Jt(s),f=Qt(a),g=Jt(a),m=Qt(o),y=Jt(o),k=Qt(c),p=Jt(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Te,e:Te,f:De,g:Ee,G:Ie,H:ve,I:xe,j:be,L:we,m:Me,M:Ce,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:on,s:cn,S:$e,u:_e,U:Se,V:Fe,w:Ae,W:Le,x:null,X:null,y:Ue,Y:Oe,Z:He,"%":an},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:We,e:We,f:Be,g:en,G:rn,H:Pe,I:Ne,j:ze,L:je,m:Ve,M:Re,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:on,s:cn,S:Ze,u:Ge,U:qe,V:Qe,w:Je,W:Ke,x:null,X:null,y:tn,Y:nn,Z:sn,"%":an},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=k.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:ue,e:ue,f:me,g:se,G:ie,H:de,I:de,j:le,L:ge,m:ce,M:he,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:oe,Q:ke,s:pe,S:fe,u:te,U:ee,V:ne,w:Kt,W:re,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:se,Y:ie,Z:ae,"%":ye};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=Vt[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=zt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=Nt(zt(s.y,0,1))).getUTCDay(),r=i>4||0===i?St.ceil(r):St(r),r=pt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=Pt(zt(s.y,0,1))).getDay(),r=i>4||0===i?xt.ceil(r):xt(r),r=kt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Nt(zt(s.y,0,1)).getUTCDay():Pt(zt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Nt(s)):Pt(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in Vt?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Bt=jt.format,jt.parse,jt.utcFormat,jt.utcParse;var fn,gn={exports:{}};const mn=w(fn?gn.exports:(fn=1,gn.exports=function(){var t="day";return function(e,n,r){var i=function(e){return e.add(4-e.isoWeekday(),t)},s=n.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,s,a,o=i(this),c=(n=this.isoWeekYear(),a=4-(s=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,t));return o.diff(c,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()));var yn,kn={exports:{}};const pn=w(yn?kn.exports:(yn=1,kn.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[r,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,c("week")],ww:[r,c("week")],M:[i,c("month")],MM:[r,c("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=r.prototype,c=s.parse;s.parse=function(n){var r=n.date,s=n.utc,o=n.args;this.$u=s;var u=o[1];if("string"==typeof u){var l=!0===o[2],d=!0===o[3],f=l||d,g=o[2];d&&(g=o[2]),a=this.$locale(),!l&&g&&(a=i.Ls[g]),this.$d=function(n,r,i,s){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,i;r=n,i=a&&a.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=s.length,c=0;c<o;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<o;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,u=t.slice(r),l=a.exec(u)[0];c.call(e,l),t=t.replace(l,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}(r)(n),c=o.year,u=o.month,l=o.day,d=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=l||(c||u?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!u||(x=u>0?u-1:p.getMonth());var b,w=d||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):i?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),k&&(b=s(b).week(k).toDate()),b)}catch($){return new Date("")}}(r,u,s,i),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var m=u.length,y=1;y<=m;y+=1){o[1]=u[y-1];var k=i.apply(this,o);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()));var Tn,vn={exports:{}};const xn=w(Tn?vn.exports:(Tn=1,vn.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),s=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return r.bind(this)(s)}}));var bn,wn={exports:{}};const Dn=w(bn?wn.exports:(bn=1,wn.exports=function(){var t,e,n=1e3,r=6e4,i=36e5,s=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:s,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof p},h=function(t,e,n){return new p(t,n,e.$l)},f=function(t){return e.p(t)+"s"},g=function(t){return t<0},m=function(t){return g(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},k=function(t,e){return t?g(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function g(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var s=i.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var y=g.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[n]},0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/o),t%=o,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/s),t%=s,this.$d.hours=m(t/i),t%=i,this.$d.minutes=m(t/r),t%=r,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=k(this.$d.years,"Y"),e=k(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=k(n,"D"),i=k(this.$d.hours,"H"),s=k(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=k(a,"S"),c=t.negative||e.negative||r.negative||i.negative||s.negative||o.negative,u=i.format||s.format||o.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+r.format+u+i.format+s.format+o.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(r[t])})},y.as=function(t){return this.$ms/l[f(t)]},y.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],e||0},y.add=function(t,e,n){var r;return r=e?t*l[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},g}(),T=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,r,i){t=i,e=i().$utils(),i.duration=function(t,e){var n=i.locale();return h(t,{$l:n},e)},i.isDuration=d;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return d(t)?T(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return d(t)?T(this,t,-1):a.bind(this)(t,e)}}}()));var Mn=function(){var t=o(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],c=[1,31],u=[1,32],l=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35],$={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:o(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:o(function(t){var e=this,n=[0],r=[],i=[null],s=[],a=this.table,c="",u=0,l=0,d=s.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;s.push(m);var y=h.options&&h.options.ranges;function k(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(t){n.length=n.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),o(k,"lex");for(var p,T,v,x,b,w,D,M,C={};;){if(T=n[n.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(null==p&&(p=k()),v=a[T]&&a[T][p]),void 0===v||!v.length||!v[0]){var $;for(b in M=[],a[T])this.terminals_[b]&&b>2&&M.push("'"+this.terminals_[b]+"'");$=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError($,{text:h.match,token:this.terminals_[p]||p,line:h.yylineno,loc:m,expected:M})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:n.push(p),i.push(h.yytext),s.push(h.yylloc),n.push(v[1]),p=null,l=h.yyleng,c=h.yytext,u=h.yylineno,m=h.yylloc;break;case 2:if(w=this.productions_[v[1]][1],C.$=i[i.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[c,l,u,f.yy,v[1],i,s].concat(d))))return x;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),i.push(C.$),s.push(C._$),D=a[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:o(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:o(function(t,e){return this.yy=e||this.yy||{},this._input=t,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 t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:o(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:o(function(t,e){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=t[0].match(/(?:\r\n?|\n).*/g))&&(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+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){return this.next()||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"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(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function S(){this.yy={}}return $.lexer=_,o(S,"Parser"),S.prototype=$,$.Parser=S,new S}();Mn.parser=Mn;var Cn=Mn;b.extend(mn),b.extend(pn),b.extend(xn);var $n,_n,Sn={friday:5,saturday:6},Yn="",Fn="",An=void 0,Ln="",Un=[],En=[],On=new Map,In=[],Hn=[],Wn="",Pn="",Nn=["active","done","crit","milestone","vert"],zn=[],jn="",Bn=!1,Vn=!1,Rn="sunday",Zn="saturday",Gn=0,qn=o(function(){In=[],Hn=[],Wn="",zn=[],Sr=0,$n=void 0,_n=void 0,Lr=[],Yn="",Fn="",Pn="",An=void 0,Ln="",Un=[],En=[],Bn=!1,Vn=!1,Gn=0,On=new Map,jn="",v(),Rn="sunday",Zn="saturday"},"clear"),Xn=o(function(t){jn=t},"setDiagramId"),Qn=o(function(t){Fn=t},"setAxisFormat"),Jn=o(function(){return Fn},"getAxisFormat"),Kn=o(function(t){An=t},"setTickInterval"),tr=o(function(){return An},"getTickInterval"),er=o(function(t){Ln=t},"setTodayMarker"),nr=o(function(){return Ln},"getTodayMarker"),rr=o(function(t){Yn=t},"setDateFormat"),ir=o(function(){Bn=!0},"enableInclusiveEndDates"),sr=o(function(){return Bn},"endDatesAreInclusive"),ar=o(function(){Vn=!0},"enableTopAxis"),or=o(function(){return Vn},"topAxisEnabled"),cr=o(function(t){Pn=t},"setDisplayMode"),ur=o(function(){return Pn},"getDisplayMode"),lr=o(function(){return Yn},"getDateFormat"),dr=o((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t);return[...new Set([...t,...n])]},"mergeTokens"),hr=o(function(t){Un=dr(Un,t)},"setIncludes"),fr=o(function(){return Un},"getIncludes"),gr=o(function(t){En=dr(En,t)},"setExcludes"),mr=o(function(){return En},"getExcludes"),yr=o(function(){return On},"getLinks"),kr=o(function(t){Wn=t,In.push(t)},"addSection"),pr=o(function(){return In},"getSections"),Tr=o(function(){let t=Hr(),e=0;for(;!t&&e<10;)t=Hr(),e++;return Hn=Lr},"getTasks"),vr=o(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(s)&&(!(!n.includes("weekends")||t.isoWeekday()!==Sn[Zn]&&t.isoWeekday()!==Sn[Zn]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(i)||n.includes(s))},"isInvalidDate"),xr=o(function(t){Rn=t},"setWeekday"),br=o(function(){return Rn},"getWeekday"),wr=o(function(t){Zn=t},"setWeekend"),Dr=o(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,s;i=t.startTime instanceof Date?b(t.startTime):b(t.startTime,e,!0),i=i.add(1,"d"),s=t.endTime instanceof Date?b(t.endTime):b(t.endTime,e,!0);const[a,o]=Mr(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Mr=o(function(t,e,n,r,i){let s=!1,a=null;const o=e.add(1e4,"d");for(;t<=e;){if(s||(a=e.toDate()),s=vr(t,n,r,i),s&&(e=e.add(1,"d"))>o)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),Cr=o(function(t,e,n){if(n=n.trim(),o(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let i=b(n,e.trim(),!0);if(i.isValid())return i.toDate();{k.debug("Invalid date:"+n),k.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),$r=o(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),_r=o(function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let s=b(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let a=b(t);const[o,c]=$r(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),Sr=0,Yr=o(function(t){return void 0===t?"task"+(Sr+=1):t},"parseId"),Fr=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Rr(r,i,Nn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Yr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Yr(),i.startTime=Cr(void 0,Yn,r[0]),s=r[1];break;case 3:i.id=Yr(r[0]),i.startTime=Cr(void 0,Yn,r[1]),s=r[2]}return s&&(i.endTime=_r(i.startTime,Yn,s,Bn),i.manualEndTime=b(s,"YYYY-MM-DD",!0).isValid(),Dr(i,Yn,En,Un)),i},"compileData"),Ar=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Rr(r,i,Nn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Yr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Yr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Yr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),Lr=[],Ur={},Er=o(function(t,e){const n={section:Wn,type:Wn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ar(_n,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=_n,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Gn,Gn++);const i=Lr.push(n);_n=n.id,Ur[n.id]=i-1},"addTask"),Or=o(function(t){const e=Ur[t];return Lr[e]},"findTaskById"),Ir=o(function(t,e){const n={section:Wn,type:Wn,description:t,task:t,classes:[]},r=Fr($n,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,$n=n,Hn.push(n)},"addTaskOrg"),Hr=o(function(){const t=o(function(t){const e=Lr[t];let n="";switch(Lr[t].raw.startTime.type){case"prevTaskEnd":{const t=Or(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Cr(void 0,Yn,Lr[t].raw.startTime.startData),n&&(Lr[t].startTime=n)}return Lr[t].startTime&&(Lr[t].endTime=_r(Lr[t].startTime,Yn,Lr[t].raw.endTime.data,Bn),Lr[t].endTime&&(Lr[t].processed=!0,Lr[t].manualEndTime=b(Lr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Dr(Lr[t],Yn,En,Un))),Lr[t].processed},"compileTask");let e=!0;for(const[n,r]of Lr.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Wr=o(function(t,e){let n=e;"loose"!==g().securityLevel&&(n=T.sanitizeUrl(e)),t.split(",").forEach(function(t){void 0!==Or(t)&&(zr(t,()=>{window.open(n,"_self")}),On.set(t,n))}),Pr(t,"clickable")},"setLink"),Pr=o(function(t,e){t.split(",").forEach(function(t){let n=Or(t);void 0!==n&&n.classes.push(e)})},"setClass"),Nr=o(function(t,e,n){if("loose"!==g().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Or(t)&&zr(t,()=>{x.runFunc(e,...r)})},"setClickFun"),zr=o(function(t,e){zn.push(function(){const n=jn?`${jn}-${t}`:t,r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",function(){e()})},function(){const n=jn?`${jn}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);null!==r&&r.addEventListener("click",function(){e()})})},"pushFun"),jr=o(function(t,e,n){t.split(",").forEach(function(t){Nr(t,e,n)}),Pr(t,"clickable")},"setClickEvent"),Br=o(function(t){zn.forEach(function(e){e(t)})},"bindFunctions"),Vr={getConfig:o(()=>g().gantt,"getConfig"),clear:qn,setDateFormat:rr,getDateFormat:lr,enableInclusiveEndDates:ir,endDatesAreInclusive:sr,enableTopAxis:ar,topAxisEnabled:or,setAxisFormat:Qn,getAxisFormat:Jn,setTickInterval:Kn,getTickInterval:tr,setTodayMarker:er,getTodayMarker:nr,setAccTitle:f,getAccTitle:h,setDiagramTitle:d,getDiagramTitle:l,setDiagramId:Xn,setDisplayMode:cr,getDisplayMode:ur,setAccDescription:u,getAccDescription:c,addSection:kr,getSections:pr,getTasks:Tr,addTask:Er,findTaskById:Or,addTaskOrg:Ir,setIncludes:hr,getIncludes:fr,setExcludes:gr,getExcludes:mr,setClickEvent:jr,setLink:Wr,getLinks:yr,bindFunctions:Br,parseDuration:$r,isInvalidDate:vr,setWeekday:xr,getWeekday:br,setWeekend:wr};function Rr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}o(Rr,"getTaskTags"),b.extend(Dn);var Zr,Gr=o(function(){k.debug("Something is calling, setConf, remove the call")},"setConf"),qr={monday:xt,tuesday:bt,wednesday:wt,thursday:Dt,friday:Mt,saturday:Ct,sunday:vt},Xr=o((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),i=0;for(const s of r)for(let t=0;t<n.length;t++)if(s.startTime>=n[t]){n[t]=s.endTime,s.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),Qr={parser:Cn,db:Vr,renderer:{setConf:Gr,draw:o(function(t,e,n,r){const i=g().gantt;r.db.setDiagramId(e);const s=g().securityLevel;let a;"sandbox"===s&&(a=m("#i"+e));const c=m("sandbox"===s?a.nodes()[0].contentDocument.body:"body"),u="sandbox"===s?a.nodes()[0].contentDocument:document,l=u.getElementById(e);void 0===(Zr=l.parentElement.offsetWidth)&&(Zr=1200),void 0!==i.useWidth&&(Zr=i.useWidth);const d=r.db.getTasks(),h=d.filter(t=>!t.vert);let f=[];for(const o of h)f.push(o.type);f=E(f);const T={};let v=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const t={};for(const n of h)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const r=Xr(t[n],e)+1;e+=r,v+=r*(i.barHeight+i.barGap),T[n]=r}}else{v+=h.length*(i.barHeight+i.barGap);for(const t of f)T[t]=h.filter(e=>e.type===t).length}l.setAttribute("viewBox","0 0 "+Zr+" "+v);const x=c.select(`[id="${e}"]`),w=hn().domain([F(d,function(t){return t.startTime}),Y(d,function(t){return t.endTime})]).rangeRound([0,Zr-i.leftPadding-i.rightPadding]);function D(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function M(t,e,n){const s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;_().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(rt),$(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),A(c,o,0,n),C(t,a,o,c,s,0,e),L(a,o),U(c,0,0,n)}function C(t,n,s,a,o,c,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const l=t.filter(t=>!t.vert),d=[...new Set(l.map(t=>t.order))].map(t=>l.find(e=>e.order===t));x.append("g").selectAll("rect").data(d).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter();const h=x.append("g").selectAll("rect").data(t).enter(),y=r.db.getLinks();if(h.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))-.5*o:w(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:w(t.renderEndTime||t.endTime)-w(t.startTime)}).attr("height",function(t){return t.vert?l.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,(w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of f.entries())t.type===a&&(n=s%i.numberSectionStyles);let r="";return t.active?t.crit?r+=" activeCrit":r=" active":t.done?r=t.crit?" doneCrit":" done":t.crit&&(r+=" crit"),0===r.length&&(r=" task"),t.milestone&&(r=" milestone "+r),t.vert&&(r=" vert "+r),r+=n,r+=" "+e,"task"+r}),h.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=w(t.startTime),n=w(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(w(t.endTime)-w(t.startTime))-.5*o,n=e+o),t.vert)return w(t.startTime)+a;const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+l.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){const e=w(t.startTime);let n=w(t.endTime);t.milestone&&(n=e+o);const r=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[o,u]of f.entries())t.type===u&&(a=o%i.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),t.vert&&(c+=" vertText"),r>n-e?n+r+1.5*i.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:s+" taskText taskText"+a+" "+c+" width-"+r}),"sandbox"===g().securityLevel){let t;t=m("#i"+e);const n=t.nodes()[0].contentDocument;h.filter(function(t){return y.has(t.id)}).each(function(t){var r=n.querySelector("#"+CSS.escape(e+"-"+t.id)),i=n.querySelector("#"+CSS.escape(e+"-"+t.id+"-text"));const s=r.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function $(t,n,s,a,o,c,u,l){if(0===u.length&&0===l.length)return;let d,h;for(const{startTime:e,endTime:r}of c)(void 0===d||e<d)&&(d=e),(void 0===h||r>h)&&(h=r);if(!d||!h)return;if(b(h).diff(b(d),"year")>5)return void k.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const f=r.db.getDateFormat(),g=[];let m=null,y=b(d);for(;y.valueOf()<=h;)r.db.isInvalidDate(y,f,u,l)?m?m.end=y:m={start:y,end:y}:m&&(g.push(m),m=null),y=y.add(1,"d");x.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>w(t.start.startOf("day"))+s).attr("y",i.gridLineStartPadding).attr("width",t=>w(t.end.endOf("day"))-w(t.start.startOf("day"))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",function(e,n){return(w(e.start)+s+.5*(w(e.end)-w(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function S(t,e,n,r){if(n<=0||t>e)return 1/0;const i=e-t,s=b.duration({[r??"day"]:n}).asMilliseconds();return s<=0?1/0:Math.ceil(i/s)}function A(t,e,n,s){const a=r.db.getDateFormat();let o;o=r.db.getAxisFormat()||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=function(t){return W(3,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],n=r.db.getWeekday()||i.weekday,s=w.domain(),a=S(s[0],s[1],t,e);if(a>1e4)k.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":c.ticks(ot.every(t));break;case"second":c.ticks(gt.every(t));break;case"minute":c.ticks(mt.every(t));break;case"hour":c.ticks(yt.every(t));break;case"day":c.ticks(kt.every(t));break;case"week":c.ticks(qr[n].every(t));break;case"month":c.ticks(Et.every(t))}}}if(x.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return W(1,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],s=r.db.getWeekday()||i.weekday,a=w.domain();if(S(a[0],a[1],t,e)<=1e4)switch(e){case"millisecond":n.ticks(ot.every(t));break;case"second":n.ticks(gt.every(t));break;case"minute":n.ticks(mt.every(t));break;case"hour":n.ticks(yt.every(t));break;case"day":n.ticks(kt.every(t));break;case"week":n.ticks(qr[s].every(t));break;case"month":n.ticks(Et.every(t))}}}x.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function L(t,e){let n=0;const r=Object.keys(T).map(t=>[t,T[t]]);x.append("g").selectAll("text").data(r).enter().append(function(t){const e=t[0].split(p.lineBreakRegex),n=-(e.length-1)/2,r=u.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,s]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),i>0&&t.setAttribute("dy","1em"),t.textContent=s,r.appendChild(t)}return r}).attr("x",10).attr("y",function(i,s){if(!(s>0))return i[1]*t/2+e;for(let a=0;a<s;a++)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(const[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function U(t,e,n,s){const a=r.db.getTodayMarker();if("off"===a)return;const o=x.append("g").attr("class","today"),c=new Date,u=o.append("line");u.attr("x1",w(c)+t).attr("x2",w(c)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==a&&u.attr("style",a.replace(/,/g,";"))}function E(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}o(D,"taskCompare"),d.sort(D),M(d,Zr,v),y(x,v,Zr,i.useMaxWidth),x.append("text").text(r.db.getDiagramTitle()).attr("x",Zr/2).attr("y",i.titleTopMargin).attr("class","titleText"),o(M,"makeGantt"),o(C,"drawRects"),o($,"drawExcludeDays"),o(S,"getEstimatedTickCount"),o(A,"makeGrid"),o(L,"vertLabels"),o(U,"drawToday"),o(E,"checkUnique")},"draw")},styles:o(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles")};export{Qr as diagram};
@@ -1 +0,0 @@
1
- import{I as t}from"./chunk-2Q5K7J3B-CuStQQP5.js";import{p as r}from"./chunk-JWPE2WC7-CwqQJZta.js";import{_ as e,p as o,o as n,s as a,g as s,a as i,b as c,z as d,l as h,d as $,c as m,y as l,A as g,q as p,k as y,B as f,D as x,E as u}from"./mermaid.core-jR_k1I8D.js";import{p as b}from"./cynefin-VYW2F7L2-fGkbWpUF.js";import"./index-Dx_1eu1W.js";import"./RemoteLifeOSBlock-BjYrjRa2.js";import"./App-C21-MM7L.js";import"./index-BTavN9lk.js";import"./file-editor-index-C6CU7Fik.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=x.gitGraph,B=e(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return u({length:7})}function L(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}e(C,"getID"),e(L,"uniqBy");var T=e(function(t){E.records.direction=t},"setDirection"),M=e(function(t){h.debug("options str",t),t=t?.trim(),t=t||"{}";try{E.records.options=JSON.parse(t)}catch(r){h.error("error while parsing gitGraph options",r.message)}},"setOptions"),v=e(function(){return E.records.options},"getOptions"),I=e(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=n?.map(t=>y.sanitizeText(t,a));const s={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=s,h.info("main branch",a.mainBranchName),E.records.commits.has(s.id)&&h.warn(`Commit ID ${s.id} already exists`),E.records.commits.set(s.id,s),E.records.branches.set(E.records.currBranch,s.id),h.debug("in pushCommit "+s.id)},"commit"),R=e(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=e(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const s=E.records.branches.get(E.records.currBranch),i=E.records.branches.get(r),c=s?E.records.commits.get(s):void 0,d=i?E.records.commits.get(i):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${n?.join(" ")}`,token:`merge ${r} ${e} ${o} ${n?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${n?.join(" ")}`]},t}const $=i||"",m={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,$],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=m,E.records.commits.set(m.id,m),E.records.branches.set(E.records.currBranch,m.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=e(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=o?.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const s=E.records.commits.get(r);if(void 0===s||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(s.parents)||!s.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const i=s.branch;if(s.type===w.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!E.records.commits.has(e)){if(i===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${s?.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,s.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${s.id}${s.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=e(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const n in E.records.branches)E.records.branches.get(n)===r.id&&o.push(n);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=L(t,t=>t.id))}e(G,"upsert"),e(S,"prettyPrintCommitHistory");var W=e(function(){h.debug(E.records.commits),S([_()[0]])},"prettyPrint"),H=e(function(){E.reset(),p()},"clear"),q=e(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),j=e(function(){return E.records.branches},"getBranches"),z=e(function(){return E.records.commits},"getCommits"),_=e(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:T,setOptions:M,getOptions:v,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:q,getBranches:j,getCommits:z,getCommitsArray:_,getCurrentBranch:e(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:e(function(){return E.records.direction},"getDirection"),getHead:e(function(){return E.records.head},"getHead"),setAccTitle:c,getAccTitle:i,getAccDescription:s,setAccDescription:a,setDiagramTitle:n,getDiagramTitle:o},F=e((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=e((t,r)=>{const o={Commit:e(t=>r.commit(K(t)),"Commit"),Branch:e(t=>r.branch(V(t)),"Branch"),Merge:e(t=>r.merge(Y(t)),"Merge"),Checkout:e(t=>r.checkout(U(t)),"Checkout"),CherryPicking:e(t=>r.cherryPick(J(t)),"CherryPicking")}[t.$type];o?o(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=e(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=e(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=e(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),U=e(t=>t.branch,"parseCheckout"),J=e(t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Q={parse:e(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=e((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,st=new Map,it=[],ct=0,dt="LR",ht=e(()=>{nt.clear(),at.clear(),st.clear(),ct=0,it=[],dt="LR"},"clear"),$t=e(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),mt=e(t=>{let r,o,n;return"BT"===dt?(o=e((t,r)=>t<=r,"comparisonFunc"),n=1/0):(o=e((t,r)=>t>=r,"comparisonFunc"),n=0),t.forEach(t=>{const e="TB"===dt||"BT"==dt?at.get(t)?.y:at.get(t)?.x;void 0!==e&&o(e,n)&&(r=t,n=e)}),r},"findClosestParent"),lt=e(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=e((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{xt(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(e?.parents.length){const t=lt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=e(t=>{const r=mt(t.parents.filter(t=>null!==t));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=at.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),yt=e(t=>pt(t)+Z,"calculateCommitPosition"),ft=e((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),xt=e((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),ut=e((t,r,e,o,n,a)=>{const{theme:s}=m(),i=tt.has(s??""),c=rt.has(s??""),d=et.has(s??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(i?3:0)).attr("y",e.y-10+(i?3:0)).attr("width",i?14:20).attr("height",i?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(i?2:0)).attr("y",e.y-6+(i?2:0)).attr("width",i?8:12).attr("height",i?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",i?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const s=t.append("circle");if(s.attr("cx",e.x),s.attr("cy",e.y),s.attr("r",i?7:10),s.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",i?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=i?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=e((t,r,e,o,n)=>{if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),i=a.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),c=i.node()?.getBBox();if(c&&(s.attr("x",e.posWithOffset-c.width/2-2).attr("y",e.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===dt||"BT"===dt?(s.attr("x",e.x-(c.width+16+5)).attr("y",e.y-12),i.attr("x",e.x-(c.width+16)).attr("y",e.y+c.height-12)):i.attr("x",e.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)i.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),s.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(c.width+10)/25*9.5,r=10+c.width/25*8.5;a.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=e((t,r,e,o)=>{if(r.tags.length>0){let n=0,a=0,s=0;const i=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",e.y-16-n).attr("class","tag-label").text(o),h=d.node()?.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),s=Math.max(s,h.height),d.attr("x",e.posWithOffset-h.width/2),i.push({tag:d,hole:c,rect:r,yOffset:n}),n+=20}for(const{tag:t,hole:r,rect:c,yOffset:d}of i){const n=s/2,i=e.y-19.2-d;if(c.attr("class","tag-label-bkg").attr("points",`\n ${o-a/2-2},${i+2} \n ${o-a/2-2},${i-2}\n ${e.posWithOffset-a/2-4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i+n+2}\n ${e.posWithOffset-a/2-4},${i+n+2}`),r.attr("cy",i).attr("cx",o-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const s=o+d;c.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${s+2}\n ${e.x},${s-2}\n ${e.x+X},${s-n-2}\n ${e.x+X+a+4},${s-n-2}\n ${e.x+X+a+4},${s+n+2}\n ${e.x+X},${s+n+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=e(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=e((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0))return"TB"===r?30:"BT"===r?(o.get(t.id)??n).y-Z:0;{const e=mt(t.parents);if(e){const a=o.get(e)??n;return"TB"===r?a.y+Z:"BT"===r?(o.get(t.id)??n).y-Z:a.x+Z}}return 0},"calculatePosition"),Et=e((t,r,e)=>{const o="BT"===dt&&e?r:r+X,n=nt.get(t.branch)?.pos,a="TB"===dt||"BT"===dt?nt.get(t.branch)?.pos:o;if(void 0===a||void 0===n)throw new Error(`Position were undefined for commit ${t.id}`);const s=tt.has(m().theme??"");return{x:a,y:"TB"===dt||"BT"===dt?o:n+(s?7:-2),posWithOffset:o}},"getCommitPosition"),Ct=e((t,r,o,n)=>{const a=t.append("g").attr("class","commit-bullets"),s=t.append("g").attr("class","commit-labels");let i="TB"===dt||"BT"===dt?30:0;const c=[...r.keys()],d=n.parallelCommits??!1,h=e((t,e)=>{const o=r.get(t)?.seq,n=r.get(e)?.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys");let $=c.sort(h);"BT"===dt&&(d&&gt($,r,i),$=$.reverse()),$.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);d&&(i=Bt(e,dt,i,at));const c=Et(e,i,d);if(o){const t=kt(e),r=e.customType??e.type,o=nt.get(e.branch)?.index??0;ut(a,e,c,t,o,r),bt(s,e,c,i,n),wt(s,e,c,i)}"TB"===dt||"BT"===dt?at.set(e.id,{x:c.x,y:c.posWithOffset}):at.set(e.id,{x:c.posWithOffset,y:c.y}),i="BT"===dt&&d?i+Z:i+Z+X,i>ct&&(ct=i)})},"drawCommits"),Lt=e((t,r,o,n,a)=>{const s=("TB"===dt||"BT"===dt?o.x<n.x:o.y<n.y)?r.branch:t.branch,i=e(t=>t.branch===s,"isOnBranchToGetCurve"),c=e(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...a.values()].some(t=>c(t)&&i(t))},"shouldRerouteArrow"),Tt=e((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(it.every(t=>Math.abs(t-o)>=10))return it.push(o),o;const n=Math.abs(t-r);return Tt(t,r-n/5,e+1)},"findLane"),Mt=e((t,r,e,o)=>{const{theme:n}=m(),a=rt.has(n??""),s=at.get(r.id),i=at.get(e.id);if(void 0===s||void 0===i)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=Lt(r,e,s,i,o);let d,h="",$="",l=0,g=0,p=nt.get(e.branch)?.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(p=nt.get(r.branch)?.index),c){h="A 10 10, 0, 0, 0,",$="A 10 10, 0, 0, 1,",l=10,g=10;const t=s.y<i.y?Tt(s.y,i.y):Tt(i.y,s.y),e=s.x<i.x?Tt(s.x,i.x):Tt(i.x,s.x);"TB"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${$} ${e} ${s.y+g} L ${e} ${i.y-l} ${h} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${h} ${e} ${s.y+g} L ${e} ${i.y-l} ${$} ${e-g} ${i.y} L ${i.x} ${i.y}`):"BT"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${h} ${e} ${s.y-g} L ${e} ${i.y+l} ${$} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${$} ${e} ${s.y-g} L ${e} ${i.y+l} ${h} ${e-g} ${i.y} L ${i.x} ${i.y}`):s.y<i.y?d=`M ${s.x} ${s.y} L ${s.x} ${t-l} ${h} ${s.x+g} ${t} L ${i.x-l} ${t} ${$} ${i.x} ${t+g} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${s.x} ${t+l} ${$} ${s.x+g} ${t} L ${i.x-l} ${t} ${h} ${i.x} ${t-g} L ${i.x} ${i.y}`)}else h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,"TB"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${$} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${h} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):"BT"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${h} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${$} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):(s.y<i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y>i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y===i.y&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`));if(void 0===d)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+ot(p,8,a))},"drawArrow"),vt=e((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Mt(e,r.get(t),o,r)})})},"drawArrows"),It=e((t,r,e,o)=>{const{look:n,theme:a,themeVariables:s}=m(),{dropShadow:i,THEME_COLOR_LIMIT:c}=s,d=tt.has(a??""),h=rt.has(a??""),$=t.append("g");r.forEach((t,r)=>{const a=ot(r,d?c:8,h),s=nt.get(t.name)?.pos;if(void 0===s)throw new Error(`Position not found for branch ${t.name}`);const m="TB"===dt||"BT"===dt?s:d?s+6+1:s-2,l=$.append("line");l.attr("x1",0),l.attr("y1",m),l.attr("x2",ct),l.attr("y2",m),l.attr("class","branch branch"+a),"TB"===dt?(l.attr("y1",30),l.attr("x1",s),l.attr("y2",ct),l.attr("x2",s)):"BT"===dt&&(l.attr("y1",ct),l.attr("x1",s),l.attr("y2",30),l.attr("x2",s)),it.push(m);const g=t.name,p=$t(g),y=$.insert("rect"),f=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);f.node().appendChild(p);const x=p.getBBox(),u=d?0:4,b=d?16:0,w=d?12:0;"neo"===n&&y.attr("data-look","neo"),y.attr("class","branchLabelBkg label"+a).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:i}`:"").attr("rx",u).attr("ry",u).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+b).attr("height",x.height+4+w),f.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+b/2)+", "+(m-x.height/2-2)+")"),"TB"===dt?(y.attr("x",s-x.width/2-10).attr("y",0),f.attr("transform","translate("+(s-x.width/2-5)+", 0)"),d&&(y.attr("transform",`translate(${-b/2-3}, ${-w-10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(2*-w+7)+")"))):"BT"===dt?(y.attr("x",s-x.width/2-10).attr("y",ct),f.attr("transform","translate("+(s-x.width/2-5)+", "+ct+")"),d&&(y.attr("transform",`translate(${-b/2-3}, ${w+10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(ct+2*w+4)+")"))):y.attr("transform","translate(-19, "+(m-12-w/2)+")")})},"drawBranches"),Rt=e(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+(50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0))},"setBranchPosition"),Pt={draw:e(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),s=a.rotateCommitLabel??!1;st=n.getCommits();const i=n.getBranchesAsObjArray();dt=n.getDirection();const c=$(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=m(),{useGradient:f,gradientStart:x,gradientStop:u,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;i.forEach((t,r)=>{const e=$t(t.name),o=c.append("g"),n=o.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label");a.node()?.appendChild(e);const i=e.getBBox();w=Rt(t.name,w,r,i,s),a.remove(),n.remove(),o.remove()}),Ct(c,st,!1,a),a.showBranches&&It(c,i,a,r),vt(c,st),Ct(c,st,!0,a),l.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Ht=e(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),qt=e(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${Ht(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const s=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .commit-highlight${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[s]}; stroke: ${n[s]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[s]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),jt=e(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),zt={parser:Q,db:D,renderer:Pt,styles:e(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?qt(t):jt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{zt as diagram};
@@ -1 +0,0 @@
1
- import{R as e,M as s,B as t}from"./mermaid-O7DHMXV3-DKlyhw3K.js";import{r as a,j as i}from"./index-Dx_1eu1W.js";import"./index-BTavN9lk.js";import"./App-C21-MM7L.js";import"./collectMessageImages-ZyOAE6id.js";import"./clsx-dhsJw0G5.js";import"./index-1M7_HtDu.js";var r=({code:r,language:o,raw:m,className:l,startLine:g,...d})=>{let{shikiTheme:n}=a.useContext(e),c=s(),[p,j]=a.useState(m);return a.useEffect(()=>{if(!c)return void j(m);let e=c.highlight({code:r,language:o,themes:n},e=>{j(e)});e&&j(e)},[r,o,n,c,m]),i.jsx(t,{className:l,language:o,result:p,startLine:g,...d})};export{r as HighlightedCodeBlockBody};
@@ -1 +0,0 @@
1
- class n{constructor(n,l,e){this.normal=l,this.property=n,e&&(this.space=e)}}function l(l,e){const o={},t={};for(const n of l)Object.assign(o,n.property),Object.assign(t,n.normal);return new n(o,t,e)}function e(n){return n.toLowerCase()}n.prototype.normal={},n.prototype.property={},n.prototype.space=void 0;class o{constructor(n,l){this.attribute=l,this.property=n}}o.prototype.attribute="",o.prototype.booleanish=!1,o.prototype.boolean=!1,o.prototype.commaOrSpaceSeparated=!1,o.prototype.commaSeparated=!1,o.prototype.defined=!1,o.prototype.mustUseProperty=!1,o.prototype.number=!1,o.prototype.overloadedBoolean=!1,o.prototype.property="",o.prototype.spaceSeparated=!1,o.prototype.space=void 0;let t=0;const a=d(),r=d(),u=d(),i=d(),s=d(),c=d(),p=d();function d(){return 2**++t}const g=Object.freeze(Object.defineProperty({__proto__:null,boolean:a,booleanish:r,commaOrSpaceSeparated:p,commaSeparated:c,number:i,overloadedBoolean:u,spaceSeparated:s},Symbol.toStringTag,{value:"Module"})),h=Object.keys(g);class m extends o{constructor(n,l,e,o){let t=-1;if(super(n,l),f(this,"space",o),"number"==typeof e)for(;++t<h.length;){const n=h[t];f(this,h[t],(e&g[n])===g[n])}}}function f(n,l,e){e&&(n[l]=e)}function y(l){const o={},t={};for(const[n,a]of Object.entries(l.properties)){const r=new m(n,l.transform(l.attributes||{},n),a,l.space);l.mustUseProperty&&l.mustUseProperty.includes(n)&&(r.mustUseProperty=!0),o[n]=r,t[e(n)]=n,t[e(r.attribute)]=n}return new n(o,t,l.space)}m.prototype.defined=!0;const v=y({properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:r,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:s,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:i,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:s,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:r,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null},transform:(n,l)=>"role"===l?l:"aria-"+l.slice(4).toLowerCase()});function k(n,l){return l in n?n[l]:l}function b(n,l){return k(n,l.toLowerCase())}const S=y({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:c,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,blocking:s,capture:null,charSet:null,checked:a,cite:null,className:s,cols:i,colSpan:null,content:null,contentEditable:r,controls:a,controlsList:s,coords:i|c,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:u,draggable:r,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:i,hidden:u,high:i,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:null,inert:a,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:i,manifest:null,max:null,maxLength:i,media:null,method:null,min:null,minLength:i,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:i,pattern:null,ping:s,placeholder:null,playsInline:a,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:i,rowSpan:i,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shadowRootClonable:a,shadowRootDelegatesFocus:a,shadowRootMode:null,shape:null,size:i,sizes:null,slot:null,span:i,spellCheck:r,src:null,srcDoc:null,srcLang:null,srcSet:null,start:i,step:null,style:null,tabIndex:i,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:r,width:i,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:i,borderColor:null,bottomMargin:i,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:i,leftMargin:i,link:null,longDesc:null,lowSrc:null,marginHeight:i,marginWidth:i,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:i,rules:null,scheme:null,scrolling:r,standby:null,summary:null,text:null,topMargin:i,valueType:null,version:null,vAlign:null,vLink:null,vSpace:i,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:i,security:null,unselectable:null},space:"html",transform:b}),C=y({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:p,accentHeight:i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i,amplitude:i,arabicForm:null,ascent:i,attributeName:null,attributeType:null,azimuth:i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i,by:null,calcMode:null,capHeight:i,className:s,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:i,diffuseConstant:i,direction:null,display:null,dur:null,divisor:i,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:i,enableBackground:null,end:null,event:null,exponent:i,externalResourcesRequired:null,fill:null,fillOpacity:i,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:c,g2:c,glyphName:c,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i,horizOriginX:i,horizOriginY:i,id:null,ideographic:i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i,k:i,k1:i,k2:i,k3:i,k4:i,kernelMatrix:p,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:i,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i,overlineThickness:i,paintOrder:null,panose1:null,path:null,pathLength:i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i,pointsAtY:i,pointsAtZ:i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p,rev:p,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p,requiredFeatures:p,requiredFonts:p,requiredFormats:p,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:i,specularExponent:i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i,strikethroughThickness:i,string:null,stroke:null,strokeDashArray:p,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i,strokeOpacity:i,strokeWidth:null,style:null,surfaceScale:i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p,tabIndex:i,tableValues:null,target:null,targetX:i,targetY:i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:i,underlineThickness:i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i,values:null,vAlphabetic:i,vMathematical:i,vectorEffect:null,vHanging:i,vIdeographic:i,version:null,vertAdvY:i,vertOriginX:i,vertOriginY:i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:k}),x=y({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,l)=>"xlink:"+l.slice(5).toLowerCase()}),P=y({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:b}),w=y({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,l)=>"xml:"+l.slice(3).toLowerCase()}),M=/[A-Z]/g,L=/-[a-z]/g,O=/^data[-\w.:]+$/i;function D(n,l){const t=e(l);let a=l,r=o;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&O.test(l)){if("-"===l.charAt(4)){const n=l.slice(5).replace(L,T);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=l.slice(4);if(!L.test(n)){let e=n.replace(M,R);"-"!==e.charAt(0)&&(e="-"+e),l="data"+e}}r=m}return new r(a,l)}function R(n){return"-"+n.toLowerCase()}function T(n){return n.charAt(1).toUpperCase()}const E=l([v,S,x,P,w],"html"),A=l([v,C,x,P,w],"svg");function U(n){const l=[],e=String(n||"");let o=e.indexOf(","),t=0,a=!1;for(;!a;){-1===o&&(o=e.length,a=!0);const n=e.slice(t,o).trim();!n&&a||l.push(n),t=o+1,o=e.indexOf(",",t)}return l}function z(n,l){const e=l||{};return(""===n[n.length-1]?[...n,""]:n).join((e.padRight?" ":"")+","+(!1===e.padLeft?"":" ")).trim()}function B(n){const l=String(n||"").trim();return l?l.split(/[ \t\n\r\f]+/g):[]}function I(n){return n.join(" ").trim()}const H=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],F=/[ \t\n\f\r]/g;function j(n){return"object"==typeof n?"text"===n.type&&V(n.value):V(n)}function V(n){return""===n.replace(F,"")}export{z as a,I as b,H as c,U as d,D as f,E as h,e as n,B as p,A as s,j as w};
@@ -1 +0,0 @@
1
- import{ae as e,aq as t,ar as n,f as r}from"./App-C21-MM7L.js";function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const i={characterGroupPunctuation:2,characterGroupWhitespace:1,tabSize:4},s={linePrefix:"linePrefix",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};function c(){}const a=function(e){if(null==e)return f;if("function"==typeof e)return u(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=a(e[n]);return u(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){const t=e;return u(function(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0})}(e);if("string"==typeof e)return function(e){return u(function(t){return t&&t.type===e})}(e);throw new Error("Expected function, string, or object as test")};function u(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function f(){return!0}const l=[],h=!0,p=!1,d="skip";function m(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=a(o),s=r?-1:1;!function e(o,c,a){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){let u,f,m,g=l;if((!t||i(o,c,a[a.length-1]||void 0))&&(g=function(e){return Array.isArray(e)?e:"number"==typeof e?[h,e]:null==e?l:[e]}(n(o,a)),g[0]===p))return g;if("children"in o&&o.children){const t=o;if(t.children&&g[0]!==d)for(f=(r?t.children.length:-1)+s,m=a.concat(t);f>-1&&f<t.children.length;){const n=t.children[f];if(u=e(n,f,m)(),u[0]===p)return u;f="number"==typeof u[1]?u[1]:f+s}}return g}}(e,void 0,[])()}function g(e,t,n,r){let o,i,s;"function"==typeof t&&"function"!=typeof n?(i=void 0,s=t,o=n):(i=t,s=n,o=r),m(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},o)}const y={}.hasOwnProperty;function v(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&y.call(t,e)){const n=String(t[e]);o=y.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function b(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function w(e,t,n){return">"+(n?"":" ")+e}function x(e,t){return k(e,t.inConstruct,!0)&&!k(e,t.notInConstruct,!1)}function k(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function E(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&x(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function A(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function P(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function I(e,t,n){return(n?"":" ")+e}function T(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function C(e){return"&#x"+e.toString(16).toUpperCase()+";"}function O(t,n,r){const o=e(t),i=e(n);return void 0===o?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===o?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function S(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),s=n.createTracker(r),c=s.move(o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}function R(e,n){let r=!1;return g(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,p}),Boolean((!e.depth||e.depth<3)&&t(e)&&(n.options.setext||r))}function z(e){return e.value||""}function _(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),u+=a.move(")"),s(),u}function L(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("![");const u=n.safe(e.alt,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function j(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function F(e,n){const r=t(e);return Boolean(!n.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function U(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.createTracker(r);let c,a;if(F(e,n)){const t=n.stack;n.stack=[],c=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),c(),n.stack=t,r}c=n.enter("link"),a=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),a()),u+=s.move(")"),c(),u}function B(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(r);let a=c.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...c.current()});a+=c.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const l=n.safe(n.associationId(e),{before:a,after:"]",...c.current()});return s(),n.stack=f,i(),"full"!==o&&u&&u===l?"shortcut"===o?a=a.slice(0,-1):a+=c.move("]"):a+=c.move(l+"]"),a}function M(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function q(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}S.peek=function(e,t,n){return n.options.emphasis||"*"},z.peek=function(){return"<"},_.peek=function(){return"!"},L.peek=function(){return"!"},j.peek=function(){return"`"},U.peek=function(e,t,n){return F(e,n)?"<":"["},B.peek=function(){return"["};const N=a(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function V(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),s=n.createTracker(r),c=s.move(o+o);let a=s.move(n.containerPhrasing(e,{after:o,before:c,...s.current()}));const u=a.charCodeAt(0),f=O(r.before.charCodeAt(r.before.length-1),u,o);f.inside&&(a=C(u)+a.slice(1));const l=a.charCodeAt(a.length-1),h=O(r.after.charCodeAt(0),l,o);h.inside&&(a=a.slice(0,-1)+C(l));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},c+a+p}V.peek=function(e,t,n){return n.options.strong||"*"};const $={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),w);return o(),s},break:E,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",s="`"===o?"GraveAccent":"Tilde";if(P(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,I);return e(),t}const c=n.createTracker(r),a=o.repeat(Math.max(A(i,o)+1,3)),u=n.enter("codeFenced");let f=c.move(a);if(e.lang){const t=n.enter(`codeFencedLang${s}`);f+=c.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...c.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);f+=c.move(" "),f+=c.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...c.current()})),t()}return f+=c.move("\n"),i&&(f+=c.move(i+"\n")),f+=c.move(a),u(),f},definition:function(e,t,n,r){const o=T(n),i='"'===o?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(c=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),c()),s(),u},emphasis:S,hardBreak:E,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(R(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===o?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(o),c=n.enter("headingAtx"),a=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=C(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),a(),c(),u},html:z,image:_,imageReference:L,inlineCode:j,link:U,linkReference:B,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):M(n);const c=e.ordered?"."===s?")":".":function(e){const t=M(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let a=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(a=!0),q(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){a=!0;break}}}}a&&(s=c),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||M(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let s=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const c=n.createTracker(r);c.move(i+" ".repeat(s-i.length)),c.shift(s);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,c.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?i:i+" ".repeat(s-i.length))+e});return a(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s},root:function(e,t,n,r){return(e.children.some(function(e){return N(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:V,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(q(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};class D extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let o="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?o=e:!i.cause&&e&&(s=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){const e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=n(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}function G(e){const t=this;t.parser=function(n){return r(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function H(e){if(e)throw e}var Q,J;D.prototype.file="",D.prototype.name="",D.prototype.reason="",D.prototype.message="",D.prototype.stack="",D.prototype.column=void 0,D.prototype.line=void 0,D.prototype.ancestors=void 0,D.prototype.cause=void 0,D.prototype.fatal=void 0,D.prototype.place=void 0,D.prototype.ruleId=void 0,D.prototype.source=void 0;const Y=o(function(){if(J)return Q;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Q=function e(){var t,n,r,a,u,f,l=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},h=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=c(l,n),l!==(a=c(t,n))&&(d&&a&&(i(a)||(u=o(a)))?(u?(u=!1,f=r&&o(r)?r:[]):f=r&&i(r)?r:{},s(l,{name:n,newValue:e(d,f,a)})):void 0!==a&&s(l,{name:n,newValue:a}));return l}}());function W(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}const K=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');Z(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,c=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),c>-1&&(e.codePointAt(i)===t.codePointAt(c--)?c<0&&(o=i):(c=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},X=function(...e){let t,n=-1;for(;++n<e.length;)Z(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){Z(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,s=-1,c=0,a=-1;for(;++a<=e.length;){if(a<e.length)n=e.codePointAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===c);else if(s!==a-1&&2===c){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),s=a,c=0;continue}}else if(o.length>0){o="",i=0,s=a,c=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(s+1,a):o=e.slice(s+1,a),i=a-s-1;s=a,c=0}else 46===n&&c>-1?c++:c=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)};function Z(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ee(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const te=["history","path","basename","stem","extname","dirname"];class ne{constructor(e){let t;t=e?ee(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<te.length;){const e=te[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)te.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?K(this.path):void 0}set basename(e){oe(e,"basename"),re(e,"basename"),this.path=X(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?function(e){if(Z(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)}(this.path):void 0}set dirname(e){ie(this.basename,"dirname"),this.path=X(e||"",this.basename)}get extname(){return"string"==typeof this.path?function(e){Z(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const c=e.codePointAt(n);if(47!==c)r<0&&(t=!0,r=n+1),46===c?i<0?i=n:1!==s&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||0===s||1===s&&i===r-1&&i===o+1?"":e.slice(i,r)}(this.path):void 0}set extname(e){if(re(e,"extname"),ie(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=X(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ee(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ee(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),oe(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?K(this.path,this.extname):void 0}set stem(e){oe(e,"stem"),re(e,"stem"),this.path=X(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new D(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function re(e,t){if(e&&e.includes("/"))throw new Error("`"+t+"` cannot be a path: did not expect `/`")}function oe(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ie(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const se=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ce={}.hasOwnProperty;class ae extends se{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...s){const c=e[++n];let a=-1;if(i)r(i);else{for(;++a<t.length;)null!==s[a]&&void 0!==s[a]||(s[a]=t[a]);t=s,c?function(e,t){let n;return function(...t){const s=e.length>t.length;let c;s&&t.push(r);try{c=e.apply(this,t)}catch(i){if(s&&n)throw i;return r(i)}s||(c&&c.then&&"function"==typeof c.then?c.then(o,r):c instanceof Error?r(c):o(c))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(c,o)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new ae;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Y(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(he("data",this.frozen),this.namespace[e]=t,this):ce.call(this.namespace,e)&&this.namespace[e]||void 0:e?(he("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=me(e),n=this.parser||this.Parser;return fe("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),fe("process",this.parser||this.Parser),le("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=me(e),s=n.parse(i);function c(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(s,i,function(e,t,r){if(e||!t||!r)return c(e);const o=t,i=n.stringify(o,r);!function(e){return"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)}(i)?r.result=i:r.value=i,c(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),fe("processSync",this.parser||this.Parser),le("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,H(e),t=r}),de("processSync","process",n),t}run(e,t,n){pe(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const s=me(t);r.run(e,s,function(t,r,s){const c=r||e;t?i(t):o?o(c):n(void 0,c,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){H(e),n=t,r=!0}),de("runSync","run",r),n}stringify(e,t){this.freeze();const n=me(t),r=this.compiler||this.Compiler;return le("stringify",r),pe(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(he("use",this.frozen),null==e);else if("function"==typeof e)c(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):i(e)}return this;function o(e){if("function"==typeof e)c(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=Y(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)o(e[t])}}function c(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const s=n[o][1];W(s)&&W(r)&&(r=Y(!0,s,r)),n[o]=[e,r,...i]}}}}const ue=(new ae).freeze();function fe(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function le(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function he(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pe(e){if(!W(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function de(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function me(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ne(e)}export{h as C,d as S,D as V,b as a,g as b,a as c,R as d,C as e,P as f,o as g,$ as h,i,A as l,c as o,x as p,G as r,s as t,ue as u,m as v,v as z};
@@ -1 +0,0 @@
1
- import{_ as e,l as r,F as t,e as s}from"./mermaid.core-jR_k1I8D.js";import{p as i}from"./cynefin-VYW2F7L2-fGkbWpUF.js";import"./index-Dx_1eu1W.js";import"./RemoteLifeOSBlock-BjYrjRa2.js";import"./App-C21-MM7L.js";import"./index-BTavN9lk.js";import"./file-editor-index-C6CU7Fik.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var a={parser:{parse:e(async e=>{const t=await i("info",e);r.debug(t)},"parse")},db:{getVersion:e(()=>"11.16.0","getVersion")},renderer:{draw:e((e,i,a)=>{r.debug("rendering info diagram\n"+e);const o=t(i);s(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{a as diagram};
@@ -1 +0,0 @@
1
- var t;import{_ as e,c as i,a1 as n,F as s,ak as a,q as r,k as h,o,a as l,b as c,g as u,s as d,p as y,e as p}from"./mermaid.core-jR_k1I8D.js";import"./RemoteLifeOSBlock-BjYrjRa2.js";import"./index-Dx_1eu1W.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./App-C21-MM7L.js";import"./index-BTavN9lk.js";import"./file-editor-index-C6CU7Fik.js";var g=function(){var t=e(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),i=[1,4],n=[1,14],s=[1,12],a=[1,13],r=[6,7,8],h=[1,20],o=[1,18],l=[1,19],c=[6,7,11],u=[1,6,13,14],d=[1,23],y=[1,24],p=[1,6,7,11,13,14],g={trace:e(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:e(function(t,e,i,n,s,a,r){var h=a.length-1;switch(s){case 6:case 7:return n;case 15:n.addNode(a[h-1].length,a[h].trim());break;case 16:n.addNode(0,a[h].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:n,7:[1,10],9:9,12:11,13:s,14:a},t(r,[2,3]),{1:[2,2]},t(r,[2,4]),t(r,[2,5]),{1:[2,6],6:n,12:15,13:s,14:a},{6:n,9:16,12:11,13:s,14:a},{6:h,7:o,10:17,11:l},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:h,7:o,10:22,11:l},{1:[2,7],6:n,12:15,13:s,14:a},t(u,[2,14],{7:d,11:y}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(u,[2,13],{7:d,11:y}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(t,e){if(!e.recoverable){var i=new Error(t);throw i.hash=e,i}this.trace(t)},"parseError"),parse:e(function(t){var i=this,n=[0],s=[],a=[null],r=[],h=this.table,o="",l=0,c=0,u=r.slice.call(arguments,1),d=Object.create(this.lexer),y={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y.yy[p]=this.yy[p]);d.setInput(t,y.yy),y.yy.lexer=d,y.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var g=d.yylloc;r.push(g);var f=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=s.pop()||d.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,e(function(t){n.length=n.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),e(k,"lex");for(var m,w,x,_,b,v,S,$,I={};;){if(w=n[n.length-1],this.defaultActions[w]?x=this.defaultActions[w]:(null==m&&(m=k()),x=h[w]&&h[w][m]),void 0===x||!x.length||!x[0]){var A;for(b in $=[],h[w])this.terminals_[b]&&b>2&&$.push("'"+this.terminals_[b]+"'");A=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(A,{text:d.match,token:this.terminals_[m]||m,line:d.yylineno,loc:g,expected:$})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+m);switch(x[0]){case 1:n.push(m),a.push(d.yytext),r.push(d.yylloc),n.push(x[1]),m=null,c=d.yyleng,o=d.yytext,l=d.yylineno,g=d.yylloc;break;case 2:if(v=this.productions_[x[1]][1],I.$=a[a.length-v],I._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},f&&(I._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),void 0!==(_=this.performAction.apply(I,[o,c,l,y.yy,x[1],a,r].concat(u))))return _;v&&(n=n.slice(0,-1*v*2),a=a.slice(0,-1*v),r=r.slice(0,-1*v)),n.push(this.productions_[x[1]][0]),a.push(I.$),r.push(I._$),S=h[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},"parse")},f=function(){return{EOF:1,parseError:e(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:e(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:e(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:e(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=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),i.length-1&&(this.yylineno-=i.length-1);var s=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:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:e(function(t){this.unput(this.match.slice(t))},"less"),pastInput:e(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:e(function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var a in s)this[a]=s[a];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;var t,e,i,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),a=0;a<s.length;a++)if((i=this._input.match(this.rules[s[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){return this.next()||this.lex()},"lex"),begin:e(function(t){this.conditionStack.push(t)},"begin"),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:e(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:e(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:e(function(t){this.begin(t)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(t,e,i,n){switch(i){case 0:case 3:return 6;case 1:case 2:return 8;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 k(){this.yy={}}return g.lexer=f,e(k,"Parser"),k.prototype=g,g.Parser=k,new k}();g.parser=g;var f=g,k=(e(t=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,r()}getRoot(){return this.root}addNode(t,e){const n=h.sanitizeText(e,i());if(!this.root)return this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],void o(n);this.baseLevel??=t;let s=t-this.baseLevel+1;for(s<=0&&(s=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=s;)this.stack.pop();const a={text:n,children:[]};this.stack[this.stack.length-1].node.children.push(a),this.stack.push({level:s,node:a})}getAccTitle(){return l()}setAccTitle(t){c(t)}getAccDescription(){return u()}setAccDescription(t){d(t)}getDiagramTitle(){return y()}setDiagramTitle(t){o(t)}},"IshikawaDB"),t),m=250,w=82*Math.PI/180,x=Math.cos(w),_=Math.sin(w),b=e((t,e,i)=>{const n=t.node().getBBox(),s=n.width+2*e,a=n.height+2*e;p(t,a,s,i),t.attr("viewBox",`${n.x-e} ${n.y-e} ${s} ${a}`)},"applyPaddedViewBox"),v=e((t,e,r,h)=>{const o=h.db.getRoot();if(!o)return;const l=i(),{look:c,handDrawnSeed:u,themeVariables:d}=l,y=n(l.fontSize)[0]??14,p="handDrawn"===c,g=o.children??[],f=l.ishikawa?.diagramPadding??20,k=l.ishikawa?.useMaxWidth??!1,w=s(e),x=w.append("g").attr("class","ishikawa"),_=p?a.svg(w.node()):void 0,v=_?{roughSvg:_,seed:u??0,lineColor:d?.lineColor??"#333",fillColor:d?.mainBkg??"#fff"}:void 0,I=`ishikawa-arrow-${e}`;p||x.append("defs").append("marker").attr("id",I).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 A=0,E=m;const L=p?void 0:j(x,A,E,A,E,"ishikawa-spine");if($(x,A,E,o.text,y,v),!g.length)return p&&j(x,A,E,A,E,"ishikawa-spine",v),void b(w,f,k);A-=20;const M=g.filter((t,e)=>e%2==0),P=g.filter((t,e)=>e%2==1),T=S(M),B=S(P),N=T.total+B.total;let O=m,D=m;if(N>0){const t=500,e=75;O=Math.max(e,t*(T.total/N)),D=Math.max(e,t*(B.total/N))}const W=2*y;O=Math.max(O,T.max*W),D=Math.max(D,B.max*W),E=Math.max(O,m),L&&L.attr("y1",E).attr("y2",E),x.select(".ishikawa-head-group").attr("transform",`translate(0,${E})`);const z=Math.ceil(g.length/2);for(let i=0;i<z;i++){const t=x.append("g").attr("class","ishikawa-pair");for(const[e,n,s]of[[g[2*i],-1,O],[g[2*i+1],1,D]])e&&C(t,e,A,E,n,s,y,v);A=t.selectAll("text").nodes().reduce((t,e)=>Math.min(t,e.getBBox().x),1/0)}if(p)j(x,A,E,0,E,"ishikawa-spine",v);else{L.attr("x1",A);const t=`url(#${I})`;x.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",t)}b(w,f,k)},"draw"),S=e(t=>{const i=e(t=>t.children.reduce((t,e)=>t+1+i(e),0),"countDescendants");return t.reduce((t,e)=>{const n=i(e);return t.total+=n,t.max=Math.max(t.max,n),t},{total:0,max:0})},"sideStats"),$=e((t,e,i,n,s,a)=>{const r=Math.max(6,Math.floor(110/(.6*s))),h=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${i})`),o=P(h,M(n,r),0,0,"ishikawa-head-label","start",s),l=o.node().getBBox(),c=Math.max(60,l.width+6),u=Math.max(40,2*l.height+40),d=`M 0 ${-u/2} L 0 ${u/2} Q ${2.4*c} 0 0 ${-u/2} Z`;if(a){const t=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-head")}else h.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);o.attr("transform",`translate(${(c-l.width)/2-l.x+3},${-l.y-l.height/2})`)},"drawHead"),I=e((t,i)=>{const n=[],s=[],a=e((t,e,r)=>{const h=-1===i?[...t].reverse():t;for(const i of h){const t=n.length,h=i.children??[];n.push({depth:r,text:M(i.text,15),parentIndex:e,childCount:h.length}),r%2==0?(s.push(t),h.length&&a(h,t,r+1)):(h.length&&a(h,t,r+1),s.push(t))}},"walk");return a(t,-1,2),{entries:n,yOrder:s}},"flattenTree"),A=e((t,e,i,n,s,a,r)=>{const h=t.append("g").attr("class","ishikawa-label-group"),o=P(h,e,i,n+11*s,"ishikawa-label cause","middle",a).node().getBBox();if(r){const t=r.roughSvg.rectangle(o.x-20,o.y-2,o.width+40,o.height+4,{roughness:1.5,seed:r.seed,fill:r.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:r.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-label-box")}else h.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",o.x-20).attr("y",o.y-2).attr("width",o.width+40).attr("height",o.height+4)},"drawCauseLabel"),E=e((t,e,i,n,s,a)=>{const r=Math.sqrt(n*n+s*s);if(0===r)return;const h=n/r,o=s/r,l=6*-o,c=6*h,u=`M ${e} ${i} L ${e-6*h*2+l} ${i-6*o*2+c} L ${e-6*h*2-l} ${i-6*o*2-c} Z`,d=a.roughSvg.path(u,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>d)},"drawArrowMarker"),C=e((t,e,i,n,s,a,r,h)=>{const o=e.children??[],l=a*(o.length?1:.2),c=_*l*s,u=i+-x*l,d=n+c;if(j(t,i,n,u,d,"ishikawa-branch",h),h&&E(t,i,n,i-u,n-d,h),A(t,e.text,u,d,s,r,h),!o.length)return;const{entries:y,yOrder:p}=I(o,s),g=y.length,f=new Array(g);for(const[x,_]of p.entries())f[_]=n+c*((x+1)/(g+1));const k=new Map;k.set(-1,{x0:i,y0:n,x1:u,y1:d,childCount:o.length,childrenDrawn:0});const m=-x,w=_*s,b=s<0?"ishikawa-label up":"ishikawa-label down";for(const[x,_]of y.entries()){const e=f[x],i=k.get(_.parentIndex),n=t.append("g").attr("class","ishikawa-sub-group");let s=0,a=0,o=0;if(_.depth%2==0){const t=i.y1-i.y0;s=T(i.x0,i.x1,t?(e-i.y0)/t:.5),a=e,o=s-(_.childCount>0?60+5*_.childCount:30),j(n,s,e,o,e,"ishikawa-sub-branch",h),h&&E(n,s,e,1,0,h),P(n,_.text,o,e,"ishikawa-label align","end",r)}else{const t=i.childrenDrawn++;s=T(i.x0,i.x1,(i.childCount-t)/(i.childCount+1)),a=i.y0,o=s+m*((e-a)/w),j(n,s,a,o,e,"ishikawa-sub-branch",h),h&&E(n,s,a,s-o,a-e,h),P(n,_.text,o,e,b,"end",r)}_.childCount>0&&k.set(x,{x0:s,y0:a,x1:o,y1:e,childCount:_.childCount,childrenDrawn:0})}},"drawBranch"),L=e(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),M=e((t,e)=>{if(t.length<=e)return t;const i=[];for(const n of t.split(/\s+/)){const t=i.length-1;t>=0&&i[t].length+1+n.length<=e?i[t]+=" "+n:i.push(n)}return i.join("\n")},"wrapText"),P=e((t,e,i,n,s,a,r)=>{const h=L(e),o=1.05*r,l=t.append("text").attr("class",s).attr("text-anchor",a).attr("x",i).attr("y",n-(h.length-1)*o/2);for(const[c,u]of h.entries())l.append("tspan").attr("x",i).attr("dy",0===c?0:o).text(u);return l},"drawMultilineText"),T=e((t,e,i)=>t+(e-t)*i,"lerp"),j=e((t,e,i,n,s,a,r)=>{if(r){const h=r.roughSvg.line(e,i,n,s,{roughness:1.5,seed:r.seed,stroke:r.lineColor,strokeWidth:2});return void t.append(()=>h).attr("class",a)}return t.append("line").attr("class",a).attr("x1",e).attr("y1",i).attr("x2",n).attr("y2",s)},"drawLine"),B={draw:v},N=e(t=>`\n.ishikawa .ishikawa-spine,\n.ishikawa .ishikawa-branch,\n.ishikawa .ishikawa-sub-branch {\n stroke: ${t.lineColor};\n stroke-width: 2;\n fill: none;\n}\n\n.ishikawa .ishikawa-sub-branch {\n stroke-width: 1;\n}\n\n.ishikawa .ishikawa-arrow {\n fill: ${t.lineColor};\n}\n\n.ishikawa .ishikawa-head {\n fill: ${t.mainBkg};\n stroke: ${t.lineColor};\n stroke-width: 2;\n}\n\n.ishikawa .ishikawa-label-box {\n fill: ${t.mainBkg};\n stroke: ${t.lineColor};\n stroke-width: 2;\n}\n\n.ishikawa text {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n fill: ${t.textColor};\n}\n\n.ishikawa .ishikawa-head-label {\n font-weight: 600;\n text-anchor: middle;\n dominant-baseline: middle;\n font-size: 14px;\n}\n\n.ishikawa .ishikawa-label {\n text-anchor: end;\n}\n\n.ishikawa .ishikawa-label.cause {\n text-anchor: middle;\n dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.align {\n text-anchor: end;\n dominant-baseline: middle;\n}\n\n.ishikawa .ishikawa-label.up {\n dominant-baseline: baseline;\n}\n\n.ishikawa .ishikawa-label.down {\n dominant-baseline: hanging;\n}\n`,"getStyles"),O={parser:f,get db(){return new k},renderer:B,styles:N};export{O as diagram};
@@ -1 +0,0 @@
1
- import{g as t}from"./chunk-5VM5RSS4-ClfzIwi_.js";import{a as e,g as n,h as i,d as s}from"./chunk-32BRIVSS-CqcvfQyF.js";import{_ as r,g as a,s as o,a as l,b as c,p as h,o as u,c as p,d as y,e as d,q as f}from"./mermaid.core-jR_k1I8D.js";import"./RemoteLifeOSBlock-BjYrjRa2.js";import{d as g}from"./arc-Dlh78dPq.js";import"./index-Dx_1eu1W.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./App-C21-MM7L.js";import"./index-BTavN9lk.js";import"./file-editor-index-C6CU7Fik.js";var m=function(){var t=r(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],i=[1,10],s=[1,11],a=[1,12],o=[1,13],l=[1,14],c={trace:r(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:r(function(t,e,n,i,s,r,a){var o=r.length-1;switch(s){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 13:i.addTask(r[o-1],r[o]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:i,14:s,16:a,17:o,18:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:i,14:s,16:a,17:o,18:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:r(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:r(function(t){var e=this,n=[0],i=[],s=[null],a=[],o=this.table,l="",c=0,h=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),y={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(y.yy[d]=this.yy[d]);p.setInput(t,y.yy),y.yy.lexer=p,y.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var g=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.yy.parseError?this.parseError=y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(t){n.length=n.length-2*t,s.length=s.length-t,a.length=a.length-t},"popStack"),r(m,"lex");for(var x,k,_,b,w,v,$,M,S={};;){if(k=n[n.length-1],this.defaultActions[k]?_=this.defaultActions[k]:(null==x&&(x=m()),_=o[k]&&o[k][x]),void 0===_||!_.length||!_[0]){var T;for(w in M=[],o[k])this.terminals_[w]&&w>2&&M.push("'"+this.terminals_[w]+"'");T=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:f,expected:M})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+x);switch(_[0]){case 1:n.push(x),s.push(p.yytext),a.push(p.yylloc),n.push(_[1]),x=null,h=p.yyleng,l=p.yytext,c=p.yylineno,f=p.yylloc;break;case 2:if(v=this.productions_[_[1]][1],S.$=s[s.length-v],S._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},g&&(S._$.range=[a[a.length-(v||1)].range[0],a[a.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[l,h,c,y.yy,_[1],s,a].concat(u))))return b;v&&(n=n.slice(0,-1*v*2),s=s.slice(0,-1*v),a=a.slice(0,-1*v)),n.push(this.productions_[_[1]][0]),s.push(S.$),a.push(S._$),$=o[n[n.length-2]][n[n.length-1]],n.push($);break;case 3:return!0}}return!0},"parse")},h=function(){return{EOF:1,parseError:r(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:r(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:r(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:r(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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 s=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===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:r(function(t){this.unput(this.match.slice(t))},"less"),pastInput:r(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:r(function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},"test_match"),next:r(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r(function(){return this.next()||this.lex()},"lex"),begin:r(function(t){this.conditionStack.push(t)},"begin"),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r(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:r(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r(function(t){this.begin(t)},"pushState"),stateStackSize:r(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;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 u(){this.yy={}}return c.lexer=h,r(u,"Parser"),u.prototype=c,c.Parser=u,new u}();m.parser=m;var x=m,k="",_=[],b=[],w=[],v=r(function(){_.length=0,b.length=0,k="",w.length=0,f()},"clear"),$=r(function(t){k=t,_.push(t)},"addSection"),M=r(function(){return _},"getSections"),S=r(function(){let t=E(),e=0;for(;!t&&e<100;)t=E(),e++;return b.push(...w),b},"getTasks"),T=r(function(){const t=[];return b.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),j=r(function(t,e){const n=e.substr(1).split(":");let i=0,s=[];1===n.length?(i=Number(n[0]),s=[]):(i=Number(n[0]),s=n[1].split(","));const r=s.map(t=>t.trim()),a={section:k,type:k,people:r,task:t,score:i};w.push(a)},"addTask"),C=r(function(t){const e={section:k,type:k,description:t,task:t,classes:[]};b.push(e)},"addTaskOrg"),E=r(function(){const t=r(function(t){return w[t].processed},"compileTask");let e=!0;for(const[n,i]of w.entries())t(n),e=e&&i.processed;return e},"compileTasks"),I=r(function(){return T()},"getActors"),A={getConfig:r(()=>p().journey,"getConfig"),clear:v,setDiagramTitle:u,getDiagramTitle:h,setAccTitle:c,getAccTitle:l,setAccDescription:o,getAccDescription:a,addSection:$,getSections:M,getTasks:S,addTask:j,addTaskOrg:C,getActors:I},P=r(e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${e.textColor}\n }\n\n .legend {\n fill: ${e.textColor};\n font-family: ${e.fontFamily};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${e.textColor}\n }\n\n .face {\n ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${e.fillType0?`fill: ${e.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${e.fillType0?`fill: ${e.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${e.fillType0?`fill: ${e.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${e.fillType0?`fill: ${e.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${e.fillType0?`fill: ${e.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${e.fillType0?`fill: ${e.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${e.fillType0?`fill: ${e.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${e.fillType0?`fill: ${e.fillType7}`:""};\n }\n\n .actor-0 {\n ${e.actor0?`fill: ${e.actor0}`:""};\n }\n .actor-1 {\n ${e.actor1?`fill: ${e.actor1}`:""};\n }\n .actor-2 {\n ${e.actor2?`fill: ${e.actor2}`:""};\n }\n .actor-3 {\n ${e.actor3?`fill: ${e.actor3}`:""};\n }\n .actor-4 {\n ${e.actor4?`fill: ${e.actor4}`:""};\n }\n .actor-5 {\n ${e.actor5?`fill: ${e.actor5}`:""};\n }\n ${t()}\n`,"getStyles"),V=r(function(t,e){return s(t,e)},"drawRect"),F=r(function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");function s(t){const n=g().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){const n=g().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return i.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r(s,"smile"),r(a,"sad"),r(o,"ambivalent"),e.score>3?s(i):e.score<3?a(i):o(i),n},"drawFace"),B=r(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),R=r(function(t,e){return i(t,e)},"drawText"),L=r(function(t,e){function n(t,e,n,i,s){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-s)+" "+(t+n-1.2*s)+","+(e+i)+" "+t+","+(e+i)}r(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,R(t,e)},"drawLabel"),O=r(function(t,e,i){const s=t.append("g"),r=n();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),r.height=i.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,V(s,r),Y(i)(e.text,s,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},i,e.colour)},"drawSection"),D=-1,N=r(function(t,e,i,s){const r=e.x+i.width/2,a=t.append("g");D++,a.append("line").attr("id",s+"-task"+D).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),F(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const o=n();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=i.width,o.height=i.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,V(a,o);let l=e.x+14;e.people.forEach(t=>{const n=e.actors[t].color,i={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};B(a,i),l+=10}),Y(i)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},i,e.colour)},"drawTask"),z=r(function(t,n){e(t,n)},"drawBackgroundRect"),Y=function(){function t(t,e,n,s,r,a,o,l){i(e.append("text").attr("x",n+r/2).attr("y",s+a/2+5).style("font-color",l).style("text-anchor","middle").text(t),o)}function e(t,e,n,s,r,a,o,l,c){const{taskFontSize:h,taskFontFamily:u}=l,p=t.split(/<br\s*\/?>/gi);for(let y=0;y<p.length;y++){const t=y*h-h*(p.length-1)/2,l=e.append("text").attr("x",n+r/2).attr("y",s).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",u);l.append("tspan").attr("x",n+r/2).attr("dy",t).text(p[y]),l.attr("y",s+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(l,o)}}function n(t,n,s,r,a,o,l,c){const h=n.append("switch"),u=h.append("foreignObject").attr("x",s).attr("y",r).attr("width",a).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,s,r,a,o,l,c),i(u,l)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return r(t,"byText"),r(e,"byTspan"),r(n,"byFo"),r(i,"_setTextAttrs"),function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),q={drawRect:V,drawCircle:B,drawSection:O,drawText:R,drawLabel:L,drawTask:N,drawBackgroundRect:z,initGraphics:r(function(t,e){D=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics")},W=r(function(t){Object.keys(t).forEach(function(e){U[e]=t[e]})},"setConf"),G={},X=0;function H(t){const e=p().journey,n=e.maxLabelWidth;X=0;let i=60;Object.keys(G).forEach(s=>{const r=G[s].color,a={cx:20,cy:i,r:7,fill:r,stroke:"#000",pos:G[s].position};q.drawCircle(t,a);let o=t.append("text").attr("visibility","hidden").text(s);const l=o.node().getBoundingClientRect().width;o.remove();let c=[];if(l<=n)c=[s];else{const e=s.split(" ");let i="";o=t.append("text").attr("visibility","hidden"),e.forEach(t=>{const e=i?`${i} ${t}`:t;if(o.text(e),o.node().getBoundingClientRect().width>n){if(i&&c.push(i),i=t,o.text(t),o.node().getBoundingClientRect().width>n){let e="";for(const i of t)e+=i,o.text(e+"-"),o.node().getBoundingClientRect().width>n&&(c.push(e.slice(0,-1)+"-"),e=i);i=e}}else i=e}),i&&c.push(i),o.remove()}c.forEach((n,s)=>{const r={x:40,y:i+7+20*s,fill:"#666",text:n,textMargin:e.boxTextMargin??5},a=q.drawText(t,r).node().getBoundingClientRect().width;a>X&&a>e.leftMargin-a&&(X=a)}),i+=Math.max(20,20*c.length)})}r(H,"drawActorLegend");var U=p().journey,Z=0,J=r(function(t,e,n,i){const s=p(),r=s.journey.titleColor,a=s.journey.titleFontSize,o=s.journey.titleFontFamily,l=s.securityLevel;let c;"sandbox"===l&&(c=y("#i"+e));const h=y("sandbox"===l?c.nodes()[0].contentDocument.body:"body");K.init();const u=h.select("#"+e);q.initGraphics(u,e);const f=i.db.getTasks(),g=i.db.getDiagramTitle(),m=i.db.getActors();for(const p in G)delete G[p];let x=0;m.forEach(t=>{G[t]={color:U.actorColours[x%U.actorColours.length],position:x},x++}),H(u),Z=U.leftMargin+X,K.insert(0,0,Z,50*Object.keys(G).length),et(u,f,0,e);const k=K.getBounds();g&&u.append("text").text(g).attr("x",Z).attr("font-size",a).attr("font-weight","bold").attr("y",25).attr("fill",r).attr("font-family",o);const _=k.stopy-k.starty+2*U.diagramMarginY,b=Z+k.stopx+2*U.diagramMarginX;d(u,_,b,U.useMaxWidth),u.append("line").attr("x1",Z).attr("y1",4*U.height).attr("x2",b-Z-4).attr("y2",4*U.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const w=g?70:0;u.attr("viewBox",`${k.startx} -25 ${b} ${_+w}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",_+w+25)},"draw"),K={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:r(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:r(function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},"updateVal"),updateBounds:r(function(t,e,n,i){const s=p().journey,a=this;let o=0;function l(l){return r(function(r){o++;const c=a.sequenceItems.length-o+1;a.updateVal(r,"starty",e-c*s.boxMargin,Math.min),a.updateVal(r,"stopy",i+c*s.boxMargin,Math.max),a.updateVal(K.data,"startx",t-c*s.boxMargin,Math.min),a.updateVal(K.data,"stopx",n+c*s.boxMargin,Math.max),"activation"!==l&&(a.updateVal(r,"startx",t-c*s.boxMargin,Math.min),a.updateVal(r,"stopx",n+c*s.boxMargin,Math.max),a.updateVal(K.data,"starty",e-c*s.boxMargin,Math.min),a.updateVal(K.data,"stopy",i+c*s.boxMargin,Math.max))},"updateItemBounds")}r(l,"updateFn"),this.sequenceItems.forEach(l())},"updateBounds"),insert:r(function(t,e,n,i){const s=Math.min(t,n),r=Math.max(t,n),a=Math.min(e,i),o=Math.max(e,i);this.updateVal(K.data,"startx",s,Math.min),this.updateVal(K.data,"starty",a,Math.min),this.updateVal(K.data,"stopx",r,Math.max),this.updateVal(K.data,"stopy",o,Math.max),this.updateBounds(s,a,r,o)},"insert"),bumpVerticalPos:r(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:r(function(){return this.verticalPos},"getVerticalPos"),getBounds:r(function(){return this.data},"getBounds")},Q=U.sectionFills,tt=U.sectionColours,et=r(function(t,e,n,i){const s=p().journey;let r="";const a=n+(2*s.height+s.diagramMarginY);let o=0,l="#CCC",c="black",h=0;for(const[u,p]of e.entries()){if(r!==p.section){l=Q[o%Q.length],h=o%Q.length,c=tt[o%tt.length];let n=0;const i=p.section;for(let t=u;t<e.length&&e[t].section==i;t++)n+=1;const a={x:u*s.taskMargin+u*s.width+Z,y:50,text:p.section,fill:l,num:h,colour:c,taskCount:n};q.drawSection(t,a,s),r=p.section,o++}const n=p.people.reduce((t,e)=>(G[e]&&(t[e]=G[e]),t),{});p.x=u*s.taskMargin+u*s.width+Z,p.y=a,p.width=s.diagramMarginX,p.height=s.diagramMarginY,p.colour=c,p.fill=l,p.num=h,p.actors=n,q.drawTask(t,p,s,i),K.insert(p.x,p.y,p.x+p.width+s.taskMargin,450)}},"drawTasks"),nt={setConf:W,draw:J},it={parser:x,db:A,renderer:nt,styles:P,init:r(t=>{nt.setConf(t.journey),A.clear()},"init")};export{it as diagram};
@@ -1 +0,0 @@
1
- import{_ as t,l as e,c as n,F as i,ae as s,af as r,ag as o,ac as a,D as c,i as l,Y as h,Z as g,a9 as u,aa as d,ab as p}from"./mermaid.core-jR_k1I8D.js";import{g as y}from"./chunk-5VM5RSS4-ClfzIwi_.js";import"./index-Dx_1eu1W.js";import"./RemoteLifeOSBlock-BjYrjRa2.js";import"./App-C21-MM7L.js";import"./index-BTavN9lk.js";import"./file-editor-index-C6CU7Fik.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var f=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[1,4],i=[1,13],s=[1,12],r=[1,15],o=[1,16],a=[1,20],c=[1,19],l=[6,7,8],h=[1,26],g=[1,24],u=[1,25],d=[6,7,11],p=[1,31],y=[6,7,11,24],f=[1,6,13,16,17,20,23],m=[1,35],b=[1,36],_=[1,6,7,11,13,16,17,20,23],k=[1,38],E={trace:t(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:t(function(t,e,n,i,s,r,o){var a=r.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",r[a-1].id),i.addNode(r[a-2].length,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 16:i.getLogger().info("Node: ",r[a].id),i.addNode(r[a-1].length,r[a].id,r[a].descr,r[a].type);break;case 17:i.getLogger().trace("Icon: ",r[a]),i.decorateNode({icon:r[a]});break;case 18:case 23:i.decorateNode({class:r[a]});break;case 19:i.getLogger().trace("SPACELIST");break;case 20:i.getLogger().trace("Node: ",r[a-1].id),i.addNode(0,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 21:i.getLogger().trace("Node: ",r[a].id),i.addNode(0,r[a].id,r[a].descr,r[a].type);break;case 22:i.decorateNode({icon:r[a]});break;case 27:i.getLogger().trace("node found ..",r[a-2]),this.$={id:r[a-1],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 28:this.$={id:r[a],descr:r[a],type:0};break;case 29:i.getLogger().trace("node found ..",r[a-3]),this.$={id:r[a-3],descr:r[a-1],type:i.getType(r[a-2],r[a])};break;case 30:this.$=r[a-1]+r[a];break;case 31:this.$=r[a]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:i,7:[1,10],9:9,12:11,13:s,14:14,16:r,17:o,18:17,19:18,20:a,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:i,12:21,13:s,14:14,16:r,17:o,18:17,19:18,20:a,23:c},{6:i,9:22,12:11,13:s,14:14,16:r,17:o,18:17,19:18,20:a,23:c},{6:h,7:g,10:23,11:u},e(d,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:a,23:c}),e(d,[2,19]),e(d,[2,21],{15:30,24:p}),e(d,[2,22]),e(d,[2,23]),e(y,[2,25]),e(y,[2,26]),e(y,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:g,10:34,11:u},{1:[2,7],6:i,12:21,13:s,14:14,16:r,17:o,18:17,19:18,20:a,23:c},e(f,[2,14],{7:m,11:b}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(d,[2,16],{15:37,24:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,20],{24:k}),e(y,[2,31]),{21:[1,39]},{22:[1,40]},e(f,[2,13],{7:m,11:b}),e(_,[2,11]),e(_,[2,12]),e(d,[2,15],{24:k}),e(y,[2,30]),{22:[1,41]},e(y,[2,27]),e(y,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],s=[],r=[null],o=[],a=this.table,c="",l=0,h=0,g=o.slice.call(arguments,1),u=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);u.setInput(e,d.yy),d.yy.lexer=u,d.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var y=u.yylloc;o.push(y);var f=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),t(m,"lex");for(var b,_,k,E,S,N,x,L,D={};;){if(_=i[i.length-1],this.defaultActions[_]?k=this.defaultActions[_]:(null==b&&(b=m()),k=a[_]&&a[_][b]),void 0===k||!k.length||!k[0]){var I;for(S in L=[],a[_])this.terminals_[S]&&S>2&&L.push("'"+this.terminals_[S]+"'");I=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:y,expected:L})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(k[0]){case 1:i.push(b),r.push(u.yytext),o.push(u.yylloc),i.push(k[1]),b=null,h=u.yyleng,c=u.yytext,l=u.yylineno,y=u.yylloc;break;case 2:if(N=this.productions_[k[1]][1],D.$=r[r.length-N],D._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},f&&(D._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),void 0!==(E=this.performAction.apply(D,[c,h,l,d.yy,k[1],r,o].concat(g))))return E;N&&(i=i.slice(0,-1*N*2),r=r.slice(0,-1*N),o=o.slice(0,-1*N)),i.push(this.productions_[k[1]][0]),r.push(D.$),o.push(D._$),x=a[i[i.length-2]][i[i.length-1]],i.push(x);break;case 3:return!0}}return!0},"parse")},S=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:t(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:t(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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 s=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===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,i,s;if(this.options.backtrack_lexer&&(s={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&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in s)this[r]=s[r];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),r=0;r<s.length;r++)if((n=this._input.match(this.rules[s[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,s[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){return this.next()||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(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:t(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,i){switch(n){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const n=/\n\s*/g;return e.yytext=e.yytext.replace(n,"<br/>"),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22: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 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.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 N(){this.yy={}}return E.lexer=S,t(N,"Parser"),N.prototype=E,E.Parser=N,new N}();f.parser=f;var m=f,b=[],_=[],k=0,E={},S=t(()=>{b=[],_=[],k=0,E={}},"clear"),N=t(t=>{if(0===b.length)return null;const e=b[0].level;let n=null;for(let i=b.length-1;i>=0;i--)if(b[i].level!==e||n||(n=b[i]),b[i].level<e)throw new Error('Items without section detected, found section ("'+b[i].label+'")');return t===n?.level?null:n},"getSection"),x=t(function(){return _},"getSections"),L=t(function(){const t=[],e=x(),i=n();for(const n of e){const e={id:n.id,label:l(n.label??"",i),labelType:"markdown",isGroup:!0,ticket:n.ticket,shape:"kanbanSection",level:n.level,look:i.look};t.push(e);const s=b.filter(t=>t.parentId===n.id);for(const r of s){const e={id:r.id,parentId:n.id,label:l(r.label??"",i),labelType:"markdown",isGroup:!1,ticket:r?.ticket,priority:r?.priority,assigned:r?.assigned,icon:r?.icon,shape:"kanbanItem",level:r.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(e)}}return{nodes:t,edges:[],other:{},config:n()}},"getData"),D=t((t,e,i,s,r)=>{const o=n();let a=o.mindmap?.padding??c.mindmap.padding;switch(s){case I.ROUNDED_RECT:case I.RECT:case I.HEXAGON:a*=2}const u={id:l(e,o)||"kbn"+k++,level:t,label:l(i,o),width:o.mindmap?.maxNodeWidth??c.mindmap.maxNodeWidth,padding:a,isGroup:!1};if(void 0!==r){let t;t=r.includes("\n")?r+"\n":"{\n"+r+"\n}";const e=h(t,{schema:g});if(e.shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw new Error(`No such shape: ${e.shape}. Shape names should be lowercase.`);e?.shape&&"kanbanItem"===e.shape&&(u.shape=e?.shape),e?.label&&(u.label=e?.label),e?.icon&&(u.icon=e?.icon.toString()),e?.assigned&&(u.assigned=e?.assigned.toString()),e?.ticket&&(u.ticket=e?.ticket.toString()),e?.priority&&(u.priority=e?.priority)}const d=N(t);d?u.parentId=d.id||"kbn"+k++:_.push(u),b.push(u)},"addNode"),I={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:D,getSections:x,getData:L,nodeType:I,getType:t((t,n)=>{switch(e.debug("In get type",t,n),t){case"[":return I.RECT;case"(":return")"===n?I.ROUNDED_RECT:I.CLOUD;case"((":return I.CIRCLE;case")":return I.CLOUD;case"))":return I.BANG;case"{{":return I.HEXAGON;default:return I.DEFAULT}},"getType"),setElementForId:t((t,e)=>{E[t]=e},"setElementForId"),decorateNode:t(t=>{if(!t)return;const e=n(),i=b[b.length-1];t.icon&&(i.icon=l(t.icon,e)),t.class&&(i.cssClasses=l(t.class,e))},"decorateNode"),type2Str:t(t=>{switch(t){case I.DEFAULT:return"no-border";case I.RECT:return"rect";case I.ROUNDED_RECT:return"rounded-rect";case I.CIRCLE:return"circle";case I.CLOUD:return"cloud";case I.BANG:return"bang";case I.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger:t(()=>e,"getLogger"),getElementById:t(t=>E[t],"getElementById")},C={draw:t(async(t,l,h,g)=>{e.debug("Rendering kanban diagram\n"+t);const u=g.db.getData(),d=n();d.htmlLabels=!1;const p=i(l);for(const e of u.nodes)e.domId=`${l}-${e.id}`;const y=p.append("g");y.attr("class","sections");const f=p.append("g");f.attr("class","items");const m=u.nodes.filter(t=>t.isGroup);let b=0;const _=[];let k=25;for(const e of m){const t=d?.kanban?.sectionWidth||200;b+=1,e.x=t*b+10*(b-1)/2,e.width=t,e.y=0,e.height=3*t,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+" section-"+b;const n=await s(y,e);k=Math.max(k,n?.labelBBox?.height),_.push(n)}let E=0;for(const e of m){const t=_[E];E+=1;const n=d?.kanban?.sectionWidth||200,i=3*-n/2+k;let s=i;const a=u.nodes.filter(t=>t.parentId===e.id);for(const h of a){if(h.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");h.x=e.x,h.width=n-15;const t=(await r(f,h,{config:d})).node().getBBox();h.y=s+t.height/2,await o(h),s=h.y+t.height/2+5}const c=t.cluster.select("rect"),l=Math.max(s-i+30,50)+(k-25);c.attr("height",l)}a(void 0,p,d.mindmap?.padding??c.kanban.padding,d.mindmap?.useMaxWidth??c.kanban.useMaxWidth)},"draw")},v=t(e=>{let n="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],u(e["lineColor"+t])?e["lineColor"+t]=d(e["lineColor"+t],20):e["lineColor"+t]=p(e["lineColor"+t],20);const i=t((t,n)=>e.darkMode?p(t,n):d(t,n),"adjuster");for(let t=0;t<e.THEME_COLOR_LIMIT;t++){const s=""+(17-3*t);n+=`\n .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} polygon, .section-${t-1} path {\n fill: ${i(e["cScale"+t],10)};\n stroke: ${i(e["cScale"+t],10)};\n\n }\n .section-${t-1} text {\n fill: ${e["cScaleLabel"+t]};\n }\n .node-icon-${t-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+t]};\n }\n .section-edge-${t-1}{\n stroke: ${e["cScale"+t]};\n }\n .edge-depth-${t-1}{\n stroke-width: ${s};\n }\n .section-${t-1} line {\n stroke: ${e["cScaleInv"+t]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n .kanban-ticket-link {\n fill: ${e.background};\n stroke: ${e.nodeBorder};\n text-decoration: underline;\n }\n `}return n},"genSections"),w={db:O,renderer:C,parser:m,styles:t(t=>`\n .edge {\n stroke-width: 3;\n }\n ${v(t)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${t.textColor};\n fill: ${t.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n ${y()}\n`,"getStyles")};export{w as diagram};
Binary file