@qwen-code/web-shell 0.27.1 → 0.27.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 (158) hide show
  1. package/NOTICES.txt +10721 -958
  2. package/dist/{PierreFilePreview-BT_JRIvF.js → PierreFilePreview-CVi_Wsf-.js} +1 -1
  3. package/dist/SpreadsheetPreview-CTyYrLmD.js +379 -0
  4. package/dist/{WorkspaceFileBrowser-G1yA2eBf.js → WorkspaceFileBrowser-DkQgnDFv.js} +2 -2
  5. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  6. package/dist/abnfDiagram-VCTEODGH-CQWhk3bg.js +87 -0
  7. package/dist/abnfDiagram-VCTEODGH-DXK3iWaN.js +87 -0
  8. package/dist/{agents-route-bkxyBAkN.js → agents-route-ZD8W2lTb.js} +2 -2
  9. package/dist/arc-BcP3aO-G.js +83 -0
  10. package/dist/arc-DkZAOzaU.js +83 -0
  11. package/dist/architectureDiagram-5GKGNRK7-DhcVEkLQ.js +4775 -0
  12. package/dist/architectureDiagram-5GKGNRK7-DusU8ybk.js +4776 -0
  13. package/dist/blockDiagram-NRAW4CY4-BMOuo5wl.js +1414 -0
  14. package/dist/blockDiagram-NRAW4CY4-YciA8-8I.js +1414 -0
  15. package/dist/c4Diagram-UCG6FXSJ-BJxpHO4v.js +1508 -0
  16. package/dist/c4Diagram-UCG6FXSJ-DNpq-cdF.js +1508 -0
  17. package/dist/channel-CfhQTpjX.js +5 -0
  18. package/dist/channel-QZAYPfF8.js +5 -0
  19. package/dist/chunk-2Q5K7J3B-EGbMOnEe.js +15 -0
  20. package/dist/chunk-2Q5K7J3B-mtpkChaF.js +15 -0
  21. package/dist/chunk-5VM5RSS4-CP4Q2W8n.js +19 -0
  22. package/dist/chunk-5VM5RSS4-CucJ3wyB.js +19 -0
  23. package/dist/chunk-F27PBJKO-CS9kzvAx.js +68 -0
  24. package/dist/chunk-F27PBJKO-Cfw_29T-.js +68 -0
  25. package/dist/chunk-G27WJ6UU-BZzmQ8FW.js +1408 -0
  26. package/dist/chunk-G27WJ6UU-DdeEiwmL.js +1408 -0
  27. package/dist/chunk-JWPE2WC7-BL_hjRLf.js +8 -0
  28. package/dist/chunk-JWPE2WC7-C03UDQBx.js +8 -0
  29. package/dist/chunk-LCL6LL3I-CNn3XyuL.js +1533 -0
  30. package/dist/chunk-LCL6LL3I-CR-IGGIM.js +1533 -0
  31. package/dist/chunk-POPQ4Y6H-BVQbxVHz.js +19 -0
  32. package/dist/chunk-POPQ4Y6H-UJK1fYGP.js +19 -0
  33. package/dist/chunk-SVP7TREG-B-E-xFG8.js +664 -0
  34. package/dist/chunk-SVP7TREG-BUmyTmov.js +664 -0
  35. package/dist/chunk-XXDRQBXY-BDcf4DQz.js +8 -0
  36. package/dist/chunk-XXDRQBXY-BHAq0mtL.js +8 -0
  37. package/dist/classDiagram-DTDB5LWJ-CVA3J-EH.js +16 -0
  38. package/dist/classDiagram-DTDB5LWJ-Dh121Rlt.js +16 -0
  39. package/dist/classDiagram-v2-JRS7N3AN-CVA3J-EH.js +16 -0
  40. package/dist/classDiagram-v2-JRS7N3AN-Dh121Rlt.js +16 -0
  41. package/dist/cose-bilkent-JH36ORCC-CLe0kcHa.js +2605 -0
  42. package/dist/cose-bilkent-JH36ORCC-DpMM48hA.js +2606 -0
  43. package/dist/cynefin-OW5HDTMX-CyO3b088.js +23750 -0
  44. package/dist/cynefinDiagram-5FMLGOSQ-C5xaWeuA.js +299 -0
  45. package/dist/cynefinDiagram-5FMLGOSQ-mLaK-3R3.js +299 -0
  46. package/dist/cytoscape.esm-DCrf4dL8.js +18782 -0
  47. package/dist/daemon-react-sdk.js +1 -1
  48. package/dist/dagre-3AP2YEHR-CmNFrtW9.js +456 -0
  49. package/dist/dagre-3AP2YEHR-zDm3fBQq.js +456 -0
  50. package/dist/defaultLocale-BgPVtth8.js +171 -0
  51. package/dist/diagram-S7CK7UJ4-BQtgRcGU.js +346 -0
  52. package/dist/diagram-S7CK7UJ4-Clojnf04.js +346 -0
  53. package/dist/diagram-UQ7AKVKN-B3Ll3rB4.js +219 -0
  54. package/dist/diagram-UQ7AKVKN-CTn4O0fd.js +219 -0
  55. package/dist/diagram-VSXAHHWV-BeYXDVEh.js +463 -0
  56. package/dist/diagram-VSXAHHWV-mdxkNEZP.js +463 -0
  57. package/dist/diagram-VX7I27RA-C3bzQYLd.js +529 -0
  58. package/dist/diagram-VX7I27RA-DaPLIQOr.js +529 -0
  59. package/dist/diagram-Z3DM3KII-BImvaL3c.js +142 -0
  60. package/dist/diagram-Z3DM3KII-CkkdGhWO.js +142 -0
  61. package/dist/{docx-preview-BucJeYCm.js → docx-preview-BfV4m8Qp.js} +503 -506
  62. package/dist/ebnfDiagram-PWID7BFC-C8RUggbp.js +109 -0
  63. package/dist/ebnfDiagram-PWID7BFC-gJHJx-lt.js +109 -0
  64. package/dist/erDiagram-SSCWMZ5O-CKFzjLCd.js +1059 -0
  65. package/dist/erDiagram-SSCWMZ5O-DLJjXFG9.js +1059 -0
  66. package/dist/flowDiagram-A5DVABFB-BHAeEzG1.js +1689 -0
  67. package/dist/flowDiagram-A5DVABFB-BOdsfJ-4.js +1689 -0
  68. package/dist/ganttDiagram-EL5Y4UJY-CtL6LAbW.js +2703 -0
  69. package/dist/ganttDiagram-EL5Y4UJY-D0hNphpF.js +2704 -0
  70. package/dist/gitGraphDiagram-WWUBYQGX-8XcPnT4w.js +815 -0
  71. package/dist/gitGraphDiagram-WWUBYQGX-DxHtQ0ba.js +815 -0
  72. package/dist/{index-B6wNHUaX.js → index-BGsppGgG.js} +69284 -64504
  73. package/dist/index.js +3 -3
  74. package/dist/infoDiagram-RXCK75RN-B-Ds06LN.js +24 -0
  75. package/dist/infoDiagram-RXCK75RN-Dhirg4if.js +24 -0
  76. package/dist/init-DjUOC4st.js +16 -0
  77. package/dist/ishikawaDiagram-5VMMS53U-BJPKneVd.js +621 -0
  78. package/dist/ishikawaDiagram-5VMMS53U-CsttzTkq.js +621 -0
  79. package/dist/journeyDiagram-EYS64GPL-BBAEhOQ9.js +836 -0
  80. package/dist/journeyDiagram-EYS64GPL-DfXS6tI_.js +836 -0
  81. package/dist/kanban-definition-3QL26DDD-Bh1Jz01C.js +723 -0
  82. package/dist/kanban-definition-3QL26DDD-C8yOTG02.js +723 -0
  83. package/dist/layout-Dxab-q-T.js +1704 -0
  84. package/dist/layout-sTbo9v3C.js +1704 -0
  85. package/dist/linear-BhTDfwHZ.js +259 -0
  86. package/dist/linear-CjDL9r_e.js +259 -0
  87. package/dist/mermaid.core-CFV16zMl.js +19742 -0
  88. package/dist/mermaid.core-DBp8atac.js +19747 -0
  89. package/dist/mindmap-definition-FBJOCRG2-KPo1Z4it.js +826 -0
  90. package/dist/mindmap-definition-FBJOCRG2-vau9OLMK.js +826 -0
  91. package/dist/ordinal-DfAQgscy.js +61 -0
  92. package/dist/pegDiagram-XKGWAZYB-CFjH6RoO.js +95 -0
  93. package/dist/pegDiagram-XKGWAZYB-EeXt14MX.js +95 -0
  94. package/dist/pieDiagram-E7YTZNPT-CJa9GbCV.js +208 -0
  95. package/dist/pieDiagram-E7YTZNPT-JyO_8fWF.js +208 -0
  96. package/dist/quadrantDiagram-AXDQQJYC-B7tyPD89.js +1023 -0
  97. package/dist/quadrantDiagram-AXDQQJYC-G9wAekw0.js +1023 -0
  98. package/dist/railroadDiagram-O6MQD6OU-3-cuTnqH.js +77 -0
  99. package/dist/railroadDiagram-O6MQD6OU-SyM4QCMp.js +77 -0
  100. package/dist/requirementDiagram-EFPCY7ZU-BJal3W63.js +882 -0
  101. package/dist/requirementDiagram-EFPCY7ZU-bMW72Av_.js +882 -0
  102. package/dist/sankeyDiagram-P5KCCOFB-BKP8fccK.js +847 -0
  103. package/dist/sankeyDiagram-P5KCCOFB-C4KDi8Ty.js +847 -0
  104. package/dist/sequenceDiagram-WJ2MYXX4-DFvbPjPG.js +2888 -0
  105. package/dist/sequenceDiagram-WJ2MYXX4-DvgRoXFL.js +2888 -0
  106. package/dist/sizeCapture-X5ZJPWSS-DPkvpCxM.js +46 -0
  107. package/dist/sizeCapture-X5ZJPWSS-DU4nf5aV.js +46 -0
  108. package/dist/stateDiagram-HBIQ2CUA-CWp0mOcF.js +262 -0
  109. package/dist/stateDiagram-HBIQ2CUA-DkN3hNFV.js +262 -0
  110. package/dist/stateDiagram-v2-4QOOHH4V-Bh7H2ZBJ.js +16 -0
  111. package/dist/stateDiagram-v2-4QOOHH4V-DX-OvV9U.js +16 -0
  112. package/dist/sw.js +1 -1
  113. package/dist/swimlanes-XN3QIQJK-2s4fbN8J.js +5219 -0
  114. package/dist/swimlanes-XN3QIQJK-CI3ENZQA.js +5219 -0
  115. package/dist/swimlanesDiagram-VK2B7HYN-BEjeqDmx.js +13 -0
  116. package/dist/swimlanesDiagram-VK2B7HYN-DWJY6BGD.js +13 -0
  117. package/dist/timeline-definition-24CTP7MA-C_tZHri9.js +1057 -0
  118. package/dist/timeline-definition-24CTP7MA-DYXEracn.js +1057 -0
  119. package/dist/transcript.js +14564 -11549
  120. package/dist/types/App.d.ts +10 -1
  121. package/dist/types/components/ComposerUsageStats.d.ts +34 -0
  122. package/dist/types/components/WelcomeHeader.d.ts +8 -0
  123. package/dist/types/components/artifacts/tokenUsageTotals.d.ts +36 -0
  124. package/dist/types/components/channels/ChannelEditorDialog.d.ts +10 -1
  125. package/dist/types/components/channels/ChannelQrLogin.d.ts +13 -0
  126. package/dist/types/components/channels/WeixinLoginPanel.d.ts +17 -0
  127. package/dist/types/components/channels/channel-editor-state.d.ts +8 -1
  128. package/dist/types/components/channels/channel-platform.d.ts +2 -1
  129. package/dist/types/components/channels/weixin-auth-api.d.ts +32 -0
  130. package/dist/types/components/managed/ManagedRuntimeSkillsImporter.d.ts +10 -0
  131. package/dist/types/components/managed/ManagedSideQueryPanel.d.ts +5 -0
  132. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +26 -1
  133. package/dist/types/components/managed/generated/managed-agent-api.d.ts +605 -0
  134. package/dist/types/components/managed/java-managed-agent-client.d.ts +122 -1
  135. package/dist/types/components/managed/managed-agent-provider.d.ts +14 -1
  136. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +14 -1
  137. package/dist/types/components/managed/managed-extension-install.d.ts +5 -2
  138. package/dist/types/components/managed/managed-extension-messages.d.ts +7 -0
  139. package/dist/types/components/managed/managed-extension-types.d.ts +4 -0
  140. package/dist/types/components/managed/managed-session-storage.d.ts +35 -0
  141. package/dist/types/components/managed/managed-side-query-command.d.ts +5 -0
  142. package/dist/types/components/managed/managed-side-query-types.d.ts +21 -0
  143. package/dist/types/components/managed/managed-side-query.test-fixtures.d.ts +3 -0
  144. package/dist/types/components/managed/use-managed-side-queries.d.ts +26 -0
  145. package/dist/types/customization.d.ts +31 -0
  146. package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +2 -1
  147. package/dist/types/daemon/workspace/types.d.ts +8 -1
  148. package/dist/types/index.d.ts +1 -0
  149. package/dist/{useDaemonMidTurnInjected-tBzI77Ar.js → useDaemonMidTurnInjected-B7dPEdqk.js} +2040 -1825
  150. package/dist/vennDiagram-4TSXK5OY-Bi3e_aHN.js +1578 -0
  151. package/dist/vennDiagram-4TSXK5OY-DZCe1Ffi.js +1578 -0
  152. package/dist/wardleyDiagram-VM6X3IG4-BNV5jzew.js +675 -0
  153. package/dist/wardleyDiagram-VM6X3IG4-DqFJHRmt.js +675 -0
  154. package/dist/xychartDiagram-S5SC5T6Z-BVIJ86ch.js +1492 -0
  155. package/dist/xychartDiagram-S5SC5T6Z-J8xP-hcH.js +1492 -0
  156. package/package.json +19 -9
  157. package/dist/SpreadsheetPreview-d5XL70Ho.js +0 -379
  158. package/dist/types/components/artifacts/excel-preview-parser.d.ts +0 -5
