@carbon/charts 1.27.2 → 1.27.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/{angle-utils-jnw9HSFu.mjs → angle-utils-Dy0Gf7Eb.mjs} +42 -42
  3. package/dist/{angle-utils-jnw9HSFu.mjs.map → angle-utils-Dy0Gf7Eb.mjs.map} +1 -1
  4. package/dist/{array-CmsYzTI6.mjs → array-D6ni_TQq.mjs} +2 -2
  5. package/dist/{array-CmsYzTI6.mjs.map → array-D6ni_TQq.mjs.map} +1 -1
  6. package/dist/{axis-scales-CPuwbFQf.mjs → axis-scales-CFRGPXH8.mjs} +26 -25
  7. package/dist/{axis-scales-CPuwbFQf.mjs.map → axis-scales-CFRGPXH8.mjs.map} +1 -1
  8. package/dist/{choropleth-CKAPopp2.mjs → choropleth-DQATcCWY.mjs} +2214 -2189
  9. package/dist/choropleth-DQATcCWY.mjs.map +1 -0
  10. package/dist/{color-scale-utils-BzjNNGXE.mjs → color-scale-utils-C4KU2jNr.mjs} +128 -85
  11. package/dist/color-scale-utils-C4KU2jNr.mjs.map +1 -0
  12. package/dist/components/index.mjs +1 -1
  13. package/dist/{index-CQFVDkrk.mjs → index-CHbrPDmO.mjs} +200 -189
  14. package/dist/index-CHbrPDmO.mjs.map +1 -0
  15. package/dist/index-CLdAL6df.mjs +64 -0
  16. package/dist/index-CLdAL6df.mjs.map +1 -0
  17. package/dist/index.d.cts +2 -1
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.mjs +211 -190
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/interfaces/index.d.ts +1 -1
  22. package/dist/interfaces/index.mjs +37 -36
  23. package/dist/model/index.mjs +35 -35
  24. package/dist/model/index.mjs.map +1 -1
  25. package/dist/services/index.mjs +3 -3
  26. package/dist/umd/bundle.umd.cjs +16 -16
  27. package/dist/umd/bundle.umd.cjs.map +1 -1
  28. package/dist/umd/bundle.umd.js +16 -16
  29. package/package.json +6 -5
  30. package/dist/choropleth-CKAPopp2.mjs.map +0 -1
  31. package/dist/color-scale-utils-BzjNNGXE.mjs.map +0 -1
  32. package/dist/index-CQFVDkrk.mjs.map +0 -1
  33. package/dist/index-DwV8lNnO.mjs +0 -63
  34. package/dist/index-DwV8lNnO.mjs.map +0 -1
