@adyen/lume 0.10.0 → 1.1.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 E, ref as I, isRef as ot, computed as d, watch as C, toRefs as H, inject as fe, reactive as pe, onMounted as X, onBeforeUnmount as lt, watchEffect as ut, useSlots as V, provide as Ae, defineAsyncComponent as Te } from "vue";
2
- import { format as Nt, ticks as Ct, scaleBand as ue, scaleLinear as ie, link as Dt, line as Ht, area as Rt } from "d3";
3
- import { createPopper as St } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as Bt, sankey as Ft, sankeyJustify as Pt } from "d3-sankey";
5
- const Gt = /* @__PURE__ */ E({
1
+ import { defineComponent as E, ref as I, isRef as lt, computed as d, watch as D, toRefs as R, inject as me, reactive as he, onMounted as Y, onBeforeUnmount as ut, watchEffect as it, useSlots as G, provide as Ae, defineAsyncComponent as Te } from "vue";
2
+ import { format as Ct, ticks as Dt, scaleBand as ie, scaleLinear as se, link as Ht, line as Rt, area as St } from "d3";
3
+ import { createPopper as Bt } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as Ft, sankey as Pt, sankeyJustify as Gt } from "d3-sankey";
5
+ const Vt = /* @__PURE__ */ E({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -48,10 +48,10 @@ function w(t, e, r, n, a, o, l, i) {
48
48
  var u = typeof t == "function" ? t.options : t;
49
49
  e && (u.render = e, u.staticRenderFns = r, u._compiled = !0), n && (u.functional = !0), o && (u._scopeId = "data-v-" + o);
50
50
  var s;
51
- if (l ? (s = function(f) {
52
- f = f || // cached call
51
+ if (l ? (s = function(_) {
52
+ _ = _ || // cached call
53
53
  this.$vnode && this.$vnode.ssrContext || // stateful
54
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), a && a.call(this, f), f && f._registeredComponents && f._registeredComponents.add(l);
54
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !_ && typeof __VUE_SSR_CONTEXT__ < "u" && (_ = __VUE_SSR_CONTEXT__), a && a.call(this, _), _ && _._registeredComponents && _._registeredComponents.add(l);
55
55
  }, u._ssrRegister = s) : a && (s = i ? function() {
56
56
  a.call(
57
57
  this,
@@ -60,20 +60,20 @@ function w(t, e, r, n, a, o, l, i) {
60
60
  } : a), s)
61
61
  if (u.functional) {
62
62
  u._injectStyles = s;
63
- var c = u.render;
64
- u.render = function(y, m) {
65
- return s.call(m), c(y, m);
63
+ var v = u.render;
64
+ u.render = function(p, f) {
65
+ return s.call(f), v(p, f);
66
66
  };
67
67
  } else {
68
- var v = u.beforeCreate;
69
- u.beforeCreate = v ? [].concat(v, s) : [s];
68
+ var c = u.beforeCreate;
69
+ u.beforeCreate = c ? [].concat(c, s) : [s];
70
70
  }
71
71
  return {
72
72
  exports: t,
73
73
  options: u
74
74
  };
75
75
  }
76
- var Vt = function() {
76
+ var jt = 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 Vt = function() {
83
83
  }, click: function(a) {
84
84
  return n.emit("click", a);
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
- }, jt = [], Mt = /* @__PURE__ */ w(
87
- Gt,
86
+ }, Mt = [], zt = /* @__PURE__ */ w(
88
87
  Vt,
89
88
  jt,
89
+ Mt,
90
90
  !1,
91
91
  null,
92
92
  "59ddc0a6",
93
93
  null,
94
94
  null
95
95
  );
96
- const zt = Mt.exports, Wt = [
96
+ const Wt = zt.exports, Zt = [
97
97
  "controls",
98
98
  "legend",
99
99
  "axes",
@@ -101,41 +101,41 @@ const zt = Mt.exports, Wt = [
101
101
  "tooltip",
102
102
  "tooltip-content"
103
103
  ];
104
- function it() {
104
+ function st() {
105
105
  return process.env.NODE_ENV === "production";
106
106
  }
107
- function st(t) {
107
+ function ct(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 Se(t) {
112
+ function Be(t) {
113
113
  return t.length === 1;
114
114
  }
115
- function Zt(t) {
115
+ function Xt(t) {
116
116
  return !!t && t.every(
117
117
  (e) => "color" in e
118
118
  );
119
119
  }
120
- function xe(t) {
120
+ function Le(t) {
121
121
  return !!t && typeof t == "object" && !Array.isArray(t);
122
122
  }
123
- function ct(t, e) {
123
+ function dt(t, e) {
124
124
  const r = { ...t };
125
125
  return Object.entries(e).forEach(([n, a]) => {
126
- r[n] = xe(t[n]) && xe(a) ? ct(t[n], a) : a;
126
+ r[n] = Le(t[n]) && Le(a) ? dt(t[n], a) : a;
127
127
  }), r;
128
128
  }
129
- function Xt(t) {
130
- return t != null && xe(t) && "value" in t;
129
+ function Ut(t) {
130
+ return t != null && Le(t) && "value" in t;
131
131
  }
132
- function q(t) {
132
+ function te(t) {
133
133
  return (t == null ? void 0 : t.bandwidth) !== void 0;
134
134
  }
135
- function Ut(t) {
136
- return q(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
135
+ function Yt(t) {
136
+ return te(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
137
137
  }
138
- const Yt = (t, e) => {
138
+ const Kt = (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 Yt = (t, e) => {
145
145
  throw new Error("Index exceeds length of at least one of the datasets");
146
146
  });
147
147
  };
148
- function Kt(t, e) {
148
+ function Jt(t, e) {
149
149
  var r;
150
- return Yt(t, e), ((r = t.reduce(
150
+ return Kt(t, e), ((r = t.reduce(
151
151
  (n, a) => {
152
152
  var o, l;
153
153
  return (((o = n.values[e]) == null ? void 0 : o.value) ?? 0) > (((l = a.values[e]) == null ? void 0 : l.value) ?? 0) ? n : a;
154
154
  }
155
155
  ).values[e]) == null ? void 0 : r.value) || 0;
156
156
  }
157
- function Le(t) {
158
- const e = ot(t) ? t.value : t;
157
+ function Oe(t) {
158
+ const e = lt(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,17 +164,17 @@ function Le(t) {
164
164
  );
165
165
  return Array(r).fill(null);
166
166
  }
167
- function Jt(t) {
168
- return q(t) ? t.domain().length : Math.max(...t.domain());
167
+ function Qt(t) {
168
+ return te(t) ? t.domain().length : Math.max(...t.domain());
169
169
  }
170
- function Qt(t, e) {
170
+ function qt(t, e) {
171
171
  return (r) => Math.round(t * (1 - r) + e * r);
172
172
  }
173
- function qt(t, e, r) {
173
+ function en(t, e, r) {
174
174
  const n = r ? t.length - e : e, a = t.slice(0, n);
175
175
  return t.slice(n).concat(a);
176
176
  }
177
- function ee(t) {
177
+ function ne(t) {
178
178
  if (t.groups) {
179
179
  const e = Object.keys(t);
180
180
  return Object.assign(
@@ -184,32 +184,32 @@ function ee(t) {
184
184
  }
185
185
  return t;
186
186
  }
187
- function en(t) {
187
+ function tn(t) {
188
188
  return Object.assign(
189
189
  {},
190
190
  ...Object.keys(t).map(
191
- (e) => Wt.includes(e) ? {} : { [e]: t[e] }
191
+ (e) => Zt.includes(e) ? {} : { [e]: t[e] }
192
192
  )
193
193
  );
194
194
  }
195
- const tn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
195
+ const nn = (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
- var Z = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
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))(Z || {});
201
- const nn = "[lume] ";
202
- function J(t, e = !0) {
203
- e && it() || console.warn(nn + "Warning: " + t);
199
+ var U = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
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))(U || {});
201
+ const rn = "[lume] ";
202
+ function q(t, e = !0) {
203
+ e && st() || console.warn(rn + "Warning: " + t);
204
204
  }
205
- const _e = (t) => {
205
+ const pe = (t) => {
206
206
  let e = null;
207
207
  switch (typeof t) {
208
208
  case "string":
209
209
  try {
210
- e = Nt(t);
210
+ e = Ct(t);
211
211
  } catch {
212
- J(Z.InvalidFormat), e = null;
212
+ q(U.InvalidFormat), e = null;
213
213
  }
214
214
  break;
215
215
  case "function":
@@ -222,29 +222,29 @@ const _e = (t) => {
222
222
  return e ? e(...n) : n[0];
223
223
  }
224
224
  return r;
225
- }, se = () => ({
225
+ }, ce = () => ({
226
226
  options: {
227
227
  type: Object,
228
228
  default: () => ({})
229
229
  }
230
230
  });
231
- function W(t, e) {
231
+ function Z(t, e) {
232
232
  return { allOptions: d(() => {
233
- const n = ot(e) ? e == null ? void 0 : e.value : e;
234
- return n ? ct(n, t.value) : t.value;
233
+ const n = lt(e) ? e == null ? void 0 : e.value : e;
234
+ return n ? dt(n, t.value) : t.value;
235
235
  }) };
236
236
  }
237
- const rn = 0.15;
238
- function an(t, e, r) {
237
+ const an = 0.15;
238
+ function on(t, e, r) {
239
239
  const n = I(), a = d(() => Math.max(...t.value.range())), o = d(() => e.value.length);
240
240
  function l() {
241
241
  if (!e.value)
242
242
  return;
243
243
  const u = e.value.reduce(
244
- (c, v) => c + v.ref.getBoundingClientRect().width,
244
+ (v, c) => v + c.ref.getBoundingClientRect().width,
245
245
  0
246
246
  ), s = Math.ceil(u / o.value);
247
- n.value = s + s * rn;
247
+ n.value = s + s * an;
248
248
  }
249
249
  function i(u) {
250
250
  if (!e.value)
@@ -252,20 +252,20 @@ function an(t, e, r) {
252
252
  const s = e.value.length;
253
253
  if (u === 0)
254
254
  return !0;
255
- const c = a.value / s, v = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / c);
256
- return u % v === 0;
255
+ const v = a.value / s, c = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / v);
256
+ return u % c === 0;
257
257
  }
258
- return C(e, l), { showTick: i };
258
+ return D(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 || {}), dt = /* @__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))(dt || {}), Be = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Be || {}), vt = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(vt || {}), Fe = /* @__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))(Fe || {});
260
+ var V = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(V || {}), vt = /* @__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))(vt || {}), 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 || {}), _t = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(_t || {}), Pe = /* @__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))(Pe || {});
261
261
  const O = {
262
262
  HORIZONTAL: "horizontal",
263
263
  VERTICAL: "vertical"
264
- }, on = {
264
+ }, ln = {
265
265
  SINGLE: "single",
266
266
  GROUPED: "grouped",
267
267
  STACKED: "stacked"
268
- }, _t = "No data", ze = 20, ft = 0.33, pt = 0.5, mt = 12, ce = 8, ln = 1, un = [
268
+ }, ft = "No data", ze = 20, pt = 0.33, mt = 0.5, ht = 12, de = 8, un = 1, sn = [
269
269
  "auto",
270
270
  "auto-start",
271
271
  "auto-end",
@@ -282,10 +282,10 @@ const O = {
282
282
  "left-start",
283
283
  "left-end"
284
284
  ];
285
- function me(t) {
286
- t != null && t.closest("svg") || J(Z.NotContainedInSvg);
285
+ function ge(t) {
286
+ t != null && t.closest("svg") || q(U.NotContainedInSvg);
287
287
  }
288
- const ht = {
288
+ const gt = {
289
289
  /** Displays a line for each tick. */
290
290
  gridLines: !1,
291
291
  /** Displays the axis title. */
@@ -301,14 +301,14 @@ const ht = {
301
301
  tickFormat: null,
302
302
  /** Space between the tick label and the axis line. */
303
303
  tickPadding: 8
304
- }, sn = {
305
- ...ht,
304
+ }, cn = {
305
+ ...gt,
306
306
  withTitle: !1,
307
307
  skip: !0
308
- }, cn = {
309
- ...ht,
308
+ }, dn = {
309
+ ...gt,
310
310
  gridLines: !0
311
- }, dn = function(t, e, r) {
311
+ }, vn = function(t, e, r) {
312
312
  const n = d(() => t.value.step() * t.value.paddingInner() / 2);
313
313
  function a(u, s) {
314
314
  return {
@@ -316,15 +316,15 @@ const ht = {
316
316
  };
317
317
  }
318
318
  function o(u) {
319
- var c;
319
+ var v;
320
320
  const s = Math.max(
321
321
  t.value.step(),
322
- (u ? (c = u.getComputedTextLength) == null ? void 0 : c.call(u) : t.value.step()) + 20
322
+ (u ? (v = u.getComputedTextLength) == null ? void 0 : v.call(u) : t.value.step()) + 20
323
323
  );
324
324
  return {
325
325
  x: -(s - t.value.step()) / 2,
326
326
  width: s,
327
- height: r.value.tickPadding + mt + ce
327
+ height: r.value.tickPadding + ht + de
328
328
  };
329
329
  }
330
330
  function l() {
@@ -350,7 +350,7 @@ const ht = {
350
350
  getTickGroupAttributes: a,
351
351
  getTickLabelAttributes: i
352
352
  };
353
- }, vn = function(t, e, r) {
353
+ }, _n = function(t, e, r) {
354
354
  const n = d(() => t.value.step() * t.value.paddingInner() / 2);
355
355
  function a(u, s) {
356
356
  return {
@@ -358,8 +358,8 @@ const ht = {
358
358
  };
359
359
  }
360
360
  function o(u) {
361
- var c;
362
- const s = (u ? (c = u.getComputedTextLength) == null ? void 0 : c.call(u) : 42) + r.value.tickPadding + ce;
361
+ var v;
362
+ const s = (u ? (v = u.getComputedTextLength) == null ? void 0 : v.call(u) : 42) + r.value.tickPadding + de;
363
363
  return {
364
364
  x: -s,
365
365
  width: s,
@@ -388,7 +388,7 @@ const ht = {
388
388
  getTickGroupAttributes: a,
389
389
  getTickLabelAttributes: i
390
390
  };
391
- }, _n = function(t, e, r) {
391
+ }, fn = 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;
@@ -400,7 +400,7 @@ const ht = {
400
400
  }
401
401
  function o() {
402
402
  return {
403
- height: r.value.tickPadding + mt + ce,
403
+ height: r.value.tickPadding + ht + de,
404
404
  width: n.value,
405
405
  x: -(n.value / 2)
406
406
  };
@@ -423,7 +423,7 @@ const ht = {
423
423
  getTickGroupAttributes: a,
424
424
  getTickLabelAttributes: i
425
425
  };
426
- }, fn = function(t, e, r) {
426
+ }, pn = 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;
@@ -434,8 +434,8 @@ const ht = {
434
434
  };
435
435
  }
436
436
  function o(u) {
437
- var c;
438
- const s = (((c = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : c.call(u)) || 0) + r.value.tickPadding + ce;
437
+ var v;
438
+ const s = (((v = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : v.call(u)) || 0) + r.value.tickPadding + de;
439
439
  return {
440
440
  width: s,
441
441
  height: n.value,
@@ -461,14 +461,14 @@ const ht = {
461
461
  getTickGroupAttributes: a,
462
462
  getTickLabelAttributes: i
463
463
  };
464
- }, pn = {
465
- "x-band-scale-axis": dn,
466
- "y-band-scale-axis": vn,
467
- "x-linear-scale-axis": _n,
468
- "y-linear-scale-axis": fn
464
+ }, mn = {
465
+ "x-band-scale-axis": vn,
466
+ "y-band-scale-axis": _n,
467
+ "x-linear-scale-axis": fn,
468
+ "y-linear-scale-axis": pn
469
469
  };
470
- var Oe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Oe || {}), $e = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))($e || {}), ve = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(ve || {});
471
- const mn = /* @__PURE__ */ E({
470
+ var $e = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))($e || {}), Ie = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Ie || {}), fe = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(fe || {});
471
+ const hn = /* @__PURE__ */ E({
472
472
  __name: "lume-axis",
473
473
  props: {
474
474
  scale: {
@@ -478,12 +478,12 @@ const mn = /* @__PURE__ */ E({
478
478
  type: {
479
479
  type: String,
480
480
  default: void 0,
481
- validator: (t) => t in ve
481
+ validator: (t) => t in fe
482
482
  },
483
483
  position: {
484
484
  type: String,
485
485
  default: void 0,
486
- validator: (t) => t in $e
486
+ validator: (t) => t in Ie
487
487
  },
488
488
  containerSize: {
489
489
  type: Object,
@@ -497,93 +497,93 @@ const mn = /* @__PURE__ */ E({
497
497
  type: String,
498
498
  default: O.VERTICAL
499
499
  },
500
- ...se()
500
+ ...ce()
501
501
  },
502
502
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
503
503
  setup(t, { emit: e }) {
504
- const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = H(r), s = fe("isEmpty", I(!1)), c = pe({}), v = I(null), f = I(null), y = I(null), m = d(
505
- () => r.type ? ve[r.type] : r.position
506
- ), g = d(
507
- () => r.type || (m.value === "left" ? "y" : "x")
508
- ), h = d(
509
- () => g.value === "x" && u.value === O.VERTICAL || g.value === "y" && u.value === O.HORIZONTAL
510
- ), { allOptions: p } = W(
504
+ const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = R(r), s = me("isEmpty", I(!1)), v = he({}), c = I(null), _ = I(null), p = I(null), f = d(
505
+ () => r.type ? fe[r.type] : r.position
506
+ ), y = d(
507
+ () => r.type || (f.value === "left" ? "y" : "x")
508
+ ), m = d(
509
+ () => y.value === "x" && u.value === O.VERTICAL || y.value === "y" && u.value === O.HORIZONTAL
510
+ ), { allOptions: h } = Z(
511
511
  i,
512
- g.value === "x" ? sn : cn
513
- ), { showTick: L } = an(a, v, p.value.skip), $ = d(() => {
514
- var _, b, x, B;
515
- return g.value === "y" && s.value ? `translate(0, ${((_ = o.value) == null ? void 0 : _.height) / 2})` : g.value === "x" && s.value ? `translate(-${((b = o.value) == null ? void 0 : b.width) / 2}, ${(x = o.value) == null ? void 0 : x.height})` : `translate(0, ${g.value === "x" ? (B = o.value) == null ? void 0 : B.height : 0})`;
512
+ y.value === "x" ? cn : dn
513
+ ), { showTick: A } = on(a, c, h.value.skip), x = d(() => {
514
+ var $, g, L, N;
515
+ return y.value === "y" && s.value ? `translate(0, ${(($ = o.value) == null ? void 0 : $.height) / 2})` : y.value === "x" && s.value ? `translate(-${((g = o.value) == null ? void 0 : g.width) / 2}, ${(L = o.value) == null ? void 0 : L.height})` : `translate(0, ${y.value === "x" ? (N = o.value) == null ? void 0 : N.height : 0})`;
516
516
  }), T = d(() => {
517
- if (q(a.value))
517
+ if (te(a.value))
518
518
  return a.value.labels || a.value.domain();
519
- const { tickCount: _ } = p.value, [b, x] = a.value.domain();
520
- return Ct(b, x, _);
521
- }), k = d(() => {
522
- const { tickFormat: _ } = p.value;
523
- return _e(_);
524
- }), N = d(
525
- () => p.value.withHover && h.value && l.value > -1
526
- ), D = d(
527
- () => p.value.tickPadding + ce || n
528
- ), R = d(() => g.value === "x" ? (
519
+ const { tickCount: $ } = h.value, [g, L] = a.value.domain();
520
+ return Dt(g, L, $);
521
+ }), b = d(() => {
522
+ const { tickFormat: $ } = h.value;
523
+ return pe($);
524
+ }), C = d(
525
+ () => h.value.withHover && m.value && l.value > -1
526
+ ), H = d(
527
+ () => h.value.tickPadding + de || n
528
+ ), S = d(() => y.value === "x" ? (
529
529
  // If x axis, get the tick height
530
530
  Math.max(
531
- ...(v.value || []).map(
532
- (_) => {
533
- var b, x;
534
- return ((x = (b = _.ref).getBBox) == null ? void 0 : x.call(b).height) + D.value;
531
+ ...(c.value || []).map(
532
+ ($) => {
533
+ var g, L;
534
+ return ((L = (g = $.ref).getBBox) == null ? void 0 : L.call(g).height) + H.value;
535
535
  }
536
536
  )
537
537
  )
538
538
  ) : (
539
539
  // If y axis, get the tick width
540
540
  Math.max(
541
- ...(v.value || []).map(
542
- (_) => {
543
- var b, x;
544
- return ((x = (b = _.ref).getBBox) == null ? void 0 : x.call(b).width) + D.value;
541
+ ...(c.value || []).map(
542
+ ($) => {
543
+ var g, L;
544
+ return ((L = (g = $.ref).getBBox) == null ? void 0 : L.call(g).width) + H.value;
545
545
  }
546
546
  )
547
547
  )
548
548
  ));
549
- function S(_) {
550
- const { showTicks: b } = p.value;
551
- return b === !1 ? "" : k.value(_);
549
+ function B($) {
550
+ const { showTicks: g } = h.value;
551
+ return g === !1 ? "" : b.value($);
552
552
  }
553
- function P(_, b, x) {
554
- e("mouseenter", { index: h.value ? _ : null, value: b, event: x });
553
+ function P($, g, L) {
554
+ e("mouseenter", { index: m.value ? $ : null, value: g, event: L });
555
555
  }
556
- function te(_, b, x) {
557
- e("click", { index: _, value: b, event: x });
556
+ function K($, g, L) {
557
+ e("click", { index: $, value: g, event: L });
558
558
  }
559
- function ne(_) {
560
- var b;
561
- if (!(!v.value || !v.value.length))
562
- return (b = v.value[_]) == null ? void 0 : b.ref;
559
+ function re($) {
560
+ var g;
561
+ if (!(!c.value || !c.value.length))
562
+ return (g = c.value[$]) == null ? void 0 : g.ref;
563
563
  }
564
- function G() {
565
- y.value = T.value.map(
566
- (_, b) => ({
567
- value: S(_),
568
- group: c.getTickGroupAttributes(_, b),
569
- ghost: c.getTickGhostAttributes(ne(b)),
570
- label: c.getTickLabelAttributes(),
571
- gridline: c.getGridLinesAttributes()
564
+ function X() {
565
+ p.value = T.value.map(
566
+ ($, g) => ({
567
+ value: B($),
568
+ group: v.getTickGroupAttributes($, g),
569
+ ghost: v.getTickGhostAttributes(re(g)),
570
+ label: v.getTickLabelAttributes(),
571
+ gridline: v.getGridLinesAttributes()
572
572
  })
573
573
  );
574
574
  }
575
- function U() {
576
- const _ = a.value.step ? "bandScale" : "linearScale", b = pn[`${g.value}-${Oe[_]}`];
577
- Object.entries(b(a, o, p) || []).forEach(
578
- ([x, B]) => {
579
- c[x] = B;
575
+ function j() {
576
+ const $ = a.value.step ? "bandScale" : "linearScale", g = mn[`${y.value}-${$e[$]}`];
577
+ Object.entries(g(a, o, h) || []).forEach(
578
+ ([L, N]) => {
579
+ v[L] = N;
580
580
  }
581
581
  );
582
582
  }
583
- return C(a, U, { flush: "sync", immediate: !0 }), C(a, G, { immediate: !0 }), C(v, G), C(R, (_) => e("lume__internal--axis-size", _)), X(() => me(f.value)), { __sfc: !0, SCALE_MIXIN_MAP: Oe, POSITIONS: $e, TYPES: ve, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: s, mixins: c, tickRefs: v, root: f, ticksWithAttributes: y, computedPosition: m, computedType: g, shouldHover: h, allOptions: p, showTick: L, axisTransform: $, ticks: T, tickFormatter: k, isHovering: N, axisLabelOffset: D, axisSize: R, formatTick: S, handleTickMouseenter: P, handleTickClick: te, getTextNode: ne, setTicks: G, init: U, LumeTick: zt };
583
+ return D(a, j, { flush: "sync", immediate: !0 }), D(a, X, { immediate: !0 }), D(c, X), D(S, ($) => e("lume__internal--axis-size", $)), Y(() => ge(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: $e, POSITIONS: Ie, TYPES: fe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: s, mixins: v, tickRefs: c, root: _, ticksWithAttributes: p, computedPosition: f, computedType: y, shouldHover: m, allOptions: h, showTick: A, axisTransform: x, ticks: T, tickFormatter: b, isHovering: C, axisLabelOffset: H, axisSize: S, formatTick: B, handleTickMouseenter: P, handleTickClick: K, getTextNode: re, setTicks: X, init: j, LumeTick: Wt };
584
584
  }
585
585
  });
586
- var hn = function() {
586
+ var gn = 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(a) {
589
589
  return n.emit("mouseleave", a);
@@ -600,18 +600,18 @@ var hn = function() {
600
600
  a
601
601
  );
602
602
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
603
- }, gn = [], yn = /* @__PURE__ */ w(
604
- mn,
603
+ }, yn = [], bn = /* @__PURE__ */ w(
605
604
  hn,
606
605
  gn,
606
+ yn,
607
607
  !1,
608
608
  null,
609
609
  null,
610
610
  null,
611
611
  null
612
612
  );
613
- const bn = yn.exports;
614
- function kn(t, e, r, n) {
613
+ const kn = bn.exports;
614
+ function xn(t, e, r, n) {
615
615
  const a = d(() => r.value > 0 && r.value < 1), o = d(
616
616
  () => n.value > 0 && n.value < 1
617
617
  ), l = d(
@@ -625,9 +625,9 @@ function kn(t, e, r, n) {
625
625
  }
626
626
  function An(t, e, r, n) {
627
627
  const a = I(0), o = I(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
628
- return X(() => {
628
+ return Y(() => {
629
629
  a.value = r.value, o.value = n.value;
630
- }), C(r, (i) => a.value = i), C(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
630
+ }), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
631
631
  }
632
632
  const Tn = /* @__PURE__ */ E({
633
633
  __name: "lume-bar",
@@ -667,13 +667,13 @@ const Tn = /* @__PURE__ */ E({
667
667
  },
668
668
  emits: ["click", "mouseover", "mouseleave"],
669
669
  setup(t, { emit: e }) {
670
- const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = H(r), s = I(null), c = d(
670
+ const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = R(r), s = I(null), v = d(
671
671
  () => typeof u.value == "string" ? [u.value] : u.value
672
- ), v = d(() => i.value === "width"), f = d(() => i.value === "height"), y = An(n, a, o, l), { computedX: m, computedY: g, shouldHaveMinWidth: h, shouldHaveMinHeight: p } = kn(n, a, o, l), L = d(() => h.value ? 1 : (v.value ? y.computedWidth : o).value), $ = d(() => p.value ? 1 : (f.value ? y.computedHeight : l).value), T = v.value || f.value ? y.transformOrigin : null;
673
- return X(() => me(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: c, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: y, computedX: m, computedY: g, shouldHaveMinWidth: h, shouldHaveMinHeight: p, computedWidth: L, computedHeight: $, transformOrigin: T };
672
+ ), c = d(() => i.value === "width"), _ = d(() => i.value === "height"), p = An(n, a, o, l), { computedX: f, computedY: y, shouldHaveMinWidth: m, shouldHaveMinHeight: h } = xn(n, a, o, l), A = d(() => m.value ? 1 : (c.value ? p.computedWidth : o).value), x = d(() => h.value ? 1 : (_.value ? p.computedHeight : l).value), T = c.value || _.value ? p.transformOrigin : null;
673
+ return Y(() => ge(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: v, shouldTransitionWidth: c, shouldTransitionHeight: _, transitionProps: p, computedX: f, computedY: y, shouldHaveMinWidth: m, shouldHaveMinHeight: h, computedWidth: A, computedHeight: x, transformOrigin: T };
674
674
  }
675
675
  });
676
- var xn = function() {
676
+ var Ln = 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,32 +690,32 @@ var xn = function() {
690
690
  }, mouseleave: function(a) {
691
691
  return n.emit("mouseleave", a);
692
692
  } } });
693
- }, Ln = [], On = /* @__PURE__ */ w(
693
+ }, On = [], $n = /* @__PURE__ */ w(
694
694
  Tn,
695
- xn,
696
695
  Ln,
696
+ On,
697
697
  !1,
698
698
  null,
699
699
  "8e8f732a",
700
700
  null,
701
701
  null
702
702
  );
703
- const Pe = On.exports;
704
- function $n() {
705
- const t = I(), e = pe({
703
+ const Ge = $n.exports;
704
+ function In() {
705
+ const t = I(), e = he({
706
706
  dimensions: {}
707
707
  }), r = new ResizeObserver((n) => {
708
708
  n.forEach((a) => {
709
709
  e.dimensions = a.contentRect;
710
710
  });
711
711
  });
712
- return X(() => {
712
+ return Y(() => {
713
713
  r.observe(t.value);
714
- }), lt(() => {
714
+ }), ut(() => {
715
715
  r.unobserve(t.value);
716
716
  }), { resizeState: e, resizeRef: t };
717
717
  }
718
- const In = /* @__PURE__ */ E({
718
+ const wn = /* @__PURE__ */ E({
719
719
  __name: "lume-chart-container",
720
720
  props: {
721
721
  margins: {
@@ -737,26 +737,26 @@ const In = /* @__PURE__ */ E({
737
737
  },
738
738
  emits: ["click", "mouseenter", "mouseleave", "resize"],
739
739
  setup(t, { emit: e }) {
740
- const r = t, { margins: n, containerSize: a } = H(r), o = I(null), { resizeRef: l, resizeState: i } = $n(), u = d(
740
+ const r = t, { margins: n, containerSize: a } = R(r), o = I(null), { resizeRef: l, resizeState: i } = In(), u = d(
741
741
  () => a.value.height + n.value.top + n.value.bottom
742
742
  );
743
- return ut(() => {
743
+ return it(() => {
744
744
  if (!o.value)
745
745
  return;
746
- const { width: s } = i.dimensions, { height: c } = o.value.getBoundingClientRect();
747
- if (!s || !c)
746
+ const { width: s } = i.dimensions, { height: v } = o.value.getBoundingClientRect();
747
+ if (!s || !v)
748
748
  return;
749
- const v = s - n.value.left - n.value.right, f = c - n.value.top - n.value.bottom, y = {
750
- width: v > 0 ? v : 0,
751
- height: f > 0 ? f : 0,
749
+ const c = s - n.value.left - n.value.right, _ = v - n.value.top - n.value.bottom, p = {
750
+ width: c > 0 ? c : 0,
751
+ height: _ > 0 ? _ : 0,
752
752
  outerWidth: s,
753
- outerHeight: c
753
+ outerHeight: v
754
754
  };
755
- e("resize", y);
755
+ e("resize", p);
756
756
  }), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: i, svgHeight: u };
757
757
  }
758
758
  });
759
- var wn = function() {
759
+ var En = 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,32 +769,32 @@ var wn = function() {
769
769
  }, mouseleave: function(a) {
770
770
  return n.emit("mouseleave", a);
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
- }, En = [], Nn = /* @__PURE__ */ w(
773
- In,
772
+ }, Nn = [], Cn = /* @__PURE__ */ w(
774
773
  wn,
775
774
  En,
775
+ Nn,
776
776
  !1,
777
777
  null,
778
778
  "36870bc4",
779
779
  null,
780
780
  null
781
781
  );
782
- const Cn = Nn.exports, Dn = /* @__PURE__ */ E({
782
+ const Dn = Cn.exports, Hn = /* @__PURE__ */ E({
783
783
  __name: "lume-chart-legend",
784
784
  props: {
785
785
  data: {
786
786
  type: Array,
787
- validator: Zt,
787
+ validator: Xt,
788
788
  required: !0
789
789
  }
790
790
  },
791
791
  emits: ["click", "mouseenter", "mouseleave"],
792
792
  setup(t, { emit: e }) {
793
- const r = fe("isEmpty");
793
+ const r = me("isEmpty");
794
794
  return { __sfc: !0, emit: e, isEmpty: r };
795
795
  }
796
796
  });
797
- var Hn = function() {
797
+ var Rn = 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(a) {
800
800
  return n.emit("mouseleave");
@@ -805,47 +805,47 @@ var Hn = function() {
805
805
  return n.emit("mouseenter", { index: o, dataset: a, event: l });
806
806
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(a.label || o) + " ")]);
807
807
  }), 0);
808
- }, Rn = [], Sn = /* @__PURE__ */ w(
809
- Dn,
808
+ }, Sn = [], Bn = /* @__PURE__ */ w(
810
809
  Hn,
811
810
  Rn,
811
+ Sn,
812
812
  !1,
813
813
  null,
814
814
  "4710298b",
815
815
  null,
816
816
  null
817
817
  );
818
- const Bn = Sn.exports;
819
- const Fn = {};
820
- var Pn = function() {
818
+ const Fn = Bn.exports;
819
+ const Pn = {};
820
+ var Gn = 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
- }, Gn = [], Vn = /* @__PURE__ */ w(
824
- Fn,
823
+ }, Vn = [], jn = /* @__PURE__ */ w(
825
824
  Pn,
826
825
  Gn,
826
+ Vn,
827
827
  !1,
828
828
  null,
829
829
  "8af3fac6",
830
830
  null,
831
831
  null
832
832
  );
833
- const jn = Vn.exports;
834
- const Mn = {};
835
- var zn = function() {
833
+ const Mn = jn.exports;
834
+ const zn = {};
835
+ var Wn = 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
- }, Wn = [], Zn = /* @__PURE__ */ w(
839
- Mn,
838
+ }, Zn = [], Xn = /* @__PURE__ */ w(
840
839
  zn,
841
840
  Wn,
841
+ Zn,
842
842
  !1,
843
843
  null,
844
844
  "4ed7ec1b",
845
845
  null,
846
846
  null
847
847
  );
848
- const Xn = Zn.exports, Un = /* @__PURE__ */ E({
848
+ const Un = Xn.exports, Yn = /* @__PURE__ */ E({
849
849
  __name: "lume-tooltip-item",
850
850
  props: {
851
851
  color: {
@@ -857,20 +857,20 @@ const Xn = Zn.exports, Un = /* @__PURE__ */ E({
857
857
  return { __sfc: !0 };
858
858
  }
859
859
  });
860
- var Yn = function() {
860
+ var Kn = 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
- }, Kn = [], Jn = /* @__PURE__ */ w(
864
- Un,
863
+ }, Jn = [], Qn = /* @__PURE__ */ w(
865
864
  Yn,
866
865
  Kn,
866
+ Jn,
867
867
  !1,
868
868
  null,
869
869
  "4f995c3c",
870
870
  null,
871
871
  null
872
872
  );
873
- const Qn = Jn.exports, qn = /* @__PURE__ */ E({
873
+ const qn = Qn.exports, er = /* @__PURE__ */ E({
874
874
  __name: "lume-tooltip",
875
875
  props: {
876
876
  targetElement: {
@@ -884,7 +884,7 @@ const Qn = Jn.exports, qn = /* @__PURE__ */ E({
884
884
  position: {
885
885
  type: String,
886
886
  default: "auto",
887
- validator: (t) => un.includes(t)
887
+ validator: (t) => sn.includes(t)
888
888
  },
889
889
  fixedPositioning: {
890
890
  type: Boolean,
@@ -902,15 +902,15 @@ const Qn = Jn.exports, qn = /* @__PURE__ */ E({
902
902
  type: String,
903
903
  default: null
904
904
  },
905
- ...se()
905
+ ...ce()
906
906
  },
907
907
  emits: ["opened", "moved", "closed"],
908
908
  setup(t, { emit: e }) {
909
- const r = t, n = I(null), { items: a, options: o } = H(r), l = V(), i = I(null), { allOptions: u } = W(o), s = d(
909
+ const r = t, n = I(null), { items: a, options: o } = R(r), l = G(), i = I(null), { allOptions: u } = Z(o), s = d(
910
910
  () => u.value.fixedPositioning ?? r.fixedPositioning
911
- ), c = d(
911
+ ), v = d(
912
912
  () => s.value ? "fixed" : "absolute"
913
- ), v = d(() => [
913
+ ), c = d(() => [
914
914
  {
915
915
  name: "computeStyles",
916
916
  options: {
@@ -923,40 +923,40 @@ const Qn = Jn.exports, qn = /* @__PURE__ */ E({
923
923
  options: { offset: [0, u.value.offset || 8] }
924
924
  },
925
925
  ...r.modifiers || []
926
- ]), f = d(
926
+ ]), _ = d(
927
927
  () => u.value.showTitle !== !1 && r.title != null
928
- ), y = d(() => _e(u.value.valueFormat)), m = d(() => _e(u.value.titleFormat)), g = d(
928
+ ), p = d(() => pe(u.value.valueFormat)), f = d(() => pe(u.value.titleFormat)), y = d(
929
929
  () => {
930
930
  var T;
931
- return ((T = a.value) == null ? void 0 : T.find((k) => k.isSummary)) || {
931
+ return ((T = a.value) == null ? void 0 : T.find((b) => b.isSummary)) || {
932
932
  label: u.value.summary ?? r.summary
933
933
  };
934
934
  }
935
- ), h = d(() => l.summary || g.value.label);
936
- function p() {
937
- r.targetElement && n.value && (i.value = St(r.targetElement, n.value, {
935
+ ), m = d(() => l.summary || y.value.label);
936
+ function h() {
937
+ r.targetElement && n.value && (i.value = Bt(r.targetElement, n.value, {
938
938
  placement: r.position,
939
- strategy: c.value,
940
- modifiers: v.value
939
+ strategy: v.value,
940
+ modifiers: c.value
941
941
  }), e("opened", r.targetElement));
942
942
  }
943
- function L() {
943
+ function A() {
944
944
  i.value && (i.value.destroy(), e("closed"));
945
945
  }
946
- function $() {
946
+ function x() {
947
947
  i.value && (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
- }() : L());
949
+ }() : A());
950
950
  }
951
- return C(
951
+ return D(
952
952
  () => r.targetElement,
953
- (T, k) => {
954
- !k && T ? p() : $();
953
+ (T, b) => {
954
+ !b && T ? h() : x();
955
955
  }
956
- ), X(p), lt(L), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: c, allModifiers: v, showTitle: f, formatValue: y, formatTitle: m, summaryItem: g, hasSummary: h, initPopper: p, destroyPopper: L, updatePopper: $, LumeTooltipTitle: jn, LumeTooltipSummary: Xn, LumeTooltipItem: Qn };
956
+ ), Y(h), ut(A), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: v, allModifiers: c, showTitle: _, formatValue: p, formatTitle: f, summaryItem: y, hasSummary: m, initPopper: h, destroyPopper: A, updatePopper: x, LumeTooltipTitle: Mn, LumeTooltipSummary: Un, LumeTooltipItem: qn };
957
957
  }
958
958
  });
959
- var er = function() {
959
+ var tr = 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", attrs: { "data-j-tooltip": "" } }, [e._t("default", function() {
962
962
  return [e._t("title", function() {
@@ -975,66 +975,66 @@ var er = function() {
975
975
  });
976
976
  })], 2)];
977
977
  })], 2);
978
- }, tr = [], nr = /* @__PURE__ */ w(
979
- qn,
978
+ }, nr = [], rr = /* @__PURE__ */ w(
980
979
  er,
981
980
  tr,
981
+ nr,
982
982
  !1,
983
983
  null,
984
984
  "57f370fa",
985
985
  null,
986
986
  null
987
987
  );
988
- const rr = nr.exports;
989
- var K = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(K || {});
990
- const ar = K.Categorical, de = j.Skyblue, or = Be.SkyTeal;
991
- function lr(t) {
992
- return t === K.Divergent ? or : de;
993
- }
988
+ const ar = rr.exports;
989
+ var Q = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(Q || {});
990
+ const or = Q.Categorical, ve = V.Skyblue, lr = Fe.SkyTeal;
994
991
  function ur(t) {
995
- return Object.values(Fe).includes(t);
992
+ return t === Q.Divergent ? lr : ve;
993
+ }
994
+ function ir(t) {
995
+ return Object.values(Pe).includes(t);
996
996
  }
997
997
  function We(t, e) {
998
- return e === K.Divergent ? Object.values(Be).includes(t) : Object.values({
999
- ...j,
1000
- ...dt,
998
+ return e === Q.Divergent ? Object.values(Fe).includes(t) : Object.values({
999
+ ...V,
1001
1000
  ...vt,
1002
- ...Fe
1001
+ ..._t,
1002
+ ...Pe
1003
1003
  }).includes(t);
1004
1004
  }
1005
- function ir(t, e) {
1006
- const r = Object.values(j).indexOf(t);
1007
- return qt(Object.values(j), r > -1 ? r : 0)[e];
1008
- }
1009
1005
  function sr(t, e) {
1006
+ const r = Object.values(V).indexOf(t);
1007
+ return en(Object.values(V), r > -1 ? r : 0)[e];
1008
+ }
1009
+ function cr(t, e) {
1010
1010
  const r = 50 + e * 10;
1011
1011
  return `${t}-${r}`;
1012
1012
  }
1013
- function cr(t, e) {
1013
+ function dr(t, e) {
1014
1014
  const r = (e + 1) * 10;
1015
1015
  return `${t}-${r}`;
1016
1016
  }
1017
1017
  function Ze(t, e, r) {
1018
1018
  switch (e) {
1019
1019
  default:
1020
- case K.Categorical:
1021
- return ur(t) ? t : ir(t, r);
1022
- case K.Sequential:
1023
- return sr(t, r);
1024
- case K.Divergent:
1020
+ case Q.Categorical:
1021
+ return ir(t) ? t : sr(t, r);
1022
+ case Q.Sequential:
1025
1023
  return cr(t, r);
1024
+ case Q.Divergent:
1025
+ return dr(t, r);
1026
1026
  }
1027
1027
  }
1028
- function dr(t, e, r = ar, n) {
1029
- return We(t, r) ? t : (n > 4 && (J(Z.ColorLoop), n = n % 5), We(e, r) ? Ze(e, r, n) : Ze(lr(r), r, n));
1030
- }
1031
- function vr(t) {
1032
- return t.map((e) => Xt(e) ? e : { value: e });
1028
+ function vr(t, e, r = or, n) {
1029
+ return We(t, r) ? t : (n > 4 && (q(U.ColorLoop), n = n % 5), We(e, r) ? Ze(e, r, n) : Ze(ur(r), r, n));
1033
1030
  }
1034
1031
  function _r(t) {
1032
+ return t.map((e) => Ut(e) ? e : { value: e });
1033
+ }
1034
+ function fr(t) {
1035
1035
  return t.__internal === !0;
1036
1036
  }
1037
- const Ge = (t = null) => ({
1037
+ const Ve = (t = null) => ({
1038
1038
  data: {
1039
1039
  type: Array,
1040
1040
  required: !0,
@@ -1046,41 +1046,41 @@ const Ge = (t = null) => ({
1046
1046
  },
1047
1047
  color: {
1048
1048
  type: String,
1049
- default: j.Skyblue
1049
+ default: V.Skyblue
1050
1050
  },
1051
1051
  title: {
1052
1052
  type: String,
1053
1053
  default: null
1054
1054
  }
1055
1055
  });
1056
- function Ve(t, e, r, n, a) {
1057
- const o = pe({
1056
+ function je(t, e, r, n, a) {
1057
+ const o = he({
1058
1058
  width: 0,
1059
1059
  height: 0
1060
- }), l = tn(12), i = d(() => {
1061
- var c;
1062
- return t.value.length > 5 && J(Z.DatasetLength), (c = t.value) == null ? void 0 : c.map(
1063
- (v, f) => {
1064
- if (_r(v))
1065
- return v;
1066
- const y = vr(v.values), m = dr(
1067
- v.color,
1060
+ }), l = nn(12), i = d(() => {
1061
+ var v;
1062
+ return t.value.length > 5 && q(U.DatasetLength), (v = t.value) == null ? void 0 : v.map(
1063
+ (c, _) => {
1064
+ if (fr(c))
1065
+ return c;
1066
+ const p = _r(c.values), f = vr(
1067
+ c.color,
1068
1068
  r == null ? void 0 : r.value,
1069
1069
  n == null ? void 0 : n.value.colorPalette,
1070
- f
1070
+ _
1071
1071
  );
1072
1072
  return {
1073
- ...v,
1074
- values: y,
1075
- color: m,
1073
+ ...c,
1074
+ values: p,
1075
+ color: f,
1076
1076
  __internal: !0
1077
1077
  };
1078
1078
  }
1079
1079
  );
1080
- }), u = d(() => Array.isArray(e.value) ? e.value : Le(t.value).map((c, v) => v));
1081
- function s(c) {
1082
- const v = (a == null ? void 0 : a.value) === O.HORIZONTAL && Le(t).length * (((n == null ? void 0 : n.value.barHeight) || ze) * 2) + ((n == null ? void 0 : n.value.barHeight) || ze) || c.height;
1083
- o.width = c.width, o.height = v;
1080
+ }), u = d(() => Array.isArray(e.value) ? e.value : Oe(t.value).map((v, c) => c));
1081
+ function s(v) {
1082
+ const c = (a == null ? void 0 : a.value) === O.HORIZONTAL && Oe(t).length * (((n == null ? void 0 : n.value.barHeight) || ze) * 2) + ((n == null ? void 0 : n.value.barHeight) || ze) || v.height;
1083
+ o.width = v.width, o.height = c;
1084
1084
  }
1085
1085
  return {
1086
1086
  chartID: l,
@@ -1090,7 +1090,7 @@ function Ve(t, e, r, n, a) {
1090
1090
  updateSize: s
1091
1091
  };
1092
1092
  }
1093
- const fr = () => ({
1093
+ const pr = () => ({
1094
1094
  xScale: {
1095
1095
  type: Function,
1096
1096
  default: null
@@ -1100,7 +1100,7 @@ const fr = () => ({
1100
1100
  default: null
1101
1101
  }
1102
1102
  });
1103
- function pr(t, e, r, n, a) {
1103
+ function mr(t, e, r, n, a) {
1104
1104
  const o = I(null), l = I(null);
1105
1105
  function i() {
1106
1106
  const { width: u, height: s } = r;
@@ -1126,43 +1126,43 @@ function pr(t, e, r, n, a) {
1126
1126
  a.value.startOnZero
1127
1127
  )));
1128
1128
  }
1129
- return ut(i), { xScale: o, yScale: l };
1129
+ return it(i), { xScale: o, yScale: l };
1130
1130
  }
1131
1131
  function Xe(t, e, r, n) {
1132
- const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? pt : ft);
1132
+ const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? mt : pt);
1133
1133
  return Object.assign(
1134
- ue().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((s, c) => c)),
1134
+ ie().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((s, v) => v)),
1135
1135
  { labels: t }
1136
1136
  );
1137
1137
  }
1138
1138
  function Ue(t, e, r, n) {
1139
- const a = st(t).filter((c) => c != null), o = [0, e];
1139
+ const a = ct(t).filter((v) => v != null), o = [0, e];
1140
1140
  if (a.length === 0)
1141
- return ie().range(o).domain([0, 0]).nice();
1141
+ return se().range(o).domain([0, 0]).nice();
1142
1142
  const l = Math.min(...a), i = n && l > 0 ? 0 : l, u = Math.max(...a), s = r === O.HORIZONTAL ? [i, u] : [u, i];
1143
- return ie().range(o).domain(s).nice();
1143
+ return se().range(o).domain(s).nice();
1144
1144
  }
1145
1145
  function Ye(t) {
1146
1146
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
1147
1147
  }
1148
- function Ie(t, e) {
1149
- return q(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1148
+ function we(t, e) {
1149
+ return te(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1150
1150
  }
1151
1151
  function Ke(t, e, {
1152
1152
  padding: r,
1153
1153
  paddingInner: n,
1154
1154
  paddingOuter: a
1155
1155
  } = {}) {
1156
- const o = r ?? (e === O.HORIZONTAL ? pt : ft);
1156
+ const o = r ?? (e === O.HORIZONTAL ? mt : pt);
1157
1157
  return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o);
1158
1158
  }
1159
- function gt(t) {
1159
+ function yt(t) {
1160
1160
  return Object.values(O).includes(t);
1161
1161
  }
1162
- const ae = (t, e = !0) => ({
1163
- ...Ge(t),
1164
- ...fr(),
1165
- ...se(),
1162
+ const oe = (t, e = !0) => ({
1163
+ ...Ve(t),
1164
+ ...pr(),
1165
+ ...ce(),
1166
1166
  classList: {
1167
1167
  type: [String, Array],
1168
1168
  default: () => []
@@ -1175,17 +1175,17 @@ const ae = (t, e = !0) => ({
1175
1175
  orientation: {
1176
1176
  type: String,
1177
1177
  default: O.VERTICAL,
1178
- validator: gt
1178
+ validator: yt
1179
1179
  }
1180
1180
  } : {}
1181
- }), mr = (t) => ({
1182
- ...Ge(t),
1183
- ...se(),
1181
+ }), hr = (t) => ({
1182
+ ...Ve(t),
1183
+ ...ce(),
1184
1184
  hoveredElement: {
1185
1185
  type: [Number, String],
1186
1186
  default: null
1187
1187
  }
1188
- }), he = () => ({
1188
+ }), ye = () => ({
1189
1189
  data: {
1190
1190
  type: Array,
1191
1191
  required: !0
@@ -1201,7 +1201,7 @@ const ae = (t, e = !0) => ({
1201
1201
  orientation: {
1202
1202
  type: String,
1203
1203
  default: O.VERTICAL,
1204
- validator: gt
1204
+ validator: yt
1205
1205
  },
1206
1206
  xScale: {
1207
1207
  type: Function,
@@ -1227,10 +1227,10 @@ const ae = (t, e = !0) => ({
1227
1227
  type: [String, Array],
1228
1228
  default: () => []
1229
1229
  }
1230
- }), hr = /* @__PURE__ */ E({
1230
+ }), gr = /* @__PURE__ */ E({
1231
1231
  __name: "lume-overlay-group",
1232
1232
  props: {
1233
- ...he(),
1233
+ ...ye(),
1234
1234
  orientation: {
1235
1235
  type: String,
1236
1236
  default: O.VERTICAL
@@ -1238,24 +1238,24 @@ const ae = (t, e = !0) => ({
1238
1238
  },
1239
1239
  emits: ["click", "lume__internal--hover", "mouseover"],
1240
1240
  setup(t, { emit: e }) {
1241
- const r = t, { data: n, orientation: a, xScale: o, yScale: l } = H(r), i = d(() => Le(n));
1241
+ const r = t, { data: n, orientation: a, xScale: o, yScale: l } = R(r), i = d(() => Oe(n));
1242
1242
  function u(s) {
1243
- var h;
1244
- const c = a.value === O.HORIZONTAL ? l.value : o.value, v = c.domain(), f = Ut(c), y = ((h = c.paddingInner) == null ? void 0 : h.call(c)) ?? 0, m = f * y, g = q(c) ? c(v[s]) - m / 2 : c(s) - f / 2;
1243
+ var m;
1244
+ const v = a.value === O.HORIZONTAL ? l.value : o.value, c = v.domain(), _ = Yt(v), p = ((m = v.paddingInner) == null ? void 0 : m.call(v)) ?? 0, f = _ * p, y = te(v) ? v(c[s]) - f / 2 : v(s) - _ / 2;
1245
1245
  return a.value === O.HORIZONTAL ? {
1246
1246
  width: Math.max(...o.value.range()),
1247
- height: f,
1248
- transform: `translate(0, ${g})`
1247
+ height: _,
1248
+ transform: `translate(0, ${y})`
1249
1249
  } : {
1250
- width: f,
1250
+ width: _,
1251
1251
  height: Math.max(...l.value.range()),
1252
- transform: `translate(${g}, 0)`
1252
+ transform: `translate(${y}, 0)`
1253
1253
  };
1254
1254
  }
1255
- return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Pe };
1255
+ return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Ge };
1256
1256
  }
1257
1257
  });
1258
- var gr = function() {
1258
+ var yr = function() {
1259
1259
  var e = this, r = e._self._c, n = e._self._setupProxy;
1260
1260
  return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
1261
1261
  return r(n.LumeBar, e._b({ key: `overlay-${o}`, attrs: { "data-j-lume-overlay-group": o, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
@@ -1264,20 +1264,20 @@ var gr = function() {
1264
1264
  return n.emit("click", { index: o, event: l });
1265
1265
  } } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
1266
1266
  }), 1);
1267
- }, yr = [], br = /* @__PURE__ */ w(
1268
- hr,
1267
+ }, br = [], kr = /* @__PURE__ */ w(
1269
1268
  gr,
1270
1269
  yr,
1270
+ br,
1271
1271
  !1,
1272
1272
  null,
1273
1273
  null,
1274
1274
  null,
1275
1275
  null
1276
1276
  );
1277
- const kr = br.exports;
1277
+ const xr = kr.exports;
1278
1278
  function Ar(t) {
1279
1279
  return { hasNegativeValues: d(
1280
- () => st(t.value).some((r) => r < 0)
1280
+ () => ct(t.value).some((r) => r < 0)
1281
1281
  ) };
1282
1282
  }
1283
1283
  function Tr(t, e, r, n) {
@@ -1305,19 +1305,19 @@ function Tr(t, e, r, n) {
1305
1305
  transform: i.value
1306
1306
  })) };
1307
1307
  }
1308
- function xr(t) {
1308
+ function Lr(t) {
1309
1309
  return t.reduce((e, r) => r.values.map((n, a) => e[a] ? n.value > e[a] ? n.value : e[a] : n.value ?? 0), []);
1310
1310
  }
1311
- function Lr(t) {
1311
+ function Or(t) {
1312
1312
  return t.reduce((e, r) => r.values.map((n, a) => {
1313
1313
  const o = n.value == null || n.value < 0 ? 0 : n.value;
1314
1314
  return e[a] ? e[a] + o : o;
1315
1315
  }), []);
1316
1316
  }
1317
1317
  const Je = {
1318
- "stacked-bar": Lr
1318
+ "stacked-bar": Or
1319
1319
  };
1320
- function yt(t, e, r, n, a, o, l) {
1320
+ function bt(t, e, r, n, a, o, l) {
1321
1321
  const i = d(
1322
1322
  () => {
1323
1323
  var s;
@@ -1325,13 +1325,13 @@ function yt(t, e, r, n, a, o, l) {
1325
1325
  }
1326
1326
  );
1327
1327
  function u(s) {
1328
- const c = l != null && l.value && Je[l.value] ? Je[l.value](s) : xr(s);
1329
- t.value = c.map((v, f) => ({
1330
- cx: (a == null ? void 0 : a.value) === O.HORIZONTAL ? r.value(v) : Ie(r.value, f),
1331
- cy: (a == null ? void 0 : a.value) === O.HORIZONTAL ? Ie(n.value, f) : n.value(v)
1328
+ const v = l != null && l.value && Je[l.value] ? Je[l.value](s) : Lr(s);
1329
+ t.value = v.map((c, _) => ({
1330
+ cx: (a == null ? void 0 : a.value) === O.HORIZONTAL ? r.value(c) : we(r.value, _),
1331
+ cy: (a == null ? void 0 : a.value) === O.HORIZONTAL ? we(n.value, _) : n.value(c)
1332
1332
  }));
1333
1333
  }
1334
- return C(
1334
+ return D(
1335
1335
  [r, n],
1336
1336
  () => {
1337
1337
  r.value && n.value && (o != null && o.value) && i.value && u(o.value);
@@ -1339,8 +1339,8 @@ function yt(t, e, r, n, a, o, l) {
1339
1339
  { immediate: !0 }
1340
1340
  ), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: u };
1341
1341
  }
1342
- function Or() {
1343
- const t = pe({
1342
+ function $r() {
1343
+ const t = he({
1344
1344
  opened: !1,
1345
1345
  targetElement: null
1346
1346
  });
@@ -1350,156 +1350,156 @@ function Or() {
1350
1350
  t.opened = !1, t.targetElement = null;
1351
1351
  } };
1352
1352
  }
1353
- function $r(t) {
1353
+ function Ir(t) {
1354
1354
  return { getTooltipItems: d(
1355
1355
  () => (r) => t.value.map(({ color: n, label: a, values: o }) => {
1356
1356
  var l, i, u;
1357
1357
  return {
1358
1358
  color: ((l = o[r]) == null ? void 0 : l.color) || n,
1359
1359
  label: a,
1360
- value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? _t
1360
+ value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? ft
1361
1361
  };
1362
1362
  })
1363
1363
  ) };
1364
1364
  }
1365
- const we = 16, Ee = 8, Ne = 28, Ce = 24, Q = {
1365
+ const Ee = 16, Ne = 8, Ce = 28, De = 24, ee = {
1366
1366
  VERTICAL: {
1367
- top: we,
1368
- right: Ee,
1369
- bottom: Ne,
1370
- left: Ce
1367
+ top: Ee,
1368
+ right: Ne,
1369
+ bottom: Ce,
1370
+ left: De
1371
1371
  },
1372
1372
  HORIZONTAL: {
1373
- top: we,
1374
- right: Ee,
1375
- bottom: Ne,
1376
- left: Ce
1373
+ top: Ee,
1374
+ right: Ne,
1375
+ bottom: Ce,
1376
+ left: De
1377
1377
  }
1378
1378
  };
1379
- function Ir(t) {
1380
- return !t || t === "auto" || t.top == null || t.top === "auto" ? we : t.top;
1381
- }
1382
1379
  function wr(t) {
1383
- return !t || t === "auto" || t.right == null || t.right === "auto" ? Ee : t.right;
1380
+ return !t || t === "auto" || t.top == null || t.top === "auto" ? Ee : t.top;
1384
1381
  }
1385
- function Er(t, e) {
1386
- return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ne : t.bottom;
1382
+ function Er(t) {
1383
+ return !t || t === "auto" || t.right == null || t.right === "auto" ? Ne : t.right;
1387
1384
  }
1388
1385
  function Nr(t, e) {
1389
- return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Ce : t.left;
1386
+ return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ce : t.bottom;
1387
+ }
1388
+ function Cr(t, e) {
1389
+ return !t || t === "auto" || t.left == null || t.left === "auto" ? e || De : t.left;
1390
1390
  }
1391
- const Cr = /* @__PURE__ */ E({
1391
+ const Dr = /* @__PURE__ */ E({
1392
1392
  __name: "lume-chart",
1393
1393
  props: {
1394
- ...ae(),
1394
+ ...oe(),
1395
1395
  chartType: {
1396
1396
  type: String,
1397
1397
  default: null
1398
1398
  }
1399
1399
  },
1400
1400
  setup(t, { emit: e }) {
1401
- const r = t, n = V(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = H(r), c = I(-1), v = I(null), f = I(null), y = I([]), m = I(0), g = I(0), { allOptions: h } = W(i), { internalData: p, computedLabels: L, containerSize: $, updateSize: T, chartID: k } = Ve(a, o, l, h, u), { xScale: N, yScale: D } = pr(
1402
- p,
1403
- L,
1404
- $,
1401
+ const r = t, n = G(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = R(r), v = I(-1), c = I(null), _ = I(null), p = I([]), f = I(0), y = I(0), { allOptions: m } = Z(i), { internalData: h, computedLabels: A, containerSize: x, updateSize: T, chartID: b } = je(a, o, l, m, u), { xScale: C, yScale: H } = mr(
1402
+ h,
1403
+ A,
1404
+ x,
1405
1405
  u,
1406
- h
1407
- ), R = d(() => ({
1408
- top: Ir(h.value.margins),
1409
- right: wr(h.value.margins),
1410
- bottom: Er(h.value.margins, m.value),
1411
- left: Nr(h.value.margins, g.value)
1412
- })), S = d(() => {
1413
- var A;
1414
- return r.xScale ? Ye(r.xScale) ? r.xScale : (A = r.xScale) == null ? void 0 : A.call(r, p.value, o.value, $) : N.value;
1406
+ m
1407
+ ), S = d(() => ({
1408
+ top: wr(m.value.margins),
1409
+ right: Er(m.value.margins),
1410
+ bottom: Nr(m.value.margins, f.value),
1411
+ left: Cr(m.value.margins, y.value)
1412
+ })), B = d(() => {
1413
+ var k;
1414
+ return r.xScale ? Ye(r.xScale) ? r.xScale : (k = r.xScale) == null ? void 0 : k.call(r, h.value, o.value, x) : C.value;
1415
1415
  }), P = d(() => {
1416
- var A;
1417
- return r.yScale ? Ye(r.yScale) ? r.yScale : (A = r.yScale) == null ? void 0 : A.call(r, p.value, o.value, $) : D.value;
1418
- }), te = d(() => ({
1419
- ...h.value.xAxisOptions,
1416
+ var k;
1417
+ return r.yScale ? Ye(r.yScale) ? r.yScale : (k = r.yScale) == null ? void 0 : k.call(r, h.value, o.value, x) : H.value;
1418
+ }), K = d(() => ({
1419
+ ...m.value.xAxisOptions,
1420
1420
  withHover: u.value === O.VERTICAL
1421
- })), ne = d(() => ({
1422
- ...h.value.yAxisOptions,
1421
+ })), re = d(() => ({
1422
+ ...m.value.yAxisOptions,
1423
1423
  withHover: u.value === O.HORIZONTAL
1424
- })), G = d(() => {
1425
- var A;
1426
- return (A = h.value.xAxisOptions) == null ? void 0 : A.title;
1427
- }), U = d(() => {
1428
- var A;
1429
- return (A = h.value.yAxisOptions) == null ? void 0 : A.title;
1430
- }), _ = d(() => {
1431
- var A;
1432
- return ((A = h.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && G.value;
1433
- }), b = d(() => {
1434
- var A;
1435
- return ((A = h.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && U.value;
1436
- }), x = d(
1437
- () => a.value.every((A) => !A.values.length)
1438
- ), B = d(() => {
1439
- const A = [], { noBaseScales: F } = h.value;
1440
- return F || A.push(() => !!(S.value && P.value)), A.every((Y) => Y() === !0);
1441
- }), { hasNegativeValues: M } = Ar(p), { negativeBarAttributes: z } = Tr(
1442
- $,
1443
- S,
1424
+ })), X = d(() => {
1425
+ var k;
1426
+ return (k = m.value.xAxisOptions) == null ? void 0 : k.title;
1427
+ }), j = d(() => {
1428
+ var k;
1429
+ return (k = m.value.yAxisOptions) == null ? void 0 : k.title;
1430
+ }), $ = d(() => {
1431
+ var k;
1432
+ return ((k = m.value.xAxisOptions) == null ? void 0 : k.withTitle) !== !1 && X.value;
1433
+ }), g = d(() => {
1434
+ var k;
1435
+ return ((k = m.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && j.value;
1436
+ }), L = d(
1437
+ () => a.value.every((k) => !k.values.length)
1438
+ ), N = d(() => {
1439
+ const k = [], { noBaseScales: F } = m.value;
1440
+ return F || k.push(() => !!(B.value && P.value)), k.every((J) => J() === !0);
1441
+ }), { hasNegativeValues: M } = Ar(h), { negativeBarAttributes: z } = Tr(
1442
+ x,
1443
+ B,
1444
1444
  P,
1445
1445
  u
1446
- ), { shouldGenerateTooltipAnchors: ge } = yt(
1447
- y,
1448
- h,
1449
- S,
1446
+ ), { shouldGenerateTooltipAnchors: W } = bt(
1447
+ p,
1448
+ m,
1449
+ B,
1450
1450
  P,
1451
1451
  u,
1452
- p,
1452
+ h,
1453
1453
  s
1454
- ), { tooltipConfig: ye, showTooltip: le, hideTooltip: Me } = Or(), { getTooltipItems: Lt } = $r(p), Ot = d(
1455
- () => h.value.withTooltip !== !1 && ye.opened
1456
- ), $t = d(
1454
+ ), { tooltipConfig: _e, showTooltip: be, hideTooltip: ue } = $r(), { getTooltipItems: Ot } = Ir(h), $t = d(
1455
+ () => m.value.withTooltip !== !1 && _e.opened
1456
+ ), It = d(
1457
1457
  () => {
1458
- var A;
1459
- return ((A = h.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1458
+ var k;
1459
+ return ((k = m.value.tooltipOptions) == null ? void 0 : k.position) || "top";
1460
1460
  }
1461
1461
  );
1462
- function be(A) {
1462
+ function ke(k) {
1463
1463
  var F;
1464
- if (A !== c.value && (h.value.withHover !== !1 && (c.value = A), h.value.withTooltip !== !1)) {
1465
- const Y = (F = h.value.tooltipOptions) != null && F.targetElement ? h.value.tooltipOptions.targetElement === "self" ? f.value.$el : h.value.tooltipOptions.targetElement : v.value[A];
1466
- le(Y);
1464
+ if (k !== v.value && (m.value.withHover !== !1 && (v.value = k), m.value.withTooltip !== !1)) {
1465
+ const J = (F = m.value.tooltipOptions) != null && F.targetElement ? m.value.tooltipOptions.targetElement === "self" ? _.value.$el : m.value.tooltipOptions.targetElement : c.value[k];
1466
+ be(J);
1467
1467
  }
1468
1468
  }
1469
- function ke(A) {
1470
- if (A > a.value[0].values.length - 1) {
1471
- J(Z.InvalidHoveredIndex);
1469
+ function xe(k) {
1470
+ if (k > a.value[0].values.length - 1) {
1471
+ q(U.InvalidHoveredIndex);
1472
1472
  return;
1473
1473
  }
1474
- be(A);
1474
+ ke(k);
1475
1475
  }
1476
- function It() {
1477
- Me(), c.value = -1, e("chart-mouseleave");
1476
+ function wt() {
1477
+ ue(), v.value = -1, e("chart-mouseleave");
1478
1478
  }
1479
- function wt({ index: A, value: F, event: Y }) {
1480
- A !== null && be(A), e("axis-mouseenter", { index: A, value: F, event: Y });
1479
+ function Et({ index: k, value: F, event: J }) {
1480
+ k !== null && ke(k), e("axis-mouseenter", { index: k, value: F, event: J });
1481
1481
  }
1482
- function Et({ index: A, value: F, event: Y }) {
1483
- e("axis-click", { index: A, value: F, event: Y });
1482
+ function Nt({ index: k, value: F, event: J }) {
1483
+ e("axis-click", { index: k, value: F, event: J });
1484
1484
  }
1485
- return C(
1485
+ return D(
1486
1486
  a,
1487
- (A, F) => e("data-changed", { newValue: A, oldValue: F })
1488
- ), C(
1487
+ (k, F) => e("data-changed", { newValue: k, oldValue: F })
1488
+ ), D(
1489
1489
  o,
1490
- (A, F) => e("labels-changed", { newValue: A, oldValue: F })
1491
- ), C(x, (A) => A && J(Z.Empty), { immediate: !0 }), C(() => r.hoveredIndex, ke), C(
1492
- y,
1493
- (A) => {
1494
- A && r.hoveredIndex != null && c.value === -1 && ke(r.hoveredIndex);
1490
+ (k, F) => e("labels-changed", { newValue: k, oldValue: F })
1491
+ ), D(L, (k) => k && q(U.Empty), { immediate: !0 }), D(() => r.hoveredIndex, xe), D(
1492
+ p,
1493
+ (k) => {
1494
+ k && r.hoveredIndex != null && v.value === -1 && xe(r.hoveredIndex);
1495
1495
  },
1496
1496
  { flush: "post" }
1497
- ), X(() => {
1497
+ ), Y(() => {
1498
1498
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.');
1499
- }), Ae("chartID", k), Ae("isEmpty", x), Ae("tooltipAnchorAttributes", y), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: c, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: y, xAxisHeight: m, yAxisWidth: g, allOptions: h, internalData: p, computedLabels: L, containerSize: $, updateSize: T, chartID: k, xScale: N, yScale: D, computedMargins: R, computedXScale: S, computedYScale: P, computedXAxisOptions: te, computedYAxisOptions: ne, xAxisTitle: G, yAxisTitle: U, showXAxisTitle: _, showYAxisTitle: b, isEmpty: x, isReady: B, hasNegativeValues: M, negativeBarAttributes: z, shouldGenerateTooltipAnchors: ge, tooltipConfig: ye, showTooltip: le, hideTooltip: Me, getTooltipItems: Lt, isTooltipOpened: Ot, tooltipPosition: $t, handleInternalHover: be, handleExternalHover: ke, handleMouseleave: It, handleAxisMouseenter: wt, handleAxisClick: Et, LumeAxis: bn, LumeBar: Pe, LumeChartContainer: Cn, LumeChartLegend: Bn, LumeTooltip: rr, LumeOverlayGroup: kr, TOOLTIP_ANCHOR_RADIUS: ln };
1499
+ }), Ae("chartID", b), Ae("isEmpty", L), Ae("tooltipAnchorAttributes", p), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: v, tooltipAnchor: c, chartContainer: _, tooltipAnchorAttributes: p, xAxisHeight: f, yAxisWidth: y, allOptions: m, internalData: h, computedLabels: A, containerSize: x, updateSize: T, chartID: b, xScale: C, yScale: H, computedMargins: S, computedXScale: B, computedYScale: P, computedXAxisOptions: K, computedYAxisOptions: re, xAxisTitle: X, yAxisTitle: j, showXAxisTitle: $, showYAxisTitle: g, isEmpty: L, isReady: N, hasNegativeValues: M, negativeBarAttributes: z, shouldGenerateTooltipAnchors: W, tooltipConfig: _e, showTooltip: be, hideTooltip: ue, getTooltipItems: Ot, isTooltipOpened: $t, tooltipPosition: It, handleInternalHover: ke, handleExternalHover: xe, handleMouseleave: wt, handleAxisMouseenter: Et, handleAxisClick: Nt, LumeAxis: kn, LumeBar: Ge, LumeChartContainer: Dn, LumeChartLegend: Fn, LumeTooltip: ar, LumeOverlayGroup: xr, TOOLTIP_ANCHOR_RADIUS: un };
1500
1500
  }
1501
1501
  });
1502
- var Dr = function() {
1502
+ var Hr = function() {
1503
1503
  var e = this, r = e._self._c, n = e._self._setupProxy;
1504
1504
  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(a) {
1505
1505
  return n.emit("chart-click", a);
@@ -1552,17 +1552,17 @@ var Dr = function() {
1552
1552
  }, { 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(a, o) {
1553
1553
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
1554
1554
  }), 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);
1555
- }, Hr = [], Rr = /* @__PURE__ */ w(
1556
- Cr,
1555
+ }, Rr = [], Sr = /* @__PURE__ */ w(
1557
1556
  Dr,
1558
1557
  Hr,
1558
+ Rr,
1559
1559
  !1,
1560
1560
  null,
1561
1561
  "c4b73860",
1562
1562
  null,
1563
1563
  null
1564
1564
  );
1565
- const oe = Rr.exports, Sr = /* @__PURE__ */ E({
1565
+ const le = Sr.exports, Br = /* @__PURE__ */ E({
1566
1566
  __name: "lume-alluvial-node-label",
1567
1567
  props: {
1568
1568
  bottom: { type: Boolean, default: !1 }
@@ -1571,20 +1571,20 @@ const oe = Rr.exports, Sr = /* @__PURE__ */ E({
1571
1571
  return { __sfc: !0 };
1572
1572
  }
1573
1573
  });
1574
- var Br = function() {
1574
+ var Fr = function() {
1575
1575
  var e = this, r = e._self._c;
1576
1576
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1577
- }, Fr = [], Pr = /* @__PURE__ */ w(
1578
- Sr,
1577
+ }, Pr = [], Gr = /* @__PURE__ */ w(
1579
1578
  Br,
1580
1579
  Fr,
1580
+ Pr,
1581
1581
  !1,
1582
1582
  null,
1583
1583
  "d2a7cb8e",
1584
1584
  null,
1585
1585
  null
1586
1586
  );
1587
- const Gr = Pr.exports, Vr = /* @__PURE__ */ E({
1587
+ const Vr = Gr.exports, jr = /* @__PURE__ */ E({
1588
1588
  __name: "lume-alluvial-node-value",
1589
1589
  props: {
1590
1590
  bottom: { type: Boolean, default: !0 }
@@ -1593,20 +1593,20 @@ const Gr = Pr.exports, Vr = /* @__PURE__ */ E({
1593
1593
  return { __sfc: !0 };
1594
1594
  }
1595
1595
  });
1596
- var jr = function() {
1596
+ var Mr = function() {
1597
1597
  var e = this, r = e._self._c;
1598
1598
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1599
- }, Mr = [], zr = /* @__PURE__ */ w(
1600
- Vr,
1599
+ }, zr = [], Wr = /* @__PURE__ */ w(
1601
1600
  jr,
1602
1601
  Mr,
1602
+ zr,
1603
1603
  !1,
1604
1604
  null,
1605
1605
  "002e2887",
1606
1606
  null,
1607
1607
  null
1608
1608
  );
1609
- const Wr = zr.exports;
1609
+ const Zr = Wr.exports;
1610
1610
  function Qe(t, e) {
1611
1611
  return {
1612
1612
  x0: 0 + (e ? e.left : 0),
@@ -1615,32 +1615,32 @@ function Qe(t, e) {
1615
1615
  y1: t.height - (e ? e.bottom : 0)
1616
1616
  };
1617
1617
  }
1618
- function Zr(t) {
1618
+ function Xr(t) {
1619
1619
  const e = I(Qe(t));
1620
1620
  function r(n) {
1621
1621
  e.value = Qe(t, n);
1622
1622
  }
1623
1623
  return { extents: e, updateExtents: r };
1624
1624
  }
1625
- var bt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(bt || {});
1626
- const Xr = "[lume] ";
1627
- function Ur(t, e, r = !0) {
1628
- r && it() || console.error(Xr + "Error: " + t, e);
1625
+ var kt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(kt || {});
1626
+ const Ur = "[lume] ";
1627
+ function Yr(t, e, r = !0) {
1628
+ r && st() || console.error(Ur + "Error: " + t, e);
1629
1629
  }
1630
- const qe = 8, Yr = 8, Kr = 20, Jr = 200;
1631
- function re(t) {
1630
+ const qe = 8, Kr = 8, Jr = 20, Qr = 200;
1631
+ function ae(t) {
1632
1632
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1633
1633
  }
1634
- function Qr(t, e) {
1634
+ function qr(t, e) {
1635
1635
  return e.nodes.find((r) => r.id === t);
1636
1636
  }
1637
- function qr(t, e) {
1637
+ function ea(t, e) {
1638
1638
  return e.links.find((r) => r.id === t);
1639
1639
  }
1640
- function kt(t) {
1640
+ function xt(t) {
1641
1641
  return !!(t.sourceLinks && t.targetLinks);
1642
1642
  }
1643
- function ea(t, e) {
1643
+ function ta(t, e) {
1644
1644
  if (!e)
1645
1645
  return;
1646
1646
  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}`), a = e.filter((l) => r.includes(l.dataset.id)).reduce(
@@ -1657,7 +1657,7 @@ function ea(t, e) {
1657
1657
  bottom: 0
1658
1658
  };
1659
1659
  }
1660
- function ta(t) {
1660
+ function na(t) {
1661
1661
  return t.map((e) => ({
1662
1662
  x: e.x0,
1663
1663
  y: e.y0,
@@ -1670,22 +1670,22 @@ function ta(t) {
1670
1670
  node: e
1671
1671
  }));
1672
1672
  }
1673
- function na(t) {
1674
- return [t.source.x1, t.y0];
1675
- }
1676
1673
  function ra(t) {
1677
- return [t.target.x0, t.y1];
1674
+ return [t.source.x1, t.y0];
1678
1675
  }
1679
1676
  function aa(t) {
1680
- return t.curveFunction ? Dt(t.curveFunction).source(na).target(ra) : Bt();
1677
+ return [t.target.x0, t.y1];
1681
1678
  }
1682
1679
  function oa(t) {
1680
+ return t.curveFunction ? Ht(t.curveFunction).source(ra).target(aa) : Ft();
1681
+ }
1682
+ function la(t) {
1683
1683
  return t.map((e) => {
1684
1684
  var r;
1685
1685
  return {
1686
1686
  id: e.id,
1687
- color: e.color || ((r = e.source) == null ? void 0 : r.color) || de,
1688
- d: aa(e)(e),
1687
+ color: e.color || ((r = e.source) == null ? void 0 : r.color) || ve,
1688
+ d: oa(e)(e),
1689
1689
  strokeWidth: Math.max(1, e.width),
1690
1690
  link: e
1691
1691
  };
@@ -1699,8 +1699,8 @@ function et(t, e, r, n, a) {
1699
1699
  };
1700
1700
  return;
1701
1701
  }
1702
- const o = Date.now(), l = Qt(e, r), i = () => {
1703
- let s = (Date.now() - o) / Jr;
1702
+ const o = Date.now(), l = qt(e, r), i = () => {
1703
+ let s = (Date.now() - o) / Qr;
1704
1704
  s > 1 && (s = 1), t.node = {
1705
1705
  ...t.node,
1706
1706
  transitionValue: a && s === 1 ? void 0 : l(s)
@@ -1708,112 +1708,143 @@ function et(t, e, r, n, a) {
1708
1708
  };
1709
1709
  requestAnimationFrame(i);
1710
1710
  }
1711
- const la = {
1711
+ const ua = {
1712
1712
  nodes: [],
1713
1713
  links: []
1714
1714
  };
1715
- function ua(t, e, r) {
1715
+ function tt(t, e) {
1716
+ return e.find((r) => r.every((n) => n.x0 === t.x0));
1717
+ }
1718
+ function ia(t, e, r) {
1716
1719
  const n = I(null), a = d(() => {
1717
- var i;
1718
- return (i = t.value) == null ? void 0 : i[0].values.map(
1719
- ({ label: u, color: s, value: c, deriveColorFromIncomingLinks: v }) => ({
1720
- label: u || c.toString(),
1721
- color: s,
1722
- fallbackColor: s || de,
1723
- id: c,
1724
- deriveColorFromIncomingLinks: v
1720
+ var c;
1721
+ return (c = t.value) == null ? void 0 : c[0].values.map(
1722
+ ({ label: _, color: p, value: f, deriveColorFromIncomingLinks: y, offset: m }) => ({
1723
+ label: _ || f.toString(),
1724
+ color: p,
1725
+ fallbackColor: p || ve,
1726
+ id: f,
1727
+ deriveColorFromIncomingLinks: y,
1728
+ offset: m
1725
1729
  })
1726
1730
  );
1727
1731
  }), o = d(
1728
1732
  () => {
1729
- var i;
1730
- return (i = t.value) == null ? void 0 : i[0].values.map(
1731
- (u) => {
1732
- var s;
1733
- return (s = u.targets) == null ? void 0 : s.map(
1734
- ({ node: c, value: v, color: f, curveFunction: y }) => ({
1735
- id: `${u.value}:${c}`,
1736
- color: f,
1737
- curveFunction: y,
1738
- source: u.value ?? u.label,
1739
- target: c,
1740
- value: v
1733
+ var c;
1734
+ return (c = t.value) == null ? void 0 : c[0].values.map(
1735
+ (_) => {
1736
+ var p;
1737
+ return (p = _.targets) == null ? void 0 : p.map(
1738
+ ({ node: f, value: y, color: m, curveFunction: h }) => ({
1739
+ id: `${_.value}:${f}`,
1740
+ color: m,
1741
+ curveFunction: h,
1742
+ source: _.value ?? _.label,
1743
+ target: f,
1744
+ value: y
1741
1745
  })
1742
1746
  );
1743
1747
  }
1744
1748
  ).filter(Boolean).flat();
1745
1749
  }
1746
- ), l = d(() => Ft().nodeId(re).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations));
1747
- return C([l, r], () => {
1750
+ ), l = d(() => Pt().nodeId(ae).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(() => {
1751
+ var c;
1752
+ return (c = n.value) == null ? void 0 : c.nodes.reduce(
1753
+ (_, p) => {
1754
+ const f = tt(p, _);
1755
+ return f ? (f.push(p), f.sort((y, m) => (y._y0 || y.y0) - (m._y0 || m.y0))) : _.push([p]), _;
1756
+ },
1757
+ []
1758
+ );
1759
+ });
1760
+ function u(c) {
1761
+ const { offset: _ } = c, p = tt(c, i.value);
1762
+ if (!p)
1763
+ return;
1764
+ const f = p[p.findIndex((m) => m.id === c.id) - 1], y = f && p.length !== 1 ? f.y1 + _ : _;
1765
+ c._y0 = c.y0, c._y1 = c.y1, c.y0 = y, c.y1 = c.y0 + (c._y1 - c._y0);
1766
+ }
1767
+ function s(c, _) {
1768
+ const { id: p, _y0: f, y0: y } = c, m = _.links.filter(
1769
+ (x) => x.source.id === p
1770
+ ), h = _.links.filter(
1771
+ (x) => x.target.id === p
1772
+ ), A = y - f;
1773
+ m.forEach((x) => x.y0 += A), h.forEach((x) => x.y1 += A);
1774
+ }
1775
+ const v = d(() => (n.value && a.value.forEach((c) => {
1776
+ typeof c.offset == "number" && (u(c), s(c, n.value));
1777
+ }), n.value));
1778
+ return D([l, r], () => {
1748
1779
  try {
1749
- const { x0: i, y0: u, x1: s, y1: c } = r.value;
1780
+ const { x0: c, y0: _, x1: p, y1: f } = r.value;
1750
1781
  n.value = l.value.extent([
1751
- [i, u],
1752
- [s, c]
1782
+ [c, _],
1783
+ [p, f]
1753
1784
  ])({ nodes: a.value, links: o.value });
1754
- } catch (i) {
1755
- Ur(bt.GraphProblem, i), n.value = la;
1785
+ } catch (c) {
1786
+ Yr(kt.GraphProblem, c), n.value = ua;
1756
1787
  }
1757
- }), { graph: n };
1788
+ }), { columns: i, graph: v };
1758
1789
  }
1759
- function De(t, e) {
1790
+ function He(t, e) {
1760
1791
  return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
1761
- e[r.id] = n, De(
1792
+ e[r.id] = n, He(
1762
1793
  r,
1763
1794
  e
1764
1795
  );
1765
1796
  }), e;
1766
1797
  }
1767
- function He(t, e) {
1798
+ function Re(t, e) {
1768
1799
  return e || (e = {}), t.sourceLinks && t.sourceLinks.forEach(({ target: r, value: n }) => {
1769
- e[r.id] = n, He(
1800
+ e[r.id] = n, Re(
1770
1801
  r,
1771
1802
  e
1772
1803
  );
1773
1804
  }), e;
1774
1805
  }
1775
- function ia(t, e) {
1806
+ function sa(t, e) {
1776
1807
  return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
1777
1808
  }
1778
- const sa = (t, e) => {
1809
+ const ca = (t, e) => {
1779
1810
  let r;
1780
- kt(t) ? r = {
1811
+ xt(t) ? r = {
1781
1812
  [t.id]: t.value,
1782
- ...De(t),
1783
- ...He(t)
1813
+ ...He(t),
1814
+ ...Re(t)
1784
1815
  } : r = {
1785
1816
  [t.source.id]: t.source.value,
1786
1817
  [t.target.id]: t.target.value,
1787
- ...De(t.source),
1788
- ...He(t.target)
1818
+ ...He(t.source),
1819
+ ...Re(t.target)
1789
1820
  };
1790
- const n = ia(r, e);
1821
+ const n = sa(r, e);
1791
1822
  return { nodes: r, links: n };
1792
- }, ca = (t) => {
1793
- if (kt(t)) {
1823
+ }, da = (t) => {
1824
+ if (xt(t)) {
1794
1825
  const e = [...t.sourceLinks, ...t.targetLinks];
1795
1826
  return {
1796
1827
  nodes: e.reduce(
1797
- (r, { source: n, target: a, value: o }) => n === t ? { ...r, [re(a)]: o } : { ...r, [re(n)]: o },
1798
- { [re(t)]: t.value }
1828
+ (r, { source: n, target: a, value: o }) => n === t ? { ...r, [ae(a)]: o } : { ...r, [ae(n)]: o },
1829
+ { [ae(t)]: t.value }
1799
1830
  ),
1800
1831
  links: e.map(({ id: r }) => r)
1801
1832
  };
1802
1833
  }
1803
1834
  return {
1804
1835
  nodes: {
1805
- [re(t.target)]: t.value,
1806
- [re(t.source)]: t.source.value
1836
+ [ae(t.target)]: t.value,
1837
+ [ae(t.source)]: t.source.value
1807
1838
  },
1808
1839
  links: [t.id]
1809
1840
  };
1810
1841
  };
1811
- function da(t, e, r) {
1842
+ function va(t, e, r) {
1812
1843
  const n = I(null), a = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1813
1844
  n.value,
1814
1845
  r.value
1815
- ) : e.value.highlightedElements === "closest" ? ca(n.value, r.value) : sa(n.value, r.value) : { nodes: {}, links: [] });
1816
- return C(a, (o, l) => {
1846
+ ) : e.value.highlightedElements === "closest" ? da(n.value, r.value) : ca(n.value, r.value) : { nodes: {}, links: [] });
1847
+ return D(a, (o, l) => {
1817
1848
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
1818
1849
  t.value.forEach((i) => {
1819
1850
  i.node.id in l.nodes && et(
@@ -1836,10 +1867,10 @@ function da(t, e, r) {
1836
1867
  });
1837
1868
  }), { highlightedElements: a, hoveredElement: n };
1838
1869
  }
1839
- const va = /* @__PURE__ */ E({
1870
+ const _a = /* @__PURE__ */ E({
1840
1871
  __name: "lume-alluvial-group",
1841
1872
  props: {
1842
- ...he(),
1873
+ ...ye(),
1843
1874
  hoveredElementId: {
1844
1875
  type: [Number, String],
1845
1876
  default: null
@@ -1847,111 +1878,107 @@ const va = /* @__PURE__ */ E({
1847
1878
  },
1848
1879
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1849
1880
  setup(t, { emit: e }) {
1850
- const r = t, n = fe("chartID"), { data: a, options: o } = H(r), l = I([]), i = I([]), u = I(null), { extents: s, updateExtents: c } = Zr(r.containerSize), { graph: v } = ua(a, o, s), { hoveredElement: f, highlightedElements: y } = da(
1881
+ const r = t, n = me("chartID"), { data: a, options: o } = R(r), l = I([]), i = I([]), u = I(null), { extents: s, updateExtents: v } = Xr(r.containerSize), { columns: c, graph: _ } = ia(a, o, s), { hoveredElement: p, highlightedElements: f } = va(
1851
1882
  l,
1852
1883
  o,
1853
- v
1854
- ), m = d(() => _e(o.value.valueFormat)), g = d(
1855
- () => Object.keys(y.value.nodes)
1856
- ), h = d(
1857
- () => l.value.reduce((_, b) => {
1858
- const x = b.x + o.value.nodeWidth / 2;
1859
- return _.includes(x) ? _ : [..._, x];
1860
- }, []).sort((_, b) => _ - b)
1861
- // Make sure positions are sorted in ascending order
1862
- ), p = d(() => {
1884
+ _
1885
+ ), y = d(() => pe(o.value.valueFormat)), m = d(
1886
+ () => Object.keys(f.value.nodes)
1887
+ ), h = d(() => c.value ? c.value.map(
1888
+ (g) => g[0].x0 + o.value.nodeWidth / 2
1889
+ ) : []), A = d(() => {
1863
1890
  if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
1864
- return o.value.nodeHeaders.slice(0, h.value.length).map((_, b) => ({
1865
- label: _,
1866
- x: h.value[b]
1891
+ return o.value.nodeHeaders.slice(0, h.value.length).map((g, L) => ({
1892
+ label: g,
1893
+ x: h.value[L]
1867
1894
  }));
1868
- }), L = d(
1869
- () => o.value.nodeHeaderPadding ?? Kr
1870
- ), $ = d(() => {
1871
- if (!(!o.value.gradient || !v.value))
1872
- return v.value.links.reduce((_, b) => {
1873
- const { source: x, target: B } = b, M = x.color || x.fallbackColor, z = B.deriveColorFromIncomingLinks ? M : B.color || B.fallbackColor;
1874
- return _[b.id] = {
1875
- source: M,
1876
- target: z,
1877
- x1: x.x1,
1878
- x2: B.x0
1879
- }, _;
1895
+ }), x = d(
1896
+ () => o.value.nodeHeaderPadding ?? Jr
1897
+ ), T = d(() => {
1898
+ if (!(!o.value.gradient || !_.value))
1899
+ return _.value.links.reduce((g, L) => {
1900
+ const { source: N, target: M } = L, z = N.color || N.fallbackColor, W = M.deriveColorFromIncomingLinks ? z : M.color || M.fallbackColor;
1901
+ return g[L.id] = {
1902
+ source: z,
1903
+ target: W,
1904
+ x1: N.x1,
1905
+ x2: M.x0
1906
+ }, g;
1880
1907
  }, {});
1881
- }), T = d(() => {
1882
- const _ = l.value.filter(
1883
- (x) => P(x)
1884
- ), b = [];
1885
- return _.forEach((x) => {
1886
- const B = [];
1887
- i.value.filter(({ link: M }) => M.target.id === x.node.id).reverse().reduce((M, z) => {
1888
- const ge = z.link.target.y1 - z.link.target.y0, le = z.link.value / x.node.value * ge;
1889
- return B.push({
1890
- x: x.x,
1891
- y: x.y + M,
1892
- height: le,
1893
- width: x.width,
1894
- key: `node-block-${x.node.id}-source-link-${z.link.source.id}`,
1895
- class: `lume-alluvial-group__node-block lume-fill--${z.link.source.color || de}`
1896
- }), M + le;
1897
- }, 0), b.push({
1898
- id: x.node.id,
1899
- subNodes: B
1908
+ }), b = d(() => {
1909
+ const g = l.value.filter(
1910
+ (N) => K(N)
1911
+ ), L = [];
1912
+ return g.forEach((N) => {
1913
+ const M = [];
1914
+ i.value.filter(({ link: z }) => z.target.id === N.node.id).reverse().reduce((z, W) => {
1915
+ const _e = W.link.target.y1 - W.link.target.y0, ue = W.link.value / N.node.value * _e;
1916
+ return M.push({
1917
+ x: N.x,
1918
+ y: N.y + z,
1919
+ height: ue,
1920
+ width: N.width,
1921
+ key: `node-block-${N.node.id}-source-link-${W.link.source.id}`,
1922
+ class: `lume-alluvial-group__node-block lume-fill--${W.link.source.color || ve}`
1923
+ }), z + ue;
1924
+ }, 0), L.push({
1925
+ id: N.node.id,
1926
+ subNodes: M
1900
1927
  });
1901
- }), b;
1928
+ }), L;
1902
1929
  });
1903
- function k(_) {
1904
- return o.value.gradient && `url('#${n}_${_.id}')`;
1930
+ function C(g) {
1931
+ return o.value.gradient && `url('#${n}_${g.id}')`;
1905
1932
  }
1906
- function N(_) {
1907
- return g.value.length > 0 && !g.value.includes(_.toString());
1933
+ function H(g) {
1934
+ return m.value.length > 0 && !m.value.includes(g.toString());
1908
1935
  }
1909
- function D(_) {
1910
- return g.value.length > 0 && g.value.includes(_.toString());
1936
+ function S(g) {
1937
+ return m.value.length > 0 && m.value.includes(g.toString());
1911
1938
  }
1912
- function R(_) {
1913
- return y.value.links.length > 0 && !y.value.links.includes(_);
1939
+ function B(g) {
1940
+ return f.value.links.length > 0 && !f.value.links.includes(g);
1914
1941
  }
1915
- function S(_) {
1916
- return y.value.links.length > 0 && y.value.links.includes(_);
1942
+ function P(g) {
1943
+ return f.value.links.length > 0 && f.value.links.includes(g);
1917
1944
  }
1918
- function P(_) {
1919
- return !_.node.color && _.node.deriveColorFromIncomingLinks;
1945
+ function K(g) {
1946
+ return !g.node.color && g.node.deriveColorFromIncomingLinks;
1920
1947
  }
1921
- function te(_, b) {
1922
- _ !== f.value && (f.value = _, e("link-mouseenter", { link: _, event: b }));
1948
+ function re(g, L) {
1949
+ g !== p.value && (p.value = g, e("link-mouseenter", { link: g, event: L }));
1923
1950
  }
1924
- function ne(_) {
1925
- const b = f.value;
1926
- f.value = null, e("link-mouseleave", { link: b, event: _ });
1951
+ function X(g) {
1952
+ const L = p.value;
1953
+ p.value = null, e("link-mouseleave", { link: L, event: g });
1927
1954
  }
1928
- function G(_) {
1929
- if (_ == null) {
1930
- f.value = null;
1955
+ function j(g) {
1956
+ if (g == null) {
1957
+ p.value = null;
1931
1958
  return;
1932
1959
  }
1933
- const b = Qr(_, v.value) || qr(_, v.value);
1934
- if (!b) {
1935
- J(Z.InvalidHoveredElement);
1960
+ const L = qr(g, _.value) || ea(g, _.value);
1961
+ if (!L) {
1962
+ q(U.InvalidHoveredElement);
1936
1963
  return;
1937
1964
  }
1938
- f.value = b;
1965
+ p.value = L;
1939
1966
  }
1940
- function U(_) {
1941
- var b;
1942
- return ((b = T.value.find(({ id: x }) => _ === x)) == null ? void 0 : b.subNodes) ?? [];
1967
+ function $(g) {
1968
+ var L;
1969
+ return ((L = b.value.find(({ id: N }) => g === N)) == null ? void 0 : L.subNodes) ?? [];
1943
1970
  }
1944
- return C(v, (_) => {
1945
- l.value = ta(_.nodes), i.value = oa(_.links).reverse(), f.value == null && r.hoveredElementId != null && G(r.hoveredElementId);
1946
- }), C([r.containerSize, u], () => {
1971
+ return D(_, (g) => {
1972
+ l.value = na(g.nodes), i.value = la(g.links).reverse(), p.value == null && r.hoveredElementId != null && j(r.hoveredElementId);
1973
+ }), D([r.containerSize, u], () => {
1947
1974
  if (r.containerSize.width && r.containerSize.height) {
1948
- const _ = ea(v.value, u.value);
1949
- c(_);
1975
+ const g = ta(_.value, u.value);
1976
+ v(g);
1950
1977
  }
1951
- }), C(() => r.hoveredElementId, G), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: c, graph: v, hoveredElement: f, highlightedElements: y, formatValue: m, hoveredNodeIds: g, nodeColumnPositions: h, nodeHeaders: p, computedNodeHeaderPadding: L, gradients: $, nodesDerivingColorFromIncomingLinks: T, getLinkStroke: k, isNodeFaded: N, isNodeFocused: D, isLinkFaded: R, isLinkFocused: S, shouldDeriveNodeColorFromIncomingLinks: P, handleLinkMouseover: te, handleLinkMouseleave: ne, handleExternalHover: G, getSubNodesDerivingColorFromIncomingLinks: U, LumeAlluvialNodeLabel: Gr, LumeAlluvialNodeValue: Wr, GHOST_STROKE_WIDTH_OFFSET: Yr };
1978
+ }), D(() => r.hoveredElementId, j), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: v, columns: c, graph: _, hoveredElement: p, highlightedElements: f, formatValue: y, hoveredNodeIds: m, nodeColumnPositions: h, nodeHeaders: A, computedNodeHeaderPadding: x, gradients: T, nodesDerivingColorFromIncomingLinks: b, getLinkStroke: C, isNodeFaded: H, isNodeFocused: S, isLinkFaded: B, isLinkFocused: P, shouldDeriveNodeColorFromIncomingLinks: K, handleLinkMouseover: re, handleLinkMouseleave: X, handleExternalHover: j, getSubNodesDerivingColorFromIncomingLinks: $, LumeAlluvialNodeLabel: Vr, LumeAlluvialNodeValue: Zr, GHOST_STROKE_WIDTH_OFFSET: Kr };
1952
1979
  }
1953
1980
  });
1954
- var _a = function() {
1981
+ var fa = function() {
1955
1982
  var e = this, r = e._self._c, n = e._self._setupProxy;
1956
1983
  return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", e._l(n.nodeHeaders, function(a) {
1957
1984
  return r("text", { key: `header_${a.x}`, staticClass: "lume-alluvial-group__node-header lume-typography--caption", attrs: { x: a.x, y: -n.computedNodeHeaderPadding } }, [e._v(" " + e._s(a.label) + " ")]);
@@ -2003,17 +2030,17 @@ var _a = function() {
2003
2030
  a.node.value
2004
2031
  ) })], 2)], 2)]);
2005
2032
  })], 2);
2006
- }, fa = [], pa = /* @__PURE__ */ w(
2007
- va,
2033
+ }, pa = [], ma = /* @__PURE__ */ w(
2008
2034
  _a,
2009
2035
  fa,
2036
+ pa,
2010
2037
  !1,
2011
2038
  null,
2012
- "1b46bc35",
2039
+ "6fe8c153",
2013
2040
  null,
2014
2041
  null
2015
2042
  );
2016
- const ma = pa.exports, ha = {
2043
+ const ha = ma.exports, ga = {
2017
2044
  margins: {
2018
2045
  top: 0,
2019
2046
  right: 0,
@@ -2029,16 +2056,16 @@ const ma = pa.exports, ha = {
2029
2056
  highlightedElements: "closest",
2030
2057
  nodePadding: 16,
2031
2058
  nodeWidth: 16,
2032
- nodeAlign: Pt,
2059
+ nodeAlign: Gt,
2033
2060
  valueFormat: (t) => String(t),
2034
2061
  iterations: 6
2035
- }, ga = /* @__PURE__ */ E({
2062
+ }, ya = /* @__PURE__ */ E({
2036
2063
  __name: "lume-alluvial-diagram",
2037
2064
  props: {
2038
- ...mr(Se)
2065
+ ...hr(Be)
2039
2066
  },
2040
2067
  setup(t) {
2041
- const e = t, r = ee(V()), n = en(V()), { options: a } = H(e), { allOptions: o } = W(a, ha);
2068
+ const e = t, r = ne(G()), n = tn(G()), { options: a } = R(e), { allOptions: o } = Z(a, ga);
2042
2069
  function l(i) {
2043
2070
  return {
2044
2071
  ...i,
@@ -2046,10 +2073,10 @@ const ma = pa.exports, ha = {
2046
2073
  // Alluvial chart never uses base scales
2047
2074
  };
2048
2075
  }
2049
- return { __sfc: !0, props: e, slots: r, groupSlots: n, options: a, allOptions: o, getAlluvialDiagramOptions: l, LumeChart: oe, LumeAlluvialGroup: ma };
2076
+ return { __sfc: !0, props: e, slots: r, groupSlots: n, options: a, allOptions: o, getAlluvialDiagramOptions: l, LumeChart: le, LumeAlluvialGroup: ha };
2050
2077
  }
2051
2078
  });
2052
- var ya = function() {
2079
+ var ba = function() {
2053
2080
  var e = this, r = e._self._c, n = e._self._setupProxy;
2054
2081
  return r(n.LumeChart, e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2055
2082
  return [r(n.LumeAlluvialGroup, e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(o, l) {
@@ -2062,26 +2089,26 @@ var ya = function() {
2062
2089
  return [e._t(o, null, null, l || {})];
2063
2090
  } };
2064
2091
  })], null, !0) }, "lume-chart", n.props, !1));
2065
- }, ba = [], ka = /* @__PURE__ */ w(
2066
- ga,
2092
+ }, ka = [], xa = /* @__PURE__ */ w(
2067
2093
  ya,
2068
2094
  ba,
2095
+ ka,
2069
2096
  !1,
2070
2097
  null,
2071
2098
  null,
2072
2099
  null,
2073
2100
  null
2074
2101
  );
2075
- const Do = ka.exports;
2076
- var Re = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Re || {});
2102
+ const Ho = xa.exports;
2103
+ var Se = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Se || {});
2077
2104
  const Aa = /* @__PURE__ */ E({
2078
2105
  __name: "lume-bar-chart",
2079
2106
  props: {
2080
- ...ae(),
2107
+ ...oe(),
2081
2108
  type: {
2082
2109
  type: String,
2083
2110
  default: null,
2084
- validator: (t) => t in Re || t == null
2111
+ validator: (t) => t in Se || t == null
2085
2112
  }
2086
2113
  },
2087
2114
  setup(t) {
@@ -2095,7 +2122,7 @@ const Aa = /* @__PURE__ */ E({
2095
2122
  ["single", r],
2096
2123
  ["grouped", n],
2097
2124
  ["stacked", a]
2098
- ]), l = ee(V());
2125
+ ]), l = ne(G());
2099
2126
  function i(s) {
2100
2127
  return {
2101
2128
  ...s,
@@ -2109,14 +2136,14 @@ const Aa = /* @__PURE__ */ E({
2109
2136
  }
2110
2137
  const u = d(() => {
2111
2138
  if (e.data) {
2112
- if (Se(e.data))
2139
+ if (Be(e.data))
2113
2140
  return o.get("single");
2114
2141
  if (!e.type)
2115
2142
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2116
2143
  return o.get(e.type);
2117
2144
  }
2118
2145
  });
2119
- return { __sfc: !0, TYPES: Re, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: l, getBarChartOptions: i, component: u };
2146
+ return { __sfc: !0, TYPES: Se, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: l, getBarChartOptions: i, component: u };
2120
2147
  }
2121
2148
  });
2122
2149
  var Ta = function() {
@@ -2126,34 +2153,34 @@ var Ta = function() {
2126
2153
  return [e._t(o, null, null, l || {})];
2127
2154
  } };
2128
2155
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1));
2129
- }, xa = [], La = /* @__PURE__ */ w(
2156
+ }, La = [], Oa = /* @__PURE__ */ w(
2130
2157
  Aa,
2131
2158
  Ta,
2132
- xa,
2159
+ La,
2133
2160
  !1,
2134
2161
  null,
2135
2162
  null,
2136
2163
  null,
2137
2164
  null
2138
2165
  );
2139
- const Ho = La.exports;
2140
- function Oa(t) {
2141
- return Object.values(on).includes(t) || t == null;
2142
- }
2166
+ const Ro = Oa.exports;
2143
2167
  function $a(t) {
2168
+ return Object.values(ln).includes(t) || t == null;
2169
+ }
2170
+ function Ia(t) {
2144
2171
  return Object.values(O).includes(t);
2145
2172
  }
2146
- const Ia = (t = !1) => ({
2173
+ const wa = (t = !1) => ({
2147
2174
  type: {
2148
2175
  type: String,
2149
2176
  default: null,
2150
- validator: Oa
2177
+ validator: $a
2151
2178
  },
2152
2179
  ...t ? {
2153
2180
  orientation: {
2154
2181
  type: String,
2155
2182
  default: O.VERTICAL,
2156
- validator: $a
2183
+ validator: Ia
2157
2184
  }
2158
2185
  } : {}
2159
2186
  });
@@ -2172,10 +2199,10 @@ function At(t) {
2172
2199
  });
2173
2200
  return { multiBarData: e, groupedData: r };
2174
2201
  }
2175
- function wa(t, e) {
2202
+ function Ea(t, e) {
2176
2203
  return t.value.length === 1 ? "single" : e.value;
2177
2204
  }
2178
- function Ea(t, e, r) {
2205
+ function Na(t, e, r) {
2179
2206
  const n = d(
2180
2207
  () => r.value === O.HORIZONTAL
2181
2208
  );
@@ -2185,167 +2212,167 @@ function Ea(t, e, r) {
2185
2212
  const o = d(() => n.value ? (() => (a(t.value), t.value))() : t.value), l = d(() => n.value ? e.value : (() => (a(e.value), e.value))());
2186
2213
  return { barXScale: o, barYScale: l };
2187
2214
  }
2188
- function Na(t, e, r, n, a, o) {
2215
+ function Ca(t, e, r, n, a, o) {
2189
2216
  const l = d(
2190
2217
  () => n.value === O.HORIZONTAL
2191
2218
  );
2192
- function i(v, f) {
2193
- let y, m;
2194
- return l.value ? (y = v >= 0 ? e.value(0) : e.value(v), m = r.value(r.value.domain()[f])) : (y = e.value(e.value.domain()[f]), m = v < 0 ? r.value(0) : r.value(v)), { x: y, y: m };
2219
+ function i(c, _) {
2220
+ let p, f;
2221
+ return l.value ? (p = c >= 0 ? e.value(0) : e.value(c), f = r.value(r.value.domain()[_])) : (p = e.value(e.value.domain()[_]), f = c < 0 ? r.value(0) : r.value(c)), { x: p, y: f };
2195
2222
  }
2196
- function u(v) {
2197
- return l.value ? v < 0 ? e.value(0) - e.value(v) : e.value(v) - e.value(0) : e.value.bandwidth();
2223
+ function u(c) {
2224
+ return l.value ? c < 0 ? e.value(0) - e.value(c) : e.value(c) - e.value(0) : e.value.bandwidth();
2198
2225
  }
2199
- function s(v) {
2200
- return l.value ? r.value.bandwidth() : v < 0 ? r.value(v) - r.value(0) : r.value(0) - r.value(v);
2226
+ function s(c) {
2227
+ return l.value ? r.value.bandwidth() : c < 0 ? r.value(c) - r.value(0) : r.value(0) - r.value(c);
2201
2228
  }
2202
- function c(v, f, y) {
2203
- const { value: m, color: g } = v, h = g ?? t.value[f].color ?? de, { x: p, y: L } = i(m, y), $ = u(m), T = s(m);
2229
+ function v(c, _, p) {
2230
+ const { value: f, color: y } = c, m = y ?? t.value[_].color ?? ve, { x: h, y: A } = i(f, p), x = u(f), T = s(f);
2204
2231
  return {
2205
- classList: [`lume-fill--${h}`, ...o],
2206
- x: p,
2207
- y: L,
2208
- width: $,
2232
+ classList: [`lume-fill--${m}`, ...o],
2233
+ x: h,
2234
+ y: A,
2235
+ width: x,
2209
2236
  height: T,
2210
- isFaded: a.value !== -1 && a.value !== y,
2211
- isNegative: m < 0
2237
+ isFaded: a.value !== -1 && a.value !== p,
2238
+ isNegative: f < 0
2212
2239
  };
2213
2240
  }
2214
- return { barAttributeGenerator: c };
2241
+ return { barAttributeGenerator: v };
2215
2242
  }
2216
- function Ca(t, e, r, n, a, o) {
2243
+ function Da(t, e, r, n, a, o) {
2217
2244
  const l = d(
2218
2245
  () => n.value === O.HORIZONTAL
2219
- ), i = d(() => ue().domain(t.value.map((m, g) => g)).range([0, e.value.bandwidth()]).padding(0)), u = d(() => ue().domain(t.value.map((m, g) => g)).range([0, r.value.bandwidth()]).padding(0));
2220
- function s(m, g, h) {
2246
+ ), i = d(() => ie().domain(t.value.map((f, y) => y)).range([0, e.value.bandwidth()]).padding(0)), u = d(() => ie().domain(t.value.map((f, y) => y)).range([0, r.value.bandwidth()]).padding(0));
2247
+ function s(f, y, m) {
2221
2248
  if (l.value)
2222
- return m >= 0 ? e.value(0) : e.value(m);
2223
- const p = e.value.domain();
2224
- return e.value(p[g]) + i.value(h);
2249
+ return f >= 0 ? e.value(0) : e.value(f);
2250
+ const h = e.value.domain();
2251
+ return e.value(h[y]) + i.value(m);
2225
2252
  }
2226
- function c(m, g, h) {
2253
+ function v(f, y, m) {
2227
2254
  if (l.value) {
2228
- const p = r.value.domain();
2229
- return r.value(p[g]) + u.value(h);
2255
+ const h = r.value.domain();
2256
+ return r.value(h[y]) + u.value(m);
2230
2257
  }
2231
- return m < 0 ? r.value(0) : r.value(m);
2258
+ return f < 0 ? r.value(0) : r.value(f);
2232
2259
  }
2233
- function v(m) {
2234
- return l.value ? m < 0 ? e.value(0) - e.value(m) : e.value(m) - e.value(0) : i.value.bandwidth();
2260
+ function c(f) {
2261
+ return l.value ? f < 0 ? e.value(0) - e.value(f) : e.value(f) - e.value(0) : i.value.bandwidth();
2235
2262
  }
2236
- function f(m) {
2237
- return l.value ? u.value.bandwidth() : m < 0 ? r.value(m) - r.value(0) : r.value(0) - r.value(m);
2263
+ function _(f) {
2264
+ return l.value ? u.value.bandwidth() : f < 0 ? r.value(f) - r.value(0) : r.value(0) - r.value(f);
2238
2265
  }
2239
- function y(m, g, h) {
2240
- const { value: p, color: L } = m, $ = L ?? t.value[g].color ?? Object.values(j)[g], T = s(p, h, g), k = c(p, h, g), N = v(p), D = f(p);
2266
+ function p(f, y, m) {
2267
+ const { value: h, color: A } = f, x = A ?? t.value[y].color ?? Object.values(V)[y], T = s(h, m, y), b = v(h, m, y), C = c(h), H = _(h);
2241
2268
  return {
2242
- classList: [`lume-fill--${$}`, ...o],
2269
+ classList: [`lume-fill--${x}`, ...o],
2243
2270
  x: T,
2244
- y: k,
2245
- width: N,
2246
- height: D,
2247
- isFaded: a.value !== -1 && a.value !== h,
2248
- isNegative: p < 0
2271
+ y: b,
2272
+ width: C,
2273
+ height: H,
2274
+ isFaded: a.value !== -1 && a.value !== m,
2275
+ isNegative: h < 0
2249
2276
  };
2250
2277
  }
2251
- return { barAttributeGenerator: y };
2278
+ return { barAttributeGenerator: p };
2252
2279
  }
2253
- function Da(t, e, r) {
2280
+ function Ha(t, e, r) {
2254
2281
  const n = d(
2255
2282
  () => e.value === O.HORIZONTAL
2256
2283
  ), a = d(() => {
2257
2284
  const u = t.value.map(
2258
- (s) => s.filter((c) => c.value < 0).reduce((c, v) => c + v.value, 0)
2285
+ (s) => s.filter((v) => v.value < 0).reduce((v, c) => v + c.value, 0)
2259
2286
  );
2260
2287
  return Math.min(...u);
2261
2288
  }), o = d(() => {
2262
2289
  const u = t.value.map(
2263
2290
  (s) => s.reduce(
2264
- (c, v) => v.value >= 0 ? c + v.value : c,
2291
+ (v, c) => c.value >= 0 ? v + c.value : v,
2265
2292
  0
2266
2293
  )
2267
2294
  );
2268
2295
  return Math.max(...u);
2269
2296
  });
2270
- function l(u, s, c) {
2271
- return n.value ? ie().domain([a.value, o.value]).range([0, c.width]) : Object.assign(
2297
+ function l(u, s, v) {
2298
+ return n.value ? se().domain([a.value, o.value]).range([0, v.width]) : Object.assign(
2272
2299
  Ke(
2273
- ue().domain(s.map((v, f) => f)).range([0, c.width]),
2300
+ ie().domain(s.map((c, _) => _)).range([0, v.width]),
2274
2301
  e.value,
2275
2302
  r.value
2276
2303
  ),
2277
2304
  { labels: s }
2278
2305
  );
2279
2306
  }
2280
- function i(u, s, c) {
2307
+ function i(u, s, v) {
2281
2308
  return n.value ? Object.assign(
2282
2309
  Ke(
2283
- ue().domain(s.map((v, f) => f)).range([0, c.height]),
2310
+ ie().domain(s.map((c, _) => _)).range([0, v.height]),
2284
2311
  e.value,
2285
2312
  r.value
2286
2313
  ),
2287
2314
  { labels: s }
2288
- ) : ie().domain([o.value, a.value]).range([0, c.height]);
2315
+ ) : se().domain([o.value, a.value]).range([0, v.height]);
2289
2316
  }
2290
2317
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2291
2318
  }
2292
- function Ha(t, e, r, n, a, o) {
2319
+ function Ra(t, e, r, n, a, o) {
2293
2320
  const l = d(
2294
2321
  () => n.value === O.HORIZONTAL
2295
2322
  ), i = d(
2296
2323
  () => l.value ? r.value.domain() : e.value.domain()
2297
2324
  ), u = d(
2298
- () => t.value.map((p) => p.values.map((L) => L == null ? void 0 : L.value))
2325
+ () => t.value.map((h) => h.values.map((A) => A == null ? void 0 : A.value))
2299
2326
  );
2300
- function s(p, L, $) {
2301
- let T, k;
2302
- return l.value ? (T = e.value(p >= 0 ? 0 + $ : p + $), k = r.value(i.value[L])) : (T = e.value(i.value[L]), k = r.value(p >= 0 ? p + $ : 0 + $)), { x: T, y: k };
2327
+ function s(h, A, x) {
2328
+ let T, b;
2329
+ return l.value ? (T = e.value(h >= 0 ? 0 + x : h + x), b = r.value(i.value[A])) : (T = e.value(i.value[A]), b = r.value(h >= 0 ? h + x : 0 + x)), { x: T, y: b };
2303
2330
  }
2304
- function c(p) {
2305
- return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
2331
+ function v(h) {
2332
+ return l.value ? e.value(h) - e.value(0) : e.value.bandwidth();
2306
2333
  }
2307
- function v(p) {
2308
- return l.value ? e.value(0) - e.value(p) : e.value.bandwidth();
2334
+ function c(h) {
2335
+ return l.value ? e.value(0) - e.value(h) : e.value.bandwidth();
2309
2336
  }
2310
- function f(p) {
2311
- return l.value ? r.value.bandwidth() : r.value(0) - r.value(p);
2337
+ function _(h) {
2338
+ return l.value ? r.value.bandwidth() : r.value(0) - r.value(h);
2312
2339
  }
2313
- function y(p) {
2314
- return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
2340
+ function p(h) {
2341
+ return l.value ? r.value.bandwidth() : r.value(h) - r.value(0);
2315
2342
  }
2316
- function m(p, L) {
2317
- return p ? u.value.reduce(($, T, k) => (k < p && T[L] >= 0 && ($ += T[L]), $), 0) : 0;
2343
+ function f(h, A) {
2344
+ return h ? u.value.reduce((x, T, b) => (b < h && T[A] >= 0 && (x += T[A]), x), 0) : 0;
2318
2345
  }
2319
- function g(p, L) {
2320
- return p ? u.value.reduce(($, T, k) => (k < p && T[L] < 0 && ($ += T[L]), $), 0) : 0;
2346
+ function y(h, A) {
2347
+ return h ? u.value.reduce((x, T, b) => (b < h && T[A] < 0 && (x += T[A]), x), 0) : 0;
2321
2348
  }
2322
- function h(p, L, $) {
2323
- const { value: T, color: k } = p, N = T >= 0 ? c(T) : v(T), D = T >= 0 ? f(T) : y(T), R = T >= 0 ? m(L, $) : g(L, $), { x: S, y: P } = s(T, $, R);
2349
+ function m(h, A, x) {
2350
+ const { value: T, color: b } = h, C = T >= 0 ? v(T) : c(T), H = T >= 0 ? _(T) : p(T), S = T >= 0 ? f(A, x) : y(A, x), { x: B, y: P } = s(T, x, S);
2324
2351
  return {
2325
- classList: [`lume-fill--${k ?? t.value[L].color ?? Object.values(j)[L]}`, ...o],
2326
- width: N,
2327
- height: D,
2328
- x: S,
2352
+ classList: [`lume-fill--${b ?? t.value[A].color ?? Object.values(V)[A]}`, ...o],
2353
+ width: C,
2354
+ height: H,
2355
+ x: B,
2329
2356
  y: P,
2330
- isFaded: a.value !== -1 && a.value !== $,
2357
+ isFaded: a.value !== -1 && a.value !== x,
2331
2358
  isNegative: T < 0
2332
2359
  };
2333
2360
  }
2334
- return { barAttributeGenerator: h };
2361
+ return { barAttributeGenerator: m };
2335
2362
  }
2336
- const tt = {
2337
- single: Na,
2338
- grouped: Ca,
2339
- stacked: Ha
2340
- }, Ra = /* @__PURE__ */ E({
2363
+ const nt = {
2364
+ single: Ca,
2365
+ grouped: Da,
2366
+ stacked: Ra
2367
+ }, Sa = /* @__PURE__ */ E({
2341
2368
  __name: "lume-bar-group",
2342
2369
  props: {
2343
- ...he(),
2370
+ ...ye(),
2344
2371
  classList: {
2345
2372
  type: [String, Array],
2346
2373
  default: () => []
2347
2374
  },
2348
- ...Ia(!0),
2375
+ ...wa(!0),
2349
2376
  transition: {
2350
2377
  type: Boolean,
2351
2378
  default: !0
@@ -2361,25 +2388,25 @@ const tt = {
2361
2388
  type: i,
2362
2389
  xScale: u,
2363
2390
  yScale: s,
2364
- classList: c
2365
- } = H(r), { groupedData: v } = At(n), { barXScale: f, barYScale: y } = Ea(u, s, o), m = d(() => typeof c.value == "string" ? [c.value] : c.value), g = d(() => {
2366
- const p = wa(n, i), { barAttributeGenerator: L } = tt[p](
2391
+ classList: v
2392
+ } = R(r), { groupedData: c } = At(n), { barXScale: _, barYScale: p } = Na(u, s, o), f = d(() => typeof v.value == "string" ? [v.value] : v.value), y = d(() => {
2393
+ const h = Ea(n, i), { barAttributeGenerator: A } = nt[h](
2367
2394
  n,
2368
- f,
2369
- y,
2395
+ _,
2396
+ p,
2370
2397
  o,
2371
2398
  a,
2372
- m.value
2399
+ f.value
2373
2400
  );
2374
- return L;
2375
- }), h = d(() => {
2401
+ return A;
2402
+ }), m = d(() => {
2376
2403
  if (l.value)
2377
2404
  return o.value === O.HORIZONTAL ? "width" : "height";
2378
2405
  });
2379
- return { __sfc: !0, MIXIN_MAP: tt, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: c, groupedData: v, barXScale: f, barYScale: y, computedClasses: m, getBarAttributes: g, computedTransition: h, LumeBar: Pe };
2406
+ return { __sfc: !0, MIXIN_MAP: nt, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: v, groupedData: c, barXScale: _, barYScale: p, computedClasses: f, getBarAttributes: y, computedTransition: m, LumeBar: Ge };
2380
2407
  }
2381
2408
  });
2382
- var Sa = function() {
2409
+ var Ba = function() {
2383
2410
  var e = this, r = e._self._c, n = e._self._setupProxy;
2384
2411
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
2385
2412
  return r("g", { key: o, on: { mouseenter: function(l) {
@@ -2394,43 +2421,43 @@ var Sa = function() {
2394
2421
  } } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
2395
2422
  }), 1);
2396
2423
  }), 0);
2397
- }, Ba = [], Fa = /* @__PURE__ */ w(
2398
- Ra,
2424
+ }, Fa = [], Pa = /* @__PURE__ */ w(
2399
2425
  Sa,
2400
2426
  Ba,
2427
+ Fa,
2401
2428
  !1,
2402
2429
  null,
2403
2430
  null,
2404
2431
  null,
2405
2432
  null
2406
2433
  );
2407
- const je = Fa.exports, Pa = {
2434
+ const Me = Pa.exports, Ga = {
2408
2435
  [O.VERTICAL]: {
2409
2436
  withTooltip: !0,
2410
2437
  xAxisOptions: {},
2411
2438
  yAxisOptions: { gridLines: !0 },
2412
- margins: Q.VERTICAL
2439
+ margins: ee.VERTICAL
2413
2440
  },
2414
2441
  [O.HORIZONTAL]: {
2415
2442
  withTooltip: !0,
2416
2443
  xAxisOptions: { gridLines: !0 },
2417
2444
  yAxisOptions: { gridLines: !1 },
2418
- margins: Q.HORIZONTAL
2445
+ margins: ee.HORIZONTAL
2419
2446
  }
2420
- }, Ga = /* @__PURE__ */ E({
2447
+ }, Va = /* @__PURE__ */ E({
2421
2448
  __name: "lume-single-bar-chart",
2422
2449
  props: {
2423
- ...ae(Se)
2450
+ ...oe(Be)
2424
2451
  },
2425
2452
  setup(t) {
2426
- const e = t, r = ee(V()), { orientation: n, options: a } = H(e), o = d(
2427
- () => Pa[n.value || O.VERTICAL]
2453
+ const e = t, r = ne(G()), { orientation: n, options: a } = R(e), o = d(
2454
+ () => Ga[n.value || O.VERTICAL]
2428
2455
  // needs to be computed so that default options are reactive
2429
- ), { allOptions: l } = W(a, o);
2430
- return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: je };
2456
+ ), { allOptions: l } = Z(a, o);
2457
+ return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: le, LumeBarGroup: Me };
2431
2458
  }
2432
2459
  });
2433
- var Va = function() {
2460
+ var ja = function() {
2434
2461
  var e = this, r = e._self._c, n = e._self._setupProxy;
2435
2462
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2436
2463
  return [r(n.LumeBarGroup, e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1))];
@@ -2439,47 +2466,47 @@ var Va = function() {
2439
2466
  return [e._t(o, null, null, l || {})];
2440
2467
  } };
2441
2468
  })], null, !0) }, "lume-chart", n.props, !1));
2442
- }, ja = [], Ma = /* @__PURE__ */ w(
2443
- Ga,
2469
+ }, Ma = [], za = /* @__PURE__ */ w(
2444
2470
  Va,
2445
2471
  ja,
2472
+ Ma,
2446
2473
  !1,
2447
2474
  null,
2448
2475
  null,
2449
2476
  null,
2450
2477
  null
2451
2478
  );
2452
- const Ro = Ma.exports, za = {
2479
+ const So = za.exports, Wa = {
2453
2480
  [O.VERTICAL]: {
2454
2481
  withTooltip: !0,
2455
2482
  xAxisOptions: {},
2456
2483
  yAxisOptions: { gridLines: !0 },
2457
- margins: Q.VERTICAL
2484
+ margins: ee.VERTICAL
2458
2485
  },
2459
2486
  [O.HORIZONTAL]: {
2460
2487
  withTooltip: !0,
2461
2488
  xAxisOptions: { gridLines: !0 },
2462
2489
  yAxisOptions: { gridLines: !1 },
2463
- margins: Q.HORIZONTAL,
2490
+ margins: ee.HORIZONTAL,
2464
2491
  tooltipOptions: { position: "right" }
2465
2492
  }
2466
- }, Wa = /* @__PURE__ */ E({
2493
+ }, Za = /* @__PURE__ */ E({
2467
2494
  __name: "lume-grouped-bar-chart",
2468
2495
  props: {
2469
- ...ae()
2496
+ ...oe()
2470
2497
  },
2471
2498
  setup(t) {
2472
- const e = t, r = ee(V()), { orientation: n, options: a } = H(e), o = d(
2473
- () => za[n.value || O.VERTICAL]
2499
+ const e = t, r = ne(G()), { orientation: n, options: a } = R(e), o = d(
2500
+ () => Wa[n.value || O.VERTICAL]
2474
2501
  // needs to be computed so that default options are reactive
2475
- ), { allOptions: l } = W(
2502
+ ), { allOptions: l } = Z(
2476
2503
  a,
2477
2504
  o
2478
2505
  );
2479
- return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: je };
2506
+ return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: le, LumeBarGroup: Me };
2480
2507
  }
2481
2508
  });
2482
- var Za = function() {
2509
+ var Xa = function() {
2483
2510
  var e = this, r = e._self._c, n = e._self._setupProxy;
2484
2511
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2485
2512
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1))];
@@ -2488,51 +2515,51 @@ var Za = function() {
2488
2515
  return [e._t(o, null, null, l || {})];
2489
2516
  } };
2490
2517
  })], null, !0) }, "lume-chart", n.props, !1));
2491
- }, Xa = [], Ua = /* @__PURE__ */ w(
2492
- Wa,
2518
+ }, Ua = [], Ya = /* @__PURE__ */ w(
2493
2519
  Za,
2494
2520
  Xa,
2521
+ Ua,
2495
2522
  !1,
2496
2523
  null,
2497
2524
  null,
2498
2525
  null,
2499
2526
  null
2500
2527
  );
2501
- const So = Ua.exports, Ya = {
2528
+ const Bo = Ya.exports, Ka = {
2502
2529
  [O.VERTICAL]: {
2503
2530
  withTooltip: !0,
2504
2531
  xAxisOptions: {},
2505
2532
  yAxisOptions: { gridLines: !0 },
2506
- margins: Q.VERTICAL
2533
+ margins: ee.VERTICAL
2507
2534
  },
2508
2535
  [O.HORIZONTAL]: {
2509
2536
  withTooltip: !0,
2510
2537
  xAxisOptions: { gridLines: !0 },
2511
2538
  yAxisOptions: { gridLines: !1 },
2512
- margins: Q.HORIZONTAL,
2539
+ margins: ee.HORIZONTAL,
2513
2540
  tooltipOptions: { position: "right" }
2514
2541
  }
2515
- }, Ka = /* @__PURE__ */ E({
2542
+ }, Ja = /* @__PURE__ */ E({
2516
2543
  __name: "lume-stacked-bar-chart",
2517
2544
  props: {
2518
- ...ae()
2545
+ ...oe()
2519
2546
  },
2520
2547
  setup(t) {
2521
- const e = t, r = ee(V()), { data: n, orientation: a, options: o } = H(e), l = d(
2522
- () => Ya[a.value || O.VERTICAL]
2548
+ const e = t, r = ne(G()), { data: n, orientation: a, options: o } = R(e), l = d(
2549
+ () => Ka[a.value || O.VERTICAL]
2523
2550
  // needs to be computed so that default options are reactive
2524
- ), { allOptions: i } = W(
2551
+ ), { allOptions: i } = Z(
2525
2552
  o,
2526
2553
  l
2527
- ), { internalData: u } = Ve(n), { groupedData: s } = At(u), { stackedXScaleGenerator: c, stackedYScaleGenerator: v } = Da(
2554
+ ), { internalData: u } = je(n), { groupedData: s } = At(u), { stackedXScaleGenerator: v, stackedYScaleGenerator: c } = Ha(
2528
2555
  s,
2529
2556
  a,
2530
2557
  o
2531
2558
  );
2532
- return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: l, allOptions: i, internalData: u, groupedData: s, stackedXScaleGenerator: c, stackedYScaleGenerator: v, LumeChart: oe, LumeBarGroup: je };
2559
+ return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: l, allOptions: i, internalData: u, groupedData: s, stackedXScaleGenerator: v, stackedYScaleGenerator: c, LumeChart: le, LumeBarGroup: Me };
2533
2560
  }
2534
2561
  });
2535
- var Ja = function() {
2562
+ var Qa = function() {
2536
2563
  var e = this, r = e._self._c, n = e._self._setupProxy;
2537
2564
  return r(n.LumeChart, 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(a) {
2538
2565
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
@@ -2541,17 +2568,17 @@ var Ja = function() {
2541
2568
  return [e._t(o, null, null, l || {})];
2542
2569
  } };
2543
2570
  })], null, !0) }, "lume-chart", n.props, !1));
2544
- }, Qa = [], qa = /* @__PURE__ */ w(
2545
- Ka,
2571
+ }, qa = [], eo = /* @__PURE__ */ w(
2546
2572
  Ja,
2547
2573
  Qa,
2574
+ qa,
2548
2575
  !1,
2549
2576
  null,
2550
2577
  null,
2551
2578
  null,
2552
2579
  null
2553
2580
  );
2554
- const Bo = qa.exports, nt = 2, eo = /* @__PURE__ */ E({
2581
+ const Fo = eo.exports, rt = 2, to = /* @__PURE__ */ E({
2555
2582
  __name: "lume-line",
2556
2583
  props: {
2557
2584
  pathDefinition: {
@@ -2560,11 +2587,11 @@ const Bo = qa.exports, nt = 2, eo = /* @__PURE__ */ E({
2560
2587
  },
2561
2588
  width: {
2562
2589
  type: Number,
2563
- default: nt
2590
+ default: rt
2564
2591
  },
2565
2592
  color: {
2566
2593
  type: String,
2567
- default: j.Skyblue
2594
+ default: V.Skyblue
2568
2595
  },
2569
2596
  dashed: {
2570
2597
  type: Boolean,
@@ -2586,10 +2613,10 @@ const Bo = qa.exports, nt = 2, eo = /* @__PURE__ */ E({
2586
2613
  emits: ["click"],
2587
2614
  setup(t, { emit: e }) {
2588
2615
  const r = I(null);
2589
- return X(() => me(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: nt, emit: e, root: r };
2616
+ return Y(() => ge(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: rt, emit: e, root: r };
2590
2617
  }
2591
2618
  });
2592
- var to = function() {
2619
+ var no = function() {
2593
2620
  var e = this, r = e._self._c, n = e._self._setupProxy;
2594
2621
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2595
2622
  [`lume-stroke--${e.color}`]: !0,
@@ -2601,28 +2628,28 @@ var to = function() {
2601
2628
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
2602
2629
  return n.emit("click", a);
2603
2630
  } } });
2604
- }, no = [], ro = /* @__PURE__ */ w(
2605
- eo,
2631
+ }, ro = [], ao = /* @__PURE__ */ w(
2606
2632
  to,
2607
2633
  no,
2634
+ ro,
2608
2635
  !1,
2609
2636
  null,
2610
2637
  "08896455",
2611
2638
  null,
2612
2639
  null
2613
2640
  );
2614
- const ao = ro.exports, rt = 4, oo = /* @__PURE__ */ E({
2641
+ const oo = ao.exports, at = 4, lo = /* @__PURE__ */ E({
2615
2642
  __name: "lume-point",
2616
2643
  props: {
2617
2644
  x: { type: Number, required: !0 },
2618
2645
  y: { type: Number, required: !0 },
2619
2646
  color: {
2620
2647
  type: String,
2621
- default: j.Skyblue
2648
+ default: V.Skyblue
2622
2649
  },
2623
2650
  radius: {
2624
2651
  type: Number,
2625
- default: rt
2652
+ default: at
2626
2653
  },
2627
2654
  active: {
2628
2655
  type: Boolean,
@@ -2632,33 +2659,33 @@ const ao = ro.exports, rt = 4, oo = /* @__PURE__ */ E({
2632
2659
  emits: ["click"],
2633
2660
  setup(t, { emit: e }) {
2634
2661
  const r = t, n = I(null), a = d(() => r.radius / 2);
2635
- return X(() => me(n.value)), { __sfc: !0, DEFAULT_RADIUS: rt, props: r, emit: e, root: n, strokeWidth: a };
2662
+ return Y(() => ge(n.value)), { __sfc: !0, DEFAULT_RADIUS: at, props: r, emit: e, root: n, strokeWidth: a };
2636
2663
  }
2637
2664
  });
2638
- var lo = function() {
2665
+ var uo = function() {
2639
2666
  var e = this, r = e._self._c, n = e._self._setupProxy;
2640
2667
  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(a) {
2641
2668
  return n.emit("click", a);
2642
2669
  } } });
2643
- }, uo = [], io = /* @__PURE__ */ w(
2644
- oo,
2670
+ }, io = [], so = /* @__PURE__ */ w(
2645
2671
  lo,
2646
2672
  uo,
2673
+ io,
2647
2674
  !1,
2648
2675
  null,
2649
2676
  "9bacbd7d",
2650
2677
  null,
2651
2678
  null
2652
2679
  );
2653
- const so = io.exports;
2680
+ const co = so.exports;
2654
2681
  function Tt(t) {
2655
2682
  function e(o) {
2656
2683
  let l = null;
2657
2684
  return o == null ? void 0 : o.reduce((i, u, s) => (u == null || u.value == null ? (l ? l.push(s) : l = [s], s === (o == null ? void 0 : o.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
2658
2685
  }
2659
2686
  function r(o, l, i, u) {
2660
- const v = Math.abs(o - l) / (i + 1) * (u + 1);
2661
- return o > l ? o - v : o + v;
2687
+ const c = Math.abs(o - l) / (i + 1) * (u + 1);
2688
+ return o > l ? o - c : o + c;
2662
2689
  }
2663
2690
  function n(o) {
2664
2691
  return function(i) {
@@ -2673,21 +2700,21 @@ function Tt(t) {
2673
2700
  ...o,
2674
2701
  isDashed: n(l),
2675
2702
  values: o.values.map((i, u) => {
2676
- var c, v;
2703
+ var v, c;
2677
2704
  const s = l.find(
2678
- (f) => f.includes(u)
2705
+ (_) => _.includes(u)
2679
2706
  );
2680
2707
  if (s) {
2681
- const f = s[0] - 1, y = s[s.length - 1] + 1;
2682
- let m = (c = o.values[f]) == null ? void 0 : c.value, g = (v = o.values[y]) == null ? void 0 : v.value;
2683
- return m == null && (m = g), g == null && (g = m), {
2708
+ const _ = s[0] - 1, p = s[s.length - 1] + 1;
2709
+ let f = (v = o.values[_]) == null ? void 0 : v.value, y = (c = o.values[p]) == null ? void 0 : c.value;
2710
+ return f == null && (f = y), y == null && (y = f), {
2684
2711
  value: r(
2685
- m,
2686
- g,
2712
+ f,
2713
+ y,
2687
2714
  s.length,
2688
2715
  s.indexOf(u)
2689
2716
  ),
2690
- label: _t
2717
+ label: ft
2691
2718
  };
2692
2719
  }
2693
2720
  return i;
@@ -2695,22 +2722,22 @@ function Tt(t) {
2695
2722
  };
2696
2723
  })) };
2697
2724
  }
2698
- function co(t, e) {
2725
+ function vo(t, e) {
2699
2726
  const r = t.bandwidth() / 2;
2700
2727
  return (n, a) => t(t.domain()[e + (a - 1)]) + r;
2701
2728
  }
2702
- function vo(t, e) {
2729
+ function _o(t, e) {
2703
2730
  return (r, n) => t(e + (n - 1));
2704
2731
  }
2705
- function _o(t, e, r, n) {
2706
- return Ht().x(
2707
- q(r) ? co(r, t) : vo(r, t)
2732
+ function fo(t, e, r, n) {
2733
+ return Rt().x(
2734
+ te(r) ? vo(r, t) : _o(r, t)
2708
2735
  ).y((o) => n(o))(e);
2709
2736
  }
2710
- const at = 1, fo = /* @__PURE__ */ E({
2737
+ const ot = 1, po = /* @__PURE__ */ E({
2711
2738
  __name: "lume-line-group",
2712
2739
  props: {
2713
- ...he(),
2740
+ ...ye(),
2714
2741
  withPoints: {
2715
2742
  type: Boolean,
2716
2743
  default: !0
@@ -2722,82 +2749,82 @@ const at = 1, fo = /* @__PURE__ */ E({
2722
2749
  },
2723
2750
  emits: ["line-click", "point-click", "lume__internal--hover"],
2724
2751
  setup(t, { emit: e }) {
2725
- const r = t, { data: n, options: a, xScale: o, yScale: l } = H(r), i = fe(
2752
+ const r = t, { data: n, options: a, xScale: o, yScale: l } = R(r), i = me(
2726
2753
  "tooltipAnchorAttributes",
2727
2754
  null
2728
- ), { updateTooltipAnchorAttributes: u } = yt(
2755
+ ), { updateTooltipAnchorAttributes: u } = bt(
2729
2756
  i,
2730
2757
  a,
2731
2758
  o,
2732
2759
  l
2733
2760
  ), s = d(() => {
2734
- if (n.value.every((N) => N.isDashed))
2761
+ if (n.value.every((C) => C.isDashed))
2735
2762
  return n.value;
2736
- const { computedLineData: k } = Tt(n);
2737
- return a.value.withTooltip !== !1 && (i != null && i.value) && u(k.value), k.value;
2738
- }), c = d(() => {
2763
+ const { computedLineData: b } = Tt(n);
2764
+ return a.value.withTooltip !== !1 && (i != null && i.value) && u(b.value), b.value;
2765
+ }), v = d(() => {
2739
2766
  if (r.hoveredIndex === -1)
2740
2767
  return;
2741
- const k = Kt(
2768
+ const b = Jt(
2742
2769
  s.value,
2743
2770
  r.hoveredIndex
2744
2771
  );
2745
2772
  return {
2746
- d: `M ${Ie(o.value, r.hoveredIndex)},${l.value.range()[1]}
2747
- V ${l.value(k)}`
2773
+ d: `M ${we(o.value, r.hoveredIndex)},${l.value.range()[1]}
2774
+ V ${l.value(b)}`
2748
2775
  // Move to X index, Vertical line to the highest point
2749
2776
  };
2750
- }), v = d(
2751
- () => o.value && at / (Jt(o.value) - 1)
2777
+ }), c = d(
2778
+ () => o.value && ot / (Qt(o.value) - 1)
2752
2779
  // Subtracting the first line (read below)
2753
- ), f = d(
2780
+ ), _ = d(
2754
2781
  () => {
2755
- var k;
2756
- return ((k = a.value) == null ? void 0 : k.lineWidth) * 2 || void 0;
2782
+ var b;
2783
+ return ((b = a.value) == null ? void 0 : b.lineWidth) * 2 || void 0;
2757
2784
  }
2758
2785
  // If no `lineWidth`, returns NaN which needs to be undefined
2759
- ), y = d(
2786
+ ), p = d(
2760
2787
  () => o.value.bandwidth() / 2
2761
- ), m = d(() => o.value.domain()), g = d(
2788
+ ), f = d(() => o.value.domain()), y = d(
2762
2789
  () => a.value.withPoints ?? r.withPoints
2763
2790
  );
2764
- function h(k) {
2765
- return s.value[k].values;
2791
+ function m(b) {
2792
+ return s.value[b].values;
2766
2793
  }
2767
- function p(k, N) {
2768
- var R, S;
2769
- const D = k === 0 ? [] : [
2770
- (R = h(N)[k - 1]) == null ? void 0 : R.value,
2771
- (S = h(N)[k]) == null ? void 0 : S.value
2794
+ function h(b, C) {
2795
+ var S, B;
2796
+ const H = b === 0 ? [] : [
2797
+ (S = m(C)[b - 1]) == null ? void 0 : S.value,
2798
+ (B = m(C)[b]) == null ? void 0 : B.value
2772
2799
  ];
2773
- return _o(
2774
- k,
2775
- D,
2800
+ return fo(
2801
+ b,
2802
+ H,
2776
2803
  o.value,
2777
2804
  l.value
2778
2805
  ) || "";
2779
2806
  }
2780
- function L(k) {
2807
+ function A(b) {
2781
2808
  return {
2782
- animationDelay: k < 2 ? 0 : (k - 1) * v.value,
2783
- animationDuration: v.value
2809
+ animationDelay: b < 2 ? 0 : (b - 1) * c.value,
2810
+ animationDuration: c.value
2784
2811
  };
2785
2812
  }
2786
- function $(k, N) {
2787
- var R;
2788
- const D = (R = h(N)[k]) == null ? void 0 : R.value;
2813
+ function x(b, C) {
2814
+ var S;
2815
+ const H = (S = m(C)[b]) == null ? void 0 : S.value;
2789
2816
  return {
2790
- x: q(o.value) ? r.xScale(m.value[k]) + y.value : r.xScale(k),
2791
- y: l.value(D)
2817
+ x: te(o.value) ? r.xScale(f.value[b]) + p.value : r.xScale(b),
2818
+ y: l.value(H)
2792
2819
  };
2793
2820
  }
2794
- function T(k) {
2795
- return r.hoveredIndex === k;
2821
+ function T(b) {
2822
+ return r.hoveredIndex === b;
2796
2823
  }
2797
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: at, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: c, animationDuration: v, pointRadius: f, xAxisOffset: y, domain: m, computedWithPoints: g, getValuesFromDataset: h, getPathDefinition: p, getLineTransitionParams: L, getPointPosition: $, isPointActive: T, LumeLine: ao, LumePoint: so };
2824
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: ot, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: v, animationDuration: c, pointRadius: _, xAxisOffset: p, domain: f, computedWithPoints: y, getValuesFromDataset: m, getPathDefinition: h, getLineTransitionParams: A, getPointPosition: x, isPointActive: T, LumeLine: oo, LumePoint: co };
2798
2825
  }
2799
2826
  });
2800
- var po = function() {
2827
+ var mo = function() {
2801
2828
  var e = this, r = e._self._c, n = e._self._setupProxy;
2802
2829
  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(a, o) {
2803
2830
  return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l, i) {
@@ -2810,33 +2837,33 @@ var po = function() {
2810
2837
  } } }, "lume-point", n.getPointPosition(i, o), !1));
2811
2838
  }), 1) : e._e()]);
2812
2839
  })], 2);
2813
- }, mo = [], ho = /* @__PURE__ */ w(
2814
- fo,
2840
+ }, ho = [], go = /* @__PURE__ */ w(
2815
2841
  po,
2816
2842
  mo,
2843
+ ho,
2817
2844
  !1,
2818
2845
  null,
2819
2846
  "c4d7f0ca",
2820
2847
  null,
2821
2848
  null
2822
2849
  );
2823
- const xt = ho.exports, go = {
2824
- margins: Q.VERTICAL,
2850
+ const Lt = go.exports, yo = {
2851
+ margins: ee.VERTICAL,
2825
2852
  startOnZero: !0,
2826
2853
  withTooltip: !0,
2827
2854
  xAxisOptions: {},
2828
2855
  yAxisOptions: { gridLines: !0 }
2829
- }, yo = /* @__PURE__ */ E({
2856
+ }, bo = /* @__PURE__ */ E({
2830
2857
  __name: "lume-line-chart",
2831
2858
  props: {
2832
- ...ae(null, !1)
2859
+ ...oe(null, !1)
2833
2860
  },
2834
2861
  setup(t) {
2835
- const e = t, r = ee(V()), { options: n } = H(e), { allOptions: a } = W(n, go);
2836
- return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: oe, LumeLineGroup: xt };
2862
+ const e = t, r = ne(G()), { options: n } = R(e), { allOptions: a } = Z(n, yo);
2863
+ return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: le, LumeLineGroup: Lt };
2837
2864
  }
2838
2865
  });
2839
- var bo = function() {
2866
+ var ko = function() {
2840
2867
  var e = this, r = e._self._c, n = e._self._setupProxy;
2841
2868
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2842
2869
  return [r(n.LumeLineGroup, e._b({}, "lume-line-group", a, !1))];
@@ -2845,28 +2872,28 @@ var bo = function() {
2845
2872
  return [e._t(o, null, null, l || {})];
2846
2873
  } };
2847
2874
  })], null, !0) }, "lume-chart", n.props, !1));
2848
- }, ko = [], Ao = /* @__PURE__ */ w(
2849
- yo,
2875
+ }, xo = [], Ao = /* @__PURE__ */ w(
2850
2876
  bo,
2851
2877
  ko,
2878
+ xo,
2852
2879
  !1,
2853
2880
  null,
2854
2881
  null,
2855
2882
  null,
2856
2883
  null
2857
2884
  );
2858
- const Fo = Ao.exports;
2885
+ const Po = Ao.exports;
2859
2886
  function To(t) {
2860
2887
  return { areaPathDefinition: d(
2861
2888
  () => function(r, n) {
2862
2889
  if (!r || !n)
2863
2890
  return;
2864
2891
  const a = t.value[0].values;
2865
- return Rt().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2892
+ return St().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2866
2893
  }
2867
2894
  ) };
2868
2895
  }
2869
- const xo = {
2896
+ const Lo = {
2870
2897
  margins: {
2871
2898
  top: 0,
2872
2899
  right: 0,
@@ -2880,31 +2907,31 @@ const xo = {
2880
2907
  tooltipOptions: {
2881
2908
  showTitle: !1
2882
2909
  }
2883
- }, Lo = /* @__PURE__ */ E({
2910
+ }, Oo = /* @__PURE__ */ E({
2884
2911
  __name: "lume-sparkline-chart",
2885
2912
  props: {
2886
- ...Ge(null),
2887
- ...se()
2913
+ ...Ve(null),
2914
+ ...ce()
2888
2915
  },
2889
2916
  setup(t, { expose: e }) {
2890
- const r = t, n = ee(V()), { data: a, options: o } = H(r), { internalData: l } = Ve(a), { allOptions: i } = W(o, xo), { computedLineData: u } = Tt(l), { areaPathDefinition: s } = To(u), c = d(() => l.value[0].color), v = d(
2891
- () => a.value[0].areaColor || c.value
2917
+ const r = t, n = ne(G()), { data: a, options: o } = R(r), { internalData: l } = je(a), { allOptions: i } = Z(o, Lo), { computedLineData: u } = Tt(l), { areaPathDefinition: s } = To(u), v = d(() => l.value[0].color), c = d(
2918
+ () => a.value[0].areaColor || v.value
2892
2919
  );
2893
- function f(m) {
2920
+ function _(f) {
2894
2921
  return {
2895
- ...m,
2922
+ ...f,
2896
2923
  noMinSize: !0
2897
2924
  };
2898
2925
  }
2899
- function y(m, g, h) {
2900
- return ie().range([0, h.width]).domain([0, m[0].values.length - 1]);
2926
+ function p(f, y, m) {
2927
+ return se().range([0, m.width]).domain([0, f[0].values.length - 1]);
2901
2928
  }
2902
2929
  return e({
2903
2930
  areaPathDefinition: s
2904
- }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: l, allOptions: i, computedLineData: u, areaPathDefinition: s, computedColor: c, areaColor: v, getSparklineOptions: f, xScaleGenerator: y, LumeChart: oe, LumeLineGroup: xt };
2931
+ }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: l, allOptions: i, computedLineData: u, areaPathDefinition: s, computedColor: v, areaColor: c, getSparklineOptions: _, xScaleGenerator: p, LumeChart: le, LumeLineGroup: Lt };
2905
2932
  }
2906
2933
  });
2907
- var Oo = function() {
2934
+ var $o = function() {
2908
2935
  var e = this, r = e._self._c, n = e._self._setupProxy;
2909
2936
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2910
2937
  return [n.allOptions.showArea ? r("path", { class: [
@@ -2918,41 +2945,41 @@ var Oo = function() {
2918
2945
  return [e._t(o, null, null, l || {})];
2919
2946
  } };
2920
2947
  })], null, !0) }, "lume-chart", n.props, !1));
2921
- }, $o = [], Io = /* @__PURE__ */ w(
2922
- Lo,
2948
+ }, Io = [], wo = /* @__PURE__ */ w(
2923
2949
  Oo,
2924
2950
  $o,
2951
+ Io,
2925
2952
  !1,
2926
2953
  null,
2927
2954
  "9fc2cb6e",
2928
2955
  null,
2929
2956
  null
2930
2957
  );
2931
- const Po = Io.exports;
2958
+ const Go = wo.exports;
2932
2959
  export {
2933
- Do as LumeAlluvialDiagram,
2934
- ma as LumeAlluvialGroup,
2935
- Gr as LumeAlluvialNodeLabel,
2936
- Wr as LumeAlluvialNodeValue,
2937
- bn as LumeAxis,
2938
- Pe as LumeBar,
2939
- Ho as LumeBarChart,
2940
- je as LumeBarGroup,
2941
- oe as LumeChart,
2942
- Cn as LumeChartContainer,
2943
- Bn as LumeChartLegend,
2944
- So as LumeGroupedBarChart,
2945
- ao as LumeLine,
2946
- Fo as LumeLineChart,
2947
- xt as LumeLineGroup,
2948
- kr as LumeOverlayGroup,
2949
- so as LumePoint,
2950
- Ro as LumeSingleBarChart,
2951
- Po as LumeSparklineChart,
2952
- Bo as LumeStackedBarChart,
2953
- rr as LumeTooltip,
2954
- Qn as LumeTooltipItem,
2955
- Xn as LumeTooltipSummary,
2956
- jn as LumeTooltipTitle
2960
+ Ho as LumeAlluvialDiagram,
2961
+ ha as LumeAlluvialGroup,
2962
+ Vr as LumeAlluvialNodeLabel,
2963
+ Zr as LumeAlluvialNodeValue,
2964
+ kn as LumeAxis,
2965
+ Ge as LumeBar,
2966
+ Ro as LumeBarChart,
2967
+ Me as LumeBarGroup,
2968
+ le as LumeChart,
2969
+ Dn as LumeChartContainer,
2970
+ Fn as LumeChartLegend,
2971
+ Bo as LumeGroupedBarChart,
2972
+ oo as LumeLine,
2973
+ Po as LumeLineChart,
2974
+ Lt as LumeLineGroup,
2975
+ xr as LumeOverlayGroup,
2976
+ co as LumePoint,
2977
+ So as LumeSingleBarChart,
2978
+ Go as LumeSparklineChart,
2979
+ Fo as LumeStackedBarChart,
2980
+ ar as LumeTooltip,
2981
+ qn as LumeTooltipItem,
2982
+ Un as LumeTooltipSummary,
2983
+ Mn as LumeTooltipTitle
2957
2984
  };
2958
2985
  //# sourceMappingURL=index.js.map