@pb33f/cowboy-components 0.7.18 → 0.8.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 (532) hide show
  1. package/dist/_basePickBy-DtTwxTrV.js +151 -0
  2. package/dist/_baseUniq-C5Y4WFmx.js +614 -0
  3. package/dist/arc-a-7w7y90.js +83 -0
  4. package/dist/architecture-U656AL7Q-c_zxypEp.js +5 -0
  5. package/dist/architectureDiagram-VXUJARFQ-CIhQJ6xS.js +4661 -0
  6. package/dist/assets/elk-layout.worker-B71_NI2D.js +1 -0
  7. package/dist/assets/equalizer.worker-A8HFNy4g.js +1 -0
  8. package/dist/assets/graph-dependent.worker-BgWuMZsb.js +1 -0
  9. package/dist/assets/rule-documentation.worker-BCKuwSgZ.js +1 -0
  10. package/dist/assets/search-graph.worker-Cwqb-ecv.js +1 -0
  11. package/dist/blockDiagram-VD42YOAC-BLl5ID-l.js +2261 -0
  12. package/dist/c4Diagram-YG6GDRKO-BOGfb13x.js +1580 -0
  13. package/dist/channel-DYeI56io.js +5 -0
  14. package/dist/chunk-4BX2VUAB-BeHGB7ON.js +8 -0
  15. package/dist/chunk-55IACEB6-DgHUzWsw.js +8 -0
  16. package/dist/chunk-B4BG7PRW-Vs7GiQMf.js +1375 -0
  17. package/dist/chunk-DI55MBZ5-CHjdGXx0.js +1370 -0
  18. package/dist/chunk-FMBD7UC4-D-H9-bHN.js +19 -0
  19. package/dist/chunk-QN33PNHL-D7uE2r1Y.js +19 -0
  20. package/dist/chunk-QZHKN3VN-Cp3sUp7e.js +15 -0
  21. package/dist/chunk-TZMSLE5B-BmXGcXo9.js +64 -0
  22. package/dist/classDiagram-2ON5EDUG-9ilqiDEi.js +16 -0
  23. package/dist/classDiagram-v2-WZHVMYZB-9ilqiDEi.js +16 -0
  24. package/dist/clone-CybyMoa0.js +8 -0
  25. package/dist/components/attention-box/attention-box.css.js +8 -0
  26. package/dist/components/auth/login-button.js +1 -1
  27. package/dist/components/auth/login-panel.d.ts +4 -0
  28. package/dist/components/auth/login-panel.js +12 -4
  29. package/dist/components/auth/oauth-login.css.js +4 -0
  30. package/dist/components/auth/oauth-login.d.ts +2 -0
  31. package/dist/components/auth/oauth-login.js +12 -3
  32. package/dist/components/brokerable.d.ts +21 -0
  33. package/dist/components/brokerable.js +39 -0
  34. package/dist/components/bundle-toolbar/bundle-toolbar.css.js +110 -0
  35. package/dist/components/bundle-toolbar/bundle-toolbar.d.ts +21 -0
  36. package/dist/components/bundle-toolbar/bundle-toolbar.js +93 -0
  37. package/dist/components/changelog/changelog.css.js +2 -0
  38. package/dist/components/changelog/changelog.d.ts +2 -0
  39. package/dist/components/changelog/changelog.js +10 -1
  40. package/dist/components/changelog/release.css.js +5 -1
  41. package/dist/components/charts/beefy-chart.js +0 -2
  42. package/dist/components/charts/doughnut-chart.d.ts +5 -1
  43. package/dist/components/charts/doughnut-chart.js +20 -1
  44. package/dist/components/credit-ticker/credit-ticker.d.ts +3 -0
  45. package/dist/components/credit-ticker/credit-ticker.js +20 -4
  46. package/dist/components/details-drawer/details-drawer.css.d.ts +2 -0
  47. package/dist/components/{problem-list → details-drawer}/details-drawer.css.js +18 -3
  48. package/dist/components/details-drawer/generic-details-drawer.css.d.ts +1 -0
  49. package/dist/components/details-drawer/generic-details-drawer.css.js +219 -0
  50. package/dist/components/details-drawer/generic-details-drawer.d.ts +38 -0
  51. package/dist/components/details-drawer/generic-details-drawer.js +245 -0
  52. package/dist/components/details-drawer/handlers/diagram-handler.d.ts +35 -0
  53. package/dist/components/details-drawer/handlers/diagram-handler.js +248 -0
  54. package/dist/components/details-drawer/handlers/documentation-handler.d.ts +11 -0
  55. package/dist/components/details-drawer/handlers/documentation-handler.js +46 -0
  56. package/dist/components/details-drawer/handlers/example-handler.d.ts +18 -0
  57. package/dist/components/details-drawer/handlers/example-handler.js +146 -0
  58. package/dist/components/details-drawer/handlers/howto-handler.d.ts +11 -0
  59. package/dist/components/details-drawer/handlers/howto-handler.js +36 -0
  60. package/dist/components/details-drawer/handlers/markdown-handler.d.ts +12 -0
  61. package/dist/components/details-drawer/handlers/markdown-handler.js +54 -0
  62. package/dist/components/editor/editor-breadcrumb.css.js +1 -1
  63. package/dist/components/editor/editor.css.js +42 -0
  64. package/dist/components/editor/editor.d.ts +29 -3
  65. package/dist/components/editor/editor.js +495 -73
  66. package/dist/components/github/github-workspace-view.css.d.ts +2 -0
  67. package/dist/components/github/github-workspace-view.css.js +165 -0
  68. package/dist/components/github/github-workspace-view.d.ts +59 -0
  69. package/dist/components/github/github-workspace-view.js +525 -0
  70. package/dist/components/global-task/global-task-view.css.d.ts +2 -0
  71. package/dist/components/global-task/global-task-view.css.js +392 -0
  72. package/dist/components/global-task/global-task-view.d.ts +48 -0
  73. package/dist/components/global-task/global-task-view.js +359 -0
  74. package/dist/components/header/header.css.js +9 -1
  75. package/dist/components/http-method/http-method.css.js +5 -1
  76. package/dist/components/indeterminate-loader/indeterminate-loader.css.d.ts +2 -0
  77. package/dist/components/indeterminate-loader/indeterminate-loader.css.js +135 -0
  78. package/dist/components/indeterminate-loader/indeterminate-loader.d.ts +35 -0
  79. package/dist/components/indeterminate-loader/indeterminate-loader.js +201 -0
  80. package/dist/components/kv-view/kv-view.css.js +2 -0
  81. package/dist/components/kv-view/kv-view.js +0 -1
  82. package/dist/components/logo-wall/logo-wall.css.js +9 -0
  83. package/dist/components/manage-ruleset/manage-ruleset.css.js +14 -1
  84. package/dist/components/manage-ruleset/manage-ruleset.d.ts +1 -0
  85. package/dist/components/manage-ruleset/manage-ruleset.js +54 -22
  86. package/dist/components/manage-ruleset/rule-action.css.js +2 -0
  87. package/dist/components/manage-ruleset/rule-action.d.ts +10 -3
  88. package/dist/components/manage-ruleset/rule-action.js +118 -129
  89. package/dist/components/manage-ruleset/rule-input.d.ts +3 -1
  90. package/dist/components/manage-ruleset/rule-input.js +38 -34
  91. package/dist/components/manage-ruleset/rule.css.js +15 -1
  92. package/dist/components/manage-ruleset/rule.d.ts +4 -1
  93. package/dist/components/manage-ruleset/rule.js +44 -17
  94. package/dist/components/mermaid/mermaid-renderer.css.d.ts +1 -0
  95. package/dist/components/mermaid/mermaid-renderer.css.js +121 -0
  96. package/dist/components/mermaid/mermaid-renderer.d.ts +75 -0
  97. package/dist/components/mermaid/mermaid-renderer.js +485 -0
  98. package/dist/components/model-icon/doctor-icon.d.ts +9 -0
  99. package/dist/components/model-icon/doctor-icon.js +60 -0
  100. package/dist/components/model-icon/model-icon.d.ts +2 -1
  101. package/dist/components/model-icon/model-icon.js +13 -1
  102. package/dist/components/model-renderer/change.css.js +22 -8
  103. package/dist/components/model-renderer/changes.d.ts +1 -0
  104. package/dist/components/model-renderer/changes.js +47 -32
  105. package/dist/components/model-renderer/clickable-ref.d.ts +9 -3
  106. package/dist/components/model-renderer/clickable-ref.js +49 -10
  107. package/dist/components/model-renderer/components.d.ts +2 -0
  108. package/dist/components/model-renderer/components.js +196 -116
  109. package/dist/components/model-renderer/contact.js +2 -2
  110. package/dist/components/model-renderer/description.css.js +2 -0
  111. package/dist/components/model-renderer/document.d.ts +1 -0
  112. package/dist/components/model-renderer/document.js +14 -9
  113. package/dist/components/model-renderer/encoding.d.ts +2 -0
  114. package/dist/components/model-renderer/encoding.js +16 -7
  115. package/dist/components/model-renderer/example.css.js +5 -1
  116. package/dist/components/model-renderer/example.d.ts +4 -1
  117. package/dist/components/model-renderer/example.js +72 -118
  118. package/dist/components/model-renderer/extensions.d.ts +2 -0
  119. package/dist/components/model-renderer/extensions.js +11 -2
  120. package/dist/components/model-renderer/external-docs.d.ts +2 -0
  121. package/dist/components/model-renderer/external-docs.js +13 -4
  122. package/dist/components/model-renderer/has-changes.js +3 -3
  123. package/dist/components/model-renderer/header.d.ts +2 -0
  124. package/dist/components/model-renderer/header.js +27 -14
  125. package/dist/components/model-renderer/info.d.ts +2 -0
  126. package/dist/components/model-renderer/info.js +20 -7
  127. package/dist/components/model-renderer/link.d.ts +2 -0
  128. package/dist/components/model-renderer/link.js +27 -10
  129. package/dist/components/model-renderer/media-type.js +2 -2
  130. package/dist/components/model-renderer/model-badge.d.ts +11 -0
  131. package/dist/components/model-renderer/model-badge.js +59 -0
  132. package/dist/components/model-renderer/model-shared.css.js +14 -2
  133. package/dist/components/model-renderer/oauth-flows.js +4 -4
  134. package/dist/components/model-renderer/operation.d.ts +2 -1
  135. package/dist/components/model-renderer/operation.js +37 -16
  136. package/dist/components/model-renderer/param-location.js +3 -3
  137. package/dist/components/model-renderer/parameter.d.ts +2 -0
  138. package/dist/components/model-renderer/parameter.js +28 -15
  139. package/dist/components/model-renderer/path-item.d.ts +3 -0
  140. package/dist/components/model-renderer/path-item.js +52 -80
  141. package/dist/components/model-renderer/paths.d.ts +2 -0
  142. package/dist/components/model-renderer/paths.js +10 -3
  143. package/dist/components/model-renderer/problem-node.js +10 -10
  144. package/dist/components/model-renderer/rendered-node.css.js +35 -6
  145. package/dist/components/model-renderer/rendered-node.d.ts +14 -4
  146. package/dist/components/model-renderer/rendered-node.js +121 -58
  147. package/dist/components/model-renderer/rendered-property.js +4 -4
  148. package/dist/components/model-renderer/request-body.d.ts +2 -0
  149. package/dist/components/model-renderer/request-body.js +16 -9
  150. package/dist/components/model-renderer/response.d.ts +2 -0
  151. package/dist/components/model-renderer/response.js +35 -17
  152. package/dist/components/model-renderer/schema.css.js +10 -1
  153. package/dist/components/model-renderer/schema.d.ts +3 -2
  154. package/dist/components/model-renderer/schema.js +127 -129
  155. package/dist/components/model-renderer/security-scheme.js +3 -3
  156. package/dist/components/model-renderer/server.js +18 -8
  157. package/dist/components/model-renderer/tag.js +1 -1
  158. package/dist/components/model-tree/tree.css.js +21 -10
  159. package/dist/components/model-tree/tree.d.ts +39 -22
  160. package/dist/components/model-tree/tree.js +230 -167
  161. package/dist/components/paginator/paginator-navigator.css.js +9 -5
  162. package/dist/components/paginator/paginator-navigator.js +6 -6
  163. package/dist/components/paginator/paginator.css.js +2 -0
  164. package/dist/components/paginator/paginator.js +5 -8
  165. package/dist/components/percent-bar/percent-bar.css.js +133 -13
  166. package/dist/components/percent-bar/percent-bar.d.ts +2 -0
  167. package/dist/components/percent-bar/percent-bar.js +28 -24
  168. package/dist/components/premium-gate/premium-gate.css.d.ts +1 -0
  169. package/dist/components/premium-gate/premium-gate.css.js +117 -0
  170. package/dist/components/premium-gate/premium-gate.d.ts +49 -0
  171. package/dist/components/premium-gate/premium-gate.js +336 -0
  172. package/dist/components/problem-list/problem-list.css.js +72 -1
  173. package/dist/components/problem-list/problem-list.d.ts +17 -9
  174. package/dist/components/problem-list/problem-list.js +222 -226
  175. package/dist/components/problem-list/problem-mainview.css.js +12 -2
  176. package/dist/components/problem-list/problem-mainview.d.ts +3 -0
  177. package/dist/components/problem-list/problem-mainview.js +37 -17
  178. package/dist/components/problem-list/problem-toolbar.css.js +10 -7
  179. package/dist/components/problems-overview/diagnostic-evaluation.css.js +11 -1
  180. package/dist/components/problems-overview/diagnostic-evaluation.js +6 -7
  181. package/dist/components/problems-overview/document-statistic.css.js +6 -0
  182. package/dist/components/problems-overview/document-statistic.js +1 -1
  183. package/dist/components/problems-overview/problem-overview-group.js +5 -5
  184. package/dist/components/problems-overview/problem-statistic.css.js +24 -5
  185. package/dist/components/problems-overview/problem-statistic.js +15 -6
  186. package/dist/components/problems-overview/problem-statistics.css.js +4 -4
  187. package/dist/components/problems-overview/problem-statistics.js +29 -25
  188. package/dist/components/problems-overview/problems-overview.css.js +2 -2
  189. package/dist/components/property-view/property-view.css.js +2 -0
  190. package/dist/components/render-json-path/render-json-path.css.js +11 -3
  191. package/dist/components/render-json-path/render-json-path.js +3 -0
  192. package/dist/components/render-operation-path/render-operation-path.css.js +9 -0
  193. package/dist/components/render-operation-path/render-operation-path.js +7 -22
  194. package/dist/components/rodeo/rodeo.d.ts +1 -0
  195. package/dist/components/rodeo/rodeo.js +5 -0
  196. package/dist/components/rodeo/roundup.js +2 -2
  197. package/dist/components/rodeo/statistic.css.js +25 -2
  198. package/dist/components/rodeo/statistic.js +0 -4
  199. package/dist/components/shader-canvas/shader-canvas.css.d.ts +2 -0
  200. package/dist/components/shader-canvas/shader-canvas.css.js +66 -0
  201. package/dist/components/shader-canvas/shader-canvas.d.ts +36 -0
  202. package/dist/components/shader-canvas/shader-canvas.js +363 -0
  203. package/dist/components/shaders/flowing-waves-shader.d.ts +2 -0
  204. package/dist/components/shaders/flowing-waves-shader.js +70 -0
  205. package/dist/components/shaders/neon-canyon-shader.d.ts +2 -0
  206. package/dist/components/shaders/neon-canyon-shader.js +265 -0
  207. package/dist/components/shaders/neon-lines-shader.d.ts +2 -0
  208. package/dist/components/shaders/neon-lines-shader.js +181 -0
  209. package/dist/components/shaders/neon-squircles-shader.d.ts +2 -0
  210. package/dist/components/shaders/neon-squircles-shader.js +56 -0
  211. package/dist/components/shaders/retro-grid-shader.d.ts +2 -0
  212. package/dist/components/shaders/retro-grid-shader.js +53 -0
  213. package/dist/components/shaders/shader-base.d.ts +9 -0
  214. package/dist/components/shaders/shader-base.js +11 -0
  215. package/dist/components/terminal/terminal-example.css.js +4 -0
  216. package/dist/components/terminal/terminal-example.js +2 -3
  217. package/dist/components/terminal-emulator/terminal-emulator.css.js +12 -2
  218. package/dist/components/terminal-emulator/terminal-emulator.d.ts +7 -1
  219. package/dist/components/terminal-emulator/terminal-emulator.js +10 -5
  220. package/dist/components/the-doctor/doctor-controls-panel.css.d.ts +2 -0
  221. package/dist/components/the-doctor/doctor-controls-panel.css.js +53 -0
  222. package/dist/components/the-doctor/doctor-controls-panel.d.ts +20 -0
  223. package/dist/components/the-doctor/doctor-controls-panel.js +78 -0
  224. package/dist/components/the-doctor/doctor-editor-panel.css.d.ts +2 -0
  225. package/dist/components/the-doctor/doctor-editor-panel.css.js +209 -0
  226. package/dist/components/the-doctor/doctor-editor-panel.d.ts +41 -0
  227. package/dist/components/the-doctor/doctor-editor-panel.js +188 -0
  228. package/dist/components/the-doctor/doctor-navigator-panel.css.d.ts +2 -0
  229. package/dist/components/the-doctor/doctor-navigator-panel.css.js +134 -0
  230. package/dist/components/the-doctor/doctor-navigator-panel.d.ts +35 -0
  231. package/dist/components/the-doctor/doctor-navigator-panel.js +117 -0
  232. package/dist/components/the-doctor/doctor-sidebar-panel.css.d.ts +2 -0
  233. package/dist/components/the-doctor/doctor-sidebar-panel.css.js +143 -0
  234. package/dist/components/the-doctor/doctor-sidebar-panel.d.ts +31 -0
  235. package/dist/components/the-doctor/doctor-sidebar-panel.js +131 -0
  236. package/dist/components/the-doctor/doctor-url-overlay.css.d.ts +2 -0
  237. package/dist/components/the-doctor/doctor-url-overlay.css.js +59 -0
  238. package/dist/components/the-doctor/doctor-url-overlay.d.ts +23 -0
  239. package/dist/components/the-doctor/doctor-url-overlay.js +82 -0
  240. package/dist/components/the-doctor/nuke-workspace.js +4 -3
  241. package/dist/components/the-doctor/settings.css.js +2 -0
  242. package/dist/components/the-doctor/settings.js +5 -8
  243. package/dist/components/the-doctor/status-bar.d.ts +2 -2
  244. package/dist/components/the-doctor/status-bar.js +32 -31
  245. package/dist/components/the-doctor/the-doctor.css.js +47 -238
  246. package/dist/components/the-doctor/the-doctor.d.ts +149 -37
  247. package/dist/components/the-doctor/the-doctor.js +958 -528
  248. package/dist/components/the-doctor/upload-archive.css.js +8 -2
  249. package/dist/components/the-doctor/upload-archive.js +2 -2
  250. package/dist/components/theme-switcher/theme-switcher.js +5 -1
  251. package/dist/components/time-vortex/change-list-item.css.js +18 -4
  252. package/dist/components/time-vortex/change-list-item.d.ts +1 -0
  253. package/dist/components/time-vortex/change-list-item.js +4 -3
  254. package/dist/components/time-vortex/history-picker.css.js +60 -1
  255. package/dist/components/time-vortex/history-picker.d.ts +7 -1
  256. package/dist/components/time-vortex/history-picker.js +109 -5
  257. package/dist/components/time-vortex/tardis-control.css.js +339 -14
  258. package/dist/components/time-vortex/tardis-control.d.ts +31 -3
  259. package/dist/components/time-vortex/tardis-control.js +296 -58
  260. package/dist/components/time-vortex/time-vortex.d.ts +8 -2
  261. package/dist/components/time-vortex/time-vortex.js +54 -13
  262. package/dist/components/toast/toast-component.css.js +1 -0
  263. package/dist/components/toast/toast-component.d.ts +1 -0
  264. package/dist/components/toast/toast-component.js +23 -8
  265. package/dist/components/toast/toast-manager.d.ts +5 -0
  266. package/dist/components/toast/toast-manager.js +29 -7
  267. package/dist/components/visualizer/edge.d.ts +11 -1
  268. package/dist/components/visualizer/edge.js +27 -22
  269. package/dist/components/visualizer/equalizer.css.js +118 -76
  270. package/dist/components/visualizer/equalizer.d.ts +24 -45
  271. package/dist/components/visualizer/equalizer.js +262 -363
  272. package/dist/components/visualizer/explorer.d.ts +94 -14
  273. package/dist/components/visualizer/explorer.js +580 -393
  274. package/dist/components/visualizer/foreign-object.d.ts +12 -2
  275. package/dist/components/visualizer/foreign-object.js +21 -10
  276. package/dist/components/visualizer/key.js +12 -1
  277. package/dist/components/visualizer/nodes/callback.d.ts +2 -1
  278. package/dist/components/visualizer/nodes/callback.js +2 -2
  279. package/dist/components/visualizer/nodes/components.d.ts +2 -1
  280. package/dist/components/visualizer/nodes/components.js +2 -2
  281. package/dist/components/visualizer/nodes/contact.d.ts +2 -1
  282. package/dist/components/visualizer/nodes/contact.js +2 -2
  283. package/dist/components/visualizer/nodes/document.d.ts +2 -1
  284. package/dist/components/visualizer/nodes/document.js +2 -2
  285. package/dist/components/visualizer/nodes/graph-node.d.ts +14 -3
  286. package/dist/components/visualizer/nodes/graph-node.js +94 -43
  287. package/dist/components/visualizer/nodes/header.d.ts +2 -1
  288. package/dist/components/visualizer/nodes/header.js +2 -2
  289. package/dist/components/visualizer/nodes/info.d.ts +2 -1
  290. package/dist/components/visualizer/nodes/info.js +2 -2
  291. package/dist/components/visualizer/nodes/license.d.ts +2 -1
  292. package/dist/components/visualizer/nodes/license.js +2 -2
  293. package/dist/components/visualizer/nodes/link.d.ts +2 -1
  294. package/dist/components/visualizer/nodes/link.js +2 -2
  295. package/dist/components/visualizer/nodes/media-type.d.ts +2 -1
  296. package/dist/components/visualizer/nodes/media-type.js +2 -2
  297. package/dist/components/visualizer/nodes/operation.d.ts +2 -1
  298. package/dist/components/visualizer/nodes/operation.js +3 -4
  299. package/dist/components/visualizer/nodes/parameter.d.ts +3 -1
  300. package/dist/components/visualizer/nodes/parameter.js +3 -4
  301. package/dist/components/visualizer/nodes/path-item.d.ts +2 -1
  302. package/dist/components/visualizer/nodes/path-item.js +2 -2
  303. package/dist/components/visualizer/nodes/request-body.d.ts +2 -1
  304. package/dist/components/visualizer/nodes/request-body.js +2 -2
  305. package/dist/components/visualizer/nodes/response.d.ts +2 -1
  306. package/dist/components/visualizer/nodes/response.js +2 -2
  307. package/dist/components/visualizer/nodes/schema.d.ts +2 -1
  308. package/dist/components/visualizer/nodes/schema.js +64 -9
  309. package/dist/components/visualizer/nodes/security-scheme.d.ts +2 -1
  310. package/dist/components/visualizer/nodes/security-scheme.js +2 -2
  311. package/dist/components/visualizer/nodes/server.d.ts +2 -1
  312. package/dist/components/visualizer/nodes/server.js +3 -4
  313. package/dist/components/visualizer/nodes/tag.d.ts +2 -1
  314. package/dist/components/visualizer/nodes/tag.js +4 -5
  315. package/dist/components/visualizer/nodes/xml.d.ts +2 -1
  316. package/dist/components/visualizer/nodes/xml.js +2 -2
  317. package/dist/components/visualizer/orientation-controls.d.ts +6 -1
  318. package/dist/components/visualizer/orientation-controls.js +65 -7
  319. package/dist/components/visualizer/search.d.ts +2 -1
  320. package/dist/components/visualizer/search.js +22 -29
  321. package/dist/components/visualizer/shared.css.js +55 -18
  322. package/dist/components/visualizer/templates/svg-markers.d.ts +2 -0
  323. package/dist/components/visualizer/templates/svg-markers.js +73 -0
  324. package/dist/components/waiting-line/waiting-line.css.d.ts +2 -0
  325. package/dist/components/waiting-line/waiting-line.css.js +26 -0
  326. package/dist/components/waiting-line/waiting-line.d.ts +30 -0
  327. package/dist/components/waiting-line/waiting-line.js +424 -0
  328. package/dist/components/workspaces/workspace-view.css.js +89 -8
  329. package/dist/components/workspaces/workspace-view.d.ts +8 -1
  330. package/dist/components/workspaces/workspace-view.js +77 -25
  331. package/dist/controllers/auth-controller.d.ts +9 -0
  332. package/dist/controllers/auth-controller.js +12 -5
  333. package/dist/controllers/broker-controller.d.ts +30 -4
  334. package/dist/controllers/broker-controller.js +148 -25
  335. package/dist/controllers/bundle-controller.d.ts +21 -0
  336. package/dist/controllers/bundle-controller.js +122 -0
  337. package/dist/controllers/countdown-controller.d.ts +17 -0
  338. package/dist/controllers/countdown-controller.js +59 -0
  339. package/dist/controllers/diagnostic-controller.d.ts +18 -5
  340. package/dist/controllers/diagnostic-controller.js +206 -218
  341. package/dist/controllers/diagramatron-controller.d.ts +33 -0
  342. package/dist/controllers/diagramatron-controller.js +128 -0
  343. package/dist/controllers/docs-controller.d.ts +11 -5
  344. package/dist/controllers/docs-controller.js +97 -97
  345. package/dist/controllers/github-controller.d.ts +47 -0
  346. package/dist/controllers/github-controller.js +494 -0
  347. package/dist/controllers/global-task-controller.d.ts +46 -0
  348. package/dist/controllers/global-task-controller.js +352 -0
  349. package/dist/controllers/model-controller.d.ts +26 -4
  350. package/dist/controllers/model-controller.js +98 -62
  351. package/dist/controllers/node-clicker-controller.d.ts +121 -4
  352. package/dist/controllers/node-clicker-controller.js +526 -253
  353. package/dist/controllers/problem-controller.d.ts +11 -4
  354. package/dist/controllers/problem-controller.js +98 -39
  355. package/dist/controllers/rolodex-controller.d.ts +8 -3
  356. package/dist/controllers/rolodex-controller.js +117 -83
  357. package/dist/controllers/rule-controller.d.ts +12 -5
  358. package/dist/controllers/rule-controller.js +154 -161
  359. package/dist/controllers/spec-controller.d.ts +16 -4
  360. package/dist/controllers/spec-controller.js +91 -62
  361. package/dist/controllers/state-controller.d.ts +4 -3
  362. package/dist/controllers/state-controller.js +201 -154
  363. package/dist/controllers/tab-cache-controller.d.ts +29 -0
  364. package/dist/controllers/tab-cache-controller.js +68 -0
  365. package/dist/controllers/timeline-controller.d.ts +18 -0
  366. package/dist/controllers/timeline-controller.js +129 -0
  367. package/dist/controllers/wallet-controller.d.ts +3 -3
  368. package/dist/controllers/wallet-controller.js +22 -41
  369. package/dist/controllers/workspace-controller.d.ts +10 -4
  370. package/dist/controllers/workspace-controller.js +67 -22
  371. package/dist/cose-bilkent-S5V4N54A-2TG-C-n3.js +2608 -0
  372. package/dist/cowboy-components-BcyXo9oX.js +68425 -0
  373. package/dist/cowboy-components.css +1 -1
  374. package/dist/cowboy-components.umd.cjs +14117 -6601
  375. package/dist/css/alerts.css.js +2 -0
  376. package/dist/css/badges.css.js +2 -0
  377. package/dist/css/button.css.js +34 -1
  378. package/dist/css/cowboy-components.css +34 -0
  379. package/dist/css/dialog.css.js +11 -2
  380. package/dist/css/filter.css.js +17 -5
  381. package/dist/css/forms.css.js +14 -0
  382. package/dist/css/pb33f-theme.css +87 -16
  383. package/dist/css/syntax.css.js +5 -0
  384. package/dist/css/tabs.css.js +19 -2
  385. package/dist/css/tooltip.css.js +4 -0
  386. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  387. package/dist/dagre-6UL2VRFP-BIlmTbhO.js +444 -0
  388. package/dist/defaultLocale-D7EN2tov.js +171 -0
  389. package/dist/diagram-PSM6KHXK-CeWby24E.js +531 -0
  390. package/dist/diagram-QEK2KX5R-DGonyVCK.js +217 -0
  391. package/dist/diagram-S2PKOQOG-mGn-y1uX.js +142 -0
  392. package/dist/erDiagram-Q2GNP2WA-BlBBw4Mz.js +841 -0
  393. package/dist/events/doctor.d.ts +63 -9
  394. package/dist/events/doctor.js +29 -1
  395. package/dist/events/drawer-events.d.ts +7 -0
  396. package/dist/events/drawer-events.js +3 -0
  397. package/dist/events/theme.d.ts +4 -0
  398. package/dist/events/theme.js +1 -0
  399. package/dist/factories/explorer-component-factory.d.ts +49 -0
  400. package/dist/factories/explorer-component-factory.js +205 -0
  401. package/dist/factories/state-controller-deps.factory.d.ts +88 -0
  402. package/dist/factories/state-controller-deps.factory.js +116 -0
  403. package/dist/flowDiagram-NV44I4VS-BlLzzy1C.js +1620 -0
  404. package/dist/ganttDiagram-LVOFAZNH-BoQtPC8k.js +2505 -0
  405. package/dist/gitGraph-F6HP7TQM-CShNSlrW.js +5 -0
  406. package/dist/gitGraphDiagram-NY62KEGX-BdpWBgHy.js +699 -0
  407. package/dist/graph-D9HS4Ahd.js +247 -0
  408. package/dist/helpers/event-wiring.d.ts +72 -0
  409. package/dist/helpers/event-wiring.js +58 -0
  410. package/dist/helpers/file-size-formatter.d.ts +3 -0
  411. package/dist/helpers/file-size-formatter.js +15 -0
  412. package/dist/helpers/filename-colorizer.d.ts +5 -0
  413. package/dist/helpers/filename-colorizer.js +30 -0
  414. package/dist/helpers/navigation-helper.d.ts +54 -0
  415. package/dist/helpers/navigation-helper.js +159 -0
  416. package/dist/helpers/typed-events.d.ts +1 -0
  417. package/dist/helpers/typed-events.js +3 -0
  418. package/dist/info-NVLQJR56-Bpi6I8up.js +5 -0
  419. package/dist/infoDiagram-F6ZHWCRC-DmhhbuMJ.js +24 -0
  420. package/dist/init-DjUOC4st.js +16 -0
  421. package/dist/interfaces/bundle-interfaces.d.ts +7 -0
  422. package/dist/interfaces/bundle-interfaces.js +1 -0
  423. package/dist/interfaces/doctor-interfaces.d.ts +506 -0
  424. package/dist/interfaces/doctor-interfaces.js +1 -0
  425. package/dist/journeyDiagram-XKPGCS4Q-CpkhK8vl.js +834 -0
  426. package/dist/kanban-definition-3W4ZIXB7-BFbucfYE.js +719 -0
  427. package/dist/katex-SsTUIUTC.js +11688 -0
  428. package/dist/layout-B8H1_UrM.js +1324 -0
  429. package/dist/linear-Bo0rJUSQ.js +259 -0
  430. package/dist/managers/drag-handler.d.ts +28 -0
  431. package/dist/managers/drag-handler.js +64 -0
  432. package/dist/managers/event-registration-manager.d.ts +17 -0
  433. package/dist/managers/event-registration-manager.js +34 -0
  434. package/dist/managers/expansion-manager.d.ts +58 -0
  435. package/dist/managers/expansion-manager.js +189 -0
  436. package/dist/managers/layout-filter-manager.d.ts +31 -0
  437. package/dist/managers/layout-filter-manager.js +109 -0
  438. package/dist/managers/panel-divider-manager.d.ts +33 -0
  439. package/dist/managers/panel-divider-manager.js +71 -0
  440. package/dist/managers/view-state-manager.d.ts +48 -0
  441. package/dist/managers/view-state-manager.js +101 -0
  442. package/dist/managers/viewport-manager.d.ts +53 -0
  443. package/dist/managers/viewport-manager.js +198 -0
  444. package/dist/mermaid-parser.core-BPror82d.js +12966 -0
  445. package/dist/mindmap-definition-VGOIOE7T-VAn-EShH.js +784 -0
  446. package/dist/mocks/task-mock-generator.d.ts +13 -0
  447. package/dist/mocks/task-mock-generator.js +200 -0
  448. package/dist/model/api-response.d.ts +2 -7
  449. package/dist/model/api-response.js +0 -2
  450. package/dist/model/bundle.d.ts +35 -0
  451. package/dist/model/bundle.js +1 -0
  452. package/dist/model/channels.d.ts +8 -1
  453. package/dist/model/channels.js +7 -0
  454. package/dist/model/drawer-content.d.ts +80 -0
  455. package/dist/model/drawer-content.js +14 -0
  456. package/dist/model/formable.js +22 -11
  457. package/dist/model/github.d.ts +125 -0
  458. package/dist/model/github.js +1 -0
  459. package/dist/model/graph.d.ts +15 -15
  460. package/dist/model/graph.js +24 -4
  461. package/dist/model/media-type.js +2 -2
  462. package/dist/model/node_type.d.ts +4 -0
  463. package/dist/model/node_type.js +4 -0
  464. package/dist/model/panel-state.d.ts +1 -0
  465. package/dist/model/rolodex.d.ts +3 -0
  466. package/dist/model/task.d.ts +50 -0
  467. package/dist/model/task.js +22 -0
  468. package/dist/model/timeline.d.ts +107 -1
  469. package/dist/model/tree-icon-config.d.ts +11 -0
  470. package/dist/model/tree-icon-config.js +46 -0
  471. package/dist/model/workspace.d.ts +2 -0
  472. package/dist/ordinal-DfAQgscy.js +61 -0
  473. package/dist/packet-BFZMPI3H-CXPCK9Q2.js +5 -0
  474. package/dist/pie-7BOR55EZ-CMcuUZ_S.js +5 -0
  475. package/dist/pieDiagram-ADFJNKIX-C0kdlQqn.js +161 -0
  476. package/dist/quadrantDiagram-AYHSOK5B-CRVq6wY3.js +1022 -0
  477. package/dist/radar-NHE76QYJ-CX_Gyp4h.js +5 -0
  478. package/dist/requirementDiagram-UZGBJVZJ-B8ZGgMKn.js +850 -0
  479. package/dist/sankeyDiagram-TZEHDZUN-CWAUJJue.js +810 -0
  480. package/dist/sequenceDiagram-WL72ISMW-nz81a4Cq.js +2511 -0
  481. package/dist/services/diagramatron-service.d.ts +20 -0
  482. package/dist/services/diagramatron-service.js +48 -0
  483. package/dist/services/doctor-events.d.ts +58 -0
  484. package/dist/services/doctor-events.js +33 -0
  485. package/dist/services/drawer-content-registry.d.ts +9 -0
  486. package/dist/services/drawer-content-registry.js +37 -0
  487. package/dist/services/github-service.d.ts +9 -0
  488. package/dist/services/github-service.js +166 -0
  489. package/dist/services/global-task-service.d.ts +6 -0
  490. package/dist/services/global-task-service.js +27 -0
  491. package/dist/services/header-service.d.ts +5 -3
  492. package/dist/services/header-service.js +13 -0
  493. package/dist/services/linting-service.d.ts +2 -0
  494. package/dist/services/linting-service.js +19 -2
  495. package/dist/services/mermaid-config-service.d.ts +53 -0
  496. package/dist/services/mermaid-config-service.js +519 -0
  497. package/dist/services/model-service.d.ts +12 -7
  498. package/dist/services/model-service.js +64 -11
  499. package/dist/services/rodeo-service.js +12 -12
  500. package/dist/services/timeline-service.d.ts +12 -2
  501. package/dist/services/timeline-service.js +329 -0
  502. package/dist/services/wallet-service.d.ts +1 -1
  503. package/dist/services/wallet-service.js +4 -1
  504. package/dist/services/workspace-service.js +16 -2
  505. package/dist/stateDiagram-FKZM4ZOC-3PFzJlcG.js +263 -0
  506. package/dist/stateDiagram-v2-4FDKWEC3-Bp46vM6_.js +16 -0
  507. package/dist/timeline-definition-IT6M3QCI-utm7jTLb.js +795 -0
  508. package/dist/treemap-KMMF4GRG-BvEKHn43.js +5 -0
  509. package/dist/utils/language-utils.d.ts +1 -0
  510. package/dist/utils/language-utils.js +23 -0
  511. package/dist/utils/lru-cache.d.ts +11 -0
  512. package/dist/utils/lru-cache.js +38 -0
  513. package/dist/utils/node-helpers.d.ts +6 -0
  514. package/dist/utils/node-helpers.js +62 -0
  515. package/dist/utils/path-utils.d.ts +5 -0
  516. package/dist/utils/path-utils.js +22 -0
  517. package/dist/workers/elk-layout.worker.d.ts +2 -0
  518. package/dist/workers/elk-layout.worker.js +31 -0
  519. package/dist/workers/equalizer.worker.d.ts +6 -1
  520. package/dist/workers/equalizer.worker.js +144 -195
  521. package/dist/workers/graph-dependent.worker.js +6 -6
  522. package/dist/workers/rule-documentation.worker.js +12 -48
  523. package/dist/workers/search-graph.worker.js +8 -23
  524. package/dist/xychartDiagram-PRI3JC2R-twqDKWMX.js +1340 -0
  525. package/package.json +17 -10
  526. package/dist/assets/equalizer.worker-B1FBgh0h.js +0 -1
  527. package/dist/assets/graph-dependent.worker-CxW1u577.js +0 -1
  528. package/dist/assets/rule-documentation.worker-B4_JKUg4.js +0 -1
  529. package/dist/assets/search-graph.worker-DJxOIWLn.js +0 -1
  530. package/dist/components/problem-list/details-drawer.d.ts +0 -34
  531. package/dist/components/problem-list/details-drawer.js +0 -200
  532. /package/dist/components/{problem-list/details-drawer.css.d.ts → bundle-toolbar/bundle-toolbar.css.d.ts} +0 -0