@@ -0,0 +1,2703 @@
1
+ import { bh as Ke, bi as An, bj as tn, bk as en, bl as nn, bm as ae, bn as Wn, b5 as re, b6 as ie, g as On, s as $n, o as Hn, n as Nn, a as Vn, b as Pn, _ as d, c as Yt, j as Xt, d as zn, bo as it, l as Tt, k as Rn, G as Bn, p as Zn, x as Xn } from "./mermaid.core-DBp8atac.js";
2
+ import { b as Gn, t as Oe, c as qn, a as jn, l as Qn } from "./linear-BhTDfwHZ.js";
3
+ import { i as Jn } from "./init-DjUOC4st.js";
4
+ function Kn(t, e) {
5
+ let n;
6
+ if (e === void 0)
7
+ for (const r of t)
8
+ r != null && (n < r || n === void 0 && r >= r) && (n = r);
9
+ else {
10
+ let r = -1;
11
+ for (let i of t)
12
+ (i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
13
+ }
14
+ return n;
15
+ }
16
+ function tr(t, e) {
17
+ let n;
18
+ if (e === void 0)
19
+ for (const r of t)
20
+ r != null && (n > r || n === void 0 && r >= r) && (n = r);
21
+ else {
22
+ let r = -1;
23
+ for (let i of t)
24
+ (i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
25
+ }
26
+ return n;
27
+ }
28
+ function er(t) {
29
+ return t;
30
+ }
31
+ var qt = 1, oe = 2, pe = 3, Gt = 4, $e = 1e-6;
32
+ function nr(t) {
33
+ return "translate(" + t + ",0)";
34
+ }
35
+ function rr(t) {
36
+ return "translate(0," + t + ")";
37
+ }
38
+ function ir(t) {
39
+ return (e) => +t(e);
40
+ }
41
+ function sr(t, e) {
42
+ return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
43
+ }
44
+ function ar() {
45
+ return !this.__axis;
46
+ }
47
+ function rn(t, e) {
48
+ var n = [], r = null, i = null, s = 6, a = 6, y = 3, F = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, S = t === qt || t === Gt ? -1 : 1, w = t === Gt || t === oe ? "x" : "y", V = t === qt || t === pe ? nr : rr;
49
+ function _(Y) {
50
+ var G = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), Z = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : er), v = Math.max(s, 0) + y, U = e.range(), z = +U[0] + F, E = +U[U.length - 1] + F, R = (e.bandwidth ? sr : ir)(e.copy(), F), q = Y.selection ? Y.selection() : Y, T = q.selectAll(".domain").data([null]), k = q.selectAll(".tick").data(G, e).order(), p = k.exit(), L = k.enter().append("g").attr("class", "tick"), x = k.select("line"), C = k.select("text");
51
+ T = T.merge(T.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), k = k.merge(L), x = x.merge(L.append("line").attr("stroke", "currentColor").attr(w + "2", S * s)), C = C.merge(L.append("text").attr("fill", "currentColor").attr(w, S * v).attr("dy", t === qt ? "0em" : t === pe ? "0.71em" : "0.32em")), Y !== q && (T = T.transition(Y), k = k.transition(Y), x = x.transition(Y), C = C.transition(Y), p = p.transition(Y).attr("opacity", $e).attr("transform", function(M) {
52
+ return isFinite(M = R(M)) ? V(M + F) : this.getAttribute("transform");
53
+ }), L.attr("opacity", $e).attr("transform", function(M) {
54
+ var D = this.parentNode.__axis;
55
+ return V((D && isFinite(D = D(M)) ? D : R(M)) + F);
56
+ })), p.remove(), T.attr("d", t === Gt || t === oe ? a ? "M" + S * a + "," + z + "H" + F + "V" + E + "H" + S * a : "M" + F + "," + z + "V" + E : a ? "M" + z + "," + S * a + "V" + F + "H" + E + "V" + S * a : "M" + z + "," + F + "H" + E), k.attr("opacity", 1).attr("transform", function(M) {
57
+ return V(R(M) + F);
58
+ }), x.attr(w + "2", S * s), C.attr(w, S * v).text(Z), q.filter(ar).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === oe ? "start" : t === Gt ? "end" : "middle"), q.each(function() {
59
+ this.__axis = R;
60
+ });
61
+ }
62
+ return _.scale = function(Y) {
63
+ return arguments.length ? (e = Y, _) : e;
64
+ }, _.ticks = function() {
65
+ return n = Array.from(arguments), _;
66
+ }, _.tickArguments = function(Y) {
67
+ return arguments.length ? (n = Y == null ? [] : Array.from(Y), _) : n.slice();
68
+ }, _.tickValues = function(Y) {
69
+ return arguments.length ? (r = Y == null ? null : Array.from(Y), _) : r && r.slice();
70
+ }, _.tickFormat = function(Y) {
71
+ return arguments.length ? (i = Y, _) : i;
72
+ }, _.tickSize = function(Y) {
73
+ return arguments.length ? (s = a = +Y, _) : s;
74
+ }, _.tickSizeInner = function(Y) {
75
+ return arguments.length ? (s = +Y, _) : s;
76
+ }, _.tickSizeOuter = function(Y) {
77
+ return arguments.length ? (a = +Y, _) : a;
78
+ }, _.tickPadding = function(Y) {
79
+ return arguments.length ? (y = +Y, _) : y;
80
+ }, _.offset = function(Y) {
81
+ return arguments.length ? (F = +Y, _) : F;
82
+ }, _;
83
+ }
84
+ function or(t) {
85
+ return rn(qt, t);
86
+ }
87
+ function cr(t) {
88
+ return rn(pe, t);
89
+ }
90
+ const ur = Math.PI / 180, lr = 180 / Math.PI, Jt = 18, sn = 0.96422, an = 1, on = 0.82521, cn = 4 / 29, Ft = 6 / 29, un = 3 * Ft * Ft, fr = Ft * Ft * Ft;
91
+ function ln(t) {
92
+ if (t instanceof ft) return new ft(t.l, t.a, t.b, t.opacity);
93
+ if (t instanceof ht) return fn(t);
94
+ t instanceof Ke || (t = An(t));
95
+ var e = fe(t.r), n = fe(t.g), r = fe(t.b), i = ce((0.2225045 * e + 0.7168786 * n + 0.0606169 * r) / an), s, a;
96
+ return e === n && n === r ? s = a = i : (s = ce((0.4360747 * e + 0.3850649 * n + 0.1430804 * r) / sn), a = ce((0.0139322 * e + 0.0971045 * n + 0.7141733 * r) / on)), new ft(116 * i - 16, 500 * (s - i), 200 * (i - a), t.opacity);
97
+ }
98
+ function dr(t, e, n, r) {
99
+ return arguments.length === 1 ? ln(t) : new ft(t, e, n, r ?? 1);
100
+ }
101
+ function ft(t, e, n, r) {
102
+ this.l = +t, this.a = +e, this.b = +n, this.opacity = +r;
103
+ }
104
+ tn(ft, dr, en(nn, {
105
+ brighter(t) {
106
+ return new ft(this.l + Jt * (t ?? 1), this.a, this.b, this.opacity);
107
+ },
108
+ darker(t) {
109
+ return new ft(this.l - Jt * (t ?? 1), this.a, this.b, this.opacity);
110
+ },
111
+ rgb() {
112
+ var t = (this.l + 16) / 116, e = isNaN(this.a) ? t : t + this.a / 500, n = isNaN(this.b) ? t : t - this.b / 200;
113
+ return e = sn * ue(e), t = an * ue(t), n = on * ue(n), new Ke(
114
+ le(3.1338561 * e - 1.6168667 * t - 0.4906146 * n),
115
+ le(-0.9787684 * e + 1.9161415 * t + 0.033454 * n),
116
+ le(0.0719453 * e - 0.2289914 * t + 1.4052427 * n),
117
+ this.opacity
118
+ );
119
+ }
120
+ }));
121
+ function ce(t) {
122
+ return t > fr ? Math.pow(t, 1 / 3) : t / un + cn;
123
+ }
124
+ function ue(t) {
125
+ return t > Ft ? t * t * t : un * (t - cn);
126
+ }
127
+ function le(t) {
128
+ return 255 * (t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055);
129
+ }
130
+ function fe(t) {
131
+ return (t /= 255) <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
132
+ }
133
+ function hr(t) {
134
+ if (t instanceof ht) return new ht(t.h, t.c, t.l, t.opacity);
135
+ if (t instanceof ft || (t = ln(t)), t.a === 0 && t.b === 0) return new ht(NaN, 0 < t.l && t.l < 100 ? 0 : NaN, t.l, t.opacity);
136
+ var e = Math.atan2(t.b, t.a) * lr;
137
+ return new ht(e < 0 ? e + 360 : e, Math.sqrt(t.a * t.a + t.b * t.b), t.l, t.opacity);
138
+ }
139
+ function ve(t, e, n, r) {
140
+ return arguments.length === 1 ? hr(t) : new ht(t, e, n, r ?? 1);
141
+ }
142
+ function ht(t, e, n, r) {
143
+ this.h = +t, this.c = +e, this.l = +n, this.opacity = +r;
144
+ }
145
+ function fn(t) {
146
+ if (isNaN(t.h)) return new ft(t.l, 0, 0, t.opacity);
147
+ var e = t.h * ur;
148
+ return new ft(t.l, Math.cos(e) * t.c, Math.sin(e) * t.c, t.opacity);
149
+ }
150
+ tn(ht, ve, en(nn, {
151
+ brighter(t) {
152
+ return new ht(this.h, this.c, this.l + Jt * (t ?? 1), this.opacity);
153
+ },
154
+ darker(t) {
155
+ return new ht(this.h, this.c, this.l - Jt * (t ?? 1), this.opacity);
156
+ },
157
+ rgb() {
158
+ return fn(this).rgb();
159
+ }
160
+ }));
161
+ function mr(t) {
162
+ return function(e, n) {
163
+ var r = t((e = ve(e)).h, (n = ve(n)).h), i = ae(e.c, n.c), s = ae(e.l, n.l), a = ae(e.opacity, n.opacity);
164
+ return function(y) {
165
+ return e.h = r(y), e.c = i(y), e.l = s(y), e.opacity = a(y), e + "";
166
+ };
167
+ };
168
+ }
169
+ const gr = mr(Wn);
170
+ function yr(t, e) {
171
+ t = t.slice();
172
+ var n = 0, r = t.length - 1, i = t[n], s = t[r], a;
173
+ return s < i && (a = n, n = r, r = a, a = i, i = s, s = a), t[n] = e.floor(i), t[r] = e.ceil(s), t;
174
+ }
175
+ const de = /* @__PURE__ */ new Date(), he = /* @__PURE__ */ new Date();
176
+ function nt(t, e, n, r) {
177
+ function i(s) {
178
+ return t(s = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+s)), s;
179
+ }
180
+ return i.floor = (s) => (t(s = /* @__PURE__ */ new Date(+s)), s), i.ceil = (s) => (t(s = new Date(s - 1)), e(s, 1), t(s), s), i.round = (s) => {
181
+ const a = i(s), y = i.ceil(s);
182
+ return s - a < y - s ? a : y;
183
+ }, i.offset = (s, a) => (e(s = /* @__PURE__ */ new Date(+s), a == null ? 1 : Math.floor(a)), s), i.range = (s, a, y) => {
184
+ const F = [];
185
+ if (s = i.ceil(s), y = y == null ? 1 : Math.floor(y), !(s < a) || !(y > 0)) return F;
186
+ let S;
187
+ do
188
+ F.push(S = /* @__PURE__ */ new Date(+s)), e(s, y), t(s);
189
+ while (S < s && s < a);
190
+ return F;
191
+ }, i.filter = (s) => nt((a) => {
192
+ if (a >= a) for (; t(a), !s(a); ) a.setTime(a - 1);
193
+ }, (a, y) => {
194
+ if (a >= a)
195
+ if (y < 0) for (; ++y <= 0; )
196
+ for (; e(a, -1), !s(a); )
197
+ ;
198
+ else for (; --y >= 0; )
199
+ for (; e(a, 1), !s(a); )
200
+ ;
201
+ }), n && (i.count = (s, a) => (de.setTime(+s), he.setTime(+a), t(de), t(he), Math.floor(n(de, he))), i.every = (s) => (s = Math.floor(s), !isFinite(s) || !(s > 0) ? null : s > 1 ? i.filter(r ? (a) => r(a) % s === 0 : (a) => i.count(0, a) % s === 0) : i)), i;
202
+ }
203
+ const Et = nt(() => {
204
+ }, (t, e) => {
205
+ t.setTime(+t + e);
206
+ }, (t, e) => e - t);
207
+ Et.every = (t) => (t = Math.floor(t), !isFinite(t) || !(t > 0) ? null : t > 1 ? nt((e) => {
208
+ e.setTime(Math.floor(e / t) * t);
209
+ }, (e, n) => {
210
+ e.setTime(+e + n * t);
211
+ }, (e, n) => (n - e) / t) : Et);
212
+ Et.range;
213
+ const mt = 1e3, ct = mt * 60, gt = ct * 60, yt = gt * 24, De = yt * 7, He = yt * 30, me = yt * 365, vt = nt((t) => {
214
+ t.setTime(t - t.getMilliseconds());
215
+ }, (t, e) => {
216
+ t.setTime(+t + e * mt);
217
+ }, (t, e) => (e - t) / mt, (t) => t.getUTCSeconds());
218
+ vt.range;
219
+ const Nt = nt((t) => {
220
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt);
221
+ }, (t, e) => {
222
+ t.setTime(+t + e * ct);
223
+ }, (t, e) => (e - t) / ct, (t) => t.getMinutes());
224
+ Nt.range;
225
+ const kr = nt((t) => {
226
+ t.setUTCSeconds(0, 0);
227
+ }, (t, e) => {
228
+ t.setTime(+t + e * ct);
229
+ }, (t, e) => (e - t) / ct, (t) => t.getUTCMinutes());
230
+ kr.range;
231
+ const Vt = nt((t) => {
232
+ t.setTime(t - t.getMilliseconds() - t.getSeconds() * mt - t.getMinutes() * ct);
233
+ }, (t, e) => {
234
+ t.setTime(+t + e * gt);
235
+ }, (t, e) => (e - t) / gt, (t) => t.getHours());
236
+ Vt.range;
237
+ const pr = nt((t) => {
238
+ t.setUTCMinutes(0, 0, 0);
239
+ }, (t, e) => {
240
+ t.setTime(+t + e * gt);
241
+ }, (t, e) => (e - t) / gt, (t) => t.getUTCHours());
242
+ pr.range;
243
+ const xt = nt(
244
+ (t) => t.setHours(0, 0, 0, 0),
245
+ (t, e) => t.setDate(t.getDate() + e),
246
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ct) / yt,
247
+ (t) => t.getDate() - 1
248
+ );
249
+ xt.range;
250
+ const Me = nt((t) => {
251
+ t.setUTCHours(0, 0, 0, 0);
252
+ }, (t, e) => {
253
+ t.setUTCDate(t.getUTCDate() + e);
254
+ }, (t, e) => (e - t) / yt, (t) => t.getUTCDate() - 1);
255
+ Me.range;
256
+ const vr = nt((t) => {
257
+ t.setUTCHours(0, 0, 0, 0);
258
+ }, (t, e) => {
259
+ t.setUTCDate(t.getUTCDate() + e);
260
+ }, (t, e) => (e - t) / yt, (t) => Math.floor(t / yt));
261
+ vr.range;
262
+ function Dt(t) {
263
+ return nt((e) => {
264
+ e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
265
+ }, (e, n) => {
266
+ e.setDate(e.getDate() + n * 7);
267
+ }, (e, n) => (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ct) / De);
268
+ }
269
+ const Rt = Dt(0), Pt = Dt(1), dn = Dt(2), hn = Dt(3), bt = Dt(4), mn = Dt(5), gn = Dt(6);
270
+ Rt.range;
271
+ Pt.range;
272
+ dn.range;
273
+ hn.range;
274
+ bt.range;
275
+ mn.range;
276
+ gn.range;
277
+ function Mt(t) {
278
+ return nt((e) => {
279
+ e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
280
+ }, (e, n) => {
281
+ e.setUTCDate(e.getUTCDate() + n * 7);
282
+ }, (e, n) => (n - e) / De);
283
+ }
284
+ const yn = Mt(0), Kt = Mt(1), Tr = Mt(2), xr = Mt(3), It = Mt(4), br = Mt(5), wr = Mt(6);
285
+ yn.range;
286
+ Kt.range;
287
+ Tr.range;
288
+ xr.range;
289
+ It.range;
290
+ br.range;
291
+ wr.range;
292
+ const zt = nt((t) => {
293
+ t.setDate(1), t.setHours(0, 0, 0, 0);
294
+ }, (t, e) => {
295
+ t.setMonth(t.getMonth() + e);
296
+ }, (t, e) => e.getMonth() - t.getMonth() + (e.getFullYear() - t.getFullYear()) * 12, (t) => t.getMonth());
297
+ zt.range;
298
+ const Dr = nt((t) => {
299
+ t.setUTCDate(1), t.setUTCHours(0, 0, 0, 0);
300
+ }, (t, e) => {
301
+ t.setUTCMonth(t.getUTCMonth() + e);
302
+ }, (t, e) => e.getUTCMonth() - t.getUTCMonth() + (e.getUTCFullYear() - t.getUTCFullYear()) * 12, (t) => t.getUTCMonth());
303
+ Dr.range;
304
+ const kt = nt((t) => {
305
+ t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
306
+ }, (t, e) => {
307
+ t.setFullYear(t.getFullYear() + e);
308
+ }, (t, e) => e.getFullYear() - t.getFullYear(), (t) => t.getFullYear());
309
+ kt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt((e) => {
310
+ e.setFullYear(Math.floor(e.getFullYear() / t) * t), e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
311
+ }, (e, n) => {
312
+ e.setFullYear(e.getFullYear() + n * t);
313
+ });
314
+ kt.range;
315
+ const wt = nt((t) => {
316
+ t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
317
+ }, (t, e) => {
318
+ t.setUTCFullYear(t.getUTCFullYear() + e);
319
+ }, (t, e) => e.getUTCFullYear() - t.getUTCFullYear(), (t) => t.getUTCFullYear());
320
+ wt.every = (t) => !isFinite(t = Math.floor(t)) || !(t > 0) ? null : nt((e) => {
321
+ e.setUTCFullYear(Math.floor(e.getUTCFullYear() / t) * t), e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
322
+ }, (e, n) => {
323
+ e.setUTCFullYear(e.getUTCFullYear() + n * t);
324
+ });
325
+ wt.range;
326
+ function Mr(t, e, n, r, i, s) {
327
+ const a = [
328
+ [vt, 1, mt],
329
+ [vt, 5, 5 * mt],
330
+ [vt, 15, 15 * mt],
331
+ [vt, 30, 30 * mt],
332
+ [s, 1, ct],
333
+ [s, 5, 5 * ct],
334
+ [s, 15, 15 * ct],
335
+ [s, 30, 30 * ct],
336
+ [i, 1, gt],
337
+ [i, 3, 3 * gt],
338
+ [i, 6, 6 * gt],
339
+ [i, 12, 12 * gt],
340
+ [r, 1, yt],
341
+ [r, 2, 2 * yt],
342
+ [n, 1, De],
343
+ [e, 1, He],
344
+ [e, 3, 3 * He],
345
+ [t, 1, me]
346
+ ];
347
+ function y(S, w, V) {
348
+ const _ = w < S;
349
+ _ && ([S, w] = [w, S]);
350
+ const Y = V && typeof V.range == "function" ? V : F(S, w, V), G = Y ? Y.range(S, +w + 1) : [];
351
+ return _ ? G.reverse() : G;
352
+ }
353
+ function F(S, w, V) {
354
+ const _ = Math.abs(w - S) / V, Y = Gn(([, , v]) => v).right(a, _);
355
+ if (Y === a.length) return t.every(Oe(S / me, w / me, V));
356
+ if (Y === 0) return Et.every(Math.max(Oe(S, w, V), 1));
357
+ const [G, Z] = a[_ / a[Y - 1][2] < a[Y][2] / _ ? Y - 1 : Y];
358
+ return G.every(Z);
359
+ }
360
+ return [y, F];
361
+ }
362
+ const [Cr, Sr] = Mr(kt, zt, Rt, xt, Vt, Nt);
363
+ function ge(t) {
364
+ if (0 <= t.y && t.y < 100) {
365
+ var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);
366
+ return e.setFullYear(t.y), e;
367
+ }
368
+ return new Date(t.y, t.m, t.d, t.H, t.M, t.S, t.L);
369
+ }
370
+ function ye(t) {
371
+ if (0 <= t.y && t.y < 100) {
372
+ var e = new Date(Date.UTC(-1, t.m, t.d, t.H, t.M, t.S, t.L));
373
+ return e.setUTCFullYear(t.y), e;
374
+ }
375
+ return new Date(Date.UTC(t.y, t.m, t.d, t.H, t.M, t.S, t.L));
376
+ }
377
+ function Ot(t, e, n) {
378
+ return { y: t, m: e, d: n, H: 0, M: 0, S: 0, L: 0 };
379
+ }
380
+ function _r(t) {
381
+ var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, a = t.shortDays, y = t.months, F = t.shortMonths, S = $t(i), w = Ht(i), V = $t(s), _ = Ht(s), Y = $t(a), G = Ht(a), Z = $t(y), v = Ht(y), U = $t(F), z = Ht(F), E = {
382
+ a: m,
383
+ A: I,
384
+ b: o,
385
+ B: W,
386
+ c: null,
387
+ d: Be,
388
+ e: Be,
389
+ f: Qr,
390
+ g: oi,
391
+ G: ui,
392
+ H: Gr,
393
+ I: qr,
394
+ j: jr,
395
+ L: kn,
396
+ m: Jr,
397
+ M: Kr,
398
+ p: u,
399
+ q: K,
400
+ Q: Ge,
401
+ s: qe,
402
+ S: ti,
403
+ u: ei,
404
+ U: ni,
405
+ V: ri,
406
+ w: ii,
407
+ W: si,
408
+ x: null,
409
+ X: null,
410
+ y: ai,
411
+ Y: ci,
412
+ Z: li,
413
+ "%": Xe
414
+ }, R = {
415
+ a: l,
416
+ A: O,
417
+ b: $,
418
+ B: j,
419
+ c: null,
420
+ d: Ze,
421
+ e: Ze,
422
+ f: mi,
423
+ g: Di,
424
+ G: Ci,
425
+ H: fi,
426
+ I: di,
427
+ j: hi,
428
+ L: vn,
429
+ m: gi,
430
+ M: yi,
431
+ p: H,
432
+ q: J,
433
+ Q: Ge,
434
+ s: qe,
435
+ S: ki,
436
+ u: pi,
437
+ U: vi,
438
+ V: Ti,
439
+ w: xi,
440
+ W: bi,
441
+ x: null,
442
+ X: null,
443
+ y: wi,
444
+ Y: Mi,
445
+ Z: Si,
446
+ "%": Xe
447
+ }, q = {
448
+ a: x,
449
+ A: C,
450
+ b: M,
451
+ B: D,
452
+ c,
453
+ d: ze,
454
+ e: ze,
455
+ f: Rr,
456
+ g: Pe,
457
+ G: Ve,
458
+ H: Re,
459
+ I: Re,
460
+ j: Nr,
461
+ L: zr,
462
+ m: Hr,
463
+ M: Vr,
464
+ p: L,
465
+ q: $r,
466
+ Q: Zr,
467
+ s: Xr,
468
+ S: Pr,
469
+ u: Ir,
470
+ U: Lr,
471
+ V: Ar,
472
+ w: Er,
473
+ W: Wr,
474
+ x: g,
475
+ X: b,
476
+ y: Pe,
477
+ Y: Ve,
478
+ Z: Or,
479
+ "%": Br
480
+ };
481
+ E.x = T(n, E), E.X = T(r, E), E.c = T(e, E), R.x = T(n, R), R.X = T(r, R), R.c = T(e, R);
482
+ function T(h, N) {
483
+ return function(P) {
484
+ var f = [], tt = -1, A = 0, Q = h.length, X, st, at;
485
+ for (P instanceof Date || (P = /* @__PURE__ */ new Date(+P)); ++tt < Q; )
486
+ h.charCodeAt(tt) === 37 && (f.push(h.slice(A, tt)), (st = Ne[X = h.charAt(++tt)]) != null ? X = h.charAt(++tt) : st = X === "e" ? " " : "0", (at = N[X]) && (X = at(P, st)), f.push(X), A = tt + 1);
487
+ return f.push(h.slice(A, tt)), f.join("");
488
+ };
489
+ }
490
+ function k(h, N) {
491
+ return function(P) {
492
+ var f = Ot(1900, void 0, 1), tt = p(f, h, P += "", 0), A, Q;
493
+ if (tt != P.length) return null;
494
+ if ("Q" in f) return new Date(f.Q);
495
+ if ("s" in f) return new Date(f.s * 1e3 + ("L" in f ? f.L : 0));
496
+ if (N && !("Z" in f) && (f.Z = 0), "p" in f && (f.H = f.H % 12 + f.p * 12), f.m === void 0 && (f.m = "q" in f ? f.q : 0), "V" in f) {
497
+ if (f.V < 1 || f.V > 53) return null;
498
+ "w" in f || (f.w = 1), "Z" in f ? (A = ye(Ot(f.y, 0, 1)), Q = A.getUTCDay(), A = Q > 4 || Q === 0 ? Kt.ceil(A) : Kt(A), A = Me.offset(A, (f.V - 1) * 7), f.y = A.getUTCFullYear(), f.m = A.getUTCMonth(), f.d = A.getUTCDate() + (f.w + 6) % 7) : (A = ge(Ot(f.y, 0, 1)), Q = A.getDay(), A = Q > 4 || Q === 0 ? Pt.ceil(A) : Pt(A), A = xt.offset(A, (f.V - 1) * 7), f.y = A.getFullYear(), f.m = A.getMonth(), f.d = A.getDate() + (f.w + 6) % 7);
499
+ } else ("W" in f || "U" in f) && ("w" in f || (f.w = "u" in f ? f.u % 7 : "W" in f ? 1 : 0), Q = "Z" in f ? ye(Ot(f.y, 0, 1)).getUTCDay() : ge(Ot(f.y, 0, 1)).getDay(), f.m = 0, f.d = "W" in f ? (f.w + 6) % 7 + f.W * 7 - (Q + 5) % 7 : f.w + f.U * 7 - (Q + 6) % 7);
500
+ return "Z" in f ? (f.H += f.Z / 100 | 0, f.M += f.Z % 100, ye(f)) : ge(f);
501
+ };
502
+ }
503
+ function p(h, N, P, f) {
504
+ for (var tt = 0, A = N.length, Q = P.length, X, st; tt < A; ) {
505
+ if (f >= Q) return -1;
506
+ if (X = N.charCodeAt(tt++), X === 37) {
507
+ if (X = N.charAt(tt++), st = q[X in Ne ? N.charAt(tt++) : X], !st || (f = st(h, P, f)) < 0) return -1;
508
+ } else if (X != P.charCodeAt(f++))
509
+ return -1;
510
+ }
511
+ return f;
512
+ }
513
+ function L(h, N, P) {
514
+ var f = S.exec(N.slice(P));
515
+ return f ? (h.p = w.get(f[0].toLowerCase()), P + f[0].length) : -1;
516
+ }
517
+ function x(h, N, P) {
518
+ var f = Y.exec(N.slice(P));
519
+ return f ? (h.w = G.get(f[0].toLowerCase()), P + f[0].length) : -1;
520
+ }
521
+ function C(h, N, P) {
522
+ var f = V.exec(N.slice(P));
523
+ return f ? (h.w = _.get(f[0].toLowerCase()), P + f[0].length) : -1;
524
+ }
525
+ function M(h, N, P) {
526
+ var f = U.exec(N.slice(P));
527
+ return f ? (h.m = z.get(f[0].toLowerCase()), P + f[0].length) : -1;
528
+ }
529
+ function D(h, N, P) {
530
+ var f = Z.exec(N.slice(P));
531
+ return f ? (h.m = v.get(f[0].toLowerCase()), P + f[0].length) : -1;
532
+ }
533
+ function c(h, N, P) {
534
+ return p(h, e, N, P);
535
+ }
536
+ function g(h, N, P) {
537
+ return p(h, n, N, P);
538
+ }
539
+ function b(h, N, P) {
540
+ return p(h, r, N, P);
541
+ }
542
+ function m(h) {
543
+ return a[h.getDay()];
544
+ }
545
+ function I(h) {
546
+ return s[h.getDay()];
547
+ }
548
+ function o(h) {
549
+ return F[h.getMonth()];
550
+ }
551
+ function W(h) {
552
+ return y[h.getMonth()];
553
+ }
554
+ function u(h) {
555
+ return i[+(h.getHours() >= 12)];
556
+ }
557
+ function K(h) {
558
+ return 1 + ~~(h.getMonth() / 3);
559
+ }
560
+ function l(h) {
561
+ return a[h.getUTCDay()];
562
+ }
563
+ function O(h) {
564
+ return s[h.getUTCDay()];
565
+ }
566
+ function $(h) {
567
+ return F[h.getUTCMonth()];
568
+ }
569
+ function j(h) {
570
+ return y[h.getUTCMonth()];
571
+ }
572
+ function H(h) {
573
+ return i[+(h.getUTCHours() >= 12)];
574
+ }
575
+ function J(h) {
576
+ return 1 + ~~(h.getUTCMonth() / 3);
577
+ }
578
+ return {
579
+ format: function(h) {
580
+ var N = T(h += "", E);
581
+ return N.toString = function() {
582
+ return h;
583
+ }, N;
584
+ },
585
+ parse: function(h) {
586
+ var N = k(h += "", !1);
587
+ return N.toString = function() {
588
+ return h;
589
+ }, N;
590
+ },
591
+ utcFormat: function(h) {
592
+ var N = T(h += "", R);
593
+ return N.toString = function() {
594
+ return h;
595
+ }, N;
596
+ },
597
+ utcParse: function(h) {
598
+ var N = k(h += "", !0);
599
+ return N.toString = function() {
600
+ return h;
601
+ }, N;
602
+ }
603
+ };
604
+ }
605
+ var Ne = { "-": "", _: " ", 0: "0" }, rt = /^\s*\d+/, Yr = /^%/, Fr = /[\\^$*+?|[\]().{}]/g;
606
+ function B(t, e, n) {
607
+ var r = t < 0 ? "-" : "", i = (r ? -t : t) + "", s = i.length;
608
+ return r + (s < n ? new Array(n - s + 1).join(e) + i : i);
609
+ }
610
+ function Ur(t) {
611
+ return t.replace(Fr, "\\$&");
612
+ }
613
+ function $t(t) {
614
+ return new RegExp("^(?:" + t.map(Ur).join("|") + ")", "i");
615
+ }
616
+ function Ht(t) {
617
+ return new Map(t.map((e, n) => [e.toLowerCase(), n]));
618
+ }
619
+ function Er(t, e, n) {
620
+ var r = rt.exec(e.slice(n, n + 1));
621
+ return r ? (t.w = +r[0], n + r[0].length) : -1;
622
+ }
623
+ function Ir(t, e, n) {
624
+ var r = rt.exec(e.slice(n, n + 1));
625
+ return r ? (t.u = +r[0], n + r[0].length) : -1;
626
+ }
627
+ function Lr(t, e, n) {
628
+ var r = rt.exec(e.slice(n, n + 2));
629
+ return r ? (t.U = +r[0], n + r[0].length) : -1;
630
+ }
631
+ function Ar(t, e, n) {
632
+ var r = rt.exec(e.slice(n, n + 2));
633
+ return r ? (t.V = +r[0], n + r[0].length) : -1;
634
+ }
635
+ function Wr(t, e, n) {
636
+ var r = rt.exec(e.slice(n, n + 2));
637
+ return r ? (t.W = +r[0], n + r[0].length) : -1;
638
+ }
639
+ function Ve(t, e, n) {
640
+ var r = rt.exec(e.slice(n, n + 4));
641
+ return r ? (t.y = +r[0], n + r[0].length) : -1;
642
+ }
643
+ function Pe(t, e, n) {
644
+ var r = rt.exec(e.slice(n, n + 2));
645
+ return r ? (t.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
646
+ }
647
+ function Or(t, e, n) {
648
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n, n + 6));
649
+ return r ? (t.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
650
+ }
651
+ function $r(t, e, n) {
652
+ var r = rt.exec(e.slice(n, n + 1));
653
+ return r ? (t.q = r[0] * 3 - 3, n + r[0].length) : -1;
654
+ }
655
+ function Hr(t, e, n) {
656
+ var r = rt.exec(e.slice(n, n + 2));
657
+ return r ? (t.m = r[0] - 1, n + r[0].length) : -1;
658
+ }
659
+ function ze(t, e, n) {
660
+ var r = rt.exec(e.slice(n, n + 2));
661
+ return r ? (t.d = +r[0], n + r[0].length) : -1;
662
+ }
663
+ function Nr(t, e, n) {
664
+ var r = rt.exec(e.slice(n, n + 3));
665
+ return r ? (t.m = 0, t.d = +r[0], n + r[0].length) : -1;
666
+ }
667
+ function Re(t, e, n) {
668
+ var r = rt.exec(e.slice(n, n + 2));
669
+ return r ? (t.H = +r[0], n + r[0].length) : -1;
670
+ }
671
+ function Vr(t, e, n) {
672
+ var r = rt.exec(e.slice(n, n + 2));
673
+ return r ? (t.M = +r[0], n + r[0].length) : -1;
674
+ }
675
+ function Pr(t, e, n) {
676
+ var r = rt.exec(e.slice(n, n + 2));
677
+ return r ? (t.S = +r[0], n + r[0].length) : -1;
678
+ }
679
+ function zr(t, e, n) {
680
+ var r = rt.exec(e.slice(n, n + 3));
681
+ return r ? (t.L = +r[0], n + r[0].length) : -1;
682
+ }
683
+ function Rr(t, e, n) {
684
+ var r = rt.exec(e.slice(n, n + 6));
685
+ return r ? (t.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
686
+ }
687
+ function Br(t, e, n) {
688
+ var r = Yr.exec(e.slice(n, n + 1));
689
+ return r ? n + r[0].length : -1;
690
+ }
691
+ function Zr(t, e, n) {
692
+ var r = rt.exec(e.slice(n));
693
+ return r ? (t.Q = +r[0], n + r[0].length) : -1;
694
+ }
695
+ function Xr(t, e, n) {
696
+ var r = rt.exec(e.slice(n));
697
+ return r ? (t.s = +r[0], n + r[0].length) : -1;
698
+ }
699
+ function Be(t, e) {
700
+ return B(t.getDate(), e, 2);
701
+ }
702
+ function Gr(t, e) {
703
+ return B(t.getHours(), e, 2);
704
+ }
705
+ function qr(t, e) {
706
+ return B(t.getHours() % 12 || 12, e, 2);
707
+ }
708
+ function jr(t, e) {
709
+ return B(1 + xt.count(kt(t), t), e, 3);
710
+ }
711
+ function kn(t, e) {
712
+ return B(t.getMilliseconds(), e, 3);
713
+ }
714
+ function Qr(t, e) {
715
+ return kn(t, e) + "000";
716
+ }
717
+ function Jr(t, e) {
718
+ return B(t.getMonth() + 1, e, 2);
719
+ }
720
+ function Kr(t, e) {
721
+ return B(t.getMinutes(), e, 2);
722
+ }
723
+ function ti(t, e) {
724
+ return B(t.getSeconds(), e, 2);
725
+ }
726
+ function ei(t) {
727
+ var e = t.getDay();
728
+ return e === 0 ? 7 : e;
729
+ }
730
+ function ni(t, e) {
731
+ return B(Rt.count(kt(t) - 1, t), e, 2);
732
+ }
733
+ function pn(t) {
734
+ var e = t.getDay();
735
+ return e >= 4 || e === 0 ? bt(t) : bt.ceil(t);
736
+ }
737
+ function ri(t, e) {
738
+ return t = pn(t), B(bt.count(kt(t), t) + (kt(t).getDay() === 4), e, 2);
739
+ }
740
+ function ii(t) {
741
+ return t.getDay();
742
+ }
743
+ function si(t, e) {
744
+ return B(Pt.count(kt(t) - 1, t), e, 2);
745
+ }
746
+ function ai(t, e) {
747
+ return B(t.getFullYear() % 100, e, 2);
748
+ }
749
+ function oi(t, e) {
750
+ return t = pn(t), B(t.getFullYear() % 100, e, 2);
751
+ }
752
+ function ci(t, e) {
753
+ return B(t.getFullYear() % 1e4, e, 4);
754
+ }
755
+ function ui(t, e) {
756
+ var n = t.getDay();
757
+ return t = n >= 4 || n === 0 ? bt(t) : bt.ceil(t), B(t.getFullYear() % 1e4, e, 4);
758
+ }
759
+ function li(t) {
760
+ var e = t.getTimezoneOffset();
761
+ return (e > 0 ? "-" : (e *= -1, "+")) + B(e / 60 | 0, "0", 2) + B(e % 60, "0", 2);
762
+ }
763
+ function Ze(t, e) {
764
+ return B(t.getUTCDate(), e, 2);
765
+ }
766
+ function fi(t, e) {
767
+ return B(t.getUTCHours(), e, 2);
768
+ }
769
+ function di(t, e) {
770
+ return B(t.getUTCHours() % 12 || 12, e, 2);
771
+ }
772
+ function hi(t, e) {
773
+ return B(1 + Me.count(wt(t), t), e, 3);
774
+ }
775
+ function vn(t, e) {
776
+ return B(t.getUTCMilliseconds(), e, 3);
777
+ }
778
+ function mi(t, e) {
779
+ return vn(t, e) + "000";
780
+ }
781
+ function gi(t, e) {
782
+ return B(t.getUTCMonth() + 1, e, 2);
783
+ }
784
+ function yi(t, e) {
785
+ return B(t.getUTCMinutes(), e, 2);
786
+ }
787
+ function ki(t, e) {
788
+ return B(t.getUTCSeconds(), e, 2);
789
+ }
790
+ function pi(t) {
791
+ var e = t.getUTCDay();
792
+ return e === 0 ? 7 : e;
793
+ }
794
+ function vi(t, e) {
795
+ return B(yn.count(wt(t) - 1, t), e, 2);
796
+ }
797
+ function Tn(t) {
798
+ var e = t.getUTCDay();
799
+ return e >= 4 || e === 0 ? It(t) : It.ceil(t);
800
+ }
801
+ function Ti(t, e) {
802
+ return t = Tn(t), B(It.count(wt(t), t) + (wt(t).getUTCDay() === 4), e, 2);
803
+ }
804
+ function xi(t) {
805
+ return t.getUTCDay();
806
+ }
807
+ function bi(t, e) {
808
+ return B(Kt.count(wt(t) - 1, t), e, 2);
809
+ }
810
+ function wi(t, e) {
811
+ return B(t.getUTCFullYear() % 100, e, 2);
812
+ }
813
+ function Di(t, e) {
814
+ return t = Tn(t), B(t.getUTCFullYear() % 100, e, 2);
815
+ }
816
+ function Mi(t, e) {
817
+ return B(t.getUTCFullYear() % 1e4, e, 4);
818
+ }
819
+ function Ci(t, e) {
820
+ var n = t.getUTCDay();
821
+ return t = n >= 4 || n === 0 ? It(t) : It.ceil(t), B(t.getUTCFullYear() % 1e4, e, 4);
822
+ }
823
+ function Si() {
824
+ return "+0000";
825
+ }
826
+ function Xe() {
827
+ return "%";
828
+ }
829
+ function Ge(t) {
830
+ return +t;
831
+ }
832
+ function qe(t) {
833
+ return Math.floor(+t / 1e3);
834
+ }
835
+ var St, te;
836
+ _i({
837
+ dateTime: "%x, %X",
838
+ date: "%-m/%-d/%Y",
839
+ time: "%-I:%M:%S %p",
840
+ periods: ["AM", "PM"],
841
+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
842
+ shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
843
+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
844
+ shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
845
+ });
846
+ function _i(t) {
847
+ return St = _r(t), te = St.format, St.parse, St.utcFormat, St.utcParse, St;
848
+ }
849
+ function Yi(t) {
850
+ return new Date(t);
851
+ }
852
+ function Fi(t) {
853
+ return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
854
+ }
855
+ function xn(t, e, n, r, i, s, a, y, F, S) {
856
+ var w = qn(), V = w.invert, _ = w.domain, Y = S(".%L"), G = S(":%S"), Z = S("%I:%M"), v = S("%I %p"), U = S("%a %d"), z = S("%b %d"), E = S("%B"), R = S("%Y");
857
+ function q(T) {
858
+ return (F(T) < T ? Y : y(T) < T ? G : a(T) < T ? Z : s(T) < T ? v : r(T) < T ? i(T) < T ? U : z : n(T) < T ? E : R)(T);
859
+ }
860
+ return w.invert = function(T) {
861
+ return new Date(V(T));
862
+ }, w.domain = function(T) {
863
+ return arguments.length ? _(Array.from(T, Fi)) : _().map(Yi);
864
+ }, w.ticks = function(T) {
865
+ var k = _();
866
+ return t(k[0], k[k.length - 1], T ?? 10);
867
+ }, w.tickFormat = function(T, k) {
868
+ return k == null ? q : S(k);
869
+ }, w.nice = function(T) {
870
+ var k = _();
871
+ return (!T || typeof T.range != "function") && (T = e(k[0], k[k.length - 1], T ?? 10)), T ? _(yr(k, T)) : w;
872
+ }, w.copy = function() {
873
+ return jn(w, xn(t, e, n, r, i, s, a, y, F, S));
874
+ }, w;
875
+ }
876
+ function Ui() {
877
+ return Jn.apply(xn(Cr, Sr, kt, zt, Rt, xt, Vt, Nt, vt, te).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
878
+ }
879
+ var bn = { exports: {} };
880
+ (function(t, e) {
881
+ (function(n, r) {
882
+ t.exports = r();
883
+ })(re, function() {
884
+ var n = "day";
885
+ return function(r, i, s) {
886
+ var a = function(S) {
887
+ return S.add(4 - S.isoWeekday(), n);
888
+ }, y = i.prototype;
889
+ y.isoWeekYear = function() {
890
+ return a(this).year();
891
+ }, y.isoWeek = function(S) {
892
+ if (!this.$utils().u(S)) return this.add(7 * (S - this.isoWeek()), n);
893
+ var w, V, _, Y, G = a(this), Z = (w = this.isoWeekYear(), V = this.$u, _ = (V ? s.utc : s)().year(w).startOf("year"), Y = 4 - _.isoWeekday(), _.isoWeekday() > 4 && (Y += 7), _.add(Y, n));
894
+ return G.diff(Z, "week") + 1;
895
+ }, y.isoWeekday = function(S) {
896
+ return this.$utils().u(S) ? this.day() || 7 : this.day(this.day() % 7 ? S : S - 7);
897
+ };
898
+ var F = y.startOf;
899
+ y.startOf = function(S, w) {
900
+ var V = this.$utils(), _ = !!V.u(w) || w;
901
+ return V.p(S) === "isoweek" ? _ ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : F.bind(this)(S, w);
902
+ };
903
+ };
904
+ });
905
+ })(bn);
906
+ var Ei = bn.exports;
907
+ const Ii = /* @__PURE__ */ ie(Ei);
908
+ var wn = { exports: {} };
909
+ (function(t, e) {
910
+ (function(n, r) {
911
+ t.exports = r();
912
+ })(re, function() {
913
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, i = /\d/, s = /\d\d/, a = /\d\d?/, y = /\d*[^-_:/,()\s\d]+/, F = {}, S = function(v) {
914
+ return (v = +v) + (v > 68 ? 1900 : 2e3);
915
+ }, w = function(v) {
916
+ return function(U) {
917
+ this[v] = +U;
918
+ };
919
+ }, V = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
920
+ (this.zone || (this.zone = {})).offset = function(U) {
921
+ if (!U || U === "Z") return 0;
922
+ var z = U.match(/([+-]|\d\d)/g), E = 60 * z[1] + (+z[2] || 0);
923
+ return E === 0 ? 0 : z[0] === "+" ? -E : E;
924
+ }(v);
925
+ }], _ = function(v) {
926
+ var U = F[v];
927
+ return U && (U.indexOf ? U : U.s.concat(U.f));
928
+ }, Y = function(v, U) {
929
+ var z, E = F.meridiem;
930
+ if (E) {
931
+ for (var R = 1; R <= 24; R += 1) if (v.indexOf(E(R, 0, U)) > -1) {
932
+ z = R > 12;
933
+ break;
934
+ }
935
+ } else z = v === (U ? "pm" : "PM");
936
+ return z;
937
+ }, G = { A: [y, function(v) {
938
+ this.afternoon = Y(v, !1);
939
+ }], a: [y, function(v) {
940
+ this.afternoon = Y(v, !0);
941
+ }], Q: [i, function(v) {
942
+ this.month = 3 * (v - 1) + 1;
943
+ }], S: [i, function(v) {
944
+ this.milliseconds = 100 * +v;
945
+ }], SS: [s, function(v) {
946
+ this.milliseconds = 10 * +v;
947
+ }], SSS: [/\d{3}/, function(v) {
948
+ this.milliseconds = +v;
949
+ }], s: [a, w("seconds")], ss: [a, w("seconds")], m: [a, w("minutes")], mm: [a, w("minutes")], H: [a, w("hours")], h: [a, w("hours")], HH: [a, w("hours")], hh: [a, w("hours")], D: [a, w("day")], DD: [s, w("day")], Do: [y, function(v) {
950
+ var U = F.ordinal, z = v.match(/\d+/);
951
+ if (this.day = z[0], U) for (var E = 1; E <= 31; E += 1) U(E).replace(/\[|\]/g, "") === v && (this.day = E);
952
+ }], w: [a, w("week")], ww: [s, w("week")], M: [a, w("month")], MM: [s, w("month")], MMM: [y, function(v) {
953
+ var U = _("months"), z = (_("monthsShort") || U.map(function(E) {
954
+ return E.slice(0, 3);
955
+ })).indexOf(v) + 1;
956
+ if (z < 1) throw new Error();
957
+ this.month = z % 12 || z;
958
+ }], MMMM: [y, function(v) {
959
+ var U = _("months").indexOf(v) + 1;
960
+ if (U < 1) throw new Error();
961
+ this.month = U % 12 || U;
962
+ }], Y: [/[+-]?\d+/, w("year")], YY: [s, function(v) {
963
+ this.year = S(v);
964
+ }], YYYY: [/\d{4}/, w("year")], Z: V, ZZ: V };
965
+ function Z(v) {
966
+ var U, z;
967
+ U = v, z = F && F.formats;
968
+ for (var E = (v = U.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(x, C, M) {
969
+ var D = M && M.toUpperCase();
970
+ return C || z[M] || n[M] || z[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(c, g, b) {
971
+ return g || b.slice(1);
972
+ });
973
+ })).match(r), R = E.length, q = 0; q < R; q += 1) {
974
+ var T = E[q], k = G[T], p = k && k[0], L = k && k[1];
975
+ E[q] = L ? { regex: p, parser: L } : T.replace(/^\[|\]$/g, "");
976
+ }
977
+ return function(x) {
978
+ for (var C = {}, M = 0, D = 0; M < R; M += 1) {
979
+ var c = E[M];
980
+ if (typeof c == "string") D += c.length;
981
+ else {
982
+ var g = c.regex, b = c.parser, m = x.slice(D), I = g.exec(m)[0];
983
+ b.call(C, I), x = x.replace(I, "");
984
+ }
985
+ }
986
+ return function(o) {
987
+ var W = o.afternoon;
988
+ if (W !== void 0) {
989
+ var u = o.hours;
990
+ W ? u < 12 && (o.hours += 12) : u === 12 && (o.hours = 0), delete o.afternoon;
991
+ }
992
+ }(C), C;
993
+ };
994
+ }
995
+ return function(v, U, z) {
996
+ z.p.customParseFormat = !0, v && v.parseTwoDigitYear && (S = v.parseTwoDigitYear);
997
+ var E = U.prototype, R = E.parse;
998
+ E.parse = function(q) {
999
+ var T = q.date, k = q.utc, p = q.args;
1000
+ this.$u = k;
1001
+ var L = p[1];
1002
+ if (typeof L == "string") {
1003
+ var x = p[2] === !0, C = p[3] === !0, M = x || C, D = p[2];
1004
+ C && (D = p[2]), F = this.$locale(), !x && D && (F = z.Ls[D]), this.$d = function(m, I, o, W) {
1005
+ try {
1006
+ if (["x", "X"].indexOf(I) > -1) return new Date((I === "X" ? 1e3 : 1) * m);
1007
+ var u = Z(I)(m), K = u.year, l = u.month, O = u.day, $ = u.hours, j = u.minutes, H = u.seconds, J = u.milliseconds, h = u.zone, N = u.week, P = /* @__PURE__ */ new Date(), f = O || (K || l ? 1 : P.getDate()), tt = K || P.getFullYear(), A = 0;
1008
+ K && !l || (A = l > 0 ? l - 1 : P.getMonth());
1009
+ var Q, X = $ || 0, st = j || 0, at = H || 0, pt = J || 0;
1010
+ return h ? new Date(Date.UTC(tt, A, f, X, st, at, pt + 60 * h.offset * 1e3)) : o ? new Date(Date.UTC(tt, A, f, X, st, at, pt)) : (Q = new Date(tt, A, f, X, st, at, pt), N && (Q = W(Q).week(N).toDate()), Q);
1011
+ } catch {
1012
+ return /* @__PURE__ */ new Date("");
1013
+ }
1014
+ }(T, L, k, z), this.init(), D && D !== !0 && (this.$L = this.locale(D).$L), M && T != this.format(L) && (this.$d = /* @__PURE__ */ new Date("")), F = {};
1015
+ } else if (L instanceof Array) for (var c = L.length, g = 1; g <= c; g += 1) {
1016
+ p[1] = L[g - 1];
1017
+ var b = z.apply(this, p);
1018
+ if (b.isValid()) {
1019
+ this.$d = b.$d, this.$L = b.$L, this.init();
1020
+ break;
1021
+ }
1022
+ g === c && (this.$d = /* @__PURE__ */ new Date(""));
1023
+ }
1024
+ else R.call(this, q);
1025
+ };
1026
+ };
1027
+ });
1028
+ })(wn);
1029
+ var Li = wn.exports;
1030
+ const Ai = /* @__PURE__ */ ie(Li);
1031
+ var Dn = { exports: {} };
1032
+ (function(t, e) {
1033
+ (function(n, r) {
1034
+ t.exports = r();
1035
+ })(re, function() {
1036
+ return function(n, r) {
1037
+ var i = r.prototype, s = i.format;
1038
+ i.format = function(a) {
1039
+ var y = this, F = this.$locale();
1040
+ if (!this.isValid()) return s.bind(this)(a);
1041
+ var S = this.$utils(), w = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(V) {
1042
+ switch (V) {
1043
+ case "Q":
1044
+ return Math.ceil((y.$M + 1) / 3);
1045
+ case "Do":
1046
+ return F.ordinal(y.$D);
1047
+ case "gggg":
1048
+ return y.weekYear();
1049
+ case "GGGG":
1050
+ return y.isoWeekYear();
1051
+ case "wo":
1052
+ return F.ordinal(y.week(), "W");
1053
+ case "w":
1054
+ case "ww":
1055
+ return S.s(y.week(), V === "w" ? 1 : 2, "0");
1056
+ case "W":
1057
+ case "WW":
1058
+ return S.s(y.isoWeek(), V === "W" ? 1 : 2, "0");
1059
+ case "k":
1060
+ case "kk":
1061
+ return S.s(String(y.$H === 0 ? 24 : y.$H), V === "k" ? 1 : 2, "0");
1062
+ case "X":
1063
+ return Math.floor(y.$d.getTime() / 1e3);
1064
+ case "x":
1065
+ return y.$d.getTime();
1066
+ case "z":
1067
+ return "[" + y.offsetName() + "]";
1068
+ case "zzz":
1069
+ return "[" + y.offsetName("long") + "]";
1070
+ default:
1071
+ return V;
1072
+ }
1073
+ });
1074
+ return s.bind(this)(w);
1075
+ };
1076
+ };
1077
+ });
1078
+ })(Dn);
1079
+ var Wi = Dn.exports;
1080
+ const Oi = /* @__PURE__ */ ie(Wi);
1081
+ var Mn = { exports: {} };
1082
+ (function(t, e) {
1083
+ (function(n, r) {
1084
+ t.exports = r();
1085
+ })(re, function() {
1086
+ var n, r, i = 1e3, s = 6e4, a = 36e5, y = 864e5, F = 31536e6, S = 2628e6, w = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, V = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, _ = { years: F, months: S, days: y, hours: a, minutes: s, seconds: i, milliseconds: 1, weeks: 6048e5 }, Y = function(T) {
1087
+ return T instanceof R;
1088
+ }, G = function(T, k, p) {
1089
+ return new R(T, p, k.$l);
1090
+ }, Z = function(T) {
1091
+ return r.p(T) + "s";
1092
+ }, v = function(T) {
1093
+ return T < 0;
1094
+ }, U = function(T) {
1095
+ return v(T) ? Math.ceil(T) : Math.floor(T);
1096
+ }, z = function(T) {
1097
+ return Math.abs(T);
1098
+ }, E = function(T, k) {
1099
+ return T ? v(T) ? { negative: !0, format: "" + z(T) + k } : { negative: !1, format: "" + T + k } : { negative: !1, format: "" };
1100
+ }, R = function() {
1101
+ function T(p, L, x) {
1102
+ var C = this;
1103
+ if (this.$d = {}, this.$l = x, p === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), L) return G(p * _[Z(L)], this);
1104
+ if (typeof p == "number") return this.$ms = p, this.parseFromMilliseconds(), this;
1105
+ if (typeof p == "object") return Object.keys(p).forEach(function(c) {
1106
+ C.$d[Z(c)] = p[c];
1107
+ }), this.calMilliseconds(), this;
1108
+ if (typeof p == "string") {
1109
+ var M = p.match(w);
1110
+ if (M) {
1111
+ var D = M.slice(2).map(function(c) {
1112
+ return c != null ? Number(c) : 0;
1113
+ });
1114
+ return this.$d.years = D[0], this.$d.months = D[1], this.$d.weeks = D[2], this.$d.days = D[3], this.$d.hours = D[4], this.$d.minutes = D[5], this.$d.seconds = D[6], this.calMilliseconds(), this;
1115
+ }
1116
+ }
1117
+ return this;
1118
+ }
1119
+ var k = T.prototype;
1120
+ return k.calMilliseconds = function() {
1121
+ var p = this;
1122
+ this.$ms = Object.keys(this.$d).reduce(function(L, x) {
1123
+ return L + (p.$d[x] || 0) * _[x];
1124
+ }, 0);
1125
+ }, k.parseFromMilliseconds = function() {
1126
+ var p = this.$ms;
1127
+ this.$d.years = U(p / F), p %= F, this.$d.months = U(p / S), p %= S, this.$d.days = U(p / y), p %= y, this.$d.hours = U(p / a), p %= a, this.$d.minutes = U(p / s), p %= s, this.$d.seconds = U(p / i), p %= i, this.$d.milliseconds = p;
1128
+ }, k.toISOString = function() {
1129
+ var p = E(this.$d.years, "Y"), L = E(this.$d.months, "M"), x = +this.$d.days || 0;
1130
+ this.$d.weeks && (x += 7 * this.$d.weeks);
1131
+ var C = E(x, "D"), M = E(this.$d.hours, "H"), D = E(this.$d.minutes, "M"), c = this.$d.seconds || 0;
1132
+ this.$d.milliseconds && (c += this.$d.milliseconds / 1e3, c = Math.round(1e3 * c) / 1e3);
1133
+ var g = E(c, "S"), b = p.negative || L.negative || C.negative || M.negative || D.negative || g.negative, m = M.format || D.format || g.format ? "T" : "", I = (b ? "-" : "") + "P" + p.format + L.format + C.format + m + M.format + D.format + g.format;
1134
+ return I === "P" || I === "-P" ? "P0D" : I;
1135
+ }, k.toJSON = function() {
1136
+ return this.toISOString();
1137
+ }, k.format = function(p) {
1138
+ var L = p || "YYYY-MM-DDTHH:mm:ss", x = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
1139
+ return L.replace(V, function(C, M) {
1140
+ return M || String(x[C]);
1141
+ });
1142
+ }, k.as = function(p) {
1143
+ return this.$ms / _[Z(p)];
1144
+ }, k.get = function(p) {
1145
+ var L = this.$ms, x = Z(p);
1146
+ return x === "milliseconds" ? L %= 1e3 : L = x === "weeks" ? U(L / _[x]) : this.$d[x], L || 0;
1147
+ }, k.add = function(p, L, x) {
1148
+ var C;
1149
+ return C = L ? p * _[Z(L)] : Y(p) ? p.$ms : G(p, this).$ms, G(this.$ms + C * (x ? -1 : 1), this);
1150
+ }, k.subtract = function(p, L) {
1151
+ return this.add(p, L, !0);
1152
+ }, k.locale = function(p) {
1153
+ var L = this.clone();
1154
+ return L.$l = p, L;
1155
+ }, k.clone = function() {
1156
+ return G(this.$ms, this);
1157
+ }, k.humanize = function(p) {
1158
+ return n().add(this.$ms, "ms").locale(this.$l).fromNow(!p);
1159
+ }, k.valueOf = function() {
1160
+ return this.asMilliseconds();
1161
+ }, k.milliseconds = function() {
1162
+ return this.get("milliseconds");
1163
+ }, k.asMilliseconds = function() {
1164
+ return this.as("milliseconds");
1165
+ }, k.seconds = function() {
1166
+ return this.get("seconds");
1167
+ }, k.asSeconds = function() {
1168
+ return this.as("seconds");
1169
+ }, k.minutes = function() {
1170
+ return this.get("minutes");
1171
+ }, k.asMinutes = function() {
1172
+ return this.as("minutes");
1173
+ }, k.hours = function() {
1174
+ return this.get("hours");
1175
+ }, k.asHours = function() {
1176
+ return this.as("hours");
1177
+ }, k.days = function() {
1178
+ return this.get("days");
1179
+ }, k.asDays = function() {
1180
+ return this.as("days");
1181
+ }, k.weeks = function() {
1182
+ return this.get("weeks");
1183
+ }, k.asWeeks = function() {
1184
+ return this.as("weeks");
1185
+ }, k.months = function() {
1186
+ return this.get("months");
1187
+ }, k.asMonths = function() {
1188
+ return this.as("months");
1189
+ }, k.years = function() {
1190
+ return this.get("years");
1191
+ }, k.asYears = function() {
1192
+ return this.as("years");
1193
+ }, T;
1194
+ }(), q = function(T, k, p) {
1195
+ return T.add(k.years() * p, "y").add(k.months() * p, "M").add(k.days() * p, "d").add(k.hours() * p, "h").add(k.minutes() * p, "m").add(k.seconds() * p, "s").add(k.milliseconds() * p, "ms");
1196
+ };
1197
+ return function(T, k, p) {
1198
+ n = p, r = p().$utils(), p.duration = function(C, M) {
1199
+ var D = p.locale();
1200
+ return G(C, { $l: D }, M);
1201
+ }, p.isDuration = Y;
1202
+ var L = k.prototype.add, x = k.prototype.subtract;
1203
+ k.prototype.add = function(C, M) {
1204
+ return Y(C) ? q(this, C, 1) : L.bind(this)(C, M);
1205
+ }, k.prototype.subtract = function(C, M) {
1206
+ return Y(C) ? q(this, C, -1) : x.bind(this)(C, M);
1207
+ };
1208
+ };
1209
+ });
1210
+ })(Mn);
1211
+ var $i = Mn.exports;
1212
+ const Hi = /* @__PURE__ */ ie($i);
1213
+ var Te = function() {
1214
+ var t = /* @__PURE__ */ d(function(D, c, g, b) {
1215
+ for (g = g || {}, b = D.length; b--; g[D[b]] = c) ;
1216
+ return g;
1217
+ }, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], i = [1, 28], s = [1, 29], a = [1, 30], y = [1, 31], F = [1, 32], S = [1, 33], w = [1, 34], V = [1, 9], _ = [1, 10], Y = [1, 11], G = [1, 12], Z = [1, 13], v = [1, 14], U = [1, 15], z = [1, 16], E = [1, 19], R = [1, 20], q = [1, 21], T = [1, 22], k = [1, 23], p = [1, 25], L = [1, 35], x = {
1218
+ trace: /* @__PURE__ */ d(function() {
1219
+ }, "trace"),
1220
+ yy: {},
1221
+ symbols_: { error: 2, start: 3, gantt: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NL: 10, weekday: 11, weekday_monday: 12, weekday_tuesday: 13, weekday_wednesday: 14, weekday_thursday: 15, weekday_friday: 16, weekday_saturday: 17, weekday_sunday: 18, weekend: 19, weekend_friday: 20, weekend_saturday: 21, dateFormat: 22, inclusiveEndDates: 23, topAxis: 24, axisFormat: 25, tickInterval: 26, excludes: 27, includes: 28, todayMarker: 29, title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, section: 36, clickStatement: 37, taskTxt: 38, taskData: 39, click: 40, callbackname: 41, callbackargs: 42, href: 43, clickStatementDebug: 44, $accept: 0, $end: 1 },
1222
+ terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 20: "weekend_friday", 21: "weekend_saturday", 22: "dateFormat", 23: "inclusiveEndDates", 24: "topAxis", 25: "axisFormat", 26: "tickInterval", 27: "excludes", 28: "includes", 29: "todayMarker", 30: "title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "section", 38: "taskTxt", 39: "taskData", 40: "click", 41: "callbackname", 42: "callbackargs", 43: "href" },
1223
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [19, 1], [19, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [37, 2], [37, 3], [37, 3], [37, 4], [37, 3], [37, 4], [37, 2], [44, 2], [44, 3], [44, 3], [44, 4], [44, 3], [44, 4], [44, 2]],
1224
+ performAction: /* @__PURE__ */ d(function(c, g, b, m, I, o, W) {
1225
+ var u = o.length - 1;
1226
+ switch (I) {
1227
+ case 1:
1228
+ return o[u - 1];
1229
+ case 2:
1230
+ this.$ = [];
1231
+ break;
1232
+ case 3:
1233
+ o[u - 1].push(o[u]), this.$ = o[u - 1];
1234
+ break;
1235
+ case 4:
1236
+ case 5:
1237
+ this.$ = o[u];
1238
+ break;
1239
+ case 6:
1240
+ case 7:
1241
+ this.$ = [];
1242
+ break;
1243
+ case 8:
1244
+ m.setWeekday("monday");
1245
+ break;
1246
+ case 9:
1247
+ m.setWeekday("tuesday");
1248
+ break;
1249
+ case 10:
1250
+ m.setWeekday("wednesday");
1251
+ break;
1252
+ case 11:
1253
+ m.setWeekday("thursday");
1254
+ break;
1255
+ case 12:
1256
+ m.setWeekday("friday");
1257
+ break;
1258
+ case 13:
1259
+ m.setWeekday("saturday");
1260
+ break;
1261
+ case 14:
1262
+ m.setWeekday("sunday");
1263
+ break;
1264
+ case 15:
1265
+ m.setWeekend("friday");
1266
+ break;
1267
+ case 16:
1268
+ m.setWeekend("saturday");
1269
+ break;
1270
+ case 17:
1271
+ m.setDateFormat(o[u].substr(11)), this.$ = o[u].substr(11);
1272
+ break;
1273
+ case 18:
1274
+ m.enableInclusiveEndDates(), this.$ = o[u].substr(18);
1275
+ break;
1276
+ case 19:
1277
+ m.TopAxis(), this.$ = o[u].substr(8);
1278
+ break;
1279
+ case 20:
1280
+ m.setAxisFormat(o[u].substr(11)), this.$ = o[u].substr(11);
1281
+ break;
1282
+ case 21:
1283
+ m.setTickInterval(o[u].substr(13)), this.$ = o[u].substr(13);
1284
+ break;
1285
+ case 22:
1286
+ m.setExcludes(o[u].substr(9)), this.$ = o[u].substr(9);
1287
+ break;
1288
+ case 23:
1289
+ m.setIncludes(o[u].substr(9)), this.$ = o[u].substr(9);
1290
+ break;
1291
+ case 24:
1292
+ m.setTodayMarker(o[u].substr(12)), this.$ = o[u].substr(12);
1293
+ break;
1294
+ case 27:
1295
+ m.setDiagramTitle(o[u].substr(6)), this.$ = o[u].substr(6);
1296
+ break;
1297
+ case 28:
1298
+ this.$ = o[u].trim(), m.setAccTitle(this.$);
1299
+ break;
1300
+ case 29:
1301
+ case 30:
1302
+ this.$ = o[u].trim(), m.setAccDescription(this.$);
1303
+ break;
1304
+ case 31:
1305
+ m.addSection(o[u].substr(8)), this.$ = o[u].substr(8);
1306
+ break;
1307
+ case 33:
1308
+ m.addTask(o[u - 1], o[u]), this.$ = "task";
1309
+ break;
1310
+ case 34:
1311
+ this.$ = o[u - 1], m.setClickEvent(o[u - 1], o[u], null);
1312
+ break;
1313
+ case 35:
1314
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u - 1], o[u]);
1315
+ break;
1316
+ case 36:
1317
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u - 1], null), m.setLink(o[u - 2], o[u]);
1318
+ break;
1319
+ case 37:
1320
+ this.$ = o[u - 3], m.setClickEvent(o[u - 3], o[u - 2], o[u - 1]), m.setLink(o[u - 3], o[u]);
1321
+ break;
1322
+ case 38:
1323
+ this.$ = o[u - 2], m.setClickEvent(o[u - 2], o[u], null), m.setLink(o[u - 2], o[u - 1]);
1324
+ break;
1325
+ case 39:
1326
+ this.$ = o[u - 3], m.setClickEvent(o[u - 3], o[u - 1], o[u]), m.setLink(o[u - 3], o[u - 2]);
1327
+ break;
1328
+ case 40:
1329
+ this.$ = o[u - 1], m.setLink(o[u - 1], o[u]);
1330
+ break;
1331
+ case 41:
1332
+ case 47:
1333
+ this.$ = o[u - 1] + " " + o[u];
1334
+ break;
1335
+ case 42:
1336
+ case 43:
1337
+ case 45:
1338
+ this.$ = o[u - 2] + " " + o[u - 1] + " " + o[u];
1339
+ break;
1340
+ case 44:
1341
+ case 46:
1342
+ this.$ = o[u - 3] + " " + o[u - 2] + " " + o[u - 1] + " " + o[u];
1343
+ break;
1344
+ }
1345
+ }, "anonymous"),
1346
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: i, 15: s, 16: a, 17: y, 18: F, 19: 18, 20: S, 21: w, 22: V, 23: _, 24: Y, 25: G, 26: Z, 27: v, 28: U, 29: z, 30: E, 31: R, 33: q, 35: T, 36: k, 37: 24, 38: p, 40: L }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: i, 15: s, 16: a, 17: y, 18: F, 19: 18, 20: S, 21: w, 22: V, 23: _, 24: Y, 25: G, 26: Z, 27: v, 28: U, 29: z, 30: E, 31: R, 33: q, 35: T, 36: k, 37: 24, 38: p, 40: L }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
1347
+ defaultActions: {},
1348
+ parseError: /* @__PURE__ */ d(function(c, g) {
1349
+ if (g.recoverable)
1350
+ this.trace(c);
1351
+ else {
1352
+ var b = new Error(c);
1353
+ throw b.hash = g, b;
1354
+ }
1355
+ }, "parseError"),
1356
+ parse: /* @__PURE__ */ d(function(c) {
1357
+ var g = this, b = [0], m = [], I = [null], o = [], W = this.table, u = "", K = 0, l = 0, O = 2, $ = 1, j = o.slice.call(arguments, 1), H = Object.create(this.lexer), J = { yy: {} };
1358
+ for (var h in this.yy)
1359
+ Object.prototype.hasOwnProperty.call(this.yy, h) && (J.yy[h] = this.yy[h]);
1360
+ H.setInput(c, J.yy), J.yy.lexer = H, J.yy.parser = this, typeof H.yylloc > "u" && (H.yylloc = {});
1361
+ var N = H.yylloc;
1362
+ o.push(N);
1363
+ var P = H.options && H.options.ranges;
1364
+ typeof J.yy.parseError == "function" ? this.parseError = J.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1365
+ function f(ot) {
1366
+ b.length = b.length - 2 * ot, I.length = I.length - ot, o.length = o.length - ot;
1367
+ }
1368
+ d(f, "popStack");
1369
+ function tt() {
1370
+ var ot;
1371
+ return ot = m.pop() || H.lex() || $, typeof ot != "number" && (ot instanceof Array && (m = ot, ot = m.pop()), ot = g.symbols_[ot] || ot), ot;
1372
+ }
1373
+ d(tt, "lex");
1374
+ for (var A, Q, X, st, at = {}, pt, ut, We, Zt; ; ) {
1375
+ if (Q = b[b.length - 1], this.defaultActions[Q] ? X = this.defaultActions[Q] : ((A === null || typeof A > "u") && (A = tt()), X = W[Q] && W[Q][A]), typeof X > "u" || !X.length || !X[0]) {
1376
+ var se = "";
1377
+ Zt = [];
1378
+ for (pt in W[Q])
1379
+ this.terminals_[pt] && pt > O && Zt.push("'" + this.terminals_[pt] + "'");
1380
+ H.showPosition ? se = "Parse error on line " + (K + 1) + `:
1381
+ ` + H.showPosition() + `
1382
+ Expecting ` + Zt.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : se = "Parse error on line " + (K + 1) + ": Unexpected " + (A == $ ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(se, {
1383
+ text: H.match,
1384
+ token: this.terminals_[A] || A,
1385
+ line: H.yylineno,
1386
+ loc: N,
1387
+ expected: Zt
1388
+ });
1389
+ }
1390
+ if (X[0] instanceof Array && X.length > 1)
1391
+ throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + A);
1392
+ switch (X[0]) {
1393
+ case 1:
1394
+ b.push(A), I.push(H.yytext), o.push(H.yylloc), b.push(X[1]), A = null, l = H.yyleng, u = H.yytext, K = H.yylineno, N = H.yylloc;
1395
+ break;
1396
+ case 2:
1397
+ if (ut = this.productions_[X[1]][1], at.$ = I[I.length - ut], at._$ = {
1398
+ first_line: o[o.length - (ut || 1)].first_line,
1399
+ last_line: o[o.length - 1].last_line,
1400
+ first_column: o[o.length - (ut || 1)].first_column,
1401
+ last_column: o[o.length - 1].last_column
1402
+ }, P && (at._$.range = [
1403
+ o[o.length - (ut || 1)].range[0],
1404
+ o[o.length - 1].range[1]
1405
+ ]), st = this.performAction.apply(at, [
1406
+ u,
1407
+ l,
1408
+ K,
1409
+ J.yy,
1410
+ X[1],
1411
+ I,
1412
+ o
1413
+ ].concat(j)), typeof st < "u")
1414
+ return st;
1415
+ ut && (b = b.slice(0, -1 * ut * 2), I = I.slice(0, -1 * ut), o = o.slice(0, -1 * ut)), b.push(this.productions_[X[1]][0]), I.push(at.$), o.push(at._$), We = W[b[b.length - 2]][b[b.length - 1]], b.push(We);
1416
+ break;
1417
+ case 3:
1418
+ return !0;
1419
+ }
1420
+ }
1421
+ return !0;
1422
+ }, "parse")
1423
+ }, C = /* @__PURE__ */ function() {
1424
+ var D = {
1425
+ EOF: 1,
1426
+ parseError: /* @__PURE__ */ d(function(g, b) {
1427
+ if (this.yy.parser)
1428
+ this.yy.parser.parseError(g, b);
1429
+ else
1430
+ throw new Error(g);
1431
+ }, "parseError"),
1432
+ // resets the lexer, sets new input
1433
+ setInput: /* @__PURE__ */ d(function(c, g) {
1434
+ return this.yy = g || this.yy || {}, this._input = c, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1435
+ first_line: 1,
1436
+ first_column: 0,
1437
+ last_line: 1,
1438
+ last_column: 0
1439
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1440
+ }, "setInput"),
1441
+ // consumes and returns one char from the input
1442
+ input: /* @__PURE__ */ d(function() {
1443
+ var c = this._input[0];
1444
+ this.yytext += c, this.yyleng++, this.offset++, this.match += c, this.matched += c;
1445
+ var g = c.match(/(?:\r\n?|\n).*/g);
1446
+ return g ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), c;
1447
+ }, "input"),
1448
+ // unshifts one char (or a string) into the input
1449
+ unput: /* @__PURE__ */ d(function(c) {
1450
+ var g = c.length, b = c.split(/(?:\r\n?|\n)/g);
1451
+ this._input = c + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - g), this.offset -= g;
1452
+ var m = this.match.split(/(?:\r\n?|\n)/g);
1453
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), b.length - 1 && (this.yylineno -= b.length - 1);
1454
+ var I = this.yylloc.range;
1455
+ return this.yylloc = {
1456
+ first_line: this.yylloc.first_line,
1457
+ last_line: this.yylineno + 1,
1458
+ first_column: this.yylloc.first_column,
1459
+ last_column: b ? (b.length === m.length ? this.yylloc.first_column : 0) + m[m.length - b.length].length - b[0].length : this.yylloc.first_column - g
1460
+ }, this.options.ranges && (this.yylloc.range = [I[0], I[0] + this.yyleng - g]), this.yyleng = this.yytext.length, this;
1461
+ }, "unput"),
1462
+ // When called from action, caches matched text and appends it on next action
1463
+ more: /* @__PURE__ */ d(function() {
1464
+ return this._more = !0, this;
1465
+ }, "more"),
1466
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1467
+ reject: /* @__PURE__ */ d(function() {
1468
+ if (this.options.backtrack_lexer)
1469
+ this._backtrack = !0;
1470
+ else
1471
+ 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).
1472
+ ` + this.showPosition(), {
1473
+ text: "",
1474
+ token: null,
1475
+ line: this.yylineno
1476
+ });
1477
+ return this;
1478
+ }, "reject"),
1479
+ // retain first n characters of the match
1480
+ less: /* @__PURE__ */ d(function(c) {
1481
+ this.unput(this.match.slice(c));
1482
+ }, "less"),
1483
+ // displays already matched input, i.e. for error messages
1484
+ pastInput: /* @__PURE__ */ d(function() {
1485
+ var c = this.matched.substr(0, this.matched.length - this.match.length);
1486
+ return (c.length > 20 ? "..." : "") + c.substr(-20).replace(/\n/g, "");
1487
+ }, "pastInput"),
1488
+ // displays upcoming input, i.e. for error messages
1489
+ upcomingInput: /* @__PURE__ */ d(function() {
1490
+ var c = this.match;
1491
+ return c.length < 20 && (c += this._input.substr(0, 20 - c.length)), (c.substr(0, 20) + (c.length > 20 ? "..." : "")).replace(/\n/g, "");
1492
+ }, "upcomingInput"),
1493
+ // displays the character position where the lexing error occurred, i.e. for error messages
1494
+ showPosition: /* @__PURE__ */ d(function() {
1495
+ var c = this.pastInput(), g = new Array(c.length + 1).join("-");
1496
+ return c + this.upcomingInput() + `
1497
+ ` + g + "^";
1498
+ }, "showPosition"),
1499
+ // test the lexed token: return FALSE when not a match, otherwise return token
1500
+ test_match: /* @__PURE__ */ d(function(c, g) {
1501
+ var b, m, I;
1502
+ if (this.options.backtrack_lexer && (I = {
1503
+ yylineno: this.yylineno,
1504
+ yylloc: {
1505
+ first_line: this.yylloc.first_line,
1506
+ last_line: this.last_line,
1507
+ first_column: this.yylloc.first_column,
1508
+ last_column: this.yylloc.last_column
1509
+ },
1510
+ yytext: this.yytext,
1511
+ match: this.match,
1512
+ matches: this.matches,
1513
+ matched: this.matched,
1514
+ yyleng: this.yyleng,
1515
+ offset: this.offset,
1516
+ _more: this._more,
1517
+ _input: this._input,
1518
+ yy: this.yy,
1519
+ conditionStack: this.conditionStack.slice(0),
1520
+ done: this.done
1521
+ }, this.options.ranges && (I.yylloc.range = this.yylloc.range.slice(0))), m = c[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
1522
+ first_line: this.yylloc.last_line,
1523
+ last_line: this.yylineno + 1,
1524
+ first_column: this.yylloc.last_column,
1525
+ last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + c[0].length
1526
+ }, this.yytext += c[0], this.match += c[0], this.matches = c, 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(c[0].length), this.matched += c[0], b = this.performAction.call(this, this.yy, this, g, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), b)
1527
+ return b;
1528
+ if (this._backtrack) {
1529
+ for (var o in I)
1530
+ this[o] = I[o];
1531
+ return !1;
1532
+ }
1533
+ return !1;
1534
+ }, "test_match"),
1535
+ // return next match in input
1536
+ next: /* @__PURE__ */ d(function() {
1537
+ if (this.done)
1538
+ return this.EOF;
1539
+ this._input || (this.done = !0);
1540
+ var c, g, b, m;
1541
+ this._more || (this.yytext = "", this.match = "");
1542
+ for (var I = this._currentRules(), o = 0; o < I.length; o++)
1543
+ if (b = this._input.match(this.rules[I[o]]), b && (!g || b[0].length > g[0].length)) {
1544
+ if (g = b, m = o, this.options.backtrack_lexer) {
1545
+ if (c = this.test_match(b, I[o]), c !== !1)
1546
+ return c;
1547
+ if (this._backtrack) {
1548
+ g = !1;
1549
+ continue;
1550
+ } else
1551
+ return !1;
1552
+ } else if (!this.options.flex)
1553
+ break;
1554
+ }
1555
+ return g ? (c = this.test_match(g, I[m]), c !== !1 ? c : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1556
+ ` + this.showPosition(), {
1557
+ text: "",
1558
+ token: null,
1559
+ line: this.yylineno
1560
+ });
1561
+ }, "next"),
1562
+ // return next match that has a token
1563
+ lex: /* @__PURE__ */ d(function() {
1564
+ var g = this.next();
1565
+ return g || this.lex();
1566
+ }, "lex"),
1567
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1568
+ begin: /* @__PURE__ */ d(function(g) {
1569
+ this.conditionStack.push(g);
1570
+ }, "begin"),
1571
+ // pop the previously active lexer condition state off the condition stack
1572
+ popState: /* @__PURE__ */ d(function() {
1573
+ var g = this.conditionStack.length - 1;
1574
+ return g > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1575
+ }, "popState"),
1576
+ // produce the lexer rule set which is active for the currently active lexer condition state
1577
+ _currentRules: /* @__PURE__ */ d(function() {
1578
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1579
+ }, "_currentRules"),
1580
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1581
+ topState: /* @__PURE__ */ d(function(g) {
1582
+ return g = this.conditionStack.length - 1 - Math.abs(g || 0), g >= 0 ? this.conditionStack[g] : "INITIAL";
1583
+ }, "topState"),
1584
+ // alias for begin(condition)
1585
+ pushState: /* @__PURE__ */ d(function(g) {
1586
+ this.begin(g);
1587
+ }, "pushState"),
1588
+ // return the number of states currently on the stack
1589
+ stateStackSize: /* @__PURE__ */ d(function() {
1590
+ return this.conditionStack.length;
1591
+ }, "stateStackSize"),
1592
+ options: { "case-insensitive": !0 },
1593
+ performAction: /* @__PURE__ */ d(function(g, b, m, I) {
1594
+ switch (m) {
1595
+ case 0:
1596
+ return this.begin("open_directive"), "open_directive";
1597
+ case 1:
1598
+ return this.begin("acc_title"), 31;
1599
+ case 2:
1600
+ return this.popState(), "acc_title_value";
1601
+ case 3:
1602
+ return this.begin("acc_descr"), 33;
1603
+ case 4:
1604
+ return this.popState(), "acc_descr_value";
1605
+ case 5:
1606
+ this.begin("acc_descr_multiline");
1607
+ break;
1608
+ case 6:
1609
+ this.popState();
1610
+ break;
1611
+ case 7:
1612
+ return "acc_descr_multiline_value";
1613
+ case 8:
1614
+ break;
1615
+ case 9:
1616
+ break;
1617
+ case 10:
1618
+ break;
1619
+ case 11:
1620
+ return 10;
1621
+ case 12:
1622
+ break;
1623
+ case 13:
1624
+ break;
1625
+ case 14:
1626
+ this.begin("href");
1627
+ break;
1628
+ case 15:
1629
+ this.popState();
1630
+ break;
1631
+ case 16:
1632
+ return 43;
1633
+ case 17:
1634
+ this.begin("callbackname");
1635
+ break;
1636
+ case 18:
1637
+ this.popState();
1638
+ break;
1639
+ case 19:
1640
+ this.popState(), this.begin("callbackargs");
1641
+ break;
1642
+ case 20:
1643
+ return 41;
1644
+ case 21:
1645
+ this.popState();
1646
+ break;
1647
+ case 22:
1648
+ return 42;
1649
+ case 23:
1650
+ this.begin("click");
1651
+ break;
1652
+ case 24:
1653
+ this.popState();
1654
+ break;
1655
+ case 25:
1656
+ return 40;
1657
+ case 26:
1658
+ return 4;
1659
+ case 27:
1660
+ return 22;
1661
+ case 28:
1662
+ return 23;
1663
+ case 29:
1664
+ return 24;
1665
+ case 30:
1666
+ return 25;
1667
+ case 31:
1668
+ return 26;
1669
+ case 32:
1670
+ return 28;
1671
+ case 33:
1672
+ return 27;
1673
+ case 34:
1674
+ return 29;
1675
+ case 35:
1676
+ return 12;
1677
+ case 36:
1678
+ return 13;
1679
+ case 37:
1680
+ return 14;
1681
+ case 38:
1682
+ return 15;
1683
+ case 39:
1684
+ return 16;
1685
+ case 40:
1686
+ return 17;
1687
+ case 41:
1688
+ return 18;
1689
+ case 42:
1690
+ return 20;
1691
+ case 43:
1692
+ return 21;
1693
+ case 44:
1694
+ return "date";
1695
+ case 45:
1696
+ return 30;
1697
+ case 46:
1698
+ return "accDescription";
1699
+ case 47:
1700
+ return 36;
1701
+ case 48:
1702
+ return 38;
1703
+ case 49:
1704
+ return 39;
1705
+ case 50:
1706
+ return ":";
1707
+ case 51:
1708
+ return 6;
1709
+ case 52:
1710
+ return "INVALID";
1711
+ }
1712
+ }, "anonymous"),
1713
+ rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:weekend\s+friday\b)/i, /^(?:weekend\s+saturday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^\n]+)/i, /^(?:[^:\n]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
1714
+ conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, callbackargs: { rules: [21, 22], inclusive: !1 }, callbackname: { rules: [18, 19, 20], inclusive: !1 }, href: { rules: [15, 16], inclusive: !1 }, click: { rules: [24, 25], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 17, 23, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52], inclusive: !0 } }
1715
+ };
1716
+ return D;
1717
+ }();
1718
+ x.lexer = C;
1719
+ function M() {
1720
+ this.yy = {};
1721
+ }
1722
+ return d(M, "Parser"), M.prototype = x, x.Parser = M, new M();
1723
+ }();
1724
+ Te.parser = Te;
1725
+ var Ni = Te;
1726
+ it.extend(Ii);
1727
+ it.extend(Ai);
1728
+ it.extend(Oi);
1729
+ var je = { friday: 5, saturday: 6 }, lt = "", Ce = "", Se = void 0, _e = "", Lt = [], At = [], Ye = /* @__PURE__ */ new Map(), Fe = [], ee = [], Wt = "", Ue = "", Cn = ["active", "done", "crit", "milestone", "vert"], Ee = [], _t = "", Bt = !1, Ie = !1, Le = "sunday", ne = "saturday", xe = 0, Vi = /* @__PURE__ */ d(function() {
1730
+ Fe = [], ee = [], Wt = "", Ee = [], jt = 0, we = void 0, Qt = void 0, et = [], lt = "", Ce = "", Ue = "", Se = void 0, _e = "", Lt = [], At = [], Bt = !1, Ie = !1, xe = 0, Ye = /* @__PURE__ */ new Map(), _t = "", Zn(), Le = "sunday", ne = "saturday";
1731
+ }, "clear"), Pi = /* @__PURE__ */ d(function(t) {
1732
+ _t = t;
1733
+ }, "setDiagramId"), zi = /* @__PURE__ */ d(function(t) {
1734
+ Ce = t;
1735
+ }, "setAxisFormat"), Ri = /* @__PURE__ */ d(function() {
1736
+ return Ce;
1737
+ }, "getAxisFormat"), Bi = /* @__PURE__ */ d(function(t) {
1738
+ Se = t;
1739
+ }, "setTickInterval"), Zi = /* @__PURE__ */ d(function() {
1740
+ return Se;
1741
+ }, "getTickInterval"), Xi = /* @__PURE__ */ d(function(t) {
1742
+ _e = t;
1743
+ }, "setTodayMarker"), Gi = /* @__PURE__ */ d(function() {
1744
+ return _e;
1745
+ }, "getTodayMarker"), qi = /* @__PURE__ */ d(function(t) {
1746
+ lt = t;
1747
+ }, "setDateFormat"), ji = /* @__PURE__ */ d(function() {
1748
+ Bt = !0;
1749
+ }, "enableInclusiveEndDates"), Qi = /* @__PURE__ */ d(function() {
1750
+ return Bt;
1751
+ }, "endDatesAreInclusive"), Ji = /* @__PURE__ */ d(function() {
1752
+ Ie = !0;
1753
+ }, "enableTopAxis"), Ki = /* @__PURE__ */ d(function() {
1754
+ return Ie;
1755
+ }, "topAxisEnabled"), ts = /* @__PURE__ */ d(function(t) {
1756
+ Ue = t;
1757
+ }, "setDisplayMode"), es = /* @__PURE__ */ d(function() {
1758
+ return Ue;
1759
+ }, "getDisplayMode"), ns = /* @__PURE__ */ d(function() {
1760
+ return lt;
1761
+ }, "getDateFormat"), Sn = /* @__PURE__ */ d((t, e) => {
1762
+ const n = e.toLowerCase().split(/[\s,]+/).filter((r) => r !== "");
1763
+ return [.../* @__PURE__ */ new Set([...t, ...n])];
1764
+ }, "mergeTokens"), rs = /* @__PURE__ */ d(function(t) {
1765
+ Lt = Sn(Lt, t);
1766
+ }, "setIncludes"), is = /* @__PURE__ */ d(function() {
1767
+ return Lt;
1768
+ }, "getIncludes"), ss = /* @__PURE__ */ d(function(t) {
1769
+ At = Sn(At, t);
1770
+ }, "setExcludes"), as = /* @__PURE__ */ d(function() {
1771
+ return At;
1772
+ }, "getExcludes"), os = /* @__PURE__ */ d(function() {
1773
+ return Ye;
1774
+ }, "getLinks"), cs = /* @__PURE__ */ d(function(t) {
1775
+ Wt = t, Fe.push(t);
1776
+ }, "addSection"), us = /* @__PURE__ */ d(function() {
1777
+ return Fe;
1778
+ }, "getSections"), ls = /* @__PURE__ */ d(function() {
1779
+ let t = Qe();
1780
+ const e = 10;
1781
+ let n = 0;
1782
+ for (; !t && n < e; )
1783
+ t = Qe(), n++;
1784
+ return ee = et, ee;
1785
+ }, "getTasks"), _n = /* @__PURE__ */ d(function(t, e, n, r) {
1786
+ const i = t.format(e.trim()), s = t.format("YYYY-MM-DD");
1787
+ return r.includes(i) || r.includes(s) ? !1 : n.includes("weekends") && (t.isoWeekday() === je[ne] || t.isoWeekday() === je[ne] + 1) || n.includes(t.format("dddd").toLowerCase()) ? !0 : n.includes(i) || n.includes(s);
1788
+ }, "isInvalidDate"), fs = /* @__PURE__ */ d(function(t) {
1789
+ Le = t;
1790
+ }, "setWeekday"), ds = /* @__PURE__ */ d(function() {
1791
+ return Le;
1792
+ }, "getWeekday"), hs = /* @__PURE__ */ d(function(t) {
1793
+ ne = t;
1794
+ }, "setWeekend"), Yn = /* @__PURE__ */ d(function(t, e, n, r) {
1795
+ if (!n.length || t.manualEndTime)
1796
+ return;
1797
+ let i;
1798
+ t.startTime instanceof Date ? i = it(t.startTime) : i = it(t.startTime, e, !0), i = i.add(1, "d");
1799
+ let s;
1800
+ t.endTime instanceof Date ? s = it(t.endTime) : s = it(t.endTime, e, !0);
1801
+ const [a, y] = ms(
1802
+ i,
1803
+ s,
1804
+ e,
1805
+ n,
1806
+ r
1807
+ );
1808
+ t.endTime = a.toDate(), t.renderEndTime = y;
1809
+ }, "checkTaskDates"), ms = /* @__PURE__ */ d(function(t, e, n, r, i) {
1810
+ let s = !1, a = null;
1811
+ const y = e.add(1e4, "d");
1812
+ for (; t <= e; ) {
1813
+ if (s || (a = e.toDate()), s = _n(t, n, r, i), s && (e = e.add(1, "d"), e > y))
1814
+ throw new Error(
1815
+ "Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations."
1816
+ );
1817
+ t = t.add(1, "d");
1818
+ }
1819
+ return [e, a];
1820
+ }, "fixTaskDates"), be = /* @__PURE__ */ d(function(t, e, n) {
1821
+ if (n = n.trim(), (/* @__PURE__ */ d((y) => {
1822
+ const F = y.trim();
1823
+ return F === "x" || F === "X";
1824
+ }, "isTimestampFormat"))(e) && /^\d+$/.test(n))
1825
+ return new Date(Number(n));
1826
+ const s = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
1827
+ if (s !== null) {
1828
+ let y = null;
1829
+ for (const S of s.groups.ids.split(" ")) {
1830
+ let w = Ct(S);
1831
+ w !== void 0 && (!y || w.endTime > y.endTime) && (y = w);
1832
+ }
1833
+ if (y)
1834
+ return y.endTime;
1835
+ const F = /* @__PURE__ */ new Date();
1836
+ return F.setHours(0, 0, 0, 0), F;
1837
+ }
1838
+ let a = it(n, e.trim(), !0);
1839
+ if (a.isValid())
1840
+ return a.toDate();
1841
+ {
1842
+ Tt.debug("Invalid date:" + n), Tt.debug("With date format:" + e.trim());
1843
+ const y = new Date(n);
1844
+ if (y === void 0 || isNaN(y.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
1845
+ // huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
1846
+ // This can cause virtually infinite loops while rendering, so for the
1847
+ // purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
1848
+ // invalid.
1849
+ y.getFullYear() < -1e4 || y.getFullYear() > 1e4)
1850
+ throw new Error("Invalid date:" + n);
1851
+ return y;
1852
+ }
1853
+ }, "getStartDate"), Fn = /* @__PURE__ */ d(function(t) {
1854
+ const e = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());
1855
+ return e !== null ? [Number.parseFloat(e[1]), e[2]] : [NaN, "ms"];
1856
+ }, "parseDuration"), Un = /* @__PURE__ */ d(function(t, e, n, r = !1) {
1857
+ n = n.trim();
1858
+ const s = /^until\s+(?<ids>[\d\w- ]+)/.exec(n);
1859
+ if (s !== null) {
1860
+ let w = null;
1861
+ for (const _ of s.groups.ids.split(" ")) {
1862
+ let Y = Ct(_);
1863
+ Y !== void 0 && (!w || Y.startTime < w.startTime) && (w = Y);
1864
+ }
1865
+ if (w)
1866
+ return w.startTime;
1867
+ const V = /* @__PURE__ */ new Date();
1868
+ return V.setHours(0, 0, 0, 0), V;
1869
+ }
1870
+ let a = it(n, e.trim(), !0);
1871
+ if (a.isValid())
1872
+ return r && (a = a.add(1, "d")), a.toDate();
1873
+ let y = it(t);
1874
+ const [F, S] = Fn(n);
1875
+ if (!Number.isNaN(F)) {
1876
+ const w = y.add(F, S);
1877
+ w.isValid() && (y = w);
1878
+ }
1879
+ return y.toDate();
1880
+ }, "getEndDate"), jt = 0, Ut = /* @__PURE__ */ d(function(t) {
1881
+ return t === void 0 ? (jt = jt + 1, "task" + jt) : t;
1882
+ }, "parseId"), gs = /* @__PURE__ */ d(function(t, e) {
1883
+ let n;
1884
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1885
+ const r = n.split(","), i = {};
1886
+ Ae(r, i, Cn);
1887
+ for (let a = 0; a < r.length; a++)
1888
+ r[a] = r[a].trim();
1889
+ let s = "";
1890
+ switch (r.length) {
1891
+ case 1:
1892
+ i.id = Ut(), i.startTime = t.endTime, s = r[0];
1893
+ break;
1894
+ case 2:
1895
+ i.id = Ut(), i.startTime = be(void 0, lt, r[0]), s = r[1];
1896
+ break;
1897
+ case 3:
1898
+ i.id = Ut(r[0]), i.startTime = be(void 0, lt, r[1]), s = r[2];
1899
+ break;
1900
+ }
1901
+ return s && (i.endTime = Un(i.startTime, lt, s, Bt), i.manualEndTime = it(s, "YYYY-MM-DD", !0).isValid(), Yn(i, lt, At, Lt)), i;
1902
+ }, "compileData"), ys = /* @__PURE__ */ d(function(t, e) {
1903
+ let n;
1904
+ e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
1905
+ const r = n.split(","), i = {};
1906
+ Ae(r, i, Cn);
1907
+ for (let s = 0; s < r.length; s++)
1908
+ r[s] = r[s].trim();
1909
+ switch (r.length) {
1910
+ case 1:
1911
+ i.id = Ut(), i.startTime = {
1912
+ type: "prevTaskEnd",
1913
+ id: t
1914
+ }, i.endTime = {
1915
+ data: r[0]
1916
+ };
1917
+ break;
1918
+ case 2:
1919
+ i.id = Ut(), i.startTime = {
1920
+ type: "getStartDate",
1921
+ startData: r[0]
1922
+ }, i.endTime = {
1923
+ data: r[1]
1924
+ };
1925
+ break;
1926
+ case 3:
1927
+ i.id = Ut(r[0]), i.startTime = {
1928
+ type: "getStartDate",
1929
+ startData: r[1]
1930
+ }, i.endTime = {
1931
+ data: r[2]
1932
+ };
1933
+ break;
1934
+ }
1935
+ return i;
1936
+ }, "parseData"), we, Qt, et = [], En = {}, ks = /* @__PURE__ */ d(function(t, e) {
1937
+ const n = {
1938
+ section: Wt,
1939
+ type: Wt,
1940
+ processed: !1,
1941
+ manualEndTime: !1,
1942
+ renderEndTime: null,
1943
+ raw: { data: e },
1944
+ task: t,
1945
+ classes: []
1946
+ }, r = ys(Qt, e);
1947
+ n.raw.startTime = r.startTime, n.raw.endTime = r.endTime, n.id = r.id, n.prevTaskId = Qt, 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 = xe, xe++);
1948
+ const i = et.push(n);
1949
+ Qt = n.id, En[n.id] = i - 1;
1950
+ }, "addTask"), Ct = /* @__PURE__ */ d(function(t) {
1951
+ const e = En[t];
1952
+ return et[e];
1953
+ }, "findTaskById"), ps = /* @__PURE__ */ d(function(t, e) {
1954
+ const n = {
1955
+ section: Wt,
1956
+ type: Wt,
1957
+ description: t,
1958
+ task: t,
1959
+ classes: []
1960
+ }, r = gs(we, e);
1961
+ 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, we = n, ee.push(n);
1962
+ }, "addTaskOrg"), Qe = /* @__PURE__ */ d(function() {
1963
+ const t = /* @__PURE__ */ d(function(n) {
1964
+ const r = et[n];
1965
+ let i = "";
1966
+ switch (et[n].raw.startTime.type) {
1967
+ case "prevTaskEnd": {
1968
+ const s = Ct(r.prevTaskId);
1969
+ r.startTime = s.endTime;
1970
+ break;
1971
+ }
1972
+ case "getStartDate":
1973
+ i = be(void 0, lt, et[n].raw.startTime.startData), i && (et[n].startTime = i);
1974
+ break;
1975
+ }
1976
+ return et[n].startTime && (et[n].endTime = Un(
1977
+ et[n].startTime,
1978
+ lt,
1979
+ et[n].raw.endTime.data,
1980
+ Bt
1981
+ ), et[n].endTime && (et[n].processed = !0, et[n].manualEndTime = it(
1982
+ et[n].raw.endTime.data,
1983
+ "YYYY-MM-DD",
1984
+ !0
1985
+ ).isValid(), Yn(et[n], lt, At, Lt))), et[n].processed;
1986
+ }, "compileTask");
1987
+ let e = !0;
1988
+ for (const [n, r] of et.entries())
1989
+ t(n), e = e && r.processed;
1990
+ return e;
1991
+ }, "compileTasks"), vs = /* @__PURE__ */ d(function(t, e) {
1992
+ let n = e;
1993
+ Yt().securityLevel !== "loose" && (n = Bn(e)), t.split(",").forEach(function(r) {
1994
+ Ct(r) !== void 0 && (Ln(r, () => {
1995
+ window.open(n, "_self");
1996
+ }), Ye.set(r, n));
1997
+ }), In(t, "clickable");
1998
+ }, "setLink"), In = /* @__PURE__ */ d(function(t, e) {
1999
+ t.split(",").forEach(function(n) {
2000
+ let r = Ct(n);
2001
+ r !== void 0 && r.classes.push(e);
2002
+ });
2003
+ }, "setClass"), Ts = /* @__PURE__ */ d(function(t, e, n) {
2004
+ if (Yt().securityLevel !== "loose" || e === void 0)
2005
+ return;
2006
+ let r = [];
2007
+ if (typeof n == "string") {
2008
+ r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2009
+ for (let s = 0; s < r.length; s++) {
2010
+ let a = r[s].trim();
2011
+ a.startsWith('"') && a.endsWith('"') && (a = a.substr(1, a.length - 2)), r[s] = a;
2012
+ }
2013
+ }
2014
+ r.length === 0 && r.push(t), Ct(t) !== void 0 && Ln(t, () => {
2015
+ Xn.runFunc(e, ...r);
2016
+ });
2017
+ }, "setClickFun"), Ln = /* @__PURE__ */ d(function(t, e) {
2018
+ Ee.push(
2019
+ function() {
2020
+ const n = _t ? `${_t}-${t}` : t, r = document.querySelector(`[id="${n}"]`);
2021
+ r !== null && r.addEventListener("click", function() {
2022
+ e();
2023
+ });
2024
+ },
2025
+ function() {
2026
+ const n = _t ? `${_t}-${t}` : t, r = document.querySelector(`[id="${n}-text"]`);
2027
+ r !== null && r.addEventListener("click", function() {
2028
+ e();
2029
+ });
2030
+ }
2031
+ );
2032
+ }, "pushFun"), xs = /* @__PURE__ */ d(function(t, e, n) {
2033
+ t.split(",").forEach(function(r) {
2034
+ Ts(r, e, n);
2035
+ }), In(t, "clickable");
2036
+ }, "setClickEvent"), bs = /* @__PURE__ */ d(function(t) {
2037
+ Ee.forEach(function(e) {
2038
+ e(t);
2039
+ });
2040
+ }, "bindFunctions"), ws = {
2041
+ getConfig: /* @__PURE__ */ d(() => Yt().gantt, "getConfig"),
2042
+ clear: Vi,
2043
+ setDateFormat: qi,
2044
+ getDateFormat: ns,
2045
+ enableInclusiveEndDates: ji,
2046
+ endDatesAreInclusive: Qi,
2047
+ enableTopAxis: Ji,
2048
+ topAxisEnabled: Ki,
2049
+ setAxisFormat: zi,
2050
+ getAxisFormat: Ri,
2051
+ setTickInterval: Bi,
2052
+ getTickInterval: Zi,
2053
+ setTodayMarker: Xi,
2054
+ getTodayMarker: Gi,
2055
+ setAccTitle: Pn,
2056
+ getAccTitle: Vn,
2057
+ setDiagramTitle: Nn,
2058
+ getDiagramTitle: Hn,
2059
+ setDiagramId: Pi,
2060
+ setDisplayMode: ts,
2061
+ getDisplayMode: es,
2062
+ setAccDescription: $n,
2063
+ getAccDescription: On,
2064
+ addSection: cs,
2065
+ getSections: us,
2066
+ getTasks: ls,
2067
+ addTask: ks,
2068
+ findTaskById: Ct,
2069
+ addTaskOrg: ps,
2070
+ setIncludes: rs,
2071
+ getIncludes: is,
2072
+ setExcludes: ss,
2073
+ getExcludes: as,
2074
+ setClickEvent: xs,
2075
+ setLink: vs,
2076
+ getLinks: os,
2077
+ bindFunctions: bs,
2078
+ parseDuration: Fn,
2079
+ isInvalidDate: _n,
2080
+ setWeekday: fs,
2081
+ getWeekday: ds,
2082
+ setWeekend: hs
2083
+ };
2084
+ function Ae(t, e, n) {
2085
+ let r = !0;
2086
+ for (; r; )
2087
+ r = !1, n.forEach(function(i) {
2088
+ const s = "^\\s*" + i + "\\s*$", a = new RegExp(s);
2089
+ t[0].match(a) && (e[i] = !0, t.shift(1), r = !0);
2090
+ });
2091
+ }
2092
+ d(Ae, "getTaskTags");
2093
+ it.extend(Hi);
2094
+ var Ds = /* @__PURE__ */ d(function() {
2095
+ Tt.debug("Something is calling, setConf, remove the call");
2096
+ }, "setConf"), Je = {
2097
+ monday: Pt,
2098
+ tuesday: dn,
2099
+ wednesday: hn,
2100
+ thursday: bt,
2101
+ friday: mn,
2102
+ saturday: gn,
2103
+ sunday: Rt
2104
+ }, Ms = /* @__PURE__ */ d((t, e) => {
2105
+ let n = [...t].map(() => -1 / 0), r = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0;
2106
+ for (const s of r)
2107
+ for (let a = 0; a < n.length; a++)
2108
+ if (s.startTime >= n[a]) {
2109
+ n[a] = s.endTime, s.order = a + e, a > i && (i = a);
2110
+ break;
2111
+ }
2112
+ return i;
2113
+ }, "getMaxIntersections"), dt, ke = 1e4, Cs = /* @__PURE__ */ d(function(t, e, n, r) {
2114
+ const i = Yt().gantt;
2115
+ r.db.setDiagramId(e);
2116
+ const s = Yt().securityLevel;
2117
+ let a;
2118
+ s === "sandbox" && (a = Xt("#i" + e));
2119
+ const y = s === "sandbox" ? Xt(a.nodes()[0].contentDocument.body) : Xt("body"), F = s === "sandbox" ? a.nodes()[0].contentDocument : document, S = F.getElementById(e);
2120
+ dt = S.parentElement.offsetWidth, dt === void 0 && (dt = 1200), i.useWidth !== void 0 && (dt = i.useWidth);
2121
+ const w = r.db.getTasks(), V = w.filter((x) => !x.vert);
2122
+ let _ = [];
2123
+ for (const x of V)
2124
+ _.push(x.type);
2125
+ _ = L(_);
2126
+ const Y = {};
2127
+ let G = 2 * i.topPadding;
2128
+ if (r.db.getDisplayMode() === "compact" || i.displayMode === "compact") {
2129
+ const x = {};
2130
+ for (const M of V)
2131
+ x[M.section] === void 0 ? x[M.section] = [M] : x[M.section].push(M);
2132
+ let C = 0;
2133
+ for (const M of Object.keys(x)) {
2134
+ const D = Ms(x[M], C) + 1;
2135
+ C += D, G += D * (i.barHeight + i.barGap), Y[M] = D;
2136
+ }
2137
+ } else {
2138
+ G += V.length * (i.barHeight + i.barGap);
2139
+ for (const x of _)
2140
+ Y[x] = V.filter((C) => C.type === x).length;
2141
+ }
2142
+ S.setAttribute("viewBox", "0 0 " + dt + " " + G);
2143
+ const Z = y.select(`[id="${e}"]`), v = Ui().domain([
2144
+ tr(w, function(x) {
2145
+ return x.startTime;
2146
+ }),
2147
+ Kn(w, function(x) {
2148
+ return x.endTime;
2149
+ })
2150
+ ]).rangeRound([0, dt - i.leftPadding - i.rightPadding]);
2151
+ function U(x, C) {
2152
+ const M = x.startTime, D = C.startTime;
2153
+ let c = 0;
2154
+ return M > D ? c = 1 : M < D && (c = -1), c;
2155
+ }
2156
+ d(U, "taskCompare"), w.sort(U), z(w, dt, G), zn(Z, G, dt, i.useMaxWidth), Z.append("text").text(r.db.getDiagramTitle()).attr("x", dt / 2).attr("y", i.titleTopMargin).attr("class", "titleText");
2157
+ function z(x, C, M) {
2158
+ const D = i.barHeight, c = D + i.barGap, g = i.topPadding, b = i.leftPadding, m = Qn().domain([0, _.length]).range(["#00B9FA", "#F95002"]).interpolate(gr);
2159
+ R(
2160
+ c,
2161
+ g,
2162
+ b,
2163
+ C,
2164
+ M,
2165
+ x,
2166
+ r.db.getExcludes(),
2167
+ r.db.getIncludes()
2168
+ ), T(b, g, C, M), E(x, c, g, b, D, m, C), k(c, g), p(b, g, C, M);
2169
+ }
2170
+ d(z, "makeGantt");
2171
+ function E(x, C, M, D, c, g, b) {
2172
+ x.sort((l, O) => l.vert === O.vert ? 0 : l.vert ? 1 : -1);
2173
+ const m = x.filter((l) => !l.vert), o = [...new Set(m.map((l) => l.order))].map(
2174
+ (l) => m.find((O) => O.order === l)
2175
+ );
2176
+ Z.append("g").selectAll("rect").data(o).enter().append("rect").attr("x", 0).attr("y", function(l, O) {
2177
+ return O = l.order, O * C + M - 2;
2178
+ }).attr("width", function() {
2179
+ return b - i.rightPadding / 2;
2180
+ }).attr("height", C).attr("class", function(l) {
2181
+ for (const [O, $] of _.entries())
2182
+ if (l.type === $)
2183
+ return "section section" + O % i.numberSectionStyles;
2184
+ return "section section0";
2185
+ }).enter();
2186
+ const W = Z.append("g").selectAll("rect").data(x).enter(), u = r.db.getLinks();
2187
+ if (W.append("rect").attr("id", function(l) {
2188
+ return e + "-" + l.id;
2189
+ }).attr("rx", 3).attr("ry", 3).attr("x", function(l) {
2190
+ return l.milestone ? v(l.startTime) + D + 0.5 * (v(l.endTime) - v(l.startTime)) - 0.5 * c : v(l.startTime) + D;
2191
+ }).attr("y", function(l, O) {
2192
+ return O = l.order, l.vert ? i.gridLineStartPadding : O * C + M;
2193
+ }).attr("width", function(l) {
2194
+ return l.milestone ? c : l.vert ? 0.08 * c : v(l.renderEndTime || l.endTime) - v(l.startTime);
2195
+ }).attr("height", function(l) {
2196
+ return l.vert ? m.length * (i.barHeight + i.barGap) + i.barHeight * 2 : c;
2197
+ }).attr("transform-origin", function(l, O) {
2198
+ return O = l.order, (v(l.startTime) + D + 0.5 * (v(l.endTime) - v(l.startTime))).toString() + "px " + (O * C + M + 0.5 * c).toString() + "px";
2199
+ }).attr("class", function(l) {
2200
+ const O = "task";
2201
+ let $ = "";
2202
+ l.classes.length > 0 && ($ = l.classes.join(" "));
2203
+ let j = 0;
2204
+ for (const [J, h] of _.entries())
2205
+ l.type === h && (j = J % i.numberSectionStyles);
2206
+ let H = "";
2207
+ return l.active ? l.crit ? H += " activeCrit" : H = " active" : l.done ? l.crit ? H = " doneCrit" : H = " done" : l.crit && (H += " crit"), H.length === 0 && (H = " task"), l.milestone && (H = " milestone " + H), l.vert && (H = " vert " + H), H += j, H += " " + $, O + H;
2208
+ }), W.append("text").attr("id", function(l) {
2209
+ return e + "-" + l.id + "-text";
2210
+ }).text(function(l) {
2211
+ return l.task;
2212
+ }).attr("font-size", i.fontSize).attr("x", function(l) {
2213
+ let O = v(l.startTime), $ = v(l.renderEndTime || l.endTime);
2214
+ if (l.milestone && (O += 0.5 * (v(l.endTime) - v(l.startTime)) - 0.5 * c, $ = O + c), l.vert)
2215
+ return v(l.startTime) + D;
2216
+ const j = this.getBBox().width;
2217
+ return j > $ - O ? $ + j + 1.5 * i.leftPadding > b ? O + D - 5 : $ + D + 5 : ($ - O) / 2 + O + D;
2218
+ }).attr("y", function(l, O) {
2219
+ return l.vert ? i.gridLineStartPadding + m.length * (i.barHeight + i.barGap) + 60 : (O = l.order, O * C + i.barHeight / 2 + (i.fontSize / 2 - 2) + M);
2220
+ }).attr("text-height", c).attr("class", function(l) {
2221
+ const O = v(l.startTime);
2222
+ let $ = v(l.endTime);
2223
+ l.milestone && ($ = O + c);
2224
+ const j = this.getBBox().width;
2225
+ let H = "";
2226
+ l.classes.length > 0 && (H = l.classes.join(" "));
2227
+ let J = 0;
2228
+ for (const [N, P] of _.entries())
2229
+ l.type === P && (J = N % i.numberSectionStyles);
2230
+ let h = "";
2231
+ return l.active && (l.crit ? h = "activeCritText" + J : h = "activeText" + J), l.done ? l.crit ? h = h + " doneCritText" + J : h = h + " doneText" + J : l.crit && (h = h + " critText" + J), l.milestone && (h += " milestoneText"), l.vert && (h += " vertText"), j > $ - O ? $ + j + 1.5 * i.leftPadding > b ? H + " taskTextOutsideLeft taskTextOutside" + J + " " + h : H + " taskTextOutsideRight taskTextOutside" + J + " " + h + " width-" + j : H + " taskText taskText" + J + " " + h + " width-" + j;
2232
+ }), Yt().securityLevel === "sandbox") {
2233
+ let l;
2234
+ l = Xt("#i" + e);
2235
+ const O = l.nodes()[0].contentDocument;
2236
+ W.filter(function($) {
2237
+ return u.has($.id);
2238
+ }).each(function($) {
2239
+ var j = O.querySelector("#" + CSS.escape(e + "-" + $.id)), H = O.querySelector("#" + CSS.escape(e + "-" + $.id + "-text"));
2240
+ const J = j.parentNode;
2241
+ var h = O.createElement("a");
2242
+ h.setAttribute("xlink:href", u.get($.id)), h.setAttribute("target", "_top"), J.appendChild(h), h.appendChild(j), h.appendChild(H);
2243
+ });
2244
+ }
2245
+ }
2246
+ d(E, "drawRects");
2247
+ function R(x, C, M, D, c, g, b, m) {
2248
+ if (b.length === 0 && m.length === 0)
2249
+ return;
2250
+ let I, o;
2251
+ for (const { startTime: $, endTime: j } of g)
2252
+ (I === void 0 || $ < I) && (I = $), (o === void 0 || j > o) && (o = j);
2253
+ if (!I || !o)
2254
+ return;
2255
+ if (it(o).diff(it(I), "year") > 5) {
2256
+ Tt.warn(
2257
+ "The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
2258
+ );
2259
+ return;
2260
+ }
2261
+ const W = r.db.getDateFormat(), u = [];
2262
+ let K = null, l = it(I);
2263
+ for (; l.valueOf() <= o; )
2264
+ r.db.isInvalidDate(l, W, b, m) ? K ? K.end = l : K = {
2265
+ start: l,
2266
+ end: l
2267
+ } : K && (u.push(K), K = null), l = l.add(1, "d");
2268
+ Z.append("g").selectAll("rect").data(u).enter().append("rect").attr("id", ($) => e + "-exclude-" + $.start.format("YYYY-MM-DD")).attr("x", ($) => v($.start.startOf("day")) + M).attr("y", i.gridLineStartPadding).attr("width", ($) => v($.end.endOf("day")) - v($.start.startOf("day"))).attr("height", c - C - i.gridLineStartPadding).attr("transform-origin", function($, j) {
2269
+ return (v($.start) + M + 0.5 * (v($.end) - v($.start))).toString() + "px " + (j * x + 0.5 * c).toString() + "px";
2270
+ }).attr("class", "exclude-range");
2271
+ }
2272
+ d(R, "drawExcludeDays");
2273
+ function q(x, C, M, D) {
2274
+ if (M <= 0 || x > C)
2275
+ return 1 / 0;
2276
+ const c = C - x, g = it.duration({ [D ?? "day"]: M }).asMilliseconds();
2277
+ return g <= 0 ? 1 / 0 : Math.ceil(c / g);
2278
+ }
2279
+ d(q, "getEstimatedTickCount");
2280
+ function T(x, C, M, D) {
2281
+ const c = r.db.getDateFormat(), g = r.db.getAxisFormat();
2282
+ let b;
2283
+ g ? b = g : c === "D" ? b = "%d" : b = i.axisFormat ?? "%Y-%m-%d";
2284
+ let m = cr(v).tickSize(-D + C + i.gridLineStartPadding).tickFormat(te(b));
2285
+ const o = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(
2286
+ r.db.getTickInterval() || i.tickInterval
2287
+ );
2288
+ if (o !== null) {
2289
+ const W = parseInt(o[1], 10);
2290
+ if (isNaN(W) || W <= 0)
2291
+ Tt.warn(
2292
+ `Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`
2293
+ );
2294
+ else {
2295
+ const u = o[2], K = r.db.getWeekday() || i.weekday, l = v.domain(), O = l[0], $ = l[1], j = q(O, $, W, u);
2296
+ if (j > ke)
2297
+ Tt.warn(
2298
+ `The tick interval "${W}${u}" would generate ${j} ticks, which exceeds the maximum allowed (${ke}). This may indicate an invalid date or time range. Skipping custom tick interval.`
2299
+ );
2300
+ else
2301
+ switch (u) {
2302
+ case "millisecond":
2303
+ m.ticks(Et.every(W));
2304
+ break;
2305
+ case "second":
2306
+ m.ticks(vt.every(W));
2307
+ break;
2308
+ case "minute":
2309
+ m.ticks(Nt.every(W));
2310
+ break;
2311
+ case "hour":
2312
+ m.ticks(Vt.every(W));
2313
+ break;
2314
+ case "day":
2315
+ m.ticks(xt.every(W));
2316
+ break;
2317
+ case "week":
2318
+ m.ticks(Je[K].every(W));
2319
+ break;
2320
+ case "month":
2321
+ m.ticks(zt.every(W));
2322
+ break;
2323
+ }
2324
+ }
2325
+ }
2326
+ if (Z.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + (D - 50) + ")").call(m).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), r.db.topAxisEnabled() || i.topAxis) {
2327
+ let W = or(v).tickSize(-D + C + i.gridLineStartPadding).tickFormat(te(b));
2328
+ if (o !== null) {
2329
+ const u = parseInt(o[1], 10);
2330
+ if (isNaN(u) || u <= 0)
2331
+ Tt.warn(
2332
+ `Invalid tick interval value: "${o[1]}". Skipping custom tick interval.`
2333
+ );
2334
+ else {
2335
+ const K = o[2], l = r.db.getWeekday() || i.weekday, O = v.domain(), $ = O[0], j = O[1];
2336
+ if (q($, j, u, K) <= ke)
2337
+ switch (K) {
2338
+ case "millisecond":
2339
+ W.ticks(Et.every(u));
2340
+ break;
2341
+ case "second":
2342
+ W.ticks(vt.every(u));
2343
+ break;
2344
+ case "minute":
2345
+ W.ticks(Nt.every(u));
2346
+ break;
2347
+ case "hour":
2348
+ W.ticks(Vt.every(u));
2349
+ break;
2350
+ case "day":
2351
+ W.ticks(xt.every(u));
2352
+ break;
2353
+ case "week":
2354
+ W.ticks(Je[l].every(u));
2355
+ break;
2356
+ case "month":
2357
+ W.ticks(zt.every(u));
2358
+ break;
2359
+ }
2360
+ }
2361
+ }
2362
+ Z.append("g").attr("class", "grid").attr("transform", "translate(" + x + ", " + C + ")").call(W).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
2363
+ }
2364
+ }
2365
+ d(T, "makeGrid");
2366
+ function k(x, C) {
2367
+ let M = 0;
2368
+ const D = Object.keys(Y).map((c) => [c, Y[c]]);
2369
+ Z.append("g").selectAll("text").data(D).enter().append(function(c) {
2370
+ const g = c[0].split(Rn.lineBreakRegex), b = -(g.length - 1) / 2, m = F.createElementNS("http://www.w3.org/2000/svg", "text");
2371
+ m.setAttribute("dy", b + "em");
2372
+ for (const [I, o] of g.entries()) {
2373
+ const W = F.createElementNS("http://www.w3.org/2000/svg", "tspan");
2374
+ W.setAttribute("alignment-baseline", "central"), W.setAttribute("x", "10"), I > 0 && W.setAttribute("dy", "1em"), W.textContent = o, m.appendChild(W);
2375
+ }
2376
+ return m;
2377
+ }).attr("x", 10).attr("y", function(c, g) {
2378
+ if (g > 0)
2379
+ for (let b = 0; b < g; b++)
2380
+ return M += D[g - 1][1], c[1] * x / 2 + M * x + C;
2381
+ else
2382
+ return c[1] * x / 2 + C;
2383
+ }).attr("font-size", i.sectionFontSize).attr("class", function(c) {
2384
+ for (const [g, b] of _.entries())
2385
+ if (c[0] === b)
2386
+ return "sectionTitle sectionTitle" + g % i.numberSectionStyles;
2387
+ return "sectionTitle";
2388
+ });
2389
+ }
2390
+ d(k, "vertLabels");
2391
+ function p(x, C, M, D) {
2392
+ const c = r.db.getTodayMarker();
2393
+ if (c === "off")
2394
+ return;
2395
+ const g = Z.append("g").attr("class", "today"), b = /* @__PURE__ */ new Date(), m = g.append("line");
2396
+ m.attr("x1", v(b) + x).attr("x2", v(b) + x).attr("y1", i.titleTopMargin).attr("y2", D - i.titleTopMargin).attr("class", "today"), c !== "" && m.attr("style", c.replace(/,/g, ";"));
2397
+ }
2398
+ d(p, "drawToday");
2399
+ function L(x) {
2400
+ const C = {}, M = [];
2401
+ for (let D = 0, c = x.length; D < c; ++D)
2402
+ Object.prototype.hasOwnProperty.call(C, x[D]) || (C[x[D]] = !0, M.push(x[D]));
2403
+ return M;
2404
+ }
2405
+ d(L, "checkUnique");
2406
+ }, "draw"), Ss = {
2407
+ setConf: Ds,
2408
+ draw: Cs
2409
+ }, _s = /* @__PURE__ */ d((t) => `
2410
+ .mermaid-main-font {
2411
+ font-family: ${t.fontFamily};
2412
+ }
2413
+
2414
+ .exclude-range {
2415
+ fill: ${t.excludeBkgColor};
2416
+ }
2417
+
2418
+ .section {
2419
+ stroke: none;
2420
+ opacity: 0.2;
2421
+ }
2422
+
2423
+ .section0 {
2424
+ fill: ${t.sectionBkgColor};
2425
+ }
2426
+
2427
+ .section2 {
2428
+ fill: ${t.sectionBkgColor2};
2429
+ }
2430
+
2431
+ .section1,
2432
+ .section3 {
2433
+ fill: ${t.altSectionBkgColor};
2434
+ opacity: 0.2;
2435
+ }
2436
+
2437
+ .sectionTitle0 {
2438
+ fill: ${t.titleColor};
2439
+ }
2440
+
2441
+ .sectionTitle1 {
2442
+ fill: ${t.titleColor};
2443
+ }
2444
+
2445
+ .sectionTitle2 {
2446
+ fill: ${t.titleColor};
2447
+ }
2448
+
2449
+ .sectionTitle3 {
2450
+ fill: ${t.titleColor};
2451
+ }
2452
+
2453
+ .sectionTitle {
2454
+ text-anchor: start;
2455
+ font-family: ${t.fontFamily};
2456
+ }
2457
+
2458
+
2459
+ /* Grid and axis */
2460
+
2461
+ .grid .tick {
2462
+ stroke: ${t.gridColor};
2463
+ opacity: 0.8;
2464
+ shape-rendering: crispEdges;
2465
+ }
2466
+
2467
+ .grid .tick text {
2468
+ font-family: ${t.fontFamily};
2469
+ fill: ${t.textColor};
2470
+ }
2471
+
2472
+ .grid path {
2473
+ stroke-width: 0;
2474
+ }
2475
+
2476
+
2477
+ /* Today line */
2478
+
2479
+ .today {
2480
+ fill: none;
2481
+ stroke: ${t.todayLineColor};
2482
+ stroke-width: 2px;
2483
+ }
2484
+
2485
+
2486
+ /* Task styling */
2487
+
2488
+ /* Default task */
2489
+
2490
+ .task {
2491
+ stroke-width: 2;
2492
+ }
2493
+
2494
+ .taskText {
2495
+ text-anchor: middle;
2496
+ font-family: ${t.fontFamily};
2497
+ }
2498
+
2499
+ .taskTextOutsideRight {
2500
+ fill: ${t.taskTextDarkColor};
2501
+ text-anchor: start;
2502
+ font-family: ${t.fontFamily};
2503
+ }
2504
+
2505
+ .taskTextOutsideLeft {
2506
+ fill: ${t.taskTextDarkColor};
2507
+ text-anchor: end;
2508
+ }
2509
+
2510
+
2511
+ /* Special case clickable */
2512
+
2513
+ .task.clickable {
2514
+ cursor: pointer;
2515
+ }
2516
+
2517
+ .taskText.clickable {
2518
+ cursor: pointer;
2519
+ fill: ${t.taskTextClickableColor} !important;
2520
+ font-weight: bold;
2521
+ }
2522
+
2523
+ .taskTextOutsideLeft.clickable {
2524
+ cursor: pointer;
2525
+ fill: ${t.taskTextClickableColor} !important;
2526
+ font-weight: bold;
2527
+ }
2528
+
2529
+ .taskTextOutsideRight.clickable {
2530
+ cursor: pointer;
2531
+ fill: ${t.taskTextClickableColor} !important;
2532
+ font-weight: bold;
2533
+ }
2534
+
2535
+
2536
+ /* Specific task settings for the sections*/
2537
+
2538
+ .taskText0,
2539
+ .taskText1,
2540
+ .taskText2,
2541
+ .taskText3 {
2542
+ fill: ${t.taskTextColor};
2543
+ }
2544
+
2545
+ .task0,
2546
+ .task1,
2547
+ .task2,
2548
+ .task3 {
2549
+ fill: ${t.taskBkgColor};
2550
+ stroke: ${t.taskBorderColor};
2551
+ }
2552
+
2553
+ .taskTextOutside0,
2554
+ .taskTextOutside2
2555
+ {
2556
+ fill: ${t.taskTextOutsideColor};
2557
+ }
2558
+
2559
+ .taskTextOutside1,
2560
+ .taskTextOutside3 {
2561
+ fill: ${t.taskTextOutsideColor};
2562
+ }
2563
+
2564
+
2565
+ /* Active task */
2566
+
2567
+ .active0,
2568
+ .active1,
2569
+ .active2,
2570
+ .active3 {
2571
+ fill: ${t.activeTaskBkgColor};
2572
+ stroke: ${t.activeTaskBorderColor};
2573
+ }
2574
+
2575
+ .activeText0,
2576
+ .activeText1,
2577
+ .activeText2,
2578
+ .activeText3 {
2579
+ fill: ${t.taskTextDarkColor} !important;
2580
+ }
2581
+
2582
+
2583
+ /* Completed task */
2584
+
2585
+ .done0,
2586
+ .done1,
2587
+ .done2,
2588
+ .done3 {
2589
+ stroke: ${t.doneTaskBorderColor};
2590
+ fill: ${t.doneTaskBkgColor};
2591
+ stroke-width: 2;
2592
+ }
2593
+
2594
+ .doneText0,
2595
+ .doneText1,
2596
+ .doneText2,
2597
+ .doneText3 {
2598
+ fill: ${t.taskTextDarkColor} !important;
2599
+ }
2600
+
2601
+ /* Done task text displayed outside the bar sits against the diagram background,
2602
+ not against the done-task bar, so it must use the outside/contrast color. */
2603
+ .doneText0.taskTextOutsideLeft,
2604
+ .doneText0.taskTextOutsideRight,
2605
+ .doneText1.taskTextOutsideLeft,
2606
+ .doneText1.taskTextOutsideRight,
2607
+ .doneText2.taskTextOutsideLeft,
2608
+ .doneText2.taskTextOutsideRight,
2609
+ .doneText3.taskTextOutsideLeft,
2610
+ .doneText3.taskTextOutsideRight {
2611
+ fill: ${t.taskTextOutsideColor} !important;
2612
+ }
2613
+
2614
+
2615
+ /* Tasks on the critical line */
2616
+
2617
+ .crit0,
2618
+ .crit1,
2619
+ .crit2,
2620
+ .crit3 {
2621
+ stroke: ${t.critBorderColor};
2622
+ fill: ${t.critBkgColor};
2623
+ stroke-width: 2;
2624
+ }
2625
+
2626
+ .activeCrit0,
2627
+ .activeCrit1,
2628
+ .activeCrit2,
2629
+ .activeCrit3 {
2630
+ stroke: ${t.critBorderColor};
2631
+ fill: ${t.activeTaskBkgColor};
2632
+ stroke-width: 2;
2633
+ }
2634
+
2635
+ .doneCrit0,
2636
+ .doneCrit1,
2637
+ .doneCrit2,
2638
+ .doneCrit3 {
2639
+ stroke: ${t.critBorderColor};
2640
+ fill: ${t.doneTaskBkgColor};
2641
+ stroke-width: 2;
2642
+ cursor: pointer;
2643
+ shape-rendering: crispEdges;
2644
+ }
2645
+
2646
+ .milestone {
2647
+ transform: rotate(45deg) scale(0.8,0.8);
2648
+ }
2649
+
2650
+ .milestoneText {
2651
+ font-style: italic;
2652
+ }
2653
+ .doneCritText0,
2654
+ .doneCritText1,
2655
+ .doneCritText2,
2656
+ .doneCritText3 {
2657
+ fill: ${t.taskTextDarkColor} !important;
2658
+ }
2659
+
2660
+ /* Done-crit task text outside the bar — same reasoning as doneText above. */
2661
+ .doneCritText0.taskTextOutsideLeft,
2662
+ .doneCritText0.taskTextOutsideRight,
2663
+ .doneCritText1.taskTextOutsideLeft,
2664
+ .doneCritText1.taskTextOutsideRight,
2665
+ .doneCritText2.taskTextOutsideLeft,
2666
+ .doneCritText2.taskTextOutsideRight,
2667
+ .doneCritText3.taskTextOutsideLeft,
2668
+ .doneCritText3.taskTextOutsideRight {
2669
+ fill: ${t.taskTextOutsideColor} !important;
2670
+ }
2671
+
2672
+ .vert {
2673
+ stroke: ${t.vertLineColor};
2674
+ }
2675
+
2676
+ .vertText {
2677
+ font-size: 15px;
2678
+ text-anchor: middle;
2679
+ fill: ${t.vertLineColor} !important;
2680
+ }
2681
+
2682
+ .activeCritText0,
2683
+ .activeCritText1,
2684
+ .activeCritText2,
2685
+ .activeCritText3 {
2686
+ fill: ${t.taskTextDarkColor} !important;
2687
+ }
2688
+
2689
+ .titleText {
2690
+ text-anchor: middle;
2691
+ font-size: 18px;
2692
+ fill: ${t.titleColor || t.textColor};
2693
+ font-family: ${t.fontFamily};
2694
+ }
2695
+ `, "getStyles"), Ys = _s, Is = {
2696
+ parser: Ni,
2697
+ db: ws,
2698
+ renderer: Ss,
2699
+ styles: Ys
2700
+ };
2701
+ export {
2702
+ Is as diagram
2703
+ };