@foris/ai-agent 0.9.1-beta.2 → 0.9.1-beta.3

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 (325) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +14 -2779
  5. package/dist/ai-agent.umd.js +3213 -4
  6. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  7. package/dist/angular-html-CHuhdNYa.js +32 -0
  8. package/dist/angular-ts-CkwnAxZa.js +32 -0
  9. package/dist/apache-BUjz-sD2.js +6 -0
  10. package/dist/apex-oLhhs58q.js +6 -0
  11. package/dist/apl-C8FRyJIY.js +24 -0
  12. package/dist/applescript-BPx7YFFu.js +6 -0
  13. package/dist/ara-Z2fSOxSw.js +6 -0
  14. package/dist/arc-BzRDGNYi.js +85 -0
  15. package/dist/architectureDiagram-VXUJARFQ-jlW87y1j.js +4682 -0
  16. package/dist/asciidoc-B-pCoB3G.js +6 -0
  17. package/dist/asm-BTWLY5ym.js +6 -0
  18. package/dist/astro-CAC4-sRr.js +25 -0
  19. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  20. package/dist/awk-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0.js +6 -0
  28. package/dist/blade-Bwl5-ENK.js +27 -0
  29. package/dist/blockDiagram-VD42YOAC-P4woNHAr.js +2415 -0
  30. package/dist/bsl-NkNNwerW.js +8 -0
  31. package/dist/c-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-CB9WFLmJ.js +1593 -0
  33. package/dist/cadence-02UX7mW8.js +6 -0
  34. package/dist/cairo-Cp116741.js +18 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  39. package/dist/channel-B-TkD8Bv.js +5 -0
  40. package/dist/chunk-4BX2VUAB-DCjARiNr.js +9 -0
  41. package/dist/chunk-55IACEB6-DvmPHLo5.js +8 -0
  42. package/dist/chunk-B4BG7PRW-L08cVxNP.js +1377 -0
  43. package/dist/chunk-DI55MBZ5-zkyTO7pn.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-BkpbM-uP.js +19 -0
  45. package/dist/chunk-QN33PNHL-DSFN3Uoh.js +20 -0
  46. package/dist/chunk-QZHKN3VN-CAgMv7Xo.js +15 -0
  47. package/dist/chunk-TZMSLE5B-B6GY_sBW.js +64 -0
  48. package/dist/clarity-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-KqDAjO33.js +30 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-KqDAjO33.js +30 -0
  51. package/dist/clojure-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DNTp9HAy.js +20 -0
  54. package/dist/code-block-QI2IAROF-Culy9AKV.js +2042 -0
  55. package/dist/codeowners-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI.js +6 -0
  57. package/dist/coffee-BrprHIxF.js +18 -0
  58. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-DtppvcNV.js +2620 -0
  61. package/dist/cpp-CwJ5QP3s.js +29 -0
  62. package/dist/crystal-DWRgWI1Z.js +24 -0
  63. package/dist/csv-CmYOceLb.js +6 -0
  64. package/dist/cue-ZzumE7IT.js +6 -0
  65. package/dist/cypher-jpdmjtA6.js +6 -0
  66. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  67. package/dist/d-CBagWSwH.js +6 -0
  68. package/dist/dagre-6UL2VRFP-BfvQz4N-.js +459 -0
  69. package/dist/dark-plus-pUHDTVV0.js +4 -0
  70. package/dist/dart-6ObCrKr9.js +6 -0
  71. package/dist/dax-CcDT-8dH.js +6 -0
  72. package/dist/defaultLocale-D1piDxzZ.js +177 -0
  73. package/dist/desktop-B93p9R9O.js +6 -0
  74. package/dist/diagram-PSM6KHXK-ka-cDwC2.js +552 -0
  75. package/dist/diagram-QEK2KX5R-BW-yTygZ.js +232 -0
  76. package/dist/diagram-S2PKOQOG-j24g_p7y.js +154 -0
  77. package/dist/diff-BxzP2J8R.js +6 -0
  78. package/dist/docker-CsHqm9tx.js +6 -0
  79. package/dist/dotenv-BMjVjUL1.js +6 -0
  80. package/dist/dracula-BtZx2Kac.js +4 -0
  81. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  82. package/dist/dream-maker-PAx17jaB.js +6 -0
  83. package/dist/edge-B5_tHZZy.js +21 -0
  84. package/dist/elixir-Dj_1qPNg.js +18 -0
  85. package/dist/elm-DZPAA5Qn.js +9 -0
  86. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  87. package/dist/erDiagram-Q2GNP2WA-BoiJgXhe.js +854 -0
  88. package/dist/erb-DiYOU0he.js +31 -0
  89. package/dist/erlang-CNRRyeIc.js +18 -0
  90. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  91. package/dist/everforest-light-BbXl82Em.js +4 -0
  92. package/dist/fennel-N4WcXuKx.js +6 -0
  93. package/dist/fish-BTDEUgqH.js +6 -0
  94. package/dist/flowDiagram-NV44I4VS-BHGntIlE.js +1639 -0
  95. package/dist/fluent-BMXUxfv1.js +6 -0
  96. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  97. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  98. package/dist/fsharp-yevJ8DSS.js +18 -0
  99. package/dist/ganttDiagram-JELNMOA3-Ce8NwhCP.js +2710 -0
  100. package/dist/gdresource-BwtMIoBm.js +10 -0
  101. package/dist/gdscript-BifyeYhI.js +6 -0
  102. package/dist/gdshader-Bk8fF6yr.js +6 -0
  103. package/dist/genie-DzUvd7U9.js +6 -0
  104. package/dist/gherkin-DHRaV0YP.js +6 -0
  105. package/dist/git-commit-Bd32YZ0K.js +8 -0
  106. package/dist/git-rebase-BWMiWxYf.js +18 -0
  107. package/dist/gitGraphDiagram-NY62KEGX-DxoN7y5T.js +723 -0
  108. package/dist/github-dark-DenFmJkN.js +4 -0
  109. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  110. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  111. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  112. package/dist/github-light-JYsPkUQd.js +4 -0
  113. package/dist/github-light-default-D99KPAby.js +4 -0
  114. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  115. package/dist/gleam-Bv284lvN.js +6 -0
  116. package/dist/glimmer-js-Nc7Kk_CN.js +21 -0
  117. package/dist/glimmer-ts-DLoneyA9.js +21 -0
  118. package/dist/glsl-CkUcVZNK.js +8 -0
  119. package/dist/gnuplot-yPG9-sE_.js +6 -0
  120. package/dist/graph-C-gpLwEq.js +1189 -0
  121. package/dist/graphql-CB9Yiq18.js +23 -0
  122. package/dist/groovy-CJQTphOW.js +6 -0
  123. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  124. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  125. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  126. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  127. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  128. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  129. package/dist/hack-dNZDE7CK.js +19 -0
  130. package/dist/haml-CIHYN_l8.js +19 -0
  131. package/dist/handlebars-5wdAGqTJ.js +21 -0
  132. package/dist/haskell-WeIwNIP6.js +6 -0
  133. package/dist/haxe-TztHsm5T.js +6 -0
  134. package/dist/hcl-D438OF-I.js +6 -0
  135. package/dist/hjson-DYBUbqOl.js +6 -0
  136. package/dist/hlsl-Bk8TCZNL.js +6 -0
  137. package/dist/houston-BDYrDoDW.js +4 -0
  138. package/dist/html-derivative-89LwIO26.js +18 -0
  139. package/dist/http-Dsh8rSJR.js +26 -0
  140. package/dist/hurl-NdmqbL7E.js +26 -0
  141. package/dist/hxml-GbqSQCLa.js +8 -0
  142. package/dist/hy-Brt5EZ7-.js +6 -0
  143. package/dist/imba-CimUv-Uh.js +6 -0
  144. package/dist/index-C3mwt8G1.js +67982 -0
  145. package/dist/infoDiagram-WHAUD3N6-DdxAG2VL.js +35 -0
  146. package/dist/ini-BZIuRIvJ.js +6 -0
  147. package/dist/init-DjUOC4st.js +16 -0
  148. package/dist/java-DY6VlHhP.js +6 -0
  149. package/dist/jinja-BuwNoMI4.js +21 -0
  150. package/dist/jison-_q6rTsMi.js +18 -0
  151. package/dist/journeyDiagram-XKPGCS4Q-CT5Fbg6c.js +848 -0
  152. package/dist/json5-BT4Fjg39.js +6 -0
  153. package/dist/jsonc-CHjZD8gR.js +6 -0
  154. package/dist/jsonl-BGuvDmy9.js +6 -0
  155. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  156. package/dist/jssm-BcADi6EI.js +6 -0
  157. package/dist/jsx-BtKADgXT.js +6 -0
  158. package/dist/julia-BCBeSq7V.js +27 -0
  159. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  160. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  161. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  162. package/dist/kanban-definition-3W4ZIXB7-CxtMdkvq.js +732 -0
  163. package/dist/katex.min-l0sNRNKZ.js +1 -0
  164. package/dist/kdl-BNOv9TC3.js +6 -0
  165. package/dist/kotlin-ByBMgTeR.js +6 -0
  166. package/dist/kusto-VWFLl2T0.js +6 -0
  167. package/dist/laserwave-6a00oqik.js +4 -0
  168. package/dist/latex-DF20280u.js +9 -0
  169. package/dist/layout-D2NtTgFh.js +1730 -0
  170. package/dist/lean-D5yRrexI.js +6 -0
  171. package/dist/less-B1GLI2Di.js +6 -0
  172. package/dist/light-plus-CZuVqSLX.js +4 -0
  173. package/dist/linear-sERCAB61.js +277 -0
  174. package/dist/liquid-CFYzC-s7.js +21 -0
  175. package/dist/llvm-co1rIKs3.js +6 -0
  176. package/dist/log-Al8wyEFV.js +6 -0
  177. package/dist/logo-DBa4JDzV.js +6 -0
  178. package/dist/lua-kX5WP_P5.js +8 -0
  179. package/dist/luau-DtBSxLyz.js +6 -0
  180. package/dist/make-CsMclxtr.js +6 -0
  181. package/dist/marko-OTJE9YCh.js +23 -0
  182. package/dist/material-theme-D6KBX41T.js +4 -0
  183. package/dist/material-theme-darker-CkRroheE.js +4 -0
  184. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  185. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  186. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  187. package/dist/matlab-BOAaUVP0.js +6 -0
  188. package/dist/mdc-tFNBAW39.js +21 -0
  189. package/dist/mdx-BOhZZUJ8.js +6 -0
  190. package/dist/mermaid-B0ixDHKN.js +6 -0
  191. package/dist/mermaid-NA5CF7SZ-620UJKEg.js +14 -0
  192. package/dist/mermaid.core-08D5Vldk.js +14401 -0
  193. package/dist/min-dark-C7ak0t6c.js +4 -0
  194. package/dist/min-light-CKFxVcPp.js +4 -0
  195. package/dist/mindmap-definition-VGOIOE7T-CTZ_Wx0b.js +798 -0
  196. package/dist/mipsasm-CTx18fBl.js +6 -0
  197. package/dist/mojo-BD611d7o.js +6 -0
  198. package/dist/monokai-C1KBYcO0.js +4 -0
  199. package/dist/move-F-dICmj2.js +6 -0
  200. package/dist/narrat-DmhDCBs-.js +6 -0
  201. package/dist/nextflow-DmSVRGjG.js +6 -0
  202. package/dist/nginx-COxS3qoU.js +9 -0
  203. package/dist/night-owl-Bm2rzalh.js +4 -0
  204. package/dist/nim-CZHmlxcO.js +28 -0
  205. package/dist/nix-BZK5F767.js +9 -0
  206. package/dist/nord-CC5OiUXg.js +4 -0
  207. package/dist/nushell-D8j3dhT-.js +6 -0
  208. package/dist/objective-c-Itk8tzmv.js +6 -0
  209. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  210. package/dist/ocaml-eSVK32Eg.js +6 -0
  211. package/dist/openscad-Sp5uZ6f2.js +6 -0
  212. package/dist/ordinal-MUacOSdK.js +65 -0
  213. package/dist/pascal-xy8pJNns.js +6 -0
  214. package/dist/perl-CvmtpKyV.js +24 -0
  215. package/dist/php-B1tFq0rn.js +25 -0
  216. package/dist/pieDiagram-ADFJNKIX-DtleX3ES.js +173 -0
  217. package/dist/pkl-C-zSNmaA.js +6 -0
  218. package/dist/plastic-CSTz3KZp.js +4 -0
  219. package/dist/plsql-pVbGZfOv.js +6 -0
  220. package/dist/po-BNfHvqmm.js +6 -0
  221. package/dist/poimandres-C-VADXHD.js +4 -0
  222. package/dist/polar-CAZahv3u.js +6 -0
  223. package/dist/postcss-05aHdL-n.js +6 -0
  224. package/dist/powerquery-DI9HkTvs.js +6 -0
  225. package/dist/powershell-Clc4ydu-.js +6 -0
  226. package/dist/prisma-FZjmVtSl.js +6 -0
  227. package/dist/prolog-C5-yg4TO.js +6 -0
  228. package/dist/proto-MmCPeFAD.js +6 -0
  229. package/dist/pug-xpTstXA9.js +20 -0
  230. package/dist/puppet-CUJHmnxV.js +6 -0
  231. package/dist/purescript-rUfGld-4.js +6 -0
  232. package/dist/qml-G4_KKZym.js +18 -0
  233. package/dist/qmldir-BInDYbpo.js +6 -0
  234. package/dist/qss-AeJTysr_.js +6 -0
  235. package/dist/quadrantDiagram-AYHSOK5B-D193y_DL.js +1038 -0
  236. package/dist/r-Bm0uF0U2.js +6 -0
  237. package/dist/racket-B83wSAja.js +6 -0
  238. package/dist/raku-nEQ4ZJJ7.js +6 -0
  239. package/dist/razor-BS4LwTsw.js +19 -0
  240. package/dist/red-7y8PH7HH.js +4 -0
  241. package/dist/reg-m_s_Kiip.js +6 -0
  242. package/dist/regexp-BazyLpPg.js +6 -0
  243. package/dist/rel-BcRfyd6Q.js +6 -0
  244. package/dist/requirementDiagram-UZGBJVZJ-DcSe-m6d.js +864 -0
  245. package/dist/riscv-Ce8MAQLP.js +6 -0
  246. package/dist/rose-pine-BKc3yVeu.js +4 -0
  247. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  248. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  249. package/dist/rosmsg-Cz0w1km8.js +6 -0
  250. package/dist/rst-BvkiqG_4.js +39 -0
  251. package/dist/ruby-CSrNBwZK.js +40 -0
  252. package/dist/sankeyDiagram-TZEHDZUN-HpXuokMl.js +838 -0
  253. package/dist/sas-DciBl6hq.js +18 -0
  254. package/dist/sass-DxHp5rTx.js +6 -0
  255. package/dist/scala-D4grkFkl.js +6 -0
  256. package/dist/scheme-BCRWuEm4.js +6 -0
  257. package/dist/scss-Sr5SHsiH.js +18 -0
  258. package/dist/sdbl-B7T8abf4.js +6 -0
  259. package/dist/sequenceDiagram-WL72ISMW-D_5I_YtC.js +2530 -0
  260. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  261. package/dist/shellsession-B0YIY3D-.js +18 -0
  262. package/dist/slack-dark-i7wN4OET.js +4 -0
  263. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  264. package/dist/smalltalk-BlI1_OkM.js +6 -0
  265. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  266. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  267. package/dist/solarized-light-BheCkDPT.js +4 -0
  268. package/dist/solidity-DUWnFhS6.js +6 -0
  269. package/dist/soy-I6L3jl3W.js +18 -0
  270. package/dist/sparql-B0KWFEri.js +8 -0
  271. package/dist/splunk-CRXR8A9s.js +6 -0
  272. package/dist/ssh-config-DP-hNVbF.js +6 -0
  273. package/dist/stata-BNwq7-ev.js +18 -0
  274. package/dist/stateDiagram-FKZM4ZOC-CRSpvNED.js +276 -0
  275. package/dist/stateDiagram-v2-4FDKWEC3-DfUK-Zbc.js +29 -0
  276. package/dist/style.css +1 -1
  277. package/dist/stylus-CyKEU1Ej.js +6 -0
  278. package/dist/svelte-Din0yw3u.js +22 -0
  279. package/dist/swift-9UzSvamq.js +6 -0
  280. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  281. package/dist/system-verilog-BCm7smPJ.js +6 -0
  282. package/dist/systemd-C-4qm6XH.js +6 -0
  283. package/dist/talonscript-CFF3LF_O.js +6 -0
  284. package/dist/tasl-Cg_WBUAe.js +6 -0
  285. package/dist/tcl-DN7buRTF.js +6 -0
  286. package/dist/templ-CBu7yCES.js +20 -0
  287. package/dist/terraform-DGvcn9zM.js +6 -0
  288. package/dist/tex-DpOayVob.js +8 -0
  289. package/dist/timeline-definition-IT6M3QCI-DaJ4iEOK.js +813 -0
  290. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  291. package/dist/treemap-KMMF4GRG-C3Ab2yjL.js +16045 -0
  292. package/dist/ts-tags-3Kvfz4et.js +49 -0
  293. package/dist/tsv-BtvSkaG0.js +6 -0
  294. package/dist/tsx-B8rCNbgL.js +6 -0
  295. package/dist/turtle-_H59FV7D.js +6 -0
  296. package/dist/twig-3l_q-6xZ.js +37 -0
  297. package/dist/typespec-DWqp-kUU.js +6 -0
  298. package/dist/typst-D_1QKWns.js +6 -0
  299. package/dist/v-BPCNiyYe.js +6 -0
  300. package/dist/vala-uxaPR7d1.js +6 -0
  301. package/dist/vb-D8_c5-KN.js +6 -0
  302. package/dist/verilog-B-bybjPF.js +6 -0
  303. package/dist/vesper-BckBta1U.js +4 -0
  304. package/dist/vhdl-CUlNa8ac.js +6 -0
  305. package/dist/viml-DsfA-sWm.js +6 -0
  306. package/dist/vitesse-black-BoGvW84i.js +4 -0
  307. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  308. package/dist/vitesse-light-CcmG315c.js +4 -0
  309. package/dist/vue-BuFQ04-G.js +37 -0
  310. package/dist/vue-html-CyxHqgfT.js +21 -0
  311. package/dist/vue-vine-B_YNGutq.js +30 -0
  312. package/dist/vyper-CPQuu50u.js +6 -0
  313. package/dist/wasm-BBXxrAl7.js +6 -0
  314. package/dist/wasm-DQxwEHae.js +7 -0
  315. package/dist/wenyan-pbVjoM9_.js +6 -0
  316. package/dist/wgsl-DY4iK1q1.js +6 -0
  317. package/dist/wikitext-Z-MoUasO.js +6 -0
  318. package/dist/wit-CQMQOlTg.js +6 -0
  319. package/dist/wolfram-Dz4KXISs.js +6 -0
  320. package/dist/xml-C2J0sS9M.js +8 -0
  321. package/dist/xsl-CbTBIiv3.js +9 -0
  322. package/dist/xychartDiagram-PRI3JC2R-Cf2smXg5.js +1353 -0
  323. package/dist/zenscript-CxBjpf9c.js +6 -0
  324. package/dist/zig-Vm0PO9wB.js +6 -0
  325. package/package.json +25 -25
