@jaeungkim/gantt-chart 0.1.4 → 0.1.6

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
1
  import * as Ue from "react";
2
- import Ce, { useState as de, useMemo as _e, useEffect as xe, useRef as X } from "react";
3
- function te(n) {
4
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
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;
5
5
  }
6
6
  var Se = { exports: {} }, ge = {};
7
7
  /**
@@ -17,7 +17,7 @@ var He;
17
17
  function lt() {
18
18
  if (He) return ge;
19
19
  He = 1;
20
- var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
20
+ var r = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
21
21
  function a(i, o, e) {
22
22
  var f = null;
23
23
  if (e !== void 0 && (f = "" + e), o.key !== void 0 && (f = "" + o.key), "key" in o) {
@@ -26,7 +26,7 @@ function lt() {
26
26
  u !== "key" && (e[u] = o[u]);
27
27
  } else e = o;
28
28
  return o = e.ref, {
29
- $$typeof: n,
29
+ $$typeof: r,
30
30
  type: i,
31
31
  key: f,
32
32
  ref: o !== void 0 ? o : null,
@@ -48,15 +48,15 @@ var ve = {};
48
48
  var ze;
49
49
  function ft() {
50
50
  return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
51
- function n(t) {
51
+ function r(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 T:
57
+ case O:
58
58
  return "Fragment";
59
- case E:
59
+ case k:
60
60
  return "Portal";
61
61
  case Y:
62
62
  return "Profiler";
@@ -64,7 +64,7 @@ function ft() {
64
64
  return "StrictMode";
65
65
  case B:
66
66
  return "Suspense";
67
- case me:
67
+ case he:
68
68
  return "SuspenseList";
69
69
  }
70
70
  if (typeof t == "object")
@@ -78,12 +78,12 @@ function ft() {
78
78
  case I:
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 L:
82
- return b = t.displayName || null, b !== null ? b : n(t.type) || "Memo";
81
+ case F:
82
+ return b = t.displayName || null, b !== null ? b : r(t.type) || "Memo";
83
83
  case S:
84
84
  b = t._payload, t = t._init;
85
85
  try {
86
- return n(t(b));
86
+ return r(t(b));
87
87
  } catch {
88
88
  }
89
89
  }
@@ -101,11 +101,11 @@ function ft() {
101
101
  }
102
102
  if (b) {
103
103
  b = console;
104
- var w = b.error, A = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
104
+ var w = b.error, C = 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
- A
108
+ C
109
109
  ), s(t);
110
110
  }
111
111
  }
@@ -113,7 +113,7 @@ function ft() {
113
113
  }
114
114
  function o() {
115
115
  if (z === 0) {
116
- J = console.log, ae = console.info, ne = console.warn, ue = console.error, re = console.group, G = console.groupCollapsed, ee = console.groupEnd;
116
+ J = console.log, ae = console.info, re = console.warn, ue = console.error, ne = console.group, G = console.groupCollapsed, ee = console.groupEnd;
117
117
  var t = {
118
118
  configurable: !0,
119
119
  enumerable: !0,
@@ -136,13 +136,13 @@ function ft() {
136
136
  if (z--, z === 0) {
137
137
  var t = { configurable: !0, enumerable: !0, writable: !0 };
138
138
  Object.defineProperties(console, {
139
- log: C({}, t, { value: J }),
140
- info: C({}, t, { value: ae }),
141
- warn: C({}, t, { value: ne }),
142
- error: C({}, t, { value: ue }),
143
- group: C({}, t, { value: re }),
144
- groupCollapsed: C({}, t, { value: G }),
145
- groupEnd: C({}, t, { value: ee })
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 })
146
146
  });
147
147
  }
148
148
  0 > z && console.error(
@@ -166,8 +166,8 @@ function ft() {
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 A = null;
170
- A = F.H, F.H = null, o();
169
+ var C = null;
170
+ C = L.H, L.H = null, o();
171
171
  try {
172
172
  var V = {
173
173
  DetermineComponentFrameRoot: function() {
@@ -221,10 +221,10 @@ function ft() {
221
221
  "name",
222
222
  { value: "DetermineComponentFrameRoot" }
223
223
  );
224
- var _ = V.DetermineComponentFrameRoot(), oe = _[0], he = _[1];
225
- if (oe && he) {
224
+ var _ = V.DetermineComponentFrameRoot(), oe = _[0], me = _[1];
225
+ if (oe && me) {
226
226
  var Q = oe.split(`
227
- `), fe = he.split(`
227
+ `), fe = me.split(`
228
228
  `);
229
229
  for (_ = U = 0; U < Q.length && !Q[U].includes(
230
230
  "DetermineComponentFrameRoot"
@@ -254,11 +254,11 @@ function ft() {
254
254
  }
255
255
  }
256
256
  } finally {
257
- je = !1, F.H = A, e(), Error.prepareStackTrace = w;
257
+ je = !1, L.H = C, e(), Error.prepareStackTrace = w;
258
258
  }
259
259
  return Q = (Q = t ? t.displayName || t.name : "") ? f(Q) : "", typeof t == "function" && Ze.set(t, Q), Q;
260
260
  }
261
- function m(t) {
261
+ function h(t) {
262
262
  if (t == null) return "";
263
263
  if (typeof t == "function") {
264
264
  var b = t.prototype;
@@ -271,38 +271,38 @@ function ft() {
271
271
  switch (t) {
272
272
  case B:
273
273
  return f("Suspense");
274
- case me:
274
+ case he:
275
275
  return f("SuspenseList");
276
276
  }
277
277
  if (typeof t == "object")
278
278
  switch (t.$$typeof) {
279
279
  case I:
280
280
  return t = u(t.render, !1), t;
281
- case L:
282
- return m(t.type);
281
+ case F:
282
+ return h(t.type);
283
283
  case S:
284
284
  b = t._payload, t = t._init;
285
285
  try {
286
- return m(t(b));
286
+ return h(t(b));
287
287
  } catch {
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
292
  function p() {
293
- var t = F.A;
293
+ var t = L.A;
294
294
  return t === null ? null : t.getOwner();
295
295
  }
296
- function h(t) {
296
+ function m(t) {
297
297
  if (Z.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 r(t, b) {
303
+ function n(t, b) {
304
304
  function w() {
305
- Ne || (Ne = !0, console.error(
305
+ Ce || (Ce = !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,12 +313,12 @@ function ft() {
313
313
  });
314
314
  }
315
315
  function c() {
316
- var t = n(this.type);
316
+ var t = r(this.type);
317
317
  return Ae[t] || (Ae[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 v(t, b, w, A, V, U) {
321
+ function D(t, b, w, C, V, U) {
322
322
  return w = U.ref, t = {
323
323
  $$typeof: R,
324
324
  type: t,
@@ -340,14 +340,14 @@ 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, A, V, U) {
344
- if (typeof t == "string" || typeof t == "function" || t === T || t === Y || t === P || t === B || t === me || t === D || typeof t == "object" && t !== null && (t.$$typeof === S || t.$$typeof === L || t.$$typeof === d || t.$$typeof === $ || t.$$typeof === I || t.$$typeof === W || t.getModuleId !== void 0)) {
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)) {
345
345
  var _ = b.children;
346
346
  if (_ !== void 0)
347
- if (A)
347
+ if (C)
348
348
  if (H(_)) {
349
- for (A = 0; A < _.length; A++)
350
- l(_[A], t);
349
+ for (C = 0; C < _.length; C++)
350
+ l(_[C], t);
351
351
  Object.freeze && Object.freeze(_);
352
352
  } else
353
353
  console.error(
@@ -355,95 +355,95 @@ function ft() {
355
355
  );
356
356
  else l(_, 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 ? A = "null" : H(t) ? A = "array" : t !== void 0 && t.$$typeof === R ? (A = "<" + (n(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : A = 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 ? 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(
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
- A,
360
+ C,
361
361
  _
362
362
  );
363
363
  if (Z.call(b, "key")) {
364
- _ = n(t);
364
+ _ = r(t);
365
365
  var oe = Object.keys(b).filter(function(Q) {
366
366
  return Q !== "key";
367
367
  });
368
- A = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", qe[_ + A] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
368
+ C = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", qe[_ + C] || (oe = 0 < oe.length ? "{" + oe.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
- A,
375
+ C,
376
376
  _,
377
377
  oe,
378
378
  _
379
- ), qe[_ + A] = !0);
379
+ ), qe[_ + C] = !0);
380
380
  }
381
- if (_ = null, w !== void 0 && (a(w), _ = "" + w), h(b) && (a(b.key), _ = "" + b.key), "key" in b) {
381
+ if (_ = null, w !== void 0 && (a(w), _ = "" + w), m(b) && (a(b.key), _ = "" + b.key), "key" in b) {
382
382
  w = {};
383
- for (var he in b)
384
- he !== "key" && (w[he] = b[he]);
383
+ for (var me in b)
384
+ me !== "key" && (w[me] = b[me]);
385
385
  } else w = b;
386
- return _ && r(
386
+ return _ && n(
387
387
  w,
388
388
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
389
- ), v(t, _, U, V, p(), w);
389
+ ), D(t, _, U, V, p(), w);
390
390
  }
391
391
  function l(t, b) {
392
392
  if (typeof t == "object" && t && t.$$typeof !== dt) {
393
393
  if (H(t))
394
394
  for (var w = 0; w < t.length; w++) {
395
- var A = t[w];
396
- y(A) && M(A, b);
395
+ var C = t[w];
396
+ y(C) && E(C, b);
397
397
  }
398
398
  else if (y(t))
399
399
  t._store && (t._store.validated = 1);
400
- else if (t === null || typeof t != "object" ? w = null : (w = k && t[k] || t["@@iterator"], w = typeof w == "function" ? w : null), typeof w == "function" && w !== t.entries && (w = w.call(t), w !== t))
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) && M(t.value, b);
402
+ y(t.value) && E(t.value, b);
403
403
  }
404
404
  }
405
405
  function y(t) {
406
406
  return typeof t == "object" && t !== null && t.$$typeof === R;
407
407
  }
408
- function M(t, b) {
408
+ function E(t, b) {
409
409
  if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, b = j(b), !We[b])) {
410
410
  We[b] = !0;
411
411
  var w = "";
412
- t && t._owner != null && t._owner !== p() && (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 A = F.getCurrentStack;
414
- F.getCurrentStack = function() {
415
- var V = m(t.type);
416
- return A && (V += A() || ""), V;
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;
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
- ), F.getCurrentStack = A;
421
+ ), L.getCurrentStack = C;
422
422
  }
423
423
  }
424
424
  function j(t) {
425
425
  var b = "", w = p();
426
- return w && (w = n(w.type)) && (b = `
426
+ return w && (w = r(w.type)) && (b = `
427
427
 
428
- Check the render method of \`` + w + "`."), b || (t = n(t)) && (b = `
428
+ Check the render method of \`` + w + "`."), b || (t = r(t)) && (b = `
429
429
 
430
430
  Check the top-level render call using <` + t + ">."), b;
431
431
  }
432
- var O = Ce, R = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), T = 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"), me = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), k = Symbol.iterator, x = Symbol.for("react.client.reference"), F = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, C = Object.assign, W = Symbol.for("react.client.reference"), H = Array.isArray, z = 0, J, ae, ne, ue, re, G, ee;
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;
433
433
  i.__reactDisabledLog = !0;
434
- var se, le, je = !1, Ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), dt = Symbol.for("react.client.reference"), Ne, Ae = {}, qe = {}, We = {};
435
- ve.Fragment = T, ve.jsx = function(t, b, w, A, V) {
436
- return g(t, b, w, !1, A, V);
437
- }, ve.jsxs = function(t, b, w, A, V) {
438
- return g(t, b, w, !0, A, V);
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);
439
439
  };
440
440
  }()), ve;
441
441
  }
442
442
  var Ye;
443
- function mt() {
443
+ function ht() {
444
444
  return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Se.exports = lt() : Se.exports = ft()), Se.exports;
445
445
  }
446
- var N = mt();
446
+ var A = ht();
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: (n) => n.format("h A"),
455
+ formatTickLabel: (r) => r.format("h A"),
456
456
  // → 9:12 AM, 12:00 PM, 3:45 PM // 09:00, 10:00...
457
- formatHeaderLabel: (n) => n.format("MMM D")
457
+ formatHeaderLabel: (r) => r.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: (n) => n.format("D"),
467
+ formatTickLabel: (r) => r.format("D"),
468
468
  // 1, 2, 3...
469
- formatHeaderLabel: (n) => n.format("MMM")
469
+ formatHeaderLabel: (r) => r.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: (n) => n.format("D"),
479
+ formatTickLabel: (r) => r.format("D"),
480
480
  // 1, 2, 3...
481
- formatHeaderLabel: (n) => n.format("MMM YYYY")
481
+ formatHeaderLabel: (r) => r.format("MMM YYYY")
482
482
  // Jun 2024
483
483
  },
484
484
  year: {
@@ -488,121 +488,121 @@ const ut = 2.375 * 16, Be = 3, K = {
488
488
  dragStepUnit: "day",
489
489
  dragStepAmount: 1,
490
490
  basePxPerDragStep: 16,
491
- formatTickLabel: (n) => n.format("D"),
491
+ formatTickLabel: (r) => r.format("D"),
492
492
  // Jan, Feb...
493
- formatHeaderLabel: (n) => n.format("YYYY")
493
+ formatHeaderLabel: (r) => r.format("YYYY")
494
494
  // 2024
495
495
  }
496
496
  };
497
- var be = { exports: {} }, ht = be.exports, Ge;
497
+ var be = { exports: {} }, mt = be.exports, Ge;
498
498
  function pt() {
499
- return Ge || (Ge = 1, function(n, s) {
499
+ return Ge || (Ge = 1, function(r, s) {
500
500
  (function(a, i) {
501
- n.exports = i();
502
- })(ht, function() {
503
- var a = 1e3, i = 6e4, o = 36e5, e = "millisecond", f = "second", u = "minute", m = "hour", p = "day", h = "week", r = "month", c = "quarter", v = "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+)?$/, M = /\[([^\]]+)]|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(L) {
504
- var S = ["th", "st", "nd", "rd"], D = L % 100;
505
- return "[" + L + (S[(D - 20) % 10] || S[D] || S[0]) + "]";
506
- } }, O = function(L, S, D) {
507
- var k = String(L);
508
- return !k || k.length >= S ? L : "" + Array(S + 1 - k.length).join(D) + L;
509
- }, R = { s: O, z: function(L) {
510
- var S = -L.utcOffset(), D = Math.abs(S), k = Math.floor(D / 60), x = D % 60;
511
- return (S <= 0 ? "+" : "-") + O(k, 2, "0") + ":" + O(x, 2, "0");
512
- }, m: function L(S, D) {
513
- if (S.date() < D.date()) return -L(D, S);
514
- var k = 12 * (D.year() - S.year()) + (D.month() - S.month()), x = S.clone().add(k, r), F = D - x < 0, Z = S.clone().add(k + (F ? -1 : 1), r);
515
- return +(-(k + (D - x) / (F ? x - Z : Z - x)) || 0);
516
- }, a: function(L) {
517
- return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
518
- }, p: function(L) {
519
- return { M: r, y: v, w: h, d: p, D: g, h: m, m: u, s: f, ms: e, Q: c }[L] || String(L || "").toLowerCase().replace(/s$/, "");
520
- }, u: function(L) {
521
- return L === void 0;
522
- } }, E = "en", T = {};
523
- T[E] = j;
524
- var P = "$isDayjsObject", Y = function(L) {
525
- return L instanceof B || !(!L || !L[P]);
526
- }, $ = function L(S, D, k) {
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) {
527
527
  var x;
528
- if (!S) return E;
528
+ if (!S) return k;
529
529
  if (typeof S == "string") {
530
- var F = S.toLowerCase();
531
- T[F] && (x = F), D && (T[F] = D, x = F);
530
+ var L = S.toLowerCase();
531
+ O[L] && (x = L), v && (O[L] = v, x = L);
532
532
  var Z = S.split("-");
533
- if (!x && Z.length > 1) return L(Z[0]);
533
+ if (!x && Z.length > 1) return F(Z[0]);
534
534
  } else {
535
- var C = S.name;
536
- T[C] = S, x = C;
535
+ var N = S.name;
536
+ O[N] = S, x = N;
537
537
  }
538
- return !k && x && (E = x), x || !k && E;
539
- }, d = function(L, S) {
540
- if (Y(L)) return L.clone();
541
- var D = typeof S == "object" ? S : {};
542
- return D.date = L, D.args = arguments, new B(D);
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
543
  }, I = R;
544
- I.l = $, I.i = Y, I.w = function(L, S) {
545
- return d(L, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
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 });
546
546
  };
547
547
  var B = function() {
548
- function L(D) {
549
- this.$L = $(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[P] = !0;
548
+ function F(v) {
549
+ this.$L = $(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[P] = !0;
550
550
  }
551
- var S = L.prototype;
552
- return S.parse = function(D) {
553
- this.$d = function(k) {
554
- var x = k.date, F = k.utc;
551
+ var S = F.prototype;
552
+ return S.parse = function(v) {
553
+ this.$d = function(T) {
554
+ var x = T.date, L = T.utc;
555
555
  if (x === null) return /* @__PURE__ */ new Date(NaN);
