@n8n-zengchao/chat 0.62.0

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