@jaeungkim/gantt-chart 0.2.2 → 0.2.3

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,4 +1,4 @@
1
- import * as Ne from "react";
1
+ import * as Ue from "react";
2
2
  import Ce, { useState as oe, useMemo as _e, useEffect as xe, useRef as V } from "react";
3
3
  function ne(n) {
4
4
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
@@ -13,27 +13,27 @@ var Se = { exports: {} }, ge = {};
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
15
  */
16
- var Ue;
16
+ var He;
17
17
  function lt() {
18
- if (Ue) return ge;
19
- Ue = 1;
18
+ if (He) return ge;
19
+ He = 1;
20
20
  var n = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
21
- function a(i, s, e) {
21
+ function r(s, i, e) {
22
22
  var l = null;
23
- if (e !== void 0 && (l = "" + e), s.key !== void 0 && (l = "" + s.key), "key" in s) {
23
+ if (e !== void 0 && (l = "" + e), i.key !== void 0 && (l = "" + i.key), "key" in i) {
24
24
  e = {};
25
- for (var u in s)
26
- u !== "key" && (e[u] = s[u]);
27
- } else e = s;
28
- return s = e.ref, {
25
+ for (var u in i)
26
+ u !== "key" && (e[u] = i[u]);
27
+ } else e = i;
28
+ return i = e.ref, {
29
29
  $$typeof: n,
30
- type: i,
30
+ type: s,
31
31
  key: l,
32
- ref: s !== void 0 ? s : null,
32
+ ref: i !== void 0 ? i : null,
33
33
  props: e
34
34
  };
35
35
  }
36
- return ge.Fragment = o, ge.jsx = a, ge.jsxs = a, ge;
36
+ return ge.Fragment = o, ge.jsx = r, ge.jsxs = r, ge;
37
37
  }
38
38
  var ve = {};
39
39
  /**
@@ -92,7 +92,7 @@ function ft() {
92
92
  function o(t) {
93
93
  return "" + t;
94
94
  }
95
- function a(t) {
95
+ function r(t) {
96
96
  try {
97
97
  o(t);
98
98
  var b = !1;
@@ -109,15 +109,15 @@ function ft() {
109
109
  ), o(t);
110
110
  }
111
111
  }
112
- function i() {
113
- }
114
112
  function s() {
113
+ }
114
+ function i() {
115
115
  if (Y === 0) {
116
116
  J = console.log, se = console.info, re = console.warn, de = console.error, ae = console.group, G = console.groupCollapsed, te = console.groupEnd;
117
117
  var t = {
118
118
  configurable: !0,
119
119
  enumerable: !0,
120
- value: i,
120
+ value: s,
121
121
  writable: !0
122
122
  };
123
123
  Object.defineProperties(console, {
@@ -167,7 +167,7 @@ function ft() {
167
167
  if (w !== void 0) return w;
168
168
  je = !0, w = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
169
169
  var q = null;
170
- q = R.H, R.H = null, s();
170
+ q = R.H, R.H = null, i();
171
171
  try {
172
172
  var X = {
173
173
  DetermineComponentFrameRoot: function() {
@@ -212,11 +212,11 @@ function ft() {
212
212
  }
213
213
  };
214
214
  X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
215
- var U = Object.getOwnPropertyDescriptor(
215
+ var H = Object.getOwnPropertyDescriptor(
216
216
  X.DetermineComponentFrameRoot,
217
217
  "name"
218
218
  );
219
- U && U.configurable && Object.defineProperty(
219
+ H && H.configurable && Object.defineProperty(
220
220
  X.DetermineComponentFrameRoot,
221
221
  "name",
222
222
  { value: "DetermineComponentFrameRoot" }
@@ -226,30 +226,30 @@ function ft() {
226
226
  var Q = ue.split(`
227
227
  `), pe = he.split(`
228
228
  `);
229
- for (_ = U = 0; U < Q.length && !Q[U].includes(
229
+ for (_ = H = 0; H < Q.length && !Q[H].includes(
230
230
  "DetermineComponentFrameRoot"
231
231
  ); )
232
- U++;
232
+ H++;
233
233
  for (; _ < pe.length && !pe[_].includes(
234
234
  "DetermineComponentFrameRoot"
235
235
  ); )
236
236
  _++;
237
- if (U === Q.length || _ === pe.length)
238
- for (U = Q.length - 1, _ = pe.length - 1; 1 <= U && 0 <= _ && Q[U] !== pe[_]; )
237
+ if (H === Q.length || _ === pe.length)
238
+ for (H = Q.length - 1, _ = pe.length - 1; 1 <= H && 0 <= _ && Q[H] !== pe[_]; )
239
239
  _--;
240
- for (; 1 <= U && 0 <= _; U--, _--)
241
- if (Q[U] !== pe[_]) {
242
- if (U !== 1 || _ !== 1)
240
+ for (; 1 <= H && 0 <= _; H--, _--)
241
+ if (Q[H] !== pe[_]) {
242
+ if (H !== 1 || _ !== 1)
243
243
  do
244
- if (U--, _--, 0 > _ || Q[U] !== pe[_]) {
244
+ if (H--, _--, 0 > _ || Q[H] !== pe[_]) {
245
245
  var $e = `
246
- ` + Q[U].replace(
246
+ ` + Q[H].replace(
247
247
  " at new ",
248
248
  " at "
249
249
  );
250
250
  return t.displayName && $e.includes("<anonymous>") && ($e = $e.replace("<anonymous>", t.displayName)), typeof t == "function" && Ze.set(t, $e), $e;
251
251
  }
252
- while (1 <= U && 0 <= _);
252
+ while (1 <= H && 0 <= _);
253
253
  break;
254
254
  }
255
255
  }
@@ -300,7 +300,7 @@ function ft() {
300
300
  }
301
301
  return t.key !== void 0;
302
302
  }
303
- function r(t, b) {
303
+ function a(t, b) {
304
304
  function w() {
305
305
  Ae || (Ae = !0, console.error(
306
306
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
@@ -318,12 +318,12 @@ function ft() {
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 y(t, b, w, q, X, U) {
322
- return w = U.ref, t = {
321
+ function y(t, b, w, q, X, H) {
322
+ return w = H.ref, t = {
323
323
  $$typeof: Z,
324
324
  type: t,
325
325
  key: b,
326
- props: U,
326
+ props: H,
327
327
  _owner: X
328
328
  }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(t, "ref", {
329
329
  enumerable: !1,
@@ -340,8 +340,8 @@ function ft() {
340
340
  value: null
341
341
  }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
342
342
  }
343
- function h(t, b, w, q, X, U) {
344
- if (typeof t == "string" || typeof t == "function" || t === k || t === W || t === P || t === B || t === ee || t === v || typeof t == "object" && t !== null && (t.$$typeof === D || t.$$typeof === I || t.$$typeof === d || t.$$typeof === $ || t.$$typeof === O || t.$$typeof === N || t.getModuleId !== void 0)) {
343
+ function h(t, b, w, q, X, H) {
344
+ if (typeof t == "string" || typeof t == "function" || t === k || t === W || t === P || t === B || t === ee || t === v || typeof t == "object" && t !== null && (t.$$typeof === D || t.$$typeof === I || t.$$typeof === d || t.$$typeof === $ || t.$$typeof === O || t.$$typeof === U || t.getModuleId !== void 0)) {
345
345
  var _ = b.children;
346
346
  if (_ !== void 0)
347
347
  if (q)
@@ -378,15 +378,15 @@ React keys must be passed directly to JSX without using spread:
378
378
  _
379
379
  ), We[_ + q] = !0);
380
380
  }
381
- if (_ = null, w !== void 0 && (a(w), _ = "" + w), g(b) && (a(b.key), _ = "" + b.key), "key" in b) {
381
+ if (_ = null, w !== void 0 && (r(w), _ = "" + w), g(b) && (r(b.key), _ = "" + b.key), "key" in b) {
382
382
  w = {};
383
383
  for (var he in b)
384
384
  he !== "key" && (w[he] = b[he]);
385
385
  } else w = b;
386
- return _ && r(
386
+ return _ && a(
387
387
  w,
388
388
  typeof t == "function" ? t.displayName || t.name || "Unknown" : t
389
- ), y(t, _, U, X, m(), w);
389
+ ), y(t, _, H, X, m(), w);
390
390
  }
391
391
  function f(t, b) {
392
392
  if (typeof t == "object" && t && t.$$typeof !== dt) {
@@ -406,8 +406,8 @@ React keys must be passed directly to JSX without using spread:
406
406
  return typeof t == "object" && t !== null && t.$$typeof === Z;
407
407
  }
408
408
  function E(t, b) {
409
- if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, b = F(b), !He[b])) {
410
- He[b] = !0;
409
+ if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, b = F(b), !Ne[b])) {
410
+ Ne[b] = !0;
411
411
  var w = "";
412
412
  t && t._owner != null && t._owner !== m() && (w = null, typeof t._owner.tag == "number" ? w = n(t._owner.type) : typeof t._owner.name == "string" && (w = t._owner.name), w = " It was passed a child from " + w + ".");
413
413
  var q = R.getCurrentStack;
@@ -429,9 +429,9 @@ Check the render method of \`` + w + "`."), b || (t = n(t)) && (b = `
429
429
 
430
430
  Check the top-level render call using <` + t + ">."), b;
431
431
  }
432
- var M = Ce, Z = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), d = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), T = Symbol.iterator, x = Symbol.for("react.client.reference"), R = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, C = Object.assign, N = Symbol.for("react.client.reference"), z = Array.isArray, Y = 0, J, se, re, de, ae, G, te;
433
- i.__reactDisabledLog = !0;
434
- var ie, fe, je = !1, Ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), dt = Symbol.for("react.client.reference"), Ae, qe = {}, We = {}, He = {};
432
+ var M = Ce, Z = Symbol.for("react.transitional.element"), L = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), d = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), T = Symbol.iterator, x = Symbol.for("react.client.reference"), R = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, C = Object.assign, U = Symbol.for("react.client.reference"), z = Array.isArray, Y = 0, J, se, re, de, ae, G, te;
433
+ s.__reactDisabledLog = !0;
434
+ var ie, fe, je = !1, Ze = new (typeof WeakMap == "function" ? WeakMap : Map)(), dt = Symbol.for("react.client.reference"), Ae, qe = {}, We = {}, Ne = {};
435
435
  ve.Fragment = k, ve.jsx = function(t, b, w, q, X) {
436
436
  return h(t, b, w, !1, q, X);
437
437
  }, ve.jsxs = function(t, b, w, q, X) {
@@ -497,10 +497,10 @@ const ut = 2.375 * 16, Be = 3, K = {
497
497
  var be = { exports: {} }, ht = be.exports, Ge;
498
498
  function mt() {
499
499
  return Ge || (Ge = 1, function(n, o) {
500
- (function(a, i) {
501
- n.exports = i();
500
+ (function(r, s) {
501
+ n.exports = s();
502
502
  })(ht, function() {
503
- var a = 1e3, i = 6e4, s = 36e5, e = "millisecond", l = "second", u = "minute", p = "hour", m = "day", g = "week", r = "month", c = "quarter", y = "year", h = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
503
+ var r = 1e3, s = 6e4, i = 36e5, e = "millisecond", l = "second", u = "minute", p = "hour", m = "day", g = "week", a = "month", c = "quarter", y = "year", h = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
504
504
  var D = ["th", "st", "nd", "rd"], v = I % 100;
505
505
  return "[" + I + (D[(v - 20) % 10] || D[v] || D[0]) + "]";
506
506
  } }, M = function(I, D, v) {
@@ -511,12 +511,12 @@ function mt() {
511
511
  return (D <= 0 ? "+" : "-") + M(T, 2, "0") + ":" + M(x, 2, "0");
512
512
  }, m: function I(D, v) {
513
513
  if (D.date() < v.date()) return -I(v, D);
514
- var T = 12 * (v.year() - D.year()) + (v.month() - D.month()), x = D.clone().add(T, r), R = v - x < 0, j = D.clone().add(T + (R ? -1 : 1), r);
514
+ var T = 12 * (v.year() - D.year()) + (v.month() - D.month()), x = D.clone().add(T, a), R = v - x < 0, j = D.clone().add(T + (R ? -1 : 1), a);
515
515
  return +(-(T + (v - x) / (R ? x - j : j - x)) || 0);
516
516
  }, a: function(I) {
517
517
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
518
518
  }, p: function(I) {
519
- return { M: r, y, w: g, d: m, D: h, h: p, m: u, s: l, ms: e, Q: c }[I] || String(I || "").toLowerCase().replace(/s$/, "");
519
+ return { M: a, y, w: g, d: m, D: h, h: p, m: u, s: l, ms: e, Q: c }[I] || String(I || "").toLowerCase().replace(/s$/, "");
520
520
  }, u: function(I) {
521
521
  return I === void 0;
522
522
  } }, L = "en", k = {};
@@ -558,8 +558,8 @@ function mt() {
558
558
  if (typeof x == "string" && !/Z$/i.test(x)) {
559
559
  var j = x.match(S);
560
560
  if (j) {
561
- var C = j[2] - 1 || 0, N = (j[7] || "0").substring(0, 3);
562
- return R ? new Date(Date.UTC(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, N)) : new Date(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, N);
561
+ var C = j[2] - 1 || 0, U = (j[7] || "0").substring(0, 3);
562
+ return R ? new Date(Date.UTC(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, U)) : new Date(j[1], C, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, U);
563
563
  }
564
564
  }
565
565
  return new Date(x);
@@ -588,37 +588,37 @@ function mt() {
588
588
  var x = this, R = !!O.u(T) || T, j = O.p(v), C = function(ae, G) {
589
589
  var te = O.w(x.$u ? Date.UTC(x.$y, G, ae) : new Date(x.$y, G, ae), x);
590
590
  return R ? te : te.endOf(m);
591
- }, N = function(ae, G) {
591
+ }, U = function(ae, G) {
592
592
  return O.w(x.toDate()[ae].apply(x.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), x);
593
593
  }, z = this.$W, Y = this.$M, J = this.$D, se = "set" + (this.$u ? "UTC" : "");
594
594
  switch (j) {
595
595
  case y:
596
596
  return R ? C(1, 0) : C(31, 11);
597
- case r:
597
+ case a:
598
598
  return R ? C(1, Y) : C(0, Y + 1);
599
599
  case g:
600
600
  var re = this.$locale().weekStart || 0, de = (z < re ? z + 7 : z) - re;
601
601
  return C(R ? J - de : J + (6 - de), Y);
602
602
  case m:
603
603
  case h:
604
- return N(se + "Hours", 0);
604
+ return U(se + "Hours", 0);
605
605
  case p:
606
- return N(se + "Minutes", 1);
606
+ return U(se + "Minutes", 1);
607
607
  case u:
608
- return N(se + "Seconds", 2);
608
+ return U(se + "Seconds", 2);
609
609
  case l:
610
- return N(se + "Milliseconds", 3);
610
+ return U(se + "Milliseconds", 3);
611
611
  default:
612
612
  return this.clone();
613
613
  }
614
614
  }, D.endOf = function(v) {
615
615
  return this.startOf(v, !1);
616
616
  }, D.$set = function(v, T) {
617
- var x, R = O.p(v), j = "set" + (this.$u ? "UTC" : ""), C = (x = {}, x[m] = j + "Date", x[h] = j + "Date", x[r] = j + "Month", x[y] = j + "FullYear", x[p] = j + "Hours", x[u] = j + "Minutes", x[l] = j + "Seconds", x[e] = j + "Milliseconds", x)[R], N = R === m ? this.$D + (T - this.$W) : T;
618
- if (R === r || R === y) {
617
+ var x, R = O.p(v), j = "set" + (this.$u ? "UTC" : ""), C = (x = {}, x[m] = j + "Date", x[h] = j + "Date", x[a] = j + "Month", x[y] = j + "FullYear", x[p] = j + "Hours", x[u] = j + "Minutes", x[l] = j + "Seconds", x[e] = j + "Milliseconds", x)[R], U = R === m ? this.$D + (T - this.$W) : T;
618
+ if (R === a || R === y) {
619
619
  var z = this.clone().set(h, 1);
620
- z.$d[C](N), z.init(), this.$d = z.set(h, Math.min(this.$D, z.daysInMonth())).$d;
621
- } else C && this.$d[C](N);
620
+ z.$d[C](U), z.init(), this.$d = z.set(h, Math.min(this.$D, z.daysInMonth())).$d;
621
+ } else C && this.$d[C](U);
622
622
  return this.init(), this;
623
623
  }, D.set = function(v, T) {
624
624
  return this.clone().$set(v, T);
@@ -631,18 +631,18 @@ function mt() {
631
631
  var J = d(R);
632
632
  return O.w(J.date(J.date() + Math.round(Y * v)), R);
633
633
  };
634
- if (j === r) return this.set(r, this.$M + v);
634
+ if (j === a) return this.set(a, this.$M + v);
635
635
  if (j === y) return this.set(y, this.$y + v);
636
636
  if (j === m) return C(1);
637
637
  if (j === g) return C(7);
638
- var N = (x = {}, x[u] = i, x[p] = s, x[l] = a, x)[j] || 1, z = this.$d.getTime() + v * N;
638
+ var U = (x = {}, x[u] = s, x[p] = i, x[l] = r, x)[j] || 1, z = this.$d.getTime() + v * U;
639
639
  return O.w(z, this);
640
640
  }, D.subtract = function(v, T) {
641
641
  return this.add(-1 * v, T);
642
642
  }, D.format = function(v) {
643
643
  var T = this, x = this.$locale();
644
644
  if (!this.isValid()) return x.invalidDate || f;
645
- var R = v || "YYYY-MM-DDTHH:mm:ssZ", j = O.z(this), C = this.$H, N = this.$m, z = this.$M, Y = x.weekdays, J = x.months, se = x.meridiem, re = function(G, te, ie, fe) {
645
+ var R = v || "YYYY-MM-DDTHH:mm:ssZ", j = O.z(this), C = this.$H, U = this.$m, z = this.$M, Y = x.weekdays, J = x.months, se = x.meridiem, re = function(G, te, ie, fe) {
646
646
  return G && (G[te] || G(T, R)) || ie[te].slice(0, fe);
647
647
  }, de = function(G) {
648
648
  return O.s(C % 12 || 12, G, "0");
@@ -686,13 +686,13 @@ function mt() {
686
686
  case "hh":
687
687
  return de(2);
688
688
  case "a":
689
- return ae(C, N, !0);
689
+ return ae(C, U, !0);
690
690
  case "A":
691
- return ae(C, N, !1);
691
+ return ae(C, U, !1);
692
692
  case "m":
693
- return String(N);
693
+ return String(U);
694
694
  case "mm":
695
- return O.s(N, 2, "0");
695
+ return O.s(U, 2, "0");
696
696
  case "s":
697
697
  return String(T.$s);
698
698
  case "ss":
@@ -708,14 +708,14 @@ function mt() {
708
708
  }, D.utcOffset = function() {
709
709
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
710
710
  }, D.diff = function(v, T, x) {
711
- var R, j = this, C = O.p(T), N = d(v), z = (N.utcOffset() - this.utcOffset()) * i, Y = this - N, J = function() {
712
- return O.m(j, N);
711
+ var R, j = this, C = O.p(T), U = d(v), z = (U.utcOffset() - this.utcOffset()) * s, Y = this - U, J = function() {
712
+ return O.m(j, U);
713
713
  };
714
714
  switch (C) {
715
715
  case y:
716
716
  R = J() / 12;
717
717
  break;
718
- case r:
718
+ case a:
719
719
  R = J();
720
720
  break;
721
721
  case c:
@@ -728,20 +728,20 @@ function mt() {
728
728
  R = (Y - z) / 864e5;
729
729
  break;
730
730
  case p:
731
- R = Y / s;
731
+ R = Y / i;
732
732
  break;
733
733
  case u:
734
- R = Y / i;
734
+ R = Y / s;
735
735
  break;
736
736
  case l:
737
- R = Y / a;
737
+ R = Y / r;
738
738
  break;
739
739
  default:
740
740
  R = Y;
741
741
  }
742
742
  return x ? R : O.a(R);
743
743
  }, D.daysInMonth = function() {
744
- return this.endOf(r).$D;
744
+ return this.endOf(a).$D;
745
745
  }, D.$locale = function() {
746
746
  return k[this.$L];
747
747
  }, D.locale = function(v, T) {
@@ -760,7 +760,7 @@ function mt() {
760
760
  return this.$d.toUTCString();
761
761
  }, I;
762
762
  }(), ee = B.prototype;
763
- return d.prototype = ee, [["$ms", e], ["$s", l], ["$m", u], ["$H", p], ["$W", m], ["$M", r], ["$y", y], ["$D", h]].forEach(function(I) {
763
+ return d.prototype = ee, [["$ms", e], ["$s", l], ["$m", u], ["$H", p], ["$W", m], ["$M", a], ["$y", y], ["$D", h]].forEach(function(I) {
764
764
  ee[I[1]] = function(D) {
765
765
  return this.$g(D, I[0], I[1]);
766
766
  };
@@ -773,62 +773,62 @@ function mt() {
773
773
  }(be)), be.exports;
774
774
  }
775
775
  var $t = mt();
776
- const H = /* @__PURE__ */ ne($t);
777
- function gt(n, o, a, i) {
778
- if (!a.length)
776
+ const N = /* @__PURE__ */ ne($t);
777
+ function gt(n, o, r, s) {
778
+ if (!r.length)
779
779
  return { barMarginLeftAmount: 0, barWidthSize: 0 };
780
- const { tickUnit: s, unitPerTick: e } = K[i], l = a.reduce((f, S) => f + S.widthPx, 0), u = a[0].startDate, p = a[a.length - 1].startDate, m = H(p).add(e, s).diff(u), g = l / m, r = n.diff(u), c = o.diff(u), y = r * g, h = Math.max(c - r, 1) * g;
780
+ const { tickUnit: i, unitPerTick: e } = K[s], l = r.reduce((f, S) => f + S.widthPx, 0), u = r[0].startDate, p = r[r.length - 1].startDate, m = N(p).add(e, i).diff(u), g = l / m, a = n.diff(u), c = o.diff(u), y = a * g, h = Math.max(c - a, 1) * g;
781
781
  return { barMarginLeftAmount: y, barWidthSize: h };
782
782
  }
783
783
  function vt(n) {
784
- let o = 1 / 0, a = -1 / 0;
785
- for (const { startDate: i, endDate: s } of Object.values(n)) {
786
- const e = H(i).valueOf(), l = H(s).valueOf();
787
- Number.isNaN(e) || (o = Math.min(o, e)), Number.isNaN(l) || (a = Math.max(a, l));
784
+ let o = 1 / 0, r = -1 / 0;
785
+ for (const { startDate: s, endDate: i } of Object.values(n)) {
786
+ const e = N(s).valueOf(), l = N(i).valueOf();
787
+ Number.isNaN(e) || (o = Math.min(o, e)), Number.isNaN(l) || (r = Math.max(r, l));
788
788
  }
789
- return { minDate: H(o), maxDate: H(a) };
789
+ return { minDate: N(o), maxDate: N(r) };
790
790
  }
791
- function yt(n, o, a) {
792
- const { tickUnit: i, unitPerTick: s } = K[a];
791
+ function yt(n, o, r) {
792
+ const { tickUnit: s, unitPerTick: i } = K[r];
793
793
  return {
794
794
  paddedMinDate: n.subtract(
795
- Be * s,
796
- i
795
+ Be * i,
796
+ s
797
797
  ),
798
- paddedMaxDate: o.add(Be * s, i)
798
+ paddedMaxDate: o.add(Be * i, s)
799
799
  };
800
800
  }
801
- function Dt(n, o, a) {
802
- const { tickUnit: i, unitPerTick: s, basePxPerDragStep: e, dragStepUnit: l, dragStepAmount: u } = K[a], p = [];
803
- let m = n.startOf(i);
801
+ function Dt(n, o, r) {
802
+ const { tickUnit: s, unitPerTick: i, basePxPerDragStep: e, dragStepUnit: l, dragStepAmount: u } = K[r], p = [];
803
+ let m = n.startOf(s);
804
804
  for (; m.isBefore(o); ) {
805
- const g = H(m).add(s, i).diff(m, l) / u;
805
+ const g = N(m).add(i, s).diff(m, l) / u;
806
806
  p.push({
807
807
  startDate: m,
808
808
  widthPx: g * e
809
- }), m = m.add(s, i);
809
+ }), m = m.add(i, s);
810
810
  }
811
811
  return p;
812
812
  }
813
813
  function ct(n, o) {
814
- const { labelUnit: a, formatHeaderLabel: i } = K[o], s = [];
814
+ const { labelUnit: r, formatHeaderLabel: s } = K[o], i = [];
815
815
  let e = null, l = "", u = 0, p = null;
816
816
  return n.forEach((m, g) => {
817
- const r = m.startDate.startOf(a), c = r.valueOf(), y = (i == null ? void 0 : i(r)) ?? r.format();
818
- c === e ? u += m.widthPx : (e !== null && s.push({
817
+ const a = m.startDate.startOf(r), c = a.valueOf(), y = (s == null ? void 0 : s(a)) ?? a.format();
818
+ c === e ? u += m.widthPx : (e !== null && i.push({
819
819
  label: l,
820
820
  widthPx: u,
821
821
  startDate: p
822
- }), e = c, l = y, u = m.widthPx, p = r), g === n.length - 1 && s.push({
822
+ }), e = c, l = y, u = m.widthPx, p = a), g === n.length - 1 && i.push({
823
823
  label: l,
824
824
  widthPx: u,
825
825
  startDate: p
826
826
  });
827
- }), s;
827
+ }), i;
828
828
  }
829
- function St(n, o, a, i, s, e) {
829
+ function St(n, o, r, s, i, e) {
830
830
  const { minDate: l, maxDate: u } = vt(n);
831
- a(l), i(u);
831
+ r(l), s(u);
832
832
  const { paddedMinDate: p, paddedMaxDate: m } = yt(
833
833
  l,
834
834
  u,
@@ -837,46 +837,46 @@ function St(n, o, a, i, s, e) {
837
837
  p,
838
838
  m,
839
839
  o
840
- ), r = ct(g, o);
841
- s(g), e(r);
840
+ ), a = ct(g, o);
841
+ i(g), e(a);
842
842
  }
843
843
  const xt = ({
844
844
  bottomRowCells: n,
845
845
  selectedScale: o,
846
- scrollRef: a
846
+ scrollRef: r
847
847
  }) => {
848
848
  var g;
849
- const i = K[o], [s, e] = oe(0), l = _e(
849
+ const s = K[o], [i, e] = oe(0), l = _e(
850
850
  () => ct(n, o),
851
851
  [n, o]
852
852
  ), u = _e(() => {
853
- const r = [];
853
+ const a = [];
854
854
  for (const c of l) {
855
- const y = r[r.length - 1];
856
- y && y.label === c.label ? y.widthPx += c.widthPx : r.push({ ...c });
855
+ const y = a[a.length - 1];
856
+ y && y.label === c.label ? y.widthPx += c.widthPx : a.push({ ...c });
857
857
  }
858
- return r;
858
+ return a;
859
859
  }, [l]), p = _e(() => {
860
- let r = 0;
860
+ let a = 0;
861
861
  return u.map((c) => {
862
- const y = { ...c, left: r };
863
- return r += c.widthPx, y;
862
+ const y = { ...c, left: a };
863
+ return a += c.widthPx, y;
864
864
  });
865
865
  }, [u]);
866
866
  xe(() => {
867
- const r = a.current;
868
- if (!r) return;
867
+ const a = r.current;
868
+ if (!a) return;
869
869
  const c = () => {
870
- const y = r.scrollLeft;
870
+ const y = a.scrollLeft;
871
871
  for (let h = p.length - 1; h >= 0; h--)
872
872
  if (y >= p[h].left) {
873
873
  e(h);
874
874
  break;
875
875
  }
876
876
  };
877
- return r.addEventListener("scroll", c), c(), () => r.removeEventListener("scroll", c);
877
+ return a.addEventListener("scroll", c), c(), () => a.removeEventListener("scroll", c);
878
878
  }, [p]);
879
- const m = ((g = p[s]) == null ? void 0 : g.label) ?? "";
879
+ const m = ((g = p[i]) == null ? void 0 : g.label) ?? "";
880
880
  return /* @__PURE__ */ A.jsx(
881
881
  "div",
882
882
  {
@@ -932,7 +932,7 @@ const xt = ({
932
932
  style: {
933
933
  display: "flex"
934
934
  },
935
- children: p.map((r, c) => /* @__PURE__ */ A.jsx(
935
+ children: p.map((a, c) => /* @__PURE__ */ A.jsx(
936
936
  "div",
937
937
  {
938
938
  style: {
@@ -940,7 +940,7 @@ const xt = ({
940
940
  fontSize: "0.875rem",
941
941
  fontWeight: "bold",
942
942
  textAlign: "left",
943
- width: `${r.widthPx}px`,
943
+ width: `${a.widthPx}px`,
944
944
  // borderBottom: '1px solid #D6D6D8',
945
945
  backgroundColor: "#F0F1F2"
946
946
  },
@@ -951,7 +951,7 @@ const xt = ({
951
951
  margin: 0,
952
952
  padding: "0 16px"
953
953
  },
954
- children: c === 0 ? "" : r.label
954
+ children: c === 0 ? "" : a.label
955
955
  }
956
956
  )
957
957
  },
@@ -969,9 +969,9 @@ const xt = ({
969
969
  borderTop: "1px solid #D6D6D8",
970
970
  display: "flex"
971
971
  },
972
- children: n.map((r, c) => {
972
+ children: n.map((a, c) => {
973
973
  var h;
974
- const y = ((h = i.formatTickLabel) == null ? void 0 : h.call(i, r.startDate)) || "";
974
+ const y = ((h = s.formatTickLabel) == null ? void 0 : h.call(s, a.startDate)) || "";
975
975
  return /* @__PURE__ */ A.jsx(
976
976
  "div",
977
977
  {
@@ -980,7 +980,7 @@ const xt = ({
980
980
  padding: "4px",
981
981
  textAlign: "center",
982
982
  fontSize: "0.75rem",
983
- width: `${r.widthPx}px`
983
+ width: `${a.widthPx}px`
984
984
  },
985
985
  children: y
986
986
  },
@@ -998,13 +998,13 @@ const xt = ({
998
998
  var we = { exports: {} }, bt = we.exports, Xe;
999
999
  function wt() {
1000
1000
  return Xe || (Xe = 1, function(n, o) {
1001
- (function(a, i) {
1002
- n.exports = i();
1001
+ (function(r, s) {
1002
+ n.exports = s();
1003
1003
  })(bt, function() {
1004
- return function(a, i, s) {
1005
- i.prototype.isBetween = function(e, l, u, p) {
1006
- var m = s(e), g = s(l), r = (p = p || "()")[0] === "(", c = p[1] === ")";
1007
- return (r ? this.isAfter(m, u) : !this.isBefore(m, u)) && (c ? this.isBefore(g, u) : !this.isAfter(g, u)) || (r ? this.isBefore(m, u) : !this.isAfter(m, u)) && (c ? this.isAfter(g, u) : !this.isBefore(g, u));
1004
+ return function(r, s, i) {
1005
+ s.prototype.isBetween = function(e, l, u, p) {
1006
+ var m = i(e), g = i(l), a = (p = p || "()")[0] === "(", c = p[1] === ")";
1007
+ return (a ? this.isAfter(m, u) : !this.isBefore(m, u)) && (c ? this.isBefore(g, u) : !this.isAfter(g, u)) || (a ? this.isBefore(m, u) : !this.isAfter(m, u)) && (c ? this.isAfter(g, u) : !this.isBefore(g, u));
1008
1008
  };
1009
1009
  };
1010
1010
  });
@@ -1015,27 +1015,27 @@ const kt = /* @__PURE__ */ ne(Tt);
1015
1015
  var Te = { exports: {} }, Et = Te.exports, Ve;
1016
1016
  function Mt() {
1017
1017
  return Ve || (Ve = 1, function(n, o) {
1018
- (function(a, i) {
1019
- n.exports = i();
1018
+ (function(r, s) {
1019
+ n.exports = s();
1020
1020
  })(Et, function() {
1021
- var a = "day";
1022
- return function(i, s, e) {
1021
+ var r = "day";
1022
+ return function(s, i, e) {
1023
1023
  var l = function(m) {
1024
- return m.add(4 - m.isoWeekday(), a);
1025
- }, u = s.prototype;
1024
+ return m.add(4 - m.isoWeekday(), r);
1025
+ }, u = i.prototype;
1026
1026
  u.isoWeekYear = function() {
1027
1027
  return l(this).year();
1028
1028
  }, u.isoWeek = function(m) {
1029
- if (!this.$utils().u(m)) return this.add(7 * (m - this.isoWeek()), a);
1030
- var g, r, c, y, h = l(this), f = (g = this.isoWeekYear(), r = this.$u, c = (r ? e.utc : e)().year(g).startOf("year"), y = 4 - c.isoWeekday(), c.isoWeekday() > 4 && (y += 7), c.add(y, a));
1029
+ if (!this.$utils().u(m)) return this.add(7 * (m - this.isoWeek()), r);
1030
+ var g, a, c, y, h = l(this), f = (g = this.isoWeekYear(), a = this.$u, c = (a ? e.utc : e)().year(g).startOf("year"), y = 4 - c.isoWeekday(), c.isoWeekday() > 4 && (y += 7), c.add(y, r));
1031
1031
  return h.diff(f, "week") + 1;
1032
1032
  }, u.isoWeekday = function(m) {
1033
1033
  return this.$utils().u(m) ? this.day() || 7 : this.day(this.day() % 7 ? m : m - 7);
1034
1034
  };
1035
1035
  var p = u.startOf;
1036
1036
  u.startOf = function(m, g) {
1037
- var r = this.$utils(), c = !!r.u(g) || g;
1038
- return r.p(m) === "isoweek" ? c ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : p.bind(this)(m, g);
1037
+ var a = this.$utils(), c = !!a.u(g) || g;
1038
+ return a.p(m) === "isoweek" ? c ? this.date(this.date() - (this.isoWeekday() - 1)).startOf("day") : this.date(this.date() - 1 - (this.isoWeekday() - 1) + 7).endOf("day") : p.bind(this)(m, g);
1039
1039
  };
1040
1040
  };
1041
1041
  });
@@ -1046,12 +1046,12 @@ const Ot = /* @__PURE__ */ ne(It);
1046
1046
  var ke = { exports: {} }, Rt = ke.exports, Je;
1047
1047
  function Lt() {
1048
1048
  return Je || (Je = 1, function(n, o) {
1049
- (function(a, i) {
1050
- n.exports = i();
1049
+ (function(r, s) {
1050
+ n.exports = s();
1051
1051
  })(Rt, function() {
1052
- return function(a, i) {
1053
- i.prototype.isSameOrAfter = function(s, e) {
1054
- return this.isSame(s, e) || this.isAfter(s, e);
1052
+ return function(r, s) {
1053
+ s.prototype.isSameOrAfter = function(i, e) {
1054
+ return this.isSame(i, e) || this.isAfter(i, e);
1055
1055
  };
1056
1056
  };
1057
1057
  });
@@ -1062,12 +1062,12 @@ const jt = /* @__PURE__ */ ne(Ft);
1062
1062
  var Ee = { exports: {} }, Zt = Ee.exports, Qe;
1063
1063
  function _t() {
1064
1064
  return Qe || (Qe = 1, function(n, o) {
1065
- (function(a, i) {
1066
- n.exports = i();
1065
+ (function(r, s) {
1066
+ n.exports = s();
1067
1067
  })(Zt, function() {
1068
- return function(a, i) {
1069
- i.prototype.isSameOrBefore = function(s, e) {
1070
- return this.isSame(s, e) || this.isBefore(s, e);
1068
+ return function(r, s) {
1069
+ s.prototype.isSameOrBefore = function(i, e) {
1070
+ return this.isSame(i, e) || this.isBefore(i, e);
1071
1071
  };
1072
1072
  };
1073
1073
  });
@@ -1078,12 +1078,12 @@ const Ct = /* @__PURE__ */ ne(Pt);
1078
1078
  var Me = { exports: {} }, At = Me.exports, Ke;
1079
1079
  function qt() {
1080
1080
  return Ke || (Ke = 1, function(n, o) {
1081
- (function(a, i) {
1082
- n.exports = i();
1081
+ (function(r, s) {
1082
+ n.exports = s();
1083
1083
  })(At, function() {
1084
- return function(a, i, s) {
1085
- i.prototype.isToday = function() {
1086
- var e = "YYYY-MM-DD", l = s();
1084
+ return function(r, s, i) {
1085
+ s.prototype.isToday = function() {
1086
+ var e = "YYYY-MM-DD", l = i();
1087
1087
  return this.format(e) === l.format(e);
1088
1088
  };
1089
1089
  };
@@ -1091,18 +1091,18 @@ function qt() {
1091
1091
  }(Me)), Me.exports;
1092
1092
  }
1093
1093
  var Wt = qt();
1094
- const Ht = /* @__PURE__ */ ne(Wt);
1095
- var Ie = { exports: {} }, Nt = Ie.exports, et;
1096
- function Ut() {
1094
+ const Nt = /* @__PURE__ */ ne(Wt);
1095
+ var Ie = { exports: {} }, Ut = Ie.exports, et;
1096
+ function Ht() {
1097
1097
  return et || (et = 1, function(n, o) {
1098
- (function(a, i) {
1099
- n.exports = i();
1100
- })(Nt, function() {
1101
- return function(a, i, s) {
1102
- var e = i.prototype, l = function(r) {
1103
- return r && (r.indexOf ? r : r.s);
1104
- }, u = function(r, c, y, h, f) {
1105
- var S = r.name ? r : r.$locale(), E = l(S[c]), F = l(S[y]), M = E || F.map(function(L) {
1098
+ (function(r, s) {
1099
+ n.exports = s();
1100
+ })(Ut, function() {
1101
+ return function(r, s, i) {
1102
+ var e = s.prototype, l = function(a) {
1103
+ return a && (a.indexOf ? a : a.s);
1104
+ }, u = function(a, c, y, h, f) {
1105
+ var S = a.name ? a : a.$locale(), E = l(S[c]), F = l(S[y]), M = E || F.map(function(L) {
1106
1106
  return L.slice(0, h);
1107
1107
  });
1108
1108
  if (!f) return M;
@@ -1111,86 +1111,86 @@ function Ut() {
1111
1111
  return M[(k + (Z || 0)) % 7];
1112
1112
  });
1113
1113
  }, p = function() {
1114
- return s.Ls[s.locale()];
1115
- }, m = function(r, c) {
1116
- return r.formats[c] || function(y) {
1114
+ return i.Ls[i.locale()];
1115
+ }, m = function(a, c) {
1116
+ return a.formats[c] || function(y) {
1117
1117
  return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(h, f, S) {
1118
1118
  return f || S.slice(1);
1119
1119
  });
1120
- }(r.formats[c.toUpperCase()]);
1120
+ }(a.formats[c.toUpperCase()]);
1121
1121
  }, g = function() {
1122
- var r = this;
1122
+ var a = this;
1123
1123
  return { months: function(c) {
1124
- return c ? c.format("MMMM") : u(r, "months");
1124
+ return c ? c.format("MMMM") : u(a, "months");
1125
1125
  }, monthsShort: function(c) {
1126
- return c ? c.format("MMM") : u(r, "monthsShort", "months", 3);
1126
+ return c ? c.format("MMM") : u(a, "monthsShort", "months", 3);
1127
1127
  }, firstDayOfWeek: function() {
1128
- return r.$locale().weekStart || 0;
1128
+ return a.$locale().weekStart || 0;
1129
1129
  }, weekdays: function(c) {
1130
- return c ? c.format("dddd") : u(r, "weekdays");
1130
+ return c ? c.format("dddd") : u(a, "weekdays");
1131
1131
  }, weekdaysMin: function(c) {
1132
- return c ? c.format("dd") : u(r, "weekdaysMin", "weekdays", 2);
1132
+ return c ? c.format("dd") : u(a, "weekdaysMin", "weekdays", 2);
1133
1133
  }, weekdaysShort: function(c) {
1134
- return c ? c.format("ddd") : u(r, "weekdaysShort", "weekdays", 3);
1134
+ return c ? c.format("ddd") : u(a, "weekdaysShort", "weekdays", 3);
1135
1135
  }, longDateFormat: function(c) {
1136
- return m(r.$locale(), c);
1136
+ return m(a.$locale(), c);
1137
1137
  }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
1138
1138
  };
1139
1139
  e.localeData = function() {
1140
1140
  return g.bind(this)();
1141
- }, s.localeData = function() {
1142
- var r = p();
1141
+ }, i.localeData = function() {
1142
+ var a = p();
1143
1143
  return { firstDayOfWeek: function() {
1144
- return r.weekStart || 0;
1144
+ return a.weekStart || 0;
1145
1145
  }, weekdays: function() {
1146
- return s.weekdays();
1146
+ return i.weekdays();
1147
1147
  }, weekdaysShort: function() {
1148
- return s.weekdaysShort();
1148
+ return i.weekdaysShort();
1149
1149
  }, weekdaysMin: function() {
1150
- return s.weekdaysMin();
1150
+ return i.weekdaysMin();
1151
1151
  }, months: function() {
1152
- return s.months();
1152
+ return i.months();
1153
1153
  }, monthsShort: function() {
1154
- return s.monthsShort();
1154
+ return i.monthsShort();
1155
1155
  }, longDateFormat: function(c) {
1156
- return m(r, c);
1157
- }, meridiem: r.meridiem, ordinal: r.ordinal };
1158
- }, s.months = function() {
1156
+ return m(a, c);
1157
+ }, meridiem: a.meridiem, ordinal: a.ordinal };
1158
+ }, i.months = function() {
1159
1159
  return u(p(), "months");
1160
- }, s.monthsShort = function() {
1160
+ }, i.monthsShort = function() {
1161
1161
  return u(p(), "monthsShort", "months", 3);
1162
- }, s.weekdays = function(r) {
1163
- return u(p(), "weekdays", null, null, r);
1164
- }, s.weekdaysShort = function(r) {
1165
- return u(p(), "weekdaysShort", "weekdays", 3, r);
1166
- }, s.weekdaysMin = function(r) {
1167
- return u(p(), "weekdaysMin", "weekdays", 2, r);
1162
+ }, i.weekdays = function(a) {
1163
+ return u(p(), "weekdays", null, null, a);
1164
+ }, i.weekdaysShort = function(a) {
1165
+ return u(p(), "weekdaysShort", "weekdays", 3, a);
1166
+ }, i.weekdaysMin = function(a) {
1167
+ return u(p(), "weekdaysMin", "weekdays", 2, a);
1168
1168
  };
1169
1169
  };
1170
1170
  });
1171
1171
  }(Ie)), Ie.exports;
1172
1172
  }
1173
- var zt = Ut();
1173
+ var zt = Ht();
1174
1174
  const Yt = /* @__PURE__ */ ne(zt);
1175
1175
  var Oe = { exports: {} }, Bt = Oe.exports, tt;
1176
1176
  function Gt() {
1177
1177
  return tt || (tt = 1, function(n, o) {
1178
- (function(a, i) {
1179
- n.exports = i();
1178
+ (function(r, s) {
1179
+ n.exports = s();
1180
1180
  })(Bt, function() {
1181
- var a = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, i = {};
1182
- return function(s, e, l) {
1181
+ var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, s = {};
1182
+ return function(i, e, l) {
1183
1183
  var u, p = function(c, y, h) {
1184
1184
  h === void 0 && (h = {});
1185
1185
  var f = new Date(c), S = function(E, F) {
1186
1186
  F === void 0 && (F = {});
1187
- var M = F.timeZoneName || "short", Z = E + "|" + M, L = i[Z];
1188
- return L || (L = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: E, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), i[Z] = L), L;
1187
+ var M = F.timeZoneName || "short", Z = E + "|" + M, L = s[Z];
1188
+ return L || (L = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: E, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: M }), s[Z] = L), L;
1189
1189
  }(y, h);
1190
1190
  return S.formatToParts(f);
1191
1191
  }, m = function(c, y) {
1192
1192
  for (var h = p(c, y), f = [], S = 0; S < h.length; S += 1) {
1193
- var E = h[S], F = E.type, M = E.value, Z = a[F];
1193
+ var E = h[S], F = E.type, M = E.value, Z = r[F];
1194
1194
  Z >= 0 && (f[Z] = parseInt(M, 10));
1195
1195
  }
1196
1196
  var L = f[3], k = L === 24 ? 0 : L, P = f[0] + "-" + f[1] + "-" + f[2] + " " + k + ":" + f[4] + ":" + f[5] + ":000", W = +c;
@@ -1211,11 +1211,11 @@ function Gt() {
1211
1211
  });
1212
1212
  return h && h.value;
1213
1213
  };
1214
- var r = g.startOf;
1214
+ var a = g.startOf;
1215
1215
  g.startOf = function(c, y) {
1216
- if (!this.$x || !this.$x.$timezone) return r.call(this, c, y);
1216
+ if (!this.$x || !this.$x.$timezone) return a.call(this, c, y);
1217
1217
  var h = l(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1218
- return r.call(h, c, y).tz(this.$x.$timezone, !0);
1218
+ return a.call(h, c, y).tz(this.$x.$timezone, !0);
1219
1219
  }, l.tz = function(c, y, h) {
1220
1220
  var f = h && y, S = h || y || u, E = m(+l(), S);
1221
1221
  if (typeof c != "string") return l(c).tz(S);
@@ -1240,12 +1240,12 @@ const Vt = /* @__PURE__ */ ne(Xt);
1240
1240
  var Re = { exports: {} }, Jt = Re.exports, nt;
1241
1241
  function Qt() {
1242
1242
  return nt || (nt = 1, function(n, o) {
1243
- (function(a, i) {
1244
- n.exports = i();
1243
+ (function(r, s) {
1244
+ n.exports = s();
1245
1245
  })(Jt, function() {
1246
- return function(a, i, s) {
1247
- s.updateLocale = function(e, l) {
1248
- var u = s.Ls[e];
1246
+ return function(r, s, i) {
1247
+ i.updateLocale = function(e, l) {
1248
+ var u = i.Ls[e];
1249
1249
  if (u) return (l ? Object.keys(l) : []).forEach(function(p) {
1250
1250
  u[p] = l[p];
1251
1251
  }), u;
@@ -1259,10 +1259,10 @@ const en = /* @__PURE__ */ ne(Kt);
1259
1259
  var Le = { exports: {} }, tn = Le.exports, rt;
1260
1260
  function nn() {
1261
1261
  return rt || (rt = 1, function(n, o) {
1262
- (function(a, i) {
1263
- n.exports = i();
1262
+ (function(r, s) {
1263
+ n.exports = s();
1264
1264
  })(tn, function() {
1265
- var a = "minute", i = /[+-]\d\d(?::?\d\d)?/g, s = /([+-]|\d\d)/g;
1265
+ var r = "minute", s = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
1266
1266
  return function(e, l, u) {
1267
1267
  var p = l.prototype;
1268
1268
  u.utc = function(f) {
@@ -1270,7 +1270,7 @@ function nn() {
1270
1270
  return new l(S);
1271
1271
  }, p.utc = function(f) {
1272
1272
  var S = u(this.toDate(), { locale: this.$L, utc: !0 });
1273
- return f ? S.add(this.utcOffset(), a) : S;
1273
+ return f ? S.add(this.utcOffset(), r) : S;
1274
1274
  }, p.local = function() {
1275
1275
  return u(this.toDate(), { locale: this.$L, utc: !1 });
1276
1276
  };
@@ -1285,22 +1285,22 @@ function nn() {
1285
1285
  this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
1286
1286
  } else g.call(this);
1287
1287
  };
1288
- var r = p.utcOffset;
1288
+ var a = p.utcOffset;
1289
1289
  p.utcOffset = function(f, S) {
1290
1290
  var E = this.$utils().u;
1291
- if (E(f)) return this.$u ? 0 : E(this.$offset) ? r.call(this) : this.$offset;
1291
+ if (E(f)) return this.$u ? 0 : E(this.$offset) ? a.call(this) : this.$offset;
1292
1292
  if (typeof f == "string" && (f = function(L) {
1293
1293
  L === void 0 && (L = "");
1294
- var k = L.match(i);
1294
+ var k = L.match(s);
1295
1295
  if (!k) return null;
1296
- var P = ("" + k[0]).match(s) || ["-", 0, 0], W = P[0], $ = 60 * +P[1] + +P[2];
1296
+ var P = ("" + k[0]).match(i) || ["-", 0, 0], W = P[0], $ = 60 * +P[1] + +P[2];
1297
1297
  return $ === 0 ? 0 : W === "+" ? $ : -$;
1298
1298
  }(f), f === null)) return this;
1299
1299
  var F = Math.abs(f) <= 16 ? 60 * f : f, M = this;
1300
1300
  if (S) return M.$offset = F, M.$u = f === 0, M;
1301
1301
  if (f !== 0) {
1302
1302
  var Z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1303
- (M = this.local().add(F + Z, a)).$offset = F, M.$x.$localOffset = Z;
1303
+ (M = this.local().add(F + Z, r)).$offset = F, M.$x.$localOffset = Z;
1304
1304
  } else M = this.utc();
1305
1305
  return M;
1306
1306
  };
@@ -1337,13 +1337,13 @@ const an = /* @__PURE__ */ ne(rn);
1337
1337
  var Fe = { exports: {} }, on = Fe.exports, at;
1338
1338
  function sn() {
1339
1339
  return at || (at = 1, function(n, o) {
1340
- (function(a, i) {
1341
- n.exports = i();
1340
+ (function(r, s) {
1341
+ n.exports = s();
1342
1342
  })(on, function() {
1343
- return function(a, i) {
1344
- i.prototype.weekday = function(s) {
1343
+ return function(r, s) {
1344
+ s.prototype.weekday = function(i) {
1345
1345
  var e = this.$locale().weekStart || 0, l = this.$W, u = (l < e ? l + 7 : l) - e;
1346
- return this.$utils().u(s) ? u : this.subtract(u, "day").add(s, "day");
1346
+ return this.$utils().u(i) ? u : this.subtract(u, "day").add(i, "day");
1347
1347
  };
1348
1348
  };
1349
1349
  });
@@ -1351,21 +1351,21 @@ function sn() {
1351
1351
  }
1352
1352
  var un = sn();
1353
1353
  const cn = /* @__PURE__ */ ne(un);
1354
- H.extend(cn);
1355
- H.extend(Ht);
1356
- H.extend(an);
1357
- H.extend(Vt);
1358
- H.extend(jt);
1359
- H.extend(Ct);
1360
- H.extend(kt);
1361
- H.extend(Yt);
1362
- H.extend(en);
1363
- H.extend(Ot);
1354
+ N.extend(cn);
1355
+ N.extend(Nt);
1356
+ N.extend(an);
1357
+ N.extend(Vt);
1358
+ N.extend(jt);
1359
+ N.extend(Ct);
1360
+ N.extend(kt);
1361
+ N.extend(Yt);
1362
+ N.extend(en);
1363
+ N.extend(Ot);
1364
1364
  function dn(n) {
1365
- return [...n].sort((o, a) => {
1366
- const i = o.sequence.split(".").map(Number), s = a.sequence.split(".").map(Number);
1367
- for (let e = 0; e < Math.max(i.length, s.length); e++) {
1368
- const l = i[e] || 0, u = s[e] || 0;
1365
+ return [...n].sort((o, r) => {
1366
+ const s = o.sequence.split(".").map(Number), i = r.sequence.split(".").map(Number);
1367
+ for (let e = 0; e < Math.max(s.length, i.length); e++) {
1368
+ const l = s[e] || 0, u = i[e] || 0;
1369
1369
  if (l !== u) return l - u;
1370
1370
  }
1371
1371
  return 0;
@@ -1374,164 +1374,164 @@ function dn(n) {
1374
1374
  function ln(n) {
1375
1375
  return n.split(".").length - 1;
1376
1376
  }
1377
- function Pe(n, o, a) {
1378
- const i = dn(n);
1379
- let s = 0;
1380
- return i.map((e) => {
1381
- s++;
1377
+ function Pe(n, o, r) {
1378
+ const s = dn(n);
1379
+ let i = 0;
1380
+ return s.map((e) => {
1381
+ i++;
1382
1382
  const l = ln(e.sequence), { barMarginLeftAmount: u, barWidthSize: p } = gt(
1383
- H(e.startDate),
1384
- H(e.endDate),
1383
+ N(e.startDate),
1384
+ N(e.endDate),
1385
1385
  o,
1386
- a
1386
+ r
1387
1387
  );
1388
1388
  return {
1389
1389
  ...e,
1390
1390
  barLeft: u,
1391
1391
  barWidth: p,
1392
1392
  depth: l,
1393
- order: s,
1394
- originalOrder: s
1393
+ order: i,
1394
+ originalOrder: i
1395
1395
  };
1396
1396
  });
1397
1397
  }
1398
1398
  const ot = (n) => {
1399
1399
  let o;
1400
- const a = /* @__PURE__ */ new Set(), i = (m, g) => {
1401
- const r = typeof m == "function" ? m(o) : m;
1402
- if (!Object.is(r, o)) {
1400
+ const r = /* @__PURE__ */ new Set(), s = (m, g) => {
1401
+ const a = typeof m == "function" ? m(o) : m;
1402
+ if (!Object.is(a, o)) {
1403
1403
  const c = o;
1404
- o = g ?? (typeof r != "object" || r === null) ? r : Object.assign({}, o, r), a.forEach((y) => y(o, c));
1404
+ o = g ?? (typeof a != "object" || a === null) ? a : Object.assign({}, o, a), r.forEach((y) => y(o, c));
1405
1405
  }
1406
- }, s = () => o, u = { setState: i, getState: s, getInitialState: () => p, subscribe: (m) => (a.add(m), () => a.delete(m)) }, p = o = n(i, s, u);
1406
+ }, i = () => o, u = { setState: s, getState: i, getInitialState: () => p, subscribe: (m) => (r.add(m), () => r.delete(m)) }, p = o = n(s, i, u);
1407
1407
  return u;
1408
1408
  }, fn = (n) => n ? ot(n) : ot, pn = (n) => n;
1409
1409
  function hn(n, o = pn) {
1410
- const a = Ce.useSyncExternalStore(
1410
+ const r = Ce.useSyncExternalStore(
1411
1411
  n.subscribe,
1412
1412
  () => o(n.getState()),
1413
1413
  () => o(n.getInitialState())
1414
1414
  );
1415
- return Ce.useDebugValue(a), a;
1415
+ return Ce.useDebugValue(r), r;
1416
1416
  }
1417
1417
  const st = (n) => {
1418
- const o = fn(n), a = (i) => hn(o, i);
1419
- return Object.assign(a, o), a;
1418
+ const o = fn(n), r = (s) => hn(o, s);
1419
+ return Object.assign(r, o), r;
1420
1420
  }, mn = (n) => n ? st(n) : st, ye = mn((n, o) => ({
1421
1421
  rawTasks: [],
1422
1422
  transformedTasks: [],
1423
1423
  bottomRowCells: [],
1424
1424
  topHeaderGroups: [],
1425
1425
  selectedScale: "month",
1426
- minDate: H(),
1427
- maxDate: H(),
1426
+ minDate: N(),
1427
+ maxDate: N(),
1428
1428
  draggingTaskMeta: null,
1429
- setSelectedScale: (a) => {
1430
- const { rawTasks: i, bottomRowCells: s } = o(), e = Pe(i, s, a);
1431
- n({ selectedScale: a, transformedTasks: e });
1429
+ setSelectedScale: (r) => {
1430
+ const { rawTasks: s, bottomRowCells: i } = o(), e = Pe(s, i, r);
1431
+ n({ selectedScale: r, transformedTasks: e });
1432
1432
  },
1433
- setRawTasks: (a) => {
1434
- const { bottomRowCells: i, selectedScale: s } = o(), e = Pe(a, i, s);
1435
- n({ rawTasks: a, transformedTasks: e });
1433
+ setRawTasks: (r) => {
1434
+ const { bottomRowCells: s, selectedScale: i } = o(), e = Pe(r, s, i);
1435
+ n({ rawTasks: r, transformedTasks: e });
1436
1436
  },
1437
- setBottomRowCells: (a) => {
1438
- const { rawTasks: i, selectedScale: s } = o(), e = Pe(i, a, s);
1439
- n({ bottomRowCells: a, transformedTasks: e });
1437
+ setBottomRowCells: (r) => {
1438
+ const { rawTasks: s, selectedScale: i } = o(), e = Pe(s, r, i);
1439
+ n({ bottomRowCells: r, transformedTasks: e });
1440
1440
  },
1441
- setTopHeaderGroups: (a) => n({ topHeaderGroups: a }),
1442
- setMinDate: (a) => n({ minDate: a }),
1443
- setMaxDate: (a) => n({ maxDate: a }),
1444
- setDraggingTaskMeta: (a) => n({ draggingTaskMeta: a }),
1441
+ setTopHeaderGroups: (r) => n({ topHeaderGroups: r }),
1442
+ setMinDate: (r) => n({ minDate: r }),
1443
+ setMaxDate: (r) => n({ maxDate: r }),
1444
+ setDraggingTaskMeta: (r) => n({ draggingTaskMeta: r }),
1445
1445
  clearDraggingTaskMeta: () => n({ draggingTaskMeta: null })
1446
- })), $n = [{ id: "1", name: "Project Kickoff", startDate: "2024-06-01T09:00:00Z", endDate: "2024-06-01T11:00:00Z", parentId: null, sequence: "1", dependencies: [] }, { id: "2", name: "Requirement Gathering", startDate: "2024-06-02T09:00:00Z", endDate: "2024-06-05T17:00:00Z", parentId: null, sequence: "2", dependencies: [{ targetId: "1", type: "FS" }] }, { id: "3", name: "Stakeholder Interviews", startDate: "2024-06-02T10:00:00Z", endDate: "2024-06-03T17:00:00Z", parentId: "2", sequence: "2.1", dependencies: [{ targetId: "1", type: "SF" }] }, { id: "4", name: "Market Analysis", startDate: "2024-06-06T09:00:00Z", endDate: "2024-06-07T17:00:00Z", parentId: null, sequence: "3", dependencies: [{ targetId: "2", type: "FS" }] }, { id: "5", name: "Design System Creation", startDate: "2024-06-08T09:00:00Z", endDate: "2024-06-12T17:00:00Z", parentId: null, sequence: "4", dependencies: [{ targetId: "2", type: "FS" }, { targetId: "3", type: "SS" }] }, { id: "6", name: "UI/UX Design", startDate: "2024-06-13T09:00:00Z", endDate: "2024-06-16T17:00:00Z", parentId: "5", sequence: "4.1", dependencies: [{ targetId: "5", type: "FS" }] }, { id: "7", name: "Prototyping", startDate: "2024-06-17T09:00:00Z", endDate: "2024-06-20T17:00:00Z", parentId: "6", sequence: "4.1.1", dependencies: [{ targetId: "6", type: "FS" }] }, { id: "8", name: "Frontend Development", startDate: "2024-06-21T09:00:00Z", endDate: "2024-06-30T17:00:00Z", parentId: null, sequence: "5", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "9", name: "Backend Development", startDate: "2024-07-01T09:00:00Z", endDate: "2024-07-10T17:00:00Z", parentId: null, sequence: "6", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "10", name: "API Integration", startDate: "2024-07-11T09:00:00Z", endDate: "2024-07-15T17:00:00Z", parentId: "9", sequence: "6.1", dependencies: [{ targetId: "9", type: "FS" }] }, { id: "11", name: "Module Development", startDate: "2024-07-16T09:00:00Z", endDate: "2024-07-20T17:00:00Z", parentId: "8", sequence: "5.1", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "12", name: "Unit Testing", startDate: "2024-07-21T09:00:00Z", endDate: "2024-07-25T17:00:00Z", parentId: "8", sequence: "5.2", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "13", name: "Integration Testing", startDate: "2024-07-26T09:00:00Z", endDate: "2024-07-30T17:00:00Z", parentId: "10", sequence: "6.1.1", dependencies: [{ targetId: "10", type: "FS" }] }, { id: "14", name: "Code Review", startDate: "2024-07-31T09:00:00Z", endDate: "2024-08-04T17:00:00Z", parentId: "10", sequence: "6.1.2", dependencies: [{ targetId: "13", type: "FS" }] }, { id: "15", name: "Community Feedback", startDate: "2024-08-05T09:00:00Z", endDate: "2024-08-08T17:00:00Z", parentId: null, sequence: "7", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "16", name: "Documentation Drafting", startDate: "2024-08-09T09:00:00Z", endDate: "2024-08-12T17:00:00Z", parentId: null, sequence: "8", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "17", name: "Documentation Finalization", startDate: "2024-08-13T09:00:00Z", endDate: "2024-08-16T17:00:00Z", parentId: "16", sequence: "8.1", dependencies: [{ targetId: "16", type: "FS" }] }, { id: "18", name: "Pre-release Demo", startDate: "2024-08-17T09:00:00Z", endDate: "2024-08-20T17:00:00Z", parentId: null, sequence: "9", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "19", name: "Bug Fixing", startDate: "2024-08-21T09:00:00Z", endDate: "2024-08-25T17:00:00Z", parentId: null, sequence: "10", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "20", name: "Release Candidate", startDate: "2024-08-26T09:00:00Z", endDate: "2024-08-30T17:00:00Z", parentId: null, sequence: "11", dependencies: [{ targetId: "18", type: "FS" }] }, { id: "21", name: "Final Release", startDate: "2024-08-31T09:00:00Z", endDate: "2024-09-02T17:00:00Z", parentId: null, sequence: "12", dependencies: [{ targetId: "20", type: "FS" }] }, { id: "22", name: "Post-release Monitoring", startDate: "2024-09-03T09:00:00Z", endDate: "2024-09-04T17:00:00Z", parentId: null, sequence: "13", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "23", name: "Community Engagement", startDate: "2024-09-05T09:00:00Z", endDate: "2024-09-06T17:00:00Z", parentId: null, sequence: "14", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "24", name: "Feature Iteration Planning", startDate: "2024-09-07T09:00:00Z", endDate: "2024-09-08T17:00:00Z", parentId: null, sequence: "15", dependencies: [{ targetId: "22", type: "FS" }] }, { id: "25", name: "Additional Module Development", startDate: "2024-09-09T09:00:00Z", endDate: "2024-09-10T17:00:00Z", parentId: "24", sequence: "15.1", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "26", name: "Additional Testing", startDate: "2024-09-11T09:00:00Z", endDate: "2024-09-12T17:00:00Z", parentId: "25", sequence: "15.1.1", dependencies: [{ targetId: "25", type: "FS" }] }, { id: "27", name: "Code Refactoring", startDate: "2024-09-13T09:00:00Z", endDate: "2024-09-14T17:00:00Z", parentId: null, sequence: "16", dependencies: [{ targetId: "26", type: "FS" }] }, { id: "28", name: "Performance Optimization", startDate: "2024-09-15T09:00:00Z", endDate: "2024-09-16T17:00:00Z", parentId: "27", sequence: "16.1", dependencies: [{ targetId: "27", type: "FS" }] }, { id: "29", name: "Security Audit", startDate: "2024-09-17T09:00:00Z", endDate: "2024-09-18T17:00:00Z", parentId: null, sequence: "17", dependencies: [{ targetId: "28", type: "FS" }] }, { id: "30", name: "Final QA", startDate: "2024-09-19T09:00:00Z", endDate: "2024-09-20T17:00:00Z", parentId: null, sequence: "18", dependencies: [{ targetId: "29", type: "FS" }] }, { id: "31", name: "Launch Webinar", startDate: "2024-09-21T09:00:00Z", endDate: "2024-09-22T17:00:00Z", parentId: null, sequence: "19", dependencies: [{ targetId: "21", type: "SS" }] }, { id: "32", name: "Marketing Campaign", startDate: "2024-09-23T09:00:00Z", endDate: "2024-09-24T17:00:00Z", parentId: null, sequence: "20", dependencies: [{ targetId: "21", type: "SF" }] }, { id: "33", name: "Post-release Bug Fixing", startDate: "2024-09-25T09:00:00Z", endDate: "2024-09-26T17:00:00Z", parentId: null, sequence: "21", dependencies: [{ targetId: "22", type: "SS" }] }, { id: "34", name: "Version 1.1 Planning", startDate: "2024-09-27T09:00:00Z", endDate: "2024-09-28T17:00:00Z", parentId: null, sequence: "22", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "35", name: "Feature Implementation", startDate: "2024-09-29T09:00:00Z", endDate: "2024-09-30T17:00:00Z", parentId: "34", sequence: "22.1", dependencies: [{ targetId: "34", type: "FS" }] }, { id: "36", name: "Beta Testing", startDate: "2024-10-01T09:00:00Z", endDate: "2024-10-02T17:00:00Z", parentId: "35", sequence: "22.1.1", dependencies: [{ targetId: "35", type: "FS" }] }, { id: "37", name: "Community Beta Feedback", startDate: "2024-10-03T09:00:00Z", endDate: "2024-10-04T17:00:00Z", parentId: "36", sequence: "22.1.2", dependencies: [{ targetId: "36", type: "FS" }] }, { id: "38", name: "Final Beta Fixes", startDate: "2024-10-05T09:00:00Z", endDate: "2024-10-06T17:00:00Z", parentId: "37", sequence: "22.1.3", dependencies: [{ targetId: "37", type: "FS" }] }, { id: "39", name: "Documentation Update", startDate: "2024-10-07T09:00:00Z", endDate: "2024-10-08T17:00:00Z", parentId: "17", sequence: "8.1.1", dependencies: [{ targetId: "17", type: "FS" }] }, { id: "40", name: "Final Release Version 1.1", startDate: "2024-10-09T09:00:00Z", endDate: "2024-10-10T17:00:00Z", parentId: null, sequence: "23", dependencies: [{ targetId: "38", type: "FS" }] }, { id: "41", name: "Project Retrospective", startDate: "2024-10-11T09:00:00Z", endDate: "2024-10-12T17:00:00Z", parentId: null, sequence: "24", dependencies: [{ targetId: "40", type: "FS" }] }], it = (n) => /* @__PURE__ */ Ne.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ Ne.createElement("path", { d: "M10.2 4L10.2 20L7.8 20L7.8 4L10.2 4ZM15 4L15 20L12.6 20L12.6 4L15 4ZM5.4 15.0999L5.4 7.8999L1.8 11.4999L5.4 15.0999ZM17.4 7.8999L17.4 15.0999L21 11.4999L17.4 7.8999Z" }));
1446
+ })), $n = [{ id: "1", name: "Project Kickoff", startDate: "2024-06-01T09:00:00Z", endDate: "2024-06-01T11:00:00Z", parentId: null, sequence: "1", dependencies: [] }, { id: "2", name: "Requirement Gathering", startDate: "2024-06-02T09:00:00Z", endDate: "2024-06-05T17:00:00Z", parentId: null, sequence: "2", dependencies: [{ targetId: "1", type: "FS" }] }, { id: "3", name: "Stakeholder Interviews", startDate: "2024-06-02T10:00:00Z", endDate: "2024-06-03T17:00:00Z", parentId: "2", sequence: "2.1", dependencies: [{ targetId: "1", type: "SF" }] }, { id: "4", name: "Market Analysis", startDate: "2024-06-06T09:00:00Z", endDate: "2024-06-07T17:00:00Z", parentId: null, sequence: "3", dependencies: [{ targetId: "2", type: "FS" }] }, { id: "5", name: "Design System Creation", startDate: "2024-06-08T09:00:00Z", endDate: "2024-06-12T17:00:00Z", parentId: null, sequence: "4", dependencies: [{ targetId: "2", type: "FS" }, { targetId: "3", type: "SS" }] }, { id: "6", name: "UI/UX Design", startDate: "2024-06-13T09:00:00Z", endDate: "2024-06-16T17:00:00Z", parentId: "5", sequence: "4.1", dependencies: [{ targetId: "5", type: "FS" }] }, { id: "7", name: "Prototyping", startDate: "2024-06-17T09:00:00Z", endDate: "2024-06-20T17:00:00Z", parentId: "6", sequence: "4.1.1", dependencies: [{ targetId: "6", type: "FS" }] }, { id: "8", name: "Frontend Development", startDate: "2024-06-21T09:00:00Z", endDate: "2024-06-30T17:00:00Z", parentId: null, sequence: "5", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "9", name: "Backend Development", startDate: "2024-07-01T09:00:00Z", endDate: "2024-07-10T17:00:00Z", parentId: null, sequence: "6", dependencies: [{ targetId: "7", type: "FS" }] }, { id: "10", name: "API Integration", startDate: "2024-07-11T09:00:00Z", endDate: "2024-07-15T17:00:00Z", parentId: "9", sequence: "6.1", dependencies: [{ targetId: "9", type: "FS" }] }, { id: "11", name: "Module Development", startDate: "2024-07-16T09:00:00Z", endDate: "2024-07-20T17:00:00Z", parentId: "8", sequence: "5.1", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "12", name: "Unit Testing", startDate: "2024-07-21T09:00:00Z", endDate: "2024-07-25T17:00:00Z", parentId: "8", sequence: "5.2", dependencies: [{ targetId: "8", type: "FS" }] }, { id: "13", name: "Integration Testing", startDate: "2024-07-26T09:00:00Z", endDate: "2024-07-30T17:00:00Z", parentId: "10", sequence: "6.1.1", dependencies: [{ targetId: "10", type: "FS" }] }, { id: "14", name: "Code Review", startDate: "2024-07-31T09:00:00Z", endDate: "2024-08-04T17:00:00Z", parentId: "10", sequence: "6.1.2", dependencies: [{ targetId: "13", type: "FS" }] }, { id: "15", name: "Community Feedback", startDate: "2024-08-05T09:00:00Z", endDate: "2024-08-08T17:00:00Z", parentId: null, sequence: "7", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "16", name: "Documentation Drafting", startDate: "2024-08-09T09:00:00Z", endDate: "2024-08-12T17:00:00Z", parentId: null, sequence: "8", dependencies: [{ targetId: "14", type: "FS" }] }, { id: "17", name: "Documentation Finalization", startDate: "2024-08-13T09:00:00Z", endDate: "2024-08-16T17:00:00Z", parentId: "16", sequence: "8.1", dependencies: [{ targetId: "16", type: "FS" }] }, { id: "18", name: "Pre-release Demo", startDate: "2024-08-17T09:00:00Z", endDate: "2024-08-20T17:00:00Z", parentId: null, sequence: "9", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "19", name: "Bug Fixing", startDate: "2024-08-21T09:00:00Z", endDate: "2024-08-25T17:00:00Z", parentId: null, sequence: "10", dependencies: [{ targetId: "15", type: "FS" }] }, { id: "20", name: "Release Candidate", startDate: "2024-08-26T09:00:00Z", endDate: "2024-08-30T17:00:00Z", parentId: null, sequence: "11", dependencies: [{ targetId: "18", type: "FS" }] }, { id: "21", name: "Final Release", startDate: "2024-08-31T09:00:00Z", endDate: "2024-09-02T17:00:00Z", parentId: null, sequence: "12", dependencies: [{ targetId: "20", type: "FS" }] }, { id: "22", name: "Post-release Monitoring", startDate: "2024-09-03T09:00:00Z", endDate: "2024-09-04T17:00:00Z", parentId: null, sequence: "13", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "23", name: "Community Engagement", startDate: "2024-09-05T09:00:00Z", endDate: "2024-09-06T17:00:00Z", parentId: null, sequence: "14", dependencies: [{ targetId: "21", type: "FS" }] }, { id: "24", name: "Feature Iteration Planning", startDate: "2024-09-07T09:00:00Z", endDate: "2024-09-08T17:00:00Z", parentId: null, sequence: "15", dependencies: [{ targetId: "22", type: "FS" }] }, { id: "25", name: "Additional Module Development", startDate: "2024-09-09T09:00:00Z", endDate: "2024-09-10T17:00:00Z", parentId: "24", sequence: "15.1", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "26", name: "Additional Testing", startDate: "2024-09-11T09:00:00Z", endDate: "2024-09-12T17:00:00Z", parentId: "25", sequence: "15.1.1", dependencies: [{ targetId: "25", type: "FS" }] }, { id: "27", name: "Code Refactoring", startDate: "2024-09-13T09:00:00Z", endDate: "2024-09-14T17:00:00Z", parentId: null, sequence: "16", dependencies: [{ targetId: "26", type: "FS" }] }, { id: "28", name: "Performance Optimization", startDate: "2024-09-15T09:00:00Z", endDate: "2024-09-16T17:00:00Z", parentId: "27", sequence: "16.1", dependencies: [{ targetId: "27", type: "FS" }] }, { id: "29", name: "Security Audit", startDate: "2024-09-17T09:00:00Z", endDate: "2024-09-18T17:00:00Z", parentId: null, sequence: "17", dependencies: [{ targetId: "28", type: "FS" }] }, { id: "30", name: "Final QA", startDate: "2024-09-19T09:00:00Z", endDate: "2024-09-20T17:00:00Z", parentId: null, sequence: "18", dependencies: [{ targetId: "29", type: "FS" }] }, { id: "31", name: "Launch Webinar", startDate: "2024-09-21T09:00:00Z", endDate: "2024-09-22T17:00:00Z", parentId: null, sequence: "19", dependencies: [{ targetId: "21", type: "SS" }] }, { id: "32", name: "Marketing Campaign", startDate: "2024-09-23T09:00:00Z", endDate: "2024-09-24T17:00:00Z", parentId: null, sequence: "20", dependencies: [{ targetId: "21", type: "SF" }] }, { id: "33", name: "Post-release Bug Fixing", startDate: "2024-09-25T09:00:00Z", endDate: "2024-09-26T17:00:00Z", parentId: null, sequence: "21", dependencies: [{ targetId: "22", type: "SS" }] }, { id: "34", name: "Version 1.1 Planning", startDate: "2024-09-27T09:00:00Z", endDate: "2024-09-28T17:00:00Z", parentId: null, sequence: "22", dependencies: [{ targetId: "24", type: "FS" }] }, { id: "35", name: "Feature Implementation", startDate: "2024-09-29T09:00:00Z", endDate: "2024-09-30T17:00:00Z", parentId: "34", sequence: "22.1", dependencies: [{ targetId: "34", type: "FS" }] }, { id: "36", name: "Beta Testing", startDate: "2024-10-01T09:00:00Z", endDate: "2024-10-02T17:00:00Z", parentId: "35", sequence: "22.1.1", dependencies: [{ targetId: "35", type: "FS" }] }, { id: "37", name: "Community Beta Feedback", startDate: "2024-10-03T09:00:00Z", endDate: "2024-10-04T17:00:00Z", parentId: "36", sequence: "22.1.2", dependencies: [{ targetId: "36", type: "FS" }] }, { id: "38", name: "Final Beta Fixes", startDate: "2024-10-05T09:00:00Z", endDate: "2024-10-06T17:00:00Z", parentId: "37", sequence: "22.1.3", dependencies: [{ targetId: "37", type: "FS" }] }, { id: "39", name: "Documentation Update", startDate: "2024-10-07T09:00:00Z", endDate: "2024-10-08T17:00:00Z", parentId: "17", sequence: "8.1.1", dependencies: [{ targetId: "17", type: "FS" }] }, { id: "40", name: "Final Release Version 1.1", startDate: "2024-10-09T09:00:00Z", endDate: "2024-10-10T17:00:00Z", parentId: null, sequence: "23", dependencies: [{ targetId: "38", type: "FS" }] }, { id: "41", name: "Project Retrospective", startDate: "2024-10-11T09:00:00Z", endDate: "2024-10-12T17:00:00Z", parentId: null, sequence: "24", dependencies: [{ targetId: "40", type: "FS" }] }], it = (n) => /* @__PURE__ */ 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" }));
1447
1447
  function me(n, o) {
1448
- const { basePxPerDragStep: a } = K[o];
1449
- return Math.round(n / a);
1448
+ const { basePxPerDragStep: r } = K[o];
1449
+ return Math.round(n / r);
1450
1450
  }
1451
- function gn(n, o, a) {
1451
+ function gn(n, o, r) {
1452
1452
  const {
1453
- rawTasks: i,
1454
- selectedScale: s,
1453
+ rawTasks: s,
1454
+ selectedScale: i,
1455
1455
  setRawTasks: e,
1456
1456
  setDraggingTaskMeta: l,
1457
1457
  clearDraggingTaskMeta: u
1458
- } = ye(), [p, m] = oe(o), g = V(o), r = V(null), c = V(o), y = V(n.startDate), h = V(n.endDate), f = (F) => {
1459
- r.current = F.clientX, c.current = o, y.current = n.startDate, h.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "bar" }), document.addEventListener("mousemove", S), document.addEventListener("mouseup", E);
1458
+ } = ye(), [p, m] = oe(o), g = V(o), a = V(null), c = V(o), y = V(n.startDate), h = V(n.endDate), f = (F) => {
1459
+ a.current = F.clientX, c.current = o, y.current = n.startDate, h.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "bar" }), document.addEventListener("mousemove", S), document.addEventListener("mouseup", E);
1460
1460
  }, S = (F) => {
1461
- if (r.current === null) return;
1462
- const M = F.clientX - r.current, L = me(M, s) * K[s].basePxPerDragStep, k = c.current + L;
1461
+ if (a.current === null) return;
1462
+ const M = F.clientX - a.current, L = me(M, i) * K[i].basePxPerDragStep, k = c.current + L;
1463
1463
  m(k), g.current = k;
1464
1464
  }, E = () => {
1465
1465
  document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", E);
1466
- const F = g.current - c.current, M = me(F, s), { dragStepUnit: Z, dragStepAmount: L } = K[s], k = i.map(
1466
+ const F = g.current - c.current, M = me(F, i), { dragStepUnit: Z, dragStepAmount: L } = K[i], k = s.map(
1467
1467
  (P) => P.id === n.id ? {
1468
1468
  ...P,
1469
- startDate: H(y.current).add(M * L, Z).toISOString(),
1470
- endDate: H(h.current).add(M * L, Z).toISOString()
1469
+ startDate: N(y.current).add(M * L, Z).toISOString(),
1470
+ endDate: N(h.current).add(M * L, Z).toISOString()
1471
1471
  } : P
1472
1472
  );
1473
- e(k), a == null || a(k), u(), r.current = null;
1473
+ e(k), r == null || r(k), u(), a.current = null;
1474
1474
  };
1475
1475
  return { onDragStart: f, tempLeft: p };
1476
1476
  }
1477
- function vn(n, o, a, i) {
1477
+ function vn(n, o, r, s) {
1478
1478
  const {
1479
- rawTasks: s,
1479
+ rawTasks: i,
1480
1480
  selectedScale: e,
1481
1481
  setRawTasks: l,
1482
1482
  setDraggingTaskMeta: u,
1483
1483
  clearDraggingTaskMeta: p
1484
- } = ye(), [m, g] = oe(o), [r, c] = oe(a), y = V(o), h = V(a), f = V(null), S = V(o), E = V(a), F = V(n.startDate), M = (k) => {
1485
- k.stopPropagation(), f.current = k.clientX, S.current = o, E.current = a, F.current = n.startDate, g(o), c(a), y.current = o, h.current = a, u({ taskId: n.id, type: "left" }), document.addEventListener("mousemove", Z), document.addEventListener("mouseup", L);
1484
+ } = ye(), [m, g] = oe(o), [a, c] = oe(r), y = V(o), h = V(r), f = V(null), S = V(o), E = V(r), F = V(n.startDate), M = (k) => {
1485
+ k.stopPropagation(), f.current = k.clientX, S.current = o, E.current = r, F.current = n.startDate, g(o), c(r), y.current = o, h.current = r, u({ taskId: n.id, type: "left" }), document.addEventListener("mousemove", Z), document.addEventListener("mouseup", L);
1486
1486
  }, Z = (k) => {
1487
1487
  if (f.current == null) return;
1488
1488
  const P = k.clientX - f.current, $ = me(P, e) * K[e].basePxPerDragStep, d = S.current + $, O = E.current - $;
1489
1489
  O < 1 || (g(d), c(O), y.current = d, h.current = O);
1490
1490
  }, L = () => {
1491
1491
  document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", L);
1492
- const k = y.current - S.current, P = me(k, e), { dragStepUnit: W, dragStepAmount: $ } = K[e], d = s.map((O) => {
1492
+ const k = y.current - S.current, P = me(k, e), { dragStepUnit: W, dragStepAmount: $ } = K[e], d = i.map((O) => {
1493
1493
  if (O.id !== n.id) return O;
1494
- const B = H(F.current).add(
1494
+ const B = N(F.current).add(
1495
1495
  P * $,
1496
1496
  W
1497
1497
  );
1498
- return B.isAfter(H(O.endDate)) ? O : { ...O, startDate: B.toISOString() };
1498
+ return B.isAfter(N(O.endDate)) ? O : { ...O, startDate: B.toISOString() };
1499
1499
  });
1500
- l(d), i == null || i(d), p(), f.current = null;
1500
+ l(d), s == null || s(d), p(), f.current = null;
1501
1501
  };
1502
- return { onDragStart: M, tempLeft: m, tempWidth: r };
1502
+ return { onDragStart: M, tempLeft: m, tempWidth: a };
1503
1503
  }
1504
- function yn(n, o, a) {
1504
+ function yn(n, o, r) {
1505
1505
  const {
1506
- rawTasks: i,
1507
- selectedScale: s,
1506
+ rawTasks: s,
1507
+ selectedScale: i,
1508
1508
  setRawTasks: e,
1509
1509
  setDraggingTaskMeta: l,
1510
1510
  clearDraggingTaskMeta: u
1511
- } = ye(), [p, m] = oe(o), g = V(o), r = V(null), c = V(o), y = V(n.endDate), h = (E) => {
1512
- E.stopPropagation(), r.current = E.clientX, c.current = o, y.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "right" }), document.addEventListener("mousemove", f), document.addEventListener("mouseup", S);
1511
+ } = ye(), [p, m] = oe(o), g = V(o), a = V(null), c = V(o), y = V(n.endDate), h = (E) => {
1512
+ E.stopPropagation(), a.current = E.clientX, c.current = o, y.current = n.endDate, m(o), g.current = o, l({ taskId: n.id, type: "right" }), document.addEventListener("mousemove", f), document.addEventListener("mouseup", S);
1513
1513
  }, f = (E) => {
1514
- if (r.current === null) return;
1515
- const F = E.clientX - r.current, Z = me(F, s) * K[s].basePxPerDragStep, L = c.current + Z;
1514
+ if (a.current === null) return;
1515
+ const F = E.clientX - a.current, Z = me(F, i) * K[i].basePxPerDragStep, L = c.current + Z;
1516
1516
  L < 1 || (m(L), g.current = L);
1517
1517
  }, S = () => {
1518
1518
  document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", S);
1519
- const E = g.current - c.current, F = me(E, s), { dragStepUnit: M, dragStepAmount: Z } = K[s], L = i.map((k) => {
1519
+ const E = g.current - c.current, F = me(E, i), { dragStepUnit: M, dragStepAmount: Z } = K[i], L = s.map((k) => {
1520
1520
  if (k.id !== n.id) return k;
1521
- const P = H(y.current).add(
1521
+ const P = N(y.current).add(
1522
1522
  F * Z,
1523
1523
  M
1524
1524
  );
1525
- return P.isBefore(H(k.startDate)) ? k : { ...k, endDate: P.toISOString() };
1525
+ return P.isBefore(N(k.startDate)) ? k : { ...k, endDate: P.toISOString() };
1526
1526
  });
1527
- e(L), a == null || a(L), u(), r.current = null;
1527
+ e(L), r == null || r(L), u(), a.current = null;
1528
1528
  };
1529
1529
  return { onDragStart: h, tempWidth: p };
1530
1530
  }
1531
- function Dn(n, o, a, i, s) {
1532
- if (a < 0 || s < 0)
1533
- return `M ${o} ${a} h ${(i - o) / 2}`;
1534
- const e = 7, l = 11, u = 25, p = 20, m = `M ${o} ${a}`, g = i - o, r = s - a, c = Math.abs(g), y = Math.abs(r), h = s <= a, f = s >= a, S = i >= o, E = i <= o, F = c > p, M = Math.abs(g / 2), Z = Math.abs(r / 2);
1531
+ function Dn(n, o, r, s, i) {
1532
+ if (r < 0 || i < 0)
1533
+ return `M ${o} ${r} h ${(s - o) / 2}`;
1534
+ const e = 7, l = 11, u = 25, p = 20, m = `M ${o} ${r}`, g = s - o, a = i - r, c = Math.abs(g), y = Math.abs(a), h = i <= r, f = i >= r, S = s >= o, E = s <= o, F = c > p, M = Math.abs(g / 2), Z = Math.abs(a / 2);
1535
1535
  function L() {
1536
1536
  function $() {
1537
1537
  return (S || E) && f && !F ? "downSmallHorizontal" : (S || E) && h && !F ? "upSmallHorizontal" : f && E ? "downLeft" : f && S ? "downRight" : h && E ? "upLeft" : h && S ? "upRight" : "";
@@ -1539,7 +1539,7 @@ function Dn(n, o, a, i, s) {
1539
1539
  let d = m;
1540
1540
  switch ($()) {
1541
1541
  case "downRight": {
1542
- d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${r - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${M - e}`;
1542
+ d += ` h ${M - e}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${a - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${M - e}`;
1543
1543
  break;
1544
1544
  }
1545
1545
  case "upRight": {
@@ -1548,14 +1548,14 @@ function Dn(n, o, a, i, s) {
1548
1548
  }
1549
1549
  case "downLeft":
1550
1550
  case "downSmallHorizontal": {
1551
- const B = a + r / 2;
1552
- d += ` h ${l}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${B - a - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${l}`;
1551
+ const B = r + a / 2;
1552
+ d += ` h ${l}`, d += ` a ${e} ${e} 0 0 1 ${e} ${e}`, d += ` v ${B - r - e * 2}`, d += ` a ${e} ${e} 0 0 1 -${e} ${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 0 -${e} ${e}`, d += ` v ${B - r - e * 2}`, d += ` a ${e} ${e} 0 0 0 ${e} ${e}`, d += ` h ${l}`;
1553
1553
  break;
1554
1554
  }
1555
1555
  case "upLeft":
1556
1556
  case "upSmallHorizontal": {
1557
- const B = a + r / 2;
1558
- d += ` h ${l}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v -${a - B - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${l}`;
1557
+ const B = r + a / 2;
1558
+ d += ` h ${l}`, d += ` a ${e} ${e} 0 0 0 ${e} -${e}`, d += ` v -${r - B - e * 2}`, d += ` a ${e} ${e} 0 0 0 -${e} -${e}`, d += ` h ${g - 2 * l}`, d += ` a ${e} ${e} 0 0 1 -${e} -${e}`, d += ` v -${r - B - e * 2}`, d += ` a ${e} ${e} 0 0 1 ${e} -${e}`, d += ` h ${l}`;
1559
1559
  break;
1560
1560
  }
1561
1561
  default:
@@ -1565,7 +1565,7 @@ function Dn(n, o, a, i, s) {
1565
1565
  }
1566
1566
  function k() {
1567
1567
  let $ = m;
1568
- return f && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h ${g - e * 2}`) : f && S ? ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h -${u - l}`) : h && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h ${g - u + l}`) : h && S && ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h -${u - l}`), $;
1568
+ return f && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${a - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h ${g - e * 2}`) : f && S ? ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 1 ${e} ${e}`, $ += ` v ${a - e * 2}`, $ += ` a ${e} ${e} 0 0 1 -${e} ${e}`, $ += ` h -${u - l}`) : h && E ? ($ += ` h ${u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${a + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h ${g - u + l}`) : h && S && ($ += ` h ${g + u - l}`, $ += ` a ${e} ${e} 0 0 0 ${e} -${e}`, $ += ` v ${a + e * 2}`, $ += ` a ${e} ${e} 0 0 0 -${e} -${e}`, $ += ` h -${u - l}`), $;
1569
1569
  }
1570
1570
  function P() {
1571
1571
  function $() {
@@ -1598,7 +1598,7 @@ function Dn(n, o, a, i, s) {
1598
1598
  }
1599
1599
  function W() {
1600
1600
  let $ = m;
1601
- return f && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${u}`) : f && S ? ($ += " h -25", $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${r - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${g + u}`) : h && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${u}`) : h && S && ($ += " h -25", $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${r + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${g + u}`), $;
1601
+ return f && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${a - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${u}`) : f && S ? ($ += " h -25", $ += ` a ${e} ${e} 0 0 0 -${e} ${e}`, $ += ` v ${a - e * 2}`, $ += ` a ${e} ${e} 0 0 0 ${e} ${e}`, $ += ` h ${g + u}`) : h && E ? ($ += ` h ${g - u}`, $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${a + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${u}`) : h && S && ($ += " h -25", $ += ` a ${e} ${e} 0 0 1 -${e} -${e}`, $ += ` v ${a + e * 2}`, $ += ` a ${e} ${e} 0 0 1 ${e} -${e}`, $ += ` h ${g + u}`), $;
1602
1602
  }
1603
1603
  switch (n) {
1604
1604
  case "FS":
@@ -1610,35 +1610,35 @@ function Dn(n, o, a, i, s) {
1610
1610
  case "SS":
1611
1611
  return W();
1612
1612
  default:
1613
- return `${m} L ${i} ${s}`;
1613
+ return `${m} L ${s} ${i}`;
1614
1614
  }
1615
1615
  }
1616
- function Sn({ allTasks: n, currentTask: o, onTasksChange: a }) {
1617
- const [i, s] = oe(!1), [e, l] = oe(!1), { onDragStart: u, tempLeft: p } = gn(o, o.barLeft, a), {
1616
+ function Sn({ allTasks: n, currentTask: o, onTasksChange: r }) {
1617
+ const [s, i] = oe(!1), [e, l] = oe(!1), { onDragStart: u, tempLeft: p } = gn(o, o.barLeft, r), {
1618
1618
  onDragStart: m,
1619
1619
  tempLeft: g,
1620
- tempWidth: r
1620
+ tempWidth: a
1621
1621
  } = vn(
1622
1622
  o,
1623
1623
  o.barLeft,
1624
1624
  o.barWidth,
1625
- a
1625
+ r
1626
1626
  ), { onDragStart: c, tempWidth: y } = yn(
1627
1627
  o,
1628
1628
  o.barWidth,
1629
- a
1629
+ r
1630
1630
  ), { draggingTaskMeta: h } = ye(), f = (h == null ? void 0 : h.taskId) === o.id;
1631
1631
  let S = !1, E = !1, F = !1;
1632
1632
  f && ((h == null ? void 0 : h.type) === "left" ? S = !0 : (h == null ? void 0 : h.type) === "right" ? E = !0 : (h == null ? void 0 : h.type) === "bar" && (F = !0));
1633
1633
  let M = o.barLeft, Z = o.barWidth;
1634
- S ? (M = g, Z = r) : E ? Z = y : F && (M = p);
1634
+ S ? (M = g, Z = a) : E ? Z = y : F && (M = p);
1635
1635
  const L = () => /* @__PURE__ */ A.jsx(
1636
1636
  "button",
1637
1637
  {
1638
1638
  type: "button",
1639
1639
  onMouseDown: m,
1640
- onMouseEnter: () => s(!0),
1641
- onMouseLeave: () => s(!1),
1640
+ onMouseEnter: () => i(!0),
1641
+ onMouseLeave: () => i(!1),
1642
1642
  style: {
1643
1643
  position: "absolute",
1644
1644
  top: 0,
@@ -1660,7 +1660,7 @@ function Sn({ allTasks: n, currentTask: o, onTasksChange: a }) {
1660
1660
  height: "1.5rem",
1661
1661
  width: "1.5rem",
1662
1662
  fill: "#919294",
1663
- opacity: i ? 1 : 0
1663
+ opacity: s ? 1 : 0
1664
1664
  // transition: 'opacity 50ms ease-in-out',
1665
1665
  }
1666
1666
  }
@@ -1797,9 +1797,9 @@ function Sn({ allTasks: n, currentTask: o, onTasksChange: a }) {
1797
1797
  )
1798
1798
  ] });
1799
1799
  }
1800
- function bn({ tasks: n, onTasksChange: o, ganttHeight: a, columnWidth: i }) {
1801
- const [s, e] = oe(a || 500), [l, u] = oe(i || 1e3), [p, m] = oe(n || []), g = V(null), {
1802
- rawTasks: r,
1800
+ function bn({ tasks: n, onTasksChange: o, ganttHeight: r, columnWidth: s }) {
1801
+ const [i, e] = oe(r || 500), [l, u] = oe(s || 1e3), [p, m] = oe(n || []), g = V(null), {
1802
+ rawTasks: a,
1803
1803
  transformedTasks: c,
1804
1804
  selectedScale: y,
1805
1805
  setSelectedScale: h,
@@ -1830,15 +1830,15 @@ function bn({ tasks: n, onTasksChange: o, ganttHeight: a, columnWidth: i }) {
1830
1830
  M
1831
1831
  );
1832
1832
  }, [p, y]), xe(() => {
1833
- !f.length || !p.length || r.length === 0 && E(p);
1833
+ !f.length || !p.length || a.length === 0 && E(p);
1834
1834
  }, [f, p]), /* @__PURE__ */ A.jsx(
1835
1835
  "section",
1836
1836
  {
1837
1837
  style: {
1838
1838
  position: "relative",
1839
1839
  overflow: "auto",
1840
- height: `${s}px`,
1841
- width: `${l}px`,
1840
+ height: typeof r == "number" ? `${r}px` : r,
1841
+ width: typeof s == "number" ? `${s}px` : s,
1842
1842
  backgroundColor: "#FFF",
1843
1843
  fontFamily: "Noto Sans, sans-serif"
1844
1844
  },