@blueking/ai-blueking 2.0.0-dev.1 → 2.0.0-dev.3
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/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue2/arc-BqlAOiZb.js +78 -0
- package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue2/array-TB8zN_HT.js +5 -0
- package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue2/channel-edTl5mpN.js +3 -0
- package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue2/chunk-DNh5sLlG.js +18 -0
- package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue2/clone-Bbr3WSpg.js +7 -0
- package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue2/dist-xWJvauxf.js +49 -0
- package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue2/flatten-CfPhNHUL.js +34 -0
- package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue2/index.es.min.js +26703 -786
- package/dist/vue2/index.umd.min.js +2796 -9
- package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue2/init-hAkIK9Bd.js +13 -0
- package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue2/katex-CEAw-xiA.js +22097 -0
- package/dist/vue2/katex-D8o5-F7C.js +2 -0
- package/dist/vue2/line-wvheYP7S.js +30 -0
- package/dist/vue2/linear-STTevhnH.js +250 -0
- package/dist/vue2/math-DF_v6dOl.js +8 -0
- package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue2/path-CW_-_Ti7.js +79 -0
- package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue2/src-VlKYSsxJ.js +1975 -0
- package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue3/arc-BqlAOiZb.js +78 -0
- package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue3/array-TB8zN_HT.js +5 -0
- package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue3/channel-edTl5mpN.js +3 -0
- package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue3/chunk-DNh5sLlG.js +18 -0
- package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue3/clone-Bbr3WSpg.js +7 -0
- package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue3/dist-xWJvauxf.js +49 -0
- package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue3/flatten-CfPhNHUL.js +34 -0
- package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue3/index.es.min.js +26730 -813
- package/dist/vue3/index.umd.min.js +2796 -9
- package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue3/init-hAkIK9Bd.js +13 -0
- package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue3/katex-CEAw-xiA.js +22097 -0
- package/dist/vue3/katex-D8o5-F7C.js +2 -0
- package/dist/vue3/line-wvheYP7S.js +30 -0
- package/dist/vue3/linear-STTevhnH.js +250 -0
- package/dist/vue3/math-DF_v6dOl.js +8 -0
- package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue3/path-CW_-_Ti7.js +79 -0
- package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue3/src-VlKYSsxJ.js +1975 -0
- package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/package.json +3 -3
|
@@ -0,0 +1,3010 @@
|
|
|
1
|
+
import { i as __toESM, t as __commonJSMin } from "./chunk-DNh5sLlG.js";
|
|
2
|
+
import "./purify.es-Cm_tUMzZ.js";
|
|
3
|
+
import "./_baseFor-DAbrc8SN.js";
|
|
4
|
+
import { a as nogamma, c as Rgb, d as define_default, f as extend, g as log, h as __name, i as hue, p as select_default, s as Color, u as rgbConvert, v as require_dayjs_min } from "./src-VlKYSsxJ.js";
|
|
5
|
+
import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-gsx40GnJ.js";
|
|
6
|
+
import { a as bisector, i as tickStep, n as continuous, r as copy, t as linear } from "./linear-STTevhnH.js";
|
|
7
|
+
import "./defaultLocale-BLATqOV5.js";
|
|
8
|
+
import { t as initRange } from "./init-hAkIK9Bd.js";
|
|
9
|
+
import "./math-DF_v6dOl.js";
|
|
10
|
+
import { g as utils_default } from "./chunk-S3R3BYOJ-Bs_r55Kk.js";
|
|
11
|
+
import { t as require_dist } from "./dist-xWJvauxf.js";
|
|
12
|
+
function max(a, c) {
|
|
13
|
+
let l;
|
|
14
|
+
if (c === void 0) for (let c of a) c != null && (l < c || l === void 0 && c >= c) && (l = c);
|
|
15
|
+
else {
|
|
16
|
+
let u = -1;
|
|
17
|
+
for (let d of a) (d = c(d, ++u, a)) != null && (l < d || l === void 0 && d >= d) && (l = d);
|
|
18
|
+
}
|
|
19
|
+
return l;
|
|
20
|
+
}
|
|
21
|
+
function min(a, c) {
|
|
22
|
+
let l;
|
|
23
|
+
if (c === void 0) for (let c of a) c != null && (l > c || l === void 0 && c >= c) && (l = c);
|
|
24
|
+
else {
|
|
25
|
+
let u = -1;
|
|
26
|
+
for (let d of a) (d = c(d, ++u, a)) != null && (l > d || l === void 0 && d >= d) && (l = d);
|
|
27
|
+
}
|
|
28
|
+
return l;
|
|
29
|
+
}
|
|
30
|
+
function identity_default(a) {
|
|
31
|
+
return a;
|
|
32
|
+
}
|
|
33
|
+
var top = 1, right = 2, bottom = 3, left = 4, epsilon = 1e-6;
|
|
34
|
+
function translateX(a) {
|
|
35
|
+
return "translate(" + a + ",0)";
|
|
36
|
+
}
|
|
37
|
+
function translateY(a) {
|
|
38
|
+
return "translate(0," + a + ")";
|
|
39
|
+
}
|
|
40
|
+
function number$1(a) {
|
|
41
|
+
return (c) => +a(c);
|
|
42
|
+
}
|
|
43
|
+
function center(a, c) {
|
|
44
|
+
return c = Math.max(0, a.bandwidth() - c * 2) / 2, a.round() && (c = Math.round(c)), (l) => +a(l) + c;
|
|
45
|
+
}
|
|
46
|
+
function entering() {
|
|
47
|
+
return !this.__axis;
|
|
48
|
+
}
|
|
49
|
+
function axis(a, c) {
|
|
50
|
+
var l = [], u = null, d = null, f = 6, p = 6, m = 3, h = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : .5, g = a === top || a === left ? -1 : 1, _ = a === left || a === right ? "x" : "y", v = a === top || a === bottom ? translateX : translateY;
|
|
51
|
+
function y(y) {
|
|
52
|
+
var b = u ?? (c.ticks ? c.ticks.apply(c, l) : c.domain()), x = d ?? (c.tickFormat ? c.tickFormat.apply(c, l) : identity_default), S = Math.max(f, 0) + m, C = c.range(), T = +C[0] + h, E = +C[C.length - 1] + h, D = (c.bandwidth ? center : number$1)(c.copy(), h), O = y.selection ? y.selection() : y, k = O.selectAll(".domain").data([null]), A = O.selectAll(".tick").data(b, c).order(), j = A.exit(), M = A.enter().append("g").attr("class", "tick"), N = A.select("line"), P = A.select("text");
|
|
53
|
+
k = k.merge(k.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), A = A.merge(M), N = N.merge(M.append("line").attr("stroke", "currentColor").attr(_ + "2", g * f)), P = P.merge(M.append("text").attr("fill", "currentColor").attr(_, g * S).attr("dy", a === top ? "0em" : a === bottom ? "0.71em" : "0.32em")), y !== O && (k = k.transition(y), A = A.transition(y), N = N.transition(y), P = P.transition(y), j = j.transition(y).attr("opacity", epsilon).attr("transform", function(a) {
|
|
54
|
+
return isFinite(a = D(a)) ? v(a + h) : this.getAttribute("transform");
|
|
55
|
+
}), M.attr("opacity", epsilon).attr("transform", function(a) {
|
|
56
|
+
var c = this.parentNode.__axis;
|
|
57
|
+
return v((c && isFinite(c = c(a)) ? c : D(a)) + h);
|
|
58
|
+
})), j.remove(), k.attr("d", a === left || a === right ? p ? "M" + g * p + "," + T + "H" + h + "V" + E + "H" + g * p : "M" + h + "," + T + "V" + E : p ? "M" + T + "," + g * p + "V" + h + "H" + E + "V" + g * p : "M" + T + "," + h + "H" + E), A.attr("opacity", 1).attr("transform", function(a) {
|
|
59
|
+
return v(D(a) + h);
|
|
60
|
+
}), N.attr(_ + "2", g * f), P.attr(_, g * S).text(x), O.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", a === right ? "start" : a === left ? "end" : "middle"), O.each(function() {
|
|
61
|
+
this.__axis = D;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return y.scale = function(a) {
|
|
65
|
+
return arguments.length ? (c = a, y) : c;
|
|
66
|
+
}, y.ticks = function() {
|
|
67
|
+
return l = Array.from(arguments), y;
|
|
68
|
+
}, y.tickArguments = function(a) {
|
|
69
|
+
return arguments.length ? (l = a == null ? [] : Array.from(a), y) : l.slice();
|
|
70
|
+
}, y.tickValues = function(a) {
|
|
71
|
+
return arguments.length ? (u = a == null ? null : Array.from(a), y) : u && u.slice();
|
|
72
|
+
}, y.tickFormat = function(a) {
|
|
73
|
+
return arguments.length ? (d = a, y) : d;
|
|
74
|
+
}, y.tickSize = function(a) {
|
|
75
|
+
return arguments.length ? (f = p = +a, y) : f;
|
|
76
|
+
}, y.tickSizeInner = function(a) {
|
|
77
|
+
return arguments.length ? (f = +a, y) : f;
|
|
78
|
+
}, y.tickSizeOuter = function(a) {
|
|
79
|
+
return arguments.length ? (p = +a, y) : p;
|
|
80
|
+
}, y.tickPadding = function(a) {
|
|
81
|
+
return arguments.length ? (m = +a, y) : m;
|
|
82
|
+
}, y.offset = function(a) {
|
|
83
|
+
return arguments.length ? (h = +a, y) : h;
|
|
84
|
+
}, y;
|
|
85
|
+
}
|
|
86
|
+
function axisTop(a) {
|
|
87
|
+
return axis(top, a);
|
|
88
|
+
}
|
|
89
|
+
function axisBottom(a) {
|
|
90
|
+
return axis(bottom, a);
|
|
91
|
+
}
|
|
92
|
+
const radians = Math.PI / 180, degrees = 180 / Math.PI;
|
|
93
|
+
var K = 18, Xn = .96422, Yn = 1, Zn = .82521, t0$1 = 4 / 29, t1$1 = 6 / 29, t2 = 3 * t1$1 * t1$1, t3 = t1$1 * t1$1 * t1$1;
|
|
94
|
+
function labConvert(a) {
|
|
95
|
+
if (a instanceof Lab) return new Lab(a.l, a.a, a.b, a.opacity);
|
|
96
|
+
if (a instanceof Hcl) return hcl2lab(a);
|
|
97
|
+
a instanceof Rgb || (a = rgbConvert(a));
|
|
98
|
+
var c = rgb2lrgb(a.r), l = rgb2lrgb(a.g), d = rgb2lrgb(a.b), f = xyz2lab((.2225045 * c + .7168786 * l + .0606169 * d) / Yn), p, m;
|
|
99
|
+
return c === l && l === d ? p = m = f : (p = xyz2lab((.4360747 * c + .3850649 * l + .1430804 * d) / Xn), m = xyz2lab((.0139322 * c + .0971045 * l + .7141733 * d) / Zn)), new Lab(116 * f - 16, 500 * (p - f), 200 * (f - m), a.opacity);
|
|
100
|
+
}
|
|
101
|
+
function lab(a, c, l, u) {
|
|
102
|
+
return arguments.length === 1 ? labConvert(a) : new Lab(a, c, l, u ?? 1);
|
|
103
|
+
}
|
|
104
|
+
function Lab(a, c, l, u) {
|
|
105
|
+
this.l = +a, this.a = +c, this.b = +l, this.opacity = +u;
|
|
106
|
+
}
|
|
107
|
+
define_default(Lab, lab, extend(Color, {
|
|
108
|
+
brighter(a) {
|
|
109
|
+
return new Lab(this.l + K * (a ?? 1), this.a, this.b, this.opacity);
|
|
110
|
+
},
|
|
111
|
+
darker(a) {
|
|
112
|
+
return new Lab(this.l - K * (a ?? 1), this.a, this.b, this.opacity);
|
|
113
|
+
},
|
|
114
|
+
rgb() {
|
|
115
|
+
var a = (this.l + 16) / 116, c = isNaN(this.a) ? a : a + this.a / 500, l = isNaN(this.b) ? a : a - this.b / 200;
|
|
116
|
+
return c = Xn * lab2xyz(c), a = Yn * lab2xyz(a), l = Zn * lab2xyz(l), new Rgb(lrgb2rgb(3.1338561 * c - 1.6168667 * a - .4906146 * l), lrgb2rgb(-.9787684 * c + 1.9161415 * a + .033454 * l), lrgb2rgb(.0719453 * c - .2289914 * a + 1.4052427 * l), this.opacity);
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
119
|
+
function xyz2lab(a) {
|
|
120
|
+
return a > t3 ? a ** (1 / 3) : a / t2 + t0$1;
|
|
121
|
+
}
|
|
122
|
+
function lab2xyz(a) {
|
|
123
|
+
return a > t1$1 ? a * a * a : t2 * (a - t0$1);
|
|
124
|
+
}
|
|
125
|
+
function lrgb2rgb(a) {
|
|
126
|
+
return 255 * (a <= .0031308 ? 12.92 * a : 1.055 * a ** (1 / 2.4) - .055);
|
|
127
|
+
}
|
|
128
|
+
function rgb2lrgb(a) {
|
|
129
|
+
return (a /= 255) <= .04045 ? a / 12.92 : ((a + .055) / 1.055) ** 2.4;
|
|
130
|
+
}
|
|
131
|
+
function hclConvert(a) {
|
|
132
|
+
if (a instanceof Hcl) return new Hcl(a.h, a.c, a.l, a.opacity);
|
|
133
|
+
if (a instanceof Lab || (a = labConvert(a)), a.a === 0 && a.b === 0) return new Hcl(NaN, 0 < a.l && a.l < 100 ? 0 : NaN, a.l, a.opacity);
|
|
134
|
+
var c = Math.atan2(a.b, a.a) * degrees;
|
|
135
|
+
return new Hcl(c < 0 ? c + 360 : c, Math.sqrt(a.a * a.a + a.b * a.b), a.l, a.opacity);
|
|
136
|
+
}
|
|
137
|
+
function hcl(a, c, l, u) {
|
|
138
|
+
return arguments.length === 1 ? hclConvert(a) : new Hcl(a, c, l, u ?? 1);
|
|
139
|
+
}
|
|
140
|
+
function Hcl(a, c, l, u) {
|
|
141
|
+
this.h = +a, this.c = +c, this.l = +l, this.opacity = +u;
|
|
142
|
+
}
|
|
143
|
+
function hcl2lab(a) {
|
|
144
|
+
if (isNaN(a.h)) return new Lab(a.l, 0, 0, a.opacity);
|
|
145
|
+
var c = a.h * radians;
|
|
146
|
+
return new Lab(a.l, Math.cos(c) * a.c, Math.sin(c) * a.c, a.opacity);
|
|
147
|
+
}
|
|
148
|
+
define_default(Hcl, hcl, extend(Color, {
|
|
149
|
+
brighter(a) {
|
|
150
|
+
return new Hcl(this.h, this.c, this.l + K * (a ?? 1), this.opacity);
|
|
151
|
+
},
|
|
152
|
+
darker(a) {
|
|
153
|
+
return new Hcl(this.h, this.c, this.l - K * (a ?? 1), this.opacity);
|
|
154
|
+
},
|
|
155
|
+
rgb() {
|
|
156
|
+
return hcl2lab(this).rgb();
|
|
157
|
+
}
|
|
158
|
+
}));
|
|
159
|
+
function hcl$1(a) {
|
|
160
|
+
return function(c, u) {
|
|
161
|
+
var d = a((c = hcl(c)).h, (u = hcl(u)).h), f = nogamma(c.c, u.c), p = nogamma(c.l, u.l), m = nogamma(c.opacity, u.opacity);
|
|
162
|
+
return function(a) {
|
|
163
|
+
return c.h = d(a), c.c = f(a), c.l = p(a), c.opacity = m(a), c + "";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
var hcl_default = hcl$1(hue);
|
|
168
|
+
function nice(a, c) {
|
|
169
|
+
a = a.slice();
|
|
170
|
+
var l = 0, u = a.length - 1, d = a[l], f = a[u], p;
|
|
171
|
+
return f < d && (p = l, l = u, u = p, p = d, d = f, f = p), a[l] = c.floor(d), a[u] = c.ceil(f), a;
|
|
172
|
+
}
|
|
173
|
+
var t0 = /* @__PURE__ */ new Date(), t1 = /* @__PURE__ */ new Date();
|
|
174
|
+
function timeInterval(a, c, l, u) {
|
|
175
|
+
function d(c) {
|
|
176
|
+
return a(c = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+c)), c;
|
|
177
|
+
}
|
|
178
|
+
return d.floor = (c) => (a(c = /* @__PURE__ */ new Date(+c)), c), d.ceil = (l) => (a(l = /* @__PURE__ */ new Date(l - 1)), c(l, 1), a(l), l), d.round = (a) => {
|
|
179
|
+
let c = d(a), l = d.ceil(a);
|
|
180
|
+
return a - c < l - a ? c : l;
|
|
181
|
+
}, d.offset = (a, l) => (c(a = /* @__PURE__ */ new Date(+a), l == null ? 1 : Math.floor(l)), a), d.range = (l, u, f) => {
|
|
182
|
+
let p = [];
|
|
183
|
+
if (l = d.ceil(l), f = f == null ? 1 : Math.floor(f), !(l < u) || !(f > 0)) return p;
|
|
184
|
+
let m;
|
|
185
|
+
do
|
|
186
|
+
p.push(m = /* @__PURE__ */ new Date(+l)), c(l, f), a(l);
|
|
187
|
+
while (m < l && l < u);
|
|
188
|
+
return p;
|
|
189
|
+
}, d.filter = (l) => timeInterval((c) => {
|
|
190
|
+
if (c >= c) for (; a(c), !l(c);) c.setTime(c - 1);
|
|
191
|
+
}, (a, u) => {
|
|
192
|
+
if (a >= a) if (u < 0) for (; ++u <= 0;) for (; c(a, -1), !l(a););
|
|
193
|
+
else for (; --u >= 0;) for (; c(a, 1), !l(a););
|
|
194
|
+
}), l && (d.count = (c, u) => (t0.setTime(+c), t1.setTime(+u), a(t0), a(t1), Math.floor(l(t0, t1))), d.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? d.filter(u ? (c) => u(c) % a === 0 : (c) => d.count(0, c) % a === 0) : d)), d;
|
|
195
|
+
}
|
|
196
|
+
const millisecond = timeInterval(() => {}, (a, c) => {
|
|
197
|
+
a.setTime(+a + c);
|
|
198
|
+
}, (a, c) => c - a);
|
|
199
|
+
millisecond.every = (a) => (a = Math.floor(a), !isFinite(a) || !(a > 0) ? null : a > 1 ? timeInterval((c) => {
|
|
200
|
+
c.setTime(Math.floor(c / a) * a);
|
|
201
|
+
}, (c, l) => {
|
|
202
|
+
c.setTime(+c + l * a);
|
|
203
|
+
}, (c, l) => (l - c) / a) : millisecond), millisecond.range;
|
|
204
|
+
const durationSecond = 1e3, durationMinute = durationSecond * 60, durationHour = durationMinute * 60, durationDay = durationHour * 24, durationWeek = durationDay * 7, durationMonth = durationDay * 30, durationYear = durationDay * 365, second = timeInterval((a) => {
|
|
205
|
+
a.setTime(a - a.getMilliseconds());
|
|
206
|
+
}, (a, c) => {
|
|
207
|
+
a.setTime(+a + c * durationSecond);
|
|
208
|
+
}, (a, c) => (c - a) / durationSecond, (a) => a.getUTCSeconds());
|
|
209
|
+
second.range;
|
|
210
|
+
const timeMinute = timeInterval((a) => {
|
|
211
|
+
a.setTime(a - a.getMilliseconds() - a.getSeconds() * durationSecond);
|
|
212
|
+
}, (a, c) => {
|
|
213
|
+
a.setTime(+a + c * durationMinute);
|
|
214
|
+
}, (a, c) => (c - a) / durationMinute, (a) => a.getMinutes());
|
|
215
|
+
timeMinute.range;
|
|
216
|
+
const utcMinute = timeInterval((a) => {
|
|
217
|
+
a.setUTCSeconds(0, 0);
|
|
218
|
+
}, (a, c) => {
|
|
219
|
+
a.setTime(+a + c * durationMinute);
|
|
220
|
+
}, (a, c) => (c - a) / durationMinute, (a) => a.getUTCMinutes());
|
|
221
|
+
utcMinute.range;
|
|
222
|
+
const timeHour = timeInterval((a) => {
|
|
223
|
+
a.setTime(a - a.getMilliseconds() - a.getSeconds() * durationSecond - a.getMinutes() * durationMinute);
|
|
224
|
+
}, (a, c) => {
|
|
225
|
+
a.setTime(+a + c * durationHour);
|
|
226
|
+
}, (a, c) => (c - a) / durationHour, (a) => a.getHours());
|
|
227
|
+
timeHour.range;
|
|
228
|
+
const utcHour = timeInterval((a) => {
|
|
229
|
+
a.setUTCMinutes(0, 0, 0);
|
|
230
|
+
}, (a, c) => {
|
|
231
|
+
a.setTime(+a + c * durationHour);
|
|
232
|
+
}, (a, c) => (c - a) / durationHour, (a) => a.getUTCHours());
|
|
233
|
+
utcHour.range;
|
|
234
|
+
const timeDay = timeInterval((a) => a.setHours(0, 0, 0, 0), (a, c) => a.setDate(a.getDate() + c), (a, c) => (c - a - (c.getTimezoneOffset() - a.getTimezoneOffset()) * durationMinute) / durationDay, (a) => a.getDate() - 1);
|
|
235
|
+
timeDay.range;
|
|
236
|
+
const utcDay = timeInterval((a) => {
|
|
237
|
+
a.setUTCHours(0, 0, 0, 0);
|
|
238
|
+
}, (a, c) => {
|
|
239
|
+
a.setUTCDate(a.getUTCDate() + c);
|
|
240
|
+
}, (a, c) => (c - a) / durationDay, (a) => a.getUTCDate() - 1);
|
|
241
|
+
utcDay.range;
|
|
242
|
+
const unixDay = timeInterval((a) => {
|
|
243
|
+
a.setUTCHours(0, 0, 0, 0);
|
|
244
|
+
}, (a, c) => {
|
|
245
|
+
a.setUTCDate(a.getUTCDate() + c);
|
|
246
|
+
}, (a, c) => (c - a) / durationDay, (a) => Math.floor(a / durationDay));
|
|
247
|
+
unixDay.range;
|
|
248
|
+
function timeWeekday(a) {
|
|
249
|
+
return timeInterval((c) => {
|
|
250
|
+
c.setDate(c.getDate() - (c.getDay() + 7 - a) % 7), c.setHours(0, 0, 0, 0);
|
|
251
|
+
}, (a, c) => {
|
|
252
|
+
a.setDate(a.getDate() + c * 7);
|
|
253
|
+
}, (a, c) => (c - a - (c.getTimezoneOffset() - a.getTimezoneOffset()) * durationMinute) / durationWeek);
|
|
254
|
+
}
|
|
255
|
+
const timeSunday = timeWeekday(0), timeMonday = timeWeekday(1), timeTuesday = timeWeekday(2), timeWednesday = timeWeekday(3), timeThursday = timeWeekday(4), timeFriday = timeWeekday(5), timeSaturday = timeWeekday(6);
|
|
256
|
+
timeSunday.range, timeMonday.range, timeTuesday.range, timeWednesday.range, timeThursday.range, timeFriday.range, timeSaturday.range;
|
|
257
|
+
function utcWeekday(a) {
|
|
258
|
+
return timeInterval((c) => {
|
|
259
|
+
c.setUTCDate(c.getUTCDate() - (c.getUTCDay() + 7 - a) % 7), c.setUTCHours(0, 0, 0, 0);
|
|
260
|
+
}, (a, c) => {
|
|
261
|
+
a.setUTCDate(a.getUTCDate() + c * 7);
|
|
262
|
+
}, (a, c) => (c - a) / durationWeek);
|
|
263
|
+
}
|
|
264
|
+
const utcSunday = utcWeekday(0), utcMonday = utcWeekday(1), utcTuesday = utcWeekday(2), utcWednesday = utcWeekday(3), utcThursday = utcWeekday(4), utcFriday = utcWeekday(5), utcSaturday = utcWeekday(6);
|
|
265
|
+
utcSunday.range, utcMonday.range, utcTuesday.range, utcWednesday.range, utcThursday.range, utcFriday.range, utcSaturday.range;
|
|
266
|
+
const timeMonth = timeInterval((a) => {
|
|
267
|
+
a.setDate(1), a.setHours(0, 0, 0, 0);
|
|
268
|
+
}, (a, c) => {
|
|
269
|
+
a.setMonth(a.getMonth() + c);
|
|
270
|
+
}, (a, c) => c.getMonth() - a.getMonth() + (c.getFullYear() - a.getFullYear()) * 12, (a) => a.getMonth());
|
|
271
|
+
timeMonth.range;
|
|
272
|
+
const utcMonth = timeInterval((a) => {
|
|
273
|
+
a.setUTCDate(1), a.setUTCHours(0, 0, 0, 0);
|
|
274
|
+
}, (a, c) => {
|
|
275
|
+
a.setUTCMonth(a.getUTCMonth() + c);
|
|
276
|
+
}, (a, c) => c.getUTCMonth() - a.getUTCMonth() + (c.getUTCFullYear() - a.getUTCFullYear()) * 12, (a) => a.getUTCMonth());
|
|
277
|
+
utcMonth.range;
|
|
278
|
+
const timeYear = timeInterval((a) => {
|
|
279
|
+
a.setMonth(0, 1), a.setHours(0, 0, 0, 0);
|
|
280
|
+
}, (a, c) => {
|
|
281
|
+
a.setFullYear(a.getFullYear() + c);
|
|
282
|
+
}, (a, c) => c.getFullYear() - a.getFullYear(), (a) => a.getFullYear());
|
|
283
|
+
timeYear.every = (a) => !isFinite(a = Math.floor(a)) || !(a > 0) ? null : timeInterval((c) => {
|
|
284
|
+
c.setFullYear(Math.floor(c.getFullYear() / a) * a), c.setMonth(0, 1), c.setHours(0, 0, 0, 0);
|
|
285
|
+
}, (c, l) => {
|
|
286
|
+
c.setFullYear(c.getFullYear() + l * a);
|
|
287
|
+
}), timeYear.range;
|
|
288
|
+
const utcYear = timeInterval((a) => {
|
|
289
|
+
a.setUTCMonth(0, 1), a.setUTCHours(0, 0, 0, 0);
|
|
290
|
+
}, (a, c) => {
|
|
291
|
+
a.setUTCFullYear(a.getUTCFullYear() + c);
|
|
292
|
+
}, (a, c) => c.getUTCFullYear() - a.getUTCFullYear(), (a) => a.getUTCFullYear());
|
|
293
|
+
utcYear.every = (a) => !isFinite(a = Math.floor(a)) || !(a > 0) ? null : timeInterval((c) => {
|
|
294
|
+
c.setUTCFullYear(Math.floor(c.getUTCFullYear() / a) * a), c.setUTCMonth(0, 1), c.setUTCHours(0, 0, 0, 0);
|
|
295
|
+
}, (c, l) => {
|
|
296
|
+
c.setUTCFullYear(c.getUTCFullYear() + l * a);
|
|
297
|
+
}), utcYear.range;
|
|
298
|
+
function ticker(a, c, l, u, d, f) {
|
|
299
|
+
let p = [
|
|
300
|
+
[
|
|
301
|
+
second,
|
|
302
|
+
1,
|
|
303
|
+
durationSecond
|
|
304
|
+
],
|
|
305
|
+
[
|
|
306
|
+
second,
|
|
307
|
+
5,
|
|
308
|
+
5 * durationSecond
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
second,
|
|
312
|
+
15,
|
|
313
|
+
15 * durationSecond
|
|
314
|
+
],
|
|
315
|
+
[
|
|
316
|
+
second,
|
|
317
|
+
30,
|
|
318
|
+
30 * durationSecond
|
|
319
|
+
],
|
|
320
|
+
[
|
|
321
|
+
f,
|
|
322
|
+
1,
|
|
323
|
+
durationMinute
|
|
324
|
+
],
|
|
325
|
+
[
|
|
326
|
+
f,
|
|
327
|
+
5,
|
|
328
|
+
5 * durationMinute
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
f,
|
|
332
|
+
15,
|
|
333
|
+
15 * durationMinute
|
|
334
|
+
],
|
|
335
|
+
[
|
|
336
|
+
f,
|
|
337
|
+
30,
|
|
338
|
+
30 * durationMinute
|
|
339
|
+
],
|
|
340
|
+
[
|
|
341
|
+
d,
|
|
342
|
+
1,
|
|
343
|
+
durationHour
|
|
344
|
+
],
|
|
345
|
+
[
|
|
346
|
+
d,
|
|
347
|
+
3,
|
|
348
|
+
3 * durationHour
|
|
349
|
+
],
|
|
350
|
+
[
|
|
351
|
+
d,
|
|
352
|
+
6,
|
|
353
|
+
6 * durationHour
|
|
354
|
+
],
|
|
355
|
+
[
|
|
356
|
+
d,
|
|
357
|
+
12,
|
|
358
|
+
12 * durationHour
|
|
359
|
+
],
|
|
360
|
+
[
|
|
361
|
+
u,
|
|
362
|
+
1,
|
|
363
|
+
durationDay
|
|
364
|
+
],
|
|
365
|
+
[
|
|
366
|
+
u,
|
|
367
|
+
2,
|
|
368
|
+
2 * durationDay
|
|
369
|
+
],
|
|
370
|
+
[
|
|
371
|
+
l,
|
|
372
|
+
1,
|
|
373
|
+
durationWeek
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
c,
|
|
377
|
+
1,
|
|
378
|
+
durationMonth
|
|
379
|
+
],
|
|
380
|
+
[
|
|
381
|
+
c,
|
|
382
|
+
3,
|
|
383
|
+
3 * durationMonth
|
|
384
|
+
],
|
|
385
|
+
[
|
|
386
|
+
a,
|
|
387
|
+
1,
|
|
388
|
+
durationYear
|
|
389
|
+
]
|
|
390
|
+
];
|
|
391
|
+
function m(a, c, l) {
|
|
392
|
+
let u = c < a;
|
|
393
|
+
u && ([a, c] = [c, a]);
|
|
394
|
+
let d = l && typeof l.range == "function" ? l : h(a, c, l), f = d ? d.range(a, +c + 1) : [];
|
|
395
|
+
return u ? f.reverse() : f;
|
|
396
|
+
}
|
|
397
|
+
function h(c, l, u) {
|
|
398
|
+
let d = Math.abs(l - c) / u, f = bisector(([, , a]) => a).right(p, d);
|
|
399
|
+
if (f === p.length) return a.every(tickStep(c / durationYear, l / durationYear, u));
|
|
400
|
+
if (f === 0) return millisecond.every(Math.max(tickStep(c, l, u), 1));
|
|
401
|
+
let [m, h] = p[d / p[f - 1][2] < p[f][2] / d ? f - 1 : f];
|
|
402
|
+
return m.every(h);
|
|
403
|
+
}
|
|
404
|
+
return [m, h];
|
|
405
|
+
}
|
|
406
|
+
var [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute), [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
|
|
407
|
+
function localDate(a) {
|
|
408
|
+
if (0 <= a.y && a.y < 100) {
|
|
409
|
+
var c = new Date(-1, a.m, a.d, a.H, a.M, a.S, a.L);
|
|
410
|
+
return c.setFullYear(a.y), c;
|
|
411
|
+
}
|
|
412
|
+
return new Date(a.y, a.m, a.d, a.H, a.M, a.S, a.L);
|
|
413
|
+
}
|
|
414
|
+
function utcDate(a) {
|
|
415
|
+
if (0 <= a.y && a.y < 100) {
|
|
416
|
+
var c = new Date(Date.UTC(-1, a.m, a.d, a.H, a.M, a.S, a.L));
|
|
417
|
+
return c.setUTCFullYear(a.y), c;
|
|
418
|
+
}
|
|
419
|
+
return new Date(Date.UTC(a.y, a.m, a.d, a.H, a.M, a.S, a.L));
|
|
420
|
+
}
|
|
421
|
+
function newDate(a, c, l) {
|
|
422
|
+
return {
|
|
423
|
+
y: a,
|
|
424
|
+
m: c,
|
|
425
|
+
d: l,
|
|
426
|
+
H: 0,
|
|
427
|
+
M: 0,
|
|
428
|
+
S: 0,
|
|
429
|
+
L: 0
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
function formatLocale(a) {
|
|
433
|
+
var c = a.dateTime, l = a.date, u = a.time, d = a.periods, f = a.days, p = a.shortDays, m = a.months, h = a.shortMonths, g = formatRe(d), _ = formatLookup(d), v = formatRe(f), y = formatLookup(f), b = formatRe(p), x = formatLookup(p), S = formatRe(m), C = formatLookup(m), T = formatRe(h), E = formatLookup(h), D = {
|
|
434
|
+
a: V,
|
|
435
|
+
A: H,
|
|
436
|
+
b: U,
|
|
437
|
+
B: W,
|
|
438
|
+
c: null,
|
|
439
|
+
d: formatDayOfMonth,
|
|
440
|
+
e: formatDayOfMonth,
|
|
441
|
+
f: formatMicroseconds,
|
|
442
|
+
g: formatYearISO,
|
|
443
|
+
G: formatFullYearISO,
|
|
444
|
+
H: formatHour24,
|
|
445
|
+
I: formatHour12,
|
|
446
|
+
j: formatDayOfYear,
|
|
447
|
+
L: formatMilliseconds,
|
|
448
|
+
m: formatMonthNumber,
|
|
449
|
+
M: formatMinutes,
|
|
450
|
+
p: G,
|
|
451
|
+
q,
|
|
452
|
+
Q: formatUnixTimestamp,
|
|
453
|
+
s: formatUnixTimestampSeconds,
|
|
454
|
+
S: formatSeconds,
|
|
455
|
+
u: formatWeekdayNumberMonday,
|
|
456
|
+
U: formatWeekNumberSunday,
|
|
457
|
+
V: formatWeekNumberISO,
|
|
458
|
+
w: formatWeekdayNumberSunday,
|
|
459
|
+
W: formatWeekNumberMonday,
|
|
460
|
+
x: null,
|
|
461
|
+
X: null,
|
|
462
|
+
y: formatYear,
|
|
463
|
+
Y: formatFullYear,
|
|
464
|
+
Z: formatZone,
|
|
465
|
+
"%": formatLiteralPercent
|
|
466
|
+
}, O = {
|
|
467
|
+
a: J,
|
|
468
|
+
A: Y,
|
|
469
|
+
b: X,
|
|
470
|
+
B: Z,
|
|
471
|
+
c: null,
|
|
472
|
+
d: formatUTCDayOfMonth,
|
|
473
|
+
e: formatUTCDayOfMonth,
|
|
474
|
+
f: formatUTCMicroseconds,
|
|
475
|
+
g: formatUTCYearISO,
|
|
476
|
+
G: formatUTCFullYearISO,
|
|
477
|
+
H: formatUTCHour24,
|
|
478
|
+
I: formatUTCHour12,
|
|
479
|
+
j: formatUTCDayOfYear,
|
|
480
|
+
L: formatUTCMilliseconds,
|
|
481
|
+
m: formatUTCMonthNumber,
|
|
482
|
+
M: formatUTCMinutes,
|
|
483
|
+
p: Q,
|
|
484
|
+
q: $,
|
|
485
|
+
Q: formatUnixTimestamp,
|
|
486
|
+
s: formatUnixTimestampSeconds,
|
|
487
|
+
S: formatUTCSeconds,
|
|
488
|
+
u: formatUTCWeekdayNumberMonday,
|
|
489
|
+
U: formatUTCWeekNumberSunday,
|
|
490
|
+
V: formatUTCWeekNumberISO,
|
|
491
|
+
w: formatUTCWeekdayNumberSunday,
|
|
492
|
+
W: formatUTCWeekNumberMonday,
|
|
493
|
+
x: null,
|
|
494
|
+
X: null,
|
|
495
|
+
y: formatUTCYear,
|
|
496
|
+
Y: formatUTCFullYear,
|
|
497
|
+
Z: formatUTCZone,
|
|
498
|
+
"%": formatLiteralPercent
|
|
499
|
+
}, k = {
|
|
500
|
+
a: P,
|
|
501
|
+
A: F,
|
|
502
|
+
b: I,
|
|
503
|
+
B: L,
|
|
504
|
+
c: R,
|
|
505
|
+
d: parseDayOfMonth,
|
|
506
|
+
e: parseDayOfMonth,
|
|
507
|
+
f: parseMicroseconds,
|
|
508
|
+
g: parseYear,
|
|
509
|
+
G: parseFullYear,
|
|
510
|
+
H: parseHour24,
|
|
511
|
+
I: parseHour24,
|
|
512
|
+
j: parseDayOfYear,
|
|
513
|
+
L: parseMilliseconds,
|
|
514
|
+
m: parseMonthNumber,
|
|
515
|
+
M: parseMinutes,
|
|
516
|
+
p: N,
|
|
517
|
+
q: parseQuarter,
|
|
518
|
+
Q: parseUnixTimestamp,
|
|
519
|
+
s: parseUnixTimestampSeconds,
|
|
520
|
+
S: parseSeconds,
|
|
521
|
+
u: parseWeekdayNumberMonday,
|
|
522
|
+
U: parseWeekNumberSunday,
|
|
523
|
+
V: parseWeekNumberISO,
|
|
524
|
+
w: parseWeekdayNumberSunday,
|
|
525
|
+
W: parseWeekNumberMonday,
|
|
526
|
+
x: z,
|
|
527
|
+
X: B,
|
|
528
|
+
y: parseYear,
|
|
529
|
+
Y: parseFullYear,
|
|
530
|
+
Z: parseZone,
|
|
531
|
+
"%": parseLiteralPercent
|
|
532
|
+
};
|
|
533
|
+
D.x = A(l, D), D.X = A(u, D), D.c = A(c, D), O.x = A(l, O), O.X = A(u, O), O.c = A(c, O);
|
|
534
|
+
function A(a, c) {
|
|
535
|
+
return function(l) {
|
|
536
|
+
var u = [], d = -1, f = 0, p = a.length, m, h, g;
|
|
537
|
+
for (l instanceof Date || (l = /* @__PURE__ */ new Date(+l)); ++d < p;) a.charCodeAt(d) === 37 && (u.push(a.slice(f, d)), (h = pads[m = a.charAt(++d)]) == null ? h = m === "e" ? " " : "0" : m = a.charAt(++d), (g = c[m]) && (m = g(l, h)), u.push(m), f = d + 1);
|
|
538
|
+
return u.push(a.slice(f, d)), u.join("");
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
function j(a, c) {
|
|
542
|
+
return function(l) {
|
|
543
|
+
var u = newDate(1900, void 0, 1), d = M(u, a, l += "", 0), f, p;
|
|
544
|
+
if (d != l.length) return null;
|
|
545
|
+
if ("Q" in u) return new Date(u.Q);
|
|
546
|
+
if ("s" in u) return new Date(u.s * 1e3 + ("L" in u ? u.L : 0));
|
|
547
|
+
if (c && !("Z" in u) && (u.Z = 0), "p" in u && (u.H = u.H % 12 + u.p * 12), u.m === void 0 && (u.m = "q" in u ? u.q : 0), "V" in u) {
|
|
548
|
+
if (u.V < 1 || u.V > 53) return null;
|
|
549
|
+
"w" in u || (u.w = 1), "Z" in u ? (f = utcDate(newDate(u.y, 0, 1)), p = f.getUTCDay(), f = p > 4 || p === 0 ? utcMonday.ceil(f) : utcMonday(f), f = utcDay.offset(f, (u.V - 1) * 7), u.y = f.getUTCFullYear(), u.m = f.getUTCMonth(), u.d = f.getUTCDate() + (u.w + 6) % 7) : (f = localDate(newDate(u.y, 0, 1)), p = f.getDay(), f = p > 4 || p === 0 ? timeMonday.ceil(f) : timeMonday(f), f = timeDay.offset(f, (u.V - 1) * 7), u.y = f.getFullYear(), u.m = f.getMonth(), u.d = f.getDate() + (u.w + 6) % 7);
|
|
550
|
+
} else ("W" in u || "U" in u) && ("w" in u || (u.w = "u" in u ? u.u % 7 : "W" in u ? 1 : 0), p = "Z" in u ? utcDate(newDate(u.y, 0, 1)).getUTCDay() : localDate(newDate(u.y, 0, 1)).getDay(), u.m = 0, u.d = "W" in u ? (u.w + 6) % 7 + u.W * 7 - (p + 5) % 7 : u.w + u.U * 7 - (p + 6) % 7);
|
|
551
|
+
return "Z" in u ? (u.H += u.Z / 100 | 0, u.M += u.Z % 100, utcDate(u)) : localDate(u);
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
function M(a, c, l, u) {
|
|
555
|
+
for (var d = 0, f = c.length, p = l.length, m, h; d < f;) {
|
|
556
|
+
if (u >= p) return -1;
|
|
557
|
+
if (m = c.charCodeAt(d++), m === 37) {
|
|
558
|
+
if (m = c.charAt(d++), h = k[m in pads ? c.charAt(d++) : m], !h || (u = h(a, l, u)) < 0) return -1;
|
|
559
|
+
} else if (m != l.charCodeAt(u++)) return -1;
|
|
560
|
+
}
|
|
561
|
+
return u;
|
|
562
|
+
}
|
|
563
|
+
function N(a, c, l) {
|
|
564
|
+
var u = g.exec(c.slice(l));
|
|
565
|
+
return u ? (a.p = _.get(u[0].toLowerCase()), l + u[0].length) : -1;
|
|
566
|
+
}
|
|
567
|
+
function P(a, c, l) {
|
|
568
|
+
var u = b.exec(c.slice(l));
|
|
569
|
+
return u ? (a.w = x.get(u[0].toLowerCase()), l + u[0].length) : -1;
|
|
570
|
+
}
|
|
571
|
+
function F(a, c, l) {
|
|
572
|
+
var u = v.exec(c.slice(l));
|
|
573
|
+
return u ? (a.w = y.get(u[0].toLowerCase()), l + u[0].length) : -1;
|
|
574
|
+
}
|
|
575
|
+
function I(a, c, l) {
|
|
576
|
+
var u = T.exec(c.slice(l));
|
|
577
|
+
return u ? (a.m = E.get(u[0].toLowerCase()), l + u[0].length) : -1;
|
|
578
|
+
}
|
|
579
|
+
function L(a, c, l) {
|
|
580
|
+
var u = S.exec(c.slice(l));
|
|
581
|
+
return u ? (a.m = C.get(u[0].toLowerCase()), l + u[0].length) : -1;
|
|
582
|
+
}
|
|
583
|
+
function R(a, l, u) {
|
|
584
|
+
return M(a, c, l, u);
|
|
585
|
+
}
|
|
586
|
+
function z(a, c, u) {
|
|
587
|
+
return M(a, l, c, u);
|
|
588
|
+
}
|
|
589
|
+
function B(a, c, l) {
|
|
590
|
+
return M(a, u, c, l);
|
|
591
|
+
}
|
|
592
|
+
function V(a) {
|
|
593
|
+
return p[a.getDay()];
|
|
594
|
+
}
|
|
595
|
+
function H(a) {
|
|
596
|
+
return f[a.getDay()];
|
|
597
|
+
}
|
|
598
|
+
function U(a) {
|
|
599
|
+
return h[a.getMonth()];
|
|
600
|
+
}
|
|
601
|
+
function W(a) {
|
|
602
|
+
return m[a.getMonth()];
|
|
603
|
+
}
|
|
604
|
+
function G(a) {
|
|
605
|
+
return d[+(a.getHours() >= 12)];
|
|
606
|
+
}
|
|
607
|
+
function q(a) {
|
|
608
|
+
return 1 + ~~(a.getMonth() / 3);
|
|
609
|
+
}
|
|
610
|
+
function J(a) {
|
|
611
|
+
return p[a.getUTCDay()];
|
|
612
|
+
}
|
|
613
|
+
function Y(a) {
|
|
614
|
+
return f[a.getUTCDay()];
|
|
615
|
+
}
|
|
616
|
+
function X(a) {
|
|
617
|
+
return h[a.getUTCMonth()];
|
|
618
|
+
}
|
|
619
|
+
function Z(a) {
|
|
620
|
+
return m[a.getUTCMonth()];
|
|
621
|
+
}
|
|
622
|
+
function Q(a) {
|
|
623
|
+
return d[+(a.getUTCHours() >= 12)];
|
|
624
|
+
}
|
|
625
|
+
function $(a) {
|
|
626
|
+
return 1 + ~~(a.getUTCMonth() / 3);
|
|
627
|
+
}
|
|
628
|
+
return {
|
|
629
|
+
format: function(a) {
|
|
630
|
+
var c = A(a += "", D);
|
|
631
|
+
return c.toString = function() {
|
|
632
|
+
return a;
|
|
633
|
+
}, c;
|
|
634
|
+
},
|
|
635
|
+
parse: function(a) {
|
|
636
|
+
var c = j(a += "", !1);
|
|
637
|
+
return c.toString = function() {
|
|
638
|
+
return a;
|
|
639
|
+
}, c;
|
|
640
|
+
},
|
|
641
|
+
utcFormat: function(a) {
|
|
642
|
+
var c = A(a += "", O);
|
|
643
|
+
return c.toString = function() {
|
|
644
|
+
return a;
|
|
645
|
+
}, c;
|
|
646
|
+
},
|
|
647
|
+
utcParse: function(a) {
|
|
648
|
+
var c = j(a += "", !0);
|
|
649
|
+
return c.toString = function() {
|
|
650
|
+
return a;
|
|
651
|
+
}, c;
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
var pads = {
|
|
656
|
+
"-": "",
|
|
657
|
+
_: " ",
|
|
658
|
+
0: "0"
|
|
659
|
+
}, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g;
|
|
660
|
+
function pad(a, c, l) {
|
|
661
|
+
var u = a < 0 ? "-" : "", d = (u ? -a : a) + "", f = d.length;
|
|
662
|
+
return u + (f < l ? Array(l - f + 1).join(c) + d : d);
|
|
663
|
+
}
|
|
664
|
+
function requote(a) {
|
|
665
|
+
return a.replace(requoteRe, "\\$&");
|
|
666
|
+
}
|
|
667
|
+
function formatRe(a) {
|
|
668
|
+
return RegExp("^(?:" + a.map(requote).join("|") + ")", "i");
|
|
669
|
+
}
|
|
670
|
+
function formatLookup(a) {
|
|
671
|
+
return new Map(a.map((a, c) => [a.toLowerCase(), c]));
|
|
672
|
+
}
|
|
673
|
+
function parseWeekdayNumberSunday(a, c, l) {
|
|
674
|
+
var u = numberRe.exec(c.slice(l, l + 1));
|
|
675
|
+
return u ? (a.w = +u[0], l + u[0].length) : -1;
|
|
676
|
+
}
|
|
677
|
+
function parseWeekdayNumberMonday(a, c, l) {
|
|
678
|
+
var u = numberRe.exec(c.slice(l, l + 1));
|
|
679
|
+
return u ? (a.u = +u[0], l + u[0].length) : -1;
|
|
680
|
+
}
|
|
681
|
+
function parseWeekNumberSunday(a, c, l) {
|
|
682
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
683
|
+
return u ? (a.U = +u[0], l + u[0].length) : -1;
|
|
684
|
+
}
|
|
685
|
+
function parseWeekNumberISO(a, c, l) {
|
|
686
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
687
|
+
return u ? (a.V = +u[0], l + u[0].length) : -1;
|
|
688
|
+
}
|
|
689
|
+
function parseWeekNumberMonday(a, c, l) {
|
|
690
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
691
|
+
return u ? (a.W = +u[0], l + u[0].length) : -1;
|
|
692
|
+
}
|
|
693
|
+
function parseFullYear(a, c, l) {
|
|
694
|
+
var u = numberRe.exec(c.slice(l, l + 4));
|
|
695
|
+
return u ? (a.y = +u[0], l + u[0].length) : -1;
|
|
696
|
+
}
|
|
697
|
+
function parseYear(a, c, l) {
|
|
698
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
699
|
+
return u ? (a.y = +u[0] + (+u[0] > 68 ? 1900 : 2e3), l + u[0].length) : -1;
|
|
700
|
+
}
|
|
701
|
+
function parseZone(a, c, l) {
|
|
702
|
+
var u = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(c.slice(l, l + 6));
|
|
703
|
+
return u ? (a.Z = u[1] ? 0 : -(u[2] + (u[3] || "00")), l + u[0].length) : -1;
|
|
704
|
+
}
|
|
705
|
+
function parseQuarter(a, c, l) {
|
|
706
|
+
var u = numberRe.exec(c.slice(l, l + 1));
|
|
707
|
+
return u ? (a.q = u[0] * 3 - 3, l + u[0].length) : -1;
|
|
708
|
+
}
|
|
709
|
+
function parseMonthNumber(a, c, l) {
|
|
710
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
711
|
+
return u ? (a.m = u[0] - 1, l + u[0].length) : -1;
|
|
712
|
+
}
|
|
713
|
+
function parseDayOfMonth(a, c, l) {
|
|
714
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
715
|
+
return u ? (a.d = +u[0], l + u[0].length) : -1;
|
|
716
|
+
}
|
|
717
|
+
function parseDayOfYear(a, c, l) {
|
|
718
|
+
var u = numberRe.exec(c.slice(l, l + 3));
|
|
719
|
+
return u ? (a.m = 0, a.d = +u[0], l + u[0].length) : -1;
|
|
720
|
+
}
|
|
721
|
+
function parseHour24(a, c, l) {
|
|
722
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
723
|
+
return u ? (a.H = +u[0], l + u[0].length) : -1;
|
|
724
|
+
}
|
|
725
|
+
function parseMinutes(a, c, l) {
|
|
726
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
727
|
+
return u ? (a.M = +u[0], l + u[0].length) : -1;
|
|
728
|
+
}
|
|
729
|
+
function parseSeconds(a, c, l) {
|
|
730
|
+
var u = numberRe.exec(c.slice(l, l + 2));
|
|
731
|
+
return u ? (a.S = +u[0], l + u[0].length) : -1;
|
|
732
|
+
}
|
|
733
|
+
function parseMilliseconds(a, c, l) {
|
|
734
|
+
var u = numberRe.exec(c.slice(l, l + 3));
|
|
735
|
+
return u ? (a.L = +u[0], l + u[0].length) : -1;
|
|
736
|
+
}
|
|
737
|
+
function parseMicroseconds(a, c, l) {
|
|
738
|
+
var u = numberRe.exec(c.slice(l, l + 6));
|
|
739
|
+
return u ? (a.L = Math.floor(u[0] / 1e3), l + u[0].length) : -1;
|
|
740
|
+
}
|
|
741
|
+
function parseLiteralPercent(a, c, l) {
|
|
742
|
+
var u = percentRe.exec(c.slice(l, l + 1));
|
|
743
|
+
return u ? l + u[0].length : -1;
|
|
744
|
+
}
|
|
745
|
+
function parseUnixTimestamp(a, c, l) {
|
|
746
|
+
var u = numberRe.exec(c.slice(l));
|
|
747
|
+
return u ? (a.Q = +u[0], l + u[0].length) : -1;
|
|
748
|
+
}
|
|
749
|
+
function parseUnixTimestampSeconds(a, c, l) {
|
|
750
|
+
var u = numberRe.exec(c.slice(l));
|
|
751
|
+
return u ? (a.s = +u[0], l + u[0].length) : -1;
|
|
752
|
+
}
|
|
753
|
+
function formatDayOfMonth(a, c) {
|
|
754
|
+
return pad(a.getDate(), c, 2);
|
|
755
|
+
}
|
|
756
|
+
function formatHour24(a, c) {
|
|
757
|
+
return pad(a.getHours(), c, 2);
|
|
758
|
+
}
|
|
759
|
+
function formatHour12(a, c) {
|
|
760
|
+
return pad(a.getHours() % 12 || 12, c, 2);
|
|
761
|
+
}
|
|
762
|
+
function formatDayOfYear(a, c) {
|
|
763
|
+
return pad(1 + timeDay.count(timeYear(a), a), c, 3);
|
|
764
|
+
}
|
|
765
|
+
function formatMilliseconds(a, c) {
|
|
766
|
+
return pad(a.getMilliseconds(), c, 3);
|
|
767
|
+
}
|
|
768
|
+
function formatMicroseconds(a, c) {
|
|
769
|
+
return formatMilliseconds(a, c) + "000";
|
|
770
|
+
}
|
|
771
|
+
function formatMonthNumber(a, c) {
|
|
772
|
+
return pad(a.getMonth() + 1, c, 2);
|
|
773
|
+
}
|
|
774
|
+
function formatMinutes(a, c) {
|
|
775
|
+
return pad(a.getMinutes(), c, 2);
|
|
776
|
+
}
|
|
777
|
+
function formatSeconds(a, c) {
|
|
778
|
+
return pad(a.getSeconds(), c, 2);
|
|
779
|
+
}
|
|
780
|
+
function formatWeekdayNumberMonday(a) {
|
|
781
|
+
var c = a.getDay();
|
|
782
|
+
return c === 0 ? 7 : c;
|
|
783
|
+
}
|
|
784
|
+
function formatWeekNumberSunday(a, c) {
|
|
785
|
+
return pad(timeSunday.count(timeYear(a) - 1, a), c, 2);
|
|
786
|
+
}
|
|
787
|
+
function dISO(a) {
|
|
788
|
+
var c = a.getDay();
|
|
789
|
+
return c >= 4 || c === 0 ? timeThursday(a) : timeThursday.ceil(a);
|
|
790
|
+
}
|
|
791
|
+
function formatWeekNumberISO(a, c) {
|
|
792
|
+
return a = dISO(a), pad(timeThursday.count(timeYear(a), a) + (timeYear(a).getDay() === 4), c, 2);
|
|
793
|
+
}
|
|
794
|
+
function formatWeekdayNumberSunday(a) {
|
|
795
|
+
return a.getDay();
|
|
796
|
+
}
|
|
797
|
+
function formatWeekNumberMonday(a, c) {
|
|
798
|
+
return pad(timeMonday.count(timeYear(a) - 1, a), c, 2);
|
|
799
|
+
}
|
|
800
|
+
function formatYear(a, c) {
|
|
801
|
+
return pad(a.getFullYear() % 100, c, 2);
|
|
802
|
+
}
|
|
803
|
+
function formatYearISO(a, c) {
|
|
804
|
+
return a = dISO(a), pad(a.getFullYear() % 100, c, 2);
|
|
805
|
+
}
|
|
806
|
+
function formatFullYear(a, c) {
|
|
807
|
+
return pad(a.getFullYear() % 1e4, c, 4);
|
|
808
|
+
}
|
|
809
|
+
function formatFullYearISO(a, c) {
|
|
810
|
+
var l = a.getDay();
|
|
811
|
+
return a = l >= 4 || l === 0 ? timeThursday(a) : timeThursday.ceil(a), pad(a.getFullYear() % 1e4, c, 4);
|
|
812
|
+
}
|
|
813
|
+
function formatZone(a) {
|
|
814
|
+
var c = a.getTimezoneOffset();
|
|
815
|
+
return (c > 0 ? "-" : (c *= -1, "+")) + pad(c / 60 | 0, "0", 2) + pad(c % 60, "0", 2);
|
|
816
|
+
}
|
|
817
|
+
function formatUTCDayOfMonth(a, c) {
|
|
818
|
+
return pad(a.getUTCDate(), c, 2);
|
|
819
|
+
}
|
|
820
|
+
function formatUTCHour24(a, c) {
|
|
821
|
+
return pad(a.getUTCHours(), c, 2);
|
|
822
|
+
}
|
|
823
|
+
function formatUTCHour12(a, c) {
|
|
824
|
+
return pad(a.getUTCHours() % 12 || 12, c, 2);
|
|
825
|
+
}
|
|
826
|
+
function formatUTCDayOfYear(a, c) {
|
|
827
|
+
return pad(1 + utcDay.count(utcYear(a), a), c, 3);
|
|
828
|
+
}
|
|
829
|
+
function formatUTCMilliseconds(a, c) {
|
|
830
|
+
return pad(a.getUTCMilliseconds(), c, 3);
|
|
831
|
+
}
|
|
832
|
+
function formatUTCMicroseconds(a, c) {
|
|
833
|
+
return formatUTCMilliseconds(a, c) + "000";
|
|
834
|
+
}
|
|
835
|
+
function formatUTCMonthNumber(a, c) {
|
|
836
|
+
return pad(a.getUTCMonth() + 1, c, 2);
|
|
837
|
+
}
|
|
838
|
+
function formatUTCMinutes(a, c) {
|
|
839
|
+
return pad(a.getUTCMinutes(), c, 2);
|
|
840
|
+
}
|
|
841
|
+
function formatUTCSeconds(a, c) {
|
|
842
|
+
return pad(a.getUTCSeconds(), c, 2);
|
|
843
|
+
}
|
|
844
|
+
function formatUTCWeekdayNumberMonday(a) {
|
|
845
|
+
var c = a.getUTCDay();
|
|
846
|
+
return c === 0 ? 7 : c;
|
|
847
|
+
}
|
|
848
|
+
function formatUTCWeekNumberSunday(a, c) {
|
|
849
|
+
return pad(utcSunday.count(utcYear(a) - 1, a), c, 2);
|
|
850
|
+
}
|
|
851
|
+
function UTCdISO(a) {
|
|
852
|
+
var c = a.getUTCDay();
|
|
853
|
+
return c >= 4 || c === 0 ? utcThursday(a) : utcThursday.ceil(a);
|
|
854
|
+
}
|
|
855
|
+
function formatUTCWeekNumberISO(a, c) {
|
|
856
|
+
return a = UTCdISO(a), pad(utcThursday.count(utcYear(a), a) + (utcYear(a).getUTCDay() === 4), c, 2);
|
|
857
|
+
}
|
|
858
|
+
function formatUTCWeekdayNumberSunday(a) {
|
|
859
|
+
return a.getUTCDay();
|
|
860
|
+
}
|
|
861
|
+
function formatUTCWeekNumberMonday(a, c) {
|
|
862
|
+
return pad(utcMonday.count(utcYear(a) - 1, a), c, 2);
|
|
863
|
+
}
|
|
864
|
+
function formatUTCYear(a, c) {
|
|
865
|
+
return pad(a.getUTCFullYear() % 100, c, 2);
|
|
866
|
+
}
|
|
867
|
+
function formatUTCYearISO(a, c) {
|
|
868
|
+
return a = UTCdISO(a), pad(a.getUTCFullYear() % 100, c, 2);
|
|
869
|
+
}
|
|
870
|
+
function formatUTCFullYear(a, c) {
|
|
871
|
+
return pad(a.getUTCFullYear() % 1e4, c, 4);
|
|
872
|
+
}
|
|
873
|
+
function formatUTCFullYearISO(a, c) {
|
|
874
|
+
var l = a.getUTCDay();
|
|
875
|
+
return a = l >= 4 || l === 0 ? utcThursday(a) : utcThursday.ceil(a), pad(a.getUTCFullYear() % 1e4, c, 4);
|
|
876
|
+
}
|
|
877
|
+
function formatUTCZone() {
|
|
878
|
+
return "+0000";
|
|
879
|
+
}
|
|
880
|
+
function formatLiteralPercent() {
|
|
881
|
+
return "%";
|
|
882
|
+
}
|
|
883
|
+
function formatUnixTimestamp(a) {
|
|
884
|
+
return +a;
|
|
885
|
+
}
|
|
886
|
+
function formatUnixTimestampSeconds(a) {
|
|
887
|
+
return Math.floor(a / 1e3);
|
|
888
|
+
}
|
|
889
|
+
var locale, timeFormat;
|
|
890
|
+
defaultLocale({
|
|
891
|
+
dateTime: "%x, %X",
|
|
892
|
+
date: "%-m/%-d/%Y",
|
|
893
|
+
time: "%-I:%M:%S %p",
|
|
894
|
+
periods: ["AM", "PM"],
|
|
895
|
+
days: [
|
|
896
|
+
"Sunday",
|
|
897
|
+
"Monday",
|
|
898
|
+
"Tuesday",
|
|
899
|
+
"Wednesday",
|
|
900
|
+
"Thursday",
|
|
901
|
+
"Friday",
|
|
902
|
+
"Saturday"
|
|
903
|
+
],
|
|
904
|
+
shortDays: [
|
|
905
|
+
"Sun",
|
|
906
|
+
"Mon",
|
|
907
|
+
"Tue",
|
|
908
|
+
"Wed",
|
|
909
|
+
"Thu",
|
|
910
|
+
"Fri",
|
|
911
|
+
"Sat"
|
|
912
|
+
],
|
|
913
|
+
months: [
|
|
914
|
+
"January",
|
|
915
|
+
"February",
|
|
916
|
+
"March",
|
|
917
|
+
"April",
|
|
918
|
+
"May",
|
|
919
|
+
"June",
|
|
920
|
+
"July",
|
|
921
|
+
"August",
|
|
922
|
+
"September",
|
|
923
|
+
"October",
|
|
924
|
+
"November",
|
|
925
|
+
"December"
|
|
926
|
+
],
|
|
927
|
+
shortMonths: [
|
|
928
|
+
"Jan",
|
|
929
|
+
"Feb",
|
|
930
|
+
"Mar",
|
|
931
|
+
"Apr",
|
|
932
|
+
"May",
|
|
933
|
+
"Jun",
|
|
934
|
+
"Jul",
|
|
935
|
+
"Aug",
|
|
936
|
+
"Sep",
|
|
937
|
+
"Oct",
|
|
938
|
+
"Nov",
|
|
939
|
+
"Dec"
|
|
940
|
+
]
|
|
941
|
+
});
|
|
942
|
+
function defaultLocale(a) {
|
|
943
|
+
return locale = formatLocale(a), timeFormat = locale.format, locale.parse, locale.utcFormat, locale.utcParse, locale;
|
|
944
|
+
}
|
|
945
|
+
function date(a) {
|
|
946
|
+
return new Date(a);
|
|
947
|
+
}
|
|
948
|
+
function number(a) {
|
|
949
|
+
return a instanceof Date ? +a : +/* @__PURE__ */ new Date(+a);
|
|
950
|
+
}
|
|
951
|
+
function calendar(a, c, l, u, d, f, p, m, h, g) {
|
|
952
|
+
var _ = continuous(), v = _.invert, y = _.domain, b = g(".%L"), x = g(":%S"), S = g("%I:%M"), C = g("%I %p"), T = g("%a %d"), E = g("%b %d"), D = g("%B"), O = g("%Y");
|
|
953
|
+
function k(a) {
|
|
954
|
+
return (h(a) < a ? b : m(a) < a ? x : p(a) < a ? S : f(a) < a ? C : u(a) < a ? d(a) < a ? T : E : l(a) < a ? D : O)(a);
|
|
955
|
+
}
|
|
956
|
+
return _.invert = function(a) {
|
|
957
|
+
return new Date(v(a));
|
|
958
|
+
}, _.domain = function(a) {
|
|
959
|
+
return arguments.length ? y(Array.from(a, number)) : y().map(date);
|
|
960
|
+
}, _.ticks = function(c) {
|
|
961
|
+
var l = y();
|
|
962
|
+
return a(l[0], l[l.length - 1], c ?? 10);
|
|
963
|
+
}, _.tickFormat = function(a, c) {
|
|
964
|
+
return c == null ? k : g(c);
|
|
965
|
+
}, _.nice = function(a) {
|
|
966
|
+
var l = y();
|
|
967
|
+
return (!a || typeof a.range != "function") && (a = c(l[0], l[l.length - 1], a ?? 10)), a ? y(nice(l, a)) : _;
|
|
968
|
+
}, _.copy = function() {
|
|
969
|
+
return copy(_, calendar(a, c, l, u, d, f, p, m, h, g));
|
|
970
|
+
}, _;
|
|
971
|
+
}
|
|
972
|
+
function time() {
|
|
973
|
+
return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute, second, timeFormat).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
974
|
+
}
|
|
975
|
+
var require_isoWeek = /* @__PURE__ */ __commonJSMin(((a, c) => {
|
|
976
|
+
(function(l, u) {
|
|
977
|
+
typeof a == "object" && c !== void 0 ? c.exports = u() : typeof define == "function" && define.amd ? define(u) : (l = typeof globalThis < "u" ? globalThis : l || self).dayjs_plugin_isoWeek = u();
|
|
978
|
+
})(a, (function() {
|
|
979
|
+
var a = "day";
|
|
980
|
+
return function(c, l, u) {
|
|
981
|
+
var d = function(c) {
|
|
982
|
+
return c.add(4 - c.isoWeekday(), a);
|
|
983
|
+
}, f = l.prototype;
|
|
984
|
+
f.isoWeekYear = function() {
|
|
985
|
+
return d(this).year();
|
|
986
|
+
}, f.isoWeek = function(c) {
|
|
987
|
+
if (!this.$utils().u(c)) return this.add(7 * (c - this.isoWeek()), a);
|
|
988
|
+
var l, f, p, m, h = d(this), g = (l = this.isoWeekYear(), f = this.$u, p = (f ? u.utc : u)().year(l).startOf("year"), m = 4 - p.isoWeekday(), p.isoWeekday() > 4 && (m += 7), p.add(m, a));
|
|
989
|
+
return h.diff(g, "week") + 1;
|
|
990
|
+
}, f.isoWeekday = function(a) {
|
|
991
|
+
return this.$utils().u(a) ? this.day() || 7 : this.day(this.day() % 7 ? a : a - 7);
|
|
992
|
+
};
|
|
993
|
+
var p = f.startOf;
|
|
994
|
+
f.startOf = function(a, c) {
|
|
995
|
+
var l = this.$utils(), u = !!l.u(c) || c;
|
|
996
|
+
return l.p(a) === "isoweek" ? u ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : p.bind(this)(a, c);
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
}));
|
|
1000
|
+
})), require_customParseFormat = /* @__PURE__ */ __commonJSMin(((a, c) => {
|
|
1001
|
+
(function(l, u) {
|
|
1002
|
+
typeof a == "object" && c !== void 0 ? c.exports = u() : typeof define == "function" && define.amd ? define(u) : (l = typeof globalThis < "u" ? globalThis : l || self).dayjs_plugin_customParseFormat = u();
|
|
1003
|
+
})(a, (function() {
|
|
1004
|
+
var a = {
|
|
1005
|
+
LTS: "h:mm:ss A",
|
|
1006
|
+
LT: "h:mm A",
|
|
1007
|
+
L: "MM/DD/YYYY",
|
|
1008
|
+
LL: "MMMM D, YYYY",
|
|
1009
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
1010
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1011
|
+
}, c = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, u = /\d\d/, d = /\d\d?/, f = /\d*[^-_:/,()\s\d]+/, p = {}, m = function(a) {
|
|
1012
|
+
return (a = +a) + (a > 68 ? 1900 : 2e3);
|
|
1013
|
+
}, h = function(a) {
|
|
1014
|
+
return function(c) {
|
|
1015
|
+
this[a] = +c;
|
|
1016
|
+
};
|
|
1017
|
+
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(a) {
|
|
1018
|
+
(this.zone ||= {}).offset = function(a) {
|
|
1019
|
+
if (!a || a === "Z") return 0;
|
|
1020
|
+
var c = a.match(/([+-]|\d\d)/g), l = 60 * c[1] + (+c[2] || 0);
|
|
1021
|
+
return l === 0 ? 0 : c[0] === "+" ? -l : l;
|
|
1022
|
+
}(a);
|
|
1023
|
+
}], _ = function(a) {
|
|
1024
|
+
var c = p[a];
|
|
1025
|
+
return c && (c.indexOf ? c : c.s.concat(c.f));
|
|
1026
|
+
}, v = function(a, c) {
|
|
1027
|
+
var l, u = p.meridiem;
|
|
1028
|
+
if (u) {
|
|
1029
|
+
for (var d = 1; d <= 24; d += 1) if (a.indexOf(u(d, 0, c)) > -1) {
|
|
1030
|
+
l = d > 12;
|
|
1031
|
+
break;
|
|
1032
|
+
}
|
|
1033
|
+
} else l = a === (c ? "pm" : "PM");
|
|
1034
|
+
return l;
|
|
1035
|
+
}, y = {
|
|
1036
|
+
A: [f, function(a) {
|
|
1037
|
+
this.afternoon = v(a, !1);
|
|
1038
|
+
}],
|
|
1039
|
+
a: [f, function(a) {
|
|
1040
|
+
this.afternoon = v(a, !0);
|
|
1041
|
+
}],
|
|
1042
|
+
Q: [l, function(a) {
|
|
1043
|
+
this.month = 3 * (a - 1) + 1;
|
|
1044
|
+
}],
|
|
1045
|
+
S: [l, function(a) {
|
|
1046
|
+
this.milliseconds = 100 * a;
|
|
1047
|
+
}],
|
|
1048
|
+
SS: [u, function(a) {
|
|
1049
|
+
this.milliseconds = 10 * a;
|
|
1050
|
+
}],
|
|
1051
|
+
SSS: [/\d{3}/, function(a) {
|
|
1052
|
+
this.milliseconds = +a;
|
|
1053
|
+
}],
|
|
1054
|
+
s: [d, h("seconds")],
|
|
1055
|
+
ss: [d, h("seconds")],
|
|
1056
|
+
m: [d, h("minutes")],
|
|
1057
|
+
mm: [d, h("minutes")],
|
|
1058
|
+
H: [d, h("hours")],
|
|
1059
|
+
h: [d, h("hours")],
|
|
1060
|
+
HH: [d, h("hours")],
|
|
1061
|
+
hh: [d, h("hours")],
|
|
1062
|
+
D: [d, h("day")],
|
|
1063
|
+
DD: [u, h("day")],
|
|
1064
|
+
Do: [f, function(a) {
|
|
1065
|
+
var c = p.ordinal;
|
|
1066
|
+
if (this.day = a.match(/\d+/)[0], c) for (var l = 1; l <= 31; l += 1) c(l).replace(/\[|\]/g, "") === a && (this.day = l);
|
|
1067
|
+
}],
|
|
1068
|
+
w: [d, h("week")],
|
|
1069
|
+
ww: [u, h("week")],
|
|
1070
|
+
M: [d, h("month")],
|
|
1071
|
+
MM: [u, h("month")],
|
|
1072
|
+
MMM: [f, function(a) {
|
|
1073
|
+
var c = _("months"), l = (_("monthsShort") || c.map((function(a) {
|
|
1074
|
+
return a.slice(0, 3);
|
|
1075
|
+
}))).indexOf(a) + 1;
|
|
1076
|
+
if (l < 1) throw Error();
|
|
1077
|
+
this.month = l % 12 || l;
|
|
1078
|
+
}],
|
|
1079
|
+
MMMM: [f, function(a) {
|
|
1080
|
+
var c = _("months").indexOf(a) + 1;
|
|
1081
|
+
if (c < 1) throw Error();
|
|
1082
|
+
this.month = c % 12 || c;
|
|
1083
|
+
}],
|
|
1084
|
+
Y: [/[+-]?\d+/, h("year")],
|
|
1085
|
+
YY: [u, function(a) {
|
|
1086
|
+
this.year = m(a);
|
|
1087
|
+
}],
|
|
1088
|
+
YYYY: [/\d{4}/, h("year")],
|
|
1089
|
+
Z: g,
|
|
1090
|
+
ZZ: g
|
|
1091
|
+
};
|
|
1092
|
+
function b(l) {
|
|
1093
|
+
for (var u = l, d = p && p.formats, f = (l = u.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(c, l, u) {
|
|
1094
|
+
var f = u && u.toUpperCase();
|
|
1095
|
+
return l || d[u] || a[u] || d[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(a, c, l) {
|
|
1096
|
+
return c || l.slice(1);
|
|
1097
|
+
}));
|
|
1098
|
+
}))).match(c), m = f.length, h = 0; h < m; h += 1) {
|
|
1099
|
+
var g = f[h], _ = y[g], v = _ && _[0], b = _ && _[1];
|
|
1100
|
+
f[h] = b ? {
|
|
1101
|
+
regex: v,
|
|
1102
|
+
parser: b
|
|
1103
|
+
} : g.replace(/^\[|\]$/g, "");
|
|
1104
|
+
}
|
|
1105
|
+
return function(a) {
|
|
1106
|
+
for (var c = {}, l = 0, u = 0; l < m; l += 1) {
|
|
1107
|
+
var d = f[l];
|
|
1108
|
+
if (typeof d == "string") u += d.length;
|
|
1109
|
+
else {
|
|
1110
|
+
var p = d.regex, h = d.parser, g = a.slice(u), _ = p.exec(g)[0];
|
|
1111
|
+
h.call(c, _), a = a.replace(_, "");
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
return function(a) {
|
|
1115
|
+
var c = a.afternoon;
|
|
1116
|
+
if (c !== void 0) {
|
|
1117
|
+
var l = a.hours;
|
|
1118
|
+
c ? l < 12 && (a.hours += 12) : l === 12 && (a.hours = 0), delete a.afternoon;
|
|
1119
|
+
}
|
|
1120
|
+
}(c), c;
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
return function(a, c, l) {
|
|
1124
|
+
l.p.customParseFormat = !0, a && a.parseTwoDigitYear && (m = a.parseTwoDigitYear);
|
|
1125
|
+
var u = c.prototype, d = u.parse;
|
|
1126
|
+
u.parse = function(a) {
|
|
1127
|
+
var c = a.date, u = a.utc, f = a.args;
|
|
1128
|
+
this.$u = u;
|
|
1129
|
+
var m = f[1];
|
|
1130
|
+
if (typeof m == "string") {
|
|
1131
|
+
var h = !0 === f[2], g = !0 === f[3], _ = h || g, v = f[2];
|
|
1132
|
+
g && (v = f[2]), p = this.$locale(), !h && v && (p = l.Ls[v]), this.$d = function(a, c, l, u) {
|
|
1133
|
+
try {
|
|
1134
|
+
if (["x", "X"].indexOf(c) > -1) return /* @__PURE__ */ new Date((c === "X" ? 1e3 : 1) * a);
|
|
1135
|
+
var d = b(c)(a), f = d.year, p = d.month, m = d.day, h = d.hours, g = d.minutes, _ = d.seconds, v = d.milliseconds, y = d.zone, x = d.week, S = /* @__PURE__ */ new Date(), C = m || (f || p ? 1 : S.getDate()), T = f || S.getFullYear(), E = 0;
|
|
1136
|
+
f && !p || (E = p > 0 ? p - 1 : S.getMonth());
|
|
1137
|
+
var D, O = h || 0, k = g || 0, A = _ || 0, j = v || 0;
|
|
1138
|
+
return y ? new Date(Date.UTC(T, E, C, O, k, A, j + 60 * y.offset * 1e3)) : l ? new Date(Date.UTC(T, E, C, O, k, A, j)) : (D = new Date(T, E, C, O, k, A, j), x && (D = u(D).week(x).toDate()), D);
|
|
1139
|
+
} catch {
|
|
1140
|
+
return /* @__PURE__ */ new Date("");
|
|
1141
|
+
}
|
|
1142
|
+
}(c, m, u, l), this.init(), v && !0 !== v && (this.$L = this.locale(v).$L), _ && c != this.format(m) && (this.$d = /* @__PURE__ */ new Date("")), p = {};
|
|
1143
|
+
} else if (m instanceof Array) for (var y = m.length, x = 1; x <= y; x += 1) {
|
|
1144
|
+
f[1] = m[x - 1];
|
|
1145
|
+
var S = l.apply(this, f);
|
|
1146
|
+
if (S.isValid()) {
|
|
1147
|
+
this.$d = S.$d, this.$L = S.$L, this.init();
|
|
1148
|
+
break;
|
|
1149
|
+
}
|
|
1150
|
+
x === y && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1151
|
+
}
|
|
1152
|
+
else d.call(this, a);
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
}));
|
|
1156
|
+
})), require_advancedFormat = /* @__PURE__ */ __commonJSMin(((a, c) => {
|
|
1157
|
+
(function(l, u) {
|
|
1158
|
+
typeof a == "object" && c !== void 0 ? c.exports = u() : typeof define == "function" && define.amd ? define(u) : (l = typeof globalThis < "u" ? globalThis : l || self).dayjs_plugin_advancedFormat = u();
|
|
1159
|
+
})(a, (function() {
|
|
1160
|
+
return function(a, c) {
|
|
1161
|
+
var l = c.prototype, u = l.format;
|
|
1162
|
+
l.format = function(a) {
|
|
1163
|
+
var c = this, l = this.$locale();
|
|
1164
|
+
if (!this.isValid()) return u.bind(this)(a);
|
|
1165
|
+
var d = this.$utils(), f = (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(a) {
|
|
1166
|
+
switch (a) {
|
|
1167
|
+
case "Q": return Math.ceil((c.$M + 1) / 3);
|
|
1168
|
+
case "Do": return l.ordinal(c.$D);
|
|
1169
|
+
case "gggg": return c.weekYear();
|
|
1170
|
+
case "GGGG": return c.isoWeekYear();
|
|
1171
|
+
case "wo": return l.ordinal(c.week(), "W");
|
|
1172
|
+
case "w":
|
|
1173
|
+
case "ww": return d.s(c.week(), a === "w" ? 1 : 2, "0");
|
|
1174
|
+
case "W":
|
|
1175
|
+
case "WW": return d.s(c.isoWeek(), a === "W" ? 1 : 2, "0");
|
|
1176
|
+
case "k":
|
|
1177
|
+
case "kk": return d.s(String(c.$H === 0 ? 24 : c.$H), a === "k" ? 1 : 2, "0");
|
|
1178
|
+
case "X": return Math.floor(c.$d.getTime() / 1e3);
|
|
1179
|
+
case "x": return c.$d.getTime();
|
|
1180
|
+
case "z": return "[" + c.offsetName() + "]";
|
|
1181
|
+
case "zzz": return "[" + c.offsetName("long") + "]";
|
|
1182
|
+
default: return a;
|
|
1183
|
+
}
|
|
1184
|
+
}));
|
|
1185
|
+
return u.bind(this)(f);
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
}));
|
|
1189
|
+
})), require_duration = /* @__PURE__ */ __commonJSMin(((a, c) => {
|
|
1190
|
+
(function(l, u) {
|
|
1191
|
+
typeof a == "object" && c !== void 0 ? c.exports = u() : typeof define == "function" && define.amd ? define(u) : (l = typeof globalThis < "u" ? globalThis : l || self).dayjs_plugin_duration = u();
|
|
1192
|
+
})(a, (function() {
|
|
1193
|
+
var a, c, l = 1e3, u = 6e4, d = 36e5, f = 864e5, p = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = 31536e6, h = 2628e6, g = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, _ = {
|
|
1194
|
+
years: m,
|
|
1195
|
+
months: h,
|
|
1196
|
+
days: f,
|
|
1197
|
+
hours: d,
|
|
1198
|
+
minutes: u,
|
|
1199
|
+
seconds: l,
|
|
1200
|
+
milliseconds: 1,
|
|
1201
|
+
weeks: 6048e5
|
|
1202
|
+
}, v = function(a) {
|
|
1203
|
+
return a instanceof E;
|
|
1204
|
+
}, y = function(a, c, l) {
|
|
1205
|
+
return new E(a, l, c.$l);
|
|
1206
|
+
}, b = function(a) {
|
|
1207
|
+
return c.p(a) + "s";
|
|
1208
|
+
}, x = function(a) {
|
|
1209
|
+
return a < 0;
|
|
1210
|
+
}, S = function(a) {
|
|
1211
|
+
return x(a) ? Math.ceil(a) : Math.floor(a);
|
|
1212
|
+
}, C = function(a) {
|
|
1213
|
+
return Math.abs(a);
|
|
1214
|
+
}, T = function(a, c) {
|
|
1215
|
+
return a ? x(a) ? {
|
|
1216
|
+
negative: !0,
|
|
1217
|
+
format: "" + C(a) + c
|
|
1218
|
+
} : {
|
|
1219
|
+
negative: !1,
|
|
1220
|
+
format: "" + a + c
|
|
1221
|
+
} : {
|
|
1222
|
+
negative: !1,
|
|
1223
|
+
format: ""
|
|
1224
|
+
};
|
|
1225
|
+
}, E = function() {
|
|
1226
|
+
function x(a, c, l) {
|
|
1227
|
+
var u = this;
|
|
1228
|
+
if (this.$d = {}, this.$l = l, a === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), c) return y(a * _[b(c)], this);
|
|
1229
|
+
if (typeof a == "number") return this.$ms = a, this.parseFromMilliseconds(), this;
|
|
1230
|
+
if (typeof a == "object") return Object.keys(a).forEach((function(c) {
|
|
1231
|
+
u.$d[b(c)] = a[c];
|
|
1232
|
+
})), this.calMilliseconds(), this;
|
|
1233
|
+
if (typeof a == "string") {
|
|
1234
|
+
var d = a.match(g);
|
|
1235
|
+
if (d) {
|
|
1236
|
+
var f = d.slice(2).map((function(a) {
|
|
1237
|
+
return a == null ? 0 : Number(a);
|
|
1238
|
+
}));
|
|
1239
|
+
return this.$d.years = f[0], this.$d.months = f[1], this.$d.weeks = f[2], this.$d.days = f[3], this.$d.hours = f[4], this.$d.minutes = f[5], this.$d.seconds = f[6], this.calMilliseconds(), this;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
return this;
|
|
1243
|
+
}
|
|
1244
|
+
var C = x.prototype;
|
|
1245
|
+
return C.calMilliseconds = function() {
|
|
1246
|
+
var a = this;
|
|
1247
|
+
this.$ms = Object.keys(this.$d).reduce((function(c, l) {
|
|
1248
|
+
return c + (a.$d[l] || 0) * _[l];
|
|
1249
|
+
}), 0);
|
|
1250
|
+
}, C.parseFromMilliseconds = function() {
|
|
1251
|
+
var a = this.$ms;
|
|
1252
|
+
this.$d.years = S(a / m), a %= m, this.$d.months = S(a / h), a %= h, this.$d.days = S(a / f), a %= f, this.$d.hours = S(a / d), a %= d, this.$d.minutes = S(a / u), a %= u, this.$d.seconds = S(a / l), a %= l, this.$d.milliseconds = a;
|
|
1253
|
+
}, C.toISOString = function() {
|
|
1254
|
+
var a = T(this.$d.years, "Y"), c = T(this.$d.months, "M"), l = +this.$d.days || 0;
|
|
1255
|
+
this.$d.weeks && (l += 7 * this.$d.weeks);
|
|
1256
|
+
var u = T(l, "D"), d = T(this.$d.hours, "H"), f = T(this.$d.minutes, "M"), p = this.$d.seconds || 0;
|
|
1257
|
+
this.$d.milliseconds && (p += this.$d.milliseconds / 1e3, p = Math.round(1e3 * p) / 1e3);
|
|
1258
|
+
var m = T(p, "S"), h = a.negative || c.negative || u.negative || d.negative || f.negative || m.negative, g = d.format || f.format || m.format ? "T" : "", _ = (h ? "-" : "") + "P" + a.format + c.format + u.format + g + d.format + f.format + m.format;
|
|
1259
|
+
return _ === "P" || _ === "-P" ? "P0D" : _;
|
|
1260
|
+
}, C.toJSON = function() {
|
|
1261
|
+
return this.toISOString();
|
|
1262
|
+
}, C.format = function(a) {
|
|
1263
|
+
var l = a || "YYYY-MM-DDTHH:mm:ss", u = {
|
|
1264
|
+
Y: this.$d.years,
|
|
1265
|
+
YY: c.s(this.$d.years, 2, "0"),
|
|
1266
|
+
YYYY: c.s(this.$d.years, 4, "0"),
|
|
1267
|
+
M: this.$d.months,
|
|
1268
|
+
MM: c.s(this.$d.months, 2, "0"),
|
|
1269
|
+
D: this.$d.days,
|
|
1270
|
+
DD: c.s(this.$d.days, 2, "0"),
|
|
1271
|
+
H: this.$d.hours,
|
|
1272
|
+
HH: c.s(this.$d.hours, 2, "0"),
|
|
1273
|
+
m: this.$d.minutes,
|
|
1274
|
+
mm: c.s(this.$d.minutes, 2, "0"),
|
|
1275
|
+
s: this.$d.seconds,
|
|
1276
|
+
ss: c.s(this.$d.seconds, 2, "0"),
|
|
1277
|
+
SSS: c.s(this.$d.milliseconds, 3, "0")
|
|
1278
|
+
};
|
|
1279
|
+
return l.replace(p, (function(a, c) {
|
|
1280
|
+
return c || String(u[a]);
|
|
1281
|
+
}));
|
|
1282
|
+
}, C.as = function(a) {
|
|
1283
|
+
return this.$ms / _[b(a)];
|
|
1284
|
+
}, C.get = function(a) {
|
|
1285
|
+
var c = this.$ms, l = b(a);
|
|
1286
|
+
return l === "milliseconds" ? c %= 1e3 : c = l === "weeks" ? S(c / _[l]) : this.$d[l], c || 0;
|
|
1287
|
+
}, C.add = function(a, c, l) {
|
|
1288
|
+
var u;
|
|
1289
|
+
return u = c ? a * _[b(c)] : v(a) ? a.$ms : y(a, this).$ms, y(this.$ms + u * (l ? -1 : 1), this);
|
|
1290
|
+
}, C.subtract = function(a, c) {
|
|
1291
|
+
return this.add(a, c, !0);
|
|
1292
|
+
}, C.locale = function(a) {
|
|
1293
|
+
var c = this.clone();
|
|
1294
|
+
return c.$l = a, c;
|
|
1295
|
+
}, C.clone = function() {
|
|
1296
|
+
return y(this.$ms, this);
|
|
1297
|
+
}, C.humanize = function(c) {
|
|
1298
|
+
return a().add(this.$ms, "ms").locale(this.$l).fromNow(!c);
|
|
1299
|
+
}, C.valueOf = function() {
|
|
1300
|
+
return this.asMilliseconds();
|
|
1301
|
+
}, C.milliseconds = function() {
|
|
1302
|
+
return this.get("milliseconds");
|
|
1303
|
+
}, C.asMilliseconds = function() {
|
|
1304
|
+
return this.as("milliseconds");
|
|
1305
|
+
}, C.seconds = function() {
|
|
1306
|
+
return this.get("seconds");
|
|
1307
|
+
}, C.asSeconds = function() {
|
|
1308
|
+
return this.as("seconds");
|
|
1309
|
+
}, C.minutes = function() {
|
|
1310
|
+
return this.get("minutes");
|
|
1311
|
+
}, C.asMinutes = function() {
|
|
1312
|
+
return this.as("minutes");
|
|
1313
|
+
}, C.hours = function() {
|
|
1314
|
+
return this.get("hours");
|
|
1315
|
+
}, C.asHours = function() {
|
|
1316
|
+
return this.as("hours");
|
|
1317
|
+
}, C.days = function() {
|
|
1318
|
+
return this.get("days");
|
|
1319
|
+
}, C.asDays = function() {
|
|
1320
|
+
return this.as("days");
|
|
1321
|
+
}, C.weeks = function() {
|
|
1322
|
+
return this.get("weeks");
|
|
1323
|
+
}, C.asWeeks = function() {
|
|
1324
|
+
return this.as("weeks");
|
|
1325
|
+
}, C.months = function() {
|
|
1326
|
+
return this.get("months");
|
|
1327
|
+
}, C.asMonths = function() {
|
|
1328
|
+
return this.as("months");
|
|
1329
|
+
}, C.years = function() {
|
|
1330
|
+
return this.get("years");
|
|
1331
|
+
}, C.asYears = function() {
|
|
1332
|
+
return this.as("years");
|
|
1333
|
+
}, x;
|
|
1334
|
+
}(), D = function(a, c, l) {
|
|
1335
|
+
return a.add(c.years() * l, "y").add(c.months() * l, "M").add(c.days() * l, "d").add(c.hours() * l, "h").add(c.minutes() * l, "m").add(c.seconds() * l, "s").add(c.milliseconds() * l, "ms");
|
|
1336
|
+
};
|
|
1337
|
+
return function(l, u, d) {
|
|
1338
|
+
a = d, c = d().$utils(), d.duration = function(a, c) {
|
|
1339
|
+
return y(a, { $l: d.locale() }, c);
|
|
1340
|
+
}, d.isDuration = v;
|
|
1341
|
+
var f = u.prototype.add, p = u.prototype.subtract;
|
|
1342
|
+
u.prototype.add = function(a, c) {
|
|
1343
|
+
return v(a) ? D(this, a, 1) : f.bind(this)(a, c);
|
|
1344
|
+
}, u.prototype.subtract = function(a, c) {
|
|
1345
|
+
return v(a) ? D(this, a, -1) : p.bind(this)(a, c);
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
}));
|
|
1349
|
+
})), import_dist = require_dist(), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), import_isoWeek = /* @__PURE__ */ __toESM(require_isoWeek(), 1), import_customParseFormat = /* @__PURE__ */ __toESM(require_customParseFormat(), 1), import_advancedFormat = /* @__PURE__ */ __toESM(require_advancedFormat(), 1), import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), import_duration = /* @__PURE__ */ __toESM(require_duration(), 1), parser = (function() {
|
|
1350
|
+
var a = /* @__PURE__ */ __name(function(a, c, l, u) {
|
|
1351
|
+
for (l ||= {}, u = a.length; u--; l[a[u]] = c);
|
|
1352
|
+
return l;
|
|
1353
|
+
}, "o"), c = [
|
|
1354
|
+
6,
|
|
1355
|
+
8,
|
|
1356
|
+
10,
|
|
1357
|
+
12,
|
|
1358
|
+
13,
|
|
1359
|
+
14,
|
|
1360
|
+
15,
|
|
1361
|
+
16,
|
|
1362
|
+
17,
|
|
1363
|
+
18,
|
|
1364
|
+
20,
|
|
1365
|
+
21,
|
|
1366
|
+
22,
|
|
1367
|
+
23,
|
|
1368
|
+
24,
|
|
1369
|
+
25,
|
|
1370
|
+
26,
|
|
1371
|
+
27,
|
|
1372
|
+
28,
|
|
1373
|
+
29,
|
|
1374
|
+
30,
|
|
1375
|
+
31,
|
|
1376
|
+
33,
|
|
1377
|
+
35,
|
|
1378
|
+
36,
|
|
1379
|
+
38,
|
|
1380
|
+
40
|
|
1381
|
+
], l = [1, 26], u = [1, 27], d = [1, 28], f = [1, 29], p = [1, 30], h = [1, 31], g = [1, 32], _ = [1, 33], v = [1, 34], y = [1, 9], b = [1, 10], x = [1, 11], S = [1, 12], C = [1, 13], T = [1, 14], E = [1, 15], D = [1, 16], O = [1, 19], k = [1, 20], A = [1, 21], j = [1, 22], M = [1, 23], N = [1, 25], P = [1, 35], F = {
|
|
1382
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
1383
|
+
yy: {},
|
|
1384
|
+
symbols_: {
|
|
1385
|
+
error: 2,
|
|
1386
|
+
start: 3,
|
|
1387
|
+
gantt: 4,
|
|
1388
|
+
document: 5,
|
|
1389
|
+
EOF: 6,
|
|
1390
|
+
line: 7,
|
|
1391
|
+
SPACE: 8,
|
|
1392
|
+
statement: 9,
|
|
1393
|
+
NL: 10,
|
|
1394
|
+
weekday: 11,
|
|
1395
|
+
weekday_monday: 12,
|
|
1396
|
+
weekday_tuesday: 13,
|
|
1397
|
+
weekday_wednesday: 14,
|
|
1398
|
+
weekday_thursday: 15,
|
|
1399
|
+
weekday_friday: 16,
|
|
1400
|
+
weekday_saturday: 17,
|
|
1401
|
+
weekday_sunday: 18,
|
|
1402
|
+
weekend: 19,
|
|
1403
|
+
weekend_friday: 20,
|
|
1404
|
+
weekend_saturday: 21,
|
|
1405
|
+
dateFormat: 22,
|
|
1406
|
+
inclusiveEndDates: 23,
|
|
1407
|
+
topAxis: 24,
|
|
1408
|
+
axisFormat: 25,
|
|
1409
|
+
tickInterval: 26,
|
|
1410
|
+
excludes: 27,
|
|
1411
|
+
includes: 28,
|
|
1412
|
+
todayMarker: 29,
|
|
1413
|
+
title: 30,
|
|
1414
|
+
acc_title: 31,
|
|
1415
|
+
acc_title_value: 32,
|
|
1416
|
+
acc_descr: 33,
|
|
1417
|
+
acc_descr_value: 34,
|
|
1418
|
+
acc_descr_multiline_value: 35,
|
|
1419
|
+
section: 36,
|
|
1420
|
+
clickStatement: 37,
|
|
1421
|
+
taskTxt: 38,
|
|
1422
|
+
taskData: 39,
|
|
1423
|
+
click: 40,
|
|
1424
|
+
callbackname: 41,
|
|
1425
|
+
callbackargs: 42,
|
|
1426
|
+
href: 43,
|
|
1427
|
+
clickStatementDebug: 44,
|
|
1428
|
+
$accept: 0,
|
|
1429
|
+
$end: 1
|
|
1430
|
+
},
|
|
1431
|
+
terminals_: {
|
|
1432
|
+
2: "error",
|
|
1433
|
+
4: "gantt",
|
|
1434
|
+
6: "EOF",
|
|
1435
|
+
8: "SPACE",
|
|
1436
|
+
10: "NL",
|
|
1437
|
+
12: "weekday_monday",
|
|
1438
|
+
13: "weekday_tuesday",
|
|
1439
|
+
14: "weekday_wednesday",
|
|
1440
|
+
15: "weekday_thursday",
|
|
1441
|
+
16: "weekday_friday",
|
|
1442
|
+
17: "weekday_saturday",
|
|
1443
|
+
18: "weekday_sunday",
|
|
1444
|
+
20: "weekend_friday",
|
|
1445
|
+
21: "weekend_saturday",
|
|
1446
|
+
22: "dateFormat",
|
|
1447
|
+
23: "inclusiveEndDates",
|
|
1448
|
+
24: "topAxis",
|
|
1449
|
+
25: "axisFormat",
|
|
1450
|
+
26: "tickInterval",
|
|
1451
|
+
27: "excludes",
|
|
1452
|
+
28: "includes",
|
|
1453
|
+
29: "todayMarker",
|
|
1454
|
+
30: "title",
|
|
1455
|
+
31: "acc_title",
|
|
1456
|
+
32: "acc_title_value",
|
|
1457
|
+
33: "acc_descr",
|
|
1458
|
+
34: "acc_descr_value",
|
|
1459
|
+
35: "acc_descr_multiline_value",
|
|
1460
|
+
36: "section",
|
|
1461
|
+
38: "taskTxt",
|
|
1462
|
+
39: "taskData",
|
|
1463
|
+
40: "click",
|
|
1464
|
+
41: "callbackname",
|
|
1465
|
+
42: "callbackargs",
|
|
1466
|
+
43: "href"
|
|
1467
|
+
},
|
|
1468
|
+
productions_: [
|
|
1469
|
+
0,
|
|
1470
|
+
[3, 3],
|
|
1471
|
+
[5, 0],
|
|
1472
|
+
[5, 2],
|
|
1473
|
+
[7, 2],
|
|
1474
|
+
[7, 1],
|
|
1475
|
+
[7, 1],
|
|
1476
|
+
[7, 1],
|
|
1477
|
+
[11, 1],
|
|
1478
|
+
[11, 1],
|
|
1479
|
+
[11, 1],
|
|
1480
|
+
[11, 1],
|
|
1481
|
+
[11, 1],
|
|
1482
|
+
[11, 1],
|
|
1483
|
+
[11, 1],
|
|
1484
|
+
[19, 1],
|
|
1485
|
+
[19, 1],
|
|
1486
|
+
[9, 1],
|
|
1487
|
+
[9, 1],
|
|
1488
|
+
[9, 1],
|
|
1489
|
+
[9, 1],
|
|
1490
|
+
[9, 1],
|
|
1491
|
+
[9, 1],
|
|
1492
|
+
[9, 1],
|
|
1493
|
+
[9, 1],
|
|
1494
|
+
[9, 1],
|
|
1495
|
+
[9, 1],
|
|
1496
|
+
[9, 1],
|
|
1497
|
+
[9, 2],
|
|
1498
|
+
[9, 2],
|
|
1499
|
+
[9, 1],
|
|
1500
|
+
[9, 1],
|
|
1501
|
+
[9, 1],
|
|
1502
|
+
[9, 2],
|
|
1503
|
+
[37, 2],
|
|
1504
|
+
[37, 3],
|
|
1505
|
+
[37, 3],
|
|
1506
|
+
[37, 4],
|
|
1507
|
+
[37, 3],
|
|
1508
|
+
[37, 4],
|
|
1509
|
+
[37, 2],
|
|
1510
|
+
[44, 2],
|
|
1511
|
+
[44, 3],
|
|
1512
|
+
[44, 3],
|
|
1513
|
+
[44, 4],
|
|
1514
|
+
[44, 3],
|
|
1515
|
+
[44, 4],
|
|
1516
|
+
[44, 2]
|
|
1517
|
+
],
|
|
1518
|
+
performAction: /* @__PURE__ */ __name(function(a, c, l, u, d, f, p) {
|
|
1519
|
+
var m = f.length - 1;
|
|
1520
|
+
switch (d) {
|
|
1521
|
+
case 1: return f[m - 1];
|
|
1522
|
+
case 2:
|
|
1523
|
+
this.$ = [];
|
|
1524
|
+
break;
|
|
1525
|
+
case 3:
|
|
1526
|
+
f[m - 1].push(f[m]), this.$ = f[m - 1];
|
|
1527
|
+
break;
|
|
1528
|
+
case 4:
|
|
1529
|
+
case 5:
|
|
1530
|
+
this.$ = f[m];
|
|
1531
|
+
break;
|
|
1532
|
+
case 6:
|
|
1533
|
+
case 7:
|
|
1534
|
+
this.$ = [];
|
|
1535
|
+
break;
|
|
1536
|
+
case 8:
|
|
1537
|
+
u.setWeekday("monday");
|
|
1538
|
+
break;
|
|
1539
|
+
case 9:
|
|
1540
|
+
u.setWeekday("tuesday");
|
|
1541
|
+
break;
|
|
1542
|
+
case 10:
|
|
1543
|
+
u.setWeekday("wednesday");
|
|
1544
|
+
break;
|
|
1545
|
+
case 11:
|
|
1546
|
+
u.setWeekday("thursday");
|
|
1547
|
+
break;
|
|
1548
|
+
case 12:
|
|
1549
|
+
u.setWeekday("friday");
|
|
1550
|
+
break;
|
|
1551
|
+
case 13:
|
|
1552
|
+
u.setWeekday("saturday");
|
|
1553
|
+
break;
|
|
1554
|
+
case 14:
|
|
1555
|
+
u.setWeekday("sunday");
|
|
1556
|
+
break;
|
|
1557
|
+
case 15:
|
|
1558
|
+
u.setWeekend("friday");
|
|
1559
|
+
break;
|
|
1560
|
+
case 16:
|
|
1561
|
+
u.setWeekend("saturday");
|
|
1562
|
+
break;
|
|
1563
|
+
case 17:
|
|
1564
|
+
u.setDateFormat(f[m].substr(11)), this.$ = f[m].substr(11);
|
|
1565
|
+
break;
|
|
1566
|
+
case 18:
|
|
1567
|
+
u.enableInclusiveEndDates(), this.$ = f[m].substr(18);
|
|
1568
|
+
break;
|
|
1569
|
+
case 19:
|
|
1570
|
+
u.TopAxis(), this.$ = f[m].substr(8);
|
|
1571
|
+
break;
|
|
1572
|
+
case 20:
|
|
1573
|
+
u.setAxisFormat(f[m].substr(11)), this.$ = f[m].substr(11);
|
|
1574
|
+
break;
|
|
1575
|
+
case 21:
|
|
1576
|
+
u.setTickInterval(f[m].substr(13)), this.$ = f[m].substr(13);
|
|
1577
|
+
break;
|
|
1578
|
+
case 22:
|
|
1579
|
+
u.setExcludes(f[m].substr(9)), this.$ = f[m].substr(9);
|
|
1580
|
+
break;
|
|
1581
|
+
case 23:
|
|
1582
|
+
u.setIncludes(f[m].substr(9)), this.$ = f[m].substr(9);
|
|
1583
|
+
break;
|
|
1584
|
+
case 24:
|
|
1585
|
+
u.setTodayMarker(f[m].substr(12)), this.$ = f[m].substr(12);
|
|
1586
|
+
break;
|
|
1587
|
+
case 27:
|
|
1588
|
+
u.setDiagramTitle(f[m].substr(6)), this.$ = f[m].substr(6);
|
|
1589
|
+
break;
|
|
1590
|
+
case 28:
|
|
1591
|
+
this.$ = f[m].trim(), u.setAccTitle(this.$);
|
|
1592
|
+
break;
|
|
1593
|
+
case 29:
|
|
1594
|
+
case 30:
|
|
1595
|
+
this.$ = f[m].trim(), u.setAccDescription(this.$);
|
|
1596
|
+
break;
|
|
1597
|
+
case 31:
|
|
1598
|
+
u.addSection(f[m].substr(8)), this.$ = f[m].substr(8);
|
|
1599
|
+
break;
|
|
1600
|
+
case 33:
|
|
1601
|
+
u.addTask(f[m - 1], f[m]), this.$ = "task";
|
|
1602
|
+
break;
|
|
1603
|
+
case 34:
|
|
1604
|
+
this.$ = f[m - 1], u.setClickEvent(f[m - 1], f[m], null);
|
|
1605
|
+
break;
|
|
1606
|
+
case 35:
|
|
1607
|
+
this.$ = f[m - 2], u.setClickEvent(f[m - 2], f[m - 1], f[m]);
|
|
1608
|
+
break;
|
|
1609
|
+
case 36:
|
|
1610
|
+
this.$ = f[m - 2], u.setClickEvent(f[m - 2], f[m - 1], null), u.setLink(f[m - 2], f[m]);
|
|
1611
|
+
break;
|
|
1612
|
+
case 37:
|
|
1613
|
+
this.$ = f[m - 3], u.setClickEvent(f[m - 3], f[m - 2], f[m - 1]), u.setLink(f[m - 3], f[m]);
|
|
1614
|
+
break;
|
|
1615
|
+
case 38:
|
|
1616
|
+
this.$ = f[m - 2], u.setClickEvent(f[m - 2], f[m], null), u.setLink(f[m - 2], f[m - 1]);
|
|
1617
|
+
break;
|
|
1618
|
+
case 39:
|
|
1619
|
+
this.$ = f[m - 3], u.setClickEvent(f[m - 3], f[m - 1], f[m]), u.setLink(f[m - 3], f[m - 2]);
|
|
1620
|
+
break;
|
|
1621
|
+
case 40:
|
|
1622
|
+
this.$ = f[m - 1], u.setLink(f[m - 1], f[m]);
|
|
1623
|
+
break;
|
|
1624
|
+
case 41:
|
|
1625
|
+
case 47:
|
|
1626
|
+
this.$ = f[m - 1] + " " + f[m];
|
|
1627
|
+
break;
|
|
1628
|
+
case 42:
|
|
1629
|
+
case 43:
|
|
1630
|
+
case 45:
|
|
1631
|
+
this.$ = f[m - 2] + " " + f[m - 1] + " " + f[m];
|
|
1632
|
+
break;
|
|
1633
|
+
case 44:
|
|
1634
|
+
case 46:
|
|
1635
|
+
this.$ = f[m - 3] + " " + f[m - 2] + " " + f[m - 1] + " " + f[m];
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
}, "anonymous"),
|
|
1639
|
+
table: [
|
|
1640
|
+
{
|
|
1641
|
+
3: 1,
|
|
1642
|
+
4: [1, 2]
|
|
1643
|
+
},
|
|
1644
|
+
{ 1: [3] },
|
|
1645
|
+
a(c, [2, 2], { 5: 3 }),
|
|
1646
|
+
{
|
|
1647
|
+
6: [1, 4],
|
|
1648
|
+
7: 5,
|
|
1649
|
+
8: [1, 6],
|
|
1650
|
+
9: 7,
|
|
1651
|
+
10: [1, 8],
|
|
1652
|
+
11: 17,
|
|
1653
|
+
12: l,
|
|
1654
|
+
13: u,
|
|
1655
|
+
14: d,
|
|
1656
|
+
15: f,
|
|
1657
|
+
16: p,
|
|
1658
|
+
17: h,
|
|
1659
|
+
18: g,
|
|
1660
|
+
19: 18,
|
|
1661
|
+
20: _,
|
|
1662
|
+
21: v,
|
|
1663
|
+
22: y,
|
|
1664
|
+
23: b,
|
|
1665
|
+
24: x,
|
|
1666
|
+
25: S,
|
|
1667
|
+
26: C,
|
|
1668
|
+
27: T,
|
|
1669
|
+
28: E,
|
|
1670
|
+
29: D,
|
|
1671
|
+
30: O,
|
|
1672
|
+
31: k,
|
|
1673
|
+
33: A,
|
|
1674
|
+
35: j,
|
|
1675
|
+
36: M,
|
|
1676
|
+
37: 24,
|
|
1677
|
+
38: N,
|
|
1678
|
+
40: P
|
|
1679
|
+
},
|
|
1680
|
+
a(c, [2, 7], { 1: [2, 1] }),
|
|
1681
|
+
a(c, [2, 3]),
|
|
1682
|
+
{
|
|
1683
|
+
9: 36,
|
|
1684
|
+
11: 17,
|
|
1685
|
+
12: l,
|
|
1686
|
+
13: u,
|
|
1687
|
+
14: d,
|
|
1688
|
+
15: f,
|
|
1689
|
+
16: p,
|
|
1690
|
+
17: h,
|
|
1691
|
+
18: g,
|
|
1692
|
+
19: 18,
|
|
1693
|
+
20: _,
|
|
1694
|
+
21: v,
|
|
1695
|
+
22: y,
|
|
1696
|
+
23: b,
|
|
1697
|
+
24: x,
|
|
1698
|
+
25: S,
|
|
1699
|
+
26: C,
|
|
1700
|
+
27: T,
|
|
1701
|
+
28: E,
|
|
1702
|
+
29: D,
|
|
1703
|
+
30: O,
|
|
1704
|
+
31: k,
|
|
1705
|
+
33: A,
|
|
1706
|
+
35: j,
|
|
1707
|
+
36: M,
|
|
1708
|
+
37: 24,
|
|
1709
|
+
38: N,
|
|
1710
|
+
40: P
|
|
1711
|
+
},
|
|
1712
|
+
a(c, [2, 5]),
|
|
1713
|
+
a(c, [2, 6]),
|
|
1714
|
+
a(c, [2, 17]),
|
|
1715
|
+
a(c, [2, 18]),
|
|
1716
|
+
a(c, [2, 19]),
|
|
1717
|
+
a(c, [2, 20]),
|
|
1718
|
+
a(c, [2, 21]),
|
|
1719
|
+
a(c, [2, 22]),
|
|
1720
|
+
a(c, [2, 23]),
|
|
1721
|
+
a(c, [2, 24]),
|
|
1722
|
+
a(c, [2, 25]),
|
|
1723
|
+
a(c, [2, 26]),
|
|
1724
|
+
a(c, [2, 27]),
|
|
1725
|
+
{ 32: [1, 37] },
|
|
1726
|
+
{ 34: [1, 38] },
|
|
1727
|
+
a(c, [2, 30]),
|
|
1728
|
+
a(c, [2, 31]),
|
|
1729
|
+
a(c, [2, 32]),
|
|
1730
|
+
{ 39: [1, 39] },
|
|
1731
|
+
a(c, [2, 8]),
|
|
1732
|
+
a(c, [2, 9]),
|
|
1733
|
+
a(c, [2, 10]),
|
|
1734
|
+
a(c, [2, 11]),
|
|
1735
|
+
a(c, [2, 12]),
|
|
1736
|
+
a(c, [2, 13]),
|
|
1737
|
+
a(c, [2, 14]),
|
|
1738
|
+
a(c, [2, 15]),
|
|
1739
|
+
a(c, [2, 16]),
|
|
1740
|
+
{
|
|
1741
|
+
41: [1, 40],
|
|
1742
|
+
43: [1, 41]
|
|
1743
|
+
},
|
|
1744
|
+
a(c, [2, 4]),
|
|
1745
|
+
a(c, [2, 28]),
|
|
1746
|
+
a(c, [2, 29]),
|
|
1747
|
+
a(c, [2, 33]),
|
|
1748
|
+
a(c, [2, 34], {
|
|
1749
|
+
42: [1, 42],
|
|
1750
|
+
43: [1, 43]
|
|
1751
|
+
}),
|
|
1752
|
+
a(c, [2, 40], { 41: [1, 44] }),
|
|
1753
|
+
a(c, [2, 35], { 43: [1, 45] }),
|
|
1754
|
+
a(c, [2, 36]),
|
|
1755
|
+
a(c, [2, 38], { 42: [1, 46] }),
|
|
1756
|
+
a(c, [2, 37]),
|
|
1757
|
+
a(c, [2, 39])
|
|
1758
|
+
],
|
|
1759
|
+
defaultActions: {},
|
|
1760
|
+
parseError: /* @__PURE__ */ __name(function(a, c) {
|
|
1761
|
+
if (c.recoverable) this.trace(a);
|
|
1762
|
+
else {
|
|
1763
|
+
var l = Error(a);
|
|
1764
|
+
throw l.hash = c, l;
|
|
1765
|
+
}
|
|
1766
|
+
}, "parseError"),
|
|
1767
|
+
parse: /* @__PURE__ */ __name(function(a) {
|
|
1768
|
+
var c = this, l = [0], u = [], d = [null], f = [], p = this.table, h = "", g = 0, _ = 0, v = 0, y = 2, b = 1, x = f.slice.call(arguments, 1), S = Object.create(this.lexer), C = { yy: {} };
|
|
1769
|
+
for (var T in this.yy) Object.prototype.hasOwnProperty.call(this.yy, T) && (C.yy[T] = this.yy[T]);
|
|
1770
|
+
S.setInput(a, C.yy), C.yy.lexer = S, C.yy.parser = this, S.yylloc === void 0 && (S.yylloc = {});
|
|
1771
|
+
var E = S.yylloc;
|
|
1772
|
+
f.push(E);
|
|
1773
|
+
var D = S.options && S.options.ranges;
|
|
1774
|
+
typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1775
|
+
function O(a) {
|
|
1776
|
+
l.length -= 2 * a, d.length -= a, f.length -= a;
|
|
1777
|
+
}
|
|
1778
|
+
__name(O, "popStack");
|
|
1779
|
+
function k() {
|
|
1780
|
+
var a = u.pop() || S.lex() || b;
|
|
1781
|
+
return typeof a != "number" && (a instanceof Array && (u = a, a = u.pop()), a = c.symbols_[a] || a), a;
|
|
1782
|
+
}
|
|
1783
|
+
__name(k, "lex");
|
|
1784
|
+
for (var A, j, M, N, P, F = {}, I, L, R, z;;) {
|
|
1785
|
+
if (M = l[l.length - 1], this.defaultActions[M] ? N = this.defaultActions[M] : (A ??= k(), N = p[M] && p[M][A]), N === void 0 || !N.length || !N[0]) {
|
|
1786
|
+
var B = "";
|
|
1787
|
+
for (I in z = [], p[M]) this.terminals_[I] && I > y && z.push("'" + this.terminals_[I] + "'");
|
|
1788
|
+
B = S.showPosition ? "Parse error on line " + (g + 1) + ":\n" + S.showPosition() + "\nExpecting " + z.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : "Parse error on line " + (g + 1) + ": Unexpected " + (A == b ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(B, {
|
|
1789
|
+
text: S.match,
|
|
1790
|
+
token: this.terminals_[A] || A,
|
|
1791
|
+
line: S.yylineno,
|
|
1792
|
+
loc: E,
|
|
1793
|
+
expected: z
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + A);
|
|
1797
|
+
switch (N[0]) {
|
|
1798
|
+
case 1:
|
|
1799
|
+
l.push(A), d.push(S.yytext), f.push(S.yylloc), l.push(N[1]), A = null, j ? (A = j, j = null) : (_ = S.yyleng, h = S.yytext, g = S.yylineno, E = S.yylloc, v > 0 && v--);
|
|
1800
|
+
break;
|
|
1801
|
+
case 2:
|
|
1802
|
+
if (L = this.productions_[N[1]][1], F.$ = d[d.length - L], F._$ = {
|
|
1803
|
+
first_line: f[f.length - (L || 1)].first_line,
|
|
1804
|
+
last_line: f[f.length - 1].last_line,
|
|
1805
|
+
first_column: f[f.length - (L || 1)].first_column,
|
|
1806
|
+
last_column: f[f.length - 1].last_column
|
|
1807
|
+
}, D && (F._$.range = [f[f.length - (L || 1)].range[0], f[f.length - 1].range[1]]), P = this.performAction.apply(F, [
|
|
1808
|
+
h,
|
|
1809
|
+
_,
|
|
1810
|
+
g,
|
|
1811
|
+
C.yy,
|
|
1812
|
+
N[1],
|
|
1813
|
+
d,
|
|
1814
|
+
f
|
|
1815
|
+
].concat(x)), P !== void 0) return P;
|
|
1816
|
+
L && (l = l.slice(0, -1 * L * 2), d = d.slice(0, -1 * L), f = f.slice(0, -1 * L)), l.push(this.productions_[N[1]][0]), d.push(F.$), f.push(F._$), R = p[l[l.length - 2]][l[l.length - 1]], l.push(R);
|
|
1817
|
+
break;
|
|
1818
|
+
case 3: return !0;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
return !0;
|
|
1822
|
+
}, "parse")
|
|
1823
|
+
};
|
|
1824
|
+
F.lexer = /* @__PURE__ */ (function() {
|
|
1825
|
+
return {
|
|
1826
|
+
EOF: 1,
|
|
1827
|
+
parseError: /* @__PURE__ */ __name(function(a, c) {
|
|
1828
|
+
if (this.yy.parser) this.yy.parser.parseError(a, c);
|
|
1829
|
+
else throw Error(a);
|
|
1830
|
+
}, "parseError"),
|
|
1831
|
+
setInput: /* @__PURE__ */ __name(function(a, c) {
|
|
1832
|
+
return this.yy = c || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1833
|
+
first_line: 1,
|
|
1834
|
+
first_column: 0,
|
|
1835
|
+
last_line: 1,
|
|
1836
|
+
last_column: 0
|
|
1837
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1838
|
+
}, "setInput"),
|
|
1839
|
+
input: /* @__PURE__ */ __name(function() {
|
|
1840
|
+
var a = this._input[0];
|
|
1841
|
+
return this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a, a.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
|
|
1842
|
+
}, "input"),
|
|
1843
|
+
unput: /* @__PURE__ */ __name(function(a) {
|
|
1844
|
+
var c = a.length, l = a.split(/(?:\r\n?|\n)/g);
|
|
1845
|
+
this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
1846
|
+
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
1847
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
1848
|
+
var d = this.yylloc.range;
|
|
1849
|
+
return this.yylloc = {
|
|
1850
|
+
first_line: this.yylloc.first_line,
|
|
1851
|
+
last_line: this.yylineno + 1,
|
|
1852
|
+
first_column: this.yylloc.first_column,
|
|
1853
|
+
last_column: l ? (l.length === u.length ? this.yylloc.first_column : 0) + u[u.length - l.length].length - l[0].length : this.yylloc.first_column - c
|
|
1854
|
+
}, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
1855
|
+
}, "unput"),
|
|
1856
|
+
more: /* @__PURE__ */ __name(function() {
|
|
1857
|
+
return this._more = !0, this;
|
|
1858
|
+
}, "more"),
|
|
1859
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
1860
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1861
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1862
|
+
text: "",
|
|
1863
|
+
token: null,
|
|
1864
|
+
line: this.yylineno
|
|
1865
|
+
});
|
|
1866
|
+
return this;
|
|
1867
|
+
}, "reject"),
|
|
1868
|
+
less: /* @__PURE__ */ __name(function(a) {
|
|
1869
|
+
this.unput(this.match.slice(a));
|
|
1870
|
+
}, "less"),
|
|
1871
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
1872
|
+
var a = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1873
|
+
return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
|
|
1874
|
+
}, "pastInput"),
|
|
1875
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
1876
|
+
var a = this.match;
|
|
1877
|
+
return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1878
|
+
}, "upcomingInput"),
|
|
1879
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
1880
|
+
var a = this.pastInput(), c = Array(a.length + 1).join("-");
|
|
1881
|
+
return a + this.upcomingInput() + "\n" + c + "^";
|
|
1882
|
+
}, "showPosition"),
|
|
1883
|
+
test_match: /* @__PURE__ */ __name(function(a, c) {
|
|
1884
|
+
var l, u, d;
|
|
1885
|
+
if (this.options.backtrack_lexer && (d = {
|
|
1886
|
+
yylineno: this.yylineno,
|
|
1887
|
+
yylloc: {
|
|
1888
|
+
first_line: this.yylloc.first_line,
|
|
1889
|
+
last_line: this.last_line,
|
|
1890
|
+
first_column: this.yylloc.first_column,
|
|
1891
|
+
last_column: this.yylloc.last_column
|
|
1892
|
+
},
|
|
1893
|
+
yytext: this.yytext,
|
|
1894
|
+
match: this.match,
|
|
1895
|
+
matches: this.matches,
|
|
1896
|
+
matched: this.matched,
|
|
1897
|
+
yyleng: this.yyleng,
|
|
1898
|
+
offset: this.offset,
|
|
1899
|
+
_more: this._more,
|
|
1900
|
+
_input: this._input,
|
|
1901
|
+
yy: this.yy,
|
|
1902
|
+
conditionStack: this.conditionStack.slice(0),
|
|
1903
|
+
done: this.done
|
|
1904
|
+
}, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), u = a[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
1905
|
+
first_line: this.yylloc.last_line,
|
|
1906
|
+
last_line: this.yylineno + 1,
|
|
1907
|
+
first_column: this.yylloc.last_column,
|
|
1908
|
+
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
|
|
1909
|
+
}, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], l = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l) return l;
|
|
1910
|
+
if (this._backtrack) {
|
|
1911
|
+
for (var f in d) this[f] = d[f];
|
|
1912
|
+
return !1;
|
|
1913
|
+
}
|
|
1914
|
+
return !1;
|
|
1915
|
+
}, "test_match"),
|
|
1916
|
+
next: /* @__PURE__ */ __name(function() {
|
|
1917
|
+
if (this.done) return this.EOF;
|
|
1918
|
+
this._input || (this.done = !0);
|
|
1919
|
+
var a, c, l, u;
|
|
1920
|
+
this._more || (this.yytext = "", this.match = "");
|
|
1921
|
+
for (var d = this._currentRules(), f = 0; f < d.length; f++) if (l = this._input.match(this.rules[d[f]]), l && (!c || l[0].length > c[0].length)) {
|
|
1922
|
+
if (c = l, u = f, this.options.backtrack_lexer) {
|
|
1923
|
+
if (a = this.test_match(l, d[f]), a !== !1) return a;
|
|
1924
|
+
if (this._backtrack) {
|
|
1925
|
+
c = !1;
|
|
1926
|
+
continue;
|
|
1927
|
+
} else return !1;
|
|
1928
|
+
} else if (!this.options.flex) break;
|
|
1929
|
+
}
|
|
1930
|
+
return c ? (a = this.test_match(c, d[u]), a === !1 ? !1 : a) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1931
|
+
text: "",
|
|
1932
|
+
token: null,
|
|
1933
|
+
line: this.yylineno
|
|
1934
|
+
});
|
|
1935
|
+
}, "next"),
|
|
1936
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
1937
|
+
return this.next() || this.lex();
|
|
1938
|
+
}, "lex"),
|
|
1939
|
+
begin: /* @__PURE__ */ __name(function(a) {
|
|
1940
|
+
this.conditionStack.push(a);
|
|
1941
|
+
}, "begin"),
|
|
1942
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
1943
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1944
|
+
}, "popState"),
|
|
1945
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
1946
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1947
|
+
}, "_currentRules"),
|
|
1948
|
+
topState: /* @__PURE__ */ __name(function(a) {
|
|
1949
|
+
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
1950
|
+
}, "topState"),
|
|
1951
|
+
pushState: /* @__PURE__ */ __name(function(a) {
|
|
1952
|
+
this.begin(a);
|
|
1953
|
+
}, "pushState"),
|
|
1954
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
1955
|
+
return this.conditionStack.length;
|
|
1956
|
+
}, "stateStackSize"),
|
|
1957
|
+
options: { "case-insensitive": !0 },
|
|
1958
|
+
performAction: /* @__PURE__ */ __name(function(a, c, l, u) {
|
|
1959
|
+
switch (l) {
|
|
1960
|
+
case 0: return this.begin("open_directive"), "open_directive";
|
|
1961
|
+
case 1: return this.begin("acc_title"), 31;
|
|
1962
|
+
case 2: return this.popState(), "acc_title_value";
|
|
1963
|
+
case 3: return this.begin("acc_descr"), 33;
|
|
1964
|
+
case 4: return this.popState(), "acc_descr_value";
|
|
1965
|
+
case 5:
|
|
1966
|
+
this.begin("acc_descr_multiline");
|
|
1967
|
+
break;
|
|
1968
|
+
case 6:
|
|
1969
|
+
this.popState();
|
|
1970
|
+
break;
|
|
1971
|
+
case 7: return "acc_descr_multiline_value";
|
|
1972
|
+
case 8: break;
|
|
1973
|
+
case 9: break;
|
|
1974
|
+
case 10: break;
|
|
1975
|
+
case 11: return 10;
|
|
1976
|
+
case 12: break;
|
|
1977
|
+
case 13: break;
|
|
1978
|
+
case 14:
|
|
1979
|
+
this.begin("href");
|
|
1980
|
+
break;
|
|
1981
|
+
case 15:
|
|
1982
|
+
this.popState();
|
|
1983
|
+
break;
|
|
1984
|
+
case 16: return 43;
|
|
1985
|
+
case 17:
|
|
1986
|
+
this.begin("callbackname");
|
|
1987
|
+
break;
|
|
1988
|
+
case 18:
|
|
1989
|
+
this.popState();
|
|
1990
|
+
break;
|
|
1991
|
+
case 19:
|
|
1992
|
+
this.popState(), this.begin("callbackargs");
|
|
1993
|
+
break;
|
|
1994
|
+
case 20: return 41;
|
|
1995
|
+
case 21:
|
|
1996
|
+
this.popState();
|
|
1997
|
+
break;
|
|
1998
|
+
case 22: return 42;
|
|
1999
|
+
case 23:
|
|
2000
|
+
this.begin("click");
|
|
2001
|
+
break;
|
|
2002
|
+
case 24:
|
|
2003
|
+
this.popState();
|
|
2004
|
+
break;
|
|
2005
|
+
case 25: return 40;
|
|
2006
|
+
case 26: return 4;
|
|
2007
|
+
case 27: return 22;
|
|
2008
|
+
case 28: return 23;
|
|
2009
|
+
case 29: return 24;
|
|
2010
|
+
case 30: return 25;
|
|
2011
|
+
case 31: return 26;
|
|
2012
|
+
case 32: return 28;
|
|
2013
|
+
case 33: return 27;
|
|
2014
|
+
case 34: return 29;
|
|
2015
|
+
case 35: return 12;
|
|
2016
|
+
case 36: return 13;
|
|
2017
|
+
case 37: return 14;
|
|
2018
|
+
case 38: return 15;
|
|
2019
|
+
case 39: return 16;
|
|
2020
|
+
case 40: return 17;
|
|
2021
|
+
case 41: return 18;
|
|
2022
|
+
case 42: return 20;
|
|
2023
|
+
case 43: return 21;
|
|
2024
|
+
case 44: return "date";
|
|
2025
|
+
case 45: return 30;
|
|
2026
|
+
case 46: return "accDescription";
|
|
2027
|
+
case 47: return 36;
|
|
2028
|
+
case 48: return 38;
|
|
2029
|
+
case 49: return 39;
|
|
2030
|
+
case 50: return ":";
|
|
2031
|
+
case 51: return 6;
|
|
2032
|
+
case 52: return "INVALID";
|
|
2033
|
+
}
|
|
2034
|
+
}, "anonymous"),
|
|
2035
|
+
rules: [
|
|
2036
|
+
/^(?:%%\{)/i,
|
|
2037
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
2038
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
2039
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
2040
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
2041
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
2042
|
+
/^(?:[\}])/i,
|
|
2043
|
+
/^(?:[^\}]*)/i,
|
|
2044
|
+
/^(?:%%(?!\{)*[^\n]*)/i,
|
|
2045
|
+
/^(?:[^\}]%%*[^\n]*)/i,
|
|
2046
|
+
/^(?:%%*[^\n]*[\n]*)/i,
|
|
2047
|
+
/^(?:[\n]+)/i,
|
|
2048
|
+
/^(?:\s+)/i,
|
|
2049
|
+
/^(?:%[^\n]*)/i,
|
|
2050
|
+
/^(?:href[\s]+["])/i,
|
|
2051
|
+
/^(?:["])/i,
|
|
2052
|
+
/^(?:[^"]*)/i,
|
|
2053
|
+
/^(?:call[\s]+)/i,
|
|
2054
|
+
/^(?:\([\s]*\))/i,
|
|
2055
|
+
/^(?:\()/i,
|
|
2056
|
+
/^(?:[^(]*)/i,
|
|
2057
|
+
/^(?:\))/i,
|
|
2058
|
+
/^(?:[^)]*)/i,
|
|
2059
|
+
/^(?:click[\s]+)/i,
|
|
2060
|
+
/^(?:[\s\n])/i,
|
|
2061
|
+
/^(?:[^\s\n]*)/i,
|
|
2062
|
+
/^(?:gantt\b)/i,
|
|
2063
|
+
/^(?:dateFormat\s[^#\n;]+)/i,
|
|
2064
|
+
/^(?:inclusiveEndDates\b)/i,
|
|
2065
|
+
/^(?:topAxis\b)/i,
|
|
2066
|
+
/^(?:axisFormat\s[^#\n;]+)/i,
|
|
2067
|
+
/^(?:tickInterval\s[^#\n;]+)/i,
|
|
2068
|
+
/^(?:includes\s[^#\n;]+)/i,
|
|
2069
|
+
/^(?:excludes\s[^#\n;]+)/i,
|
|
2070
|
+
/^(?:todayMarker\s[^\n;]+)/i,
|
|
2071
|
+
/^(?:weekday\s+monday\b)/i,
|
|
2072
|
+
/^(?:weekday\s+tuesday\b)/i,
|
|
2073
|
+
/^(?:weekday\s+wednesday\b)/i,
|
|
2074
|
+
/^(?:weekday\s+thursday\b)/i,
|
|
2075
|
+
/^(?:weekday\s+friday\b)/i,
|
|
2076
|
+
/^(?:weekday\s+saturday\b)/i,
|
|
2077
|
+
/^(?:weekday\s+sunday\b)/i,
|
|
2078
|
+
/^(?:weekend\s+friday\b)/i,
|
|
2079
|
+
/^(?:weekend\s+saturday\b)/i,
|
|
2080
|
+
/^(?:\d\d\d\d-\d\d-\d\d\b)/i,
|
|
2081
|
+
/^(?:title\s[^\n]+)/i,
|
|
2082
|
+
/^(?:accDescription\s[^#\n;]+)/i,
|
|
2083
|
+
/^(?:section\s[^\n]+)/i,
|
|
2084
|
+
/^(?:[^:\n]+)/i,
|
|
2085
|
+
/^(?::[^#\n;]+)/i,
|
|
2086
|
+
/^(?::)/i,
|
|
2087
|
+
/^(?:$)/i,
|
|
2088
|
+
/^(?:.)/i
|
|
2089
|
+
],
|
|
2090
|
+
conditions: {
|
|
2091
|
+
acc_descr_multiline: {
|
|
2092
|
+
rules: [6, 7],
|
|
2093
|
+
inclusive: !1
|
|
2094
|
+
},
|
|
2095
|
+
acc_descr: {
|
|
2096
|
+
rules: [4],
|
|
2097
|
+
inclusive: !1
|
|
2098
|
+
},
|
|
2099
|
+
acc_title: {
|
|
2100
|
+
rules: [2],
|
|
2101
|
+
inclusive: !1
|
|
2102
|
+
},
|
|
2103
|
+
callbackargs: {
|
|
2104
|
+
rules: [21, 22],
|
|
2105
|
+
inclusive: !1
|
|
2106
|
+
},
|
|
2107
|
+
callbackname: {
|
|
2108
|
+
rules: [
|
|
2109
|
+
18,
|
|
2110
|
+
19,
|
|
2111
|
+
20
|
|
2112
|
+
],
|
|
2113
|
+
inclusive: !1
|
|
2114
|
+
},
|
|
2115
|
+
href: {
|
|
2116
|
+
rules: [15, 16],
|
|
2117
|
+
inclusive: !1
|
|
2118
|
+
},
|
|
2119
|
+
click: {
|
|
2120
|
+
rules: [24, 25],
|
|
2121
|
+
inclusive: !1
|
|
2122
|
+
},
|
|
2123
|
+
INITIAL: {
|
|
2124
|
+
rules: [
|
|
2125
|
+
0,
|
|
2126
|
+
1,
|
|
2127
|
+
3,
|
|
2128
|
+
5,
|
|
2129
|
+
8,
|
|
2130
|
+
9,
|
|
2131
|
+
10,
|
|
2132
|
+
11,
|
|
2133
|
+
12,
|
|
2134
|
+
13,
|
|
2135
|
+
14,
|
|
2136
|
+
17,
|
|
2137
|
+
23,
|
|
2138
|
+
26,
|
|
2139
|
+
27,
|
|
2140
|
+
28,
|
|
2141
|
+
29,
|
|
2142
|
+
30,
|
|
2143
|
+
31,
|
|
2144
|
+
32,
|
|
2145
|
+
33,
|
|
2146
|
+
34,
|
|
2147
|
+
35,
|
|
2148
|
+
36,
|
|
2149
|
+
37,
|
|
2150
|
+
38,
|
|
2151
|
+
39,
|
|
2152
|
+
40,
|
|
2153
|
+
41,
|
|
2154
|
+
42,
|
|
2155
|
+
43,
|
|
2156
|
+
44,
|
|
2157
|
+
45,
|
|
2158
|
+
46,
|
|
2159
|
+
47,
|
|
2160
|
+
48,
|
|
2161
|
+
49,
|
|
2162
|
+
50,
|
|
2163
|
+
51,
|
|
2164
|
+
52
|
|
2165
|
+
],
|
|
2166
|
+
inclusive: !0
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
};
|
|
2170
|
+
})();
|
|
2171
|
+
function I() {
|
|
2172
|
+
this.yy = {};
|
|
2173
|
+
}
|
|
2174
|
+
return __name(I, "Parser"), I.prototype = F, F.Parser = I, new I();
|
|
2175
|
+
})();
|
|
2176
|
+
parser.parser = parser;
|
|
2177
|
+
var gantt_default = parser;
|
|
2178
|
+
import_dayjs_min.default.extend(import_isoWeek.default), import_dayjs_min.default.extend(import_customParseFormat.default), import_dayjs_min.default.extend(import_advancedFormat.default);
|
|
2179
|
+
var WEEKEND_START_DAY = {
|
|
2180
|
+
friday: 5,
|
|
2181
|
+
saturday: 6
|
|
2182
|
+
}, dateFormat = "", axisFormat = "", tickInterval = void 0, todayMarker = "", includes = [], excludes = [], links = /* @__PURE__ */ new Map(), sections = [], tasks = [], currentSection = "", displayMode = "", tags = [
|
|
2183
|
+
"active",
|
|
2184
|
+
"done",
|
|
2185
|
+
"crit",
|
|
2186
|
+
"milestone",
|
|
2187
|
+
"vert"
|
|
2188
|
+
], funs = [], inclusiveEndDates = !1, topAxis = !1, weekday = "sunday", weekend = "saturday", lastOrder = 0, clear2 = /* @__PURE__ */ __name(function() {
|
|
2189
|
+
sections = [], tasks = [], currentSection = "", funs = [], taskCnt = 0, lastTask = void 0, lastTaskID = void 0, rawTasks = [], dateFormat = "", axisFormat = "", displayMode = "", tickInterval = void 0, todayMarker = "", includes = [], excludes = [], inclusiveEndDates = !1, topAxis = !1, lastOrder = 0, links = /* @__PURE__ */ new Map(), clear(), weekday = "sunday", weekend = "saturday";
|
|
2190
|
+
}, "clear"), setAxisFormat = /* @__PURE__ */ __name(function(a) {
|
|
2191
|
+
axisFormat = a;
|
|
2192
|
+
}, "setAxisFormat"), getAxisFormat = /* @__PURE__ */ __name(function() {
|
|
2193
|
+
return axisFormat;
|
|
2194
|
+
}, "getAxisFormat"), setTickInterval = /* @__PURE__ */ __name(function(a) {
|
|
2195
|
+
tickInterval = a;
|
|
2196
|
+
}, "setTickInterval"), getTickInterval = /* @__PURE__ */ __name(function() {
|
|
2197
|
+
return tickInterval;
|
|
2198
|
+
}, "getTickInterval"), setTodayMarker = /* @__PURE__ */ __name(function(a) {
|
|
2199
|
+
todayMarker = a;
|
|
2200
|
+
}, "setTodayMarker"), getTodayMarker = /* @__PURE__ */ __name(function() {
|
|
2201
|
+
return todayMarker;
|
|
2202
|
+
}, "getTodayMarker"), setDateFormat = /* @__PURE__ */ __name(function(a) {
|
|
2203
|
+
dateFormat = a;
|
|
2204
|
+
}, "setDateFormat"), enableInclusiveEndDates = /* @__PURE__ */ __name(function() {
|
|
2205
|
+
inclusiveEndDates = !0;
|
|
2206
|
+
}, "enableInclusiveEndDates"), endDatesAreInclusive = /* @__PURE__ */ __name(function() {
|
|
2207
|
+
return inclusiveEndDates;
|
|
2208
|
+
}, "endDatesAreInclusive"), enableTopAxis = /* @__PURE__ */ __name(function() {
|
|
2209
|
+
topAxis = !0;
|
|
2210
|
+
}, "enableTopAxis"), topAxisEnabled = /* @__PURE__ */ __name(function() {
|
|
2211
|
+
return topAxis;
|
|
2212
|
+
}, "topAxisEnabled"), setDisplayMode = /* @__PURE__ */ __name(function(a) {
|
|
2213
|
+
displayMode = a;
|
|
2214
|
+
}, "setDisplayMode"), getDisplayMode = /* @__PURE__ */ __name(function() {
|
|
2215
|
+
return displayMode;
|
|
2216
|
+
}, "getDisplayMode"), getDateFormat = /* @__PURE__ */ __name(function() {
|
|
2217
|
+
return dateFormat;
|
|
2218
|
+
}, "getDateFormat"), setIncludes = /* @__PURE__ */ __name(function(a) {
|
|
2219
|
+
includes = a.toLowerCase().split(/[\s,]+/);
|
|
2220
|
+
}, "setIncludes"), getIncludes = /* @__PURE__ */ __name(function() {
|
|
2221
|
+
return includes;
|
|
2222
|
+
}, "getIncludes"), setExcludes = /* @__PURE__ */ __name(function(a) {
|
|
2223
|
+
excludes = a.toLowerCase().split(/[\s,]+/);
|
|
2224
|
+
}, "setExcludes"), getExcludes = /* @__PURE__ */ __name(function() {
|
|
2225
|
+
return excludes;
|
|
2226
|
+
}, "getExcludes"), getLinks = /* @__PURE__ */ __name(function() {
|
|
2227
|
+
return links;
|
|
2228
|
+
}, "getLinks"), addSection = /* @__PURE__ */ __name(function(a) {
|
|
2229
|
+
currentSection = a, sections.push(a);
|
|
2230
|
+
}, "addSection"), getSections = /* @__PURE__ */ __name(function() {
|
|
2231
|
+
return sections;
|
|
2232
|
+
}, "getSections"), getTasks = /* @__PURE__ */ __name(function() {
|
|
2233
|
+
let a = compileTasks(), c = 0;
|
|
2234
|
+
for (; !a && c < 10;) a = compileTasks(), c++;
|
|
2235
|
+
return tasks = rawTasks, tasks;
|
|
2236
|
+
}, "getTasks"), isInvalidDate = /* @__PURE__ */ __name(function(a, c, l, u) {
|
|
2237
|
+
let d = a.format(c.trim()), f = a.format("YYYY-MM-DD");
|
|
2238
|
+
return u.includes(d) || u.includes(f) ? !1 : l.includes("weekends") && (a.isoWeekday() === WEEKEND_START_DAY[weekend] || a.isoWeekday() === WEEKEND_START_DAY[weekend] + 1) || l.includes(a.format("dddd").toLowerCase()) ? !0 : l.includes(d) || l.includes(f);
|
|
2239
|
+
}, "isInvalidDate"), setWeekday = /* @__PURE__ */ __name(function(a) {
|
|
2240
|
+
weekday = a;
|
|
2241
|
+
}, "setWeekday"), getWeekday = /* @__PURE__ */ __name(function() {
|
|
2242
|
+
return weekday;
|
|
2243
|
+
}, "getWeekday"), setWeekend = /* @__PURE__ */ __name(function(a) {
|
|
2244
|
+
weekend = a;
|
|
2245
|
+
}, "setWeekend"), checkTaskDates = /* @__PURE__ */ __name(function(a, c, l, u) {
|
|
2246
|
+
if (!l.length || a.manualEndTime) return;
|
|
2247
|
+
let d;
|
|
2248
|
+
d = a.startTime instanceof Date ? (0, import_dayjs_min.default)(a.startTime) : (0, import_dayjs_min.default)(a.startTime, c, !0), d = d.add(1, "d");
|
|
2249
|
+
let f;
|
|
2250
|
+
f = a.endTime instanceof Date ? (0, import_dayjs_min.default)(a.endTime) : (0, import_dayjs_min.default)(a.endTime, c, !0);
|
|
2251
|
+
let [p, m] = fixTaskDates(d, f, c, l, u);
|
|
2252
|
+
a.endTime = p.toDate(), a.renderEndTime = m;
|
|
2253
|
+
}, "checkTaskDates"), fixTaskDates = /* @__PURE__ */ __name(function(a, c, l, u, d) {
|
|
2254
|
+
let f = !1, p = null;
|
|
2255
|
+
for (; a <= c;) f || (p = c.toDate()), f = isInvalidDate(a, l, u, d), f && (c = c.add(1, "d")), a = a.add(1, "d");
|
|
2256
|
+
return [c, p];
|
|
2257
|
+
}, "fixTaskDates"), getStartDate = /* @__PURE__ */ __name(function(a, c, l) {
|
|
2258
|
+
if (l = l.trim(), (/* @__PURE__ */ __name((a) => {
|
|
2259
|
+
let c = a.trim();
|
|
2260
|
+
return c === "x" || c === "X";
|
|
2261
|
+
}, "isTimestampFormat"))(c) && /^\d+$/.test(l)) return new Date(Number(l));
|
|
2262
|
+
let u = /^after\s+(?<ids>[\d\w- ]+)/.exec(l);
|
|
2263
|
+
if (u !== null) {
|
|
2264
|
+
let a = null;
|
|
2265
|
+
for (let c of u.groups.ids.split(" ")) {
|
|
2266
|
+
let l = findTaskById(c);
|
|
2267
|
+
l !== void 0 && (!a || l.endTime > a.endTime) && (a = l);
|
|
2268
|
+
}
|
|
2269
|
+
if (a) return a.endTime;
|
|
2270
|
+
let c = /* @__PURE__ */ new Date();
|
|
2271
|
+
return c.setHours(0, 0, 0, 0), c;
|
|
2272
|
+
}
|
|
2273
|
+
let d = (0, import_dayjs_min.default)(l, c.trim(), !0);
|
|
2274
|
+
if (d.isValid()) return d.toDate();
|
|
2275
|
+
{
|
|
2276
|
+
log.debug("Invalid date:" + l), log.debug("With date format:" + c.trim());
|
|
2277
|
+
let a = new Date(l);
|
|
2278
|
+
if (a === void 0 || isNaN(a.getTime()) || a.getFullYear() < -1e4 || a.getFullYear() > 1e4) throw Error("Invalid date:" + l);
|
|
2279
|
+
return a;
|
|
2280
|
+
}
|
|
2281
|
+
}, "getStartDate"), parseDuration = /* @__PURE__ */ __name(function(a) {
|
|
2282
|
+
let c = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(a.trim());
|
|
2283
|
+
return c === null ? [NaN, "ms"] : [Number.parseFloat(c[1]), c[2]];
|
|
2284
|
+
}, "parseDuration"), getEndDate = /* @__PURE__ */ __name(function(a, c, l, u = !1) {
|
|
2285
|
+
l = l.trim();
|
|
2286
|
+
let d = /^until\s+(?<ids>[\d\w- ]+)/.exec(l);
|
|
2287
|
+
if (d !== null) {
|
|
2288
|
+
let a = null;
|
|
2289
|
+
for (let c of d.groups.ids.split(" ")) {
|
|
2290
|
+
let l = findTaskById(c);
|
|
2291
|
+
l !== void 0 && (!a || l.startTime < a.startTime) && (a = l);
|
|
2292
|
+
}
|
|
2293
|
+
if (a) return a.startTime;
|
|
2294
|
+
let c = /* @__PURE__ */ new Date();
|
|
2295
|
+
return c.setHours(0, 0, 0, 0), c;
|
|
2296
|
+
}
|
|
2297
|
+
let f = (0, import_dayjs_min.default)(l, c.trim(), !0);
|
|
2298
|
+
if (f.isValid()) return u && (f = f.add(1, "d")), f.toDate();
|
|
2299
|
+
let p = (0, import_dayjs_min.default)(a), [m, h] = parseDuration(l);
|
|
2300
|
+
if (!Number.isNaN(m)) {
|
|
2301
|
+
let a = p.add(m, h);
|
|
2302
|
+
a.isValid() && (p = a);
|
|
2303
|
+
}
|
|
2304
|
+
return p.toDate();
|
|
2305
|
+
}, "getEndDate"), taskCnt = 0, parseId = /* @__PURE__ */ __name(function(a) {
|
|
2306
|
+
return a === void 0 ? (taskCnt += 1, "task" + taskCnt) : a;
|
|
2307
|
+
}, "parseId"), compileData = /* @__PURE__ */ __name(function(a, c) {
|
|
2308
|
+
let l;
|
|
2309
|
+
l = c.substr(0, 1) === ":" ? c.substr(1, c.length) : c;
|
|
2310
|
+
let u = l.split(","), d = {};
|
|
2311
|
+
getTaskTags(u, d, tags);
|
|
2312
|
+
for (let a = 0; a < u.length; a++) u[a] = u[a].trim();
|
|
2313
|
+
let f = "";
|
|
2314
|
+
switch (u.length) {
|
|
2315
|
+
case 1:
|
|
2316
|
+
d.id = parseId(), d.startTime = a.endTime, f = u[0];
|
|
2317
|
+
break;
|
|
2318
|
+
case 2:
|
|
2319
|
+
d.id = parseId(), d.startTime = getStartDate(void 0, dateFormat, u[0]), f = u[1];
|
|
2320
|
+
break;
|
|
2321
|
+
case 3:
|
|
2322
|
+
d.id = parseId(u[0]), d.startTime = getStartDate(void 0, dateFormat, u[1]), f = u[2];
|
|
2323
|
+
break;
|
|
2324
|
+
default:
|
|
2325
|
+
}
|
|
2326
|
+
return f && (d.endTime = getEndDate(d.startTime, dateFormat, f, inclusiveEndDates), d.manualEndTime = (0, import_dayjs_min.default)(f, "YYYY-MM-DD", !0).isValid(), checkTaskDates(d, dateFormat, excludes, includes)), d;
|
|
2327
|
+
}, "compileData"), parseData = /* @__PURE__ */ __name(function(a, c) {
|
|
2328
|
+
let l;
|
|
2329
|
+
l = c.substr(0, 1) === ":" ? c.substr(1, c.length) : c;
|
|
2330
|
+
let u = l.split(","), d = {};
|
|
2331
|
+
getTaskTags(u, d, tags);
|
|
2332
|
+
for (let a = 0; a < u.length; a++) u[a] = u[a].trim();
|
|
2333
|
+
switch (u.length) {
|
|
2334
|
+
case 1:
|
|
2335
|
+
d.id = parseId(), d.startTime = {
|
|
2336
|
+
type: "prevTaskEnd",
|
|
2337
|
+
id: a
|
|
2338
|
+
}, d.endTime = { data: u[0] };
|
|
2339
|
+
break;
|
|
2340
|
+
case 2:
|
|
2341
|
+
d.id = parseId(), d.startTime = {
|
|
2342
|
+
type: "getStartDate",
|
|
2343
|
+
startData: u[0]
|
|
2344
|
+
}, d.endTime = { data: u[1] };
|
|
2345
|
+
break;
|
|
2346
|
+
case 3:
|
|
2347
|
+
d.id = parseId(u[0]), d.startTime = {
|
|
2348
|
+
type: "getStartDate",
|
|
2349
|
+
startData: u[1]
|
|
2350
|
+
}, d.endTime = { data: u[2] };
|
|
2351
|
+
break;
|
|
2352
|
+
default:
|
|
2353
|
+
}
|
|
2354
|
+
return d;
|
|
2355
|
+
}, "parseData"), lastTask, lastTaskID, rawTasks = [], taskDb = {}, addTask = /* @__PURE__ */ __name(function(a, c) {
|
|
2356
|
+
let l = {
|
|
2357
|
+
section: currentSection,
|
|
2358
|
+
type: currentSection,
|
|
2359
|
+
processed: !1,
|
|
2360
|
+
manualEndTime: !1,
|
|
2361
|
+
renderEndTime: null,
|
|
2362
|
+
raw: { data: c },
|
|
2363
|
+
task: a,
|
|
2364
|
+
classes: []
|
|
2365
|
+
}, u = parseData(lastTaskID, c);
|
|
2366
|
+
l.raw.startTime = u.startTime, l.raw.endTime = u.endTime, l.id = u.id, l.prevTaskId = lastTaskID, l.active = u.active, l.done = u.done, l.crit = u.crit, l.milestone = u.milestone, l.vert = u.vert, l.order = lastOrder, lastOrder++;
|
|
2367
|
+
let d = rawTasks.push(l);
|
|
2368
|
+
lastTaskID = l.id, taskDb[l.id] = d - 1;
|
|
2369
|
+
}, "addTask"), findTaskById = /* @__PURE__ */ __name(function(a) {
|
|
2370
|
+
let c = taskDb[a];
|
|
2371
|
+
return rawTasks[c];
|
|
2372
|
+
}, "findTaskById"), addTaskOrg = /* @__PURE__ */ __name(function(a, c) {
|
|
2373
|
+
let l = {
|
|
2374
|
+
section: currentSection,
|
|
2375
|
+
type: currentSection,
|
|
2376
|
+
description: a,
|
|
2377
|
+
task: a,
|
|
2378
|
+
classes: []
|
|
2379
|
+
}, u = compileData(lastTask, c);
|
|
2380
|
+
l.startTime = u.startTime, l.endTime = u.endTime, l.id = u.id, l.active = u.active, l.done = u.done, l.crit = u.crit, l.milestone = u.milestone, l.vert = u.vert, lastTask = l, tasks.push(l);
|
|
2381
|
+
}, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
|
|
2382
|
+
let a = /* @__PURE__ */ __name(function(a) {
|
|
2383
|
+
let c = rawTasks[a], l = "";
|
|
2384
|
+
switch (rawTasks[a].raw.startTime.type) {
|
|
2385
|
+
case "prevTaskEnd":
|
|
2386
|
+
c.startTime = findTaskById(c.prevTaskId).endTime;
|
|
2387
|
+
break;
|
|
2388
|
+
case "getStartDate":
|
|
2389
|
+
l = getStartDate(void 0, dateFormat, rawTasks[a].raw.startTime.startData), l && (rawTasks[a].startTime = l);
|
|
2390
|
+
break;
|
|
2391
|
+
}
|
|
2392
|
+
return rawTasks[a].startTime && (rawTasks[a].endTime = getEndDate(rawTasks[a].startTime, dateFormat, rawTasks[a].raw.endTime.data, inclusiveEndDates), rawTasks[a].endTime && (rawTasks[a].processed = !0, rawTasks[a].manualEndTime = (0, import_dayjs_min.default)(rawTasks[a].raw.endTime.data, "YYYY-MM-DD", !0).isValid(), checkTaskDates(rawTasks[a], dateFormat, excludes, includes))), rawTasks[a].processed;
|
|
2393
|
+
}, "compileTask"), c = !0;
|
|
2394
|
+
for (let [l, u] of rawTasks.entries()) a(l), c &&= u.processed;
|
|
2395
|
+
return c;
|
|
2396
|
+
}, "compileTasks"), setLink = /* @__PURE__ */ __name(function(a, c) {
|
|
2397
|
+
let l = c;
|
|
2398
|
+
getConfig2().securityLevel !== "loose" && (l = (0, import_dist.sanitizeUrl)(c)), a.split(",").forEach(function(a) {
|
|
2399
|
+
findTaskById(a) !== void 0 && (pushFun(a, () => {
|
|
2400
|
+
window.open(l, "_self");
|
|
2401
|
+
}), links.set(a, l));
|
|
2402
|
+
}), setClass(a, "clickable");
|
|
2403
|
+
}, "setLink"), setClass = /* @__PURE__ */ __name(function(a, c) {
|
|
2404
|
+
a.split(",").forEach(function(a) {
|
|
2405
|
+
let l = findTaskById(a);
|
|
2406
|
+
l !== void 0 && l.classes.push(c);
|
|
2407
|
+
});
|
|
2408
|
+
}, "setClass"), setClickFun = /* @__PURE__ */ __name(function(a, c, l) {
|
|
2409
|
+
if (getConfig2().securityLevel !== "loose" || c === void 0) return;
|
|
2410
|
+
let u = [];
|
|
2411
|
+
if (typeof l == "string") {
|
|
2412
|
+
u = l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
2413
|
+
for (let a = 0; a < u.length; a++) {
|
|
2414
|
+
let c = u[a].trim();
|
|
2415
|
+
c.startsWith("\"") && c.endsWith("\"") && (c = c.substr(1, c.length - 2)), u[a] = c;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
u.length === 0 && u.push(a), findTaskById(a) !== void 0 && pushFun(a, () => {
|
|
2419
|
+
utils_default.runFunc(c, ...u);
|
|
2420
|
+
});
|
|
2421
|
+
}, "setClickFun"), pushFun = /* @__PURE__ */ __name(function(a, c) {
|
|
2422
|
+
funs.push(function() {
|
|
2423
|
+
let l = document.querySelector(`[id="${a}"]`);
|
|
2424
|
+
l !== null && l.addEventListener("click", function() {
|
|
2425
|
+
c();
|
|
2426
|
+
});
|
|
2427
|
+
}, function() {
|
|
2428
|
+
let l = document.querySelector(`[id="${a}-text"]`);
|
|
2429
|
+
l !== null && l.addEventListener("click", function() {
|
|
2430
|
+
c();
|
|
2431
|
+
});
|
|
2432
|
+
});
|
|
2433
|
+
}, "pushFun"), ganttDb_default = {
|
|
2434
|
+
getConfig: /* @__PURE__ */ __name(() => getConfig2().gantt, "getConfig"),
|
|
2435
|
+
clear: clear2,
|
|
2436
|
+
setDateFormat,
|
|
2437
|
+
getDateFormat,
|
|
2438
|
+
enableInclusiveEndDates,
|
|
2439
|
+
endDatesAreInclusive,
|
|
2440
|
+
enableTopAxis,
|
|
2441
|
+
topAxisEnabled,
|
|
2442
|
+
setAxisFormat,
|
|
2443
|
+
getAxisFormat,
|
|
2444
|
+
setTickInterval,
|
|
2445
|
+
getTickInterval,
|
|
2446
|
+
setTodayMarker,
|
|
2447
|
+
getTodayMarker,
|
|
2448
|
+
setAccTitle,
|
|
2449
|
+
getAccTitle,
|
|
2450
|
+
setDiagramTitle,
|
|
2451
|
+
getDiagramTitle,
|
|
2452
|
+
setDisplayMode,
|
|
2453
|
+
getDisplayMode,
|
|
2454
|
+
setAccDescription,
|
|
2455
|
+
getAccDescription,
|
|
2456
|
+
addSection,
|
|
2457
|
+
getSections,
|
|
2458
|
+
getTasks,
|
|
2459
|
+
addTask,
|
|
2460
|
+
findTaskById,
|
|
2461
|
+
addTaskOrg,
|
|
2462
|
+
setIncludes,
|
|
2463
|
+
getIncludes,
|
|
2464
|
+
setExcludes,
|
|
2465
|
+
getExcludes,
|
|
2466
|
+
setClickEvent: /* @__PURE__ */ __name(function(a, c, l) {
|
|
2467
|
+
a.split(",").forEach(function(a) {
|
|
2468
|
+
setClickFun(a, c, l);
|
|
2469
|
+
}), setClass(a, "clickable");
|
|
2470
|
+
}, "setClickEvent"),
|
|
2471
|
+
setLink,
|
|
2472
|
+
getLinks,
|
|
2473
|
+
bindFunctions: /* @__PURE__ */ __name(function(a) {
|
|
2474
|
+
funs.forEach(function(c) {
|
|
2475
|
+
c(a);
|
|
2476
|
+
});
|
|
2477
|
+
}, "bindFunctions"),
|
|
2478
|
+
parseDuration,
|
|
2479
|
+
isInvalidDate,
|
|
2480
|
+
setWeekday,
|
|
2481
|
+
getWeekday,
|
|
2482
|
+
setWeekend
|
|
2483
|
+
};
|
|
2484
|
+
function getTaskTags(a, c, l) {
|
|
2485
|
+
let u = !0;
|
|
2486
|
+
for (; u;) u = !1, l.forEach(function(l) {
|
|
2487
|
+
let d = "^\\s*" + l + "\\s*$", f = new RegExp(d);
|
|
2488
|
+
a[0].match(f) && (c[l] = !0, a.shift(1), u = !0);
|
|
2489
|
+
});
|
|
2490
|
+
}
|
|
2491
|
+
__name(getTaskTags, "getTaskTags"), import_dayjs_min$1.default.extend(import_duration.default);
|
|
2492
|
+
var setConf = /* @__PURE__ */ __name(function() {
|
|
2493
|
+
log.debug("Something is calling, setConf, remove the call");
|
|
2494
|
+
}, "setConf"), mapWeekdayToTimeFunction = {
|
|
2495
|
+
monday: timeMonday,
|
|
2496
|
+
tuesday: timeTuesday,
|
|
2497
|
+
wednesday: timeWednesday,
|
|
2498
|
+
thursday: timeThursday,
|
|
2499
|
+
friday: timeFriday,
|
|
2500
|
+
saturday: timeSaturday,
|
|
2501
|
+
sunday: timeSunday
|
|
2502
|
+
}, getMaxIntersections = /* @__PURE__ */ __name((a, c) => {
|
|
2503
|
+
let l = [...a].map(() => -Infinity), u = [...a].sort((a, c) => a.startTime - c.startTime || a.order - c.order), d = 0;
|
|
2504
|
+
for (let a of u) for (let u = 0; u < l.length; u++) if (a.startTime >= l[u]) {
|
|
2505
|
+
l[u] = a.endTime, a.order = u + c, u > d && (d = u);
|
|
2506
|
+
break;
|
|
2507
|
+
}
|
|
2508
|
+
return d;
|
|
2509
|
+
}, "getMaxIntersections"), w, MAX_TICK_COUNT = 1e4, diagram = {
|
|
2510
|
+
parser: gantt_default,
|
|
2511
|
+
db: ganttDb_default,
|
|
2512
|
+
renderer: {
|
|
2513
|
+
setConf,
|
|
2514
|
+
draw: /* @__PURE__ */ __name(function(a, c, l, u) {
|
|
2515
|
+
let d = getConfig2().gantt, f = getConfig2().securityLevel, h;
|
|
2516
|
+
f === "sandbox" && (h = select_default("#i" + c));
|
|
2517
|
+
let _ = select_default(f === "sandbox" ? h.nodes()[0].contentDocument.body : "body"), v = f === "sandbox" ? h.nodes()[0].contentDocument : document, y = v.getElementById(c);
|
|
2518
|
+
w = y.parentElement.offsetWidth, w === void 0 && (w = 1200), d.useWidth !== void 0 && (w = d.useWidth);
|
|
2519
|
+
let b = u.db.getTasks(), x = [];
|
|
2520
|
+
for (let a of b) x.push(a.type);
|
|
2521
|
+
x = V(x);
|
|
2522
|
+
let S = {}, C = 2 * d.topPadding;
|
|
2523
|
+
if (u.db.getDisplayMode() === "compact" || d.displayMode === "compact") {
|
|
2524
|
+
let a = {};
|
|
2525
|
+
for (let c of b) a[c.section] === void 0 ? a[c.section] = [c] : a[c.section].push(c);
|
|
2526
|
+
let c = 0;
|
|
2527
|
+
for (let l of Object.keys(a)) {
|
|
2528
|
+
let u = getMaxIntersections(a[l], c) + 1;
|
|
2529
|
+
c += u, C += u * (d.barHeight + d.barGap), S[l] = u;
|
|
2530
|
+
}
|
|
2531
|
+
} else {
|
|
2532
|
+
C += b.length * (d.barHeight + d.barGap);
|
|
2533
|
+
for (let a of x) S[a] = b.filter((c) => c.type === a).length;
|
|
2534
|
+
}
|
|
2535
|
+
y.setAttribute("viewBox", "0 0 " + w + " " + C);
|
|
2536
|
+
let T = _.select(`[id="${c}"]`), k = time().domain([min(b, function(a) {
|
|
2537
|
+
return a.startTime;
|
|
2538
|
+
}), max(b, function(a) {
|
|
2539
|
+
return a.endTime;
|
|
2540
|
+
})]).rangeRound([0, w - d.leftPadding - d.rightPadding]);
|
|
2541
|
+
function A(a, c) {
|
|
2542
|
+
let l = a.startTime, u = c.startTime, d = 0;
|
|
2543
|
+
return l > u ? d = 1 : l < u && (d = -1), d;
|
|
2544
|
+
}
|
|
2545
|
+
__name(A, "taskCompare"), b.sort(A), j(b, w, C), configureSvgSize(T, C, w, d.useMaxWidth), T.append("text").text(u.db.getDiagramTitle()).attr("x", w / 2).attr("y", d.titleTopMargin).attr("class", "titleText");
|
|
2546
|
+
function j(a, c, l) {
|
|
2547
|
+
let f = d.barHeight, p = f + d.barGap, m = d.topPadding, h = d.leftPadding, g = linear().domain([0, x.length]).range(["#00B9FA", "#F95002"]).interpolate(hcl_default);
|
|
2548
|
+
N(p, m, h, c, l, a, u.db.getExcludes(), u.db.getIncludes()), I(h, m, c, l), M(a, p, m, h, f, g, c, l), L(p, m, h, f, g), R(h, m, c, l);
|
|
2549
|
+
}
|
|
2550
|
+
__name(j, "makeGantt");
|
|
2551
|
+
function M(a, l, f, p, m, h, _) {
|
|
2552
|
+
a.sort((a, c) => a.vert === c.vert ? 0 : a.vert ? 1 : -1);
|
|
2553
|
+
let v = [...new Set(a.map((a) => a.order))].map((c) => a.find((a) => a.order === c));
|
|
2554
|
+
T.append("g").selectAll("rect").data(v).enter().append("rect").attr("x", 0).attr("y", function(a, c) {
|
|
2555
|
+
return c = a.order, c * l + f - 2;
|
|
2556
|
+
}).attr("width", function() {
|
|
2557
|
+
return _ - d.rightPadding / 2;
|
|
2558
|
+
}).attr("height", l).attr("class", function(a) {
|
|
2559
|
+
for (let [c, l] of x.entries()) if (a.type === l) return "section section" + c % d.numberSectionStyles;
|
|
2560
|
+
return "section section0";
|
|
2561
|
+
}).enter();
|
|
2562
|
+
let y = T.append("g").selectAll("rect").data(a).enter(), S = u.db.getLinks();
|
|
2563
|
+
if (y.append("rect").attr("id", function(a) {
|
|
2564
|
+
return a.id;
|
|
2565
|
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(a) {
|
|
2566
|
+
return a.milestone ? k(a.startTime) + p + .5 * (k(a.endTime) - k(a.startTime)) - .5 * m : k(a.startTime) + p;
|
|
2567
|
+
}).attr("y", function(a, c) {
|
|
2568
|
+
return c = a.order, a.vert ? d.gridLineStartPadding : c * l + f;
|
|
2569
|
+
}).attr("width", function(a) {
|
|
2570
|
+
return a.milestone ? m : a.vert ? .08 * m : k(a.renderEndTime || a.endTime) - k(a.startTime);
|
|
2571
|
+
}).attr("height", function(a) {
|
|
2572
|
+
return a.vert ? b.length * (d.barHeight + d.barGap) + d.barHeight * 2 : m;
|
|
2573
|
+
}).attr("transform-origin", function(a, c) {
|
|
2574
|
+
return c = a.order, (k(a.startTime) + p + .5 * (k(a.endTime) - k(a.startTime))).toString() + "px " + (c * l + f + .5 * m).toString() + "px";
|
|
2575
|
+
}).attr("class", function(a) {
|
|
2576
|
+
let c = "";
|
|
2577
|
+
a.classes.length > 0 && (c = a.classes.join(" "));
|
|
2578
|
+
let l = 0;
|
|
2579
|
+
for (let [c, u] of x.entries()) a.type === u && (l = c % d.numberSectionStyles);
|
|
2580
|
+
let u = "";
|
|
2581
|
+
return a.active ? a.crit ? u += " activeCrit" : u = " active" : a.done ? u = a.crit ? " doneCrit" : " done" : a.crit && (u += " crit"), u.length === 0 && (u = " task"), a.milestone && (u = " milestone " + u), a.vert && (u = " vert " + u), u += l, u += " " + c, "task" + u;
|
|
2582
|
+
}), y.append("text").attr("id", function(a) {
|
|
2583
|
+
return a.id + "-text";
|
|
2584
|
+
}).text(function(a) {
|
|
2585
|
+
return a.task;
|
|
2586
|
+
}).attr("font-size", d.fontSize).attr("x", function(a) {
|
|
2587
|
+
let c = k(a.startTime), l = k(a.renderEndTime || a.endTime);
|
|
2588
|
+
if (a.milestone && (c += .5 * (k(a.endTime) - k(a.startTime)) - .5 * m, l = c + m), a.vert) return k(a.startTime) + p;
|
|
2589
|
+
let u = this.getBBox().width;
|
|
2590
|
+
return u > l - c ? l + u + 1.5 * d.leftPadding > _ ? c + p - 5 : l + p + 5 : (l - c) / 2 + c + p;
|
|
2591
|
+
}).attr("y", function(a, c) {
|
|
2592
|
+
return a.vert ? d.gridLineStartPadding + b.length * (d.barHeight + d.barGap) + 60 : (c = a.order, c * l + d.barHeight / 2 + (d.fontSize / 2 - 2) + f);
|
|
2593
|
+
}).attr("text-height", m).attr("class", function(a) {
|
|
2594
|
+
let c = k(a.startTime), l = k(a.endTime);
|
|
2595
|
+
a.milestone && (l = c + m);
|
|
2596
|
+
let u = this.getBBox().width, f = "";
|
|
2597
|
+
a.classes.length > 0 && (f = a.classes.join(" "));
|
|
2598
|
+
let p = 0;
|
|
2599
|
+
for (let [c, l] of x.entries()) a.type === l && (p = c % d.numberSectionStyles);
|
|
2600
|
+
let h = "";
|
|
2601
|
+
return a.active && (h = a.crit ? "activeCritText" + p : "activeText" + p), a.done ? h = a.crit ? h + " doneCritText" + p : h + " doneText" + p : a.crit && (h = h + " critText" + p), a.milestone && (h += " milestoneText"), a.vert && (h += " vertText"), u > l - c ? l + u + 1.5 * d.leftPadding > _ ? f + " taskTextOutsideLeft taskTextOutside" + p + " " + h : f + " taskTextOutsideRight taskTextOutside" + p + " " + h + " width-" + u : f + " taskText taskText" + p + " " + h + " width-" + u;
|
|
2602
|
+
}), getConfig2().securityLevel === "sandbox") {
|
|
2603
|
+
let a;
|
|
2604
|
+
a = select_default("#i" + c);
|
|
2605
|
+
let l = a.nodes()[0].contentDocument;
|
|
2606
|
+
y.filter(function(a) {
|
|
2607
|
+
return S.has(a.id);
|
|
2608
|
+
}).each(function(a) {
|
|
2609
|
+
var c = l.querySelector("#" + a.id), u = l.querySelector("#" + a.id + "-text");
|
|
2610
|
+
let d = c.parentNode;
|
|
2611
|
+
var f = l.createElement("a");
|
|
2612
|
+
f.setAttribute("xlink:href", S.get(a.id)), f.setAttribute("target", "_top"), d.appendChild(f), f.appendChild(c), f.appendChild(u);
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
__name(M, "drawRects");
|
|
2617
|
+
function N(a, c, l, f, m, h, g, _) {
|
|
2618
|
+
if (g.length === 0 && _.length === 0) return;
|
|
2619
|
+
let v, y;
|
|
2620
|
+
for (let { startTime: a, endTime: c } of h) (v === void 0 || a < v) && (v = a), (y === void 0 || c > y) && (y = c);
|
|
2621
|
+
if (!v || !y) return;
|
|
2622
|
+
if ((0, import_dayjs_min$1.default)(y).diff((0, import_dayjs_min$1.default)(v), "year") > 5) {
|
|
2623
|
+
log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");
|
|
2624
|
+
return;
|
|
2625
|
+
}
|
|
2626
|
+
let b = u.db.getDateFormat(), x = [], S = null, C = (0, import_dayjs_min$1.default)(v);
|
|
2627
|
+
for (; C.valueOf() <= y;) u.db.isInvalidDate(C, b, g, _) ? S ? S.end = C : S = {
|
|
2628
|
+
start: C,
|
|
2629
|
+
end: C
|
|
2630
|
+
} : S &&= (x.push(S), null), C = C.add(1, "d");
|
|
2631
|
+
T.append("g").selectAll("rect").data(x).enter().append("rect").attr("id", (a) => "exclude-" + a.start.format("YYYY-MM-DD")).attr("x", (a) => k(a.start.startOf("day")) + l).attr("y", d.gridLineStartPadding).attr("width", (a) => k(a.end.endOf("day")) - k(a.start.startOf("day"))).attr("height", m - c - d.gridLineStartPadding).attr("transform-origin", function(c, u) {
|
|
2632
|
+
return (k(c.start) + l + .5 * (k(c.end) - k(c.start))).toString() + "px " + (u * a + .5 * m).toString() + "px";
|
|
2633
|
+
}).attr("class", "exclude-range");
|
|
2634
|
+
}
|
|
2635
|
+
__name(N, "drawExcludeDays");
|
|
2636
|
+
function P(a, c, l, u) {
|
|
2637
|
+
if (l <= 0 || a > c) return Infinity;
|
|
2638
|
+
let d = c - a, f = import_dayjs_min$1.default.duration({ [u ?? "day"]: l }).asMilliseconds();
|
|
2639
|
+
return f <= 0 ? Infinity : Math.ceil(d / f);
|
|
2640
|
+
}
|
|
2641
|
+
__name(P, "getEstimatedTickCount");
|
|
2642
|
+
function I(a, c, l, f) {
|
|
2643
|
+
let m = u.db.getDateFormat(), h = u.db.getAxisFormat(), g;
|
|
2644
|
+
g = h || (m === "D" ? "%d" : d.axisFormat ?? "%Y-%m-%d");
|
|
2645
|
+
let _ = axisBottom(k).tickSize(-f + c + d.gridLineStartPadding).tickFormat(timeFormat(g)), v = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(u.db.getTickInterval() || d.tickInterval);
|
|
2646
|
+
if (v !== null) {
|
|
2647
|
+
let a = parseInt(v[1], 10);
|
|
2648
|
+
if (isNaN(a) || a <= 0) log.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);
|
|
2649
|
+
else {
|
|
2650
|
+
let c = v[2], l = u.db.getWeekday() || d.weekday, f = k.domain(), m = f[0], h = f[1], g = P(m, h, a, c);
|
|
2651
|
+
if (g > MAX_TICK_COUNT) log.warn(`The tick interval "${a}${c}" would generate ${g} ticks, which exceeds the maximum allowed (${MAX_TICK_COUNT}). This may indicate an invalid date or time range. Skipping custom tick interval.`);
|
|
2652
|
+
else switch (c) {
|
|
2653
|
+
case "millisecond":
|
|
2654
|
+
_.ticks(millisecond.every(a));
|
|
2655
|
+
break;
|
|
2656
|
+
case "second":
|
|
2657
|
+
_.ticks(second.every(a));
|
|
2658
|
+
break;
|
|
2659
|
+
case "minute":
|
|
2660
|
+
_.ticks(timeMinute.every(a));
|
|
2661
|
+
break;
|
|
2662
|
+
case "hour":
|
|
2663
|
+
_.ticks(timeHour.every(a));
|
|
2664
|
+
break;
|
|
2665
|
+
case "day":
|
|
2666
|
+
_.ticks(timeDay.every(a));
|
|
2667
|
+
break;
|
|
2668
|
+
case "week":
|
|
2669
|
+
_.ticks(mapWeekdayToTimeFunction[l].every(a));
|
|
2670
|
+
break;
|
|
2671
|
+
case "month":
|
|
2672
|
+
_.ticks(timeMonth.every(a));
|
|
2673
|
+
break;
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
if (T.append("g").attr("class", "grid").attr("transform", "translate(" + a + ", " + (f - 50) + ")").call(_).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em"), u.db.topAxisEnabled() || d.topAxis) {
|
|
2678
|
+
let l = axisTop(k).tickSize(-f + c + d.gridLineStartPadding).tickFormat(timeFormat(g));
|
|
2679
|
+
if (v !== null) {
|
|
2680
|
+
let a = parseInt(v[1], 10);
|
|
2681
|
+
if (isNaN(a) || a <= 0) log.warn(`Invalid tick interval value: "${v[1]}". Skipping custom tick interval.`);
|
|
2682
|
+
else {
|
|
2683
|
+
let c = v[2], f = u.db.getWeekday() || d.weekday, p = k.domain(), m = p[0], h = p[1];
|
|
2684
|
+
if (P(m, h, a, c) <= MAX_TICK_COUNT) switch (c) {
|
|
2685
|
+
case "millisecond":
|
|
2686
|
+
l.ticks(millisecond.every(a));
|
|
2687
|
+
break;
|
|
2688
|
+
case "second":
|
|
2689
|
+
l.ticks(second.every(a));
|
|
2690
|
+
break;
|
|
2691
|
+
case "minute":
|
|
2692
|
+
l.ticks(timeMinute.every(a));
|
|
2693
|
+
break;
|
|
2694
|
+
case "hour":
|
|
2695
|
+
l.ticks(timeHour.every(a));
|
|
2696
|
+
break;
|
|
2697
|
+
case "day":
|
|
2698
|
+
l.ticks(timeDay.every(a));
|
|
2699
|
+
break;
|
|
2700
|
+
case "week":
|
|
2701
|
+
l.ticks(mapWeekdayToTimeFunction[f].every(a));
|
|
2702
|
+
break;
|
|
2703
|
+
case "month":
|
|
2704
|
+
l.ticks(timeMonth.every(a));
|
|
2705
|
+
break;
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
T.append("g").attr("class", "grid").attr("transform", "translate(" + a + ", " + c + ")").call(l).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
__name(I, "makeGrid");
|
|
2713
|
+
function L(a, c) {
|
|
2714
|
+
let l = 0, u = Object.keys(S).map((a) => [a, S[a]]);
|
|
2715
|
+
T.append("g").selectAll("text").data(u).enter().append(function(a) {
|
|
2716
|
+
let c = a[0].split(common_default.lineBreakRegex), l = -(c.length - 1) / 2, u = v.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
2717
|
+
u.setAttribute("dy", l + "em");
|
|
2718
|
+
for (let [a, l] of c.entries()) {
|
|
2719
|
+
let c = v.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
2720
|
+
c.setAttribute("alignment-baseline", "central"), c.setAttribute("x", "10"), a > 0 && c.setAttribute("dy", "1em"), c.textContent = l, u.appendChild(c);
|
|
2721
|
+
}
|
|
2722
|
+
return u;
|
|
2723
|
+
}).attr("x", 10).attr("y", function(d, f) {
|
|
2724
|
+
if (f > 0) for (let p = 0; p < f; p++) return l += u[f - 1][1], d[1] * a / 2 + l * a + c;
|
|
2725
|
+
else return d[1] * a / 2 + c;
|
|
2726
|
+
}).attr("font-size", d.sectionFontSize).attr("class", function(a) {
|
|
2727
|
+
for (let [c, l] of x.entries()) if (a[0] === l) return "sectionTitle sectionTitle" + c % d.numberSectionStyles;
|
|
2728
|
+
return "sectionTitle";
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2731
|
+
__name(L, "vertLabels");
|
|
2732
|
+
function R(a, c, l, f) {
|
|
2733
|
+
let p = u.db.getTodayMarker();
|
|
2734
|
+
if (p === "off") return;
|
|
2735
|
+
let m = T.append("g").attr("class", "today"), h = /* @__PURE__ */ new Date(), g = m.append("line");
|
|
2736
|
+
g.attr("x1", k(h) + a).attr("x2", k(h) + a).attr("y1", d.titleTopMargin).attr("y2", f - d.titleTopMargin).attr("class", "today"), p !== "" && g.attr("style", p.replace(/,/g, ";"));
|
|
2737
|
+
}
|
|
2738
|
+
__name(R, "drawToday");
|
|
2739
|
+
function V(a) {
|
|
2740
|
+
let c = {}, l = [];
|
|
2741
|
+
for (let u = 0, d = a.length; u < d; ++u) Object.prototype.hasOwnProperty.call(c, a[u]) || (c[a[u]] = !0, l.push(a[u]));
|
|
2742
|
+
return l;
|
|
2743
|
+
}
|
|
2744
|
+
__name(V, "checkUnique");
|
|
2745
|
+
}, "draw")
|
|
2746
|
+
},
|
|
2747
|
+
styles: /* @__PURE__ */ __name((a) => `
|
|
2748
|
+
.mermaid-main-font {
|
|
2749
|
+
font-family: ${a.fontFamily};
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
.exclude-range {
|
|
2753
|
+
fill: ${a.excludeBkgColor};
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.section {
|
|
2757
|
+
stroke: none;
|
|
2758
|
+
opacity: 0.2;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
.section0 {
|
|
2762
|
+
fill: ${a.sectionBkgColor};
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
.section2 {
|
|
2766
|
+
fill: ${a.sectionBkgColor2};
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
.section1,
|
|
2770
|
+
.section3 {
|
|
2771
|
+
fill: ${a.altSectionBkgColor};
|
|
2772
|
+
opacity: 0.2;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
.sectionTitle0 {
|
|
2776
|
+
fill: ${a.titleColor};
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
.sectionTitle1 {
|
|
2780
|
+
fill: ${a.titleColor};
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
.sectionTitle2 {
|
|
2784
|
+
fill: ${a.titleColor};
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
.sectionTitle3 {
|
|
2788
|
+
fill: ${a.titleColor};
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2791
|
+
.sectionTitle {
|
|
2792
|
+
text-anchor: start;
|
|
2793
|
+
font-family: ${a.fontFamily};
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
|
|
2797
|
+
/* Grid and axis */
|
|
2798
|
+
|
|
2799
|
+
.grid .tick {
|
|
2800
|
+
stroke: ${a.gridColor};
|
|
2801
|
+
opacity: 0.8;
|
|
2802
|
+
shape-rendering: crispEdges;
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
.grid .tick text {
|
|
2806
|
+
font-family: ${a.fontFamily};
|
|
2807
|
+
fill: ${a.textColor};
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
.grid path {
|
|
2811
|
+
stroke-width: 0;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
/* Today line */
|
|
2816
|
+
|
|
2817
|
+
.today {
|
|
2818
|
+
fill: none;
|
|
2819
|
+
stroke: ${a.todayLineColor};
|
|
2820
|
+
stroke-width: 2px;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
/* Task styling */
|
|
2825
|
+
|
|
2826
|
+
/* Default task */
|
|
2827
|
+
|
|
2828
|
+
.task {
|
|
2829
|
+
stroke-width: 2;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
.taskText {
|
|
2833
|
+
text-anchor: middle;
|
|
2834
|
+
font-family: ${a.fontFamily};
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
.taskTextOutsideRight {
|
|
2838
|
+
fill: ${a.taskTextDarkColor};
|
|
2839
|
+
text-anchor: start;
|
|
2840
|
+
font-family: ${a.fontFamily};
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
.taskTextOutsideLeft {
|
|
2844
|
+
fill: ${a.taskTextDarkColor};
|
|
2845
|
+
text-anchor: end;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
|
|
2849
|
+
/* Special case clickable */
|
|
2850
|
+
|
|
2851
|
+
.task.clickable {
|
|
2852
|
+
cursor: pointer;
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
.taskText.clickable {
|
|
2856
|
+
cursor: pointer;
|
|
2857
|
+
fill: ${a.taskTextClickableColor} !important;
|
|
2858
|
+
font-weight: bold;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
.taskTextOutsideLeft.clickable {
|
|
2862
|
+
cursor: pointer;
|
|
2863
|
+
fill: ${a.taskTextClickableColor} !important;
|
|
2864
|
+
font-weight: bold;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
.taskTextOutsideRight.clickable {
|
|
2868
|
+
cursor: pointer;
|
|
2869
|
+
fill: ${a.taskTextClickableColor} !important;
|
|
2870
|
+
font-weight: bold;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
|
|
2874
|
+
/* Specific task settings for the sections*/
|
|
2875
|
+
|
|
2876
|
+
.taskText0,
|
|
2877
|
+
.taskText1,
|
|
2878
|
+
.taskText2,
|
|
2879
|
+
.taskText3 {
|
|
2880
|
+
fill: ${a.taskTextColor};
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
.task0,
|
|
2884
|
+
.task1,
|
|
2885
|
+
.task2,
|
|
2886
|
+
.task3 {
|
|
2887
|
+
fill: ${a.taskBkgColor};
|
|
2888
|
+
stroke: ${a.taskBorderColor};
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
.taskTextOutside0,
|
|
2892
|
+
.taskTextOutside2
|
|
2893
|
+
{
|
|
2894
|
+
fill: ${a.taskTextOutsideColor};
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
.taskTextOutside1,
|
|
2898
|
+
.taskTextOutside3 {
|
|
2899
|
+
fill: ${a.taskTextOutsideColor};
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
|
|
2903
|
+
/* Active task */
|
|
2904
|
+
|
|
2905
|
+
.active0,
|
|
2906
|
+
.active1,
|
|
2907
|
+
.active2,
|
|
2908
|
+
.active3 {
|
|
2909
|
+
fill: ${a.activeTaskBkgColor};
|
|
2910
|
+
stroke: ${a.activeTaskBorderColor};
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
.activeText0,
|
|
2914
|
+
.activeText1,
|
|
2915
|
+
.activeText2,
|
|
2916
|
+
.activeText3 {
|
|
2917
|
+
fill: ${a.taskTextDarkColor} !important;
|
|
2918
|
+
}
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
/* Completed task */
|
|
2922
|
+
|
|
2923
|
+
.done0,
|
|
2924
|
+
.done1,
|
|
2925
|
+
.done2,
|
|
2926
|
+
.done3 {
|
|
2927
|
+
stroke: ${a.doneTaskBorderColor};
|
|
2928
|
+
fill: ${a.doneTaskBkgColor};
|
|
2929
|
+
stroke-width: 2;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
.doneText0,
|
|
2933
|
+
.doneText1,
|
|
2934
|
+
.doneText2,
|
|
2935
|
+
.doneText3 {
|
|
2936
|
+
fill: ${a.taskTextDarkColor} !important;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
|
|
2940
|
+
/* Tasks on the critical line */
|
|
2941
|
+
|
|
2942
|
+
.crit0,
|
|
2943
|
+
.crit1,
|
|
2944
|
+
.crit2,
|
|
2945
|
+
.crit3 {
|
|
2946
|
+
stroke: ${a.critBorderColor};
|
|
2947
|
+
fill: ${a.critBkgColor};
|
|
2948
|
+
stroke-width: 2;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
.activeCrit0,
|
|
2952
|
+
.activeCrit1,
|
|
2953
|
+
.activeCrit2,
|
|
2954
|
+
.activeCrit3 {
|
|
2955
|
+
stroke: ${a.critBorderColor};
|
|
2956
|
+
fill: ${a.activeTaskBkgColor};
|
|
2957
|
+
stroke-width: 2;
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
.doneCrit0,
|
|
2961
|
+
.doneCrit1,
|
|
2962
|
+
.doneCrit2,
|
|
2963
|
+
.doneCrit3 {
|
|
2964
|
+
stroke: ${a.critBorderColor};
|
|
2965
|
+
fill: ${a.doneTaskBkgColor};
|
|
2966
|
+
stroke-width: 2;
|
|
2967
|
+
cursor: pointer;
|
|
2968
|
+
shape-rendering: crispEdges;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.milestone {
|
|
2972
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
.milestoneText {
|
|
2976
|
+
font-style: italic;
|
|
2977
|
+
}
|
|
2978
|
+
.doneCritText0,
|
|
2979
|
+
.doneCritText1,
|
|
2980
|
+
.doneCritText2,
|
|
2981
|
+
.doneCritText3 {
|
|
2982
|
+
fill: ${a.taskTextDarkColor} !important;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
.vert {
|
|
2986
|
+
stroke: ${a.vertLineColor};
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
.vertText {
|
|
2990
|
+
font-size: 15px;
|
|
2991
|
+
text-anchor: middle;
|
|
2992
|
+
fill: ${a.vertLineColor} !important;
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
.activeCritText0,
|
|
2996
|
+
.activeCritText1,
|
|
2997
|
+
.activeCritText2,
|
|
2998
|
+
.activeCritText3 {
|
|
2999
|
+
fill: ${a.taskTextDarkColor} !important;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
.titleText {
|
|
3003
|
+
text-anchor: middle;
|
|
3004
|
+
font-size: 18px;
|
|
3005
|
+
fill: ${a.titleColor || a.textColor};
|
|
3006
|
+
font-family: ${a.fontFamily};
|
|
3007
|
+
}
|
|
3008
|
+
`, "getStyles")
|
|
3009
|
+
};
|
|
3010
|
+
export { diagram };
|