docmedown 0.1.1 → 0.1.2

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 (214) hide show
  1. package/README.md +38 -20
  2. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +89 -0
  3. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +1 -0
  4. package/dist/arc-DgPKXEdT.mjs +82 -0
  5. package/dist/arc-n7TW7Bis.js +1 -0
  6. package/dist/architecture-7GRP2DOG-B7myQ46f.js +1 -0
  7. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +3 -0
  8. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +36 -0
  9. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +4154 -0
  10. package/dist/array-CApNbSU9.mjs +6 -0
  11. package/dist/array-DZSRzHA_.js +1 -0
  12. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +129 -0
  13. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +1922 -0
  14. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +38 -0
  15. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +3010 -0
  16. package/dist/channel-LgHproiI.mjs +5 -0
  17. package/dist/channel-yqu0m4cl.js +1 -0
  18. package/dist/chunk-2E4U76K2-BOyeRQsI.js +1 -0
  19. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +348 -0
  20. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +15 -0
  21. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +1 -0
  22. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +62 -0
  23. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +4188 -0
  24. package/dist/chunk-5VM5RSS4-GINalzIv.js +15 -0
  25. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +5 -0
  26. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +2 -0
  27. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +1330 -0
  28. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +1 -0
  29. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +14 -0
  30. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +3836 -0
  31. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +127 -0
  32. package/dist/chunk-F27PBJKO-8jvY_jJK.js +1 -0
  33. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +61 -0
  34. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +21456 -0
  35. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +161 -0
  36. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +1863 -0
  37. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +72 -0
  38. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +37 -0
  39. package/dist/chunk-GVQU2GXP-CdJIWN41.js +1 -0
  40. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +2042 -0
  41. package/dist/chunk-IMKFNOWR-CPJsszGN.js +231 -0
  42. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +8 -0
  43. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +1 -0
  44. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +1 -0
  45. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +245 -0
  46. package/dist/chunk-LNGE3PJU-BQX75wkM.js +34 -0
  47. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +1521 -0
  48. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +672 -0
  49. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +10 -0
  50. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +67 -0
  51. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +1 -0
  52. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +26 -0
  53. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +1 -0
  54. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +275 -0
  55. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +1 -0
  56. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +4183 -0
  57. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +168 -0
  58. package/dist/chunk-SVP7TREG-BFMd615E.js +88 -0
  59. package/dist/chunk-SVP7TREG-CynckzeF.mjs +490 -0
  60. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +3357 -0
  61. package/dist/chunk-TICWLB2K-agcyBfUp.js +206 -0
  62. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +59 -0
  63. package/dist/chunk-TLUHSLCS-Drx_a7am.js +1 -0
  64. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +1 -0
  65. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +9 -0
  66. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +1 -0
  67. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +12 -0
  68. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +1 -0
  69. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +30 -0
  70. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +1 -0
  71. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +30 -0
  72. package/dist/cli.js +87 -58
  73. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +1 -0
  74. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +2253 -0
  75. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +3 -0
  76. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +1 -0
  77. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +62 -0
  78. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +355 -0
  79. package/dist/cytoscape.esm-C5TvPYYm.mjs +18148 -0
  80. package/dist/cytoscape.esm-CBmWJr5M.js +321 -0
  81. package/dist/dagre-CZ6P9L_h.js +1 -0
  82. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +4 -0
  83. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +425 -0
  84. package/dist/dagre-J_1oH0eY.mjs +1934 -0
  85. package/dist/defaultLocale-N-0uLSyg.mjs +198 -0
  86. package/dist/defaultLocale-ybN1Vtvg.js +1 -0
  87. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +30 -0
  88. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +301 -0
  89. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +41 -0
  90. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +214 -0
  91. package/dist/diagram-VSXAHHWV-DgVT19mq.js +3 -0
  92. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +432 -0
  93. package/dist/diagram-VX7I27RA-CNw0pOX_.js +24 -0
  94. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +527 -0
  95. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +134 -0
  96. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +24 -0
  97. package/dist/dist-CXWJafG_.js +1 -0
  98. package/dist/dist-DNdLIC8h.mjs +59 -0
  99. package/dist/docmedown.cjs +65 -48
  100. package/dist/docmedown.iife.js +3418 -77
  101. package/dist/docmedown.mjs +6550 -4630
  102. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +1 -0
  103. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +100 -0
  104. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +99 -0
  105. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +1966 -0
  106. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +1 -0
  107. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +3 -0
  108. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +1 -0
  109. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +17 -0
  110. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +3072 -0
  111. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +292 -0
  112. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +1 -0
  113. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +3 -0
  114. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +106 -0
  115. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +733 -0
  116. package/dist/graphlib-BaETKKSa.js +1 -0
  117. package/dist/graphlib-XW-Jr8pF.mjs +1267 -0
  118. package/dist/info-A6RAGUB7-ClYskpn6.mjs +3 -0
  119. package/dist/info-A6RAGUB7-DDvvt-fW.js +1 -0
  120. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +20 -0
  121. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +2 -0
  122. package/dist/init-BJdqMO10.js +1 -0
  123. package/dist/init-CsQUQz36.mjs +13 -0
  124. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +70 -0
  125. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +719 -0
  126. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +139 -0
  127. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +884 -0
  128. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +976 -0
  129. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +89 -0
  130. package/dist/line-BEwhHSLl.js +1 -0
  131. package/dist/line-CiXRog8O.mjs +34 -0
  132. package/dist/linear-75tfjrny.js +1 -0
  133. package/dist/linear-Ncx_RuON.mjs +288 -0
  134. package/dist/mermaid-parser.core-BBApyu_y.js +6 -0
  135. package/dist/mermaid-parser.core-BRHibdUE.mjs +638 -0
  136. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +1006 -0
  137. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +96 -0
  138. package/dist/ordinal-B1BNQwUR.mjs +65 -0
  139. package/dist/ordinal-B9aFWmF9.js +1 -0
  140. package/dist/packet-AYTQ26CC-CorIy9Ul.js +1 -0
  141. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +3 -0
  142. package/dist/path-CnWkkRiY.mjs +84 -0
  143. package/dist/path-DIS6ck99.js +1 -0
  144. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +1 -0
  145. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +94 -0
  146. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +3 -0
  147. package/dist/pie-WAS4IAKB-D84xrSoY.js +1 -0
  148. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +39 -0
  149. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +203 -0
  150. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +7 -0
  151. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +2001 -0
  152. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +3 -0
  153. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +1 -0
  154. package/dist/railroad-74A4TZTK-BOZIf6ts.js +1 -0
  155. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +3 -0
  156. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +3 -0
  157. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +1 -0
  158. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +1 -0
  159. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +3 -0
  160. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +3 -0
  161. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +1 -0
  162. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +76 -0
  163. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +1 -0
  164. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +84 -0
  165. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +2224 -0
  166. package/dist/rough.esm-ChRLLRha.js +1 -0
  167. package/dist/rough.esm-DXYGHN3m.mjs +1361 -0
  168. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +972 -0
  169. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +40 -0
  170. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +162 -0
  171. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +4156 -0
  172. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +1 -0
  173. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +46 -0
  174. package/dist/src-B4mN2BMl.js +1 -0
  175. package/dist/src-D_hsMyeP.mjs +2154 -0
  176. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +220 -0
  177. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +1 -0
  178. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +30 -0
  179. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +1 -0
  180. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +4979 -0
  181. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +1 -0
  182. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +8 -0
  183. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +31 -0
  184. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +120 -0
  185. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +1069 -0
  186. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +3 -0
  187. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +1 -0
  188. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +3 -0
  189. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +1 -0
  190. package/dist/types/runtime/components/AppearanceMenu.d.ts +2 -0
  191. package/dist/types/runtime/components/DmdRegistry.d.ts +3 -1
  192. package/dist/types/runtime/components/MermaidDiagram.d.ts +16 -0
  193. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +2 -0
  194. package/dist/types/runtime/config-schema.d.ts +42 -0
  195. package/dist/types/runtime/index.d.ts +1 -0
  196. package/dist/types/runtime/markdown/mermaid.d.ts +82 -1
  197. package/dist/types/runtime/offline-export.d.ts +26 -0
  198. package/dist/types/runtime/provider/ThemeProvider.d.ts +11 -4
  199. package/dist/types/runtime/types.d.ts +4 -1
  200. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +34 -0
  201. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +1880 -0
  202. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +3 -0
  203. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +1 -0
  204. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +78 -0
  205. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +645 -0
  206. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +7 -0
  207. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +2210 -0
  208. package/package.json +6 -3
  209. package/schemas/docs.schema.json +10 -1
  210. package/templates/README.md +4 -4
  211. package/templates/docs.json +4 -2
  212. package/templates/getting-started.md +1 -1
  213. package/templates/guides/custom-components.md +2 -0
  214. package/templates/index.html +2 -4