556
556
  if (I.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
559
  var Z = x.match(y);
560
560
  if (Z) {
561
- var C = Z[2] - 1 || 0, W = (Z[7] || "0").substring(0, 3);
562
- return F ? new Date(Date.UTC(Z[1], C, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, W)) : new Date(Z[1], C, Z[3] || 1, Z[4] || 0, Z[5] || 0, Z[6] || 0, W);
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);
563
563
  }
564
564
  }
565
565
  return new Date(x);
566
- }(D), this.init();
566
+ }(v), this.init();
567
567
  }, S.init = function() {
568
- var D = this.$d;
569
- this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
568
+ var v = this.$d;
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
570
  }, S.$utils = function() {
571
571
  return I;
572
572
  }, S.isValid = function() {
573
573
  return this.$d.toString() !== l;
574
- }, S.isSame = function(D, k) {
575
- var x = d(D);
576
- return this.startOf(k) <= x && x <= this.endOf(k);
577
- }, S.isAfter = function(D, k) {
578
- return d(D) < this.startOf(k);
579
- }, S.isBefore = function(D, k) {
580
- return this.endOf(k) < d(D);
581
- }, S.$g = function(D, k, x) {
582
- return I.u(D) ? this[k] : this.set(x, D);
574
+ }, S.isSame = function(v, T) {
575
+ var x = d(v);
576
+ return this.startOf(T) <= x && x <= this.endOf(T);
577
+ }, S.isAfter = function(v, T) {
578
+ return d(v) < this.startOf(T);
579
+ }, S.isBefore = function(v, T) {
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
583
  }, S.unix = function() {
584
584
  return Math.floor(this.valueOf() / 1e3);
585
585
  }, S.valueOf = function() {
586
586
  return this.$d.getTime();
587
- }, S.startOf = function(D, k) {
588
- var x = this, F = !!I.u(k) || k, Z = I.p(D), C = function(re, G) {
589
- var ee = I.w(x.$u ? Date.UTC(x.$y, G, re) : new Date(x.$y, G, re), x);
590
- return F ? ee : ee.endOf(p);
591
- }, W = function(re, G) {
592
- return I.w(x.toDate()[re].apply(x.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), x);
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
593
  }, H = this.$W, z = this.$M, J = this.$D, ae = "set" + (this.$u ? "UTC" : "");
594
594
  switch (Z) {
595
- case v:
596
- return F ? C(1, 0) : C(31, 11);
597
- case r:
598
- return F ? C(1, z) : C(0, z + 1);
599
- case h:
600
- var ne = this.$locale().weekStart || 0, ue = (H < ne ? H + 7 : H) - ne;
601
- return C(F ? J - ue : J + (6 - ue), 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
602
  case p:
603
603
  case g:
604
604
  return W(ae + "Hours", 0);
605
- case m:
605
+ case h:
606
606
  return W(ae + "Minutes", 1);
607
607
  case u:
608
608
  return W(ae + "Seconds", 2);
@@ -611,94 +611,94 @@ function pt() {
611
611
  default:
612
612
  return this.clone();
613
613
  }
614
- }, S.endOf = function(D) {
615
- return this.startOf(D, !1);
616
- }, S.$set = function(D, k) {
617
- var x, F = I.p(D), Z = "set" + (this.$u ? "UTC" : ""), C = (x = {}, x[p] = Z + "Date", x[g] = Z + "Date", x[r] = Z + "Month", x[v] = Z + "FullYear", x[m] = Z + "Hours", x[u] = Z + "Minutes", x[f] = Z + "Seconds", x[e] = Z + "Milliseconds", x)[F], W = F === p ? this.$D + (k - this.$W) : k;
618
- if (F === r || F === v) {
614
+ }, S.endOf = function(v) {
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
619
  var H = this.clone().set(g, 1);
620
- H.$d[C](W), H.init(), this.$d = H.set(g, Math.min(this.$D, H.daysInMonth())).$d;
621
- } else C && this.$d[C](W);
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);
622
622
  return this.init(), this;
623
- }, S.set = function(D, k) {
624
- return this.clone().$set(D, k);
625
- }, S.get = function(D) {
626
- return this[I.p(D)]();
627
- }, S.add = function(D, k) {
628
- var x, F = this;
629
- D = Number(D);
630
- var Z = I.p(k), C = function(z) {
631
- var J = d(F);
632
- return I.w(J.date(J.date() + Math.round(z * D)), F);
623
+ }, S.set = function(v, T) {
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;
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);
633
633
  };
634
- if (Z === r) return this.set(r, this.$M + D);
635
- if (Z === v) return this.set(v, this.$y + D);
636
- if (Z === p) return C(1);
637
- if (Z === h) return C(7);
638
- var W = (x = {}, x[u] = i, x[m] = o, x[f] = a, x)[Z] || 1, H = this.$d.getTime() + D * W;
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
639
  return I.w(H, this);
640
- }, S.subtract = function(D, k) {
641
- return this.add(-1 * D, k);
642
- }, S.format = function(D) {
643
- var k = this, x = this.$locale();
640
+ }, S.subtract = function(v, T) {
641
+ return this.add(-1 * v, T);
642
+ }, S.format = function(v) {
643
+ var T = this, x = this.$locale();
644
644
  if (!this.isValid()) return x.invalidDate || l;
645
- var F = D || "YYYY-MM-DDTHH:mm:ssZ", Z = I.z(this), C = this.$H, W = this.$m, H = this.$M, z = x.weekdays, J = x.months, ae = x.meridiem, ne = function(G, ee, se, le) {
646
- return G && (G[ee] || G(k, F)) || se[ee].slice(0, le);
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
647
  }, ue = function(G) {
648
- return I.s(C % 12 || 12, G, "0");
649
- }, re = ae || function(G, ee, se) {
648
+ return I.s(N % 12 || 12, G, "0");
649
+ }, ne = ae || function(G, ee, se) {
650
650
  var le = G < 12 ? "AM" : "PM";
651
651
  return se ? le.toLowerCase() : le;
652
652
  };
653
- return F.replace(M, function(G, ee) {
653
+ return L.replace(E, function(G, ee) {
654
654
  return ee || function(se) {
655
655
  switch (se) {
656
656
  case "YY":
657
- return String(k.$y).slice(-2);
657
+ return String(T.$y).slice(-2);
658
658
  case "YYYY":
659
- return I.s(k.$y, 4, "0");
659
+ return I.s(T.$y, 4, "0");
660
660
  case "M":
661
661
  return H + 1;
662
662
  case "MM":
663
663
  return I.s(H + 1, 2, "0");
664
664
  case "MMM":
665
- return ne(x.monthsShort, H, J, 3);
665
+ return re(x.monthsShort, H, J, 3);
666
666
  case "MMMM":
667
- return ne(J, H);
667
+ return re(J, H);
668
668
  case "D":
669
- return k.$D;
669
+ return T.$D;
670
670
  case "DD":
671
- return I.s(k.$D, 2, "0");
671
+ return I.s(T.$D, 2, "0");
672
672
  case "d":
673
- return String(k.$W);
673
+ return String(T.$W);
674
674
  case "dd":
675
- return ne(x.weekdaysMin, k.$W, z, 2);
675
+ return re(x.weekdaysMin, T.$W, z, 2);
676
676
  case "ddd":
677
- return ne(x.weekdaysShort, k.$W, z, 3);
677
+ return re(x.weekdaysShort, T.$W, z, 3);
678
678
  case "dddd":
679
- return z[k.$W];
679
+ return z[T.$W];
680
680
  case "H":
681
- return String(C);
681
+ return String(N);
682
682
  case "HH":
683
- return I.s(C, 2, "0");
683
+ return I.s(N, 2, "0");
684
684
  case "h":
685
685
  return ue(1);
686
686
  case "hh":
687
687
  return ue(2);
688
688
  case "a":
689
- return re(C, W, !0);
689
+ return ne(N, W, !0);
690
690
  case "A":
691
- return re(C, W, !1);
691
+ return ne(N, W, !1);
692
692
  case "m":
693
693
  return String(W);
694
694
  case "mm":
695
695
  return I.s(W, 2, "0");
696
696
  case "s":
697
- return String(k.$s);
697
+ return String(T.$s);
698
698
  case "ss":
699
- return I.s(k.$s, 2, "0");
699
+ return I.s(T.$s, 2, "0");
700
700
  case "SSS":
701
- return I.s(k.$ms, 3, "0");
701
+ return I.s(T.$ms, 3, "0");
702
702
  case "Z":
703
703
  return Z;
704
704
  }
@@ -707,47 +707,47 @@ function pt() {
707
707
  });
708
708
  }, S.utcOffset = function() {
709
709
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
710
- }, S.diff = function(D, k, x) {
711
- var F, Z = this, C = I.p(k), W = d(D), H = (W.utcOffset() - this.utcOffset()) * i, z = this - W, J = function() {
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
712
  return I.m(Z, W);
713
713
  };
714
- switch (C) {
715
- case v:
716
- F = J() / 12;
714
+ switch (N) {
715
+ case D:
716
+ L = J() / 12;
717
717
  break;
718
- case r:
719
- F = J();
718
+ case n:
719
+ L = J();
720
720
  break;
721
721
  case c:
722
- F = J() / 3;
722
+ L = J() / 3;
723
723
  break;
724
- case h:
725
- F = (z - H) / 6048e5;
724
+ case m:
725
+ L = (z - H) / 6048e5;
726
726
  break;
727
727
  case p:
728
- F = (z - H) / 864e5;
728
+ L = (z - H) / 864e5;
729
729
  break;
730
- case m:
731
- F = z / o;
730
+ case h:
731
+ L = z / o;
732
732
  break;
733
733
  case u:
734
- F = z / i;
734
+ L = z / i;
735
735
  break;
736
736
  case f:
737
- F = z / a;
737
+ L = z / a;
738
738
  break;
739
739
  default:
740
- F = z;
740
+ L = z;
741
741
  }
742
- return x ? F : I.a(F);
742
+ return x ? L : I.a(L);
743
743
  }, S.daysInMonth = function() {
744
- return this.endOf(r).$D;
744
+ return this.endOf(n).$D;
745
745
  }, S.$locale = function() {
746
- return T[this.$L];
747
- }, S.locale = function(D, k) {
748
- if (!D) return this.$L;
749
- var x = this.clone(), F = $(D, k, !0);
750
- return F && (x.$L = F), x;
746
+ return O[this.$L];
747
+ }, S.locale = function(v, T) {
748
+ if (!v) return this.$L;
749
+ var x = this.clone(), L = $(v, T, !0);
750
+ return L && (x.$L = L), x;
751
751
  }, S.clone = function() {
752
752
  return I.w(this.$d, this);
753
753
  }, S.toDate = function() {
@@ -758,135 +758,135 @@ function pt() {
758
758
  return this.$d.toISOString();
759
759
  }, S.toString = function() {
760
760
  return this.$d.toUTCString();
761
- }, L;
762
- }(), me = B.prototype;
763
- return d.prototype = me, [["$ms", e], ["$s", f], ["$m", u], ["$H", m], ["$W", p], ["$M", r], ["$y", v], ["$D", g]].forEach(function(L) {
764
- me[L[1]] = function(S) {
765
- return this.$g(S, L[0], L[1]);
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]);
766
766
  };
767
- }), d.extend = function(L, S) {
768
- return L.$i || (L(S, B, d), L.$i = !0), d;
769
- }, d.locale = $, d.isDayjs = Y, d.unix = function(L) {
770
- return d(1e3 * L);
771
- }, d.en = T[E], d.Ls = T, d.p = {}, d;
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;
772
772
  });
773
773
  }(be)), be.exports;