@@ -1,12 +1,12 @@
1
- import { a3 as Lt, aD as Nt, aE as Ct, aF as It, aG as ut, aH as Zt, aI as Ft, aJ as zt, a0 as Vt, aK as Ht, aL as Yt, aM as Xt, aN as Gt, _ as $t, W as Ut, ay as j, aO as Kt, aP as jt, n as q, g as c, F as W, aQ as v, aR as M, aS as E, aT as qt, aU as ft, aV as pt, h as J, as as Wt, ap as Jt, ad as mt, aj as Qt, H as ti } from "./color-scale-utils-BzjNNGXE.mjs";
2
- import { z as ii, A, e as Q, S as O, D as ni, s as ei, v as si, x as oi, y as ai, u as ri } from "./angle-utils-jnw9HSFu.mjs";
3
- import { $ as w, e as _, i as C, S as p } from "./axis-scales-CPuwbFQf.mjs";
4
- function dt(i) {
1
+ import { aj as Nt, aK as Ct, aL as It, aM as Zt, aN as ft, aO as K, aP as Ft, aQ as zt, ag as Vt, aR as Yt, aS as Xt, aT as Ht, aU as Gt, ae as $t, aa as Ut, aG as q, aV as jt, aW as Kt, n as W, g as c, F as Q, aX as v, aY as M, aZ as E, a_ as qt, a$ as pt, b0 as mt, h as J, aA as Wt, ax as Qt, as as dt, au as Jt, H as ti } from "./color-scale-utils-C4KU2jNr.mjs";
2
+ import { z as ii, A, e as tt, S as O, D as ni, s as ei, v as si, x as oi, y as ai, u as ri } from "./angle-utils-Dy0Gf7Eb.mjs";
3
+ import { a0 as w, e as _, i as C, S as p } from "./axis-scales-CFRGPXH8.mjs";
4
+ function xt(i) {
5
5
  var t = i == null ? 0 : i.length;
6
- return t ? Lt(i, 1) : [];
6
+ return t ? Nt(i, 1) : [];
7
7
  }
8
8
  function hi(i) {
9
- return Nt(Ct(i, void 0, dt), i + "");
9
+ return Ct(It(i, void 0, xt), i + "");
10
10
  }
11
11
  function ci(i, t, n) {
12
12
  var e = -1, s = i.length;
@@ -16,55 +16,66 @@ function ci(i, t, n) {
16
16
  return o;
17
17
  }
18
18
  function li(i, t) {
19
- return t.length < 2 ? i : It(i, ci(t, 0, -1));
20
- }
21
- function _i(i, t) {
22
- return t = ut(t, i), i = li(i, t), i == null || delete i[Zt(Ft(t))];
19
+ return t.length < 2 ? i : Zt(i, ci(t, 0, -1));
20
+ }
21
+ var _i = Object.prototype, ui = _i.hasOwnProperty;
22
+ function fi(i, t) {
23
+ t = ft(t, i);
24
+ var n = -1, e = t.length;
25
+ if (!e)
26
+ return !0;
27
+ for (; ++n < e; ) {
28
+ var s = K(t[n]);
29
+ if (s === "__proto__" && !ui.call(i, "__proto__") || (s === "constructor" || s === "prototype") && n < e - 1)
30
+ return !1;
31
+ }
32
+ var o = li(i, t);
33
+ return o == null || delete o[K(Ft(t))];
23
34
  }
24
- function ui(i) {
35
+ function pi(i) {
25
36
  return zt(i) ? void 0 : i;
26
37
  }
27
- var fi = 1, pi = 2, mi = 4, di = hi(function(i, t) {
38
+ var mi = 1, di = 2, xi = 4, gi = hi(function(i, t) {
28
39
  var n = {};
29
40
  if (i == null)
30
41
  return n;
31
42
  var e = !1;
32
43
  t = Vt(t, function(o) {
33
- return o = ut(o, i), e || (e = o.length > 1), o;
34
- }), Ht(i, Yt(i), n), e && (n = Xt(n, fi | pi | mi, ui));
44
+ return o = ft(o, i), e || (e = o.length > 1), o;
45
+ }), Yt(i, Xt(i), n), e && (n = Ht(n, mi | di | xi, pi));
35
46
  for (var s = t.length; s--; )
36
- _i(n, t[s]);
47
+ fi(n, t[s]);
37
48
  return n;
38
49
  });
39
- function tt(i) {
50
+ function it(i) {
40
51
  return Math.log(i);
41
52
  }
42
- function it(i) {
53
+ function nt(i) {
43
54
  return Math.exp(i);
44
55
  }
45
- function xi(i) {
56
+ function yi(i) {
46
57
  return -Math.log(-i);
47
58
  }
48
- function gi(i) {
59
+ function vi(i) {
49
60
  return -Math.exp(-i);
50
61
  }
51
- function yi(i) {
62
+ function Ti(i) {
52
63
  return isFinite(i) ? +("1e" + i) : i < 0 ? 0 : i;
53
64
  }
54
- function vi(i) {
55
- return i === 10 ? yi : i === Math.E ? Math.exp : (t) => Math.pow(i, t);
65
+ function Di(i) {
66
+ return i === 10 ? Ti : i === Math.E ? Math.exp : (t) => Math.pow(i, t);
56
67
  }
57
- function Ti(i) {
68
+ function Oi(i) {
58
69
  return i === Math.E ? Math.log : i === 10 && Math.log10 || i === 2 && Math.log2 || (i = Math.log(i), (t) => Math.log(t) / i);
59
70
  }
60
- function nt(i) {
71
+ function et(i) {
61
72
  return (t, n) => -i(-t, n);
62
73
  }
63
- function Di(i) {
64
- const t = i(tt, it), n = t.domain;
74
+ function Ai(i) {
75
+ const t = i(it, nt), n = t.domain;
65
76
  let e = 10, s, o;
66
77
  function a() {
67
- return s = Ti(e), o = vi(e), n()[0] < 0 ? (s = nt(s), o = nt(o), i(xi, gi)) : i(tt, it), t;
78
+ return s = Oi(e), o = Di(e), n()[0] < 0 ? (s = et(s), o = et(o), i(yi, vi)) : i(it, nt), t;
68
79
  }
69
80
  return t.base = function(r) {
70
81
  return arguments.length ? (e = +r, a()) : e;
@@ -92,12 +103,12 @@ function Di(i) {
92
103
  if (m > f) break;
93
104
  u.push(m);
94
105
  }
95
- u.length * 2 < D && (u = j(l, f, D));
106
+ u.length * 2 < D && (u = q(l, f, D));
96
107
  } else
97
- u = j(d, T, Math.min(T - d, D)).map(o);
108
+ u = q(d, T, Math.min(T - d, D)).map(o);
98
109
  return y ? u.reverse() : u;
99
110
  }, t.tickFormat = (r, h) => {
100
- if (r == null && (r = 10), h == null && (h = e === 10 ? "s" : ","), typeof h != "function" && (!(e % 1) && (h = Kt(h)).precision == null && (h.trim = !0), h = jt(h)), r === 1 / 0) return h;
111
+ if (r == null && (r = 10), h == null && (h = e === 10 ? "s" : ","), typeof h != "function" && (!(e % 1) && (h = jt(h)).precision == null && (h.trim = !0), h = Kt(h)), r === 1 / 0) return h;
101
112
  const l = Math.max(1, e * r / t.ticks().length);
102
113
  return (f) => {
103
114
  let y = f / o(Math.round(s(f)));
@@ -108,9 +119,9 @@ function Di(i) {
108
119
  ceil: (r) => o(Math.ceil(s(r)))
109
120
  })), t;
110
121
  }
111
- function xt() {
112
- const i = Di(Gt()).domain([1, 10]);
113
- return i.copy = () => $t(i, xt()).base(i.base()), Ut.apply(i, arguments), i;
122
+ function gt() {
123
+ const i = Ai(Gt()).domain([1, 10]);
124
+ return i.copy = () => $t(i, gt()).base(i.base()), Ut.apply(i, arguments), i;
114
125
  }
115
126
  function k(i, t, n) {
116
127
  i._context.bezierCurveTo(
@@ -164,13 +175,13 @@ L.prototype = {
164
175
  this._x0 = this._x1, this._x1 = i, this._y0 = this._y1, this._y1 = t;
165
176
  }
166
177
  };
167
- function Oi(i) {
178
+ function Mi(i) {
168
179
  return new L(i);
169
180
  }
170
- function gt(i) {
181
+ function yt(i) {
171
182
  this._context = i;
172
183
  }
173
- gt.prototype = {
184
+ yt.prototype = {
174
185
  areaStart: A,
175
186
  areaEnd: A,
176
187
  lineStart: function() {
@@ -210,13 +221,13 @@ gt.prototype = {
210
221
  this._x0 = this._x1, this._x1 = i, this._y0 = this._y1, this._y1 = t;
211
222
  }
212
223
  };
213
- function Ai(i) {
214
- return new gt(i);
224
+ function bi(i) {
225
+ return new yt(i);
215
226
  }
216
- function yt(i) {
227
+ function vt(i) {
217
228
  this._context = i;
218
229
  }
219
- yt.prototype = {
230
+ vt.prototype = {
220
231
  areaStart: function() {
221
232
  this._line = 0;
222
233
  },
@@ -252,13 +263,13 @@ yt.prototype = {
252
263
  this._x0 = this._x1, this._x1 = i, this._y0 = this._y1, this._y1 = t;
253
264
  }
254
265
  };
255
- function Mi(i) {
256
- return new yt(i);
266
+ function Si(i) {
267
+ return new vt(i);
257
268
  }
258
- function vt(i, t) {
269
+ function Tt(i, t) {
259
270
  this._basis = new L(i), this._beta = t;
260
271
  }
261
- vt.prototype = {
272
+ Tt.prototype = {
262
273
  lineStart: function() {
263
274
  this._x = [], this._y = [], this._basis.lineStart();
264
275
  },
@@ -276,9 +287,9 @@ vt.prototype = {
276
287
  this._x.push(+i), this._y.push(+t);
277
288
  }
278
289
  };
279
- const bi = function i(t) {
290
+ const Pi = function i(t) {
280
291
  function n(e) {
281
- return t === 1 ? new L(e) : new vt(e, t);
292
+ return t === 1 ? new L(e) : new Tt(e, t);
282
293
  }
283
294
  return n.beta = function(e) {
284
295
  return i(+e);
@@ -336,7 +347,7 @@ z.prototype = {
336
347
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
337
348
  }
338
349
  };
339
- const Si = function i(t) {
350
+ const Ei = function i(t) {
340
351
  function n(e) {
341
352
  return new z(e, t);
342
353
  }
@@ -387,7 +398,7 @@ V.prototype = {
387
398
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
388
399
  }
389
400
  };
390
- const Pi = function i(t) {
401
+ const wi = function i(t) {
391
402
  function n(e) {
392
403
  return new V(e, t);
393
404
  }
@@ -395,10 +406,10 @@ const Pi = function i(t) {
395
406
  return i(+e);
396
407
  }, n;
397
408
  }(0);
398
- function H(i, t) {
409
+ function Y(i, t) {
399
410
  this._context = i, this._k = (1 - t) / 6;
400
411
  }
401
- H.prototype = {
412
+ Y.prototype = {
402
413
  areaStart: function() {
403
414
  this._line = 0;
404
415
  },
@@ -432,30 +443,30 @@ H.prototype = {
432
443
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
433
444
  }
434
445
  };
435
- const Ei = function i(t) {
446
+ const ki = function i(t) {
436
447
  function n(e) {
437
- return new H(e, t);
448
+ return new Y(e, t);
438
449
  }
439
450
  return n.tension = function(e) {
440
451
  return i(+e);
441
452
  }, n;
442
453
  }(0);
443
- function Y(i, t, n) {
454
+ function X(i, t, n) {
444
455
  var e = i._x1, s = i._y1, o = i._x2, a = i._y2;
445
- if (i._l01_a > Q) {
456
+ if (i._l01_a > tt) {
446
457
  var r = 2 * i._l01_2a + 3 * i._l01_a * i._l12_a + i._l12_2a, h = 3 * i._l01_a * (i._l01_a + i._l12_a);
447
458
  e = (e * r - i._x0 * i._l12_2a + i._x2 * i._l01_2a) / h, s = (s * r - i._y0 * i._l12_2a + i._y2 * i._l01_2a) / h;
448
459
  }
449
- if (i._l23_a > Q) {
460
+ if (i._l23_a > tt) {
450
461
  var l = 2 * i._l23_2a + 3 * i._l23_a * i._l12_a + i._l12_2a, f = 3 * i._l23_a * (i._l23_a + i._l12_a);
451
462
  o = (o * l + i._x1 * i._l23_2a - t * i._l12_2a) / f, a = (a * l + i._y1 * i._l23_2a - n * i._l12_2a) / f;
452
463
  }
453
464
  i._context.bezierCurveTo(e, s, o, a, i._x2, i._y2);
454
465
  }
455
- function Tt(i, t) {
466
+ function Dt(i, t) {
456
467
  this._context = i, this._alpha = t;
457
468
  }
458
- Tt.prototype = {
469
+ Dt.prototype = {
459
470
  areaStart: function() {
460
471
  this._line = 0;
461
472
  },
@@ -492,24 +503,24 @@ Tt.prototype = {
492
503
  this._point = 3;
493
504
  // falls through
494
505
  default:
495
- Y(this, i, t);
506
+ X(this, i, t);
496
507
  break;
497
508
  }
498
509
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
499
510
  }
500
511
  };
501
- const wi = function i(t) {
512
+ const Ri = function i(t) {
502
513
  function n(e) {
503
- return t ? new Tt(e, t) : new z(e, 0);
514
+ return t ? new Dt(e, t) : new z(e, 0);
504
515
  }
505
516
  return n.alpha = function(e) {
506
517
  return i(+e);
507
518
  }, n;
508
519
  }(0.5);
509
- function Dt(i, t) {
520
+ function Ot(i, t) {
510
521
  this._context = i, this._alpha = t;
511
522
  }
512
- Dt.prototype = {
523
+ Ot.prototype = {
513
524
  areaStart: A,
514
525
  areaEnd: A,
515
526
  lineStart: function() {
@@ -547,24 +558,24 @@ Dt.prototype = {
547
558
  this._point = 3, this._x5 = i, this._y5 = t;
548
559
  break;
549
560
  default:
550
- Y(this, i, t);
561
+ X(this, i, t);
551
562
  break;
552
563
  }
553
564
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
554
565
  }
555
566
  };
556
- const ki = function i(t) {
567
+ const Bi = function i(t) {
557
568
  function n(e) {
558
- return t ? new Dt(e, t) : new V(e, 0);
569
+ return t ? new Ot(e, t) : new V(e, 0);
559
570
  }
560
571
  return n.alpha = function(e) {
561
572
  return i(+e);
562
573
  }, n;
563
574
  }(0.5);
564
- function Ot(i, t) {
575
+ function At(i, t) {
565
576
  this._context = i, this._alpha = t;
566
577
  }
567
- Ot.prototype = {
578
+ At.prototype = {
568
579
  areaStart: function() {
569
580
  this._line = 0;
570
581
  },
@@ -596,28 +607,28 @@ Ot.prototype = {
596
607
  this._point = 4;
597
608
  // falls through
598
609
  default:
599
- Y(this, i, t);
610
+ X(this, i, t);
600
611
  break;
601
612
  }
602
613
  this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
603
614
  }
604
615
  };
605
- const Ri = function i(t) {
616
+ const Li = function i(t) {
606
617
  function n(e) {
607
- return t ? new Ot(e, t) : new H(e, 0);
618
+ return t ? new At(e, t) : new Y(e, 0);
608
619
  }
609
620
  return n.alpha = function(e) {
610
621
  return i(+e);
611
622
  }, n;
612
623
  }(0.5);
613
- function et(i) {
624
+ function st(i) {
614
625
  return i < 0 ? -1 : 1;
615
626
  }
616
- function st(i, t, n) {
627
+ function ot(i, t, n) {
617
628
  var e = i._x1 - i._x0, s = t - i._x1, o = (i._y1 - i._y0) / (e || s < 0 && -0), a = (n - i._y1) / (s || e < 0 && -0), r = (o * s + a * e) / (e + s);
618
- return (et(o) + et(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(r)) || 0;
629
+ return (st(o) + st(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(r)) || 0;
619
630
  }
620
- function ot(i, t) {
631
+ function at(i, t) {
621
632
  var n = i._x1 - i._x0;
622
633
  return n ? (3 * (i._y1 - i._y0) / n - t) / 2 : t;
623
634
  }
@@ -644,7 +655,7 @@ B.prototype = {
644
655
  this._context.lineTo(this._x1, this._y1);
645
656
  break;
646
657
  case 3:
647
- I(this, this._t0, ot(this, this._t0));
658
+ I(this, this._t0, at(this, this._t0));
648
659
  break;
649
660
  }
650
661
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -660,26 +671,26 @@ B.prototype = {
660
671
  this._point = 2;
661
672
  break;
662
673
  case 2:
663
- this._point = 3, I(this, ot(this, n = st(this, i, t)), n);
674
+ this._point = 3, I(this, at(this, n = ot(this, i, t)), n);
664
675
  break;
665
676
  default:
666
- I(this, this._t0, n = st(this, i, t));
677
+ I(this, this._t0, n = ot(this, i, t));
667
678
  break;
668
679
  }
669
680
  this._x0 = this._x1, this._x1 = i, this._y0 = this._y1, this._y1 = t, this._t0 = n;
670
681
  }
671
682
  }
672
683
  };
673
- function At(i) {
674
- this._context = new Mt(i);
684
+ function Mt(i) {
685
+ this._context = new bt(i);
675
686
  }
676
- (At.prototype = Object.create(B.prototype)).point = function(i, t) {
687
+ (Mt.prototype = Object.create(B.prototype)).point = function(i, t) {
677
688
  B.prototype.point.call(this, t, i);
678
689
  };
679
- function Mt(i) {
690
+ function bt(i) {
680
691
  this._context = i;
681
692
  }
682
- Mt.prototype = {
693
+ bt.prototype = {
683
694
  moveTo: function(i, t) {
684
695
  this._context.moveTo(t, i);
685
696
  },
@@ -693,16 +704,16 @@ Mt.prototype = {
693
704
  this._context.bezierCurveTo(t, i, e, n, o, s);
694
705
  }
695
706
  };
696
- function Bi(i) {
707
+ function Ni(i) {
697
708
  return new B(i);
698
709
  }
699
- function Li(i) {
700
- return new At(i);
710
+ function Ci(i) {
711
+ return new Mt(i);
701
712
  }
702
- function bt(i) {
713
+ function St(i) {
703
714
  this._context = i;
704
715
  }
705
- bt.prototype = {
716
+ St.prototype = {
706
717
  areaStart: function() {
707
718
  this._line = 0;
708
719
  },
@@ -718,7 +729,7 @@ bt.prototype = {
718
729
  if (this._line ? this._context.lineTo(i[0], t[0]) : this._context.moveTo(i[0], t[0]), n === 2)
719
730
  this._context.lineTo(i[1], t[1]);
720
731
  else
721
- for (var e = at(i), s = at(t), o = 0, a = 1; a < n; ++o, ++a)
732
+ for (var e = rt(i), s = rt(t), o = 0, a = 1; a < n; ++o, ++a)
722
733
  this._context.bezierCurveTo(e[0][o], s[0][o], e[1][o], s[1][o], i[a], t[a]);
723
734
  (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
724
735
  },
@@ -726,7 +737,7 @@ bt.prototype = {
726
737
  this._x.push(+i), this._y.push(+t);
727
738
  }
728
739
  };
729
- function at(i) {
740
+ function rt(i) {
730
741
  var t, n = i.length - 1, e, s = new Array(n), o = new Array(n), a = new Array(n);
731
742
  for (s[0] = 0, o[0] = 2, a[0] = i[0] + 2 * i[1], t = 1; t < n - 1; ++t) s[t] = 1, o[t] = 4, a[t] = 4 * i[t] + 2 * i[t + 1];
732
743
  for (s[n - 1] = 2, o[n - 1] = 7, a[n - 1] = 8 * i[n - 1] + i[n], t = 1; t < n; ++t) e = s[t] / o[t - 1], o[t] -= e, a[t] -= e * a[t - 1];
@@ -734,8 +745,8 @@ function at(i) {
734
745
  for (o[n - 1] = (i[n] + s[n - 1]) / 2, t = 0; t < n - 1; ++t) o[t] = 2 * i[t + 1] - s[t + 1];
735
746
  return [s, o];
736
747
  }
737
- function Ni(i) {
738
- return new bt(i);
748
+ function Ii(i) {
749
+ return new St(i);
739
750
  }
740
751
  function N(i, t) {
741
752
  this._context = i, this._t = t;
@@ -774,16 +785,16 @@ N.prototype = {
774
785
  this._x = i, this._y = t;
775
786
  }
776
787
  };
777
- function Ci(i) {
788
+ function Zi(i) {
778
789
  return new N(i, 0.5);
779
790
  }
780
- function Ii(i) {
791
+ function Fi(i) {
781
792
  return new N(i, 0);
782
793
  }
783
- function Zi(i) {
794
+ function zi(i) {
784
795
  return new N(i, 1);
785
796
  }
786
- class sn extends O {
797
+ class an extends O {
787
798
  /**
788
799
  * focal: object to zoom into
789
800
  * canvasElements: all the elements to translate and zoom on the chart area
@@ -791,7 +802,7 @@ class sn extends O {
791
802
  * */
792
803
  zoomIn(t, n, e) {
793
804
  let s, o, a;
794
- const r = e || q;
805
+ const r = e || W;
795
806
  t && (s = t.x, o = t.y, a = 2);
796
807
  const { width: h, height: l } = ni.getSVGElementSize(this.services.domUtils.getHolder(), {
797
808
  useClientDimensions: !0
@@ -804,11 +815,11 @@ class sn extends O {
804
815
  });
805
816
  }
806
817
  zoomOut(t, n) {
807
- const e = n || q;
818
+ const e = n || W;
808
819
  t.transition().duration(e.duration).ease(e.ease).attr("transform", ""), this.services.events.dispatchEvent(w.CanvasZoom.CANVAS_ZOOM_OUT);
809
820
  }
810
821
  }
811
- class on extends O {
822
+ class rn extends O {
812
823
  init() {
813
824
  this.documentFragment = document.createDocumentFragment();
814
825
  }
@@ -825,7 +836,7 @@ class on extends O {
825
836
  }) : (e = document.createEvent("Event"), e.initEvent(t, !1, !0)), this.documentFragment.dispatchEvent(e);
826
837
  }
827
838
  }
828
- class an extends O {
839
+ class hn extends O {
829
840
  constructor(t, n) {
830
841
  super(t, n);
831
842
  }
@@ -853,7 +864,7 @@ class an extends O {
853
864
  e.download = n, e.href = t, document.body.appendChild(e), e.click(), document.body.removeChild(e);
854
865
  }
855
866
  }
856
- class rn extends O {
867
+ class cn extends O {
857
868
  constructor() {
858
869
  super(...arguments), this.pendingTransitions = {};
859
870
  }
@@ -866,7 +877,7 @@ class rn extends O {
866
877
  return this.pendingTransitions[t._id] = t, t.on("end interrupt cancel", () => {
867
878
  delete this.pendingTransitions[t._id];
868
879
  }), this.model.getOptions().animations === !1 || e === !1 ? t.duration(0) : t.duration(
869
- c(W, n, "duration") || W.default.duration
880
+ c(Q, n, "duration") || Q.default.duration
870
881
  );
871
882
  }
872
883
  getPendingTransitions() {
@@ -877,7 +888,7 @@ function S(i, t) {
877
888
  const n = +v(i) - +v(t);
878
889
  return n < 0 ? -1 : n > 0 ? 1 : n;
879
890
  }
880
- function Fi(i, t, n) {
891
+ function Vi(i, t, n) {
881
892
  const [e, s] = M(
882
893
  n?.in,
883
894
  i,
@@ -885,17 +896,17 @@ function Fi(i, t, n) {
885
896
  );
886
897
  return e.getFullYear() - s.getFullYear();
887
898
  }
888
- function zi(i, t, n) {
899
+ function Yi(i, t, n) {
889
900
  const [e, s] = M(
890
901
  n?.in,
891
902
  i,
892
903
  t
893
- ), o = S(e, s), a = Math.abs(Fi(e, s));
904
+ ), o = S(e, s), a = Math.abs(Vi(e, s));
894
905
  e.setFullYear(1584), s.setFullYear(1584);
895
906
  const r = S(e, s) === -o, h = o * (a - +r);
896
907
  return h === 0 ? 0 : h;
897
908
  }
898
- function X(i, t, n) {
909
+ function H(i, t, n) {
899
910
  const e = v(i, n?.in);
900
911
  if (isNaN(t)) return E(i, NaN);
901
912
  if (!t)
@@ -909,11 +920,11 @@ function X(i, t, n) {
909
920
  s
910
921
  ), e);
911
922
  }
912
- function St(i, t, n) {
913
- return X(i, t * 12, n);
923
+ function Pt(i, t, n) {
924
+ return H(i, t * 12, n);
914
925
  }
915
- function Vi(i, t, n) {
916
- return St(i, -t, n);
926
+ function Xi(i, t, n) {
927
+ return Pt(i, -t, n);
917
928
  }
918
929
  function Hi(i, t, n) {
919
930
  const [e, s] = M(
@@ -923,19 +934,19 @@ function Hi(i, t, n) {
923
934
  ), o = e.getFullYear() - s.getFullYear(), a = e.getMonth() - s.getMonth();
924
935
  return o * 12 + a;
925
936
  }
926
- function Yi(i, t) {
937
+ function Gi(i, t) {
927
938
  const n = v(i, t?.in);
928
939
  return n.setHours(23, 59, 59, 999), n;
929
940
  }
930
- function Xi(i, t) {
941
+ function $i(i, t) {
931
942
  const n = v(i, t?.in), e = n.getMonth();
932
943
  return n.setFullYear(n.getFullYear(), e + 1, 0), n.setHours(23, 59, 59, 999), n;
933
944
  }
934
- function Gi(i, t) {
945
+ function Ui(i, t) {
935
946
  const n = v(i, t?.in);
936
- return +Yi(n, t) == +Xi(n, t);
947
+ return +Gi(n, t) == +$i(n, t);
937
948
  }
938
- function $i(i, t, n) {
949
+ function ji(i, t, n) {
939
950
  const [e, s, o] = M(
940
951
  n?.in,
941
952
  i,
@@ -947,35 +958,35 @@ function $i(i, t, n) {
947
958
  if (r < 1) return 0;
948
959
  s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - a * r);
949
960
  let h = S(s, o) === -a;
950
- Gi(e) && r === 1 && S(e, o) === 1 && (h = !1);
961
+ Ui(e) && r === 1 && S(e, o) === 1 && (h = !1);
951
962
  const l = a * (r - +h);
952
963
  return l === 0 ? 0 : l;
953
964
  }
954
- function Ui(i, t, n) {
955
- return X(i, -t, n);
956
- }
957
965
  function Ki(i, t, n) {
966
+ return H(i, -t, n);
967
+ }
968
+ function qi(i, t, n) {
958
969
  const [e, s] = M(
959
970
  n?.in,
960
971
  i,
961
972
  t
962
- ), o = rt(e, s), a = Math.abs(
973
+ ), o = ht(e, s), a = Math.abs(
963
974
  qt(e, s)
964
975
  );
965
976
  e.setDate(e.getDate() - o * a);
966
- const r = +(rt(e, s) === -o), h = o * (a - r);
977
+ const r = +(ht(e, s) === -o), h = o * (a - r);
967
978
  return h === 0 ? 0 : h;
968
979
  }
969
- function rt(i, t) {
980
+ function ht(i, t) {
970
981
  const n = i.getFullYear() - t.getFullYear() || i.getMonth() - t.getMonth() || i.getDate() - t.getDate() || i.getHours() - t.getHours() || i.getMinutes() - t.getMinutes() || i.getSeconds() - t.getSeconds() || i.getMilliseconds() - t.getMilliseconds();
971
982
  return n < 0 ? -1 : n > 0 ? 1 : n;
972
983
  }
973
- function Pt(i, t, n) {
984
+ function Et(i, t, n) {
974
985
  const e = v(i, n?.in);
975
986
  return isNaN(t) ? E(i, NaN) : (t && e.setDate(e.getDate() + t), e);
976
987
  }
977
- function ji(i, t, n) {
978
- return Pt(i, -t, n);
988
+ function Wi(i, t, n) {
989
+ return Et(i, -t, n);
979
990
  }
980
991
  function G(i) {
981
992
  return (t) => {
@@ -983,48 +994,48 @@ function G(i) {
983
994
  return e === 0 ? 0 : e;
984
995
  };
985
996
  }
986
- function qi(i, t, n) {
997
+ function Qi(i, t, n) {
987
998
  const [e, s] = M(
988
999
  n?.in,
989
1000
  i,
990
1001
  t
991
- ), o = (+e - +s) / ft;
1002
+ ), o = (+e - +s) / pt;
992
1003
  return G(n?.roundingMethod)(o);
993
1004
  }
994
- function Et(i, t, n) {
1005
+ function wt(i, t, n) {
995
1006
  return E(i, +v(i) + t);
996
1007
  }
997
- function wt(i, t, n) {
998
- return Et(i, t * ft);
1008
+ function kt(i, t, n) {
1009
+ return wt(i, t * pt);
999
1010
  }
1000
- function Wi(i, t, n) {
1001
- return wt(i, -t);
1011
+ function Ji(i, t, n) {
1012
+ return kt(i, -t);
1002
1013
  }
1003
- function kt(i, t) {
1014
+ function Rt(i, t) {
1004
1015
  return +v(i) - +v(t);
1005
1016
  }
1006
- function ht(i, t, n) {
1007
- const e = kt(i, t) / pt;
1017
+ function ct(i, t, n) {
1018
+ const e = Rt(i, t) / mt;
1008
1019
  return G(n?.roundingMethod)(e);
1009
1020
  }
1010
1021
  function Z(i, t, n) {
1011
1022
  const e = v(i, n?.in);
1012
- return e.setTime(e.getTime() + t * pt), e;
1023
+ return e.setTime(e.getTime() + t * mt), e;
1013
1024
  }
1014
- function ct(i, t, n) {
1025
+ function lt(i, t, n) {
1015
1026
  return Z(i, -t, n);
1016
1027
  }
1017
- function lt(i, t, n) {
1018
- const e = kt(i, t) / 1e3;
1028
+ function _t(i, t, n) {
1029
+ const e = Rt(i, t) / 1e3;
1019
1030
  return G(n?.roundingMethod)(e);
1020
1031
  }
1021
1032
  function F(i, t, n) {
1022
- return Et(i, t * 1e3);
1033
+ return wt(i, t * 1e3);
1023
1034
  }
1024
- function _t(i, t, n) {
1035
+ function ut(i, t, n) {
1025
1036
  return F(i, -t);
1026
1037
  }
1027
- class hn extends O {
1038
+ class ln extends O {
1028
1039
  constructor() {
1029
1040
  super(...arguments), this.scaleTypes = {
1030
1041
  top: null,
@@ -1212,9 +1223,9 @@ class hn extends O {
1212
1223
  const e = this.model.getOptions(), s = c(e, "axes", t);
1213
1224
  if (s.scaleType === p.TIME) {
1214
1225
  const o = c(e, "timeScale", "addSpaceOnEdges");
1215
- return Ji(n, o);
1226
+ return tn(n, o);
1216
1227
  } else
1217
- return Qi(n, J.paddingRatio, s.scaleType);
1228
+ return nn(n, J.paddingRatio, s.scaleType);
1218
1229
  }
1219
1230
  findVerticalAxesPositions() {
1220
1231
  const t = this.model.getOptions(), n = c(t, "axes"), e = this.isDualAxes();
@@ -1258,7 +1269,7 @@ class hn extends O {
1258
1269
  if (f)
1259
1270
  return [0, 100];
1260
1271
  if (e && a === p.LABELS)
1261
- return Jt(r.map((u) => u[l]));
1272
+ return Qt(r.map((u) => u[l]));
1262
1273
  let g, m;
1263
1274
  const D = this.model.getDataGroupNames();
1264
1275
  if (a === p.LABELS_RATIO)
@@ -1272,18 +1283,18 @@ class hn extends O {
1272
1283
  else if (e.stacked === !0 && D && t === this.getRangeAxisPosition()) {
1273
1284
  const { groupMapsTo: u } = n.data, x = this.model.getDataValuesGroupedByKeys({
1274
1285
  groups: D
1275
- }), Rt = r.filter(
1286
+ }), Bt = r.filter(
1276
1287
  (b) => !D.includes(b[u])
1277
1288
  ), $ = [];
1278
1289
  x.forEach((b) => {
1279
- const { ...Bt } = b;
1280
- let U = 0, K = 0;
1281
- Object.values(di(Bt, "sharedStackKey")).forEach((P) => {
1282
- isNaN(P) || (P < 0 ? K += P : U += P);
1283
- }), $.push([K, U]);
1290
+ const { ...Lt } = b;
1291
+ let U = 0, j = 0;
1292
+ Object.values(gi(Lt, "sharedStackKey")).forEach((P) => {
1293
+ isNaN(P) || (P < 0 ? j += P : U += P);
1294
+ }), $.push([j, U]);
1284
1295
  }), m = [
1285
- ...dt($),
1286
- ...Rt.map((b) => b[l])
1296
+ ...xt($),
1297
+ ...Bt.map((b) => b[l])
1287
1298
  ];
1288
1299
  } else
1289
1300
  m = [], r.forEach((u) => {
@@ -1293,7 +1304,7 @@ class hn extends O {
1293
1304
  return a !== p.TIME && a !== p.LOG && o && m.push(0), y && y.length > 0 && y.forEach((u) => {
1294
1305
  const x = c(u, "value");
1295
1306
  x !== null && m.push(x);
1296
- }), g = mt(m), g = this.extendsDomain(t, g), g;
1307
+ }), g = dt(m), g = this.extendsDomain(t, g), g;
1297
1308
  }
1298
1309
  createScale(t) {
1299
1310
  const n = this.model.getOptions(), e = c(n, "axes", t);
@@ -1302,7 +1313,7 @@ class hn extends O {
1302
1313
  const s = c(e, "scaleType") || p.LINEAR;
1303
1314
  this.scaleTypes[t] = s;
1304
1315
  let o;
1305
- return s === p.TIME ? o = si() : s === p.LOG ? o = xt().base(e.base || 10) : s === p.LABELS || s === p.LABELS_RATIO ? o = oi() : o = Qt(), o.domain(this.getScaleDomain(t)), o;
1316
+ return s === p.TIME ? o = si() : s === p.LOG ? o = gt().base(e.base || 10) : s === p.LABELS || s === p.LABELS_RATIO ? o = oi() : o = Jt(), o.domain(this.getScaleDomain(t)), o;
1306
1317
  }
1307
1318
  getDomainLowerBound(t) {
1308
1319
  let n, e = 0;
@@ -1329,17 +1340,17 @@ class hn extends O {
1329
1340
  };
1330
1341
  }
1331
1342
  }
1332
- function Ji(i, t) {
1343
+ function tn(i, t) {
1333
1344
  const n = new Date(i[0]), e = new Date(i[1]);
1334
- return zi(e, n) > 1 ? [Vi(n, t), St(e, t)] : $i(e, n) > 1 ? [Ui(n, t), X(e, t)] : Ki(e, n) > 1 ? [ji(n, t), Pt(e, t)] : qi(e, n) > 1 ? [Wi(n, t), wt(e, t)] : ht(e, n) > 30 ? [
1335
- ct(n, t * 30),
1345
+ return Yi(e, n) > 1 ? [Xi(n, t), Pt(e, t)] : ji(e, n) > 1 ? [Ki(n, t), H(e, t)] : qi(e, n) > 1 ? [Wi(n, t), Et(e, t)] : Qi(e, n) > 1 ? [Ji(n, t), kt(e, t)] : ct(e, n) > 30 ? [
1346
+ lt(n, t * 30),
1336
1347
  Z(e, t * 30)
1337
- ] : ht(e, n) > 1 ? [ct(n, t), Z(e, t)] : lt(e, n) > 15 ? [
1338
- _t(n, t * 15),
1348
+ ] : ct(e, n) > 1 ? [lt(n, t), Z(e, t)] : _t(e, n) > 15 ? [
1349
+ ut(n, t * 15),
1339
1350
  F(e, t * 15)
1340
- ] : lt(e, n) > 1 ? [_t(n, t), F(e, t)] : [n, e];
1351
+ ] : _t(e, n) > 1 ? [ut(n, t), F(e, t)] : [n, e];
1341
1352
  }
1342
- function Qi([i, t], n, e) {
1353
+ function nn([i, t], n, e) {
1343
1354
  const o = (t - i) * n, a = t <= 0 && t + o > 0 ? 0 : t + o;
1344
1355
  let r = i >= 0 && i - o < 0 ? 0 : i - o;
1345
1356
  if (e === p.LOG && r <= 0) {
@@ -1349,27 +1360,27 @@ function Qi([i, t], n, e) {
1349
1360
  }
1350
1361
  return [r, a];
1351
1362
  }
1352
- class cn extends O {
1363
+ class _n extends O {
1353
1364
  constructor() {
1354
1365
  super(...arguments), this.curveTypes = {
1355
1366
  curveLinear: ri,
1356
1367
  curveLinearClosed: ai,
1357
- curveBasis: Oi,
1358
- curveBasisClosed: Ai,
1359
- curveBasisOpen: Mi,
1360
- curveBundle: bi,
1361
- curveCardinal: Si,
1362
- curveCardinalClosed: Pi,
1363
- curveCardinalOpen: Ei,
1364
- curveCatmullRom: wi,
1365
- curveCatmullRomClosed: ki,
1366
- curveCatmullRomOpen: Ri,
1367
- curveMonotoneX: Bi,
1368
- curveMonotoneY: Li,
1369
- curveNatural: Ni,
1370
- curveStep: Ci,
1371
- curveStepAfter: Zi,
1372
- curveStepBefore: Ii
1368
+ curveBasis: Mi,
1369
+ curveBasisClosed: bi,
1370
+ curveBasisOpen: Si,
1371
+ curveBundle: Pi,
1372
+ curveCardinal: Ei,
1373
+ curveCardinalClosed: wi,
1374
+ curveCardinalOpen: ki,
1375
+ curveCatmullRom: Ri,
1376
+ curveCatmullRomClosed: Bi,
1377
+ curveCatmullRomOpen: Li,
1378
+ curveMonotoneX: Ni,
1379
+ curveMonotoneY: Ci,
1380
+ curveNatural: Ii,
1381
+ curveStep: Zi,
1382
+ curveStepAfter: zi,
1383
+ curveStepBefore: Fi
1373
1384
  };
1374
1385
  }
1375
1386
  getD3Curve() {
@@ -1384,7 +1395,7 @@ class cn extends O {
1384
1395
  return console.warn(`The curve type '${t}' is invalid, using 'curveLinear' instead`), this.curveTypes.curveLinear;
1385
1396
  }
1386
1397
  }
1387
- class ln extends O {
1398
+ class un extends O {
1388
1399
  isZoomBarEnabled() {
1389
1400
  if (!this.services.cartesianScales || !c(this.model.getOptions(), "zoomBar", "top", "enabled"))
1390
1401
  return !1;
@@ -1413,7 +1424,7 @@ class ln extends O {
1413
1424
  if (!s) throw new Error("Not defined: mainXAxisPosition");
1414
1425
  return e.extendsDomain(
1415
1426
  s,
1416
- mt(n, (r) => r[o])
1427
+ dt(n, (r) => r[o])
1417
1428
  );
1418
1429
  }
1419
1430
  handleDomainChange(t, n = { dispatchEvent: !0, type: "manual" }) {
@@ -1492,14 +1503,14 @@ class ln extends O {
1492
1503
  }
1493
1504
  }
1494
1505
  export {
1495
- sn as C,
1496
- on as E,
1497
- an as F,
1498
- rn as T,
1499
- ln as Z,
1500
- cn as a,
1506
+ an as C,
1507
+ rn as E,
1508
+ hn as F,
1509
+ cn as T,
1510
+ un as Z,
1511
+ _n as a,
1501
1512
  ci as b,
1502
- hn as c,
1503
- dt as f
1513
+ ln as c,
1514
+ xt as f
1504
1515
  };
1505
- //# sourceMappingURL=index-CQFVDkrk.mjs.map
1516
+ //# sourceMappingURL=index-CHbrPDmO.mjs.map