@webskill/sdk 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +1174 -169
- package/dist/{approval-DwN2o2QG.js → approval-7CuZS3Z4.js} +104 -18
- package/dist/arc-8U_6NQWm.js +130 -0
- package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
- package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
- package/dist/array-DQfpQNY8.js +8 -0
- package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
- package/dist/browser.d.ts +455 -49
- package/dist/browser.js +2134 -138
- package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
- package/dist/channel-CZxxLrG7.js +9 -0
- package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
- package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
- package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
- package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
- package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
- package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
- package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
- package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
- package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
- package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
- package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
- package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
- package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
- package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
- package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
- package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
- package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
- package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
- package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
- package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
- package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
- package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
- package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
- package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
- package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
- package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
- package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
- package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
- package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
- package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
- package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
- package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
- package/dist/defaultLocale-B_EoOkSF.js +249 -0
- package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
- package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
- package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
- package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
- package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
- package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
- package/dist/dist-UajCDt3n.js +92 -0
- package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
- package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
- package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
- package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/{toolSource-C9oNuKmr.js → geometry-CRhuySKV.js} +169 -12
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +22 -4
- package/dist/governance.js +100 -10
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-DHopiH_m.d.ts → index-7No55dRb.d.ts} +161 -11
- package/dist/{index-B8Tgmpwh.d.ts → index-ShvCB5I9.d.ts} +2 -2
- package/dist/{index-CYLt5u4L.d.ts → index-V76_OFj2.d.ts} +789 -21
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -9
- package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
- package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
- package/dist/init-CMOIWdg-.js +16 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
- package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
- package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
- package/dist/katex-BcRRvyh_.js +26465 -0
- package/dist/{kind-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
- package/dist/line-LgV8iVMV.js +48 -0
- package/dist/linear-BWKR0Tqd.js +393 -0
- package/dist/linkedDocument-CZZOl9cO.js +456 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
- package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
- package/dist/mermaid.core-DMtwGCHy.js +1756 -0
- package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
- package/dist/node.d.ts +3 -3
- package/dist/node.js +12 -5
- package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
- package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
- package/dist/ordinal-CxA6GHQS.js +84 -0
- package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
- package/dist/path-C27Z2Bjv.js +106 -0
- package/dist/{pathSecurity-B1owvJAF.js → pathSecurity-CirkQwWP.js} +12 -1
- package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
- package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
- package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
- package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
- package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
- package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
- package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
- package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
- package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
- package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
- package/dist/rough.cjs-AmDd_NQk.js +1395 -0
- package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
- package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
- package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
- package/dist/{skill-CAJMsLod.js → skill-WSUDp6A1.js} +1 -1
- package/dist/{skillVersionStore-B24Jjjry-BkOk9wI_.d.ts → skillVersionStore-S4_HJ_Fl-Cvy9LqVu.d.ts} +35 -4
- package/dist/src-NkhI3UMl.js +2653 -0
- package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
- package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
- package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +1 -1
- package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
- package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
- package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
- package/dist/{types-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BiZBXGm4.d.ts} +66 -8
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +3746 -96
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
- package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
- package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
- package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
- package/dist/{webSkillApi-Cib6G-94.js → webSkillApi-D5VMUnrv.js} +2 -2
- package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
- package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
- package/package.json +1 -1
- package/dist/linkedDocument-C0gj1sMq.js +0 -245
|
@@ -0,0 +1,3939 @@
|
|
|
1
|
+
import { o as __toESM, t as __commonJSMin } from "./rolldown-runtime-BHkdefai.js";
|
|
2
|
+
import { n as __name } from "./chunk-Y2CYZVJY-U3QOMqrW.js";
|
|
3
|
+
import { a as nogamma, c as Rgb, d as define_default, f as extend, g as require_dayjs_min, i as hue, m as log, p as select_default, s as Color, u as rgbConvert } from "./src-NkhI3UMl.js";
|
|
4
|
+
import { H as setAccDescription, U as setAccTitle, a as clear, c as configureSvgSize, q as setDiagramTitle, s as common_default, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle } from "./chunk-O7XYJQB3-B6K0KOSL.js";
|
|
5
|
+
import { a as bisector, i as tickStep, n as continuous, r as copy, t as linear } from "./linear-BWKR0Tqd.js";
|
|
6
|
+
import { t as initRange } from "./init-CMOIWdg-.js";
|
|
7
|
+
import { t as require_dist } from "./dist-UajCDt3n.js";
|
|
8
|
+
import { g as utils_default } from "./chunk-ZIGJFQKS-DqEFBuHR.js";
|
|
9
|
+
|
|
10
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js
|
|
11
|
+
function max(values, valueof) {
|
|
12
|
+
let max;
|
|
13
|
+
if (valueof === void 0) {
|
|
14
|
+
for (const value of values) if (value != null && (max < value || max === void 0 && value >= value)) max = value;
|
|
15
|
+
} else {
|
|
16
|
+
let index = -1;
|
|
17
|
+
for (let value of values) if ((value = valueof(value, ++index, values)) != null && (max < value || max === void 0 && value >= value)) max = value;
|
|
18
|
+
}
|
|
19
|
+
return max;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js
|
|
24
|
+
function min(values, valueof) {
|
|
25
|
+
let min;
|
|
26
|
+
if (valueof === void 0) {
|
|
27
|
+
for (const value of values) if (value != null && (min > value || min === void 0 && value >= value)) min = value;
|
|
28
|
+
} else {
|
|
29
|
+
let index = -1;
|
|
30
|
+
for (let value of values) if ((value = valueof(value, ++index, values)) != null && (min > value || min === void 0 && value >= value)) min = value;
|
|
31
|
+
}
|
|
32
|
+
return min;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.js
|
|
37
|
+
function identity_default(x) {
|
|
38
|
+
return x;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.js
|
|
43
|
+
var top = 1;
|
|
44
|
+
var right = 2;
|
|
45
|
+
var bottom = 3;
|
|
46
|
+
var left = 4;
|
|
47
|
+
var epsilon = 1e-6;
|
|
48
|
+
function translateX(x) {
|
|
49
|
+
return "translate(" + x + ",0)";
|
|
50
|
+
}
|
|
51
|
+
function translateY(y) {
|
|
52
|
+
return "translate(0," + y + ")";
|
|
53
|
+
}
|
|
54
|
+
function number$1(scale) {
|
|
55
|
+
return (d) => +scale(d);
|
|
56
|
+
}
|
|
57
|
+
function center(scale, offset) {
|
|
58
|
+
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
|
|
59
|
+
if (scale.round()) offset = Math.round(offset);
|
|
60
|
+
return (d) => +scale(d) + offset;
|
|
61
|
+
}
|
|
62
|
+
function entering() {
|
|
63
|
+
return !this.__axis;
|
|
64
|
+
}
|
|
65
|
+
function axis(orient, scale) {
|
|
66
|
+
var tickArguments = [], tickValues = null, tickFormat = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : .5, k = orient === top || orient === left ? -1 : 1, x = orient === left || orient === right ? "x" : "y", transform = orient === top || orient === bottom ? translateX : translateY;
|
|
67
|
+
function axis(context) {
|
|
68
|
+
var values = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format = tickFormat == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity_default : tickFormat, spacing = Math.max(tickSizeInner, 0) + tickPadding, range = scale.range(), range0 = +range[0] + offset, range1 = +range[range.length - 1] + offset, position = (scale.bandwidth ? center : number$1)(scale.copy(), offset), selection = context.selection ? context.selection() : context, path = selection.selectAll(".domain").data([null]), tick = selection.selectAll(".tick").data(values, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line = tick.select("line"), text = tick.select("text");
|
|
69
|
+
path = path.merge(path.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
|
|
70
|
+
tick = tick.merge(tickEnter);
|
|
71
|
+
line = line.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
|
|
72
|
+
text = text.merge(tickEnter.append("text").attr("fill", "currentColor").attr(x, k * spacing).attr("dy", orient === top ? "0em" : orient === bottom ? "0.71em" : "0.32em"));
|
|
73
|
+
if (context !== selection) {
|
|
74
|
+
path = path.transition(context);
|
|
75
|
+
tick = tick.transition(context);
|
|
76
|
+
line = line.transition(context);
|
|
77
|
+
text = text.transition(context);
|
|
78
|
+
tickExit = tickExit.transition(context).attr("opacity", epsilon).attr("transform", function(d) {
|
|
79
|
+
return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform");
|
|
80
|
+
});
|
|
81
|
+
tickEnter.attr("opacity", epsilon).attr("transform", function(d) {
|
|
82
|
+
var p = this.parentNode.__axis;
|
|
83
|
+
return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
tickExit.remove();
|
|
87
|
+
path.attr("d", orient === left || orient === right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1);
|
|
88
|
+
tick.attr("opacity", 1).attr("transform", function(d) {
|
|
89
|
+
return transform(position(d) + offset);
|
|
90
|
+
});
|
|
91
|
+
line.attr(x + "2", k * tickSizeInner);
|
|
92
|
+
text.attr(x, k * spacing).text(format);
|
|
93
|
+
selection.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", orient === right ? "start" : orient === left ? "end" : "middle");
|
|
94
|
+
selection.each(function() {
|
|
95
|
+
this.__axis = position;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
axis.scale = function(_) {
|
|
99
|
+
return arguments.length ? (scale = _, axis) : scale;
|
|
100
|
+
};
|
|
101
|
+
axis.ticks = function() {
|
|
102
|
+
return tickArguments = Array.from(arguments), axis;
|
|
103
|
+
};
|
|
104
|
+
axis.tickArguments = function(_) {
|
|
105
|
+
return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis) : tickArguments.slice();
|
|
106
|
+
};
|
|
107
|
+
axis.tickValues = function(_) {
|
|
108
|
+
return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis) : tickValues && tickValues.slice();
|
|
109
|
+
};
|
|
110
|
+
axis.tickFormat = function(_) {
|
|
111
|
+
return arguments.length ? (tickFormat = _, axis) : tickFormat;
|
|
112
|
+
};
|
|
113
|
+
axis.tickSize = function(_) {
|
|
114
|
+
return arguments.length ? (tickSizeInner = tickSizeOuter = +_, axis) : tickSizeInner;
|
|
115
|
+
};
|
|
116
|
+
axis.tickSizeInner = function(_) {
|
|
117
|
+
return arguments.length ? (tickSizeInner = +_, axis) : tickSizeInner;
|
|
118
|
+
};
|
|
119
|
+
axis.tickSizeOuter = function(_) {
|
|
120
|
+
return arguments.length ? (tickSizeOuter = +_, axis) : tickSizeOuter;
|
|
121
|
+
};
|
|
122
|
+
axis.tickPadding = function(_) {
|
|
123
|
+
return arguments.length ? (tickPadding = +_, axis) : tickPadding;
|
|
124
|
+
};
|
|
125
|
+
axis.offset = function(_) {
|
|
126
|
+
return arguments.length ? (offset = +_, axis) : offset;
|
|
127
|
+
};
|
|
128
|
+
return axis;
|
|
129
|
+
}
|
|
130
|
+
function axisTop(scale) {
|
|
131
|
+
return axis(top, scale);
|
|
132
|
+
}
|
|
133
|
+
function axisBottom(scale) {
|
|
134
|
+
return axis(bottom, scale);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.js
|
|
139
|
+
const radians = Math.PI / 180;
|
|
140
|
+
const degrees = 180 / Math.PI;
|
|
141
|
+
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.js
|
|
144
|
+
const K = 18;
|
|
145
|
+
const Xn = .96422;
|
|
146
|
+
const Yn = 1;
|
|
147
|
+
const Zn = .82521;
|
|
148
|
+
const t0$1 = 4 / 29;
|
|
149
|
+
const t1$1 = 6 / 29;
|
|
150
|
+
const t2 = 3 * t1$1 * t1$1;
|
|
151
|
+
const t3 = t1$1 * t1$1 * t1$1;
|
|
152
|
+
function labConvert(o) {
|
|
153
|
+
if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
|
|
154
|
+
if (o instanceof Hcl) return hcl2lab(o);
|
|
155
|
+
if (!(o instanceof Rgb)) o = rgbConvert(o);
|
|
156
|
+
var r = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b = rgb2lrgb(o.b), y = xyz2lab((.2225045 * r + .7168786 * g + .0606169 * b) / Yn), x, z;
|
|
157
|
+
if (r === g && g === b) x = z = y;
|
|
158
|
+
else {
|
|
159
|
+
x = xyz2lab((.4360747 * r + .3850649 * g + .1430804 * b) / Xn);
|
|
160
|
+
z = xyz2lab((.0139322 * r + .0971045 * g + .7141733 * b) / Zn);
|
|
161
|
+
}
|
|
162
|
+
return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
|
|
163
|
+
}
|
|
164
|
+
function lab(l, a, b, opacity) {
|
|
165
|
+
return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
|
|
166
|
+
}
|
|
167
|
+
function Lab(l, a, b, opacity) {
|
|
168
|
+
this.l = +l;
|
|
169
|
+
this.a = +a;
|
|
170
|
+
this.b = +b;
|
|
171
|
+
this.opacity = +opacity;
|
|
172
|
+
}
|
|
173
|
+
define_default(Lab, lab, extend(Color, {
|
|
174
|
+
brighter(k) {
|
|
175
|
+
return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
176
|
+
},
|
|
177
|
+
darker(k) {
|
|
178
|
+
return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
|
|
179
|
+
},
|
|
180
|
+
rgb() {
|
|
181
|
+
var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200;
|
|
182
|
+
x = Xn * lab2xyz(x);
|
|
183
|
+
y = Yn * lab2xyz(y);
|
|
184
|
+
z = Zn * lab2xyz(z);
|
|
185
|
+
return new Rgb(lrgb2rgb(3.1338561 * x - 1.6168667 * y - .4906146 * z), lrgb2rgb(-.9787684 * x + 1.9161415 * y + .033454 * z), lrgb2rgb(.0719453 * x - .2289914 * y + 1.4052427 * z), this.opacity);
|
|
186
|
+
}
|
|
187
|
+
}));
|
|
188
|
+
function xyz2lab(t) {
|
|
189
|
+
return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0$1;
|
|
190
|
+
}
|
|
191
|
+
function lab2xyz(t) {
|
|
192
|
+
return t > t1$1 ? t * t * t : t2 * (t - t0$1);
|
|
193
|
+
}
|
|
194
|
+
function lrgb2rgb(x) {
|
|
195
|
+
return 255 * (x <= .0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - .055);
|
|
196
|
+
}
|
|
197
|
+
function rgb2lrgb(x) {
|
|
198
|
+
return (x /= 255) <= .04045 ? x / 12.92 : Math.pow((x + .055) / 1.055, 2.4);
|
|
199
|
+
}
|
|
200
|
+
function hclConvert(o) {
|
|
201
|
+
if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
|
|
202
|
+
if (!(o instanceof Lab)) o = labConvert(o);
|
|
203
|
+
if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
|
|
204
|
+
var h = Math.atan2(o.b, o.a) * degrees;
|
|
205
|
+
return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
|
|
206
|
+
}
|
|
207
|
+
function hcl$1(h, c, l, opacity) {
|
|
208
|
+
return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
|
|
209
|
+
}
|
|
210
|
+
function Hcl(h, c, l, opacity) {
|
|
211
|
+
this.h = +h;
|
|
212
|
+
this.c = +c;
|
|
213
|
+
this.l = +l;
|
|
214
|
+
this.opacity = +opacity;
|
|
215
|
+
}
|
|
216
|
+
function hcl2lab(o) {
|
|
217
|
+
if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
|
|
218
|
+
var h = o.h * radians;
|
|
219
|
+
return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
|
|
220
|
+
}
|
|
221
|
+
define_default(Hcl, hcl$1, extend(Color, {
|
|
222
|
+
brighter(k) {
|
|
223
|
+
return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
|
|
224
|
+
},
|
|
225
|
+
darker(k) {
|
|
226
|
+
return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
|
|
227
|
+
},
|
|
228
|
+
rgb() {
|
|
229
|
+
return hcl2lab(this).rgb();
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.js
|
|
235
|
+
function hcl(hue) {
|
|
236
|
+
return function(start, end) {
|
|
237
|
+
var h = hue((start = hcl$1(start)).h, (end = hcl$1(end)).h), c = nogamma(start.c, end.c), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity);
|
|
238
|
+
return function(t) {
|
|
239
|
+
start.h = h(t);
|
|
240
|
+
start.c = c(t);
|
|
241
|
+
start.l = l(t);
|
|
242
|
+
start.opacity = opacity(t);
|
|
243
|
+
return start + "";
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
var hcl_default = hcl(hue);
|
|
248
|
+
var hclLong = hcl(nogamma);
|
|
249
|
+
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.js
|
|
252
|
+
function nice(domain, interval) {
|
|
253
|
+
domain = domain.slice();
|
|
254
|
+
var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t;
|
|
255
|
+
if (x1 < x0) {
|
|
256
|
+
t = i0, i0 = i1, i1 = t;
|
|
257
|
+
t = x0, x0 = x1, x1 = t;
|
|
258
|
+
}
|
|
259
|
+
domain[i0] = interval.floor(x0);
|
|
260
|
+
domain[i1] = interval.ceil(x1);
|
|
261
|
+
return domain;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.js
|
|
266
|
+
const t0 = /* @__PURE__ */ new Date();
|
|
267
|
+
const t1 = /* @__PURE__ */ new Date();
|
|
268
|
+
function timeInterval(floori, offseti, count, field) {
|
|
269
|
+
function interval(date) {
|
|
270
|
+
return floori(date = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+date)), date;
|
|
271
|
+
}
|
|
272
|
+
interval.floor = (date) => {
|
|
273
|
+
return floori(date = /* @__PURE__ */ new Date(+date)), date;
|
|
274
|
+
};
|
|
275
|
+
interval.ceil = (date) => {
|
|
276
|
+
return floori(date = /* @__PURE__ */ new Date(date - 1)), offseti(date, 1), floori(date), date;
|
|
277
|
+
};
|
|
278
|
+
interval.round = (date) => {
|
|
279
|
+
const d0 = interval(date), d1 = interval.ceil(date);
|
|
280
|
+
return date - d0 < d1 - date ? d0 : d1;
|
|
281
|
+
};
|
|
282
|
+
interval.offset = (date, step) => {
|
|
283
|
+
return offseti(date = /* @__PURE__ */ new Date(+date), step == null ? 1 : Math.floor(step)), date;
|
|
284
|
+
};
|
|
285
|
+
interval.range = (start, stop, step) => {
|
|
286
|
+
const range = [];
|
|
287
|
+
start = interval.ceil(start);
|
|
288
|
+
step = step == null ? 1 : Math.floor(step);
|
|
289
|
+
if (!(start < stop) || !(step > 0)) return range;
|
|
290
|
+
let previous;
|
|
291
|
+
do
|
|
292
|
+
range.push(previous = /* @__PURE__ */ new Date(+start)), offseti(start, step), floori(start);
|
|
293
|
+
while (previous < start && start < stop);
|
|
294
|
+
return range;
|
|
295
|
+
};
|
|
296
|
+
interval.filter = (test) => {
|
|
297
|
+
return timeInterval((date) => {
|
|
298
|
+
if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
|
|
299
|
+
}, (date, step) => {
|
|
300
|
+
if (date >= date) if (step < 0) while (++step <= 0) while (offseti(date, -1), !test(date));
|
|
301
|
+
else while (--step >= 0) while (offseti(date, 1), !test(date));
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
if (count) {
|
|
305
|
+
interval.count = (start, end) => {
|
|
306
|
+
t0.setTime(+start), t1.setTime(+end);
|
|
307
|
+
floori(t0), floori(t1);
|
|
308
|
+
return Math.floor(count(t0, t1));
|
|
309
|
+
};
|
|
310
|
+
interval.every = (step) => {
|
|
311
|
+
step = Math.floor(step);
|
|
312
|
+
return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? (d) => field(d) % step === 0 : (d) => interval.count(0, d) % step === 0);
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
return interval;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
//#endregion
|
|
319
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.js
|
|
320
|
+
const millisecond = timeInterval(() => {}, (date, step) => {
|
|
321
|
+
date.setTime(+date + step);
|
|
322
|
+
}, (start, end) => {
|
|
323
|
+
return end - start;
|
|
324
|
+
});
|
|
325
|
+
millisecond.every = (k) => {
|
|
326
|
+
k = Math.floor(k);
|
|
327
|
+
if (!isFinite(k) || !(k > 0)) return null;
|
|
328
|
+
if (!(k > 1)) return millisecond;
|
|
329
|
+
return timeInterval((date) => {
|
|
330
|
+
date.setTime(Math.floor(date / k) * k);
|
|
331
|
+
}, (date, step) => {
|
|
332
|
+
date.setTime(+date + step * k);
|
|
333
|
+
}, (start, end) => {
|
|
334
|
+
return (end - start) / k;
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
const milliseconds = millisecond.range;
|
|
338
|
+
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.js
|
|
341
|
+
const durationSecond = 1e3;
|
|
342
|
+
const durationMinute = durationSecond * 60;
|
|
343
|
+
const durationHour = durationMinute * 60;
|
|
344
|
+
const durationDay = durationHour * 24;
|
|
345
|
+
const durationWeek = durationDay * 7;
|
|
346
|
+
const durationMonth = durationDay * 30;
|
|
347
|
+
const durationYear = durationDay * 365;
|
|
348
|
+
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.js
|
|
351
|
+
const second = timeInterval((date) => {
|
|
352
|
+
date.setTime(date - date.getMilliseconds());
|
|
353
|
+
}, (date, step) => {
|
|
354
|
+
date.setTime(+date + step * durationSecond);
|
|
355
|
+
}, (start, end) => {
|
|
356
|
+
return (end - start) / durationSecond;
|
|
357
|
+
}, (date) => {
|
|
358
|
+
return date.getUTCSeconds();
|
|
359
|
+
});
|
|
360
|
+
const seconds = second.range;
|
|
361
|
+
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.js
|
|
364
|
+
const timeMinute = timeInterval((date) => {
|
|
365
|
+
date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond);
|
|
366
|
+
}, (date, step) => {
|
|
367
|
+
date.setTime(+date + step * durationMinute);
|
|
368
|
+
}, (start, end) => {
|
|
369
|
+
return (end - start) / durationMinute;
|
|
370
|
+
}, (date) => {
|
|
371
|
+
return date.getMinutes();
|
|
372
|
+
});
|
|
373
|
+
const timeMinutes = timeMinute.range;
|
|
374
|
+
const utcMinute = timeInterval((date) => {
|
|
375
|
+
date.setUTCSeconds(0, 0);
|
|
376
|
+
}, (date, step) => {
|
|
377
|
+
date.setTime(+date + step * durationMinute);
|
|
378
|
+
}, (start, end) => {
|
|
379
|
+
return (end - start) / durationMinute;
|
|
380
|
+
}, (date) => {
|
|
381
|
+
return date.getUTCMinutes();
|
|
382
|
+
});
|
|
383
|
+
const utcMinutes = utcMinute.range;
|
|
384
|
+
|
|
385
|
+
//#endregion
|
|
386
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.js
|
|
387
|
+
const timeHour = timeInterval((date) => {
|
|
388
|
+
date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);
|
|
389
|
+
}, (date, step) => {
|
|
390
|
+
date.setTime(+date + step * durationHour);
|
|
391
|
+
}, (start, end) => {
|
|
392
|
+
return (end - start) / durationHour;
|
|
393
|
+
}, (date) => {
|
|
394
|
+
return date.getHours();
|
|
395
|
+
});
|
|
396
|
+
const timeHours = timeHour.range;
|
|
397
|
+
const utcHour = timeInterval((date) => {
|
|
398
|
+
date.setUTCMinutes(0, 0, 0);
|
|
399
|
+
}, (date, step) => {
|
|
400
|
+
date.setTime(+date + step * durationHour);
|
|
401
|
+
}, (start, end) => {
|
|
402
|
+
return (end - start) / durationHour;
|
|
403
|
+
}, (date) => {
|
|
404
|
+
return date.getUTCHours();
|
|
405
|
+
});
|
|
406
|
+
const utcHours = utcHour.range;
|
|
407
|
+
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.js
|
|
410
|
+
const timeDay = timeInterval((date) => date.setHours(0, 0, 0, 0), (date, step) => date.setDate(date.getDate() + step), (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay, (date) => date.getDate() - 1);
|
|
411
|
+
const timeDays = timeDay.range;
|
|
412
|
+
const utcDay = timeInterval((date) => {
|
|
413
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
414
|
+
}, (date, step) => {
|
|
415
|
+
date.setUTCDate(date.getUTCDate() + step);
|
|
416
|
+
}, (start, end) => {
|
|
417
|
+
return (end - start) / durationDay;
|
|
418
|
+
}, (date) => {
|
|
419
|
+
return date.getUTCDate() - 1;
|
|
420
|
+
});
|
|
421
|
+
const utcDays = utcDay.range;
|
|
422
|
+
const unixDay = timeInterval((date) => {
|
|
423
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
424
|
+
}, (date, step) => {
|
|
425
|
+
date.setUTCDate(date.getUTCDate() + step);
|
|
426
|
+
}, (start, end) => {
|
|
427
|
+
return (end - start) / durationDay;
|
|
428
|
+
}, (date) => {
|
|
429
|
+
return Math.floor(date / durationDay);
|
|
430
|
+
});
|
|
431
|
+
const unixDays = unixDay.range;
|
|
432
|
+
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.js
|
|
435
|
+
function timeWeekday(i) {
|
|
436
|
+
return timeInterval((date) => {
|
|
437
|
+
date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
|
|
438
|
+
date.setHours(0, 0, 0, 0);
|
|
439
|
+
}, (date, step) => {
|
|
440
|
+
date.setDate(date.getDate() + step * 7);
|
|
441
|
+
}, (start, end) => {
|
|
442
|
+
return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek;
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
const timeSunday = timeWeekday(0);
|
|
446
|
+
const timeMonday = timeWeekday(1);
|
|
447
|
+
const timeTuesday = timeWeekday(2);
|
|
448
|
+
const timeWednesday = timeWeekday(3);
|
|
449
|
+
const timeThursday = timeWeekday(4);
|
|
450
|
+
const timeFriday = timeWeekday(5);
|
|
451
|
+
const timeSaturday = timeWeekday(6);
|
|
452
|
+
const timeSundays = timeSunday.range;
|
|
453
|
+
const timeMondays = timeMonday.range;
|
|
454
|
+
const timeTuesdays = timeTuesday.range;
|
|
455
|
+
const timeWednesdays = timeWednesday.range;
|
|
456
|
+
const timeThursdays = timeThursday.range;
|
|
457
|
+
const timeFridays = timeFriday.range;
|
|
458
|
+
const timeSaturdays = timeSaturday.range;
|
|
459
|
+
function utcWeekday(i) {
|
|
460
|
+
return timeInterval((date) => {
|
|
461
|
+
date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
|
|
462
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
463
|
+
}, (date, step) => {
|
|
464
|
+
date.setUTCDate(date.getUTCDate() + step * 7);
|
|
465
|
+
}, (start, end) => {
|
|
466
|
+
return (end - start) / durationWeek;
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
const utcSunday = utcWeekday(0);
|
|
470
|
+
const utcMonday = utcWeekday(1);
|
|
471
|
+
const utcTuesday = utcWeekday(2);
|
|
472
|
+
const utcWednesday = utcWeekday(3);
|
|
473
|
+
const utcThursday = utcWeekday(4);
|
|
474
|
+
const utcFriday = utcWeekday(5);
|
|
475
|
+
const utcSaturday = utcWeekday(6);
|
|
476
|
+
const utcSundays = utcSunday.range;
|
|
477
|
+
const utcMondays = utcMonday.range;
|
|
478
|
+
const utcTuesdays = utcTuesday.range;
|
|
479
|
+
const utcWednesdays = utcWednesday.range;
|
|
480
|
+
const utcThursdays = utcThursday.range;
|
|
481
|
+
const utcFridays = utcFriday.range;
|
|
482
|
+
const utcSaturdays = utcSaturday.range;
|
|
483
|
+
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.js
|
|
486
|
+
const timeMonth = timeInterval((date) => {
|
|
487
|
+
date.setDate(1);
|
|
488
|
+
date.setHours(0, 0, 0, 0);
|
|
489
|
+
}, (date, step) => {
|
|
490
|
+
date.setMonth(date.getMonth() + step);
|
|
491
|
+
}, (start, end) => {
|
|
492
|
+
return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
|
|
493
|
+
}, (date) => {
|
|
494
|
+
return date.getMonth();
|
|
495
|
+
});
|
|
496
|
+
const timeMonths = timeMonth.range;
|
|
497
|
+
const utcMonth = timeInterval((date) => {
|
|
498
|
+
date.setUTCDate(1);
|
|
499
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
500
|
+
}, (date, step) => {
|
|
501
|
+
date.setUTCMonth(date.getUTCMonth() + step);
|
|
502
|
+
}, (start, end) => {
|
|
503
|
+
return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
|
|
504
|
+
}, (date) => {
|
|
505
|
+
return date.getUTCMonth();
|
|
506
|
+
});
|
|
507
|
+
const utcMonths = utcMonth.range;
|
|
508
|
+
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.js
|
|
511
|
+
const timeYear = timeInterval((date) => {
|
|
512
|
+
date.setMonth(0, 1);
|
|
513
|
+
date.setHours(0, 0, 0, 0);
|
|
514
|
+
}, (date, step) => {
|
|
515
|
+
date.setFullYear(date.getFullYear() + step);
|
|
516
|
+
}, (start, end) => {
|
|
517
|
+
return end.getFullYear() - start.getFullYear();
|
|
518
|
+
}, (date) => {
|
|
519
|
+
return date.getFullYear();
|
|
520
|
+
});
|
|
521
|
+
timeYear.every = (k) => {
|
|
522
|
+
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
|
|
523
|
+
date.setFullYear(Math.floor(date.getFullYear() / k) * k);
|
|
524
|
+
date.setMonth(0, 1);
|
|
525
|
+
date.setHours(0, 0, 0, 0);
|
|
526
|
+
}, (date, step) => {
|
|
527
|
+
date.setFullYear(date.getFullYear() + step * k);
|
|
528
|
+
});
|
|
529
|
+
};
|
|
530
|
+
const timeYears = timeYear.range;
|
|
531
|
+
const utcYear = timeInterval((date) => {
|
|
532
|
+
date.setUTCMonth(0, 1);
|
|
533
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
534
|
+
}, (date, step) => {
|
|
535
|
+
date.setUTCFullYear(date.getUTCFullYear() + step);
|
|
536
|
+
}, (start, end) => {
|
|
537
|
+
return end.getUTCFullYear() - start.getUTCFullYear();
|
|
538
|
+
}, (date) => {
|
|
539
|
+
return date.getUTCFullYear();
|
|
540
|
+
});
|
|
541
|
+
utcYear.every = (k) => {
|
|
542
|
+
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => {
|
|
543
|
+
date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
|
|
544
|
+
date.setUTCMonth(0, 1);
|
|
545
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
546
|
+
}, (date, step) => {
|
|
547
|
+
date.setUTCFullYear(date.getUTCFullYear() + step * k);
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
const utcYears = utcYear.range;
|
|
551
|
+
|
|
552
|
+
//#endregion
|
|
553
|
+
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.js
|
|
554
|
+
function ticker(year, month, week, day, hour, minute) {
|
|
555
|
+
const tickIntervals = [
|
|
556
|
+
[
|
|
557
|
+
second,
|
|
558
|
+
1,
|
|
559
|
+
durationSecond
|
|
560
|
+
],
|
|
561
|
+
[
|
|
562
|
+
second,
|
|
563
|
+
5,
|
|
564
|
+
5 * durationSecond
|
|
565
|
+
],
|
|
566
|
+
[
|
|
567
|
+
second,
|
|
568
|
+
15,
|
|
569
|
+
15 * durationSecond
|
|
570
|
+
],
|
|
571
|
+
[
|
|
572
|
+
second,
|
|
573
|
+
30,
|
|
574
|
+
30 * durationSecond
|
|
575
|
+
],
|
|
576
|
+
[
|
|
577
|
+
minute,
|
|
578
|
+
1,
|
|
579
|
+
durationMinute
|
|
580
|
+
],
|
|
581
|
+
[
|
|
582
|
+
minute,
|
|
583
|
+
5,
|
|
584
|
+
5 * durationMinute
|
|
585
|
+
],
|
|
586
|
+
[
|
|
587
|
+
minute,
|
|
588
|
+
15,
|
|
589
|
+
15 * durationMinute
|
|
590
|
+
],
|
|
591
|
+
[
|
|
592
|
+
minute,
|
|
593
|
+
30,
|
|
594
|
+
30 * durationMinute
|
|
595
|
+
],
|
|
596
|
+
[
|
|
597
|
+
hour,
|
|
598
|
+
1,
|
|
599
|
+
durationHour
|
|
600
|
+
],
|
|
601
|
+
[
|
|
602
|
+
hour,
|
|
603
|
+
3,
|
|
604
|
+
3 * durationHour
|
|
605
|
+
],
|
|
606
|
+
[
|
|
607
|
+
hour,
|
|
608
|
+
6,
|
|
609
|
+
6 * durationHour
|
|
610
|
+
],
|
|
611
|
+
[
|
|
612
|
+
hour,
|
|
613
|
+
12,
|
|
614
|
+
12 * durationHour
|
|
615
|
+
],
|
|
616
|
+
[
|
|
617
|
+
day,
|
|
618
|
+
1,
|
|
619
|
+
durationDay
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
day,
|
|
623
|
+
2,
|
|
624
|
+
2 * durationDay
|
|
625
|
+
],
|
|
626
|
+
[
|
|
627
|
+
week,
|
|
628
|
+
1,
|
|
629
|
+
durationWeek
|
|
630
|
+
],
|
|
631
|
+
[
|
|
632
|
+
month,
|
|
633
|
+
1,
|
|
634
|
+
durationMonth
|
|
635
|
+
],
|
|
636
|
+
[
|
|
637
|
+
month,
|
|
638
|
+
3,
|
|
639
|
+
3 * durationMonth
|
|
640
|
+
],
|
|
641
|
+
[
|
|
642
|
+
year,
|
|
643
|
+
1,
|
|
644
|
+
durationYear
|
|
645
|
+
]
|
|
646
|
+
];
|
|
647
|
+
function ticks(start, stop, count) {
|
|
648
|
+
const reverse = stop < start;
|
|
649
|
+
if (reverse) [start, stop] = [stop, start];
|
|
650
|
+
const interval = count && typeof count.range === "function" ? count : tickInterval(start, stop, count);
|
|
651
|
+
const ticks = interval ? interval.range(start, +stop + 1) : [];
|
|
652
|
+
return reverse ? ticks.reverse() : ticks;
|
|
653
|
+
}
|
|
654
|
+
function tickInterval(start, stop, count) {
|
|
655
|
+
const target = Math.abs(stop - start) / count;
|
|
656
|
+
const i = bisector(([, , step]) => step).right(tickIntervals, target);
|
|
657
|
+
if (i === tickIntervals.length) return year.every(tickStep(start / durationYear, stop / durationYear, count));
|
|
658
|
+
if (i === 0) return millisecond.every(Math.max(tickStep(start, stop, count), 1));
|
|
659
|
+
const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
|
|
660
|
+
return t.every(step);
|
|
661
|
+
}
|
|
662
|
+
return [ticks, tickInterval];
|
|
663
|
+
}
|
|
664
|
+
const [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute);
|
|
665
|
+
const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
|
|
666
|
+
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region ../../node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.js
|
|
669
|
+
function localDate(d) {
|
|
670
|
+
if (0 <= d.y && d.y < 100) {
|
|
671
|
+
var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
|
|
672
|
+
date.setFullYear(d.y);
|
|
673
|
+
return date;
|
|
674
|
+
}
|
|
675
|
+
return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
|
|
676
|
+
}
|
|
677
|
+
function utcDate(d) {
|
|
678
|
+
if (0 <= d.y && d.y < 100) {
|
|
679
|
+
var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
|
|
680
|
+
date.setUTCFullYear(d.y);
|
|
681
|
+
return date;
|
|
682
|
+
}
|
|
683
|
+
return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
|
|
684
|
+
}
|
|
685
|
+
function newDate(y, m, d) {
|
|
686
|
+
return {
|
|
687
|
+
y,
|
|
688
|
+
m,
|
|
689
|
+
d,
|
|
690
|
+
H: 0,
|
|
691
|
+
M: 0,
|
|
692
|
+
S: 0,
|
|
693
|
+
L: 0
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
function formatLocale(locale) {
|
|
697
|
+
var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths;
|
|
698
|
+
var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths);
|
|
699
|
+
var formats = {
|
|
700
|
+
"a": formatShortWeekday,
|
|
701
|
+
"A": formatWeekday,
|
|
702
|
+
"b": formatShortMonth,
|
|
703
|
+
"B": formatMonth,
|
|
704
|
+
"c": null,
|
|
705
|
+
"d": formatDayOfMonth,
|
|
706
|
+
"e": formatDayOfMonth,
|
|
707
|
+
"f": formatMicroseconds,
|
|
708
|
+
"g": formatYearISO,
|
|
709
|
+
"G": formatFullYearISO,
|
|
710
|
+
"H": formatHour24,
|
|
711
|
+
"I": formatHour12,
|
|
712
|
+
"j": formatDayOfYear,
|
|
713
|
+
"L": formatMilliseconds,
|
|
714
|
+
"m": formatMonthNumber,
|
|
715
|
+
"M": formatMinutes,
|
|
716
|
+
"p": formatPeriod,
|
|
717
|
+
"q": formatQuarter,
|
|
718
|
+
"Q": formatUnixTimestamp,
|
|
719
|
+
"s": formatUnixTimestampSeconds,
|
|
720
|
+
"S": formatSeconds,
|
|
721
|
+
"u": formatWeekdayNumberMonday,
|
|
722
|
+
"U": formatWeekNumberSunday,
|
|
723
|
+
"V": formatWeekNumberISO,
|
|
724
|
+
"w": formatWeekdayNumberSunday,
|
|
725
|
+
"W": formatWeekNumberMonday,
|
|
726
|
+
"x": null,
|
|
727
|
+
"X": null,
|
|
728
|
+
"y": formatYear,
|
|
729
|
+
"Y": formatFullYear,
|
|
730
|
+
"Z": formatZone,
|
|
731
|
+
"%": formatLiteralPercent
|
|
732
|
+
};
|
|
733
|
+
var utcFormats = {
|
|
734
|
+
"a": formatUTCShortWeekday,
|
|
735
|
+
"A": formatUTCWeekday,
|
|
736
|
+
"b": formatUTCShortMonth,
|
|
737
|
+
"B": formatUTCMonth,
|
|
738
|
+
"c": null,
|
|
739
|
+
"d": formatUTCDayOfMonth,
|
|
740
|
+
"e": formatUTCDayOfMonth,
|
|
741
|
+
"f": formatUTCMicroseconds,
|
|
742
|
+
"g": formatUTCYearISO,
|
|
743
|
+
"G": formatUTCFullYearISO,
|
|
744
|
+
"H": formatUTCHour24,
|
|
745
|
+
"I": formatUTCHour12,
|
|
746
|
+
"j": formatUTCDayOfYear,
|
|
747
|
+
"L": formatUTCMilliseconds,
|
|
748
|
+
"m": formatUTCMonthNumber,
|
|
749
|
+
"M": formatUTCMinutes,
|
|
750
|
+
"p": formatUTCPeriod,
|
|
751
|
+
"q": formatUTCQuarter,
|
|
752
|
+
"Q": formatUnixTimestamp,
|
|
753
|
+
"s": formatUnixTimestampSeconds,
|
|
754
|
+
"S": formatUTCSeconds,
|
|
755
|
+
"u": formatUTCWeekdayNumberMonday,
|
|
756
|
+
"U": formatUTCWeekNumberSunday,
|
|
757
|
+
"V": formatUTCWeekNumberISO,
|
|
758
|
+
"w": formatUTCWeekdayNumberSunday,
|
|
759
|
+
"W": formatUTCWeekNumberMonday,
|
|
760
|
+
"x": null,
|
|
761
|
+
"X": null,
|
|
762
|
+
"y": formatUTCYear,
|
|
763
|
+
"Y": formatUTCFullYear,
|
|
764
|
+
"Z": formatUTCZone,
|
|
765
|
+
"%": formatLiteralPercent
|
|
766
|
+
};
|
|
767
|
+
var parses = {
|
|
768
|
+
"a": parseShortWeekday,
|
|
769
|
+
"A": parseWeekday,
|
|
770
|
+
"b": parseShortMonth,
|
|
771
|
+
"B": parseMonth,
|
|
772
|
+
"c": parseLocaleDateTime,
|
|
773
|
+
"d": parseDayOfMonth,
|
|
774
|
+
"e": parseDayOfMonth,
|
|
775
|
+
"f": parseMicroseconds,
|
|
776
|
+
"g": parseYear,
|
|
777
|
+
"G": parseFullYear,
|
|
778
|
+
"H": parseHour24,
|
|
779
|
+
"I": parseHour24,
|
|
780
|
+
"j": parseDayOfYear,
|
|
781
|
+
"L": parseMilliseconds,
|
|
782
|
+
"m": parseMonthNumber,
|
|
783
|
+
"M": parseMinutes,
|
|
784
|
+
"p": parsePeriod,
|
|
785
|
+
"q": parseQuarter,
|
|
786
|
+
"Q": parseUnixTimestamp,
|
|
787
|
+
"s": parseUnixTimestampSeconds,
|
|
788
|
+
"S": parseSeconds,
|
|
789
|
+
"u": parseWeekdayNumberMonday,
|
|
790
|
+
"U": parseWeekNumberSunday,
|
|
791
|
+
"V": parseWeekNumberISO,
|
|
792
|
+
"w": parseWeekdayNumberSunday,
|
|
793
|
+
"W": parseWeekNumberMonday,
|
|
794
|
+
"x": parseLocaleDate,
|
|
795
|
+
"X": parseLocaleTime,
|
|
796
|
+
"y": parseYear,
|
|
797
|
+
"Y": parseFullYear,
|
|
798
|
+
"Z": parseZone,
|
|
799
|
+
"%": parseLiteralPercent
|
|
800
|
+
};
|
|
801
|
+
formats.x = newFormat(locale_date, formats);
|
|
802
|
+
formats.X = newFormat(locale_time, formats);
|
|
803
|
+
formats.c = newFormat(locale_dateTime, formats);
|
|
804
|
+
utcFormats.x = newFormat(locale_date, utcFormats);
|
|
805
|
+
utcFormats.X = newFormat(locale_time, utcFormats);
|
|
806
|
+
utcFormats.c = newFormat(locale_dateTime, utcFormats);
|
|
807
|
+
function newFormat(specifier, formats) {
|
|
808
|
+
return function(date) {
|
|
809
|
+
var string = [], i = -1, j = 0, n = specifier.length, c, pad, format;
|
|
810
|
+
if (!(date instanceof Date)) date = /* @__PURE__ */ new Date(+date);
|
|
811
|
+
while (++i < n) if (specifier.charCodeAt(i) === 37) {
|
|
812
|
+
string.push(specifier.slice(j, i));
|
|
813
|
+
if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i);
|
|
814
|
+
else pad = c === "e" ? " " : "0";
|
|
815
|
+
if (format = formats[c]) c = format(date, pad);
|
|
816
|
+
string.push(c);
|
|
817
|
+
j = i + 1;
|
|
818
|
+
}
|
|
819
|
+
string.push(specifier.slice(j, i));
|
|
820
|
+
return string.join("");
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function newParse(specifier, Z) {
|
|
824
|
+
return function(string) {
|
|
825
|
+
var d = newDate(1900, void 0, 1), i = parseSpecifier(d, specifier, string += "", 0), week, day;
|
|
826
|
+
if (i != string.length) return null;
|
|
827
|
+
if ("Q" in d) return new Date(d.Q);
|
|
828
|
+
if ("s" in d) return new Date(d.s * 1e3 + ("L" in d ? d.L : 0));
|
|
829
|
+
if (Z && !("Z" in d)) d.Z = 0;
|
|
830
|
+
if ("p" in d) d.H = d.H % 12 + d.p * 12;
|
|
831
|
+
if (d.m === void 0) d.m = "q" in d ? d.q : 0;
|
|
832
|
+
if ("V" in d) {
|
|
833
|
+
if (d.V < 1 || d.V > 53) return null;
|
|
834
|
+
if (!("w" in d)) d.w = 1;
|
|
835
|
+
if ("Z" in d) {
|
|
836
|
+
week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay();
|
|
837
|
+
week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week);
|
|
838
|
+
week = utcDay.offset(week, (d.V - 1) * 7);
|
|
839
|
+
d.y = week.getUTCFullYear();
|
|
840
|
+
d.m = week.getUTCMonth();
|
|
841
|
+
d.d = week.getUTCDate() + (d.w + 6) % 7;
|
|
842
|
+
} else {
|
|
843
|
+
week = localDate(newDate(d.y, 0, 1)), day = week.getDay();
|
|
844
|
+
week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week);
|
|
845
|
+
week = timeDay.offset(week, (d.V - 1) * 7);
|
|
846
|
+
d.y = week.getFullYear();
|
|
847
|
+
d.m = week.getMonth();
|
|
848
|
+
d.d = week.getDate() + (d.w + 6) % 7;
|
|
849
|
+
}
|
|
850
|
+
} else if ("W" in d || "U" in d) {
|
|
851
|
+
if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0;
|
|
852
|
+
day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay();
|
|
853
|
+
d.m = 0;
|
|
854
|
+
d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;
|
|
855
|
+
}
|
|
856
|
+
if ("Z" in d) {
|
|
857
|
+
d.H += d.Z / 100 | 0;
|
|
858
|
+
d.M += d.Z % 100;
|
|
859
|
+
return utcDate(d);
|
|
860
|
+
}
|
|
861
|
+
return localDate(d);
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
function parseSpecifier(d, specifier, string, j) {
|
|
865
|
+
var i = 0, n = specifier.length, m = string.length, c, parse;
|
|
866
|
+
while (i < n) {
|
|
867
|
+
if (j >= m) return -1;
|
|
868
|
+
c = specifier.charCodeAt(i++);
|
|
869
|
+
if (c === 37) {
|
|
870
|
+
c = specifier.charAt(i++);
|
|
871
|
+
parse = parses[c in pads ? specifier.charAt(i++) : c];
|
|
872
|
+
if (!parse || (j = parse(d, string, j)) < 0) return -1;
|
|
873
|
+
} else if (c != string.charCodeAt(j++)) return -1;
|
|
874
|
+
}
|
|
875
|
+
return j;
|
|
876
|
+
}
|
|
877
|
+
function parsePeriod(d, string, i) {
|
|
878
|
+
var n = periodRe.exec(string.slice(i));
|
|
879
|
+
return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
880
|
+
}
|
|
881
|
+
function parseShortWeekday(d, string, i) {
|
|
882
|
+
var n = shortWeekdayRe.exec(string.slice(i));
|
|
883
|
+
return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
884
|
+
}
|
|
885
|
+
function parseWeekday(d, string, i) {
|
|
886
|
+
var n = weekdayRe.exec(string.slice(i));
|
|
887
|
+
return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
888
|
+
}
|
|
889
|
+
function parseShortMonth(d, string, i) {
|
|
890
|
+
var n = shortMonthRe.exec(string.slice(i));
|
|
891
|
+
return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
892
|
+
}
|
|
893
|
+
function parseMonth(d, string, i) {
|
|
894
|
+
var n = monthRe.exec(string.slice(i));
|
|
895
|
+
return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1;
|
|
896
|
+
}
|
|
897
|
+
function parseLocaleDateTime(d, string, i) {
|
|
898
|
+
return parseSpecifier(d, locale_dateTime, string, i);
|
|
899
|
+
}
|
|
900
|
+
function parseLocaleDate(d, string, i) {
|
|
901
|
+
return parseSpecifier(d, locale_date, string, i);
|
|
902
|
+
}
|
|
903
|
+
function parseLocaleTime(d, string, i) {
|
|
904
|
+
return parseSpecifier(d, locale_time, string, i);
|
|
905
|
+
}
|
|
906
|
+
function formatShortWeekday(d) {
|
|
907
|
+
return locale_shortWeekdays[d.getDay()];
|
|
908
|
+
}
|
|
909
|
+
function formatWeekday(d) {
|
|
910
|
+
return locale_weekdays[d.getDay()];
|
|
911
|
+
}
|
|
912
|
+
function formatShortMonth(d) {
|
|
913
|
+
return locale_shortMonths[d.getMonth()];
|
|
914
|
+
}
|
|
915
|
+
function formatMonth(d) {
|
|
916
|
+
return locale_months[d.getMonth()];
|
|
917
|
+
}
|
|
918
|
+
function formatPeriod(d) {
|
|
919
|
+
return locale_periods[+(d.getHours() >= 12)];
|
|
920
|
+
}
|
|
921
|
+
function formatQuarter(d) {
|
|
922
|
+
return 1 + ~~(d.getMonth() / 3);
|
|
923
|
+
}
|
|
924
|
+
function formatUTCShortWeekday(d) {
|
|
925
|
+
return locale_shortWeekdays[d.getUTCDay()];
|
|
926
|
+
}
|
|
927
|
+
function formatUTCWeekday(d) {
|
|
928
|
+
return locale_weekdays[d.getUTCDay()];
|
|
929
|
+
}
|
|
930
|
+
function formatUTCShortMonth(d) {
|
|
931
|
+
return locale_shortMonths[d.getUTCMonth()];
|
|
932
|
+
}
|
|
933
|
+
function formatUTCMonth(d) {
|
|
934
|
+
return locale_months[d.getUTCMonth()];
|
|
935
|
+
}
|
|
936
|
+
function formatUTCPeriod(d) {
|
|
937
|
+
return locale_periods[+(d.getUTCHours() >= 12)];
|
|
938
|
+
}
|
|
939
|
+
function formatUTCQuarter(d) {
|
|
940
|
+
return 1 + ~~(d.getUTCMonth() / 3);
|
|
941
|
+
}
|
|
942
|
+
return {
|
|
943
|
+
format: function(specifier) {
|
|
944
|
+
var f = newFormat(specifier += "", formats);
|
|
945
|
+
f.toString = function() {
|
|
946
|
+
return specifier;
|
|
947
|
+
};
|
|
948
|
+
return f;
|
|
949
|
+
},
|
|
950
|
+
parse: function(specifier) {
|
|
951
|
+
var p = newParse(specifier += "", false);
|
|
952
|
+
p.toString = function() {
|
|
953
|
+
return specifier;
|
|
954
|
+
};
|
|
955
|
+
return p;
|
|
956
|
+
},
|
|
957
|
+
utcFormat: function(specifier) {
|
|
958
|
+
var f = newFormat(specifier += "", utcFormats);
|
|
959
|
+
f.toString = function() {
|
|
960
|
+
return specifier;
|
|
961
|
+
};
|
|
962
|
+
return f;
|
|
963
|
+
},
|
|
964
|
+
utcParse: function(specifier) {
|
|
965
|
+
var p = newParse(specifier += "", true);
|
|
966
|
+
p.toString = function() {
|
|
967
|
+
return specifier;
|
|
968
|
+
};
|
|
969
|
+
return p;
|
|
970
|
+
}
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
var pads = {
|
|
974
|
+
"-": "",
|
|
975
|
+
"_": " ",
|
|
976
|
+
"0": "0"
|
|
977
|
+
};
|
|
978
|
+
var numberRe = /^\s*\d+/;
|
|
979
|
+
var percentRe = /^%/;
|
|
980
|
+
var requoteRe = /[\\^$*+?|[\]().{}]/g;
|
|
981
|
+
function pad(value, fill, width) {
|
|
982
|
+
var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length;
|
|
983
|
+
return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);
|
|
984
|
+
}
|
|
985
|
+
function requote(s) {
|
|
986
|
+
return s.replace(requoteRe, "\\$&");
|
|
987
|
+
}
|
|
988
|
+
function formatRe(names) {
|
|
989
|
+
return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i");
|
|
990
|
+
}
|
|
991
|
+
function formatLookup(names) {
|
|
992
|
+
return new Map(names.map((name, i) => [name.toLowerCase(), i]));
|
|
993
|
+
}
|
|
994
|
+
function parseWeekdayNumberSunday(d, string, i) {
|
|
995
|
+
var n = numberRe.exec(string.slice(i, i + 1));
|
|
996
|
+
return n ? (d.w = +n[0], i + n[0].length) : -1;
|
|
997
|
+
}
|
|
998
|
+
function parseWeekdayNumberMonday(d, string, i) {
|
|
999
|
+
var n = numberRe.exec(string.slice(i, i + 1));
|
|
1000
|
+
return n ? (d.u = +n[0], i + n[0].length) : -1;
|
|
1001
|
+
}
|
|
1002
|
+
function parseWeekNumberSunday(d, string, i) {
|
|
1003
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1004
|
+
return n ? (d.U = +n[0], i + n[0].length) : -1;
|
|
1005
|
+
}
|
|
1006
|
+
function parseWeekNumberISO(d, string, i) {
|
|
1007
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1008
|
+
return n ? (d.V = +n[0], i + n[0].length) : -1;
|
|
1009
|
+
}
|
|
1010
|
+
function parseWeekNumberMonday(d, string, i) {
|
|
1011
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1012
|
+
return n ? (d.W = +n[0], i + n[0].length) : -1;
|
|
1013
|
+
}
|
|
1014
|
+
function parseFullYear(d, string, i) {
|
|
1015
|
+
var n = numberRe.exec(string.slice(i, i + 4));
|
|
1016
|
+
return n ? (d.y = +n[0], i + n[0].length) : -1;
|
|
1017
|
+
}
|
|
1018
|
+
function parseYear(d, string, i) {
|
|
1019
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1020
|
+
return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), i + n[0].length) : -1;
|
|
1021
|
+
}
|
|
1022
|
+
function parseZone(d, string, i) {
|
|
1023
|
+
var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6));
|
|
1024
|
+
return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1;
|
|
1025
|
+
}
|
|
1026
|
+
function parseQuarter(d, string, i) {
|
|
1027
|
+
var n = numberRe.exec(string.slice(i, i + 1));
|
|
1028
|
+
return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1;
|
|
1029
|
+
}
|
|
1030
|
+
function parseMonthNumber(d, string, i) {
|
|
1031
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1032
|
+
return n ? (d.m = n[0] - 1, i + n[0].length) : -1;
|
|
1033
|
+
}
|
|
1034
|
+
function parseDayOfMonth(d, string, i) {
|
|
1035
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1036
|
+
return n ? (d.d = +n[0], i + n[0].length) : -1;
|
|
1037
|
+
}
|
|
1038
|
+
function parseDayOfYear(d, string, i) {
|
|
1039
|
+
var n = numberRe.exec(string.slice(i, i + 3));
|
|
1040
|
+
return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;
|
|
1041
|
+
}
|
|
1042
|
+
function parseHour24(d, string, i) {
|
|
1043
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1044
|
+
return n ? (d.H = +n[0], i + n[0].length) : -1;
|
|
1045
|
+
}
|
|
1046
|
+
function parseMinutes(d, string, i) {
|
|
1047
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1048
|
+
return n ? (d.M = +n[0], i + n[0].length) : -1;
|
|
1049
|
+
}
|
|
1050
|
+
function parseSeconds(d, string, i) {
|
|
1051
|
+
var n = numberRe.exec(string.slice(i, i + 2));
|
|
1052
|
+
return n ? (d.S = +n[0], i + n[0].length) : -1;
|
|
1053
|
+
}
|
|
1054
|
+
function parseMilliseconds(d, string, i) {
|
|
1055
|
+
var n = numberRe.exec(string.slice(i, i + 3));
|
|
1056
|
+
return n ? (d.L = +n[0], i + n[0].length) : -1;
|
|
1057
|
+
}
|
|
1058
|
+
function parseMicroseconds(d, string, i) {
|
|
1059
|
+
var n = numberRe.exec(string.slice(i, i + 6));
|
|
1060
|
+
return n ? (d.L = Math.floor(n[0] / 1e3), i + n[0].length) : -1;
|
|
1061
|
+
}
|
|
1062
|
+
function parseLiteralPercent(d, string, i) {
|
|
1063
|
+
var n = percentRe.exec(string.slice(i, i + 1));
|
|
1064
|
+
return n ? i + n[0].length : -1;
|
|
1065
|
+
}
|
|
1066
|
+
function parseUnixTimestamp(d, string, i) {
|
|
1067
|
+
var n = numberRe.exec(string.slice(i));
|
|
1068
|
+
return n ? (d.Q = +n[0], i + n[0].length) : -1;
|
|
1069
|
+
}
|
|
1070
|
+
function parseUnixTimestampSeconds(d, string, i) {
|
|
1071
|
+
var n = numberRe.exec(string.slice(i));
|
|
1072
|
+
return n ? (d.s = +n[0], i + n[0].length) : -1;
|
|
1073
|
+
}
|
|
1074
|
+
function formatDayOfMonth(d, p) {
|
|
1075
|
+
return pad(d.getDate(), p, 2);
|
|
1076
|
+
}
|
|
1077
|
+
function formatHour24(d, p) {
|
|
1078
|
+
return pad(d.getHours(), p, 2);
|
|
1079
|
+
}
|
|
1080
|
+
function formatHour12(d, p) {
|
|
1081
|
+
return pad(d.getHours() % 12 || 12, p, 2);
|
|
1082
|
+
}
|
|
1083
|
+
function formatDayOfYear(d, p) {
|
|
1084
|
+
return pad(1 + timeDay.count(timeYear(d), d), p, 3);
|
|
1085
|
+
}
|
|
1086
|
+
function formatMilliseconds(d, p) {
|
|
1087
|
+
return pad(d.getMilliseconds(), p, 3);
|
|
1088
|
+
}
|
|
1089
|
+
function formatMicroseconds(d, p) {
|
|
1090
|
+
return formatMilliseconds(d, p) + "000";
|
|
1091
|
+
}
|
|
1092
|
+
function formatMonthNumber(d, p) {
|
|
1093
|
+
return pad(d.getMonth() + 1, p, 2);
|
|
1094
|
+
}
|
|
1095
|
+
function formatMinutes(d, p) {
|
|
1096
|
+
return pad(d.getMinutes(), p, 2);
|
|
1097
|
+
}
|
|
1098
|
+
function formatSeconds(d, p) {
|
|
1099
|
+
return pad(d.getSeconds(), p, 2);
|
|
1100
|
+
}
|
|
1101
|
+
function formatWeekdayNumberMonday(d) {
|
|
1102
|
+
var day = d.getDay();
|
|
1103
|
+
return day === 0 ? 7 : day;
|
|
1104
|
+
}
|
|
1105
|
+
function formatWeekNumberSunday(d, p) {
|
|
1106
|
+
return pad(timeSunday.count(timeYear(d) - 1, d), p, 2);
|
|
1107
|
+
}
|
|
1108
|
+
function dISO(d) {
|
|
1109
|
+
var day = d.getDay();
|
|
1110
|
+
return day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
|
|
1111
|
+
}
|
|
1112
|
+
function formatWeekNumberISO(d, p) {
|
|
1113
|
+
d = dISO(d);
|
|
1114
|
+
return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2);
|
|
1115
|
+
}
|
|
1116
|
+
function formatWeekdayNumberSunday(d) {
|
|
1117
|
+
return d.getDay();
|
|
1118
|
+
}
|
|
1119
|
+
function formatWeekNumberMonday(d, p) {
|
|
1120
|
+
return pad(timeMonday.count(timeYear(d) - 1, d), p, 2);
|
|
1121
|
+
}
|
|
1122
|
+
function formatYear(d, p) {
|
|
1123
|
+
return pad(d.getFullYear() % 100, p, 2);
|
|
1124
|
+
}
|
|
1125
|
+
function formatYearISO(d, p) {
|
|
1126
|
+
d = dISO(d);
|
|
1127
|
+
return pad(d.getFullYear() % 100, p, 2);
|
|
1128
|
+
}
|
|
1129
|
+
function formatFullYear(d, p) {
|
|
1130
|
+
return pad(d.getFullYear() % 1e4, p, 4);
|
|
1131
|
+
}
|
|
1132
|
+
function formatFullYearISO(d, p) {
|
|
1133
|
+
var day = d.getDay();
|
|
1134
|
+
d = day >= 4 || day === 0 ? timeThursday(d) : timeThursday.ceil(d);
|
|
1135
|
+
return pad(d.getFullYear() % 1e4, p, 4);
|
|
1136
|
+
}
|
|
1137
|
+
function formatZone(d) {
|
|
1138
|
+
var z = d.getTimezoneOffset();
|
|
1139
|
+
return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2);
|
|
1140
|
+
}
|
|
1141
|
+
function formatUTCDayOfMonth(d, p) {
|
|
1142
|
+
return pad(d.getUTCDate(), p, 2);
|
|
1143
|
+
}
|
|
1144
|
+
function formatUTCHour24(d, p) {
|
|
1145
|
+
return pad(d.getUTCHours(), p, 2);
|
|
1146
|
+
}
|
|
1147
|
+
function formatUTCHour12(d, p) {
|
|
1148
|
+
return pad(d.getUTCHours() % 12 || 12, p, 2);
|
|
1149
|
+
}
|
|
1150
|
+
function formatUTCDayOfYear(d, p) {
|
|
1151
|
+
return pad(1 + utcDay.count(utcYear(d), d), p, 3);
|
|
1152
|
+
}
|
|
1153
|
+
function formatUTCMilliseconds(d, p) {
|
|
1154
|
+
return pad(d.getUTCMilliseconds(), p, 3);
|
|
1155
|
+
}
|
|
1156
|
+
function formatUTCMicroseconds(d, p) {
|
|
1157
|
+
return formatUTCMilliseconds(d, p) + "000";
|
|
1158
|
+
}
|
|
1159
|
+
function formatUTCMonthNumber(d, p) {
|
|
1160
|
+
return pad(d.getUTCMonth() + 1, p, 2);
|
|
1161
|
+
}
|
|
1162
|
+
function formatUTCMinutes(d, p) {
|
|
1163
|
+
return pad(d.getUTCMinutes(), p, 2);
|
|
1164
|
+
}
|
|
1165
|
+
function formatUTCSeconds(d, p) {
|
|
1166
|
+
return pad(d.getUTCSeconds(), p, 2);
|
|
1167
|
+
}
|
|
1168
|
+
function formatUTCWeekdayNumberMonday(d) {
|
|
1169
|
+
var dow = d.getUTCDay();
|
|
1170
|
+
return dow === 0 ? 7 : dow;
|
|
1171
|
+
}
|
|
1172
|
+
function formatUTCWeekNumberSunday(d, p) {
|
|
1173
|
+
return pad(utcSunday.count(utcYear(d) - 1, d), p, 2);
|
|
1174
|
+
}
|
|
1175
|
+
function UTCdISO(d) {
|
|
1176
|
+
var day = d.getUTCDay();
|
|
1177
|
+
return day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
|
|
1178
|
+
}
|
|
1179
|
+
function formatUTCWeekNumberISO(d, p) {
|
|
1180
|
+
d = UTCdISO(d);
|
|
1181
|
+
return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2);
|
|
1182
|
+
}
|
|
1183
|
+
function formatUTCWeekdayNumberSunday(d) {
|
|
1184
|
+
return d.getUTCDay();
|
|
1185
|
+
}
|
|
1186
|
+
function formatUTCWeekNumberMonday(d, p) {
|
|
1187
|
+
return pad(utcMonday.count(utcYear(d) - 1, d), p, 2);
|
|
1188
|
+
}
|
|
1189
|
+
function formatUTCYear(d, p) {
|
|
1190
|
+
return pad(d.getUTCFullYear() % 100, p, 2);
|
|
1191
|
+
}
|
|
1192
|
+
function formatUTCYearISO(d, p) {
|
|
1193
|
+
d = UTCdISO(d);
|
|
1194
|
+
return pad(d.getUTCFullYear() % 100, p, 2);
|
|
1195
|
+
}
|
|
1196
|
+
function formatUTCFullYear(d, p) {
|
|
1197
|
+
return pad(d.getUTCFullYear() % 1e4, p, 4);
|
|
1198
|
+
}
|
|
1199
|
+
function formatUTCFullYearISO(d, p) {
|
|
1200
|
+
var day = d.getUTCDay();
|
|
1201
|
+
d = day >= 4 || day === 0 ? utcThursday(d) : utcThursday.ceil(d);
|
|
1202
|
+
return pad(d.getUTCFullYear() % 1e4, p, 4);
|
|
1203
|
+
}
|
|
1204
|
+
function formatUTCZone() {
|
|
1205
|
+
return "+0000";
|
|
1206
|
+
}
|
|
1207
|
+
function formatLiteralPercent() {
|
|
1208
|
+
return "%";
|
|
1209
|
+
}
|
|
1210
|
+
function formatUnixTimestamp(d) {
|
|
1211
|
+
return +d;
|
|
1212
|
+
}
|
|
1213
|
+
function formatUnixTimestampSeconds(d) {
|
|
1214
|
+
return Math.floor(+d / 1e3);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region ../../node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.js
|
|
1219
|
+
var locale;
|
|
1220
|
+
var timeFormat;
|
|
1221
|
+
var timeParse;
|
|
1222
|
+
var utcFormat;
|
|
1223
|
+
var utcParse;
|
|
1224
|
+
defaultLocale({
|
|
1225
|
+
dateTime: "%x, %X",
|
|
1226
|
+
date: "%-m/%-d/%Y",
|
|
1227
|
+
time: "%-I:%M:%S %p",
|
|
1228
|
+
periods: ["AM", "PM"],
|
|
1229
|
+
days: [
|
|
1230
|
+
"Sunday",
|
|
1231
|
+
"Monday",
|
|
1232
|
+
"Tuesday",
|
|
1233
|
+
"Wednesday",
|
|
1234
|
+
"Thursday",
|
|
1235
|
+
"Friday",
|
|
1236
|
+
"Saturday"
|
|
1237
|
+
],
|
|
1238
|
+
shortDays: [
|
|
1239
|
+
"Sun",
|
|
1240
|
+
"Mon",
|
|
1241
|
+
"Tue",
|
|
1242
|
+
"Wed",
|
|
1243
|
+
"Thu",
|
|
1244
|
+
"Fri",
|
|
1245
|
+
"Sat"
|
|
1246
|
+
],
|
|
1247
|
+
months: [
|
|
1248
|
+
"January",
|
|
1249
|
+
"February",
|
|
1250
|
+
"March",
|
|
1251
|
+
"April",
|
|
1252
|
+
"May",
|
|
1253
|
+
"June",
|
|
1254
|
+
"July",
|
|
1255
|
+
"August",
|
|
1256
|
+
"September",
|
|
1257
|
+
"October",
|
|
1258
|
+
"November",
|
|
1259
|
+
"December"
|
|
1260
|
+
],
|
|
1261
|
+
shortMonths: [
|
|
1262
|
+
"Jan",
|
|
1263
|
+
"Feb",
|
|
1264
|
+
"Mar",
|
|
1265
|
+
"Apr",
|
|
1266
|
+
"May",
|
|
1267
|
+
"Jun",
|
|
1268
|
+
"Jul",
|
|
1269
|
+
"Aug",
|
|
1270
|
+
"Sep",
|
|
1271
|
+
"Oct",
|
|
1272
|
+
"Nov",
|
|
1273
|
+
"Dec"
|
|
1274
|
+
]
|
|
1275
|
+
});
|
|
1276
|
+
function defaultLocale(definition) {
|
|
1277
|
+
locale = formatLocale(definition);
|
|
1278
|
+
timeFormat = locale.format;
|
|
1279
|
+
timeParse = locale.parse;
|
|
1280
|
+
utcFormat = locale.utcFormat;
|
|
1281
|
+
utcParse = locale.utcParse;
|
|
1282
|
+
return locale;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.js
|
|
1287
|
+
function date(t) {
|
|
1288
|
+
return new Date(t);
|
|
1289
|
+
}
|
|
1290
|
+
function number(t) {
|
|
1291
|
+
return t instanceof Date ? +t : +/* @__PURE__ */ new Date(+t);
|
|
1292
|
+
}
|
|
1293
|
+
function calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format) {
|
|
1294
|
+
var scale = continuous(), invert = scale.invert, domain = scale.domain;
|
|
1295
|
+
var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y");
|
|
1296
|
+
function tickFormat(date) {
|
|
1297
|
+
return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? week(date) < date ? formatDay : formatWeek : year(date) < date ? formatMonth : formatYear)(date);
|
|
1298
|
+
}
|
|
1299
|
+
scale.invert = function(y) {
|
|
1300
|
+
return new Date(invert(y));
|
|
1301
|
+
};
|
|
1302
|
+
scale.domain = function(_) {
|
|
1303
|
+
return arguments.length ? domain(Array.from(_, number)) : domain().map(date);
|
|
1304
|
+
};
|
|
1305
|
+
scale.ticks = function(interval) {
|
|
1306
|
+
var d = domain();
|
|
1307
|
+
return ticks(d[0], d[d.length - 1], interval == null ? 10 : interval);
|
|
1308
|
+
};
|
|
1309
|
+
scale.tickFormat = function(count, specifier) {
|
|
1310
|
+
return specifier == null ? tickFormat : format(specifier);
|
|
1311
|
+
};
|
|
1312
|
+
scale.nice = function(interval) {
|
|
1313
|
+
var d = domain();
|
|
1314
|
+
if (!interval || typeof interval.range !== "function") interval = tickInterval(d[0], d[d.length - 1], interval == null ? 10 : interval);
|
|
1315
|
+
return interval ? domain(nice(d, interval)) : scale;
|
|
1316
|
+
};
|
|
1317
|
+
scale.copy = function() {
|
|
1318
|
+
return copy(scale, calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format));
|
|
1319
|
+
};
|
|
1320
|
+
return scale;
|
|
1321
|
+
}
|
|
1322
|
+
function time() {
|
|
1323
|
+
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);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
//#endregion
|
|
1327
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/isoWeek.js
|
|
1328
|
+
var require_isoWeek = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1329
|
+
(function(e, t) {
|
|
1330
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isoWeek = t();
|
|
1331
|
+
})(exports, (function() {
|
|
1332
|
+
"use strict";
|
|
1333
|
+
var e = "day";
|
|
1334
|
+
return function(t, i, s) {
|
|
1335
|
+
var a = function(t) {
|
|
1336
|
+
return t.add(4 - t.isoWeekday(), e);
|
|
1337
|
+
}, d = i.prototype;
|
|
1338
|
+
d.isoWeekYear = function() {
|
|
1339
|
+
return a(this).year();
|
|
1340
|
+
}, d.isoWeek = function(t) {
|
|
1341
|
+
if (!this.$utils().u(t)) return this.add(7 * (t - this.isoWeek()), e);
|
|
1342
|
+
var i, d, n, o, r = a(this), u = (i = this.isoWeekYear(), d = this.$u, n = (d ? s.utc : s)().year(i).startOf("year"), o = 4 - n.isoWeekday(), n.isoWeekday() > 4 && (o += 7), n.add(o, e));
|
|
1343
|
+
return r.diff(u, "week") + 1;
|
|
1344
|
+
}, d.isoWeekday = function(e) {
|
|
1345
|
+
return this.$utils().u(e) ? this.day() || 7 : this.day(this.day() % 7 ? e : e - 7);
|
|
1346
|
+
};
|
|
1347
|
+
var n = d.startOf;
|
|
1348
|
+
d.startOf = function(e, t) {
|
|
1349
|
+
var i = this.$utils(), s = !!i.u(t) || t;
|
|
1350
|
+
return "isoweek" === i.p(e) ? s ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : n.bind(this)(e, t);
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
}));
|
|
1354
|
+
}));
|
|
1355
|
+
|
|
1356
|
+
//#endregion
|
|
1357
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/customParseFormat.js
|
|
1358
|
+
var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1359
|
+
(function(e, t) {
|
|
1360
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
|
|
1361
|
+
})(exports, (function() {
|
|
1362
|
+
"use strict";
|
|
1363
|
+
var e = {
|
|
1364
|
+
LTS: "h:mm:ss A",
|
|
1365
|
+
LT: "h:mm A",
|
|
1366
|
+
L: "MM/DD/YYYY",
|
|
1367
|
+
LL: "MMMM D, YYYY",
|
|
1368
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
1369
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
1370
|
+
}, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e) {
|
|
1371
|
+
return (e = +e) + (e > 68 ? 1900 : 2e3);
|
|
1372
|
+
};
|
|
1373
|
+
var f = function(e) {
|
|
1374
|
+
return function(t) {
|
|
1375
|
+
this[e] = +t;
|
|
1376
|
+
};
|
|
1377
|
+
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
|
|
1378
|
+
(this.zone || (this.zone = {})).offset = function(e) {
|
|
1379
|
+
if (!e) return 0;
|
|
1380
|
+
if ("Z" === e) return 0;
|
|
1381
|
+
var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
|
|
1382
|
+
return 0 === n ? 0 : "+" === t[0] ? -n : n;
|
|
1383
|
+
}(e);
|
|
1384
|
+
}], u = function(e) {
|
|
1385
|
+
var t = s[e];
|
|
1386
|
+
return t && (t.indexOf ? t : t.s.concat(t.f));
|
|
1387
|
+
}, d = function(e, t) {
|
|
1388
|
+
var n, r = s.meridiem;
|
|
1389
|
+
if (r) {
|
|
1390
|
+
for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
|
|
1391
|
+
n = i > 12;
|
|
1392
|
+
break;
|
|
1393
|
+
}
|
|
1394
|
+
} else n = e === (t ? "pm" : "PM");
|
|
1395
|
+
return n;
|
|
1396
|
+
}, c = {
|
|
1397
|
+
A: [o, function(e) {
|
|
1398
|
+
this.afternoon = d(e, !1);
|
|
1399
|
+
}],
|
|
1400
|
+
a: [o, function(e) {
|
|
1401
|
+
this.afternoon = d(e, !0);
|
|
1402
|
+
}],
|
|
1403
|
+
Q: [n, function(e) {
|
|
1404
|
+
this.month = 3 * (e - 1) + 1;
|
|
1405
|
+
}],
|
|
1406
|
+
S: [n, function(e) {
|
|
1407
|
+
this.milliseconds = 100 * +e;
|
|
1408
|
+
}],
|
|
1409
|
+
SS: [r, function(e) {
|
|
1410
|
+
this.milliseconds = 10 * +e;
|
|
1411
|
+
}],
|
|
1412
|
+
SSS: [/\d{3}/, function(e) {
|
|
1413
|
+
this.milliseconds = +e;
|
|
1414
|
+
}],
|
|
1415
|
+
s: [i, f("seconds")],
|
|
1416
|
+
ss: [i, f("seconds")],
|
|
1417
|
+
m: [i, f("minutes")],
|
|
1418
|
+
mm: [i, f("minutes")],
|
|
1419
|
+
H: [i, f("hours")],
|
|
1420
|
+
h: [i, f("hours")],
|
|
1421
|
+
HH: [i, f("hours")],
|
|
1422
|
+
hh: [i, f("hours")],
|
|
1423
|
+
D: [i, f("day")],
|
|
1424
|
+
DD: [r, f("day")],
|
|
1425
|
+
Do: [o, function(e) {
|
|
1426
|
+
var t = s.ordinal, n = e.match(/\d+/);
|
|
1427
|
+
if (this.day = n[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
|
|
1428
|
+
}],
|
|
1429
|
+
w: [i, f("week")],
|
|
1430
|
+
ww: [r, f("week")],
|
|
1431
|
+
M: [i, f("month")],
|
|
1432
|
+
MM: [r, f("month")],
|
|
1433
|
+
MMM: [o, function(e) {
|
|
1434
|
+
var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
|
|
1435
|
+
return e.slice(0, 3);
|
|
1436
|
+
}))).indexOf(e) + 1;
|
|
1437
|
+
if (n < 1) throw new Error();
|
|
1438
|
+
this.month = n % 12 || n;
|
|
1439
|
+
}],
|
|
1440
|
+
MMMM: [o, function(e) {
|
|
1441
|
+
var t = u("months").indexOf(e) + 1;
|
|
1442
|
+
if (t < 1) throw new Error();
|
|
1443
|
+
this.month = t % 12 || t;
|
|
1444
|
+
}],
|
|
1445
|
+
Y: [/[+-]?\d+/, f("year")],
|
|
1446
|
+
YY: [r, function(e) {
|
|
1447
|
+
this.year = a(e);
|
|
1448
|
+
}],
|
|
1449
|
+
YYYY: [/\d{4}/, f("year")],
|
|
1450
|
+
Z: h,
|
|
1451
|
+
ZZ: h
|
|
1452
|
+
};
|
|
1453
|
+
function l(n) {
|
|
1454
|
+
var r = n, i = s && s.formats;
|
|
1455
|
+
for (var o = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
|
|
1456
|
+
var o = r && r.toUpperCase();
|
|
1457
|
+
return n || i[r] || e[r] || i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
|
|
1458
|
+
return t || n.slice(1);
|
|
1459
|
+
}));
|
|
1460
|
+
}))).match(t), a = o.length, f = 0; f < a; f += 1) {
|
|
1461
|
+
var h = o[f], u = c[h], d = u && u[0], l = u && u[1];
|
|
1462
|
+
o[f] = l ? {
|
|
1463
|
+
regex: d,
|
|
1464
|
+
parser: l
|
|
1465
|
+
} : h.replace(/^\[|\]$/g, "");
|
|
1466
|
+
}
|
|
1467
|
+
return function(e) {
|
|
1468
|
+
for (var t = {}, n = 0, r = 0; n < a; n += 1) {
|
|
1469
|
+
var i = o[n];
|
|
1470
|
+
if ("string" == typeof i) r += i.length;
|
|
1471
|
+
else {
|
|
1472
|
+
var s = i.regex, f = i.parser, h = e.slice(r), u = s.exec(h)[0];
|
|
1473
|
+
f.call(t, u), e = e.replace(u, "");
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
return function(e) {
|
|
1477
|
+
var t = e.afternoon;
|
|
1478
|
+
if (void 0 !== t) {
|
|
1479
|
+
var n = e.hours;
|
|
1480
|
+
t ? n < 12 && (e.hours += 12) : 12 === n && (e.hours = 0), delete e.afternoon;
|
|
1481
|
+
}
|
|
1482
|
+
}(t), t;
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
return function(e, t, n) {
|
|
1486
|
+
n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (a = e.parseTwoDigitYear);
|
|
1487
|
+
var r = t.prototype, i = r.parse;
|
|
1488
|
+
r.parse = function(e) {
|
|
1489
|
+
var t = e.date, r = e.utc, o = e.args;
|
|
1490
|
+
this.$u = r;
|
|
1491
|
+
var a = o[1];
|
|
1492
|
+
if ("string" == typeof a) {
|
|
1493
|
+
var f = !0 === o[2], h = !0 === o[3], u = f || h, d = o[2];
|
|
1494
|
+
h && (d = o[2]), s = this.$locale(), !f && d && (s = n.Ls[d]), this.$d = function(e, t, n, r) {
|
|
1495
|
+
try {
|
|
1496
|
+
if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date(("X" === t ? 1e3 : 1) * e);
|
|
1497
|
+
var i = l(t)(e), o = i.year, s = i.month, a = i.day, f = i.hours, h = i.minutes, u = i.seconds, d = i.milliseconds, c = i.zone, m = i.week, M = /* @__PURE__ */ new Date(), Y = a || (o || s ? 1 : M.getDate()), p = o || M.getFullYear(), v = 0;
|
|
1498
|
+
o && !s || (v = s > 0 ? s - 1 : M.getMonth());
|
|
1499
|
+
var D, w = f || 0, g = h || 0, y = u || 0, L = d || 0;
|
|
1500
|
+
return c ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c.offset * 1e3)) : n ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m && (D = r(D).week(m).toDate()), D);
|
|
1501
|
+
} catch (e) {
|
|
1502
|
+
return /* @__PURE__ */ new Date("");
|
|
1503
|
+
}
|
|
1504
|
+
}(t, a, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(a) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
1505
|
+
} else if (a instanceof Array) for (var c = a.length, m = 1; m <= c; m += 1) {
|
|
1506
|
+
o[1] = a[m - 1];
|
|
1507
|
+
var M = n.apply(this, o);
|
|
1508
|
+
if (M.isValid()) {
|
|
1509
|
+
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
1510
|
+
break;
|
|
1511
|
+
}
|
|
1512
|
+
m === c && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1513
|
+
}
|
|
1514
|
+
else i.call(this, e);
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
}));
|
|
1518
|
+
}));
|
|
1519
|
+
|
|
1520
|
+
//#endregion
|
|
1521
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/advancedFormat.js
|
|
1522
|
+
var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1523
|
+
(function(e, t) {
|
|
1524
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
|
|
1525
|
+
})(exports, (function() {
|
|
1526
|
+
"use strict";
|
|
1527
|
+
return function(e, t) {
|
|
1528
|
+
var r = t.prototype, n = r.format;
|
|
1529
|
+
r.format = function(e) {
|
|
1530
|
+
var t = this, r = this.$locale();
|
|
1531
|
+
if (!this.isValid()) return n.bind(this)(e);
|
|
1532
|
+
var s = this.$utils(), a = (e || "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(e) {
|
|
1533
|
+
switch (e) {
|
|
1534
|
+
case "Q": return Math.ceil((t.$M + 1) / 3);
|
|
1535
|
+
case "Do": return r.ordinal(t.$D);
|
|
1536
|
+
case "gggg": return t.weekYear();
|
|
1537
|
+
case "GGGG": return t.isoWeekYear();
|
|
1538
|
+
case "wo": return r.ordinal(t.week(), "W");
|
|
1539
|
+
case "w":
|
|
1540
|
+
case "ww": return s.s(t.week(), "w" === e ? 1 : 2, "0");
|
|
1541
|
+
case "W":
|
|
1542
|
+
case "WW": return s.s(t.isoWeek(), "W" === e ? 1 : 2, "0");
|
|
1543
|
+
case "k":
|
|
1544
|
+
case "kk": return s.s(String(0 === t.$H ? 24 : t.$H), "k" === e ? 1 : 2, "0");
|
|
1545
|
+
case "X": return Math.floor(t.$d.getTime() / 1e3);
|
|
1546
|
+
case "x": return t.$d.getTime();
|
|
1547
|
+
case "z": return "[" + t.offsetName() + "]";
|
|
1548
|
+
case "zzz": return "[" + t.offsetName("long") + "]";
|
|
1549
|
+
default: return e;
|
|
1550
|
+
}
|
|
1551
|
+
}));
|
|
1552
|
+
return n.bind(this)(a);
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
}));
|
|
1556
|
+
}));
|
|
1557
|
+
|
|
1558
|
+
//#endregion
|
|
1559
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/duration.js
|
|
1560
|
+
var require_duration = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1561
|
+
(function(t, s) {
|
|
1562
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = s() : "function" == typeof define && define.amd ? define(s) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_duration = s();
|
|
1563
|
+
})(exports, (function() {
|
|
1564
|
+
"use strict";
|
|
1565
|
+
var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = 31536e6, u = 2628e6, d = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, a = /\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g, h = {
|
|
1566
|
+
years: o,
|
|
1567
|
+
months: u,
|
|
1568
|
+
days: r,
|
|
1569
|
+
hours: e,
|
|
1570
|
+
minutes: i,
|
|
1571
|
+
seconds: n,
|
|
1572
|
+
milliseconds: 1,
|
|
1573
|
+
weeks: 6048e5
|
|
1574
|
+
}, c = function(t) {
|
|
1575
|
+
return t instanceof g;
|
|
1576
|
+
}, f = function(t, s, n) {
|
|
1577
|
+
return new g(t, n, s.$l);
|
|
1578
|
+
}, m = function(t) {
|
|
1579
|
+
return s.p(t) + "s";
|
|
1580
|
+
}, l = function(t) {
|
|
1581
|
+
return t < 0;
|
|
1582
|
+
}, $ = function(t) {
|
|
1583
|
+
return l(t) ? Math.ceil(t) : Math.floor(t);
|
|
1584
|
+
}, y = function(t) {
|
|
1585
|
+
return Math.abs(t);
|
|
1586
|
+
}, v = function(t, s) {
|
|
1587
|
+
return t ? l(t) ? {
|
|
1588
|
+
negative: !0,
|
|
1589
|
+
format: "" + y(t) + s
|
|
1590
|
+
} : {
|
|
1591
|
+
negative: !1,
|
|
1592
|
+
format: "" + t + s
|
|
1593
|
+
} : {
|
|
1594
|
+
negative: !1,
|
|
1595
|
+
format: ""
|
|
1596
|
+
};
|
|
1597
|
+
}, g = function() {
|
|
1598
|
+
function l(t, s, n) {
|
|
1599
|
+
var i = this;
|
|
1600
|
+
if (this.$d = {}, this.$l = n, void 0 === t && (this.$ms = 0, this.parseFromMilliseconds()), s) return f(t * h[m(s)], this);
|
|
1601
|
+
if ("number" == typeof t) return this.$ms = t, this.parseFromMilliseconds(), this;
|
|
1602
|
+
if ("object" == typeof t) return Object.keys(t).forEach((function(s) {
|
|
1603
|
+
i.$d[m(s)] = t[s];
|
|
1604
|
+
})), this.calMilliseconds(), this;
|
|
1605
|
+
if ("string" == typeof t) {
|
|
1606
|
+
var e = t.match(d);
|
|
1607
|
+
if (e) {
|
|
1608
|
+
var r = e.slice(2).map((function(t) {
|
|
1609
|
+
return null != t ? Number(t) : 0;
|
|
1610
|
+
}));
|
|
1611
|
+
return this.$d.years = r[0], this.$d.months = r[1], this.$d.weeks = r[2], this.$d.days = r[3], this.$d.hours = r[4], this.$d.minutes = r[5], this.$d.seconds = r[6], this.calMilliseconds(), this;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
return this;
|
|
1615
|
+
}
|
|
1616
|
+
var y = l.prototype;
|
|
1617
|
+
return y.calMilliseconds = function() {
|
|
1618
|
+
var t = this;
|
|
1619
|
+
this.$ms = Object.keys(this.$d).reduce((function(s, n) {
|
|
1620
|
+
return s + (t.$d[n] || 0) * h[n];
|
|
1621
|
+
}), 0);
|
|
1622
|
+
}, y.parseFromMilliseconds = function() {
|
|
1623
|
+
var t = this.$ms;
|
|
1624
|
+
this.$d.years = $(t / o), t %= o, this.$d.months = $(t / u), t %= u, this.$d.days = $(t / r), t %= r, this.$d.hours = $(t / e), t %= e, this.$d.minutes = $(t / i), t %= i, this.$d.seconds = $(t / n), t %= n, this.$d.milliseconds = t;
|
|
1625
|
+
}, y.toISOString = function() {
|
|
1626
|
+
var t = v(this.$d.years, "Y"), s = v(this.$d.months, "M"), n = +this.$d.days || 0;
|
|
1627
|
+
this.$d.weeks && (n += 7 * this.$d.weeks);
|
|
1628
|
+
var i = v(n, "D"), e = v(this.$d.hours, "H"), r = v(this.$d.minutes, "M"), o = this.$d.seconds || 0;
|
|
1629
|
+
this.$d.milliseconds && (o += this.$d.milliseconds / 1e3, o = Math.round(1e3 * o) / 1e3);
|
|
1630
|
+
var u = v(o, "S"), d = t.negative || s.negative || i.negative || e.negative || r.negative || u.negative, a = e.format || r.format || u.format ? "T" : "", h = (d ? "-" : "") + "P" + t.format + s.format + i.format + a + e.format + r.format + u.format;
|
|
1631
|
+
return "P" === h || "-P" === h ? "P0D" : h;
|
|
1632
|
+
}, y.toJSON = function() {
|
|
1633
|
+
return this.toISOString();
|
|
1634
|
+
}, y.format = function(t) {
|
|
1635
|
+
var n = t || "YYYY-MM-DDTHH:mm:ss", i = {
|
|
1636
|
+
Y: this.$d.years,
|
|
1637
|
+
YY: s.s(this.$d.years, 2, "0"),
|
|
1638
|
+
YYYY: s.s(this.$d.years, 4, "0"),
|
|
1639
|
+
M: this.$d.months,
|
|
1640
|
+
MM: s.s(this.$d.months, 2, "0"),
|
|
1641
|
+
D: this.$d.days,
|
|
1642
|
+
DD: s.s(this.$d.days, 2, "0"),
|
|
1643
|
+
H: this.$d.hours,
|
|
1644
|
+
HH: s.s(this.$d.hours, 2, "0"),
|
|
1645
|
+
m: this.$d.minutes,
|
|
1646
|
+
mm: s.s(this.$d.minutes, 2, "0"),
|
|
1647
|
+
s: this.$d.seconds,
|
|
1648
|
+
ss: s.s(this.$d.seconds, 2, "0"),
|
|
1649
|
+
SSS: s.s(this.$d.milliseconds, 3, "0")
|
|
1650
|
+
};
|
|
1651
|
+
return n.replace(a, (function(t, s) {
|
|
1652
|
+
return s || String(i[t]);
|
|
1653
|
+
}));
|
|
1654
|
+
}, y.as = function(t) {
|
|
1655
|
+
return this.$ms / h[m(t)];
|
|
1656
|
+
}, y.get = function(t) {
|
|
1657
|
+
var s = this.$ms, n = m(t);
|
|
1658
|
+
return "milliseconds" === n ? s %= 1e3 : s = "weeks" === n ? $(s / h[n]) : this.$d[n], s || 0;
|
|
1659
|
+
}, y.add = function(t, s, n) {
|
|
1660
|
+
var i;
|
|
1661
|
+
return i = s ? t * h[m(s)] : c(t) ? t.$ms : f(t, this).$ms, f(this.$ms + i * (n ? -1 : 1), this);
|
|
1662
|
+
}, y.subtract = function(t, s) {
|
|
1663
|
+
return this.add(t, s, !0);
|
|
1664
|
+
}, y.locale = function(t) {
|
|
1665
|
+
var s = this.clone();
|
|
1666
|
+
return s.$l = t, s;
|
|
1667
|
+
}, y.clone = function() {
|
|
1668
|
+
return f(this.$ms, this);
|
|
1669
|
+
}, y.humanize = function(s) {
|
|
1670
|
+
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s);
|
|
1671
|
+
}, y.valueOf = function() {
|
|
1672
|
+
return this.asMilliseconds();
|
|
1673
|
+
}, y.milliseconds = function() {
|
|
1674
|
+
return this.get("milliseconds");
|
|
1675
|
+
}, y.asMilliseconds = function() {
|
|
1676
|
+
return this.as("milliseconds");
|
|
1677
|
+
}, y.seconds = function() {
|
|
1678
|
+
return this.get("seconds");
|
|
1679
|
+
}, y.asSeconds = function() {
|
|
1680
|
+
return this.as("seconds");
|
|
1681
|
+
}, y.minutes = function() {
|
|
1682
|
+
return this.get("minutes");
|
|
1683
|
+
}, y.asMinutes = function() {
|
|
1684
|
+
return this.as("minutes");
|
|
1685
|
+
}, y.hours = function() {
|
|
1686
|
+
return this.get("hours");
|
|
1687
|
+
}, y.asHours = function() {
|
|
1688
|
+
return this.as("hours");
|
|
1689
|
+
}, y.days = function() {
|
|
1690
|
+
return this.get("days");
|
|
1691
|
+
}, y.asDays = function() {
|
|
1692
|
+
return this.as("days");
|
|
1693
|
+
}, y.weeks = function() {
|
|
1694
|
+
return this.get("weeks");
|
|
1695
|
+
}, y.asWeeks = function() {
|
|
1696
|
+
return this.as("weeks");
|
|
1697
|
+
}, y.months = function() {
|
|
1698
|
+
return this.get("months");
|
|
1699
|
+
}, y.asMonths = function() {
|
|
1700
|
+
return this.as("months");
|
|
1701
|
+
}, y.years = function() {
|
|
1702
|
+
return this.get("years");
|
|
1703
|
+
}, y.asYears = function() {
|
|
1704
|
+
return this.as("years");
|
|
1705
|
+
}, l;
|
|
1706
|
+
}(), p = function(t, s, n) {
|
|
1707
|
+
return t.add(s.years() * n, "y").add(s.months() * n, "M").add(s.days() * n, "d").add(s.hours() * n, "h").add(s.minutes() * n, "m").add(s.seconds() * n, "s").add(s.milliseconds() * n, "ms");
|
|
1708
|
+
};
|
|
1709
|
+
return function(n, i, e) {
|
|
1710
|
+
t = e, s = e().$utils(), e.duration = function(t, s) {
|
|
1711
|
+
return f(t, { $l: e.locale() }, s);
|
|
1712
|
+
}, e.isDuration = c;
|
|
1713
|
+
var r = i.prototype.add, o = i.prototype.subtract;
|
|
1714
|
+
i.prototype.add = function(t, s) {
|
|
1715
|
+
return c(t) ? p(this, t, 1) : r.bind(this)(t, s);
|
|
1716
|
+
}, i.prototype.subtract = function(t, s) {
|
|
1717
|
+
return c(t) ? p(this, t, -1) : o.bind(this)(t, s);
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
}));
|
|
1721
|
+
}));
|
|
1722
|
+
|
|
1723
|
+
//#endregion
|
|
1724
|
+
//#region ../../node_modules/.pnpm/mermaid@12.0.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-FUAMR5RP.mjs
|
|
1725
|
+
var import_dist = require_dist();
|
|
1726
|
+
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
|
|
1727
|
+
var import_isoWeek = /* @__PURE__ */ __toESM(require_isoWeek(), 1);
|
|
1728
|
+
var import_customParseFormat = /* @__PURE__ */ __toESM(require_customParseFormat(), 1);
|
|
1729
|
+
var import_advancedFormat = /* @__PURE__ */ __toESM(require_advancedFormat(), 1);
|
|
1730
|
+
var import_duration = /* @__PURE__ */ __toESM(require_duration(), 1);
|
|
1731
|
+
var parser = (function() {
|
|
1732
|
+
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
1733
|
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v);
|
|
1734
|
+
return o2;
|
|
1735
|
+
}, "o"), $V0 = [
|
|
1736
|
+
6,
|
|
1737
|
+
8,
|
|
1738
|
+
10,
|
|
1739
|
+
12,
|
|
1740
|
+
13,
|
|
1741
|
+
14,
|
|
1742
|
+
15,
|
|
1743
|
+
16,
|
|
1744
|
+
17,
|
|
1745
|
+
18,
|
|
1746
|
+
20,
|
|
1747
|
+
21,
|
|
1748
|
+
22,
|
|
1749
|
+
23,
|
|
1750
|
+
24,
|
|
1751
|
+
25,
|
|
1752
|
+
26,
|
|
1753
|
+
27,
|
|
1754
|
+
28,
|
|
1755
|
+
29,
|
|
1756
|
+
30,
|
|
1757
|
+
31,
|
|
1758
|
+
33,
|
|
1759
|
+
35,
|
|
1760
|
+
36,
|
|
1761
|
+
38,
|
|
1762
|
+
40
|
|
1763
|
+
], $V1 = [1, 26], $V2 = [1, 27], $V3 = [1, 28], $V4 = [1, 29], $V5 = [1, 30], $V6 = [1, 31], $V7 = [1, 32], $V8 = [1, 33], $V9 = [1, 34], $Va = [1, 9], $Vb = [1, 10], $Vc = [1, 11], $Vd = [1, 12], $Ve = [1, 13], $Vf = [1, 14], $Vg = [1, 15], $Vh = [1, 16], $Vi = [1, 19], $Vj = [1, 20], $Vk = [1, 21], $Vl = [1, 22], $Vm = [1, 23], $Vn = [1, 25], $Vo = [1, 35];
|
|
1764
|
+
var parser2 = {
|
|
1765
|
+
trace: /* @__PURE__ */ __name(function trace() {}, "trace"),
|
|
1766
|
+
yy: {},
|
|
1767
|
+
symbols_: {
|
|
1768
|
+
"error": 2,
|
|
1769
|
+
"start": 3,
|
|
1770
|
+
"gantt": 4,
|
|
1771
|
+
"document": 5,
|
|
1772
|
+
"EOF": 6,
|
|
1773
|
+
"line": 7,
|
|
1774
|
+
"SPACE": 8,
|
|
1775
|
+
"statement": 9,
|
|
1776
|
+
"NL": 10,
|
|
1777
|
+
"weekday": 11,
|
|
1778
|
+
"weekday_monday": 12,
|
|
1779
|
+
"weekday_tuesday": 13,
|
|
1780
|
+
"weekday_wednesday": 14,
|
|
1781
|
+
"weekday_thursday": 15,
|
|
1782
|
+
"weekday_friday": 16,
|
|
1783
|
+
"weekday_saturday": 17,
|
|
1784
|
+
"weekday_sunday": 18,
|
|
1785
|
+
"weekend": 19,
|
|
1786
|
+
"weekend_friday": 20,
|
|
1787
|
+
"weekend_saturday": 21,
|
|
1788
|
+
"dateFormat": 22,
|
|
1789
|
+
"inclusiveEndDates": 23,
|
|
1790
|
+
"topAxis": 24,
|
|
1791
|
+
"axisFormat": 25,
|
|
1792
|
+
"tickInterval": 26,
|
|
1793
|
+
"excludes": 27,
|
|
1794
|
+
"includes": 28,
|
|
1795
|
+
"todayMarker": 29,
|
|
1796
|
+
"title": 30,
|
|
1797
|
+
"acc_title": 31,
|
|
1798
|
+
"acc_title_value": 32,
|
|
1799
|
+
"acc_descr": 33,
|
|
1800
|
+
"acc_descr_value": 34,
|
|
1801
|
+
"acc_descr_multiline_value": 35,
|
|
1802
|
+
"section": 36,
|
|
1803
|
+
"clickStatement": 37,
|
|
1804
|
+
"taskTxt": 38,
|
|
1805
|
+
"taskData": 39,
|
|
1806
|
+
"click": 40,
|
|
1807
|
+
"callbackname": 41,
|
|
1808
|
+
"callbackargs": 42,
|
|
1809
|
+
"href": 43,
|
|
1810
|
+
"clickStatementDebug": 44,
|
|
1811
|
+
"$accept": 0,
|
|
1812
|
+
"$end": 1
|
|
1813
|
+
},
|
|
1814
|
+
terminals_: {
|
|
1815
|
+
2: "error",
|
|
1816
|
+
4: "gantt",
|
|
1817
|
+
6: "EOF",
|
|
1818
|
+
8: "SPACE",
|
|
1819
|
+
10: "NL",
|
|
1820
|
+
12: "weekday_monday",
|
|
1821
|
+
13: "weekday_tuesday",
|
|
1822
|
+
14: "weekday_wednesday",
|
|
1823
|
+
15: "weekday_thursday",
|
|
1824
|
+
16: "weekday_friday",
|
|
1825
|
+
17: "weekday_saturday",
|
|
1826
|
+
18: "weekday_sunday",
|
|
1827
|
+
20: "weekend_friday",
|
|
1828
|
+
21: "weekend_saturday",
|
|
1829
|
+
22: "dateFormat",
|
|
1830
|
+
23: "inclusiveEndDates",
|
|
1831
|
+
24: "topAxis",
|
|
1832
|
+
25: "axisFormat",
|
|
1833
|
+
26: "tickInterval",
|
|
1834
|
+
27: "excludes",
|
|
1835
|
+
28: "includes",
|
|
1836
|
+
29: "todayMarker",
|
|
1837
|
+
30: "title",
|
|
1838
|
+
31: "acc_title",
|
|
1839
|
+
32: "acc_title_value",
|
|
1840
|
+
33: "acc_descr",
|
|
1841
|
+
34: "acc_descr_value",
|
|
1842
|
+
35: "acc_descr_multiline_value",
|
|
1843
|
+
36: "section",
|
|
1844
|
+
38: "taskTxt",
|
|
1845
|
+
39: "taskData",
|
|
1846
|
+
40: "click",
|
|
1847
|
+
41: "callbackname",
|
|
1848
|
+
42: "callbackargs",
|
|
1849
|
+
43: "href"
|
|
1850
|
+
},
|
|
1851
|
+
productions_: [
|
|
1852
|
+
0,
|
|
1853
|
+
[3, 3],
|
|
1854
|
+
[5, 0],
|
|
1855
|
+
[5, 2],
|
|
1856
|
+
[7, 2],
|
|
1857
|
+
[7, 1],
|
|
1858
|
+
[7, 1],
|
|
1859
|
+
[7, 1],
|
|
1860
|
+
[11, 1],
|
|
1861
|
+
[11, 1],
|
|
1862
|
+
[11, 1],
|
|
1863
|
+
[11, 1],
|
|
1864
|
+
[11, 1],
|
|
1865
|
+
[11, 1],
|
|
1866
|
+
[11, 1],
|
|
1867
|
+
[19, 1],
|
|
1868
|
+
[19, 1],
|
|
1869
|
+
[9, 1],
|
|
1870
|
+
[9, 1],
|
|
1871
|
+
[9, 1],
|
|
1872
|
+
[9, 1],
|
|
1873
|
+
[9, 1],
|
|
1874
|
+
[9, 1],
|
|
1875
|
+
[9, 1],
|
|
1876
|
+
[9, 1],
|
|
1877
|
+
[9, 1],
|
|
1878
|
+
[9, 1],
|
|
1879
|
+
[9, 1],
|
|
1880
|
+
[9, 2],
|
|
1881
|
+
[9, 2],
|
|
1882
|
+
[9, 1],
|
|
1883
|
+
[9, 1],
|
|
1884
|
+
[9, 1],
|
|
1885
|
+
[9, 2],
|
|
1886
|
+
[37, 2],
|
|
1887
|
+
[37, 3],
|
|
1888
|
+
[37, 3],
|
|
1889
|
+
[37, 4],
|
|
1890
|
+
[37, 3],
|
|
1891
|
+
[37, 4],
|
|
1892
|
+
[37, 2],
|
|
1893
|
+
[44, 2],
|
|
1894
|
+
[44, 3],
|
|
1895
|
+
[44, 3],
|
|
1896
|
+
[44, 4],
|
|
1897
|
+
[44, 3],
|
|
1898
|
+
[44, 4],
|
|
1899
|
+
[44, 2]
|
|
1900
|
+
],
|
|
1901
|
+
performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
1902
|
+
var $0 = $$.length - 1;
|
|
1903
|
+
switch (yystate) {
|
|
1904
|
+
case 1: return $$[$0 - 1];
|
|
1905
|
+
case 2:
|
|
1906
|
+
this.$ = [];
|
|
1907
|
+
break;
|
|
1908
|
+
case 3:
|
|
1909
|
+
$$[$0 - 1].push($$[$0]);
|
|
1910
|
+
this.$ = $$[$0 - 1];
|
|
1911
|
+
break;
|
|
1912
|
+
case 4:
|
|
1913
|
+
case 5:
|
|
1914
|
+
this.$ = $$[$0];
|
|
1915
|
+
break;
|
|
1916
|
+
case 6:
|
|
1917
|
+
case 7:
|
|
1918
|
+
this.$ = [];
|
|
1919
|
+
break;
|
|
1920
|
+
case 8:
|
|
1921
|
+
yy.setWeekday("monday");
|
|
1922
|
+
break;
|
|
1923
|
+
case 9:
|
|
1924
|
+
yy.setWeekday("tuesday");
|
|
1925
|
+
break;
|
|
1926
|
+
case 10:
|
|
1927
|
+
yy.setWeekday("wednesday");
|
|
1928
|
+
break;
|
|
1929
|
+
case 11:
|
|
1930
|
+
yy.setWeekday("thursday");
|
|
1931
|
+
break;
|
|
1932
|
+
case 12:
|
|
1933
|
+
yy.setWeekday("friday");
|
|
1934
|
+
break;
|
|
1935
|
+
case 13:
|
|
1936
|
+
yy.setWeekday("saturday");
|
|
1937
|
+
break;
|
|
1938
|
+
case 14:
|
|
1939
|
+
yy.setWeekday("sunday");
|
|
1940
|
+
break;
|
|
1941
|
+
case 15:
|
|
1942
|
+
yy.setWeekend("friday");
|
|
1943
|
+
break;
|
|
1944
|
+
case 16:
|
|
1945
|
+
yy.setWeekend("saturday");
|
|
1946
|
+
break;
|
|
1947
|
+
case 17:
|
|
1948
|
+
yy.setDateFormat($$[$0].substr(11));
|
|
1949
|
+
this.$ = $$[$0].substr(11);
|
|
1950
|
+
break;
|
|
1951
|
+
case 18:
|
|
1952
|
+
yy.enableInclusiveEndDates();
|
|
1953
|
+
this.$ = $$[$0].substr(18);
|
|
1954
|
+
break;
|
|
1955
|
+
case 19:
|
|
1956
|
+
yy.TopAxis();
|
|
1957
|
+
this.$ = $$[$0].substr(8);
|
|
1958
|
+
break;
|
|
1959
|
+
case 20:
|
|
1960
|
+
yy.setAxisFormat($$[$0].substr(11));
|
|
1961
|
+
this.$ = $$[$0].substr(11);
|
|
1962
|
+
break;
|
|
1963
|
+
case 21:
|
|
1964
|
+
yy.setTickInterval($$[$0].substr(13));
|
|
1965
|
+
this.$ = $$[$0].substr(13);
|
|
1966
|
+
break;
|
|
1967
|
+
case 22:
|
|
1968
|
+
yy.setExcludes($$[$0].substr(9));
|
|
1969
|
+
this.$ = $$[$0].substr(9);
|
|
1970
|
+
break;
|
|
1971
|
+
case 23:
|
|
1972
|
+
yy.setIncludes($$[$0].substr(9));
|
|
1973
|
+
this.$ = $$[$0].substr(9);
|
|
1974
|
+
break;
|
|
1975
|
+
case 24:
|
|
1976
|
+
yy.setTodayMarker($$[$0].substr(12));
|
|
1977
|
+
this.$ = $$[$0].substr(12);
|
|
1978
|
+
break;
|
|
1979
|
+
case 27:
|
|
1980
|
+
yy.setDiagramTitle($$[$0].substr(6));
|
|
1981
|
+
this.$ = $$[$0].substr(6);
|
|
1982
|
+
break;
|
|
1983
|
+
case 28:
|
|
1984
|
+
this.$ = $$[$0].trim();
|
|
1985
|
+
yy.setAccTitle(this.$);
|
|
1986
|
+
break;
|
|
1987
|
+
case 29:
|
|
1988
|
+
case 30:
|
|
1989
|
+
this.$ = $$[$0].trim();
|
|
1990
|
+
yy.setAccDescription(this.$);
|
|
1991
|
+
break;
|
|
1992
|
+
case 31:
|
|
1993
|
+
yy.addSection($$[$0].substr(8));
|
|
1994
|
+
this.$ = $$[$0].substr(8);
|
|
1995
|
+
break;
|
|
1996
|
+
case 33:
|
|
1997
|
+
yy.addTask($$[$0 - 1], $$[$0]);
|
|
1998
|
+
this.$ = "task";
|
|
1999
|
+
break;
|
|
2000
|
+
case 34:
|
|
2001
|
+
this.$ = $$[$0 - 1];
|
|
2002
|
+
yy.setClickEvent($$[$0 - 1], $$[$0], null);
|
|
2003
|
+
break;
|
|
2004
|
+
case 35:
|
|
2005
|
+
this.$ = $$[$0 - 2];
|
|
2006
|
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
|
|
2007
|
+
break;
|
|
2008
|
+
case 36:
|
|
2009
|
+
this.$ = $$[$0 - 2];
|
|
2010
|
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1], null);
|
|
2011
|
+
yy.setLink($$[$0 - 2], $$[$0]);
|
|
2012
|
+
break;
|
|
2013
|
+
case 37:
|
|
2014
|
+
this.$ = $$[$0 - 3];
|
|
2015
|
+
yy.setClickEvent($$[$0 - 3], $$[$0 - 2], $$[$0 - 1]);
|
|
2016
|
+
yy.setLink($$[$0 - 3], $$[$0]);
|
|
2017
|
+
break;
|
|
2018
|
+
case 38:
|
|
2019
|
+
this.$ = $$[$0 - 2];
|
|
2020
|
+
yy.setClickEvent($$[$0 - 2], $$[$0], null);
|
|
2021
|
+
yy.setLink($$[$0 - 2], $$[$0 - 1]);
|
|
2022
|
+
break;
|
|
2023
|
+
case 39:
|
|
2024
|
+
this.$ = $$[$0 - 3];
|
|
2025
|
+
yy.setClickEvent($$[$0 - 3], $$[$0 - 1], $$[$0]);
|
|
2026
|
+
yy.setLink($$[$0 - 3], $$[$0 - 2]);
|
|
2027
|
+
break;
|
|
2028
|
+
case 40:
|
|
2029
|
+
this.$ = $$[$0 - 1];
|
|
2030
|
+
yy.setLink($$[$0 - 1], $$[$0]);
|
|
2031
|
+
break;
|
|
2032
|
+
case 41:
|
|
2033
|
+
case 47:
|
|
2034
|
+
this.$ = $$[$0 - 1] + " " + $$[$0];
|
|
2035
|
+
break;
|
|
2036
|
+
case 42:
|
|
2037
|
+
case 43:
|
|
2038
|
+
case 45:
|
|
2039
|
+
this.$ = $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
|
|
2040
|
+
break;
|
|
2041
|
+
case 44:
|
|
2042
|
+
case 46:
|
|
2043
|
+
this.$ = $$[$0 - 3] + " " + $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
|
|
2044
|
+
break;
|
|
2045
|
+
}
|
|
2046
|
+
}, "anonymous"),
|
|
2047
|
+
table: [
|
|
2048
|
+
{
|
|
2049
|
+
3: 1,
|
|
2050
|
+
4: [1, 2]
|
|
2051
|
+
},
|
|
2052
|
+
{ 1: [3] },
|
|
2053
|
+
o($V0, [2, 2], { 5: 3 }),
|
|
2054
|
+
{
|
|
2055
|
+
6: [1, 4],
|
|
2056
|
+
7: 5,
|
|
2057
|
+
8: [1, 6],
|
|
2058
|
+
9: 7,
|
|
2059
|
+
10: [1, 8],
|
|
2060
|
+
11: 17,
|
|
2061
|
+
12: $V1,
|
|
2062
|
+
13: $V2,
|
|
2063
|
+
14: $V3,
|
|
2064
|
+
15: $V4,
|
|
2065
|
+
16: $V5,
|
|
2066
|
+
17: $V6,
|
|
2067
|
+
18: $V7,
|
|
2068
|
+
19: 18,
|
|
2069
|
+
20: $V8,
|
|
2070
|
+
21: $V9,
|
|
2071
|
+
22: $Va,
|
|
2072
|
+
23: $Vb,
|
|
2073
|
+
24: $Vc,
|
|
2074
|
+
25: $Vd,
|
|
2075
|
+
26: $Ve,
|
|
2076
|
+
27: $Vf,
|
|
2077
|
+
28: $Vg,
|
|
2078
|
+
29: $Vh,
|
|
2079
|
+
30: $Vi,
|
|
2080
|
+
31: $Vj,
|
|
2081
|
+
33: $Vk,
|
|
2082
|
+
35: $Vl,
|
|
2083
|
+
36: $Vm,
|
|
2084
|
+
37: 24,
|
|
2085
|
+
38: $Vn,
|
|
2086
|
+
40: $Vo
|
|
2087
|
+
},
|
|
2088
|
+
o($V0, [2, 7], { 1: [2, 1] }),
|
|
2089
|
+
o($V0, [2, 3]),
|
|
2090
|
+
{
|
|
2091
|
+
9: 36,
|
|
2092
|
+
11: 17,
|
|
2093
|
+
12: $V1,
|
|
2094
|
+
13: $V2,
|
|
2095
|
+
14: $V3,
|
|
2096
|
+
15: $V4,
|
|
2097
|
+
16: $V5,
|
|
2098
|
+
17: $V6,
|
|
2099
|
+
18: $V7,
|
|
2100
|
+
19: 18,
|
|
2101
|
+
20: $V8,
|
|
2102
|
+
21: $V9,
|
|
2103
|
+
22: $Va,
|
|
2104
|
+
23: $Vb,
|
|
2105
|
+
24: $Vc,
|
|
2106
|
+
25: $Vd,
|
|
2107
|
+
26: $Ve,
|
|
2108
|
+
27: $Vf,
|
|
2109
|
+
28: $Vg,
|
|
2110
|
+
29: $Vh,
|
|
2111
|
+
30: $Vi,
|
|
2112
|
+
31: $Vj,
|
|
2113
|
+
33: $Vk,
|
|
2114
|
+
35: $Vl,
|
|
2115
|
+
36: $Vm,
|
|
2116
|
+
37: 24,
|
|
2117
|
+
38: $Vn,
|
|
2118
|
+
40: $Vo
|
|
2119
|
+
},
|
|
2120
|
+
o($V0, [2, 5]),
|
|
2121
|
+
o($V0, [2, 6]),
|
|
2122
|
+
o($V0, [2, 17]),
|
|
2123
|
+
o($V0, [2, 18]),
|
|
2124
|
+
o($V0, [2, 19]),
|
|
2125
|
+
o($V0, [2, 20]),
|
|
2126
|
+
o($V0, [2, 21]),
|
|
2127
|
+
o($V0, [2, 22]),
|
|
2128
|
+
o($V0, [2, 23]),
|
|
2129
|
+
o($V0, [2, 24]),
|
|
2130
|
+
o($V0, [2, 25]),
|
|
2131
|
+
o($V0, [2, 26]),
|
|
2132
|
+
o($V0, [2, 27]),
|
|
2133
|
+
{ 32: [1, 37] },
|
|
2134
|
+
{ 34: [1, 38] },
|
|
2135
|
+
o($V0, [2, 30]),
|
|
2136
|
+
o($V0, [2, 31]),
|
|
2137
|
+
o($V0, [2, 32]),
|
|
2138
|
+
{ 39: [1, 39] },
|
|
2139
|
+
o($V0, [2, 8]),
|
|
2140
|
+
o($V0, [2, 9]),
|
|
2141
|
+
o($V0, [2, 10]),
|
|
2142
|
+
o($V0, [2, 11]),
|
|
2143
|
+
o($V0, [2, 12]),
|
|
2144
|
+
o($V0, [2, 13]),
|
|
2145
|
+
o($V0, [2, 14]),
|
|
2146
|
+
o($V0, [2, 15]),
|
|
2147
|
+
o($V0, [2, 16]),
|
|
2148
|
+
{
|
|
2149
|
+
41: [1, 40],
|
|
2150
|
+
43: [1, 41]
|
|
2151
|
+
},
|
|
2152
|
+
o($V0, [2, 4]),
|
|
2153
|
+
o($V0, [2, 28]),
|
|
2154
|
+
o($V0, [2, 29]),
|
|
2155
|
+
o($V0, [2, 33]),
|
|
2156
|
+
o($V0, [2, 34], {
|
|
2157
|
+
42: [1, 42],
|
|
2158
|
+
43: [1, 43]
|
|
2159
|
+
}),
|
|
2160
|
+
o($V0, [2, 40], { 41: [1, 44] }),
|
|
2161
|
+
o($V0, [2, 35], { 43: [1, 45] }),
|
|
2162
|
+
o($V0, [2, 36]),
|
|
2163
|
+
o($V0, [2, 38], { 42: [1, 46] }),
|
|
2164
|
+
o($V0, [2, 37]),
|
|
2165
|
+
o($V0, [2, 39])
|
|
2166
|
+
],
|
|
2167
|
+
defaultActions: {},
|
|
2168
|
+
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
2169
|
+
if (hash.recoverable) this.trace(str);
|
|
2170
|
+
else {
|
|
2171
|
+
var error = new Error(str);
|
|
2172
|
+
error.hash = hash;
|
|
2173
|
+
throw error;
|
|
2174
|
+
}
|
|
2175
|
+
}, "parseError"),
|
|
2176
|
+
parse: /* @__PURE__ */ __name(function parse(input) {
|
|
2177
|
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
2178
|
+
var args = lstack.slice.call(arguments, 1);
|
|
2179
|
+
var lexer2 = Object.create(this.lexer);
|
|
2180
|
+
var sharedState = { yy: {} };
|
|
2181
|
+
for (var k in this.yy) if (Object.prototype.hasOwnProperty.call(this.yy, k)) sharedState.yy[k] = this.yy[k];
|
|
2182
|
+
lexer2.setInput(input, sharedState.yy);
|
|
2183
|
+
sharedState.yy.lexer = lexer2;
|
|
2184
|
+
sharedState.yy.parser = this;
|
|
2185
|
+
if (typeof lexer2.yylloc == "undefined") lexer2.yylloc = {};
|
|
2186
|
+
var yyloc = lexer2.yylloc;
|
|
2187
|
+
lstack.push(yyloc);
|
|
2188
|
+
var ranges = lexer2.options && lexer2.options.ranges;
|
|
2189
|
+
if (typeof sharedState.yy.parseError === "function") this.parseError = sharedState.yy.parseError;
|
|
2190
|
+
else this.parseError = Object.getPrototypeOf(this).parseError;
|
|
2191
|
+
function popStack(n) {
|
|
2192
|
+
stack.length = stack.length - 2 * n;
|
|
2193
|
+
vstack.length = vstack.length - n;
|
|
2194
|
+
lstack.length = lstack.length - n;
|
|
2195
|
+
}
|
|
2196
|
+
__name(popStack, "popStack");
|
|
2197
|
+
function lex() {
|
|
2198
|
+
var token = tstack.pop() || lexer2.lex() || EOF;
|
|
2199
|
+
if (typeof token !== "number") {
|
|
2200
|
+
if (token instanceof Array) {
|
|
2201
|
+
tstack = token;
|
|
2202
|
+
token = tstack.pop();
|
|
2203
|
+
}
|
|
2204
|
+
token = self.symbols_[token] || token;
|
|
2205
|
+
}
|
|
2206
|
+
return token;
|
|
2207
|
+
}
|
|
2208
|
+
__name(lex, "lex");
|
|
2209
|
+
var symbol, preErrorSymbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
2210
|
+
while (true) {
|
|
2211
|
+
state = stack[stack.length - 1];
|
|
2212
|
+
if (this.defaultActions[state]) action = this.defaultActions[state];
|
|
2213
|
+
else {
|
|
2214
|
+
if (symbol === null || typeof symbol == "undefined") symbol = lex();
|
|
2215
|
+
action = table[state] && table[state][symbol];
|
|
2216
|
+
}
|
|
2217
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
2218
|
+
var errStr = "";
|
|
2219
|
+
expected = [];
|
|
2220
|
+
for (p in table[state]) if (this.terminals_[p] && p > TERROR) expected.push("'" + this.terminals_[p] + "'");
|
|
2221
|
+
if (lexer2.showPosition) errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
2222
|
+
else errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
2223
|
+
this.parseError(errStr, {
|
|
2224
|
+
text: lexer2.match,
|
|
2225
|
+
token: this.terminals_[symbol] || symbol,
|
|
2226
|
+
line: lexer2.yylineno,
|
|
2227
|
+
loc: yyloc,
|
|
2228
|
+
expected
|
|
2229
|
+
});
|
|
2230
|
+
}
|
|
2231
|
+
if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
2232
|
+
switch (action[0]) {
|
|
2233
|
+
case 1:
|
|
2234
|
+
stack.push(symbol);
|
|
2235
|
+
vstack.push(lexer2.yytext);
|
|
2236
|
+
lstack.push(lexer2.yylloc);
|
|
2237
|
+
stack.push(action[1]);
|
|
2238
|
+
symbol = null;
|
|
2239
|
+
if (!preErrorSymbol) {
|
|
2240
|
+
yyleng = lexer2.yyleng;
|
|
2241
|
+
yytext = lexer2.yytext;
|
|
2242
|
+
yylineno = lexer2.yylineno;
|
|
2243
|
+
yyloc = lexer2.yylloc;
|
|
2244
|
+
if (recovering > 0) recovering--;
|
|
2245
|
+
} else {
|
|
2246
|
+
symbol = preErrorSymbol;
|
|
2247
|
+
preErrorSymbol = null;
|
|
2248
|
+
}
|
|
2249
|
+
break;
|
|
2250
|
+
case 2:
|
|
2251
|
+
len = this.productions_[action[1]][1];
|
|
2252
|
+
yyval.$ = vstack[vstack.length - len];
|
|
2253
|
+
yyval._$ = {
|
|
2254
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
2255
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
2256
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
2257
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
2258
|
+
};
|
|
2259
|
+
if (ranges) yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
|
2260
|
+
r = this.performAction.apply(yyval, [
|
|
2261
|
+
yytext,
|
|
2262
|
+
yyleng,
|
|
2263
|
+
yylineno,
|
|
2264
|
+
sharedState.yy,
|
|
2265
|
+
action[1],
|
|
2266
|
+
vstack,
|
|
2267
|
+
lstack
|
|
2268
|
+
].concat(args));
|
|
2269
|
+
if (typeof r !== "undefined") return r;
|
|
2270
|
+
if (len) {
|
|
2271
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
2272
|
+
vstack = vstack.slice(0, -1 * len);
|
|
2273
|
+
lstack = lstack.slice(0, -1 * len);
|
|
2274
|
+
}
|
|
2275
|
+
stack.push(this.productions_[action[1]][0]);
|
|
2276
|
+
vstack.push(yyval.$);
|
|
2277
|
+
lstack.push(yyval._$);
|
|
2278
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
2279
|
+
stack.push(newState);
|
|
2280
|
+
break;
|
|
2281
|
+
case 3: return true;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
return true;
|
|
2285
|
+
}, "parse")
|
|
2286
|
+
};
|
|
2287
|
+
parser2.lexer = /* @__PURE__ */ (function() {
|
|
2288
|
+
return {
|
|
2289
|
+
EOF: 1,
|
|
2290
|
+
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
2291
|
+
if (this.yy.parser) this.yy.parser.parseError(str, hash);
|
|
2292
|
+
else throw new Error(str);
|
|
2293
|
+
}, "parseError"),
|
|
2294
|
+
setInput: /* @__PURE__ */ __name(function(input, yy) {
|
|
2295
|
+
this.yy = yy || this.yy || {};
|
|
2296
|
+
this._input = input;
|
|
2297
|
+
this._more = this._backtrack = this.done = false;
|
|
2298
|
+
this.yylineno = this.yyleng = 0;
|
|
2299
|
+
this.yytext = this.matched = this.match = "";
|
|
2300
|
+
this.conditionStack = ["INITIAL"];
|
|
2301
|
+
this.yylloc = {
|
|
2302
|
+
first_line: 1,
|
|
2303
|
+
first_column: 0,
|
|
2304
|
+
last_line: 1,
|
|
2305
|
+
last_column: 0
|
|
2306
|
+
};
|
|
2307
|
+
if (this.options.ranges) this.yylloc.range = [0, 0];
|
|
2308
|
+
this.offset = 0;
|
|
2309
|
+
return this;
|
|
2310
|
+
}, "setInput"),
|
|
2311
|
+
input: /* @__PURE__ */ __name(function() {
|
|
2312
|
+
var ch = this._input[0];
|
|
2313
|
+
this.yytext += ch;
|
|
2314
|
+
this.yyleng++;
|
|
2315
|
+
this.offset++;
|
|
2316
|
+
this.match += ch;
|
|
2317
|
+
this.matched += ch;
|
|
2318
|
+
if (ch.match(/(?:\r\n?|\n).*/g)) {
|
|
2319
|
+
this.yylineno++;
|
|
2320
|
+
this.yylloc.last_line++;
|
|
2321
|
+
} else this.yylloc.last_column++;
|
|
2322
|
+
if (this.options.ranges) this.yylloc.range[1]++;
|
|
2323
|
+
this._input = this._input.slice(1);
|
|
2324
|
+
return ch;
|
|
2325
|
+
}, "input"),
|
|
2326
|
+
unput: /* @__PURE__ */ __name(function(ch) {
|
|
2327
|
+
var len = ch.length;
|
|
2328
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
2329
|
+
this._input = ch + this._input;
|
|
2330
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
2331
|
+
this.offset -= len;
|
|
2332
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
2333
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
2334
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
2335
|
+
if (lines.length - 1) this.yylineno -= lines.length - 1;
|
|
2336
|
+
var r = this.yylloc.range;
|
|
2337
|
+
this.yylloc = {
|
|
2338
|
+
first_line: this.yylloc.first_line,
|
|
2339
|
+
last_line: this.yylineno + 1,
|
|
2340
|
+
first_column: this.yylloc.first_column,
|
|
2341
|
+
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
2342
|
+
};
|
|
2343
|
+
if (this.options.ranges) this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
2344
|
+
this.yyleng = this.yytext.length;
|
|
2345
|
+
return this;
|
|
2346
|
+
}, "unput"),
|
|
2347
|
+
more: /* @__PURE__ */ __name(function() {
|
|
2348
|
+
this._more = true;
|
|
2349
|
+
return this;
|
|
2350
|
+
}, "more"),
|
|
2351
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
2352
|
+
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
2353
|
+
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(), {
|
|
2354
|
+
text: "",
|
|
2355
|
+
token: null,
|
|
2356
|
+
line: this.yylineno
|
|
2357
|
+
});
|
|
2358
|
+
return this;
|
|
2359
|
+
}, "reject"),
|
|
2360
|
+
less: /* @__PURE__ */ __name(function(n) {
|
|
2361
|
+
this.unput(this.match.slice(n));
|
|
2362
|
+
}, "less"),
|
|
2363
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
2364
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
2365
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
2366
|
+
}, "pastInput"),
|
|
2367
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
2368
|
+
var next = this.match;
|
|
2369
|
+
if (next.length < 20) next += this._input.substr(0, 20 - next.length);
|
|
2370
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
2371
|
+
}, "upcomingInput"),
|
|
2372
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
2373
|
+
var pre = this.pastInput();
|
|
2374
|
+
var c = new Array(pre.length + 1).join("-");
|
|
2375
|
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
2376
|
+
}, "showPosition"),
|
|
2377
|
+
test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
|
|
2378
|
+
var token, lines, backup;
|
|
2379
|
+
if (this.options.backtrack_lexer) {
|
|
2380
|
+
backup = {
|
|
2381
|
+
yylineno: this.yylineno,
|
|
2382
|
+
yylloc: {
|
|
2383
|
+
first_line: this.yylloc.first_line,
|
|
2384
|
+
last_line: this.last_line,
|
|
2385
|
+
first_column: this.yylloc.first_column,
|
|
2386
|
+
last_column: this.yylloc.last_column
|
|
2387
|
+
},
|
|
2388
|
+
yytext: this.yytext,
|
|
2389
|
+
match: this.match,
|
|
2390
|
+
matches: this.matches,
|
|
2391
|
+
matched: this.matched,
|
|
2392
|
+
yyleng: this.yyleng,
|
|
2393
|
+
offset: this.offset,
|
|
2394
|
+
_more: this._more,
|
|
2395
|
+
_input: this._input,
|
|
2396
|
+
yy: this.yy,
|
|
2397
|
+
conditionStack: this.conditionStack.slice(0),
|
|
2398
|
+
done: this.done
|
|
2399
|
+
};
|
|
2400
|
+
if (this.options.ranges) backup.yylloc.range = this.yylloc.range.slice(0);
|
|
2401
|
+
}
|
|
2402
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
2403
|
+
if (lines) this.yylineno += lines.length;
|
|
2404
|
+
this.yylloc = {
|
|
2405
|
+
first_line: this.yylloc.last_line,
|
|
2406
|
+
last_line: this.yylineno + 1,
|
|
2407
|
+
first_column: this.yylloc.last_column,
|
|
2408
|
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
2409
|
+
};
|
|
2410
|
+
this.yytext += match[0];
|
|
2411
|
+
this.match += match[0];
|
|
2412
|
+
this.matches = match;
|
|
2413
|
+
this.yyleng = this.yytext.length;
|
|
2414
|
+
if (this.options.ranges) this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
2415
|
+
this._more = false;
|
|
2416
|
+
this._backtrack = false;
|
|
2417
|
+
this._input = this._input.slice(match[0].length);
|
|
2418
|
+
this.matched += match[0];
|
|
2419
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
2420
|
+
if (this.done && this._input) this.done = false;
|
|
2421
|
+
if (token) return token;
|
|
2422
|
+
else if (this._backtrack) {
|
|
2423
|
+
for (var k in backup) this[k] = backup[k];
|
|
2424
|
+
return false;
|
|
2425
|
+
}
|
|
2426
|
+
return false;
|
|
2427
|
+
}, "test_match"),
|
|
2428
|
+
next: /* @__PURE__ */ __name(function() {
|
|
2429
|
+
if (this.done) return this.EOF;
|
|
2430
|
+
if (!this._input) this.done = true;
|
|
2431
|
+
var token, match, tempMatch, index;
|
|
2432
|
+
if (!this._more) {
|
|
2433
|
+
this.yytext = "";
|
|
2434
|
+
this.match = "";
|
|
2435
|
+
}
|
|
2436
|
+
var rules = this._currentRules();
|
|
2437
|
+
for (var i = 0; i < rules.length; i++) {
|
|
2438
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
2439
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
2440
|
+
match = tempMatch;
|
|
2441
|
+
index = i;
|
|
2442
|
+
if (this.options.backtrack_lexer) {
|
|
2443
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
2444
|
+
if (token !== false) return token;
|
|
2445
|
+
else if (this._backtrack) {
|
|
2446
|
+
match = false;
|
|
2447
|
+
continue;
|
|
2448
|
+
} else return false;
|
|
2449
|
+
} else if (!this.options.flex) break;
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
if (match) {
|
|
2453
|
+
token = this.test_match(match, rules[index]);
|
|
2454
|
+
if (token !== false) return token;
|
|
2455
|
+
return false;
|
|
2456
|
+
}
|
|
2457
|
+
if (this._input === "") return this.EOF;
|
|
2458
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
2459
|
+
text: "",
|
|
2460
|
+
token: null,
|
|
2461
|
+
line: this.yylineno
|
|
2462
|
+
});
|
|
2463
|
+
}, "next"),
|
|
2464
|
+
lex: /* @__PURE__ */ __name(function lex() {
|
|
2465
|
+
var r = this.next();
|
|
2466
|
+
if (r) return r;
|
|
2467
|
+
else return this.lex();
|
|
2468
|
+
}, "lex"),
|
|
2469
|
+
begin: /* @__PURE__ */ __name(function begin(condition) {
|
|
2470
|
+
this.conditionStack.push(condition);
|
|
2471
|
+
}, "begin"),
|
|
2472
|
+
popState: /* @__PURE__ */ __name(function popState() {
|
|
2473
|
+
if (this.conditionStack.length - 1 > 0) return this.conditionStack.pop();
|
|
2474
|
+
else return this.conditionStack[0];
|
|
2475
|
+
}, "popState"),
|
|
2476
|
+
_currentRules: /* @__PURE__ */ __name(function _currentRules() {
|
|
2477
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
2478
|
+
else return this.conditions["INITIAL"].rules;
|
|
2479
|
+
}, "_currentRules"),
|
|
2480
|
+
topState: /* @__PURE__ */ __name(function topState(n) {
|
|
2481
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
2482
|
+
if (n >= 0) return this.conditionStack[n];
|
|
2483
|
+
else return "INITIAL";
|
|
2484
|
+
}, "topState"),
|
|
2485
|
+
pushState: /* @__PURE__ */ __name(function pushState(condition) {
|
|
2486
|
+
this.begin(condition);
|
|
2487
|
+
}, "pushState"),
|
|
2488
|
+
stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
|
|
2489
|
+
return this.conditionStack.length;
|
|
2490
|
+
}, "stateStackSize"),
|
|
2491
|
+
options: { "case-insensitive": true },
|
|
2492
|
+
performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
2493
|
+
switch ($avoiding_name_collisions) {
|
|
2494
|
+
case 0:
|
|
2495
|
+
this.begin("open_directive");
|
|
2496
|
+
return "open_directive";
|
|
2497
|
+
case 1:
|
|
2498
|
+
this.begin("acc_title");
|
|
2499
|
+
return 31;
|
|
2500
|
+
case 2:
|
|
2501
|
+
this.popState();
|
|
2502
|
+
return "acc_title_value";
|
|
2503
|
+
case 3:
|
|
2504
|
+
this.begin("acc_descr");
|
|
2505
|
+
return 33;
|
|
2506
|
+
case 4:
|
|
2507
|
+
this.popState();
|
|
2508
|
+
return "acc_descr_value";
|
|
2509
|
+
case 5:
|
|
2510
|
+
this.begin("acc_descr_multiline");
|
|
2511
|
+
break;
|
|
2512
|
+
case 6:
|
|
2513
|
+
this.popState();
|
|
2514
|
+
break;
|
|
2515
|
+
case 7: return "acc_descr_multiline_value";
|
|
2516
|
+
case 8: break;
|
|
2517
|
+
case 9: break;
|
|
2518
|
+
case 10: break;
|
|
2519
|
+
case 11: return 10;
|
|
2520
|
+
case 12: break;
|
|
2521
|
+
case 13: break;
|
|
2522
|
+
case 14:
|
|
2523
|
+
this.begin("href");
|
|
2524
|
+
break;
|
|
2525
|
+
case 15:
|
|
2526
|
+
this.popState();
|
|
2527
|
+
break;
|
|
2528
|
+
case 16: return 43;
|
|
2529
|
+
case 17:
|
|
2530
|
+
this.begin("callbackname");
|
|
2531
|
+
break;
|
|
2532
|
+
case 18:
|
|
2533
|
+
this.popState();
|
|
2534
|
+
break;
|
|
2535
|
+
case 19:
|
|
2536
|
+
this.popState();
|
|
2537
|
+
this.begin("callbackargs");
|
|
2538
|
+
break;
|
|
2539
|
+
case 20: return 41;
|
|
2540
|
+
case 21:
|
|
2541
|
+
this.popState();
|
|
2542
|
+
break;
|
|
2543
|
+
case 22: return 42;
|
|
2544
|
+
case 23:
|
|
2545
|
+
this.begin("click");
|
|
2546
|
+
break;
|
|
2547
|
+
case 24:
|
|
2548
|
+
this.popState();
|
|
2549
|
+
break;
|
|
2550
|
+
case 25: return 40;
|
|
2551
|
+
case 26: return 4;
|
|
2552
|
+
case 27: return 22;
|
|
2553
|
+
case 28: return 23;
|
|
2554
|
+
case 29: return 24;
|
|
2555
|
+
case 30: return 25;
|
|
2556
|
+
case 31: return 26;
|
|
2557
|
+
case 32: return 28;
|
|
2558
|
+
case 33: return 27;
|
|
2559
|
+
case 34: return 29;
|
|
2560
|
+
case 35: return 12;
|
|
2561
|
+
case 36: return 13;
|
|
2562
|
+
case 37: return 14;
|
|
2563
|
+
case 38: return 15;
|
|
2564
|
+
case 39: return 16;
|
|
2565
|
+
case 40: return 17;
|
|
2566
|
+
case 41: return 18;
|
|
2567
|
+
case 42: return 20;
|
|
2568
|
+
case 43: return 21;
|
|
2569
|
+
case 44: return "date";
|
|
2570
|
+
case 45: return 30;
|
|
2571
|
+
case 46: return "accDescription";
|
|
2572
|
+
case 47: return 36;
|
|
2573
|
+
case 48: return 38;
|
|
2574
|
+
case 49: return 39;
|
|
2575
|
+
case 50: return ":";
|
|
2576
|
+
case 51: return 6;
|
|
2577
|
+
case 52: return "INVALID";
|
|
2578
|
+
}
|
|
2579
|
+
}, "anonymous"),
|
|
2580
|
+
rules: [
|
|
2581
|
+
/^(?:%%\{)/i,
|
|
2582
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
2583
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
2584
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
2585
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
2586
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
2587
|
+
/^(?:[\}])/i,
|
|
2588
|
+
/^(?:[^\}]*)/i,
|
|
2589
|
+
/^(?:%%(?!\{)*[^\n]*)/i,
|
|
2590
|
+
/^(?:[^\}]%%*[^\n]*)/i,
|
|
2591
|
+
/^(?:%%*[^\n]*[\n]*)/i,
|
|
2592
|
+
/^(?:[\n]+)/i,
|
|
2593
|
+
/^(?:\s+)/i,
|
|
2594
|
+
/^(?:%[^\n]*)/i,
|
|
2595
|
+
/^(?:href[\s]+["])/i,
|
|
2596
|
+
/^(?:["])/i,
|
|
2597
|
+
/^(?:[^"]*)/i,
|
|
2598
|
+
/^(?:call[\s]+)/i,
|
|
2599
|
+
/^(?:\([\s]*\))/i,
|
|
2600
|
+
/^(?:\()/i,
|
|
2601
|
+
/^(?:[^(]*)/i,
|
|
2602
|
+
/^(?:\))/i,
|
|
2603
|
+
/^(?:[^)]*)/i,
|
|
2604
|
+
/^(?:click[\s]+)/i,
|
|
2605
|
+
/^(?:[\s\n])/i,
|
|
2606
|
+
/^(?:[^\s\n]*)/i,
|
|
2607
|
+
/^(?:gantt\b)/i,
|
|
2608
|
+
/^(?:dateFormat\s[^#\n;]+)/i,
|
|
2609
|
+
/^(?:inclusiveEndDates\b)/i,
|
|
2610
|
+
/^(?:topAxis\b)/i,
|
|
2611
|
+
/^(?:axisFormat\s[^#\n;]+)/i,
|
|
2612
|
+
/^(?:tickInterval\s[^#\n;]+)/i,
|
|
2613
|
+
/^(?:includes\s[^#\n;]+)/i,
|
|
2614
|
+
/^(?:excludes\s[^#\n;]+)/i,
|
|
2615
|
+
/^(?:todayMarker\s[^\n;]+)/i,
|
|
2616
|
+
/^(?:weekday\s+monday\b)/i,
|
|
2617
|
+
/^(?:weekday\s+tuesday\b)/i,
|
|
2618
|
+
/^(?:weekday\s+wednesday\b)/i,
|
|
2619
|
+
/^(?:weekday\s+thursday\b)/i,
|
|
2620
|
+
/^(?:weekday\s+friday\b)/i,
|
|
2621
|
+
/^(?:weekday\s+saturday\b)/i,
|
|
2622
|
+
/^(?:weekday\s+sunday\b)/i,
|
|
2623
|
+
/^(?:weekend\s+friday\b)/i,
|
|
2624
|
+
/^(?:weekend\s+saturday\b)/i,
|
|
2625
|
+
/^(?:\d\d\d\d-\d\d-\d\d\b)/i,
|
|
2626
|
+
/^(?:title\s[^\n]+)/i,
|
|
2627
|
+
/^(?:accDescription\s[^#\n;]+)/i,
|
|
2628
|
+
/^(?:section\s[^\n]+)/i,
|
|
2629
|
+
/^(?:[^:\n]+)/i,
|
|
2630
|
+
/^(?::[^#\n;]+)/i,
|
|
2631
|
+
/^(?::)/i,
|
|
2632
|
+
/^(?:$)/i,
|
|
2633
|
+
/^(?:.)/i
|
|
2634
|
+
],
|
|
2635
|
+
conditions: {
|
|
2636
|
+
"acc_descr_multiline": {
|
|
2637
|
+
"rules": [6, 7],
|
|
2638
|
+
"inclusive": false
|
|
2639
|
+
},
|
|
2640
|
+
"acc_descr": {
|
|
2641
|
+
"rules": [4],
|
|
2642
|
+
"inclusive": false
|
|
2643
|
+
},
|
|
2644
|
+
"acc_title": {
|
|
2645
|
+
"rules": [2],
|
|
2646
|
+
"inclusive": false
|
|
2647
|
+
},
|
|
2648
|
+
"callbackargs": {
|
|
2649
|
+
"rules": [21, 22],
|
|
2650
|
+
"inclusive": false
|
|
2651
|
+
},
|
|
2652
|
+
"callbackname": {
|
|
2653
|
+
"rules": [
|
|
2654
|
+
18,
|
|
2655
|
+
19,
|
|
2656
|
+
20
|
|
2657
|
+
],
|
|
2658
|
+
"inclusive": false
|
|
2659
|
+
},
|
|
2660
|
+
"href": {
|
|
2661
|
+
"rules": [15, 16],
|
|
2662
|
+
"inclusive": false
|
|
2663
|
+
},
|
|
2664
|
+
"click": {
|
|
2665
|
+
"rules": [24, 25],
|
|
2666
|
+
"inclusive": false
|
|
2667
|
+
},
|
|
2668
|
+
"INITIAL": {
|
|
2669
|
+
"rules": [
|
|
2670
|
+
0,
|
|
2671
|
+
1,
|
|
2672
|
+
3,
|
|
2673
|
+
5,
|
|
2674
|
+
8,
|
|
2675
|
+
9,
|
|
2676
|
+
10,
|
|
2677
|
+
11,
|
|
2678
|
+
12,
|
|
2679
|
+
13,
|
|
2680
|
+
14,
|
|
2681
|
+
17,
|
|
2682
|
+
23,
|
|
2683
|
+
26,
|
|
2684
|
+
27,
|
|
2685
|
+
28,
|
|
2686
|
+
29,
|
|
2687
|
+
30,
|
|
2688
|
+
31,
|
|
2689
|
+
32,
|
|
2690
|
+
33,
|
|
2691
|
+
34,
|
|
2692
|
+
35,
|
|
2693
|
+
36,
|
|
2694
|
+
37,
|
|
2695
|
+
38,
|
|
2696
|
+
39,
|
|
2697
|
+
40,
|
|
2698
|
+
41,
|
|
2699
|
+
42,
|
|
2700
|
+
43,
|
|
2701
|
+
44,
|
|
2702
|
+
45,
|
|
2703
|
+
46,
|
|
2704
|
+
47,
|
|
2705
|
+
48,
|
|
2706
|
+
49,
|
|
2707
|
+
50,
|
|
2708
|
+
51,
|
|
2709
|
+
52
|
|
2710
|
+
],
|
|
2711
|
+
"inclusive": true
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
};
|
|
2715
|
+
})();
|
|
2716
|
+
function Parser() {
|
|
2717
|
+
this.yy = {};
|
|
2718
|
+
}
|
|
2719
|
+
__name(Parser, "Parser");
|
|
2720
|
+
Parser.prototype = parser2;
|
|
2721
|
+
parser2.Parser = Parser;
|
|
2722
|
+
return new Parser();
|
|
2723
|
+
})();
|
|
2724
|
+
parser.parser = parser;
|
|
2725
|
+
var gantt_default = parser;
|
|
2726
|
+
import_dayjs_min.default.extend(import_isoWeek.default);
|
|
2727
|
+
import_dayjs_min.default.extend(import_customParseFormat.default);
|
|
2728
|
+
import_dayjs_min.default.extend(import_advancedFormat.default);
|
|
2729
|
+
var WEEKEND_START_DAY = {
|
|
2730
|
+
friday: 5,
|
|
2731
|
+
saturday: 6
|
|
2732
|
+
};
|
|
2733
|
+
var dateFormat = "";
|
|
2734
|
+
var axisFormat = "";
|
|
2735
|
+
var tickInterval = void 0;
|
|
2736
|
+
var todayMarker = "";
|
|
2737
|
+
var includes = [];
|
|
2738
|
+
var excludes = [];
|
|
2739
|
+
var links = /* @__PURE__ */ new Map();
|
|
2740
|
+
var sections = [];
|
|
2741
|
+
var tasks = [];
|
|
2742
|
+
var currentSection = "";
|
|
2743
|
+
var displayMode = "";
|
|
2744
|
+
var tags = [
|
|
2745
|
+
"active",
|
|
2746
|
+
"done",
|
|
2747
|
+
"crit",
|
|
2748
|
+
"milestone",
|
|
2749
|
+
"vert"
|
|
2750
|
+
];
|
|
2751
|
+
var funs = [];
|
|
2752
|
+
var diagramId = "";
|
|
2753
|
+
var inclusiveEndDates = false;
|
|
2754
|
+
var topAxis = false;
|
|
2755
|
+
var weekday = "sunday";
|
|
2756
|
+
var weekend = "saturday";
|
|
2757
|
+
var lastOrder = 0;
|
|
2758
|
+
var clear2 = /* @__PURE__ */ __name(function() {
|
|
2759
|
+
sections = [];
|
|
2760
|
+
tasks = [];
|
|
2761
|
+
currentSection = "";
|
|
2762
|
+
funs = [];
|
|
2763
|
+
taskCnt = 0;
|
|
2764
|
+
lastTask = void 0;
|
|
2765
|
+
lastTaskID = void 0;
|
|
2766
|
+
rawTasks = [];
|
|
2767
|
+
dateFormat = "";
|
|
2768
|
+
axisFormat = "";
|
|
2769
|
+
displayMode = "";
|
|
2770
|
+
tickInterval = void 0;
|
|
2771
|
+
todayMarker = "";
|
|
2772
|
+
includes = [];
|
|
2773
|
+
excludes = [];
|
|
2774
|
+
inclusiveEndDates = false;
|
|
2775
|
+
topAxis = false;
|
|
2776
|
+
lastOrder = 0;
|
|
2777
|
+
links = /* @__PURE__ */ new Map();
|
|
2778
|
+
diagramId = "";
|
|
2779
|
+
clear();
|
|
2780
|
+
weekday = "sunday";
|
|
2781
|
+
weekend = "saturday";
|
|
2782
|
+
}, "clear");
|
|
2783
|
+
var setDiagramId = /* @__PURE__ */ __name(function(id) {
|
|
2784
|
+
diagramId = id;
|
|
2785
|
+
}, "setDiagramId");
|
|
2786
|
+
var setAxisFormat = /* @__PURE__ */ __name(function(txt) {
|
|
2787
|
+
axisFormat = txt;
|
|
2788
|
+
}, "setAxisFormat");
|
|
2789
|
+
var getAxisFormat = /* @__PURE__ */ __name(function() {
|
|
2790
|
+
return axisFormat;
|
|
2791
|
+
}, "getAxisFormat");
|
|
2792
|
+
var setTickInterval = /* @__PURE__ */ __name(function(txt) {
|
|
2793
|
+
tickInterval = txt;
|
|
2794
|
+
}, "setTickInterval");
|
|
2795
|
+
var getTickInterval = /* @__PURE__ */ __name(function() {
|
|
2796
|
+
return tickInterval;
|
|
2797
|
+
}, "getTickInterval");
|
|
2798
|
+
var setTodayMarker = /* @__PURE__ */ __name(function(txt) {
|
|
2799
|
+
todayMarker = txt;
|
|
2800
|
+
}, "setTodayMarker");
|
|
2801
|
+
var getTodayMarker = /* @__PURE__ */ __name(function() {
|
|
2802
|
+
return todayMarker;
|
|
2803
|
+
}, "getTodayMarker");
|
|
2804
|
+
var setDateFormat = /* @__PURE__ */ __name(function(txt) {
|
|
2805
|
+
dateFormat = txt;
|
|
2806
|
+
}, "setDateFormat");
|
|
2807
|
+
var enableInclusiveEndDates = /* @__PURE__ */ __name(function() {
|
|
2808
|
+
inclusiveEndDates = true;
|
|
2809
|
+
}, "enableInclusiveEndDates");
|
|
2810
|
+
var endDatesAreInclusive = /* @__PURE__ */ __name(function() {
|
|
2811
|
+
return inclusiveEndDates;
|
|
2812
|
+
}, "endDatesAreInclusive");
|
|
2813
|
+
var enableTopAxis = /* @__PURE__ */ __name(function() {
|
|
2814
|
+
topAxis = true;
|
|
2815
|
+
}, "enableTopAxis");
|
|
2816
|
+
var topAxisEnabled = /* @__PURE__ */ __name(function() {
|
|
2817
|
+
return topAxis;
|
|
2818
|
+
}, "topAxisEnabled");
|
|
2819
|
+
var setDisplayMode = /* @__PURE__ */ __name(function(txt) {
|
|
2820
|
+
displayMode = txt;
|
|
2821
|
+
}, "setDisplayMode");
|
|
2822
|
+
var getDisplayMode = /* @__PURE__ */ __name(function() {
|
|
2823
|
+
return displayMode;
|
|
2824
|
+
}, "getDisplayMode");
|
|
2825
|
+
var getDateFormat = /* @__PURE__ */ __name(function() {
|
|
2826
|
+
return dateFormat;
|
|
2827
|
+
}, "getDateFormat");
|
|
2828
|
+
var mergeTokens = /* @__PURE__ */ __name((existing, txt) => {
|
|
2829
|
+
const tokens = txt.toLowerCase().split(/[\s,]+/).filter((t) => t !== "");
|
|
2830
|
+
return [.../* @__PURE__ */ new Set([...existing, ...tokens])];
|
|
2831
|
+
}, "mergeTokens");
|
|
2832
|
+
var setIncludes = /* @__PURE__ */ __name(function(txt) {
|
|
2833
|
+
includes = mergeTokens(includes, txt);
|
|
2834
|
+
}, "setIncludes");
|
|
2835
|
+
var getIncludes = /* @__PURE__ */ __name(function() {
|
|
2836
|
+
return includes;
|
|
2837
|
+
}, "getIncludes");
|
|
2838
|
+
var setExcludes = /* @__PURE__ */ __name(function(txt) {
|
|
2839
|
+
excludes = mergeTokens(excludes, txt);
|
|
2840
|
+
}, "setExcludes");
|
|
2841
|
+
var getExcludes = /* @__PURE__ */ __name(function() {
|
|
2842
|
+
return excludes;
|
|
2843
|
+
}, "getExcludes");
|
|
2844
|
+
var getLinks = /* @__PURE__ */ __name(function() {
|
|
2845
|
+
return links;
|
|
2846
|
+
}, "getLinks");
|
|
2847
|
+
var addSection = /* @__PURE__ */ __name(function(txt) {
|
|
2848
|
+
currentSection = txt;
|
|
2849
|
+
sections.push(txt);
|
|
2850
|
+
}, "addSection");
|
|
2851
|
+
var getSections = /* @__PURE__ */ __name(function() {
|
|
2852
|
+
return sections;
|
|
2853
|
+
}, "getSections");
|
|
2854
|
+
var getTasks = /* @__PURE__ */ __name(function() {
|
|
2855
|
+
let allItemsProcessed = compileTasks();
|
|
2856
|
+
const maxDepth = 10;
|
|
2857
|
+
let iterationCount = 0;
|
|
2858
|
+
while (!allItemsProcessed && iterationCount < maxDepth) {
|
|
2859
|
+
allItemsProcessed = compileTasks();
|
|
2860
|
+
iterationCount++;
|
|
2861
|
+
}
|
|
2862
|
+
tasks = rawTasks;
|
|
2863
|
+
return tasks;
|
|
2864
|
+
}, "getTasks");
|
|
2865
|
+
var isInvalidDate = /* @__PURE__ */ __name(function(date, dateFormat2, excludes2, includes2) {
|
|
2866
|
+
const formattedDate = date.format(dateFormat2.trim());
|
|
2867
|
+
const dateOnly = date.format("YYYY-MM-DD");
|
|
2868
|
+
if (includes2.includes(formattedDate) || includes2.includes(dateOnly)) return false;
|
|
2869
|
+
if (excludes2.includes("weekends") && (date.isoWeekday() === WEEKEND_START_DAY[weekend] || date.isoWeekday() === WEEKEND_START_DAY[weekend] + 1)) return true;
|
|
2870
|
+
if (excludes2.includes(date.format("dddd").toLowerCase())) return true;
|
|
2871
|
+
return excludes2.includes(formattedDate) || excludes2.includes(dateOnly);
|
|
2872
|
+
}, "isInvalidDate");
|
|
2873
|
+
var setWeekday = /* @__PURE__ */ __name(function(txt) {
|
|
2874
|
+
weekday = txt;
|
|
2875
|
+
}, "setWeekday");
|
|
2876
|
+
var getWeekday = /* @__PURE__ */ __name(function() {
|
|
2877
|
+
return weekday;
|
|
2878
|
+
}, "getWeekday");
|
|
2879
|
+
var setWeekend = /* @__PURE__ */ __name(function(startDay) {
|
|
2880
|
+
weekend = startDay;
|
|
2881
|
+
}, "setWeekend");
|
|
2882
|
+
var checkTaskDates = /* @__PURE__ */ __name(function(task, dateFormat2, excludes2, includes2) {
|
|
2883
|
+
if (!excludes2.length || task.manualEndTime) return;
|
|
2884
|
+
let startTime;
|
|
2885
|
+
if (task.startTime instanceof Date) startTime = (0, import_dayjs_min.default)(task.startTime);
|
|
2886
|
+
else startTime = (0, import_dayjs_min.default)(task.startTime, dateFormat2, true);
|
|
2887
|
+
startTime = startTime.add(1, "d");
|
|
2888
|
+
let originalEndTime;
|
|
2889
|
+
if (task.endTime instanceof Date) originalEndTime = (0, import_dayjs_min.default)(task.endTime);
|
|
2890
|
+
else originalEndTime = (0, import_dayjs_min.default)(task.endTime, dateFormat2, true);
|
|
2891
|
+
const [fixedEndTime, renderEndTime] = fixTaskDates(startTime, originalEndTime, dateFormat2, excludes2, includes2);
|
|
2892
|
+
task.endTime = fixedEndTime.toDate();
|
|
2893
|
+
task.renderEndTime = renderEndTime;
|
|
2894
|
+
}, "checkTaskDates");
|
|
2895
|
+
var fixTaskDates = /* @__PURE__ */ __name(function(startTime, endTime, dateFormat2, excludes2, includes2) {
|
|
2896
|
+
let invalid = false;
|
|
2897
|
+
let renderEndTime = null;
|
|
2898
|
+
const maxEndTime = endTime.add(1e4, "d");
|
|
2899
|
+
while (startTime <= endTime) {
|
|
2900
|
+
if (!invalid) renderEndTime = endTime.toDate();
|
|
2901
|
+
invalid = isInvalidDate(startTime, dateFormat2, excludes2, includes2);
|
|
2902
|
+
if (invalid) {
|
|
2903
|
+
endTime = endTime.add(1, "d");
|
|
2904
|
+
if (endTime > maxEndTime) throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");
|
|
2905
|
+
}
|
|
2906
|
+
startTime = startTime.add(1, "d");
|
|
2907
|
+
}
|
|
2908
|
+
return [endTime, renderEndTime];
|
|
2909
|
+
}, "fixTaskDates");
|
|
2910
|
+
var getStartDate = /* @__PURE__ */ __name(function(prevTime, dateFormat2, str) {
|
|
2911
|
+
str = str.trim();
|
|
2912
|
+
if ((/* @__PURE__ */ __name((format) => {
|
|
2913
|
+
const trimmedFormat = format.trim();
|
|
2914
|
+
return trimmedFormat === "x" || trimmedFormat === "X";
|
|
2915
|
+
}, "isTimestampFormat"))(dateFormat2) && /^\d+$/.test(str)) return new Date(Number(str));
|
|
2916
|
+
const afterStatement = /^after\s+(?<ids>[\d\w- ]+)/.exec(str);
|
|
2917
|
+
if (afterStatement !== null) {
|
|
2918
|
+
let latestTask = null;
|
|
2919
|
+
for (const id of afterStatement.groups.ids.split(" ")) {
|
|
2920
|
+
let task = findTaskById(id);
|
|
2921
|
+
if (task !== void 0 && (!latestTask || task.endTime > latestTask.endTime)) latestTask = task;
|
|
2922
|
+
}
|
|
2923
|
+
if (latestTask) return latestTask.endTime;
|
|
2924
|
+
const today = /* @__PURE__ */ new Date();
|
|
2925
|
+
today.setHours(0, 0, 0, 0);
|
|
2926
|
+
return today;
|
|
2927
|
+
}
|
|
2928
|
+
let mDate = (0, import_dayjs_min.default)(str, dateFormat2.trim(), true);
|
|
2929
|
+
if (mDate.isValid()) return mDate.toDate();
|
|
2930
|
+
else {
|
|
2931
|
+
log.debug("Invalid date:" + str);
|
|
2932
|
+
log.debug("With date format:" + dateFormat2.trim());
|
|
2933
|
+
const d = new Date(str);
|
|
2934
|
+
if (d === void 0 || isNaN(d.getTime()) || d.getFullYear() < -1e4 || d.getFullYear() > 1e4) throw new Error("Invalid date:" + str);
|
|
2935
|
+
return d;
|
|
2936
|
+
}
|
|
2937
|
+
}, "getStartDate");
|
|
2938
|
+
var parseDuration = /* @__PURE__ */ __name(function(str) {
|
|
2939
|
+
const statement = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(str.trim());
|
|
2940
|
+
if (statement !== null) return [Number.parseFloat(statement[1]), statement[2]];
|
|
2941
|
+
return [NaN, "ms"];
|
|
2942
|
+
}, "parseDuration");
|
|
2943
|
+
var getEndDate = /* @__PURE__ */ __name(function(prevTime, dateFormat2, str, inclusive = false) {
|
|
2944
|
+
str = str.trim();
|
|
2945
|
+
const untilStatement = /^until\s+(?<ids>[\d\w- ]+)/.exec(str);
|
|
2946
|
+
if (untilStatement !== null) {
|
|
2947
|
+
let earliestTask = null;
|
|
2948
|
+
for (const id of untilStatement.groups.ids.split(" ")) {
|
|
2949
|
+
let task = findTaskById(id);
|
|
2950
|
+
if (task !== void 0 && (!earliestTask || task.startTime < earliestTask.startTime)) earliestTask = task;
|
|
2951
|
+
}
|
|
2952
|
+
if (earliestTask) return earliestTask.startTime;
|
|
2953
|
+
const today = /* @__PURE__ */ new Date();
|
|
2954
|
+
today.setHours(0, 0, 0, 0);
|
|
2955
|
+
return today;
|
|
2956
|
+
}
|
|
2957
|
+
let parsedDate = (0, import_dayjs_min.default)(str, dateFormat2.trim(), true);
|
|
2958
|
+
if (parsedDate.isValid()) {
|
|
2959
|
+
if (inclusive) parsedDate = parsedDate.add(1, "d");
|
|
2960
|
+
return parsedDate.toDate();
|
|
2961
|
+
}
|
|
2962
|
+
let endTime = (0, import_dayjs_min.default)(prevTime);
|
|
2963
|
+
const [durationValue, durationUnit] = parseDuration(str);
|
|
2964
|
+
if (!Number.isNaN(durationValue)) {
|
|
2965
|
+
const newEndTime = endTime.add(durationValue, durationUnit);
|
|
2966
|
+
if (newEndTime.isValid()) endTime = newEndTime;
|
|
2967
|
+
}
|
|
2968
|
+
return endTime.toDate();
|
|
2969
|
+
}, "getEndDate");
|
|
2970
|
+
var taskCnt = 0;
|
|
2971
|
+
var parseId = /* @__PURE__ */ __name(function(idStr) {
|
|
2972
|
+
if (idStr === void 0) {
|
|
2973
|
+
taskCnt = taskCnt + 1;
|
|
2974
|
+
return "task" + taskCnt;
|
|
2975
|
+
}
|
|
2976
|
+
return idStr;
|
|
2977
|
+
}, "parseId");
|
|
2978
|
+
var compileData = /* @__PURE__ */ __name(function(prevTask, dataStr) {
|
|
2979
|
+
let ds;
|
|
2980
|
+
if (dataStr.substr(0, 1) === ":") ds = dataStr.substr(1, dataStr.length);
|
|
2981
|
+
else ds = dataStr;
|
|
2982
|
+
const data = ds.split(",");
|
|
2983
|
+
const task = {};
|
|
2984
|
+
getTaskTags(data, task, tags);
|
|
2985
|
+
for (let i = 0; i < data.length; i++) data[i] = data[i].trim();
|
|
2986
|
+
let endTimeData = "";
|
|
2987
|
+
switch (data.length) {
|
|
2988
|
+
case 1:
|
|
2989
|
+
task.id = parseId();
|
|
2990
|
+
task.startTime = prevTask.endTime;
|
|
2991
|
+
endTimeData = data[0];
|
|
2992
|
+
break;
|
|
2993
|
+
case 2:
|
|
2994
|
+
task.id = parseId();
|
|
2995
|
+
task.startTime = getStartDate(void 0, dateFormat, data[0]);
|
|
2996
|
+
endTimeData = data[1];
|
|
2997
|
+
break;
|
|
2998
|
+
case 3:
|
|
2999
|
+
task.id = parseId(data[0]);
|
|
3000
|
+
task.startTime = getStartDate(void 0, dateFormat, data[1]);
|
|
3001
|
+
endTimeData = data[2];
|
|
3002
|
+
break;
|
|
3003
|
+
default:
|
|
3004
|
+
}
|
|
3005
|
+
if (endTimeData) {
|
|
3006
|
+
task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);
|
|
3007
|
+
task.manualEndTime = (0, import_dayjs_min.default)(endTimeData, "YYYY-MM-DD", true).isValid();
|
|
3008
|
+
checkTaskDates(task, dateFormat, excludes, includes);
|
|
3009
|
+
}
|
|
3010
|
+
return task;
|
|
3011
|
+
}, "compileData");
|
|
3012
|
+
var parseData = /* @__PURE__ */ __name(function(prevTaskId, dataStr) {
|
|
3013
|
+
let ds;
|
|
3014
|
+
if (dataStr.substr(0, 1) === ":") ds = dataStr.substr(1, dataStr.length);
|
|
3015
|
+
else ds = dataStr;
|
|
3016
|
+
const data = ds.split(",");
|
|
3017
|
+
const task = {};
|
|
3018
|
+
getTaskTags(data, task, tags);
|
|
3019
|
+
for (let i = 0; i < data.length; i++) data[i] = data[i].trim();
|
|
3020
|
+
switch (data.length) {
|
|
3021
|
+
case 1:
|
|
3022
|
+
task.id = parseId();
|
|
3023
|
+
task.startTime = {
|
|
3024
|
+
type: "prevTaskEnd",
|
|
3025
|
+
id: prevTaskId
|
|
3026
|
+
};
|
|
3027
|
+
task.endTime = { data: data[0] };
|
|
3028
|
+
break;
|
|
3029
|
+
case 2:
|
|
3030
|
+
task.id = parseId();
|
|
3031
|
+
task.startTime = {
|
|
3032
|
+
type: "getStartDate",
|
|
3033
|
+
startData: data[0]
|
|
3034
|
+
};
|
|
3035
|
+
task.endTime = { data: data[1] };
|
|
3036
|
+
break;
|
|
3037
|
+
case 3:
|
|
3038
|
+
task.id = parseId(data[0]);
|
|
3039
|
+
task.startTime = {
|
|
3040
|
+
type: "getStartDate",
|
|
3041
|
+
startData: data[1]
|
|
3042
|
+
};
|
|
3043
|
+
task.endTime = { data: data[2] };
|
|
3044
|
+
break;
|
|
3045
|
+
default:
|
|
3046
|
+
}
|
|
3047
|
+
return task;
|
|
3048
|
+
}, "parseData");
|
|
3049
|
+
var lastTask;
|
|
3050
|
+
var lastTaskID;
|
|
3051
|
+
var rawTasks = [];
|
|
3052
|
+
var taskDb = {};
|
|
3053
|
+
var addTask = /* @__PURE__ */ __name(function(descr, data) {
|
|
3054
|
+
const rawTask = {
|
|
3055
|
+
section: currentSection,
|
|
3056
|
+
type: currentSection,
|
|
3057
|
+
processed: false,
|
|
3058
|
+
manualEndTime: false,
|
|
3059
|
+
renderEndTime: null,
|
|
3060
|
+
raw: { data },
|
|
3061
|
+
task: descr,
|
|
3062
|
+
classes: []
|
|
3063
|
+
};
|
|
3064
|
+
const taskInfo = parseData(lastTaskID, data);
|
|
3065
|
+
rawTask.raw.startTime = taskInfo.startTime;
|
|
3066
|
+
rawTask.raw.endTime = taskInfo.endTime;
|
|
3067
|
+
rawTask.id = taskInfo.id;
|
|
3068
|
+
rawTask.prevTaskId = lastTaskID;
|
|
3069
|
+
rawTask.active = taskInfo.active;
|
|
3070
|
+
rawTask.done = taskInfo.done;
|
|
3071
|
+
rawTask.crit = taskInfo.crit;
|
|
3072
|
+
rawTask.milestone = taskInfo.milestone;
|
|
3073
|
+
rawTask.vert = taskInfo.vert;
|
|
3074
|
+
if (rawTask.vert) rawTask.order = -1;
|
|
3075
|
+
else {
|
|
3076
|
+
rawTask.order = lastOrder;
|
|
3077
|
+
lastOrder++;
|
|
3078
|
+
}
|
|
3079
|
+
const pos = rawTasks.push(rawTask);
|
|
3080
|
+
lastTaskID = rawTask.id;
|
|
3081
|
+
taskDb[rawTask.id] = pos - 1;
|
|
3082
|
+
}, "addTask");
|
|
3083
|
+
var findTaskById = /* @__PURE__ */ __name(function(id) {
|
|
3084
|
+
const pos = taskDb[id];
|
|
3085
|
+
return rawTasks[pos];
|
|
3086
|
+
}, "findTaskById");
|
|
3087
|
+
var addTaskOrg = /* @__PURE__ */ __name(function(descr, data) {
|
|
3088
|
+
const newTask = {
|
|
3089
|
+
section: currentSection,
|
|
3090
|
+
type: currentSection,
|
|
3091
|
+
description: descr,
|
|
3092
|
+
task: descr,
|
|
3093
|
+
classes: []
|
|
3094
|
+
};
|
|
3095
|
+
const taskInfo = compileData(lastTask, data);
|
|
3096
|
+
newTask.startTime = taskInfo.startTime;
|
|
3097
|
+
newTask.endTime = taskInfo.endTime;
|
|
3098
|
+
newTask.id = taskInfo.id;
|
|
3099
|
+
newTask.active = taskInfo.active;
|
|
3100
|
+
newTask.done = taskInfo.done;
|
|
3101
|
+
newTask.crit = taskInfo.crit;
|
|
3102
|
+
newTask.milestone = taskInfo.milestone;
|
|
3103
|
+
newTask.vert = taskInfo.vert;
|
|
3104
|
+
lastTask = newTask;
|
|
3105
|
+
tasks.push(newTask);
|
|
3106
|
+
}, "addTaskOrg");
|
|
3107
|
+
var compileTasks = /* @__PURE__ */ __name(function() {
|
|
3108
|
+
const compileTask = /* @__PURE__ */ __name(function(pos) {
|
|
3109
|
+
const task = rawTasks[pos];
|
|
3110
|
+
let startTime = "";
|
|
3111
|
+
switch (rawTasks[pos].raw.startTime.type) {
|
|
3112
|
+
case "prevTaskEnd":
|
|
3113
|
+
task.startTime = findTaskById(task.prevTaskId).endTime;
|
|
3114
|
+
break;
|
|
3115
|
+
case "getStartDate":
|
|
3116
|
+
startTime = getStartDate(void 0, dateFormat, rawTasks[pos].raw.startTime.startData);
|
|
3117
|
+
if (startTime) rawTasks[pos].startTime = startTime;
|
|
3118
|
+
break;
|
|
3119
|
+
}
|
|
3120
|
+
if (rawTasks[pos].startTime) {
|
|
3121
|
+
rawTasks[pos].endTime = getEndDate(rawTasks[pos].startTime, dateFormat, rawTasks[pos].raw.endTime.data, inclusiveEndDates);
|
|
3122
|
+
if (rawTasks[pos].endTime) {
|
|
3123
|
+
rawTasks[pos].processed = true;
|
|
3124
|
+
rawTasks[pos].manualEndTime = (0, import_dayjs_min.default)(rawTasks[pos].raw.endTime.data, "YYYY-MM-DD", true).isValid();
|
|
3125
|
+
checkTaskDates(rawTasks[pos], dateFormat, excludes, includes);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
return rawTasks[pos].processed;
|
|
3129
|
+
}, "compileTask");
|
|
3130
|
+
let allProcessed = true;
|
|
3131
|
+
for (const [i, rawTask] of rawTasks.entries()) {
|
|
3132
|
+
compileTask(i);
|
|
3133
|
+
allProcessed = allProcessed && rawTask.processed;
|
|
3134
|
+
}
|
|
3135
|
+
return allProcessed;
|
|
3136
|
+
}, "compileTasks");
|
|
3137
|
+
var setLink = /* @__PURE__ */ __name(function(ids, _linkStr) {
|
|
3138
|
+
let linkStr = _linkStr;
|
|
3139
|
+
if (getConfig2().securityLevel !== "loose") linkStr = (0, import_dist.sanitizeUrl)(_linkStr);
|
|
3140
|
+
ids.split(",").forEach(function(id) {
|
|
3141
|
+
if (findTaskById(id) !== void 0) {
|
|
3142
|
+
pushFun(id, () => {
|
|
3143
|
+
window.open(linkStr, "_self");
|
|
3144
|
+
});
|
|
3145
|
+
links.set(id, linkStr);
|
|
3146
|
+
}
|
|
3147
|
+
});
|
|
3148
|
+
setClass(ids, "clickable");
|
|
3149
|
+
}, "setLink");
|
|
3150
|
+
var setClass = /* @__PURE__ */ __name(function(ids, className) {
|
|
3151
|
+
ids.split(",").forEach(function(id) {
|
|
3152
|
+
let rawTask = findTaskById(id);
|
|
3153
|
+
if (rawTask !== void 0) rawTask.classes.push(className);
|
|
3154
|
+
});
|
|
3155
|
+
}, "setClass");
|
|
3156
|
+
var setClickFun = /* @__PURE__ */ __name(function(id, functionName, functionArgs) {
|
|
3157
|
+
if (getConfig2().securityLevel !== "loose") return;
|
|
3158
|
+
if (functionName === void 0) return;
|
|
3159
|
+
let argList = [];
|
|
3160
|
+
if (typeof functionArgs === "string") {
|
|
3161
|
+
argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
3162
|
+
for (let i = 0; i < argList.length; i++) {
|
|
3163
|
+
let item = argList[i].trim();
|
|
3164
|
+
if (item.startsWith("\"") && item.endsWith("\"")) item = item.substr(1, item.length - 2);
|
|
3165
|
+
argList[i] = item;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
if (argList.length === 0) argList.push(id);
|
|
3169
|
+
if (findTaskById(id) !== void 0) pushFun(id, () => {
|
|
3170
|
+
utils_default.runFunc(functionName, ...argList);
|
|
3171
|
+
});
|
|
3172
|
+
}, "setClickFun");
|
|
3173
|
+
var pushFun = /* @__PURE__ */ __name(function(id, callbackFunction) {
|
|
3174
|
+
funs.push(function() {
|
|
3175
|
+
const prefixedId = diagramId ? `${diagramId}-${id}` : id;
|
|
3176
|
+
const elem = document.querySelector(`[id="${prefixedId}"]`);
|
|
3177
|
+
if (elem !== null) elem.addEventListener("click", function() {
|
|
3178
|
+
callbackFunction();
|
|
3179
|
+
});
|
|
3180
|
+
}, function() {
|
|
3181
|
+
const prefixedId = diagramId ? `${diagramId}-${id}` : id;
|
|
3182
|
+
const elem = document.querySelector(`[id="${prefixedId}-text"]`);
|
|
3183
|
+
if (elem !== null) elem.addEventListener("click", function() {
|
|
3184
|
+
callbackFunction();
|
|
3185
|
+
});
|
|
3186
|
+
});
|
|
3187
|
+
}, "pushFun");
|
|
3188
|
+
var ganttDb_default = {
|
|
3189
|
+
getConfig: /* @__PURE__ */ __name(() => getConfig2().gantt, "getConfig"),
|
|
3190
|
+
clear: clear2,
|
|
3191
|
+
setDateFormat,
|
|
3192
|
+
getDateFormat,
|
|
3193
|
+
enableInclusiveEndDates,
|
|
3194
|
+
endDatesAreInclusive,
|
|
3195
|
+
enableTopAxis,
|
|
3196
|
+
topAxisEnabled,
|
|
3197
|
+
setAxisFormat,
|
|
3198
|
+
getAxisFormat,
|
|
3199
|
+
setTickInterval,
|
|
3200
|
+
getTickInterval,
|
|
3201
|
+
setTodayMarker,
|
|
3202
|
+
getTodayMarker,
|
|
3203
|
+
setAccTitle,
|
|
3204
|
+
getAccTitle,
|
|
3205
|
+
setDiagramTitle,
|
|
3206
|
+
getDiagramTitle,
|
|
3207
|
+
setDiagramId,
|
|
3208
|
+
setDisplayMode,
|
|
3209
|
+
getDisplayMode,
|
|
3210
|
+
setAccDescription,
|
|
3211
|
+
getAccDescription,
|
|
3212
|
+
addSection,
|
|
3213
|
+
getSections,
|
|
3214
|
+
getTasks,
|
|
3215
|
+
addTask,
|
|
3216
|
+
findTaskById,
|
|
3217
|
+
addTaskOrg,
|
|
3218
|
+
setIncludes,
|
|
3219
|
+
getIncludes,
|
|
3220
|
+
setExcludes,
|
|
3221
|
+
getExcludes,
|
|
3222
|
+
setClickEvent: /* @__PURE__ */ __name(function(ids, functionName, functionArgs) {
|
|
3223
|
+
ids.split(",").forEach(function(id) {
|
|
3224
|
+
setClickFun(id, functionName, functionArgs);
|
|
3225
|
+
});
|
|
3226
|
+
setClass(ids, "clickable");
|
|
3227
|
+
}, "setClickEvent"),
|
|
3228
|
+
setLink,
|
|
3229
|
+
getLinks,
|
|
3230
|
+
bindFunctions: /* @__PURE__ */ __name(function(element) {
|
|
3231
|
+
funs.forEach(function(fun) {
|
|
3232
|
+
fun(element);
|
|
3233
|
+
});
|
|
3234
|
+
}, "bindFunctions"),
|
|
3235
|
+
parseDuration,
|
|
3236
|
+
isInvalidDate,
|
|
3237
|
+
setWeekday,
|
|
3238
|
+
getWeekday,
|
|
3239
|
+
setWeekend
|
|
3240
|
+
};
|
|
3241
|
+
function getTaskTags(data, task, tags2) {
|
|
3242
|
+
let matchFound = true;
|
|
3243
|
+
while (matchFound) {
|
|
3244
|
+
matchFound = false;
|
|
3245
|
+
tags2.forEach(function(t) {
|
|
3246
|
+
const pattern = "^\\s*" + t + "\\s*$";
|
|
3247
|
+
const regex = new RegExp(pattern);
|
|
3248
|
+
if (data[0].match(regex)) {
|
|
3249
|
+
task[t] = true;
|
|
3250
|
+
data.shift(1);
|
|
3251
|
+
matchFound = true;
|
|
3252
|
+
}
|
|
3253
|
+
});
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
__name(getTaskTags, "getTaskTags");
|
|
3257
|
+
import_dayjs_min.default.extend(import_duration.default);
|
|
3258
|
+
var setConf = /* @__PURE__ */ __name(function() {
|
|
3259
|
+
log.debug("Something is calling, setConf, remove the call");
|
|
3260
|
+
}, "setConf");
|
|
3261
|
+
var mapWeekdayToTimeFunction = {
|
|
3262
|
+
monday: timeMonday,
|
|
3263
|
+
tuesday: timeTuesday,
|
|
3264
|
+
wednesday: timeWednesday,
|
|
3265
|
+
thursday: timeThursday,
|
|
3266
|
+
friday: timeFriday,
|
|
3267
|
+
saturday: timeSaturday,
|
|
3268
|
+
sunday: timeSunday
|
|
3269
|
+
};
|
|
3270
|
+
var getMaxIntersections = /* @__PURE__ */ __name((tasks2, orderOffset) => {
|
|
3271
|
+
let timeline = [...tasks2].map(() => -Infinity);
|
|
3272
|
+
let sorted = [...tasks2].sort((a, b) => a.startTime - b.startTime || a.order - b.order);
|
|
3273
|
+
let maxIntersections = 0;
|
|
3274
|
+
for (const element of sorted) for (let j = 0; j < timeline.length; j++) if (element.startTime >= timeline[j]) {
|
|
3275
|
+
timeline[j] = element.endTime;
|
|
3276
|
+
element.order = j + orderOffset;
|
|
3277
|
+
if (j > maxIntersections) maxIntersections = j;
|
|
3278
|
+
break;
|
|
3279
|
+
}
|
|
3280
|
+
return maxIntersections;
|
|
3281
|
+
}, "getMaxIntersections");
|
|
3282
|
+
var w;
|
|
3283
|
+
var MAX_TICK_COUNT = 1e4;
|
|
3284
|
+
var diagram = {
|
|
3285
|
+
parser: gantt_default,
|
|
3286
|
+
db: ganttDb_default,
|
|
3287
|
+
renderer: {
|
|
3288
|
+
setConf,
|
|
3289
|
+
draw: /* @__PURE__ */ __name(function(text, id, version, diagObj) {
|
|
3290
|
+
const conf = getConfig2().gantt;
|
|
3291
|
+
diagObj.db.setDiagramId(id);
|
|
3292
|
+
const securityLevel = getConfig2().securityLevel;
|
|
3293
|
+
let sandboxElement;
|
|
3294
|
+
if (securityLevel === "sandbox") sandboxElement = select_default("#i" + id);
|
|
3295
|
+
const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
|
|
3296
|
+
const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
|
|
3297
|
+
const elem = doc.getElementById(id);
|
|
3298
|
+
w = elem.parentElement.offsetWidth;
|
|
3299
|
+
if (w === void 0) w = 1200;
|
|
3300
|
+
if (conf.useWidth !== void 0) w = conf.useWidth;
|
|
3301
|
+
const taskArray = diagObj.db.getTasks();
|
|
3302
|
+
const tasksWithoutVert = taskArray.filter((task) => !task.vert);
|
|
3303
|
+
let categories = [];
|
|
3304
|
+
for (const element of tasksWithoutVert) categories.push(element.type);
|
|
3305
|
+
categories = checkUnique(categories);
|
|
3306
|
+
const categoryHeights = {};
|
|
3307
|
+
let h = 2 * conf.topPadding;
|
|
3308
|
+
if (diagObj.db.getDisplayMode() === "compact" || conf.displayMode === "compact") {
|
|
3309
|
+
const categoryElements = {};
|
|
3310
|
+
for (const element of tasksWithoutVert) if (categoryElements[element.section] === void 0) categoryElements[element.section] = [element];
|
|
3311
|
+
else categoryElements[element.section].push(element);
|
|
3312
|
+
let intersections = 0;
|
|
3313
|
+
for (const category of Object.keys(categoryElements)) {
|
|
3314
|
+
const categoryHeight = getMaxIntersections(categoryElements[category], intersections) + 1;
|
|
3315
|
+
intersections += categoryHeight;
|
|
3316
|
+
h += categoryHeight * (conf.barHeight + conf.barGap);
|
|
3317
|
+
categoryHeights[category] = categoryHeight;
|
|
3318
|
+
}
|
|
3319
|
+
} else {
|
|
3320
|
+
h += tasksWithoutVert.length * (conf.barHeight + conf.barGap);
|
|
3321
|
+
for (const category of categories) categoryHeights[category] = tasksWithoutVert.filter((task) => task.type === category).length;
|
|
3322
|
+
}
|
|
3323
|
+
elem.setAttribute("viewBox", "0 0 " + w + " " + h);
|
|
3324
|
+
const svg = root.select(`[id="${id}"]`);
|
|
3325
|
+
const timeScale = time().domain([min(taskArray, function(d) {
|
|
3326
|
+
return d.startTime;
|
|
3327
|
+
}), max(taskArray, function(d) {
|
|
3328
|
+
return d.endTime;
|
|
3329
|
+
})]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);
|
|
3330
|
+
function taskCompare(a, b) {
|
|
3331
|
+
const taskA = a.startTime;
|
|
3332
|
+
const taskB = b.startTime;
|
|
3333
|
+
let result = 0;
|
|
3334
|
+
if (taskA > taskB) result = 1;
|
|
3335
|
+
else if (taskA < taskB) result = -1;
|
|
3336
|
+
return result;
|
|
3337
|
+
}
|
|
3338
|
+
__name(taskCompare, "taskCompare");
|
|
3339
|
+
taskArray.sort(taskCompare);
|
|
3340
|
+
makeGantt(taskArray, w, h);
|
|
3341
|
+
configureSvgSize(svg, h, w, conf.useMaxWidth);
|
|
3342
|
+
svg.append("text").text(diagObj.db.getDiagramTitle()).attr("x", w / 2).attr("y", conf.titleTopMargin).attr("class", "titleText");
|
|
3343
|
+
function makeGantt(tasks2, pageWidth, pageHeight) {
|
|
3344
|
+
const barHeight = conf.barHeight;
|
|
3345
|
+
const gap = barHeight + conf.barGap;
|
|
3346
|
+
const topPadding = conf.topPadding;
|
|
3347
|
+
const leftPadding = conf.leftPadding;
|
|
3348
|
+
const colorScale = linear().domain([0, categories.length]).range(["#00B9FA", "#F95002"]).interpolate(hcl_default);
|
|
3349
|
+
drawExcludeDays(gap, topPadding, leftPadding, pageWidth, pageHeight, tasks2, diagObj.db.getExcludes(), diagObj.db.getIncludes());
|
|
3350
|
+
makeGrid(leftPadding, topPadding, pageWidth, pageHeight);
|
|
3351
|
+
drawRects(tasks2, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth, pageHeight);
|
|
3352
|
+
vertLabels(gap, topPadding, leftPadding, barHeight, colorScale);
|
|
3353
|
+
drawToday(leftPadding, topPadding, pageWidth, pageHeight);
|
|
3354
|
+
}
|
|
3355
|
+
__name(makeGantt, "makeGantt");
|
|
3356
|
+
function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w2) {
|
|
3357
|
+
theArray.sort((a, b) => a.vert === b.vert ? 0 : a.vert ? 1 : -1);
|
|
3358
|
+
const tasksWithoutVert2 = theArray.filter((task) => !task.vert);
|
|
3359
|
+
const uniqueTasks = [...new Set(tasksWithoutVert2.map((item) => item.order))].map((id2) => tasksWithoutVert2.find((item) => item.order === id2));
|
|
3360
|
+
svg.append("g").selectAll("rect").data(uniqueTasks).enter().append("rect").attr("x", 0).attr("y", function(d, i) {
|
|
3361
|
+
i = d.order;
|
|
3362
|
+
return i * theGap + theTopPad - 2;
|
|
3363
|
+
}).attr("width", function() {
|
|
3364
|
+
return w2 - conf.rightPadding / 2;
|
|
3365
|
+
}).attr("height", theGap).attr("class", function(d) {
|
|
3366
|
+
for (const [i, category] of categories.entries()) if (d.type === category) return "section section" + i % conf.numberSectionStyles;
|
|
3367
|
+
return "section section0";
|
|
3368
|
+
}).enter();
|
|
3369
|
+
const rectangles = svg.append("g").selectAll("rect").data(theArray).enter();
|
|
3370
|
+
const links2 = diagObj.db.getLinks();
|
|
3371
|
+
rectangles.append("rect").attr("id", function(d) {
|
|
3372
|
+
return id + "-" + d.id;
|
|
3373
|
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(d) {
|
|
3374
|
+
if (d.milestone) return timeScale(d.startTime) + theSidePad + .5 * (timeScale(d.endTime) - timeScale(d.startTime)) - .5 * theBarHeight;
|
|
3375
|
+
return timeScale(d.startTime) + theSidePad;
|
|
3376
|
+
}).attr("y", function(d, i) {
|
|
3377
|
+
i = d.order;
|
|
3378
|
+
if (d.vert) return conf.gridLineStartPadding;
|
|
3379
|
+
return i * theGap + theTopPad;
|
|
3380
|
+
}).attr("width", function(d) {
|
|
3381
|
+
if (d.milestone) return theBarHeight;
|
|
3382
|
+
if (d.vert) return .08 * theBarHeight;
|
|
3383
|
+
return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);
|
|
3384
|
+
}).attr("height", function(d) {
|
|
3385
|
+
if (d.vert) return tasksWithoutVert2.length * (conf.barHeight + conf.barGap) + conf.barHeight * 2;
|
|
3386
|
+
return theBarHeight;
|
|
3387
|
+
}).attr("transform-origin", function(d, i) {
|
|
3388
|
+
i = d.order;
|
|
3389
|
+
return (timeScale(d.startTime) + theSidePad + .5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + "px " + (i * theGap + theTopPad + .5 * theBarHeight).toString() + "px";
|
|
3390
|
+
}).attr("class", function(d) {
|
|
3391
|
+
const res = "task";
|
|
3392
|
+
let classStr = "";
|
|
3393
|
+
if (d.classes.length > 0) classStr = d.classes.join(" ");
|
|
3394
|
+
let secNum = 0;
|
|
3395
|
+
for (const [i, category] of categories.entries()) if (d.type === category) secNum = i % conf.numberSectionStyles;
|
|
3396
|
+
let taskClass = "";
|
|
3397
|
+
if (d.active) if (d.crit) taskClass += " activeCrit";
|
|
3398
|
+
else taskClass = " active";
|
|
3399
|
+
else if (d.done) if (d.crit) taskClass = " doneCrit";
|
|
3400
|
+
else taskClass = " done";
|
|
3401
|
+
else if (d.crit) taskClass += " crit";
|
|
3402
|
+
if (taskClass.length === 0) taskClass = " task";
|
|
3403
|
+
if (d.milestone) taskClass = " milestone " + taskClass;
|
|
3404
|
+
if (d.vert) taskClass = " vert " + taskClass;
|
|
3405
|
+
taskClass += secNum;
|
|
3406
|
+
taskClass += " " + classStr;
|
|
3407
|
+
return res + taskClass;
|
|
3408
|
+
});
|
|
3409
|
+
rectangles.append("text").attr("id", function(d) {
|
|
3410
|
+
return id + "-" + d.id + "-text";
|
|
3411
|
+
}).text(function(d) {
|
|
3412
|
+
return d.task;
|
|
3413
|
+
}).attr("font-size", conf.fontSize).attr("x", function(d) {
|
|
3414
|
+
let startX = timeScale(d.startTime);
|
|
3415
|
+
let endX = timeScale(d.renderEndTime || d.endTime);
|
|
3416
|
+
if (d.milestone) {
|
|
3417
|
+
startX += .5 * (timeScale(d.endTime) - timeScale(d.startTime)) - .5 * theBarHeight;
|
|
3418
|
+
endX = startX + theBarHeight;
|
|
3419
|
+
}
|
|
3420
|
+
if (d.vert) return timeScale(d.startTime) + theSidePad;
|
|
3421
|
+
const textWidth = this.getBBox().width;
|
|
3422
|
+
if (textWidth > endX - startX) if (endX + textWidth + 1.5 * conf.leftPadding > w2) return startX + theSidePad - 5;
|
|
3423
|
+
else return endX + theSidePad + 5;
|
|
3424
|
+
else return (endX - startX) / 2 + startX + theSidePad;
|
|
3425
|
+
}).attr("y", function(d, i) {
|
|
3426
|
+
if (d.vert) return conf.gridLineStartPadding + tasksWithoutVert2.length * (conf.barHeight + conf.barGap) + 60;
|
|
3427
|
+
i = d.order;
|
|
3428
|
+
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
|
|
3429
|
+
}).attr("text-height", theBarHeight).attr("class", function(d) {
|
|
3430
|
+
const startX = timeScale(d.startTime);
|
|
3431
|
+
let endX = timeScale(d.endTime);
|
|
3432
|
+
if (d.milestone) endX = startX + theBarHeight;
|
|
3433
|
+
const textWidth = this.getBBox().width;
|
|
3434
|
+
let classStr = "";
|
|
3435
|
+
if (d.classes.length > 0) classStr = d.classes.join(" ");
|
|
3436
|
+
let secNum = 0;
|
|
3437
|
+
for (const [i, category] of categories.entries()) if (d.type === category) secNum = i % conf.numberSectionStyles;
|
|
3438
|
+
let taskType = "";
|
|
3439
|
+
if (d.active) if (d.crit) taskType = "activeCritText" + secNum;
|
|
3440
|
+
else taskType = "activeText" + secNum;
|
|
3441
|
+
if (d.done) if (d.crit) taskType = taskType + " doneCritText" + secNum;
|
|
3442
|
+
else taskType = taskType + " doneText" + secNum;
|
|
3443
|
+
else if (d.crit) taskType = taskType + " critText" + secNum;
|
|
3444
|
+
if (d.milestone) taskType += " milestoneText";
|
|
3445
|
+
if (d.vert) taskType += " vertText";
|
|
3446
|
+
if (textWidth > endX - startX) if (endX + textWidth + 1.5 * conf.leftPadding > w2) return classStr + " taskTextOutsideLeft taskTextOutside" + secNum + " " + taskType;
|
|
3447
|
+
else return classStr + " taskTextOutsideRight taskTextOutside" + secNum + " " + taskType + " width-" + textWidth;
|
|
3448
|
+
else return classStr + " taskText taskText" + secNum + " " + taskType + " width-" + textWidth;
|
|
3449
|
+
});
|
|
3450
|
+
if (getConfig2().securityLevel === "sandbox") {
|
|
3451
|
+
let sandboxElement2;
|
|
3452
|
+
sandboxElement2 = select_default("#i" + id);
|
|
3453
|
+
const doc2 = sandboxElement2.nodes()[0].contentDocument;
|
|
3454
|
+
rectangles.filter(function(d) {
|
|
3455
|
+
return links2.has(d.id);
|
|
3456
|
+
}).each(function(o) {
|
|
3457
|
+
var taskRect = doc2.querySelector("#" + CSS.escape(id + "-" + o.id));
|
|
3458
|
+
var taskText = doc2.querySelector("#" + CSS.escape(id + "-" + o.id + "-text"));
|
|
3459
|
+
const oldParent = taskRect.parentNode;
|
|
3460
|
+
var Link = doc2.createElement("a");
|
|
3461
|
+
Link.setAttribute("xlink:href", links2.get(o.id));
|
|
3462
|
+
Link.setAttribute("target", "_top");
|
|
3463
|
+
oldParent.appendChild(Link);
|
|
3464
|
+
Link.appendChild(taskRect);
|
|
3465
|
+
Link.appendChild(taskText);
|
|
3466
|
+
});
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
__name(drawRects, "drawRects");
|
|
3470
|
+
function drawExcludeDays(theGap, theTopPad, theSidePad, w2, h2, tasks2, excludes2, includes2) {
|
|
3471
|
+
if (excludes2.length === 0 && includes2.length === 0) return;
|
|
3472
|
+
let minTime;
|
|
3473
|
+
let maxTime;
|
|
3474
|
+
for (const { startTime, endTime } of tasks2) {
|
|
3475
|
+
if (minTime === void 0 || startTime < minTime) minTime = startTime;
|
|
3476
|
+
if (maxTime === void 0 || endTime > maxTime) maxTime = endTime;
|
|
3477
|
+
}
|
|
3478
|
+
if (!minTime || !maxTime) return;
|
|
3479
|
+
if ((0, import_dayjs_min.default)(maxTime).diff((0, import_dayjs_min.default)(minTime), "year") > 5) {
|
|
3480
|
+
log.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");
|
|
3481
|
+
return;
|
|
3482
|
+
}
|
|
3483
|
+
const dateFormat2 = diagObj.db.getDateFormat();
|
|
3484
|
+
const excludeRanges = [];
|
|
3485
|
+
let range = null;
|
|
3486
|
+
let d = (0, import_dayjs_min.default)(minTime);
|
|
3487
|
+
while (d.valueOf() <= maxTime) {
|
|
3488
|
+
if (diagObj.db.isInvalidDate(d, dateFormat2, excludes2, includes2)) if (!range) range = {
|
|
3489
|
+
start: d,
|
|
3490
|
+
end: d
|
|
3491
|
+
};
|
|
3492
|
+
else range.end = d;
|
|
3493
|
+
else if (range) {
|
|
3494
|
+
excludeRanges.push(range);
|
|
3495
|
+
range = null;
|
|
3496
|
+
}
|
|
3497
|
+
d = d.add(1, "d");
|
|
3498
|
+
}
|
|
3499
|
+
svg.append("g").selectAll("rect").data(excludeRanges).enter().append("rect").attr("id", (d2) => id + "-exclude-" + d2.start.format("YYYY-MM-DD")).attr("x", (d2) => timeScale(d2.start.startOf("day")) + theSidePad).attr("y", conf.gridLineStartPadding).attr("width", (d2) => timeScale(d2.end.endOf("day")) - timeScale(d2.start.startOf("day"))).attr("height", h2 - theTopPad - conf.gridLineStartPadding).attr("transform-origin", function(d2, i) {
|
|
3500
|
+
return (timeScale(d2.start) + theSidePad + .5 * (timeScale(d2.end) - timeScale(d2.start))).toString() + "px " + (i * theGap + .5 * h2).toString() + "px";
|
|
3501
|
+
}).attr("class", "exclude-range");
|
|
3502
|
+
}
|
|
3503
|
+
__name(drawExcludeDays, "drawExcludeDays");
|
|
3504
|
+
function getEstimatedTickCount(minTime, maxTime, every, interval) {
|
|
3505
|
+
if (every <= 0 || minTime > maxTime) return Infinity;
|
|
3506
|
+
const timeDiffMs = maxTime - minTime;
|
|
3507
|
+
const intervalMs = import_dayjs_min.default.duration({ [interval ?? "day"]: every }).asMilliseconds();
|
|
3508
|
+
if (intervalMs <= 0) return Infinity;
|
|
3509
|
+
return Math.ceil(timeDiffMs / intervalMs);
|
|
3510
|
+
}
|
|
3511
|
+
__name(getEstimatedTickCount, "getEstimatedTickCount");
|
|
3512
|
+
function makeGrid(theSidePad, theTopPad, w2, h2) {
|
|
3513
|
+
const dateFormat2 = diagObj.db.getDateFormat();
|
|
3514
|
+
const userAxisFormat = diagObj.db.getAxisFormat();
|
|
3515
|
+
let axisFormat2;
|
|
3516
|
+
if (userAxisFormat) axisFormat2 = userAxisFormat;
|
|
3517
|
+
else if (dateFormat2 === "D") axisFormat2 = "%d";
|
|
3518
|
+
else axisFormat2 = conf.axisFormat ?? "%Y-%m-%d";
|
|
3519
|
+
let bottomXAxis = axisBottom(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));
|
|
3520
|
+
const resultTickInterval = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(diagObj.db.getTickInterval() || conf.tickInterval);
|
|
3521
|
+
if (resultTickInterval !== null) {
|
|
3522
|
+
const every = parseInt(resultTickInterval[1], 10);
|
|
3523
|
+
if (isNaN(every) || every <= 0) log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);
|
|
3524
|
+
else {
|
|
3525
|
+
const interval = resultTickInterval[2];
|
|
3526
|
+
const weekday2 = diagObj.db.getWeekday() || conf.weekday;
|
|
3527
|
+
const domain = timeScale.domain();
|
|
3528
|
+
const minTime = domain[0];
|
|
3529
|
+
const maxTime = domain[1];
|
|
3530
|
+
const estimatedTicks = getEstimatedTickCount(minTime, maxTime, every, interval);
|
|
3531
|
+
if (estimatedTicks > MAX_TICK_COUNT) log.warn(`The tick interval "${every}${interval}" would generate ${estimatedTicks} ticks, which exceeds the maximum allowed (${MAX_TICK_COUNT}). This may indicate an invalid date or time range. Skipping custom tick interval.`);
|
|
3532
|
+
else switch (interval) {
|
|
3533
|
+
case "millisecond":
|
|
3534
|
+
bottomXAxis.ticks(millisecond.every(every));
|
|
3535
|
+
break;
|
|
3536
|
+
case "second":
|
|
3537
|
+
bottomXAxis.ticks(second.every(every));
|
|
3538
|
+
break;
|
|
3539
|
+
case "minute":
|
|
3540
|
+
bottomXAxis.ticks(timeMinute.every(every));
|
|
3541
|
+
break;
|
|
3542
|
+
case "hour":
|
|
3543
|
+
bottomXAxis.ticks(timeHour.every(every));
|
|
3544
|
+
break;
|
|
3545
|
+
case "day":
|
|
3546
|
+
bottomXAxis.ticks(timeDay.every(every));
|
|
3547
|
+
break;
|
|
3548
|
+
case "week":
|
|
3549
|
+
bottomXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
|
|
3550
|
+
break;
|
|
3551
|
+
case "month":
|
|
3552
|
+
bottomXAxis.ticks(timeMonth.every(every));
|
|
3553
|
+
break;
|
|
3554
|
+
}
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + (h2 - 50) + ")").call(bottomXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em");
|
|
3558
|
+
if (diagObj.db.topAxisEnabled() || conf.topAxis) {
|
|
3559
|
+
let topXAxis = axisTop(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat(timeFormat(axisFormat2));
|
|
3560
|
+
if (resultTickInterval !== null) {
|
|
3561
|
+
const every = parseInt(resultTickInterval[1], 10);
|
|
3562
|
+
if (isNaN(every) || every <= 0) log.warn(`Invalid tick interval value: "${resultTickInterval[1]}". Skipping custom tick interval.`);
|
|
3563
|
+
else {
|
|
3564
|
+
const interval = resultTickInterval[2];
|
|
3565
|
+
const weekday2 = diagObj.db.getWeekday() || conf.weekday;
|
|
3566
|
+
const domain = timeScale.domain();
|
|
3567
|
+
const minTime = domain[0];
|
|
3568
|
+
const maxTime = domain[1];
|
|
3569
|
+
if (getEstimatedTickCount(minTime, maxTime, every, interval) <= MAX_TICK_COUNT) switch (interval) {
|
|
3570
|
+
case "millisecond":
|
|
3571
|
+
topXAxis.ticks(millisecond.every(every));
|
|
3572
|
+
break;
|
|
3573
|
+
case "second":
|
|
3574
|
+
topXAxis.ticks(second.every(every));
|
|
3575
|
+
break;
|
|
3576
|
+
case "minute":
|
|
3577
|
+
topXAxis.ticks(timeMinute.every(every));
|
|
3578
|
+
break;
|
|
3579
|
+
case "hour":
|
|
3580
|
+
topXAxis.ticks(timeHour.every(every));
|
|
3581
|
+
break;
|
|
3582
|
+
case "day":
|
|
3583
|
+
topXAxis.ticks(timeDay.every(every));
|
|
3584
|
+
break;
|
|
3585
|
+
case "week":
|
|
3586
|
+
topXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
|
|
3587
|
+
break;
|
|
3588
|
+
case "month":
|
|
3589
|
+
topXAxis.ticks(timeMonth.every(every));
|
|
3590
|
+
break;
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + theTopPad + ")").call(topXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
|
3595
|
+
}
|
|
3596
|
+
}
|
|
3597
|
+
__name(makeGrid, "makeGrid");
|
|
3598
|
+
function vertLabels(theGap, theTopPad) {
|
|
3599
|
+
let prevGap = 0;
|
|
3600
|
+
const numOccurrences = Object.keys(categoryHeights).map((d) => [d, categoryHeights[d]]);
|
|
3601
|
+
svg.append("g").selectAll("text").data(numOccurrences).enter().append(function(d) {
|
|
3602
|
+
const rows = d[0].split(common_default.lineBreakRegex);
|
|
3603
|
+
const dy = -(rows.length - 1) / 2;
|
|
3604
|
+
const svgLabel = doc.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
3605
|
+
svgLabel.setAttribute("dy", dy + "em");
|
|
3606
|
+
for (const [j, row] of rows.entries()) {
|
|
3607
|
+
const tspan = doc.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
3608
|
+
tspan.setAttribute("alignment-baseline", "central");
|
|
3609
|
+
tspan.setAttribute("x", "10");
|
|
3610
|
+
if (j > 0) tspan.setAttribute("dy", "1em");
|
|
3611
|
+
tspan.textContent = row;
|
|
3612
|
+
svgLabel.appendChild(tspan);
|
|
3613
|
+
}
|
|
3614
|
+
return svgLabel;
|
|
3615
|
+
}).attr("x", 10).attr("y", function(d, i) {
|
|
3616
|
+
if (i > 0) for (let j = 0; j < i; j++) {
|
|
3617
|
+
prevGap += numOccurrences[i - 1][1];
|
|
3618
|
+
return d[1] * theGap / 2 + prevGap * theGap + theTopPad;
|
|
3619
|
+
}
|
|
3620
|
+
else return d[1] * theGap / 2 + theTopPad;
|
|
3621
|
+
}).attr("font-size", conf.sectionFontSize).attr("class", function(d) {
|
|
3622
|
+
for (const [i, category] of categories.entries()) if (d[0] === category) return "sectionTitle sectionTitle" + i % conf.numberSectionStyles;
|
|
3623
|
+
return "sectionTitle";
|
|
3624
|
+
});
|
|
3625
|
+
}
|
|
3626
|
+
__name(vertLabels, "vertLabels");
|
|
3627
|
+
function drawToday(theSidePad, theTopPad, w2, h2) {
|
|
3628
|
+
const todayMarker2 = diagObj.db.getTodayMarker();
|
|
3629
|
+
if (todayMarker2 === "off") return;
|
|
3630
|
+
const todayG = svg.append("g").attr("class", "today");
|
|
3631
|
+
const today = /* @__PURE__ */ new Date();
|
|
3632
|
+
const todayLine = todayG.append("line");
|
|
3633
|
+
todayLine.attr("x1", timeScale(today) + theSidePad).attr("x2", timeScale(today) + theSidePad).attr("y1", conf.titleTopMargin).attr("y2", h2 - conf.titleTopMargin).attr("class", "today");
|
|
3634
|
+
if (todayMarker2 !== "") todayLine.attr("style", todayMarker2.replace(/,/g, ";"));
|
|
3635
|
+
}
|
|
3636
|
+
__name(drawToday, "drawToday");
|
|
3637
|
+
function checkUnique(arr) {
|
|
3638
|
+
const hash = {};
|
|
3639
|
+
const result = [];
|
|
3640
|
+
for (let i = 0, l = arr.length; i < l; ++i) if (!Object.prototype.hasOwnProperty.call(hash, arr[i])) {
|
|
3641
|
+
hash[arr[i]] = true;
|
|
3642
|
+
result.push(arr[i]);
|
|
3643
|
+
}
|
|
3644
|
+
return result;
|
|
3645
|
+
}
|
|
3646
|
+
__name(checkUnique, "checkUnique");
|
|
3647
|
+
}, "draw")
|
|
3648
|
+
},
|
|
3649
|
+
styles: /* @__PURE__ */ __name((options) => `
|
|
3650
|
+
.mermaid-main-font {
|
|
3651
|
+
font-family: ${options.fontFamily};
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
.exclude-range {
|
|
3655
|
+
fill: ${options.excludeBkgColor};
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
.section {
|
|
3659
|
+
stroke: none;
|
|
3660
|
+
opacity: 0.2;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
.section0 {
|
|
3664
|
+
fill: ${options.sectionBkgColor};
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
.section2 {
|
|
3668
|
+
fill: ${options.sectionBkgColor2};
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
.section1,
|
|
3672
|
+
.section3 {
|
|
3673
|
+
fill: ${options.altSectionBkgColor};
|
|
3674
|
+
opacity: 0.2;
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
.sectionTitle0 {
|
|
3678
|
+
fill: ${options.titleColor};
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
.sectionTitle1 {
|
|
3682
|
+
fill: ${options.titleColor};
|
|
3683
|
+
}
|
|
3684
|
+
|
|
3685
|
+
.sectionTitle2 {
|
|
3686
|
+
fill: ${options.titleColor};
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
.sectionTitle3 {
|
|
3690
|
+
fill: ${options.titleColor};
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
.sectionTitle {
|
|
3694
|
+
text-anchor: start;
|
|
3695
|
+
font-family: ${options.fontFamily};
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
/* Grid and axis */
|
|
3700
|
+
|
|
3701
|
+
.grid .tick {
|
|
3702
|
+
stroke: ${options.gridColor};
|
|
3703
|
+
opacity: 0.8;
|
|
3704
|
+
shape-rendering: crispEdges;
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3707
|
+
.grid .tick text {
|
|
3708
|
+
font-family: ${options.fontFamily};
|
|
3709
|
+
fill: ${options.textColor};
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
.grid path {
|
|
3713
|
+
stroke-width: 0;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
/* Today line */
|
|
3718
|
+
|
|
3719
|
+
.today {
|
|
3720
|
+
fill: none;
|
|
3721
|
+
stroke: ${options.todayLineColor};
|
|
3722
|
+
stroke-width: 2px;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
|
|
3726
|
+
/* Task styling */
|
|
3727
|
+
|
|
3728
|
+
/* Default task */
|
|
3729
|
+
|
|
3730
|
+
.task {
|
|
3731
|
+
stroke-width: 2;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
.taskText {
|
|
3735
|
+
text-anchor: middle;
|
|
3736
|
+
font-family: ${options.fontFamily};
|
|
3737
|
+
}
|
|
3738
|
+
|
|
3739
|
+
.taskTextOutsideRight {
|
|
3740
|
+
fill: ${options.taskTextDarkColor};
|
|
3741
|
+
text-anchor: start;
|
|
3742
|
+
font-family: ${options.fontFamily};
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
.taskTextOutsideLeft {
|
|
3746
|
+
fill: ${options.taskTextDarkColor};
|
|
3747
|
+
text-anchor: end;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
/* Special case clickable */
|
|
3752
|
+
|
|
3753
|
+
.task.clickable {
|
|
3754
|
+
cursor: pointer;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
.taskText.clickable {
|
|
3758
|
+
cursor: pointer;
|
|
3759
|
+
fill: ${options.taskTextClickableColor} !important;
|
|
3760
|
+
font-weight: bold;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
.taskTextOutsideLeft.clickable {
|
|
3764
|
+
cursor: pointer;
|
|
3765
|
+
fill: ${options.taskTextClickableColor} !important;
|
|
3766
|
+
font-weight: bold;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
.taskTextOutsideRight.clickable {
|
|
3770
|
+
cursor: pointer;
|
|
3771
|
+
fill: ${options.taskTextClickableColor} !important;
|
|
3772
|
+
font-weight: bold;
|
|
3773
|
+
}
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
/* Specific task settings for the sections*/
|
|
3777
|
+
|
|
3778
|
+
.taskText0,
|
|
3779
|
+
.taskText1,
|
|
3780
|
+
.taskText2,
|
|
3781
|
+
.taskText3 {
|
|
3782
|
+
fill: ${options.taskTextColor};
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
.task0,
|
|
3786
|
+
.task1,
|
|
3787
|
+
.task2,
|
|
3788
|
+
.task3 {
|
|
3789
|
+
fill: ${options.taskBkgColor};
|
|
3790
|
+
stroke: ${options.taskBorderColor};
|
|
3791
|
+
}
|
|
3792
|
+
|
|
3793
|
+
.taskTextOutside0,
|
|
3794
|
+
.taskTextOutside2
|
|
3795
|
+
{
|
|
3796
|
+
fill: ${options.taskTextOutsideColor};
|
|
3797
|
+
}
|
|
3798
|
+
|
|
3799
|
+
.taskTextOutside1,
|
|
3800
|
+
.taskTextOutside3 {
|
|
3801
|
+
fill: ${options.taskTextOutsideColor};
|
|
3802
|
+
}
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
/* Active task */
|
|
3806
|
+
|
|
3807
|
+
.active0,
|
|
3808
|
+
.active1,
|
|
3809
|
+
.active2,
|
|
3810
|
+
.active3 {
|
|
3811
|
+
fill: ${options.activeTaskBkgColor};
|
|
3812
|
+
stroke: ${options.activeTaskBorderColor};
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
.activeText0,
|
|
3816
|
+
.activeText1,
|
|
3817
|
+
.activeText2,
|
|
3818
|
+
.activeText3 {
|
|
3819
|
+
fill: ${options.taskTextDarkColor} !important;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
/* Completed task */
|
|
3824
|
+
|
|
3825
|
+
.done0,
|
|
3826
|
+
.done1,
|
|
3827
|
+
.done2,
|
|
3828
|
+
.done3 {
|
|
3829
|
+
stroke: ${options.doneTaskBorderColor};
|
|
3830
|
+
fill: ${options.doneTaskBkgColor};
|
|
3831
|
+
stroke-width: 2;
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
.doneText0,
|
|
3835
|
+
.doneText1,
|
|
3836
|
+
.doneText2,
|
|
3837
|
+
.doneText3 {
|
|
3838
|
+
fill: ${options.taskTextDarkColor} !important;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
/* Done task text displayed outside the bar sits against the diagram background,
|
|
3842
|
+
not against the done-task bar, so it must use the outside/contrast color. */
|
|
3843
|
+
.doneText0.taskTextOutsideLeft,
|
|
3844
|
+
.doneText0.taskTextOutsideRight,
|
|
3845
|
+
.doneText1.taskTextOutsideLeft,
|
|
3846
|
+
.doneText1.taskTextOutsideRight,
|
|
3847
|
+
.doneText2.taskTextOutsideLeft,
|
|
3848
|
+
.doneText2.taskTextOutsideRight,
|
|
3849
|
+
.doneText3.taskTextOutsideLeft,
|
|
3850
|
+
.doneText3.taskTextOutsideRight {
|
|
3851
|
+
fill: ${options.taskTextOutsideColor} !important;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
|
|
3855
|
+
/* Tasks on the critical line */
|
|
3856
|
+
|
|
3857
|
+
.crit0,
|
|
3858
|
+
.crit1,
|
|
3859
|
+
.crit2,
|
|
3860
|
+
.crit3 {
|
|
3861
|
+
stroke: ${options.critBorderColor};
|
|
3862
|
+
fill: ${options.critBkgColor};
|
|
3863
|
+
stroke-width: 2;
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3866
|
+
.activeCrit0,
|
|
3867
|
+
.activeCrit1,
|
|
3868
|
+
.activeCrit2,
|
|
3869
|
+
.activeCrit3 {
|
|
3870
|
+
stroke: ${options.critBorderColor};
|
|
3871
|
+
fill: ${options.activeTaskBkgColor};
|
|
3872
|
+
stroke-width: 2;
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
.doneCrit0,
|
|
3876
|
+
.doneCrit1,
|
|
3877
|
+
.doneCrit2,
|
|
3878
|
+
.doneCrit3 {
|
|
3879
|
+
stroke: ${options.critBorderColor};
|
|
3880
|
+
fill: ${options.doneTaskBkgColor};
|
|
3881
|
+
stroke-width: 2;
|
|
3882
|
+
cursor: pointer;
|
|
3883
|
+
shape-rendering: crispEdges;
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
.milestone {
|
|
3887
|
+
transform: rotate(45deg) scale(0.8,0.8);
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
.milestoneText {
|
|
3891
|
+
font-style: italic;
|
|
3892
|
+
}
|
|
3893
|
+
.doneCritText0,
|
|
3894
|
+
.doneCritText1,
|
|
3895
|
+
.doneCritText2,
|
|
3896
|
+
.doneCritText3 {
|
|
3897
|
+
fill: ${options.taskTextDarkColor} !important;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
|
3901
|
+
.doneCritText0.taskTextOutsideLeft,
|
|
3902
|
+
.doneCritText0.taskTextOutsideRight,
|
|
3903
|
+
.doneCritText1.taskTextOutsideLeft,
|
|
3904
|
+
.doneCritText1.taskTextOutsideRight,
|
|
3905
|
+
.doneCritText2.taskTextOutsideLeft,
|
|
3906
|
+
.doneCritText2.taskTextOutsideRight,
|
|
3907
|
+
.doneCritText3.taskTextOutsideLeft,
|
|
3908
|
+
.doneCritText3.taskTextOutsideRight {
|
|
3909
|
+
fill: ${options.taskTextOutsideColor} !important;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
.vert {
|
|
3913
|
+
stroke: ${options.vertLineColor};
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
.vertText {
|
|
3917
|
+
font-size: 15px;
|
|
3918
|
+
text-anchor: middle;
|
|
3919
|
+
fill: ${options.vertLineColor} !important;
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
.activeCritText0,
|
|
3923
|
+
.activeCritText1,
|
|
3924
|
+
.activeCritText2,
|
|
3925
|
+
.activeCritText3 {
|
|
3926
|
+
fill: ${options.taskTextDarkColor} !important;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
.titleText {
|
|
3930
|
+
text-anchor: middle;
|
|
3931
|
+
font-size: 18px;
|
|
3932
|
+
fill: ${options.titleColor || options.textColor};
|
|
3933
|
+
font-family: ${options.fontFamily};
|
|
3934
|
+
}
|
|
3935
|
+
`, "getStyles")
|
|
3936
|
+
};
|
|
3937
|
+
|
|
3938
|
+
//#endregion
|
|
3939
|
+
export { diagram };
|