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