@@ -0,0 +1,3072 @@
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, i as o, m as s, p as c, s as l, u, y as d } from "./src-D_hsMyeP.mjs";
2
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
+ import { H as p, K as m, U as h, a as g, c as _, s as v, v as y, w as b, x, y as S } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
+ import { a as C, i as w, n as T, r as E, t as D } from "./linear-Ncx_RuON.mjs";
5
+ import { t as O } from "./init-CsQUQz36.mjs";
6
+ import { t as k } from "./dist-DNdLIC8h.mjs";
7
+ import { g as ee } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
8
+ //#region node_modules/d3-array/src/max.js
9
+ function A(e, t) {
10
+ let n;
11
+ if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
12
+ else {
13
+ let r = -1;
14
+ for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
15
+ }
16
+ return n;
17
+ }
18
+ //#endregion
19
+ //#region node_modules/d3-array/src/min.js
20
+ function te(e, t) {
21
+ let n;
22
+ if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
23
+ else {
24
+ let r = -1;
25
+ for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
26
+ }
27
+ return n;
28
+ }
29
+ //#endregion
30
+ //#region node_modules/d3-axis/src/identity.js
31
+ function ne(e) {
32
+ return e;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/d3-axis/src/axis.js
36
+ var j = 1, re = 2, ie = 3, ae = 4, oe = 1e-6;
37
+ function se(e) {
38
+ return "translate(" + e + ",0)";
39
+ }
40
+ function ce(e) {
41
+ return "translate(0," + e + ")";
42
+ }
43
+ function le(e) {
44
+ return (t) => +e(t);
45
+ }
46
+ function ue(e, t) {
47
+ return t = Math.max(0, e.bandwidth() - t * 2) / 2, e.round() && (t = Math.round(t)), (n) => +e(n) + t;
48
+ }
49
+ function de() {
50
+ return !this.__axis;
51
+ }
52
+ function fe(e, t) {
53
+ var n = [], r = null, i = null, a = 6, o = 6, s = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : .5, l = e === j || e === ae ? -1 : 1, u = e === ae || e === re ? "x" : "y", d = e === j || e === ie ? se : ce;
54
+ function f(f) {
55
+ var p = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), m = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : ne), h = Math.max(a, 0) + s, g = t.range(), _ = +g[0] + c, v = +g[g.length - 1] + c, y = (t.bandwidth ? ue : le)(t.copy(), c), b = f.selection ? f.selection() : f, x = b.selectAll(".domain").data([null]), S = b.selectAll(".tick").data(p, t).order(), C = S.exit(), w = S.enter().append("g").attr("class", "tick"), T = S.select("line"), E = S.select("text");
56
+ x = x.merge(x.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), S = S.merge(w), T = T.merge(w.append("line").attr("stroke", "currentColor").attr(u + "2", l * a)), E = E.merge(w.append("text").attr("fill", "currentColor").attr(u, l * h).attr("dy", e === j ? "0em" : e === ie ? "0.71em" : "0.32em")), f !== b && (x = x.transition(f), S = S.transition(f), T = T.transition(f), E = E.transition(f), C = C.transition(f).attr("opacity", oe).attr("transform", function(e) {
57
+ return isFinite(e = y(e)) ? d(e + c) : this.getAttribute("transform");
58
+ }), w.attr("opacity", oe).attr("transform", function(e) {
59
+ var t = this.parentNode.__axis;
60
+ return d((t && isFinite(t = t(e)) ? t : y(e)) + c);
61
+ })), C.remove(), x.attr("d", e === ae || e === re ? o ? "M" + l * o + "," + _ + "H" + c + "V" + v + "H" + l * o : "M" + c + "," + _ + "V" + v : o ? "M" + _ + "," + l * o + "V" + c + "H" + v + "V" + l * o : "M" + _ + "," + c + "H" + v), S.attr("opacity", 1).attr("transform", function(e) {
62
+ return d(y(e) + c);
63
+ }), T.attr(u + "2", l * a), E.attr(u, l * h).text(m), b.filter(de).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === re ? "start" : e === ae ? "end" : "middle"), b.each(function() {
64
+ this.__axis = y;
65
+ });
66
+ }
67
+ return f.scale = function(e) {
68
+ return arguments.length ? (t = e, f) : t;
69
+ }, f.ticks = function() {
70
+ return n = Array.from(arguments), f;
71
+ }, f.tickArguments = function(e) {
72
+ return arguments.length ? (n = e == null ? [] : Array.from(e), f) : n.slice();
73
+ }, f.tickValues = function(e) {
74
+ return arguments.length ? (r = e == null ? null : Array.from(e), f) : r && r.slice();
75
+ }, f.tickFormat = function(e) {
76
+ return arguments.length ? (i = e, f) : i;
77
+ }, f.tickSize = function(e) {
78
+ return arguments.length ? (a = o = +e, f) : a;
79
+ }, f.tickSizeInner = function(e) {
80
+ return arguments.length ? (a = +e, f) : a;
81
+ }, f.tickSizeOuter = function(e) {
82
+ return arguments.length ? (o = +e, f) : o;
83
+ }, f.tickPadding = function(e) {
84
+ return arguments.length ? (s = +e, f) : s;
85
+ }, f.offset = function(e) {
86
+ return arguments.length ? (c = +e, f) : c;
87
+ }, f;
88
+ }
89
+ function pe(e) {
90
+ return fe(j, e);
91
+ }
92
+ function me(e) {
93
+ return fe(ie, e);
94
+ }
95
+ //#endregion
96
+ //#region node_modules/d3-color/src/math.js
97
+ var he = Math.PI / 180, ge = 180 / Math.PI, _e = 18, ve = .96422, ye = 1, be = .82521, xe = 4 / 29, Se = 6 / 29, Ce = 3 * Se * Se, we = Se * Se * Se;
98
+ function Te(e) {
99
+ if (e instanceof M) return new M(e.l, e.a, e.b, e.opacity);
100
+ if (e instanceof N) return Ne(e);
101
+ e instanceof n || (e = u(e));
102
+ var t = Ae(e.r), r = Ae(e.g), i = Ae(e.b), a = De((.2225045 * t + .7168786 * r + .0606169 * i) / ye), o, s;
103
+ return t === r && r === i ? o = s = a : (o = De((.4360747 * t + .3850649 * r + .1430804 * i) / ve), s = De((.0139322 * t + .0971045 * r + .7141733 * i) / be)), new M(116 * a - 16, 500 * (o - a), 200 * (a - s), e.opacity);
104
+ }
105
+ function Ee(e, t, n, r) {
106
+ return arguments.length === 1 ? Te(e) : new M(e, t, n, r ?? 1);
107
+ }
108
+ function M(e, t, n, r) {
109
+ this.l = +e, this.a = +t, this.b = +n, this.opacity = +r;
110
+ }
111
+ r(M, Ee, i(l, {
112
+ brighter(e) {
113
+ return new M(this.l + _e * (e ?? 1), this.a, this.b, this.opacity);
114
+ },
115
+ darker(e) {
116
+ return new M(this.l - _e * (e ?? 1), this.a, this.b, this.opacity);
117
+ },
118
+ rgb() {
119
+ var e = (this.l + 16) / 116, t = isNaN(this.a) ? e : e + this.a / 500, r = isNaN(this.b) ? e : e - this.b / 200;
120
+ return t = ve * Oe(t), e = ye * Oe(e), r = be * Oe(r), new n(ke(3.1338561 * t - 1.6168667 * e - .4906146 * r), ke(-.9787684 * t + 1.9161415 * e + .033454 * r), ke(.0719453 * t - .2289914 * e + 1.4052427 * r), this.opacity);
121
+ }
122
+ }));
123
+ function De(e) {
124
+ return e > we ? e ** (1 / 3) : e / Ce + xe;
125
+ }
126
+ function Oe(e) {
127
+ return e > Se ? e * e * e : Ce * (e - xe);
128
+ }
129
+ function ke(e) {
130
+ return 255 * (e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055);
131
+ }
132
+ function Ae(e) {
133
+ return (e /= 255) <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
134
+ }
135
+ function je(e) {
136
+ if (e instanceof N) return new N(e.h, e.c, e.l, e.opacity);
137
+ if (e instanceof M || (e = Te(e)), e.a === 0 && e.b === 0) return new N(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity);
138
+ var t = Math.atan2(e.b, e.a) * ge;
139
+ return new N(t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity);
140
+ }
141
+ function Me(e, t, n, r) {
142
+ return arguments.length === 1 ? je(e) : new N(e, t, n, r ?? 1);
143
+ }
144
+ function N(e, t, n, r) {
145
+ this.h = +e, this.c = +t, this.l = +n, this.opacity = +r;
146
+ }
147
+ function Ne(e) {
148
+ if (isNaN(e.h)) return new M(e.l, 0, 0, e.opacity);
149
+ var t = e.h * he;
150
+ return new M(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
151
+ }
152
+ r(N, Me, i(l, {
153
+ brighter(e) {
154
+ return new N(this.h, this.c, this.l + _e * (e ?? 1), this.opacity);
155
+ },
156
+ darker(e) {
157
+ return new N(this.h, this.c, this.l - _e * (e ?? 1), this.opacity);
158
+ },
159
+ rgb() {
160
+ return Ne(this).rgb();
161
+ }
162
+ }));
163
+ //#endregion
164
+ //#region node_modules/d3-interpolate/src/hcl.js
165
+ function Pe(e) {
166
+ return function(n, r) {
167
+ var i = e((n = Me(n)).h, (r = Me(r)).h), a = t(n.c, r.c), o = t(n.l, r.l), s = t(n.opacity, r.opacity);
168
+ return function(e) {
169
+ return n.h = i(e), n.c = a(e), n.l = o(e), n.opacity = s(e), n + "";
170
+ };
171
+ };
172
+ }
173
+ var Fe = Pe(o);
174
+ //#endregion
175
+ //#region node_modules/d3-scale/src/nice.js
176
+ function Ie(e, t) {
177
+ e = e.slice();
178
+ var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
179
+ return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
180
+ }
181
+ //#endregion
182
+ //#region node_modules/d3-time/src/interval.js
183
+ var Le = /* @__PURE__ */ new Date(), Re = /* @__PURE__ */ new Date();
184
+ function P(e, t, n, r) {
185
+ function i(t) {
186
+ return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
187
+ }
188
+ return i.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), i.ceil = (n) => (e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n), i.round = (e) => {
189
+ let t = i(e), n = i.ceil(e);
190
+ return e - t < n - e ? t : n;
191
+ }, i.offset = (e, n) => (t(e = /* @__PURE__ */ new Date(+e), n == null ? 1 : Math.floor(n)), e), i.range = (n, r, a) => {
192
+ let o = [];
193
+ if (n = i.ceil(n), a = a == null ? 1 : Math.floor(a), !(n < r) || !(a > 0)) return o;
194
+ let s;
195
+ do
196
+ o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
197
+ while (s < n && n < r);
198
+ return o;
199
+ }, i.filter = (n) => P((t) => {
200
+ if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
201
+ }, (e, r) => {
202
+ if (e >= e) {
203
+ if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
204
+ else for (; --r >= 0;) for (; t(e, 1), !n(e););
205
+ }
206
+ }), n && (i.count = (t, r) => (Le.setTime(+t), Re.setTime(+r), e(Le), e(Re), Math.floor(n(Le, Re))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
207
+ }
208
+ //#endregion
209
+ //#region node_modules/d3-time/src/millisecond.js
210
+ var ze = P(() => {}, (e, t) => {
211
+ e.setTime(+e + t);
212
+ }, (e, t) => t - e);
213
+ ze.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? P((t) => {
214
+ t.setTime(Math.floor(t / e) * e);
215
+ }, (t, n) => {
216
+ t.setTime(+t + n * e);
217
+ }, (t, n) => (n - t) / e) : ze), ze.range;
218
+ //#endregion
219
+ //#region node_modules/d3-time/src/duration.js
220
+ var F = 1e3, I = F * 60, L = I * 60, R = L * 24, Be = R * 7, Ve = R * 30, He = R * 365, z = P((e) => {
221
+ e.setTime(e - e.getMilliseconds());
222
+ }, (e, t) => {
223
+ e.setTime(+e + t * F);
224
+ }, (e, t) => (t - e) / F, (e) => e.getUTCSeconds());
225
+ z.range;
226
+ //#endregion
227
+ //#region node_modules/d3-time/src/minute.js
228
+ var Ue = P((e) => {
229
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * F);
230
+ }, (e, t) => {
231
+ e.setTime(+e + t * I);
232
+ }, (e, t) => (t - e) / I, (e) => e.getMinutes());
233
+ Ue.range;
234
+ var We = P((e) => {
235
+ e.setUTCSeconds(0, 0);
236
+ }, (e, t) => {
237
+ e.setTime(+e + t * I);
238
+ }, (e, t) => (t - e) / I, (e) => e.getUTCMinutes());
239
+ We.range;
240
+ //#endregion
241
+ //#region node_modules/d3-time/src/hour.js
242
+ var Ge = P((e) => {
243
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * F - e.getMinutes() * I);
244
+ }, (e, t) => {
245
+ e.setTime(+e + t * L);
246
+ }, (e, t) => (t - e) / L, (e) => e.getHours());
247
+ Ge.range;
248
+ var Ke = P((e) => {
249
+ e.setUTCMinutes(0, 0, 0);
250
+ }, (e, t) => {
251
+ e.setTime(+e + t * L);
252
+ }, (e, t) => (t - e) / L, (e) => e.getUTCHours());
253
+ Ke.range;
254
+ //#endregion
255
+ //#region node_modules/d3-time/src/day.js
256
+ var B = P((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * I) / R, (e) => e.getDate() - 1);
257
+ B.range;
258
+ var qe = P((e) => {
259
+ e.setUTCHours(0, 0, 0, 0);
260
+ }, (e, t) => {
261
+ e.setUTCDate(e.getUTCDate() + t);
262
+ }, (e, t) => (t - e) / R, (e) => e.getUTCDate() - 1);
263
+ qe.range;
264
+ var Je = P((e) => {
265
+ e.setUTCHours(0, 0, 0, 0);
266
+ }, (e, t) => {
267
+ e.setUTCDate(e.getUTCDate() + t);
268
+ }, (e, t) => (t - e) / R, (e) => Math.floor(e / R));
269
+ Je.range;
270
+ //#endregion
271
+ //#region node_modules/d3-time/src/week.js
272
+ function V(e) {
273
+ return P((t) => {
274
+ t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
275
+ }, (e, t) => {
276
+ e.setDate(e.getDate() + t * 7);
277
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * I) / Be);
278
+ }
279
+ var Ye = V(0), Xe = V(1), Ze = V(2), Qe = V(3), H = V(4), $e = V(5), et = V(6);
280
+ Ye.range, Xe.range, Ze.range, Qe.range, H.range, $e.range, et.range;
281
+ function U(e) {
282
+ return P((t) => {
283
+ t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
284
+ }, (e, t) => {
285
+ e.setUTCDate(e.getUTCDate() + t * 7);
286
+ }, (e, t) => (t - e) / Be);
287
+ }
288
+ var tt = U(0), nt = U(1), rt = U(2), it = U(3), at = U(4), ot = U(5), st = U(6);
289
+ tt.range, nt.range, rt.range, it.range, at.range, ot.range, st.range;
290
+ //#endregion
291
+ //#region node_modules/d3-time/src/month.js
292
+ var ct = P((e) => {
293
+ e.setDate(1), e.setHours(0, 0, 0, 0);
294
+ }, (e, t) => {
295
+ e.setMonth(e.getMonth() + t);
296
+ }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
297
+ ct.range;
298
+ var lt = P((e) => {
299
+ e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
300
+ }, (e, t) => {
301
+ e.setUTCMonth(e.getUTCMonth() + t);
302
+ }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
303
+ lt.range;
304
+ //#endregion
305
+ //#region node_modules/d3-time/src/year.js
306
+ var W = P((e) => {
307
+ e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
308
+ }, (e, t) => {
309
+ e.setFullYear(e.getFullYear() + t);
310
+ }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
311
+ W.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : P((t) => {
312
+ t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
313
+ }, (t, n) => {
314
+ t.setFullYear(t.getFullYear() + n * e);
315
+ }), W.range;
316
+ var G = P((e) => {
317
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
318
+ }, (e, t) => {
319
+ e.setUTCFullYear(e.getUTCFullYear() + t);
320
+ }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
321
+ G.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : P((t) => {
322
+ t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
323
+ }, (t, n) => {
324
+ t.setUTCFullYear(t.getUTCFullYear() + n * e);
325
+ }), G.range;
326
+ //#endregion
327
+ //#region node_modules/d3-time/src/ticks.js
328
+ function ut(e, t, n, r, i, a) {
329
+ let o = [
330
+ [
331
+ z,
332
+ 1,
333
+ F
334
+ ],
335
+ [
336
+ z,
337
+ 5,
338
+ 5 * F
339
+ ],
340
+ [
341
+ z,
342
+ 15,
343
+ 15 * F
344
+ ],
345
+ [
346
+ z,
347
+ 30,
348
+ 30 * F
349
+ ],
350
+ [
351
+ a,
352
+ 1,
353
+ I
354
+ ],
355
+ [
356
+ a,
357
+ 5,
358
+ 5 * I
359
+ ],
360
+ [
361
+ a,
362
+ 15,
363
+ 15 * I
364
+ ],
365
+ [
366
+ a,
367
+ 30,
368
+ 30 * I
369
+ ],
370
+ [
371
+ i,
372
+ 1,
373
+ L
374
+ ],
375
+ [
376
+ i,
377
+ 3,
378
+ 3 * L
379
+ ],
380
+ [
381
+ i,
382
+ 6,
383
+ 6 * L
384
+ ],
385
+ [
386
+ i,
387
+ 12,
388
+ 12 * L
389
+ ],
390
+ [
391
+ r,
392
+ 1,
393
+ R
394
+ ],
395
+ [
396
+ r,
397
+ 2,
398
+ 2 * R
399
+ ],
400
+ [
401
+ n,
402
+ 1,
403
+ Be
404
+ ],
405
+ [
406
+ t,
407
+ 1,
408
+ Ve
409
+ ],
410
+ [
411
+ t,
412
+ 3,
413
+ 3 * Ve
414
+ ],
415
+ [
416
+ e,
417
+ 1,
418
+ He
419
+ ]
420
+ ];
421
+ function s(e, t, n) {
422
+ let r = t < e;
423
+ r && ([e, t] = [t, e]);
424
+ let i = n && typeof n.range == "function" ? n : c(e, t, n), a = i ? i.range(e, +t + 1) : [];
425
+ return r ? a.reverse() : a;
426
+ }
427
+ function c(t, n, r) {
428
+ let i = Math.abs(n - t) / r, a = C(([, , e]) => e).right(o, i);
429
+ if (a === o.length) return e.every(w(t / He, n / He, r));
430
+ if (a === 0) return ze.every(Math.max(w(t, n, r), 1));
431
+ let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];
432
+ return s.every(c);
433
+ }
434
+ return [s, c];
435
+ }
436
+ var [dt, ft] = ut(G, lt, tt, Je, Ke, We), [pt, mt] = ut(W, ct, Ye, B, Ge, Ue);
437
+ //#endregion
438
+ //#region node_modules/d3-time-format/src/locale.js
439
+ function ht(e) {
440
+ if (0 <= e.y && e.y < 100) {
441
+ var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
442
+ return t.setFullYear(e.y), t;
443
+ }
444
+ return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
445
+ }
446
+ function gt(e) {
447
+ if (0 <= e.y && e.y < 100) {
448
+ var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
449
+ return t.setUTCFullYear(e.y), t;
450
+ }
451
+ return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
452
+ }
453
+ function _t(e, t, n) {
454
+ return {
455
+ y: e,
456
+ m: t,
457
+ d: n,
458
+ H: 0,
459
+ M: 0,
460
+ S: 0,
461
+ L: 0
462
+ };
463
+ }
464
+ function vt(e) {
465
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = Ct(i), u = wt(i), d = Ct(a), f = wt(a), p = Ct(o), m = wt(o), h = Ct(s), g = wt(s), _ = Ct(c), v = wt(c), y = {
466
+ a: ne,
467
+ A: j,
468
+ b: re,
469
+ B: ie,
470
+ c: null,
471
+ d: Gt,
472
+ e: Gt,
473
+ f: Xt,
474
+ g: cn,
475
+ G: un,
476
+ H: Kt,
477
+ I: qt,
478
+ j: Jt,
479
+ L: Yt,
480
+ m: Zt,
481
+ M: Qt,
482
+ p: ae,
483
+ q: oe,
484
+ Q: Nn,
485
+ s: Pn,
486
+ S: $t,
487
+ u: en,
488
+ U: tn,
489
+ V: rn,
490
+ w: an,
491
+ W: on,
492
+ x: null,
493
+ X: null,
494
+ y: sn,
495
+ Y: ln,
496
+ Z: dn,
497
+ "%": Mn
498
+ }, b = {
499
+ a: se,
500
+ A: ce,
501
+ b: le,
502
+ B: ue,
503
+ c: null,
504
+ d: fn,
505
+ e: fn,
506
+ f: _n,
507
+ g: On,
508
+ G: An,
509
+ H: pn,
510
+ I: mn,
511
+ j: hn,
512
+ L: gn,
513
+ m: vn,
514
+ M: yn,
515
+ p: de,
516
+ q: fe,
517
+ Q: Nn,
518
+ s: Pn,
519
+ S: bn,
520
+ u: xn,
521
+ U: Sn,
522
+ V: wn,
523
+ w: Tn,
524
+ W: En,
525
+ x: null,
526
+ X: null,
527
+ y: Dn,
528
+ Y: kn,
529
+ Z: jn,
530
+ "%": Mn
531
+ }, x = {
532
+ a: E,
533
+ A: D,
534
+ b: O,
535
+ B: k,
536
+ c: ee,
537
+ d: Ft,
538
+ e: Ft,
539
+ f: Vt,
540
+ g: jt,
541
+ G: At,
542
+ H: Lt,
543
+ I: Lt,
544
+ j: It,
545
+ L: Bt,
546
+ m: Pt,
547
+ M: Rt,
548
+ p: T,
549
+ q: Nt,
550
+ Q: Ut,
551
+ s: Wt,
552
+ S: zt,
553
+ u: Et,
554
+ U: Dt,
555
+ V: Ot,
556
+ w: Tt,
557
+ W: kt,
558
+ x: A,
559
+ X: te,
560
+ y: jt,
561
+ Y: At,
562
+ Z: Mt,
563
+ "%": Ht
564
+ };
565
+ y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
566
+ function S(e, t) {
567
+ return function(n) {
568
+ var r = [], i = -1, a = 0, o = e.length, s, c, l;
569
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = yt[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
570
+ return r.push(e.slice(a, i)), r.join("");
571
+ };
572
+ }
573
+ function C(e, t) {
574
+ return function(n) {
575
+ var r = _t(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;
576
+ if (i != n.length) return null;
577
+ if ("Q" in r) return new Date(r.Q);
578
+ if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
579
+ if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
580
+ if (r.V < 1 || r.V > 53) return null;
581
+ "w" in r || (r.w = 1), "Z" in r ? (a = gt(_t(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? nt.ceil(a) : nt(a), a = qe.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = ht(_t(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? Xe.ceil(a) : Xe(a), a = B.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
582
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? gt(_t(r.y, 0, 1)).getUTCDay() : ht(_t(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
583
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, gt(r)) : ht(r);
584
+ };
585
+ }
586
+ function w(e, t, n, r) {
587
+ for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
588
+ if (r >= o) return -1;
589
+ if (s = t.charCodeAt(i++), s === 37) {
590
+ if (s = t.charAt(i++), c = x[s in yt ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
591
+ } else if (s != n.charCodeAt(r++)) return -1;
592
+ }
593
+ return r;
594
+ }
595
+ function T(e, t, n) {
596
+ var r = l.exec(t.slice(n));
597
+ return r ? (e.p = u.get(r[0].toLowerCase()), n + r[0].length) : -1;
598
+ }
599
+ function E(e, t, n) {
600
+ var r = p.exec(t.slice(n));
601
+ return r ? (e.w = m.get(r[0].toLowerCase()), n + r[0].length) : -1;
602
+ }
603
+ function D(e, t, n) {
604
+ var r = d.exec(t.slice(n));
605
+ return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
606
+ }
607
+ function O(e, t, n) {
608
+ var r = _.exec(t.slice(n));
609
+ return r ? (e.m = v.get(r[0].toLowerCase()), n + r[0].length) : -1;
610
+ }
611
+ function k(e, t, n) {
612
+ var r = h.exec(t.slice(n));
613
+ return r ? (e.m = g.get(r[0].toLowerCase()), n + r[0].length) : -1;
614
+ }
615
+ function ee(e, n, r) {
616
+ return w(e, t, n, r);
617
+ }
618
+ function A(e, t, r) {
619
+ return w(e, n, t, r);
620
+ }
621
+ function te(e, t, n) {
622
+ return w(e, r, t, n);
623
+ }
624
+ function ne(e) {
625
+ return o[e.getDay()];
626
+ }
627
+ function j(e) {
628
+ return a[e.getDay()];
629
+ }
630
+ function re(e) {
631
+ return c[e.getMonth()];
632
+ }
633
+ function ie(e) {
634
+ return s[e.getMonth()];
635
+ }
636
+ function ae(e) {
637
+ return i[+(e.getHours() >= 12)];
638
+ }
639
+ function oe(e) {
640
+ return 1 + ~~(e.getMonth() / 3);
641
+ }
642
+ function se(e) {
643
+ return o[e.getUTCDay()];
644
+ }
645
+ function ce(e) {
646
+ return a[e.getUTCDay()];
647
+ }
648
+ function le(e) {
649
+ return c[e.getUTCMonth()];
650
+ }
651
+ function ue(e) {
652
+ return s[e.getUTCMonth()];
653
+ }
654
+ function de(e) {
655
+ return i[+(e.getUTCHours() >= 12)];
656
+ }
657
+ function fe(e) {
658
+ return 1 + ~~(e.getUTCMonth() / 3);
659
+ }
660
+ return {
661
+ format: function(e) {
662
+ var t = S(e += "", y);
663
+ return t.toString = function() {
664
+ return e;
665
+ }, t;
666
+ },
667
+ parse: function(e) {
668
+ var t = C(e += "", !1);
669
+ return t.toString = function() {
670
+ return e;
671
+ }, t;
672
+ },
673
+ utcFormat: function(e) {
674
+ var t = S(e += "", b);
675
+ return t.toString = function() {
676
+ return e;
677
+ }, t;
678
+ },
679
+ utcParse: function(e) {
680
+ var t = C(e += "", !0);
681
+ return t.toString = function() {
682
+ return e;
683
+ }, t;
684
+ }
685
+ };
686
+ }
687
+ var yt = {
688
+ "-": "",
689
+ _: " ",
690
+ 0: "0"
691
+ }, K = /^\s*\d+/, bt = /^%/, xt = /[\\^$*+?|[\]().{}]/g;
692
+ function q(e, t, n) {
693
+ var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
694
+ return r + (a < n ? Array(n - a + 1).join(t) + i : i);
695
+ }
696
+ function St(e) {
697
+ return e.replace(xt, "\\$&");
698
+ }
699
+ function Ct(e) {
700
+ return RegExp("^(?:" + e.map(St).join("|") + ")", "i");
701
+ }
702
+ function wt(e) {
703
+ return new Map(e.map((e, t) => [e.toLowerCase(), t]));
704
+ }
705
+ function Tt(e, t, n) {
706
+ var r = K.exec(t.slice(n, n + 1));
707
+ return r ? (e.w = +r[0], n + r[0].length) : -1;
708
+ }
709
+ function Et(e, t, n) {
710
+ var r = K.exec(t.slice(n, n + 1));
711
+ return r ? (e.u = +r[0], n + r[0].length) : -1;
712
+ }
713
+ function Dt(e, t, n) {
714
+ var r = K.exec(t.slice(n, n + 2));
715
+ return r ? (e.U = +r[0], n + r[0].length) : -1;
716
+ }
717
+ function Ot(e, t, n) {
718
+ var r = K.exec(t.slice(n, n + 2));
719
+ return r ? (e.V = +r[0], n + r[0].length) : -1;
720
+ }
721
+ function kt(e, t, n) {
722
+ var r = K.exec(t.slice(n, n + 2));
723
+ return r ? (e.W = +r[0], n + r[0].length) : -1;
724
+ }
725
+ function At(e, t, n) {
726
+ var r = K.exec(t.slice(n, n + 4));
727
+ return r ? (e.y = +r[0], n + r[0].length) : -1;
728
+ }
729
+ function jt(e, t, n) {
730
+ var r = K.exec(t.slice(n, n + 2));
731
+ return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
732
+ }
733
+ function Mt(e, t, n) {
734
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
735
+ return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
736
+ }
737
+ function Nt(e, t, n) {
738
+ var r = K.exec(t.slice(n, n + 1));
739
+ return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
740
+ }
741
+ function Pt(e, t, n) {
742
+ var r = K.exec(t.slice(n, n + 2));
743
+ return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
744
+ }
745
+ function Ft(e, t, n) {
746
+ var r = K.exec(t.slice(n, n + 2));
747
+ return r ? (e.d = +r[0], n + r[0].length) : -1;
748
+ }
749
+ function It(e, t, n) {
750
+ var r = K.exec(t.slice(n, n + 3));
751
+ return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
752
+ }
753
+ function Lt(e, t, n) {
754
+ var r = K.exec(t.slice(n, n + 2));
755
+ return r ? (e.H = +r[0], n + r[0].length) : -1;
756
+ }
757
+ function Rt(e, t, n) {
758
+ var r = K.exec(t.slice(n, n + 2));
759
+ return r ? (e.M = +r[0], n + r[0].length) : -1;
760
+ }
761
+ function zt(e, t, n) {
762
+ var r = K.exec(t.slice(n, n + 2));
763
+ return r ? (e.S = +r[0], n + r[0].length) : -1;
764
+ }
765
+ function Bt(e, t, n) {
766
+ var r = K.exec(t.slice(n, n + 3));
767
+ return r ? (e.L = +r[0], n + r[0].length) : -1;
768
+ }
769
+ function Vt(e, t, n) {
770
+ var r = K.exec(t.slice(n, n + 6));
771
+ return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
772
+ }
773
+ function Ht(e, t, n) {
774
+ var r = bt.exec(t.slice(n, n + 1));
775
+ return r ? n + r[0].length : -1;
776
+ }
777
+ function Ut(e, t, n) {
778
+ var r = K.exec(t.slice(n));
779
+ return r ? (e.Q = +r[0], n + r[0].length) : -1;
780
+ }
781
+ function Wt(e, t, n) {
782
+ var r = K.exec(t.slice(n));
783
+ return r ? (e.s = +r[0], n + r[0].length) : -1;
784
+ }
785
+ function Gt(e, t) {
786
+ return q(e.getDate(), t, 2);
787
+ }
788
+ function Kt(e, t) {
789
+ return q(e.getHours(), t, 2);
790
+ }
791
+ function qt(e, t) {
792
+ return q(e.getHours() % 12 || 12, t, 2);
793
+ }
794
+ function Jt(e, t) {
795
+ return q(1 + B.count(W(e), e), t, 3);
796
+ }
797
+ function Yt(e, t) {
798
+ return q(e.getMilliseconds(), t, 3);
799
+ }
800
+ function Xt(e, t) {
801
+ return Yt(e, t) + "000";
802
+ }
803
+ function Zt(e, t) {
804
+ return q(e.getMonth() + 1, t, 2);
805
+ }
806
+ function Qt(e, t) {
807
+ return q(e.getMinutes(), t, 2);
808
+ }
809
+ function $t(e, t) {
810
+ return q(e.getSeconds(), t, 2);
811
+ }
812
+ function en(e) {
813
+ var t = e.getDay();
814
+ return t === 0 ? 7 : t;
815
+ }
816
+ function tn(e, t) {
817
+ return q(Ye.count(W(e) - 1, e), t, 2);
818
+ }
819
+ function nn(e) {
820
+ var t = e.getDay();
821
+ return t >= 4 || t === 0 ? H(e) : H.ceil(e);
822
+ }
823
+ function rn(e, t) {
824
+ return e = nn(e), q(H.count(W(e), e) + (W(e).getDay() === 4), t, 2);
825
+ }
826
+ function an(e) {
827
+ return e.getDay();
828
+ }
829
+ function on(e, t) {
830
+ return q(Xe.count(W(e) - 1, e), t, 2);
831
+ }
832
+ function sn(e, t) {
833
+ return q(e.getFullYear() % 100, t, 2);
834
+ }
835
+ function cn(e, t) {
836
+ return e = nn(e), q(e.getFullYear() % 100, t, 2);
837
+ }
838
+ function ln(e, t) {
839
+ return q(e.getFullYear() % 1e4, t, 4);
840
+ }
841
+ function un(e, t) {
842
+ var n = e.getDay();
843
+ return e = n >= 4 || n === 0 ? H(e) : H.ceil(e), q(e.getFullYear() % 1e4, t, 4);
844
+ }
845
+ function dn(e) {
846
+ var t = e.getTimezoneOffset();
847
+ return (t > 0 ? "-" : (t *= -1, "+")) + q(t / 60 | 0, "0", 2) + q(t % 60, "0", 2);
848
+ }
849
+ function fn(e, t) {
850
+ return q(e.getUTCDate(), t, 2);
851
+ }
852
+ function pn(e, t) {
853
+ return q(e.getUTCHours(), t, 2);
854
+ }
855
+ function mn(e, t) {
856
+ return q(e.getUTCHours() % 12 || 12, t, 2);
857
+ }
858
+ function hn(e, t) {
859
+ return q(1 + qe.count(G(e), e), t, 3);
860
+ }
861
+ function gn(e, t) {
862
+ return q(e.getUTCMilliseconds(), t, 3);
863
+ }
864
+ function _n(e, t) {
865
+ return gn(e, t) + "000";
866
+ }
867
+ function vn(e, t) {
868
+ return q(e.getUTCMonth() + 1, t, 2);
869
+ }
870
+ function yn(e, t) {
871
+ return q(e.getUTCMinutes(), t, 2);
872
+ }
873
+ function bn(e, t) {
874
+ return q(e.getUTCSeconds(), t, 2);
875
+ }
876
+ function xn(e) {
877
+ var t = e.getUTCDay();
878
+ return t === 0 ? 7 : t;
879
+ }
880
+ function Sn(e, t) {
881
+ return q(tt.count(G(e) - 1, e), t, 2);
882
+ }
883
+ function Cn(e) {
884
+ var t = e.getUTCDay();
885
+ return t >= 4 || t === 0 ? at(e) : at.ceil(e);
886
+ }
887
+ function wn(e, t) {
888
+ return e = Cn(e), q(at.count(G(e), e) + (G(e).getUTCDay() === 4), t, 2);
889
+ }
890
+ function Tn(e) {
891
+ return e.getUTCDay();
892
+ }
893
+ function En(e, t) {
894
+ return q(nt.count(G(e) - 1, e), t, 2);
895
+ }
896
+ function Dn(e, t) {
897
+ return q(e.getUTCFullYear() % 100, t, 2);
898
+ }
899
+ function On(e, t) {
900
+ return e = Cn(e), q(e.getUTCFullYear() % 100, t, 2);
901
+ }
902
+ function kn(e, t) {
903
+ return q(e.getUTCFullYear() % 1e4, t, 4);
904
+ }
905
+ function An(e, t) {
906
+ var n = e.getUTCDay();
907
+ return e = n >= 4 || n === 0 ? at(e) : at.ceil(e), q(e.getUTCFullYear() % 1e4, t, 4);
908
+ }
909
+ function jn() {
910
+ return "+0000";
911
+ }
912
+ function Mn() {
913
+ return "%";
914
+ }
915
+ function Nn(e) {
916
+ return +e;
917
+ }
918
+ function Pn(e) {
919
+ return Math.floor(e / 1e3);
920
+ }
921
+ //#endregion
922
+ //#region node_modules/d3-time-format/src/defaultLocale.js
923
+ var Fn, In;
924
+ Ln({
925
+ dateTime: "%x, %X",
926
+ date: "%-m/%-d/%Y",
927
+ time: "%-I:%M:%S %p",
928
+ periods: ["AM", "PM"],
929
+ days: [
930
+ "Sunday",
931
+ "Monday",
932
+ "Tuesday",
933
+ "Wednesday",
934
+ "Thursday",
935
+ "Friday",
936
+ "Saturday"
937
+ ],
938
+ shortDays: [
939
+ "Sun",
940
+ "Mon",
941
+ "Tue",
942
+ "Wed",
943
+ "Thu",
944
+ "Fri",
945
+ "Sat"
946
+ ],
947
+ months: [
948
+ "January",
949
+ "February",
950
+ "March",
951
+ "April",
952
+ "May",
953
+ "June",
954
+ "July",
955
+ "August",
956
+ "September",
957
+ "October",
958
+ "November",
959
+ "December"
960
+ ],
961
+ shortMonths: [
962
+ "Jan",
963
+ "Feb",
964
+ "Mar",
965
+ "Apr",
966
+ "May",
967
+ "Jun",
968
+ "Jul",
969
+ "Aug",
970
+ "Sep",
971
+ "Oct",
972
+ "Nov",
973
+ "Dec"
974
+ ]
975
+ });
976
+ function Ln(e) {
977
+ return Fn = vt(e), In = Fn.format, Fn.parse, Fn.utcFormat, Fn.utcParse, Fn;
978
+ }
979
+ //#endregion
980
+ //#region node_modules/d3-scale/src/time.js
981
+ function Rn(e) {
982
+ return new Date(e);
983
+ }
984
+ function zn(e) {
985
+ return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
986
+ }
987
+ function Bn(e, t, n, r, i, a, o, s, c, l) {
988
+ var u = T(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");
989
+ function x(e) {
990
+ return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);
991
+ }
992
+ return u.invert = function(e) {
993
+ return new Date(d(e));
994
+ }, u.domain = function(e) {
995
+ return arguments.length ? f(Array.from(e, zn)) : f().map(Rn);
996
+ }, u.ticks = function(t) {
997
+ var n = f();
998
+ return e(n[0], n[n.length - 1], t ?? 10);
999
+ }, u.tickFormat = function(e, t) {
1000
+ return t == null ? x : l(t);
1001
+ }, u.nice = function(e) {
1002
+ var n = f();
1003
+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(Ie(n, e)) : u;
1004
+ }, u.copy = function() {
1005
+ return E(u, Bn(e, t, n, r, i, a, o, s, c, l));
1006
+ }, u;
1007
+ }
1008
+ function Vn() {
1009
+ return O.apply(Bn(pt, mt, W, ct, Ye, B, Ge, Ue, z, In).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
1010
+ }
1011
+ //#endregion
1012
+ //#region node_modules/dayjs/plugin/isoWeek.js
1013
+ var Hn = /* @__PURE__ */ e(((e, t) => {
1014
+ (function(n, r) {
1015
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_isoWeek = r();
1016
+ })(e, (function() {
1017
+ return function(e, t, n) {
1018
+ var r = function(e) {
1019
+ return e.add(4 - e.isoWeekday(), "day");
1020
+ }, i = t.prototype;
1021
+ i.isoWeekYear = function() {
1022
+ return r(this).year();
1023
+ }, i.isoWeek = function(e) {
1024
+ if (!this.$utils().u(e)) return this.add(7 * (e - this.isoWeek()), "day");
1025
+ var t, i, a, o, s = r(this), c = (t = this.isoWeekYear(), i = this.$u, a = (i ? n.utc : n)().year(t).startOf("year"), o = 4 - a.isoWeekday(), a.isoWeekday() > 4 && (o += 7), a.add(o, "day"));
1026
+ return s.diff(c, "week") + 1;
1027
+ }, i.isoWeekday = function(e) {
1028
+ return this.$utils().u(e) ? this.day() || 7 : this.day(this.day() % 7 ? e : e - 7);
1029
+ };
1030
+ var a = i.startOf;
1031
+ i.startOf = function(e, t) {
1032
+ var n = this.$utils(), r = !!n.u(t) || t;
1033
+ return n.p(e) === "isoweek" ? r ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : a.bind(this)(e, t);
1034
+ };
1035
+ };
1036
+ }));
1037
+ })), Un = /* @__PURE__ */ e(((e, t) => {
1038
+ (function(n, r) {
1039
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
1040
+ })(e, (function() {
1041
+ var e = {
1042
+ LTS: "h:mm:ss A",
1043
+ LT: "h:mm A",
1044
+ L: "MM/DD/YYYY",
1045
+ LL: "MMMM D, YYYY",
1046
+ LLL: "MMMM D, YYYY h:mm A",
1047
+ LLLL: "dddd, MMMM D, YYYY h:mm A"
1048
+ }, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, o = {}, s = function(e) {
1049
+ return (e = +e) + (e > 68 ? 1900 : 2e3);
1050
+ }, c = function(e) {
1051
+ return function(t) {
1052
+ this[e] = +t;
1053
+ };
1054
+ }, l = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
1055
+ (this.zone ||= {}).offset = function(e) {
1056
+ if (!e || e === "Z") return 0;
1057
+ var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
1058
+ return n === 0 ? 0 : t[0] === "+" ? -n : n;
1059
+ }(e);
1060
+ }], u = function(e) {
1061
+ var t = o[e];
1062
+ return t && (t.indexOf ? t : t.s.concat(t.f));
1063
+ }, d = function(e, t) {
1064
+ var n, r = o.meridiem;
1065
+ if (r) {
1066
+ for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
1067
+ n = i > 12;
1068
+ break;
1069
+ }
1070
+ } else n = e === (t ? "pm" : "PM");
1071
+ return n;
1072
+ }, f = {
1073
+ A: [a, function(e) {
1074
+ this.afternoon = d(e, !1);
1075
+ }],
1076
+ a: [a, function(e) {
1077
+ this.afternoon = d(e, !0);
1078
+ }],
1079
+ Q: [n, function(e) {
1080
+ this.month = 3 * (e - 1) + 1;
1081
+ }],
1082
+ S: [n, function(e) {
1083
+ this.milliseconds = 100 * e;
1084
+ }],
1085
+ SS: [r, function(e) {
1086
+ this.milliseconds = 10 * e;
1087
+ }],
1088
+ SSS: [/\d{3}/, function(e) {
1089
+ this.milliseconds = +e;
1090
+ }],
1091
+ s: [i, c("seconds")],
1092
+ ss: [i, c("seconds")],
1093
+ m: [i, c("minutes")],
1094
+ mm: [i, c("minutes")],
1095
+ H: [i, c("hours")],
1096
+ h: [i, c("hours")],
1097
+ HH: [i, c("hours")],
1098
+ hh: [i, c("hours")],
1099
+ D: [i, c("day")],
1100
+ DD: [r, c("day")],
1101
+ Do: [a, function(e) {
1102
+ var t = o.ordinal, n = e.match(/\d+/);
1103
+ if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
1104
+ }],
1105
+ w: [i, c("week")],
1106
+ ww: [r, c("week")],
1107
+ M: [i, c("month")],
1108
+ MM: [r, c("month")],
1109
+ MMM: [a, function(e) {
1110
+ var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
1111
+ return e.slice(0, 3);
1112
+ }))).indexOf(e) + 1;
1113
+ if (n < 1) throw Error();
1114
+ this.month = n % 12 || n;
1115
+ }],
1116
+ MMMM: [a, function(e) {
1117
+ var t = u("months").indexOf(e) + 1;
1118
+ if (t < 1) throw Error();
1119
+ this.month = t % 12 || t;
1120
+ }],
1121
+ Y: [/[+-]?\d+/, c("year")],
1122
+ YY: [r, function(e) {
1123
+ this.year = s(e);
1124
+ }],
1125
+ YYYY: [/\d{4}/, c("year")],
1126
+ Z: l,
1127
+ ZZ: l
1128
+ };
1129
+ function p(n) {
1130
+ for (var r = n, i = o && o.formats, a = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
1131
+ var a = r && r.toUpperCase();
1132
+ return n || i[r] || e[r] || i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
1133
+ return t || n.slice(1);
1134
+ }));
1135
+ }))).match(t), s = a.length, c = 0; c < s; c += 1) {
1136
+ var l = a[c], u = f[l], d = u && u[0], p = u && u[1];
1137
+ a[c] = p ? {
1138
+ regex: d,
1139
+ parser: p
1140
+ } : l.replace(/^\[|\]$/g, "");
1141
+ }
1142
+ return function(e) {
1143
+ for (var t = {}, n = 0, r = 0; n < s; n += 1) {
1144
+ var i = a[n];
1145
+ if (typeof i == "string") r += i.length;
1146
+ else {
1147
+ var o = i.regex, c = i.parser, l = e.slice(r), u = o.exec(l)[0];
1148
+ c.call(t, u), e = e.replace(u, "");
1149
+ }
1150
+ }
1151
+ return function(e) {
1152
+ var t = e.afternoon;
1153
+ if (t !== void 0) {
1154
+ var n = e.hours;
1155
+ t ? n < 12 && (e.hours += 12) : n === 12 && (e.hours = 0), delete e.afternoon;
1156
+ }
1157
+ }(t), t;
1158
+ };
1159
+ }
1160
+ return function(e, t, n) {
1161
+ n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (s = e.parseTwoDigitYear);
1162
+ var r = t.prototype, i = r.parse;
1163
+ r.parse = function(e) {
1164
+ var t = e.date, r = e.utc, a = e.args;
1165
+ this.$u = r;
1166
+ var s = a[1];
1167
+ if (typeof s == "string") {
1168
+ var c = !0 === a[2], l = !0 === a[3], u = c || l, d = a[2];
1169
+ l && (d = a[2]), o = this.$locale(), !c && d && (o = n.Ls[d]), this.$d = function(e, t, n, r) {
1170
+ try {
1171
+ if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date((t === "X" ? 1e3 : 1) * e);
1172
+ var i = p(t)(e), a = i.year, o = i.month, s = i.day, c = i.hours, l = i.minutes, u = i.seconds, d = i.milliseconds, f = i.zone, m = i.week, h = /* @__PURE__ */ new Date(), g = s || (a || o ? 1 : h.getDate()), _ = a || h.getFullYear(), v = 0;
1173
+ a && !o || (v = o > 0 ? o - 1 : h.getMonth());
1174
+ var y, b = c || 0, x = l || 0, S = u || 0, C = d || 0;
1175
+ return f ? new Date(Date.UTC(_, v, g, b, x, S, C + 60 * f.offset * 1e3)) : n ? new Date(Date.UTC(_, v, g, b, x, S, C)) : (y = new Date(_, v, g, b, x, S, C), m && (y = r(y).week(m).toDate()), y);
1176
+ } catch {
1177
+ return /* @__PURE__ */ new Date("");
1178
+ }
1179
+ }(t, s, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(s) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
1180
+ } else if (s instanceof Array) for (var f = s.length, m = 1; m <= f; m += 1) {
1181
+ a[1] = s[m - 1];
1182
+ var h = n.apply(this, a);
1183
+ if (h.isValid()) {
1184
+ this.$d = h.$d, this.$L = h.$L, this.init();
1185
+ break;
1186
+ }
1187
+ m === f && (this.$d = /* @__PURE__ */ new Date(""));
1188
+ }
1189
+ else i.call(this, e);
1190
+ };
1191
+ };
1192
+ }));
1193
+ })), Wn = /* @__PURE__ */ e(((e, t) => {
1194
+ (function(n, r) {
1195
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_advancedFormat = r();
1196
+ })(e, (function() {
1197
+ return function(e, t) {
1198
+ var n = t.prototype, r = n.format;
1199
+ n.format = function(e) {
1200
+ var t = this, n = this.$locale();
1201
+ if (!this.isValid()) return r.bind(this)(e);
1202
+ var i = this.$utils(), a = (e || "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) {
1203
+ switch (e) {
1204
+ case "Q": return Math.ceil((t.$M + 1) / 3);
1205
+ case "Do": return n.ordinal(t.$D);
1206
+ case "gggg": return t.weekYear();
1207
+ case "GGGG": return t.isoWeekYear();
1208
+ case "wo": return n.ordinal(t.week(), "W");
1209
+ case "w":
1210
+ case "ww": return i.s(t.week(), e === "w" ? 1 : 2, "0");
1211
+ case "W":
1212
+ case "WW": return i.s(t.isoWeek(), e === "W" ? 1 : 2, "0");
1213
+ case "k":
1214
+ case "kk": return i.s(String(t.$H === 0 ? 24 : t.$H), e === "k" ? 1 : 2, "0");
1215
+ case "X": return Math.floor(t.$d.getTime() / 1e3);
1216
+ case "x": return t.$d.getTime();
1217
+ case "z": return "[" + t.offsetName() + "]";
1218
+ case "zzz": return "[" + t.offsetName("long") + "]";
1219
+ default: return e;
1220
+ }
1221
+ }));
1222
+ return r.bind(this)(a);
1223
+ };
1224
+ };
1225
+ }));
1226
+ })), Gn = /* @__PURE__ */ e(((e, t) => {
1227
+ (function(n, r) {
1228
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_duration = r();
1229
+ })(e, (function() {
1230
+ var e, t, n = 1e3, r = 6e4, i = 36e5, a = 864e5, o = 31536e6, s = 2628e6, c = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, l = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, u = {
1231
+ years: o,
1232
+ months: s,
1233
+ days: a,
1234
+ hours: i,
1235
+ minutes: r,
1236
+ seconds: n,
1237
+ milliseconds: 1,
1238
+ weeks: 6048e5
1239
+ }, d = function(e) {
1240
+ return e instanceof v;
1241
+ }, f = function(e, t, n) {
1242
+ return new v(e, n, t.$l);
1243
+ }, p = function(e) {
1244
+ return t.p(e) + "s";
1245
+ }, m = function(e) {
1246
+ return e < 0;
1247
+ }, h = function(e) {
1248
+ return m(e) ? Math.ceil(e) : Math.floor(e);
1249
+ }, g = function(e) {
1250
+ return Math.abs(e);
1251
+ }, _ = function(e, t) {
1252
+ return e ? m(e) ? {
1253
+ negative: !0,
1254
+ format: "" + g(e) + t
1255
+ } : {
1256
+ negative: !1,
1257
+ format: "" + e + t
1258
+ } : {
1259
+ negative: !1,
1260
+ format: ""
1261
+ };
1262
+ }, v = function() {
1263
+ function m(e, t, n) {
1264
+ var r = this;
1265
+ if (this.$d = {}, this.$l = n, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), t) return f(e * u[p(t)], this);
1266
+ if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
1267
+ if (typeof e == "object") return Object.keys(e).forEach((function(t) {
1268
+ r.$d[p(t)] = e[t];
1269
+ })), this.calMilliseconds(), this;
1270
+ if (typeof e == "string") {
1271
+ var i = e.match(c);
1272
+ if (i) {
1273
+ var a = i.slice(2).map((function(e) {
1274
+ return e == null ? 0 : Number(e);
1275
+ }));
1276
+ return this.$d.years = a[0], this.$d.months = a[1], this.$d.weeks = a[2], this.$d.days = a[3], this.$d.hours = a[4], this.$d.minutes = a[5], this.$d.seconds = a[6], this.calMilliseconds(), this;
1277
+ }
1278
+ }
1279
+ return this;
1280
+ }
1281
+ var g = m.prototype;
1282
+ return g.calMilliseconds = function() {
1283
+ var e = this;
1284
+ this.$ms = Object.keys(this.$d).reduce((function(t, n) {
1285
+ return t + (e.$d[n] || 0) * u[n];
1286
+ }), 0);
1287
+ }, g.parseFromMilliseconds = function() {
1288
+ var e = this.$ms;
1289
+ this.$d.years = h(e / o), e %= o, this.$d.months = h(e / s), e %= s, this.$d.days = h(e / a), e %= a, this.$d.hours = h(e / i), e %= i, this.$d.minutes = h(e / r), e %= r, this.$d.seconds = h(e / n), e %= n, this.$d.milliseconds = e;
1290
+ }, g.toISOString = function() {
1291
+ var e = _(this.$d.years, "Y"), t = _(this.$d.months, "M"), n = +this.$d.days || 0;
1292
+ this.$d.weeks && (n += 7 * this.$d.weeks);
1293
+ var r = _(n, "D"), i = _(this.$d.hours, "H"), a = _(this.$d.minutes, "M"), o = this.$d.seconds || 0;
1294
+ this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
1295
+ var s = _(o, "S"), c = e.negative || t.negative || r.negative || i.negative || a.negative || s.negative, l = i.format || a.format || s.format ? "T" : "", u = (c ? "-" : "") + "P" + e.format + t.format + r.format + l + i.format + a.format + s.format;
1296
+ return u === "P" || u === "-P" ? "P0D" : u;
1297
+ }, g.toJSON = function() {
1298
+ return this.toISOString();
1299
+ }, g.format = function(e) {
1300
+ var n = e || "YYYY-MM-DDTHH:mm:ss", r = {
1301
+ Y: this.$d.years,
1302
+ YY: t.s(this.$d.years, 2, "0"),
1303
+ YYYY: t.s(this.$d.years, 4, "0"),
1304
+ M: this.$d.months,
1305
+ MM: t.s(this.$d.months, 2, "0"),
1306
+ D: this.$d.days,
1307
+ DD: t.s(this.$d.days, 2, "0"),
1308
+ H: this.$d.hours,
1309
+ HH: t.s(this.$d.hours, 2, "0"),
1310
+ m: this.$d.minutes,
1311
+ mm: t.s(this.$d.minutes, 2, "0"),
1312
+ s: this.$d.seconds,
1313
+ ss: t.s(this.$d.seconds, 2, "0"),
1314
+ SSS: t.s(this.$d.milliseconds, 3, "0")
1315
+ };
1316
+ return n.replace(l, (function(e, t) {
1317
+ return t || String(r[e]);
1318
+ }));
1319
+ }, g.as = function(e) {
1320
+ return this.$ms / u[p(e)];
1321
+ }, g.get = function(e) {
1322
+ var t = this.$ms, n = p(e);
1323
+ return n === "milliseconds" ? t %= 1e3 : t = n === "weeks" ? h(t / u[n]) : this.$d[n], t || 0;
1324
+ }, g.add = function(e, t, n) {
1325
+ var r;
1326
+ return r = t ? e * u[p(t)] : d(e) ? e.$ms : f(e, this).$ms, f(this.$ms + r * (n ? -1 : 1), this);
1327
+ }, g.subtract = function(e, t) {
1328
+ return this.add(e, t, !0);
1329
+ }, g.locale = function(e) {
1330
+ var t = this.clone();
1331
+ return t.$l = e, t;
1332
+ }, g.clone = function() {
1333
+ return f(this.$ms, this);
1334
+ }, g.humanize = function(t) {
1335
+ return e().add(this.$ms, "ms").locale(this.$l).fromNow(!t);
1336
+ }, g.valueOf = function() {
1337
+ return this.asMilliseconds();
1338
+ }, g.milliseconds = function() {
1339
+ return this.get("milliseconds");
1340
+ }, g.asMilliseconds = function() {
1341
+ return this.as("milliseconds");
1342
+ }, g.seconds = function() {
1343
+ return this.get("seconds");
1344
+ }, g.asSeconds = function() {
1345
+ return this.as("seconds");
1346
+ }, g.minutes = function() {
1347
+ return this.get("minutes");
1348
+ }, g.asMinutes = function() {
1349
+ return this.as("minutes");
1350
+ }, g.hours = function() {
1351
+ return this.get("hours");
1352
+ }, g.asHours = function() {
1353
+ return this.as("hours");
1354
+ }, g.days = function() {
1355
+ return this.get("days");
1356
+ }, g.asDays = function() {
1357
+ return this.as("days");
1358
+ }, g.weeks = function() {
1359
+ return this.get("weeks");
1360
+ }, g.asWeeks = function() {
1361
+ return this.as("weeks");
1362
+ }, g.months = function() {
1363
+ return this.get("months");
1364
+ }, g.asMonths = function() {
1365
+ return this.as("months");
1366
+ }, g.years = function() {
1367
+ return this.get("years");
1368
+ }, g.asYears = function() {
1369
+ return this.as("years");
1370
+ }, m;
1371
+ }(), y = function(e, t, n) {
1372
+ return e.add(t.years() * n, "y").add(t.months() * n, "M").add(t.days() * n, "d").add(t.hours() * n, "h").add(t.minutes() * n, "m").add(t.seconds() * n, "s").add(t.milliseconds() * n, "ms");
1373
+ };
1374
+ return function(n, r, i) {
1375
+ e = i, t = i().$utils(), i.duration = function(e, t) {
1376
+ return f(e, { $l: i.locale() }, t);
1377
+ }, i.isDuration = d;
1378
+ var a = r.prototype.add, o = r.prototype.subtract;
1379
+ r.prototype.add = function(e, t) {
1380
+ return d(e) ? y(this, e, 1) : a.bind(this)(e, t);
1381
+ }, r.prototype.subtract = function(e, t) {
1382
+ return d(e) ? y(this, e, -1) : o.bind(this)(e, t);
1383
+ };
1384
+ };
1385
+ }));
1386
+ })), Kn = k(), J = /* @__PURE__ */ d(a(), 1), qn = /* @__PURE__ */ d(Hn(), 1), Jn = /* @__PURE__ */ d(Un(), 1), Yn = /* @__PURE__ */ d(Wn(), 1), Xn = /* @__PURE__ */ d(Gn(), 1), Zn = (function() {
1387
+ var e = /* @__PURE__ */ f(function(e, t, n, r) {
1388
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
1389
+ return n;
1390
+ }, "o"), t = [
1391
+ 6,
1392
+ 8,
1393
+ 10,
1394
+ 12,
1395
+ 13,
1396
+ 14,
1397
+ 15,
1398
+ 16,
1399
+ 17,
1400
+ 18,
1401
+ 20,
1402
+ 21,
1403
+ 22,
1404
+ 23,
1405
+ 24,
1406
+ 25,
1407
+ 26,
1408
+ 27,
1409
+ 28,
1410
+ 29,
1411
+ 30,
1412
+ 31,
1413
+ 33,
1414
+ 35,
1415
+ 36,
1416
+ 38,
1417
+ 40
1418
+ ], n = [1, 26], r = [1, 27], i = [1, 28], a = [1, 29], o = [1, 30], s = [1, 31], c = [1, 32], l = [1, 33], u = [1, 34], d = [1, 9], p = [1, 10], m = [1, 11], h = [1, 12], g = [1, 13], _ = [1, 14], v = [1, 15], y = [1, 16], b = [1, 19], x = [1, 20], S = [1, 21], C = [1, 22], w = [1, 23], T = [1, 25], E = [1, 35], D = {
1419
+ trace: /* @__PURE__ */ f(function() {}, "trace"),
1420
+ yy: {},
1421
+ symbols_: {
1422
+ error: 2,
1423
+ start: 3,
1424
+ gantt: 4,
1425
+ document: 5,
1426
+ EOF: 6,
1427
+ line: 7,
1428
+ SPACE: 8,
1429
+ statement: 9,
1430
+ NL: 10,
1431
+ weekday: 11,
1432
+ weekday_monday: 12,
1433
+ weekday_tuesday: 13,
1434
+ weekday_wednesday: 14,
1435
+ weekday_thursday: 15,
1436
+ weekday_friday: 16,
1437
+ weekday_saturday: 17,
1438
+ weekday_sunday: 18,
1439
+ weekend: 19,
1440
+ weekend_friday: 20,
1441
+ weekend_saturday: 21,
1442
+ dateFormat: 22,
1443
+ inclusiveEndDates: 23,
1444
+ topAxis: 24,
1445
+ axisFormat: 25,
1446
+ tickInterval: 26,
1447
+ excludes: 27,
1448
+ includes: 28,
1449
+ todayMarker: 29,
1450
+ title: 30,
1451
+ acc_title: 31,
1452
+ acc_title_value: 32,
1453
+ acc_descr: 33,
1454
+ acc_descr_value: 34,
1455
+ acc_descr_multiline_value: 35,
1456
+ section: 36,
1457
+ clickStatement: 37,
1458
+ taskTxt: 38,
1459
+ taskData: 39,
1460
+ click: 40,
1461
+ callbackname: 41,
1462
+ callbackargs: 42,
1463
+ href: 43,
1464
+ clickStatementDebug: 44,
1465
+ $accept: 0,
1466
+ $end: 1
1467
+ },
1468
+ terminals_: {
1469
+ 2: "error",
1470
+ 4: "gantt",
1471
+ 6: "EOF",
1472
+ 8: "SPACE",
1473
+ 10: "NL",
1474
+ 12: "weekday_monday",
1475
+ 13: "weekday_tuesday",
1476
+ 14: "weekday_wednesday",
1477
+ 15: "weekday_thursday",
1478
+ 16: "weekday_friday",
1479
+ 17: "weekday_saturday",
1480
+ 18: "weekday_sunday",
1481
+ 20: "weekend_friday",
1482
+ 21: "weekend_saturday",
1483
+ 22: "dateFormat",
1484
+ 23: "inclusiveEndDates",
1485
+ 24: "topAxis",
1486
+ 25: "axisFormat",
1487
+ 26: "tickInterval",
1488
+ 27: "excludes",
1489
+ 28: "includes",
1490
+ 29: "todayMarker",
1491
+ 30: "title",
1492
+ 31: "acc_title",
1493
+ 32: "acc_title_value",
1494
+ 33: "acc_descr",
1495
+ 34: "acc_descr_value",
1496
+ 35: "acc_descr_multiline_value",
1497
+ 36: "section",
1498
+ 38: "taskTxt",
1499
+ 39: "taskData",
1500
+ 40: "click",
1501
+ 41: "callbackname",
1502
+ 42: "callbackargs",
1503
+ 43: "href"
1504
+ },
1505
+ productions_: [
1506
+ 0,
1507
+ [3, 3],
1508
+ [5, 0],
1509
+ [5, 2],
1510
+ [7, 2],
1511
+ [7, 1],
1512
+ [7, 1],
1513
+ [7, 1],
1514
+ [11, 1],
1515
+ [11, 1],
1516
+ [11, 1],
1517
+ [11, 1],
1518
+ [11, 1],
1519
+ [11, 1],
1520
+ [11, 1],
1521
+ [19, 1],
1522
+ [19, 1],
1523
+ [9, 1],
1524
+ [9, 1],
1525
+ [9, 1],
1526
+ [9, 1],
1527
+ [9, 1],
1528
+ [9, 1],
1529
+ [9, 1],
1530
+ [9, 1],
1531
+ [9, 1],
1532
+ [9, 1],
1533
+ [9, 1],
1534
+ [9, 2],
1535
+ [9, 2],
1536
+ [9, 1],
1537
+ [9, 1],
1538
+ [9, 1],
1539
+ [9, 2],
1540
+ [37, 2],
1541
+ [37, 3],
1542
+ [37, 3],
1543
+ [37, 4],
1544
+ [37, 3],
1545
+ [37, 4],
1546
+ [37, 2],
1547
+ [44, 2],
1548
+ [44, 3],
1549
+ [44, 3],
1550
+ [44, 4],
1551
+ [44, 3],
1552
+ [44, 4],
1553
+ [44, 2]
1554
+ ],
1555
+ performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
1556
+ var s = a.length - 1;
1557
+ switch (i) {
1558
+ case 1: return a[s - 1];
1559
+ case 2:
1560
+ this.$ = [];
1561
+ break;
1562
+ case 3:
1563
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
1564
+ break;
1565
+ case 4:
1566
+ case 5:
1567
+ this.$ = a[s];
1568
+ break;
1569
+ case 6:
1570
+ case 7:
1571
+ this.$ = [];
1572
+ break;
1573
+ case 8:
1574
+ r.setWeekday("monday");
1575
+ break;
1576
+ case 9:
1577
+ r.setWeekday("tuesday");
1578
+ break;
1579
+ case 10:
1580
+ r.setWeekday("wednesday");
1581
+ break;
1582
+ case 11:
1583
+ r.setWeekday("thursday");
1584
+ break;
1585
+ case 12:
1586
+ r.setWeekday("friday");
1587
+ break;
1588
+ case 13:
1589
+ r.setWeekday("saturday");
1590
+ break;
1591
+ case 14:
1592
+ r.setWeekday("sunday");
1593
+ break;
1594
+ case 15:
1595
+ r.setWeekend("friday");
1596
+ break;
1597
+ case 16:
1598
+ r.setWeekend("saturday");
1599
+ break;
1600
+ case 17:
1601
+ r.setDateFormat(a[s].substr(11)), this.$ = a[s].substr(11);
1602
+ break;
1603
+ case 18:
1604
+ r.enableInclusiveEndDates(), this.$ = a[s].substr(18);
1605
+ break;
1606
+ case 19:
1607
+ r.TopAxis(), this.$ = a[s].substr(8);
1608
+ break;
1609
+ case 20:
1610
+ r.setAxisFormat(a[s].substr(11)), this.$ = a[s].substr(11);
1611
+ break;
1612
+ case 21:
1613
+ r.setTickInterval(a[s].substr(13)), this.$ = a[s].substr(13);
1614
+ break;
1615
+ case 22:
1616
+ r.setExcludes(a[s].substr(9)), this.$ = a[s].substr(9);
1617
+ break;
1618
+ case 23:
1619
+ r.setIncludes(a[s].substr(9)), this.$ = a[s].substr(9);
1620
+ break;
1621
+ case 24:
1622
+ r.setTodayMarker(a[s].substr(12)), this.$ = a[s].substr(12);
1623
+ break;
1624
+ case 27:
1625
+ r.setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
1626
+ break;
1627
+ case 28:
1628
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
1629
+ break;
1630
+ case 29:
1631
+ case 30:
1632
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
1633
+ break;
1634
+ case 31:
1635
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
1636
+ break;
1637
+ case 33:
1638
+ r.addTask(a[s - 1], a[s]), this.$ = "task";
1639
+ break;
1640
+ case 34:
1641
+ this.$ = a[s - 1], r.setClickEvent(a[s - 1], a[s], null);
1642
+ break;
1643
+ case 35:
1644
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
1645
+ break;
1646
+ case 36:
1647
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s - 1], null), r.setLink(a[s - 2], a[s]);
1648
+ break;
1649
+ case 37:
1650
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 2], a[s - 1]), r.setLink(a[s - 3], a[s]);
1651
+ break;
1652
+ case 38:
1653
+ this.$ = a[s - 2], r.setClickEvent(a[s - 2], a[s], null), r.setLink(a[s - 2], a[s - 1]);
1654
+ break;
1655
+ case 39:
1656
+ this.$ = a[s - 3], r.setClickEvent(a[s - 3], a[s - 1], a[s]), r.setLink(a[s - 3], a[s - 2]);
1657
+ break;
1658
+ case 40:
1659
+ this.$ = a[s - 1], r.setLink(a[s - 1], a[s]);
1660
+ break;
1661
+ case 41:
1662
+ case 47:
1663
+ this.$ = a[s - 1] + " " + a[s];
1664
+ break;
1665
+ case 42:
1666
+ case 43:
1667
+ case 45:
1668
+ this.$ = a[s - 2] + " " + a[s - 1] + " " + a[s];
1669
+ break;
1670
+ case 44:
1671
+ case 46: this.$ = a[s - 3] + " " + a[s - 2] + " " + a[s - 1] + " " + a[s];
1672
+ }
1673
+ }, "anonymous"),
1674
+ table: [
1675
+ {
1676
+ 3: 1,
1677
+ 4: [1, 2]
1678
+ },
1679
+ { 1: [3] },
1680
+ e(t, [2, 2], { 5: 3 }),
1681
+ {
1682
+ 6: [1, 4],
1683
+ 7: 5,
1684
+ 8: [1, 6],
1685
+ 9: 7,
1686
+ 10: [1, 8],
1687
+ 11: 17,
1688
+ 12: n,
1689
+ 13: r,
1690
+ 14: i,
1691
+ 15: a,
1692
+ 16: o,
1693
+ 17: s,
1694
+ 18: c,
1695
+ 19: 18,
1696
+ 20: l,
1697
+ 21: u,
1698
+ 22: d,
1699
+ 23: p,
1700
+ 24: m,
1701
+ 25: h,
1702
+ 26: g,
1703
+ 27: _,
1704
+ 28: v,
1705
+ 29: y,
1706
+ 30: b,
1707
+ 31: x,
1708
+ 33: S,
1709
+ 35: C,
1710
+ 36: w,
1711
+ 37: 24,
1712
+ 38: T,
1713
+ 40: E
1714
+ },
1715
+ e(t, [2, 7], { 1: [2, 1] }),
1716
+ e(t, [2, 3]),
1717
+ {
1718
+ 9: 36,
1719
+ 11: 17,
1720
+ 12: n,
1721
+ 13: r,
1722
+ 14: i,
1723
+ 15: a,
1724
+ 16: o,
1725
+ 17: s,
1726
+ 18: c,
1727
+ 19: 18,
1728
+ 20: l,
1729
+ 21: u,
1730
+ 22: d,
1731
+ 23: p,
1732
+ 24: m,
1733
+ 25: h,
1734
+ 26: g,
1735
+ 27: _,
1736
+ 28: v,
1737
+ 29: y,
1738
+ 30: b,
1739
+ 31: x,
1740
+ 33: S,
1741
+ 35: C,
1742
+ 36: w,
1743
+ 37: 24,
1744
+ 38: T,
1745
+ 40: E
1746
+ },
1747
+ e(t, [2, 5]),
1748
+ e(t, [2, 6]),
1749
+ e(t, [2, 17]),
1750
+ e(t, [2, 18]),
1751
+ e(t, [2, 19]),
1752
+ e(t, [2, 20]),
1753
+ e(t, [2, 21]),
1754
+ e(t, [2, 22]),
1755
+ e(t, [2, 23]),
1756
+ e(t, [2, 24]),
1757
+ e(t, [2, 25]),
1758
+ e(t, [2, 26]),
1759
+ e(t, [2, 27]),
1760
+ { 32: [1, 37] },
1761
+ { 34: [1, 38] },
1762
+ e(t, [2, 30]),
1763
+ e(t, [2, 31]),
1764
+ e(t, [2, 32]),
1765
+ { 39: [1, 39] },
1766
+ e(t, [2, 8]),
1767
+ e(t, [2, 9]),
1768
+ e(t, [2, 10]),
1769
+ e(t, [2, 11]),
1770
+ e(t, [2, 12]),
1771
+ e(t, [2, 13]),
1772
+ e(t, [2, 14]),
1773
+ e(t, [2, 15]),
1774
+ e(t, [2, 16]),
1775
+ {
1776
+ 41: [1, 40],
1777
+ 43: [1, 41]
1778
+ },
1779
+ e(t, [2, 4]),
1780
+ e(t, [2, 28]),
1781
+ e(t, [2, 29]),
1782
+ e(t, [2, 33]),
1783
+ e(t, [2, 34], {
1784
+ 42: [1, 42],
1785
+ 43: [1, 43]
1786
+ }),
1787
+ e(t, [2, 40], { 41: [1, 44] }),
1788
+ e(t, [2, 35], { 43: [1, 45] }),
1789
+ e(t, [2, 36]),
1790
+ e(t, [2, 38], { 42: [1, 46] }),
1791
+ e(t, [2, 37]),
1792
+ e(t, [2, 39])
1793
+ ],
1794
+ defaultActions: {},
1795
+ parseError: /* @__PURE__ */ f(function(e, t) {
1796
+ if (t.recoverable) this.trace(e);
1797
+ else {
1798
+ var n = Error(e);
1799
+ throw n.hash = t, n;
1800
+ }
1801
+ }, "parseError"),
1802
+ parse: /* @__PURE__ */ f(function(e) {
1803
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1804
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1805
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1806
+ var v = h.yylloc;
1807
+ a.push(v);
1808
+ var y = h.options && h.options.ranges;
1809
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1810
+ function b(e) {
1811
+ n.length -= 2 * e, i.length -= e, a.length -= e;
1812
+ }
1813
+ f(b, "popStack");
1814
+ function x() {
1815
+ var e = r.pop() || h.lex() || p;
1816
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1817
+ }
1818
+ f(x, "lex");
1819
+ for (var S, C, w, T, E, D = {}, O, k, ee, A;;) {
1820
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
1821
+ var te = "";
1822
+ for (O in A = [], o[w]) this.terminals_[O] && O > d && A.push("'" + this.terminals_[O] + "'");
1823
+ te = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + A.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(te, {
1824
+ text: h.match,
1825
+ token: this.terminals_[S] || S,
1826
+ line: h.yylineno,
1827
+ loc: v,
1828
+ expected: A
1829
+ });
1830
+ }
1831
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1832
+ switch (T[0]) {
1833
+ case 1:
1834
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
1835
+ break;
1836
+ case 2:
1837
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
1838
+ first_line: a[a.length - (k || 1)].first_line,
1839
+ last_line: a[a.length - 1].last_line,
1840
+ first_column: a[a.length - (k || 1)].first_column,
1841
+ last_column: a[a.length - 1].last_column
1842
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
1843
+ s,
1844
+ l,
1845
+ c,
1846
+ g.yy,
1847
+ T[1],
1848
+ i,
1849
+ a
1850
+ ].concat(m)), E !== void 0) return E;
1851
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), ee = o[n[n.length - 2]][n[n.length - 1]], n.push(ee);
1852
+ break;
1853
+ case 3: return !0;
1854
+ }
1855
+ }
1856
+ return !0;
1857
+ }, "parse")
1858
+ };
1859
+ D.lexer = /* @__PURE__ */ (function() {
1860
+ return {
1861
+ EOF: 1,
1862
+ parseError: /* @__PURE__ */ f(function(e, t) {
1863
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1864
+ else throw Error(e);
1865
+ }, "parseError"),
1866
+ setInput: /* @__PURE__ */ f(function(e, t) {
1867
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1868
+ first_line: 1,
1869
+ first_column: 0,
1870
+ last_line: 1,
1871
+ last_column: 0
1872
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1873
+ }, "setInput"),
1874
+ input: /* @__PURE__ */ f(function() {
1875
+ var e = this._input[0];
1876
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1877
+ }, "input"),
1878
+ unput: /* @__PURE__ */ f(function(e) {
1879
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1880
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1881
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1882
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1883
+ var i = this.yylloc.range;
1884
+ return this.yylloc = {
1885
+ first_line: this.yylloc.first_line,
1886
+ last_line: this.yylineno + 1,
1887
+ first_column: this.yylloc.first_column,
1888
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1889
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1890
+ }, "unput"),
1891
+ more: /* @__PURE__ */ f(function() {
1892
+ return this._more = !0, this;
1893
+ }, "more"),
1894
+ reject: /* @__PURE__ */ f(function() {
1895
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1896
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1897
+ text: "",
1898
+ token: null,
1899
+ line: this.yylineno
1900
+ });
1901
+ return this;
1902
+ }, "reject"),
1903
+ less: /* @__PURE__ */ f(function(e) {
1904
+ this.unput(this.match.slice(e));
1905
+ }, "less"),
1906
+ pastInput: /* @__PURE__ */ f(function() {
1907
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1908
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1909
+ }, "pastInput"),
1910
+ upcomingInput: /* @__PURE__ */ f(function() {
1911
+ var e = this.match;
1912
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1913
+ }, "upcomingInput"),
1914
+ showPosition: /* @__PURE__ */ f(function() {
1915
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1916
+ return e + this.upcomingInput() + "\n" + t + "^";
1917
+ }, "showPosition"),
1918
+ test_match: /* @__PURE__ */ f(function(e, t) {
1919
+ var n, r, i;
1920
+ if (this.options.backtrack_lexer && (i = {
1921
+ yylineno: this.yylineno,
1922
+ yylloc: {
1923
+ first_line: this.yylloc.first_line,
1924
+ last_line: this.last_line,
1925
+ first_column: this.yylloc.first_column,
1926
+ last_column: this.yylloc.last_column
1927
+ },
1928
+ yytext: this.yytext,
1929
+ match: this.match,
1930
+ matches: this.matches,
1931
+ matched: this.matched,
1932
+ yyleng: this.yyleng,
1933
+ offset: this.offset,
1934
+ _more: this._more,
1935
+ _input: this._input,
1936
+ yy: this.yy,
1937
+ conditionStack: this.conditionStack.slice(0),
1938
+ done: this.done
1939
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1940
+ first_line: this.yylloc.last_line,
1941
+ last_line: this.yylineno + 1,
1942
+ first_column: this.yylloc.last_column,
1943
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1944
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1945
+ if (this._backtrack) {
1946
+ for (var a in i) this[a] = i[a];
1947
+ return !1;
1948
+ }
1949
+ return !1;
1950
+ }, "test_match"),
1951
+ next: /* @__PURE__ */ f(function() {
1952
+ if (this.done) return this.EOF;
1953
+ this._input || (this.done = !0);
1954
+ var e, t, n, r;
1955
+ this._more || (this.yytext = "", this.match = "");
1956
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1957
+ if (t = n, r = a, this.options.backtrack_lexer) {
1958
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1959
+ if (this._backtrack) {
1960
+ t = !1;
1961
+ continue;
1962
+ }
1963
+ return !1;
1964
+ }
1965
+ if (!this.options.flex) break;
1966
+ }
1967
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1968
+ text: "",
1969
+ token: null,
1970
+ line: this.yylineno
1971
+ });
1972
+ }, "next"),
1973
+ lex: /* @__PURE__ */ f(function() {
1974
+ return this.next() || this.lex();
1975
+ }, "lex"),
1976
+ begin: /* @__PURE__ */ f(function(e) {
1977
+ this.conditionStack.push(e);
1978
+ }, "begin"),
1979
+ popState: /* @__PURE__ */ f(function() {
1980
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1981
+ }, "popState"),
1982
+ _currentRules: /* @__PURE__ */ f(function() {
1983
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1984
+ }, "_currentRules"),
1985
+ topState: /* @__PURE__ */ f(function(e) {
1986
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1987
+ }, "topState"),
1988
+ pushState: /* @__PURE__ */ f(function(e) {
1989
+ this.begin(e);
1990
+ }, "pushState"),
1991
+ stateStackSize: /* @__PURE__ */ f(function() {
1992
+ return this.conditionStack.length;
1993
+ }, "stateStackSize"),
1994
+ options: { "case-insensitive": !0 },
1995
+ performAction: /* @__PURE__ */ f(function(e, t, n, r) {
1996
+ switch (n) {
1997
+ case 0: return this.begin("open_directive"), "open_directive";
1998
+ case 1: return this.begin("acc_title"), 31;
1999
+ case 2: return this.popState(), "acc_title_value";
2000
+ case 3: return this.begin("acc_descr"), 33;
2001
+ case 4: return this.popState(), "acc_descr_value";
2002
+ case 5:
2003
+ this.begin("acc_descr_multiline");
2004
+ break;
2005
+ case 6:
2006
+ this.popState();
2007
+ break;
2008
+ case 7: return "acc_descr_multiline_value";
2009
+ case 8: break;
2010
+ case 9: break;
2011
+ case 10: break;
2012
+ case 11: return 10;
2013
+ case 12: break;
2014
+ case 13: break;
2015
+ case 14:
2016
+ this.begin("href");
2017
+ break;
2018
+ case 15:
2019
+ this.popState();
2020
+ break;
2021
+ case 16: return 43;
2022
+ case 17:
2023
+ this.begin("callbackname");
2024
+ break;
2025
+ case 18:
2026
+ this.popState();
2027
+ break;
2028
+ case 19:
2029
+ this.popState(), this.begin("callbackargs");
2030
+ break;
2031
+ case 20: return 41;
2032
+ case 21:
2033
+ this.popState();
2034
+ break;
2035
+ case 22: return 42;
2036
+ case 23:
2037
+ this.begin("click");
2038
+ break;
2039
+ case 24:
2040
+ this.popState();
2041
+ break;
2042
+ case 25: return 40;
2043
+ case 26: return 4;
2044
+ case 27: return 22;
2045
+ case 28: return 23;
2046
+ case 29: return 24;
2047
+ case 30: return 25;
2048
+ case 31: return 26;
2049
+ case 32: return 28;
2050
+ case 33: return 27;
2051
+ case 34: return 29;
2052
+ case 35: return 12;
2053
+ case 36: return 13;
2054
+ case 37: return 14;
2055
+ case 38: return 15;
2056
+ case 39: return 16;
2057
+ case 40: return 17;
2058
+ case 41: return 18;
2059
+ case 42: return 20;
2060
+ case 43: return 21;
2061
+ case 44: return "date";
2062
+ case 45: return 30;
2063
+ case 46: return "accDescription";
2064
+ case 47: return 36;
2065
+ case 48: return 38;
2066
+ case 49: return 39;
2067
+ case 50: return ":";
2068
+ case 51: return 6;
2069
+ case 52: return "INVALID";
2070
+ }
2071
+ }, "anonymous"),
2072
+ rules: [
2073
+ /^(?:%%\{)/i,
2074
+ /^(?:accTitle\s*:\s*)/i,
2075
+ /^(?:(?!\n||)*[^\n]*)/i,
2076
+ /^(?:accDescr\s*:\s*)/i,
2077
+ /^(?:(?!\n||)*[^\n]*)/i,
2078
+ /^(?:accDescr\s*\{\s*)/i,
2079
+ /^(?:[\}])/i,
2080
+ /^(?:[^\}]*)/i,
2081
+ /^(?:%%(?!\{)*[^\n]*)/i,
2082
+ /^(?:[^\}]%%*[^\n]*)/i,
2083
+ /^(?:%%*[^\n]*[\n]*)/i,
2084
+ /^(?:[\n]+)/i,
2085
+ /^(?:\s+)/i,
2086
+ /^(?:%[^\n]*)/i,
2087
+ /^(?:href[\s]+["])/i,
2088
+ /^(?:["])/i,
2089
+ /^(?:[^"]*)/i,
2090
+ /^(?:call[\s]+)/i,
2091
+ /^(?:\([\s]*\))/i,
2092
+ /^(?:\()/i,
2093
+ /^(?:[^(]*)/i,
2094
+ /^(?:\))/i,
2095
+ /^(?:[^)]*)/i,
2096
+ /^(?:click[\s]+)/i,
2097
+ /^(?:[\s\n])/i,
2098
+ /^(?:[^\s\n]*)/i,
2099
+ /^(?:gantt\b)/i,
2100
+ /^(?:dateFormat\s[^#\n;]+)/i,
2101
+ /^(?:inclusiveEndDates\b)/i,
2102
+ /^(?:topAxis\b)/i,
2103
+ /^(?:axisFormat\s[^#\n;]+)/i,
2104
+ /^(?:tickInterval\s[^#\n;]+)/i,
2105
+ /^(?:includes\s[^#\n;]+)/i,
2106
+ /^(?:excludes\s[^#\n;]+)/i,
2107
+ /^(?:todayMarker\s[^\n;]+)/i,
2108
+ /^(?:weekday\s+monday\b)/i,
2109
+ /^(?:weekday\s+tuesday\b)/i,
2110
+ /^(?:weekday\s+wednesday\b)/i,
2111
+ /^(?:weekday\s+thursday\b)/i,
2112
+ /^(?:weekday\s+friday\b)/i,
2113
+ /^(?:weekday\s+saturday\b)/i,
2114
+ /^(?:weekday\s+sunday\b)/i,
2115
+ /^(?:weekend\s+friday\b)/i,
2116
+ /^(?:weekend\s+saturday\b)/i,
2117
+ /^(?:\d\d\d\d-\d\d-\d\d\b)/i,
2118
+ /^(?:title\s[^\n]+)/i,
2119
+ /^(?:accDescription\s[^#\n;]+)/i,
2120
+ /^(?:section\s[^\n]+)/i,
2121
+ /^(?:[^:\n]+)/i,
2122
+ /^(?::[^#\n;]+)/i,
2123
+ /^(?::)/i,
2124
+ /^(?:$)/i,
2125
+ /^(?:.)/i
2126
+ ],
2127
+ conditions: {
2128
+ acc_descr_multiline: {
2129
+ rules: [6, 7],
2130
+ inclusive: !1
2131
+ },
2132
+ acc_descr: {
2133
+ rules: [4],
2134
+ inclusive: !1
2135
+ },
2136
+ acc_title: {
2137
+ rules: [2],
2138
+ inclusive: !1
2139
+ },
2140
+ callbackargs: {
2141
+ rules: [21, 22],
2142
+ inclusive: !1
2143
+ },
2144
+ callbackname: {
2145
+ rules: [
2146
+ 18,
2147
+ 19,
2148
+ 20
2149
+ ],
2150
+ inclusive: !1
2151
+ },
2152
+ href: {
2153
+ rules: [15, 16],
2154
+ inclusive: !1
2155
+ },
2156
+ click: {
2157
+ rules: [24, 25],
2158
+ inclusive: !1
2159
+ },
2160
+ INITIAL: {
2161
+ rules: [
2162
+ 0,
2163
+ 1,
2164
+ 3,
2165
+ 5,
2166
+ 8,
2167
+ 9,
2168
+ 10,
2169
+ 11,
2170
+ 12,
2171
+ 13,
2172
+ 14,
2173
+ 17,
2174
+ 23,
2175
+ 26,
2176
+ 27,
2177
+ 28,
2178
+ 29,
2179
+ 30,
2180
+ 31,
2181
+ 32,
2182
+ 33,
2183
+ 34,
2184
+ 35,
2185
+ 36,
2186
+ 37,
2187
+ 38,
2188
+ 39,
2189
+ 40,
2190
+ 41,
2191
+ 42,
2192
+ 43,
2193
+ 44,
2194
+ 45,
2195
+ 46,
2196
+ 47,
2197
+ 48,
2198
+ 49,
2199
+ 50,
2200
+ 51,
2201
+ 52
2202
+ ],
2203
+ inclusive: !0
2204
+ }
2205
+ }
2206
+ };
2207
+ })();
2208
+ function O() {
2209
+ this.yy = {};
2210
+ }
2211
+ return f(O, "Parser"), O.prototype = D, D.Parser = O, new O();
2212
+ })();
2213
+ Zn.parser = Zn;
2214
+ var Qn = Zn;
2215
+ J.default.extend(qn.default), J.default.extend(Jn.default), J.default.extend(Yn.default);
2216
+ var $n = {
2217
+ friday: 5,
2218
+ saturday: 6
2219
+ }, Y = "", er = "", tr = void 0, nr = "", rr = [], ir = [], ar = /* @__PURE__ */ new Map(), or = [], sr = [], X = "", cr = "", lr = [
2220
+ "active",
2221
+ "done",
2222
+ "crit",
2223
+ "milestone",
2224
+ "vert"
2225
+ ], ur = [], dr = "", fr = !1, pr = !1, mr = "sunday", hr = "saturday", gr = 0, _r = /* @__PURE__ */ f(function() {
2226
+ or = [], sr = [], X = "", ur = [], Zr = 0, ti = void 0, ni = void 0, Z = [], Y = "", er = "", cr = "", tr = void 0, nr = "", rr = [], ir = [], fr = !1, pr = !1, gr = 0, ar = /* @__PURE__ */ new Map(), dr = "", g(), mr = "sunday", hr = "saturday";
2227
+ }, "clear"), vr = /* @__PURE__ */ f(function(e) {
2228
+ dr = e;
2229
+ }, "setDiagramId"), yr = /* @__PURE__ */ f(function(e) {
2230
+ er = e;
2231
+ }, "setAxisFormat"), br = /* @__PURE__ */ f(function() {
2232
+ return er;
2233
+ }, "getAxisFormat"), xr = /* @__PURE__ */ f(function(e) {
2234
+ tr = e;
2235
+ }, "setTickInterval"), Sr = /* @__PURE__ */ f(function() {
2236
+ return tr;
2237
+ }, "getTickInterval"), Cr = /* @__PURE__ */ f(function(e) {
2238
+ nr = e;
2239
+ }, "setTodayMarker"), wr = /* @__PURE__ */ f(function() {
2240
+ return nr;
2241
+ }, "getTodayMarker"), Tr = /* @__PURE__ */ f(function(e) {
2242
+ Y = e;
2243
+ }, "setDateFormat"), Er = /* @__PURE__ */ f(function() {
2244
+ fr = !0;
2245
+ }, "enableInclusiveEndDates"), Dr = /* @__PURE__ */ f(function() {
2246
+ return fr;
2247
+ }, "endDatesAreInclusive"), Or = /* @__PURE__ */ f(function() {
2248
+ pr = !0;
2249
+ }, "enableTopAxis"), kr = /* @__PURE__ */ f(function() {
2250
+ return pr;
2251
+ }, "topAxisEnabled"), Ar = /* @__PURE__ */ f(function(e) {
2252
+ cr = e;
2253
+ }, "setDisplayMode"), jr = /* @__PURE__ */ f(function() {
2254
+ return cr;
2255
+ }, "getDisplayMode"), Mr = /* @__PURE__ */ f(function() {
2256
+ return Y;
2257
+ }, "getDateFormat"), Nr = /* @__PURE__ */ f((e, t) => {
2258
+ let n = t.toLowerCase().split(/[\s,]+/).filter((e) => e !== "");
2259
+ return [.../* @__PURE__ */ new Set([...e, ...n])];
2260
+ }, "mergeTokens"), Pr = /* @__PURE__ */ f(function(e) {
2261
+ rr = Nr(rr, e);
2262
+ }, "setIncludes"), Fr = /* @__PURE__ */ f(function() {
2263
+ return rr;
2264
+ }, "getIncludes"), Ir = /* @__PURE__ */ f(function(e) {
2265
+ ir = Nr(ir, e);
2266
+ }, "setExcludes"), Lr = /* @__PURE__ */ f(function() {
2267
+ return ir;
2268
+ }, "getExcludes"), Rr = /* @__PURE__ */ f(function() {
2269
+ return ar;
2270
+ }, "getLinks"), zr = /* @__PURE__ */ f(function(e) {
2271
+ X = e, or.push(e);
2272
+ }, "addSection"), Br = /* @__PURE__ */ f(function() {
2273
+ return or;
2274
+ }, "getSections"), Vr = /* @__PURE__ */ f(function() {
2275
+ let e = oi(), t = 0;
2276
+ for (; !e && t < 10;) e = oi(), t++;
2277
+ return sr = Z, sr;
2278
+ }, "getTasks"), Hr = /* @__PURE__ */ f(function(e, t, n, r) {
2279
+ let i = e.format(t.trim()), a = e.format("YYYY-MM-DD");
2280
+ return r.includes(i) || r.includes(a) ? !1 : n.includes("weekends") && (e.isoWeekday() === $n[hr] || e.isoWeekday() === $n[hr] + 1) || n.includes(e.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(a);
2281
+ }, "isInvalidDate"), Ur = /* @__PURE__ */ f(function(e) {
2282
+ mr = e;
2283
+ }, "setWeekday"), Wr = /* @__PURE__ */ f(function() {
2284
+ return mr;
2285
+ }, "getWeekday"), Gr = /* @__PURE__ */ f(function(e) {
2286
+ hr = e;
2287
+ }, "setWeekend"), Kr = /* @__PURE__ */ f(function(e, t, n, r) {
2288
+ if (!n.length || e.manualEndTime) return;
2289
+ let i;
2290
+ i = e.startTime instanceof Date ? (0, J.default)(e.startTime) : (0, J.default)(e.startTime, t, !0), i = i.add(1, "d");
2291
+ let a;
2292
+ a = e.endTime instanceof Date ? (0, J.default)(e.endTime) : (0, J.default)(e.endTime, t, !0);
2293
+ let [o, s] = qr(i, a, t, n, r);
2294
+ e.endTime = o.toDate(), e.renderEndTime = s;
2295
+ }, "checkTaskDates"), qr = /* @__PURE__ */ f(function(e, t, n, r, i) {
2296
+ let a = !1, o = null, s = t.add(1e4, "d");
2297
+ for (; e <= t;) {
2298
+ if (a || (o = t.toDate()), a = Hr(e, n, r, i), a && (t = t.add(1, "d"), t > s)) throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");
2299
+ e = e.add(1, "d");
2300
+ }
2301
+ return [t, o];
2302
+ }, "fixTaskDates"), Jr = /* @__PURE__ */ f(function(e, t, n) {
2303
+ if (n = n.trim(), (/* @__PURE__ */ f((e) => {
2304
+ let t = e.trim();
2305
+ return t === "x" || t === "X";
2306
+ }, "isTimestampFormat"))(t) && /^\d+$/.test(n)) return new Date(Number(n));
2307
+ let r = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
2308
+ if (r !== null) {
2309
+ let e = null;
2310
+ for (let t of r.groups.ids.split(" ")) {
2311
+ let n = Q(t);
2312
+ n !== void 0 && (!e || n.endTime > e.endTime) && (e = n);
2313
+ }
2314
+ if (e) return e.endTime;
2315
+ let t = /* @__PURE__ */ new Date();
2316
+ return t.setHours(0, 0, 0, 0), t;
2317
+ }
2318
+ let i = (0, J.default)(n, t.trim(), !0);
2319
+ if (i.isValid()) return i.toDate();
2320
+ {
2321
+ s.debug("Invalid date:" + n), s.debug("With date format:" + t.trim());
2322
+ let e = new Date(n);
2323
+ if (e === void 0 || isNaN(e.getTime()) || e.getFullYear() < -1e4 || e.getFullYear() > 1e4) throw Error("Invalid date:" + n);
2324
+ return e;
2325
+ }
2326
+ }, "getStartDate"), Yr = /* @__PURE__ */ f(function(e) {
2327
+ let t = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());
2328
+ return t === null ? [NaN, "ms"] : [Number.parseFloat(t[1]), t[2]];
2329
+ }, "parseDuration"), Xr = /* @__PURE__ */ f(function(e, t, n, r = !1) {
2330
+ n = n.trim();
2331
+ let i = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
2332
+ if (i !== null) {
2333
+ let e = null;
2334
+ for (let t of i.groups.ids.split(" ")) {
2335
+ let n = Q(t);
2336
+ n !== void 0 && (!e || n.startTime < e.startTime) && (e = n);
2337
+ }
2338
+ if (e) return e.startTime;
2339
+ let t = /* @__PURE__ */ new Date();
2340
+ return t.setHours(0, 0, 0, 0), t;
2341
+ }
2342
+ let a = (0, J.default)(n, t.trim(), !0);
2343
+ if (a.isValid()) return r && (a = a.add(1, "d")), a.toDate();
2344
+ let o = (0, J.default)(e), [s, c] = Yr(n);
2345
+ if (!Number.isNaN(s)) {
2346
+ let e = o.add(s, c);
2347
+ e.isValid() && (o = e);
2348
+ }
2349
+ return o.toDate();
2350
+ }, "getEndDate"), Zr = 0, Qr = /* @__PURE__ */ f(function(e) {
2351
+ return e === void 0 ? (Zr += 1, "task" + Zr) : e;
2352
+ }, "parseId"), $r = /* @__PURE__ */ f(function(e, t) {
2353
+ let n;
2354
+ n = t.substr(0, 1) === ":" ? t.substr(1, t.length) : t;
2355
+ let r = n.split(","), i = {};
2356
+ fi(r, i, lr);
2357
+ for (let e = 0; e < r.length; e++) r[e] = r[e].trim();
2358
+ let a = "";
2359
+ switch (r.length) {
2360
+ case 1:
2361
+ i.id = Qr(), i.startTime = e.endTime, a = r[0];
2362
+ break;
2363
+ case 2:
2364
+ i.id = Qr(), i.startTime = Jr(void 0, Y, r[0]), a = r[1];
2365
+ break;
2366
+ case 3: i.id = Qr(r[0]), i.startTime = Jr(void 0, Y, r[1]), a = r[2];
2367
+ }
2368
+ return a && (i.endTime = Xr(i.startTime, Y, a, fr), i.manualEndTime = (0, J.default)(a, "YYYY-MM-DD", !0).isValid(), Kr(i, Y, ir, rr)), i;
2369
+ }, "compileData"), ei = /* @__PURE__ */ f(function(e, t) {
2370
+ let n;
2371
+ n = t.substr(0, 1) === ":" ? t.substr(1, t.length) : t;
2372
+ let r = n.split(","), i = {};
2373
+ fi(r, i, lr);
2374
+ for (let e = 0; e < r.length; e++) r[e] = r[e].trim();
2375
+ switch (r.length) {
2376
+ case 1:
2377
+ i.id = Qr(), i.startTime = {
2378
+ type: "prevTaskEnd",
2379
+ id: e
2380
+ }, i.endTime = { data: r[0] };
2381
+ break;
2382
+ case 2:
2383
+ i.id = Qr(), i.startTime = {
2384
+ type: "getStartDate",
2385
+ startData: r[0]
2386
+ }, i.endTime = { data: r[1] };
2387
+ break;
2388
+ case 3: i.id = Qr(r[0]), i.startTime = {
2389
+ type: "getStartDate",
2390
+ startData: r[1]
2391
+ }, i.endTime = { data: r[2] };
2392
+ }
2393
+ return i;
2394
+ }, "parseData"), ti, ni, Z = [], ri = {}, ii = /* @__PURE__ */ f(function(e, t) {
2395
+ let n = {
2396
+ section: X,
2397
+ type: X,
2398
+ processed: !1,
2399
+ manualEndTime: !1,
2400
+ renderEndTime: null,
2401
+ raw: { data: t },
2402
+ task: e,
2403
+ classes: []
2404
+ }, r = ei(ni, t);
2405
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = ni, n.active = r.active, n.done = r.done, n.crit = r.crit, n.milestone = r.milestone, n.vert = r.vert, n.vert ? n.order = -1 : (n.order = gr, gr++);
2406
+ let i = Z.push(n);
2407
+ ni = n.id, ri[n.id] = i - 1;
2408
+ }, "addTask"), Q = /* @__PURE__ */ f(function(e) {
2409
+ let t = ri[e];
2410
+ return Z[t];
2411
+ }, "findTaskById"), ai = /* @__PURE__ */ f(function(e, t) {
2412
+ let n = {
2413
+ section: X,
2414
+ type: X,
2415
+ description: e,
2416
+ task: e,
2417
+ classes: []
2418
+ }, r = $r(ti, t);
2419
+ 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, ti = n, sr.push(n);
2420
+ }, "addTaskOrg"), oi = /* @__PURE__ */ f(function() {
2421
+ let e = /* @__PURE__ */ f(function(e) {
2422
+ let t = Z[e], n = "";
2423
+ switch (Z[e].raw.startTime.type) {
2424
+ case "prevTaskEnd":
2425
+ t.startTime = Q(t.prevTaskId).endTime;
2426
+ break;
2427
+ case "getStartDate": n = Jr(void 0, Y, Z[e].raw.startTime.startData), n && (Z[e].startTime = n);
2428
+ }
2429
+ return Z[e].startTime && (Z[e].endTime = Xr(Z[e].startTime, Y, Z[e].raw.endTime.data, fr), Z[e].endTime && (Z[e].processed = !0, Z[e].manualEndTime = (0, J.default)(Z[e].raw.endTime.data, "YYYY-MM-DD", !0).isValid(), Kr(Z[e], Y, ir, rr))), Z[e].processed;
2430
+ }, "compileTask"), t = !0;
2431
+ for (let [n, r] of Z.entries()) e(n), t &&= r.processed;
2432
+ return t;
2433
+ }, "compileTasks"), si = /* @__PURE__ */ f(function(e, t) {
2434
+ let n = t;
2435
+ x().securityLevel !== "loose" && (n = (0, Kn.sanitizeUrl)(t)), e.split(",").forEach(function(e) {
2436
+ Q(e) !== void 0 && (ui(e, () => {
2437
+ window.open(n, "_self");
2438
+ }), ar.set(e, n));
2439
+ }), ci(e, "clickable");
2440
+ }, "setLink"), ci = /* @__PURE__ */ f(function(e, t) {
2441
+ e.split(",").forEach(function(e) {
2442
+ let n = Q(e);
2443
+ n !== void 0 && n.classes.push(t);
2444
+ });
2445
+ }, "setClass"), li = /* @__PURE__ */ f(function(e, t, n) {
2446
+ if (x().securityLevel !== "loose" || t === void 0) return;
2447
+ let r = [];
2448
+ if (typeof n == "string") {
2449
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2450
+ for (let e = 0; e < r.length; e++) {
2451
+ let t = r[e].trim();
2452
+ t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), r[e] = t;
2453
+ }
2454
+ }
2455
+ r.length === 0 && r.push(e), Q(e) !== void 0 && ui(e, () => {
2456
+ ee.runFunc(t, ...r);
2457
+ });
2458
+ }, "setClickFun"), ui = /* @__PURE__ */ f(function(e, t) {
2459
+ ur.push(function() {
2460
+ let n = dr ? `${dr}-${e}` : e, r = document.querySelector(`[id="${n}"]`);
2461
+ r !== null && r.addEventListener("click", function() {
2462
+ t();
2463
+ });
2464
+ }, function() {
2465
+ let n = dr ? `${dr}-${e}` : e, r = document.querySelector(`[id="${n}-text"]`);
2466
+ r !== null && r.addEventListener("click", function() {
2467
+ t();
2468
+ });
2469
+ });
2470
+ }, "pushFun"), di = {
2471
+ getConfig: /* @__PURE__ */ f(() => x().gantt, "getConfig"),
2472
+ clear: _r,
2473
+ setDateFormat: Tr,
2474
+ getDateFormat: Mr,
2475
+ enableInclusiveEndDates: Er,
2476
+ endDatesAreInclusive: Dr,
2477
+ enableTopAxis: Or,
2478
+ topAxisEnabled: kr,
2479
+ setAxisFormat: yr,
2480
+ getAxisFormat: br,
2481
+ setTickInterval: xr,
2482
+ getTickInterval: Sr,
2483
+ setTodayMarker: Cr,
2484
+ getTodayMarker: wr,
2485
+ setAccTitle: h,
2486
+ getAccTitle: S,
2487
+ setDiagramTitle: m,
2488
+ getDiagramTitle: b,
2489
+ setDiagramId: vr,
2490
+ setDisplayMode: Ar,
2491
+ getDisplayMode: jr,
2492
+ setAccDescription: p,
2493
+ getAccDescription: y,
2494
+ addSection: zr,
2495
+ getSections: Br,
2496
+ getTasks: Vr,
2497
+ addTask: ii,
2498
+ findTaskById: Q,
2499
+ addTaskOrg: ai,
2500
+ setIncludes: Pr,
2501
+ getIncludes: Fr,
2502
+ setExcludes: Ir,
2503
+ getExcludes: Lr,
2504
+ setClickEvent: /* @__PURE__ */ f(function(e, t, n) {
2505
+ e.split(",").forEach(function(e) {
2506
+ li(e, t, n);
2507
+ }), ci(e, "clickable");
2508
+ }, "setClickEvent"),
2509
+ setLink: si,
2510
+ getLinks: Rr,
2511
+ bindFunctions: /* @__PURE__ */ f(function(e) {
2512
+ ur.forEach(function(t) {
2513
+ t(e);
2514
+ });
2515
+ }, "bindFunctions"),
2516
+ parseDuration: Yr,
2517
+ isInvalidDate: Hr,
2518
+ setWeekday: Ur,
2519
+ getWeekday: Wr,
2520
+ setWeekend: Gr
2521
+ };
2522
+ function fi(e, t, n) {
2523
+ let r = !0;
2524
+ for (; r;) r = !1, n.forEach(function(n) {
2525
+ let i = "^\\s*" + n + "\\s*$", a = new RegExp(i);
2526
+ e[0].match(a) && (t[n] = !0, e.shift(1), r = !0);
2527
+ });
2528
+ }
2529
+ f(fi, "getTaskTags"), J.default.extend(Xn.default);
2530
+ var pi = /* @__PURE__ */ f(function() {
2531
+ s.debug("Something is calling, setConf, remove the call");
2532
+ }, "setConf"), mi = {
2533
+ monday: Xe,
2534
+ tuesday: Ze,
2535
+ wednesday: Qe,
2536
+ thursday: H,
2537
+ friday: $e,
2538
+ saturday: et,
2539
+ sunday: Ye
2540
+ }, hi = /* @__PURE__ */ f((e, t) => {
2541
+ let n = [...e].map(() => -Infinity), r = [...e].sort((e, t) => e.startTime - t.startTime || e.order - t.order), i = 0;
2542
+ for (let e of r) for (let r = 0; r < n.length; r++) if (e.startTime >= n[r]) {
2543
+ n[r] = e.endTime, e.order = r + t, r > i && (i = r);
2544
+ break;
2545
+ }
2546
+ return i;
2547
+ }, "getMaxIntersections"), $, gi = 1e4, _i = {
2548
+ parser: Qn,
2549
+ db: di,
2550
+ renderer: {
2551
+ setConf: pi,
2552
+ draw: /* @__PURE__ */ f(function(e, t, n, r) {
2553
+ let i = x().gantt;
2554
+ r.db.setDiagramId(t);
2555
+ let a = x().securityLevel, o;
2556
+ a === "sandbox" && (o = c("#i" + t));
2557
+ let l = c(a === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = a === "sandbox" ? o.nodes()[0].contentDocument : document, d = u.getElementById(t);
2558
+ $ = d.parentElement.offsetWidth, $ === void 0 && ($ = 1200), i.useWidth !== void 0 && ($ = i.useWidth);
2559
+ let p = r.db.getTasks(), m = p.filter((e) => !e.vert), h = [];
2560
+ for (let e of m) h.push(e.type);
2561
+ h = j(h);
2562
+ let g = {}, y = 2 * i.topPadding;
2563
+ if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
2564
+ let e = {};
2565
+ for (let t of m) e[t.section] === void 0 ? e[t.section] = [t] : e[t.section].push(t);
2566
+ let t = 0;
2567
+ for (let n of Object.keys(e)) {
2568
+ let r = hi(e[n], t) + 1;
2569
+ t += r, y += r * (i.barHeight + i.barGap), g[n] = r;
2570
+ }
2571
+ } else {
2572
+ y += m.length * (i.barHeight + i.barGap);
2573
+ for (let e of h) g[e] = m.filter((t) => t.type === e).length;
2574
+ }
2575
+ d.setAttribute("viewBox", "0 0 " + $ + " " + y);
2576
+ let b = l.select(`[id="${t}"]`), S = Vn().domain([te(p, function(e) {
2577
+ return e.startTime;
2578
+ }), A(p, function(e) {
2579
+ return e.endTime;
2580
+ })]).rangeRound([0, $ - i.leftPadding - i.rightPadding]);
2581
+ function C(e, t) {
2582
+ let n = e.startTime, r = t.startTime, i = 0;
2583
+ return n > r ? i = 1 : n < r && (i = -1), i;
2584
+ }
2585
+ f(C, "taskCompare"), p.sort(C), w(p, $, y), _(b, y, $, i.useMaxWidth), b.append("text").text(r.db.getDiagramTitle()).attr("x", $ / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
2586
+ function w(e, t, n) {
2587
+ let a = i.barHeight, o = a + i.barGap, s = i.topPadding, c = i.leftPadding, l = D().domain([0, h.length]).range(["#00B9FA", "#F95002"]).interpolate(Fe);
2588
+ E(o, s, c, t, n, e, r.db.getExcludes(), r.db.getIncludes()), k(c, s, t, n), T(e, o, s, c, a, l, t, n), ee(o, s, c, a, l), ne(c, s, t, n);
2589
+ }
2590
+ f(w, "makeGantt");
2591
+ function T(e, n, a, o, s, l, u) {
2592
+ e.sort((e, t) => e.vert === t.vert ? 0 : e.vert ? 1 : -1);
2593
+ let d = e.filter((e) => !e.vert), f = [...new Set(d.map((e) => e.order))].map((e) => d.find((t) => t.order === e));
2594
+ b.append("g").selectAll("rect").data(f).enter().append("rect").attr("x", 0).attr("y", function(e, t) {
2595
+ return t = e.order, t * n + a - 2;
2596
+ }).attr("width", function() {
2597
+ return u - i.rightPadding / 2;
2598
+ }).attr("height", n).attr("class", function(e) {
2599
+ for (let [t, n] of h.entries()) if (e.type === n) return "section section" + t % i.numberSectionStyles;
2600
+ return "section section0";
2601
+ }).enter();
2602
+ let p = b.append("g").selectAll("rect").data(e).enter(), m = r.db.getLinks();
2603
+ if (p.append("rect").attr("id", function(e) {
2604
+ return t + "-" + e.id;
2605
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(e) {
2606
+ return e.milestone ? S(e.startTime) + o + .5 * (S(e.endTime) - S(e.startTime)) - .5 * s : S(e.startTime) + o;
2607
+ }).attr("y", function(e, t) {
2608
+ return t = e.order, e.vert ? i.gridLineStartPadding : t * n + a;
2609
+ }).attr("width", function(e) {
2610
+ return e.milestone ? s : e.vert ? .08 * s : S(e.renderEndTime || e.endTime) - S(e.startTime);
2611
+ }).attr("height", function(e) {
2612
+ return e.vert ? d.length * (i.barHeight + i.barGap) + i.barHeight * 2 : s;
2613
+ }).attr("transform-origin", function(e, t) {
2614
+ return t = e.order, (S(e.startTime) + o + .5 * (S(e.endTime) - S(e.startTime))).toString() + "px " + (t * n + a + .5 * s).toString() + "px";
2615
+ }).attr("class", function(e) {
2616
+ let t = "";
2617
+ e.classes.length > 0 && (t = e.classes.join(" "));
2618
+ let n = 0;
2619
+ for (let [t, r] of h.entries()) e.type === r && (n = t % i.numberSectionStyles);
2620
+ let r = "";
2621
+ return e.active ? e.crit ? r += " activeCrit" : r = " active" : e.done ? r = e.crit ? " doneCrit" : " done" : e.crit && (r += " crit"), r.length === 0 && (r = " task"), e.milestone && (r = " milestone " + r), e.vert && (r = " vert " + r), r += n, r += " " + t, "task" + r;
2622
+ }), p.append("text").attr("id", function(e) {
2623
+ return t + "-" + e.id + "-text";
2624
+ }).text(function(e) {
2625
+ return e.task;
2626
+ }).attr("font-size", i.fontSize).attr("x", function(e) {
2627
+ let t = S(e.startTime), n = S(e.renderEndTime || e.endTime);
2628
+ if (e.milestone && (t += .5 * (S(e.endTime) - S(e.startTime)) - .5 * s, n = t + s), e.vert) return S(e.startTime) + o;
2629
+ let r = this.getBBox().width;
2630
+ return r > n - t ? n + r + 1.5 * i.leftPadding > u ? t + o - 5 : n + o + 5 : (n - t) / 2 + t + o;
2631
+ }).attr("y", function(e, t) {
2632
+ return e.vert ? i.gridLineStartPadding + d.length * (i.barHeight + i.barGap) + 60 : (t = e.order, t * n + i.barHeight / 2 + (i.fontSize / 2 - 2) + a);
2633
+ }).attr("text-height", s).attr("class", function(e) {
2634
+ let t = S(e.startTime), n = S(e.endTime);
2635
+ e.milestone && (n = t + s);
2636
+ let r = this.getBBox().width, a = "";
2637
+ e.classes.length > 0 && (a = e.classes.join(" "));
2638
+ let o = 0;
2639
+ for (let [t, n] of h.entries()) e.type === n && (o = t % i.numberSectionStyles);
2640
+ let c = "";
2641
+ return e.active && (c = e.crit ? "activeCritText" + o : "activeText" + o), e.done ? c = e.crit ? c + " doneCritText" + o : c + " doneText" + o : e.crit && (c = c + " critText" + o), e.milestone && (c += " milestoneText"), e.vert && (c += " vertText"), r > n - t ? n + r + 1.5 * i.leftPadding > u ? a + " taskTextOutsideLeft taskTextOutside" + o + " " + c : a + " taskTextOutsideRight taskTextOutside" + o + " " + c + " width-" + r : a + " taskText taskText" + o + " " + c + " width-" + r;
2642
+ }), x().securityLevel === "sandbox") {
2643
+ let e;
2644
+ e = c("#i" + t);
2645
+ let n = e.nodes()[0].contentDocument;
2646
+ p.filter(function(e) {
2647
+ return m.has(e.id);
2648
+ }).each(function(e) {
2649
+ var r = n.querySelector("#" + CSS.escape(t + "-" + e.id)), i = n.querySelector("#" + CSS.escape(t + "-" + e.id + "-text"));
2650
+ let a = r.parentNode;
2651
+ var o = n.createElement("a");
2652
+ o.setAttribute("xlink:href", m.get(e.id)), o.setAttribute("target", "_top"), a.appendChild(o), o.appendChild(r), o.appendChild(i);
2653
+ });
2654
+ }
2655
+ }
2656
+ f(T, "drawRects");
2657
+ function E(e, n, a, o, c, l, u, d) {
2658
+ if (u.length === 0 && d.length === 0) return;
2659
+ let f, p;
2660
+ for (let { startTime: e, endTime: t } of l) (f === void 0 || e < f) && (f = e), (p === void 0 || t > p) && (p = t);
2661
+ if (!f || !p) return;
2662
+ if ((0, J.default)(p).diff((0, J.default)(f), "year") > 5) {
2663
+ s.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");
2664
+ return;
2665
+ }
2666
+ let m = r.db.getDateFormat(), h = [], g = null, _ = (0, J.default)(f);
2667
+ for (; _.valueOf() <= p;) r.db.isInvalidDate(_, m, u, d) ? g ? g.end = _ : g = {
2668
+ start: _,
2669
+ end: _
2670
+ } : g &&= (h.push(g), null), _ = _.add(1, "d");
2671
+ b.append("g").selectAll("rect").data(h).enter().append("rect").attr("id", (e) => t + "-exclude-" + e.start.format("YYYY-MM-DD")).attr("x", (e) => S(e.start.startOf("day")) + a).attr("y", i.gridLineStartPadding).attr("width", (e) => S(e.end.endOf("day")) - S(e.start.startOf("day"))).attr("height", c - n - i.gridLineStartPadding).attr("transform-origin", function(t, n) {
2672
+ return (S(t.start) + a + .5 * (S(t.end) - S(t.start))).toString() + "px " + (n * e + .5 * c).toString() + "px";
2673
+ }).attr("class", "exclude-range");
2674
+ }
2675
+ f(E, "drawExcludeDays");
2676
+ function O(e, t, n, r) {
2677
+ if (n <= 0 || e > t) return Infinity;
2678
+ let i = t - e, a = J.default.duration({ [r ?? "day"]: n }).asMilliseconds();
2679
+ return a <= 0 ? Infinity : Math.ceil(i / a);
2680
+ }
2681
+ f(O, "getEstimatedTickCount");
2682
+ function k(e, t, n, a) {
2683
+ let o = r.db.getDateFormat(), c = r.db.getAxisFormat(), l;
2684
+ l = c || (o === "D" ? "%d" : i.axisFormat ?? "%Y-%m-%d");
2685
+ let u = me(S).tickSize(-a + t + i.gridLineStartPadding).tickFormat(In(l)), d = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval() || i.tickInterval);
2686
+ if (d !== null) {
2687
+ let e = parseInt(d[1], 10);
2688
+ if (isNaN(e) || e <= 0) s.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);
2689
+ else {
2690
+ let t = d[2], n = r.db.getWeekday() || i.weekday, a = S.domain(), o = a[0], c = a[1], l = O(o, c, e, t);
2691
+ if (l > gi) s.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${gi}). This may indicate an invalid date or time range. Skipping custom tick interval.`);
2692
+ else switch (t) {
2693
+ case "millisecond":
2694
+ u.ticks(ze.every(e));
2695
+ break;
2696
+ case "second":
2697
+ u.ticks(z.every(e));
2698
+ break;
2699
+ case "minute":
2700
+ u.ticks(Ue.every(e));
2701
+ break;
2702
+ case "hour":
2703
+ u.ticks(Ge.every(e));
2704
+ break;
2705
+ case "day":
2706
+ u.ticks(B.every(e));
2707
+ break;
2708
+ case "week":
2709
+ u.ticks(mi[n].every(e));
2710
+ break;
2711
+ case "month": u.ticks(ct.every(e));
2712
+ }
2713
+ }
2714
+ }
2715
+ if (b.append("g").attr("class", "grid").attr("transform", "translate(" + e + ", " + (a - 50) + ")").call(u).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
2716
+ let n = pe(S).tickSize(-a + t + i.gridLineStartPadding).tickFormat(In(l));
2717
+ if (d !== null) {
2718
+ let e = parseInt(d[1], 10);
2719
+ if (isNaN(e) || e <= 0) s.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);
2720
+ else {
2721
+ let t = d[2], a = r.db.getWeekday() || i.weekday, o = S.domain(), s = o[0], c = o[1];
2722
+ if (O(s, c, e, t) <= gi) switch (t) {
2723
+ case "millisecond":
2724
+ n.ticks(ze.every(e));
2725
+ break;
2726
+ case "second":
2727
+ n.ticks(z.every(e));
2728
+ break;
2729
+ case "minute":
2730
+ n.ticks(Ue.every(e));
2731
+ break;
2732
+ case "hour":
2733
+ n.ticks(Ge.every(e));
2734
+ break;
2735
+ case "day":
2736
+ n.ticks(B.every(e));
2737
+ break;
2738
+ case "week":
2739
+ n.ticks(mi[a].every(e));
2740
+ break;
2741
+ case "month": n.ticks(ct.every(e));
2742
+ }
2743
+ }
2744
+ }
2745
+ b.append("g").attr("class", "grid").attr("transform", "translate(" + e + ", " + t + ")").call(n).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2746
+ }
2747
+ }
2748
+ f(k, "makeGrid");
2749
+ function ee(e, t) {
2750
+ let n = 0, r = Object.keys(g).map((e) => [e, g[e]]);
2751
+ b.append("g").selectAll("text").data(r).enter().append(function(e) {
2752
+ let t = e[0].split(v.lineBreakRegex), n = -(t.length - 1) / 2, r = u.createElementNS("http://www.w3.org/2000/svg", "text");
2753
+ r.setAttribute("dy", n + "em");
2754
+ for (let [e, n] of t.entries()) {
2755
+ let t = u.createElementNS("http://www.w3.org/2000/svg", "tspan");
2756
+ t.setAttribute("alignment-baseline", "central"), t.setAttribute("x", "10"), e > 0 && t.setAttribute("dy", "1em"), t.textContent = n, r.appendChild(t);
2757
+ }
2758
+ return r;
2759
+ }).attr("x", 10).attr("y", function(i, a) {
2760
+ if (a > 0) for (let o = 0; o < a; o++) return n += r[a - 1][1], i[1] * e / 2 + n * e + t;
2761
+ else return i[1] * e / 2 + t;
2762
+ }).attr("font-size", i.sectionFontSize).attr("class", function(e) {
2763
+ for (let [t, n] of h.entries()) if (e[0] === n) return "sectionTitle sectionTitle" + t % i.numberSectionStyles;
2764
+ return "sectionTitle";
2765
+ });
2766
+ }
2767
+ f(ee, "vertLabels");
2768
+ function ne(e, t, n, a) {
2769
+ let o = r.db.getTodayMarker();
2770
+ if (o === "off") return;
2771
+ let s = b.append("g").attr("class", "today"), c = /* @__PURE__ */ new Date(), l = s.append("line");
2772
+ l.attr("x1", S(c) + e).attr("x2", S(c) + e).attr("y1", i.titleTopMargin).attr("y2", a - i.titleTopMargin).attr("class", "today"), o !== "" && l.attr("style", o.replace(/,/g, ";"));
2773
+ }
2774
+ f(ne, "drawToday");
2775
+ function j(e) {
2776
+ let t = {}, n = [];
2777
+ for (let r = 0, i = e.length; r < i; ++r) Object.prototype.hasOwnProperty.call(t, e[r]) || (t[e[r]] = !0, n.push(e[r]));
2778
+ return n;
2779
+ }
2780
+ f(j, "checkUnique");
2781
+ }, "draw")
2782
+ },
2783
+ styles: /* @__PURE__ */ f((e) => `
2784
+ .mermaid-main-font {
2785
+ font-family: ${e.fontFamily};
2786
+ }
2787
+
2788
+ .exclude-range {
2789
+ fill: ${e.excludeBkgColor};
2790
+ }
2791
+
2792
+ .section {
2793
+ stroke: none;
2794
+ opacity: 0.2;
2795
+ }
2796
+
2797
+ .section0 {
2798
+ fill: ${e.sectionBkgColor};
2799
+ }
2800
+
2801
+ .section2 {
2802
+ fill: ${e.sectionBkgColor2};
2803
+ }
2804
+
2805
+ .section1,
2806
+ .section3 {
2807
+ fill: ${e.altSectionBkgColor};
2808
+ opacity: 0.2;
2809
+ }
2810
+
2811
+ .sectionTitle0 {
2812
+ fill: ${e.titleColor};
2813
+ }
2814
+
2815
+ .sectionTitle1 {
2816
+ fill: ${e.titleColor};
2817
+ }
2818
+
2819
+ .sectionTitle2 {
2820
+ fill: ${e.titleColor};
2821
+ }
2822
+
2823
+ .sectionTitle3 {
2824
+ fill: ${e.titleColor};
2825
+ }
2826
+
2827
+ .sectionTitle {
2828
+ text-anchor: start;
2829
+ font-family: ${e.fontFamily};
2830
+ }
2831
+
2832
+
2833
+ /* Grid and axis */
2834
+
2835
+ .grid .tick {
2836
+ stroke: ${e.gridColor};
2837
+ opacity: 0.8;
2838
+ shape-rendering: crispEdges;
2839
+ }
2840
+
2841
+ .grid .tick text {
2842
+ font-family: ${e.fontFamily};
2843
+ fill: ${e.textColor};
2844
+ }
2845
+
2846
+ .grid path {
2847
+ stroke-width: 0;
2848
+ }
2849
+
2850
+
2851
+ /* Today line */
2852
+
2853
+ .today {
2854
+ fill: none;
2855
+ stroke: ${e.todayLineColor};
2856
+ stroke-width: 2px;
2857
+ }
2858
+
2859
+
2860
+ /* Task styling */
2861
+
2862
+ /* Default task */
2863
+
2864
+ .task {
2865
+ stroke-width: 2;
2866
+ }
2867
+
2868
+ .taskText {
2869
+ text-anchor: middle;
2870
+ font-family: ${e.fontFamily};
2871
+ }
2872
+
2873
+ .taskTextOutsideRight {
2874
+ fill: ${e.taskTextDarkColor};
2875
+ text-anchor: start;
2876
+ font-family: ${e.fontFamily};
2877
+ }
2878
+
2879
+ .taskTextOutsideLeft {
2880
+ fill: ${e.taskTextDarkColor};
2881
+ text-anchor: end;
2882
+ }
2883
+
2884
+
2885
+ /* Special case clickable */
2886
+
2887
+ .task.clickable {
2888
+ cursor: pointer;
2889
+ }
2890
+
2891
+ .taskText.clickable {
2892
+ cursor: pointer;
2893
+ fill: ${e.taskTextClickableColor} !important;
2894
+ font-weight: bold;
2895
+ }
2896
+
2897
+ .taskTextOutsideLeft.clickable {
2898
+ cursor: pointer;
2899
+ fill: ${e.taskTextClickableColor} !important;
2900
+ font-weight: bold;
2901
+ }
2902
+
2903
+ .taskTextOutsideRight.clickable {
2904
+ cursor: pointer;
2905
+ fill: ${e.taskTextClickableColor} !important;
2906
+ font-weight: bold;
2907
+ }
2908
+
2909
+
2910
+ /* Specific task settings for the sections*/
2911
+
2912
+ .taskText0,
2913
+ .taskText1,
2914
+ .taskText2,
2915
+ .taskText3 {
2916
+ fill: ${e.taskTextColor};
2917
+ }
2918
+
2919
+ .task0,
2920
+ .task1,
2921
+ .task2,
2922
+ .task3 {
2923
+ fill: ${e.taskBkgColor};
2924
+ stroke: ${e.taskBorderColor};
2925
+ }
2926
+
2927
+ .taskTextOutside0,
2928
+ .taskTextOutside2
2929
+ {
2930
+ fill: ${e.taskTextOutsideColor};
2931
+ }
2932
+
2933
+ .taskTextOutside1,
2934
+ .taskTextOutside3 {
2935
+ fill: ${e.taskTextOutsideColor};
2936
+ }
2937
+
2938
+
2939
+ /* Active task */
2940
+
2941
+ .active0,
2942
+ .active1,
2943
+ .active2,
2944
+ .active3 {
2945
+ fill: ${e.activeTaskBkgColor};
2946
+ stroke: ${e.activeTaskBorderColor};
2947
+ }
2948
+
2949
+ .activeText0,
2950
+ .activeText1,
2951
+ .activeText2,
2952
+ .activeText3 {
2953
+ fill: ${e.taskTextDarkColor} !important;
2954
+ }
2955
+
2956
+
2957
+ /* Completed task */
2958
+
2959
+ .done0,
2960
+ .done1,
2961
+ .done2,
2962
+ .done3 {
2963
+ stroke: ${e.doneTaskBorderColor};
2964
+ fill: ${e.doneTaskBkgColor};
2965
+ stroke-width: 2;
2966
+ }
2967
+
2968
+ .doneText0,
2969
+ .doneText1,
2970
+ .doneText2,
2971
+ .doneText3 {
2972
+ fill: ${e.taskTextDarkColor} !important;
2973
+ }
2974
+
2975
+ /* Done task text displayed outside the bar sits against the diagram background,
2976
+ not against the done-task bar, so it must use the outside/contrast color. */
2977
+ .doneText0.taskTextOutsideLeft,
2978
+ .doneText0.taskTextOutsideRight,
2979
+ .doneText1.taskTextOutsideLeft,
2980
+ .doneText1.taskTextOutsideRight,
2981
+ .doneText2.taskTextOutsideLeft,
2982
+ .doneText2.taskTextOutsideRight,
2983
+ .doneText3.taskTextOutsideLeft,
2984
+ .doneText3.taskTextOutsideRight {
2985
+ fill: ${e.taskTextOutsideColor} !important;
2986
+ }
2987
+
2988
+
2989
+ /* Tasks on the critical line */
2990
+
2991
+ .crit0,
2992
+ .crit1,
2993
+ .crit2,
2994
+ .crit3 {
2995
+ stroke: ${e.critBorderColor};
2996
+ fill: ${e.critBkgColor};
2997
+ stroke-width: 2;
2998
+ }
2999
+
3000
+ .activeCrit0,
3001
+ .activeCrit1,
3002
+ .activeCrit2,
3003
+ .activeCrit3 {
3004
+ stroke: ${e.critBorderColor};
3005
+ fill: ${e.activeTaskBkgColor};
3006
+ stroke-width: 2;
3007
+ }
3008
+
3009
+ .doneCrit0,
3010
+ .doneCrit1,
3011
+ .doneCrit2,
3012
+ .doneCrit3 {
3013
+ stroke: ${e.critBorderColor};
3014
+ fill: ${e.doneTaskBkgColor};
3015
+ stroke-width: 2;
3016
+ cursor: pointer;
3017
+ shape-rendering: crispEdges;
3018
+ }
3019
+
3020
+ .milestone {
3021
+ transform: rotate(45deg) scale(0.8,0.8);
3022
+ }
3023
+
3024
+ .milestoneText {
3025
+ font-style: italic;
3026
+ }
3027
+ .doneCritText0,
3028
+ .doneCritText1,
3029
+ .doneCritText2,
3030
+ .doneCritText3 {
3031
+ fill: ${e.taskTextDarkColor} !important;
3032
+ }
3033
+
3034
+ /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
3035
+ .doneCritText0.taskTextOutsideLeft,
3036
+ .doneCritText0.taskTextOutsideRight,
3037
+ .doneCritText1.taskTextOutsideLeft,
3038
+ .doneCritText1.taskTextOutsideRight,
3039
+ .doneCritText2.taskTextOutsideLeft,
3040
+ .doneCritText2.taskTextOutsideRight,
3041
+ .doneCritText3.taskTextOutsideLeft,
3042
+ .doneCritText3.taskTextOutsideRight {
3043
+ fill: ${e.taskTextOutsideColor} !important;
3044
+ }
3045
+
3046
+ .vert {
3047
+ stroke: ${e.vertLineColor};
3048
+ }
3049
+
3050
+ .vertText {
3051
+ font-size: 15px;
3052
+ text-anchor: middle;
3053
+ fill: ${e.vertLineColor} !important;
3054
+ }
3055
+
3056
+ .activeCritText0,
3057
+ .activeCritText1,
3058
+ .activeCritText2,
3059
+ .activeCritText3 {
3060
+ fill: ${e.taskTextDarkColor} !important;
3061
+ }
3062
+
3063
+ .titleText {
3064
+ text-anchor: middle;
3065
+ font-size: 18px;
3066
+ fill: ${e.titleColor || e.textColor};
3067
+ font-family: ${e.fontFamily};
3068
+ }
3069
+ `, "getStyles")
3070
+ };
3071
+ //#endregion
3072
+ export { _i as diagram };