@@ -0,0 +1,2710 @@
1
+ import { b4 as Je, b5 as In, b6 as Ke, b7 as tn, b8 as en, b9 as se, ba as Ln, g as An, s as Wn, q as $n, p as On, a as Hn, b as Nn, _ as d, c as _t, d as Bt, e as Pn, bb as rt, l as Tt, k as Vn, j as zn, y as Rn, u as Zn } from "./mermaid.core-08D5Vldk.js";
2
+ import { i as ne, k as re } from "./index-C3mwt8G1.js";
3
+ import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-sERCAB61.js";
4
+ import { i as jn } from "./init-DjUOC4st.js";
5
+ import "react/jsx-runtime";
6
+ import "react";
7
+ import "class-variance-authority";
8
+ import "clsx";
9
+ import "tailwind-merge";
10
+ import "react-dom";
11
+ import "cmdk";
12
+ import "nanoid";
13
+ import "@foris/avocado-icons";
14
+ import "react-markdown";
15
+ import "./defaultLocale-D1piDxzZ.js";
16
+ function Qn(t, e) {
17
+ let n;
18
+ if (e === void 0)
19
+ for (const r of t)
20
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
21
+ else {
22
+ let r = -1;
23
+ for (let i of t)
24
+ (i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
25
+ }
26
+ return n;
27
+ }
28
+ function Jn(t, e) {
29
+ let n;
30
+ if (e === void 0)
31
+ for (const r of t)
32
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
33
+ else {
34
+ let r = -1;
35
+ for (let i of t)
36
+ (i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
37
+ }
38
+ return n;
39
+ }
40
+ function Kn(t) {
41
+ return t;
42
+ }
43
+ var qt = 1, ae = 2, ke = 3, Xt = 4, $e = 1e-6;
44
+ function tr(t) {
45
+ return "translate(" + t + ",0)";
46
+ }
47
+ function er(t) {
48
+ return "translate(0," + t + ")";
49
+ }
50
+ function nr(t) {
51
+ return (e) => +t(e);
52
+ }
53
+ function rr(t, e) {
54
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
55
+ }
56
+ function ir() {
57
+ return !this.__axis;
58
+ }
59
+ function nn(t, e) {
60
+ var n = [], r = null, i = null, a = 6, c = 6, m = 3, F = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, C = t === qt || t === Xt ? -1 : 1, k = t === Xt || t === ae ? "x" : "y", L = t === qt || t === ke ? tr : er;
61
+ function _(S) {
62
+ var B = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), A = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), U = Math.max(a, 0) + m, I = e.range(), N = +I[0] + F, W = +I[I.length - 1] + F, Z = (e.bandwidth ? rr : nr)(e.copy(), F), j = S.selection ? S.selection() : S, p = j.selectAll(".domain").data([null]), g = j.selectAll(".tick").data(B, e).order(), y = g.exit(), h = g.enter().append("g").attr("class", "tick"), M = g.select("line"), w = g.select("text");
63
+ p = p.merge(p.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), g = g.merge(h), M = M.merge(h.append("line").attr("stroke", "currentColor").attr(k + "2", C * a)), w = w.merge(h.append("text").attr("fill", "currentColor").attr(k, C * U).attr("dy", t === qt ? "0em" : t === ke ? "0.71em" : "0.32em")), S !== j && (p = p.transition(S), g = g.transition(S), M = M.transition(S), w = w.transition(S), y = y.transition(S).attr("opacity", $e).attr("transform", function(T) {
64
+ return isFinite(T = Z(T)) ? L(T + F) : this.getAttribute("transform");
65
+ }), h.attr("opacity", $e).attr("transform", function(T) {
66
+ var v = this.parentNode.__axis;
67
+ return L((v && isFinite(v = v(T)) ? v : Z(T)) + F);
68
+ })), y.remove(), p.attr("d", t === Xt || t === ae ? c ? "M" + C * c + "," + N + "H" + F + "V" + W + "H" + C * c : "M" + F + "," + N + "V" + W : c ? "M" + N + "," + C * c + "V" + F + "H" + W + "V" + C * c : "M" + N + "," + F + "H" + W), g.attr("opacity", 1).attr("transform", function(T) {
69
+ return L(Z(T) + F);
70
+ }), M.attr(k + "2", C * a), w.attr(k, C * U).text(A), j.filter(ir).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === ae ? "start" : t === Xt ? "end" : "middle"), j.each(function() {
71
+ this.__axis = Z;
72
+ });
73
+ }
74
+ return _.scale = function(S) {
75
+ return arguments.length ? (e = S, _) : e;
76
+ }, _.ticks = function() {
77
+ return n = Array.from(arguments), _;
78
+ }, _.tickArguments = function(S) {
79
+ return arguments.length ? (n = S == null ? [] : Array.from(S), _) : n.slice();
80
+ }, _.tickValues = function(S) {
81
+ return arguments.length ? (r = S == null ? null : Array.from(S), _) : r && r.slice();
82
+ }, _.tickFormat = function(S) {
83
+ return arguments.length ? (i = S, _) : i;
84
+ }, _.tickSize = function(S) {
85
+ return arguments.length ? (a = c = +S, _) : a;
86
+ }, _.tickSizeInner = function(S) {
87
+ return arguments.length ? (a = +S, _) : a;
88
+ }, _.tickSizeOuter = function(S) {
89
+ return arguments.length ? (c = +S, _) : c;
90
+ }, _.tickPadding = function(S) {
91
+ return arguments.length ? (m = +S, _) : m;
92
+ }, _.offset = function(S) {
93
+ return arguments.length ? (F = +S, _) : F;
94
+ }, _;
95
+ }
96
+ function sr(t) {
97
+ return nn(qt, t);
98
+ }
99
+ function ar(t) {
100
+ return nn(ke, t);
101
+ }
102
+ const or = Math.PI / 180, cr = 180 / Math.PI, Qt = 18, rn = 0.96422, sn = 1, an = 0.82521, on = 4 / 29, Yt = 6 / 29, cn = 3 * Yt * Yt, ur = Yt * Yt * Yt;
103
+ function un(t) {
104
+ if (t instanceof ft)
105
+ return new ft(t.l, t.a, t.b, t.opacity);
106
+ if (t instanceof ht)
107
+ return ln(t);
108
+ t instanceof Je || (t = In(t));
109
+ var e = le(t.r), n = le(t.g), r = le(t.b), i = oe((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / sn), a, c;
110
+ return e === n && n === r ? a = c = i : (a = oe((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / rn), c = oe((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / an)), new ft(116 * i - 16, 500 * (a - i), 200 * (i - c), t.opacity);
111
+ }
112
+ function lr(t, e, n, r) {
113
+ return arguments.length === 1 ? un(t) : new ft(t, e, n, r ?? 1);
114
+ }
115
+ function ft(t, e, n, r) {
116
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
117
+ }
118
+ Ke(ft, lr, tn(en, {
119
+ brighter(t) {
120
+ return new ft(this.l + Qt * (t ?? 1), this.a, this.b, this.opacity);
121
+ },
122
+ darker(t) {
123
+ return new ft(this.l - Qt * (t ?? 1), this.a, this.b, this.opacity);
124
+ },
125
+ rgb() {
126
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
127
+ return e = rn * ce(e), t = sn * ce(t), n = an * ce(n), new Je(
128
+ ue(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
129
+ ue(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
130
+ ue(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
131
+ this.opacity
132
+ );
133
+ }
134
+ }));
135
+ function oe(t) {
136
+ return t > ur ? Math.pow(t, 1 / 3) : t / cn + on;
137
+ }
138
+ function ce(t) {
139
+ return t > Yt ? t * t * t : cn * (t - on);
140
+ }
141
+ function ue(t) {
142
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
143
+ }
144
+ function le(t) {
145
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
146
+ }
147
+ function fr(t) {
148
+ if (t instanceof ht)
149
+ return new ht(t.h, t.c, t.l, t.opacity);
150
+ if (t instanceof ft || (t = un(t)), t.a === 0 && t.b === 0)
151
+ return new ht(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
152
+ var e = Math.atan2(t.b, t.a) * cr;
153
+ return new ht(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
154
+ }
155
+ function pe(t, e, n, r) {
156
+ return arguments.length === 1 ? fr(t) : new ht(t, e, n, r ?? 1);
157
+ }
158
+ function ht(t, e, n, r) {
159
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
160
+ }
161
+ function ln(t) {
162
+ if (isNaN(t.h))
163
+ return new ft(t.l, 0, 0, t.opacity);
164
+ var e = t.h * or;
165
+ return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
166
+ }
167
+ Ke(ht, pe, tn(en, {
168
+ brighter(t) {
169
+ return new ht(this.h, this.c, this.l + Qt * (t ?? 1), this.opacity);
170
+ },
171
+ darker(t) {
172
+ return new ht(this.h, this.c, this.l - Qt * (t ?? 1), this.opacity);
173
+ },
174
+ rgb() {
175
+ return ln(this).rgb();
176
+ }
177
+ }));
178
+ function dr(t) {
179
+ return function(e, n) {
180
+ var r = t((e = pe(e)).h, (n = pe(n)).h), i = se(e.c, n.c), a = se(e.l, n.l), c = se(e.opacity, n.opacity);
181
+ return function(m) {
182
+ return e.h = r(m), e.c = i(m), e.l = a(m), e.opacity = c(m), e + "";
183
+ };
184
+ };
185
+ }
186
+ const hr = dr(Ln);
187
+ function mr(t, e) {
188
+ t = t.slice();
189
+ var n = 0, r = t.length - 1, i = t[n], a = t[r], c;
190
+ return a < i && (c = n, n = r, r = c, c = i, i = a, a = c), t[n] = e.floor(i), t[r] = e.ceil(a), t;
191
+ }
192
+ const fe = /* @__PURE__ */ new Date(), de = /* @__PURE__ */ new Date();
193
+ function et(t, e, n, r) {
194
+ function i(a) {
195
+ return t(a = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+a)), a;
196
+ }
197
+ return i.floor = (a) => (t(a = /* @__PURE__ */ new Date(+a)), a), i.ceil = (a) => (t(a = new Date(a - 1)), e(a, 1), t(a), a), i.round = (a) => {
198
+ const c = i(a), m = i.ceil(a);
199
+ return a - c < m - a ? c : m;
200
+ }, i.offset = (a, c) => (e(a = /* @__PURE__ */ new Date(+a), c == null ? 1 : Math.floor(c)), a), i.range = (a, c, m) => {
201
+ const F = [];
202
+ if (a = i.ceil(a), m = m == null ? 1 : Math.floor(m), !(a < c) || !(m > 0))
203
+ return F;
204
+ let C;
205
+ do
206
+ F.push(C = /* @__PURE__ */ new Date(+a)), e(a, m), t(a);
207
+ while (C < a && a < c);
208
+ return F;
209
+ }, i.filter = (a) => et((c) => {
210
+ if (c >= c)
211
+ for (; t(c), !a(c); )
212
+ c.setTime(c - 1);
213
+ }, (c, m) => {
214
+ if (c >= c)
215
+ if (m < 0)
216
+ for (; ++m <= 0; )
217
+ for (; e(c, -1), !a(c); )
218
+ ;
219
+ else
220
+ for (; --m >= 0; )
221
+ for (; e(c, 1), !a(c); )
222
+ ;
223
+ }), n && (i.count = (a, c) => (fe.setTime(+a), de.setTime(+c), t(fe), t(de), Math.floor(n(fe, de))), i.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? i.filter(r ? (c) => r(c) % a === 0 : (c) => i.count(0, c) % a === 0) : i)), i;
224
+ }
225
+ const Ut = et(() => {
226
+ }, (t, e) => {
227
+ t.setTime(+t + e);
228
+ }, (t, e) => e - t);
229
+ Ut.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => {
230
+ e.setTime(Math.floor(e / t) * t);
231
+ }, (e, n) => {
232
+ e.setTime(+e + n * t);
233
+ }, (e, n) => (n - e) / t) : Ut);
234
+ Ut.range;
235
+ const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, we = yt * 7, Oe = yt * 30, he = yt * 365, vt = et((t) => {
236
+ t.setTime(t - t.getMilliseconds());
237
+ }, (t, e) => {
238
+ t.setTime(+t + e * mt);
239
+ }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
240
+ vt.range;
241
+ const $t = et((t) => {
242
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
243
+ }, (t, e) => {
244
+ t.setTime(+t + e * ct);
245
+ }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
246
+ $t.range;
247
+ const gr = et((t) => {
248
+ t.setUTCSeconds(0, 0);
249
+ }, (t, e) => {
250
+ t.setTime(+t + e * ct);
251
+ }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
252
+ gr.range;
253
+ const Ot = et((t) => {
254
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
255
+ }, (t, e) => {
256
+ t.setTime(+t + e * gt);
257
+ }, (t, e) => (e - t) / gt, (t) => t.getHours());
258
+ Ot.range;
259
+ const yr = et((t) => {
260
+ t.setUTCMinutes(0, 0, 0);
261
+ }, (t, e) => {
262
+ t.setTime(+t + e * gt);
263
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
264
+ yr.range;
265
+ const bt = et(
266
+ (t) => t.setHours(0, 0, 0, 0),
267
+ (t, e) => t.setDate(t.getDate() + e),
268
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
269
+ (t) => t.getDate() - 1
270
+ );
271
+ bt.range;
272
+ const Me = et((t) => {
273
+ t.setUTCHours(0, 0, 0, 0);
274
+ }, (t, e) => {
275
+ t.setUTCDate(t.getUTCDate() + e);
276
+ }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
277
+ Me.range;
278
+ const kr = et((t) => {
279
+ t.setUTCHours(0, 0, 0, 0);
280
+ }, (t, e) => {
281
+ t.setUTCDate(t.getUTCDate() + e);
282
+ }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
283
+ kr.range;
284
+ function Mt(t) {
285
+ return et((e) => {
286
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
287
+ }, (e, n) => {
288
+ e.setDate(e.getDate() + n * 7);
289
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / we);
290
+ }
291
+ const Pt = Mt(0), Ht = Mt(1), fn = Mt(2), dn = Mt(3), xt = Mt(4), hn = Mt(5), mn = Mt(6);
292
+ Pt.range;
293
+ Ht.range;
294
+ fn.range;
295
+ dn.range;
296
+ xt.range;
297
+ hn.range;
298
+ mn.range;
299
+ function Dt(t) {
300
+ return et((e) => {
301
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
302
+ }, (e, n) => {
303
+ e.setUTCDate(e.getUTCDate() + n * 7);
304
+ }, (e, n) => (n - e) / we);
305
+ }
306
+ const gn = Dt(0), Jt = Dt(1), pr = Dt(2), vr = Dt(3), Et = Dt(4), Tr = Dt(5), br = Dt(6);
307
+ gn.range;
308
+ Jt.range;
309
+ pr.range;
310
+ vr.range;
311
+ Et.range;
312
+ Tr.range;
313
+ br.range;
314
+ const Nt = et((t) => {
315
+ t.setDate(1), t.setHours(0, 0, 0, 0);
316
+ }, (t, e) => {
317
+ t.setMonth(t.getMonth() + e);
318
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
319
+ Nt.range;
320
+ const xr = et((t) => {
321
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
322
+ }, (t, e) => {
323
+ t.setUTCMonth(t.getUTCMonth() + e);
324
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
325
+ xr.range;
326
+ const kt = et((t) => {
327
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
328
+ }, (t, e) => {
329
+ t.setFullYear(t.getFullYear() + e);
330
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
331
+ kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
332
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
333
+ }, (e, n) => {
334
+ e.setFullYear(e.getFullYear() + n * t);
335
+ });
336
+ kt.range;
337
+ const wt = et((t) => {
338
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
339
+ }, (t, e) => {
340
+ t.setUTCFullYear(t.getUTCFullYear() + e);
341
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
342
+ wt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
343
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
344
+ }, (e, n) => {
345
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
346
+ });
347
+ wt.range;
348
+ function wr(t, e, n, r, i, a) {
349
+ const c = [
350
+ [vt, 1, mt],
351
+ [vt, 5, 5 * mt],
352
+ [vt, 15, 15 * mt],
353
+ [vt, 30, 30 * mt],
354
+ [a, 1, ct],
355
+ [a, 5, 5 * ct],
356
+ [a, 15, 15 * ct],
357
+ [a, 30, 30 * ct],
358
+ [i, 1, gt],
359
+ [i, 3, 3 * gt],
360
+ [i, 6, 6 * gt],
361
+ [i, 12, 12 * gt],
362
+ [r, 1, yt],
363
+ [r, 2, 2 * yt],
364
+ [n, 1, we],
365
+ [e, 1, Oe],
366
+ [e, 3, 3 * Oe],
367
+ [t, 1, he]
368
+ ];
369
+ function m(C, k, L) {
370
+ const _ = k < C;
371
+ _ && ([C, k] = [k, C]);
372
+ const S = L && typeof L.range == "function" ? L : F(C, k, L), B = S ? S.range(C, +k + 1) : [];
373
+ return _ ? B.reverse() : B;
374
+ }
375
+ function F(C, k, L) {
376
+ const _ = Math.abs(k - C) / L, S = Bn(([, , U]) => U).right(c, _);
377
+ if (S === c.length)
378
+ return t.every(We(C / he, k / he, L));
379
+ if (S === 0)
380
+ return Ut.every(Math.max(We(C, k, L), 1));
381
+ const [B, A] = c[_ / c[S - 1][2] < c[S][2] / _ ? S - 1 : S];
382
+ return B.every(A);
383
+ }
384
+ return [m, F];
385
+ }
386
+ const [Mr, Dr] = wr(kt, Nt, Pt, bt, Ot, $t);
387
+ function me(t) {
388
+ if (0 <= t.y && t.y < 100) {
389
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
390
+ return e.setFullYear(t.y), e;
391
+ }
392
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
393
+ }
394
+ function ge(t) {
395
+ if (0 <= t.y && t.y < 100) {
396
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
397
+ return e.setUTCFullYear(t.y), e;
398
+ }
399
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
400
+ }
401
+ function Lt(t, e, n) {
402
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
403
+ }
404
+ function Cr(t) {
405
+ var e = t.dateTime, n = t.date, r = t.time, i = t.periods, a = t.days, c = t.shortDays, m = t.months, F = t.shortMonths, C = At(i), k = Wt(i), L = At(a), _ = Wt(a), S = At(c), B = Wt(c), A = At(m), U = Wt(m), I = At(F), N = Wt(F), W = {
406
+ a: x,
407
+ A: Y,
408
+ b: o,
409
+ B: q,
410
+ c: null,
411
+ d: Re,
412
+ e: Re,
413
+ f: Gr,
414
+ g: si,
415
+ G: oi,
416
+ H: Br,
417
+ I: Xr,
418
+ j: qr,
419
+ L: yn,
420
+ m: jr,
421
+ M: Qr,
422
+ p: s,
423
+ q: E,
424
+ Q: Xe,
425
+ s: qe,
426
+ S: Jr,
427
+ u: Kr,
428
+ U: ti,
429
+ V: ei,
430
+ w: ni,
431
+ W: ri,
432
+ x: null,
433
+ X: null,
434
+ y: ii,
435
+ Y: ai,
436
+ Z: ci,
437
+ "%": Be
438
+ }, Z = {
439
+ a: R,
440
+ A: z,
441
+ b: P,
442
+ B: K,
443
+ c: null,
444
+ d: Ze,
445
+ e: Ze,
446
+ f: di,
447
+ g: xi,
448
+ G: Mi,
449
+ H: ui,
450
+ I: li,
451
+ j: fi,
452
+ L: pn,
453
+ m: hi,
454
+ M: mi,
455
+ p: O,
456
+ q: st,
457
+ Q: Xe,
458
+ s: qe,
459
+ S: gi,
460
+ u: yi,
461
+ U: ki,
462
+ V: pi,
463
+ w: vi,
464
+ W: Ti,
465
+ x: null,
466
+ X: null,
467
+ y: bi,
468
+ Y: wi,
469
+ Z: Di,
470
+ "%": Be
471
+ }, j = {
472
+ a: M,
473
+ A: w,
474
+ b: T,
475
+ B: v,
476
+ c: u,
477
+ d: Ve,
478
+ e: Ve,
479
+ f: Vr,
480
+ g: Pe,
481
+ G: Ne,
482
+ H: ze,
483
+ I: ze,
484
+ j: Or,
485
+ L: Pr,
486
+ m: $r,
487
+ M: Hr,
488
+ p: h,
489
+ q: Wr,
490
+ Q: Rr,
491
+ s: Zr,
492
+ S: Nr,
493
+ u: Ur,
494
+ U: Er,
495
+ V: Ir,
496
+ w: Fr,
497
+ W: Lr,
498
+ x: f,
499
+ X: b,
500
+ y: Pe,
501
+ Y: Ne,
502
+ Z: Ar,
503
+ "%": zr
504
+ };
505
+ W.x = p(n, W), W.X = p(r, W), W.c = p(e, W), Z.x = p(n, Z), Z.X = p(r, Z), Z.c = p(e, Z);
506
+ function p(D, H) {
507
+ return function(V) {
508
+ var l = [], J = -1, $ = 0, Q = D.length, G, it, at;
509
+ for (V instanceof Date || (V = /* @__PURE__ */ new Date(+V)); ++J < Q; )
510
+ D.charCodeAt(J) === 37 && (l.push(D.slice($, J)), (it = He[G = D.charAt(++J)]) != null ? G = D.charAt(++J) : it = G === "e" ? " " : "0", (at = H[G]) && (G = at(V, it)), l.push(G), $ = J + 1);
511
+ return l.push(D.slice($, J)), l.join("");
512
+ };
513
+ }
514
+ function g(D, H) {
515
+ return function(V) {
516
+ var l = Lt(1900, void 0, 1), J = y(l, D, V += "", 0), $, Q;
517
+ if (J != V.length)
518
+ return null;
519
+ if ("Q" in l)
520
+ return new Date(l.Q);
521
+ if ("s" in l)
522
+ return new Date(l.s * 1e3 + ("L" in l ? l.L : 0));
523
+ if (H && !("Z" in l) && (l.Z = 0), "p" in l && (l.H = l.H % 12 + l.p * 12), l.m === void 0 && (l.m = "q" in l ? l.q : 0), "V" in l) {
524
+ if (l.V < 1 || l.V > 53)
525
+ return null;
526
+ "w" in l || (l.w = 1), "Z" in l ? ($ = ge(Lt(l.y, 0, 1)), Q = $.getUTCDay(), $ = Q > 4 || Q === 0 ? Jt.ceil($) : Jt($), $ = Me.offset($, (l.V - 1) * 7), l.y = $.getUTCFullYear(), l.m = $.getUTCMonth(), l.d = $.getUTCDate() + (l.w + 6) % 7) : ($ = me(Lt(l.y, 0, 1)), Q = $.getDay(), $ = Q > 4 || Q === 0 ? Ht.ceil($) : Ht($), $ = bt.offset($, (l.V - 1) * 7), l.y = $.getFullYear(), l.m = $.getMonth(), l.d = $.getDate() + (l.w + 6) % 7);
527
+ } else
528
+ ("W" in l || "U" in l) && ("w" in l || (l.w = "u" in l ? l.u % 7 : "W" in l ? 1 : 0), Q = "Z" in l ? ge(Lt(l.y, 0, 1)).getUTCDay() : me(Lt(l.y, 0, 1)).getDay(), l.m = 0, l.d = "W" in l ? (l.w + 6) % 7 + l.W * 7 - (Q + 5) % 7 : l.w + l.U * 7 - (Q + 6) % 7);
529
+ return "Z" in l ? (l.H += l.Z / 100 | 0, l.M += l.Z % 100, ge(l)) : me(l);
530
+ };
531
+ }
532
+ function y(D, H, V, l) {
533
+ for (var J = 0, $ = H.length, Q = V.length, G, it; J < $; ) {
534
+ if (l >= Q)
535
+ return -1;
536
+ if (G = H.charCodeAt(J++), G === 37) {
537
+ if (G = H.charAt(J++), it = j[G in He ? H.charAt(J++) : G], !it || (l = it(D, V, l)) < 0)
538
+ return -1;
539
+ } else if (G != V.charCodeAt(l++))
540
+ return -1;
541
+ }
542
+ return l;
543
+ }
544
+ function h(D, H, V) {
545
+ var l = C.exec(H.slice(V));
546
+ return l ? (D.p = k.get(l[0].toLowerCase()), V + l[0].length) : -1;
547
+ }
548
+ function M(D, H, V) {
549
+ var l = S.exec(H.slice(V));
550
+ return l ? (D.w = B.get(l[0].toLowerCase()), V + l[0].length) : -1;
551
+ }
552
+ function w(D, H, V) {
553
+ var l = L.exec(H.slice(V));
554
+ return l ? (D.w = _.get(l[0].toLowerCase()), V + l[0].length) : -1;
555
+ }
556
+ function T(D, H, V) {
557
+ var l = I.exec(H.slice(V));
558
+ return l ? (D.m = N.get(l[0].toLowerCase()), V + l[0].length) : -1;
559
+ }
560
+ function v(D, H, V) {
561
+ var l = A.exec(H.slice(V));
562
+ return l ? (D.m = U.get(l[0].toLowerCase()), V + l[0].length) : -1;
563
+ }
564
+ function u(D, H, V) {
565
+ return y(D, e, H, V);
566
+ }
567
+ function f(D, H, V) {
568
+ return y(D, n, H, V);
569
+ }
570
+ function b(D, H, V) {
571
+ return y(D, r, H, V);
572
+ }
573
+ function x(D) {
574
+ return c[D.getDay()];
575
+ }
576
+ function Y(D) {
577
+ return a[D.getDay()];
578
+ }
579
+ function o(D) {
580
+ return F[D.getMonth()];
581
+ }
582
+ function q(D) {
583
+ return m[D.getMonth()];
584
+ }
585
+ function s(D) {
586
+ return i[+(D.getHours() >= 12)];
587
+ }
588
+ function E(D) {
589
+ return 1 + ~~(D.getMonth() / 3);
590
+ }
591
+ function R(D) {
592
+ return c[D.getUTCDay()];
593
+ }
594
+ function z(D) {
595
+ return a[D.getUTCDay()];
596
+ }
597
+ function P(D) {
598
+ return F[D.getUTCMonth()];
599
+ }
600
+ function K(D) {
601
+ return m[D.getUTCMonth()];
602
+ }
603
+ function O(D) {
604
+ return i[+(D.getUTCHours() >= 12)];
605
+ }
606
+ function st(D) {
607
+ return 1 + ~~(D.getUTCMonth() / 3);
608
+ }
609
+ return {
610
+ format: function(D) {
611
+ var H = p(D += "", W);
612
+ return H.toString = function() {
613
+ return D;
614
+ }, H;
615
+ },
616
+ parse: function(D) {
617
+ var H = g(D += "", !1);
618
+ return H.toString = function() {
619
+ return D;
620
+ }, H;
621
+ },
622
+ utcFormat: function(D) {
623
+ var H = p(D += "", Z);
624
+ return H.toString = function() {
625
+ return D;
626
+ }, H;
627
+ },
628
+ utcParse: function(D) {
629
+ var H = g(D += "", !0);
630
+ return H.toString = function() {
631
+ return D;
632
+ }, H;
633
+ }
634
+ };
635
+ }
636
+ var He = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, Sr = /^%/, _r = /[\\^$*+?|[\]().{}]/g;
637
+ function X(t, e, n) {
638
+ var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", a = i.length;
639
+ return r + (a < n ? new Array(n - a + 1).join(e) + i : i);
640
+ }
641
+ function Yr(t) {
642
+ return t.replace(_r, "\\$&");
643
+ }
644
+ function At(t) {
645
+ return new RegExp("^(?:" + t.map(Yr).join("|") + ")", "i");
646
+ }
647
+ function Wt(t) {
648
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
649
+ }
650
+ function Fr(t, e, n) {
651
+ var r = nt.exec(e.slice(n, n + 1));
652
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
653
+ }
654
+ function Ur(t, e, n) {
655
+ var r = nt.exec(e.slice(n, n + 1));
656
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
657
+ }
658
+ function Er(t, e, n) {
659
+ var r = nt.exec(e.slice(n, n + 2));
660
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
661
+ }
662
+ function Ir(t, e, n) {
663
+ var r = nt.exec(e.slice(n, n + 2));
664
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
665
+ }
666
+ function Lr(t, e, n) {
667
+ var r = nt.exec(e.slice(n, n + 2));
668
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
669
+ }
670
+ function Ne(t, e, n) {
671
+ var r = nt.exec(e.slice(n, n + 4));
672
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
673
+ }
674
+ function Pe(t, e, n) {
675
+ var r = nt.exec(e.slice(n, n + 2));
676
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
677
+ }
678
+ function Ar(t, e, n) {
679
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
680
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
681
+ }
682
+ function Wr(t, e, n) {
683
+ var r = nt.exec(e.slice(n, n + 1));
684
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
685
+ }
686
+ function $r(t, e, n) {
687
+ var r = nt.exec(e.slice(n, n + 2));
688
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
689
+ }
690
+ function Ve(t, e, n) {
691
+ var r = nt.exec(e.slice(n, n + 2));
692
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
693
+ }
694
+ function Or(t, e, n) {
695
+ var r = nt.exec(e.slice(n, n + 3));
696
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
697
+ }
698
+ function ze(t, e, n) {
699
+ var r = nt.exec(e.slice(n, n + 2));
700
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
701
+ }
702
+ function Hr(t, e, n) {
703
+ var r = nt.exec(e.slice(n, n + 2));
704
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
705
+ }
706
+ function Nr(t, e, n) {
707
+ var r = nt.exec(e.slice(n, n + 2));
708
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
709
+ }
710
+ function Pr(t, e, n) {
711
+ var r = nt.exec(e.slice(n, n + 3));
712
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
713
+ }
714
+ function Vr(t, e, n) {
715
+ var r = nt.exec(e.slice(n, n + 6));
716
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
717
+ }
718
+ function zr(t, e, n) {
719
+ var r = Sr.exec(e.slice(n, n + 1));
720
+ return r ? n + r[0].length : -1;
721
+ }
722
+ function Rr(t, e, n) {
723
+ var r = nt.exec(e.slice(n));
724
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
725
+ }
726
+ function Zr(t, e, n) {
727
+ var r = nt.exec(e.slice(n));
728
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
729
+ }
730
+ function Re(t, e) {
731
+ return X(t.getDate(), e, 2);
732
+ }
733
+ function Br(t, e) {
734
+ return X(t.getHours(), e, 2);
735
+ }
736
+ function Xr(t, e) {
737
+ return X(t.getHours() % 12 || 12, e, 2);
738
+ }
739
+ function qr(t, e) {
740
+ return X(1 + bt.count(kt(t), t), e, 3);
741
+ }
742
+ function yn(t, e) {
743
+ return X(t.getMilliseconds(), e, 3);
744
+ }
745
+ function Gr(t, e) {
746
+ return yn(t, e) + "000";
747
+ }
748
+ function jr(t, e) {
749
+ return X(t.getMonth() + 1, e, 2);
750
+ }
751
+ function Qr(t, e) {
752
+ return X(t.getMinutes(), e, 2);
753
+ }
754
+ function Jr(t, e) {
755
+ return X(t.getSeconds(), e, 2);
756
+ }
757
+ function Kr(t) {
758
+ var e = t.getDay();
759
+ return e === 0 ? 7 : e;
760
+ }
761
+ function ti(t, e) {
762
+ return X(Pt.count(kt(t) - 1, t), e, 2);
763
+ }
764
+ function kn(t) {
765
+ var e = t.getDay();
766
+ return e >= 4 || e === 0 ? xt(t) : xt.ceil(t);
767
+ }
768
+ function ei(t, e) {
769
+ return t = kn(t), X(xt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
770
+ }
771
+ function ni(t) {
772
+ return t.getDay();
773
+ }
774
+ function ri(t, e) {
775
+ return X(Ht.count(kt(t) - 1, t), e, 2);
776
+ }
777
+ function ii(t, e) {
778
+ return X(t.getFullYear() % 100, e, 2);
779
+ }
780
+ function si(t, e) {
781
+ return t = kn(t), X(t.getFullYear() % 100, e, 2);
782
+ }
783
+ function ai(t, e) {
784
+ return X(t.getFullYear() % 1e4, e, 4);
785
+ }
786
+ function oi(t, e) {
787
+ var n = t.getDay();
788
+ return t = n >= 4 || n === 0 ? xt(t) : xt.ceil(t), X(t.getFullYear() % 1e4, e, 4);
789
+ }
790
+ function ci(t) {
791
+ var e = t.getTimezoneOffset();
792
+ return (e > 0 ? "-" : (e *= -1, "+")) + X(e / 60 | 0, "0", 2) + X(e % 60, "0", 2);
793
+ }
794
+ function Ze(t, e) {
795
+ return X(t.getUTCDate(), e, 2);
796
+ }
797
+ function ui(t, e) {
798
+ return X(t.getUTCHours(), e, 2);
799
+ }
800
+ function li(t, e) {
801
+ return X(t.getUTCHours() % 12 || 12, e, 2);
802
+ }
803
+ function fi(t, e) {
804
+ return X(1 + Me.count(wt(t), t), e, 3);
805
+ }
806
+ function pn(t, e) {
807
+ return X(t.getUTCMilliseconds(), e, 3);
808
+ }
809
+ function di(t, e) {
810
+ return pn(t, e) + "000";
811
+ }
812
+ function hi(t, e) {
813
+ return X(t.getUTCMonth() + 1, e, 2);
814
+ }
815
+ function mi(t, e) {
816
+ return X(t.getUTCMinutes(), e, 2);
817
+ }
818
+ function gi(t, e) {
819
+ return X(t.getUTCSeconds(), e, 2);
820
+ }
821
+ function yi(t) {
822
+ var e = t.getUTCDay();
823
+ return e === 0 ? 7 : e;
824
+ }
825
+ function ki(t, e) {
826
+ return X(gn.count(wt(t) - 1, t), e, 2);
827
+ }
828
+ function vn(t) {
829
+ var e = t.getUTCDay();
830
+ return e >= 4 || e === 0 ? Et(t) : Et.ceil(t);
831
+ }
832
+ function pi(t, e) {
833
+ return t = vn(t), X(Et.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2);
834
+ }
835
+ function vi(t) {
836
+ return t.getUTCDay();
837
+ }
838
+ function Ti(t, e) {
839
+ return X(Jt.count(wt(t) - 1, t), e, 2);
840
+ }
841
+ function bi(t, e) {
842
+ return X(t.getUTCFullYear() % 100, e, 2);
843
+ }
844
+ function xi(t, e) {
845
+ return t = vn(t), X(t.getUTCFullYear() % 100, e, 2);
846
+ }
847
+ function wi(t, e) {
848
+ return X(t.getUTCFullYear() % 1e4, e, 4);
849
+ }
850
+ function Mi(t, e) {
851
+ var n = t.getUTCDay();
852
+ return t = n >= 4 || n === 0 ? Et(t) : Et.ceil(t), X(t.getUTCFullYear() % 1e4, e, 4);
853
+ }
854
+ function Di() {
855
+ return "+0000";
856
+ }
857
+ function Be() {
858
+ return "%";
859
+ }
860
+ function Xe(t) {
861
+ return +t;
862
+ }
863
+ function qe(t) {
864
+ return Math.floor(+t / 1e3);
865
+ }
866
+ var St, Kt;
867
+ Ci({
868
+ dateTime: "%x, %X",
869
+ date: "%-m/%-d/%Y",
870
+ time: "%-I:%M:%S %p",
871
+ periods: ["AM", "PM"],
872
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
873
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
874
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
875
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
876
+ });
877
+ function Ci(t) {
878
+ return St = Cr(t), Kt = St.format, St.parse, St.utcFormat, St.utcParse, St;
879
+ }
880
+ function Si(t) {
881
+ return new Date(t);
882
+ }
883
+ function _i(t) {
884
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
885
+ }
886
+ function Tn(t, e, n, r, i, a, c, m, F, C) {
887
+ var k = Xn(), L = k.invert, _ = k.domain, S = C(".%L"), B = C(":%S"), A = C("%I:%M"), U = C("%I %p"), I = C("%a %d"), N = C("%b %d"), W = C("%B"), Z = C("%Y");
888
+ function j(p) {
889
+ return (F(p) < p ? S : m(p) < p ? B : c(p) < p ? A : a(p) < p ? U : r(p) < p ? i(p) < p ? I : N : n(p) < p ? W : Z)(p);
890
+ }
891
+ return k.invert = function(p) {
892
+ return new Date(L(p));
893
+ }, k.domain = function(p) {
894
+ return arguments.length ? _(Array.from(p, _i)) : _().map(Si);
895
+ }, k.ticks = function(p) {
896
+ var g = _();
897
+ return t(g[0], g[g.length - 1], p ?? 10);
898
+ }, k.tickFormat = function(p, g) {
899
+ return g == null ? j : C(g);
900
+ }, k.nice = function(p) {
901
+ var g = _();
902
+ return (!p || typeof p.range != "function") && (p = e(g[0], g[g.length - 1], p ?? 10)), p ? _(mr(g, p)) : k;
903
+ }, k.copy = function() {
904
+ return qn(k, Tn(t, e, n, r, i, a, c, m, F, C));
905
+ }, k;
906
+ }
907
+ function Yi() {
908
+ return jn.apply(Tn(Mr, Dr, kt, Nt, Pt, bt, Ot, $t, vt, Kt).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
909
+ }
910
+ var bn = { exports: {} };
911
+ (function(t, e) {
912
+ (function(n, r) {
913
+ t.exports = r();
914
+ })(ne, function() {
915
+ var n = "day";
916
+ return function(r, i, a) {
917
+ var c = function(C) {
918
+ return C.add(4 - C.isoWeekday(), n);
919
+ }, m = i.prototype;
920
+ m.isoWeekYear = function() {
921
+ return c(this).year();
922
+ }, m.isoWeek = function(C) {
923
+ if (!this.$utils().u(C))
924
+ return this.add(7 * (C - this.isoWeek()), n);
925
+ var k, L, _, S, B = c(this), A = (k = this.isoWeekYear(), L = this.$u, _ = (L ? a.utc : a)().year(k).startOf("year"), S = 4 - _.isoWeekday(), _.isoWeekday() > 4 && (S += 7), _.add(S, n));
926
+ return B.diff(A, "week") + 1;
927
+ }, m.isoWeekday = function(C) {
928
+ return this.$utils().u(C) ? this.day() || 7 : this.day(this.day() % 7 ? C : C - 7);
929
+ };
930
+ var F = m.startOf;
931
+ m.startOf = function(C, k) {
932
+ var L = this.$utils(), _ = !!L.u(k) || k;
933
+ return L.p(C) === "isoweek" ? _ ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : F.bind(this)(C, k);
934
+ };
935
+ };
936
+ });
937
+ })(bn);
938
+ var Fi = bn.exports;
939
+ const Ui = /* @__PURE__ */ re(Fi);
940
+ var xn = { exports: {} };
941
+ (function(t, e) {
942
+ (function(n, r) {
943
+ t.exports = r();
944
+ })(ne, function() {
945
+ var n = { 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" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, a = /\d\d/, c = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, F = {}, C = function(U) {
946
+ return (U = +U) + (U > 68 ? 1900 : 2e3);
947
+ }, k = function(U) {
948
+ return function(I) {
949
+ this[U] = +I;
950
+ };
951
+ }, L = [/[+-]\d\d:?(\d\d)?|Z/, function(U) {
952
+ (this.zone || (this.zone = {})).offset = function(I) {
953
+ if (!I || I === "Z")
954
+ return 0;
955
+ var N = I.match(/([+-]|\d\d)/g), W = 60 * N[1] + (+N[2] || 0);
956
+ return W === 0 ? 0 : N[0] === "+" ? -W : W;
957
+ }(U);
958
+ }], _ = function(U) {
959
+ var I = F[U];
960
+ return I && (I.indexOf ? I : I.s.concat(I.f));
961
+ }, S = function(U, I) {
962
+ var N, W = F.meridiem;
963
+ if (W) {
964
+ for (var Z = 1; Z <= 24; Z += 1)
965
+ if (U.indexOf(W(Z, 0, I)) > -1) {
966
+ N = Z > 12;
967
+ break;
968
+ }
969
+ } else
970
+ N = U === (I ? "pm" : "PM");
971
+ return N;
972
+ }, B = { A: [m, function(U) {
973
+ this.afternoon = S(U, !1);
974
+ }], a: [m, function(U) {
975
+ this.afternoon = S(U, !0);
976
+ }], Q: [i, function(U) {
977
+ this.month = 3 * (U - 1) + 1;
978
+ }], S: [i, function(U) {
979
+ this.milliseconds = 100 * +U;
980
+ }], SS: [a, function(U) {
981
+ this.milliseconds = 10 * +U;
982
+ }], SSS: [/\d{3}/, function(U) {
983
+ this.milliseconds = +U;
984
+ }], s: [c, k("seconds")], ss: [c, k("seconds")], m: [c, k("minutes")], mm: [c, k("minutes")], H: [c, k("hours")], h: [c, k("hours")], HH: [c, k("hours")], hh: [c, k("hours")], D: [c, k("day")], DD: [a, k("day")], Do: [m, function(U) {
985
+ var I = F.ordinal, N = U.match(/\d+/);
986
+ if (this.day = N[0], I)
987
+ for (var W = 1; W <= 31; W += 1)
988
+ I(W).replace(/\[|\]/g, "") === U && (this.day = W);
989
+ }], w: [c, k("week")], ww: [a, k("week")], M: [c, k("month")], MM: [a, k("month")], MMM: [m, function(U) {
990
+ var I = _("months"), N = (_("monthsShort") || I.map(function(W) {
991
+ return W.slice(0, 3);
992
+ })).indexOf(U) + 1;
993
+ if (N < 1)
994
+ throw new Error();
995
+ this.month = N % 12 || N;
996
+ }], MMMM: [m, function(U) {
997
+ var I = _("months").indexOf(U) + 1;
998
+ if (I < 1)
999
+ throw new Error();
1000
+ this.month = I % 12 || I;
1001
+ }], Y: [/[+-]?\d+/, k("year")], YY: [a, function(U) {
1002
+ this.year = C(U);
1003
+ }], YYYY: [/\d{4}/, k("year")], Z: L, ZZ: L };
1004
+ function A(U) {
1005
+ var I, N;
1006
+ I = U, N = F && F.formats;
1007
+ for (var W = (U = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(M, w, T) {
1008
+ var v = T && T.toUpperCase();
1009
+ return w || N[T] || n[T] || N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(u, f, b) {
1010
+ return f || b.slice(1);
1011
+ });
1012
+ })).match(r), Z = W.length, j = 0; j < Z; j += 1) {
1013
+ var p = W[j], g = B[p], y = g && g[0], h = g && g[1];
1014
+ W[j] = h ? { regex: y, parser: h } : p.replace(/^\[|\]$/g, "");
1015
+ }
1016
+ return function(M) {
1017
+ for (var w = {}, T = 0, v = 0; T < Z; T += 1) {
1018
+ var u = W[T];
1019
+ if (typeof u == "string")
1020
+ v += u.length;
1021
+ else {
1022
+ var f = u.regex, b = u.parser, x = M.slice(v), Y = f.exec(x)[0];
1023
+ b.call(w, Y), M = M.replace(Y, "");
1024
+ }
1025
+ }
1026
+ return function(o) {
1027
+ var q = o.afternoon;
1028
+ if (q !== void 0) {
1029
+ var s = o.hours;
1030
+ q ? s < 12 && (o.hours += 12) : s === 12 && (o.hours = 0), delete o.afternoon;
1031
+ }
1032
+ }(w), w;
1033
+ };
1034
+ }
1035
+ return function(U, I, N) {
1036
+ N.p.customParseFormat = !0, U && U.parseTwoDigitYear && (C = U.parseTwoDigitYear);
1037
+ var W = I.prototype, Z = W.parse;
1038
+ W.parse = function(j) {
1039
+ var p = j.date, g = j.utc, y = j.args;
1040
+ this.$u = g;
1041
+ var h = y[1];
1042
+ if (typeof h == "string") {
1043
+ var M = y[2] === !0, w = y[3] === !0, T = M || w, v = y[2];
1044
+ w && (v = y[2]), F = this.$locale(), !M && v && (F = N.Ls[v]), this.$d = function(x, Y, o, q) {
1045
+ try {
1046
+ if (["x", "X"].indexOf(Y) > -1)
1047
+ return new Date((Y === "X" ? 1e3 : 1) * x);
1048
+ var s = A(Y)(x), E = s.year, R = s.month, z = s.day, P = s.hours, K = s.minutes, O = s.seconds, st = s.milliseconds, D = s.zone, H = s.week, V = /* @__PURE__ */ new Date(), l = z || (E || R ? 1 : V.getDate()), J = E || V.getFullYear(), $ = 0;
1049
+ E && !R || ($ = R > 0 ? R - 1 : V.getMonth());
1050
+ var Q, G = P || 0, it = K || 0, at = O || 0, pt = st || 0;
1051
+ return D ? new Date(Date.UTC(J, $, l, G, it, at, pt + 60 * D.offset * 1e3)) : o ? new Date(Date.UTC(J, $, l, G, it, at, pt)) : (Q = new Date(J, $, l, G, it, at, pt), H && (Q = q(Q).week(H).toDate()), Q);
1052
+ } catch {
1053
+ return /* @__PURE__ */ new Date("");
1054
+ }
1055
+ }(p, h, g, N), this.init(), v && v !== !0 && (this.$L = this.locale(v).$L), T && p != this.format(h) && (this.$d = /* @__PURE__ */ new Date("")), F = {};
1056
+ } else if (h instanceof Array)
1057
+ for (var u = h.length, f = 1; f <= u; f += 1) {
1058
+ y[1] = h[f - 1];
1059
+ var b = N.apply(this, y);
1060
+ if (b.isValid()) {
1061
+ this.$d = b.$d, this.$L = b.$L, this.init();
1062
+ break;
1063
+ }
1064
+ f === u && (this.$d = /* @__PURE__ */ new Date(""));
1065
+ }
1066
+ else
1067
+ Z.call(this, j);
1068
+ };
1069
+ };
1070
+ });
1071
+ })(xn);
1072
+ var Ei = xn.exports;
1073
+ const Ii = /* @__PURE__ */ re(Ei);
1074
+ var wn = { exports: {} };
1075
+ (function(t, e) {
1076
+ (function(n, r) {
1077
+ t.exports = r();
1078
+ })(ne, function() {
1079
+ return function(n, r) {
1080
+ var i = r.prototype, a = i.format;
1081
+ i.format = function(c) {
1082
+ var m = this, F = this.$locale();
1083
+ if (!this.isValid())
1084
+ return a.bind(this)(c);
1085
+ var C = this.$utils(), k = (c || "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(L) {
1086
+ switch (L) {
1087
+ case "Q":
1088
+ return Math.ceil((m.$M + 1) / 3);
1089
+ case "Do":
1090
+ return F.ordinal(m.$D);
1091
+ case "gggg":
1092
+ return m.weekYear();
1093
+ case "GGGG":
1094
+ return m.isoWeekYear();
1095
+ case "wo":
1096
+ return F.ordinal(m.week(), "W");
1097
+ case "w":
1098
+ case "ww":
1099
+ return C.s(m.week(), L === "w" ? 1 : 2, "0");
1100
+ case "W":
1101
+ case "WW":
1102
+ return C.s(m.isoWeek(), L === "W" ? 1 : 2, "0");
1103
+ case "k":
1104
+ case "kk":
1105
+ return C.s(String(m.$H === 0 ? 24 : m.$H), L === "k" ? 1 : 2, "0");
1106
+ case "X":
1107
+ return Math.floor(m.$d.getTime() / 1e3);
1108
+ case "x":
1109
+ return m.$d.getTime();
1110
+ case "z":
1111
+ return "[" + m.offsetName() + "]";
1112
+ case "zzz":
1113
+ return "[" + m.offsetName("long") + "]";
1114
+ default:
1115
+ return L;
1116
+ }
1117
+ });
1118
+ return a.bind(this)(k);
1119
+ };
1120
+ };
1121
+ });
1122
+ })(wn);
1123
+ var Li = wn.exports;
1124
+ const Ai = /* @__PURE__ */ re(Li);
1125
+ var Mn = { exports: {} };
1126
+ (function(t, e) {
1127
+ (function(n, r) {
1128
+ t.exports = r();
1129
+ })(ne, function() {
1130
+ var n, r, i = 1e3, a = 6e4, c = 36e5, m = 864e5, F = /\[([^\]]+)]|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, C = 31536e6, k = 2628e6, L = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, _ = { years: C, months: k, days: m, hours: c, minutes: a, seconds: i, milliseconds: 1, weeks: 6048e5 }, S = function(p) {
1131
+ return p instanceof Z;
1132
+ }, B = function(p, g, y) {
1133
+ return new Z(p, y, g.$l);
1134
+ }, A = function(p) {
1135
+ return r.p(p) + "s";
1136
+ }, U = function(p) {
1137
+ return p < 0;
1138
+ }, I = function(p) {
1139
+ return U(p) ? Math.ceil(p) : Math.floor(p);
1140
+ }, N = function(p) {
1141
+ return Math.abs(p);
1142
+ }, W = function(p, g) {
1143
+ return p ? U(p) ? { negative: !0, format: "" + N(p) + g } : { negative: !1, format: "" + p + g } : { negative: !1, format: "" };
1144
+ }, Z = function() {
1145
+ function p(y, h, M) {
1146
+ var w = this;
1147
+ if (this.$d = {}, this.$l = M, y === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), h)
1148
+ return B(y * _[A(h)], this);
1149
+ if (typeof y == "number")
1150
+ return this.$ms = y, this.parseFromMilliseconds(), this;
1151
+ if (typeof y == "object")
1152
+ return Object.keys(y).forEach(function(u) {
1153
+ w.$d[A(u)] = y[u];
1154
+ }), this.calMilliseconds(), this;
1155
+ if (typeof y == "string") {
1156
+ var T = y.match(L);
1157
+ if (T) {
1158
+ var v = T.slice(2).map(function(u) {
1159
+ return u != null ? Number(u) : 0;
1160
+ });
1161
+ return this.$d.years = v[0], this.$d.months = v[1], this.$d.weeks = v[2], this.$d.days = v[3], this.$d.hours = v[4], this.$d.minutes = v[5], this.$d.seconds = v[6], this.calMilliseconds(), this;
1162
+ }
1163
+ }
1164
+ return this;
1165
+ }
1166
+ var g = p.prototype;
1167
+ return g.calMilliseconds = function() {
1168
+ var y = this;
1169
+ this.$ms = Object.keys(this.$d).reduce(function(h, M) {
1170
+ return h + (y.$d[M] || 0) * _[M];
1171
+ }, 0);
1172
+ }, g.parseFromMilliseconds = function() {
1173
+ var y = this.$ms;
1174
+ this.$d.years = I(y / C), y %= C, this.$d.months = I(y / k), y %= k, this.$d.days = I(y / m), y %= m, this.$d.hours = I(y / c), y %= c, this.$d.minutes = I(y / a), y %= a, this.$d.seconds = I(y / i), y %= i, this.$d.milliseconds = y;
1175
+ }, g.toISOString = function() {
1176
+ var y = W(this.$d.years, "Y"), h = W(this.$d.months, "M"), M = +this.$d.days || 0;
1177
+ this.$d.weeks && (M += 7 * this.$d.weeks);
1178
+ var w = W(M, "D"), T = W(this.$d.hours, "H"), v = W(this.$d.minutes, "M"), u = this.$d.seconds || 0;
1179
+ this.$d.milliseconds && (u += this.$d.milliseconds / 1e3, u = Math.round(1e3 * u) / 1e3);
1180
+ var f = W(u, "S"), b = y.negative || h.negative || w.negative || T.negative || v.negative || f.negative, x = T.format || v.format || f.format ? "T" : "", Y = (b ? "-" : "") + "P" + y.format + h.format + w.format + x + T.format + v.format + f.format;
1181
+ return Y === "P" || Y === "-P" ? "P0D" : Y;
1182
+ }, g.toJSON = function() {
1183
+ return this.toISOString();
1184
+ }, g.format = function(y) {
1185
+ var h = y || "YYYY-MM-DDTHH:mm:ss", M = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
1186
+ return h.replace(F, function(w, T) {
1187
+ return T || String(M[w]);
1188
+ });
1189
+ }, g.as = function(y) {
1190
+ return this.$ms / _[A(y)];
1191
+ }, g.get = function(y) {
1192
+ var h = this.$ms, M = A(y);
1193
+ return M === "milliseconds" ? h %= 1e3 : h = M === "weeks" ? I(h / _[M]) : this.$d[M], h || 0;
1194
+ }, g.add = function(y, h, M) {
1195
+ var w;
1196
+ return w = h ? y * _[A(h)] : S(y) ? y.$ms : B(y, this).$ms, B(this.$ms + w * (M ? -1 : 1), this);
1197
+ }, g.subtract = function(y, h) {
1198
+ return this.add(y, h, !0);
1199
+ }, g.locale = function(y) {
1200
+ var h = this.clone();
1201
+ return h.$l = y, h;
1202
+ }, g.clone = function() {
1203
+ return B(this.$ms, this);
1204
+ }, g.humanize = function(y) {
1205
+ return n().add(this.$ms, "ms").locale(this.$l).fromNow(!y);
1206
+ }, g.valueOf = function() {
1207
+ return this.asMilliseconds();
1208
+ }, g.milliseconds = function() {
1209
+ return this.get("milliseconds");
1210
+ }, g.asMilliseconds = function() {
1211
+ return this.as("milliseconds");
1212
+ }, g.seconds = function() {
1213
+ return this.get("seconds");
1214
+ }, g.asSeconds = function() {
1215
+ return this.as("seconds");
1216
+ }, g.minutes = function() {
1217
+ return this.get("minutes");
1218
+ }, g.asMinutes = function() {
1219
+ return this.as("minutes");
1220
+ }, g.hours = function() {
1221
+ return this.get("hours");
1222
+ }, g.asHours = function() {
1223
+ return this.as("hours");
1224
+ }, g.days = function() {
1225
+ return this.get("days");
1226
+ }, g.asDays = function() {
1227
+ return this.as("days");
1228
+ }, g.weeks = function() {
1229
+ return this.get("weeks");
1230
+ }, g.asWeeks = function() {
1231
+ return this.as("weeks");
1232
+ }, g.months = function() {
1233
+ return this.get("months");
1234
+ }, g.asMonths = function() {
1235
+ return this.as("months");
1236
+ }, g.years = function() {
1237
+ return this.get("years");
1238
+ }, g.asYears = function() {
1239
+ return this.as("years");
1240
+ }, p;
1241
+ }(), j = function(p, g, y) {
1242
+ return p.add(g.years() * y, "y").add(g.months() * y, "M").add(g.days() * y, "d").add(g.hours() * y, "h").add(g.minutes() * y, "m").add(g.seconds() * y, "s").add(g.milliseconds() * y, "ms");
1243
+ };
1244
+ return function(p, g, y) {
1245
+ n = y, r = y().$utils(), y.duration = function(w, T) {
1246
+ var v = y.locale();
1247
+ return B(w, { $l: v }, T);
1248
+ }, y.isDuration = S;
1249
+ var h = g.prototype.add, M = g.prototype.subtract;
1250
+ g.prototype.add = function(w, T) {
1251
+ return S(w) ? j(this, w, 1) : h.bind(this)(w, T);
1252
+ }, g.prototype.subtract = function(w, T) {
1253
+ return S(w) ? j(this, w, -1) : M.bind(this)(w, T);
1254
+ };
1255
+ };
1256
+ });
1257
+ })(Mn);
1258
+ var Wi = Mn.exports;
1259
+ const $i = /* @__PURE__ */ re(Wi);
1260
+ var ve = function() {
1261
+ var t = /* @__PURE__ */ d(function(v, u, f, b) {
1262
+ for (f = f || {}, b = v.length; b--; f[v[b]] = u)
1263
+ ;
1264
+ return f;
1265
+ }, "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], a = [1, 29], c = [1, 30], m = [1, 31], F = [1, 32], C = [1, 33], k = [1, 34], L = [1, 9], _ = [1, 10], S = [1, 11], B = [1, 12], A = [1, 13], U = [1, 14], I = [1, 15], N = [1, 16], W = [1, 19], Z = [1, 20], j = [1, 21], p = [1, 22], g = [1, 23], y = [1, 25], h = [1, 35], M = {
1266
+ trace: /* @__PURE__ */ d(function() {
1267
+ }, "trace"),
1268
+ yy: {},
1269
+ 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 },
1270
+ 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" },
1271
+ 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]],
1272
+ performAction: /* @__PURE__ */ d(function(u, f, b, x, Y, o, q) {
1273
+ var s = o.length - 1;
1274
+ switch (Y) {
1275
+ case 1:
1276
+ return o[s - 1];
1277
+ case 2:
1278
+ this.$ = [];
1279
+ break;
1280
+ case 3:
1281
+ o[s - 1].push(o[s]), this.$ = o[s - 1];
1282
+ break;
1283
+ case 4:
1284
+ case 5:
1285
+ this.$ = o[s];
1286
+ break;
1287
+ case 6:
1288
+ case 7:
1289
+ this.$ = [];
1290
+ break;
1291
+ case 8:
1292
+ x.setWeekday("monday");
1293
+ break;
1294
+ case 9:
1295
+ x.setWeekday("tuesday");
1296
+ break;
1297
+ case 10:
1298
+ x.setWeekday("wednesday");
1299
+ break;
1300
+ case 11:
1301
+ x.setWeekday("thursday");
1302
+ break;
1303
+ case 12:
1304
+ x.setWeekday("friday");
1305
+ break;
1306
+ case 13:
1307
+ x.setWeekday("saturday");
1308
+ break;
1309
+ case 14:
1310
+ x.setWeekday("sunday");
1311
+ break;
1312
+ case 15:
1313
+ x.setWeekend("friday");
1314
+ break;
1315
+ case 16:
1316
+ x.setWeekend("saturday");
1317
+ break;
1318
+ case 17:
1319
+ x.setDateFormat(o[s].substr(11)), this.$ = o[s].substr(11);
1320
+ break;
1321
+ case 18:
1322
+ x.enableInclusiveEndDates(), this.$ = o[s].substr(18);
1323
+ break;
1324
+ case 19:
1325
+ x.TopAxis(), this.$ = o[s].substr(8);
1326
+ break;
1327
+ case 20:
1328
+ x.setAxisFormat(o[s].substr(11)), this.$ = o[s].substr(11);
1329
+ break;
1330
+ case 21:
1331
+ x.setTickInterval(o[s].substr(13)), this.$ = o[s].substr(13);
1332
+ break;
1333
+ case 22:
1334
+ x.setExcludes(o[s].substr(9)), this.$ = o[s].substr(9);
1335
+ break;
1336
+ case 23:
1337
+ x.setIncludes(o[s].substr(9)), this.$ = o[s].substr(9);
1338
+ break;
1339
+ case 24:
1340
+ x.setTodayMarker(o[s].substr(12)), this.$ = o[s].substr(12);
1341
+ break;
1342
+ case 27:
1343
+ x.setDiagramTitle(o[s].substr(6)), this.$ = o[s].substr(6);
1344
+ break;
1345
+ case 28:
1346
+ this.$ = o[s].trim(), x.setAccTitle(this.$);
1347
+ break;
1348
+ case 29:
1349
+ case 30:
1350
+ this.$ = o[s].trim(), x.setAccDescription(this.$);
1351
+ break;
1352
+ case 31:
1353
+ x.addSection(o[s].substr(8)), this.$ = o[s].substr(8);
1354
+ break;
1355
+ case 33:
1356
+ x.addTask(o[s - 1], o[s]), this.$ = "task";
1357
+ break;
1358
+ case 34:
1359
+ this.$ = o[s - 1], x.setClickEvent(o[s - 1], o[s], null);
1360
+ break;
1361
+ case 35:
1362
+ this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s - 1], o[s]);
1363
+ break;
1364
+ case 36:
1365
+ this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s - 1], null), x.setLink(o[s - 2], o[s]);
1366
+ break;
1367
+ case 37:
1368
+ this.$ = o[s - 3], x.setClickEvent(o[s - 3], o[s - 2], o[s - 1]), x.setLink(o[s - 3], o[s]);
1369
+ break;
1370
+ case 38:
1371
+ this.$ = o[s - 2], x.setClickEvent(o[s - 2], o[s], null), x.setLink(o[s - 2], o[s - 1]);
1372
+ break;
1373
+ case 39:
1374
+ this.$ = o[s - 3], x.setClickEvent(o[s - 3], o[s - 1], o[s]), x.setLink(o[s - 3], o[s - 2]);
1375
+ break;
1376
+ case 40:
1377
+ this.$ = o[s - 1], x.setLink(o[s - 1], o[s]);
1378
+ break;
1379
+ case 41:
1380
+ case 47:
1381
+ this.$ = o[s - 1] + " " + o[s];
1382
+ break;
1383
+ case 42:
1384
+ case 43:
1385
+ case 45:
1386
+ this.$ = o[s - 2] + " " + o[s - 1] + " " + o[s];
1387
+ break;
1388
+ case 44:
1389
+ case 46:
1390
+ this.$ = o[s - 3] + " " + o[s - 2] + " " + o[s - 1] + " " + o[s];
1391
+ break;
1392
+ }
1393
+ }, "anonymous"),
1394
+ 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: a, 16: c, 17: m, 18: F, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: B, 26: A, 27: U, 28: I, 29: N, 30: W, 31: Z, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: a, 16: c, 17: m, 18: F, 19: 18, 20: C, 21: k, 22: L, 23: _, 24: S, 25: B, 26: A, 27: U, 28: I, 29: N, 30: W, 31: Z, 33: j, 35: p, 36: g, 37: 24, 38: y, 40: h }, 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])],
1395
+ defaultActions: {},
1396
+ parseError: /* @__PURE__ */ d(function(u, f) {
1397
+ if (f.recoverable)
1398
+ this.trace(u);
1399
+ else {
1400
+ var b = new Error(u);
1401
+ throw b.hash = f, b;
1402
+ }
1403
+ }, "parseError"),
1404
+ parse: /* @__PURE__ */ d(function(u) {
1405
+ var f = this, b = [0], x = [], Y = [null], o = [], q = this.table, s = "", E = 0, R = 0, z = 2, P = 1, K = o.slice.call(arguments, 1), O = Object.create(this.lexer), st = { yy: {} };
1406
+ for (var D in this.yy)
1407
+ Object.prototype.hasOwnProperty.call(this.yy, D) && (st.yy[D] = this.yy[D]);
1408
+ O.setInput(u, st.yy), st.yy.lexer = O, st.yy.parser = this, typeof O.yylloc > "u" && (O.yylloc = {});
1409
+ var H = O.yylloc;
1410
+ o.push(H);
1411
+ var V = O.options && O.options.ranges;
1412
+ typeof st.yy.parseError == "function" ? this.parseError = st.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1413
+ function l(ot) {
1414
+ b.length = b.length - 2 * ot, Y.length = Y.length - ot, o.length = o.length - ot;
1415
+ }
1416
+ d(l, "popStack");
1417
+ function J() {
1418
+ var ot;
1419
+ return ot = x.pop() || O.lex() || P, typeof ot != "number" && (ot instanceof Array && (x = ot, ot = x.pop()), ot = f.symbols_[ot] || ot), ot;
1420
+ }
1421
+ d(J, "lex");
1422
+ for (var $, Q, G, it, at = {}, pt, ut, Ae, Zt; ; ) {
1423
+ if (Q = b[b.length - 1], this.defaultActions[Q] ? G = this.defaultActions[Q] : (($ === null || typeof $ > "u") && ($ = J()), G = q[Q] && q[Q][$]), typeof G > "u" || !G.length || !G[0]) {
1424
+ var ie = "";
1425
+ Zt = [];
1426
+ for (pt in q[Q])
1427
+ this.terminals_[pt] && pt > z && Zt.push("'" + this.terminals_[pt] + "'");
1428
+ O.showPosition ? ie = "Parse error on line " + (E + 1) + `:
1429
+ ` + O.showPosition() + `
1430
+ Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : ie = "Parse error on line " + (E + 1) + ": Unexpected " + ($ == P ? "end of input" : "'" + (this.terminals_[$] || $) + "'"), this.parseError(ie, {
1431
+ text: O.match,
1432
+ token: this.terminals_[$] || $,
1433
+ line: O.yylineno,
1434
+ loc: H,
1435
+ expected: Zt
1436
+ });
1437
+ }
1438
+ if (G[0] instanceof Array && G.length > 1)
1439
+ throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + $);
1440
+ switch (G[0]) {
1441
+ case 1:
1442
+ b.push($), Y.push(O.yytext), o.push(O.yylloc), b.push(G[1]), $ = null, R = O.yyleng, s = O.yytext, E = O.yylineno, H = O.yylloc;
1443
+ break;
1444
+ case 2:
1445
+ if (ut = this.productions_[G[1]][1], at.$ = Y[Y.length - ut], at._$ = {
1446
+ first_line: o[o.length - (ut || 1)].first_line,
1447
+ last_line: o[o.length - 1].last_line,
1448
+ first_column: o[o.length - (ut || 1)].first_column,
1449
+ last_column: o[o.length - 1].last_column
1450
+ }, V && (at._$.range = [
1451
+ o[o.length - (ut || 1)].range[0],
1452
+ o[o.length - 1].range[1]
1453
+ ]), it = this.performAction.apply(at, [
1454
+ s,
1455
+ R,
1456
+ E,
1457
+ st.yy,
1458
+ G[1],
1459
+ Y,
1460
+ o
1461
+ ].concat(K)), typeof it < "u")
1462
+ return it;
1463
+ ut && (b = b.slice(0, -1 * ut * 2), Y = Y.slice(0, -1 * ut), o = o.slice(0, -1 * ut)), b.push(this.productions_[G[1]][0]), Y.push(at.$), o.push(at._$), Ae = q[b[b.length - 2]][b[b.length - 1]], b.push(Ae);
1464
+ break;
1465
+ case 3:
1466
+ return !0;
1467
+ }
1468
+ }
1469
+ return !0;
1470
+ }, "parse")
1471
+ }, w = /* @__PURE__ */ function() {
1472
+ var v = {
1473
+ EOF: 1,
1474
+ parseError: /* @__PURE__ */ d(function(f, b) {
1475
+ if (this.yy.parser)
1476
+ this.yy.parser.parseError(f, b);
1477
+ else
1478
+ throw new Error(f);
1479
+ }, "parseError"),
1480
+ // resets the lexer, sets new input
1481
+ setInput: /* @__PURE__ */ d(function(u, f) {
1482
+ return this.yy = f || this.yy || {}, this._input = u, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1483
+ first_line: 1,
1484
+ first_column: 0,
1485
+ last_line: 1,
1486
+ last_column: 0
1487
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1488
+ }, "setInput"),
1489
+ // consumes and returns one char from the input
1490
+ input: /* @__PURE__ */ d(function() {
1491
+ var u = this._input[0];
1492
+ this.yytext += u, this.yyleng++, this.offset++, this.match += u, this.matched += u;
1493
+ var f = u.match(/(?:\r\n?|\n).*/g);
1494
+ return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), u;
1495
+ }, "input"),
1496
+ // unshifts one char (or a string) into the input
1497
+ unput: /* @__PURE__ */ d(function(u) {
1498
+ var f = u.length, b = u.split(/(?:\r\n?|\n)/g);
1499
+ this._input = u + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
1500
+ var x = this.match.split(/(?:\r\n?|\n)/g);
1501
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1502
+ var Y = this.yylloc.range;
1503
+ return this.yylloc = {
1504
+ first_line: this.yylloc.first_line,
1505
+ last_line: this.yylineno + 1,
1506
+ first_column: this.yylloc.first_column,
1507
+ last_column: b ? (b.length === x.length ? this.yylloc.first_column : 0) + x[x.length - b.length].length - b[0].length : this.yylloc.first_column - f
1508
+ }, this.options.ranges && (this.yylloc.range = [Y[0], Y[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
1509
+ }, "unput"),
1510
+ // When called from action, caches matched text and appends it on next action
1511
+ more: /* @__PURE__ */ d(function() {
1512
+ return this._more = !0, this;
1513
+ }, "more"),
1514
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1515
+ reject: /* @__PURE__ */ d(function() {
1516
+ if (this.options.backtrack_lexer)
1517
+ this._backtrack = !0;
1518
+ else
1519
+ 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).
1520
+ ` + this.showPosition(), {
1521
+ text: "",
1522
+ token: null,
1523
+ line: this.yylineno
1524
+ });
1525
+ return this;
1526
+ }, "reject"),
1527
+ // retain first n characters of the match
1528
+ less: /* @__PURE__ */ d(function(u) {
1529
+ this.unput(this.match.slice(u));
1530
+ }, "less"),
1531
+ // displays already matched input, i.e. for error messages
1532
+ pastInput: /* @__PURE__ */ d(function() {
1533
+ var u = this.matched.substr(0, this.matched.length - this.match.length);
1534
+ return (u.length > 20 ? "..." : "") + u.substr(-20).replace(/\n/g, "");
1535
+ }, "pastInput"),
1536
+ // displays upcoming input, i.e. for error messages
1537
+ upcomingInput: /* @__PURE__ */ d(function() {
1538
+ var u = this.match;
1539
+ return u.length < 20 && (u += this._input.substr(0, 20 - u.length)), (u.substr(0, 20) + (u.length > 20 ? "..." : "")).replace(/\n/g, "");
1540
+ }, "upcomingInput"),
1541
+ // displays the character position where the lexing error occurred, i.e. for error messages
1542
+ showPosition: /* @__PURE__ */ d(function() {
1543
+ var u = this.pastInput(), f = new Array(u.length + 1).join("-");
1544
+ return u + this.upcomingInput() + `
1545
+ ` + f + "^";
1546
+ }, "showPosition"),
1547
+ // test the lexed token: return FALSE when not a match, otherwise return token
1548
+ test_match: /* @__PURE__ */ d(function(u, f) {
1549
+ var b, x, Y;
1550
+ if (this.options.backtrack_lexer && (Y = {
1551
+ yylineno: this.yylineno,
1552
+ yylloc: {
1553
+ first_line: this.yylloc.first_line,
1554
+ last_line: this.last_line,
1555
+ first_column: this.yylloc.first_column,
1556
+ last_column: this.yylloc.last_column
1557
+ },
1558
+ yytext: this.yytext,
1559
+ match: this.match,
1560
+ matches: this.matches,
1561
+ matched: this.matched,
1562
+ yyleng: this.yyleng,
1563
+ offset: this.offset,
1564
+ _more: this._more,
1565
+ _input: this._input,
1566
+ yy: this.yy,
1567
+ conditionStack: this.conditionStack.slice(0),
1568
+ done: this.done
1569
+ }, this.options.ranges && (Y.yylloc.range = this.yylloc.range.slice(0))), x = u[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
1570
+ first_line: this.yylloc.last_line,
1571
+ last_line: this.yylineno + 1,
1572
+ first_column: this.yylloc.last_column,
1573
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + u[0].length
1574
+ }, this.yytext += u[0], this.match += u[0], this.matches = u, 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(u[0].length), this.matched += u[0], b = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1575
+ return b;
1576
+ if (this._backtrack) {
1577
+ for (var o in Y)
1578
+ this[o] = Y[o];
1579
+ return !1;
1580
+ }
1581
+ return !1;
1582
+ }, "test_match"),
1583
+ // return next match in input
1584
+ next: /* @__PURE__ */ d(function() {
1585
+ if (this.done)
1586
+ return this.EOF;
1587
+ this._input || (this.done = !0);
1588
+ var u, f, b, x;
1589
+ this._more || (this.yytext = "", this.match = "");
1590
+ for (var Y = this._currentRules(), o = 0; o < Y.length; o++)
1591
+ if (b = this._input.match(this.rules[Y[o]]), b && (!f || b[0].length > f[0].length)) {
1592
+ if (f = b, x = o, this.options.backtrack_lexer) {
1593
+ if (u = this.test_match(b, Y[o]), u !== !1)
1594
+ return u;
1595
+ if (this._backtrack) {
1596
+ f = !1;
1597
+ continue;
1598
+ } else
1599
+ return !1;
1600
+ } else if (!this.options.flex)
1601
+ break;
1602
+ }
1603
+ return f ? (u = this.test_match(f, Y[x]), u !== !1 ? u : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1604
+ ` + this.showPosition(), {
1605
+ text: "",
1606
+ token: null,
1607
+ line: this.yylineno
1608
+ });
1609
+ }, "next"),
1610
+ // return next match that has a token
1611
+ lex: /* @__PURE__ */ d(function() {
1612
+ var f = this.next();
1613
+ return f || this.lex();
1614
+ }, "lex"),
1615
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1616
+ begin: /* @__PURE__ */ d(function(f) {
1617
+ this.conditionStack.push(f);
1618
+ }, "begin"),
1619
+ // pop the previously active lexer condition state off the condition stack
1620
+ popState: /* @__PURE__ */ d(function() {
1621
+ var f = this.conditionStack.length - 1;
1622
+ return f > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1623
+ }, "popState"),
1624
+ // produce the lexer rule set which is active for the currently active lexer condition state
1625
+ _currentRules: /* @__PURE__ */ d(function() {
1626
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1627
+ }, "_currentRules"),
1628
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1629
+ topState: /* @__PURE__ */ d(function(f) {
1630
+ return f = this.conditionStack.length - 1 - Math.abs(f || 0), f >= 0 ? this.conditionStack[f] : "INITIAL";
1631
+ }, "topState"),
1632
+ // alias for begin(condition)
1633
+ pushState: /* @__PURE__ */ d(function(f) {
1634
+ this.begin(f);
1635
+ }, "pushState"),
1636
+ // return the number of states currently on the stack
1637
+ stateStackSize: /* @__PURE__ */ d(function() {
1638
+ return this.conditionStack.length;
1639
+ }, "stateStackSize"),
1640
+ options: { "case-insensitive": !0 },
1641
+ performAction: /* @__PURE__ */ d(function(f, b, x, Y) {
1642
+ switch (x) {
1643
+ case 0:
1644
+ return this.begin("open_directive"), "open_directive";
1645
+ case 1:
1646
+ return this.begin("acc_title"), 31;
1647
+ case 2:
1648
+ return this.popState(), "acc_title_value";
1649
+ case 3:
1650
+ return this.begin("acc_descr"), 33;
1651
+ case 4:
1652
+ return this.popState(), "acc_descr_value";
1653
+ case 5:
1654
+ this.begin("acc_descr_multiline");
1655
+ break;
1656
+ case 6:
1657
+ this.popState();
1658
+ break;
1659
+ case 7:
1660
+ return "acc_descr_multiline_value";
1661
+ case 8:
1662
+ break;
1663
+ case 9:
1664
+ break;
1665
+ case 10:
1666
+ break;
1667
+ case 11:
1668
+ return 10;
1669
+ case 12:
1670
+ break;
1671
+ case 13:
1672
+ break;
1673
+ case 14:
1674
+ this.begin("href");
1675
+ break;
1676
+ case 15:
1677
+ this.popState();
1678
+ break;
1679
+ case 16:
1680
+ return 43;
1681
+ case 17:
1682
+ this.begin("callbackname");
1683
+ break;
1684
+ case 18:
1685
+ this.popState();
1686
+ break;
1687
+ case 19:
1688
+ this.popState(), this.begin("callbackargs");
1689
+ break;
1690
+ case 20:
1691
+ return 41;
1692
+ case 21:
1693
+ this.popState();
1694
+ break;
1695
+ case 22:
1696
+ return 42;
1697
+ case 23:
1698
+ this.begin("click");
1699
+ break;
1700
+ case 24:
1701
+ this.popState();
1702
+ break;
1703
+ case 25:
1704
+ return 40;
1705
+ case 26:
1706
+ return 4;
1707
+ case 27:
1708
+ return 22;
1709
+ case 28:
1710
+ return 23;
1711
+ case 29:
1712
+ return 24;
1713
+ case 30:
1714
+ return 25;
1715
+ case 31:
1716
+ return 26;
1717
+ case 32:
1718
+ return 28;
1719
+ case 33:
1720
+ return 27;
1721
+ case 34:
1722
+ return 29;
1723
+ case 35:
1724
+ return 12;
1725
+ case 36:
1726
+ return 13;
1727
+ case 37:
1728
+ return 14;
1729
+ case 38:
1730
+ return 15;
1731
+ case 39:
1732
+ return 16;
1733
+ case 40:
1734
+ return 17;
1735
+ case 41:
1736
+ return 18;
1737
+ case 42:
1738
+ return 20;
1739
+ case 43:
1740
+ return 21;
1741
+ case 44:
1742
+ return "date";
1743
+ case 45:
1744
+ return 30;
1745
+ case 46:
1746
+ return "accDescription";
1747
+ case 47:
1748
+ return 36;
1749
+ case 48:
1750
+ return 38;
1751
+ case 49:
1752
+ return 39;
1753
+ case 50:
1754
+ return ":";
1755
+ case 51:
1756
+ return 6;
1757
+ case 52:
1758
+ return "INVALID";
1759
+ }
1760
+ }, "anonymous"),
1761
+ 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],
1762
+ 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 } }
1763
+ };
1764
+ return v;
1765
+ }();
1766
+ M.lexer = w;
1767
+ function T() {
1768
+ this.yy = {};
1769
+ }
1770
+ return d(T, "Parser"), T.prototype = M, M.Parser = T, new T();
1771
+ }();
1772
+ ve.parser = ve;
1773
+ var Oi = ve;
1774
+ rt.extend(Ui);
1775
+ rt.extend(Ii);
1776
+ rt.extend(Ai);
1777
+ var Ge = { friday: 5, saturday: 6 }, lt = "", De = "", Ce = void 0, Se = "", Vt = [], zt = [], _e = /* @__PURE__ */ new Map(), Ye = [], te = [], It = "", Fe = "", Dn = ["active", "done", "crit", "milestone", "vert"], Ue = [], Rt = !1, Ee = !1, Ie = "sunday", ee = "saturday", Te = 0, Hi = /* @__PURE__ */ d(function() {
1778
+ Ye = [], te = [], It = "", Ue = [], Gt = 0, xe = void 0, jt = void 0, tt = [], lt = "", De = "", Fe = "", Ce = void 0, Se = "", Vt = [], zt = [], Rt = !1, Ee = !1, Te = 0, _e = /* @__PURE__ */ new Map(), Rn(), Ie = "sunday", ee = "saturday";
1779
+ }, "clear"), Ni = /* @__PURE__ */ d(function(t) {
1780
+ De = t;
1781
+ }, "setAxisFormat"), Pi = /* @__PURE__ */ d(function() {
1782
+ return De;
1783
+ }, "getAxisFormat"), Vi = /* @__PURE__ */ d(function(t) {
1784
+ Ce = t;
1785
+ }, "setTickInterval"), zi = /* @__PURE__ */ d(function() {
1786
+ return Ce;
1787
+ }, "getTickInterval"), Ri = /* @__PURE__ */ d(function(t) {
1788
+ Se = t;
1789
+ }, "setTodayMarker"), Zi = /* @__PURE__ */ d(function() {
1790
+ return Se;
1791
+ }, "getTodayMarker"), Bi = /* @__PURE__ */ d(function(t) {
1792
+ lt = t;
1793
+ }, "setDateFormat"), Xi = /* @__PURE__ */ d(function() {
1794
+ Rt = !0;
1795
+ }, "enableInclusiveEndDates"), qi = /* @__PURE__ */ d(function() {
1796
+ return Rt;
1797
+ }, "endDatesAreInclusive"), Gi = /* @__PURE__ */ d(function() {
1798
+ Ee = !0;
1799
+ }, "enableTopAxis"), ji = /* @__PURE__ */ d(function() {
1800
+ return Ee;
1801
+ }, "topAxisEnabled"), Qi = /* @__PURE__ */ d(function(t) {
1802
+ Fe = t;
1803
+ }, "setDisplayMode"), Ji = /* @__PURE__ */ d(function() {
1804
+ return Fe;
1805
+ }, "getDisplayMode"), Ki = /* @__PURE__ */ d(function() {
1806
+ return lt;
1807
+ }, "getDateFormat"), ts = /* @__PURE__ */ d(function(t) {
1808
+ Vt = t.toLowerCase().split(/[\s,]+/);
1809
+ }, "setIncludes"), es = /* @__PURE__ */ d(function() {
1810
+ return Vt;
1811
+ }, "getIncludes"), ns = /* @__PURE__ */ d(function(t) {
1812
+ zt = t.toLowerCase().split(/[\s,]+/);
1813
+ }, "setExcludes"), rs = /* @__PURE__ */ d(function() {
1814
+ return zt;
1815
+ }, "getExcludes"), is = /* @__PURE__ */ d(function() {
1816
+ return _e;
1817
+ }, "getLinks"), ss = /* @__PURE__ */ d(function(t) {
1818
+ It = t, Ye.push(t);
1819
+ }, "addSection"), as = /* @__PURE__ */ d(function() {
1820
+ return Ye;
1821
+ }, "getSections"), os = /* @__PURE__ */ d(function() {
1822
+ let t = je();
1823
+ const e = 10;
1824
+ let n = 0;
1825
+ for (; !t && n < e; )
1826
+ t = je(), n++;
1827
+ return te = tt, te;
1828
+ }, "getTasks"), Cn = /* @__PURE__ */ d(function(t, e, n, r) {
1829
+ const i = t.format(e.trim()), a = t.format("YYYY-MM-DD");
1830
+ return r.includes(i) || r.includes(a) ? !1 : n.includes("weekends") && (t.isoWeekday() === Ge[ee] || t.isoWeekday() === Ge[ee] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(a);
1831
+ }, "isInvalidDate"), cs = /* @__PURE__ */ d(function(t) {
1832
+ Ie = t;
1833
+ }, "setWeekday"), us = /* @__PURE__ */ d(function() {
1834
+ return Ie;
1835
+ }, "getWeekday"), ls = /* @__PURE__ */ d(function(t) {
1836
+ ee = t;
1837
+ }, "setWeekend"), Sn = /* @__PURE__ */ d(function(t, e, n, r) {
1838
+ if (!n.length || t.manualEndTime)
1839
+ return;
1840
+ let i;
1841
+ t.startTime instanceof Date ? i = rt(t.startTime) : i = rt(t.startTime, e, !0), i = i.add(1, "d");
1842
+ let a;
1843
+ t.endTime instanceof Date ? a = rt(t.endTime) : a = rt(t.endTime, e, !0);
1844
+ const [c, m] = fs(
1845
+ i,
1846
+ a,
1847
+ e,
1848
+ n,
1849
+ r
1850
+ );
1851
+ t.endTime = c.toDate(), t.renderEndTime = m;
1852
+ }, "checkTaskDates"), fs = /* @__PURE__ */ d(function(t, e, n, r, i) {
1853
+ let a = !1, c = null;
1854
+ for (; t <= e; )
1855
+ a || (c = e.toDate()), a = Cn(t, n, r, i), a && (e = e.add(1, "d")), t = t.add(1, "d");
1856
+ return [e, c];
1857
+ }, "fixTaskDates"), be = /* @__PURE__ */ d(function(t, e, n) {
1858
+ if (n = n.trim(), (/* @__PURE__ */ d((m) => {
1859
+ const F = m.trim();
1860
+ return F === "x" || F === "X";
1861
+ }, "isTimestampFormat"))(e) && /^\d+$/.test(n))
1862
+ return new Date(Number(n));
1863
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1864
+ if (a !== null) {
1865
+ let m = null;
1866
+ for (const C of a.groups.ids.split(" ")) {
1867
+ let k = Ct(C);
1868
+ k !== void 0 && (!m || k.endTime > m.endTime) && (m = k);
1869
+ }
1870
+ if (m)
1871
+ return m.endTime;
1872
+ const F = /* @__PURE__ */ new Date();
1873
+ return F.setHours(0, 0, 0, 0), F;
1874
+ }
1875
+ let c = rt(n, e.trim(), !0);
1876
+ if (c.isValid())
1877
+ return c.toDate();
1878
+ {
1879
+ Tt.debug("Invalid date:" + n), Tt.debug("With date format:" + e.trim());
1880
+ const m = new Date(n);
1881
+ if (m === void 0 || isNaN(m.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1882
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1883
+ // This can cause virtually infinite loops while rendering, so for the
1884
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1885
+ // invalid.
1886
+ m.getFullYear() < -1e4 || m.getFullYear() > 1e4)
1887
+ throw new Error("Invalid date:" + n);
1888
+ return m;
1889
+ }
1890
+ }, "getStartDate"), _n = /* @__PURE__ */ d(function(t) {
1891
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1892
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1893
+ }, "parseDuration"), Yn = /* @__PURE__ */ d(function(t, e, n, r = !1) {
1894
+ n = n.trim();
1895
+ const a = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1896
+ if (a !== null) {
1897
+ let k = null;
1898
+ for (const _ of a.groups.ids.split(" ")) {
1899
+ let S = Ct(_);
1900
+ S !== void 0 && (!k || S.startTime < k.startTime) && (k = S);
1901
+ }
1902
+ if (k)
1903
+ return k.startTime;
1904
+ const L = /* @__PURE__ */ new Date();
1905
+ return L.setHours(0, 0, 0, 0), L;
1906
+ }
1907
+ let c = rt(n, e.trim(), !0);
1908
+ if (c.isValid())
1909
+ return r && (c = c.add(1, "d")), c.toDate();
1910
+ let m = rt(t);
1911
+ const [F, C] = _n(n);
1912
+ if (!Number.isNaN(F)) {
1913
+ const k = m.add(F, C);
1914
+ k.isValid() && (m = k);
1915
+ }
1916
+ return m.toDate();
1917
+ }, "getEndDate"), Gt = 0, Ft = /* @__PURE__ */ d(function(t) {
1918
+ return t === void 0 ? (Gt = Gt + 1, "task" + Gt) : t;
1919
+ }, "parseId"), ds = /* @__PURE__ */ d(function(t, e) {
1920
+ let n;
1921
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1922
+ const r = n.split(","), i = {};
1923
+ Le(r, i, Dn);
1924
+ for (let c = 0; c < r.length; c++)
1925
+ r[c] = r[c].trim();
1926
+ let a = "";
1927
+ switch (r.length) {
1928
+ case 1:
1929
+ i.id = Ft(), i.startTime = t.endTime, a = r[0];
1930
+ break;
1931
+ case 2:
1932
+ i.id = Ft(), i.startTime = be(void 0, lt, r[0]), a = r[1];
1933
+ break;
1934
+ case 3:
1935
+ i.id = Ft(r[0]), i.startTime = be(void 0, lt, r[1]), a = r[2];
1936
+ break;
1937
+ }
1938
+ return a && (i.endTime = Yn(i.startTime, lt, a, Rt), i.manualEndTime = rt(a, "YYYY-MM-DD", !0).isValid(), Sn(i, lt, zt, Vt)), i;
1939
+ }, "compileData"), hs = /* @__PURE__ */ d(function(t, e) {
1940
+ let n;
1941
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1942
+ const r = n.split(","), i = {};
1943
+ Le(r, i, Dn);
1944
+ for (let a = 0; a < r.length; a++)
1945
+ r[a] = r[a].trim();
1946
+ switch (r.length) {
1947
+ case 1:
1948
+ i.id = Ft(), i.startTime = {
1949
+ type: "prevTaskEnd",
1950
+ id: t
1951
+ }, i.endTime = {
1952
+ data: r[0]
1953
+ };
1954
+ break;
1955
+ case 2:
1956
+ i.id = Ft(), i.startTime = {
1957
+ type: "getStartDate",
1958
+ startData: r[0]
1959
+ }, i.endTime = {
1960
+ data: r[1]
1961
+ };
1962
+ break;
1963
+ case 3:
1964
+ i.id = Ft(r[0]), i.startTime = {
1965
+ type: "getStartDate",
1966
+ startData: r[1]
1967
+ }, i.endTime = {
1968
+ data: r[2]
1969
+ };
1970
+ break;
1971
+ }
1972
+ return i;
1973
+ }, "parseData"), xe, jt, tt = [], Fn = {}, ms = /* @__PURE__ */ d(function(t, e) {
1974
+ const n = {
1975
+ section: It,
1976
+ type: It,
1977
+ processed: !1,
1978
+ manualEndTime: !1,
1979
+ renderEndTime: null,
1980
+ raw: { data: e },
1981
+ task: t,
1982
+ classes: []
1983
+ }, r = hs(jt, e);
1984
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = jt, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.order = Te, Te++;
1985
+ const i = tt.push(n);
1986
+ jt = n.id, Fn[n.id] = i - 1;
1987
+ }, "addTask"), Ct = /* @__PURE__ */ d(function(t) {
1988
+ const e = Fn[t];
1989
+ return tt[e];
1990
+ }, "findTaskById"), gs = /* @__PURE__ */ d(function(t, e) {
1991
+ const n = {
1992
+ section: It,
1993
+ type: It,
1994
+ description: t,
1995
+ task: t,
1996
+ classes: []
1997
+ }, r = ds(xe, e);
1998
+ 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, xe = n, te.push(n);
1999
+ }, "addTaskOrg"), je = /* @__PURE__ */ d(function() {
2000
+ const t = /* @__PURE__ */ d(function(n) {
2001
+ const r = tt[n];
2002
+ let i = "";
2003
+ switch (tt[n].raw.startTime.type) {
2004
+ case "prevTaskEnd": {
2005
+ const a = Ct(r.prevTaskId);
2006
+ r.startTime = a.endTime;
2007
+ break;
2008
+ }
2009
+ case "getStartDate":
2010
+ i = be(void 0, lt, tt[n].raw.startTime.startData), i && (tt[n].startTime = i);
2011
+ break;
2012
+ }
2013
+ return tt[n].startTime && (tt[n].endTime = Yn(
2014
+ tt[n].startTime,
2015
+ lt,
2016
+ tt[n].raw.endTime.data,
2017
+ Rt
2018
+ ), tt[n].endTime && (tt[n].processed = !0, tt[n].manualEndTime = rt(
2019
+ tt[n].raw.endTime.data,
2020
+ "YYYY-MM-DD",
2021
+ !0
2022
+ ).isValid(), Sn(tt[n], lt, zt, Vt))), tt[n].processed;
2023
+ }, "compileTask");
2024
+ let e = !0;
2025
+ for (const [n, r] of tt.entries())
2026
+ t(n), e = e && r.processed;
2027
+ return e;
2028
+ }, "compileTasks"), ys = /* @__PURE__ */ d(function(t, e) {
2029
+ let n = e;
2030
+ _t().securityLevel !== "loose" && (n = zn(e)), t.split(",").forEach(function(r) {
2031
+ Ct(r) !== void 0 && (En(r, () => {
2032
+ window.open(n, "_self");
2033
+ }), _e.set(r, n));
2034
+ }), Un(t, "clickable");
2035
+ }, "setLink"), Un = /* @__PURE__ */ d(function(t, e) {
2036
+ t.split(",").forEach(function(n) {
2037
+ let r = Ct(n);
2038
+ r !== void 0 && r.classes.push(e);
2039
+ });
2040
+ }, "setClass"), ks = /* @__PURE__ */ d(function(t, e, n) {
2041
+ if (_t().securityLevel !== "loose" || e === void 0)
2042
+ return;
2043
+ let r = [];
2044
+ if (typeof n == "string") {
2045
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2046
+ for (let a = 0; a < r.length; a++) {
2047
+ let c = r[a].trim();
2048
+ c.startsWith('"') && c.endsWith('"') && (c = c.substr(1, c.length - 2)), r[a] = c;
2049
+ }
2050
+ }
2051
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && En(t, () => {
2052
+ Zn.runFunc(e, ...r);
2053
+ });
2054
+ }, "setClickFun"), En = /* @__PURE__ */ d(function(t, e) {
2055
+ Ue.push(
2056
+ function() {
2057
+ const n = document.querySelector(`[id="${t}"]`);
2058
+ n !== null && n.addEventListener("click", function() {
2059
+ e();
2060
+ });
2061
+ },
2062
+ function() {
2063
+ const n = document.querySelector(`[id="${t}-text"]`);
2064
+ n !== null && n.addEventListener("click", function() {
2065
+ e();
2066
+ });
2067
+ }
2068
+ );
2069
+ }, "pushFun"), ps = /* @__PURE__ */ d(function(t, e, n) {
2070
+ t.split(",").forEach(function(r) {
2071
+ ks(r, e, n);
2072
+ }), Un(t, "clickable");
2073
+ }, "setClickEvent"), vs = /* @__PURE__ */ d(function(t) {
2074
+ Ue.forEach(function(e) {
2075
+ e(t);
2076
+ });
2077
+ }, "bindFunctions"), Ts = {
2078
+ getConfig: /* @__PURE__ */ d(() => _t().gantt, "getConfig"),
2079
+ clear: Hi,
2080
+ setDateFormat: Bi,
2081
+ getDateFormat: Ki,
2082
+ enableInclusiveEndDates: Xi,
2083
+ endDatesAreInclusive: qi,
2084
+ enableTopAxis: Gi,
2085
+ topAxisEnabled: ji,
2086
+ setAxisFormat: Ni,
2087
+ getAxisFormat: Pi,
2088
+ setTickInterval: Vi,
2089
+ getTickInterval: zi,
2090
+ setTodayMarker: Ri,
2091
+ getTodayMarker: Zi,
2092
+ setAccTitle: Nn,
2093
+ getAccTitle: Hn,
2094
+ setDiagramTitle: On,
2095
+ getDiagramTitle: $n,
2096
+ setDisplayMode: Qi,
2097
+ getDisplayMode: Ji,
2098
+ setAccDescription: Wn,
2099
+ getAccDescription: An,
2100
+ addSection: ss,
2101
+ getSections: as,
2102
+ getTasks: os,
2103
+ addTask: ms,
2104
+ findTaskById: Ct,
2105
+ addTaskOrg: gs,
2106
+ setIncludes: ts,
2107
+ getIncludes: es,
2108
+ setExcludes: ns,
2109
+ getExcludes: rs,
2110
+ setClickEvent: ps,
2111
+ setLink: ys,
2112
+ getLinks: is,
2113
+ bindFunctions: vs,
2114
+ parseDuration: _n,
2115
+ isInvalidDate: Cn,
2116
+ setWeekday: cs,
2117
+ getWeekday: us,
2118
+ setWeekend: ls
2119
+ };
2120
+ function Le(t, e, n) {
2121
+ let r = !0;
2122
+ for (; r; )
2123
+ r = !1, n.forEach(function(i) {
2124
+ const a = "^\\s*" + i + "\\s*$", c = new RegExp(a);
2125
+ t[0].match(c) && (e[i] = !0, t.shift(1), r = !0);
2126
+ });
2127
+ }
2128
+ d(Le, "getTaskTags");
2129
+ rt.extend($i);
2130
+ var bs = /* @__PURE__ */ d(function() {
2131
+ Tt.debug("Something is calling, setConf, remove the call");
2132
+ }, "setConf"), Qe = {
2133
+ monday: Ht,
2134
+ tuesday: fn,
2135
+ wednesday: dn,
2136
+ thursday: xt,
2137
+ friday: hn,
2138
+ saturday: mn,
2139
+ sunday: Pt
2140
+ }, xs = /* @__PURE__ */ d((t, e) => {
2141
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((a, c) => a.startTime - c.startTime || a.order - c.order), i = 0;
2142
+ for (const a of r)
2143
+ for (let c = 0; c < n.length; c++)
2144
+ if (a.startTime >= n[c]) {
2145
+ n[c] = a.endTime, a.order = c + e, c > i && (i = c);
2146
+ break;
2147
+ }
2148
+ return i;
2149
+ }, "getMaxIntersections"), dt, ye = 1e4, ws = /* @__PURE__ */ d(function(t, e, n, r) {
2150
+ const i = _t().gantt, a = _t().securityLevel;
2151
+ let c;
2152
+ a === "sandbox" && (c = Bt("#i" + e));
2153
+ const m = a === "sandbox" ? Bt(c.nodes()[0].contentDocument.body) : Bt("body"), F = a === "sandbox" ? c.nodes()[0].contentDocument : document, C = F.getElementById(e);
2154
+ dt = C.parentElement.offsetWidth, dt === void 0 && (dt = 1200), i.useWidth !== void 0 && (dt = i.useWidth);
2155
+ const k = r.db.getTasks();
2156
+ let L = [];
2157
+ for (const h of k)
2158
+ L.push(h.type);
2159
+ L = y(L);
2160
+ const _ = {};
2161
+ let S = 2 * i.topPadding;
2162
+ if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
2163
+ const h = {};
2164
+ for (const w of k)
2165
+ h[w.section] === void 0 ? h[w.section] = [w] : h[w.section].push(w);
2166
+ let M = 0;
2167
+ for (const w of Object.keys(h)) {
2168
+ const T = xs(h[w], M) + 1;
2169
+ M += T, S += T * (i.barHeight + i.barGap), _[w] = T;
2170
+ }
2171
+ } else {
2172
+ S += k.length * (i.barHeight + i.barGap);
2173
+ for (const h of L)
2174
+ _[h] = k.filter((M) => M.type === h).length;
2175
+ }
2176
+ C.setAttribute("viewBox", "0 0 " + dt + " " + S);
2177
+ const B = m.select(`[id="${e}"]`), A = Yi().domain([
2178
+ Jn(k, function(h) {
2179
+ return h.startTime;
2180
+ }),
2181
+ Qn(k, function(h) {
2182
+ return h.endTime;
2183
+ })
2184
+ ]).rangeRound([0, dt - i.leftPadding - i.rightPadding]);
2185
+ function U(h, M) {
2186
+ const w = h.startTime, T = M.startTime;
2187
+ let v = 0;
2188
+ return w > T ? v = 1 : w < T && (v = -1), v;
2189
+ }
2190
+ d(U, "taskCompare"), k.sort(U), I(k, dt, S), Pn(B, S, dt, i.useMaxWidth), B.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
2191
+ function I(h, M, w) {
2192
+ const T = i.barHeight, v = T + i.barGap, u = i.topPadding, f = i.leftPadding, b = Gn().domain([0, L.length]).range(["#00B9FA", "#F95002"]).interpolate(hr);
2193
+ W(
2194
+ v,
2195
+ u,
2196
+ f,
2197
+ M,
2198
+ w,
2199
+ h,
2200
+ r.db.getExcludes(),
2201
+ r.db.getIncludes()
2202
+ ), j(f, u, M, w), N(h, v, u, f, T, b, M), p(v, u), g(f, u, M, w);
2203
+ }
2204
+ d(I, "makeGantt");
2205
+ function N(h, M, w, T, v, u, f) {
2206
+ h.sort((s, E) => s.vert === E.vert ? 0 : s.vert ? 1 : -1);
2207
+ const x = [...new Set(h.map((s) => s.order))].map((s) => h.find((E) => E.order === s));
2208
+ B.append("g").selectAll("rect").data(x).enter().append("rect").attr("x", 0).attr("y", function(s, E) {
2209
+ return E = s.order, E * M + w - 2;
2210
+ }).attr("width", function() {
2211
+ return f - i.rightPadding / 2;
2212
+ }).attr("height", M).attr("class", function(s) {
2213
+ for (const [E, R] of L.entries())
2214
+ if (s.type === R)
2215
+ return "section section" + E % i.numberSectionStyles;
2216
+ return "section section0";
2217
+ }).enter();
2218
+ const Y = B.append("g").selectAll("rect").data(h).enter(), o = r.db.getLinks();
2219
+ if (Y.append("rect").attr("id", function(s) {
2220
+ return s.id;
2221
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(s) {
2222
+ return s.milestone ? A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v : A(s.startTime) + T;
2223
+ }).attr("y", function(s, E) {
2224
+ return E = s.order, s.vert ? i.gridLineStartPadding : E * M + w;
2225
+ }).attr("width", function(s) {
2226
+ return s.milestone ? v : s.vert ? 0.08 * v : A(s.renderEndTime || s.endTime) - A(s.startTime);
2227
+ }).attr("height", function(s) {
2228
+ return s.vert ? k.length * (i.barHeight + i.barGap) + i.barHeight * 2 : v;
2229
+ }).attr("transform-origin", function(s, E) {
2230
+ return E = s.order, (A(s.startTime) + T + 0.5 * (A(s.endTime) - A(s.startTime))).toString() + "px " + (E * M + w + 0.5 * v).toString() + "px";
2231
+ }).attr("class", function(s) {
2232
+ const E = "task";
2233
+ let R = "";
2234
+ s.classes.length > 0 && (R = s.classes.join(" "));
2235
+ let z = 0;
2236
+ for (const [K, O] of L.entries())
2237
+ s.type === O && (z = K % i.numberSectionStyles);
2238
+ let P = "";
2239
+ return s.active ? s.crit ? P += " activeCrit" : P = " active" : s.done ? s.crit ? P = " doneCrit" : P = " done" : s.crit && (P += " crit"), P.length === 0 && (P = " task"), s.milestone && (P = " milestone " + P), s.vert && (P = " vert " + P), P += z, P += " " + R, E + P;
2240
+ }), Y.append("text").attr("id", function(s) {
2241
+ return s.id + "-text";
2242
+ }).text(function(s) {
2243
+ return s.task;
2244
+ }).attr("font-size", i.fontSize).attr("x", function(s) {
2245
+ let E = A(s.startTime), R = A(s.renderEndTime || s.endTime);
2246
+ if (s.milestone && (E += 0.5 * (A(s.endTime) - A(s.startTime)) - 0.5 * v, R = E + v), s.vert)
2247
+ return A(s.startTime) + T;
2248
+ const z = this.getBBox().width;
2249
+ return z > R - E ? R + z + 1.5 * i.leftPadding > f ? E + T - 5 : R + T + 5 : (R - E) / 2 + E + T;
2250
+ }).attr("y", function(s, E) {
2251
+ return s.vert ? i.gridLineStartPadding + k.length * (i.barHeight + i.barGap) + 60 : (E = s.order, E * M + i.barHeight / 2 + (i.fontSize / 2 - 2) + w);
2252
+ }).attr("text-height", v).attr("class", function(s) {
2253
+ const E = A(s.startTime);
2254
+ let R = A(s.endTime);
2255
+ s.milestone && (R = E + v);
2256
+ const z = this.getBBox().width;
2257
+ let P = "";
2258
+ s.classes.length > 0 && (P = s.classes.join(" "));
2259
+ let K = 0;
2260
+ for (const [st, D] of L.entries())
2261
+ s.type === D && (K = st % i.numberSectionStyles);
2262
+ let O = "";
2263
+ return s.active && (s.crit ? O = "activeCritText" + K : O = "activeText" + K), s.done ? s.crit ? O = O + " doneCritText" + K : O = O + " doneText" + K : s.crit && (O = O + " critText" + K), s.milestone && (O += " milestoneText"), s.vert && (O += " vertText"), z > R - E ? R + z + 1.5 * i.leftPadding > f ? P + " taskTextOutsideLeft taskTextOutside" + K + " " + O : P + " taskTextOutsideRight taskTextOutside" + K + " " + O + " width-" + z : P + " taskText taskText" + K + " " + O + " width-" + z;
2264
+ }), _t().securityLevel === "sandbox") {
2265
+ let s;
2266
+ s = Bt("#i" + e);
2267
+ const E = s.nodes()[0].contentDocument;
2268
+ Y.filter(function(R) {
2269
+ return o.has(R.id);
2270
+ }).each(function(R) {
2271
+ var z = E.querySelector("#" + R.id), P = E.querySelector("#" + R.id + "-text");
2272
+ const K = z.parentNode;
2273
+ var O = E.createElement("a");
2274
+ O.setAttribute("xlink:href", o.get(R.id)), O.setAttribute("target", "_top"), K.appendChild(O), O.appendChild(z), O.appendChild(P);
2275
+ });
2276
+ }
2277
+ }
2278
+ d(N, "drawRects");
2279
+ function W(h, M, w, T, v, u, f, b) {
2280
+ if (f.length === 0 && b.length === 0)
2281
+ return;
2282
+ let x, Y;
2283
+ for (const { startTime: z, endTime: P } of u)
2284
+ (x === void 0 || z < x) && (x = z), (Y === void 0 || P > Y) && (Y = P);
2285
+ if (!x || !Y)
2286
+ return;
2287
+ if (rt(Y).diff(rt(x), "year") > 5) {
2288
+ Tt.warn(
2289
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2290
+ );
2291
+ return;
2292
+ }
2293
+ const o = r.db.getDateFormat(), q = [];
2294
+ let s = null, E = rt(x);
2295
+ for (; E.valueOf() <= Y; )
2296
+ r.db.isInvalidDate(E, o, f, b) ? s ? s.end = E : s = {
2297
+ start: E,
2298
+ end: E
2299
+ } : s && (q.push(s), s = null), E = E.add(1, "d");
2300
+ B.append("g").selectAll("rect").data(q).enter().append("rect").attr("id", (z) => "exclude-" + z.start.format("YYYY-MM-DD")).attr("x", (z) => A(z.start.startOf("day")) + w).attr("y", i.gridLineStartPadding).attr("width", (z) => A(z.end.endOf("day")) - A(z.start.startOf("day"))).attr("height", v - M - i.gridLineStartPadding).attr("transform-origin", function(z, P) {
2301
+ return (A(z.start) + w + 0.5 * (A(z.end) - A(z.start))).toString() + "px " + (P * h + 0.5 * v).toString() + "px";
2302
+ }).attr("class", "exclude-range");
2303
+ }
2304
+ d(W, "drawExcludeDays");
2305
+ function Z(h, M, w, T) {
2306
+ if (w <= 0 || h > M)
2307
+ return 1 / 0;
2308
+ const v = M - h, u = rt.duration({ [T ?? "day"]: w }).asMilliseconds();
2309
+ return u <= 0 ? 1 / 0 : Math.ceil(v / u);
2310
+ }
2311
+ d(Z, "getEstimatedTickCount");
2312
+ function j(h, M, w, T) {
2313
+ const v = r.db.getDateFormat(), u = r.db.getAxisFormat();
2314
+ let f;
2315
+ u ? f = u : v === "D" ? f = "%d" : f = i.axisFormat ?? "%Y-%m-%d";
2316
+ let b = ar(A).tickSize(-T + M + i.gridLineStartPadding).tickFormat(Kt(f));
2317
+ const Y = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2318
+ r.db.getTickInterval() || i.tickInterval
2319
+ );
2320
+ if (Y !== null) {
2321
+ const o = parseInt(Y[1], 10);
2322
+ if (isNaN(o) || o <= 0)
2323
+ Tt.warn(
2324
+ `Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`
2325
+ );
2326
+ else {
2327
+ const q = Y[2], s = r.db.getWeekday() || i.weekday, E = A.domain(), R = E[0], z = E[1], P = Z(R, z, o, q);
2328
+ if (P > ye)
2329
+ Tt.warn(
2330
+ `The tick interval "${o}${q}" would generate ${P} ticks, which exceeds the maximum allowed (${ye}). This may indicate an invalid date or time range. Skipping custom tick interval.`
2331
+ );
2332
+ else
2333
+ switch (q) {
2334
+ case "millisecond":
2335
+ b.ticks(Ut.every(o));
2336
+ break;
2337
+ case "second":
2338
+ b.ticks(vt.every(o));
2339
+ break;
2340
+ case "minute":
2341
+ b.ticks($t.every(o));
2342
+ break;
2343
+ case "hour":
2344
+ b.ticks(Ot.every(o));
2345
+ break;
2346
+ case "day":
2347
+ b.ticks(bt.every(o));
2348
+ break;
2349
+ case "week":
2350
+ b.ticks(Qe[s].every(o));
2351
+ break;
2352
+ case "month":
2353
+ b.ticks(Nt.every(o));
2354
+ break;
2355
+ }
2356
+ }
2357
+ }
2358
+ if (B.append("g").attr("class", "grid").attr("transform", "translate(" + h + ", " + (T - 50) + ")").call(b).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
2359
+ let o = sr(A).tickSize(-T + M + i.gridLineStartPadding).tickFormat(Kt(f));
2360
+ if (Y !== null) {
2361
+ const q = parseInt(Y[1], 10);
2362
+ if (isNaN(q) || q <= 0)
2363
+ Tt.warn(
2364
+ `Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`
2365
+ );
2366
+ else {
2367
+ const s = Y[2], E = r.db.getWeekday() || i.weekday, R = A.domain(), z = R[0], P = R[1];
2368
+ if (Z(z, P, q, s) <= ye)
2369
+ switch (s) {
2370
+ case "millisecond":
2371
+ o.ticks(Ut.every(q));
2372
+ break;
2373
+ case "second":
2374
+ o.ticks(vt.every(q));
2375
+ break;
2376
+ case "minute":
2377
+ o.ticks($t.every(q));
2378
+ break;
2379
+ case "hour":
2380
+ o.ticks(Ot.every(q));
2381
+ break;
2382
+ case "day":
2383
+ o.ticks(bt.every(q));
2384
+ break;
2385
+ case "week":
2386
+ o.ticks(Qe[E].every(q));
2387
+ break;
2388
+ case "month":
2389
+ o.ticks(Nt.every(q));
2390
+ break;
2391
+ }
2392
+ }
2393
+ }
2394
+ B.append("g").attr("class", "grid").attr("transform", "translate(" + h + ", " + M + ")").call(o).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2395
+ }
2396
+ }
2397
+ d(j, "makeGrid");
2398
+ function p(h, M) {
2399
+ let w = 0;
2400
+ const T = Object.keys(_).map((v) => [v, _[v]]);
2401
+ B.append("g").selectAll("text").data(T).enter().append(function(v) {
2402
+ const u = v[0].split(Vn.lineBreakRegex), f = -(u.length - 1) / 2, b = F.createElementNS("http://www.w3.org/2000/svg", "text");
2403
+ b.setAttribute("dy", f + "em");
2404
+ for (const [x, Y] of u.entries()) {
2405
+ const o = F.createElementNS("http://www.w3.org/2000/svg", "tspan");
2406
+ o.setAttribute("alignment-baseline", "central"), o.setAttribute("x", "10"), x > 0 && o.setAttribute("dy", "1em"), o.textContent = Y, b.appendChild(o);
2407
+ }
2408
+ return b;
2409
+ }).attr("x", 10).attr("y", function(v, u) {
2410
+ if (u > 0)
2411
+ for (let f = 0; f < u; f++)
2412
+ return w += T[u - 1][1], v[1] * h / 2 + w * h + M;
2413
+ else
2414
+ return v[1] * h / 2 + M;
2415
+ }).attr("font-size", i.sectionFontSize).attr("class", function(v) {
2416
+ for (const [u, f] of L.entries())
2417
+ if (v[0] === f)
2418
+ return "sectionTitle sectionTitle" + u % i.numberSectionStyles;
2419
+ return "sectionTitle";
2420
+ });
2421
+ }
2422
+ d(p, "vertLabels");
2423
+ function g(h, M, w, T) {
2424
+ const v = r.db.getTodayMarker();
2425
+ if (v === "off")
2426
+ return;
2427
+ const u = B.append("g").attr("class", "today"), f = /* @__PURE__ */ new Date(), b = u.append("line");
2428
+ b.attr("x1", A(f) + h).attr("x2", A(f) + h).attr("y1", i.titleTopMargin).attr("y2", T - i.titleTopMargin).attr("class", "today"), v !== "" && b.attr("style", v.replace(/,/g, ";"));
2429
+ }
2430
+ d(g, "drawToday");
2431
+ function y(h) {
2432
+ const M = {}, w = [];
2433
+ for (let T = 0, v = h.length; T < v; ++T)
2434
+ Object.prototype.hasOwnProperty.call(M, h[T]) || (M[h[T]] = !0, w.push(h[T]));
2435
+ return w;
2436
+ }
2437
+ d(y, "checkUnique");
2438
+ }, "draw"), Ms = {
2439
+ setConf: bs,
2440
+ draw: ws
2441
+ }, Ds = /* @__PURE__ */ d((t) => `
2442
+ .mermaid-main-font {
2443
+ font-family: ${t.fontFamily};
2444
+ }
2445
+
2446
+ .exclude-range {
2447
+ fill: ${t.excludeBkgColor};
2448
+ }
2449
+
2450
+ .section {
2451
+ stroke: none;
2452
+ opacity: 0.2;
2453
+ }
2454
+
2455
+ .section0 {
2456
+ fill: ${t.sectionBkgColor};
2457
+ }
2458
+
2459
+ .section2 {
2460
+ fill: ${t.sectionBkgColor2};
2461
+ }
2462
+
2463
+ .section1,
2464
+ .section3 {
2465
+ fill: ${t.altSectionBkgColor};
2466
+ opacity: 0.2;
2467
+ }
2468
+
2469
+ .sectionTitle0 {
2470
+ fill: ${t.titleColor};
2471
+ }
2472
+
2473
+ .sectionTitle1 {
2474
+ fill: ${t.titleColor};
2475
+ }
2476
+
2477
+ .sectionTitle2 {
2478
+ fill: ${t.titleColor};
2479
+ }
2480
+
2481
+ .sectionTitle3 {
2482
+ fill: ${t.titleColor};
2483
+ }
2484
+
2485
+ .sectionTitle {
2486
+ text-anchor: start;
2487
+ font-family: ${t.fontFamily};
2488
+ }
2489
+
2490
+
2491
+ /* Grid and axis */
2492
+
2493
+ .grid .tick {
2494
+ stroke: ${t.gridColor};
2495
+ opacity: 0.8;
2496
+ shape-rendering: crispEdges;
2497
+ }
2498
+
2499
+ .grid .tick text {
2500
+ font-family: ${t.fontFamily};
2501
+ fill: ${t.textColor};
2502
+ }
2503
+
2504
+ .grid path {
2505
+ stroke-width: 0;
2506
+ }
2507
+
2508
+
2509
+ /* Today line */
2510
+
2511
+ .today {
2512
+ fill: none;
2513
+ stroke: ${t.todayLineColor};
2514
+ stroke-width: 2px;
2515
+ }
2516
+
2517
+
2518
+ /* Task styling */
2519
+
2520
+ /* Default task */
2521
+
2522
+ .task {
2523
+ stroke-width: 2;
2524
+ }
2525
+
2526
+ .taskText {
2527
+ text-anchor: middle;
2528
+ font-family: ${t.fontFamily};
2529
+ }
2530
+
2531
+ .taskTextOutsideRight {
2532
+ fill: ${t.taskTextDarkColor};
2533
+ text-anchor: start;
2534
+ font-family: ${t.fontFamily};
2535
+ }
2536
+
2537
+ .taskTextOutsideLeft {
2538
+ fill: ${t.taskTextDarkColor};
2539
+ text-anchor: end;
2540
+ }
2541
+
2542
+
2543
+ /* Special case clickable */
2544
+
2545
+ .task.clickable {
2546
+ cursor: pointer;
2547
+ }
2548
+
2549
+ .taskText.clickable {
2550
+ cursor: pointer;
2551
+ fill: ${t.taskTextClickableColor} !important;
2552
+ font-weight: bold;
2553
+ }
2554
+
2555
+ .taskTextOutsideLeft.clickable {
2556
+ cursor: pointer;
2557
+ fill: ${t.taskTextClickableColor} !important;
2558
+ font-weight: bold;
2559
+ }
2560
+
2561
+ .taskTextOutsideRight.clickable {
2562
+ cursor: pointer;
2563
+ fill: ${t.taskTextClickableColor} !important;
2564
+ font-weight: bold;
2565
+ }
2566
+
2567
+
2568
+ /* Specific task settings for the sections*/
2569
+
2570
+ .taskText0,
2571
+ .taskText1,
2572
+ .taskText2,
2573
+ .taskText3 {
2574
+ fill: ${t.taskTextColor};
2575
+ }
2576
+
2577
+ .task0,
2578
+ .task1,
2579
+ .task2,
2580
+ .task3 {
2581
+ fill: ${t.taskBkgColor};
2582
+ stroke: ${t.taskBorderColor};
2583
+ }
2584
+
2585
+ .taskTextOutside0,
2586
+ .taskTextOutside2
2587
+ {
2588
+ fill: ${t.taskTextOutsideColor};
2589
+ }
2590
+
2591
+ .taskTextOutside1,
2592
+ .taskTextOutside3 {
2593
+ fill: ${t.taskTextOutsideColor};
2594
+ }
2595
+
2596
+
2597
+ /* Active task */
2598
+
2599
+ .active0,
2600
+ .active1,
2601
+ .active2,
2602
+ .active3 {
2603
+ fill: ${t.activeTaskBkgColor};
2604
+ stroke: ${t.activeTaskBorderColor};
2605
+ }
2606
+
2607
+ .activeText0,
2608
+ .activeText1,
2609
+ .activeText2,
2610
+ .activeText3 {
2611
+ fill: ${t.taskTextDarkColor} !important;
2612
+ }
2613
+
2614
+
2615
+ /* Completed task */
2616
+
2617
+ .done0,
2618
+ .done1,
2619
+ .done2,
2620
+ .done3 {
2621
+ stroke: ${t.doneTaskBorderColor};
2622
+ fill: ${t.doneTaskBkgColor};
2623
+ stroke-width: 2;
2624
+ }
2625
+
2626
+ .doneText0,
2627
+ .doneText1,
2628
+ .doneText2,
2629
+ .doneText3 {
2630
+ fill: ${t.taskTextDarkColor} !important;
2631
+ }
2632
+
2633
+
2634
+ /* Tasks on the critical line */
2635
+
2636
+ .crit0,
2637
+ .crit1,
2638
+ .crit2,
2639
+ .crit3 {
2640
+ stroke: ${t.critBorderColor};
2641
+ fill: ${t.critBkgColor};
2642
+ stroke-width: 2;
2643
+ }
2644
+
2645
+ .activeCrit0,
2646
+ .activeCrit1,
2647
+ .activeCrit2,
2648
+ .activeCrit3 {
2649
+ stroke: ${t.critBorderColor};
2650
+ fill: ${t.activeTaskBkgColor};
2651
+ stroke-width: 2;
2652
+ }
2653
+
2654
+ .doneCrit0,
2655
+ .doneCrit1,
2656
+ .doneCrit2,
2657
+ .doneCrit3 {
2658
+ stroke: ${t.critBorderColor};
2659
+ fill: ${t.doneTaskBkgColor};
2660
+ stroke-width: 2;
2661
+ cursor: pointer;
2662
+ shape-rendering: crispEdges;
2663
+ }
2664
+
2665
+ .milestone {
2666
+ transform: rotate(45deg) scale(0.8,0.8);
2667
+ }
2668
+
2669
+ .milestoneText {
2670
+ font-style: italic;
2671
+ }
2672
+ .doneCritText0,
2673
+ .doneCritText1,
2674
+ .doneCritText2,
2675
+ .doneCritText3 {
2676
+ fill: ${t.taskTextDarkColor} !important;
2677
+ }
2678
+
2679
+ .vert {
2680
+ stroke: ${t.vertLineColor};
2681
+ }
2682
+
2683
+ .vertText {
2684
+ font-size: 15px;
2685
+ text-anchor: middle;
2686
+ fill: ${t.vertLineColor} !important;
2687
+ }
2688
+
2689
+ .activeCritText0,
2690
+ .activeCritText1,
2691
+ .activeCritText2,
2692
+ .activeCritText3 {
2693
+ fill: ${t.taskTextDarkColor} !important;
2694
+ }
2695
+
2696
+ .titleText {
2697
+ text-anchor: middle;
2698
+ font-size: 18px;
2699
+ fill: ${t.titleColor || t.textColor};
2700
+ font-family: ${t.fontFamily};
2701
+ }
2702
+ `, "getStyles"), Cs = Ds, Vs = {
2703
+ parser: Oi,
2704
+ db: Ts,
2705
+ renderer: Ms,
2706
+ styles: Cs
2707
+ };
2708
+ export {
2709
+ Vs as diagram
2710
+ };