lookatstudy-mobile 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/package.json +1 -1
  2. package/server.cjs +410 -309
  3. package/web/assets/Tableau10-Cz3F1amA.js +1 -0
  4. package/web/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  5. package/web/assets/abnfDiagram-N423BO3Z-BqeMquUh.js +1 -0
  6. package/web/assets/abnfDiagram-VCTEODGH-ODA7YWAP-BuesB7xR.js +1 -0
  7. package/web/assets/api-web-DeJFZI02.js +1 -0
  8. package/web/assets/arc-Bb-hQPAI.js +1 -0
  9. package/web/assets/architectureDiagram-5GKGNRK7-C4PU3XN7-0sZWP2Gt.js +36 -0
  10. package/web/assets/{architectureDiagram-T3A2C74G-djSyr1mz.js → architectureDiagram-T3A2C74G-BUX7eVzV.js} +3 -3
  11. package/web/assets/band-dPffDWoQ.js +1 -0
  12. package/web/assets/blockDiagram-NRAW4CY4-UMJ6PMQQ-DMEi53vA.js +129 -0
  13. package/web/assets/{blockDiagram-VBNYF7ZC-CMyKXBrP.js → blockDiagram-VBNYF7ZC-CquWGiud.js} +4 -4
  14. package/web/assets/c-BIGW1oBm.js +1 -0
  15. package/web/assets/{c4Diagram-5PPSVZJV-BIkHBEIX.js → c4Diagram-5PPSVZJV-DwhWxb7s.js} +2 -2
  16. package/web/assets/c4Diagram-UCG6FXSJ-75X3U2P3-Cw6KuLDN.js +38 -0
  17. package/web/assets/channel-BTMwuCXz.js +1 -0
  18. package/web/assets/chunk-2GRJ4B5K-CzGtEVrd.js +1 -0
  19. package/web/assets/{chunk-2Q5K7J3B-5KwfG7mC.js → chunk-2Q5K7J3B-svQDV2bG.js} +1 -1
  20. package/web/assets/{chunk-5RXB4S5H-BfjkbTOR.js → chunk-5RXB4S5H-CkBumCja.js} +3 -3
  21. package/web/assets/{chunk-5VM5RSS4-CknJ0UrM.js → chunk-5VM5RSS4-DmqVK3OP.js} +1 -1
  22. package/web/assets/{chunk-6Q2QTUOP-PEKlwd8q.js → chunk-6Q2QTUOP-j-yShG78.js} +3 -3
  23. package/web/assets/chunk-7XDTSPCN-BF54U_Qe.js +338 -0
  24. package/web/assets/chunk-CTNIYPP6-BLGT5nzg.js +1 -0
  25. package/web/assets/chunk-CXNFBKHE-CHtCVUVZ.js +15 -0
  26. package/web/assets/{chunk-GF5L2VYU-FwREiZq-.js → chunk-GF5L2VYU-HY4EUgWS.js} +4 -4
  27. package/web/assets/chunk-ISA7TJRJ-AUc9mrxX.js +1 -0
  28. package/web/assets/{chunk-JWPE2WC7-Df8WvQEt.js → chunk-JWPE2WC7-DmzvUH3q.js} +1 -1
  29. package/web/assets/chunk-KBJHAD2P-C3HnMhHX.js +1 -0
  30. package/web/assets/chunk-LV3HUYFY-D3kDosNp.js +1 -0
  31. package/web/assets/chunk-M3IUQBOH-CMBqYbjd.js +231 -0
  32. package/web/assets/chunk-NDIOYS4C-D4XcxlS5.js +1 -0
  33. package/web/assets/chunk-RE4WF27V-ANjTafEs.js +1 -0
  34. package/web/assets/{chunk-RYQCIY6F-w-ex678p.js → chunk-RYQCIY6F-CV9wg8xs.js} +1 -1
  35. package/web/assets/chunk-VII2H2IX-DK2MWM1y.js +1 -0
  36. package/web/assets/chunk-X5GNSKZ3-YRz76YFi.js +206 -0
  37. package/web/assets/chunk-XCWWM2C3-CSRjUbE8.js +88 -0
  38. package/web/assets/chunk-XXDRQBXY-j9X99vQo.js +1 -0
  39. package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-D00H1X9p.js +1 -0
  40. package/web/assets/classDiagram-JCYQIIEL-ClQHMNoR.js +1 -0
  41. package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-D00H1X9p.js +1 -0
  42. package/web/assets/classDiagram-v2-OCEON4UE-ClQHMNoR.js +1 -0
  43. package/web/assets/colors-Cc3OSVma.js +1 -0
  44. package/web/assets/core-Drxo65nc.js +12 -0
  45. package/web/assets/{cose-bilkent-JH36ORCC-CuRVnite.js → cose-bilkent-JH36ORCC-CN6Mp4ds.js} +1 -1
  46. package/web/assets/cose-bilkent-JH36ORCC-OB24KH3T-Bvxs1RhI.js +1 -0
  47. package/web/assets/cpp-DddhVWhK.js +1 -0
  48. package/web/assets/csharp-DSvCPggb.js +1 -0
  49. package/web/assets/css-CLj8gQPS.js +1 -0
  50. package/web/assets/cynefin-OW5HDTMX-GVF3BKWE-BVXFZGhi.js +178 -0
  51. package/web/assets/{cynefin-VYW2F7L2-deqxDK2d.js → cynefin-VYW2F7L2-CBHvDLlv.js} +1 -1
  52. package/web/assets/cynefinDiagram-5FMLGOSQ-H3WIRU3N-CM4Mj-Vd.js +62 -0
  53. package/web/assets/cynefinDiagram-MW4NZA55-aMzbAFWs.js +62 -0
  54. package/web/assets/dagre-3AP2YEHR-DCERTXHT-BMVGWTPf.js +4 -0
  55. package/web/assets/{dagre-VZM6K2ZE-CGNHDakS.js → dagre-VZM6K2ZE-DhQcrBKB.js} +2 -2
  56. package/web/assets/{defaultLocale-DX6XiGOO.js → defaultLocale-5voVPcsN.js} +1 -1
  57. package/web/assets/{diagram-7IWD3JNH-D_gUTAQc.js → diagram-7IWD3JNH-neTaugq1.js} +4 -4
  58. package/web/assets/{diagram-B4RE2ZJO-YGyPH2BM.js → diagram-B4RE2ZJO-D9KmoYBV.js} +3 -3
  59. package/web/assets/diagram-LBJQPF4R-9J-F2MVE.js +24 -0
  60. package/web/assets/diagram-Q27KOJAE-Dz9KITJh.js +24 -0
  61. package/web/assets/diagram-S7CK7UJ4-MULGZGEL-r3BljA8e.js +30 -0
  62. package/web/assets/diagram-UB23O5K3-BA5gPgQ7.js +41 -0
  63. package/web/assets/diagram-UQ7AKVKN-YQBY353J-IIvT6Y42.js +41 -0
  64. package/web/assets/diagram-VSXAHHWV-WLNH2ELY-BMCz6ope.js +3 -0
  65. package/web/assets/diagram-VX7I27RA-XW6YQV5G-Z3lYjMVR.js +24 -0
  66. package/web/assets/diagram-Z3DM3KII-HG7RF65D-CsLqhzUJ.js +24 -0
  67. package/web/assets/diff-D97Zzqfu.js +1 -0
  68. package/web/assets/dockerfile-BcOcwvcX.js +1 -0
  69. package/web/assets/ebnfDiagram-BXEA7PRR-BoUlG0c_.js +1 -0
  70. package/web/assets/ebnfDiagram-PWID7BFC-OKY4VHYD-CgMcEf9P.js +1 -0
  71. package/web/assets/elk.bundled-DjGexDyy.js +24 -0
  72. package/web/assets/engine-javascript-DBd1bXLz.js +141 -0
  73. package/web/assets/{erDiagram-JOGREHBK-BuY7vR4r.js → erDiagram-JOGREHBK-DV_Tzdk0.js} +4 -4
  74. package/web/assets/erDiagram-SSCWMZ5O-PIPKOIK7-Ct9t5yN5.js +99 -0
  75. package/web/assets/flowDiagram-A5DVABFB-2Z4AVO5R-C4iDReFc.js +168 -0
  76. package/web/assets/{flowDiagram-UKHOOZJN-TxEOjs8K.js → flowDiagram-UKHOOZJN-DvQGnBrF.js} +10 -10
  77. package/web/assets/ganttDiagram-EL5Y4UJY-JZNG7GOG-BPWBTDqB.js +292 -0
  78. package/web/assets/ganttDiagram-PKOTCBZU-7gjvaw6I.js +292 -0
  79. package/web/assets/{gitGraphDiagram-DS77QQ5N-rZzK4UXV.js → gitGraphDiagram-DS77QQ5N-B54T3l5T.js} +7 -7
  80. package/web/assets/gitGraphDiagram-WWUBYQGX-DMWMLL3G-CmG0_dMg.js +106 -0
  81. package/web/assets/github-dark-DHJKELXO.js +1 -0
  82. package/web/assets/github-light-DAi9KRSo.js +1 -0
  83. package/web/assets/go-C27-OAKa.js +1 -0
  84. package/web/assets/graphql-ChdNCCLP.js +1 -0
  85. package/web/assets/html-pp8916En.js +1 -0
  86. package/web/assets/{index-DFfbtrtQ.js → index-B6q9ygFx.js} +9 -9
  87. package/web/assets/index-CU6ublfJ.js +1 -0
  88. package/web/assets/index-CvYzv8kf.js +1 -0
  89. package/web/assets/index-Cz8nGS3-.css +1 -0
  90. package/web/assets/index-H1bePBGl.js +3 -0
  91. package/web/assets/index-yzG6be5R.js +416 -0
  92. package/web/assets/infoDiagram-6WML65LV-BJSGxY2D.js +2 -0
  93. package/web/assets/infoDiagram-RXCK75RN-HANS5KVC-Cz3Y1Unl.js +2 -0
  94. package/web/assets/ini-BEwlwnbL.js +1 -0
  95. package/web/assets/ishikawaDiagram-5VMMS53U-7GCIT7WU-BT6MsYfb.js +70 -0
  96. package/web/assets/{ishikawaDiagram-WSZJBQD7-B4Ja0YPZ.js → ishikawaDiagram-WSZJBQD7-BsYCRLYP.js} +6 -6
  97. package/web/assets/java-CylS5w8V.js +1 -0
  98. package/web/assets/javascript-wDzz0qaB.js +1 -0
  99. package/web/assets/journeyDiagram-EYS64GPL-OAPELBT7-Bx1wxARt.js +139 -0
  100. package/web/assets/{journeyDiagram-NVQOT4AX-BmhpGG29.js → journeyDiagram-NVQOT4AX-DkJv2QF6.js} +2 -2
  101. package/web/assets/json-Cp-IABpG.js +1 -0
  102. package/web/assets/jsx-g9-lgVsj.js +1 -0
  103. package/web/assets/{kanban-definition-27J2QSJJ-CiuTLc9W.js → kanban-definition-27J2QSJJ-BCWiZznF.js} +8 -8
  104. package/web/assets/kanban-definition-3QL26DDD-I7RKWQQY-uHjeKCG_.js +89 -0
  105. package/web/assets/katex-N6JRN4PM-D4hrRJKq.js +257 -0
  106. package/web/assets/kotlin-BdnUsdx6.js +1 -0
  107. package/web/assets/latex-B2nUCzCX.js +1 -0
  108. package/web/assets/linear-BHfMepXe.js +1 -0
  109. package/web/assets/lua-BaeVxFsk.js +1 -0
  110. package/web/assets/main-B239_4z1.js +796 -0
  111. package/web/assets/makefile-CHLpvVh8.js +1 -0
  112. package/web/assets/markdown-Cvjx9yec.js +1 -0
  113. package/web/assets/mermaid-layout-elk.core-C4McJve2.js +2 -0
  114. package/web/assets/mermaid.core-CmjrekXI.js +314 -0
  115. package/web/assets/min-tv6RD-6E.js +1 -0
  116. package/web/assets/{mindmap-definition-FAOFIHXS-Bt-VPht2.js → mindmap-definition-FAOFIHXS-PIVNjK20.js} +4 -4
  117. package/web/assets/mindmap-definition-FBJOCRG2-KIYZG64Y-C8ko7Fkc.js +96 -0
  118. package/web/assets/pegDiagram-VL7TDLO6-D0oejFBc.js +1 -0
  119. package/web/assets/pegDiagram-XKGWAZYB-OIP57N6J-Cqs1jeYc.js +1 -0
  120. package/web/assets/{pet-a4xGZJ4o.js → pet-CZ36ImJS.js} +1 -1
  121. package/web/assets/php-Csjmro_R.js +1 -0
  122. package/web/assets/pie-xhYaZtwS.js +1 -0
  123. package/web/assets/pieDiagram-7S7Q4E2Y-CdvhM-aN.js +39 -0
  124. package/web/assets/pieDiagram-E7YTZNPT-2UOTW327-BMlCBlPI.js +39 -0
  125. package/web/assets/python-B6aJPvgy.js +1 -0
  126. package/web/assets/quadrantDiagram-AXDQQJYC-SN3ASJJK-CEEgxhrf.js +7 -0
  127. package/web/assets/{quadrantDiagram-CIZ2JOQS-B-1McWhJ.js → quadrantDiagram-CIZ2JOQS-BrKm5erH.js} +2 -2
  128. package/web/assets/r-Cf5RLm7j.js +1 -0
  129. package/web/assets/railroadDiagram-AXF67PYL-CJudf8AD.js +1 -0
  130. package/web/assets/railroadDiagram-O6MQD6OU-34742W6X-C8RacTGn.js +1 -0
  131. package/web/assets/render-O7CIS3YK-BtRzL6gS.js +354 -0
  132. package/web/assets/requirementDiagram-EFPCY7ZU-NGAFFSMB-CTXLwcL9.js +84 -0
  133. package/web/assets/{requirementDiagram-LRYGKXZP-BVqLmmFw.js → requirementDiagram-LRYGKXZP-mS__tKrf.js} +4 -4
  134. package/web/assets/ruby-B6QtyW_S.js +1 -0
  135. package/web/assets/rust-B1yitclQ.js +1 -0
  136. package/web/assets/sankeyDiagram-P5KCCOFB-3D3M4XPB-DyuDtBvQ.js +40 -0
  137. package/web/assets/sankeyDiagram-W5VNT64P-COKGPXfA.js +40 -0
  138. package/web/assets/scss-D5BDwBP9.js +1 -0
  139. package/web/assets/{sequenceDiagram-SI44F4Z6-7pBYtwXq.js → sequenceDiagram-SI44F4Z6-CNMY38eS.js} +3 -3
  140. package/web/assets/sequenceDiagram-WJ2MYXX4-Q2IOPB4R-_u4WjXk1.js +162 -0
  141. package/web/assets/shellscript-Yzrsuije.js +1 -0
  142. package/web/assets/sizeCapture-X5ZJPWSS-DWdLSp6i.js +1 -0
  143. package/web/assets/sizeCapture-X5ZJPWSS-PSGVOMYM-Cs-f36Xi.js +1 -0
  144. package/web/assets/sql-CRqJ_cUM.js +1 -0
  145. package/web/assets/stateDiagram-HBIQ2CUA-4M2S6MAN-D3Vb1Yoi.js +1 -0
  146. package/web/assets/stateDiagram-OKZ733FA-DWpXAgAW.js +1 -0
  147. package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-C6PXffxU.js +1 -0
  148. package/web/assets/stateDiagram-v2-UEYNNEHI-D3rCYZ7F.js +1 -0
  149. package/web/assets/step-SI6FXFD6.js +1 -0
  150. package/web/assets/swift-C2oV4EkX.js +1 -0
  151. package/web/assets/swimlanes-SLNWSIFB--qlM3PH1.js +2 -0
  152. package/web/assets/swimlanes-XN3QIQJK-N6N2CCQ6-Dq7F7g7w.js +1 -0
  153. package/web/assets/swimlanesDiagram-ULZ7WXOC-C2JzshU-.js +8 -0
  154. package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-C1mY3FR0.js +8 -0
  155. package/web/assets/time-CLfYygnx.js +1 -0
  156. package/web/assets/timeline-definition-24CTP7MA-KN7RSRVM-BRP9kk4o.js +120 -0
  157. package/web/assets/{timeline-definition-Z64GVDOM-CPyFZDbL.js → timeline-definition-Z64GVDOM-CGIURnLx.js} +4 -4
  158. package/web/assets/toml-vGWfd6FD.js +1 -0
  159. package/web/assets/transform-CzGDKG_M.js +1 -0
  160. package/web/assets/tsx-COt5Ahok.js +1 -0
  161. package/web/assets/typescript-BPQ3VLAy.js +1 -0
  162. package/web/assets/vennDiagram-4TSXK5OY-AKJ7LXAN-Row28BrM.js +34 -0
  163. package/web/assets/{vennDiagram-T6HMQDX7-CrYCZIBM.js → vennDiagram-T6HMQDX7-CCAqbOji.js} +5 -5
  164. package/web/assets/vue-CHlpWS_5.js +1 -0
  165. package/web/assets/{wardleyDiagram-T6FBY63Y-C-bOW3CV.js → wardleyDiagram-T6FBY63Y-BsHQ7eqA.js} +2 -2
  166. package/web/assets/wardleyDiagram-VM6X3IG4-3B6A3BN5-DBcNZZDs.js +78 -0
  167. package/web/assets/xml-sdJ4AIDG.js +1 -0
  168. package/web/assets/xychartDiagram-ELKLHX3M-Bdjq4REQ.js +7 -0
  169. package/web/assets/xychartDiagram-S5SC5T6Z-OBDNV6WG-ClGm8SGz.js +7 -0
  170. package/web/assets/yaml-Buea-lGh.js +1 -0
  171. package/web/index.html +3 -3
  172. package/web/pet.html +3 -3
  173. package/web/assets/abnfDiagram-N423BO3Z-BgfNjjBj.js +0 -1
  174. package/web/assets/api-web-DI50TDfG.js +0 -1
  175. package/web/assets/arc-RE7zZVS-.js +0 -1
  176. package/web/assets/channel-BhfjE8vu.js +0 -1
  177. package/web/assets/chunk-2GRJ4B5K-Cam0QBnt.js +0 -1
  178. package/web/assets/chunk-KBJHAD2P-BsrsrevO.js +0 -1
  179. package/web/assets/chunk-XXDRQBXY-BtPTE4dn.js +0 -1
  180. package/web/assets/classDiagram-JCYQIIEL-mL7PrSyJ.js +0 -1
  181. package/web/assets/classDiagram-v2-OCEON4UE-mL7PrSyJ.js +0 -1
  182. package/web/assets/cynefinDiagram-MW4NZA55-BVpP0nLh.js +0 -62
  183. package/web/assets/diagram-LBJQPF4R-B32aZsIz.js +0 -24
  184. package/web/assets/diagram-Q27KOJAE-DwwhihNN.js +0 -24
  185. package/web/assets/diagram-UB23O5K3-BdxB0b3R.js +0 -41
  186. package/web/assets/ebnfDiagram-BXEA7PRR-PAN05I_q.js +0 -1
  187. package/web/assets/ganttDiagram-PKOTCBZU-BqnBC4Aw.js +0 -292
  188. package/web/assets/index-D8iAKGNi.css +0 -1
  189. package/web/assets/infoDiagram-6WML65LV-B4sR-B3M.js +0 -2
  190. package/web/assets/linear-l0VVDmXM.js +0 -1
  191. package/web/assets/main-5hScumEl.js +0 -792
  192. package/web/assets/mermaid.core-DZ6Z8vWa.js +0 -314
  193. package/web/assets/pegDiagram-VL7TDLO6-CANPvqfq.js +0 -1
  194. package/web/assets/pieDiagram-7S7Q4E2Y-HpK8uEiY.js +0 -39
  195. package/web/assets/railroadDiagram-AXF67PYL-DA507-no.js +0 -1
  196. package/web/assets/sankeyDiagram-W5VNT64P-WV_Swfln.js +0 -40
  197. package/web/assets/sizeCapture-X5ZJPWSS-Ba9eWTxX.js +0 -1
  198. package/web/assets/stateDiagram-OKZ733FA-lonr0yA-.js +0 -1
  199. package/web/assets/stateDiagram-v2-UEYNNEHI-Dt1VC3TV.js +0 -1
  200. package/web/assets/swimlanes-SLNWSIFB-BSQT7r6F.js +0 -2
  201. package/web/assets/swimlanesDiagram-ULZ7WXOC-Dhdnb080.js +0 -8
  202. package/web/assets/xychartDiagram-ELKLHX3M-BB-TjDfD.js +0 -7
