@jaeungkim/gantt-chart 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import * as Ue from "react";
2
- import Ne, { useState as de, useMemo as _e, useEffect as xe, useRef as X } from "react";
3
- function te(r) {
4
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1
+ import * as Ne from "react";
2
+ import Ce, { useState as oe, useMemo as _e, useEffect as xe, useRef as V } from "react";
3
+ function ne(n) {
4
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
5
  }
6
6
  var Se = { exports: {} }, ge = {};
7
7
  /**
@@ -13,27 +13,27 @@ var Se = { exports: {} }, ge = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var He;
16
+ var Ue;
17
17
  function lt() {
18
- if (He) return ge;
19
- He = 1;
20
- var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
21
- function a(i, o, e) {
22
- var f = null;
23
- if (e !== void 0 && (f = "" + e), o.key !== void 0 && (f = "" + o.key), "key" in o) {
18
+ if (Ue) return ge;
19
+ Ue = 1;
20
+ var n = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
21
+ function a(i, s, e) {
22
+ var l = null;
23
+ if (e !== void 0 && (l = "" + e), s.key !== void 0 && (l = "" + s.key), "key" in s) {
24
24
  e = {};
25
- for (var u in o)
26
- u !== "key" && (e[u] = o[u]);
27
- } else e = o;
28
- return o = e.ref, {
29
- $$typeof: r,
25
+ for (var u in s)
26
+ u !== "key" && (e[u] = s[u]);
27
+ } else e = s;
28
+ return s = e.ref, {
29
+ $$typeof: n,
30
30
  type: i,
31
- key: f,
32
- ref: o !== void 0 ? o : null,
31
+ key: l,
32
+ ref: s !== void 0 ? s : null,
33
33
  props: e
34
34
  };
35
35
  }
36
- return ge.Fragment = s, ge.jsx = a, ge.jsxs = a, ge;
36
+ return ge.Fragment = o, ge.jsx = a, ge.jsxs = a, ge;
37
37
  }
38
38
  var ve = {};
39
39
  /**
@@ -48,23 +48,23 @@ var ve = {};
48
48
  var ze;
49
49
  function ft() {
50
50
  return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
51
- function r(t) {
51
+ function n(t) {
52
52
  if (t == null) return null;
53
53
  if (typeof t == "function")
54
54
  return t.$$typeof === x ? null : t.displayName || t.name || null;
55
55
  if (typeof t == "string") return t;
56
56
  switch (t) {
57
- case O:
58
- return "Fragment";
59
57
  case k:
58
+ return "Fragment";
59
+ case L:
60
60
  return "Portal";
61
- case Y:
61
+ case W:
62
62
  return "Profiler";
63
63
  case P:
64
64
  return "StrictMode";
65
65
  case B:
66
66
  return "Suspense";
67
- case he:
67
+ case ee:
68
68
  return "SuspenseList";
69
69
  }
70
70
  if (typeof t == "object")
@@ -75,45 +75,45 @@ function ft() {
75
75
  return (t.displayName || "Context") + ".Provider";
76
76
  case $:
77
77
  return (t._context.displayName || "Context") + ".Consumer";
78
- case I:
78
+ case O:
79
79
  var b = t.render;
80
80
  return t = t.displayName, t || (t = b.displayName || b.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
81
- case F:
82
- return b = t.displayName || null, b !== null ? b : r(t.type) || "Memo";
83
- case S:
81
+ case I:
82
+ return b = t.displayName || null, b !== null ? b : n(t.type) || "Memo";
83
+ case D:
84
84
  b = t._payload, t = t._init;
85
85
  try {
86
- return r(t(b));
86
+ return n(t(b));
87
87
  } catch {
88
88
  }
89
89
  }
90
90
  return null;
91
91
  }
92
- function s(t) {
92
+ function o(t) {
93
93
  return "" + t;
94
94
  }
95
95
  function a(t) {
96
96
  try {
97
- s(t);
97
+ o(t);
98
98
  var b = !1;
99
99
  } catch {
100
100
  b = !0;
101
101
  }
102
102
  if (b) {
103
103
  b = console;
104
- var w = b.error, C = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
104
+ var w = b.error, q = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
105
105
  return w.call(
106
106
  b,
107
107
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
108
- C
109
- ), s(t);
108
+ q
109
+ ), o(t);
110
110
  }
111
111
  }
112
112
  function i() {
113
113
  }
114
- function o() {
115
- if (z === 0) {
116
- J = console.log, ae = console.info, re = console.warn, ue = console.error, ne = console.group, G = console.groupCollapsed, ee = console.groupEnd;
114
+ function s() {
115
+ if (Y === 0) {
116
+ J = console.log, se = console.info, re = console.warn, de = console.error, ae = console.group, G = console.groupCollapsed, te = console.groupEnd;
117
117
  var t = {
118
118
  configurable: !0,
119
119
  enumerable: !0,
@@ -130,118 +130,118 @@ function ft() {
130
130
  groupEnd: t
131
131
  });
132
132
  }
133
- z++;
133
+ Y++;
134
134
  }
135
135
  function e() {
136
- if (z--, z === 0) {
136
+ if (Y--, Y === 0) {
137
137
  var t = { configurable: !0, enumerable: !0, writable: !0 };
138
138
  Object.defineProperties(console, {
139
- log: N({}, t, { value: J }),
140
- info: N({}, t, { value: ae }),
141
- warn: N({}, t, { value: re }),
142
- error: N({}, t, { value: ue }),
143
- group: N({}, t, { value: ne }),
144
- groupCollapsed: N({}, t, { value: G }),
145
- groupEnd: N({}, t, { value: ee })
139
+ log: C({}, t, { value: J }),
140
+ info: C({}, t, { value: se }),
141
+ warn: C({}, t, { value: re }),
142
+ error: C({}, t, { value: de }),
143
+ group: C({}, t, { value: ae }),
144
+ groupCollapsed: C({}, t, { value: G }),
145
+ groupEnd: C({}, t, { value: te })
146
146
  });
147
147
  }
148
- 0 > z && console.error(
148
+ 0 > Y && console.error(
149
149
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
150
150
  );
151
151
  }
152
- function f(t) {
153
- if (se === void 0)
152
+ function l(t) {
153
+ if (ie === void 0)
154
154
  try {
155
155
  throw Error();
156
156
  } catch (w) {
157
157
  var b = w.stack.trim().match(/\n( *(at )?)/);
158
- se = b && b[1] || "", le = -1 < w.stack.indexOf(`
158
+ ie = b && b[1] || "", fe = -1 < w.stack.indexOf(`
159
159
  at`) ? " (<anonymous>)" : -1 < w.stack.indexOf("@") ? "@unknown:0:0" : "";
160
160
  }
161
161
  return `
162
- ` + se + t + le;
162
+ ` + ie + t + fe;
163
163
  }
164
164
  function u(t, b) {
165
165
  if (!t || je) return "";
166
166
  var w = Ze.get(t);
167
167
  if (w !== void 0) return w;
168
168
  je = !0, w = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
169
- var C = null;
170
- C = L.H, L.H = null, o();
169
+ var q = null;
170
+ q = R.H, R.H = null, s();
171
171
  try {
172
- var V = {
172
+ var X = {
173
173
  DetermineComponentFrameRoot: function() {
174
174
  try {
175
175
  if (b) {
176
- var ce = function() {
176
+ var le = function() {
177
177
  throw Error();
178
178
  };
179
- if (Object.defineProperty(ce.prototype, "props", {
179
+ if (Object.defineProperty(le.prototype, "props", {
180
180
  set: function() {
181
181
  throw Error();
182
182
  }
183
183
  }), typeof Reflect == "object" && Reflect.construct) {
184
184
  try {
185
- Reflect.construct(ce, []);
186
- } catch (ie) {
187
- var ye = ie;
185
+ Reflect.construct(le, []);
186
+ } catch (ce) {
187
+ var De = ce;
188
188
  }
189
- Reflect.construct(t, [], ce);
189
+ Reflect.construct(t, [], le);
190
190
  } else {
191
191
  try {
192
- ce.call();
193
- } catch (ie) {
194
- ye = ie;
192
+ le.call();
193
+ } catch (ce) {
194
+ De = ce;
195
195
  }
196
- t.call(ce.prototype);
196
+ t.call(le.prototype);
197
197
  }
198
198
  } else {
199
199
  try {
200
200
  throw Error();
201
- } catch (ie) {
202
- ye = ie;
201
+ } catch (ce) {
202
+ De = ce;
203
203
  }
204
- (ce = t()) && typeof ce.catch == "function" && ce.catch(function() {
204
+ (le = t()) && typeof le.catch == "function" && le.catch(function() {
205
205
  });
206
206
  }
207
- } catch (ie) {
208
- if (ie && ye && typeof ie.stack == "string")
209
- return [ie.stack, ye.stack];
207
+ } catch (ce) {
208
+ if (ce && De && typeof ce.stack == "string")
209
+ return [ce.stack, De.stack];
210
210
  }
211
211
  return [null, null];
212
212
  }
213
213
  };
214
- V.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
214
+ X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
215
215
  var U = Object.getOwnPropertyDescriptor(
216
- V.DetermineComponentFrameRoot,
216
+ X.DetermineComponentFrameRoot,
217
217
  "name"
218
218
  );
219
219
  U && U.configurable && Object.defineProperty(
220
- V.DetermineComponentFrameRoot,
220
+ X.DetermineComponentFrameRoot,
221
221
  "name",
222
222
  { value: "DetermineComponentFrameRoot" }
223
223
  );
224
- var _ = V.DetermineComponentFrameRoot(), oe = _[0], me = _[1];
225
- if (oe && me) {
226
- var Q = oe.split(`
227
- `), fe = me.split(`
224
+ var _ = X.DetermineComponentFrameRoot(), ue = _[0], he = _[1];
225
+ if (ue && he) {
226
+ var Q = ue.split(`
227
+ `), pe = he.split(`
228
228
  `);
229
229
  for (_ = U = 0; U < Q.length && !Q[U].includes(
230
230
  "DetermineComponentFrameRoot"
231
231
  ); )
232
232
  U++;
233
- for (; _ < fe.length && !fe[_].includes(
233
+ for (; _ < pe.length && !pe[_].includes(
234
234
  "DetermineComponentFrameRoot"
235
235
  ); )
236
236
  _++;
237
- if (U === Q.length || _ === fe.length)
238
- for (U = Q.length - 1, _ = fe.length - 1; 1 <= U && 0 <= _ && Q[U] !== fe[_]; )
237
+ if (U === Q.length || _ === pe.length)
238
+ for (U = Q.length - 1, _ = pe.length - 1; 1 <= U && 0 <= _ && Q[U] !== pe[_]; )
239
239
  _--;
240
240
  for (; 1 <= U && 0 <= _; U--, _--)
241
- if (Q[U] !== fe[_]) {
241
+ if (Q[U] !== pe[_]) {
242
242
  if (U !== 1 || _ !== 1)
243
243
  do
244
- if (U--, _--, 0 > _ || Q[U] !== fe[_]) {
244
+ if (U--, _--, 0 > _ || Q[U] !== pe[_]) {
245
245
  var $e = `
246
246
  ` + Q[U].replace(
247
247
  " at new ",
@@ -254,11 +254,11 @@ function ft() {
254
254
  }
255
255
  }
256
256
  } finally {
257
- je = !1, L.H = C, e(), Error.prepareStackTrace = w;
257
+ je = !1, R.H = q, e(), Error.prepareStackTrace = w;
258
258
  }
259
- return Q = (Q = t ? t.displayName || t.name : "") ? f(Q) : "", typeof t == "function" && Ze.set(t, Q), Q;
259
+ return Q = (Q = t ? t.displayName || t.name : "") ? l(Q) : "", typeof t == "function" && Ze.set(t, Q), Q;
260
260
  }
261
- function h(t) {
261
+ function p(t) {
262
262
  if (t == null) return "";
263
263
  if (typeof t == "function") {
264
264
  var b = t.prototype;
@@ -267,42 +267,42 @@ function ft() {
267
267
  !(!b || !b.isReactComponent)
268
268
  );
269
269
  }
270
- if (typeof t == "string") return f(t);
270
+ if (typeof t == "string") return l(t);
271
271
  switch (t) {
272
272
  case B:
273
- return f("Suspense");
274
- case he:
275
- return f("SuspenseList");
273
+ return l("Suspense");
274
+ case ee:
275
+ return l("SuspenseList");
276
276
  }
277
277
  if (typeof t == "object")
278
278
  switch (t.$$typeof) {
279
- case I:
279
+ case O:
280
280
  return t = u(t.render, !1), t;
281
- case F:
282
- return h(t.type);
283
- case S:
281
+ case I:
282
+ return p(t.type);
283
+ case D:
284
284
  b = t._payload, t = t._init;
285
285
  try {
286
- return h(t(b));
286
+ return p(t(b));
287
287
  } catch {
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
- function p() {
293
- var t = L.A;
292
+ function m() {
293
+ var t = R.A;
294
294
  return t === null ? null : t.getOwner();
295
295
  }
296
- function m(t) {
297
- if (Z.call(t, "key")) {
296
+ function g(t) {
297
+ if (j.call(t, "key")) {
298
298
  var b = Object.getOwnPropertyDescriptor(t, "key").get;
299
299
  if (b && b.isReactWarning) return !1;
300
300
  }
301
301
  return t.key !== void 0;
302
302
  }
303
- function n(t, b) {
303
+ function r(t, b) {
304
304
  function w() {
305
- Ce || (Ce = !0, console.error(
305
+ Ae || (Ae = !0, console.error(
306
306
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
307
307
  b
308
308
  ));
@@ -313,18 +313,18 @@ function ft() {
313
313
  });
314
314
  }
315
315
  function c() {
316
- var t = r(this.type);
317
- return Ae[t] || (Ae[t] = !0, console.error(
316
+ var t = n(this.type);
317
+ return qe[t] || (qe[t] = !0, console.error(
318
318
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
319
319
  )), t = this.props.ref, t !== void 0 ? t : null;
320
320
  }
321
- function D(t, b, w, C, V, U) {
321
+ function y(t, b, w, q, X, U) {
322
322
  return w = U.ref, t = {
323
- $$typeof: R,
323
+ $$typeof: Z,
324
324
  type: t,
325
325
  key: b,
326
326
  props: U,
327
- _owner: V
327
+ _owner: X
328
328
  }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(t, "ref", {
329
329
  enumerable: !1,
330
330
  get: c
@@ -340,110 +340,110 @@ function ft() {
340
340
  value: null
341
341
  }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
342
342
  }
343
- function g(t, b, w, C, V, U) {
344
- if (typeof t == "string" || typeof t == "function" || t === O || t === Y || t === P || t === B || t === he || t === v || typeof t == "object" && t !== null && (t.$$typeof === S || t.$$typeof === F || t.$$typeof === d || t.$$typeof === $ || t.$$typeof === I || t.$$typeof === W || t.getModuleId !== void 0)) {
343
+ function h(t, b, w, q, X, U) {
344
+ if (typeof t == "string" || typeof t == "function" || t === k || t === W || t === P || t === B || t === ee || t === v || typeof t == "object" && t !== null && (t.$$typeof === D || t.$$typeof === I || t.$$typeof === d || t.$$typeof === $ || t.$$typeof === O || t.$$typeof === N || t.getModuleId !== void 0)) {
345
345
  var _ = b.children;
346
346
  if (_ !== void 0)
347
- if (C)
348
- if (H(_)) {
349
- for (C = 0; C < _.length; C++)
350
- l(_[C], t);
347
+ if (q)
348
+ if (z(_)) {
349
+ for (q = 0; q < _.length; q++)
350
+ f(_[q], t);
351
351
  Object.freeze && Object.freeze(_);
352
352
  } else
353
353
  console.error(
354
354
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
355
355
  );
356
- else l(_, t);
356
+ else f(_, t);
357
357
  } else
358
- _ = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? C = "null" : H(t) ? C = "array" : t !== void 0 && t.$$typeof === R ? (C = "<" + (r(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : C = typeof t, console.error(
358
+ _ = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? q = "null" : z(t) ? q = "array" : t !== void 0 && t.$$typeof === Z ? (q = "<" + (n(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : q = typeof t, console.error(
359
359
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
360
- C,
360
+ q,
361
361
  _
362
362
  );
363
- if (Z.call(b, "key")) {
364
- _ = r(t);
365
- var oe = Object.keys(b).filter(function(Q) {
363
+ if (j.call(b, "key")) {
364
+ _ = n(t);
365
+ var ue = Object.keys(b).filter(function(Q) {
366
366
  return Q !== "key";
367
367
  });
368
- C = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", qe[_ + C] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
368
+ q = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", We[_ + q] || (ue = 0 < ue.length ? "{" + ue.join(": ..., ") + ": ...}" : "{}", console.error(
369
369
  `A props object containing a "key" prop is being spread into JSX:
370
370
  let props = %s;
371
371
  <%s {...props} />
372
372
  React keys must be passed directly to JSX without using spread:
373
373
  let props = %s;
374
374
  <%s key={someKey} {...props} />`,
375
- C,
375
+ q,
376
376
  _,
377
- oe,
377
+ ue,
378
378
  _
379
- ), qe[_ + C] = !0);
379
+ ), We[_ + q] = !0);
380
380
  }
381
- if (_ = null, w !== void 0 && (a(w), _ = "" + w), m(b) && (a(b.key), _ = "" + b.key), "key" in b) {
381
+ if (_ = null, w !== void 0 && (a(w), _ = "" + w), g(b) && (a(b.key), _ = "" + b.key), "key" in b) {
382
382
  w = {};
383
- for (var me in b)
384
- me !== "key" && (w[me] = b[me]);
383
+ for (var he in b)
384
+ he !== "key" && (w[he] = b[he]);
385
385
  } else w = b;
386
- return _ && n(
386
+ return _ && r(
387
387
  w,
388
388
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
389
- ), D(t, _, U, V, p(), w);
389
+ ), y(t, _, U, X, m(), w);
390
390
  }
391
- function l(t, b) {
391
+ function f(t, b) {
392
392
  if (typeof t == "object" && t && t.$$typeof !== dt) {
393
- if (H(t))
393
+ if (z(t))
394
394
  for (var w = 0; w < t.length; w++) {
395
- var C = t[w];
396
- y(C) && E(C, b);
395
+ var q = t[w];
396
+ S(q) && E(q, b);
397
397
  }
398
- else if (y(t))
398
+ else if (S(t))
399
399
  t._store && (t._store.validated = 1);
400
400
  else if (t === null || typeof t != "object" ? w = null : (w = T && t[T] || t["@@iterator"], w = typeof w == "function" ? w : null), typeof w == "function" && w !== t.entries && (w = w.call(t), w !== t))
401
401
  for (; !(t = w.next()).done; )
402
- y(t.value) && E(t.value, b);
402
+ S(t.value) && E(t.value, b);
403
403
  }
404
404
  }
405
- function y(t) {
406
- return typeof t == "object" && t !== null && t.$$typeof === R;
405
+ function S(t) {
406
+ return typeof t == "object" && t !== null && t.$$typeof === Z;
407
407
  }
408
408
  function E(t, b) {
409
- if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, b = j(b), !We[b])) {
410
- We[b] = !0;
409
+ if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, b = F(b), !He[b])) {
410
+ He[b] = !0;
411
411
  var w = "";
412
- t && t._owner != null && t._owner !== p() && (w = null, typeof t._owner.tag == "number" ? w = r(t._owner.type) : typeof t._owner.name == "string" && (w = t._owner.name), w = " It was passed a child from " + w + ".");
413
- var C = L.getCurrentStack;
414
- L.getCurrentStack = function() {
415
- var V = h(t.type);
416
- return C && (V += C() || ""), V;
412
+ t && t._owner != null && t._owner !== m() && (w = null, typeof t._owner.tag == "number" ? w = n(t._owner.type) : typeof t._owner.name == "string" && (w = t._owner.name), w = " It was passed a child from " + w + ".");
413
+ var q = R.getCurrentStack;
414
+ R.getCurrentStack = function() {
415
+ var X = p(t.type);
416
+ return q && (X += q() || ""), X;
417
417
  }, console.error(
418
418
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
419
419
  b,
420
420
  w
421
- ), L.getCurrentStack = C;
421
+ ), R.getCurrentStack = q;
422
422
  }
423
423
  }
424
- function j(t) {
425
- var b = "", w = p();
426
- return w && (w = r(w.type)) && (b = `
424
+ function F(t) {
425
+ var b = "", w = m();
426
+ return w && (w = n(w.type)) && (b = `
427
427
 
428
- Check the render method of \`` + w + "`."), b || (t = r(t)) && (b = `
428
+ Check the render method of \`` + w + "`."), b || (t = n(t)) && (b = `
429
429
 
430
430
  Check the top-level render call using <` + t + ">."), b;
431
431
  }
432
- var M = Ne, R = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), d = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), he = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), T = Symbol.iterator, x = Symbol.for("react.client.reference"), L = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, N = Object.assign, W = Symbol.for("react.client.reference"), H = Array.isArray, z = 0, J, ae, re, ue, ne, G, ee;
432
+ var M = Ce, Z = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), d = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), T = Symbol.iterator, x = Symbol.for("react.client.reference"), R = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, C = Object.assign, N = Symbol.for("react.client.reference"), z = Array.isArray, Y = 0, J, se, re, de, ae, G, te;
433
433
  i.__reactDisabledLog = !0;
434
- var se, le, je = !1, Ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), dt = Symbol.for("react.client.reference"), Ce, Ae = {}, qe = {}, We = {};
435
- ve.Fragment = O, ve.jsx = function(t, b, w, C, V) {
436
- return g(t, b, w, !1, C, V);
437
- }, ve.jsxs = function(t, b, w, C, V) {
438
- return g(t, b, w, !0, C, V);
434
+ var ie, fe, je = !1, Ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), dt = Symbol.for("react.client.reference"), Ae, qe = {}, We = {}, He = {};
435
+ ve.Fragment = k, ve.jsx = function(t, b, w, q, X) {
436
+ return h(t, b, w, !1, q, X);
437
+ }, ve.jsxs = function(t, b, w, q, X) {
438
+ return h(t, b, w, !0, q, X);
439
439
  };
440
440
  }()), ve;
441
441
  }
442
442
  var Ye;
443
- function ht() {
443
+ function pt() {
444
444
  return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Se.exports = lt() : Se.exports = ft()), Se.exports;
445
445
  }
446
- var A = ht();
446
+ var A = pt();
447
447
  const ut = 2.375 * 16, Be = 3, K = {
448
448
  day: {
449
449
  labelUnit: "day",
@@ -452,9 +452,9 @@ const ut = 2.375 * 16, Be = 3, K = {
452
452
  dragStepUnit: "minute",
453
453
  dragStepAmount: 15,
454
454
  basePxPerDragStep: 16,
455
- formatTickLabel: (r) => r.format("h A"),
455
+ formatTickLabel: (n) => n.format("h A"),
456
456
  // → 9:12 AM, 12:00 PM, 3:45 PM // 09:00, 10:00...
457
- formatHeaderLabel: (r) => r.format("MMM D")
457
+ formatHeaderLabel: (n) => n.format("MMM D")
458
458
  // Jun 1
459
459
  },
460
460
  week: {
@@ -464,9 +464,9 @@ const ut = 2.375 * 16, Be = 3, K = {
464
464
  dragStepUnit: "hour",
465
465
  dragStepAmount: 6,
466
466
  basePxPerDragStep: 32,
467
- formatTickLabel: (r) => r.format("D"),
467
+ formatTickLabel: (n) => n.format("D"),
468
468
  // 1, 2, 3...
469
- formatHeaderLabel: (r) => r.format("MMM")
469
+ formatHeaderLabel: (n) => n.format("MMM")
470
470
  // Jun
471
471
  },
472
472
  month: {
@@ -476,9 +476,9 @@ const ut = 2.375 * 16, Be = 3, K = {
476
476
  dragStepUnit: "day",
477
477
  dragStepAmount: 1,
478
478
  basePxPerDragStep: 64,
479
- formatTickLabel: (r) => r.format("D"),
479
+ formatTickLabel: (n) => n.format("D"),
480
480
  // 1, 2, 3...
481
- formatHeaderLabel: (r) => r.format("MMM YYYY")
481
+ formatHeaderLabel: (n) => n.format("MMM YYYY")
482
482
  // Jun 2024
483
483
  },
484
484
  year: {
@@ -488,699 +488,766 @@ const ut = 2.375 * 16, Be = 3, K = {
488
488
  dragStepUnit: "day",
489
489
  dragStepAmount: 1,
490
490
  basePxPerDragStep: 16,
491
- formatTickLabel: (r) => r.format("D"),
491
+ formatTickLabel: (n) => n.format("D"),
492
492
  // Jan, Feb...
493
- formatHeaderLabel: (r) => r.format("YYYY")
493
+ formatHeaderLabel: (n) => n.format("YYYY")
494
494
  // 2024
495
495
  }
496
496
  };
497
- var be = { exports: {} }, mt = be.exports, Ge;
498
- function pt() {
499
- return Ge || (Ge = 1, function(r, s) {
497
+ var be = { exports: {} }, ht = be.exports, Ge;
498
+ function mt() {
499
+ return Ge || (Ge = 1, function(n, o) {
500
500
  (function(a, i) {
501
- r.exports = i();
502
- })(mt, function() {
503
- var a = 1e3, i = 6e4, o = 36e5, e = "millisecond", f = "second", u = "minute", h = "hour", p = "day", m = "week", n = "month", c = "quarter", D = "year", g = "date", l = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(F) {
504
- var S = ["th", "st", "nd", "rd"], v = F % 100;
505
- return "[" + F + (S[(v - 20) % 10] || S[v] || S[0]) + "]";
506
- } }, M = function(F, S, v) {
507
- var T = String(F);
508
- return !T || T.length >= S ? F : "" + Array(S + 1 - T.length).join(v) + F;
509
- }, R = { s: M, z: function(F) {
510
- var S = -F.utcOffset(), v = Math.abs(S), T = Math.floor(v / 60), x = v % 60;
511
- return (S <= 0 ? "+" : "-") + M(T, 2, "0") + ":" + M(x, 2, "0");
512
- }, m: function F(S, v) {
513
- if (S.date() < v.date()) return -F(v, S);
514
- var T = 12 * (v.year() - S.year()) + (v.month() - S.month()), x = S.clone().add(T, n), L = v - x < 0, Z = S.clone().add(T + (L ? -1 : 1), n);
515
- return +(-(T + (v - x) / (L ? x - Z : Z - x)) || 0);
516
- }, a: function(F) {
517
- return F < 0 ? Math.ceil(F) || 0 : Math.floor(F);
518
- }, p: function(F) {
519
- return { M: n, y: D, w: m, d: p, D: g, h, m: u, s: f, ms: e, Q: c }[F] || String(F || "").toLowerCase().replace(/s$/, "");
520
- }, u: function(F) {
521
- return F === void 0;
522
- } }, k = "en", O = {};
523
- O[k] = j;
524
- var P = "$isDayjsObject", Y = function(F) {
525
- return F instanceof B || !(!F || !F[P]);
526
- }, $ = function F(S, v, T) {
501
+ n.exports = i();
502
+ })(ht, function() {
503
+ var a = 1e3, i = 6e4, s = 36e5, e = "millisecond", l = "second", u = "minute", p = "hour", m = "day", g = "week", r = "month", c = "quarter", y = "year", h = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
504
+ var D = ["th", "st", "nd", "rd"], v = I % 100;
505
+ return "[" + I + (D[(v - 20) % 10] || D[v] || D[0]) + "]";
506
+ } }, M = function(I, D, v) {
507
+ var T = String(I);
508
+ return !T || T.length >= D ? I : "" + Array(D + 1 - T.length).join(v) + I;
509
+ }, Z = { s: M, z: function(I) {
510
+ var D = -I.utcOffset(), v = Math.abs(D), T = Math.floor(v / 60), x = v % 60;
511
+ return (D <= 0 ? "+" : "-") + M(T, 2, "0") + ":" + M(x, 2, "0");
512
+ }, m: function I(D, v) {
513
+ if (D.date() < v.date()) return -I(v, D);
514
+ var T = 12 * (v.year() - D.year()) + (v.month() - D.month()), x = D.clone().add(T, r), R = v - x < 0, j = D.clone().add(T + (R ? -1 : 1), r);
515
+ return +(-(T + (v - x) / (R ? x - j : j - x)) || 0);
516
+ }, a: function(I) {
517
+ return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
518
+ }, p: function(I) {
519
+ return { M: r, y, w: g, d: m, D: h, h: p, m: u, s: l, ms: e, Q: c }[I] || String(I || "").toLowerCase().replace(/s$/, "");
520
+ }, u: function(I) {
521
+ return I === void 0;
522
+ } }, L = "en", k = {};
523
+ k[L] = F;
524
+ var P = "$isDayjsObject", W = function(I) {
525
+ return I instanceof B || !(!I || !I[P]);
526
+ }, $ = function I(D, v, T) {
527
527
  var x;
528
- if (!S) return k;
529
- if (typeof S == "string") {
530
- var L = S.toLowerCase();
531
- O[L] && (x = L), v && (O[L] = v, x = L);
532
- var Z = S.split("-");
533
- if (!x && Z.length > 1) return F(Z[0]);
528
+ if (!D) return L;
529
+ if (typeof D == "string") {
530
+ var R = D.toLowerCase();
531
+ k[R] && (x = R), v && (k[R] = v, x = R);
532
+ var j = D.split("-");
533
+ if (!x && j.length > 1) return I(j[0]);
534
534
  } else {
535
- var N = S.name;
536
- O[N] = S, x = N;
535
+ var C = D.name;
536
+ k[C] = D, x = C;
537
537
  }
538
- return !T && x && (k = x), x || !T && k;
539
- }, d = function(F, S) {
540
- if (Y(F)) return F.clone();
541
- var v = typeof S == "object" ? S : {};
542
- return v.date = F, v.args = arguments, new B(v);
543
- }, I = R;
544
- I.l = $, I.i = Y, I.w = function(F, S) {
545
- return d(F, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
538
+ return !T && x && (L = x), x || !T && L;
539
+ }, d = function(I, D) {
540
+ if (W(I)) return I.clone();
541
+ var v = typeof D == "object" ? D : {};
542
+ return v.date = I, v.args = arguments, new B(v);
543
+ }, O = Z;
544
+ O.l = $, O.i = W, O.w = function(I, D) {
545
+ return d(I, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
546
546
  };
547
547
  var B = function() {
548
- function F(v) {
548
+ function I(v) {
549
549
  this.$L = $(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[P] = !0;
550
550
  }
551
- var S = F.prototype;
552
- return S.parse = function(v) {
551
+ var D = I.prototype;
552
+ return D.parse = function(v) {
553
553
  this.$d = function(T) {
554
- var x = T.date, L = T.utc;
554
+ var x = T.date, R = T.utc;
555
555
  if (x === null) return /* @__PURE__ */ new Date(NaN);
556
- if (I.u(x)) return /* @__PURE__ */ new Date();
556
+ if (O.u(x)) return /* @__PURE__ */ new Date();
557
557
  if (x instanceof Date) return new Date(x);
558
558
  if (typeof x == "string" && !/Z$/i.test(x)) {
559
- var Z = x.match(y);
560
- if (Z) {
561
- var N = Z[2] - 1 || 0, W = (Z[7] || "0").substring(0, 3);
562
- return L ? new Date(Date.UTC(Z[1], N, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, W)) : new Date(Z[1], N, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, W);
559
+ var j = x.match(S);
560
+ if (j) {
561
+ var C = j[2] - 1 || 0, N = (j[7] || "0").substring(0, 3);
562
+ return R ? new Date(Date.UTC(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, N)) : new Date(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, N);
563
563
  }
564
564
  }
565
565
  return new Date(x);
566
566
  }(v), this.init();
567
- }, S.init = function() {
567
+ }, D.init = function() {
568
568
  var v = this.$d;
569
569
  this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
570
- }, S.$utils = function() {
571
- return I;
572
- }, S.isValid = function() {
573
- return this.$d.toString() !== l;
574
- }, S.isSame = function(v, T) {
570
+ }, D.$utils = function() {
571
+ return O;
572
+ }, D.isValid = function() {
573
+ return this.$d.toString() !== f;
574
+ }, D.isSame = function(v, T) {
575
575
  var x = d(v);
576
576
  return this.startOf(T) <= x && x <= this.endOf(T);
577
- }, S.isAfter = function(v, T) {
577
+ }, D.isAfter = function(v, T) {
578
578
  return d(v) < this.startOf(T);
579
- }, S.isBefore = function(v, T) {
579
+ }, D.isBefore = function(v, T) {
580
580
  return this.endOf(T) < d(v);
581
- }, S.$g = function(v, T, x) {
582
- return I.u(v) ? this[T] : this.set(x, v);
583
- }, S.unix = function() {
581
+ }, D.$g = function(v, T, x) {
582
+ return O.u(v) ? this[T] : this.set(x, v);
583
+ }, D.unix = function() {
584
584
  return Math.floor(this.valueOf() / 1e3);
585
- }, S.valueOf = function() {
585
+ }, D.valueOf = function() {
586
586
  return this.$d.getTime();
587
- }, S.startOf = function(v, T) {
588
- var x = this, L = !!I.u(T) || T, Z = I.p(v), N = function(ne, G) {
589
- var ee = I.w(x.$u ? Date.UTC(x.$y, G, ne) : new Date(x.$y, G, ne), x);
590
- return L ? ee : ee.endOf(p);
591
- }, W = function(ne, G) {
592
- return I.w(x.toDate()[ne].apply(x.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), x);
593
- }, H = this.$W, z = this.$M, J = this.$D, ae = "set" + (this.$u ? "UTC" : "");
594
- switch (Z) {
595
- case D:
596
- return L ? N(1, 0) : N(31, 11);
597
- case n:
598
- return L ? N(1, z) : N(0, z + 1);
599
- case m:
600
- var re = this.$locale().weekStart || 0, ue = (H < re ? H + 7 : H) - re;
601
- return N(L ? J - ue : J + (6 - ue), z);
602
- case p:
587
+ }, D.startOf = function(v, T) {
588
+ var x = this, R = !!O.u(T) || T, j = O.p(v), C = function(ae, G) {
589
+ var te = O.w(x.$u ? Date.UTC(x.$y, G, ae) : new Date(x.$y, G, ae), x);
590
+ return R ? te : te.endOf(m);
591
+ }, N = function(ae, G) {
592
+ return O.w(x.toDate()[ae].apply(x.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), x);
593
+ }, z = this.$W, Y = this.$M, J = this.$D, se = "set" + (this.$u ? "UTC" : "");
594
+ switch (j) {
595
+ case y:
596
+ return R ? C(1, 0) : C(31, 11);
597
+ case r:
598
+ return R ? C(1, Y) : C(0, Y + 1);
603
599
  case g:
604
- return W(ae + "Hours", 0);
600
+ var re = this.$locale().weekStart || 0, de = (z < re ? z + 7 : z) - re;
601
+ return C(R ? J - de : J + (6 - de), Y);
602
+ case m:
605
603
  case h:
606
- return W(ae + "Minutes", 1);
604
+ return N(se + "Hours", 0);
605
+ case p:
606
+ return N(se + "Minutes", 1);
607
607
  case u:
608
- return W(ae + "Seconds", 2);
609
- case f:
610
- return W(ae + "Milliseconds", 3);
608
+ return N(se + "Seconds", 2);
609
+ case l:
610
+ return N(se + "Milliseconds", 3);
611
611
  default:
612
612
  return this.clone();
613
613
  }
614
- }, S.endOf = function(v) {
614
+ }, D.endOf = function(v) {
615
615
  return this.startOf(v, !1);
616
- }, S.$set = function(v, T) {
617
- var x, L = I.p(v), Z = "set" + (this.$u ? "UTC" : ""), N = (x = {}, x[p] = Z + "Date", x[g] = Z + "Date", x[n] = Z + "Month", x[D] = Z + "FullYear", x[h] = Z + "Hours", x[u] = Z + "Minutes", x[f] = Z + "Seconds", x[e] = Z + "Milliseconds", x)[L], W = L === p ? this.$D + (T - this.$W) : T;
618
- if (L === n || L === D) {
619
- var H = this.clone().set(g, 1);
620
- H.$d[N](W), H.init(), this.$d = H.set(g, Math.min(this.$D, H.daysInMonth())).$d;
621
- } else N && this.$d[N](W);
616
+ }, D.$set = function(v, T) {
617
+ var x, R = O.p(v), j = "set" + (this.$u ? "UTC" : ""), C = (x = {}, x[m] = j + "Date", x[h] = j + "Date", x[r] = j + "Month", x[y] = j + "FullYear", x[p] = j + "Hours", x[u] = j + "Minutes", x[l] = j + "Seconds", x[e] = j + "Milliseconds", x)[R], N = R === m ? this.$D + (T - this.$W) : T;
618
+ if (R === r || R === y) {
619
+ var z = this.clone().set(h, 1);
620
+ z.$d[C](N), z.init(), this.$d = z.set(h, Math.min(this.$D, z.daysInMonth())).$d;
621
+ } else C && this.$d[C](N);
622
622
  return this.init(), this;
623
- }, S.set = function(v, T) {
623
+ }, D.set = function(v, T) {
624
624
  return this.clone().$set(v, T);
625
- }, S.get = function(v) {
626
- return this[I.p(v)]();
627
- }, S.add = function(v, T) {
628
- var x, L = this;
625
+ }, D.get = function(v) {
626
+ return this[O.p(v)]();
627
+ }, D.add = function(v, T) {
628
+ var x, R = this;
629
629
  v = Number(v);
630
- var Z = I.p(T), N = function(z) {
631
- var J = d(L);
632
- return I.w(J.date(J.date() + Math.round(z * v)), L);
630
+ var j = O.p(T), C = function(Y) {
631
+ var J = d(R);
632
+ return O.w(J.date(J.date() + Math.round(Y * v)), R);
633
633
  };
634
- if (Z === n) return this.set(n, this.$M + v);
635
- if (Z === D) return this.set(D, this.$y + v);
636
- if (Z === p) return N(1);
637
- if (Z === m) return N(7);
638
- var W = (x = {}, x[u] = i, x[h] = o, x[f] = a, x)[Z] || 1, H = this.$d.getTime() + v * W;
639
- return I.w(H, this);
640
- }, S.subtract = function(v, T) {
634
+ if (j === r) return this.set(r, this.$M + v);
635
+ if (j === y) return this.set(y, this.$y + v);
636
+ if (j === m) return C(1);
637
+ if (j === g) return C(7);
638
+ var N = (x = {}, x[u] = i, x[p] = s, x[l] = a, x)[j] || 1, z = this.$d.getTime() + v * N;
639
+ return O.w(z, this);
640
+ }, D.subtract = function(v, T) {
641
641
  return this.add(-1 * v, T);
642
- }, S.format = function(v) {
642
+ }, D.format = function(v) {
643
643
  var T = this, x = this.$locale();
644
- if (!this.isValid()) return x.invalidDate || l;
645
- var L = v || "YYYY-MM-DDTHH:mm:ssZ", Z = I.z(this), N = this.$H, W = this.$m, H = this.$M, z = x.weekdays, J = x.months, ae = x.meridiem, re = function(G, ee, se, le) {
646
- return G && (G[ee] || G(T, L)) || se[ee].slice(0, le);
647
- }, ue = function(G) {
648
- return I.s(N % 12 || 12, G, "0");
649
- }, ne = ae || function(G, ee, se) {
650
- var le = G < 12 ? "AM" : "PM";
651
- return se ? le.toLowerCase() : le;
644
+ if (!this.isValid()) return x.invalidDate || f;
645
+ var R = v || "YYYY-MM-DDTHH:mm:ssZ", j = O.z(this), C = this.$H, N = this.$m, z = this.$M, Y = x.weekdays, J = x.months, se = x.meridiem, re = function(G, te, ie, fe) {
646
+ return G && (G[te] || G(T, R)) || ie[te].slice(0, fe);
647
+ }, de = function(G) {
648
+ return O.s(C % 12 || 12, G, "0");
649
+ }, ae = se || function(G, te, ie) {
650
+ var fe = G < 12 ? "AM" : "PM";
651
+ return ie ? fe.toLowerCase() : fe;
652
652
  };
653
- return L.replace(E, function(G, ee) {
654
- return ee || function(se) {
655
- switch (se) {
653
+ return R.replace(E, function(G, te) {
654
+ return te || function(ie) {
655
+ switch (ie) {
656
656
  case "YY":
657
657
  return String(T.$y).slice(-2);
658
658
  case "YYYY":
659
- return I.s(T.$y, 4, "0");
659
+ return O.s(T.$y, 4, "0");
660
660
  case "M":
661
- return H + 1;
661
+ return z + 1;
662
662
  case "MM":
663
- return I.s(H + 1, 2, "0");
663
+ return O.s(z + 1, 2, "0");
664
664
  case "MMM":
665
- return re(x.monthsShort, H, J, 3);
665
+ return re(x.monthsShort, z, J, 3);
666
666
  case "MMMM":
667
- return re(J, H);
667
+ return re(J, z);
668
668
  case "D":
669
669
  return T.$D;
670
670
  case "DD":
671
- return I.s(T.$D, 2, "0");
671
+ return O.s(T.$D, 2, "0");
672
672
  case "d":
673
673
  return String(T.$W);
674
674
  case "dd":
675
- return re(x.weekdaysMin, T.$W, z, 2);
675
+ return re(x.weekdaysMin, T.$W, Y, 2);
676
676
  case "ddd":
677
- return re(x.weekdaysShort, T.$W, z, 3);
677
+ return re(x.weekdaysShort, T.$W, Y, 3);
678
678
  case "dddd":
679
- return z[T.$W];
679
+ return Y[T.$W];
680
680
  case "H":
681
- return String(N);
681
+ return String(C);
682
682
  case "HH":
683
- return I.s(N, 2, "0");
683
+ return O.s(C, 2, "0");
684
684
  case "h":
685
- return ue(1);
685
+ return de(1);
686
686
  case "hh":
687
- return ue(2);
687
+ return de(2);
688
688
  case "a":
689
- return ne(N, W, !0);
689
+ return ae(C, N, !0);
690
690
  case "A":
691
- return ne(N, W, !1);
691
+ return ae(C, N, !1);
692
692
  case "m":
693
- return String(W);
693
+ return String(N);
694
694
  case "mm":
695
- return I.s(W, 2, "0");
695
+ return O.s(N, 2, "0");
696
696
  case "s":
697
697
  return String(T.$s);
698
698
  case "ss":
699
- return I.s(T.$s, 2, "0");
699
+ return O.s(T.$s, 2, "0");
700
700
  case "SSS":
701
- return I.s(T.$ms, 3, "0");
701
+ return O.s(T.$ms, 3, "0");
702
702
  case "Z":
703
- return Z;
703
+ return j;
704
704
  }
705
705
  return null;
706
- }(G) || Z.replace(":", "");
706
+ }(G) || j.replace(":", "");
707
707
  });
708
- }, S.utcOffset = function() {
708
+ }, D.utcOffset = function() {
709
709
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
710
- }, S.diff = function(v, T, x) {
711
- var L, Z = this, N = I.p(T), W = d(v), H = (W.utcOffset() - this.utcOffset()) * i, z = this - W, J = function() {
712
- return I.m(Z, W);
710
+ }, D.diff = function(v, T, x) {
711
+ var R, j = this, C = O.p(T), N = d(v), z = (N.utcOffset() - this.utcOffset()) * i, Y = this - N, J = function() {
712
+ return O.m(j, N);
713
713
  };
714
- switch (N) {
715
- case D:
716
- L = J() / 12;
714
+ switch (C) {
715
+ case y:
716
+ R = J() / 12;
717
717
  break;
718
- case n:
719
- L = J();
718
+ case r:
719
+ R = J();
720
720
  break;
721
721
  case c:
722
- L = J() / 3;
722
+ R = J() / 3;
723
+ break;
724
+ case g:
725
+ R = (Y - z) / 6048e5;
723
726
  break;
724
727
  case m:
725
- L = (z - H) / 6048e5;
728
+ R = (Y - z) / 864e5;
726
729
  break;
727
730
  case p:
728
- L = (z - H) / 864e5;
729
- break;
730
- case h:
731
- L = z / o;
731
+ R = Y / s;
732
732
  break;
733
733
  case u:
734
- L = z / i;
734
+ R = Y / i;
735
735
  break;
736
- case f:
737
- L = z / a;
736
+ case l:
737
+ R = Y / a;
738
738
  break;
739
739
  default:
740
- L = z;
740
+ R = Y;
741
741
  }
742
- return x ? L : I.a(L);
743
- }, S.daysInMonth = function() {
744
- return this.endOf(n).$D;
745
- }, S.$locale = function() {
746
- return O[this.$L];
747
- }, S.locale = function(v, T) {
742
+ return x ? R : O.a(R);
743
+ }, D.daysInMonth = function() {
744
+ return this.endOf(r).$D;
745
+ }, D.$locale = function() {
746
+ return k[this.$L];
747
+ }, D.locale = function(v, T) {
748
748
  if (!v) return this.$L;
749
- var x = this.clone(), L = $(v, T, !0);
750
- return L && (x.$L = L), x;
751
- }, S.clone = function() {
752
- return I.w(this.$d, this);
753
- }, S.toDate = function() {
749
+ var x = this.clone(), R = $(v, T, !0);
750
+ return R && (x.$L = R), x;
751
+ }, D.clone = function() {
752
+ return O.w(this.$d, this);
753
+ }, D.toDate = function() {
754
754
  return new Date(this.valueOf());
755
- }, S.toJSON = function() {
755
+ }, D.toJSON = function() {
756
756
  return this.isValid() ? this.toISOString() : null;
757
- }, S.toISOString = function() {
757
+ }, D.toISOString = function() {
758
758
  return this.$d.toISOString();
759
- }, S.toString = function() {
759
+ }, D.toString = function() {
760
760
  return this.$d.toUTCString();
761
- }, F;
762
- }(), he = B.prototype;
763
- return d.prototype = he, [["$ms", e], ["$s", f], ["$m", u], ["$H", h], ["$W", p], ["$M", n], ["$y", D], ["$D", g]].forEach(function(F) {
764
- he[F[1]] = function(S) {
765
- return this.$g(S, F[0], F[1]);
761
+ }, I;
762
+ }(), ee = B.prototype;
763
+ return d.prototype = ee, [["$ms", e], ["$s", l], ["$m", u], ["$H", p], ["$W", m], ["$M", r], ["$y", y], ["$D", h]].forEach(function(I) {
764
+ ee[I[1]] = function(D) {
765
+ return this.$g(D, I[0], I[1]);
766
766
  };
767
- }), d.extend = function(F, S) {
768
- return F.$i || (F(S, B, d), F.$i = !0), d;
769
- }, d.locale = $, d.isDayjs = Y, d.unix = function(F) {
770
- return d(1e3 * F);
771
- }, d.en = O[k], d.Ls = O, d.p = {}, d;
767
+ }), d.extend = function(I, D) {
768
+ return I.$i || (I(D, B, d), I.$i = !0), d;
769
+ }, d.locale = $, d.isDayjs = W, d.unix = function(I) {
770
+ return d(1e3 * I);
771
+ }, d.en = k[L], d.Ls = k, d.p = {}, d;
772
772
  });
773
773
  }(be)), be.exports;
774
774
  }
775
- var $t = pt();
776
- const q = /* @__PURE__ */ te($t);
777
- function gt(r, s, a, i) {
775
+ var $t = mt();
776
+ const H = /* @__PURE__ */ ne($t);
777
+ function gt(n, o, a, i) {
778
778
  if (!a.length)
779
779
  return { barMarginLeftAmount: 0, barWidthSize: 0 };
780
- const { tickUnit: o, unitPerTick: e } = K[i], f = a.reduce((l, y) => l + y.widthPx, 0), u = a[0].startDate, h = a[a.length - 1].startDate, p = q(h).add(e, o).diff(u), m = f / p, n = r.diff(u), c = s.diff(u), D = n * m, g = Math.max(c - n, 1) * m;
781
- return { barMarginLeftAmount: D, barWidthSize: g };
780
+ const { tickUnit: s, unitPerTick: e } = K[i], l = a.reduce((f, S) => f + S.widthPx, 0), u = a[0].startDate, p = a[a.length - 1].startDate, m = H(p).add(e, s).diff(u), g = l / m, r = n.diff(u), c = o.diff(u), y = r * g, h = Math.max(c - r, 1) * g;
781
+ return { barMarginLeftAmount: y, barWidthSize: h };
782
782
  }
783
- function vt(r) {
784
- let s = 1 / 0, a = -1 / 0;
785
- for (const { startDate: i, endDate: o } of Object.values(r)) {
786
- const e = q(i).valueOf(), f = q(o).valueOf();
787
- Number.isNaN(e) || (s = Math.min(s, e)), Number.isNaN(f) || (a = Math.max(a, f));
783
+ function vt(n) {
784
+ let o = 1 / 0, a = -1 / 0;
785
+ for (const { startDate: i, endDate: s } of Object.values(n)) {
786
+ const e = H(i).valueOf(), l = H(s).valueOf();
787
+ Number.isNaN(e) || (o = Math.min(o, e)), Number.isNaN(l) || (a = Math.max(a, l));
788
788
  }
789
- return { minDate: q(s), maxDate: q(a) };
789
+ return { minDate: H(o), maxDate: H(a) };
790
790
  }
791
- function Dt(r, s, a) {
792
- const { tickUnit: i, unitPerTick: o } = K[a];
791
+ function yt(n, o, a) {
792
+ const { tickUnit: i, unitPerTick: s } = K[a];
793
793
  return {
794
- paddedMinDate: r.subtract(
795
- Be * o,
794
+ paddedMinDate: n.subtract(
795
+ Be * s,
796
796
  i
797
797
  ),
798
- paddedMaxDate: s.add(Be * o, i)
798
+ paddedMaxDate: o.add(Be * s, i)
799
799
  };
800
800
  }
801
- function yt(r, s, a) {
802
- const { tickUnit: i, unitPerTick: o, basePxPerDragStep: e, dragStepUnit: f, dragStepAmount: u } = K[a], h = [];
803
- let p = r.startOf(i);
804
- for (; p.isBefore(s); ) {
805
- const m = q(p).add(o, i).diff(p, f) / u;
806
- h.push({
807
- startDate: p,
808
- widthPx: m * e
809
- }), p = p.add(o, i);
801
+ function Dt(n, o, a) {
802
+ const { tickUnit: i, unitPerTick: s, basePxPerDragStep: e, dragStepUnit: l, dragStepAmount: u } = K[a], p = [];
803
+ let m = n.startOf(i);
804
+ for (; m.isBefore(o); ) {
805
+ const g = H(m).add(s, i).diff(m, l) / u;
806
+ p.push({
807
+ startDate: m,
808
+ widthPx: g * e
809
+ }), m = m.add(s, i);
810
810
  }
811
- return h;
811
+ return p;
812
812
  }
813
- function ct(r, s) {
814
- const { labelUnit: a, formatHeaderLabel: i } = K[s], o = [];
815
- let e = null, f = "", u = 0, h = null;
816
- return r.forEach((p, m) => {
817
- const n = p.startDate.startOf(a), c = n.valueOf(), D = (i == null ? void 0 : i(n)) ?? n.format();
818
- c === e ? u += p.widthPx : (e !== null && o.push({
819
- label: f,
813
+ function ct(n, o) {
814
+ const { labelUnit: a, formatHeaderLabel: i } = K[o], s = [];
815
+ let e = null, l = "", u = 0, p = null;
816
+ return n.forEach((m, g) => {
817
+ const r = m.startDate.startOf(a), c = r.valueOf(), y = (i == null ? void 0 : i(r)) ?? r.format();
818
+ c === e ? u += m.widthPx : (e !== null && s.push({
819
+ label: l,
820
820
  widthPx: u,
821
- startDate: h
822
- }), e = c, f = D, u = p.widthPx, h = n), m === r.length - 1 && o.push({
823
- label: f,
821
+ startDate: p
822
+ }), e = c, l = y, u = m.widthPx, p = r), g === n.length - 1 && s.push({
823
+ label: l,
824
824
  widthPx: u,
825
- startDate: h
825
+ startDate: p
826
826
  });
827
- }), o;
827
+ }), s;
828
828
  }
829
- function St(r, s, a, i, o, e) {
830
- const { minDate: f, maxDate: u } = vt(r);
831
- a(f), i(u);
832
- const { paddedMinDate: h, paddedMaxDate: p } = Dt(
833
- f,
829
+ function St(n, o, a, i, s, e) {
830
+ const { minDate: l, maxDate: u } = vt(n);
831
+ a(l), i(u);
832
+ const { paddedMinDate: p, paddedMaxDate: m } = yt(
833
+ l,
834
834
  u,
835
- s
836
- ), m = yt(
837
- h,
835
+ o
836
+ ), g = Dt(
838
837
  p,
839
- s
840
- ), n = ct(m, s);
841
- o(m), e(n);
838
+ m,
839
+ o
840
+ ), r = ct(g, o);
841
+ s(g), e(r);
842
842
  }
843
843
  const xt = ({
844
- bottomRowCells: r,
845
- selectedScale: s,
844
+ bottomRowCells: n,
845
+ selectedScale: o,
846
846
  scrollRef: a
847
847
  }) => {
848
- var m;
849
- const i = K[s], [o, e] = de(0), f = _e(
850
- () => ct(r, s),
851
- [r, s]
848
+ var g;
849
+ const i = K[o], [s, e] = oe(0), l = _e(
850
+ () => ct(n, o),
851
+ [n, o]
852
852
  ), u = _e(() => {
853
- const n = [];
854
- for (const c of f) {
855
- const D = n[n.length - 1];
856
- D && D.label === c.label ? D.widthPx += c.widthPx : n.push({ ...c });
853
+ const r = [];
854
+ for (const c of l) {
855
+ const y = r[r.length - 1];
856
+ y && y.label === c.label ? y.widthPx += c.widthPx : r.push({ ...c });
857
857
  }
858
- return n;
859
- }, [f]), h = _e(() => {
860
- let n = 0;
858
+ return r;
859
+ }, [l]), p = _e(() => {
860
+ let r = 0;
861
861
  return u.map((c) => {
862
- const D = { ...c, left: n };
863
- return n += c.widthPx, D;
862
+ const y = { ...c, left: r };
863
+ return r += c.widthPx, y;
864
864
  });
865
865
  }, [u]);
866
866
  xe(() => {
867
- const n = a.current;
868
- if (!n) return;
867
+ const r = a.current;
868
+ if (!r) return;
869
869
  const c = () => {
870
- const D = n.scrollLeft;
871
- for (let g = h.length - 1; g >= 0; g--)
872
- if (D >= h[g].left) {
873
- e(g);
870
+ const y = r.scrollLeft;
871
+ for (let h = p.length - 1; h >= 0; h--)
872
+ if (y >= p[h].left) {
873
+ e(h);
874
874
  break;
875
875
  }
876
876
  };
877
- return n.addEventListener("scroll", c), c(), () => n.removeEventListener("scroll", c);
878
- }, [h]);
879
- const p = ((m = h[o]) == null ? void 0 : m.label) ?? "";
877
+ return r.addEventListener("scroll", c), c(), () => r.removeEventListener("scroll", c);
878
+ }, [p]);
879
+ const m = ((g = p[s]) == null ? void 0 : g.label) ?? "";
880
880
  return /* @__PURE__ */ A.jsx(
881
881
  "div",
882
882
  {
883
- className: "sticky top-0 z-30",
884
883
  style: {
884
+ position: "sticky",
885
+ top: 0,
886
+ zIndex: 30,
885
887
  backgroundColor: "#F0F1F2"
886
888
  },
887
- children: /* @__PURE__ */ A.jsxs("div", { className: "flex min-w-max flex-col", children: [
888
- /* @__PURE__ */ A.jsxs("div", { className: "relative flex h-8", children: [
889
- /* @__PURE__ */ A.jsx(
890
- "div",
891
- {
892
- className: "sticky left-0 z-40 flex w-24 shrink-0 items-center justify-center border-b border-solid text-sm font-bold",
893
- style: {
894
- backgroundColor: "#F0F1F2",
895
- borderColor: "#D6D6D8"
896
- },
897
- children: p
898
- }
899
- ),
900
- /* @__PURE__ */ A.jsx("div", { className: "flex", children: h.map((n, c) => /* @__PURE__ */ A.jsx(
901
- "div",
902
- {
903
- className: "border-b border-solid py-2 pr-4 text-left text-sm font-bold",
904
- style: {
905
- width: `${n.widthPx}px`,
906
- borderColor: "#D6D6D8",
907
- backgroundColor: "#F0F1F2"
908
- },
909
- children: /* @__PURE__ */ A.jsx("p", { className: "px-4", children: c === 0 ? "" : n.label })
910
- },
911
- c
912
- )) })
913
- ] }),
914
- /* @__PURE__ */ A.jsx("div", { className: "flex", children: r.map((n, c) => {
915
- var g;
916
- const D = ((g = i.formatTickLabel) == null ? void 0 : g.call(i, n.startDate)) || "";
917
- return /* @__PURE__ */ A.jsx(
918
- "div",
919
- {
920
- className: "relative p-1 text-center text-xs",
921
- style: { width: `${n.widthPx}px` },
922
- children: D
923
- },
924
- c
925
- );
926
- }) })
927
- ] })
889
+ children: /* @__PURE__ */ A.jsxs(
890
+ "div",
891
+ {
892
+ style: {
893
+ display: "flex",
894
+ minWidth: "max-content",
895
+ flexDirection: "column"
896
+ // backgroundColor: '#F0F1F2',
897
+ },
898
+ children: [
899
+ /* @__PURE__ */ A.jsxs(
900
+ "div",
901
+ {
902
+ style: {
903
+ position: "relative",
904
+ display: "flex",
905
+ height: "32px"
906
+ // backgroundColor: '#F0F1F2',
907
+ },
908
+ children: [
909
+ /* @__PURE__ */ A.jsx(
910
+ "div",
911
+ {
912
+ style: {
913
+ position: "sticky",
914
+ left: 0,
915
+ zIndex: 40,
916
+ display: "flex",
917
+ width: "96px",
918
+ flexShrink: 0,
919
+ alignItems: "center",
920
+ justifyContent: "center",
921
+ backgroundColor: "#F0F1F2",
922
+ // borderBottom: '1px solid #D6D6D8',
923
+ fontSize: "0.875rem",
924
+ fontWeight: "bold"
925
+ },
926
+ children: m
927
+ }
928
+ ),
929
+ /* @__PURE__ */ A.jsx(
930
+ "div",
931
+ {
932
+ style: {
933
+ display: "flex"
934
+ },
935
+ children: p.map((r, c) => /* @__PURE__ */ A.jsx(
936
+ "div",
937
+ {
938
+ style: {
939
+ padding: "8px 16px",
940
+ fontSize: "0.875rem",
941
+ fontWeight: "bold",
942
+ textAlign: "left",
943
+ width: `${r.widthPx}px`,
944
+ // borderBottom: '1px solid #D6D6D8',
945
+ backgroundColor: "#F0F1F2"
946
+ },
947
+ children: /* @__PURE__ */ A.jsx(
948
+ "p",
949
+ {
950
+ style: {
951
+ margin: 0,
952
+ padding: "0 16px"
953
+ },
954
+ children: c === 0 ? "" : r.label
955
+ }
956
+ )
957
+ },
958
+ c
959
+ ))
960
+ }
961
+ )
962
+ ]
963
+ }
964
+ ),
965
+ /* @__PURE__ */ A.jsx(
966
+ "div",
967
+ {
968
+ style: {
969
+ borderTop: "1px solid #D6D6D8",
970
+ display: "flex"
971
+ },
972
+ children: n.map((r, c) => {
973
+ var h;
974
+ const y = ((h = i.formatTickLabel) == null ? void 0 : h.call(i, r.startDate)) || "";
975
+ return /* @__PURE__ */ A.jsx(
976
+ "div",
977
+ {
978
+ style: {
979
+ position: "relative",
980
+ padding: "4px",
981
+ textAlign: "center",
982
+ fontSize: "0.75rem",
983
+ width: `${r.widthPx}px`
984
+ },
985
+ children: y
986
+ },
987
+ c
988
+ );
989
+ })
990
+ }
991
+ )
992
+ ]
993
+ }
994
+ )
928
995
  }
929
996
  );
930
997
  };
931
- var we = { exports: {} }, bt = we.exports, Ve;
998
+ var we = { exports: {} }, bt = we.exports, Xe;
932
999
  function wt() {
933
- return Ve || (Ve = 1, function(r, s) {
1000
+ return Xe || (Xe = 1, function(n, o) {
934
1001
  (function(a, i) {
935
- r.exports = i();
1002
+ n.exports = i();
936
1003
  })(bt, function() {
937
- return function(a, i, o) {
938
- i.prototype.isBetween = function(e, f, u, h) {
939
- var p = o(e), m = o(f), n = (h = h || "()")[0] === "(", c = h[1] === ")";
940
- return (n ? this.isAfter(p, u) : !this.isBefore(p, u)) && (c ? this.isBefore(m, u) : !this.isAfter(m, u)) || (n ? this.isBefore(p, u) : !this.isAfter(p, u)) && (c ? this.isAfter(m, u) : !this.isBefore(m, u));
1004
+ return function(a, i, s) {
1005
+ i.prototype.isBetween = function(e, l, u, p) {
1006
+ var m = s(e), g = s(l), r = (p = p || "()")[0] === "(", c = p[1] === ")";
1007
+ return (r ? this.isAfter(m, u) : !this.isBefore(m, u)) && (c ? this.isBefore(g, u) : !this.isAfter(g, u)) || (r ? this.isBefore(m, u) : !this.isAfter(m, u)) && (c ? this.isAfter(g, u) : !this.isBefore(g, u));
941
1008
  };
942
1009
  };
943
1010
  });
944
1011
  }(we)), we.exports;
945
1012
  }
946
1013
  var Tt = wt();
947
- const kt = /* @__PURE__ */ te(Tt);
948
- var Te = { exports: {} }, Et = Te.exports, Xe;
1014
+ const kt = /* @__PURE__ */ ne(Tt);
1015
+ var Te = { exports: {} }, Et = Te.exports, Ve;
949
1016
  function Mt() {
950
- return Xe || (Xe = 1, function(r, s) {
1017
+ return Ve || (Ve = 1, function(n, o) {
951
1018
  (function(a, i) {
952
- r.exports = i();
1019
+ n.exports = i();
953
1020
  })(Et, function() {
954
1021
  var a = "day";
955
- return function(i, o, e) {
956
- var f = function(p) {
957
- return p.add(4 - p.isoWeekday(), a);
958
- }, u = o.prototype;
1022
+ return function(i, s, e) {
1023
+ var l = function(m) {
1024
+ return m.add(4 - m.isoWeekday(), a);
1025
+ }, u = s.prototype;
959
1026
  u.isoWeekYear = function() {
960
- return f(this).year();
961
- }, u.isoWeek = function(p) {
962
- if (!this.$utils().u(p)) return this.add(7 * (p - this.isoWeek()), a);
963
- var m, n, c, D, g = f(this), l = (m = this.isoWeekYear(), n = this.$u, c = (n ? e.utc : e)().year(m).startOf("year"), D = 4 - c.isoWeekday(), c.isoWeekday() > 4 && (D += 7), c.add(D, a));
964
- return g.diff(l, "week") + 1;
965
- }, u.isoWeekday = function(p) {
966
- return this.$utils().u(p) ? this.day() || 7 : this.day(this.day() % 7 ? p : p - 7);
1027
+ return l(this).year();
1028
+ }, u.isoWeek = function(m) {
1029
+ if (!this.$utils().u(m)) return this.add(7 * (m - this.isoWeek()), a);
1030
+ var g, r, c, y, h = l(this), f = (g = this.isoWeekYear(), r = this.$u, c = (r ? e.utc : e)().year(g).startOf("year"), y = 4 - c.isoWeekday(), c.isoWeekday() > 4 && (y += 7), c.add(y, a));
1031
+ return h.diff(f, "week") + 1;
1032
+ }, u.isoWeekday = function(m) {
1033
+ return this.$utils().u(m) ? this.day() || 7 : this.day(this.day() % 7 ? m : m - 7);
967
1034
  };
968
- var h = u.startOf;
969
- u.startOf = function(p, m) {
970
- var n = this.$utils(), c = !!n.u(m) || m;
971
- return n.p(p) === "isoweek" ? c ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : h.bind(this)(p, m);
1035
+ var p = u.startOf;
1036
+ u.startOf = function(m, g) {
1037
+ var r = this.$utils(), c = !!r.u(g) || g;
1038
+ return r.p(m) === "isoweek" ? c ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : p.bind(this)(m, g);
972
1039
  };
973
1040
  };
974
1041
  });
975
1042
  }(Te)), Te.exports;
976
1043
  }
977
- var Ot = Mt();
978
- const It = /* @__PURE__ */ te(Ot);
1044
+ var It = Mt();
1045
+ const Ot = /* @__PURE__ */ ne(It);
979
1046
  var ke = { exports: {} }, Rt = ke.exports, Je;
980
1047
  function Lt() {
981
- return Je || (Je = 1, function(r, s) {
1048
+ return Je || (Je = 1, function(n, o) {
982
1049
  (function(a, i) {
983
- r.exports = i();
1050
+ n.exports = i();
984
1051
  })(Rt, function() {
985
1052
  return function(a, i) {
986
- i.prototype.isSameOrAfter = function(o, e) {
987
- return this.isSame(o, e) || this.isAfter(o, e);
1053
+ i.prototype.isSameOrAfter = function(s, e) {
1054
+ return this.isSame(s, e) || this.isAfter(s, e);
988
1055
  };
989
1056
  };
990
1057
  });
991
1058
  }(ke)), ke.exports;
992
1059
  }
993
1060
  var Ft = Lt();
994
- const jt = /* @__PURE__ */ te(Ft);
1061
+ const jt = /* @__PURE__ */ ne(Ft);
995
1062
  var Ee = { exports: {} }, Zt = Ee.exports, Qe;
996
1063
  function _t() {
997
- return Qe || (Qe = 1, function(r, s) {
1064
+ return Qe || (Qe = 1, function(n, o) {
998
1065
  (function(a, i) {
999
- r.exports = i();
1066
+ n.exports = i();
1000
1067
  })(Zt, function() {
1001
1068
  return function(a, i) {
1002
- i.prototype.isSameOrBefore = function(o, e) {
1003
- return this.isSame(o, e) || this.isBefore(o, e);
1069
+ i.prototype.isSameOrBefore = function(s, e) {
1070
+ return this.isSame(s, e) || this.isBefore(s, e);
1004
1071
  };
1005
1072
  };
1006
1073
  });
1007
1074
  }(Ee)), Ee.exports;
1008
1075
  }
1009
1076
  var Pt = _t();
1010
- const Nt = /* @__PURE__ */ te(Pt);
1011
- var Me = { exports: {} }, Ct = Me.exports, Ke;
1012
- function At() {
1013
- return Ke || (Ke = 1, function(r, s) {
1077
+ const Ct = /* @__PURE__ */ ne(Pt);
1078
+ var Me = { exports: {} }, At = Me.exports, Ke;
1079
+ function qt() {
1080
+ return Ke || (Ke = 1, function(n, o) {
1014
1081
  (function(a, i) {
1015
- r.exports = i();
1016
- })(Ct, function() {
1017
- return function(a, i, o) {
1082
+ n.exports = i();
1083
+ })(At, function() {
1084
+ return function(a, i, s) {
1018
1085
  i.prototype.isToday = function() {
1019
- var e = "YYYY-MM-DD", f = o();
1020
- return this.format(e) === f.format(e);
1086
+ var e = "YYYY-MM-DD", l = s();
1087
+ return this.format(e) === l.format(e);
1021
1088
  };
1022
1089
  };
1023
1090
  });
1024
1091
  }(Me)), Me.exports;
1025
1092
  }
1026
- var qt = At();
1027
- const Wt = /* @__PURE__ */ te(qt);
1028
- var Oe = { exports: {} }, Ut = Oe.exports, et;
1029
- function Ht() {
1030
- return et || (et = 1, function(r, s) {
1093
+ var Wt = qt();
1094
+ const Ht = /* @__PURE__ */ ne(Wt);
1095
+ var Ie = { exports: {} }, Nt = Ie.exports, et;
1096
+ function Ut() {
1097
+ return et || (et = 1, function(n, o) {
1031
1098
  (function(a, i) {
1032
- r.exports = i();
1033
- })(Ut, function() {
1034
- return function(a, i, o) {
1035
- var e = i.prototype, f = function(n) {
1036
- return n && (n.indexOf ? n : n.s);
1037
- }, u = function(n, c, D, g, l) {
1038
- var y = n.name ? n : n.$locale(), E = f(y[c]), j = f(y[D]), M = E || j.map(function(k) {
1039
- return k.slice(0, g);
1099
+ n.exports = i();
1100
+ })(Nt, function() {
1101
+ return function(a, i, s) {
1102
+ var e = i.prototype, l = function(r) {
1103
+ return r && (r.indexOf ? r : r.s);
1104
+ }, u = function(r, c, y, h, f) {
1105
+ var S = r.name ? r : r.$locale(), E = l(S[c]), F = l(S[y]), M = E || F.map(function(L) {
1106
+ return L.slice(0, h);
1040
1107
  });
1041
- if (!l) return M;
1042
- var R = y.weekStart;
1043
- return M.map(function(k, O) {
1044
- return M[(O + (R || 0)) % 7];
1108
+ if (!f) return M;
1109
+ var Z = S.weekStart;
1110
+ return M.map(function(L, k) {
1111
+ return M[(k + (Z || 0)) % 7];
1045
1112
  });
1046
- }, h = function() {
1047
- return o.Ls[o.locale()];
1048
- }, p = function(n, c) {
1049
- return n.formats[c] || function(D) {
1050
- return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(g, l, y) {
1051
- return l || y.slice(1);
1113
+ }, p = function() {
1114
+ return s.Ls[s.locale()];
1115
+ }, m = function(r, c) {
1116
+ return r.formats[c] || function(y) {
1117
+ return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(h, f, S) {
1118
+ return f || S.slice(1);
1052
1119
  });
1053
- }(n.formats[c.toUpperCase()]);
1054
- }, m = function() {
1055
- var n = this;
1120
+ }(r.formats[c.toUpperCase()]);
1121
+ }, g = function() {
1122
+ var r = this;
1056
1123
  return { months: function(c) {
1057
- return c ? c.format("MMMM") : u(n, "months");
1124
+ return c ? c.format("MMMM") : u(r, "months");
1058
1125
  }, monthsShort: function(c) {
1059
- return c ? c.format("MMM") : u(n, "monthsShort", "months", 3);
1126
+ return c ? c.format("MMM") : u(r, "monthsShort", "months", 3);
1060
1127
  }, firstDayOfWeek: function() {
1061
- return n.$locale().weekStart || 0;
1128
+ return r.$locale().weekStart || 0;
1062
1129
  }, weekdays: function(c) {
1063
- return c ? c.format("dddd") : u(n, "weekdays");
1130
+ return c ? c.format("dddd") : u(r, "weekdays");
1064
1131
  }, weekdaysMin: function(c) {
1065
- return c ? c.format("dd") : u(n, "weekdaysMin", "weekdays", 2);
1132
+ return c ? c.format("dd") : u(r, "weekdaysMin", "weekdays", 2);
1066
1133
  }, weekdaysShort: function(c) {
1067
- return c ? c.format("ddd") : u(n, "weekdaysShort", "weekdays", 3);
1134
+ return c ? c.format("ddd") : u(r, "weekdaysShort", "weekdays", 3);
1068
1135
  }, longDateFormat: function(c) {
1069
- return p(n.$locale(), c);
1136
+ return m(r.$locale(), c);
1070
1137
  }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
1071
1138
  };
1072
1139
  e.localeData = function() {
1073
- return m.bind(this)();
1074
- }, o.localeData = function() {
1075
- var n = h();
1140
+ return g.bind(this)();
1141
+ }, s.localeData = function() {
1142
+ var r = p();
1076
1143
  return { firstDayOfWeek: function() {
1077
- return n.weekStart || 0;
1144
+ return r.weekStart || 0;
1078
1145
  }, weekdays: function() {
1079
- return o.weekdays();
1146
+ return s.weekdays();
1080
1147
  }, weekdaysShort: function() {
1081
- return o.weekdaysShort();
1148
+ return s.weekdaysShort();
1082
1149
  }, weekdaysMin: function() {
1083
- return o.weekdaysMin();
1150
+ return s.weekdaysMin();
1084
1151
  }, months: function() {
1085
- return o.months();
1152
+ return s.months();
1086
1153
  }, monthsShort: function() {
1087
- return o.monthsShort();
1154
+ return s.monthsShort();
1088
1155
  }, longDateFormat: function(c) {
1089
- return p(n, c);
1090
- }, meridiem: n.meridiem, ordinal: n.ordinal };
1091
- }, o.months = function() {
1092
- return u(h(), "months");
1093
- }, o.monthsShort = function() {
1094
- return u(h(), "monthsShort", "months", 3);
1095
- }, o.weekdays = function(n) {
1096
- return u(h(), "weekdays", null, null, n);
1097
- }, o.weekdaysShort = function(n) {
1098
- return u(h(), "weekdaysShort", "weekdays", 3, n);
1099
- }, o.weekdaysMin = function(n) {
1100
- return u(h(), "weekdaysMin", "weekdays", 2, n);
1156
+ return m(r, c);
1157
+ }, meridiem: r.meridiem, ordinal: r.ordinal };
1158
+ }, s.months = function() {
1159
+ return u(p(), "months");
1160
+ }, s.monthsShort = function() {
1161
+ return u(p(), "monthsShort", "months", 3);
1162
+ }, s.weekdays = function(r) {
1163
+ return u(p(), "weekdays", null, null, r);
1164
+ }, s.weekdaysShort = function(r) {
1165
+ return u(p(), "weekdaysShort", "weekdays", 3, r);
1166
+ }, s.weekdaysMin = function(r) {
1167
+ return u(p(), "weekdaysMin", "weekdays", 2, r);
1101
1168
  };
1102
1169
  };
1103
1170
  });
1104
- }(Oe)), Oe.exports;
1171
+ }(Ie)), Ie.exports;
1105
1172
  }
1106
- var zt = Ht();
1107
- const Yt = /* @__PURE__ */ te(zt);
1108
- var Ie = { exports: {} }, Bt = Ie.exports, tt;
1173
+ var zt = Ut();
1174
+ const Yt = /* @__PURE__ */ ne(zt);
1175
+ var Oe = { exports: {} }, Bt = Oe.exports, tt;
1109
1176
  function Gt() {
1110
- return tt || (tt = 1, function(r, s) {
1177
+ return tt || (tt = 1, function(n, o) {
1111
1178
  (function(a, i) {
1112
- r.exports = i();
1179
+ n.exports = i();
1113
1180
  })(Bt, function() {
1114
1181
  var a = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, i = {};
1115
- return function(o, e, f) {
1116
- var u, h = function(c, D, g) {
1117
- g === void 0 && (g = {});
1118
- var l = new Date(c), y = function(E, j) {
1119
- j === void 0 && (j = {});
1120
- var M = j.timeZoneName || "short", R = E + "|" + M, k = i[R];
1121
- return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: E, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), i[R] = k), k;
1122
- }(D, g);
1123
- return y.formatToParts(l);
1124
- }, p = function(c, D) {
1125
- for (var g = h(c, D), l = [], y = 0; y < g.length; y += 1) {
1126
- var E = g[y], j = E.type, M = E.value, R = a[j];
1127
- R >= 0 && (l[R] = parseInt(M, 10));
1182
+ return function(s, e, l) {
1183
+ var u, p = function(c, y, h) {
1184
+ h === void 0 && (h = {});
1185
+ var f = new Date(c), S = function(E, F) {
1186
+ F === void 0 && (F = {});
1187
+ var M = F.timeZoneName || "short", Z = E + "|" + M, L = i[Z];
1188
+ return L || (L = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: E, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), i[Z] = L), L;
1189
+ }(y, h);
1190
+ return S.formatToParts(f);
1191
+ }, m = function(c, y) {
1192
+ for (var h = p(c, y), f = [], S = 0; S < h.length; S += 1) {
1193
+ var E = h[S], F = E.type, M = E.value, Z = a[F];
1194
+ Z >= 0 && (f[Z] = parseInt(M, 10));
1128
1195
  }
1129
- var k = l[3], O = k === 24 ? 0 : k, P = l[0] + "-" + l[1] + "-" + l[2] + " " + O + ":" + l[4] + ":" + l[5] + ":000", Y = +c;
1130
- return (f.utc(P).valueOf() - (Y -= Y % 1e3)) / 6e4;
1131
- }, m = e.prototype;
1132
- m.tz = function(c, D) {
1196
+ var L = f[3], k = L === 24 ? 0 : L, P = f[0] + "-" + f[1] + "-" + f[2] + " " + k + ":" + f[4] + ":" + f[5] + ":000", W = +c;
1197
+ return (l.utc(P).valueOf() - (W -= W % 1e3)) / 6e4;
1198
+ }, g = e.prototype;
1199
+ g.tz = function(c, y) {
1133
1200
  c === void 0 && (c = u);
1134
- var g, l = this.utcOffset(), y = this.toDate(), E = y.toLocaleString("en-US", { timeZone: c }), j = Math.round((y - new Date(E)) / 1e3 / 60), M = 15 * -Math.round(y.getTimezoneOffset() / 15) - j;
1135
- if (!Number(M)) g = this.utcOffset(0, D);
1136
- else if (g = f(E, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(M, !0), D) {
1137
- var R = g.utcOffset();
1138
- g = g.add(l - R, "minute");
1201
+ var h, f = this.utcOffset(), S = this.toDate(), E = S.toLocaleString("en-US", { timeZone: c }), F = Math.round((S - new Date(E)) / 1e3 / 60), M = 15 * -Math.round(S.getTimezoneOffset() / 15) - F;
1202
+ if (!Number(M)) h = this.utcOffset(0, y);
1203
+ else if (h = l(E, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(M, !0), y) {
1204
+ var Z = h.utcOffset();
1205
+ h = h.add(f - Z, "minute");
1139
1206
  }
1140
- return g.$x.$timezone = c, g;
1141
- }, m.offsetName = function(c) {
1142
- var D = this.$x.$timezone || f.tz.guess(), g = h(this.valueOf(), D, { timeZoneName: c }).find(function(l) {
1143
- return l.type.toLowerCase() === "timezonename";
1207
+ return h.$x.$timezone = c, h;
1208
+ }, g.offsetName = function(c) {
1209
+ var y = this.$x.$timezone || l.tz.guess(), h = p(this.valueOf(), y, { timeZoneName: c }).find(function(f) {
1210
+ return f.type.toLowerCase() === "timezonename";
1144
1211
  });
1145
- return g && g.value;
1212
+ return h && h.value;
1146
1213
  };
1147
- var n = m.startOf;
1148
- m.startOf = function(c, D) {
1149
- if (!this.$x || !this.$x.$timezone) return n.call(this, c, D);
1150
- var g = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1151
- return n.call(g, c, D).tz(this.$x.$timezone, !0);
1152
- }, f.tz = function(c, D, g) {
1153
- var l = g && D, y = g || D || u, E = p(+f(), y);
1154
- if (typeof c != "string") return f(c).tz(y);
1155
- var j = function(O, P, Y) {
1156
- var $ = O - 60 * P * 1e3, d = p($, Y);
1214
+ var r = g.startOf;
1215
+ g.startOf = function(c, y) {
1216
+ if (!this.$x || !this.$x.$timezone) return r.call(this, c, y);
1217
+ var h = l(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1218
+ return r.call(h, c, y).tz(this.$x.$timezone, !0);
1219
+ }, l.tz = function(c, y, h) {
1220
+ var f = h && y, S = h || y || u, E = m(+l(), S);
1221
+ if (typeof c != "string") return l(c).tz(S);
1222
+ var F = function(k, P, W) {
1223
+ var $ = k - 60 * P * 1e3, d = m($, W);
1157
1224
  if (P === d) return [$, P];
1158
- var I = p($ -= 60 * (d - P) * 1e3, Y);
1159
- return d === I ? [$, d] : [O - 60 * Math.min(d, I) * 1e3, Math.max(d, I)];
1160
- }(f.utc(c, l).valueOf(), E, y), M = j[0], R = j[1], k = f(M).utcOffset(R);
1161
- return k.$x.$timezone = y, k;
1162
- }, f.tz.guess = function() {
1225
+ var O = m($ -= 60 * (d - P) * 1e3, W);
1226
+ return d === O ? [$, d] : [k - 60 * Math.min(d, O) * 1e3, Math.max(d, O)];
1227
+ }(l.utc(c, f).valueOf(), E, S), M = F[0], Z = F[1], L = l(M).utcOffset(Z);
1228
+ return L.$x.$timezone = S, L;
1229
+ }, l.tz.guess = function() {
1163
1230
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1164
- }, f.tz.setDefault = function(c) {
1231
+ }, l.tz.setDefault = function(c) {
1165
1232
  u = c;
1166
1233
  };
1167
1234
  };
1168
1235
  });
1169
- }(Ie)), Ie.exports;
1236
+ }(Oe)), Oe.exports;
1170
1237
  }
1171
- var Vt = Gt();
1172
- const Xt = /* @__PURE__ */ te(Vt);
1173
- var Re = { exports: {} }, Jt = Re.exports, rt;
1238
+ var Xt = Gt();
1239
+ const Vt = /* @__PURE__ */ ne(Xt);
1240
+ var Re = { exports: {} }, Jt = Re.exports, nt;
1174
1241
  function Qt() {
1175
- return rt || (rt = 1, function(r, s) {
1242
+ return nt || (nt = 1, function(n, o) {
1176
1243
  (function(a, i) {
1177
- r.exports = i();
1244
+ n.exports = i();
1178
1245
  })(Jt, function() {
1179
- return function(a, i, o) {
1180
- o.updateLocale = function(e, f) {
1181
- var u = o.Ls[e];
1182
- if (u) return (f ? Object.keys(f) : []).forEach(function(h) {
1183
- u[h] = f[h];
1246
+ return function(a, i, s) {
1247
+ s.updateLocale = function(e, l) {
1248
+ var u = s.Ls[e];
1249
+ if (u) return (l ? Object.keys(l) : []).forEach(function(p) {
1250
+ u[p] = l[p];
1184
1251
  }), u;
1185
1252
  };
1186
1253
  };
@@ -1188,307 +1255,307 @@ function Qt() {
1188
1255
  }(Re)), Re.exports;
1189
1256
  }
1190
1257
  var Kt = Qt();
1191
- const er = /* @__PURE__ */ te(Kt);
1192
- var Le = { exports: {} }, tr = Le.exports, nt;
1193
- function rr() {
1194
- return nt || (nt = 1, function(r, s) {
1258
+ const en = /* @__PURE__ */ ne(Kt);
1259
+ var Le = { exports: {} }, tn = Le.exports, rt;
1260
+ function nn() {
1261
+ return rt || (rt = 1, function(n, o) {
1195
1262
  (function(a, i) {
1196
- r.exports = i();
1197
- })(tr, function() {
1198
- var a = "minute", i = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
1199
- return function(e, f, u) {
1200
- var h = f.prototype;
1201
- u.utc = function(l) {
1202
- var y = { date: l, utc: !0, args: arguments };
1203
- return new f(y);
1204
- }, h.utc = function(l) {
1205
- var y = u(this.toDate(), { locale: this.$L, utc: !0 });
1206
- return l ? y.add(this.utcOffset(), a) : y;
1207
- }, h.local = function() {
1263
+ n.exports = i();
1264
+ })(tn, function() {
1265
+ var a = "minute", i = /[+-]\d\d(?::?\d\d)?/g, s = /([+-]|\d\d)/g;
1266
+ return function(e, l, u) {
1267
+ var p = l.prototype;
1268
+ u.utc = function(f) {
1269
+ var S = { date: f, utc: !0, args: arguments };
1270
+ return new l(S);
1271
+ }, p.utc = function(f) {
1272
+ var S = u(this.toDate(), { locale: this.$L, utc: !0 });
1273
+ return f ? S.add(this.utcOffset(), a) : S;
1274
+ }, p.local = function() {
1208
1275
  return u(this.toDate(), { locale: this.$L, utc: !1 });
1209
1276
  };
1210
- var p = h.parse;
1211
- h.parse = function(l) {
1212
- l.utc && (this.$u = !0), this.$utils().u(l.$offset) || (this.$offset = l.$offset), p.call(this, l);
1277
+ var m = p.parse;
1278
+ p.parse = function(f) {
1279
+ f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), m.call(this, f);
1213
1280
  };
1214
- var m = h.init;
1215
- h.init = function() {
1281
+ var g = p.init;
1282
+ p.init = function() {
1216
1283
  if (this.$u) {
1217
- var l = this.$d;
1218
- this.$y = l.getUTCFullYear(), this.$M = l.getUTCMonth(), this.$D = l.getUTCDate(), this.$W = l.getUTCDay(), this.$H = l.getUTCHours(), this.$m = l.getUTCMinutes(), this.$s = l.getUTCSeconds(), this.$ms = l.getUTCMilliseconds();
1219
- } else m.call(this);
1284
+ var f = this.$d;
1285
+ this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
1286
+ } else g.call(this);
1220
1287
  };
1221
- var n = h.utcOffset;
1222
- h.utcOffset = function(l, y) {
1288
+ var r = p.utcOffset;
1289
+ p.utcOffset = function(f, S) {
1223
1290
  var E = this.$utils().u;
1224
- if (E(l)) return this.$u ? 0 : E(this.$offset) ? n.call(this) : this.$offset;
1225
- if (typeof l == "string" && (l = function(k) {
1226
- k === void 0 && (k = "");
1227
- var O = k.match(i);
1228
- if (!O) return null;
1229
- var P = ("" + O[0]).match(o) || ["-", 0, 0], Y = P[0], $ = 60 * +P[1] + +P[2];
1230
- return $ === 0 ? 0 : Y === "+" ? $ : -$;
1231
- }(l), l === null)) return this;
1232
- var j = Math.abs(l) <= 16 ? 60 * l : l, M = this;
1233
- if (y) return M.$offset = j, M.$u = l === 0, M;
1234
- if (l !== 0) {
1235
- var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1236
- (M = this.local().add(j + R, a)).$offset = j, M.$x.$localOffset = R;
1291
+ if (E(f)) return this.$u ? 0 : E(this.$offset) ? r.call(this) : this.$offset;
1292
+ if (typeof f == "string" && (f = function(L) {
1293
+ L === void 0 && (L = "");
1294
+ var k = L.match(i);
1295
+ if (!k) return null;
1296
+ var P = ("" + k[0]).match(s) || ["-", 0, 0], W = P[0], $ = 60 * +P[1] + +P[2];
1297
+ return $ === 0 ? 0 : W === "+" ? $ : -$;
1298
+ }(f), f === null)) return this;
1299
+ var F = Math.abs(f) <= 16 ? 60 * f : f, M = this;
1300
+ if (S) return M.$offset = F, M.$u = f === 0, M;
1301
+ if (f !== 0) {
1302
+ var Z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1303
+ (M = this.local().add(F + Z, a)).$offset = F, M.$x.$localOffset = Z;
1237
1304
  } else M = this.utc();
1238
1305
  return M;
1239
1306
  };
1240
- var c = h.format;
1241
- h.format = function(l) {
1242
- var y = l || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1243
- return c.call(this, y);
1244
- }, h.valueOf = function() {
1245
- var l = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1246
- return this.$d.valueOf() - 6e4 * l;
1247
- }, h.isUTC = function() {
1307
+ var c = p.format;
1308
+ p.format = function(f) {
1309
+ var S = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1310
+ return c.call(this, S);
1311
+ }, p.valueOf = function() {
1312
+ var f = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1313
+ return this.$d.valueOf() - 6e4 * f;
1314
+ }, p.isUTC = function() {
1248
1315
  return !!this.$u;
1249
- }, h.toISOString = function() {
1316
+ }, p.toISOString = function() {
1250
1317
  return this.toDate().toISOString();
1251
- }, h.toString = function() {
1318
+ }, p.toString = function() {
1252
1319
  return this.toDate().toUTCString();
1253
1320
  };
1254
- var D = h.toDate;
1255
- h.toDate = function(l) {
1256
- return l === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : D.call(this);
1321
+ var y = p.toDate;
1322
+ p.toDate = function(f) {
1323
+ return f === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
1257
1324
  };
1258
- var g = h.diff;
1259
- h.diff = function(l, y, E) {
1260
- if (l && this.$u === l.$u) return g.call(this, l, y, E);
1261
- var j = this.local(), M = u(l).local();
1262
- return g.call(j, M, y, E);
1325
+ var h = p.diff;
1326
+ p.diff = function(f, S, E) {
1327
+ if (f && this.$u === f.$u) return h.call(this, f, S, E);
1328
+ var F = this.local(), M = u(f).local();
1329
+ return h.call(F, M, S, E);
1263
1330
  };
1264
1331
  };
1265
1332
  });
1266
1333
  }(Le)), Le.exports;
1267
1334
  }
1268
- var nr = rr();
1269
- const ar = /* @__PURE__ */ te(nr);
1270
- var Fe = { exports: {} }, sr = Fe.exports, at;
1271
- function or() {
1272
- return at || (at = 1, function(r, s) {
1335
+ var rn = nn();
1336
+ const an = /* @__PURE__ */ ne(rn);
1337
+ var Fe = { exports: {} }, on = Fe.exports, at;
1338
+ function sn() {
1339
+ return at || (at = 1, function(n, o) {
1273
1340
  (function(a, i) {
1274
- r.exports = i();
1275
- })(sr, function() {
1341
+ n.exports = i();
1342
+ })(on, function() {
1276
1343
  return function(a, i) {
1277
- i.prototype.weekday = function(o) {
1278
- var e = this.$locale().weekStart || 0, f = this.$W, u = (f < e ? f + 7 : f) - e;
1279
- return this.$utils().u(o) ? u : this.subtract(u, "day").add(o, "day");
1344
+ i.prototype.weekday = function(s) {
1345
+ var e = this.$locale().weekStart || 0, l = this.$W, u = (l < e ? l + 7 : l) - e;
1346
+ return this.$utils().u(s) ? u : this.subtract(u, "day").add(s, "day");
1280
1347
  };
1281
1348
  };
1282
1349
  });
1283
1350
  }(Fe)), Fe.exports;
1284
1351
  }
1285
- var ir = or();
1286
- const ur = /* @__PURE__ */ te(ir);
1287
- q.extend(ur);
1288
- q.extend(Wt);
1289
- q.extend(ar);
1290
- q.extend(Xt);
1291
- q.extend(jt);
1292
- q.extend(Nt);
1293
- q.extend(kt);
1294
- q.extend(Yt);
1295
- q.extend(er);
1296
- q.extend(It);
1297
- function cr(r) {
1298
- return [...r].sort((s, a) => {
1299
- const i = s.sequence.split(".").map(Number), o = a.sequence.split(".").map(Number);
1300
- for (let e = 0; e < Math.max(i.length, o.length); e++) {
1301
- const f = i[e] || 0, u = o[e] || 0;
1302
- if (f !== u) return f - u;
1352
+ var un = sn();
1353
+ const cn = /* @__PURE__ */ ne(un);
1354
+ H.extend(cn);
1355
+ H.extend(Ht);
1356
+ H.extend(an);
1357
+ H.extend(Vt);
1358
+ H.extend(jt);
1359
+ H.extend(Ct);
1360
+ H.extend(kt);
1361
+ H.extend(Yt);
1362
+ H.extend(en);
1363
+ H.extend(Ot);
1364
+ function dn(n) {
1365
+ return [...n].sort((o, a) => {
1366
+ const i = o.sequence.split(".").map(Number), s = a.sequence.split(".").map(Number);
1367
+ for (let e = 0; e < Math.max(i.length, s.length); e++) {
1368
+ const l = i[e] || 0, u = s[e] || 0;
1369
+ if (l !== u) return l - u;
1303
1370
  }
1304
1371
  return 0;
1305
1372
  });
1306
1373
  }
1307
- function dr(r) {
1308
- return r.split(".").length - 1;
1374
+ function ln(n) {
1375
+ return n.split(".").length - 1;
1309
1376
  }
1310
- function Pe(r, s, a) {
1311
- const i = cr(r);
1312
- let o = 0;
1377
+ function Pe(n, o, a) {
1378
+ const i = dn(n);
1379
+ let s = 0;
1313
1380
  return i.map((e) => {
1314
- o++;
1315
- const f = dr(e.sequence), { barMarginLeftAmount: u, barWidthSize: h } = gt(
1316
- q(e.startDate),
1317
- q(e.endDate),
1318
- s,
1381
+ s++;
1382
+ const l = ln(e.sequence), { barMarginLeftAmount: u, barWidthSize: p } = gt(
1383
+ H(e.startDate),
1384
+ H(e.endDate),
1385
+ o,
1319
1386
  a
1320
1387
  );
1321
1388
  return {
1322
1389
  ...e,
1323
1390
  barLeft: u,
1324
- barWidth: h,
1325
- depth: f,
1326
- order: o,
1327
- originalOrder: o
1391
+ barWidth: p,
1392
+ depth: l,
1393
+ order: s,
1394
+ originalOrder: s
1328
1395
  };
1329
1396
  });
1330
1397
  }
1331
- const st = (r) => {
1332
- let s;
1333
- const a = /* @__PURE__ */ new Set(), i = (p, m) => {
1334
- const n = typeof p == "function" ? p(s) : p;
1335
- if (!Object.is(n, s)) {
1336
- const c = s;
1337
- s = m ?? (typeof n != "object" || n === null) ? n : Object.assign({}, s, n), a.forEach((D) => D(s, c));
1398
+ const ot = (n) => {
1399
+ let o;
1400
+ const a = /* @__PURE__ */ new Set(), i = (m, g) => {
1401
+ const r = typeof m == "function" ? m(o) : m;
1402
+ if (!Object.is(r, o)) {
1403
+ const c = o;
1404
+ o = g ?? (typeof r != "object" || r === null) ? r : Object.assign({}, o, r), a.forEach((y) => y(o, c));
1338
1405
  }
1339
- }, o = () => s, u = { setState: i, getState: o, getInitialState: () => h, subscribe: (p) => (a.add(p), () => a.delete(p)) }, h = s = r(i, o, u);
1406
+ }, s = () => o, u = { setState: i, getState: s, getInitialState: () => p, subscribe: (m) => (a.add(m), () => a.delete(m)) }, p = o = n(i, s, u);
1340
1407
  return u;
1341
- }, lr = (r) => r ? st(r) : st, fr = (r) => r;
1342
- function hr(r, s = fr) {
1343
- const a = Ne.useSyncExternalStore(
1344
- r.subscribe,
1345
- () => s(r.getState()),
1346
- () => s(r.getInitialState())
1408
+ }, fn = (n) => n ? ot(n) : ot, pn = (n) => n;
1409
+ function hn(n, o = pn) {
1410
+ const a = Ce.useSyncExternalStore(
1411
+ n.subscribe,
1412
+ () => o(n.getState()),
1413
+ () => o(n.getInitialState())
1347
1414
  );
1348
- return Ne.useDebugValue(a), a;
1415
+ return Ce.useDebugValue(a), a;
1349
1416
  }
1350
- const ot = (r) => {
1351
- const s = lr(r), a = (i) => hr(s, i);
1352
- return Object.assign(a, s), a;
1353
- }, mr = (r) => r ? ot(r) : ot, De = mr((r, s) => ({
1417
+ const st = (n) => {
1418
+ const o = fn(n), a = (i) => hn(o, i);
1419
+ return Object.assign(a, o), a;
1420
+ }, mn = (n) => n ? st(n) : st, ye = mn((n, o) => ({
1354
1421
  rawTasks: [],
1355
1422
  transformedTasks: [],
1356
1423
  bottomRowCells: [],
1357
1424
  topHeaderGroups: [],
1358
1425
  selectedScale: "month",
1359
- minDate: q(),
1360
- maxDate: q(),
1426
+ minDate: H(),
1427
+ maxDate: H(),
1361
1428
  draggingTaskMeta: null,
1362
1429
  setSelectedScale: (a) => {
1363
- const { rawTasks: i, bottomRowCells: o } = s(), e = Pe(i, o, a);
1364
- r({ selectedScale: a, transformedTasks: e });
1430
+ const { rawTasks: i, bottomRowCells: s } = o(), e = Pe(i, s, a);
1431
+ n({ selectedScale: a, transformedTasks: e });
1365
1432
  },
1366
1433
  setRawTasks: (a) => {
1367
- const { bottomRowCells: i, selectedScale: o } = s(), e = Pe(a, i, o);
1368
- r({ rawTasks: a, transformedTasks: e });
1434
+ const { bottomRowCells: i, selectedScale: s } = o(), e = Pe(a, i, s);
1435
+ n({ rawTasks: a, transformedTasks: e });
1369
1436
  },
1370
1437
  setBottomRowCells: (a) => {
1371
- const { rawTasks: i, selectedScale: o } = s(), e = Pe(i, a, o);
1372
- r({ bottomRowCells: a, transformedTasks: e });
1438
+ const { rawTasks: i, selectedScale: s } = o(), e = Pe(i, a, s);
1439
+ n({ bottomRowCells: a, transformedTasks: e });
1373
1440
  },
1374
- setTopHeaderGroups: (a) => r({ topHeaderGroups: a }),
1375
- setMinDate: (a) => r({ minDate: a }),
1376
- setMaxDate: (a) => r({ maxDate: a }),
1377
- setDraggingTaskMeta: (a) => r({ draggingTaskMeta: a }),
1378
- clearDraggingTaskMeta: () => r({ draggingTaskMeta: null })
1379
- })), pr = [{ id: "1", name: "Project Kickoff", startDate: "2024-06-01T09:00:00Z", endDate: "2024-06-01T11:00:00Z", parentId: null, sequence: "1", dependencies: [] }, { id: "2", name: "Requirement Gathering", startDate: "2024-06-02T09:00:00Z", endDate: "2024-06-05T17:00:00Z", parentId: null, sequence: "2", dependencies: [{ targetId: "1", type: "FS" }] }, { id: "3", name: "Stakeholder Interviews", startDate: "2024-06-02T10:00:00Z", endDate: "2024-06-03T17:00:00Z", parentId: "2", sequence: "2.1", dependencies: [{ targetId: "1", type: "SF" }] }, { id: "4", name: "Market Analysis", startDate: "2024-06-06T09:00:00Z", endDate: "2024-06-07T17:00:00Z", parentId: null, sequence: "3", dependencies: [{ targetId: "2", type: "FS" }] }, { id: "5", name: "Design System Creation", startDate: "2024-06-08T09:00:00Z", endDate: "2024-06-12T17:00:00Z", parentId: null, sequence: "4", dependencies: [{ targetId: "2", type: "FS" }, { targetId: "3", type: "SS" }] }, { id: "6", name: "UI/UX Design", startDate: "2024-06-13T09:00:00Z", endDate: "2024-06-16T17:00:00Z", parentId: "5", sequence: "4.1", dependencies: [{ targetId: "5", type: "FS" }] }, { id: "7", name: "Prototyping", startDate: "2024-06-17T09:00:00Z", endDate: "2024-06-20T17:00:00Z", parentId: "6", sequence: "4.1.1", dependencies: [{ targetId: "6", type: "FS" }] }, { id: "8", name: "Frontend Development", startDate: "2024-06-21T09:00:00Z", endDate: "2024-06-30T17:00:00Z", parentId: null, sequence: "5", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "9", name: "Backend Development", startDate: "2024-07-01T09:00:00Z", endDate: "2024-07-10T17:00:00Z", parentId: null, sequence: "6", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "10", name: "API Integration", startDate: "2024-07-11T09:00:00Z", endDate: "2024-07-15T17:00:00Z", parentId: "9", sequence: "6.1", dependencies: [{ targetId: "9", type: "FS" }] }, { id: "11", name: "Module Development", startDate: "2024-07-16T09:00:00Z", endDate: "2024-07-20T17:00:00Z", parentId: "8", sequence: "5.1", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "12", name: "Unit Testing", startDate: "2024-07-21T09:00:00Z", endDate: "2024-07-25T17:00:00Z", parentId: "8", sequence: "5.2", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "13", name: "Integration Testing", startDate: "2024-07-26T09:00:00Z", endDate: "2024-07-30T17:00:00Z", parentId: "10", sequence: "6.1.1", dependencies: [{ targetId: "10", type: "FS" }] }, { id: "14", name: "Code Review", startDate: "2024-07-31T09:00:00Z", endDate: "2024-08-04T17:00:00Z", parentId: "10", sequence: "6.1.2", dependencies: [{ targetId: "13", type: "FS" }] }, { id: "15", name: "Community Feedback", startDate: "2024-08-05T09:00:00Z", endDate: "2024-08-08T17:00:00Z", parentId: null, sequence: "7", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "16", name: "Documentation Drafting", startDate: "2024-08-09T09:00:00Z", endDate: "2024-08-12T17:00:00Z", parentId: null, sequence: "8", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "17", name: "Documentation Finalization", startDate: "2024-08-13T09:00:00Z", endDate: "2024-08-16T17:00:00Z", parentId: "16", sequence: "8.1", dependencies: [{ targetId: "16", type: "FS" }] }, { id: "18", name: "Pre-release Demo", startDate: "2024-08-17T09:00:00Z", endDate: "2024-08-20T17:00:00Z", parentId: null, sequence: "9", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "19", name: "Bug Fixing", startDate: "2024-08-21T09:00:00Z", endDate: "2024-08-25T17:00:00Z", parentId: null, sequence: "10", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "20", name: "Release Candidate", startDate: "2024-08-26T09:00:00Z", endDate: "2024-08-30T17:00:00Z", parentId: null, sequence: "11", dependencies: [{ targetId: "18", type: "FS" }] }, { id: "21", name: "Final Release", startDate: "2024-08-31T09:00:00Z", endDate: "2024-09-02T17:00:00Z", parentId: null, sequence: "12", dependencies: [{ targetId: "20", type: "FS" }] }, { id: "22", name: "Post-release Monitoring", startDate: "2024-09-03T09:00:00Z", endDate: "2024-09-04T17:00:00Z", parentId: null, sequence: "13", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "23", name: "Community Engagement", startDate: "2024-09-05T09:00:00Z", endDate: "2024-09-06T17:00:00Z", parentId: null, sequence: "14", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "24", name: "Feature Iteration Planning", startDate: "2024-09-07T09:00:00Z", endDate: "2024-09-08T17:00:00Z", parentId: null, sequence: "15", dependencies: [{ targetId: "22", type: "FS" }] }, { id: "25", name: "Additional Module Development", startDate: "2024-09-09T09:00:00Z", endDate: "2024-09-10T17:00:00Z", parentId: "24", sequence: "15.1", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "26", name: "Additional Testing", startDate: "2024-09-11T09:00:00Z", endDate: "2024-09-12T17:00:00Z", parentId: "25", sequence: "15.1.1", dependencies: [{ targetId: "25", type: "FS" }] }, { id: "27", name: "Code Refactoring", startDate: "2024-09-13T09:00:00Z", endDate: "2024-09-14T17:00:00Z", parentId: null, sequence: "16", dependencies: [{ targetId: "26", type: "FS" }] }, { id: "28", name: "Performance Optimization", startDate: "2024-09-15T09:00:00Z", endDate: "2024-09-16T17:00:00Z", parentId: "27", sequence: "16.1", dependencies: [{ targetId: "27", type: "FS" }] }, { id: "29", name: "Security Audit", startDate: "2024-09-17T09:00:00Z", endDate: "2024-09-18T17:00:00Z", parentId: null, sequence: "17", dependencies: [{ targetId: "28", type: "FS" }] }, { id: "30", name: "Final QA", startDate: "2024-09-19T09:00:00Z", endDate: "2024-09-20T17:00:00Z", parentId: null, sequence: "18", dependencies: [{ targetId: "29", type: "FS" }] }, { id: "31", name: "Launch Webinar", startDate: "2024-09-21T09:00:00Z", endDate: "2024-09-22T17:00:00Z", parentId: null, sequence: "19", dependencies: [{ targetId: "21", type: "SS" }] }, { id: "32", name: "Marketing Campaign", startDate: "2024-09-23T09:00:00Z", endDate: "2024-09-24T17:00:00Z", parentId: null, sequence: "20", dependencies: [{ targetId: "21", type: "SF" }] }, { id: "33", name: "Post-release Bug Fixing", startDate: "2024-09-25T09:00:00Z", endDate: "2024-09-26T17:00:00Z", parentId: null, sequence: "21", dependencies: [{ targetId: "22", type: "SS" }] }, { id: "34", name: "Version 1.1 Planning", startDate: "2024-09-27T09:00:00Z", endDate: "2024-09-28T17:00:00Z", parentId: null, sequence: "22", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "35", name: "Feature Implementation", startDate: "2024-09-29T09:00:00Z", endDate: "2024-09-30T17:00:00Z", parentId: "34", sequence: "22.1", dependencies: [{ targetId: "34", type: "FS" }] }, { id: "36", name: "Beta Testing", startDate: "2024-10-01T09:00:00Z", endDate: "2024-10-02T17:00:00Z", parentId: "35", sequence: "22.1.1", dependencies: [{ targetId: "35", type: "FS" }] }, { id: "37", name: "Community Beta Feedback", startDate: "2024-10-03T09:00:00Z", endDate: "2024-10-04T17:00:00Z", parentId: "36", sequence: "22.1.2", dependencies: [{ targetId: "36", type: "FS" }] }, { id: "38", name: "Final Beta Fixes", startDate: "2024-10-05T09:00:00Z", endDate: "2024-10-06T17:00:00Z", parentId: "37", sequence: "22.1.3", dependencies: [{ targetId: "37", type: "FS" }] }, { id: "39", name: "Documentation Update", startDate: "2024-10-07T09:00:00Z", endDate: "2024-10-08T17:00:00Z", parentId: "17", sequence: "8.1.1", dependencies: [{ targetId: "17", type: "FS" }] }, { id: "40", name: "Final Release Version 1.1", startDate: "2024-10-09T09:00:00Z", endDate: "2024-10-10T17:00:00Z", parentId: null, sequence: "23", dependencies: [{ targetId: "38", type: "FS" }] }, { id: "41", name: "Project Retrospective", startDate: "2024-10-11T09:00:00Z", endDate: "2024-10-12T17:00:00Z", parentId: null, sequence: "24", dependencies: [{ targetId: "40", type: "FS" }] }], it = (r) => /* @__PURE__ */ Ue.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...r }, /* @__PURE__ */ Ue.createElement("path", { d: "M10.2 4L10.2 20L7.8 20L7.8 4L10.2 4ZM15 4L15 20L12.6 20L12.6 4L15 4ZM5.4 15.0999L5.4 7.8999L1.8 11.4999L5.4 15.0999ZM17.4 7.8999L17.4 15.0999L21 11.4999L17.4 7.8999Z" }));
1380
- function pe(r, s) {
1381
- const { basePxPerDragStep: a } = K[s];
1382
- return Math.round(r / a);
1441
+ setTopHeaderGroups: (a) => n({ topHeaderGroups: a }),
1442
+ setMinDate: (a) => n({ minDate: a }),
1443
+ setMaxDate: (a) => n({ maxDate: a }),
1444
+ setDraggingTaskMeta: (a) => n({ draggingTaskMeta: a }),
1445
+ clearDraggingTaskMeta: () => n({ draggingTaskMeta: null })
1446
+ })), $n = [{ id: "1", name: "Project Kickoff", startDate: "2024-06-01T09:00:00Z", endDate: "2024-06-01T11:00:00Z", parentId: null, sequence: "1", dependencies: [] }, { id: "2", name: "Requirement Gathering", startDate: "2024-06-02T09:00:00Z", endDate: "2024-06-05T17:00:00Z", parentId: null, sequence: "2", dependencies: [{ targetId: "1", type: "FS" }] }, { id: "3", name: "Stakeholder Interviews", startDate: "2024-06-02T10:00:00Z", endDate: "2024-06-03T17:00:00Z", parentId: "2", sequence: "2.1", dependencies: [{ targetId: "1", type: "SF" }] }, { id: "4", name: "Market Analysis", startDate: "2024-06-06T09:00:00Z", endDate: "2024-06-07T17:00:00Z", parentId: null, sequence: "3", dependencies: [{ targetId: "2", type: "FS" }] }, { id: "5", name: "Design System Creation", startDate: "2024-06-08T09:00:00Z", endDate: "2024-06-12T17:00:00Z", parentId: null, sequence: "4", dependencies: [{ targetId: "2", type: "FS" }, { targetId: "3", type: "SS" }] }, { id: "6", name: "UI/UX Design", startDate: "2024-06-13T09:00:00Z", endDate: "2024-06-16T17:00:00Z", parentId: "5", sequence: "4.1", dependencies: [{ targetId: "5", type: "FS" }] }, { id: "7", name: "Prototyping", startDate: "2024-06-17T09:00:00Z", endDate: "2024-06-20T17:00:00Z", parentId: "6", sequence: "4.1.1", dependencies: [{ targetId: "6", type: "FS" }] }, { id: "8", name: "Frontend Development", startDate: "2024-06-21T09:00:00Z", endDate: "2024-06-30T17:00:00Z", parentId: null, sequence: "5", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "9", name: "Backend Development", startDate: "2024-07-01T09:00:00Z", endDate: "2024-07-10T17:00:00Z", parentId: null, sequence: "6", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "10", name: "API Integration", startDate: "2024-07-11T09:00:00Z", endDate: "2024-07-15T17:00:00Z", parentId: "9", sequence: "6.1", dependencies: [{ targetId: "9", type: "FS" }] }, { id: "11", name: "Module Development", startDate: "2024-07-16T09:00:00Z", endDate: "2024-07-20T17:00:00Z", parentId: "8", sequence: "5.1", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "12", name: "Unit Testing", startDate: "2024-07-21T09:00:00Z", endDate: "2024-07-25T17:00:00Z", parentId: "8", sequence: "5.2", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "13", name: "Integration Testing", startDate: "2024-07-26T09:00:00Z", endDate: "2024-07-30T17:00:00Z", parentId: "10", sequence: "6.1.1", dependencies: [{ targetId: "10", type: "FS" }] }, { id: "14", name: "Code Review", startDate: "2024-07-31T09:00:00Z", endDate: "2024-08-04T17:00:00Z", parentId: "10", sequence: "6.1.2", dependencies: [{ targetId: "13", type: "FS" }] }, { id: "15", name: "Community Feedback", startDate: "2024-08-05T09:00:00Z", endDate: "2024-08-08T17:00:00Z", parentId: null, sequence: "7", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "16", name: "Documentation Drafting", startDate: "2024-08-09T09:00:00Z", endDate: "2024-08-12T17:00:00Z", parentId: null, sequence: "8", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "17", name: "Documentation Finalization", startDate: "2024-08-13T09:00:00Z", endDate: "2024-08-16T17:00:00Z", parentId: "16", sequence: "8.1", dependencies: [{ targetId: "16", type: "FS" }] }, { id: "18", name: "Pre-release Demo", startDate: "2024-08-17T09:00:00Z", endDate: "2024-08-20T17:00:00Z", parentId: null, sequence: "9", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "19", name: "Bug Fixing", startDate: "2024-08-21T09:00:00Z", endDate: "2024-08-25T17:00:00Z", parentId: null, sequence: "10", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "20", name: "Release Candidate", startDate: "2024-08-26T09:00:00Z", endDate: "2024-08-30T17:00:00Z", parentId: null, sequence: "11", dependencies: [{ targetId: "18", type: "FS" }] }, { id: "21", name: "Final Release", startDate: "2024-08-31T09:00:00Z", endDate: "2024-09-02T17:00:00Z", parentId: null, sequence: "12", dependencies: [{ targetId: "20", type: "FS" }] }, { id: "22", name: "Post-release Monitoring", startDate: "2024-09-03T09:00:00Z", endDate: "2024-09-04T17:00:00Z", parentId: null, sequence: "13", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "23", name: "Community Engagement", startDate: "2024-09-05T09:00:00Z", endDate: "2024-09-06T17:00:00Z", parentId: null, sequence: "14", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "24", name: "Feature Iteration Planning", startDate: "2024-09-07T09:00:00Z", endDate: "2024-09-08T17:00:00Z", parentId: null, sequence: "15", dependencies: [{ targetId: "22", type: "FS" }] }, { id: "25", name: "Additional Module Development", startDate: "2024-09-09T09:00:00Z", endDate: "2024-09-10T17:00:00Z", parentId: "24", sequence: "15.1", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "26", name: "Additional Testing", startDate: "2024-09-11T09:00:00Z", endDate: "2024-09-12T17:00:00Z", parentId: "25", sequence: "15.1.1", dependencies: [{ targetId: "25", type: "FS" }] }, { id: "27", name: "Code Refactoring", startDate: "2024-09-13T09:00:00Z", endDate: "2024-09-14T17:00:00Z", parentId: null, sequence: "16", dependencies: [{ targetId: "26", type: "FS" }] }, { id: "28", name: "Performance Optimization", startDate: "2024-09-15T09:00:00Z", endDate: "2024-09-16T17:00:00Z", parentId: "27", sequence: "16.1", dependencies: [{ targetId: "27", type: "FS" }] }, { id: "29", name: "Security Audit", startDate: "2024-09-17T09:00:00Z", endDate: "2024-09-18T17:00:00Z", parentId: null, sequence: "17", dependencies: [{ targetId: "28", type: "FS" }] }, { id: "30", name: "Final QA", startDate: "2024-09-19T09:00:00Z", endDate: "2024-09-20T17:00:00Z", parentId: null, sequence: "18", dependencies: [{ targetId: "29", type: "FS" }] }, { id: "31", name: "Launch Webinar", startDate: "2024-09-21T09:00:00Z", endDate: "2024-09-22T17:00:00Z", parentId: null, sequence: "19", dependencies: [{ targetId: "21", type: "SS" }] }, { id: "32", name: "Marketing Campaign", startDate: "2024-09-23T09:00:00Z", endDate: "2024-09-24T17:00:00Z", parentId: null, sequence: "20", dependencies: [{ targetId: "21", type: "SF" }] }, { id: "33", name: "Post-release Bug Fixing", startDate: "2024-09-25T09:00:00Z", endDate: "2024-09-26T17:00:00Z", parentId: null, sequence: "21", dependencies: [{ targetId: "22", type: "SS" }] }, { id: "34", name: "Version 1.1 Planning", startDate: "2024-09-27T09:00:00Z", endDate: "2024-09-28T17:00:00Z", parentId: null, sequence: "22", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "35", name: "Feature Implementation", startDate: "2024-09-29T09:00:00Z", endDate: "2024-09-30T17:00:00Z", parentId: "34", sequence: "22.1", dependencies: [{ targetId: "34", type: "FS" }] }, { id: "36", name: "Beta Testing", startDate: "2024-10-01T09:00:00Z", endDate: "2024-10-02T17:00:00Z", parentId: "35", sequence: "22.1.1", dependencies: [{ targetId: "35", type: "FS" }] }, { id: "37", name: "Community Beta Feedback", startDate: "2024-10-03T09:00:00Z", endDate: "2024-10-04T17:00:00Z", parentId: "36", sequence: "22.1.2", dependencies: [{ targetId: "36", type: "FS" }] }, { id: "38", name: "Final Beta Fixes", startDate: "2024-10-05T09:00:00Z", endDate: "2024-10-06T17:00:00Z", parentId: "37", sequence: "22.1.3", dependencies: [{ targetId: "37", type: "FS" }] }, { id: "39", name: "Documentation Update", startDate: "2024-10-07T09:00:00Z", endDate: "2024-10-08T17:00:00Z", parentId: "17", sequence: "8.1.1", dependencies: [{ targetId: "17", type: "FS" }] }, { id: "40", name: "Final Release Version 1.1", startDate: "2024-10-09T09:00:00Z", endDate: "2024-10-10T17:00:00Z", parentId: null, sequence: "23", dependencies: [{ targetId: "38", type: "FS" }] }, { id: "41", name: "Project Retrospective", startDate: "2024-10-11T09:00:00Z", endDate: "2024-10-12T17:00:00Z", parentId: null, sequence: "24", dependencies: [{ targetId: "40", type: "FS" }] }], it = (n) => /* @__PURE__ */ Ne.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ Ne.createElement("path", { d: "M10.2 4L10.2 20L7.8 20L7.8 4L10.2 4ZM15 4L15 20L12.6 20L12.6 4L15 4ZM5.4 15.0999L5.4 7.8999L1.8 11.4999L5.4 15.0999ZM17.4 7.8999L17.4 15.0999L21 11.4999L17.4 7.8999Z" }));
1447
+ function me(n, o) {
1448
+ const { basePxPerDragStep: a } = K[o];
1449
+ return Math.round(n / a);
1383
1450
  }
1384
- function $r(r, s, a) {
1451
+ function gn(n, o, a) {
1385
1452
  const {
1386
1453
  rawTasks: i,
1387
- selectedScale: o,
1454
+ selectedScale: s,
1388
1455
  setRawTasks: e,
1389
- setDraggingTaskMeta: f,
1456
+ setDraggingTaskMeta: l,
1390
1457
  clearDraggingTaskMeta: u
1391
- } = De(), [h, p] = de(s), m = X(s), n = X(null), c = X(s), D = X(r.startDate), g = X(r.endDate), l = (j) => {
1392
- n.current = j.clientX, c.current = s, D.current = r.startDate, g.current = r.endDate, p(s), m.current = s, f({ taskId: r.id, type: "bar" }), document.addEventListener("mousemove", y), document.addEventListener("mouseup", E);
1393
- }, y = (j) => {
1394
- if (n.current === null) return;
1395
- const M = j.clientX - n.current, k = pe(M, o) * K[o].basePxPerDragStep, O = c.current + k;
1396
- p(O), m.current = O;
1458
+ } = ye(), [p, m] = oe(o), g = V(o), r = V(null), c = V(o), y = V(n.startDate), h = V(n.endDate), f = (F) => {
1459
+ r.current = F.clientX, c.current = o, y.current = n.startDate, h.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "bar" }), document.addEventListener("mousemove", S), document.addEventListener("mouseup", E);
1460
+ }, S = (F) => {
1461
+ if (r.current === null) return;
1462
+ const M = F.clientX - r.current, L = me(M, s) * K[s].basePxPerDragStep, k = c.current + L;
1463
+ m(k), g.current = k;
1397
1464
  }, E = () => {
1398
- document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", E);
1399
- const j = m.current - c.current, M = pe(j, o), { dragStepUnit: R, dragStepAmount: k } = K[o], O = i.map(
1400
- (P) => P.id === r.id ? {
1465
+ document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E);
1466
+ const F = g.current - c.current, M = me(F, s), { dragStepUnit: Z, dragStepAmount: L } = K[s], k = i.map(
1467
+ (P) => P.id === n.id ? {
1401
1468
  ...P,
1402
- startDate: q(D.current).add(M * k, R).toISOString(),
1403
- endDate: q(g.current).add(M * k, R).toISOString()
1469
+ startDate: H(y.current).add(M * L, Z).toISOString(),
1470
+ endDate: H(h.current).add(M * L, Z).toISOString()
1404
1471
  } : P
1405
1472
  );
1406
- e(O), a == null || a(O), u(), n.current = null;
1473
+ e(k), a == null || a(k), u(), r.current = null;
1407
1474
  };
1408
- return { onDragStart: l, tempLeft: h };
1475
+ return { onDragStart: f, tempLeft: p };
1409
1476
  }
1410
- function gr(r, s, a, i) {
1477
+ function vn(n, o, a, i) {
1411
1478
  const {
1412
- rawTasks: o,
1479
+ rawTasks: s,
1413
1480
  selectedScale: e,
1414
- setRawTasks: f,
1481
+ setRawTasks: l,
1415
1482
  setDraggingTaskMeta: u,
1416
- clearDraggingTaskMeta: h
1417
- } = De(), [p, m] = de(s), [n, c] = de(a), D = X(s), g = X(a), l = X(null), y = X(s), E = X(a), j = X(r.startDate), M = (O) => {
1418
- O.stopPropagation(), l.current = O.clientX, y.current = s, E.current = a, j.current = r.startDate, m(s), c(a), D.current = s, g.current = a, u({ taskId: r.id, type: "left" }), document.addEventListener("mousemove", R), document.addEventListener("mouseup", k);
1419
- }, R = (O) => {
1420
- if (l.current == null) return;
1421
- const P = O.clientX - l.current, $ = pe(P, e) * K[e].basePxPerDragStep, d = y.current + $, I = E.current - $;
1422
- I < 1 || (m(d), c(I), D.current = d, g.current = I);
1423
- }, k = () => {
1424
- document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", k);
1425
- const O = D.current - y.current, P = pe(O, e), { dragStepUnit: Y, dragStepAmount: $ } = K[e], d = o.map((I) => {
1426
- if (I.id !== r.id) return I;
1427
- const B = q(j.current).add(
1483
+ clearDraggingTaskMeta: p
1484
+ } = ye(), [m, g] = oe(o), [r, c] = oe(a), y = V(o), h = V(a), f = V(null), S = V(o), E = V(a), F = V(n.startDate), M = (k) => {
1485
+ k.stopPropagation(), f.current = k.clientX, S.current = o, E.current = a, F.current = n.startDate, g(o), c(a), y.current = o, h.current = a, u({ taskId: n.id, type: "left" }), document.addEventListener("mousemove", Z), document.addEventListener("mouseup", L);
1486
+ }, Z = (k) => {
1487
+ if (f.current == null) return;
1488
+ const P = k.clientX - f.current, $ = me(P, e) * K[e].basePxPerDragStep, d = S.current + $, O = E.current - $;
1489
+ O < 1 || (g(d), c(O), y.current = d, h.current = O);
1490
+ }, L = () => {
1491
+ document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", L);
1492
+ const k = y.current - S.current, P = me(k, e), { dragStepUnit: W, dragStepAmount: $ } = K[e], d = s.map((O) => {
1493
+ if (O.id !== n.id) return O;
1494
+ const B = H(F.current).add(
1428
1495
  P * $,
1429
- Y
1496
+ W
1430
1497
  );
1431
- return B.isAfter(q(I.endDate)) ? I : { ...I, startDate: B.toISOString() };
1498
+ return B.isAfter(H(O.endDate)) ? O : { ...O, startDate: B.toISOString() };
1432
1499
  });
1433
- f(d), i == null || i(d), h(), l.current = null;
1500
+ l(d), i == null || i(d), p(), f.current = null;
1434
1501
  };
1435
- return { onDragStart: M, tempLeft: p, tempWidth: n };
1502
+ return { onDragStart: M, tempLeft: m, tempWidth: r };
1436
1503
  }
1437
- function vr(r, s, a) {
1504
+ function yn(n, o, a) {
1438
1505
  const {
1439
1506
  rawTasks: i,
1440
- selectedScale: o,
1507
+ selectedScale: s,
1441
1508
  setRawTasks: e,
1442
- setDraggingTaskMeta: f,
1509
+ setDraggingTaskMeta: l,
1443
1510
  clearDraggingTaskMeta: u
1444
- } = De(), [h, p] = de(s), m = X(s), n = X(null), c = X(s), D = X(r.endDate), g = (E) => {
1445
- E.stopPropagation(), n.current = E.clientX, c.current = s, D.current = r.endDate, p(s), m.current = s, f({ taskId: r.id, type: "right" }), document.addEventListener("mousemove", l), document.addEventListener("mouseup", y);
1446
- }, l = (E) => {
1447
- if (n.current === null) return;
1448
- const j = E.clientX - n.current, R = pe(j, o) * K[o].basePxPerDragStep, k = c.current + R;
1449
- k < 1 || (p(k), m.current = k);
1450
- }, y = () => {
1451
- document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", y);
1452
- const E = m.current - c.current, j = pe(E, o), { dragStepUnit: M, dragStepAmount: R } = K[o], k = i.map((O) => {
1453
- if (O.id !== r.id) return O;
1454
- const P = q(D.current).add(
1455
- j * R,
1511
+ } = ye(), [p, m] = oe(o), g = V(o), r = V(null), c = V(o), y = V(n.endDate), h = (E) => {
1512
+ E.stopPropagation(), r.current = E.clientX, c.current = o, y.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "right" }), document.addEventListener("mousemove", f), document.addEventListener("mouseup", S);
1513
+ }, f = (E) => {
1514
+ if (r.current === null) return;
1515
+ const F = E.clientX - r.current, Z = me(F, s) * K[s].basePxPerDragStep, L = c.current + Z;
1516
+ L < 1 || (m(L), g.current = L);
1517
+ }, S = () => {
1518
+ document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", S);
1519
+ const E = g.current - c.current, F = me(E, s), { dragStepUnit: M, dragStepAmount: Z } = K[s], L = i.map((k) => {
1520
+ if (k.id !== n.id) return k;
1521
+ const P = H(y.current).add(
1522
+ F * Z,
1456
1523
  M
1457
1524
  );
1458
- return P.isBefore(q(O.startDate)) ? O : { ...O, endDate: P.toISOString() };
1525
+ return P.isBefore(H(k.startDate)) ? k : { ...k, endDate: P.toISOString() };
1459
1526
  });
1460
- e(k), a == null || a(k), u(), n.current = null;
1527
+ e(L), a == null || a(L), u(), r.current = null;
1461
1528
  };
1462
- return { onDragStart: g, tempWidth: h };
1529
+ return { onDragStart: h, tempWidth: p };
1463
1530
  }
1464
- function Dr(r, s, a, i, o) {
1465
- if (a < 0 || o < 0)
1466
- return `M ${s} ${a} h ${(i - s) / 2}`;
1467
- const e = 7, f = 11, u = 25, h = 20, p = `M ${s} ${a}`, m = i - s, n = o - a, c = Math.abs(m), D = Math.abs(n), g = o <= a, l = o >= a, y = i >= s, E = i <= s, j = c > h, M = Math.abs(m / 2), R = Math.abs(n / 2);
1468
- function k() {
1531
+ function Dn(n, o, a, i, s) {
1532
+ if (a < 0 || s < 0)
1533
+ return `M ${o} ${a} h ${(i - o) / 2}`;
1534
+ const e = 7, l = 11, u = 25, p = 20, m = `M ${o} ${a}`, g = i - o, r = s - a, c = Math.abs(g), y = Math.abs(r), h = s <= a, f = s >= a, S = i >= o, E = i <= o, F = c > p, M = Math.abs(g / 2), Z = Math.abs(r / 2);
1535
+ function L() {
1469
1536
  function $() {
1470
- return (y || E) && l && !j ? "downSmallHorizontal" : (y || E) && g && !j ? "upSmallHorizontal" : l && E ? "downLeft" : l && y ? "downRight" : g && E ? "upLeft" : g && y ? "upRight" : "";
1537
+ return (S || E) && f && !F ? "downSmallHorizontal" : (S || E) && h && !F ? "upSmallHorizontal" : f && E ? "downLeft" : f && S ? "downRight" : h && E ? "upLeft" : h && S ? "upRight" : "";
1471
1538
  }
1472
- let d = p;
1539
+ let d = m;
1473
1540
  switch ($()) {
1474
1541
  case "downRight": {
1475
- d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${n - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${M - e}`;
1542
+ d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${r - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${M - e}`;
1476
1543
  break;
1477
1544
  }
1478
1545
  case "upRight": {
1479
- d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${D - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${M - e}`;
1546
+ d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${y - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${M - e}`;
1480
1547
  break;
1481
1548
  }
1482
1549
  case "downLeft":
1483
1550
  case "downSmallHorizontal": {
1484
- const B = a + n / 2;
1485
- d += ` h ${f}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${m - 2 * f}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${f}`;
1551
+ const B = a + r / 2;
1552
+ d += ` h ${l}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${l}`;
1486
1553
  break;
1487
1554
  }
1488
1555
  case "upLeft":
1489
1556
  case "upSmallHorizontal": {
1490
- const B = a + n / 2;
1491
- d += ` h ${f}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${m - 2 * f}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${f}`;
1557
+ const B = a + r / 2;
1558
+ d += ` h ${l}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${l}`;
1492
1559
  break;
1493
1560
  }
1494
1561
  default:
@@ -1496,32 +1563,32 @@ function Dr(r, s, a, i, o) {
1496
1563
  }
1497
1564
  return d;
1498
1565
  }
1499
- function O() {
1500
- let $ = p;
1501
- return l && E ? ($ += ` h ${u - f}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${n - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h ${m - e * 2}`) : l && y ? ($ += ` h ${m + u - f}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${n - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h -${u - f}`) : g && E ? ($ += ` h ${u - f}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${n + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h ${m - u + f}`) : g && y && ($ += ` h ${m + u - f}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${n + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h -${u - f}`), $;
1566
+ function k() {
1567
+ let $ = m;
1568
+ return f && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h ${g - e * 2}`) : f && S ? ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h -${u - l}`) : h && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h ${g - u + l}`) : h && S && ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h -${u - l}`), $;
1502
1569
  }
1503
1570
  function P() {
1504
1571
  function $() {
1505
- return (y || E) && l && !j ? "downSmallHorizontal" : (y || E) && g && !j ? "upSmallHorizontal" : l && E ? "downLeft" : l && y ? "downRight" : g && E ? "upLeft" : g && y ? "upRight" : "";
1572
+ return (S || E) && f && !F ? "downSmallHorizontal" : (S || E) && h && !F ? "upSmallHorizontal" : f && E ? "downLeft" : f && S ? "downRight" : h && E ? "upLeft" : h && S ? "upRight" : "";
1506
1573
  }
1507
- let d = p;
1574
+ let d = m;
1508
1575
  switch ($()) {
1509
1576
  case "downRight":
1510
1577
  case "downSmallHorizontal": {
1511
- d += " h -11", d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${R - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${f * 2 + m}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${R - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += " h -11";
1578
+ d += " h -11", d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${Z - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${l * 2 + g}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${Z - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += " h -11";
1512
1579
  break;
1513
1580
  }
1514
1581
  case "upRight":
1515
1582
  case "upSmallHorizontal": {
1516
- d += " h -11", d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v ${-(R - e * 2)}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${f * 2 + m}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v ${-(R - e * 2)}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += " h -11";
1583
+ d += " h -11", d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v ${-(Z - e * 2)}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${l * 2 + g}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v ${-(Z - e * 2)}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += " h -11";
1517
1584
  break;
1518
1585
  }
1519
1586
  case "downLeft": {
1520
- d += ` h ${-M + e}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${D - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${-M + e}`;
1587
+ d += ` h ${-M + e}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${y - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${-M + e}`;
1521
1588
  break;
1522
1589
  }
1523
1590
  case "upLeft": {
1524
- d += ` h ${-(M - e)}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v ${-(D - e * 2)}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${-M + e}`;
1591
+ d += ` h ${-(M - e)}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v ${-(y - e * 2)}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${-M + e}`;
1525
1592
  break;
1526
1593
  }
1527
1594
  default:
@@ -1529,111 +1596,137 @@ function Dr(r, s, a, i, o) {
1529
1596
  }
1530
1597
  return d;
1531
1598
  }
1532
- function Y() {
1533
- let $ = p;
1534
- return l && E ? ($ += ` h ${m - u}`, $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${n - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${u}`) : l && y ? ($ += " h -25", $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${n - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${m + u}`) : g && E ? ($ += ` h ${m - u}`, $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${n + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${u}`) : g && y && ($ += " h -25", $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${n + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${m + u}`), $;
1599
+ function W() {
1600
+ let $ = m;
1601
+ return f && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${u}`) : f && S ? ($ += " h -25", $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${g + u}`) : h && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${u}`) : h && S && ($ += " h -25", $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${g + u}`), $;
1535
1602
  }
1536
- switch (r) {
1603
+ switch (n) {
1537
1604
  case "FS":
1538
- return k();
1605
+ return L();
1539
1606
  case "FF":
1540
- return O();
1607
+ return k();
1541
1608
  case "SF":
1542
1609
  return P();
1543
1610
  case "SS":
1544
- return Y();
1611
+ return W();
1545
1612
  default:
1546
- return `${p} L ${i} ${o}`;
1613
+ return `${m} L ${i} ${s}`;
1547
1614
  }
1548
1615
  }
1549
- function yr({ allTasks: r, currentTask: s, onTasksChange: a }) {
1550
- const { onDragStart: i, tempLeft: o } = $r(s, s.barLeft, a), {
1551
- onDragStart: e,
1552
- tempLeft: f,
1553
- tempWidth: u
1554
- } = gr(
1555
- s,
1556
- s.barLeft,
1557
- s.barWidth,
1616
+ function Sn({ allTasks: n, currentTask: o, onTasksChange: a }) {
1617
+ const [i, s] = oe(!1), [e, l] = oe(!1), { onDragStart: u, tempLeft: p } = gn(o, o.barLeft, a), {
1618
+ onDragStart: m,
1619
+ tempLeft: g,
1620
+ tempWidth: r
1621
+ } = vn(
1622
+ o,
1623
+ o.barLeft,
1624
+ o.barWidth,
1558
1625
  a
1559
- ), { onDragStart: h, tempWidth: p } = vr(
1560
- s,
1561
- s.barWidth,
1626
+ ), { onDragStart: c, tempWidth: y } = yn(
1627
+ o,
1628
+ o.barWidth,
1562
1629
  a
1563
- ), { draggingTaskMeta: m } = De(), n = (m == null ? void 0 : m.taskId) === s.id;
1564
- let c = !1, D = !1, g = !1;
1565
- n && ((m == null ? void 0 : m.type) === "left" ? c = !0 : (m == null ? void 0 : m.type) === "right" ? D = !0 : (m == null ? void 0 : m.type) === "bar" && (g = !0));
1566
- let l = s.barLeft, y = s.barWidth;
1567
- c ? (l = f, y = u) : D ? y = p : g && (l = o);
1568
- const E = () => /* @__PURE__ */ A.jsx(
1630
+ ), { draggingTaskMeta: h } = ye(), f = (h == null ? void 0 : h.taskId) === o.id;
1631
+ let S = !1, E = !1, F = !1;
1632
+ f && ((h == null ? void 0 : h.type) === "left" ? S = !0 : (h == null ? void 0 : h.type) === "right" ? E = !0 : (h == null ? void 0 : h.type) === "bar" && (F = !0));
1633
+ let M = o.barLeft, Z = o.barWidth;
1634
+ S ? (M = g, Z = r) : E ? Z = y : F && (M = p);
1635
+ const L = () => /* @__PURE__ */ A.jsx(
1569
1636
  "button",
1570
1637
  {
1571
1638
  type: "button",
1572
- onMouseDown: e,
1573
- className: "absolute top-0 flex h-full cursor-w-resize items-center justify-center opacity-0 hover:opacity-100",
1639
+ onMouseDown: m,
1640
+ onMouseEnter: () => s(!0),
1641
+ onMouseLeave: () => s(!1),
1574
1642
  style: {
1643
+ position: "absolute",
1644
+ top: 0,
1575
1645
  left: "-1.15rem",
1576
1646
  width: "2rem",
1577
- height: "100%"
1647
+ height: "100%",
1648
+ display: "flex",
1649
+ alignItems: "center",
1650
+ justifyContent: "center",
1651
+ cursor: "w-resize",
1652
+ background: "transparent",
1653
+ border: "none",
1654
+ padding: 0
1578
1655
  },
1579
1656
  children: /* @__PURE__ */ A.jsx(
1580
1657
  it,
1581
1658
  {
1582
- className: "size-6",
1583
1659
  style: {
1584
- fill: "#919294"
1660
+ height: "1.5rem",
1661
+ width: "1.5rem",
1662
+ fill: "#919294",
1663
+ opacity: i ? 1 : 0
1664
+ // transition: 'opacity 50ms ease-in-out',
1585
1665
  }
1586
1666
  }
1587
1667
  )
1588
1668
  }
1589
- ), j = () => /* @__PURE__ */ A.jsx(
1669
+ ), k = () => /* @__PURE__ */ A.jsx(
1590
1670
  "button",
1591
1671
  {
1592
1672
  type: "button",
1593
- onMouseDown: h,
1594
- className: "absolute top-0 flex h-full cursor-w-resize items-center justify-center opacity-0 hover:opacity-100",
1673
+ onMouseDown: c,
1674
+ onMouseEnter: () => l(!0),
1675
+ onMouseLeave: () => l(!1),
1595
1676
  style: {
1677
+ position: "absolute",
1678
+ top: 0,
1596
1679
  right: "-1.15rem",
1597
1680
  width: "2rem",
1598
- height: "100%"
1681
+ height: "100%",
1682
+ display: "flex",
1683
+ alignItems: "center",
1684
+ justifyContent: "center",
1685
+ cursor: "w-resize",
1686
+ background: "transparent",
1687
+ border: "none",
1688
+ padding: 0
1599
1689
  },
1600
1690
  children: /* @__PURE__ */ A.jsx(
1601
1691
  it,
1602
1692
  {
1603
- className: "size-6",
1604
1693
  style: {
1605
- fill: "#919294"
1694
+ height: "1.5rem",
1695
+ width: "1.5rem",
1696
+ fill: "#919294",
1697
+ opacity: e ? 1 : 0
1698
+ // transition: 'opacity 150ms ease-in-out',
1606
1699
  }
1607
1700
  }
1608
1701
  )
1609
1702
  }
1610
- ), M = (s.dependencies || []).map((R) => {
1611
- const k = r.find((I) => I.id === R.targetId);
1612
- if (!k) return null;
1613
- const O = ut, P = (k.order - 1) * O + O / 2, Y = (s.order - 1) * O + O / 2;
1614
- let $, d;
1615
- switch (R.type) {
1703
+ ), P = (o.dependencies || []).map((W) => {
1704
+ const $ = n.find((D) => D.id === W.targetId);
1705
+ if (!$) return null;
1706
+ const d = ut, O = ($.order - 1) * d + d / 2, B = (o.order - 1) * d + d / 2;
1707
+ let ee, I;
1708
+ switch (W.type) {
1616
1709
  case "FS":
1617
- $ = k.barLeft + k.barWidth, d = s.barLeft;
1710
+ ee = $.barLeft + $.barWidth, I = o.barLeft;
1618
1711
  break;
1619
1712
  case "SS":
1620
- $ = k.barLeft, d = s.barLeft;
1713
+ ee = $.barLeft, I = o.barLeft;
1621
1714
  break;
1622
1715
  case "FF":
1623
- $ = k.barLeft + k.barWidth, d = s.barLeft + s.barWidth;
1716
+ ee = $.barLeft + $.barWidth, I = o.barLeft + o.barWidth;
1624
1717
  break;
1625
1718
  case "SF":
1626
- $ = k.barLeft, d = s.barLeft + s.barWidth;
1719
+ ee = $.barLeft, I = o.barLeft + o.barWidth;
1627
1720
  break;
1628
1721
  default:
1629
- return console.warn(`Unknown dependency type: ${R.type}`), null;
1722
+ return console.warn(`Unknown dependency type: ${W.type}`), null;
1630
1723
  }
1631
1724
  return {
1632
- ...R,
1633
- fromX: $,
1634
- fromY: P,
1635
- toX: d,
1636
- toY: Y
1725
+ ...W,
1726
+ fromX: ee,
1727
+ fromY: O,
1728
+ toX: I,
1729
+ toY: B
1637
1730
  };
1638
1731
  }).filter(Boolean);
1639
1732
  return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
@@ -1642,140 +1735,250 @@ function yr({ allTasks: r, currentTask: s, onTasksChange: a }) {
1642
1735
  {
1643
1736
  role: "button",
1644
1737
  tabIndex: 0,
1645
- className: "relative flex items-center",
1646
- onMouseDown: i,
1738
+ onMouseDown: u,
1647
1739
  style: {
1740
+ position: "relative",
1741
+ display: "flex",
1742
+ alignItems: "center",
1648
1743
  backgroundColor: "#D6D6D8",
1649
- marginLeft: `${l}px`,
1650
- width: `${y}px`,
1744
+ marginLeft: `${M}px`,
1745
+ width: `${Z}px`,
1651
1746
  height: "1rem"
1652
1747
  },
1653
1748
  children: [
1654
- E(),
1655
- j()
1749
+ L(),
1750
+ k()
1656
1751
  ]
1657
1752
  }
1658
1753
  ),
1659
- /* @__PURE__ */ A.jsxs("svg", { className: "pointer-events-none absolute top-0 left-0 z-10 size-full", children: [
1660
- /* @__PURE__ */ A.jsx("defs", { children: /* @__PURE__ */ A.jsx(
1661
- "marker",
1662
- {
1663
- id: "arrowhead",
1664
- markerWidth: "6",
1665
- markerHeight: "6",
1666
- refX: "5.25",
1667
- refY: "3",
1668
- orient: "auto",
1669
- children: /* @__PURE__ */ A.jsx("polygon", { points: "0 0, 6 3, 0 6", fill: "#000" })
1670
- }
1671
- ) }),
1672
- M.map((R, k) => /* @__PURE__ */ A.jsx(
1673
- "path",
1674
- {
1675
- d: Dr(
1676
- R.type,
1677
- R.fromX,
1678
- R.fromY,
1679
- R.toX,
1680
- R.toY
1681
- ),
1682
- fill: "none",
1683
- markerEnd: "url(#arrowhead)",
1684
- style: { stroke: "#000", strokeWidth: 0.75 }
1754
+ /* @__PURE__ */ A.jsxs(
1755
+ "svg",
1756
+ {
1757
+ style: {
1758
+ position: "absolute",
1759
+ top: 0,
1760
+ left: 0,
1761
+ zIndex: 10,
1762
+ width: "100%",
1763
+ height: "100%",
1764
+ pointerEvents: "none"
1685
1765
  },
1686
- k
1687
- ))
1688
- ] })
1766
+ children: [
1767
+ /* @__PURE__ */ A.jsx("defs", { children: /* @__PURE__ */ A.jsx(
1768
+ "marker",
1769
+ {
1770
+ id: "arrowhead",
1771
+ markerWidth: "6",
1772
+ markerHeight: "6",
1773
+ refX: "5.25",
1774
+ refY: "3",
1775
+ orient: "auto",
1776
+ children: /* @__PURE__ */ A.jsx("polygon", { points: "0 0, 6 3, 0 6", fill: "#000" })
1777
+ }
1778
+ ) }),
1779
+ P.map((W, $) => /* @__PURE__ */ A.jsx(
1780
+ "path",
1781
+ {
1782
+ d: Dn(
1783
+ W.type,
1784
+ W.fromX,
1785
+ W.fromY,
1786
+ W.toX,
1787
+ W.toY
1788
+ ),
1789
+ fill: "none",
1790
+ markerEnd: "url(#arrowhead)",
1791
+ style: { stroke: "#000", strokeWidth: 0.75 }
1792
+ },
1793
+ $
1794
+ ))
1795
+ ]
1796
+ }
1797
+ )
1689
1798
  ] });
1690
1799
  }
1691
- function xr({ tasks: r, onTasksChange: s, ganttHeight: a, columnWidth: i }) {
1692
- const [o, e] = de(a || 500), [f, u] = de(i || 1e3), [h, p] = de(r || []), m = X(null), {
1693
- rawTasks: n,
1800
+ function bn({ tasks: n, onTasksChange: o, ganttHeight: a, columnWidth: i }) {
1801
+ const [s, e] = oe(a || 500), [l, u] = oe(i || 1e3), [p, m] = oe(n || []), g = V(null), {
1802
+ rawTasks: r,
1694
1803
  transformedTasks: c,
1695
- selectedScale: D,
1696
- setSelectedScale: g,
1697
- bottomRowCells: l,
1698
- topHeaderGroups: y,
1804
+ selectedScale: y,
1805
+ setSelectedScale: h,
1806
+ bottomRowCells: f,
1807
+ topHeaderGroups: S,
1699
1808
  setRawTasks: E,
1700
- setBottomRowCells: j,
1809
+ setBottomRowCells: F,
1701
1810
  setTopHeaderGroups: M,
1702
- setMinDate: R,
1703
- setMaxDate: k
1704
- } = De();
1811
+ setMinDate: Z,
1812
+ setMaxDate: L
1813
+ } = ye();
1705
1814
  return xe(() => {
1706
- r.length === 0 ? p(pr) : p(r);
1707
- }, [r]), xe(() => {
1708
- if (!h.length) return;
1709
- const O = Object.fromEntries(
1710
- h.map((P) => [
1815
+ n.length === 0 ? m($n) : m(n);
1816
+ }, [n]), xe(() => {
1817
+ if (!p.length) return;
1818
+ const k = Object.fromEntries(
1819
+ p.map((P) => [
1711
1820
  P.id,
1712
1821
  { startDate: P.startDate, endDate: P.endDate }
1713
1822
  ])
1714
1823
  );
1715
1824
  St(
1716
- O,
1717
- D,
1718
- R,
1719
1825
  k,
1720
- j,
1826
+ y,
1827
+ Z,
1828
+ L,
1829
+ F,
1721
1830
  M
1722
1831
  );
1723
- }, [h, D]), xe(() => {
1724
- !l.length || !h.length || n.length === 0 && E(h);
1725
- }, [l, h]), /* @__PURE__ */ A.jsx(
1832
+ }, [p, y]), xe(() => {
1833
+ !f.length || !p.length || r.length === 0 && E(p);
1834
+ }, [f, p]), /* @__PURE__ */ A.jsx(
1726
1835
  "section",
1727
1836
  {
1728
1837
  style: {
1729
1838
  position: "relative",
1730
1839
  overflow: "auto",
1731
- height: `${o}px`,
1840
+ height: `${s}px`,
1732
1841
  width: "100%",
1733
1842
  // let parent control width
1734
- backgroundColor: "#FFF"
1843
+ backgroundColor: "#FFF",
1844
+ fontFamily: "Noto Sans, sans-serif"
1735
1845
  },
1736
1846
  children: /* @__PURE__ */ A.jsx(
1737
1847
  "div",
1738
1848
  {
1739
- className: "size-full overflow-hidden",
1740
1849
  style: {
1850
+ width: "100%",
1851
+ height: "100%",
1852
+ overflow: "hidden",
1741
1853
  backgroundColor: "#FFF"
1742
1854
  },
1743
- children: /* @__PURE__ */ A.jsx("section", { className: "relative flex h-full w-full flex-col", children: /* @__PURE__ */ A.jsx("div", { ref: m, className: "grow overflow-x-auto", children: /* @__PURE__ */ A.jsxs("div", { className: "flex min-w-max flex-col", children: [
1744
- /* @__PURE__ */ A.jsx(
1745
- xt,
1746
- {
1747
- topHeaderGroups: y,
1748
- bottomRowCells: l,
1749
- selectedScale: D,
1750
- scrollRef: m
1751
- }
1752
- ),
1753
- /* @__PURE__ */ A.jsx("div", { className: "relative flex", children: /* @__PURE__ */ A.jsx("div", { className: "flex grow flex-col", children: c.map((O) => /* @__PURE__ */ A.jsx(
1754
- "div",
1755
- {
1756
- className: "flex w-full items-center border-b border-solid",
1757
- style: {
1758
- height: `${ut}px`,
1759
- backgroundColor: "#FFF",
1760
- borderColor: "#E6E7E9"
1761
- },
1762
- children: /* @__PURE__ */ A.jsx(
1763
- yr,
1855
+ children: /* @__PURE__ */ A.jsxs(
1856
+ "section",
1857
+ {
1858
+ style: {
1859
+ position: "relative",
1860
+ display: "flex",
1861
+ height: "100%",
1862
+ width: "100%",
1863
+ flexDirection: "column"
1864
+ },
1865
+ children: [
1866
+ /* @__PURE__ */ A.jsx(
1867
+ "div",
1868
+ {
1869
+ style: {
1870
+ position: "fixed",
1871
+ top: "10px",
1872
+ right: "16px",
1873
+ zIndex: 50,
1874
+ display: "flex",
1875
+ justifyContent: "flex-end",
1876
+ alignItems: "center"
1877
+ // padding: '4px 8px',
1878
+ // backgroundColor: '#FFF',
1879
+ // borderBottom: '1px solid #E6E7E9',
1880
+ },
1881
+ children: /* @__PURE__ */ A.jsx(
1882
+ "select",
1883
+ {
1884
+ style: {
1885
+ // backgroundColor: '#FFF',
1886
+ padding: "4px 8px",
1887
+ fontSize: "0.875rem",
1888
+ borderRadius: "6px",
1889
+ border: "1px solid #E6E7E9"
1890
+ },
1891
+ value: y,
1892
+ onChange: (k) => {
1893
+ const P = k.target.value;
1894
+ h(P);
1895
+ },
1896
+ children: Object.keys(K).map((k) => /* @__PURE__ */ A.jsx("option", { value: k, children: K[k].labelUnit }, k))
1897
+ }
1898
+ )
1899
+ }
1900
+ ),
1901
+ /* @__PURE__ */ A.jsx(
1902
+ "div",
1764
1903
  {
1765
- allTasks: c,
1766
- currentTask: O,
1767
- onTasksChange: s
1904
+ ref: g,
1905
+ style: {
1906
+ flexGrow: 1,
1907
+ overflowX: "auto"
1908
+ },
1909
+ children: /* @__PURE__ */ A.jsxs(
1910
+ "div",
1911
+ {
1912
+ style: {
1913
+ display: "flex",
1914
+ minWidth: "max-content",
1915
+ flexDirection: "column"
1916
+ // backgroundColor: '#FFF',
1917
+ },
1918
+ children: [
1919
+ /* @__PURE__ */ A.jsx(
1920
+ xt,
1921
+ {
1922
+ topHeaderGroups: S,
1923
+ bottomRowCells: f,
1924
+ selectedScale: y,
1925
+ scrollRef: g
1926
+ }
1927
+ ),
1928
+ /* @__PURE__ */ A.jsx(
1929
+ "div",
1930
+ {
1931
+ style: {
1932
+ position: "relative",
1933
+ display: "flex"
1934
+ },
1935
+ children: /* @__PURE__ */ A.jsx(
1936
+ "div",
1937
+ {
1938
+ style: {
1939
+ display: "flex",
1940
+ flexGrow: 1,
1941
+ flexDirection: "column"
1942
+ },
1943
+ children: c.map((k) => /* @__PURE__ */ A.jsx(
1944
+ "div",
1945
+ {
1946
+ style: {
1947
+ display: "flex",
1948
+ width: "100%",
1949
+ alignItems: "center",
1950
+ borderBottom: "1px solid #E6E7E9",
1951
+ height: `${ut}px`,
1952
+ backgroundColor: "#FFF"
1953
+ },
1954
+ children: /* @__PURE__ */ A.jsx(
1955
+ Sn,
1956
+ {
1957
+ allTasks: c,
1958
+ currentTask: k,
1959
+ onTasksChange: o
1960
+ }
1961
+ )
1962
+ },
1963
+ k.id
1964
+ ))
1965
+ }
1966
+ )
1967
+ }
1968
+ )
1969
+ ]
1970
+ }
1971
+ )
1768
1972
  }
1769
1973
  )
1770
- },
1771
- O.id
1772
- )) }) })
1773
- ] }) }) })
1974
+ ]
1975
+ }
1976
+ )
1774
1977
  }
1775
1978
  )
1776
1979
  }
1777
1980
  );
1778
1981
  }
1779
1982
  export {
1780
- xr as ReactGanttChart
1983
+ bn as ReactGanttChart
1781
1984
  };