774
774
  }
775
775
  var $t = pt();
776
776
  const q = /* @__PURE__ */ te($t);
777
- function gt(n, s, a, i) {
777
+ function gt(r, s, 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, m = a[a.length - 1].startDate, p = q(m).add(e, o).diff(u), h = f / p, r = n.diff(u), c = s.diff(u), v = r * h, g = Math.max(c - r, 1) * h;
781
- return { barMarginLeftAmount: v, barWidthSize: g };
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 };
782
782
  }
783
- function vt(n) {
783
+ function vt(r) {
784
784
  let s = 1 / 0, a = -1 / 0;
785
- for (const { startDate: i, endDate: o } of Object.values(n)) {
785
+ for (const { startDate: i, endDate: o } of Object.values(r)) {
786
786
  const e = q(i).valueOf(), f = q(o).valueOf();
787
787
  Number.isNaN(e) || (s = Math.min(s, e)), Number.isNaN(f) || (a = Math.max(a, f));
788
788
  }
789
789
  return { minDate: q(s), maxDate: q(a) };
790
790
  }
791
- function Dt(n, s, a) {
791
+ function Dt(r, s, a) {
792
792
  const { tickUnit: i, unitPerTick: o } = K[a];
793
793
  return {
794
- paddedMinDate: n.subtract(
794
+ paddedMinDate: r.subtract(
795
795
  Be * o,
796
796
  i
797
797
  ),
798
798
  paddedMaxDate: s.add(Be * o, i)
799
799
  };
800
800
  }
801
- function yt(n, s, a) {
802
- const { tickUnit: i, unitPerTick: o, basePxPerDragStep: e, dragStepUnit: f, dragStepAmount: u } = K[a], m = [];
803
- let p = n.startOf(i);
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
804
  for (; p.isBefore(s); ) {
805
- const h = q(p).add(o, i).diff(p, f) / u;
806
- m.push({
805
+ const m = q(p).add(o, i).diff(p, f) / u;
806
+ h.push({
807
807
  startDate: p,
808
- widthPx: h * e
808
+ widthPx: m * e
809
809
  }), p = p.add(o, i);
810
810
  }
811
- return m;
811
+ return h;
812
812
  }
813
- function ct(n, s) {
813
+ function ct(r, s) {
814
814
  const { labelUnit: a, formatHeaderLabel: i } = K[s], o = [];
815
- let e = null, f = "", u = 0, m = null;
816
- return n.forEach((p, h) => {
817
- const r = p.startDate.startOf(a), c = r.valueOf(), v = (i == null ? void 0 : i(r)) ?? r.format();
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
818
  c === e ? u += p.widthPx : (e !== null && o.push({
819
819
  label: f,
820
820
  widthPx: u,
821
- startDate: m
822
- }), e = c, f = v, u = p.widthPx, m = r), h === n.length - 1 && o.push({
821
+ startDate: h
822
+ }), e = c, f = D, u = p.widthPx, h = n), m === r.length - 1 && o.push({
823
823
  label: f,
824
824
  widthPx: u,
825
- startDate: m
825
+ startDate: h
826
826
  });
827
827
  }), o;
828
828
  }
829
- function St(n, s, a, i, o, e) {
830
- const { minDate: f, maxDate: u } = vt(n);
829
+ function St(r, s, a, i, o, e) {
830
+ const { minDate: f, maxDate: u } = vt(r);
831
831
  a(f), i(u);
832
- const { paddedMinDate: m, paddedMaxDate: p } = Dt(
832
+ const { paddedMinDate: h, paddedMaxDate: p } = Dt(
833
833
  f,
834
834
  u,
835
835
  s
836
- ), h = yt(
837
- m,
836
+ ), m = yt(
837
+ h,
838
838
  p,
839
839
  s
840
- ), r = ct(h, s);
841
- o(h), e(r);
840
+ ), n = ct(m, s);
841
+ o(m), e(n);
842
842
  }
843
843
  const xt = ({
844
- bottomRowCells: n,
844
+ bottomRowCells: r,
845
845
  selectedScale: s,
846
846
  scrollRef: a
847
847
  }) => {
848
- var h;
848
+ var m;
849
849
  const i = K[s], [o, e] = de(0), f = _e(
850
- () => ct(n, s),
851
- [n, s]
850
+ () => ct(r, s),
851
+ [r, s]
852
852
  ), u = _e(() => {
853
- const r = [];
853
+ const n = [];
854
854
  for (const c of f) {
855
- const v = r[r.length - 1];
856
- v && v.label === c.label ? v.widthPx += c.widthPx : r.push({ ...c });
855
+ const D = n[n.length - 1];
856
+ D && D.label === c.label ? D.widthPx += c.widthPx : n.push({ ...c });
857
857
  }
858
- return r;
859
- }, [f]), m = _e(() => {
860
- let r = 0;
858
+ return n;
859
+ }, [f]), h = _e(() => {
860
+ let n = 0;
861
861
  return u.map((c) => {
862
- const v = { ...c, left: r };
863
- return r += c.widthPx, v;
862
+ const D = { ...c, left: n };
863
+ return n += c.widthPx, D;
864
864
  });
865
865
  }, [u]);
866
866
  xe(() => {
867
- const r = a.current;
868
- if (!r) return;
867
+ const n = a.current;
868
+ if (!n) return;
869
869
  const c = () => {
870
- const v = r.scrollLeft;
871
- for (let g = m.length - 1; g >= 0; g--)
872
- if (v >= m[g].left) {
870
+ const D = n.scrollLeft;
871
+ for (let g = h.length - 1; g >= 0; g--)
872
+ if (D >= h[g].left) {
873
873
  e(g);
874
874
  break;
875
875
  }
876
876
  };
877
- return r.addEventListener("scroll", c), c(), () => r.removeEventListener("scroll", c);
878
- }, [m]);
879
- const p = ((h = m[o]) == null ? void 0 : h.label) ?? "";
880
- return /* @__PURE__ */ N.jsx(
877
+ return n.addEventListener("scroll", c), c(), () => n.removeEventListener("scroll", c);
878
+ }, [h]);
879
+ const p = ((m = h[o]) == null ? void 0 : m.label) ?? "";
880
+ return /* @__PURE__ */ A.jsx(
881
881
  "div",
882
882
  {
883
883
  className: "sticky top-0 z-30",
884
884
  style: {
885
885
  backgroundColor: "#F0F1F2"
886
886
  },
887
- children: /* @__PURE__ */ N.jsxs("div", { className: "flex min-w-max flex-col", children: [
888
- /* @__PURE__ */ N.jsxs("div", { className: "relative flex h-8", children: [
889
- /* @__PURE__ */ N.jsx(
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
890
  "div",
891
891
  {
892
892
  className: "sticky left-0 z-40 flex w-24 shrink-0 items-center justify-center border-b border-solid text-sm font-bold",
@@ -897,29 +897,29 @@ const xt = ({
897
897
  children: p
898
898
  }
899
899
  ),
900
- /* @__PURE__ */ N.jsx("div", { className: "flex", children: m.map((r, c) => /* @__PURE__ */ N.jsx(
900
+ /* @__PURE__ */ A.jsx("div", { className: "flex", children: h.map((n, c) => /* @__PURE__ */ A.jsx(
901
901
  "div",
902
902
  {
903
903
  className: "border-b border-solid py-2 pr-4 text-left text-sm font-bold",
904
904
  style: {
905
- width: `${r.widthPx}px`,
905
+ width: `${n.widthPx}px`,
906
906
  borderColor: "#D6D6D8",
907
907
  backgroundColor: "#F0F1F2"
908
908
  },
909
- children: /* @__PURE__ */ N.jsx("p", { className: "px-4", children: c === 0 ? "" : r.label })
909
+ children: /* @__PURE__ */ A.jsx("p", { className: "px-4", children: c === 0 ? "" : n.label })
910
910
  },
911
911
  c
912
912
  )) })
913
913
  ] }),
914
- /* @__PURE__ */ N.jsx("div", { className: "flex", children: n.map((r, c) => {
914
+ /* @__PURE__ */ A.jsx("div", { className: "flex", children: r.map((n, c) => {
915
915
  var g;
916
- const v = ((g = i.formatTickLabel) == null ? void 0 : g.call(i, r.startDate)) || "";
917
- return /* @__PURE__ */ N.jsx(
916
+ const D = ((g = i.formatTickLabel) == null ? void 0 : g.call(i, n.startDate)) || "";
917
+ return /* @__PURE__ */ A.jsx(
918
918
  "div",
919
919
  {
920
920
  className: "relative p-1 text-center text-xs",
921
- style: { width: `${r.widthPx}px` },
922
- children: v
921
+ style: { width: `${n.widthPx}px` },
922
+ children: D
923
923
  },
924
924
  c
925
925
  );
@@ -930,14 +930,14 @@ const xt = ({
930
930
  };
931
931
  var we = { exports: {} }, bt = we.exports, Ve;
932
932
  function wt() {
933
- return Ve || (Ve = 1, function(n, s) {
933
+ return Ve || (Ve = 1, function(r, s) {
934
934
  (function(a, i) {
935
- n.exports = i();
935
+ r.exports = i();
936
936
  })(bt, function() {
937
937
  return function(a, i, o) {
938
- i.prototype.isBetween = function(e, f, u, m) {
939
- var p = o(e), h = o(f), r = (m = m || "()")[0] === "(", c = m[1] === ")";
940
- return (r ? this.isAfter(p, u) : !this.isBefore(p, u)) && (c ? this.isBefore(h, u) : !this.isAfter(h, u)) || (r ? this.isBefore(p, u) : !this.isAfter(p, u)) && (c ? this.isAfter(h, u) : !this.isBefore(h, u));
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));
941
941
  };
942
942
  };
943
943
  });
@@ -947,9 +947,9 @@ var Tt = wt();
947
947
  const kt = /* @__PURE__ */ te(Tt);
948
948
  var Te = { exports: {} }, Et = Te.exports, Xe;
949
949
  function Mt() {
950
- return Xe || (Xe = 1, function(n, s) {
950
+ return Xe || (Xe = 1, function(r, s) {
951
951
  (function(a, i) {
952
- n.exports = i();
952
+ r.exports = i();
953
953
  })(Et, function() {
954
954
  var a = "day";
955
955
  return function(i, o, e) {
@@ -960,15 +960,15 @@ function Mt() {
960
960
  return f(this).year();
961
961
  }, u.isoWeek = function(p) {
962
962
  if (!this.$utils().u(p)) return this.add(7 * (p - this.isoWeek()), a);
963
- var h, r, c, v, g = f(this), l = (h = this.isoWeekYear(), r = this.$u, c = (r ? e.utc : e)().year(h).startOf("year"), v = 4 - c.isoWeekday(), c.isoWeekday() > 4 && (v += 7), c.add(v, 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
964
  return g.diff(l, "week") + 1;
965
965
  }, u.isoWeekday = function(p) {
966
966
  return this.$utils().u(p) ? this.day() || 7 : this.day(this.day() % 7 ? p : p - 7);
967
967
  };
968
- var m = u.startOf;
969
- u.startOf = function(p, h) {
970
- var r = this.$utils(), c = !!r.u(h) || h;
971
- return r.p(p) === "isoweek" ? c ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : m.bind(this)(p, h);
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);
972
972
  };
973
973
  };
974
974
  });
@@ -977,10 +977,10 @@ function Mt() {
977
977
  var Ot = Mt();
978
978
  const It = /* @__PURE__ */ te(Ot);
979
979
  var ke = { exports: {} }, Rt = ke.exports, Je;
980
- function Ft() {
981
- return Je || (Je = 1, function(n, s) {
980
+ function Lt() {
981
+ return Je || (Je = 1, function(r, s) {
982
982
  (function(a, i) {
983
- n.exports = i();
983
+ r.exports = i();
984
984
  })(Rt, function() {
985
985
  return function(a, i) {
986
986
  i.prototype.isSameOrAfter = function(o, e) {
@@ -990,13 +990,13 @@ function Ft() {
990
990
  });
991
991
  }(ke)), ke.exports;
992
992
  }
993
- var Lt = Ft();
994
- const jt = /* @__PURE__ */ te(Lt);
993
+ var Ft = Lt();
994
+ const jt = /* @__PURE__ */ te(Ft);
995
995
  var Ee = { exports: {} }, Zt = Ee.exports, Qe;
996
996
  function _t() {
997
- return Qe || (Qe = 1, function(n, s) {
997
+ return Qe || (Qe = 1, function(r, s) {
998
998
  (function(a, i) {
999
- n.exports = i();
999
+ r.exports = i();
1000
1000
  })(Zt, function() {
1001
1001
  return function(a, i) {
1002
1002
  i.prototype.isSameOrBefore = function(o, e) {
@@ -1007,13 +1007,13 @@ function _t() {
1007
1007
  }(Ee)), Ee.exports;
1008
1008
  }
1009
1009
  var Pt = _t();
1010
- const Ct = /* @__PURE__ */ te(Pt);
1011
- var Me = { exports: {} }, Nt = Me.exports, Ke;
1010
+ const Nt = /* @__PURE__ */ te(Pt);
1011
+ var Me = { exports: {} }, Ct = Me.exports, Ke;
1012
1012
  function At() {
1013
- return Ke || (Ke = 1, function(n, s) {
1013
+ return Ke || (Ke = 1, function(r, s) {
1014
1014
  (function(a, i) {
1015
- n.exports = i();
1016
- })(Nt, function() {
1015
+ r.exports = i();
1016
+ })(Ct, function() {
1017
1017
  return function(a, i, o) {
1018
1018
  i.prototype.isToday = function() {
1019
1019
  var e = "YYYY-MM-DD", f = o();
@@ -1027,54 +1027,54 @@ var qt = At();
1027
1027
  const Wt = /* @__PURE__ */ te(qt);
1028
1028
  var Oe = { exports: {} }, Ut = Oe.exports, et;
1029
1029
  function Ht() {
1030
- return et || (et = 1, function(n, s) {
1030
+ return et || (et = 1, function(r, s) {
1031
1031
  (function(a, i) {
1032
- n.exports = i();
1032
+ r.exports = i();
1033
1033
  })(Ut, function() {
1034
1034
  return function(a, i, o) {
1035
- var e = i.prototype, f = function(r) {
1036
- return r && (r.indexOf ? r : r.s);
1037
- }, u = function(r, c, v, g, l) {
1038
- var y = r.name ? r : r.$locale(), M = f(y[c]), j = f(y[v]), O = M || j.map(function(E) {
1039
- return E.slice(0, g);
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);
1040
1040
  });
1041
- if (!l) return O;
1041
+ if (!l) return M;
1042
1042
  var R = y.weekStart;
1043
- return O.map(function(E, T) {
1044
- return O[(T + (R || 0)) % 7];
1043
+ return M.map(function(k, O) {
1044
+ return M[(O + (R || 0)) % 7];
1045
1045
  });
1046
- }, m = function() {
1046
+ }, h = function() {
1047
1047
  return o.Ls[o.locale()];
1048
- }, p = function(r, c) {
1049
- return r.formats[c] || function(v) {
1050
- return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(g, l, y) {
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
1051
  return l || y.slice(1);
1052
1052
  });
1053
- }(r.formats[c.toUpperCase()]);
1054
- }, h = function() {
1055
- var r = this;
1053
+ }(n.formats[c.toUpperCase()]);
1054
+ }, m = function() {
1055
+ var n = this;
1056
1056
  return { months: function(c) {
1057
- return c ? c.format("MMMM") : u(r, "months");
1057
+ return c ? c.format("MMMM") : u(n, "months");
1058
1058
  }, monthsShort: function(c) {
1059
- return c ? c.format("MMM") : u(r, "monthsShort", "months", 3);
1059
+ return c ? c.format("MMM") : u(n, "monthsShort", "months", 3);
1060
1060
  }, firstDayOfWeek: function() {
1061
- return r.$locale().weekStart || 0;
1061
+ return n.$locale().weekStart || 0;
1062
1062
  }, weekdays: function(c) {
1063
- return c ? c.format("dddd") : u(r, "weekdays");
1063
+ return c ? c.format("dddd") : u(n, "weekdays");
1064
1064
  }, weekdaysMin: function(c) {
1065
- return c ? c.format("dd") : u(r, "weekdaysMin", "weekdays", 2);
1065
+ return c ? c.format("dd") : u(n, "weekdaysMin", "weekdays", 2);
1066
1066
  }, weekdaysShort: function(c) {
1067
- return c ? c.format("ddd") : u(r, "weekdaysShort", "weekdays", 3);
1067
+ return c ? c.format("ddd") : u(n, "weekdaysShort", "weekdays", 3);
1068
1068
  }, longDateFormat: function(c) {
1069
- return p(r.$locale(), c);
1069
+ return p(n.$locale(), c);
1070
1070
  }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
1071
1071
  };
1072
1072
  e.localeData = function() {
1073
- return h.bind(this)();
1073
+ return m.bind(this)();
1074
1074
  }, o.localeData = function() {
1075
- var r = m();
1075
+ var n = h();
1076
1076
  return { firstDayOfWeek: function() {
1077
- return r.weekStart || 0;
1077
+ return n.weekStart || 0;
1078
1078
  }, weekdays: function() {
1079
1079
  return o.weekdays();
1080
1080
  }, weekdaysShort: function() {
@@ -1086,18 +1086,18 @@ function Ht() {
1086
1086
  }, monthsShort: function() {
1087
1087
  return o.monthsShort();
1088
1088
  }, longDateFormat: function(c) {
1089
- return p(r, c);
1090
- }, meridiem: r.meridiem, ordinal: r.ordinal };
1089
+ return p(n, c);
1090
+ }, meridiem: n.meridiem, ordinal: n.ordinal };
1091
1091
  }, o.months = function() {
1092
- return u(m(), "months");
1092
+ return u(h(), "months");
1093
1093
  }, o.monthsShort = function() {
1094
- return u(m(), "monthsShort", "months", 3);
1095
- }, o.weekdays = function(r) {
1096
- return u(m(), "weekdays", null, null, r);
1097
- }, o.weekdaysShort = function(r) {
1098
- return u(m(), "weekdaysShort", "weekdays", 3, r);
1099
- }, o.weekdaysMin = function(r) {
1100
- return u(m(), "weekdaysMin", "weekdays", 2, r);
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);
1101
1101
  };
1102
1102
  };
1103
1103
  });
@@ -1107,58 +1107,58 @@ var zt = Ht();
1107
1107
  const Yt = /* @__PURE__ */ te(zt);
1108
1108
  var Ie = { exports: {} }, Bt = Ie.exports, tt;
1109
1109
  function Gt() {
1110
- return tt || (tt = 1, function(n, s) {
1110
+ return tt || (tt = 1, function(r, s) {
1111
1111
  (function(a, i) {
1112
- n.exports = i();
1112
+ r.exports = i();
1113
1113
  })(Bt, function() {
1114
1114
  var a = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, i = {};
1115
1115
  return function(o, e, f) {
1116
- var u, m = function(c, v, g) {
1116
+ var u, h = function(c, D, g) {
1117
1117
  g === void 0 && (g = {});
1118
- var l = new Date(c), y = function(M, j) {
1118
+ var l = new Date(c), y = function(E, j) {
1119
1119
  j === void 0 && (j = {});
1120
- var O = j.timeZoneName || "short", R = M + "|" + O, E = i[R];
1121
- return E || (E = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: O }), i[R] = E), E;
1122
- }(v, g);
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
1123
  return y.formatToParts(l);
1124
- }, p = function(c, v) {
1125
- for (var g = m(c, v), l = [], y = 0; y < g.length; y += 1) {
1126
- var M = g[y], j = M.type, O = M.value, R = a[j];
1127
- R >= 0 && (l[R] = parseInt(O, 10));
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));
1128
1128
  }
1129
- var E = l[3], T = E === 24 ? 0 : E, P = l[0] + "-" + l[1] + "-" + l[2] + " " + T + ":" + l[4] + ":" + l[5] + ":000", Y = +c;
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
1130
  return (f.utc(P).valueOf() - (Y -= Y % 1e3)) / 6e4;
1131
- }, h = e.prototype;
1132
- h.tz = function(c, v) {
1131
+ }, m = e.prototype;
1132
+ m.tz = function(c, D) {
1133
1133
  c === void 0 && (c = u);
1134
- var g, l = this.utcOffset(), y = this.toDate(), M = y.toLocaleString("en-US", { timeZone: c }), j = Math.round((y - new Date(M)) / 1e3 / 60), O = 15 * -Math.round(y.getTimezoneOffset() / 15) - j;
1135
- if (!Number(O)) g = this.utcOffset(0, v);
1136
- else if (g = f(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(O, !0), v) {
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
1137
  var R = g.utcOffset();
1138
1138
  g = g.add(l - R, "minute");
1139
1139
  }
1140
1140
  return g.$x.$timezone = c, g;
1141
- }, h.offsetName = function(c) {
1142
- var v = this.$x.$timezone || f.tz.guess(), g = m(this.valueOf(), v, { timeZoneName: c }).find(function(l) {
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
1143
  return l.type.toLowerCase() === "timezonename";
1144
1144
  });
1145
1145
  return g && g.value;
1146
1146
  };
1147
- var r = h.startOf;
1148
- h.startOf = function(c, v) {
1149
- if (!this.$x || !this.$x.$timezone) return r.call(this, c, v);
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
1150
  var g = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1151
- return r.call(g, c, v).tz(this.$x.$timezone, !0);
1152
- }, f.tz = function(c, v, g) {
1153
- var l = g && v, y = g || v || u, M = p(+f(), y);
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
1154
  if (typeof c != "string") return f(c).tz(y);
1155
- var j = function(T, P, Y) {
1156
- var $ = T - 60 * P * 1e3, d = p($, Y);
1155
+ var j = function(O, P, Y) {
1156
+ var $ = O - 60 * P * 1e3, d = p($, Y);
1157
1157
  if (P === d) return [$, P];
1158
1158
  var I = p($ -= 60 * (d - P) * 1e3, Y);
1159
- return d === I ? [$, d] : [T - 60 * Math.min(d, I) * 1e3, Math.max(d, I)];
1160
- }(f.utc(c, l).valueOf(), M, y), O = j[0], R = j[1], E = f(O).utcOffset(R);
1161
- return E.$x.$timezone = y, E;
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
1162
  }, f.tz.guess = function() {
1163
1163
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1164
1164
  }, f.tz.setDefault = function(c) {
@@ -1170,17 +1170,17 @@ function Gt() {
1170
1170
  }
1171
1171
  var Vt = Gt();
1172
1172
  const Xt = /* @__PURE__ */ te(Vt);
1173
- var Re = { exports: {} }, Jt = Re.exports, nt;
1173
+ var Re = { exports: {} }, Jt = Re.exports, rt;
1174
1174
  function Qt() {
1175
- return nt || (nt = 1, function(n, s) {
1175
+ return rt || (rt = 1, function(r, s) {
1176
1176
  (function(a, i) {
1177
- n.exports = i();
1177
+ r.exports = i();
1178
1178
  })(Jt, function() {
1179
1179
  return function(a, i, o) {
1180
1180
  o.updateLocale = function(e, f) {
1181
1181
  var u = o.Ls[e];
1182
- if (u) return (f ? Object.keys(f) : []).forEach(function(m) {
1183
- u[m] = f[m];
1182
+ if (u) return (f ? Object.keys(f) : []).forEach(function(h) {
1183
+ u[h] = f[h];
1184
1184
  }), u;
1185
1185
  };
1186
1186
  };
@@ -1188,91 +1188,91 @@ function Qt() {
1188
1188
  }(Re)), Re.exports;
1189
1189
  }
1190
1190
  var Kt = Qt();
1191
- const en = /* @__PURE__ */ te(Kt);
1192
- var Fe = { exports: {} }, tn = Fe.exports, rt;
1193
- function nn() {
1194
- return rt || (rt = 1, function(n, s) {
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) {
1195
1195
  (function(a, i) {
1196
- n.exports = i();
1197
- })(tn, function() {
1196
+ r.exports = i();
1197
+ })(tr, function() {
1198
1198
  var a = "minute", i = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
1199
1199
  return function(e, f, u) {
1200
- var m = f.prototype;
1200
+ var h = f.prototype;
1201
1201
  u.utc = function(l) {
1202
1202
  var y = { date: l, utc: !0, args: arguments };
1203
1203
  return new f(y);
1204
- }, m.utc = function(l) {
1204
+ }, h.utc = function(l) {
1205
1205
  var y = u(this.toDate(), { locale: this.$L, utc: !0 });
1206
1206
  return l ? y.add(this.utcOffset(), a) : y;
1207
- }, m.local = function() {
1207
+ }, h.local = function() {
1208
1208
  return u(this.toDate(), { locale: this.$L, utc: !1 });
1209
1209
  };
1210
- var p = m.parse;
1211
- m.parse = function(l) {
1210
+ var p = h.parse;
1211
+ h.parse = function(l) {
1212
1212
  l.utc && (this.$u = !0), this.$utils().u(l.$offset) || (this.$offset = l.$offset), p.call(this, l);
1213
1213
  };
1214
- var h = m.init;
1215
- m.init = function() {
1214
+ var m = h.init;
1215
+ h.init = function() {
1216
1216
  if (this.$u) {
1217
1217
  var l = this.$d;
1218
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 h.call(this);
1219
+ } else m.call(this);
1220
1220
  };
1221
- var r = m.utcOffset;
1222
- m.utcOffset = function(l, y) {
1223
- var M = this.$utils().u;
1224
- if (M(l)) return this.$u ? 0 : M(this.$offset) ? r.call(this) : this.$offset;
1225
- if (typeof l == "string" && (l = function(E) {
1226
- E === void 0 && (E = "");
1227
- var T = E.match(i);
1228
- if (!T) return null;
1229
- var P = ("" + T[0]).match(o) || ["-", 0, 0], Y = P[0], $ = 60 * +P[1] + +P[2];
1221
+ var n = h.utcOffset;
1222
+ h.utcOffset = function(l, y) {
1223
+ 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
1230
  return $ === 0 ? 0 : Y === "+" ? $ : -$;
1231
1231
  }(l), l === null)) return this;
1232
- var j = Math.abs(l) <= 16 ? 60 * l : l, O = this;
1233
- if (y) return O.$offset = j, O.$u = l === 0, O;
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
1234
  if (l !== 0) {
1235
1235
  var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1236
- (O = this.local().add(j + R, a)).$offset = j, O.$x.$localOffset = R;
1237
- } else O = this.utc();
1238
- return O;
1236
+ (M = this.local().add(j + R, a)).$offset = j, M.$x.$localOffset = R;
1237
+ } else M = this.utc();
1238
+ return M;
1239
1239
  };
1240
- var c = m.format;
1241
- m.format = function(l) {
1240
+ var c = h.format;
1241
+ h.format = function(l) {
1242
1242
  var y = l || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1243
1243
  return c.call(this, y);
1244
- }, m.valueOf = function() {
1244
+ }, h.valueOf = function() {
1245
1245
  var l = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1246
1246
  return this.$d.valueOf() - 6e4 * l;
1247
- }, m.isUTC = function() {
1247
+ }, h.isUTC = function() {
1248
1248
  return !!this.$u;
1249
- }, m.toISOString = function() {
1249
+ }, h.toISOString = function() {
1250
1250
  return this.toDate().toISOString();
1251
- }, m.toString = function() {
1251
+ }, h.toString = function() {
1252
1252
  return this.toDate().toUTCString();
1253
1253
  };
1254
- var v = m.toDate;
1255
- m.toDate = function(l) {
1256
- return l === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this);
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);
1257
1257
  };
1258
- var g = m.diff;
1259
- m.diff = function(l, y, M) {
1260
- if (l && this.$u === l.$u) return g.call(this, l, y, M);
1261
- var j = this.local(), O = u(l).local();
1262
- return g.call(j, O, y, M);
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);
1263
1263
  };
1264
1264
  };
1265
1265
  });
1266
- }(Fe)), Fe.exports;
1266
+ }(Le)), Le.exports;
1267
1267
  }
1268
- var rn = nn();
1269
- const an = /* @__PURE__ */ te(rn);
1270
- var Le = { exports: {} }, sn = Le.exports, at;
1271
- function on() {
1272
- return at || (at = 1, function(n, s) {
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) {
1273
1273
  (function(a, i) {
1274
- n.exports = i();
1275
- })(sn, function() {
1274
+ r.exports = i();
1275
+ })(sr, function() {
1276
1276
  return function(a, i) {
1277
1277
  i.prototype.weekday = function(o) {
1278
1278
  var e = this.$locale().weekStart || 0, f = this.$W, u = (f < e ? f + 7 : f) - e;
@@ -1280,22 +1280,22 @@ function on() {
1280
1280
  };
1281
1281
  };
1282
1282
  });
1283
- }(Le)), Le.exports;
1283
+ }(Fe)), Fe.exports;
1284
1284
  }
1285
- var un = on();
1286
- const cn = /* @__PURE__ */ te(un);
1287
- q.extend(cn);
1285
+ var ir = or();
1286
+ const ur = /* @__PURE__ */ te(ir);
1287
+ q.extend(ur);
1288
1288
  q.extend(Wt);
1289
- q.extend(an);
1289
+ q.extend(ar);
1290
1290
  q.extend(Xt);
1291
1291
  q.extend(jt);
1292
- q.extend(Ct);
1292
+ q.extend(Nt);
1293
1293
  q.extend(kt);
1294
1294
  q.extend(Yt);
1295
- q.extend(en);
1295
+ q.extend(er);
1296
1296
  q.extend(It);
1297
- function dn(n) {
1298
- return [...n].sort((s, a) => {
1297
+ function cr(r) {
1298
+ return [...r].sort((s, a) => {
1299
1299
  const i = s.sequence.split(".").map(Number), o = a.sequence.split(".").map(Number);
1300
1300
  for (let e = 0; e < Math.max(i.length, o.length); e++) {
1301
1301
  const f = i[e] || 0, u = o[e] || 0;
@@ -1304,15 +1304,15 @@ function dn(n) {
1304
1304
  return 0;
1305
1305
  });
1306
1306
  }
1307
- function ln(n) {
1308
- return n.split(".").length - 1;
1307
+ function dr(r) {
1308
+ return r.split(".").length - 1;
1309
1309
  }
1310
- function Pe(n, s, a) {
1311
- const i = dn(n);
1310
+ function Pe(r, s, a) {
1311
+ const i = cr(r);
1312
1312
  let o = 0;
1313
1313
  return i.map((e) => {
1314
1314
  o++;
1315
- const f = ln(e.sequence), { barMarginLeftAmount: u, barWidthSize: m } = gt(
1315
+ const f = dr(e.sequence), { barMarginLeftAmount: u, barWidthSize: h } = gt(
1316
1316
  q(e.startDate),
1317
1317
  q(e.endDate),
1318
1318
  s,
@@ -1321,36 +1321,36 @@ function Pe(n, s, a) {
1321
1321
  return {
1322
1322
  ...e,
1323
1323
  barLeft: u,
1324
- barWidth: m,
1324
+ barWidth: h,
1325
1325
  depth: f,
1326
1326
  order: o,
1327
1327
  originalOrder: o
1328
1328
  };
1329
1329
  });
1330
1330
  }
1331
- const st = (n) => {
1331
+ const st = (r) => {
1332
1332
  let s;
1333
- const a = /* @__PURE__ */ new Set(), i = (p, h) => {
1334
- const r = typeof p == "function" ? p(s) : p;
1335
- if (!Object.is(r, 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
1336
  const c = s;
1337
- s = h ?? (typeof r != "object" || r === null) ? r : Object.assign({}, s, r), a.forEach((v) => v(s, c));
1337
+ s = m ?? (typeof n != "object" || n === null) ? n : Object.assign({}, s, n), a.forEach((D) => D(s, c));
1338
1338
  }
1339
- }, o = () => s, u = { setState: i, getState: o, getInitialState: () => m, subscribe: (p) => (a.add(p), () => a.delete(p)) }, m = s = n(i, o, u);
1339
+ }, o = () => s, u = { setState: i, getState: o, getInitialState: () => h, subscribe: (p) => (a.add(p), () => a.delete(p)) }, h = s = r(i, o, u);
1340
1340
  return u;
1341
- }, fn = (n) => n ? st(n) : st, mn = (n) => n;
1342
- function hn(n, s = mn) {
1343
- const a = Ce.useSyncExternalStore(
1344
- n.subscribe,
1345
- () => s(n.getState()),
1346
- () => s(n.getInitialState())
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())
1347
1347
  );
1348
- return Ce.useDebugValue(a), a;
1348
+ return Ne.useDebugValue(a), a;
1349
1349
  }
1350
- const ot = (n) => {
1351
- const s = fn(n), a = (i) => hn(s, i);
1350
+ const ot = (r) => {
1351
+ const s = lr(r), a = (i) => hr(s, i);
1352
1352
  return Object.assign(a, s), a;
1353
- }, pn = (n) => n ? ot(n) : ot, De = pn((n, s) => ({
1353
+ }, mr = (r) => r ? ot(r) : ot, De = mr((r, s) => ({
1354
1354
  rawTasks: [],
1355
1355
  transformedTasks: [],
1356
1356
  bottomRowCells: [],
@@ -1361,134 +1361,134 @@ const ot = (n) => {
1361
1361
  draggingTaskMeta: null,
1362
1362
  setSelectedScale: (a) => {
1363
1363
  const { rawTasks: i, bottomRowCells: o } = s(), e = Pe(i, o, a);
1364
- n({ selectedScale: a, transformedTasks: e });
1364
+ r({ selectedScale: a, transformedTasks: e });
1365
1365
  },
1366
1366
  setRawTasks: (a) => {
1367
1367
  const { bottomRowCells: i, selectedScale: o } = s(), e = Pe(a, i, o);
1368
- n({ rawTasks: a, transformedTasks: e });
1368
+ r({ rawTasks: a, transformedTasks: e });
1369
1369
  },
1370
1370
  setBottomRowCells: (a) => {
1371
1371
  const { rawTasks: i, selectedScale: o } = s(), e = Pe(i, a, o);
1372
- n({ bottomRowCells: a, transformedTasks: e });
1372
+ r({ bottomRowCells: a, transformedTasks: e });
1373
1373
  },
1374
- setTopHeaderGroups: (a) => n({ topHeaderGroups: a }),
1375
- setMinDate: (a) => n({ minDate: a }),
1376
- setMaxDate: (a) => n({ maxDate: a }),
1377
- setDraggingTaskMeta: (a) => n({ draggingTaskMeta: a }),
1378
- clearDraggingTaskMeta: () => n({ draggingTaskMeta: null })
1379
- })), $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__ */ Ue.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__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(n, s) {
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
1381
  const { basePxPerDragStep: a } = K[s];
1382
- return Math.round(n / a);
1382
+ return Math.round(r / a);
1383
1383
  }
1384
- function gn(n, s, a) {
1384
+ function $r(r, s, a) {
1385
1385
  const {
1386
1386
  rawTasks: i,
1387
1387
  selectedScale: o,
1388
1388
  setRawTasks: e,
1389
1389
  setDraggingTaskMeta: f,
1390
1390
  clearDraggingTaskMeta: u
1391
- } = De(), [m, p] = de(s), h = X(s), r = X(null), c = X(s), v = X(n.startDate), g = X(n.endDate), l = (j) => {
1392
- r.current = j.clientX, c.current = s, v.current = n.startDate, g.current = n.endDate, p(s), h.current = s, f({ taskId: n.id, type: "bar" }), document.addEventListener("mousemove", y), document.addEventListener("mouseup", M);
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
1393
  }, y = (j) => {
1394
- if (r.current === null) return;
1395
- const O = j.clientX - r.current, E = pe(O, o) * K[o].basePxPerDragStep, T = c.current + E;
1396
- p(T), h.current = T;
1397
- }, M = () => {
1398
- document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", M);
1399
- const j = h.current - c.current, O = pe(j, o), { dragStepUnit: R, dragStepAmount: E } = K[o], T = i.map(
1400
- (P) => P.id === n.id ? {
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;
1397
+ }, 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 ? {
1401
1401
  ...P,
1402
- startDate: q(v.current).add(O * E, R).toISOString(),
1403
- endDate: q(g.current).add(O * E, R).toISOString()
1402
+ startDate: q(D.current).add(M * k, R).toISOString(),
1403
+ endDate: q(g.current).add(M * k, R).toISOString()
1404
1404
  } : P
1405
1405
  );
1406
- e(T), a == null || a(T), u(), r.current = null;
1406
+ e(O), a == null || a(O), u(), n.current = null;
1407
1407
  };
1408
- return { onDragStart: l, tempLeft: m };
1408
+ return { onDragStart: l, tempLeft: h };
1409
1409
  }
1410
- function vn(n, s, a, i) {
1410
+ function gr(r, s, a, i) {
1411
1411
  const {
1412
1412
  rawTasks: o,
1413
1413
  selectedScale: e,
1414
1414
  setRawTasks: f,
1415
1415
  setDraggingTaskMeta: u,
1416
- clearDraggingTaskMeta: m
1417
- } = De(), [p, h] = de(s), [r, c] = de(a), v = X(s), g = X(a), l = X(null), y = X(s), M = X(a), j = X(n.startDate), O = (T) => {
1418
- T.stopPropagation(), l.current = T.clientX, y.current = s, M.current = a, j.current = n.startDate, h(s), c(a), v.current = s, g.current = a, u({ taskId: n.id, type: "left" }), document.addEventListener("mousemove", R), document.addEventListener("mouseup", E);
1419
- }, R = (T) => {
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
1420
  if (l.current == null) return;
1421
- const P = T.clientX - l.current, $ = pe(P, e) * K[e].basePxPerDragStep, d = y.current + $, I = M.current - $;
1422
- I < 1 || (h(d), c(I), v.current = d, g.current = I);
1423
- }, E = () => {
1424
- document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", E);
1425
- const T = v.current - y.current, P = pe(T, e), { dragStepUnit: Y, dragStepAmount: $ } = K[e], d = o.map((I) => {
1426
- if (I.id !== n.id) return I;
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
1427
  const B = q(j.current).add(
1428
1428
  P * $,
1429
1429
  Y
1430
1430
  );
1431
1431
  return B.isAfter(q(I.endDate)) ? I : { ...I, startDate: B.toISOString() };
1432
1432
  });
1433
- f(d), i == null || i(d), m(), l.current = null;
1433
+ f(d), i == null || i(d), h(), l.current = null;
1434
1434
  };
1435
- return { onDragStart: O, tempLeft: p, tempWidth: r };
1435
+ return { onDragStart: M, tempLeft: p, tempWidth: n };
1436
1436
  }
1437
- function Dn(n, s, a) {
1437
+ function vr(r, s, a) {
1438
1438
  const {
1439
1439
  rawTasks: i,
1440
1440
  selectedScale: o,
1441
1441
  setRawTasks: e,
1442
1442
  setDraggingTaskMeta: f,
1443
1443
  clearDraggingTaskMeta: u
1444
- } = De(), [m, p] = de(s), h = X(s), r = X(null), c = X(s), v = X(n.endDate), g = (M) => {
1445
- M.stopPropagation(), r.current = M.clientX, c.current = s, v.current = n.endDate, p(s), h.current = s, f({ taskId: n.id, type: "right" }), document.addEventListener("mousemove", l), document.addEventListener("mouseup", y);
1446
- }, l = (M) => {
1447
- if (r.current === null) return;
1448
- const j = M.clientX - r.current, R = pe(j, o) * K[o].basePxPerDragStep, E = c.current + R;
1449
- E < 1 || (p(E), h.current = E);
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
1450
  }, y = () => {
1451
1451
  document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", y);
1452
- const M = h.current - c.current, j = pe(M, o), { dragStepUnit: O, dragStepAmount: R } = K[o], E = i.map((T) => {
1453
- if (T.id !== n.id) return T;
1454
- const P = q(v.current).add(
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
1455
  j * R,
1456
- O
1456
+ M
1457
1457
  );
1458
- return P.isBefore(q(T.startDate)) ? T : { ...T, endDate: P.toISOString() };
1458
+ return P.isBefore(q(O.startDate)) ? O : { ...O, endDate: P.toISOString() };
1459
1459
  });
1460
- e(E), a == null || a(E), u(), r.current = null;
1460
+ e(k), a == null || a(k), u(), n.current = null;
1461
1461
  };
1462
- return { onDragStart: g, tempWidth: m };
1462
+ return { onDragStart: g, tempWidth: h };
1463
1463
  }
1464
- function yn(n, s, a, i, o) {
1464
+ function Dr(r, s, a, i, o) {
1465
1465
  if (a < 0 || o < 0)
1466
1466
  return `M ${s} ${a} h ${(i - s) / 2}`;
1467
- const e = 7, f = 11, u = 25, m = 20, p = `M ${s} ${a}`, h = i - s, r = o - a, c = Math.abs(h), v = Math.abs(r), g = o <= a, l = o >= a, y = i >= s, M = i <= s, j = c > m, O = Math.abs(h / 2), R = Math.abs(r / 2);
1468
- function E() {
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() {
1469
1469
  function $() {
1470
- return (y || M) && l && !j ? "downSmallHorizontal" : (y || M) && g && !j ? "upSmallHorizontal" : l && M ? "downLeft" : l && y ? "downRight" : g && M ? "upLeft" : g && y ? "upRight" : "";
1470
+ return (y || E) && l && !j ? "downSmallHorizontal" : (y || E) && g && !j ? "upSmallHorizontal" : l && E ? "downLeft" : l && y ? "downRight" : g && E ? "upLeft" : g && y ? "upRight" : "";
1471
1471
  }
1472
1472
  let d = p;
1473
1473
  switch ($()) {
1474
1474
  case "downRight": {
1475
- d += ` h ${O - 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 ${O - e}`;
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}`;
1476
1476
  break;
1477
1477
  }
1478
1478
  case "upRight": {
1479
- d += ` h ${O - e}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${v - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${O - e}`;
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}`;
1480
1480
  break;
1481
1481
  }
1482
1482
  case "downLeft":
1483
1483
  case "downSmallHorizontal": {
1484
- const B = a + r / 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 ${h - 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}`;
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}`;
1486
1486
  break;
1487
1487
  }
1488
1488
  case "upLeft":
1489
1489
  case "upSmallHorizontal": {
1490
- const B = a + r / 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 ${h - 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}`;
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}`;
1492
1492
  break;
1493
1493
  }
1494
1494
  default:
@@ -1496,32 +1496,32 @@ function yn(n, s, a, i, o) {
1496
1496
  }
1497
1497
  return d;
1498
1498
  }
1499
- function T() {
1499
+ function O() {
1500
1500
  let $ = p;
1501
- return l && M ? ($ += ` h ${u - f}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h ${h - e * 2}`) : l && y ? ($ += ` h ${h + u - f}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h -${u - f}`) : g && M ? ($ += ` h ${u - f}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h ${h - u + f}`) : g && y && ($ += ` h ${h + u - f}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h -${u - f}`), $;
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}`), $;
1502
1502
  }
1503
1503
  function P() {
1504
1504
  function $() {
1505
- return (y || M) && l && !j ? "downSmallHorizontal" : (y || M) && g && !j ? "upSmallHorizontal" : l && M ? "downLeft" : l && y ? "downRight" : g && M ? "upLeft" : g && y ? "upRight" : "";
1505
+ return (y || E) && l && !j ? "downSmallHorizontal" : (y || E) && g && !j ? "upSmallHorizontal" : l && E ? "downLeft" : l && y ? "downRight" : g && E ? "upLeft" : g && y ? "upRight" : "";
1506
1506
  }
1507
1507
  let d = p;
1508
1508
  switch ($()) {
1509
1509
  case "downRight":
1510
1510
  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 + h}`, 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";
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";
1512
1512
  break;
1513
1513
  }
1514
1514
  case "upRight":
1515
1515
  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 + h}`, 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";
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";
1517
1517
  break;
1518
1518
  }
1519
1519
  case "downLeft": {
1520
- d += ` h ${-O + e}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${v - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${-O + e}`;
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}`;
1521
1521
  break;
1522
1522
  }
1523
1523
  case "upLeft": {
1524
- d += ` h ${-(O - e)}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v ${-(v - e * 2)}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${-O + e}`;
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}`;
1525
1525
  break;
1526
1526
  }
1527
1527
  default:
@@ -1531,13 +1531,13 @@ function yn(n, s, a, i, o) {
1531
1531
  }
1532
1532
  function Y() {
1533
1533
  let $ = p;
1534
- return l && M ? ($ += ` h ${h - u}`, $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${r - 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 ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${h + u}`) : g && M ? ($ += ` h ${h - u}`, $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${r + 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 ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${h + u}`), $;
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}`), $;
1535
1535
  }
1536
- switch (n) {
1536
+ switch (r) {
1537
1537
  case "FS":
1538
- return E();
1538
+ return k();
1539
1539
  case "FF":
1540
- return T();
1540
+ return O();
1541
1541
  case "SF":
1542
1542
  return P();
1543
1543
  case "SS":
@@ -1546,26 +1546,26 @@ function yn(n, s, a, i, o) {
1546
1546
  return `${p} L ${i} ${o}`;
1547
1547
  }
1548
1548
  }
1549
- function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1550
- const { onDragStart: i, tempLeft: o } = gn(s, s.barLeft, a), {
1549
+ function yr({ allTasks: r, currentTask: s, onTasksChange: a }) {
1550
+ const { onDragStart: i, tempLeft: o } = $r(s, s.barLeft, a), {
1551
1551
  onDragStart: e,
1552
1552
  tempLeft: f,
1553
1553
  tempWidth: u
1554
- } = vn(
1554
+ } = gr(
1555
1555
  s,
1556
1556
  s.barLeft,
1557
1557
  s.barWidth,
1558
1558
  a
1559
- ), { onDragStart: m, tempWidth: p } = Dn(
1559
+ ), { onDragStart: h, tempWidth: p } = vr(
1560
1560
  s,
1561
1561
  s.barWidth,
1562
1562
  a
1563
- ), { draggingTaskMeta: h } = De(), r = (h == null ? void 0 : h.taskId) === s.id;
1564
- let c = !1, v = !1, g = !1;
1565
- r && ((h == null ? void 0 : h.type) === "left" ? c = !0 : (h == null ? void 0 : h.type) === "right" ? v = !0 : (h == null ? void 0 : h.type) === "bar" && (g = !0));
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
1566
  let l = s.barLeft, y = s.barWidth;
1567
- c ? (l = f, y = u) : v ? y = p : g && (l = o);
1568
- const M = () => /* @__PURE__ */ N.jsx(
1567
+ c ? (l = f, y = u) : D ? y = p : g && (l = o);
1568
+ const E = () => /* @__PURE__ */ A.jsx(
1569
1569
  "button",
1570
1570
  {
1571
1571
  type: "button",
@@ -1576,7 +1576,7 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1576
1576
  width: "2rem",
1577
1577
  height: "100%"
1578
1578
  },
1579
- children: /* @__PURE__ */ N.jsx(
1579
+ children: /* @__PURE__ */ A.jsx(
1580
1580
  it,
1581
1581
  {
1582
1582
  className: "size-6",
@@ -1586,18 +1586,18 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1586
1586
  }
1587
1587
  )
1588
1588
  }
1589
- ), j = () => /* @__PURE__ */ N.jsx(
1589
+ ), j = () => /* @__PURE__ */ A.jsx(
1590
1590
  "button",
1591
1591
  {
1592
1592
  type: "button",
1593
- onMouseDown: m,
1593
+ onMouseDown: h,
1594
1594
  className: "absolute top-0 flex h-full cursor-w-resize items-center justify-center opacity-0 hover:opacity-100",
1595
1595
  style: {
1596
1596
  right: "-1.15rem",
1597
1597
  width: "2rem",
1598
1598
  height: "100%"
1599
1599
  },
1600
- children: /* @__PURE__ */ N.jsx(
1600
+ children: /* @__PURE__ */ A.jsx(
1601
1601
  it,
1602
1602
  {
1603
1603
  className: "size-6",
@@ -1607,23 +1607,23 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1607
1607
  }
1608
1608
  )
1609
1609
  }
1610
- ), O = (s.dependencies || []).map((R) => {
1611
- const E = n.find((I) => I.id === R.targetId);
1612
- if (!E) return null;
1613
- const T = ut, P = (E.order - 1) * T + T / 2, Y = (s.order - 1) * T + T / 2;
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
1614
  let $, d;
1615
1615
  switch (R.type) {
1616
1616
  case "FS":
1617
- $ = E.barLeft + E.barWidth, d = s.barLeft;
1617
+ $ = k.barLeft + k.barWidth, d = s.barLeft;
1618
1618
  break;
1619
1619
  case "SS":
1620
- $ = E.barLeft, d = s.barLeft;
1620
+ $ = k.barLeft, d = s.barLeft;
1621
1621
  break;
1622
1622
  case "FF":
1623
- $ = E.barLeft + E.barWidth, d = s.barLeft + s.barWidth;
1623
+ $ = k.barLeft + k.barWidth, d = s.barLeft + s.barWidth;
1624
1624
  break;
1625
1625
  case "SF":
1626
- $ = E.barLeft, d = s.barLeft + s.barWidth;
1626
+ $ = k.barLeft, d = s.barLeft + s.barWidth;
1627
1627
  break;
1628
1628
  default:
1629
1629
  return console.warn(`Unknown dependency type: ${R.type}`), null;
@@ -1636,8 +1636,8 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1636
1636
  toY: Y
1637
1637
  };
1638
1638
  }).filter(Boolean);
1639
- return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
1640
- /* @__PURE__ */ N.jsxs(
1639
+ return /* @__PURE__ */ A.jsxs(A.Fragment, { children: [
1640
+ /* @__PURE__ */ A.jsxs(
1641
1641
  "div",
1642
1642
  {
1643
1643
  role: "button",
@@ -1651,13 +1651,13 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1651
1651
  height: "1rem"
1652
1652
  },
1653
1653
  children: [
1654
- M(),
1654
+ E(),
1655
1655
  j()
1656
1656
  ]
1657
1657
  }
1658
1658
  ),
1659
- /* @__PURE__ */ N.jsxs("svg", { className: "pointer-events-none absolute top-0 left-0 z-10 size-full", children: [
1660
- /* @__PURE__ */ N.jsx("defs", { children: /* @__PURE__ */ N.jsx(
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
1661
  "marker",
1662
1662
  {
1663
1663
  id: "arrowhead",
@@ -1666,13 +1666,13 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1666
1666
  refX: "5.25",
1667
1667
  refY: "3",
1668
1668
  orient: "auto",
1669
- children: /* @__PURE__ */ N.jsx("polygon", { points: "0 0, 6 3, 0 6", fill: "#000" })
1669
+ children: /* @__PURE__ */ A.jsx("polygon", { points: "0 0, 6 3, 0 6", fill: "#000" })
1670
1670
  }
1671
1671
  ) }),
1672
- O.map((R, E) => /* @__PURE__ */ N.jsx(
1672
+ M.map((R, k) => /* @__PURE__ */ A.jsx(
1673
1673
  "path",
1674
1674
  {
1675
- d: yn(
1675
+ d: Dr(
1676
1676
  R.type,
1677
1677
  R.fromX,
1678
1678
  R.fromY,
@@ -1683,132 +1683,99 @@ function Sn({ allTasks: n, currentTask: s, onTasksChange: a }) {
1683
1683
  markerEnd: "url(#arrowhead)",
1684
1684
  style: { stroke: "#000", strokeWidth: 0.75 }
1685
1685
  },
1686
- E
1686
+ k
1687
1687
  ))
1688
1688
  ] })
1689
1689
  ] });
1690
1690
  }
1691
- function bn({ tasks: n, onTasksChange: s, ganttHeight: a, columnWidth: i }) {
1692
- const [o, e] = de(a || 500), [f, u] = de(i || 1e3), [m, p] = de(n || []), h = X(null), {
1693
- rawTasks: r,
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,
1694
1694
  transformedTasks: c,
1695
- selectedScale: v,
1695
+ selectedScale: D,
1696
1696
  setSelectedScale: g,
1697
1697
  bottomRowCells: l,
1698
1698
  topHeaderGroups: y,
1699
- setRawTasks: M,
1699
+ setRawTasks: E,
1700
1700
  setBottomRowCells: j,
1701
- setTopHeaderGroups: O,
1701
+ setTopHeaderGroups: M,
1702
1702
  setMinDate: R,
1703
- setMaxDate: E
1703
+ setMaxDate: k
1704
1704
  } = De();
1705
1705
  return xe(() => {
1706
- n.length === 0 ? p($n) : p(n);
1707
- }, [n]), xe(() => {
1708
- if (!m.length) return;
1709
- const T = Object.fromEntries(
1710
- m.map((P) => [
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) => [
1711
1711
  P.id,
1712
1712
  { startDate: P.startDate, endDate: P.endDate }
1713
1713
  ])
1714
1714
  );
1715
1715
  St(
1716
- T,
1717
- v,
1716
+ O,
1717
+ D,
1718
1718
  R,
1719
- E,
1719
+ k,
1720
1720
  j,
1721
- O
1721
+ M
1722
1722
  );
1723
- }, [m, v]), xe(() => {
1724
- !l.length || !m.length || r.length === 0 && M(m);
1725
- }, [l, m]), /* @__PURE__ */ N.jsx(
1723
+ }, [h, D]), xe(() => {
1724
+ !l.length || !h.length || n.length === 0 && E(h);
1725
+ }, [l, h]), /* @__PURE__ */ A.jsx(
1726
1726
  "section",
1727
1727
  {
1728
1728
  style: {
1729
1729
  position: "relative",
1730
1730
  overflow: "auto",
1731
1731
  height: `${o}px`,
1732
- width: `${f}px`,
1733
- backgroundColor: "#FFF",
1734
- fontFamily: "sans-serif"
1732
+ width: "100%",
1733
+ // let parent control width
1734
+ backgroundColor: "#FFF"
1735
1735
  },
1736
- children: /* @__PURE__ */ N.jsx(
1736
+ children: /* @__PURE__ */ A.jsx(
1737
1737
  "div",
1738
1738
  {
1739
- className: "size-full",
1739
+ className: "size-full overflow-hidden",
1740
1740
  style: {
1741
1741
  backgroundColor: "#FFF"
1742
1742
  },
1743
- children: /* @__PURE__ */ N.jsxs("section", { className: "relative flex h-full w-full flex-col", children: [
1744
- /* @__PURE__ */ N.jsx(
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(
1745
1754
  "div",
1746
1755
  {
1756
+ className: "flex w-full items-center border-b border-solid",
1747
1757
  style: {
1748
- display: "flex",
1749
- justifyContent: "flex-end",
1750
- alignItems: "center",
1751
- padding: "4px 8px",
1758
+ height: `${ut}px`,
1752
1759
  backgroundColor: "#FFF",
1753
- borderBottom: "1px solid #E6E7E9"
1760
+ borderColor: "#E6E7E9"
1754
1761
  },
1755
- children: /* @__PURE__ */ N.jsx(
1756
- "select",
1762
+ children: /* @__PURE__ */ A.jsx(
1763
+ yr,
1757
1764
  {
1758
- style: {
1759
- backgroundColor: "#FFF",
1760
- padding: "4px 8px",
1761
- fontSize: "0.875rem",
1762
- borderRadius: "6px",
1763
- border: "1px solid #E6E7E9"
1764
- },
1765
- value: v,
1766
- onChange: (T) => {
1767
- const P = T.target.value;
1768
- g(P);
1769
- },
1770
- children: Object.keys(K).map((T) => /* @__PURE__ */ N.jsx("option", { value: T, children: K[T].labelUnit }, T))
1765
+ allTasks: c,
1766
+ currentTask: O,
1767
+ onTasksChange: s
1771
1768
  }
1772
1769
  )
1773
- }
1774
- ),
1775
- /* @__PURE__ */ N.jsx("div", { ref: h, className: "grow overflow-x-auto", children: /* @__PURE__ */ N.jsxs("div", { className: "flex min-w-max flex-col", children: [
1776
- /* @__PURE__ */ N.jsx(
1777
- xt,
1778
- {
1779
- topHeaderGroups: y,
1780
- bottomRowCells: l,
1781
- selectedScale: v,
1782
- scrollRef: h
1783
- }
1784
- ),
1785
- /* @__PURE__ */ N.jsx("div", { className: "relative flex", children: /* @__PURE__ */ N.jsx("div", { className: "flex grow flex-col", children: c.map((T) => /* @__PURE__ */ N.jsx(
1786
- "div",
1787
- {
1788
- className: "flex w-full items-center border-b border-solid",
1789
- style: {
1790
- height: `${ut}px`,
1791
- backgroundColor: "#FFF",
1792
- borderColor: "#E6E7E9"
1793
- },
1794
- children: /* @__PURE__ */ N.jsx(
1795
- Sn,
1796
- {
1797
- allTasks: c,
1798
- currentTask: T,
1799
- onTasksChange: s
1800
- }
1801
- )
1802
- },
1803
- T.id
1804
- )) }) })
1805
- ] }) })
1806
- ] })
1770
+ },
1771
+ O.id
1772
+ )) }) })
1773
+ ] }) }) })
1807
1774
  }
1808
1775
  )
1809
1776
  }
1810
1777
  );
1811
1778
  }
1812
1779
  export {
1813
- bn as ReactGanttChart
1780
+ xr as ReactGanttChart
1814
1781
  };