@versini/sassysaint 8.107.3 → 8.108.0

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