@adyen/lume 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as w, ref as I, isRef as dt, computed as d, watch as H, toRefs as P, inject as de, reactive as ge, onMounted as J, onBeforeUnmount as vt, watchEffect as _t, useSlots as V, provide as Ae, defineAsyncComponent as Le } from "vue";
2
- import { format as Bt, ticks as Ft, scaleBand as se, scaleLinear as ce, link as Gt, line as Vt, area as jt } from "d3";
3
- import { createPopper as Mt } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as zt, sankey as Wt, sankeyJustify as Zt } from "d3-sankey";
5
- const Xt = /* @__PURE__ */ w({
1
+ import { defineComponent as w, ref as I, isRef as _t, computed as d, watch as H, toRefs as P, inject as de, reactive as ge, onMounted as J, onBeforeUnmount as pt, watchEffect as ft, useSlots as V, provide as Ae, defineAsyncComponent as Le } from "vue";
2
+ import { format as Ft, ticks as Gt, scaleBand as se, scaleLinear as ce, link as Vt, line as jt, area as Mt } from "d3";
3
+ import { createPopper as zt } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as Wt, sankey as Zt, sankeyJustify as Xt } from "d3-sankey";
5
+ const Ut = /* @__PURE__ */ w({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -73,7 +73,7 @@ function E(t, e, r, n, o, a, l, i) {
73
73
  options: u
74
74
  };
75
75
  }
76
- var Ut = function() {
76
+ var Yt = function() {
77
77
  var e = this, r = e._self._c, n = e._self._setupProxy;
78
78
  return r("g", e._b({ staticClass: "axis__tick", class: {
79
79
  "axis__tick--hovered": e.isHovered,
@@ -83,17 +83,17 @@ var Ut = function() {
83
83
  }, click: function(o) {
84
84
  return n.emit("click", o);
85
85
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
86
- }, Yt = [], Kt = /* @__PURE__ */ E(
87
- Xt,
86
+ }, Kt = [], Jt = /* @__PURE__ */ E(
88
87
  Ut,
89
88
  Yt,
89
+ Kt,
90
90
  !1,
91
91
  null,
92
92
  "59ddc0a6",
93
93
  null,
94
94
  null
95
95
  );
96
- const Jt = Kt.exports, Qt = [
96
+ const Qt = Jt.exports, qt = [
97
97
  "controls",
98
98
  "legend",
99
99
  "axes",
@@ -101,41 +101,41 @@ const Jt = Kt.exports, Qt = [
101
101
  "tooltip",
102
102
  "tooltip-content"
103
103
  ];
104
- function pt() {
104
+ function mt() {
105
105
  return process.env.NODE_ENV === "production";
106
106
  }
107
- function ft(t) {
107
+ function ht(t) {
108
108
  return (t == null ? void 0 : t.map(
109
109
  (e) => e.values.map((r) => r == null ? void 0 : r.value).flat()
110
110
  ).flat()) || [];
111
111
  }
112
- function Be(t) {
112
+ function Fe(t) {
113
113
  return t.length === 1;
114
114
  }
115
- function qt(t) {
115
+ function en(t) {
116
116
  return !!t && t.every(
117
117
  (e) => "color" in e
118
118
  );
119
119
  }
120
- function Oe(t) {
120
+ function $e(t) {
121
121
  return !!t && typeof t == "object" && !Array.isArray(t);
122
122
  }
123
- function mt(t, e) {
123
+ function gt(t, e) {
124
124
  const r = { ...t };
125
125
  return Object.entries(e).forEach(([n, o]) => {
126
- r[n] = Oe(t[n]) && Oe(o) ? mt(t[n], o) : o;
126
+ r[n] = $e(t[n]) && $e(o) ? gt(t[n], o) : o;
127
127
  }), r;
128
128
  }
129
- function en(t) {
130
- return t != null && Oe(t) && "value" in t;
129
+ function tn(t) {
130
+ return t != null && $e(t) && "value" in t;
131
131
  }
132
132
  function oe(t) {
133
133
  return (t == null ? void 0 : t.bandwidth) !== void 0;
134
134
  }
135
- function tn(t) {
135
+ function nn(t) {
136
136
  return oe(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
137
137
  }
138
- const nn = (t, e) => {
138
+ const rn = (t, e) => {
139
139
  if (!t)
140
140
  throw new Error("Data is not a valid array");
141
141
  if (t.length === 0)
@@ -145,17 +145,17 @@ const nn = (t, e) => {
145
145
  ))
146
146
  throw new Error("Index exceeds length of all of the datasets");
147
147
  };
148
- function rn(t, e) {
148
+ function on(t, e) {
149
149
  var r;
150
- return nn(t, e), ((r = t.reduce(
150
+ return rn(t, e), ((r = t.reduce(
151
151
  (n, o) => {
152
152
  var a, l;
153
153
  return (((a = n.values[e]) == null ? void 0 : a.value) ?? 0) > (((l = o.values[e]) == null ? void 0 : l.value) ?? 0) ? n : o;
154
154
  }
155
155
  ).values[e]) == null ? void 0 : r.value) || 0;
156
156
  }
157
- function $e(t) {
158
- const e = dt(t) ? t.value : t;
157
+ function Ie(t) {
158
+ const e = _t(t) ? t.value : t;
159
159
  if (!e)
160
160
  throw new Error("No empty array can be created from specified data value");
161
161
  const r = Math.max(
@@ -164,13 +164,13 @@ function $e(t) {
164
164
  );
165
165
  return Array(r).fill(null);
166
166
  }
167
- function on(t) {
167
+ function an(t) {
168
168
  return oe(t) ? t.domain().length : Math.max(...t.domain());
169
169
  }
170
- function an(t, e) {
170
+ function ln(t, e) {
171
171
  return (r) => Math.round(t * (1 - r) + e * r);
172
172
  }
173
- function ln(t, e, r) {
173
+ function un(t, e, r) {
174
174
  const n = r ? t.length - e : e, o = t.slice(0, n);
175
175
  return t.slice(n).concat(o);
176
176
  }
@@ -184,30 +184,30 @@ function ae(t) {
184
184
  }
185
185
  return t;
186
186
  }
187
- function un(t) {
187
+ function sn(t) {
188
188
  return Object.assign(
189
189
  {},
190
190
  ...Object.keys(t).map(
191
- (e) => Qt.includes(e) ? {} : { [e]: t[e] }
191
+ (e) => qt.includes(e) ? {} : { [e]: t[e] }
192
192
  )
193
193
  );
194
194
  }
195
- const sn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
195
+ const cn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
196
196
  (e, r) => e += (r &= 63) < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r > 62 ? "-" : "_",
197
197
  ""
198
198
  );
199
199
  var K = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
200
200
  Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t))(K || {});
201
- const cn = "[lume] ";
201
+ const dn = "[lume] ";
202
202
  function ne(t, e = !0) {
203
- e && pt() || console.warn(cn + "Warning: " + t);
203
+ e && mt() || console.warn(dn + "Warning: " + t);
204
204
  }
205
205
  const he = (t) => {
206
206
  let e = null;
207
207
  switch (typeof t) {
208
208
  case "string":
209
209
  try {
210
- e = Bt(t);
210
+ e = Ft(t);
211
211
  } catch {
212
212
  ne(K.InvalidFormat), e = null;
213
213
  }
@@ -230,12 +230,12 @@ const he = (t) => {
230
230
  });
231
231
  function Z(t, e) {
232
232
  return { allOptions: d(() => {
233
- const n = dt(e) ? e == null ? void 0 : e.value : e;
234
- return n ? mt(n, t.value) : t.value;
233
+ const n = _t(e) ? e == null ? void 0 : e.value : e;
234
+ return n ? gt(n, t.value) : t.value;
235
235
  }) };
236
236
  }
237
- const dn = 0.2;
238
- function vn(t, e, r) {
237
+ const vn = 0.2;
238
+ function _n(t, e, r) {
239
239
  const n = I(), o = d(() => Math.max(...t.value.range())), a = d(() => e.value.length);
240
240
  function l() {
241
241
  if (!e.value)
@@ -244,7 +244,7 @@ function vn(t, e, r) {
244
244
  (v, s) => v + s.ref.getBoundingClientRect().width,
245
245
  0
246
246
  ), c = Math.ceil(u / a.value);
247
- n.value = c + c * dn;
247
+ n.value = c + c * vn;
248
248
  }
249
249
  function i(u) {
250
250
  if (!e.value)
@@ -257,15 +257,15 @@ function vn(t, e, r) {
257
257
  }
258
258
  return H(e, l), { showTick: i };
259
259
  }
260
- var j = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(j || {}), ht = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(ht || {}), Fe = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Fe || {}), gt = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(gt || {}), Ge = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Ge || {});
260
+ var j = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(j || {}), yt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(yt || {}), Ge = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ge || {}), Ve = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Ve || {}), je = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(je || {});
261
261
  const L = {
262
262
  HORIZONTAL: "horizontal",
263
263
  VERTICAL: "vertical"
264
- }, _n = {
264
+ }, pn = {
265
265
  SINGLE: "single",
266
266
  GROUPED: "grouped",
267
267
  STACKED: "stacked"
268
- }, yt = "No data", Ye = 20, bt = 0.33, kt = 0.5, xt = 12, _e = 8, pn = 1, fn = [
268
+ }, bt = "No data", Je = 20, kt = 0.33, Tt = 0.5, xt = 12, _e = 8, fn = 1, mn = [
269
269
  "auto",
270
270
  "auto-start",
271
271
  "auto-end",
@@ -285,7 +285,7 @@ const L = {
285
285
  function ye(t) {
286
286
  t != null && t.closest("svg") || ne(K.NotContainedInSvg);
287
287
  }
288
- const Tt = {
288
+ const At = {
289
289
  /** Displays a line for each tick. */
290
290
  gridLines: !1,
291
291
  /** Displays the axis title. */
@@ -301,14 +301,14 @@ const Tt = {
301
301
  tickFormat: null,
302
302
  /** Space between the tick label and the axis line. */
303
303
  tickPadding: 8
304
- }, mn = {
305
- ...Tt,
304
+ }, hn = {
305
+ ...At,
306
306
  withTitle: !1,
307
307
  skip: !0
308
- }, hn = {
309
- ...Tt,
308
+ }, gn = {
309
+ ...At,
310
310
  gridLines: !0
311
- }, gn = function(t, e, r) {
311
+ }, yn = function(t, e, r) {
312
312
  const n = d(() => t.value.step() * t.value.paddingInner() / 2);
313
313
  function o(u, c) {
314
314
  return {
@@ -350,7 +350,7 @@ const Tt = {
350
350
  getTickGroupAttributes: o,
351
351
  getTickLabelAttributes: i
352
352
  };
353
- }, yn = function(t, e, r) {
353
+ }, bn = function(t, e, r) {
354
354
  const n = d(() => t.value.step() * t.value.paddingInner() / 2);
355
355
  function o(u, c) {
356
356
  return {
@@ -388,7 +388,7 @@ const Tt = {
388
388
  getTickGroupAttributes: o,
389
389
  getTickLabelAttributes: i
390
390
  };
391
- }, bn = function(t, e, r) {
391
+ }, kn = function(t, e, r) {
392
392
  const n = d(() => {
393
393
  const u = t.value.ticks();
394
394
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
@@ -423,7 +423,7 @@ const Tt = {
423
423
  getTickGroupAttributes: o,
424
424
  getTickLabelAttributes: i
425
425
  };
426
- }, kn = function(t, e, r) {
426
+ }, Tn = function(t, e, r) {
427
427
  const n = d(() => {
428
428
  const u = t.value.ticks();
429
429
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
@@ -462,13 +462,13 @@ const Tt = {
462
462
  getTickLabelAttributes: i
463
463
  };
464
464
  }, xn = {
465
- "x-band-scale-axis": gn,
466
- "y-band-scale-axis": yn,
467
- "x-linear-scale-axis": bn,
468
- "y-linear-scale-axis": kn
465
+ "x-band-scale-axis": yn,
466
+ "y-band-scale-axis": bn,
467
+ "x-linear-scale-axis": kn,
468
+ "y-linear-scale-axis": Tn
469
469
  };
470
- var Ie = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ie || {}), Ee = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Ee || {}), me = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(me || {});
471
- const Tn = /* @__PURE__ */ w({
470
+ var Ee = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ee || {}), we = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(we || {}), me = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(me || {});
471
+ const An = /* @__PURE__ */ w({
472
472
  __name: "lume-axis",
473
473
  props: {
474
474
  scale: {
@@ -483,7 +483,7 @@ const Tn = /* @__PURE__ */ w({
483
483
  position: {
484
484
  type: String,
485
485
  default: void 0,
486
- validator: (t) => t in Ee
486
+ validator: (t) => t in we
487
487
  },
488
488
  containerSize: {
489
489
  type: Object,
@@ -509,15 +509,15 @@ const Tn = /* @__PURE__ */ w({
509
509
  () => g.value === "x" && u.value === L.VERTICAL || g.value === "y" && u.value === L.HORIZONTAL
510
510
  ), { allOptions: p } = Z(
511
511
  i,
512
- g.value === "x" ? mn : hn
513
- ), { showTick: x } = vn(o, s, p.value.skip), A = d(() => {
512
+ g.value === "x" ? hn : gn
513
+ ), { showTick: T } = _n(o, s, p.value.skip), A = d(() => {
514
514
  var $, h, O, N;
515
515
  return g.value === "y" && c.value ? `translate(0, ${(($ = a.value) == null ? void 0 : $.height) / 2})` : g.value === "x" && c.value ? `translate(-${((h = a.value) == null ? void 0 : h.width) / 2}, ${(O = a.value) == null ? void 0 : O.height})` : `translate(0, ${g.value === "x" ? (N = a.value) == null ? void 0 : N.height : 0})`;
516
- }), T = d(() => {
516
+ }), x = d(() => {
517
517
  if (oe(o.value))
518
518
  return o.value.labels || o.value.domain();
519
519
  const { tickCount: $ } = p.value, [h, O] = o.value.domain();
520
- return Ft(h, O, $);
520
+ return Gt(h, O, $);
521
521
  }), k = d(() => {
522
522
  const { tickFormat: $ } = p.value;
523
523
  return he($);
@@ -562,7 +562,7 @@ const Tn = /* @__PURE__ */ w({
562
562
  return (h = s.value[$]) == null ? void 0 : h.ref;
563
563
  }
564
564
  function q() {
565
- m.value = T.value.map(
565
+ m.value = x.value.map(
566
566
  ($, h) => ({
567
567
  value: B($),
568
568
  group: v.getTickGroupAttributes($, h),
@@ -573,17 +573,17 @@ const Tn = /* @__PURE__ */ w({
573
573
  );
574
574
  }
575
575
  function U() {
576
- const $ = o.value.step ? "bandScale" : "linearScale", h = xn[`${g.value}-${Ie[$]}`];
576
+ const $ = o.value.step ? "bandScale" : "linearScale", h = xn[`${g.value}-${Ee[$]}`];
577
577
  Object.entries(h(o, a, p) || []).forEach(
578
578
  ([O, N]) => {
579
579
  v[O] = N;
580
580
  }
581
581
  );
582
582
  }
583
- return H(o, U, { flush: "sync", immediate: !0 }), H(o, q, { immediate: !0 }), H(s, q), H(R, ($) => e("lume__internal--axis-size", $)), J(() => ye(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ie, POSITIONS: Ee, TYPES: me, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: v, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: g, shouldHover: y, allOptions: p, showTick: x, axisTransform: A, ticks: T, tickFormatter: k, isHovering: C, axisLabelOffset: D, axisSize: R, formatTick: B, handleTickMouseenter: Q, handleTickClick: G, getTextNode: M, setTicks: q, init: U, LumeTick: Jt };
583
+ return H(o, U, { flush: "sync", immediate: !0 }), H(o, q, { immediate: !0 }), H(s, q), H(R, ($) => e("lume__internal--axis-size", $)), J(() => ye(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ee, POSITIONS: we, TYPES: me, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: v, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: g, shouldHover: y, allOptions: p, showTick: T, axisTransform: A, ticks: x, tickFormatter: k, isHovering: C, axisLabelOffset: D, axisSize: R, formatTick: B, handleTickMouseenter: Q, handleTickClick: G, getTextNode: M, setTicks: q, init: U, LumeTick: Qt };
584
584
  }
585
585
  });
586
- var An = function() {
586
+ var Ln = function() {
587
587
  var e = this, r = e._self._c, n = e._self._setupProxy;
588
588
  return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(o) {
589
589
  return n.emit("mouseleave", o);
@@ -600,18 +600,18 @@ var An = function() {
600
600
  o
601
601
  );
602
602
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
603
- }, Ln = [], On = /* @__PURE__ */ E(
604
- Tn,
603
+ }, On = [], $n = /* @__PURE__ */ E(
605
604
  An,
606
605
  Ln,
606
+ On,
607
607
  !1,
608
608
  null,
609
609
  null,
610
610
  null,
611
611
  null
612
612
  );
613
- const $n = On.exports;
614
- function In(t, e, r, n) {
613
+ const In = $n.exports;
614
+ function En(t, e, r, n) {
615
615
  const o = d(() => r.value > 0 && r.value < 1), a = d(
616
616
  () => n.value > 0 && n.value < 1
617
617
  ), l = d(
@@ -623,13 +623,13 @@ function In(t, e, r, n) {
623
623
  );
624
624
  return { computedX: l, computedY: i, shouldHaveMinWidth: o, shouldHaveMinHeight: a };
625
625
  }
626
- function En(t, e, r, n) {
626
+ function wn(t, e, r, n) {
627
627
  const o = I(0), a = I(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
628
628
  return J(() => {
629
629
  o.value = r.value, a.value = n.value;
630
630
  }), H(r, (i) => o.value = i), H(n, (i) => a.value = i), { computedWidth: o, computedHeight: a, transformOrigin: l };
631
631
  }
632
- const wn = /* @__PURE__ */ w({
632
+ const Nn = /* @__PURE__ */ w({
633
633
  __name: "lume-bar",
634
634
  props: {
635
635
  x: {
@@ -669,11 +669,11 @@ const wn = /* @__PURE__ */ w({
669
669
  setup(t, { emit: e }) {
670
670
  const r = t, { x: n, y: o, width: a, height: l, transition: i, classList: u } = P(r), c = I(null), v = d(
671
671
  () => typeof u.value == "string" ? [u.value] : u.value
672
- ), s = d(() => i.value === "width"), _ = d(() => i.value === "height"), m = En(n, o, a, l), { computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = In(n, o, a, l), x = d(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = d(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), T = s.value || _.value ? m.transformOrigin : null;
673
- return J(() => ye(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: o, width: a, height: l, transition: i, classList: u, root: c, computedClasses: v, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: x, computedHeight: A, transformOrigin: T };
672
+ ), s = d(() => i.value === "width"), _ = d(() => i.value === "height"), m = wn(n, o, a, l), { computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = En(n, o, a, l), T = d(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = d(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), x = s.value || _.value ? m.transformOrigin : null;
673
+ return J(() => ye(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: o, width: a, height: l, transition: i, classList: u, root: c, computedClasses: v, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: T, computedHeight: A, transformOrigin: x };
674
674
  }
675
675
  });
676
- var Nn = function() {
676
+ var Cn = function() {
677
677
  var e = this, r = e._self._c, n = e._self._setupProxy;
678
678
  return r("rect", { ref: "root", staticClass: "lume-bar", class: [
679
679
  {
@@ -690,18 +690,18 @@ var Nn = function() {
690
690
  }, mouseleave: function(o) {
691
691
  return n.emit("mouseleave", o);
692
692
  } } });
693
- }, Cn = [], Hn = /* @__PURE__ */ E(
694
- wn,
693
+ }, Hn = [], Dn = /* @__PURE__ */ E(
695
694
  Nn,
696
695
  Cn,
696
+ Hn,
697
697
  !1,
698
698
  null,
699
699
  "8e8f732a",
700
700
  null,
701
701
  null
702
702
  );
703
- const Ve = Hn.exports;
704
- function Dn() {
703
+ const Me = Dn.exports;
704
+ function Rn() {
705
705
  const t = I(), e = ge({
706
706
  dimensions: {}
707
707
  }), r = new ResizeObserver((n) => {
@@ -711,11 +711,11 @@ function Dn() {
711
711
  });
712
712
  return J(() => {
713
713
  r.observe(t.value);
714
- }), vt(() => {
714
+ }), pt(() => {
715
715
  r.unobserve(t.value);
716
716
  }), { resizeState: e, resizeRef: t };
717
717
  }
718
- const Rn = /* @__PURE__ */ w({
718
+ const Pn = /* @__PURE__ */ w({
719
719
  __name: "lume-chart-container",
720
720
  props: {
721
721
  margins: {
@@ -737,10 +737,10 @@ const Rn = /* @__PURE__ */ w({
737
737
  },
738
738
  emits: ["click", "mouseenter", "mouseleave", "resize"],
739
739
  setup(t, { emit: e }) {
740
- const r = t, { margins: n, containerSize: o } = P(r), a = I(null), { resizeRef: l, resizeState: i } = Dn(), u = d(
740
+ const r = t, { margins: n, containerSize: o } = P(r), a = I(null), { resizeRef: l, resizeState: i } = Rn(), u = d(
741
741
  () => o.value.height + n.value.top + n.value.bottom
742
742
  );
743
- return _t(() => {
743
+ return ft(() => {
744
744
  if (!a.value)
745
745
  return;
746
746
  const { width: c } = i.dimensions, { height: v } = a.value.getBoundingClientRect();
@@ -756,7 +756,7 @@ const Rn = /* @__PURE__ */ w({
756
756
  }), { __sfc: !0, props: r, emit: e, margins: n, containerSize: o, root: a, resizeRef: l, resizeState: i, svgHeight: u };
757
757
  }
758
758
  });
759
- var Pn = function() {
759
+ var Sn = function() {
760
760
  var e = this, r = e._self._c, n = e._self._setupProxy;
761
761
  return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
762
762
  "lume-chart-container--minimum": !e.noMinSize
@@ -769,22 +769,22 @@ var Pn = function() {
769
769
  }, mouseleave: function(o) {
770
770
  return n.emit("mouseleave", o);
771
771
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
772
- }, Sn = [], Bn = /* @__PURE__ */ E(
773
- Rn,
772
+ }, Bn = [], Fn = /* @__PURE__ */ E(
774
773
  Pn,
775
774
  Sn,
775
+ Bn,
776
776
  !1,
777
777
  null,
778
778
  "36870bc4",
779
779
  null,
780
780
  null
781
781
  );
782
- const Fn = Bn.exports, Gn = /* @__PURE__ */ w({
782
+ const Gn = Fn.exports, Vn = /* @__PURE__ */ w({
783
783
  __name: "lume-chart-legend",
784
784
  props: {
785
785
  data: {
786
786
  type: Array,
787
- validator: qt,
787
+ validator: en,
788
788
  required: !0
789
789
  }
790
790
  },
@@ -794,7 +794,7 @@ const Fn = Bn.exports, Gn = /* @__PURE__ */ w({
794
794
  return { __sfc: !0, emit: e, isEmpty: r };
795
795
  }
796
796
  });
797
- var Vn = function() {
797
+ var jn = function() {
798
798
  var e = this, r = e._self._c, n = e._self._setupProxy;
799
799
  return n.isEmpty ? e._e() : r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(o) {
800
800
  return n.emit("mouseleave");
@@ -805,47 +805,47 @@ var Vn = function() {
805
805
  return n.emit("mouseenter", { index: a, dataset: o, event: l });
806
806
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${o.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(o.label || a) + " ")]);
807
807
  }), 0);
808
- }, jn = [], Mn = /* @__PURE__ */ E(
809
- Gn,
808
+ }, Mn = [], zn = /* @__PURE__ */ E(
810
809
  Vn,
811
810
  jn,
811
+ Mn,
812
812
  !1,
813
813
  null,
814
814
  "4710298b",
815
815
  null,
816
816
  null
817
817
  );
818
- const zn = Mn.exports;
819
- const Wn = {};
820
- var Zn = function() {
818
+ const Wn = zn.exports;
819
+ const Zn = {};
820
+ var Xn = function() {
821
821
  var e = this, r = e._self._c;
822
822
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
823
- }, Xn = [], Un = /* @__PURE__ */ E(
824
- Wn,
823
+ }, Un = [], Yn = /* @__PURE__ */ E(
825
824
  Zn,
826
825
  Xn,
826
+ Un,
827
827
  !1,
828
828
  null,
829
829
  "8af3fac6",
830
830
  null,
831
831
  null
832
832
  );
833
- const Yn = Un.exports;
834
- const Kn = {};
835
- var Jn = function() {
833
+ const Kn = Yn.exports;
834
+ const Jn = {};
835
+ var Qn = function() {
836
836
  var e = this, r = e._self._c;
837
837
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
838
- }, Qn = [], qn = /* @__PURE__ */ E(
839
- Kn,
838
+ }, qn = [], er = /* @__PURE__ */ E(
840
839
  Jn,
841
840
  Qn,
841
+ qn,
842
842
  !1,
843
843
  null,
844
844
  "4ed7ec1b",
845
845
  null,
846
846
  null
847
847
  );
848
- const er = qn.exports, tr = /* @__PURE__ */ w({
848
+ const tr = er.exports, nr = /* @__PURE__ */ w({
849
849
  __name: "lume-tooltip-item",
850
850
  props: {
851
851
  color: {
@@ -857,20 +857,20 @@ const er = qn.exports, tr = /* @__PURE__ */ w({
857
857
  return { __sfc: !0 };
858
858
  }
859
859
  });
860
- var nr = function() {
860
+ var rr = function() {
861
861
  var e = this, r = e._self._c;
862
862
  return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
863
- }, rr = [], or = /* @__PURE__ */ E(
864
- tr,
863
+ }, or = [], ar = /* @__PURE__ */ E(
865
864
  nr,
866
865
  rr,
866
+ or,
867
867
  !1,
868
868
  null,
869
869
  "4f995c3c",
870
870
  null,
871
871
  null
872
872
  );
873
- const ar = or.exports, lr = /* @__PURE__ */ w({
873
+ const lr = ar.exports, ur = /* @__PURE__ */ w({
874
874
  __name: "lume-tooltip",
875
875
  props: {
876
876
  targetElement: {
@@ -884,7 +884,7 @@ const ar = or.exports, lr = /* @__PURE__ */ w({
884
884
  position: {
885
885
  type: String,
886
886
  default: "auto",
887
- validator: (t) => fn.includes(t)
887
+ validator: (t) => mn.includes(t)
888
888
  },
889
889
  fixedPositioning: {
890
890
  type: Boolean,
@@ -927,36 +927,36 @@ const ar = or.exports, lr = /* @__PURE__ */ w({
927
927
  () => u.value.showTitle !== !1 && r.title != null
928
928
  ), m = d(() => he(u.value.valueFormat)), f = d(() => he(u.value.titleFormat)), g = d(
929
929
  () => {
930
- var T;
931
- return ((T = o.value) == null ? void 0 : T.find((k) => k.isSummary)) || {
930
+ var x;
931
+ return ((x = o.value) == null ? void 0 : x.find((k) => k.isSummary)) || {
932
932
  label: u.value.summary ?? r.summary
933
933
  };
934
934
  }
935
935
  ), y = d(() => l.summary || g.value.label);
936
936
  function p() {
937
- r.targetElement && n.value && (i.value = Mt(r.targetElement, n.value, {
937
+ r.targetElement && n.value && (i.value = zt(r.targetElement, n.value, {
938
938
  placement: r.position,
939
939
  strategy: v.value,
940
940
  modifiers: s.value
941
941
  }), e("opened", r.targetElement));
942
942
  }
943
- function x() {
943
+ function T() {
944
944
  i.value && (i.value.destroy(), e("closed"));
945
945
  }
946
946
  function A() {
947
947
  i.value && (u.value.withAnimation !== !1 && n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
948
948
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
949
- }() : x());
949
+ }() : T());
950
950
  }
951
951
  return H(
952
952
  () => r.targetElement,
953
- (T, k) => {
954
- !k && T ? p() : A();
953
+ (x, k) => {
954
+ !k && x ? p() : A();
955
955
  }
956
- ), J(p), vt(x), { __sfc: !0, props: r, emit: e, root: n, items: o, options: a, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: v, allModifiers: s, showTitle: _, formatValue: m, formatTitle: f, summaryItem: g, hasSummary: y, initPopper: p, destroyPopper: x, updatePopper: A, LumeTooltipTitle: Yn, LumeTooltipSummary: er, LumeTooltipItem: ar };
956
+ ), J(p), pt(T), { __sfc: !0, props: r, emit: e, root: n, items: o, options: a, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: v, allModifiers: s, showTitle: _, formatValue: m, formatTitle: f, summaryItem: g, hasSummary: y, initPopper: p, destroyPopper: T, updatePopper: A, LumeTooltipTitle: Kn, LumeTooltipSummary: tr, LumeTooltipItem: lr };
957
957
  }
958
958
  });
959
- var ur = function() {
959
+ var ir = function() {
960
960
  var e = this, r = e._self._c, n = e._self._setupProxy;
961
961
  return r("div", { directives: [{ name: "show", rawName: "v-show", value: e.targetElement, expression: "targetElement" }], ref: "root", staticClass: "lume-tooltip lume-typography--caption", class: {
962
962
  "lume-tooltip--pointer-events": n.options.withPointerEvents
@@ -981,66 +981,66 @@ var ur = function() {
981
981
  });
982
982
  })], 2)];
983
983
  })], 2);
984
- }, ir = [], sr = /* @__PURE__ */ E(
985
- lr,
984
+ }, sr = [], cr = /* @__PURE__ */ E(
986
985
  ur,
987
986
  ir,
987
+ sr,
988
988
  !1,
989
989
  null,
990
990
  "8ec11304",
991
991
  null,
992
992
  null
993
993
  );
994
- const cr = sr.exports;
994
+ const dr = cr.exports;
995
995
  var te = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(te || {});
996
- const dr = te.Categorical, pe = j.Skyblue, vr = Fe.SkyTeal;
997
- function _r(t) {
998
- return t === te.Divergent ? vr : pe;
999
- }
996
+ const vr = te.Categorical, pe = j.Skyblue, _r = Ge.SkyTeal;
1000
997
  function pr(t) {
1001
- return Object.values(Ge).includes(t);
998
+ return t === te.Divergent ? _r : pe;
1002
999
  }
1003
- function Ke(t, e) {
1004
- return e === te.Divergent ? Object.values(Fe).includes(t) : Object.values({
1000
+ function fr(t) {
1001
+ return Object.values(je).includes(t);
1002
+ }
1003
+ function Qe(t, e) {
1004
+ return e === te.Divergent ? Object.values(Ge).includes(t) : Object.values({
1005
1005
  ...j,
1006
- ...ht,
1007
- ...gt,
1008
- ...Ge
1006
+ ...yt,
1007
+ ...Ve,
1008
+ ...je
1009
1009
  }).includes(t);
1010
1010
  }
1011
- function fr(t, e) {
1011
+ function mr(t, e) {
1012
1012
  const r = Object.values(j).indexOf(t);
1013
- return ln(Object.values(j), r > -1 ? r : 0)[e];
1013
+ return un(Object.values(j), r > -1 ? r : 0)[e];
1014
1014
  }
1015
- function mr(t, e) {
1015
+ function hr(t, e) {
1016
1016
  const r = 50 + e * 10;
1017
1017
  return `${t}-${r}`;
1018
1018
  }
1019
- function hr(t, e) {
1019
+ function gr(t, e) {
1020
1020
  const r = (e + 1) * 10;
1021
1021
  return `${t}-${r}`;
1022
1022
  }
1023
- function Je(t, e, r) {
1023
+ function qe(t, e, r) {
1024
1024
  switch (e) {
1025
1025
  default:
1026
1026
  case te.Categorical:
1027
- return pr(t) ? t : fr(t, r);
1027
+ return fr(t) ? t : mr(t, r);
1028
1028
  case te.Sequential:
1029
- return mr(t, r);
1030
- case te.Divergent:
1031
1029
  return hr(t, r);
1030
+ case te.Divergent:
1031
+ return gr(t, r);
1032
1032
  }
1033
1033
  }
1034
- function gr(t, e, r = dr, n) {
1035
- return Ke(t, r) ? t : (n > 4 && (ne(K.ColorLoop), n = n % 5), Ke(e, r) ? Je(e, r, n) : Je(_r(r), r, n));
1036
- }
1037
- function yr(t) {
1038
- return t.map((e) => en(e) ? e : { value: e });
1034
+ function yr(t, e, r = vr, n) {
1035
+ return Qe(t, r) ? t : (n > 4 && (ne(K.ColorLoop), n = n % 5), Qe(e, r) ? qe(e, r, n) : qe(pr(r), r, n));
1039
1036
  }
1040
1037
  function br(t) {
1038
+ return t.map((e) => tn(e) ? e : { value: e });
1039
+ }
1040
+ function kr(t) {
1041
1041
  return t.__internal === !0;
1042
1042
  }
1043
- const je = (t = null) => ({
1043
+ const ze = (t = null) => ({
1044
1044
  data: {
1045
1045
  type: Array,
1046
1046
  required: !0,
@@ -1059,17 +1059,17 @@ const je = (t = null) => ({
1059
1059
  default: null
1060
1060
  }
1061
1061
  });
1062
- function Me(t, e, r, n, o) {
1062
+ function We(t, e, r, n, o) {
1063
1063
  const a = ge({
1064
1064
  width: 0,
1065
1065
  height: 0
1066
- }), l = sn(12), i = d(() => {
1066
+ }), l = cn(12), i = d(() => {
1067
1067
  var v;
1068
1068
  return t.value.length > 5 && ne(K.DatasetLength), (v = t.value) == null ? void 0 : v.map(
1069
1069
  (s, _) => {
1070
- if (br(s))
1070
+ if (kr(s))
1071
1071
  return s;
1072
- const m = yr(s.values), f = gr(
1072
+ const m = br(s.values), f = yr(
1073
1073
  s.color,
1074
1074
  r == null ? void 0 : r.value,
1075
1075
  n == null ? void 0 : n.value.colorPalette,
@@ -1083,9 +1083,9 @@ function Me(t, e, r, n, o) {
1083
1083
  };
1084
1084
  }
1085
1085
  );
1086
- }), u = d(() => Array.isArray(e.value) ? e.value : $e(t.value).map((v, s) => s));
1086
+ }), u = d(() => Array.isArray(e.value) ? e.value : Ie(t.value).map((v, s) => s));
1087
1087
  function c(v) {
1088
- const s = (o == null ? void 0 : o.value) === L.HORIZONTAL && $e(t).length * (((n == null ? void 0 : n.value.barHeight) || Ye) * 2) + ((n == null ? void 0 : n.value.barHeight) || Ye) || v.height;
1088
+ const s = (o == null ? void 0 : o.value) === L.HORIZONTAL && Ie(t).length * (((n == null ? void 0 : n.value.barHeight) || Je) * 2) + ((n == null ? void 0 : n.value.barHeight) || Je) || v.height;
1089
1089
  a.width = v.width, a.height = s;
1090
1090
  }
1091
1091
  return {
@@ -1096,7 +1096,7 @@ function Me(t, e, r, n, o) {
1096
1096
  updateSize: c
1097
1097
  };
1098
1098
  }
1099
- const kr = () => ({
1099
+ const Tr = () => ({
1100
1100
  xScale: {
1101
1101
  type: Function,
1102
1102
  default: null
@@ -1110,64 +1110,64 @@ function xr(t, e, r, n, o) {
1110
1110
  const a = I(null), l = I(null);
1111
1111
  function i() {
1112
1112
  const { width: u, height: c } = r;
1113
- !u && !c || !e.value || !t.value || (n.value === L.HORIZONTAL ? (a.value = qe(
1113
+ !u && !c || !e.value || !t.value || (n.value === L.HORIZONTAL ? (a.value = tt(
1114
1114
  t.value,
1115
1115
  u,
1116
1116
  n.value,
1117
1117
  o.value.startOnZero
1118
- ), l.value = Qe(
1118
+ ), l.value = et(
1119
1119
  e.value,
1120
1120
  c,
1121
1121
  n.value,
1122
1122
  o.value
1123
- )) : (a.value = Qe(
1123
+ )) : (a.value = et(
1124
1124
  e.value,
1125
1125
  u,
1126
1126
  n.value,
1127
1127
  o.value
1128
- ), l.value = qe(
1128
+ ), l.value = tt(
1129
1129
  t.value,
1130
1130
  c,
1131
1131
  n.value,
1132
1132
  o.value.startOnZero
1133
1133
  )));
1134
1134
  }
1135
- return _t(i), { xScale: a, yScale: l };
1135
+ return ft(i), { xScale: a, yScale: l };
1136
1136
  }
1137
- function Qe(t, e, r, n) {
1138
- const o = [0, e], { padding: a, paddingInner: l, paddingOuter: i } = n, u = a ?? (r === L.HORIZONTAL ? kt : bt);
1137
+ function et(t, e, r, n) {
1138
+ const o = [0, e], { padding: a, paddingInner: l, paddingOuter: i } = n, u = a ?? (r === L.HORIZONTAL ? Tt : kt);
1139
1139
  return Object.assign(
1140
1140
  se().range(o).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, v) => v)),
1141
1141
  { labels: t }
1142
1142
  );
1143
1143
  }
1144
- function qe(t, e, r, n) {
1145
- const o = ft(t).filter((v) => v != null), a = [0, e];
1144
+ function tt(t, e, r, n) {
1145
+ const o = ht(t).filter((v) => v != null), a = [0, e];
1146
1146
  if (o.length === 0)
1147
1147
  return ce().range(a).domain([0, 0]).nice();
1148
1148
  const l = Math.min(...o), i = n && l > 0 ? 0 : l, u = Math.max(...o), c = r === L.HORIZONTAL ? [i, u] : [u, i];
1149
1149
  return ce().range(a).domain(c).nice();
1150
1150
  }
1151
- function et(t) {
1151
+ function nt(t) {
1152
1152
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
1153
1153
  }
1154
- function we(t, e) {
1154
+ function Ne(t, e) {
1155
1155
  return oe(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1156
1156
  }
1157
- function tt(t, e, {
1157
+ function rt(t, e, {
1158
1158
  padding: r,
1159
1159
  paddingInner: n,
1160
1160
  paddingOuter: o
1161
1161
  } = {}) {
1162
- const a = r ?? (e === L.HORIZONTAL ? kt : bt);
1162
+ const a = r ?? (e === L.HORIZONTAL ? Tt : kt);
1163
1163
  return t.copy().paddingInner(n ?? a).paddingOuter(o ?? a);
1164
1164
  }
1165
- function At(t) {
1165
+ function Lt(t) {
1166
1166
  return Object.values(L).includes(t);
1167
1167
  }
1168
1168
  const ue = (t, e = !0) => ({
1169
- ...je(t),
1170
- ...kr(),
1169
+ ...ze(t),
1170
+ ...Tr(),
1171
1171
  ...ve(),
1172
1172
  classList: {
1173
1173
  type: [String, Array],
@@ -1181,11 +1181,11 @@ const ue = (t, e = !0) => ({
1181
1181
  orientation: {
1182
1182
  type: String,
1183
1183
  default: L.VERTICAL,
1184
- validator: At
1184
+ validator: Lt
1185
1185
  }
1186
1186
  } : {}
1187
- }), Tr = (t) => ({
1188
- ...je(t),
1187
+ }), Ar = (t) => ({
1188
+ ...ze(t),
1189
1189
  ...ve(),
1190
1190
  hoveredElement: {
1191
1191
  type: [Number, String],
@@ -1207,7 +1207,7 @@ const ue = (t, e = !0) => ({
1207
1207
  orientation: {
1208
1208
  type: String,
1209
1209
  default: L.VERTICAL,
1210
- validator: At
1210
+ validator: Lt
1211
1211
  },
1212
1212
  xScale: {
1213
1213
  type: Function,
@@ -1233,7 +1233,7 @@ const ue = (t, e = !0) => ({
1233
1233
  type: [String, Array],
1234
1234
  default: () => []
1235
1235
  }
1236
- }), Ar = /* @__PURE__ */ w({
1236
+ }), Lr = /* @__PURE__ */ w({
1237
1237
  __name: "lume-overlay-group",
1238
1238
  props: {
1239
1239
  ...be(),
@@ -1244,10 +1244,10 @@ const ue = (t, e = !0) => ({
1244
1244
  },
1245
1245
  emits: ["click", "lume__internal--hover", "mouseover"],
1246
1246
  setup(t, { emit: e }) {
1247
- const r = t, { data: n, orientation: o, xScale: a, yScale: l } = P(r), i = d(() => $e(n));
1247
+ const r = t, { data: n, orientation: o, xScale: a, yScale: l } = P(r), i = d(() => Ie(n));
1248
1248
  function u(c) {
1249
1249
  var y;
1250
- const v = o.value === L.HORIZONTAL ? l.value : a.value, s = v.domain(), _ = tn(v), m = ((y = v.paddingInner) == null ? void 0 : y.call(v)) ?? 0, f = _ * m, g = oe(v) ? v(s[c]) - f / 2 : v(c) - _ / 2;
1250
+ const v = o.value === L.HORIZONTAL ? l.value : a.value, s = v.domain(), _ = nn(v), m = ((y = v.paddingInner) == null ? void 0 : y.call(v)) ?? 0, f = _ * m, g = oe(v) ? v(s[c]) - f / 2 : v(c) - _ / 2;
1251
1251
  return o.value === L.HORIZONTAL ? {
1252
1252
  width: Math.max(...a.value.range()),
1253
1253
  height: _,
@@ -1258,10 +1258,10 @@ const ue = (t, e = !0) => ({
1258
1258
  transform: `translate(${g}, 0)`
1259
1259
  };
1260
1260
  }
1261
- return { __sfc: !0, props: r, emit: e, data: n, orientation: o, xScale: a, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Ve };
1261
+ return { __sfc: !0, props: r, emit: e, data: n, orientation: o, xScale: a, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Me };
1262
1262
  }
1263
1263
  });
1264
- var Lr = function() {
1264
+ var Or = function() {
1265
1265
  var e = this, r = e._self._c, n = e._self._setupProxy;
1266
1266
  return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(o, a) {
1267
1267
  return r(n.LumeBar, e._b({ key: `overlay-${a}`, attrs: { "data-j-lume-overlay-group": a, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
@@ -1270,17 +1270,17 @@ var Lr = function() {
1270
1270
  return n.emit("click", { index: a, event: l });
1271
1271
  } } }, "lume-bar", n.getOverlayBarAttributes(a), !1));
1272
1272
  }), 1);
1273
- }, Or = [], $r = /* @__PURE__ */ E(
1274
- Ar,
1273
+ }, $r = [], Ir = /* @__PURE__ */ E(
1275
1274
  Lr,
1276
1275
  Or,
1276
+ $r,
1277
1277
  !1,
1278
1278
  null,
1279
1279
  null,
1280
1280
  null,
1281
1281
  null
1282
1282
  );
1283
- const Ir = $r.exports, Er = [
1283
+ const Er = Ir.exports, wr = [
1284
1284
  "axis-click",
1285
1285
  "axis-mouseenter",
1286
1286
  "axis-mouseleave",
@@ -1321,14 +1321,14 @@ const Ir = $r.exports, Er = [
1321
1321
  (i) => l(...i.detail)
1322
1322
  );
1323
1323
  }
1324
- return { componentEventPropagator: Er.reduce((a, l) => (a[l] = (i) => t(l, i), a), {}), emitInternalEvent: r, listenInternalEvent: n };
1324
+ return { componentEventPropagator: wr.reduce((a, l) => (a[l] = (i) => t(l, i), a), {}), emitInternalEvent: r, listenInternalEvent: n };
1325
1325
  };
1326
- function wr(t) {
1326
+ function Nr(t) {
1327
1327
  return { hasNegativeValues: d(
1328
- () => ft(t.value).some((r) => r < 0)
1328
+ () => ht(t.value).some((r) => r < 0)
1329
1329
  ) };
1330
1330
  }
1331
- function Nr(t, e, r, n) {
1331
+ function Cr(t, e, r, n) {
1332
1332
  const o = d(
1333
1333
  () => n.value === L.HORIZONTAL
1334
1334
  ), a = d(
@@ -1353,19 +1353,19 @@ function Nr(t, e, r, n) {
1353
1353
  transform: i.value
1354
1354
  })) };
1355
1355
  }
1356
- function Cr(t) {
1356
+ function Hr(t) {
1357
1357
  return t.reduce((e, r) => r.values.map((n, o) => e[o] ? n.value > e[o] ? n.value : e[o] : n.value ?? 0), []);
1358
1358
  }
1359
- function Hr(t) {
1359
+ function Dr(t) {
1360
1360
  return t.reduce((e, r) => r.values.map((n, o) => {
1361
1361
  const a = n.value == null || n.value < 0 ? 0 : n.value;
1362
1362
  return e[o] ? e[o] + a : a;
1363
1363
  }), []);
1364
1364
  }
1365
- const nt = {
1366
- "stacked-bar": Hr
1365
+ const ot = {
1366
+ "stacked-bar": Dr
1367
1367
  };
1368
- function Lt(t, e, r, n, o, a, l) {
1368
+ function Ot(t, e, r, n, o, a, l) {
1369
1369
  const i = d(
1370
1370
  () => {
1371
1371
  var c;
@@ -1373,10 +1373,10 @@ function Lt(t, e, r, n, o, a, l) {
1373
1373
  }
1374
1374
  );
1375
1375
  function u(c) {
1376
- const v = l != null && l.value && nt[l.value] ? nt[l.value](c) : Cr(c);
1376
+ const v = l != null && l.value && ot[l.value] ? ot[l.value](c) : Hr(c);
1377
1377
  t.value = v.map((s, _) => ({
1378
- cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(s) : we(r.value, _),
1379
- cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? we(n.value, _) : n.value(s)
1378
+ cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(s) : Ne(r.value, _),
1379
+ cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Ne(n.value, _) : n.value(s)
1380
1380
  }));
1381
1381
  }
1382
1382
  return H(
@@ -1387,7 +1387,7 @@ function Lt(t, e, r, n, o, a, l) {
1387
1387
  { immediate: !0 }
1388
1388
  ), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: u };
1389
1389
  }
1390
- function Dr() {
1390
+ function Rr() {
1391
1391
  const t = ge({
1392
1392
  opened: !1,
1393
1393
  targetElement: null
@@ -1398,45 +1398,45 @@ function Dr() {
1398
1398
  t.opened = !1, t.targetElement = null;
1399
1399
  } };
1400
1400
  }
1401
- function Rr(t) {
1401
+ function Pr(t) {
1402
1402
  return { getTooltipItems: d(
1403
1403
  () => (r) => t.value.map(({ color: n, label: o, values: a }) => {
1404
1404
  var l, i, u;
1405
1405
  return {
1406
1406
  color: ((l = a[r]) == null ? void 0 : l.color) || n,
1407
1407
  label: o,
1408
- value: ((i = a[r]) == null ? void 0 : i.label) ?? ((u = a[r]) == null ? void 0 : u.value) ?? yt
1408
+ value: ((i = a[r]) == null ? void 0 : i.label) ?? ((u = a[r]) == null ? void 0 : u.value) ?? bt
1409
1409
  };
1410
1410
  })
1411
1411
  ) };
1412
1412
  }
1413
- const Ne = 16, Ce = 8, He = 28, De = 24, re = {
1413
+ const Ce = 16, He = 8, De = 28, Re = 24, re = {
1414
1414
  VERTICAL: {
1415
- top: Ne,
1416
- right: Ce,
1417
- bottom: He,
1418
- left: De
1415
+ top: Ce,
1416
+ right: He,
1417
+ bottom: De,
1418
+ left: Re
1419
1419
  },
1420
1420
  HORIZONTAL: {
1421
- top: Ne,
1422
- right: Ce,
1423
- bottom: He,
1424
- left: De
1421
+ top: Ce,
1422
+ right: He,
1423
+ bottom: De,
1424
+ left: Re
1425
1425
  }
1426
1426
  };
1427
- function Pr(t) {
1428
- return !t || t === "auto" || t.top == null || t.top === "auto" ? Ne : t.top;
1429
- }
1430
1427
  function Sr(t) {
1431
- return !t || t === "auto" || t.right == null || t.right === "auto" ? Ce : t.right;
1428
+ return !t || t === "auto" || t.top == null || t.top === "auto" ? Ce : t.top;
1432
1429
  }
1433
- function Br(t, e) {
1434
- return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || He : t.bottom;
1430
+ function Br(t) {
1431
+ return !t || t === "auto" || t.right == null || t.right === "auto" ? He : t.right;
1435
1432
  }
1436
1433
  function Fr(t, e) {
1437
- return !t || t === "auto" || t.left == null || t.left === "auto" ? e || De : t.left;
1434
+ return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || De : t.bottom;
1435
+ }
1436
+ function Gr(t, e) {
1437
+ return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Re : t.left;
1438
1438
  }
1439
- const Gr = /* @__PURE__ */ w({
1439
+ const Vr = /* @__PURE__ */ w({
1440
1440
  __name: "lume-chart",
1441
1441
  props: {
1442
1442
  ...ue(),
@@ -1446,23 +1446,23 @@ const Gr = /* @__PURE__ */ w({
1446
1446
  }
1447
1447
  },
1448
1448
  setup(t, { emit: e }) {
1449
- const r = t, n = V(), { data: o, labels: a, color: l, options: i, orientation: u, chartType: c } = P(r), v = I(-1), s = I(null), _ = I(null), m = I([]), f = I(null), g = I(0), y = I(0), { allOptions: p } = Z(i), { internalData: x, computedLabels: A, containerSize: T, updateSize: k, chartID: C } = Me(o, a, l, p, u), { listenInternalEvent: D } = X(e, C), { xScale: R, yScale: B } = xr(
1450
- x,
1451
- A,
1449
+ const r = t, n = V(), { data: o, labels: a, color: l, options: i, orientation: u, chartType: c } = P(r), v = I(-1), s = I(null), _ = I(null), m = I([]), f = I(null), g = I(0), y = I(0), { allOptions: p } = Z(i), { internalData: T, computedLabels: A, containerSize: x, updateSize: k, chartID: C } = We(o, a, l, p, u), { listenInternalEvent: D } = X(e, C), { xScale: R, yScale: B } = xr(
1452
1450
  T,
1451
+ A,
1452
+ x,
1453
1453
  u,
1454
1454
  p
1455
1455
  ), Q = d(() => ({
1456
- top: Pr(p.value.margins),
1457
- right: Sr(p.value.margins),
1458
- bottom: Br(p.value.margins, g.value),
1459
- left: Fr(p.value.margins, y.value)
1456
+ top: Sr(p.value.margins),
1457
+ right: Br(p.value.margins),
1458
+ bottom: Fr(p.value.margins, g.value),
1459
+ left: Gr(p.value.margins, y.value)
1460
1460
  })), G = d(() => {
1461
1461
  var b;
1462
- return r.xScale ? et(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, x.value, a.value, T) : R.value;
1462
+ return r.xScale ? nt(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, T.value, a.value, x) : R.value;
1463
1463
  }), M = d(() => {
1464
1464
  var b;
1465
- return r.yScale ? et(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, x.value, a.value, T) : B.value;
1465
+ return r.yScale ? nt(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, T.value, a.value, x) : B.value;
1466
1466
  }), q = d(() => ({
1467
1467
  ...p.value.xAxisOptions,
1468
1468
  withHover: u.value === L.VERTICAL
@@ -1486,27 +1486,27 @@ const Gr = /* @__PURE__ */ w({
1486
1486
  ), z = d(() => {
1487
1487
  const b = [], { noBaseScales: S } = p.value;
1488
1488
  return S || b.push(() => !!(G.value && M.value)), b.every((Y) => Y() === !0);
1489
- }), { hasNegativeValues: W } = wr(x), { negativeBarAttributes: ke } = Nr(
1490
- T,
1489
+ }), { hasNegativeValues: W } = Nr(T), { negativeBarAttributes: ke } = Cr(
1490
+ x,
1491
1491
  G,
1492
1492
  M,
1493
1493
  u
1494
- ), { shouldGenerateTooltipAnchors: We } = Lt(
1494
+ ), { shouldGenerateTooltipAnchors: Xe } = Ot(
1495
1495
  m,
1496
1496
  p,
1497
1497
  G,
1498
1498
  M,
1499
1499
  u,
1500
- x,
1500
+ T,
1501
1501
  c
1502
- ), { tooltipConfig: ee, showTooltip: Ze, hideTooltip: Xe } = Dr(), { getTooltipItems: Nt } = Rr(x), Ct = d(
1502
+ ), { tooltipConfig: ee, showTooltip: Ue, hideTooltip: Ye } = Rr(), { getTooltipItems: Ct } = Pr(T), Ht = d(
1503
1503
  () => p.value.withTooltip !== !1 && ee.opened
1504
- ), Ht = d(
1504
+ ), Dt = d(
1505
1505
  () => {
1506
1506
  var b;
1507
1507
  return ((b = p.value.tooltipOptions) == null ? void 0 : b.position) || "top";
1508
1508
  }
1509
- ), Ue = d(() => {
1509
+ ), Ke = d(() => {
1510
1510
  var S;
1511
1511
  const b = (S = p.value.tooltipOptions) == null ? void 0 : S.withPointerEvents;
1512
1512
  return ee.opened && (!b || b && f.value === !1);
@@ -1517,30 +1517,30 @@ const Gr = /* @__PURE__ */ w({
1517
1517
  return;
1518
1518
  const S = v.value;
1519
1519
  if (p.value.withHover !== !1 && (v.value = b), p.value.withTooltip !== !1) {
1520
- const St = (Y = p.value.tooltipOptions) != null && Y.targetElement ? p.value.tooltipOptions.targetElement === "self" ? _.value.$el : p.value.tooltipOptions.targetElement : s.value[b];
1521
- Ze(St);
1520
+ const Bt = (Y = p.value.tooltipOptions) != null && Y.targetElement ? p.value.tooltipOptions.targetElement === "self" ? _.value.$el : p.value.tooltipOptions.targetElement : s.value[b];
1521
+ Ue(Bt);
1522
1522
  }
1523
1523
  e("hovered-index-changed", { newIndex: b, oldIndex: S });
1524
1524
  }
1525
- function xe() {
1526
- Xe(), v.value = -1;
1525
+ function Te() {
1526
+ Ye(), v.value = -1;
1527
1527
  }
1528
- function Te(b) {
1528
+ function xe(b) {
1529
1529
  if (b > o.value[0].values.length - 1) {
1530
1530
  ne(K.InvalidHoveredIndex);
1531
1531
  return;
1532
1532
  }
1533
1533
  fe(b);
1534
1534
  }
1535
- function Dt() {
1535
+ function Rt() {
1536
1536
  setTimeout(() => {
1537
- Ue.value && xe(), e("chart-mouseleave");
1537
+ Ke.value && Te(), e("chart-mouseleave");
1538
1538
  }, 0);
1539
1539
  }
1540
- function Rt({ index: b, value: S, event: Y }) {
1540
+ function Pt({ index: b, value: S, event: Y }) {
1541
1541
  b !== null && fe(b), e("axis-mouseenter", { index: b, value: S, event: Y });
1542
1542
  }
1543
- function Pt({ index: b, value: S, event: Y }) {
1543
+ function St({ index: b, value: S, event: Y }) {
1544
1544
  e("axis-click", { index: b, value: S, event: Y });
1545
1545
  }
1546
1546
  return H(
@@ -1549,20 +1549,20 @@ const Gr = /* @__PURE__ */ w({
1549
1549
  ), H(
1550
1550
  a,
1551
1551
  (b, S) => e("labels-changed", { newValue: b, oldValue: S })
1552
- ), H(F, (b) => b && ne(K.Empty), { immediate: !0 }), H(() => r.hoveredIndex, Te), H(
1552
+ ), H(F, (b) => b && ne(K.Empty), { immediate: !0 }), H(() => r.hoveredIndex, xe), H(
1553
1553
  m,
1554
1554
  (b) => {
1555
- b && r.hoveredIndex != null && v.value === -1 && Te(r.hoveredIndex);
1555
+ b && r.hoveredIndex != null && v.value === -1 && xe(r.hoveredIndex);
1556
1556
  },
1557
1557
  { flush: "post" }
1558
1558
  ), H(f, (b) => {
1559
- b === !1 && ee.opened && xe();
1559
+ b === !1 && ee.opened && Te();
1560
1560
  }), J(async () => {
1561
1561
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), D("lume__internal--hover", fe);
1562
- }), Ae("chartID", C), Ae("isEmpty", F), Ae("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: o, labels: a, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: v, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: f, xAxisHeight: g, yAxisWidth: y, allOptions: p, internalData: x, computedLabels: A, containerSize: T, updateSize: k, chartID: C, listenInternalEvent: D, xScale: R, yScale: B, computedMargins: Q, computedXScale: G, computedYScale: M, computedXAxisOptions: q, computedYAxisOptions: U, xAxisTitle: $, yAxisTitle: h, showXAxisTitle: O, showYAxisTitle: N, isEmpty: F, isReady: z, hasNegativeValues: W, negativeBarAttributes: ke, shouldGenerateTooltipAnchors: We, tooltipConfig: ee, showTooltip: Ze, hideTooltip: Xe, getTooltipItems: Nt, isTooltipOpened: Ct, tooltipPosition: Ht, shouldHideTooltip: Ue, handleInternalHover: fe, handleHideTooltip: xe, handleExternalHover: Te, handleMouseleave: Dt, handleAxisMouseenter: Rt, handleAxisClick: Pt, LumeAxis: $n, LumeBar: Ve, LumeChartContainer: Fn, LumeChartLegend: zn, LumeTooltip: cr, LumeOverlayGroup: Ir, TOOLTIP_ANCHOR_RADIUS: pn };
1562
+ }), Ae("chartID", C), Ae("isEmpty", F), Ae("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: o, labels: a, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: v, tooltipAnchor: s, chartContainer: _, tooltipAnchorAttributes: m, isHoveringTooltip: f, xAxisHeight: g, yAxisWidth: y, allOptions: p, internalData: T, computedLabels: A, containerSize: x, updateSize: k, chartID: C, listenInternalEvent: D, xScale: R, yScale: B, computedMargins: Q, computedXScale: G, computedYScale: M, computedXAxisOptions: q, computedYAxisOptions: U, xAxisTitle: $, yAxisTitle: h, showXAxisTitle: O, showYAxisTitle: N, isEmpty: F, isReady: z, hasNegativeValues: W, negativeBarAttributes: ke, shouldGenerateTooltipAnchors: Xe, tooltipConfig: ee, showTooltip: Ue, hideTooltip: Ye, getTooltipItems: Ct, isTooltipOpened: Ht, tooltipPosition: Dt, shouldHideTooltip: Ke, handleInternalHover: fe, handleHideTooltip: Te, handleExternalHover: xe, handleMouseleave: Rt, handleAxisMouseenter: Pt, handleAxisClick: St, LumeAxis: In, LumeBar: Me, LumeChartContainer: Gn, LumeChartLegend: Wn, LumeTooltip: dr, LumeOverlayGroup: Er, TOOLTIP_ANCHOR_RADIUS: fn };
1563
1563
  }
1564
1564
  });
1565
- var Vr = function() {
1565
+ var jr = function() {
1566
1566
  var e = this, r = e._self._c, n = e._self._setupProxy;
1567
1567
  return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { id: `lume-chart_${n.chartID}`, margins: n.computedMargins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: n.updateSize, click: function(o) {
1568
1568
  return n.emit("chart-click", o);
@@ -1619,17 +1619,17 @@ var Vr = function() {
1619
1619
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(o, a) {
1620
1620
  return r("circle", e._b({ key: `anchor_${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", o, !1));
1621
1621
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1622
- }, jr = [], Mr = /* @__PURE__ */ E(
1623
- Gr,
1622
+ }, Mr = [], zr = /* @__PURE__ */ E(
1624
1623
  Vr,
1625
1624
  jr,
1625
+ Mr,
1626
1626
  !1,
1627
1627
  null,
1628
1628
  "dad8a6ee",
1629
1629
  null,
1630
1630
  null
1631
1631
  );
1632
- const ie = Mr.exports, zr = /* @__PURE__ */ w({
1632
+ const ie = zr.exports, Wr = /* @__PURE__ */ w({
1633
1633
  __name: "lume-alluvial-node-label",
1634
1634
  props: {
1635
1635
  bottom: { type: Boolean, default: !1 }
@@ -1638,20 +1638,20 @@ const ie = Mr.exports, zr = /* @__PURE__ */ w({
1638
1638
  return { __sfc: !0 };
1639
1639
  }
1640
1640
  });
1641
- var Wr = function() {
1641
+ var Zr = function() {
1642
1642
  var e = this, r = e._self._c;
1643
1643
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1644
- }, Zr = [], Xr = /* @__PURE__ */ E(
1645
- zr,
1644
+ }, Xr = [], Ur = /* @__PURE__ */ E(
1646
1645
  Wr,
1647
1646
  Zr,
1647
+ Xr,
1648
1648
  !1,
1649
1649
  null,
1650
1650
  "d2a7cb8e",
1651
1651
  null,
1652
1652
  null
1653
1653
  );
1654
- const Ur = Xr.exports, Yr = /* @__PURE__ */ w({
1654
+ const Yr = Ur.exports, Kr = /* @__PURE__ */ w({
1655
1655
  __name: "lume-alluvial-node-value",
1656
1656
  props: {
1657
1657
  bottom: { type: Boolean, default: !0 }
@@ -1660,21 +1660,21 @@ const Ur = Xr.exports, Yr = /* @__PURE__ */ w({
1660
1660
  return { __sfc: !0 };
1661
1661
  }
1662
1662
  });
1663
- var Kr = function() {
1663
+ var Jr = function() {
1664
1664
  var e = this, r = e._self._c;
1665
1665
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1666
- }, Jr = [], Qr = /* @__PURE__ */ E(
1667
- Yr,
1666
+ }, Qr = [], qr = /* @__PURE__ */ E(
1668
1667
  Kr,
1669
1668
  Jr,
1669
+ Qr,
1670
1670
  !1,
1671
1671
  null,
1672
1672
  "002e2887",
1673
1673
  null,
1674
1674
  null
1675
1675
  );
1676
- const qr = Qr.exports;
1677
- function rt(t, e) {
1676
+ const eo = qr.exports;
1677
+ function at(t, e) {
1678
1678
  return {
1679
1679
  x0: 0 + (e ? e.left : 0),
1680
1680
  y0: 0 + (e ? e.top : 0),
@@ -1682,32 +1682,32 @@ function rt(t, e) {
1682
1682
  y1: t.height - (e ? e.bottom : 0)
1683
1683
  };
1684
1684
  }
1685
- function eo(t) {
1686
- const e = I(rt(t));
1685
+ function to(t) {
1686
+ const e = I(at(t));
1687
1687
  function r(n) {
1688
- e.value = rt(t, n);
1688
+ e.value = at(t, n);
1689
1689
  }
1690
1690
  return { extents: e, updateExtents: r };
1691
1691
  }
1692
- var Ot = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(Ot || {});
1693
- const to = "[lume] ";
1694
- function no(t, e, r = !0) {
1695
- r && pt() || console.error(to + "Error: " + t, e);
1692
+ var $t = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))($t || {});
1693
+ const no = "[lume] ";
1694
+ function ro(t, e, r = !0) {
1695
+ r && mt() || console.error(no + "Error: " + t, e);
1696
1696
  }
1697
- const ot = 8, ro = 8, oo = 20, ao = 200;
1697
+ const lt = 8, oo = 8, ao = 20, Oe = 2, lo = 200;
1698
1698
  function le(t) {
1699
1699
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1700
1700
  }
1701
- function lo(t, e) {
1701
+ function uo(t, e) {
1702
1702
  return e.nodes.find((r) => r.id === t);
1703
1703
  }
1704
- function uo(t, e) {
1704
+ function io(t, e) {
1705
1705
  return e.links.find((r) => r.id === t);
1706
1706
  }
1707
- function $t(t) {
1707
+ function It(t) {
1708
1708
  return !!(t.sourceLinks && t.targetLinks);
1709
1709
  }
1710
- function io(t, e) {
1710
+ function so(t, e) {
1711
1711
  if (!e)
1712
1712
  return;
1713
1713
  const r = t.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), n = t.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), o = e.filter((l) => r.includes(l.dataset.id)).reduce(
@@ -1724,41 +1724,45 @@ function io(t, e) {
1724
1724
  bottom: 0
1725
1725
  };
1726
1726
  }
1727
- function so(t) {
1728
- return t.map((e) => ({
1729
- x: e.x0,
1730
- y: e.y0,
1731
- width: e.x1 - e.x0,
1732
- height: e.y1 - e.y0,
1733
- textTransform: {
1734
- x: e.depth > 0 ? e.x1 + ot : e.x0 - ot,
1735
- y: (e.y1 + e.y0) / 2
1736
- },
1737
- node: e
1738
- }));
1739
- }
1740
1727
  function co(t) {
1741
- return [t.source.x1, t.y0];
1728
+ return t.map((e) => {
1729
+ const r = e.y1 - e.y0 < Oe;
1730
+ return {
1731
+ x: e.x0,
1732
+ y: e.y0 - (r ? Oe / 2 : 0),
1733
+ // Negative offset to account for the min. height
1734
+ width: e.x1 - e.x0,
1735
+ height: r ? Oe : e.y1 - e.y0,
1736
+ textTransform: {
1737
+ x: e.depth > 0 ? e.x1 + lt : e.x0 - lt,
1738
+ y: (e.y1 + e.y0) / 2
1739
+ },
1740
+ node: e
1741
+ };
1742
+ });
1742
1743
  }
1743
1744
  function vo(t) {
1744
- return [t.target.x0, t.y1];
1745
+ return [t.source.x1, t.y0];
1745
1746
  }
1746
1747
  function _o(t) {
1747
- return t.curveFunction ? Gt(t.curveFunction).source(co).target(vo) : zt();
1748
+ return [t.target.x0, t.y1];
1748
1749
  }
1749
1750
  function po(t) {
1751
+ return t.curveFunction ? Vt(t.curveFunction).source(vo).target(_o) : Wt();
1752
+ }
1753
+ function fo(t) {
1750
1754
  return t.map((e) => {
1751
1755
  var r;
1752
1756
  return {
1753
1757
  id: e.id,
1754
1758
  color: e.color || ((r = e.source) == null ? void 0 : r.color) || pe,
1755
- d: _o(e)(e),
1759
+ d: po(e)(e),
1756
1760
  strokeWidth: Math.max(1, e.width),
1757
1761
  link: e
1758
1762
  };
1759
1763
  });
1760
1764
  }
1761
- function at(t, e, r, n, o) {
1765
+ function ut(t, e, r, n, o) {
1762
1766
  if (n === !1) {
1763
1767
  t.node = {
1764
1768
  ...t.node,
@@ -1766,8 +1770,8 @@ function at(t, e, r, n, o) {
1766
1770
  };
1767
1771
  return;
1768
1772
  }
1769
- const a = Date.now(), l = an(e, r), i = () => {
1770
- let c = (Date.now() - a) / ao;
1773
+ const a = Date.now(), l = ln(e, r), i = () => {
1774
+ let c = (Date.now() - a) / lo;
1771
1775
  c > 1 && (c = 1), t.node = {
1772
1776
  ...t.node,
1773
1777
  transitionValue: o && c === 1 ? void 0 : l(c)
@@ -1775,14 +1779,14 @@ function at(t, e, r, n, o) {
1775
1779
  };
1776
1780
  requestAnimationFrame(i);
1777
1781
  }
1778
- const fo = {
1782
+ const mo = {
1779
1783
  nodes: [],
1780
1784
  links: []
1781
1785
  };
1782
- function lt(t, e) {
1786
+ function it(t, e) {
1783
1787
  return e.find((r) => r.every((n) => n.x0 === t.x0));
1784
1788
  }
1785
- function mo(t, e, r) {
1789
+ function ho(t, e, r) {
1786
1790
  const n = I(null), o = d(() => {
1787
1791
  var s;
1788
1792
  return (s = t.value) == null ? void 0 : s[0].values.map(
@@ -1814,18 +1818,18 @@ function mo(t, e, r) {
1814
1818
  }
1815
1819
  ).filter(Boolean).flat();
1816
1820
  }
1817
- ), l = d(() => Wt().nodeId(le).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), i = d(() => {
1821
+ ), l = d(() => Zt().nodeId(le).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), i = d(() => {
1818
1822
  var s;
1819
1823
  return (s = n.value) == null ? void 0 : s.nodes.reduce(
1820
1824
  (_, m) => {
1821
- const f = lt(m, _);
1825
+ const f = it(m, _);
1822
1826
  return f ? (f.push(m), f.sort((g, y) => (g._y0 || g.y0) - (y._y0 || y.y0))) : _.push([m]), _;
1823
1827
  },
1824
1828
  []
1825
1829
  );
1826
1830
  });
1827
1831
  function u(s) {
1828
- const { offset: _ } = s, m = lt(s, i.value);
1832
+ const { offset: _ } = s, m = it(s, i.value);
1829
1833
  if (!m)
1830
1834
  return;
1831
1835
  const f = m[m.findIndex((y) => y.id === s.id) - 1], g = f && m.length !== 1 ? f.y1 + _ : _;
@@ -1836,11 +1840,11 @@ function mo(t, e, r) {
1836
1840
  (A) => A.source.id === m
1837
1841
  ), p = _.links.filter(
1838
1842
  (A) => A.target.id === m
1839
- ), x = g - f;
1840
- y.forEach((A) => A.y0 += x), p.forEach((A) => A.y1 += x);
1843
+ ), T = g - f;
1844
+ y.forEach((A) => A.y0 += T), p.forEach((A) => A.y1 += T);
1841
1845
  }
1842
1846
  const v = d(() => (n.value && o.value.forEach((s) => {
1843
- typeof s.offset == "number" && (u(s), c(s, n.value));
1847
+ s.value === 0 && (s.fallbackColor = Ve.Grey), typeof s.offset == "number" && (u(s), c(s, n.value));
1844
1848
  }), n.value));
1845
1849
  return H([l, r], () => {
1846
1850
  try {
@@ -1850,45 +1854,45 @@ function mo(t, e, r) {
1850
1854
  [m, f]
1851
1855
  ])({ nodes: o.value, links: a.value });
1852
1856
  } catch (s) {
1853
- no(Ot.GraphProblem, s), n.value = fo;
1857
+ ro($t.GraphProblem, s), n.value = mo;
1854
1858
  }
1855
1859
  }), { columns: i, graph: v };
1856
1860
  }
1857
- function Re(t, e) {
1861
+ function Pe(t, e) {
1858
1862
  return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
1859
- e[r.id] = n, Re(
1863
+ e[r.id] = n, Pe(
1860
1864
  r,
1861
1865
  e
1862
1866
  );
1863
1867
  }), e;
1864
1868
  }
1865
- function Pe(t, e) {
1869
+ function Se(t, e) {
1866
1870
  return e || (e = {}), t.sourceLinks && t.sourceLinks.forEach(({ target: r, value: n }) => {
1867
- e[r.id] = n, Pe(
1871
+ e[r.id] = n, Se(
1868
1872
  r,
1869
1873
  e
1870
1874
  );
1871
1875
  }), e;
1872
1876
  }
1873
- function ho(t, e) {
1877
+ function go(t, e) {
1874
1878
  return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
1875
1879
  }
1876
- const go = (t, e) => {
1880
+ const yo = (t, e) => {
1877
1881
  let r;
1878
- $t(t) ? r = {
1882
+ It(t) ? r = {
1879
1883
  [t.id]: t.value,
1880
- ...Re(t),
1881
- ...Pe(t)
1884
+ ...Pe(t),
1885
+ ...Se(t)
1882
1886
  } : r = {
1883
1887
  [t.source.id]: t.source.value,
1884
1888
  [t.target.id]: t.target.value,
1885
- ...Re(t.source),
1886
- ...Pe(t.target)
1889
+ ...Pe(t.source),
1890
+ ...Se(t.target)
1887
1891
  };
1888
- const n = ho(r, e);
1892
+ const n = go(r, e);
1889
1893
  return { nodes: r, links: n };
1890
- }, yo = (t) => {
1891
- if ($t(t)) {
1894
+ }, bo = (t) => {
1895
+ if (It(t)) {
1892
1896
  const e = [...t.sourceLinks, ...t.targetLinks];
1893
1897
  return {
1894
1898
  nodes: e.reduce(
@@ -1906,15 +1910,15 @@ const go = (t, e) => {
1906
1910
  links: [t.id]
1907
1911
  };
1908
1912
  };
1909
- function bo(t, e, r) {
1913
+ function ko(t, e, r) {
1910
1914
  const n = I(null), o = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1911
1915
  n.value,
1912
1916
  r.value
1913
- ) : e.value.highlightedElements === "closest" ? yo(n.value, r.value) : go(n.value, r.value) : { nodes: {}, links: [] });
1917
+ ) : e.value.highlightedElements === "closest" ? bo(n.value, r.value) : yo(n.value, r.value) : { nodes: {}, links: [] });
1914
1918
  return H(o, (a, l) => {
1915
1919
  if (a.links.length === 0 && Object.keys(a.nodes).length === 0) {
1916
1920
  t.value.forEach((i) => {
1917
- i.node.id in l.nodes && at(
1921
+ i.node.id in l.nodes && ut(
1918
1922
  i,
1919
1923
  l.nodes[i.node.id],
1920
1924
  i.node.value,
@@ -1925,7 +1929,7 @@ function bo(t, e, r) {
1925
1929
  return;
1926
1930
  }
1927
1931
  t.value.forEach((i) => {
1928
- i.node.id in a.nodes && at(
1932
+ i.node.id in a.nodes && ut(
1929
1933
  i,
1930
1934
  i.node.value,
1931
1935
  a.nodes[i.node.id],
@@ -1934,7 +1938,7 @@ function bo(t, e, r) {
1934
1938
  });
1935
1939
  }), { highlightedElements: o, hoveredElement: n };
1936
1940
  }
1937
- const ko = /* @__PURE__ */ w({
1941
+ const To = /* @__PURE__ */ w({
1938
1942
  __name: "lume-alluvial-group",
1939
1943
  props: {
1940
1944
  ...be(),
@@ -1945,7 +1949,7 @@ const ko = /* @__PURE__ */ w({
1945
1949
  },
1946
1950
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1947
1951
  setup(t, { emit: e }) {
1948
- const r = t, n = de("chartID"), { data: o, options: a } = P(r), l = I([]), i = I([]), u = I(null), { extents: c, updateExtents: v } = eo(r.containerSize), { columns: s, graph: _ } = mo(o, a, c), { hoveredElement: m, highlightedElements: f } = bo(
1952
+ const r = t, n = de("chartID"), { data: o, options: a } = P(r), l = I([]), i = I([]), u = I(null), { extents: c, updateExtents: v } = to(r.containerSize), { columns: s, graph: _ } = ho(o, a, c), { hoveredElement: m, highlightedElements: f } = ko(
1949
1953
  l,
1950
1954
  a,
1951
1955
  _
@@ -1953,15 +1957,15 @@ const ko = /* @__PURE__ */ w({
1953
1957
  () => Object.keys(f.value.nodes)
1954
1958
  ), p = d(() => s.value ? s.value.map(
1955
1959
  (h) => h[0].x0 + a.value.nodeWidth / 2
1956
- ) : []), x = d(() => {
1960
+ ) : []), T = d(() => {
1957
1961
  if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
1958
1962
  return a.value.nodeHeaders.slice(0, p.value.length).map((h, O) => ({
1959
1963
  label: h,
1960
1964
  x: p.value[O]
1961
1965
  }));
1962
1966
  }), A = d(
1963
- () => a.value.nodeHeaderPadding ?? oo
1964
- ), T = d(() => {
1967
+ () => a.value.nodeHeaderPadding ?? ao
1968
+ ), x = d(() => {
1965
1969
  if (!(!a.value.gradient || !_.value))
1966
1970
  return _.value.links.reduce((h, O) => {
1967
1971
  const { source: N, target: F } = O, z = N.color || N.fallbackColor, W = F.deriveColorFromIncomingLinks ? z : F.color || F.fallbackColor;
@@ -2024,7 +2028,7 @@ const ko = /* @__PURE__ */ w({
2024
2028
  m.value = null;
2025
2029
  return;
2026
2030
  }
2027
- const O = lo(h, _.value) || uo(h, _.value);
2031
+ const O = uo(h, _.value) || io(h, _.value);
2028
2032
  if (!O) {
2029
2033
  ne(K.InvalidHoveredElement);
2030
2034
  return;
@@ -2036,13 +2040,13 @@ const ko = /* @__PURE__ */ w({
2036
2040
  return ((O = k.value.find(({ id: N }) => h === N)) == null ? void 0 : O.subNodes) ?? [];
2037
2041
  }
2038
2042
  return H(_, (h) => {
2039
- l.value = so(h.nodes), i.value = po(h.links).reverse(), m.value == null && r.hoveredElementId != null && U(r.hoveredElementId);
2043
+ l.value = co(h.nodes), i.value = fo(h.links).reverse(), m.value == null && r.hoveredElementId != null && U(r.hoveredElementId);
2040
2044
  }), H([r.containerSize, u], () => {
2041
2045
  if (r.containerSize.width && r.containerSize.height) {
2042
- const h = io(_.value, u.value);
2046
+ const h = so(_.value, u.value);
2043
2047
  v(h);
2044
2048
  }
2045
- }), H(() => r.hoveredElementId, U), { __sfc: !0, props: r, emit: e, chartID: n, data: o, options: a, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: v, columns: s, graph: _, hoveredElement: m, highlightedElements: f, formatValue: g, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: x, computedNodeHeaderPadding: A, gradients: T, nodesDerivingColorFromIncomingLinks: k, getLinkStroke: C, isNodeFaded: D, isNodeFocused: R, isLinkFaded: B, isLinkFocused: Q, shouldDeriveNodeColorFromIncomingLinks: G, handleLinkMouseover: M, handleLinkMouseleave: q, handleExternalHover: U, getSubNodesDerivingColorFromIncomingLinks: $, LumeAlluvialNodeLabel: Ur, LumeAlluvialNodeValue: qr, GHOST_STROKE_WIDTH_OFFSET: ro };
2049
+ }), H(() => r.hoveredElementId, U), { __sfc: !0, props: r, emit: e, chartID: n, data: o, options: a, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: v, columns: s, graph: _, hoveredElement: m, highlightedElements: f, formatValue: g, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: T, computedNodeHeaderPadding: A, gradients: x, nodesDerivingColorFromIncomingLinks: k, getLinkStroke: C, isNodeFaded: D, isNodeFocused: R, isLinkFaded: B, isLinkFocused: Q, shouldDeriveNodeColorFromIncomingLinks: G, handleLinkMouseover: M, handleLinkMouseleave: q, handleExternalHover: U, getSubNodesDerivingColorFromIncomingLinks: $, LumeAlluvialNodeLabel: Yr, LumeAlluvialNodeValue: eo, GHOST_STROKE_WIDTH_OFFSET: oo };
2046
2050
  }
2047
2051
  });
2048
2052
  var xo = function() {
@@ -2097,17 +2101,17 @@ var xo = function() {
2097
2101
  o.node.value
2098
2102
  ) })], 2)], 2)]);
2099
2103
  })], 2);
2100
- }, To = [], Ao = /* @__PURE__ */ E(
2101
- ko,
2102
- xo,
2104
+ }, Ao = [], Lo = /* @__PURE__ */ E(
2103
2105
  To,
2106
+ xo,
2107
+ Ao,
2104
2108
  !1,
2105
2109
  null,
2106
2110
  "6fe8c153",
2107
2111
  null,
2108
2112
  null
2109
2113
  );
2110
- const Lo = Ao.exports, Oo = {
2114
+ const Oo = Lo.exports, $o = {
2111
2115
  margins: {
2112
2116
  top: 0,
2113
2117
  right: 0,
@@ -2123,16 +2127,16 @@ const Lo = Ao.exports, Oo = {
2123
2127
  highlightedElements: "closest",
2124
2128
  nodePadding: 16,
2125
2129
  nodeWidth: 16,
2126
- nodeAlign: Zt,
2130
+ nodeAlign: Xt,
2127
2131
  valueFormat: (t) => String(t),
2128
2132
  iterations: 6
2129
- }, $o = /* @__PURE__ */ w({
2133
+ }, Io = /* @__PURE__ */ w({
2130
2134
  __name: "lume-alluvial-diagram",
2131
2135
  props: {
2132
- ...Tr(Be)
2136
+ ...Ar(Fe)
2133
2137
  },
2134
2138
  setup(t, { emit: e }) {
2135
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), a = un(V()), { options: l } = P(r), { allOptions: i } = Z(l, Oo);
2139
+ const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), a = sn(V()), { options: l } = P(r), { allOptions: i } = Z(l, $o);
2136
2140
  function u(c) {
2137
2141
  return {
2138
2142
  ...c,
@@ -2140,10 +2144,10 @@ const Lo = Ao.exports, Oo = {
2140
2144
  // Alluvial chart never uses base scales
2141
2145
  };
2142
2146
  }
2143
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, groupSlots: a, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ie, LumeAlluvialGroup: Lo };
2147
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, groupSlots: a, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: ie, LumeAlluvialGroup: Oo };
2144
2148
  }
2145
2149
  });
2146
- var Io = function() {
2150
+ var Eo = function() {
2147
2151
  var e = this, r = e._self._c, n = e._self._setupProxy;
2148
2152
  return r(n.LumeChart, e._g(e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2149
2153
  return [r(n.LumeAlluvialGroup, e._g(e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(a, l) {
@@ -2156,26 +2160,26 @@ var Io = function() {
2156
2160
  return [e._t(a, null, null, l || {})];
2157
2161
  } };
2158
2162
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2159
- }, Eo = [], wo = /* @__PURE__ */ E(
2160
- $o,
2163
+ }, wo = [], No = /* @__PURE__ */ E(
2161
2164
  Io,
2162
2165
  Eo,
2166
+ wo,
2163
2167
  !1,
2164
2168
  null,
2165
2169
  null,
2166
2170
  null,
2167
2171
  null
2168
2172
  );
2169
- const Va = wo.exports;
2170
- var Se = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Se || {});
2171
- const No = /* @__PURE__ */ w({
2173
+ const ja = No.exports;
2174
+ var Be = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Be || {});
2175
+ const Co = /* @__PURE__ */ w({
2172
2176
  __name: "lume-bar-chart",
2173
2177
  props: {
2174
2178
  ...ue(),
2175
2179
  type: {
2176
2180
  type: String,
2177
2181
  default: null,
2178
- validator: (t) => t in Se || t == null
2182
+ validator: (t) => t in Be || t == null
2179
2183
  }
2180
2184
  },
2181
2185
  setup(t, { emit: e }) {
@@ -2203,55 +2207,55 @@ const No = /* @__PURE__ */ w({
2203
2207
  }
2204
2208
  const v = d(() => {
2205
2209
  if (r.data) {
2206
- if (Be(r.data))
2210
+ if (Fe(r.data))
2207
2211
  return l.get("single");
2208
2212
  if (!r.type)
2209
2213
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2210
2214
  return l.get(r.type);
2211
2215
  }
2212
2216
  });
2213
- return { __sfc: !0, TYPES: Se, LumeSingleBarChart: n, LumeGroupedBarChart: o, LumeStackedBarChart: a, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: v };
2217
+ return { __sfc: !0, TYPES: Be, LumeSingleBarChart: n, LumeGroupedBarChart: o, LumeStackedBarChart: a, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: v };
2214
2218
  }
2215
2219
  });
2216
- var Co = function() {
2220
+ var Ho = function() {
2217
2221
  var e = this, r = e._self._c, n = e._self._setupProxy;
2218
2222
  return r(n.component, e._g(e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(o, a) {
2219
2223
  return { key: a, fn: function(l) {
2220
2224
  return [e._t(a, null, null, l || {})];
2221
2225
  } };
2222
2226
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2223
- }, Ho = [], Do = /* @__PURE__ */ E(
2224
- No,
2227
+ }, Do = [], Ro = /* @__PURE__ */ E(
2225
2228
  Co,
2226
2229
  Ho,
2230
+ Do,
2227
2231
  !1,
2228
2232
  null,
2229
2233
  null,
2230
2234
  null,
2231
2235
  null
2232
2236
  );
2233
- const ja = Do.exports;
2234
- function Ro(t) {
2235
- return Object.values(_n).includes(t) || t == null;
2236
- }
2237
+ const Ma = Ro.exports;
2237
2238
  function Po(t) {
2239
+ return Object.values(pn).includes(t) || t == null;
2240
+ }
2241
+ function So(t) {
2238
2242
  return Object.values(L).includes(t);
2239
2243
  }
2240
- const So = (t = !1) => ({
2244
+ const Bo = (t = !1) => ({
2241
2245
  type: {
2242
2246
  type: String,
2243
2247
  default: null,
2244
- validator: Ro
2248
+ validator: Po
2245
2249
  },
2246
2250
  ...t ? {
2247
2251
  orientation: {
2248
2252
  type: String,
2249
2253
  default: L.VERTICAL,
2250
- validator: Po
2254
+ validator: So
2251
2255
  }
2252
2256
  } : {}
2253
2257
  });
2254
- function It(t) {
2258
+ function Et(t) {
2255
2259
  const e = d(() => t.value.map((n) => ({
2256
2260
  ...n,
2257
2261
  values: n.values.map((o) => ({
@@ -2266,10 +2270,10 @@ function It(t) {
2266
2270
  });
2267
2271
  return { multiBarData: e, groupedData: r };
2268
2272
  }
2269
- function Bo(t, e) {
2273
+ function Fo(t, e) {
2270
2274
  return t.value.length === 1 ? "single" : e.value;
2271
2275
  }
2272
- function Fo(t, e, r) {
2276
+ function Go(t, e, r) {
2273
2277
  const n = d(
2274
2278
  () => r.value === L.HORIZONTAL
2275
2279
  );
@@ -2279,7 +2283,7 @@ function Fo(t, e, r) {
2279
2283
  const a = d(() => n.value ? (() => (o(t.value), t.value))() : t.value), l = d(() => n.value ? e.value : (() => (o(e.value), e.value))());
2280
2284
  return { barXScale: a, barYScale: l };
2281
2285
  }
2282
- function Go(t, e, r, n, o, a) {
2286
+ function Vo(t, e, r, n, o, a) {
2283
2287
  const l = d(
2284
2288
  () => n.value === L.HORIZONTAL
2285
2289
  );
@@ -2294,20 +2298,20 @@ function Go(t, e, r, n, o, a) {
2294
2298
  return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
2295
2299
  }
2296
2300
  function v(s, _, m) {
2297
- const { value: f, color: g } = s, y = g ?? t.value[_].color ?? pe, { x: p, y: x } = i(f, m), A = u(f), T = c(f);
2301
+ const { value: f, color: g } = s, y = g ?? t.value[_].color ?? pe, { x: p, y: T } = i(f, m), A = u(f), x = c(f);
2298
2302
  return {
2299
2303
  classList: [`lume-fill--${y}`, ...a],
2300
2304
  x: p,
2301
- y: x,
2305
+ y: T,
2302
2306
  width: A,
2303
- height: T,
2307
+ height: x,
2304
2308
  isFaded: o.value !== -1 && o.value !== m,
2305
2309
  isNegative: f < 0
2306
2310
  };
2307
2311
  }
2308
2312
  return { barAttributeGenerator: v };
2309
2313
  }
2310
- function Vo(t, e, r, n, o, a) {
2314
+ function jo(t, e, r, n, o, a) {
2311
2315
  const l = d(
2312
2316
  () => n.value === L.HORIZONTAL
2313
2317
  ), i = d(() => se().domain(t.value.map((f, g) => g)).range([0, e.value.bandwidth()]).padding(0)), u = d(() => se().domain(t.value.map((f, g) => g)).range([0, r.value.bandwidth()]).padding(0));
@@ -2331,10 +2335,10 @@ function Vo(t, e, r, n, o, a) {
2331
2335
  return l.value ? u.value.bandwidth() : f < 0 ? r.value(f) - r.value(0) : r.value(0) - r.value(f);
2332
2336
  }
2333
2337
  function m(f, g, y) {
2334
- const { value: p, color: x } = f, A = x ?? t.value[g].color ?? Object.values(j)[g], T = c(p, y, g), k = v(p, y, g), C = s(p), D = _(p);
2338
+ const { value: p, color: T } = f, A = T ?? t.value[g].color ?? Object.values(j)[g], x = c(p, y, g), k = v(p, y, g), C = s(p), D = _(p);
2335
2339
  return {
2336
2340
  classList: [`lume-fill--${A}`, ...a],
2337
- x: T,
2341
+ x,
2338
2342
  y: k,
2339
2343
  width: C,
2340
2344
  height: D,
@@ -2344,7 +2348,7 @@ function Vo(t, e, r, n, o, a) {
2344
2348
  }
2345
2349
  return { barAttributeGenerator: m };
2346
2350
  }
2347
- function jo(t, e, r) {
2351
+ function Mo(t, e, r) {
2348
2352
  const n = d(
2349
2353
  () => e.value === L.HORIZONTAL
2350
2354
  ), o = d(() => {
@@ -2363,7 +2367,7 @@ function jo(t, e, r) {
2363
2367
  });
2364
2368
  function l(u, c, v) {
2365
2369
  return n.value ? ce().domain([o.value, a.value]).range([0, v.width]) : Object.assign(
2366
- tt(
2370
+ rt(
2367
2371
  se().domain(c.map((s, _) => _)).range([0, v.width]),
2368
2372
  e.value,
2369
2373
  r.value
@@ -2373,7 +2377,7 @@ function jo(t, e, r) {
2373
2377
  }
2374
2378
  function i(u, c, v) {
2375
2379
  return n.value ? Object.assign(
2376
- tt(
2380
+ rt(
2377
2381
  se().domain(c.map((s, _) => _)).range([0, v.height]),
2378
2382
  e.value,
2379
2383
  r.value
@@ -2383,17 +2387,17 @@ function jo(t, e, r) {
2383
2387
  }
2384
2388
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2385
2389
  }
2386
- function Mo(t, e, r, n, o, a) {
2390
+ function zo(t, e, r, n, o, a) {
2387
2391
  const l = d(
2388
2392
  () => n.value === L.HORIZONTAL
2389
2393
  ), i = d(
2390
2394
  () => l.value ? r.value.domain() : e.value.domain()
2391
2395
  ), u = d(
2392
- () => t.value.map((p) => p.values.map((x) => x == null ? void 0 : x.value))
2396
+ () => t.value.map((p) => p.values.map((T) => T == null ? void 0 : T.value))
2393
2397
  );
2394
- function c(p, x, A) {
2395
- let T, k;
2396
- return l.value ? (T = e.value(p >= 0 ? 0 + A : p + A), k = r.value(i.value[x])) : (T = e.value(i.value[x]), k = r.value(p >= 0 ? p + A : 0 + A)), { x: T, y: k };
2398
+ function c(p, T, A) {
2399
+ let x, k;
2400
+ return l.value ? (x = e.value(p >= 0 ? 0 + A : p + A), k = r.value(i.value[T])) : (x = e.value(i.value[T]), k = r.value(p >= 0 ? p + A : 0 + A)), { x, y: k };
2397
2401
  }
2398
2402
  function v(p) {
2399
2403
  return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
@@ -2407,31 +2411,31 @@ function Mo(t, e, r, n, o, a) {
2407
2411
  function m(p) {
2408
2412
  return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
2409
2413
  }
2410
- function f(p, x) {
2411
- return p ? u.value.reduce((A, T, k) => (k < p && T[x] >= 0 && (A += T[x]), A), 0) : 0;
2414
+ function f(p, T) {
2415
+ return p ? u.value.reduce((A, x, k) => (k < p && x[T] >= 0 && (A += x[T]), A), 0) : 0;
2412
2416
  }
2413
- function g(p, x) {
2414
- return p ? u.value.reduce((A, T, k) => (k < p && T[x] < 0 && (A += T[x]), A), 0) : 0;
2417
+ function g(p, T) {
2418
+ return p ? u.value.reduce((A, x, k) => (k < p && x[T] < 0 && (A += x[T]), A), 0) : 0;
2415
2419
  }
2416
- function y(p, x, A) {
2417
- const { value: T, color: k } = p, C = T >= 0 ? v(T) : s(T), D = T >= 0 ? _(T) : m(T), R = T >= 0 ? f(x, A) : g(x, A), { x: B, y: Q } = c(T, A, R);
2420
+ function y(p, T, A) {
2421
+ const { value: x, color: k } = p, C = x >= 0 ? v(x) : s(x), D = x >= 0 ? _(x) : m(x), R = x >= 0 ? f(T, A) : g(T, A), { x: B, y: Q } = c(x, A, R);
2418
2422
  return {
2419
- classList: [`lume-fill--${k ?? t.value[x].color ?? Object.values(j)[x]}`, ...a],
2423
+ classList: [`lume-fill--${k ?? t.value[T].color ?? Object.values(j)[T]}`, ...a],
2420
2424
  width: C,
2421
2425
  height: D,
2422
2426
  x: B,
2423
2427
  y: Q,
2424
2428
  isFaded: o.value !== -1 && o.value !== A,
2425
- isNegative: T < 0
2429
+ isNegative: x < 0
2426
2430
  };
2427
2431
  }
2428
2432
  return { barAttributeGenerator: y };
2429
2433
  }
2430
- const ut = {
2431
- single: Go,
2432
- grouped: Vo,
2433
- stacked: Mo
2434
- }, zo = /* @__PURE__ */ w({
2434
+ const st = {
2435
+ single: Vo,
2436
+ grouped: jo,
2437
+ stacked: zo
2438
+ }, Wo = /* @__PURE__ */ w({
2435
2439
  __name: "lume-bar-group",
2436
2440
  props: {
2437
2441
  ...be(),
@@ -2439,7 +2443,7 @@ const ut = {
2439
2443
  type: [String, Array],
2440
2444
  default: () => []
2441
2445
  },
2442
- ...So(!0),
2446
+ ...Bo(!0),
2443
2447
  transition: {
2444
2448
  type: Boolean,
2445
2449
  default: !0
@@ -2456,8 +2460,8 @@ const ut = {
2456
2460
  xScale: u,
2457
2461
  yScale: c,
2458
2462
  classList: v
2459
- } = P(r), s = de("chartID"), { emitInternalEvent: _ } = X(e, s), { groupedData: m } = It(n), { barXScale: f, barYScale: g } = Fo(u, c, a), y = d(() => typeof v.value == "string" ? [v.value] : v.value), p = d(() => {
2460
- const T = Bo(n, i), { barAttributeGenerator: k } = ut[T](
2463
+ } = P(r), s = de("chartID"), { emitInternalEvent: _ } = X(e, s), { groupedData: m } = Et(n), { barXScale: f, barYScale: g } = Go(u, c, a), y = d(() => typeof v.value == "string" ? [v.value] : v.value), p = d(() => {
2464
+ const x = Fo(n, i), { barAttributeGenerator: k } = st[x](
2461
2465
  n,
2462
2466
  f,
2463
2467
  g,
@@ -2466,17 +2470,17 @@ const ut = {
2466
2470
  y.value
2467
2471
  );
2468
2472
  return k;
2469
- }), x = d(() => {
2473
+ }), T = d(() => {
2470
2474
  if (l.value)
2471
2475
  return a.value === L.HORIZONTAL ? "width" : "height";
2472
2476
  });
2473
- async function A(T) {
2474
- e("lume__internal--hover", T), _("lume__internal--hover", T);
2477
+ async function A(x) {
2478
+ e("lume__internal--hover", x), _("lume__internal--hover", x);
2475
2479
  }
2476
- return { __sfc: !0, MIXIN_MAP: ut, props: r, emit: e, data: n, hoveredIndex: o, orientation: a, transition: l, type: i, xScale: u, yScale: c, classList: v, chartID: s, emitInternalEvent: _, groupedData: m, barXScale: f, barYScale: g, computedClasses: y, getBarAttributes: p, computedTransition: x, handleInternalHover: A, LumeBar: Ve };
2480
+ return { __sfc: !0, MIXIN_MAP: st, props: r, emit: e, data: n, hoveredIndex: o, orientation: a, transition: l, type: i, xScale: u, yScale: c, classList: v, chartID: s, emitInternalEvent: _, groupedData: m, barXScale: f, barYScale: g, computedClasses: y, getBarAttributes: p, computedTransition: T, handleInternalHover: A, LumeBar: Me };
2477
2481
  }
2478
2482
  });
2479
- var Wo = function() {
2483
+ var Zo = function() {
2480
2484
  var e = this, r = e._self._c, n = e._self._setupProxy;
2481
2485
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(o, a) {
2482
2486
  return r("g", { key: a, on: { mouseenter: function(l) {
@@ -2491,17 +2495,17 @@ var Wo = function() {
2491
2495
  } } }, "lume-bar", n.getBarAttributes(l, i, a, o), !1));
2492
2496
  }), 1);
2493
2497
  }), 0);
2494
- }, Zo = [], Xo = /* @__PURE__ */ E(
2495
- zo,
2498
+ }, Xo = [], Uo = /* @__PURE__ */ E(
2496
2499
  Wo,
2497
2500
  Zo,
2501
+ Xo,
2498
2502
  !1,
2499
2503
  null,
2500
2504
  null,
2501
2505
  null,
2502
2506
  null
2503
2507
  );
2504
- const ze = Xo.exports, Uo = {
2508
+ const Ze = Uo.exports, Yo = {
2505
2509
  [L.VERTICAL]: {
2506
2510
  withTooltip: !0,
2507
2511
  xAxisOptions: {},
@@ -2514,20 +2518,20 @@ const ze = Xo.exports, Uo = {
2514
2518
  yAxisOptions: { gridLines: !1 },
2515
2519
  margins: re.HORIZONTAL
2516
2520
  }
2517
- }, Yo = /* @__PURE__ */ w({
2521
+ }, Ko = /* @__PURE__ */ w({
2518
2522
  __name: "lume-single-bar-chart",
2519
2523
  props: {
2520
- ...ue(Be)
2524
+ ...ue(Fe)
2521
2525
  },
2522
2526
  setup(t, { emit: e }) {
2523
2527
  const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { orientation: a, options: l } = P(r), i = d(
2524
- () => Uo[a.value || L.VERTICAL]
2528
+ () => Yo[a.value || L.VERTICAL]
2525
2529
  // needs to be computed so that default options are reactive
2526
2530
  ), { allOptions: u } = Z(l, i);
2527
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: ze };
2531
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ze };
2528
2532
  }
2529
2533
  });
2530
- var Ko = function() {
2534
+ var Jo = function() {
2531
2535
  var e = this, r = e._self._c, n = e._self._setupProxy;
2532
2536
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2533
2537
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2536,17 +2540,17 @@ var Ko = function() {
2536
2540
  return [e._t(a, null, null, l || {})];
2537
2541
  } };
2538
2542
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2539
- }, Jo = [], Qo = /* @__PURE__ */ E(
2540
- Yo,
2543
+ }, Qo = [], qo = /* @__PURE__ */ E(
2541
2544
  Ko,
2542
2545
  Jo,
2546
+ Qo,
2543
2547
  !1,
2544
2548
  null,
2545
2549
  null,
2546
2550
  null,
2547
2551
  null
2548
2552
  );
2549
- const Ma = Qo.exports, qo = {
2553
+ const za = qo.exports, ea = {
2550
2554
  [L.VERTICAL]: {
2551
2555
  withTooltip: !0,
2552
2556
  xAxisOptions: {},
@@ -2560,23 +2564,23 @@ const Ma = Qo.exports, qo = {
2560
2564
  margins: re.HORIZONTAL,
2561
2565
  tooltipOptions: { position: "right" }
2562
2566
  }
2563
- }, ea = /* @__PURE__ */ w({
2567
+ }, ta = /* @__PURE__ */ w({
2564
2568
  __name: "lume-grouped-bar-chart",
2565
2569
  props: {
2566
2570
  ...ue()
2567
2571
  },
2568
2572
  setup(t, { emit: e }) {
2569
2573
  const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { orientation: a, options: l } = P(r), i = d(
2570
- () => qo[a.value || L.VERTICAL]
2574
+ () => ea[a.value || L.VERTICAL]
2571
2575
  // needs to be computed so that default options are reactive
2572
2576
  ), { allOptions: u } = Z(
2573
2577
  l,
2574
2578
  i
2575
2579
  );
2576
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: ze };
2580
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, orientation: a, options: l, baseOptions: i, allOptions: u, LumeChart: ie, LumeBarGroup: Ze };
2577
2581
  }
2578
2582
  });
2579
- var ta = function() {
2583
+ var na = function() {
2580
2584
  var e = this, r = e._self._c, n = e._self._setupProxy;
2581
2585
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2582
2586
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2585,17 +2589,17 @@ var ta = function() {
2585
2589
  return [e._t(a, null, null, l || {})];
2586
2590
  } };
2587
2591
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2588
- }, na = [], ra = /* @__PURE__ */ E(
2589
- ea,
2592
+ }, ra = [], oa = /* @__PURE__ */ E(
2590
2593
  ta,
2591
2594
  na,
2595
+ ra,
2592
2596
  !1,
2593
2597
  null,
2594
2598
  null,
2595
2599
  null,
2596
2600
  null
2597
2601
  );
2598
- const za = ra.exports, oa = {
2602
+ const Wa = oa.exports, aa = {
2599
2603
  [L.VERTICAL]: {
2600
2604
  withTooltip: !0,
2601
2605
  xAxisOptions: {},
@@ -2609,27 +2613,27 @@ const za = ra.exports, oa = {
2609
2613
  margins: re.HORIZONTAL,
2610
2614
  tooltipOptions: { position: "right" }
2611
2615
  }
2612
- }, aa = /* @__PURE__ */ w({
2616
+ }, la = /* @__PURE__ */ w({
2613
2617
  __name: "lume-stacked-bar-chart",
2614
2618
  props: {
2615
2619
  ...ue()
2616
2620
  },
2617
2621
  setup(t, { emit: e }) {
2618
2622
  const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { data: a, orientation: l, options: i } = P(r), u = d(
2619
- () => oa[l.value || L.VERTICAL]
2623
+ () => aa[l.value || L.VERTICAL]
2620
2624
  // needs to be computed so that default options are reactive
2621
2625
  ), { allOptions: c } = Z(
2622
2626
  i,
2623
2627
  u
2624
- ), { internalData: v } = Me(a), { groupedData: s } = It(v), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = jo(
2628
+ ), { internalData: v } = We(a), { groupedData: s } = Et(v), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = Mo(
2625
2629
  s,
2626
2630
  l,
2627
2631
  i
2628
2632
  );
2629
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, data: a, orientation: l, options: i, baseOptions: u, allOptions: c, internalData: v, groupedData: s, stackedXScaleGenerator: _, stackedYScaleGenerator: m, LumeChart: ie, LumeBarGroup: ze };
2633
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, data: a, orientation: l, options: i, baseOptions: u, allOptions: c, internalData: v, groupedData: s, stackedXScaleGenerator: _, stackedYScaleGenerator: m, LumeChart: ie, LumeBarGroup: Ze };
2630
2634
  }
2631
2635
  });
2632
- var la = function() {
2636
+ var ua = function() {
2633
2637
  var e = this, r = e._self._c, n = e._self._setupProxy;
2634
2638
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.stackedXScaleGenerator, "y-scale": n.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2635
2639
  return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", o, !1), n.componentEventPropagator))];
@@ -2638,17 +2642,17 @@ var la = function() {
2638
2642
  return [e._t(a, null, null, l || {})];
2639
2643
  } };
2640
2644
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2641
- }, ua = [], ia = /* @__PURE__ */ E(
2642
- aa,
2645
+ }, ia = [], sa = /* @__PURE__ */ E(
2643
2646
  la,
2644
2647
  ua,
2648
+ ia,
2645
2649
  !1,
2646
2650
  null,
2647
2651
  null,
2648
2652
  null,
2649
2653
  null
2650
2654
  );
2651
- const Wa = ia.exports, it = 2, sa = /* @__PURE__ */ w({
2655
+ const Za = sa.exports, ct = 2, ca = /* @__PURE__ */ w({
2652
2656
  __name: "lume-line",
2653
2657
  props: {
2654
2658
  pathDefinition: {
@@ -2657,7 +2661,7 @@ const Wa = ia.exports, it = 2, sa = /* @__PURE__ */ w({
2657
2661
  },
2658
2662
  width: {
2659
2663
  type: Number,
2660
- default: it
2664
+ default: ct
2661
2665
  },
2662
2666
  color: {
2663
2667
  type: String,
@@ -2683,10 +2687,10 @@ const Wa = ia.exports, it = 2, sa = /* @__PURE__ */ w({
2683
2687
  emits: ["click"],
2684
2688
  setup(t, { emit: e }) {
2685
2689
  const r = I(null);
2686
- return J(() => ye(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: it, emit: e, root: r };
2690
+ return J(() => ye(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ct, emit: e, root: r };
2687
2691
  }
2688
2692
  });
2689
- var ca = function() {
2693
+ var da = function() {
2690
2694
  var e = this, r = e._self._c, n = e._self._setupProxy;
2691
2695
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2692
2696
  [`lume-stroke--${e.color}`]: !0,
@@ -2698,17 +2702,17 @@ var ca = function() {
2698
2702
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(o) {
2699
2703
  return n.emit("click", o);
2700
2704
  } } });
2701
- }, da = [], va = /* @__PURE__ */ E(
2702
- sa,
2705
+ }, va = [], _a = /* @__PURE__ */ E(
2703
2706
  ca,
2704
2707
  da,
2708
+ va,
2705
2709
  !1,
2706
2710
  null,
2707
2711
  "08896455",
2708
2712
  null,
2709
2713
  null
2710
2714
  );
2711
- const _a = va.exports, st = 4, pa = /* @__PURE__ */ w({
2715
+ const pa = _a.exports, dt = 4, fa = /* @__PURE__ */ w({
2712
2716
  __name: "lume-point",
2713
2717
  props: {
2714
2718
  x: { type: Number, required: !0 },
@@ -2719,7 +2723,7 @@ const _a = va.exports, st = 4, pa = /* @__PURE__ */ w({
2719
2723
  },
2720
2724
  radius: {
2721
2725
  type: Number,
2722
- default: st
2726
+ default: dt
2723
2727
  },
2724
2728
  active: {
2725
2729
  type: Boolean,
@@ -2729,26 +2733,26 @@ const _a = va.exports, st = 4, pa = /* @__PURE__ */ w({
2729
2733
  emits: ["click"],
2730
2734
  setup(t, { emit: e }) {
2731
2735
  const r = t, n = I(null), o = d(() => r.radius / 2);
2732
- return J(() => ye(n.value)), { __sfc: !0, DEFAULT_RADIUS: st, props: r, emit: e, root: n, strokeWidth: o };
2736
+ return J(() => ye(n.value)), { __sfc: !0, DEFAULT_RADIUS: dt, props: r, emit: e, root: n, strokeWidth: o };
2733
2737
  }
2734
2738
  });
2735
- var fa = function() {
2739
+ var ma = function() {
2736
2740
  var e = this, r = e._self._c, n = e._self._setupProxy;
2737
2741
  return r("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${e.color}`, attrs: { cx: e.x, cy: e.y, r: e.active ? e.radius : 0, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(o) {
2738
2742
  return n.emit("click", o);
2739
2743
  } } });
2740
- }, ma = [], ha = /* @__PURE__ */ E(
2741
- pa,
2744
+ }, ha = [], ga = /* @__PURE__ */ E(
2742
2745
  fa,
2743
2746
  ma,
2747
+ ha,
2744
2748
  !1,
2745
2749
  null,
2746
2750
  "9bacbd7d",
2747
2751
  null,
2748
2752
  null
2749
2753
  );
2750
- const ga = ha.exports;
2751
- function Et(t) {
2754
+ const ya = ga.exports;
2755
+ function wt(t) {
2752
2756
  function e(a) {
2753
2757
  let l = null;
2754
2758
  return a == null ? void 0 : a.reduce((i, u, c) => (u == null || u.value == null ? (l ? l.push(c) : l = [c], c === (a == null ? void 0 : a.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
@@ -2784,7 +2788,7 @@ function Et(t) {
2784
2788
  c.length,
2785
2789
  c.indexOf(u)
2786
2790
  ),
2787
- label: yt
2791
+ label: bt
2788
2792
  };
2789
2793
  }
2790
2794
  return i;
@@ -2792,19 +2796,19 @@ function Et(t) {
2792
2796
  };
2793
2797
  })) };
2794
2798
  }
2795
- function ya(t, e) {
2799
+ function ba(t, e) {
2796
2800
  const r = t.bandwidth() / 2;
2797
2801
  return (n, o) => t(t.domain()[e + (o - 1)]) + r;
2798
2802
  }
2799
- function ba(t, e) {
2803
+ function ka(t, e) {
2800
2804
  return (r, n) => t(e + (n - 1));
2801
2805
  }
2802
- function ka(t, e, r, n) {
2803
- return Vt().x(
2804
- oe(r) ? ya(r, t) : ba(r, t)
2806
+ function Ta(t, e, r, n) {
2807
+ return jt().x(
2808
+ oe(r) ? ba(r, t) : ka(r, t)
2805
2809
  ).y((a) => n(a))(e);
2806
2810
  }
2807
- const ct = 1, xa = /* @__PURE__ */ w({
2811
+ const vt = 1, xa = /* @__PURE__ */ w({
2808
2812
  __name: "lume-line-group",
2809
2813
  props: {
2810
2814
  ...be(),
@@ -2822,7 +2826,7 @@ const ct = 1, xa = /* @__PURE__ */ w({
2822
2826
  const r = t, { data: n, options: o, xScale: a, yScale: l } = P(r), i = de(
2823
2827
  "tooltipAnchorAttributes",
2824
2828
  null
2825
- ), { updateTooltipAnchorAttributes: u } = Lt(
2829
+ ), { updateTooltipAnchorAttributes: u } = Ot(
2826
2830
  i,
2827
2831
  o,
2828
2832
  a,
@@ -2830,22 +2834,22 @@ const ct = 1, xa = /* @__PURE__ */ w({
2830
2834
  ), c = d(() => {
2831
2835
  if (n.value.every((C) => C.isDashed))
2832
2836
  return n.value;
2833
- const { computedLineData: k } = Et(n);
2837
+ const { computedLineData: k } = wt(n);
2834
2838
  return o.value.withTooltip !== !1 && (i != null && i.value) && u(k.value), k.value;
2835
2839
  }), v = d(() => {
2836
2840
  if (r.hoveredIndex === -1)
2837
2841
  return;
2838
- const k = rn(
2842
+ const k = on(
2839
2843
  c.value,
2840
2844
  r.hoveredIndex
2841
2845
  );
2842
2846
  return {
2843
- d: `M ${we(a.value, r.hoveredIndex)},${l.value.range()[1]}
2847
+ d: `M ${Ne(a.value, r.hoveredIndex)},${l.value.range()[1]}
2844
2848
  V ${l.value(k)}`
2845
2849
  // Move to X index, Vertical line to the highest point
2846
2850
  };
2847
2851
  }), s = d(
2848
- () => a.value && ct / (on(a.value) - 1)
2852
+ () => a.value && vt / (an(a.value) - 1)
2849
2853
  // Subtracting the first line (read below)
2850
2854
  ), _ = d(
2851
2855
  () => {
@@ -2867,14 +2871,14 @@ const ct = 1, xa = /* @__PURE__ */ w({
2867
2871
  (R = y(C)[k - 1]) == null ? void 0 : R.value,
2868
2872
  (B = y(C)[k]) == null ? void 0 : B.value
2869
2873
  ];
2870
- return ka(
2874
+ return Ta(
2871
2875
  k,
2872
2876
  D,
2873
2877
  a.value,
2874
2878
  l.value
2875
2879
  ) || "";
2876
2880
  }
2877
- function x(k) {
2881
+ function T(k) {
2878
2882
  return {
2879
2883
  animationDelay: k < 2 ? 0 : (k - 1) * s.value,
2880
2884
  animationDuration: s.value
@@ -2888,13 +2892,13 @@ const ct = 1, xa = /* @__PURE__ */ w({
2888
2892
  y: l.value(D)
2889
2893
  };
2890
2894
  }
2891
- function T(k) {
2895
+ function x(k) {
2892
2896
  return r.hoveredIndex === k;
2893
2897
  }
2894
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: ct, props: r, emit: e, data: n, options: o, xScale: a, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: c, overlayLineAttributes: v, animationDuration: s, pointRadius: _, xAxisOffset: m, domain: f, computedWithPoints: g, getValuesFromDataset: y, getPathDefinition: p, getLineTransitionParams: x, getPointPosition: A, isPointActive: T, LumeLine: _a, LumePoint: ga };
2898
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: vt, props: r, emit: e, data: n, options: o, xScale: a, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: c, overlayLineAttributes: v, animationDuration: s, pointRadius: _, xAxisOffset: m, domain: f, computedWithPoints: g, getValuesFromDataset: y, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: A, isPointActive: x, LumeLine: pa, LumePoint: ya };
2895
2899
  }
2896
2900
  });
2897
- var Ta = function() {
2901
+ var Aa = function() {
2898
2902
  var e = this, r = e._self._c, n = e._self._setupProxy;
2899
2903
  return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(o, a) {
2900
2904
  return r("g", { key: o.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(o.values, function(l, i) {
@@ -2907,33 +2911,33 @@ var Ta = function() {
2907
2911
  } } }, "lume-point", n.getPointPosition(i, a), !1));
2908
2912
  }), 1) : e._e()]);
2909
2913
  })], 2);
2910
- }, Aa = [], La = /* @__PURE__ */ E(
2914
+ }, La = [], Oa = /* @__PURE__ */ E(
2911
2915
  xa,
2912
- Ta,
2913
2916
  Aa,
2917
+ La,
2914
2918
  !1,
2915
2919
  null,
2916
2920
  "c4d7f0ca",
2917
2921
  null,
2918
2922
  null
2919
2923
  );
2920
- const wt = La.exports, Oa = {
2924
+ const Nt = Oa.exports, $a = {
2921
2925
  margins: re.VERTICAL,
2922
2926
  startOnZero: !0,
2923
2927
  withTooltip: !0,
2924
2928
  xAxisOptions: {},
2925
2929
  yAxisOptions: { gridLines: !0 }
2926
- }, $a = /* @__PURE__ */ w({
2930
+ }, Ia = /* @__PURE__ */ w({
2927
2931
  __name: "lume-line-chart",
2928
2932
  props: {
2929
2933
  ...ue(null, !1)
2930
2934
  },
2931
2935
  setup(t, { emit: e }) {
2932
- const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { options: a } = P(r), { allOptions: l } = Z(a, Oa);
2933
- return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, options: a, allOptions: l, LumeChart: ie, LumeLineGroup: wt };
2936
+ const r = t, { componentEventPropagator: n } = X(e), o = ae(V()), { options: a } = P(r), { allOptions: l } = Z(a, $a);
2937
+ return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: o, options: a, allOptions: l, LumeChart: ie, LumeLineGroup: Nt };
2934
2938
  }
2935
2939
  });
2936
- var Ia = function() {
2940
+ var Ea = function() {
2937
2941
  var e = this, r = e._self._c, n = e._self._setupProxy;
2938
2942
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
2939
2943
  return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", o, !1), n.componentEventPropagator))];
@@ -2942,28 +2946,28 @@ var Ia = function() {
2942
2946
  return [e._t(a, null, null, l || {})];
2943
2947
  } };
2944
2948
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2945
- }, Ea = [], wa = /* @__PURE__ */ E(
2946
- $a,
2949
+ }, wa = [], Na = /* @__PURE__ */ E(
2947
2950
  Ia,
2948
2951
  Ea,
2952
+ wa,
2949
2953
  !1,
2950
2954
  null,
2951
2955
  null,
2952
2956
  null,
2953
2957
  null
2954
2958
  );
2955
- const Za = wa.exports;
2956
- function Na(t) {
2959
+ const Xa = Na.exports;
2960
+ function Ca(t) {
2957
2961
  return { areaPathDefinition: d(
2958
2962
  () => function(r, n) {
2959
2963
  if (!r || !n)
2960
2964
  return;
2961
2965
  const o = t.value[0].values;
2962
- return jt().x((a, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((a) => n(a.value))(o);
2966
+ return Mt().x((a, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((a) => n(a.value))(o);
2963
2967
  }
2964
2968
  ) };
2965
2969
  }
2966
- const Ca = {
2970
+ const Ha = {
2967
2971
  margins: {
2968
2972
  top: 0,
2969
2973
  right: 0,
@@ -2977,14 +2981,14 @@ const Ca = {
2977
2981
  tooltipOptions: {
2978
2982
  showTitle: !1
2979
2983
  }
2980
- }, Ha = /* @__PURE__ */ w({
2984
+ }, Da = /* @__PURE__ */ w({
2981
2985
  __name: "lume-sparkline-chart",
2982
2986
  props: {
2983
- ...je(null),
2987
+ ...ze(null),
2984
2988
  ...ve()
2985
2989
  },
2986
2990
  setup(t, { expose: e, emit: r }) {
2987
- const n = t, { componentEventPropagator: o } = X(r), a = ae(V()), { data: l, options: i } = P(n), { internalData: u } = Me(l), { allOptions: c } = Z(i, Ca), { computedLineData: v } = Et(u), { areaPathDefinition: s } = Na(v), _ = d(() => u.value[0].color), m = d(
2991
+ const n = t, { componentEventPropagator: o } = X(r), a = ae(V()), { data: l, options: i } = P(n), { internalData: u } = We(l), { allOptions: c } = Z(i, Ha), { computedLineData: v } = wt(u), { areaPathDefinition: s } = Ca(v), _ = d(() => u.value[0].color), m = d(
2988
2992
  () => l.value[0].areaColor || _.value
2989
2993
  );
2990
2994
  function f(y) {
@@ -2993,15 +2997,15 @@ const Ca = {
2993
2997
  noMinSize: !0
2994
2998
  };
2995
2999
  }
2996
- function g(y, p, x) {
2997
- return ce().range([0, x.width]).domain([0, y[0].values.length - 1]);
3000
+ function g(y, p, T) {
3001
+ return ce().range([0, T.width]).domain([0, y[0].values.length - 1]);
2998
3002
  }
2999
3003
  return e({
3000
3004
  areaPathDefinition: s
3001
- }), { __sfc: !0, props: n, emit: r, componentEventPropagator: o, slots: a, data: l, options: i, internalData: u, allOptions: c, computedLineData: v, areaPathDefinition: s, computedColor: _, areaColor: m, getSparklineOptions: f, xScaleGenerator: g, LumeChart: ie, LumeLineGroup: wt };
3005
+ }), { __sfc: !0, props: n, emit: r, componentEventPropagator: o, slots: a, data: l, options: i, internalData: u, allOptions: c, computedLineData: v, areaPathDefinition: s, computedColor: _, areaColor: m, getSparklineOptions: f, xScaleGenerator: g, LumeChart: ie, LumeLineGroup: Nt };
3002
3006
  }
3003
3007
  });
3004
- var Da = function() {
3008
+ var Ra = function() {
3005
3009
  var e = this, r = e._self._c, n = e._self._setupProxy;
3006
3010
  return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(o) {
3007
3011
  return [n.allOptions.showArea ? r("path", { class: [
@@ -3015,41 +3019,41 @@ var Da = function() {
3015
3019
  return [e._t(a, null, null, l || {})];
3016
3020
  } };
3017
3021
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3018
- }, Ra = [], Pa = /* @__PURE__ */ E(
3019
- Ha,
3022
+ }, Pa = [], Sa = /* @__PURE__ */ E(
3020
3023
  Da,
3021
3024
  Ra,
3025
+ Pa,
3022
3026
  !1,
3023
3027
  null,
3024
3028
  "c681fff6",
3025
3029
  null,
3026
3030
  null
3027
3031
  );
3028
- const Xa = Pa.exports;
3032
+ const Ua = Sa.exports;
3029
3033
  export {
3030
- Va as LumeAlluvialDiagram,
3031
- Lo as LumeAlluvialGroup,
3032
- Ur as LumeAlluvialNodeLabel,
3033
- qr as LumeAlluvialNodeValue,
3034
- $n as LumeAxis,
3035
- Ve as LumeBar,
3036
- ja as LumeBarChart,
3037
- ze as LumeBarGroup,
3034
+ ja as LumeAlluvialDiagram,
3035
+ Oo as LumeAlluvialGroup,
3036
+ Yr as LumeAlluvialNodeLabel,
3037
+ eo as LumeAlluvialNodeValue,
3038
+ In as LumeAxis,
3039
+ Me as LumeBar,
3040
+ Ma as LumeBarChart,
3041
+ Ze as LumeBarGroup,
3038
3042
  ie as LumeChart,
3039
- Fn as LumeChartContainer,
3040
- zn as LumeChartLegend,
3041
- za as LumeGroupedBarChart,
3042
- _a as LumeLine,
3043
- Za as LumeLineChart,
3044
- wt as LumeLineGroup,
3045
- Ir as LumeOverlayGroup,
3046
- ga as LumePoint,
3047
- Ma as LumeSingleBarChart,
3048
- Xa as LumeSparklineChart,
3049
- Wa as LumeStackedBarChart,
3050
- cr as LumeTooltip,
3051
- ar as LumeTooltipItem,
3052
- er as LumeTooltipSummary,
3053
- Yn as LumeTooltipTitle
3043
+ Gn as LumeChartContainer,
3044
+ Wn as LumeChartLegend,
3045
+ Wa as LumeGroupedBarChart,
3046
+ pa as LumeLine,
3047
+ Xa as LumeLineChart,
3048
+ Nt as LumeLineGroup,
3049
+ Er as LumeOverlayGroup,
3050
+ ya as LumePoint,
3051
+ za as LumeSingleBarChart,
3052
+ Ua as LumeSparklineChart,
3053
+ Za as LumeStackedBarChart,
3054
+ dr as LumeTooltip,
3055
+ lr as LumeTooltipItem,
3056
+ tr as LumeTooltipSummary,
3057
+ Kn as LumeTooltipTitle
3054
3058
  };
3055
3059
  //# sourceMappingURL=index.js.map