@layers-app/editor 0.7.18 → 0.7.21

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