@@ -0,0 +1,2505 @@
1
+ import { b0 as nn, b1 as Ln, b2 as rn, b3 as an, b4 as sn, b5 as se, b6 as An, aI as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b7 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./cowboy-components-BcyXo9oX.js";
2
+ import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-Bo0rJUSQ.js";
3
+ import { i as $n } from "./init-DjUOC4st.js";
4
+ function jn(t, e) {
5
+ let n;
6
+ if (e === void 0)
7
+ for (const r of t)
8
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
9
+ else {
10
+ let r = -1;
11
+ for (let a of t)
12
+ (a = e(a, ++r, t)) != null && (n < a || n === void 0 && a >= a) && (n = a);
13
+ }
14
+ return n;
15
+ }
16
+ function Jn(t, e) {
17
+ let n;
18
+ if (e === void 0)
19
+ for (const r of t)
20
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
21
+ else {
22
+ let r = -1;
23
+ for (let a of t)
24
+ (a = e(a, ++r, t)) != null && (n > a || n === void 0 && a >= a) && (n = a);
25
+ }
26
+ return n;
27
+ }
28
+ function Kn(t) {
29
+ return t;
30
+ }
31
+ var Xt = 1, oe = 2, ke = 3, Zt = 4, He = 1e-6;
32
+ function tr(t) {
33
+ return "translate(" + t + ",0)";
34
+ }
35
+ function er(t) {
36
+ return "translate(0," + t + ")";
37
+ }
38
+ function nr(t) {
39
+ return (e) => +t(e);
40
+ }
41
+ function rr(t, e) {
42
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
43
+ }
44
+ function ar() {
45
+ return !this.__axis;
46
+ }
47
+ function on(t, e) {
48
+ var n = [], r = null, a = null, i = 6, s = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, p = t === Xt || t === Zt ? -1 : 1, g = t === Zt || t === oe ? "x" : "y", E = t === Xt || t === ke ? tr : er;
49
+ function C(b) {
50
+ var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, B = (e.bandwidth ? rr : nr)(e.copy(), _), $ = b.selection ? b.selection() : b, D = $.selectAll(".domain").data([null]), H = $.selectAll(".tick").data(X, e).order(), x = H.exit(), Y = H.enter().append("g").attr("class", "tick"), F = H.select("line"), S = H.select("text");
51
+ D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === Xt ? "0em" : t === ke ? "0.71em" : "0.32em")), b !== $ && (D = D.transition(b), H = H.transition(b), F = F.transition(b), S = S.transition(b), x = x.transition(b).attr("opacity", He).attr("transform", function(v) {
52
+ return isFinite(v = B(v)) ? E(v + _) : this.getAttribute("transform");
53
+ }), Y.attr("opacity", He).attr("transform", function(v) {
54
+ var U = this.parentNode.__axis;
55
+ return E((U && isFinite(U = U(v)) ? U : B(v)) + _);
56
+ })), x.remove(), D.attr("d", t === Zt || t === oe ? s ? "M" + p * s + "," + V + "H" + _ + "V" + W + "H" + p * s : "M" + _ + "," + V + "V" + W : s ? "M" + V + "," + p * s + "V" + _ + "H" + W + "V" + p * s : "M" + V + "," + _ + "H" + W), H.attr("opacity", 1).attr("transform", function(v) {
57
+ return E(B(v) + _);
58
+ }), F.attr(g + "2", p * i), S.attr(g, p * M).text(O), $.filter(ar).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === oe ? "start" : t === Zt ? "end" : "middle"), $.each(function() {
59
+ this.__axis = B;
60
+ });
61
+ }
62
+ return C.scale = function(b) {
63
+ return arguments.length ? (e = b, C) : e;
64
+ }, C.ticks = function() {
65
+ return n = Array.from(arguments), C;
66
+ }, C.tickArguments = function(b) {
67
+ return arguments.length ? (n = b == null ? [] : Array.from(b), C) : n.slice();
68
+ }, C.tickValues = function(b) {
69
+ return arguments.length ? (r = b == null ? null : Array.from(b), C) : r && r.slice();
70
+ }, C.tickFormat = function(b) {
71
+ return arguments.length ? (a = b, C) : a;
72
+ }, C.tickSize = function(b) {
73
+ return arguments.length ? (i = s = +b, C) : i;
74
+ }, C.tickSizeInner = function(b) {
75
+ return arguments.length ? (i = +b, C) : i;
76
+ }, C.tickSizeOuter = function(b) {
77
+ return arguments.length ? (s = +b, C) : s;
78
+ }, C.tickPadding = function(b) {
79
+ return arguments.length ? (y = +b, C) : y;
80
+ }, C.offset = function(b) {
81
+ return arguments.length ? (_ = +b, C) : _;
82
+ }, C;
83
+ }
84
+ function ir(t) {
85
+ return on(Xt, t);
86
+ }
87
+ function sr(t) {
88
+ return on(ke, t);
89
+ }
90
+ const or = Math.PI / 180, cr = 180 / Math.PI, te = 18, cn = 0.96422, un = 1, ln = 0.82521, fn = 4 / 29, St = 6 / 29, hn = 3 * St * St, ur = St * St * St;
91
+ function dn(t) {
92
+ if (t instanceof ft) return new ft(t.l, t.a, t.b, t.opacity);
93
+ if (t instanceof dt) return mn(t);
94
+ t instanceof nn || (t = Ln(t));
95
+ var e = fe(t.r), n = fe(t.g), r = fe(t.b), a = ce((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / un), i, s;
96
+ return e === n && n === r ? i = s = a : (i = ce((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / cn), s = ce((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / ln)), new ft(116 * a - 16, 500 * (i - a), 200 * (a - s), t.opacity);
97
+ }
98
+ function lr(t, e, n, r) {
99
+ return arguments.length === 1 ? dn(t) : new ft(t, e, n, r ?? 1);
100
+ }
101
+ function ft(t, e, n, r) {
102
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
103
+ }
104
+ rn(ft, lr, an(sn, {
105
+ brighter(t) {
106
+ return new ft(this.l + te * (t ?? 1), this.a, this.b, this.opacity);
107
+ },
108
+ darker(t) {
109
+ return new ft(this.l - te * (t ?? 1), this.a, this.b, this.opacity);
110
+ },
111
+ rgb() {
112
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
113
+ return e = cn * ue(e), t = un * ue(t), n = ln * ue(n), new nn(
114
+ le(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
115
+ le(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
116
+ le(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
117
+ this.opacity
118
+ );
119
+ }
120
+ }));
121
+ function ce(t) {
122
+ return t > ur ? Math.pow(t, 1 / 3) : t / hn + fn;
123
+ }
124
+ function ue(t) {
125
+ return t > St ? t * t * t : hn * (t - fn);
126
+ }
127
+ function le(t) {
128
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
129
+ }
130
+ function fe(t) {
131
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
132
+ }
133
+ function fr(t) {
134
+ if (t instanceof dt) return new dt(t.h, t.c, t.l, t.opacity);
135
+ if (t instanceof ft || (t = dn(t)), t.a === 0 && t.b === 0) return new dt(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
136
+ var e = Math.atan2(t.b, t.a) * cr;
137
+ return new dt(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
138
+ }
139
+ function pe(t, e, n, r) {
140
+ return arguments.length === 1 ? fr(t) : new dt(t, e, n, r ?? 1);
141
+ }
142
+ function dt(t, e, n, r) {
143
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
144
+ }
145
+ function mn(t) {
146
+ if (isNaN(t.h)) return new ft(t.l, 0, 0, t.opacity);
147
+ var e = t.h * or;
148
+ return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
149
+ }
150
+ rn(dt, pe, an(sn, {
151
+ brighter(t) {
152
+ return new dt(this.h, this.c, this.l + te * (t ?? 1), this.opacity);
153
+ },
154
+ darker(t) {
155
+ return new dt(this.h, this.c, this.l - te * (t ?? 1), this.opacity);
156
+ },
157
+ rgb() {
158
+ return mn(this).rgb();
159
+ }
160
+ }));
161
+ function hr(t) {
162
+ return function(e, n) {
163
+ var r = t((e = pe(e)).h, (n = pe(n)).h), a = se(e.c, n.c), i = se(e.l, n.l), s = se(e.opacity, n.opacity);
164
+ return function(y) {
165
+ return e.h = r(y), e.c = a(y), e.l = i(y), e.opacity = s(y), e + "";
166
+ };
167
+ };
168
+ }
169
+ const dr = hr(An);
170
+ function mr(t, e) {
171
+ t = t.slice();
172
+ var n = 0, r = t.length - 1, a = t[n], i = t[r], s;
173
+ return i < a && (s = n, n = r, r = s, s = a, a = i, i = s), t[n] = e.floor(a), t[r] = e.ceil(i), t;
174
+ }
175
+ const he = /* @__PURE__ */ new Date(), de = /* @__PURE__ */ new Date();
176
+ function et(t, e, n, r) {
177
+ function a(i) {
178
+ return t(i = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+i)), i;
179
+ }
180
+ return a.floor = (i) => (t(i = /* @__PURE__ */ new Date(+i)), i), a.ceil = (i) => (t(i = new Date(i - 1)), e(i, 1), t(i), i), a.round = (i) => {
181
+ const s = a(i), y = a.ceil(i);
182
+ return i - s < y - i ? s : y;
183
+ }, a.offset = (i, s) => (e(i = /* @__PURE__ */ new Date(+i), s == null ? 1 : Math.floor(s)), i), a.range = (i, s, y) => {
184
+ const _ = [];
185
+ if (i = a.ceil(i), y = y == null ? 1 : Math.floor(y), !(i < s) || !(y > 0)) return _;
186
+ let p;
187
+ do
188
+ _.push(p = /* @__PURE__ */ new Date(+i)), e(i, y), t(i);
189
+ while (p < i && i < s);
190
+ return _;
191
+ }, a.filter = (i) => et((s) => {
192
+ if (s >= s) for (; t(s), !i(s); ) s.setTime(s - 1);
193
+ }, (s, y) => {
194
+ if (s >= s)
195
+ if (y < 0) for (; ++y <= 0; )
196
+ for (; e(s, -1), !i(s); )
197
+ ;
198
+ else for (; --y >= 0; )
199
+ for (; e(s, 1), !i(s); )
200
+ ;
201
+ }), n && (a.count = (i, s) => (he.setTime(+i), de.setTime(+s), t(he), t(de), Math.floor(n(he, de))), a.every = (i) => (i = Math.floor(i), !isFinite(i) || !(i > 0) ? null : i > 1 ? a.filter(r ? (s) => r(s) % i === 0 : (s) => a.count(0, s) % i === 0) : a)), a;
202
+ }
203
+ const Yt = et(() => {
204
+ }, (t, e) => {
205
+ t.setTime(+t + e);
206
+ }, (t, e) => e - t);
207
+ Yt.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? et((e) => {
208
+ e.setTime(Math.floor(e / t) * t);
209
+ }, (e, n) => {
210
+ e.setTime(+e + n * t);
211
+ }, (e, n) => (n - e) / t) : Yt);
212
+ Yt.range;
213
+ const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, De = yt * 7, Ne = yt * 30, me = yt * 365, vt = et((t) => {
214
+ t.setTime(t - t.getMilliseconds());
215
+ }, (t, e) => {
216
+ t.setTime(+t + e * mt);
217
+ }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
218
+ vt.range;
219
+ const Wt = et((t) => {
220
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
221
+ }, (t, e) => {
222
+ t.setTime(+t + e * ct);
223
+ }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
224
+ Wt.range;
225
+ const gr = et((t) => {
226
+ t.setUTCSeconds(0, 0);
227
+ }, (t, e) => {
228
+ t.setTime(+t + e * ct);
229
+ }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
230
+ gr.range;
231
+ const Ot = et((t) => {
232
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
233
+ }, (t, e) => {
234
+ t.setTime(+t + e * gt);
235
+ }, (t, e) => (e - t) / gt, (t) => t.getHours());
236
+ Ot.range;
237
+ const yr = et((t) => {
238
+ t.setUTCMinutes(0, 0, 0);
239
+ }, (t, e) => {
240
+ t.setTime(+t + e * gt);
241
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
242
+ yr.range;
243
+ const Tt = et(
244
+ (t) => t.setHours(0, 0, 0, 0),
245
+ (t, e) => t.setDate(t.getDate() + e),
246
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
247
+ (t) => t.getDate() - 1
248
+ );
249
+ Tt.range;
250
+ const Ce = et((t) => {
251
+ t.setUTCHours(0, 0, 0, 0);
252
+ }, (t, e) => {
253
+ t.setUTCDate(t.getUTCDate() + e);
254
+ }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
255
+ Ce.range;
256
+ const kr = et((t) => {
257
+ t.setUTCHours(0, 0, 0, 0);
258
+ }, (t, e) => {
259
+ t.setUTCDate(t.getUTCDate() + e);
260
+ }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
261
+ kr.range;
262
+ function wt(t) {
263
+ return et((e) => {
264
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
265
+ }, (e, n) => {
266
+ e.setDate(e.getDate() + n * 7);
267
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / De);
268
+ }
269
+ const Vt = wt(0), Ht = wt(1), gn = wt(2), yn = wt(3), bt = wt(4), kn = wt(5), pn = wt(6);
270
+ Vt.range;
271
+ Ht.range;
272
+ gn.range;
273
+ yn.range;
274
+ bt.range;
275
+ kn.range;
276
+ pn.range;
277
+ function Dt(t) {
278
+ return et((e) => {
279
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
280
+ }, (e, n) => {
281
+ e.setUTCDate(e.getUTCDate() + n * 7);
282
+ }, (e, n) => (n - e) / De);
283
+ }
284
+ const vn = Dt(0), ee = Dt(1), pr = Dt(2), vr = Dt(3), Ut = Dt(4), Tr = Dt(5), br = Dt(6);
285
+ vn.range;
286
+ ee.range;
287
+ pr.range;
288
+ vr.range;
289
+ Ut.range;
290
+ Tr.range;
291
+ br.range;
292
+ const Nt = et((t) => {
293
+ t.setDate(1), t.setHours(0, 0, 0, 0);
294
+ }, (t, e) => {
295
+ t.setMonth(t.getMonth() + e);
296
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
297
+ Nt.range;
298
+ const xr = et((t) => {
299
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
300
+ }, (t, e) => {
301
+ t.setUTCMonth(t.getUTCMonth() + e);
302
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
303
+ xr.range;
304
+ const kt = et((t) => {
305
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
306
+ }, (t, e) => {
307
+ t.setFullYear(t.getFullYear() + e);
308
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
309
+ kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
310
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
311
+ }, (e, n) => {
312
+ e.setFullYear(e.getFullYear() + n * t);
313
+ });
314
+ kt.range;
315
+ const xt = et((t) => {
316
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
317
+ }, (t, e) => {
318
+ t.setUTCFullYear(t.getUTCFullYear() + e);
319
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
320
+ xt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : et((e) => {
321
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
322
+ }, (e, n) => {
323
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
324
+ });
325
+ xt.range;
326
+ function wr(t, e, n, r, a, i) {
327
+ const s = [
328
+ [vt, 1, mt],
329
+ [vt, 5, 5 * mt],
330
+ [vt, 15, 15 * mt],
331
+ [vt, 30, 30 * mt],
332
+ [i, 1, ct],
333
+ [i, 5, 5 * ct],
334
+ [i, 15, 15 * ct],
335
+ [i, 30, 30 * ct],
336
+ [a, 1, gt],
337
+ [a, 3, 3 * gt],
338
+ [a, 6, 6 * gt],
339
+ [a, 12, 12 * gt],
340
+ [r, 1, yt],
341
+ [r, 2, 2 * yt],
342
+ [n, 1, De],
343
+ [e, 1, Ne],
344
+ [e, 3, 3 * Ne],
345
+ [t, 1, me]
346
+ ];
347
+ function y(p, g, E) {
348
+ const C = g < p;
349
+ C && ([p, g] = [g, p]);
350
+ const b = E && typeof E.range == "function" ? E : _(p, g, E), X = b ? b.range(p, +g + 1) : [];
351
+ return C ? X.reverse() : X;
352
+ }
353
+ function _(p, g, E) {
354
+ const C = Math.abs(g - p) / E, b = Zn(([, , M]) => M).right(s, C);
355
+ if (b === s.length) return t.every(Oe(p / me, g / me, E));
356
+ if (b === 0) return Yt.every(Math.max(Oe(p, g, E), 1));
357
+ const [X, O] = s[C / s[b - 1][2] < s[b][2] / C ? b - 1 : b];
358
+ return X.every(O);
359
+ }
360
+ return [y, _];
361
+ }
362
+ const [Dr, Cr] = wr(kt, Nt, Vt, Tt, Ot, Wt);
363
+ function ge(t) {
364
+ if (0 <= t.y && t.y < 100) {
365
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
366
+ return e.setFullYear(t.y), e;
367
+ }
368
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
369
+ }
370
+ function ye(t) {
371
+ if (0 <= t.y && t.y < 100) {
372
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
373
+ return e.setUTCFullYear(t.y), e;
374
+ }
375
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
376
+ }
377
+ function Lt(t, e, n) {
378
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
379
+ }
380
+ function Mr(t) {
381
+ var e = t.dateTime, n = t.date, r = t.time, a = t.periods, i = t.days, s = t.shortDays, y = t.months, _ = t.shortMonths, p = At(a), g = It(a), E = At(i), C = It(i), b = At(s), X = It(s), O = At(y), M = It(y), I = At(_), V = It(_), W = {
382
+ a: d,
383
+ A: w,
384
+ b: c,
385
+ B: u,
386
+ c: null,
387
+ d: Be,
388
+ e: Be,
389
+ f: Qr,
390
+ g: ia,
391
+ G: oa,
392
+ H: Zr,
393
+ I: Xr,
394
+ j: Gr,
395
+ L: Tn,
396
+ m: $r,
397
+ M: jr,
398
+ p: o,
399
+ q: z,
400
+ Q: Ge,
401
+ s: Qe,
402
+ S: Jr,
403
+ u: Kr,
404
+ U: ta,
405
+ V: ea,
406
+ w: na,
407
+ W: ra,
408
+ x: null,
409
+ X: null,
410
+ y: aa,
411
+ Y: sa,
412
+ Z: ca,
413
+ "%": Xe
414
+ }, B = {
415
+ a: P,
416
+ A: R,
417
+ b: K,
418
+ B: G,
419
+ c: null,
420
+ d: Ze,
421
+ e: Ze,
422
+ f: ha,
423
+ g: xa,
424
+ G: Da,
425
+ H: ua,
426
+ I: la,
427
+ j: fa,
428
+ L: xn,
429
+ m: da,
430
+ M: ma,
431
+ p: j,
432
+ q: it,
433
+ Q: Ge,
434
+ s: Qe,
435
+ S: ga,
436
+ u: ya,
437
+ U: ka,
438
+ V: pa,
439
+ w: va,
440
+ W: Ta,
441
+ x: null,
442
+ X: null,
443
+ y: ba,
444
+ Y: wa,
445
+ Z: Ca,
446
+ "%": Xe
447
+ }, $ = {
448
+ a: F,
449
+ A: S,
450
+ b: v,
451
+ B: U,
452
+ c: l,
453
+ d: Re,
454
+ e: Re,
455
+ f: zr,
456
+ g: ze,
457
+ G: Pe,
458
+ H: qe,
459
+ I: qe,
460
+ j: Hr,
461
+ L: Pr,
462
+ m: Or,
463
+ M: Nr,
464
+ p: Y,
465
+ q: Wr,
466
+ Q: qr,
467
+ s: Br,
468
+ S: Vr,
469
+ u: Ur,
470
+ U: Er,
471
+ V: Lr,
472
+ w: Yr,
473
+ W: Ar,
474
+ x: m,
475
+ X: T,
476
+ y: ze,
477
+ Y: Pe,
478
+ Z: Ir,
479
+ "%": Rr
480
+ };
481
+ W.x = D(n, W), W.X = D(r, W), W.c = D(e, W), B.x = D(n, B), B.X = D(r, B), B.c = D(e, B);
482
+ function D(k, A) {
483
+ return function(N) {
484
+ var f = [], J = -1, L = 0, Q = k.length, Z, rt, st;
485
+ for (N instanceof Date || (N = /* @__PURE__ */ new Date(+N)); ++J < Q; )
486
+ k.charCodeAt(J) === 37 && (f.push(k.slice(L, J)), (rt = Ve[Z = k.charAt(++J)]) != null ? Z = k.charAt(++J) : rt = Z === "e" ? " " : "0", (st = A[Z]) && (Z = st(N, rt)), f.push(Z), L = J + 1);
487
+ return f.push(k.slice(L, J)), f.join("");
488
+ };
489
+ }
490
+ function H(k, A) {
491
+ return function(N) {
492
+ var f = Lt(1900, void 0, 1), J = x(f, k, N += "", 0), L, Q;
493
+ if (J != N.length) return null;
494
+ if ("Q" in f) return new Date(f.Q);
495
+ if ("s" in f) return new Date(f.s * 1e3 + ("L" in f ? f.L : 0));
496
+ if (A && !("Z" in f) && (f.Z = 0), "p" in f && (f.H = f.H % 12 + f.p * 12), f.m === void 0 && (f.m = "q" in f ? f.q : 0), "V" in f) {
497
+ if (f.V < 1 || f.V > 53) return null;
498
+ "w" in f || (f.w = 1), "Z" in f ? (L = ye(Lt(f.y, 0, 1)), Q = L.getUTCDay(), L = Q > 4 || Q === 0 ? ee.ceil(L) : ee(L), L = Ce.offset(L, (f.V - 1) * 7), f.y = L.getUTCFullYear(), f.m = L.getUTCMonth(), f.d = L.getUTCDate() + (f.w + 6) % 7) : (L = ge(Lt(f.y, 0, 1)), Q = L.getDay(), L = Q > 4 || Q === 0 ? Ht.ceil(L) : Ht(L), L = Tt.offset(L, (f.V - 1) * 7), f.y = L.getFullYear(), f.m = L.getMonth(), f.d = L.getDate() + (f.w + 6) % 7);
499
+ } else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0), Q = "Z" in f ? ye(Lt(f.y, 0, 1)).getUTCDay() : ge(Lt(f.y, 0, 1)).getDay(), f.m = 0, f.d = "W" in f ? (f.w + 6) % 7 + f.W * 7 - (Q + 5) % 7 : f.w + f.U * 7 - (Q + 6) % 7);
500
+ return "Z" in f ? (f.H += f.Z / 100 | 0, f.M += f.Z % 100, ye(f)) : ge(f);
501
+ };
502
+ }
503
+ function x(k, A, N, f) {
504
+ for (var J = 0, L = A.length, Q = N.length, Z, rt; J < L; ) {
505
+ if (f >= Q) return -1;
506
+ if (Z = A.charCodeAt(J++), Z === 37) {
507
+ if (Z = A.charAt(J++), rt = $[Z in Ve ? A.charAt(J++) : Z], !rt || (f = rt(k, N, f)) < 0) return -1;
508
+ } else if (Z != N.charCodeAt(f++))
509
+ return -1;
510
+ }
511
+ return f;
512
+ }
513
+ function Y(k, A, N) {
514
+ var f = p.exec(A.slice(N));
515
+ return f ? (k.p = g.get(f[0].toLowerCase()), N + f[0].length) : -1;
516
+ }
517
+ function F(k, A, N) {
518
+ var f = b.exec(A.slice(N));
519
+ return f ? (k.w = X.get(f[0].toLowerCase()), N + f[0].length) : -1;
520
+ }
521
+ function S(k, A, N) {
522
+ var f = E.exec(A.slice(N));
523
+ return f ? (k.w = C.get(f[0].toLowerCase()), N + f[0].length) : -1;
524
+ }
525
+ function v(k, A, N) {
526
+ var f = I.exec(A.slice(N));
527
+ return f ? (k.m = V.get(f[0].toLowerCase()), N + f[0].length) : -1;
528
+ }
529
+ function U(k, A, N) {
530
+ var f = O.exec(A.slice(N));
531
+ return f ? (k.m = M.get(f[0].toLowerCase()), N + f[0].length) : -1;
532
+ }
533
+ function l(k, A, N) {
534
+ return x(k, e, A, N);
535
+ }
536
+ function m(k, A, N) {
537
+ return x(k, n, A, N);
538
+ }
539
+ function T(k, A, N) {
540
+ return x(k, r, A, N);
541
+ }
542
+ function d(k) {
543
+ return s[k.getDay()];
544
+ }
545
+ function w(k) {
546
+ return i[k.getDay()];
547
+ }
548
+ function c(k) {
549
+ return _[k.getMonth()];
550
+ }
551
+ function u(k) {
552
+ return y[k.getMonth()];
553
+ }
554
+ function o(k) {
555
+ return a[+(k.getHours() >= 12)];
556
+ }
557
+ function z(k) {
558
+ return 1 + ~~(k.getMonth() / 3);
559
+ }
560
+ function P(k) {
561
+ return s[k.getUTCDay()];
562
+ }
563
+ function R(k) {
564
+ return i[k.getUTCDay()];
565
+ }
566
+ function K(k) {
567
+ return _[k.getUTCMonth()];
568
+ }
569
+ function G(k) {
570
+ return y[k.getUTCMonth()];
571
+ }
572
+ function j(k) {
573
+ return a[+(k.getUTCHours() >= 12)];
574
+ }
575
+ function it(k) {
576
+ return 1 + ~~(k.getUTCMonth() / 3);
577
+ }
578
+ return {
579
+ format: function(k) {
580
+ var A = D(k += "", W);
581
+ return A.toString = function() {
582
+ return k;
583
+ }, A;
584
+ },
585
+ parse: function(k) {
586
+ var A = H(k += "", !1);
587
+ return A.toString = function() {
588
+ return k;
589
+ }, A;
590
+ },
591
+ utcFormat: function(k) {
592
+ var A = D(k += "", B);
593
+ return A.toString = function() {
594
+ return k;
595
+ }, A;
596
+ },
597
+ utcParse: function(k) {
598
+ var A = H(k += "", !0);
599
+ return A.toString = function() {
600
+ return k;
601
+ }, A;
602
+ }
603
+ };
604
+ }
605
+ var Ve = { "-": "", _: " ", 0: "0" }, nt = /^\s*\d+/, _r = /^%/, Sr = /[\\^$*+?|[\]().{}]/g;
606
+ function q(t, e, n) {
607
+ var r = t < 0 ? "-" : "", a = (r ? -t : t) + "", i = a.length;
608
+ return r + (i < n ? new Array(n - i + 1).join(e) + a : a);
609
+ }
610
+ function Fr(t) {
611
+ return t.replace(Sr, "\\$&");
612
+ }
613
+ function At(t) {
614
+ return new RegExp("^(?:" + t.map(Fr).join("|") + ")", "i");
615
+ }
616
+ function It(t) {
617
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
618
+ }
619
+ function Yr(t, e, n) {
620
+ var r = nt.exec(e.slice(n, n + 1));
621
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
622
+ }
623
+ function Ur(t, e, n) {
624
+ var r = nt.exec(e.slice(n, n + 1));
625
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
626
+ }
627
+ function Er(t, e, n) {
628
+ var r = nt.exec(e.slice(n, n + 2));
629
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
630
+ }
631
+ function Lr(t, e, n) {
632
+ var r = nt.exec(e.slice(n, n + 2));
633
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
634
+ }
635
+ function Ar(t, e, n) {
636
+ var r = nt.exec(e.slice(n, n + 2));
637
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
638
+ }
639
+ function Pe(t, e, n) {
640
+ var r = nt.exec(e.slice(n, n + 4));
641
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
642
+ }
643
+ function ze(t, e, n) {
644
+ var r = nt.exec(e.slice(n, n + 2));
645
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
646
+ }
647
+ function Ir(t, e, n) {
648
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
649
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
650
+ }
651
+ function Wr(t, e, n) {
652
+ var r = nt.exec(e.slice(n, n + 1));
653
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
654
+ }
655
+ function Or(t, e, n) {
656
+ var r = nt.exec(e.slice(n, n + 2));
657
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
658
+ }
659
+ function Re(t, e, n) {
660
+ var r = nt.exec(e.slice(n, n + 2));
661
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
662
+ }
663
+ function Hr(t, e, n) {
664
+ var r = nt.exec(e.slice(n, n + 3));
665
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
666
+ }
667
+ function qe(t, e, n) {
668
+ var r = nt.exec(e.slice(n, n + 2));
669
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
670
+ }
671
+ function Nr(t, e, n) {
672
+ var r = nt.exec(e.slice(n, n + 2));
673
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
674
+ }
675
+ function Vr(t, e, n) {
676
+ var r = nt.exec(e.slice(n, n + 2));
677
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
678
+ }
679
+ function Pr(t, e, n) {
680
+ var r = nt.exec(e.slice(n, n + 3));
681
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
682
+ }
683
+ function zr(t, e, n) {
684
+ var r = nt.exec(e.slice(n, n + 6));
685
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
686
+ }
687
+ function Rr(t, e, n) {
688
+ var r = _r.exec(e.slice(n, n + 1));
689
+ return r ? n + r[0].length : -1;
690
+ }
691
+ function qr(t, e, n) {
692
+ var r = nt.exec(e.slice(n));
693
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
694
+ }
695
+ function Br(t, e, n) {
696
+ var r = nt.exec(e.slice(n));
697
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
698
+ }
699
+ function Be(t, e) {
700
+ return q(t.getDate(), e, 2);
701
+ }
702
+ function Zr(t, e) {
703
+ return q(t.getHours(), e, 2);
704
+ }
705
+ function Xr(t, e) {
706
+ return q(t.getHours() % 12 || 12, e, 2);
707
+ }
708
+ function Gr(t, e) {
709
+ return q(1 + Tt.count(kt(t), t), e, 3);
710
+ }
711
+ function Tn(t, e) {
712
+ return q(t.getMilliseconds(), e, 3);
713
+ }
714
+ function Qr(t, e) {
715
+ return Tn(t, e) + "000";
716
+ }
717
+ function $r(t, e) {
718
+ return q(t.getMonth() + 1, e, 2);
719
+ }
720
+ function jr(t, e) {
721
+ return q(t.getMinutes(), e, 2);
722
+ }
723
+ function Jr(t, e) {
724
+ return q(t.getSeconds(), e, 2);
725
+ }
726
+ function Kr(t) {
727
+ var e = t.getDay();
728
+ return e === 0 ? 7 : e;
729
+ }
730
+ function ta(t, e) {
731
+ return q(Vt.count(kt(t) - 1, t), e, 2);
732
+ }
733
+ function bn(t) {
734
+ var e = t.getDay();
735
+ return e >= 4 || e === 0 ? bt(t) : bt.ceil(t);
736
+ }
737
+ function ea(t, e) {
738
+ return t = bn(t), q(bt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
739
+ }
740
+ function na(t) {
741
+ return t.getDay();
742
+ }
743
+ function ra(t, e) {
744
+ return q(Ht.count(kt(t) - 1, t), e, 2);
745
+ }
746
+ function aa(t, e) {
747
+ return q(t.getFullYear() % 100, e, 2);
748
+ }
749
+ function ia(t, e) {
750
+ return t = bn(t), q(t.getFullYear() % 100, e, 2);
751
+ }
752
+ function sa(t, e) {
753
+ return q(t.getFullYear() % 1e4, e, 4);
754
+ }
755
+ function oa(t, e) {
756
+ var n = t.getDay();
757
+ return t = n >= 4 || n === 0 ? bt(t) : bt.ceil(t), q(t.getFullYear() % 1e4, e, 4);
758
+ }
759
+ function ca(t) {
760
+ var e = t.getTimezoneOffset();
761
+ return (e > 0 ? "-" : (e *= -1, "+")) + q(e / 60 | 0, "0", 2) + q(e % 60, "0", 2);
762
+ }
763
+ function Ze(t, e) {
764
+ return q(t.getUTCDate(), e, 2);
765
+ }
766
+ function ua(t, e) {
767
+ return q(t.getUTCHours(), e, 2);
768
+ }
769
+ function la(t, e) {
770
+ return q(t.getUTCHours() % 12 || 12, e, 2);
771
+ }
772
+ function fa(t, e) {
773
+ return q(1 + Ce.count(xt(t), t), e, 3);
774
+ }
775
+ function xn(t, e) {
776
+ return q(t.getUTCMilliseconds(), e, 3);
777
+ }
778
+ function ha(t, e) {
779
+ return xn(t, e) + "000";
780
+ }
781
+ function da(t, e) {
782
+ return q(t.getUTCMonth() + 1, e, 2);
783
+ }
784
+ function ma(t, e) {
785
+ return q(t.getUTCMinutes(), e, 2);
786
+ }
787
+ function ga(t, e) {
788
+ return q(t.getUTCSeconds(), e, 2);
789
+ }
790
+ function ya(t) {
791
+ var e = t.getUTCDay();
792
+ return e === 0 ? 7 : e;
793
+ }
794
+ function ka(t, e) {
795
+ return q(vn.count(xt(t) - 1, t), e, 2);
796
+ }
797
+ function wn(t) {
798
+ var e = t.getUTCDay();
799
+ return e >= 4 || e === 0 ? Ut(t) : Ut.ceil(t);
800
+ }
801
+ function pa(t, e) {
802
+ return t = wn(t), q(Ut.count(xt(t), t) + (xt(t).getUTCDay() === 4), e, 2);
803
+ }
804
+ function va(t) {
805
+ return t.getUTCDay();
806
+ }
807
+ function Ta(t, e) {
808
+ return q(ee.count(xt(t) - 1, t), e, 2);
809
+ }
810
+ function ba(t, e) {
811
+ return q(t.getUTCFullYear() % 100, e, 2);
812
+ }
813
+ function xa(t, e) {
814
+ return t = wn(t), q(t.getUTCFullYear() % 100, e, 2);
815
+ }
816
+ function wa(t, e) {
817
+ return q(t.getUTCFullYear() % 1e4, e, 4);
818
+ }
819
+ function Da(t, e) {
820
+ var n = t.getUTCDay();
821
+ return t = n >= 4 || n === 0 ? Ut(t) : Ut.ceil(t), q(t.getUTCFullYear() % 1e4, e, 4);
822
+ }
823
+ function Ca() {
824
+ return "+0000";
825
+ }
826
+ function Xe() {
827
+ return "%";
828
+ }
829
+ function Ge(t) {
830
+ return +t;
831
+ }
832
+ function Qe(t) {
833
+ return Math.floor(+t / 1e3);
834
+ }
835
+ var Mt, ne;
836
+ Ma({
837
+ dateTime: "%x, %X",
838
+ date: "%-m/%-d/%Y",
839
+ time: "%-I:%M:%S %p",
840
+ periods: ["AM", "PM"],
841
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
842
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
843
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
844
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
845
+ });
846
+ function Ma(t) {
847
+ return Mt = Mr(t), ne = Mt.format, Mt.parse, Mt.utcFormat, Mt.utcParse, Mt;
848
+ }
849
+ function _a(t) {
850
+ return new Date(t);
851
+ }
852
+ function Sa(t) {
853
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
854
+ }
855
+ function Dn(t, e, n, r, a, i, s, y, _, p) {
856
+ var g = Xn(), E = g.invert, C = g.domain, b = p(".%L"), X = p(":%S"), O = p("%I:%M"), M = p("%I %p"), I = p("%a %d"), V = p("%b %d"), W = p("%B"), B = p("%Y");
857
+ function $(D) {
858
+ return (_(D) < D ? b : y(D) < D ? X : s(D) < D ? O : i(D) < D ? M : r(D) < D ? a(D) < D ? I : V : n(D) < D ? W : B)(D);
859
+ }
860
+ return g.invert = function(D) {
861
+ return new Date(E(D));
862
+ }, g.domain = function(D) {
863
+ return arguments.length ? C(Array.from(D, Sa)) : C().map(_a);
864
+ }, g.ticks = function(D) {
865
+ var H = C();
866
+ return t(H[0], H[H.length - 1], D ?? 10);
867
+ }, g.tickFormat = function(D, H) {
868
+ return H == null ? $ : p(H);
869
+ }, g.nice = function(D) {
870
+ var H = C();
871
+ return (!D || typeof D.range != "function") && (D = e(H[0], H[H.length - 1], D ?? 10)), D ? C(mr(H, D)) : g;
872
+ }, g.copy = function() {
873
+ return Gn(g, Dn(t, e, n, r, a, i, s, y, _, p));
874
+ }, g;
875
+ }
876
+ function Fa() {
877
+ return $n.apply(Dn(Dr, Cr, kt, Nt, Vt, Tt, Ot, Wt, vt, ne).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
878
+ }
879
+ var Gt = { exports: {} }, Ya = Gt.exports, $e;
880
+ function Ua() {
881
+ return $e || ($e = 1, (function(t, e) {
882
+ (function(n, r) {
883
+ t.exports = r();
884
+ })(Ya, (function() {
885
+ var n = "day";
886
+ return function(r, a, i) {
887
+ var s = function(p) {
888
+ return p.add(4 - p.isoWeekday(), n);
889
+ }, y = a.prototype;
890
+ y.isoWeekYear = function() {
891
+ return s(this).year();
892
+ }, y.isoWeek = function(p) {
893
+ if (!this.$utils().u(p)) return this.add(7 * (p - this.isoWeek()), n);
894
+ var g, E, C, b, X = s(this), O = (g = this.isoWeekYear(), E = this.$u, C = (E ? i.utc : i)().year(g).startOf("year"), b = 4 - C.isoWeekday(), C.isoWeekday() > 4 && (b += 7), C.add(b, n));
895
+ return X.diff(O, "week") + 1;
896
+ }, y.isoWeekday = function(p) {
897
+ return this.$utils().u(p) ? this.day() || 7 : this.day(this.day() % 7 ? p : p - 7);
898
+ };
899
+ var _ = y.startOf;
900
+ y.startOf = function(p, g) {
901
+ var E = this.$utils(), C = !!E.u(g) || g;
902
+ return E.p(p) === "isoweek" ? C ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : _.bind(this)(p, g);
903
+ };
904
+ };
905
+ }));
906
+ })(Gt)), Gt.exports;
907
+ }
908
+ var Ea = Ua();
909
+ const La = /* @__PURE__ */ we(Ea);
910
+ var Qt = { exports: {} }, Aa = Qt.exports, je;
911
+ function Ia() {
912
+ return je || (je = 1, (function(t, e) {
913
+ (function(n, r) {
914
+ t.exports = r();
915
+ })(Aa, (function() {
916
+ 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, a = /\d/, i = /\d\d/, s = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, _ = {}, p = function(M) {
917
+ return (M = +M) + (M > 68 ? 1900 : 2e3);
918
+ }, g = function(M) {
919
+ return function(I) {
920
+ this[M] = +I;
921
+ };
922
+ }, E = [/[+-]\d\d:?(\d\d)?|Z/, function(M) {
923
+ (this.zone || (this.zone = {})).offset = (function(I) {
924
+ if (!I || I === "Z") return 0;
925
+ var V = I.match(/([+-]|\d\d)/g), W = 60 * V[1] + (+V[2] || 0);
926
+ return W === 0 ? 0 : V[0] === "+" ? -W : W;
927
+ })(M);
928
+ }], C = function(M) {
929
+ var I = _[M];
930
+ return I && (I.indexOf ? I : I.s.concat(I.f));
931
+ }, b = function(M, I) {
932
+ var V, W = _.meridiem;
933
+ if (W) {
934
+ for (var B = 1; B <= 24; B += 1) if (M.indexOf(W(B, 0, I)) > -1) {
935
+ V = B > 12;
936
+ break;
937
+ }
938
+ } else V = M === (I ? "pm" : "PM");
939
+ return V;
940
+ }, X = { A: [y, function(M) {
941
+ this.afternoon = b(M, !1);
942
+ }], a: [y, function(M) {
943
+ this.afternoon = b(M, !0);
944
+ }], Q: [a, function(M) {
945
+ this.month = 3 * (M - 1) + 1;
946
+ }], S: [a, function(M) {
947
+ this.milliseconds = 100 * +M;
948
+ }], SS: [i, function(M) {
949
+ this.milliseconds = 10 * +M;
950
+ }], SSS: [/\d{3}/, function(M) {
951
+ this.milliseconds = +M;
952
+ }], s: [s, g("seconds")], ss: [s, g("seconds")], m: [s, g("minutes")], mm: [s, g("minutes")], H: [s, g("hours")], h: [s, g("hours")], HH: [s, g("hours")], hh: [s, g("hours")], D: [s, g("day")], DD: [i, g("day")], Do: [y, function(M) {
953
+ var I = _.ordinal, V = M.match(/\d+/);
954
+ if (this.day = V[0], I) for (var W = 1; W <= 31; W += 1) I(W).replace(/\[|\]/g, "") === M && (this.day = W);
955
+ }], w: [s, g("week")], ww: [i, g("week")], M: [s, g("month")], MM: [i, g("month")], MMM: [y, function(M) {
956
+ var I = C("months"), V = (C("monthsShort") || I.map((function(W) {
957
+ return W.slice(0, 3);
958
+ }))).indexOf(M) + 1;
959
+ if (V < 1) throw new Error();
960
+ this.month = V % 12 || V;
961
+ }], MMMM: [y, function(M) {
962
+ var I = C("months").indexOf(M) + 1;
963
+ if (I < 1) throw new Error();
964
+ this.month = I % 12 || I;
965
+ }], Y: [/[+-]?\d+/, g("year")], YY: [i, function(M) {
966
+ this.year = p(M);
967
+ }], YYYY: [/\d{4}/, g("year")], Z: E, ZZ: E };
968
+ function O(M) {
969
+ var I, V;
970
+ I = M, V = _ && _.formats;
971
+ for (var W = (M = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(F, S, v) {
972
+ var U = v && v.toUpperCase();
973
+ return S || V[v] || n[v] || V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(l, m, T) {
974
+ return m || T.slice(1);
975
+ }));
976
+ }))).match(r), B = W.length, $ = 0; $ < B; $ += 1) {
977
+ var D = W[$], H = X[D], x = H && H[0], Y = H && H[1];
978
+ W[$] = Y ? { regex: x, parser: Y } : D.replace(/^\[|\]$/g, "");
979
+ }
980
+ return function(F) {
981
+ for (var S = {}, v = 0, U = 0; v < B; v += 1) {
982
+ var l = W[v];
983
+ if (typeof l == "string") U += l.length;
984
+ else {
985
+ var m = l.regex, T = l.parser, d = F.slice(U), w = m.exec(d)[0];
986
+ T.call(S, w), F = F.replace(w, "");
987
+ }
988
+ }
989
+ return (function(c) {
990
+ var u = c.afternoon;
991
+ if (u !== void 0) {
992
+ var o = c.hours;
993
+ u ? o < 12 && (c.hours += 12) : o === 12 && (c.hours = 0), delete c.afternoon;
994
+ }
995
+ })(S), S;
996
+ };
997
+ }
998
+ return function(M, I, V) {
999
+ V.p.customParseFormat = !0, M && M.parseTwoDigitYear && (p = M.parseTwoDigitYear);
1000
+ var W = I.prototype, B = W.parse;
1001
+ W.parse = function($) {
1002
+ var D = $.date, H = $.utc, x = $.args;
1003
+ this.$u = H;
1004
+ var Y = x[1];
1005
+ if (typeof Y == "string") {
1006
+ var F = x[2] === !0, S = x[3] === !0, v = F || S, U = x[2];
1007
+ S && (U = x[2]), _ = this.$locale(), !F && U && (_ = V.Ls[U]), this.$d = (function(d, w, c, u) {
1008
+ try {
1009
+ if (["x", "X"].indexOf(w) > -1) return new Date((w === "X" ? 1e3 : 1) * d);
1010
+ var o = O(w)(d), z = o.year, P = o.month, R = o.day, K = o.hours, G = o.minutes, j = o.seconds, it = o.milliseconds, k = o.zone, A = o.week, N = /* @__PURE__ */ new Date(), f = R || (z || P ? 1 : N.getDate()), J = z || N.getFullYear(), L = 0;
1011
+ z && !P || (L = P > 0 ? P - 1 : N.getMonth());
1012
+ var Q, Z = K || 0, rt = G || 0, st = j || 0, pt = it || 0;
1013
+ return k ? new Date(Date.UTC(J, L, f, Z, rt, st, pt + 60 * k.offset * 1e3)) : c ? new Date(Date.UTC(J, L, f, Z, rt, st, pt)) : (Q = new Date(J, L, f, Z, rt, st, pt), A && (Q = u(Q).week(A).toDate()), Q);
1014
+ } catch {
1015
+ return /* @__PURE__ */ new Date("");
1016
+ }
1017
+ })(D, Y, H, V), this.init(), U && U !== !0 && (this.$L = this.locale(U).$L), v && D != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), _ = {};
1018
+ } else if (Y instanceof Array) for (var l = Y.length, m = 1; m <= l; m += 1) {
1019
+ x[1] = Y[m - 1];
1020
+ var T = V.apply(this, x);
1021
+ if (T.isValid()) {
1022
+ this.$d = T.$d, this.$L = T.$L, this.init();
1023
+ break;
1024
+ }
1025
+ m === l && (this.$d = /* @__PURE__ */ new Date(""));
1026
+ }
1027
+ else B.call(this, $);
1028
+ };
1029
+ };
1030
+ }));
1031
+ })(Qt)), Qt.exports;
1032
+ }
1033
+ var Wa = Ia();
1034
+ const Oa = /* @__PURE__ */ we(Wa);
1035
+ var $t = { exports: {} }, Ha = $t.exports, Je;
1036
+ function Na() {
1037
+ return Je || (Je = 1, (function(t, e) {
1038
+ (function(n, r) {
1039
+ t.exports = r();
1040
+ })(Ha, (function() {
1041
+ return function(n, r) {
1042
+ var a = r.prototype, i = a.format;
1043
+ a.format = function(s) {
1044
+ var y = this, _ = this.$locale();
1045
+ if (!this.isValid()) return i.bind(this)(s);
1046
+ var p = this.$utils(), g = (s || "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(E) {
1047
+ switch (E) {
1048
+ case "Q":
1049
+ return Math.ceil((y.$M + 1) / 3);
1050
+ case "Do":
1051
+ return _.ordinal(y.$D);
1052
+ case "gggg":
1053
+ return y.weekYear();
1054
+ case "GGGG":
1055
+ return y.isoWeekYear();
1056
+ case "wo":
1057
+ return _.ordinal(y.week(), "W");
1058
+ case "w":
1059
+ case "ww":
1060
+ return p.s(y.week(), E === "w" ? 1 : 2, "0");
1061
+ case "W":
1062
+ case "WW":
1063
+ return p.s(y.isoWeek(), E === "W" ? 1 : 2, "0");
1064
+ case "k":
1065
+ case "kk":
1066
+ return p.s(String(y.$H === 0 ? 24 : y.$H), E === "k" ? 1 : 2, "0");
1067
+ case "X":
1068
+ return Math.floor(y.$d.getTime() / 1e3);
1069
+ case "x":
1070
+ return y.$d.getTime();
1071
+ case "z":
1072
+ return "[" + y.offsetName() + "]";
1073
+ case "zzz":
1074
+ return "[" + y.offsetName("long") + "]";
1075
+ default:
1076
+ return E;
1077
+ }
1078
+ }));
1079
+ return i.bind(this)(g);
1080
+ };
1081
+ };
1082
+ }));
1083
+ })($t)), $t.exports;
1084
+ }
1085
+ var Va = Na();
1086
+ const Pa = /* @__PURE__ */ we(Va);
1087
+ var ve = (function() {
1088
+ var t = /* @__PURE__ */ h(function(U, l, m, T) {
1089
+ for (m = m || {}, T = U.length; T--; m[U[T]] = l) ;
1090
+ return m;
1091
+ }, "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], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], X = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], B = [1, 20], $ = [1, 21], D = [1, 22], H = [1, 23], x = [1, 25], Y = [1, 35], F = {
1092
+ trace: /* @__PURE__ */ h(function() {
1093
+ }, "trace"),
1094
+ yy: {},
1095
+ 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 },
1096
+ 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" },
1097
+ 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]],
1098
+ performAction: /* @__PURE__ */ h(function(l, m, T, d, w, c, u) {
1099
+ var o = c.length - 1;
1100
+ switch (w) {
1101
+ case 1:
1102
+ return c[o - 1];
1103
+ case 2:
1104
+ this.$ = [];
1105
+ break;
1106
+ case 3:
1107
+ c[o - 1].push(c[o]), this.$ = c[o - 1];
1108
+ break;
1109
+ case 4:
1110
+ case 5:
1111
+ this.$ = c[o];
1112
+ break;
1113
+ case 6:
1114
+ case 7:
1115
+ this.$ = [];
1116
+ break;
1117
+ case 8:
1118
+ d.setWeekday("monday");
1119
+ break;
1120
+ case 9:
1121
+ d.setWeekday("tuesday");
1122
+ break;
1123
+ case 10:
1124
+ d.setWeekday("wednesday");
1125
+ break;
1126
+ case 11:
1127
+ d.setWeekday("thursday");
1128
+ break;
1129
+ case 12:
1130
+ d.setWeekday("friday");
1131
+ break;
1132
+ case 13:
1133
+ d.setWeekday("saturday");
1134
+ break;
1135
+ case 14:
1136
+ d.setWeekday("sunday");
1137
+ break;
1138
+ case 15:
1139
+ d.setWeekend("friday");
1140
+ break;
1141
+ case 16:
1142
+ d.setWeekend("saturday");
1143
+ break;
1144
+ case 17:
1145
+ d.setDateFormat(c[o].substr(11)), this.$ = c[o].substr(11);
1146
+ break;
1147
+ case 18:
1148
+ d.enableInclusiveEndDates(), this.$ = c[o].substr(18);
1149
+ break;
1150
+ case 19:
1151
+ d.TopAxis(), this.$ = c[o].substr(8);
1152
+ break;
1153
+ case 20:
1154
+ d.setAxisFormat(c[o].substr(11)), this.$ = c[o].substr(11);
1155
+ break;
1156
+ case 21:
1157
+ d.setTickInterval(c[o].substr(13)), this.$ = c[o].substr(13);
1158
+ break;
1159
+ case 22:
1160
+ d.setExcludes(c[o].substr(9)), this.$ = c[o].substr(9);
1161
+ break;
1162
+ case 23:
1163
+ d.setIncludes(c[o].substr(9)), this.$ = c[o].substr(9);
1164
+ break;
1165
+ case 24:
1166
+ d.setTodayMarker(c[o].substr(12)), this.$ = c[o].substr(12);
1167
+ break;
1168
+ case 27:
1169
+ d.setDiagramTitle(c[o].substr(6)), this.$ = c[o].substr(6);
1170
+ break;
1171
+ case 28:
1172
+ this.$ = c[o].trim(), d.setAccTitle(this.$);
1173
+ break;
1174
+ case 29:
1175
+ case 30:
1176
+ this.$ = c[o].trim(), d.setAccDescription(this.$);
1177
+ break;
1178
+ case 31:
1179
+ d.addSection(c[o].substr(8)), this.$ = c[o].substr(8);
1180
+ break;
1181
+ case 33:
1182
+ d.addTask(c[o - 1], c[o]), this.$ = "task";
1183
+ break;
1184
+ case 34:
1185
+ this.$ = c[o - 1], d.setClickEvent(c[o - 1], c[o], null);
1186
+ break;
1187
+ case 35:
1188
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o - 1], c[o]);
1189
+ break;
1190
+ case 36:
1191
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o - 1], null), d.setLink(c[o - 2], c[o]);
1192
+ break;
1193
+ case 37:
1194
+ this.$ = c[o - 3], d.setClickEvent(c[o - 3], c[o - 2], c[o - 1]), d.setLink(c[o - 3], c[o]);
1195
+ break;
1196
+ case 38:
1197
+ this.$ = c[o - 2], d.setClickEvent(c[o - 2], c[o], null), d.setLink(c[o - 2], c[o - 1]);
1198
+ break;
1199
+ case 39:
1200
+ this.$ = c[o - 3], d.setClickEvent(c[o - 3], c[o - 1], c[o]), d.setLink(c[o - 3], c[o - 2]);
1201
+ break;
1202
+ case 40:
1203
+ this.$ = c[o - 1], d.setLink(c[o - 1], c[o]);
1204
+ break;
1205
+ case 41:
1206
+ case 47:
1207
+ this.$ = c[o - 1] + " " + c[o];
1208
+ break;
1209
+ case 42:
1210
+ case 43:
1211
+ case 45:
1212
+ this.$ = c[o - 2] + " " + c[o - 1] + " " + c[o];
1213
+ break;
1214
+ case 44:
1215
+ case 46:
1216
+ this.$ = c[o - 3] + " " + c[o - 2] + " " + c[o - 1] + " " + c[o];
1217
+ break;
1218
+ }
1219
+ }, "anonymous"),
1220
+ 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: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, 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])],
1221
+ defaultActions: {},
1222
+ parseError: /* @__PURE__ */ h(function(l, m) {
1223
+ if (m.recoverable)
1224
+ this.trace(l);
1225
+ else {
1226
+ var T = new Error(l);
1227
+ throw T.hash = m, T;
1228
+ }
1229
+ }, "parseError"),
1230
+ parse: /* @__PURE__ */ h(function(l) {
1231
+ var m = this, T = [0], d = [], w = [null], c = [], u = this.table, o = "", z = 0, P = 0, R = 2, K = 1, G = c.slice.call(arguments, 1), j = Object.create(this.lexer), it = { yy: {} };
1232
+ for (var k in this.yy)
1233
+ Object.prototype.hasOwnProperty.call(this.yy, k) && (it.yy[k] = this.yy[k]);
1234
+ j.setInput(l, it.yy), it.yy.lexer = j, it.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
1235
+ var A = j.yylloc;
1236
+ c.push(A);
1237
+ var N = j.options && j.options.ranges;
1238
+ typeof it.yy.parseError == "function" ? this.parseError = it.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1239
+ function f(ot) {
1240
+ T.length = T.length - 2 * ot, w.length = w.length - ot, c.length = c.length - ot;
1241
+ }
1242
+ h(f, "popStack");
1243
+ function J() {
1244
+ var ot;
1245
+ return ot = d.pop() || j.lex() || K, typeof ot != "number" && (ot instanceof Array && (d = ot, ot = d.pop()), ot = m.symbols_[ot] || ot), ot;
1246
+ }
1247
+ h(J, "lex");
1248
+ for (var L, Q, Z, rt, st = {}, pt, ut, We, qt; ; ) {
1249
+ if (Q = T[T.length - 1], this.defaultActions[Q] ? Z = this.defaultActions[Q] : ((L === null || typeof L > "u") && (L = J()), Z = u[Q] && u[Q][L]), typeof Z > "u" || !Z.length || !Z[0]) {
1250
+ var ie = "";
1251
+ qt = [];
1252
+ for (pt in u[Q])
1253
+ this.terminals_[pt] && pt > R && qt.push("'" + this.terminals_[pt] + "'");
1254
+ j.showPosition ? ie = "Parse error on line " + (z + 1) + `:
1255
+ ` + j.showPosition() + `
1256
+ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : ie = "Parse error on line " + (z + 1) + ": Unexpected " + (L == K ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(ie, {
1257
+ text: j.match,
1258
+ token: this.terminals_[L] || L,
1259
+ line: j.yylineno,
1260
+ loc: A,
1261
+ expected: qt
1262
+ });
1263
+ }
1264
+ if (Z[0] instanceof Array && Z.length > 1)
1265
+ throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + L);
1266
+ switch (Z[0]) {
1267
+ case 1:
1268
+ T.push(L), w.push(j.yytext), c.push(j.yylloc), T.push(Z[1]), L = null, P = j.yyleng, o = j.yytext, z = j.yylineno, A = j.yylloc;
1269
+ break;
1270
+ case 2:
1271
+ if (ut = this.productions_[Z[1]][1], st.$ = w[w.length - ut], st._$ = {
1272
+ first_line: c[c.length - (ut || 1)].first_line,
1273
+ last_line: c[c.length - 1].last_line,
1274
+ first_column: c[c.length - (ut || 1)].first_column,
1275
+ last_column: c[c.length - 1].last_column
1276
+ }, N && (st._$.range = [
1277
+ c[c.length - (ut || 1)].range[0],
1278
+ c[c.length - 1].range[1]
1279
+ ]), rt = this.performAction.apply(st, [
1280
+ o,
1281
+ P,
1282
+ z,
1283
+ it.yy,
1284
+ Z[1],
1285
+ w,
1286
+ c
1287
+ ].concat(G)), typeof rt < "u")
1288
+ return rt;
1289
+ ut && (T = T.slice(0, -1 * ut * 2), w = w.slice(0, -1 * ut), c = c.slice(0, -1 * ut)), T.push(this.productions_[Z[1]][0]), w.push(st.$), c.push(st._$), We = u[T[T.length - 2]][T[T.length - 1]], T.push(We);
1290
+ break;
1291
+ case 3:
1292
+ return !0;
1293
+ }
1294
+ }
1295
+ return !0;
1296
+ }, "parse")
1297
+ }, S = /* @__PURE__ */ (function() {
1298
+ var U = {
1299
+ EOF: 1,
1300
+ parseError: /* @__PURE__ */ h(function(m, T) {
1301
+ if (this.yy.parser)
1302
+ this.yy.parser.parseError(m, T);
1303
+ else
1304
+ throw new Error(m);
1305
+ }, "parseError"),
1306
+ // resets the lexer, sets new input
1307
+ setInput: /* @__PURE__ */ h(function(l, m) {
1308
+ return this.yy = m || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1309
+ first_line: 1,
1310
+ first_column: 0,
1311
+ last_line: 1,
1312
+ last_column: 0
1313
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1314
+ }, "setInput"),
1315
+ // consumes and returns one char from the input
1316
+ input: /* @__PURE__ */ h(function() {
1317
+ var l = this._input[0];
1318
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
1319
+ var m = l.match(/(?:\r\n?|\n).*/g);
1320
+ return m ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
1321
+ }, "input"),
1322
+ // unshifts one char (or a string) into the input
1323
+ unput: /* @__PURE__ */ h(function(l) {
1324
+ var m = l.length, T = l.split(/(?:\r\n?|\n)/g);
1325
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
1326
+ var d = this.match.split(/(?:\r\n?|\n)/g);
1327
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), T.length - 1 && (this.yylineno -= T.length - 1);
1328
+ var w = this.yylloc.range;
1329
+ return this.yylloc = {
1330
+ first_line: this.yylloc.first_line,
1331
+ last_line: this.yylineno + 1,
1332
+ first_column: this.yylloc.first_column,
1333
+ last_column: T ? (T.length === d.length ? this.yylloc.first_column : 0) + d[d.length - T.length].length - T[0].length : this.yylloc.first_column - m
1334
+ }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - m]), this.yyleng = this.yytext.length, this;
1335
+ }, "unput"),
1336
+ // When called from action, caches matched text and appends it on next action
1337
+ more: /* @__PURE__ */ h(function() {
1338
+ return this._more = !0, this;
1339
+ }, "more"),
1340
+ // 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.
1341
+ reject: /* @__PURE__ */ h(function() {
1342
+ if (this.options.backtrack_lexer)
1343
+ this._backtrack = !0;
1344
+ else
1345
+ 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).
1346
+ ` + this.showPosition(), {
1347
+ text: "",
1348
+ token: null,
1349
+ line: this.yylineno
1350
+ });
1351
+ return this;
1352
+ }, "reject"),
1353
+ // retain first n characters of the match
1354
+ less: /* @__PURE__ */ h(function(l) {
1355
+ this.unput(this.match.slice(l));
1356
+ }, "less"),
1357
+ // displays already matched input, i.e. for error messages
1358
+ pastInput: /* @__PURE__ */ h(function() {
1359
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
1360
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
1361
+ }, "pastInput"),
1362
+ // displays upcoming input, i.e. for error messages
1363
+ upcomingInput: /* @__PURE__ */ h(function() {
1364
+ var l = this.match;
1365
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
1366
+ }, "upcomingInput"),
1367
+ // displays the character position where the lexing error occurred, i.e. for error messages
1368
+ showPosition: /* @__PURE__ */ h(function() {
1369
+ var l = this.pastInput(), m = new Array(l.length + 1).join("-");
1370
+ return l + this.upcomingInput() + `
1371
+ ` + m + "^";
1372
+ }, "showPosition"),
1373
+ // test the lexed token: return FALSE when not a match, otherwise return token
1374
+ test_match: /* @__PURE__ */ h(function(l, m) {
1375
+ var T, d, w;
1376
+ if (this.options.backtrack_lexer && (w = {
1377
+ yylineno: this.yylineno,
1378
+ yylloc: {
1379
+ first_line: this.yylloc.first_line,
1380
+ last_line: this.last_line,
1381
+ first_column: this.yylloc.first_column,
1382
+ last_column: this.yylloc.last_column
1383
+ },
1384
+ yytext: this.yytext,
1385
+ match: this.match,
1386
+ matches: this.matches,
1387
+ matched: this.matched,
1388
+ yyleng: this.yyleng,
1389
+ offset: this.offset,
1390
+ _more: this._more,
1391
+ _input: this._input,
1392
+ yy: this.yy,
1393
+ conditionStack: this.conditionStack.slice(0),
1394
+ done: this.done
1395
+ }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), d = l[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
1396
+ first_line: this.yylloc.last_line,
1397
+ last_line: this.yylineno + 1,
1398
+ first_column: this.yylloc.last_column,
1399
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
1400
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, 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(l[0].length), this.matched += l[0], T = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), T)
1401
+ return T;
1402
+ if (this._backtrack) {
1403
+ for (var c in w)
1404
+ this[c] = w[c];
1405
+ return !1;
1406
+ }
1407
+ return !1;
1408
+ }, "test_match"),
1409
+ // return next match in input
1410
+ next: /* @__PURE__ */ h(function() {
1411
+ if (this.done)
1412
+ return this.EOF;
1413
+ this._input || (this.done = !0);
1414
+ var l, m, T, d;
1415
+ this._more || (this.yytext = "", this.match = "");
1416
+ for (var w = this._currentRules(), c = 0; c < w.length; c++)
1417
+ if (T = this._input.match(this.rules[w[c]]), T && (!m || T[0].length > m[0].length)) {
1418
+ if (m = T, d = c, this.options.backtrack_lexer) {
1419
+ if (l = this.test_match(T, w[c]), l !== !1)
1420
+ return l;
1421
+ if (this._backtrack) {
1422
+ m = !1;
1423
+ continue;
1424
+ } else
1425
+ return !1;
1426
+ } else if (!this.options.flex)
1427
+ break;
1428
+ }
1429
+ return m ? (l = this.test_match(m, w[d]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1430
+ ` + this.showPosition(), {
1431
+ text: "",
1432
+ token: null,
1433
+ line: this.yylineno
1434
+ });
1435
+ }, "next"),
1436
+ // return next match that has a token
1437
+ lex: /* @__PURE__ */ h(function() {
1438
+ var m = this.next();
1439
+ return m || this.lex();
1440
+ }, "lex"),
1441
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1442
+ begin: /* @__PURE__ */ h(function(m) {
1443
+ this.conditionStack.push(m);
1444
+ }, "begin"),
1445
+ // pop the previously active lexer condition state off the condition stack
1446
+ popState: /* @__PURE__ */ h(function() {
1447
+ var m = this.conditionStack.length - 1;
1448
+ return m > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1449
+ }, "popState"),
1450
+ // produce the lexer rule set which is active for the currently active lexer condition state
1451
+ _currentRules: /* @__PURE__ */ h(function() {
1452
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1453
+ }, "_currentRules"),
1454
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1455
+ topState: /* @__PURE__ */ h(function(m) {
1456
+ return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
1457
+ }, "topState"),
1458
+ // alias for begin(condition)
1459
+ pushState: /* @__PURE__ */ h(function(m) {
1460
+ this.begin(m);
1461
+ }, "pushState"),
1462
+ // return the number of states currently on the stack
1463
+ stateStackSize: /* @__PURE__ */ h(function() {
1464
+ return this.conditionStack.length;
1465
+ }, "stateStackSize"),
1466
+ options: { "case-insensitive": !0 },
1467
+ performAction: /* @__PURE__ */ h(function(m, T, d, w) {
1468
+ switch (d) {
1469
+ case 0:
1470
+ return this.begin("open_directive"), "open_directive";
1471
+ case 1:
1472
+ return this.begin("acc_title"), 31;
1473
+ case 2:
1474
+ return this.popState(), "acc_title_value";
1475
+ case 3:
1476
+ return this.begin("acc_descr"), 33;
1477
+ case 4:
1478
+ return this.popState(), "acc_descr_value";
1479
+ case 5:
1480
+ this.begin("acc_descr_multiline");
1481
+ break;
1482
+ case 6:
1483
+ this.popState();
1484
+ break;
1485
+ case 7:
1486
+ return "acc_descr_multiline_value";
1487
+ case 8:
1488
+ break;
1489
+ case 9:
1490
+ break;
1491
+ case 10:
1492
+ break;
1493
+ case 11:
1494
+ return 10;
1495
+ case 12:
1496
+ break;
1497
+ case 13:
1498
+ break;
1499
+ case 14:
1500
+ this.begin("href");
1501
+ break;
1502
+ case 15:
1503
+ this.popState();
1504
+ break;
1505
+ case 16:
1506
+ return 43;
1507
+ case 17:
1508
+ this.begin("callbackname");
1509
+ break;
1510
+ case 18:
1511
+ this.popState();
1512
+ break;
1513
+ case 19:
1514
+ this.popState(), this.begin("callbackargs");
1515
+ break;
1516
+ case 20:
1517
+ return 41;
1518
+ case 21:
1519
+ this.popState();
1520
+ break;
1521
+ case 22:
1522
+ return 42;
1523
+ case 23:
1524
+ this.begin("click");
1525
+ break;
1526
+ case 24:
1527
+ this.popState();
1528
+ break;
1529
+ case 25:
1530
+ return 40;
1531
+ case 26:
1532
+ return 4;
1533
+ case 27:
1534
+ return 22;
1535
+ case 28:
1536
+ return 23;
1537
+ case 29:
1538
+ return 24;
1539
+ case 30:
1540
+ return 25;
1541
+ case 31:
1542
+ return 26;
1543
+ case 32:
1544
+ return 28;
1545
+ case 33:
1546
+ return 27;
1547
+ case 34:
1548
+ return 29;
1549
+ case 35:
1550
+ return 12;
1551
+ case 36:
1552
+ return 13;
1553
+ case 37:
1554
+ return 14;
1555
+ case 38:
1556
+ return 15;
1557
+ case 39:
1558
+ return 16;
1559
+ case 40:
1560
+ return 17;
1561
+ case 41:
1562
+ return 18;
1563
+ case 42:
1564
+ return 20;
1565
+ case 43:
1566
+ return 21;
1567
+ case 44:
1568
+ return "date";
1569
+ case 45:
1570
+ return 30;
1571
+ case 46:
1572
+ return "accDescription";
1573
+ case 47:
1574
+ return 36;
1575
+ case 48:
1576
+ return 38;
1577
+ case 49:
1578
+ return 39;
1579
+ case 50:
1580
+ return ":";
1581
+ case 51:
1582
+ return 6;
1583
+ case 52:
1584
+ return "INVALID";
1585
+ }
1586
+ }, "anonymous"),
1587
+ 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],
1588
+ 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 } }
1589
+ };
1590
+ return U;
1591
+ })();
1592
+ F.lexer = S;
1593
+ function v() {
1594
+ this.yy = {};
1595
+ }
1596
+ return h(v, "Parser"), v.prototype = F, F.Parser = v, new v();
1597
+ })();
1598
+ ve.parser = ve;
1599
+ var za = ve;
1600
+ at.extend(La);
1601
+ at.extend(Oa);
1602
+ at.extend(Pa);
1603
+ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt = [], zt = [], Fe = /* @__PURE__ */ new Map(), Ye = [], re = [], Et = "", Ue = "", Cn = ["active", "done", "crit", "milestone", "vert"], Ee = [], Rt = !1, Le = !1, Ae = "sunday", ae = "saturday", Te = 0, Ra = /* @__PURE__ */ h(function() {
1604
+ Ye = [], re = [], Et = "", Ee = [], jt = 0, xe = void 0, Jt = void 0, tt = [], lt = "", Me = "", Ue = "", _e = void 0, Se = "", Pt = [], zt = [], Rt = !1, Le = !1, Te = 0, Fe = /* @__PURE__ */ new Map(), qn(), Ae = "sunday", ae = "saturday";
1605
+ }, "clear"), qa = /* @__PURE__ */ h(function(t) {
1606
+ Me = t;
1607
+ }, "setAxisFormat"), Ba = /* @__PURE__ */ h(function() {
1608
+ return Me;
1609
+ }, "getAxisFormat"), Za = /* @__PURE__ */ h(function(t) {
1610
+ _e = t;
1611
+ }, "setTickInterval"), Xa = /* @__PURE__ */ h(function() {
1612
+ return _e;
1613
+ }, "getTickInterval"), Ga = /* @__PURE__ */ h(function(t) {
1614
+ Se = t;
1615
+ }, "setTodayMarker"), Qa = /* @__PURE__ */ h(function() {
1616
+ return Se;
1617
+ }, "getTodayMarker"), $a = /* @__PURE__ */ h(function(t) {
1618
+ lt = t;
1619
+ }, "setDateFormat"), ja = /* @__PURE__ */ h(function() {
1620
+ Rt = !0;
1621
+ }, "enableInclusiveEndDates"), Ja = /* @__PURE__ */ h(function() {
1622
+ return Rt;
1623
+ }, "endDatesAreInclusive"), Ka = /* @__PURE__ */ h(function() {
1624
+ Le = !0;
1625
+ }, "enableTopAxis"), ti = /* @__PURE__ */ h(function() {
1626
+ return Le;
1627
+ }, "topAxisEnabled"), ei = /* @__PURE__ */ h(function(t) {
1628
+ Ue = t;
1629
+ }, "setDisplayMode"), ni = /* @__PURE__ */ h(function() {
1630
+ return Ue;
1631
+ }, "getDisplayMode"), ri = /* @__PURE__ */ h(function() {
1632
+ return lt;
1633
+ }, "getDateFormat"), ai = /* @__PURE__ */ h(function(t) {
1634
+ Pt = t.toLowerCase().split(/[\s,]+/);
1635
+ }, "setIncludes"), ii = /* @__PURE__ */ h(function() {
1636
+ return Pt;
1637
+ }, "getIncludes"), si = /* @__PURE__ */ h(function(t) {
1638
+ zt = t.toLowerCase().split(/[\s,]+/);
1639
+ }, "setExcludes"), oi = /* @__PURE__ */ h(function() {
1640
+ return zt;
1641
+ }, "getExcludes"), ci = /* @__PURE__ */ h(function() {
1642
+ return Fe;
1643
+ }, "getLinks"), ui = /* @__PURE__ */ h(function(t) {
1644
+ Et = t, Ye.push(t);
1645
+ }, "addSection"), li = /* @__PURE__ */ h(function() {
1646
+ return Ye;
1647
+ }, "getSections"), fi = /* @__PURE__ */ h(function() {
1648
+ let t = tn();
1649
+ const e = 10;
1650
+ let n = 0;
1651
+ for (; !t && n < e; )
1652
+ t = tn(), n++;
1653
+ return re = tt, re;
1654
+ }, "getTasks"), Mn = /* @__PURE__ */ h(function(t, e, n, r) {
1655
+ const a = t.format(e.trim()), i = t.format("YYYY-MM-DD");
1656
+ return r.includes(a) || r.includes(i) ? !1 : n.includes("weekends") && (t.isoWeekday() === Ke[ae] || t.isoWeekday() === Ke[ae] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(a) || n.includes(i);
1657
+ }, "isInvalidDate"), hi = /* @__PURE__ */ h(function(t) {
1658
+ Ae = t;
1659
+ }, "setWeekday"), di = /* @__PURE__ */ h(function() {
1660
+ return Ae;
1661
+ }, "getWeekday"), mi = /* @__PURE__ */ h(function(t) {
1662
+ ae = t;
1663
+ }, "setWeekend"), _n = /* @__PURE__ */ h(function(t, e, n, r) {
1664
+ if (!n.length || t.manualEndTime)
1665
+ return;
1666
+ let a;
1667
+ t.startTime instanceof Date ? a = at(t.startTime) : a = at(t.startTime, e, !0), a = a.add(1, "d");
1668
+ let i;
1669
+ t.endTime instanceof Date ? i = at(t.endTime) : i = at(t.endTime, e, !0);
1670
+ const [s, y] = gi(
1671
+ a,
1672
+ i,
1673
+ e,
1674
+ n,
1675
+ r
1676
+ );
1677
+ t.endTime = s.toDate(), t.renderEndTime = y;
1678
+ }, "checkTaskDates"), gi = /* @__PURE__ */ h(function(t, e, n, r, a) {
1679
+ let i = !1, s = null;
1680
+ for (; t <= e; )
1681
+ i || (s = e.toDate()), i = Mn(t, n, r, a), i && (e = e.add(1, "d")), t = t.add(1, "d");
1682
+ return [e, s];
1683
+ }, "fixTaskDates"), be = /* @__PURE__ */ h(function(t, e, n) {
1684
+ if (n = n.trim(), (e.trim() === "x" || e.trim() === "X") && /^\d+$/.test(n))
1685
+ return new Date(Number(n));
1686
+ const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1687
+ if (a !== null) {
1688
+ let s = null;
1689
+ for (const _ of a.groups.ids.split(" ")) {
1690
+ let p = Ct(_);
1691
+ p !== void 0 && (!s || p.endTime > s.endTime) && (s = p);
1692
+ }
1693
+ if (s)
1694
+ return s.endTime;
1695
+ const y = /* @__PURE__ */ new Date();
1696
+ return y.setHours(0, 0, 0, 0), y;
1697
+ }
1698
+ let i = at(n, e.trim(), !0);
1699
+ if (i.isValid())
1700
+ return i.toDate();
1701
+ {
1702
+ Kt.debug("Invalid date:" + n), Kt.debug("With date format:" + e.trim());
1703
+ const s = new Date(n);
1704
+ if (s === void 0 || isNaN(s.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1705
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1706
+ // This can cause virtually infinite loops while rendering, so for the
1707
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1708
+ // invalid.
1709
+ s.getFullYear() < -1e4 || s.getFullYear() > 1e4)
1710
+ throw new Error("Invalid date:" + n);
1711
+ return s;
1712
+ }
1713
+ }, "getStartDate"), Sn = /* @__PURE__ */ h(function(t) {
1714
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1715
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1716
+ }, "parseDuration"), Fn = /* @__PURE__ */ h(function(t, e, n, r = !1) {
1717
+ n = n.trim();
1718
+ const i = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1719
+ if (i !== null) {
1720
+ let g = null;
1721
+ for (const C of i.groups.ids.split(" ")) {
1722
+ let b = Ct(C);
1723
+ b !== void 0 && (!g || b.startTime < g.startTime) && (g = b);
1724
+ }
1725
+ if (g)
1726
+ return g.startTime;
1727
+ const E = /* @__PURE__ */ new Date();
1728
+ return E.setHours(0, 0, 0, 0), E;
1729
+ }
1730
+ let s = at(n, e.trim(), !0);
1731
+ if (s.isValid())
1732
+ return r && (s = s.add(1, "d")), s.toDate();
1733
+ let y = at(t);
1734
+ const [_, p] = Sn(n);
1735
+ if (!Number.isNaN(_)) {
1736
+ const g = y.add(_, p);
1737
+ g.isValid() && (y = g);
1738
+ }
1739
+ return y.toDate();
1740
+ }, "getEndDate"), jt = 0, Ft = /* @__PURE__ */ h(function(t) {
1741
+ return t === void 0 ? (jt = jt + 1, "task" + jt) : t;
1742
+ }, "parseId"), yi = /* @__PURE__ */ h(function(t, e) {
1743
+ let n;
1744
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1745
+ const r = n.split(","), a = {};
1746
+ Ie(r, a, Cn);
1747
+ for (let s = 0; s < r.length; s++)
1748
+ r[s] = r[s].trim();
1749
+ let i = "";
1750
+ switch (r.length) {
1751
+ case 1:
1752
+ a.id = Ft(), a.startTime = t.endTime, i = r[0];
1753
+ break;
1754
+ case 2:
1755
+ a.id = Ft(), a.startTime = be(void 0, lt, r[0]), i = r[1];
1756
+ break;
1757
+ case 3:
1758
+ a.id = Ft(r[0]), a.startTime = be(void 0, lt, r[1]), i = r[2];
1759
+ break;
1760
+ }
1761
+ return i && (a.endTime = Fn(a.startTime, lt, i, Rt), a.manualEndTime = at(i, "YYYY-MM-DD", !0).isValid(), _n(a, lt, zt, Pt)), a;
1762
+ }, "compileData"), ki = /* @__PURE__ */ h(function(t, e) {
1763
+ let n;
1764
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1765
+ const r = n.split(","), a = {};
1766
+ Ie(r, a, Cn);
1767
+ for (let i = 0; i < r.length; i++)
1768
+ r[i] = r[i].trim();
1769
+ switch (r.length) {
1770
+ case 1:
1771
+ a.id = Ft(), a.startTime = {
1772
+ type: "prevTaskEnd",
1773
+ id: t
1774
+ }, a.endTime = {
1775
+ data: r[0]
1776
+ };
1777
+ break;
1778
+ case 2:
1779
+ a.id = Ft(), a.startTime = {
1780
+ type: "getStartDate",
1781
+ startData: r[0]
1782
+ }, a.endTime = {
1783
+ data: r[1]
1784
+ };
1785
+ break;
1786
+ case 3:
1787
+ a.id = Ft(r[0]), a.startTime = {
1788
+ type: "getStartDate",
1789
+ startData: r[1]
1790
+ }, a.endTime = {
1791
+ data: r[2]
1792
+ };
1793
+ break;
1794
+ }
1795
+ return a;
1796
+ }, "parseData"), xe, Jt, tt = [], Yn = {}, pi = /* @__PURE__ */ h(function(t, e) {
1797
+ const n = {
1798
+ section: Et,
1799
+ type: Et,
1800
+ processed: !1,
1801
+ manualEndTime: !1,
1802
+ renderEndTime: null,
1803
+ raw: { data: e },
1804
+ task: t,
1805
+ classes: []
1806
+ }, r = ki(Jt, e);
1807
+ 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++;
1808
+ const a = tt.push(n);
1809
+ Jt = n.id, Yn[n.id] = a - 1;
1810
+ }, "addTask"), Ct = /* @__PURE__ */ h(function(t) {
1811
+ const e = Yn[t];
1812
+ return tt[e];
1813
+ }, "findTaskById"), vi = /* @__PURE__ */ h(function(t, e) {
1814
+ const n = {
1815
+ section: Et,
1816
+ type: Et,
1817
+ description: t,
1818
+ task: t,
1819
+ classes: []
1820
+ }, r = yi(xe, e);
1821
+ 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, re.push(n);
1822
+ }, "addTaskOrg"), tn = /* @__PURE__ */ h(function() {
1823
+ const t = /* @__PURE__ */ h(function(n) {
1824
+ const r = tt[n];
1825
+ let a = "";
1826
+ switch (tt[n].raw.startTime.type) {
1827
+ case "prevTaskEnd": {
1828
+ const i = Ct(r.prevTaskId);
1829
+ r.startTime = i.endTime;
1830
+ break;
1831
+ }
1832
+ case "getStartDate":
1833
+ a = be(void 0, lt, tt[n].raw.startTime.startData), a && (tt[n].startTime = a);
1834
+ break;
1835
+ }
1836
+ return tt[n].startTime && (tt[n].endTime = Fn(
1837
+ tt[n].startTime,
1838
+ lt,
1839
+ tt[n].raw.endTime.data,
1840
+ Rt
1841
+ ), tt[n].endTime && (tt[n].processed = !0, tt[n].manualEndTime = at(
1842
+ tt[n].raw.endTime.data,
1843
+ "YYYY-MM-DD",
1844
+ !0
1845
+ ).isValid(), _n(tt[n], lt, zt, Pt))), tt[n].processed;
1846
+ }, "compileTask");
1847
+ let e = !0;
1848
+ for (const [n, r] of tt.entries())
1849
+ t(n), e = e && r.processed;
1850
+ return e;
1851
+ }, "compileTasks"), Ti = /* @__PURE__ */ h(function(t, e) {
1852
+ let n = e;
1853
+ _t().securityLevel !== "loose" && (n = Rn.sanitizeUrl(e)), t.split(",").forEach(function(r) {
1854
+ Ct(r) !== void 0 && (En(r, () => {
1855
+ window.open(n, "_self");
1856
+ }), Fe.set(r, n));
1857
+ }), Un(t, "clickable");
1858
+ }, "setLink"), Un = /* @__PURE__ */ h(function(t, e) {
1859
+ t.split(",").forEach(function(n) {
1860
+ let r = Ct(n);
1861
+ r !== void 0 && r.classes.push(e);
1862
+ });
1863
+ }, "setClass"), bi = /* @__PURE__ */ h(function(t, e, n) {
1864
+ if (_t().securityLevel !== "loose" || e === void 0)
1865
+ return;
1866
+ let r = [];
1867
+ if (typeof n == "string") {
1868
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1869
+ for (let i = 0; i < r.length; i++) {
1870
+ let s = r[i].trim();
1871
+ s.startsWith('"') && s.endsWith('"') && (s = s.substr(1, s.length - 2)), r[i] = s;
1872
+ }
1873
+ }
1874
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && En(t, () => {
1875
+ Bn.runFunc(e, ...r);
1876
+ });
1877
+ }, "setClickFun"), En = /* @__PURE__ */ h(function(t, e) {
1878
+ Ee.push(
1879
+ function() {
1880
+ const n = document.querySelector(`[id="${t}"]`);
1881
+ n !== null && n.addEventListener("click", function() {
1882
+ e();
1883
+ });
1884
+ },
1885
+ function() {
1886
+ const n = document.querySelector(`[id="${t}-text"]`);
1887
+ n !== null && n.addEventListener("click", function() {
1888
+ e();
1889
+ });
1890
+ }
1891
+ );
1892
+ }, "pushFun"), xi = /* @__PURE__ */ h(function(t, e, n) {
1893
+ t.split(",").forEach(function(r) {
1894
+ bi(r, e, n);
1895
+ }), Un(t, "clickable");
1896
+ }, "setClickEvent"), wi = /* @__PURE__ */ h(function(t) {
1897
+ Ee.forEach(function(e) {
1898
+ e(t);
1899
+ });
1900
+ }, "bindFunctions"), Di = {
1901
+ getConfig: /* @__PURE__ */ h(() => _t().gantt, "getConfig"),
1902
+ clear: Ra,
1903
+ setDateFormat: $a,
1904
+ getDateFormat: ri,
1905
+ enableInclusiveEndDates: ja,
1906
+ endDatesAreInclusive: Ja,
1907
+ enableTopAxis: Ka,
1908
+ topAxisEnabled: ti,
1909
+ setAxisFormat: qa,
1910
+ getAxisFormat: Ba,
1911
+ setTickInterval: Za,
1912
+ getTickInterval: Xa,
1913
+ setTodayMarker: Ga,
1914
+ getTodayMarker: Qa,
1915
+ setAccTitle: Vn,
1916
+ getAccTitle: Nn,
1917
+ setDiagramTitle: Hn,
1918
+ getDiagramTitle: On,
1919
+ setDisplayMode: ei,
1920
+ getDisplayMode: ni,
1921
+ setAccDescription: Wn,
1922
+ getAccDescription: In,
1923
+ addSection: ui,
1924
+ getSections: li,
1925
+ getTasks: fi,
1926
+ addTask: pi,
1927
+ findTaskById: Ct,
1928
+ addTaskOrg: vi,
1929
+ setIncludes: ai,
1930
+ getIncludes: ii,
1931
+ setExcludes: si,
1932
+ getExcludes: oi,
1933
+ setClickEvent: xi,
1934
+ setLink: Ti,
1935
+ getLinks: ci,
1936
+ bindFunctions: wi,
1937
+ parseDuration: Sn,
1938
+ isInvalidDate: Mn,
1939
+ setWeekday: hi,
1940
+ getWeekday: di,
1941
+ setWeekend: mi
1942
+ };
1943
+ function Ie(t, e, n) {
1944
+ let r = !0;
1945
+ for (; r; )
1946
+ r = !1, n.forEach(function(a) {
1947
+ const i = "^\\s*" + a + "\\s*$", s = new RegExp(i);
1948
+ t[0].match(s) && (e[a] = !0, t.shift(1), r = !0);
1949
+ });
1950
+ }
1951
+ h(Ie, "getTaskTags");
1952
+ var Ci = /* @__PURE__ */ h(function() {
1953
+ Kt.debug("Something is calling, setConf, remove the call");
1954
+ }, "setConf"), en = {
1955
+ monday: Ht,
1956
+ tuesday: gn,
1957
+ wednesday: yn,
1958
+ thursday: bt,
1959
+ friday: kn,
1960
+ saturday: pn,
1961
+ sunday: Vt
1962
+ }, Mi = /* @__PURE__ */ h((t, e) => {
1963
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((i, s) => i.startTime - s.startTime || i.order - s.order), a = 0;
1964
+ for (const i of r)
1965
+ for (let s = 0; s < n.length; s++)
1966
+ if (i.startTime >= n[s]) {
1967
+ n[s] = i.endTime, i.order = s + e, s > a && (a = s);
1968
+ break;
1969
+ }
1970
+ return a;
1971
+ }, "getMaxIntersections"), ht, _i = /* @__PURE__ */ h(function(t, e, n, r) {
1972
+ const a = _t().gantt, i = _t().securityLevel;
1973
+ let s;
1974
+ i === "sandbox" && (s = Bt("#i" + e));
1975
+ const y = i === "sandbox" ? Bt(s.nodes()[0].contentDocument.body) : Bt("body"), _ = i === "sandbox" ? s.nodes()[0].contentDocument : document, p = _.getElementById(e);
1976
+ ht = p.parentElement.offsetWidth, ht === void 0 && (ht = 1200), a.useWidth !== void 0 && (ht = a.useWidth);
1977
+ const g = r.db.getTasks();
1978
+ let E = [];
1979
+ for (const x of g)
1980
+ E.push(x.type);
1981
+ E = H(E);
1982
+ const C = {};
1983
+ let b = 2 * a.topPadding;
1984
+ if (r.db.getDisplayMode() === "compact" || a.displayMode === "compact") {
1985
+ const x = {};
1986
+ for (const F of g)
1987
+ x[F.section] === void 0 ? x[F.section] = [F] : x[F.section].push(F);
1988
+ let Y = 0;
1989
+ for (const F of Object.keys(x)) {
1990
+ const S = Mi(x[F], Y) + 1;
1991
+ Y += S, b += S * (a.barHeight + a.barGap), C[F] = S;
1992
+ }
1993
+ } else {
1994
+ b += g.length * (a.barHeight + a.barGap);
1995
+ for (const x of E)
1996
+ C[x] = g.filter((Y) => Y.type === x).length;
1997
+ }
1998
+ p.setAttribute("viewBox", "0 0 " + ht + " " + b);
1999
+ const X = y.select(`[id="${e}"]`), O = Fa().domain([
2000
+ Jn(g, function(x) {
2001
+ return x.startTime;
2002
+ }),
2003
+ jn(g, function(x) {
2004
+ return x.endTime;
2005
+ })
2006
+ ]).rangeRound([0, ht - a.leftPadding - a.rightPadding]);
2007
+ function M(x, Y) {
2008
+ const F = x.startTime, S = Y.startTime;
2009
+ let v = 0;
2010
+ return F > S ? v = 1 : F < S && (v = -1), v;
2011
+ }
2012
+ h(M, "taskCompare"), g.sort(M), I(g, ht, b), Pn(X, b, ht, a.useMaxWidth), X.append("text").text(r.db.getDiagramTitle()).attr("x", ht / 2).attr("y", a.titleTopMargin).attr("class", "titleText");
2013
+ function I(x, Y, F) {
2014
+ const S = a.barHeight, v = S + a.barGap, U = a.topPadding, l = a.leftPadding, m = Qn().domain([0, E.length]).range(["#00B9FA", "#F95002"]).interpolate(dr);
2015
+ W(
2016
+ v,
2017
+ U,
2018
+ l,
2019
+ Y,
2020
+ F,
2021
+ x,
2022
+ r.db.getExcludes(),
2023
+ r.db.getIncludes()
2024
+ ), B(l, U, Y, F), V(x, v, U, l, S, m, Y), $(v, U), D(l, U, Y, F);
2025
+ }
2026
+ h(I, "makeGantt");
2027
+ function V(x, Y, F, S, v, U, l) {
2028
+ x.sort((u, o) => u.vert === o.vert ? 0 : u.vert ? 1 : -1);
2029
+ const T = [...new Set(x.map((u) => u.order))].map((u) => x.find((o) => o.order === u));
2030
+ X.append("g").selectAll("rect").data(T).enter().append("rect").attr("x", 0).attr("y", function(u, o) {
2031
+ return o = u.order, o * Y + F - 2;
2032
+ }).attr("width", function() {
2033
+ return l - a.rightPadding / 2;
2034
+ }).attr("height", Y).attr("class", function(u) {
2035
+ for (const [o, z] of E.entries())
2036
+ if (u.type === z)
2037
+ return "section section" + o % a.numberSectionStyles;
2038
+ return "section section0";
2039
+ }).enter();
2040
+ const d = X.append("g").selectAll("rect").data(x).enter(), w = r.db.getLinks();
2041
+ if (d.append("rect").attr("id", function(u) {
2042
+ return u.id;
2043
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(u) {
2044
+ return u.milestone ? O(u.startTime) + S + 0.5 * (O(u.endTime) - O(u.startTime)) - 0.5 * v : O(u.startTime) + S;
2045
+ }).attr("y", function(u, o) {
2046
+ return o = u.order, u.vert ? a.gridLineStartPadding : o * Y + F;
2047
+ }).attr("width", function(u) {
2048
+ return u.milestone ? v : u.vert ? 0.08 * v : O(u.renderEndTime || u.endTime) - O(u.startTime);
2049
+ }).attr("height", function(u) {
2050
+ return u.vert ? g.length * (a.barHeight + a.barGap) + a.barHeight * 2 : v;
2051
+ }).attr("transform-origin", function(u, o) {
2052
+ return o = u.order, (O(u.startTime) + S + 0.5 * (O(u.endTime) - O(u.startTime))).toString() + "px " + (o * Y + F + 0.5 * v).toString() + "px";
2053
+ }).attr("class", function(u) {
2054
+ const o = "task";
2055
+ let z = "";
2056
+ u.classes.length > 0 && (z = u.classes.join(" "));
2057
+ let P = 0;
2058
+ for (const [K, G] of E.entries())
2059
+ u.type === G && (P = K % a.numberSectionStyles);
2060
+ let R = "";
2061
+ return u.active ? u.crit ? R += " activeCrit" : R = " active" : u.done ? u.crit ? R = " doneCrit" : R = " done" : u.crit && (R += " crit"), R.length === 0 && (R = " task"), u.milestone && (R = " milestone " + R), u.vert && (R = " vert " + R), R += P, R += " " + z, o + R;
2062
+ }), d.append("text").attr("id", function(u) {
2063
+ return u.id + "-text";
2064
+ }).text(function(u) {
2065
+ return u.task;
2066
+ }).attr("font-size", a.fontSize).attr("x", function(u) {
2067
+ let o = O(u.startTime), z = O(u.renderEndTime || u.endTime);
2068
+ if (u.milestone && (o += 0.5 * (O(u.endTime) - O(u.startTime)) - 0.5 * v, z = o + v), u.vert)
2069
+ return O(u.startTime) + S;
2070
+ const P = this.getBBox().width;
2071
+ return P > z - o ? z + P + 1.5 * a.leftPadding > l ? o + S - 5 : z + S + 5 : (z - o) / 2 + o + S;
2072
+ }).attr("y", function(u, o) {
2073
+ return u.vert ? a.gridLineStartPadding + g.length * (a.barHeight + a.barGap) + 60 : (o = u.order, o * Y + a.barHeight / 2 + (a.fontSize / 2 - 2) + F);
2074
+ }).attr("text-height", v).attr("class", function(u) {
2075
+ const o = O(u.startTime);
2076
+ let z = O(u.endTime);
2077
+ u.milestone && (z = o + v);
2078
+ const P = this.getBBox().width;
2079
+ let R = "";
2080
+ u.classes.length > 0 && (R = u.classes.join(" "));
2081
+ let K = 0;
2082
+ for (const [j, it] of E.entries())
2083
+ u.type === it && (K = j % a.numberSectionStyles);
2084
+ let G = "";
2085
+ return u.active && (u.crit ? G = "activeCritText" + K : G = "activeText" + K), u.done ? u.crit ? G = G + " doneCritText" + K : G = G + " doneText" + K : u.crit && (G = G + " critText" + K), u.milestone && (G += " milestoneText"), u.vert && (G += " vertText"), P > z - o ? z + P + 1.5 * a.leftPadding > l ? R + " taskTextOutsideLeft taskTextOutside" + K + " " + G : R + " taskTextOutsideRight taskTextOutside" + K + " " + G + " width-" + P : R + " taskText taskText" + K + " " + G + " width-" + P;
2086
+ }), _t().securityLevel === "sandbox") {
2087
+ let u;
2088
+ u = Bt("#i" + e);
2089
+ const o = u.nodes()[0].contentDocument;
2090
+ d.filter(function(z) {
2091
+ return w.has(z.id);
2092
+ }).each(function(z) {
2093
+ var P = o.querySelector("#" + z.id), R = o.querySelector("#" + z.id + "-text");
2094
+ const K = P.parentNode;
2095
+ var G = o.createElement("a");
2096
+ G.setAttribute("xlink:href", w.get(z.id)), G.setAttribute("target", "_top"), K.appendChild(G), G.appendChild(P), G.appendChild(R);
2097
+ });
2098
+ }
2099
+ }
2100
+ h(V, "drawRects");
2101
+ function W(x, Y, F, S, v, U, l, m) {
2102
+ if (l.length === 0 && m.length === 0)
2103
+ return;
2104
+ let T, d;
2105
+ for (const { startTime: P, endTime: R } of U)
2106
+ (T === void 0 || P < T) && (T = P), (d === void 0 || R > d) && (d = R);
2107
+ if (!T || !d)
2108
+ return;
2109
+ if (at(d).diff(at(T), "year") > 5) {
2110
+ Kt.warn(
2111
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2112
+ );
2113
+ return;
2114
+ }
2115
+ const w = r.db.getDateFormat(), c = [];
2116
+ let u = null, o = at(T);
2117
+ for (; o.valueOf() <= d; )
2118
+ r.db.isInvalidDate(o, w, l, m) ? u ? u.end = o : u = {
2119
+ start: o,
2120
+ end: o
2121
+ } : u && (c.push(u), u = null), o = o.add(1, "d");
2122
+ X.append("g").selectAll("rect").data(c).enter().append("rect").attr("id", (P) => "exclude-" + P.start.format("YYYY-MM-DD")).attr("x", (P) => O(P.start.startOf("day")) + F).attr("y", a.gridLineStartPadding).attr("width", (P) => O(P.end.endOf("day")) - O(P.start.startOf("day"))).attr("height", v - Y - a.gridLineStartPadding).attr("transform-origin", function(P, R) {
2123
+ return (O(P.start) + F + 0.5 * (O(P.end) - O(P.start))).toString() + "px " + (R * x + 0.5 * v).toString() + "px";
2124
+ }).attr("class", "exclude-range");
2125
+ }
2126
+ h(W, "drawExcludeDays");
2127
+ function B(x, Y, F, S) {
2128
+ const v = r.db.getDateFormat(), U = r.db.getAxisFormat();
2129
+ let l;
2130
+ U ? l = U : v === "D" ? l = "%d" : l = a.axisFormat ?? "%Y-%m-%d";
2131
+ let m = sr(O).tickSize(-S + Y + a.gridLineStartPadding).tickFormat(ne(l));
2132
+ const d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2133
+ r.db.getTickInterval() || a.tickInterval
2134
+ );
2135
+ if (d !== null) {
2136
+ const w = d[1], c = d[2], u = r.db.getWeekday() || a.weekday;
2137
+ switch (c) {
2138
+ case "millisecond":
2139
+ m.ticks(Yt.every(w));
2140
+ break;
2141
+ case "second":
2142
+ m.ticks(vt.every(w));
2143
+ break;
2144
+ case "minute":
2145
+ m.ticks(Wt.every(w));
2146
+ break;
2147
+ case "hour":
2148
+ m.ticks(Ot.every(w));
2149
+ break;
2150
+ case "day":
2151
+ m.ticks(Tt.every(w));
2152
+ break;
2153
+ case "week":
2154
+ m.ticks(en[u].every(w));
2155
+ break;
2156
+ case "month":
2157
+ m.ticks(Nt.every(w));
2158
+ break;
2159
+ }
2160
+ }
2161
+ if (X.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + (S - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || a.topAxis) {
2162
+ let w = ir(O).tickSize(-S + Y + a.gridLineStartPadding).tickFormat(ne(l));
2163
+ if (d !== null) {
2164
+ const c = d[1], u = d[2], o = r.db.getWeekday() || a.weekday;
2165
+ switch (u) {
2166
+ case "millisecond":
2167
+ w.ticks(Yt.every(c));
2168
+ break;
2169
+ case "second":
2170
+ w.ticks(vt.every(c));
2171
+ break;
2172
+ case "minute":
2173
+ w.ticks(Wt.every(c));
2174
+ break;
2175
+ case "hour":
2176
+ w.ticks(Ot.every(c));
2177
+ break;
2178
+ case "day":
2179
+ w.ticks(Tt.every(c));
2180
+ break;
2181
+ case "week":
2182
+ w.ticks(en[o].every(c));
2183
+ break;
2184
+ case "month":
2185
+ w.ticks(Nt.every(c));
2186
+ break;
2187
+ }
2188
+ }
2189
+ X.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + Y + ")").call(w).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2190
+ }
2191
+ }
2192
+ h(B, "makeGrid");
2193
+ function $(x, Y) {
2194
+ let F = 0;
2195
+ const S = Object.keys(C).map((v) => [v, C[v]]);
2196
+ X.append("g").selectAll("text").data(S).enter().append(function(v) {
2197
+ const U = v[0].split(zn.lineBreakRegex), l = -(U.length - 1) / 2, m = _.createElementNS("http://www.w3.org/2000/svg", "text");
2198
+ m.setAttribute("dy", l + "em");
2199
+ for (const [T, d] of U.entries()) {
2200
+ const w = _.createElementNS("http://www.w3.org/2000/svg", "tspan");
2201
+ w.setAttribute("alignment-baseline", "central"), w.setAttribute("x", "10"), T > 0 && w.setAttribute("dy", "1em"), w.textContent = d, m.appendChild(w);
2202
+ }
2203
+ return m;
2204
+ }).attr("x", 10).attr("y", function(v, U) {
2205
+ if (U > 0)
2206
+ for (let l = 0; l < U; l++)
2207
+ return F += S[U - 1][1], v[1] * x / 2 + F * x + Y;
2208
+ else
2209
+ return v[1] * x / 2 + Y;
2210
+ }).attr("font-size", a.sectionFontSize).attr("class", function(v) {
2211
+ for (const [U, l] of E.entries())
2212
+ if (v[0] === l)
2213
+ return "sectionTitle sectionTitle" + U % a.numberSectionStyles;
2214
+ return "sectionTitle";
2215
+ });
2216
+ }
2217
+ h($, "vertLabels");
2218
+ function D(x, Y, F, S) {
2219
+ const v = r.db.getTodayMarker();
2220
+ if (v === "off")
2221
+ return;
2222
+ const U = X.append("g").attr("class", "today"), l = /* @__PURE__ */ new Date(), m = U.append("line");
2223
+ m.attr("x1", O(l) + x).attr("x2", O(l) + x).attr("y1", a.titleTopMargin).attr("y2", S - a.titleTopMargin).attr("class", "today"), v !== "" && m.attr("style", v.replace(/,/g, ";"));
2224
+ }
2225
+ h(D, "drawToday");
2226
+ function H(x) {
2227
+ const Y = {}, F = [];
2228
+ for (let S = 0, v = x.length; S < v; ++S)
2229
+ Object.prototype.hasOwnProperty.call(Y, x[S]) || (Y[x[S]] = !0, F.push(x[S]));
2230
+ return F;
2231
+ }
2232
+ h(H, "checkUnique");
2233
+ }, "draw"), Si = {
2234
+ setConf: Ci,
2235
+ draw: _i
2236
+ }, Fi = /* @__PURE__ */ h((t) => `
2237
+ .mermaid-main-font {
2238
+ font-family: ${t.fontFamily};
2239
+ }
2240
+
2241
+ .exclude-range {
2242
+ fill: ${t.excludeBkgColor};
2243
+ }
2244
+
2245
+ .section {
2246
+ stroke: none;
2247
+ opacity: 0.2;
2248
+ }
2249
+
2250
+ .section0 {
2251
+ fill: ${t.sectionBkgColor};
2252
+ }
2253
+
2254
+ .section2 {
2255
+ fill: ${t.sectionBkgColor2};
2256
+ }
2257
+
2258
+ .section1,
2259
+ .section3 {
2260
+ fill: ${t.altSectionBkgColor};
2261
+ opacity: 0.2;
2262
+ }
2263
+
2264
+ .sectionTitle0 {
2265
+ fill: ${t.titleColor};
2266
+ }
2267
+
2268
+ .sectionTitle1 {
2269
+ fill: ${t.titleColor};
2270
+ }
2271
+
2272
+ .sectionTitle2 {
2273
+ fill: ${t.titleColor};
2274
+ }
2275
+
2276
+ .sectionTitle3 {
2277
+ fill: ${t.titleColor};
2278
+ }
2279
+
2280
+ .sectionTitle {
2281
+ text-anchor: start;
2282
+ font-family: ${t.fontFamily};
2283
+ }
2284
+
2285
+
2286
+ /* Grid and axis */
2287
+
2288
+ .grid .tick {
2289
+ stroke: ${t.gridColor};
2290
+ opacity: 0.8;
2291
+ shape-rendering: crispEdges;
2292
+ }
2293
+
2294
+ .grid .tick text {
2295
+ font-family: ${t.fontFamily};
2296
+ fill: ${t.textColor};
2297
+ }
2298
+
2299
+ .grid path {
2300
+ stroke-width: 0;
2301
+ }
2302
+
2303
+
2304
+ /* Today line */
2305
+
2306
+ .today {
2307
+ fill: none;
2308
+ stroke: ${t.todayLineColor};
2309
+ stroke-width: 2px;
2310
+ }
2311
+
2312
+
2313
+ /* Task styling */
2314
+
2315
+ /* Default task */
2316
+
2317
+ .task {
2318
+ stroke-width: 2;
2319
+ }
2320
+
2321
+ .taskText {
2322
+ text-anchor: middle;
2323
+ font-family: ${t.fontFamily};
2324
+ }
2325
+
2326
+ .taskTextOutsideRight {
2327
+ fill: ${t.taskTextDarkColor};
2328
+ text-anchor: start;
2329
+ font-family: ${t.fontFamily};
2330
+ }
2331
+
2332
+ .taskTextOutsideLeft {
2333
+ fill: ${t.taskTextDarkColor};
2334
+ text-anchor: end;
2335
+ }
2336
+
2337
+
2338
+ /* Special case clickable */
2339
+
2340
+ .task.clickable {
2341
+ cursor: pointer;
2342
+ }
2343
+
2344
+ .taskText.clickable {
2345
+ cursor: pointer;
2346
+ fill: ${t.taskTextClickableColor} !important;
2347
+ font-weight: bold;
2348
+ }
2349
+
2350
+ .taskTextOutsideLeft.clickable {
2351
+ cursor: pointer;
2352
+ fill: ${t.taskTextClickableColor} !important;
2353
+ font-weight: bold;
2354
+ }
2355
+
2356
+ .taskTextOutsideRight.clickable {
2357
+ cursor: pointer;
2358
+ fill: ${t.taskTextClickableColor} !important;
2359
+ font-weight: bold;
2360
+ }
2361
+
2362
+
2363
+ /* Specific task settings for the sections*/
2364
+
2365
+ .taskText0,
2366
+ .taskText1,
2367
+ .taskText2,
2368
+ .taskText3 {
2369
+ fill: ${t.taskTextColor};
2370
+ }
2371
+
2372
+ .task0,
2373
+ .task1,
2374
+ .task2,
2375
+ .task3 {
2376
+ fill: ${t.taskBkgColor};
2377
+ stroke: ${t.taskBorderColor};
2378
+ }
2379
+
2380
+ .taskTextOutside0,
2381
+ .taskTextOutside2
2382
+ {
2383
+ fill: ${t.taskTextOutsideColor};
2384
+ }
2385
+
2386
+ .taskTextOutside1,
2387
+ .taskTextOutside3 {
2388
+ fill: ${t.taskTextOutsideColor};
2389
+ }
2390
+
2391
+
2392
+ /* Active task */
2393
+
2394
+ .active0,
2395
+ .active1,
2396
+ .active2,
2397
+ .active3 {
2398
+ fill: ${t.activeTaskBkgColor};
2399
+ stroke: ${t.activeTaskBorderColor};
2400
+ }
2401
+
2402
+ .activeText0,
2403
+ .activeText1,
2404
+ .activeText2,
2405
+ .activeText3 {
2406
+ fill: ${t.taskTextDarkColor} !important;
2407
+ }
2408
+
2409
+
2410
+ /* Completed task */
2411
+
2412
+ .done0,
2413
+ .done1,
2414
+ .done2,
2415
+ .done3 {
2416
+ stroke: ${t.doneTaskBorderColor};
2417
+ fill: ${t.doneTaskBkgColor};
2418
+ stroke-width: 2;
2419
+ }
2420
+
2421
+ .doneText0,
2422
+ .doneText1,
2423
+ .doneText2,
2424
+ .doneText3 {
2425
+ fill: ${t.taskTextDarkColor} !important;
2426
+ }
2427
+
2428
+
2429
+ /* Tasks on the critical line */
2430
+
2431
+ .crit0,
2432
+ .crit1,
2433
+ .crit2,
2434
+ .crit3 {
2435
+ stroke: ${t.critBorderColor};
2436
+ fill: ${t.critBkgColor};
2437
+ stroke-width: 2;
2438
+ }
2439
+
2440
+ .activeCrit0,
2441
+ .activeCrit1,
2442
+ .activeCrit2,
2443
+ .activeCrit3 {
2444
+ stroke: ${t.critBorderColor};
2445
+ fill: ${t.activeTaskBkgColor};
2446
+ stroke-width: 2;
2447
+ }
2448
+
2449
+ .doneCrit0,
2450
+ .doneCrit1,
2451
+ .doneCrit2,
2452
+ .doneCrit3 {
2453
+ stroke: ${t.critBorderColor};
2454
+ fill: ${t.doneTaskBkgColor};
2455
+ stroke-width: 2;
2456
+ cursor: pointer;
2457
+ shape-rendering: crispEdges;
2458
+ }
2459
+
2460
+ .milestone {
2461
+ transform: rotate(45deg) scale(0.8,0.8);
2462
+ }
2463
+
2464
+ .milestoneText {
2465
+ font-style: italic;
2466
+ }
2467
+ .doneCritText0,
2468
+ .doneCritText1,
2469
+ .doneCritText2,
2470
+ .doneCritText3 {
2471
+ fill: ${t.taskTextDarkColor} !important;
2472
+ }
2473
+
2474
+ .vert {
2475
+ stroke: ${t.vertLineColor};
2476
+ }
2477
+
2478
+ .vertText {
2479
+ font-size: 15px;
2480
+ text-anchor: middle;
2481
+ fill: ${t.vertLineColor} !important;
2482
+ }
2483
+
2484
+ .activeCritText0,
2485
+ .activeCritText1,
2486
+ .activeCritText2,
2487
+ .activeCritText3 {
2488
+ fill: ${t.taskTextDarkColor} !important;
2489
+ }
2490
+
2491
+ .titleText {
2492
+ text-anchor: middle;
2493
+ font-size: 18px;
2494
+ fill: ${t.titleColor || t.textColor};
2495
+ font-family: ${t.fontFamily};
2496
+ }
2497
+ `, "getStyles"), Yi = Fi, Ai = {
2498
+ parser: za,
2499
+ db: Di,
2500
+ renderer: Si,
2501
+ styles: Yi
2502
+ };
2503
+ export {
2504
+ Ai as diagram
2505
+ };