@foris/ai-agent 0.2.0 → 0.3.0

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