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