@@ -0,0 +1,292 @@
1
+ import{g as de,s as fe,o as he,n as me,a as ke,b as ye,_ as l,c as mt,d as ge,l as lt,i as pe,p as ve,F as ee,r as Te,z as xe}from"./render-O7CIS3YK-BtRzL6gS.js";import{_ as Y,a as ut,b as Ct}from"./mermaid-layout-elk.core-C4McJve2.js";import{s as bt}from"./transform-CzGDKG_M.js";import{t as be,i as we,a as _e,b as Bt,c as qt,d as De,e as Se,f as Ce,g as Me,h as Ee,j as Ie,k as Ye,l as Gt,m as Xt,n as Ut,s as Zt,o as Qt,p as $e}from"./time-CLfYygnx.js";import{m as Le,a as Fe}from"./min-tv6RD-6E.js";import{l as Ae}from"./linear-BHfMepXe.js";import"./main-B239_4z1.js";import"./index-B6q9ygFx.js";import"./step-SI6FXFD6.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-5voVPcsN.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(A){return A.add(4-A.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var F=b.startOf;b.startOf=function(A,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(A)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(A,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={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,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,F={},A=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=F[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=F.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=F.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=A(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=F&&F.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var n=L[v];if(typeof n=="string")y+=n.length;else{var d=n.regex,f=n.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(r){var S=r.afternoon;if(S!==void 0){var o=r.hours;S?o<12&&(r.hours+=12):o===12&&(r.hours=0),delete r.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),F=this.$locale(),!m&&y&&(F=W.Ls[y]),this.$d=(function(u,_,r,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,rt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var J,Z=M||0,ct=R||0,tt=E||0,nt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,nt+60*P.offset*1e3)):r?new Date(Date.UTC(ot,G,ft,Z,ct,tt,nt)):(J=new Date(ot,G,ft,Z,ct,tt,nt),rt&&(J=S(J).week(rt).toDate()),J)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),F={}}else if(I instanceof Array)for(var n=I.length,d=1;d<=n;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===n&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,F=this.$locale();if(!this.isValid())return g.bind(this)(p);var A=this.$utils(),w=(p||"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(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return F.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return F.ordinal(b.week(),"W");case"w":case"ww":return A.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return A.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return A.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,F=31536e6,A=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:F,months:A,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(n){T.$d[N(n)]=h[n]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(n){return n!=null?Number(n):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/F),h%=F,this.$d.months=D(h/A),h%=A,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),n=this.$d.seconds||0;this.$d.milliseconds&&(n+=this.$d.milliseconds/1e3,n=Math.round(1e3*n)/1e3);var d=L(n,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={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 I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),K=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,n,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=n);return d},"o"),s=[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],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],F=[1,32],A=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"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:l(Y(function(n,d,f,u,_,r,S){var o=r.length-1;switch(_){case 1:return r[o-1];case 2:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:u.TopAxis(),this.$=r[o].substr(8);break;case 20:u.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:u.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:u.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:u.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:u.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:u.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:u.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],u.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],u.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],u.setClickEvent(r[o-2],r[o-1],null),u.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],u.setClickEvent(r[o-3],r[o-2],r[o-1]),u.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],u.setClickEvent(r[o-2],r[o],null),u.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],u.setClickEvent(r[o-3],r[o-1],r[o]),u.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],u.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(n,d){if(d.recoverable)this.trace(n);else{var f=new Error(n);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(n){var d=this,f=[0],u=[],_=[null],r=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=r.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(n,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var rt=E.yylloc;r.push(rt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,r.length=r.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,J,Z,ct,tt={},nt,et,Ht,xt;;){if(J=f[f.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((G===null||typeof G>"u")&&(G=ot()),Z=S[J]&&S[J][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(nt in S[J])this.terminals_[nt]&&nt>C&&xt.push("'"+this.terminals_[nt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
2
+ `+E.showPosition()+`
3
+ Expecting `+xt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Et="Parse error on line "+(H+1)+": Unexpected "+(G==M?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Et,{text:E.match,token:this.terminals_[G]||G,line:E.yylineno,loc:rt,expected:xt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+G);switch(Z[0]){case 1:f.push(G),_.push(E.yytext),r.push(E.yylloc),f.push(Z[1]),G=null,c=E.yyleng,o=E.yytext,H=E.yylineno,rt=E.yylloc;break;case 2:if(et=this.productions_[Z[1]][1],tt.$=_[_.length-et],tt._$={first_line:r[r.length-(et||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(et||1)].first_column,last_column:r[r.length-1].last_column},at&&(tt._$.range=[r[r.length-(et||1)].range[0],r[r.length-1].range[1]]),ct=this.performAction.apply(tt,[o,c,H,j.yy,Z[1],_,r].concat(R)),typeof ct<"u")return ct;et&&(f=f.slice(0,-1*et*2),_=_.slice(0,-1*et),r=r.slice(0,-1*et)),f.push(this.productions_[Z[1]][0]),_.push(tt.$),r.push(tt._$),Ht=S[f[f.length-2]][f[f.length-1]],f.push(Ht);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var y={EOF:1,parseError:l(Y(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),"parseError"),setInput:l(function(n,d){return this.yy=d||this.yy||{},this._input=n,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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var d=n.length,f=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var _=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),d=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
+ `+d+"^"},"showPosition"),test_match:l(function(n,d){var f,u,_;if(this.options.backtrack_lexer&&(_={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&&(_.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var r in _)this[r]=_[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,d,f,u;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),r=0;r<_.length;r++)if(f=this._input.match(this.rules[_[r]]),f&&(!d||f[0].length>d[0].length)){if(d=f,u=r,this.options.backtrack_lexer){if(n=this.test_match(f,_[r]),n!==!1)return n;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(n=this.test_match(d,_[u]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(Y(function(){var d=this.next();return d||this.lex()},"lex"),"lex"),begin:l(Y(function(d){this.conditionStack.push(d)},"begin"),"begin"),popState:l(Y(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:l(Y(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"),"_currentRules"),topState:l(Y(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),"topState"),pushState:l(Y(function(d){this.begin(d)},"pushState"),"pushState"),stateStackSize:l(Y(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:l(Y(function(d,f,u,_){switch(u){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:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();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"),"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}}};return y})();m.lexer=T;function v(){this.yy={}}return Y(v,"Parser"),l(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Yt.parser=Yt;var Be=Yt;K.default.extend(ze.default);K.default.extend(Ne.default);K.default.extend(je.default);var Jt={friday:5,saturday:6},st="",At="",Ot=void 0,Wt="",yt=[],gt=[],Pt=new Map,Vt=[],Dt=[],pt="",Rt="",se=["active","done","crit","milestone","vert"],zt=[],ht="",Tt=!1,Nt=!1,jt="sunday",St="saturday",$t=0,qe=l(function(){Vt=[],Dt=[],pt="",zt=[],wt=0,Ft=void 0,_t=void 0,X=[],st="",At="",Rt="",Ot=void 0,Wt="",yt=[],gt=[],Tt=!1,Nt=!1,$t=0,Pt=new Map,ht="",ve(),jt="sunday",St="saturday"},"clear"),Ge=l(function(t){ht=t},"setDiagramId"),Xe=l(function(t){At=t},"setAxisFormat"),Ue=l(function(){return At},"getAxisFormat"),Ze=l(function(t){Ot=t},"setTickInterval"),Qe=l(function(){return Ot},"getTickInterval"),Je=l(function(t){Wt=t},"setTodayMarker"),Ke=l(function(){return Wt},"getTodayMarker"),ts=l(function(t){st=t},"setDateFormat"),es=l(function(){Tt=!0},"enableInclusiveEndDates"),ss=l(function(){return Tt},"endDatesAreInclusive"),is=l(function(){Nt=!0},"enableTopAxis"),rs=l(function(){return Nt},"topAxisEnabled"),ns=l(function(t){Rt=t},"setDisplayMode"),as=l(function(){return Rt},"getDisplayMode"),os=l(function(){return st},"getDateFormat"),ie=l((t,s)=>{const i=s.toLowerCase().split(/[\s,]+/).filter(e=>e!=="");return[...new Set([...t,...i])]},"mergeTokens"),cs=l(function(t){yt=ie(yt,t)},"setIncludes"),ls=l(function(){return yt},"getIncludes"),us=l(function(t){gt=ie(gt,t)},"setExcludes"),ds=l(function(){return gt},"getExcludes"),fs=l(function(){return Pt},"getLinks"),hs=l(function(t){pt=t,Vt.push(t)},"addSection"),ms=l(function(){return Vt},"getSections"),ks=l(function(){let t=Kt();const s=10;let i=0;for(;!t&&i<s;)t=Kt(),i++;return Dt=X,Dt},"getTasks"),re=l(function(t,s,i,e){const a=t.format(s.trim()),g=t.format("YYYY-MM-DD");return e.includes(a)||e.includes(g)?!1:i.includes("weekends")&&(t.isoWeekday()===Jt[St]||t.isoWeekday()===Jt[St]+1)||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(a)||i.includes(g)},"isInvalidDate"),ys=l(function(t){jt=t},"setWeekday"),gs=l(function(){return jt},"getWeekday"),ps=l(function(t){St=t},"setWeekend"),ne=l(function(t,s,i,e){if(!i.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=(0,K.default)(t.startTime):a=(0,K.default)(t.startTime,s,!0),a=a.add(1,"d");let g;t.endTime instanceof Date?g=(0,K.default)(t.endTime):g=(0,K.default)(t.endTime,s,!0);const[p,b]=vs(a,g,s,i,e);t.endTime=p.toDate(),t.renderEndTime=b},"checkTaskDates"),vs=l(function(t,s,i,e,a){let g=!1,p=null;const b=s.add(1e4,"d");for(;t<=s;){if(g||(p=s.toDate()),g=re(t,i,e,a),g&&(s=s.add(1,"d"),s>b))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[s,p]},"fixTaskDates"),Lt=l(function(t,s,i){if(i=i.trim(),l(b=>{const F=b.trim();return F==="x"||F==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(i))return new Date(Number(i));const g=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let b=null;for(const A of g.groups.ids.split(" ")){let w=dt(A);w!==void 0&&(!b||w.endTime>b.endTime)&&(b=w)}if(b)return b.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return p.toDate();{lt.debug("Invalid date:"+i),lt.debug("With date format:"+s.trim());const b=new Date(i);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+i);return b}},"getStartDate"),ae=l(function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=l(function(t,s,i,e=!1){i=i.trim();const g=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let w=null;for(const O of g.groups.ids.split(" ")){let z=dt(O);z!==void 0&&(!w||z.startTime<w.startTime)&&(w=z)}if(w)return w.startTime;const V=new Date;return V.setHours(0,0,0,0),V}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return e&&(p=p.add(1,"d")),p.toDate();let b=(0,K.default)(t);const[F,A]=ae(i);if(!Number.isNaN(F)){const w=b.add(F,A);w.isValid()&&(b=w)}return b.toDate()},"getEndDate"),wt=0,kt=l(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),Ts=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let p=0;p<e.length;p++)e[p]=e[p].trim();let g="";switch(e.length){case 1:a.id=kt(),a.startTime=t.endTime,g=e[0];break;case 2:a.id=kt(),a.startTime=Lt(void 0,st,e[0]),g=e[1];break;case 3:a.id=kt(e[0]),a.startTime=Lt(void 0,st,e[1]),g=e[2];break}return g&&(a.endTime=oe(a.startTime,st,g,Tt),a.manualEndTime=(0,K.default)(g,"YYYY-MM-DD",!0).isValid(),ne(a,st,gt,yt)),a},"compileData"),xs=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let g=0;g<e.length;g++)e[g]=e[g].trim();switch(e.length){case 1:a.id=kt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:e[0]};break;case 2:a.id=kt(),a.startTime={type:"getStartDate",startData:e[0]},a.endTime={data:e[1]};break;case 3:a.id=kt(e[0]),a.startTime={type:"getStartDate",startData:e[1]},a.endTime={data:e[2]};break}return a},"parseData"),Ft,_t,X=[],ce={},bs=l(function(t,s){const i={section:pt,type:pt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},e=xs(_t,s);i.raw.startTime=e.startTime,i.raw.endTime=e.endTime,i.id=e.id,i.prevTaskId=_t,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,i.vert?i.order=-1:(i.order=$t,$t++);const a=X.push(i);_t=i.id,ce[i.id]=a-1},"addTask"),dt=l(function(t){const s=ce[t];return X[s]},"findTaskById"),ws=l(function(t,s){const i={section:pt,type:pt,description:t,task:t,classes:[]},e=Ts(Ft,s);i.startTime=e.startTime,i.endTime=e.endTime,i.id=e.id,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,Ft=i,Dt.push(i)},"addTaskOrg"),Kt=l(function(){const t=l(function(i){const e=X[i];let a="";switch(X[i].raw.startTime.type){case"prevTaskEnd":{const g=dt(e.prevTaskId);e.startTime=g.endTime;break}case"getStartDate":a=Lt(void 0,st,X[i].raw.startTime.startData),a&&(X[i].startTime=a);break}return X[i].startTime&&(X[i].endTime=oe(X[i].startTime,st,X[i].raw.endTime.data,Tt),X[i].endTime&&(X[i].processed=!0,X[i].manualEndTime=(0,K.default)(X[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ne(X[i],st,gt,yt))),X[i].processed},"compileTask");let s=!0;for(const[i,e]of X.entries())t(i),s=s&&e.processed;return s},"compileTasks"),_s=l(function(t,s){let i=s;mt().securityLevel!=="loose"&&(i=(0,Re.sanitizeUrl)(s)),t.split(",").forEach(function(e){dt(e)!==void 0&&(ue(e,()=>{window.open(i,"_self")}),Pt.set(e,i))}),le(t,"clickable")},"setLink"),le=l(function(t,s){t.split(",").forEach(function(i){let e=dt(i);e!==void 0&&e.classes.push(s)})},"setClass"),Ds=l(function(t,s,i){if(mt().securityLevel!=="loose"||s===void 0)return;let e=[];if(typeof i=="string"){e=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<e.length;g++){let p=e[g].trim();p.startsWith('"')&&p.endsWith('"')&&(p=p.substr(1,p.length-2)),e[g]=p}}e.length===0&&e.push(t),dt(t)!==void 0&&ue(t,()=>{xe.runFunc(s,...e)})},"setClickFun"),ue=l(function(t,s){zt.push(function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}"]`);e!==null&&e.addEventListener("click",function(){s()})},function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}-text"]`);e!==null&&e.addEventListener("click",function(){s()})})},"pushFun"),Ss=l(function(t,s,i){t.split(",").forEach(function(e){Ds(e,s,i)}),le(t,"clickable")},"setClickEvent"),Cs=l(function(t){zt.forEach(function(s){s(t)})},"bindFunctions"),Ms={getConfig:l(()=>mt().gantt,"getConfig"),clear:qe,setDateFormat:ts,getDateFormat:os,enableInclusiveEndDates:es,endDatesAreInclusive:ss,enableTopAxis:is,topAxisEnabled:rs,setAxisFormat:Xe,getAxisFormat:Ue,setTickInterval:Ze,getTickInterval:Qe,setTodayMarker:Je,getTodayMarker:Ke,setAccTitle:ye,getAccTitle:ke,setDiagramTitle:me,getDiagramTitle:he,setDiagramId:Ge,setDisplayMode:ns,getDisplayMode:as,setAccDescription:fe,getAccDescription:de,addSection:hs,getSections:ms,getTasks:ks,addTask:bs,findTaskById:dt,addTaskOrg:ws,setIncludes:cs,getIncludes:ls,setExcludes:us,getExcludes:ds,setClickEvent:Ss,setLink:_s,getLinks:fs,bindFunctions:Cs,parseDuration:ae,isInvalidDate:re,setWeekday:ys,getWeekday:gs,setWeekend:ps};function Mt(t,s,i){let e=!0;for(;e;)e=!1,i.forEach(function(a){const g="^\\s*"+a+"\\s*$",p=new RegExp(g);t[0].match(p)&&(s[a]=!0,t.shift(1),e=!0)})}Y(Mt,"getTaskTags");l(Mt,"getTaskTags");vt.default.extend(He.default);var Es=l(function(){lt.debug("Something is calling, setConf, remove the call")},"setConf"),te={monday:Ye,tuesday:Ie,wednesday:Ee,thursday:Me,friday:Ce,saturday:Se,sunday:De},Is=l((t,s)=>{let i=[...t].map(()=>-1/0),e=[...t].sort((g,p)=>g.startTime-p.startTime||g.order-p.order),a=0;for(const g of e)for(let p=0;p<i.length;p++)if(g.startTime>=i[p]){i[p]=g.endTime,g.order=p+s,p>a&&(a=p);break}return a},"getMaxIntersections"),it,It=1e4,Ys=l(function(t,s,i,e){const a=mt().gantt;e.db.setDiagramId(s);const g=mt().securityLevel;let p;g==="sandbox"&&(p=bt("#i"+s));const b=g==="sandbox"?bt(p.nodes()[0].contentDocument.body):bt("body"),F=g==="sandbox"?p.nodes()[0].contentDocument:document,A=F.getElementById(s);it=A.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const w=e.db.getTasks(),V=w.filter(m=>!m.vert);let O=[];for(const m of V)O.push(m.type);O=I(O);const z={};let U=2*a.topPadding;if(e.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const v of V)m[v.section]===void 0?m[v.section]=[v]:m[v.section].push(v);let T=0;for(const v of Object.keys(m)){const y=Is(m[v],T)+1;T+=y,U+=y*(a.barHeight+a.barGap),z[v]=y}}else{U+=V.length*(a.barHeight+a.barGap);for(const m of O)z[m]=V.filter(T=>T.type===m).length}A.setAttribute("viewBox","0 0 "+it+" "+U);const N=b.select(`[id="${s}"]`),k=be().domain([Le(w,function(m){return m.startTime}),Fe(w,function(m){return m.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function D(m,T){const v=m.startTime,y=T.startTime;let n=0;return v>y?n=1:v<y&&(n=-1),n}Y(D,"taskCompare"),l(D,"taskCompare"),w.sort(D),W(w,it,U),ge(N,U,it,a.useMaxWidth),N.append("text").text(e.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function W(m,T,v){const y=a.barHeight,n=y+a.barGap,d=a.topPadding,f=a.leftPadding,u=Ae().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(we);q(n,d,f,T,v,m,e.db.getExcludes(),e.db.getIncludes()),$(f,d,T,v),L(m,n,d,f,y,u,T),x(n,d),h(f,d,T,v)}Y(W,"makeGantt"),l(W,"makeGantt");function L(m,T,v,y,n,d,f){m.sort((c,C)=>c.vert===C.vert?0:c.vert?1:-1);const u=m.filter(c=>!c.vert),r=[...new Set(u.map(c=>c.order))].map(c=>u.find(C=>C.order===c));N.append("g").selectAll("rect").data(r).enter().append("rect").attr("x",0).attr("y",function(c,C){return C=c.order,C*T+v-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",T).attr("class",function(c){for(const[C,M]of O.entries())if(c.type===M)return"section section"+C%a.numberSectionStyles;return"section section0"}).enter();const S=N.append("g").selectAll("rect").data(m).enter(),o=e.db.getLinks();if(S.append("rect").attr("id",function(c){return s+"-"+c.id}).attr("rx",3).attr("ry",3).attr("x",function(c){return c.milestone?k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))-.5*n:k(c.startTime)+y}).attr("y",function(c,C){return C=c.order,c.vert?a.gridLineStartPadding:C*T+v}).attr("width",function(c){return c.milestone?n:c.vert?.08*n:k(c.renderEndTime||c.endTime)-k(c.startTime)}).attr("height",function(c){return c.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:n}).attr("transform-origin",function(c,C){return C=c.order,(k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))).toString()+"px "+(C*T+v+.5*n).toString()+"px"}).attr("class",function(c){const C="task";let M="";c.classes.length>0&&(M=c.classes.join(" "));let R=0;for(const[j,P]of O.entries())c.type===P&&(R=j%a.numberSectionStyles);let E="";return c.active?c.crit?E+=" activeCrit":E=" active":c.done?c.crit?E=" doneCrit":E=" done":c.crit&&(E+=" crit"),E.length===0&&(E=" task"),c.milestone&&(E=" milestone "+E),c.vert&&(E=" vert "+E),E+=R,E+=" "+M,C+E}),S.append("text").attr("id",function(c){return s+"-"+c.id+"-text"}).text(function(c){return c.task}).attr("font-size",a.fontSize).attr("x",function(c){let C=k(c.startTime),M=k(c.renderEndTime||c.endTime);if(c.milestone&&(C+=.5*(k(c.endTime)-k(c.startTime))-.5*n,M=C+n),c.vert)return k(c.startTime)+y;const R=this.getBBox().width;return R>M-C?M+R+1.5*a.leftPadding>f?C+y-5:M+y+5:(M-C)/2+C+y}).attr("y",function(c,C){return c.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(C=c.order,C*T+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",n).attr("class",function(c){const C=k(c.startTime);let M=k(c.endTime);c.milestone&&(M=C+n);const R=this.getBBox().width;let E="";c.classes.length>0&&(E=c.classes.join(" "));let j=0;for(const[rt,at]of O.entries())c.type===at&&(j=rt%a.numberSectionStyles);let P="";return c.active&&(c.crit?P="activeCritText"+j:P="activeText"+j),c.done?c.crit?P=P+" doneCritText"+j:P=P+" doneText"+j:c.crit&&(P=P+" critText"+j),c.milestone&&(P+=" milestoneText"),c.vert&&(P+=" vertText"),R>M-C?M+R+1.5*a.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+j+" "+P:E+" taskTextOutsideRight taskTextOutside"+j+" "+P+" width-"+R:E+" taskText taskText"+j+" "+P+" width-"+R}),mt().securityLevel==="sandbox"){let c;c=bt("#i"+s);const C=c.nodes()[0].contentDocument;S.filter(function(M){return o.has(M.id)}).each(function(M){var R=C.querySelector("#"+CSS.escape(s+"-"+M.id)),E=C.querySelector("#"+CSS.escape(s+"-"+M.id+"-text"));const j=R.parentNode;var P=C.createElement("a");P.setAttribute("xlink:href",o.get(M.id)),P.setAttribute("target","_top"),j.appendChild(P),P.appendChild(R),P.appendChild(E)})}}Y(L,"drawRects"),l(L,"drawRects");function q(m,T,v,y,n,d,f,u){if(f.length===0&&u.length===0)return;let _,r;for(const{startTime:M,endTime:R}of d)(_===void 0||M<_)&&(_=M),(r===void 0||R>r)&&(r=R);if(!_||!r)return;if((0,vt.default)(r).diff((0,vt.default)(_),"year")>5){lt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=e.db.getDateFormat(),o=[];let H=null,c=(0,vt.default)(_);for(;c.valueOf()<=r;)e.db.isInvalidDate(c,S,f,u)?H?H.end=c:H={start:c,end:c}:H&&(o.push(H),H=null),c=c.add(1,"d");N.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",M=>s+"-exclude-"+M.start.format("YYYY-MM-DD")).attr("x",M=>k(M.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",M=>k(M.end.endOf("day"))-k(M.start.startOf("day"))).attr("height",n-T-a.gridLineStartPadding).attr("transform-origin",function(M,R){return(k(M.start)+v+.5*(k(M.end)-k(M.start))).toString()+"px "+(R*m+.5*n).toString()+"px"}).attr("class","exclude-range")}Y(q,"drawExcludeDays"),l(q,"drawExcludeDays");function B(m,T,v,y){if(v<=0||m>T)return 1/0;const n=T-m,d=vt.default.duration({[y??"day"]:v}).asMilliseconds();return d<=0?1/0:Math.ceil(n/d)}Y(B,"getEstimatedTickCount"),l(B,"getEstimatedTickCount");function $(m,T,v,y){const n=e.db.getDateFormat(),d=e.db.getAxisFormat();let f;d?f=d:n==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let u=_e(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));const r=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(e.db.getTickInterval()||a.tickInterval);if(r!==null){const S=parseInt(r[1],10);if(isNaN(S)||S<=0)lt.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{const o=r[2],H=e.db.getWeekday()||a.weekday,c=k.domain(),C=c[0],M=c[1],R=B(C,M,S,o);if(R>It)lt.warn(`The tick interval "${S}${o}" would generate ${R} ticks, which exceeds the maximum allowed (${It}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(o){case"millisecond":u.ticks(Qt.every(S));break;case"second":u.ticks(Zt.every(S));break;case"minute":u.ticks(Ut.every(S));break;case"hour":u.ticks(Xt.every(S));break;case"day":u.ticks(Gt.every(S));break;case"week":u.ticks(te[H].every(S));break;case"month":u.ticks(qt.every(S));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+m+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),e.db.topAxisEnabled()||a.topAxis){let S=$e(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));if(r!==null){const o=parseInt(r[1],10);if(isNaN(o)||o<=0)lt.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{const H=r[2],c=e.db.getWeekday()||a.weekday,C=k.domain(),M=C[0],R=C[1];if(B(M,R,o,H)<=It)switch(H){case"millisecond":S.ticks(Qt.every(o));break;case"second":S.ticks(Zt.every(o));break;case"minute":S.ticks(Ut.every(o));break;case"hour":S.ticks(Xt.every(o));break;case"day":S.ticks(Gt.every(o));break;case"week":S.ticks(te[c].every(o));break;case"month":S.ticks(qt.every(o));break}}}N.append("g").attr("class","grid").attr("transform","translate("+m+", "+T+")").call(S).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}Y($,"makeGrid"),l($,"makeGrid");function x(m,T){let v=0;const y=Object.keys(z).map(n=>[n,z[n]]);N.append("g").selectAll("text").data(y).enter().append(function(n){const d=n[0].split(pe.lineBreakRegex),f=-(d.length-1)/2,u=F.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[_,r]of d.entries()){const S=F.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),_>0&&S.setAttribute("dy","1em"),S.textContent=r,u.appendChild(S)}return u}).attr("x",10).attr("y",function(n,d){if(d>0)for(let f=0;f<d;f++)return v+=y[d-1][1],n[1]*m/2+v*m+T;else return n[1]*m/2+T}).attr("font-size",a.sectionFontSize).attr("class",function(n){for(const[d,f]of O.entries())if(n[0]===f)return"sectionTitle sectionTitle"+d%a.numberSectionStyles;return"sectionTitle"})}Y(x,"vertLabels"),l(x,"vertLabels");function h(m,T,v,y){const n=e.db.getTodayMarker();if(n==="off")return;const d=N.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",k(f)+m).attr("x2",k(f)+m).attr("y1",a.titleTopMargin).attr("y2",y-a.titleTopMargin).attr("class","today"),n!==""&&u.attr("style",n.replace(/,/g,";"))}Y(h,"drawToday"),l(h,"drawToday");function I(m){const T={},v=[];for(let y=0,n=m.length;y<n;++y)Object.prototype.hasOwnProperty.call(T,m[y])||(T[m[y]]=!0,v.push(m[y]));return v}Y(I,"checkUnique"),l(I,"checkUnique")},"draw"),$s={setConf:Es,draw:Ys},Ls=l(t=>`
7
+ .mermaid-main-font {
8
+ font-family: ${t.fontFamily};
9
+ }
10
+
11
+ .exclude-range {
12
+ fill: ${t.excludeBkgColor};
13
+ }
14
+
15
+ .section {
16
+ stroke: none;
17
+ opacity: 0.2;
18
+ }
19
+
20
+ .section0 {
21
+ fill: ${t.sectionBkgColor};
22
+ }
23
+
24
+ .section2 {
25
+ fill: ${t.sectionBkgColor2};
26
+ }
27
+
28
+ .section1,
29
+ .section3 {
30
+ fill: ${t.altSectionBkgColor};
31
+ opacity: 0.2;
32
+ }
33
+
34
+ .sectionTitle0 {
35
+ fill: ${t.titleColor};
36
+ }
37
+
38
+ .sectionTitle1 {
39
+ fill: ${t.titleColor};
40
+ }
41
+
42
+ .sectionTitle2 {
43
+ fill: ${t.titleColor};
44
+ }
45
+
46
+ .sectionTitle3 {
47
+ fill: ${t.titleColor};
48
+ }
49
+
50
+ .sectionTitle {
51
+ text-anchor: start;
52
+ font-family: ${t.fontFamily};
53
+ }
54
+
55
+
56
+ /* Grid and axis */
57
+
58
+ .grid .tick {
59
+ stroke: ${t.gridColor};
60
+ opacity: 0.8;
61
+ shape-rendering: crispEdges;
62
+ }
63
+
64
+ .grid .tick text {
65
+ font-family: ${t.fontFamily};
66
+ fill: ${t.textColor};
67
+ }
68
+
69
+ .grid path {
70
+ stroke-width: 0;
71
+ }
72
+
73
+
74
+ /* Today line */
75
+
76
+ .today {
77
+ fill: none;
78
+ stroke: ${t.todayLineColor};
79
+ stroke-width: 2px;
80
+ }
81
+
82
+
83
+ /* Task styling */
84
+
85
+ /* Default task */
86
+
87
+ .task {
88
+ stroke-width: 2;
89
+ }
90
+
91
+ .taskText {
92
+ text-anchor: middle;
93
+ font-family: ${t.fontFamily};
94
+ }
95
+
96
+ .taskTextOutsideRight {
97
+ fill: ${t.taskTextDarkColor};
98
+ text-anchor: start;
99
+ font-family: ${t.fontFamily};
100
+ }
101
+
102
+ .taskTextOutsideLeft {
103
+ fill: ${t.taskTextDarkColor};
104
+ text-anchor: end;
105
+ }
106
+
107
+
108
+ /* Special case clickable */
109
+
110
+ .task.clickable {
111
+ cursor: pointer;
112
+ }
113
+
114
+ .taskText.clickable {
115
+ cursor: pointer;
116
+ fill: ${t.taskTextClickableColor} !important;
117
+ font-weight: bold;
118
+ }
119
+
120
+ .taskTextOutsideLeft.clickable {
121
+ cursor: pointer;
122
+ fill: ${t.taskTextClickableColor} !important;
123
+ font-weight: bold;
124
+ }
125
+
126
+ .taskTextOutsideRight.clickable {
127
+ cursor: pointer;
128
+ fill: ${t.taskTextClickableColor} !important;
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* Specific task settings for the sections*/
134
+
135
+ .taskText0,
136
+ .taskText1,
137
+ .taskText2,
138
+ .taskText3 {
139
+ fill: ${t.taskTextColor};
140
+ }
141
+
142
+ .task0,
143
+ .task1,
144
+ .task2,
145
+ .task3 {
146
+ fill: ${t.taskBkgColor};
147
+ stroke: ${t.taskBorderColor};
148
+ }
149
+
150
+ .taskTextOutside0,
151
+ .taskTextOutside2
152
+ {
153
+ fill: ${t.taskTextOutsideColor};
154
+ }
155
+
156
+ .taskTextOutside1,
157
+ .taskTextOutside3 {
158
+ fill: ${t.taskTextOutsideColor};
159
+ }
160
+
161
+
162
+ /* Active task */
163
+
164
+ .active0,
165
+ .active1,
166
+ .active2,
167
+ .active3 {
168
+ fill: ${t.activeTaskBkgColor};
169
+ stroke: ${t.activeTaskBorderColor};
170
+ }
171
+
172
+ .activeText0,
173
+ .activeText1,
174
+ .activeText2,
175
+ .activeText3 {
176
+ fill: ${t.taskTextDarkColor} !important;
177
+ }
178
+
179
+
180
+ /* Completed task */
181
+
182
+ .done0,
183
+ .done1,
184
+ .done2,
185
+ .done3 {
186
+ stroke: ${t.doneTaskBorderColor};
187
+ fill: ${t.doneTaskBkgColor};
188
+ stroke-width: 2;
189
+ }
190
+
191
+ .doneText0,
192
+ .doneText1,
193
+ .doneText2,
194
+ .doneText3 {
195
+ fill: ${t.taskTextDarkColor} !important;
196
+ }
197
+
198
+ /* Done task text displayed outside the bar sits against the diagram background,
199
+ not against the done-task bar, so it must use the outside/contrast color. */
200
+ .doneText0.taskTextOutsideLeft,
201
+ .doneText0.taskTextOutsideRight,
202
+ .doneText1.taskTextOutsideLeft,
203
+ .doneText1.taskTextOutsideRight,
204
+ .doneText2.taskTextOutsideLeft,
205
+ .doneText2.taskTextOutsideRight,
206
+ .doneText3.taskTextOutsideLeft,
207
+ .doneText3.taskTextOutsideRight {
208
+ fill: ${t.taskTextOutsideColor} !important;
209
+ }
210
+
211
+
212
+ /* Tasks on the critical line */
213
+
214
+ .crit0,
215
+ .crit1,
216
+ .crit2,
217
+ .crit3 {
218
+ stroke: ${t.critBorderColor};
219
+ fill: ${t.critBkgColor};
220
+ stroke-width: 2;
221
+ }
222
+
223
+ .activeCrit0,
224
+ .activeCrit1,
225
+ .activeCrit2,
226
+ .activeCrit3 {
227
+ stroke: ${t.critBorderColor};
228
+ fill: ${t.activeTaskBkgColor};
229
+ stroke-width: 2;
230
+ }
231
+
232
+ .doneCrit0,
233
+ .doneCrit1,
234
+ .doneCrit2,
235
+ .doneCrit3 {
236
+ stroke: ${t.critBorderColor};
237
+ fill: ${t.doneTaskBkgColor};
238
+ stroke-width: 2;
239
+ cursor: pointer;
240
+ shape-rendering: crispEdges;
241
+ }
242
+
243
+ .milestone {
244
+ transform: rotate(45deg) scale(0.8,0.8);
245
+ }
246
+
247
+ .milestoneText {
248
+ font-style: italic;
249
+ }
250
+ .doneCritText0,
251
+ .doneCritText1,
252
+ .doneCritText2,
253
+ .doneCritText3 {
254
+ fill: ${t.taskTextDarkColor} !important;
255
+ }
256
+
257
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
258
+ .doneCritText0.taskTextOutsideLeft,
259
+ .doneCritText0.taskTextOutsideRight,
260
+ .doneCritText1.taskTextOutsideLeft,
261
+ .doneCritText1.taskTextOutsideRight,
262
+ .doneCritText2.taskTextOutsideLeft,
263
+ .doneCritText2.taskTextOutsideRight,
264
+ .doneCritText3.taskTextOutsideLeft,
265
+ .doneCritText3.taskTextOutsideRight {
266
+ fill: ${t.taskTextOutsideColor} !important;
267
+ }
268
+
269
+ .vert {
270
+ stroke: ${t.vertLineColor};
271
+ }
272
+
273
+ .vertText {
274
+ font-size: 15px;
275
+ text-anchor: middle;
276
+ fill: ${t.vertLineColor} !important;
277
+ }
278
+
279
+ .activeCritText0,
280
+ .activeCritText1,
281
+ .activeCritText2,
282
+ .activeCritText3 {
283
+ fill: ${t.taskTextDarkColor} !important;
284
+ }
285
+
286
+ .titleText {
287
+ text-anchor: middle;
288
+ font-size: 18px;
289
+ fill: ${t.titleColor||t.textColor};
290
+ font-family: ${t.fontFamily};
291
+ }
292
+ `,"getStyles"),Fs=Ls,Gs={parser:Be,db:Ms,renderer:$s,styles:Fs};export{Gs as diagram};