smart-chat-asp 2.11.1

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