@adyen/lume-vue3 1.11.5 → 1.12.1

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, ref as G, createElementBlock as I, openBlock as _, mergeProps as j, createElementVNode as S, createCommentVNode as z, toDisplayString as ne, isRef as St, computed as v, watch as X, toRefs as ee, inject as Ce, reactive as Fe, onMounted as ye, unref as d, createBlock as Y, Fragment as Q, renderList as W, normalizeStyle as jt, normalizeClass as te, watchEffect as Vt, onBeforeUnmount as Pt, renderSlot as M, createTextVNode as se, useSlots as re, nextTick as Qe, withCtx as V, createSlots as ce, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as ue, toHandlers as oe, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
1
+ import { defineComponent as Z, ref as R, createElementBlock as I, openBlock as _, mergeProps as j, createElementVNode as S, createCommentVNode as C, toDisplayString as oe, isRef as Gt, computed as v, watch as X, toRefs as te, inject as Fe, reactive as Ce, onMounted as _e, unref as d, createBlock as Y, Fragment as q, renderList as W, normalizeStyle as jt, normalizeClass as ne, watchEffect as Vt, onBeforeUnmount as Pt, renderSlot as B, createTextVNode as ce, useSlots as re, nextTick as Qe, withCtx as V, createSlots as de, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as ue, toHandlers as ae, normalizeProps as he, guardReactiveProps as ge, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
2
2
  import { sankeyLinkHorizontal as vn, sankey as mn, sankeyJustify as fn } from "d3-sankey";
3
3
  import { format as pn, ticks as hn, scaleLinear as Be, scaleBand as Me, link as gn, line as yn, area as _n } from "d3";
4
4
  import { createPopper as kn } from "@popperjs/core";
@@ -43,9 +43,9 @@ const bn = {
43
43
  }
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
- setup(e, { expose: t, emit: n }) {
47
- const o = n, a = G(null);
48
- return t({ ref: a }), (r, l) => (_(), I("g", j(e.group, {
46
+ setup(e, { expose: n, emit: t }) {
47
+ const o = t, a = R(null);
48
+ return n({ ref: a }), (r, l) => (_(), I("g", j(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
@@ -63,17 +63,17 @@ const bn = {
63
63
  ref_key: "labelRef",
64
64
  ref: a,
65
65
  class: "axis__label"
66
- }), ne(e.value), 17)
66
+ }), oe(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (_(), I("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : z("", !0)
68
+ e.withGridlines ? (_(), I("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : C("", !0)
69
69
  ], 16));
70
70
  }
71
- }), q = (e, t) => {
72
- const n = e.__vccOpts || e;
73
- for (const [o, a] of t)
74
- n[o] = a;
75
- return n;
76
- }, At = /* @__PURE__ */ q(An, [["__scopeId", "data-v-59ddc0a6"]]), Tn = [
71
+ }), ee = (e, n) => {
72
+ const t = e.__vccOpts || e;
73
+ for (const [o, a] of n)
74
+ t[o] = a;
75
+ return t;
76
+ }, At = /* @__PURE__ */ ee(An, [["__scopeId", "data-v-59ddc0a6"]]), Tn = [
77
77
  "controls",
78
78
  "legend",
79
79
  "axes",
@@ -81,12 +81,12 @@ const bn = {
81
81
  "tooltip",
82
82
  "tooltip-content"
83
83
  ];
84
- function Ct() {
84
+ function Ft() {
85
85
  return process.env.NODE_ENV === "production";
86
86
  }
87
- function Ft(e) {
87
+ function Ct(e) {
88
88
  return (e == null ? void 0 : e.map(
89
- (t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
89
+ (n) => n.values.map((t) => t == null ? void 0 : t.value).flat()
90
90
  ).flat()) || [];
91
91
  }
92
92
  function st(e) {
@@ -94,75 +94,75 @@ function st(e) {
94
94
  }
95
95
  function Ln(e) {
96
96
  return !!e && e.every(
97
- (t) => "color" in t
97
+ (n) => "color" in n
98
98
  );
99
99
  }
100
100
  function qe(e) {
101
101
  return !!e && typeof e == "object" && !Array.isArray(e);
102
102
  }
103
- function zt(e, t) {
104
- const n = { ...e };
105
- return Object.entries(t).forEach(([o, a]) => {
106
- n[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
107
- }), n;
103
+ function zt(e, n) {
104
+ const t = { ...e };
105
+ return Object.entries(n).forEach(([o, a]) => {
106
+ t[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
107
+ }), t;
108
108
  }
109
109
  function $n(e) {
110
110
  return e != null && qe(e) && "value" in e;
111
111
  }
112
- function de(e) {
112
+ function ve(e) {
113
113
  return (e == null ? void 0 : e.bandwidth) !== void 0;
114
114
  }
115
115
  function On(e) {
116
- return de(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
116
+ return ve(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
117
117
  }
118
118
  function In(e) {
119
- const [t, n] = e.domain();
120
- return t == null || n == null || t === 0 && n === 0;
119
+ const [n, t] = e.domain();
120
+ return n == null || t == null || n === 0 && t === 0;
121
121
  }
122
- const xn = (e, t) => {
122
+ const wn = (e, n) => {
123
123
  if (!e)
124
124
  throw new Error("Data is not a valid array");
125
125
  if (e.length === 0)
126
126
  throw new Error("Cannot get highest value from empty array");
127
127
  e.some(
128
- ({ values: o }) => o.length - 1 >= t
129
- ) || ge(ve.IndexExceedsLengthOfDataSets);
128
+ ({ values: o }) => o.length - 1 >= n
129
+ ) || ye(me.IndexExceedsLengthOfDataSets);
130
130
  };
131
- function wn(e, t) {
132
- var n;
133
- return xn(e, t), ((n = e.reduce(
131
+ function xn(e, n) {
132
+ var t;
133
+ return wn(e, n), ((t = e.reduce(
134
134
  (o, a) => {
135
135
  var r, l;
136
- return (((r = o.values[t]) == null ? void 0 : r.value) ?? 0) > (((l = a.values[t]) == null ? void 0 : l.value) ?? 0) ? o : a;
136
+ return (((r = o.values[n]) == null ? void 0 : r.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
137
137
  }
138
- ).values[t]) == null ? void 0 : n.value) || 0;
138
+ ).values[n]) == null ? void 0 : t.value) || 0;
139
139
  }
140
140
  function Wt(e) {
141
- const t = St(e) ? e.value : e;
142
- if (!t)
141
+ const n = Gt(e) ? e.value : e;
142
+ if (!n)
143
143
  throw new Error("No empty array can be created from specified data value");
144
- const n = Math.max(
145
- ...t.map((o) => o.values.length),
144
+ const t = Math.max(
145
+ ...n.map((o) => o.values.length),
146
146
  0
147
147
  );
148
- return Array(n).fill(null);
148
+ return Array(t).fill(null);
149
149
  }
150
150
  function En(e) {
151
- return de(e) ? e.domain().length : Math.max(...e.domain());
151
+ return ve(e) ? e.domain().length : Math.max(...e.domain());
152
152
  }
153
- function Nn(e, t) {
154
- return (n) => Math.round(e * (1 - n) + t * n);
153
+ function Nn(e, n) {
154
+ return (t) => Math.round(e * (1 - t) + n * t);
155
155
  }
156
- function Dn(e, t, n) {
157
- const o = t, a = e.slice(0, o);
156
+ function Dn(e, n, t) {
157
+ const o = n, a = e.slice(0, o);
158
158
  return e.slice(o).concat(a);
159
159
  }
160
- function Ae(e) {
160
+ function Te(e) {
161
161
  if (e.groups) {
162
- const t = Object.keys(e);
162
+ const n = Object.keys(e);
163
163
  return Object.assign(
164
164
  {},
165
- ...t.map((n) => n !== "groups" ? { [n]: e[n] } : {})
165
+ ...n.map((t) => t !== "groups" ? { [t]: e[t] } : {})
166
166
  );
167
167
  }
168
168
  return e;
@@ -171,80 +171,80 @@ function Hn(e) {
171
171
  return Object.assign(
172
172
  {},
173
173
  ...Object.keys(e).map(
174
- (t) => Tn.includes(t) ? {} : { [t]: e[t] }
174
+ (n) => Tn.includes(n) ? {} : { [n]: e[n] }
175
175
  )
176
176
  );
177
177
  }
178
- function ct(e, t) {
179
- const n = t - e.length;
180
- return n > 0 ? [...e, ...Array(n).fill({ value: null })] : e;
178
+ function ct(e, n) {
179
+ const t = n - e.length;
180
+ return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
181
181
  }
182
- var ve = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
183
- Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(ve || {});
182
+ var me = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
183
+ Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(me || {});
184
184
  const Bn = "[lume] ";
185
- function ge(e, t = !0) {
186
- t && Ct() || console.warn(Bn + "Warning: " + e);
185
+ function ye(e, n = !0) {
186
+ n && Ft() || console.warn(Bn + "Warning: " + e);
187
187
  }
188
188
  const Ve = (e) => {
189
- let t = null;
189
+ let n = null;
190
190
  switch (typeof e) {
191
191
  case "string":
192
192
  try {
193
- t = pn(e);
193
+ n = pn(e);
194
194
  } catch {
195
- ge(ve.InvalidFormat), t = null;
195
+ ye(me.InvalidFormat), n = null;
196
196
  }
197
197
  break;
198
198
  case "function":
199
- t = e;
199
+ n = e;
200
200
  break;
201
201
  default:
202
- t = null;
202
+ n = null;
203
203
  }
204
- function n(...o) {
205
- return t ? t(...o) : o[0];
204
+ function t(...o) {
205
+ return n ? n(...o) : o[0];
206
206
  }
207
- return n;
207
+ return t;
208
208
  }, Re = () => ({
209
209
  options: {
210
210
  type: Object,
211
211
  default: () => ({})
212
212
  }
213
213
  });
214
- function me(e, t) {
214
+ function fe(e, n) {
215
215
  return { allOptions: v(() => {
216
- const o = St(t) ? t == null ? void 0 : t.value : t;
216
+ const o = Gt(n) ? n == null ? void 0 : n.value : n;
217
217
  return o ? zt(o, e.value) : e.value;
218
218
  }) };
219
219
  }
220
220
  const Mn = 0.2;
221
- function Rn(e, t, n) {
222
- const o = G(), a = v(() => Math.max(...e.value.range())), r = v(() => t.value.length);
221
+ function Rn(e, n, t) {
222
+ const o = R(), a = v(() => Math.max(...e.value.range())), r = v(() => n.value.length);
223
223
  function l() {
224
- if (!t.value) return;
225
- const c = t.value.reduce(
224
+ if (!n.value) return;
225
+ const c = n.value.reduce(
226
226
  (f, u) => f + u.ref.getBoundingClientRect().width,
227
227
  0
228
228
  ), s = Math.ceil(c / r.value);
229
229
  o.value = s + s * Mn;
230
230
  }
231
231
  function i(c) {
232
- if (!t.value) return !0;
233
- const s = n.value.skip, f = t.value.length;
232
+ if (!n.value) return !0;
233
+ const s = t.value.skip, f = n.value.length;
234
234
  if (c === 0) return !0;
235
235
  const u = a.value / f, m = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / u);
236
236
  return c % m === 0;
237
237
  }
238
- return X(t, l), { showTick: i };
238
+ return X(n, l), { showTick: i };
239
239
  }
240
240
  const H = {
241
241
  HORIZONTAL: "horizontal",
242
242
  VERTICAL: "vertical"
243
- }, Gn = {
243
+ }, Sn = {
244
244
  SINGLE: "single",
245
245
  GROUPED: "grouped",
246
246
  STACKED: "stacked"
247
- }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Ge = 8, Sn = 1, jn = [
247
+ }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Se = 8, Gn = 1, jn = [
248
248
  "auto",
249
249
  "auto-start",
250
250
  "auto-end",
@@ -262,7 +262,7 @@ const H = {
262
262
  "left-end"
263
263
  ];
264
264
  function ze(e) {
265
- e != null && e.closest("svg") || ge(ve.NotContainedInSvg);
265
+ e != null && e.closest("svg") || ye(me.NotContainedInSvg);
266
266
  }
267
267
  const Kt = {
268
268
  /** Displays a line for each tick. */
@@ -287,7 +287,7 @@ const Kt = {
287
287
  }, Pn = {
288
288
  ...Kt,
289
289
  gridLines: !0
290
- }, Cn = function(e, t, n) {
290
+ }, Fn = function(e, n, t) {
291
291
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
292
292
  function a(c, s) {
293
293
  return {
@@ -303,7 +303,7 @@ const Kt = {
303
303
  return {
304
304
  x: -(s - e.value.step()) / 2,
305
305
  width: s,
306
- height: n.value.tickPadding + Yt + Ge
306
+ height: t.value.tickPadding + Yt + Se
307
307
  };
308
308
  }
309
309
  function l() {
@@ -311,14 +311,14 @@ const Kt = {
311
311
  return {
312
312
  x1: c,
313
313
  x2: c,
314
- y1: -t.value.height
314
+ y1: -n.value.height
315
315
  // Negative height means it goes from bottom to top
316
316
  };
317
317
  }
318
318
  function i() {
319
319
  return {
320
320
  x: e.value.step() / 2,
321
- y: n.value.tickPadding,
321
+ y: t.value.tickPadding,
322
322
  dy: "0.8em",
323
323
  "text-anchor": "middle"
324
324
  };
@@ -329,7 +329,7 @@ const Kt = {
329
329
  getTickGroupAttributes: a,
330
330
  getTickLabelAttributes: i
331
331
  };
332
- }, Fn = function(e, t, n) {
332
+ }, Cn = function(e, n, t) {
333
333
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
334
334
  function a(c, s) {
335
335
  return {
@@ -338,7 +338,7 @@ const Kt = {
338
338
  }
339
339
  function r(c) {
340
340
  var f;
341
- const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + n.value.tickPadding + Ge;
341
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Se;
342
342
  return {
343
343
  x: -s,
344
344
  width: s,
@@ -350,12 +350,12 @@ const Kt = {
350
350
  return {
351
351
  y1: c,
352
352
  y2: c,
353
- x1: t.value.width
353
+ x1: n.value.width
354
354
  };
355
355
  }
356
356
  function i() {
357
357
  return {
358
- x: -n.value.tickPadding,
358
+ x: -t.value.tickPadding,
359
359
  y: e.value.step() / 2,
360
360
  "text-anchor": "end",
361
361
  "alignment-baseline": "middle"
@@ -367,7 +367,7 @@ const Kt = {
367
367
  getTickGroupAttributes: a,
368
368
  getTickLabelAttributes: i
369
369
  };
370
- }, zn = function(e, t, n) {
370
+ }, zn = function(e, n, t) {
371
371
  const o = v(() => {
372
372
  const c = e.value.ticks();
373
373
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -379,19 +379,19 @@ const Kt = {
379
379
  }
380
380
  function r() {
381
381
  return {
382
- height: n.value.tickPadding + Yt + Ge,
382
+ height: t.value.tickPadding + Yt + Se,
383
383
  width: o.value,
384
384
  x: -(o.value / 2)
385
385
  };
386
386
  }
387
387
  function l() {
388
388
  return {
389
- y1: -t.value.height
389
+ y1: -n.value.height
390
390
  };
391
391
  }
392
392
  function i() {
393
393
  return {
394
- y: n.value.tickPadding,
394
+ y: t.value.tickPadding,
395
395
  dy: "0.8em",
396
396
  "text-anchor": "middle"
397
397
  };
@@ -402,7 +402,7 @@ const Kt = {
402
402
  getTickGroupAttributes: a,
403
403
  getTickLabelAttributes: i
404
404
  };
405
- }, Wn = function(e, t, n) {
405
+ }, Wn = function(e, n, t) {
406
406
  const o = v(() => {
407
407
  const c = e.value.ticks();
408
408
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -414,7 +414,7 @@ const Kt = {
414
414
  }
415
415
  function r(c) {
416
416
  var f;
417
- const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + n.value.tickPadding + Ge;
417
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Se;
418
418
  return {
419
419
  width: s,
420
420
  height: o.value,
@@ -424,12 +424,12 @@ const Kt = {
424
424
  }
425
425
  function l() {
426
426
  return {
427
- x1: t.value.width
427
+ x1: n.value.width
428
428
  };
429
429
  }
430
430
  function i() {
431
431
  return {
432
- x: -n.value.tickPadding,
432
+ x: -t.value.tickPadding,
433
433
  dy: "0.4em",
434
434
  "text-anchor": "end"
435
435
  };
@@ -441,8 +441,8 @@ const Kt = {
441
441
  getTickLabelAttributes: i
442
442
  };
443
443
  }, Zn = {
444
- "x-band-scale-axis": Cn,
445
- "y-band-scale-axis": Fn,
444
+ "x-band-scale-axis": Fn,
445
+ "y-band-scale-axis": Cn,
446
446
  "x-linear-scale-axis": zn,
447
447
  "y-linear-scale-axis": Wn
448
448
  }, Un = ["transform"], Xn = { key: 0 }, Yn = /* @__PURE__ */ S("linearGradient", { id: "lume-tick-gradient" }, [
@@ -498,41 +498,41 @@ const Lt = /* @__PURE__ */ Z({
498
498
  ...Re()
499
499
  },
500
500
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
501
- setup(e, { emit: t }) {
502
- const o = e, a = t, { scale: r, containerSize: l, hoveredIndex: i, options: c, orientation: s } = ee(o), f = Ce("isEmpty", G(!1)), u = Fe({}), m = G(null), y = G(null), p = G(null), b = v(
501
+ setup(e, { emit: n }) {
502
+ const o = e, a = n, { scale: r, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Fe("isEmpty", R(!1)), u = Ce({}), m = R(null), y = R(null), p = R(null), b = v(
503
503
  () => o.type ? et[o.type] : o.position
504
504
  ), $ = v(
505
505
  () => o.type || (b.value === "left" ? "y" : "x")
506
506
  ), L = v(
507
507
  () => $.value === "x" && s.value === H.VERTICAL || $.value === "y" && s.value === H.HORIZONTAL
508
- ), { allOptions: g } = me(
508
+ ), { allOptions: g } = fe(
509
509
  c,
510
510
  $.value === "x" ? Vn : Pn
511
511
  ), { showTick: O } = Rn(r, m, g), N = v(
512
512
  () => f.value || !r.value || In(r.value)
513
513
  ), D = v(() => {
514
- var k, E, h, R;
515
- return $.value === "y" && N.value ? `translate(0, ${((k = l.value) == null ? void 0 : k.height) / 2})` : $.value === "x" && N.value ? `translate(-${((E = l.value) == null ? void 0 : E.width) / 2}, ${(h = l.value) == null ? void 0 : h.height})` : `translate(0, ${$.value === "x" ? (R = l.value) == null ? void 0 : R.height : 0})`;
514
+ var k, x, h, M;
515
+ return $.value === "y" && N.value ? `translate(0, ${((k = l.value) == null ? void 0 : k.height) / 2})` : $.value === "x" && N.value ? `translate(-${((x = l.value) == null ? void 0 : x.width) / 2}, ${(h = l.value) == null ? void 0 : h.height})` : `translate(0, ${$.value === "x" ? (M = l.value) == null ? void 0 : M.height : 0})`;
516
516
  }), P = v(() => {
517
517
  if (!r.value) return [];
518
- if (de(r.value))
518
+ if (ve(r.value))
519
519
  return r.value.labels || r.value.domain();
520
- const { tickCount: k } = g.value, [E, h] = r.value.domain();
521
- return hn(E, h, k);
522
- }), w = v(() => {
520
+ const { tickCount: k } = g.value, [x, h] = r.value.domain();
521
+ return hn(x, h, k);
522
+ }), G = v(() => {
523
523
  const { tickFormat: k } = g.value;
524
524
  return Ve(k);
525
- }), B = v(
525
+ }), E = v(
526
526
  () => g.value.withHover && L.value && i.value > -1
527
- ), U = v(
528
- () => g.value.tickPadding + Ge || 16
529
- ), K = v(() => $.value === "x" ? (
527
+ ), K = v(
528
+ () => g.value.tickPadding + Se || 16
529
+ ), U = v(() => $.value === "x" ? (
530
530
  // If x axis, get the tick height
531
531
  Math.max(
532
532
  ...(m.value || []).map(
533
533
  (k) => {
534
- var E, h;
535
- return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).height) + U.value;
534
+ var x, h;
535
+ return ((h = (x = k.ref).getBBox) == null ? void 0 : h.call(x).height) + K.value;
536
536
  }
537
537
  )
538
538
  )
@@ -541,100 +541,100 @@ const Lt = /* @__PURE__ */ Z({
541
541
  Math.max(
542
542
  ...(m.value || []).map(
543
543
  (k) => {
544
- var E, h;
545
- return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).width) + U.value;
544
+ var x, h;
545
+ return ((h = (x = k.ref).getBBox) == null ? void 0 : h.call(x).width) + K.value;
546
546
  }
547
547
  )
548
548
  )
549
549
  ));
550
- function J(k) {
551
- const { showTicks: E } = g.value;
552
- return E === !1 ? "" : w.value(k);
550
+ function F(k) {
551
+ const { showTicks: x } = g.value;
552
+ return x === !1 ? "" : G.value(k);
553
553
  }
554
- function C(k, E, h) {
555
- a("mouseenter", { index: L.value ? k : null, value: E, event: h });
554
+ function Q(k, x, h) {
555
+ a("mouseenter", { index: L.value ? k : null, value: x, event: h });
556
556
  }
557
- function ae(k, E, h) {
558
- a("click", { index: k, value: E, event: h });
557
+ function J(k, x, h) {
558
+ a("click", { index: k, value: x, event: h });
559
559
  }
560
- function we(k) {
561
- var E;
560
+ function se(k) {
561
+ var x;
562
562
  if (!(!m.value || !m.value.length))
563
- return (E = m.value[k]) == null ? void 0 : E.ref;
563
+ return (x = m.value[k]) == null ? void 0 : x.ref;
564
564
  }
565
- function fe() {
565
+ function pe() {
566
566
  p.value = P.value.map(
567
- (k, E) => ({
568
- value: J(k),
569
- group: u.getTickGroupAttributes(k, E),
570
- ghost: u.getTickGhostAttributes(we(E)),
567
+ (k, x) => ({
568
+ value: F(k),
569
+ group: u.getTickGroupAttributes(k, x),
570
+ ghost: u.getTickGhostAttributes(se(x)),
571
571
  label: u.getTickLabelAttributes(),
572
572
  gridline: u.getGridLinesAttributes()
573
573
  })
574
574
  );
575
575
  }
576
- function Te() {
576
+ function Le() {
577
577
  p.value && p.value.map((k) => (k.gridline = u.getGridLinesAttributes(), k));
578
578
  }
579
- function Le() {
579
+ function $e() {
580
580
  if (!r.value) return;
581
- const k = r.value.step ? "bandScale" : "linearScale", E = Zn[`${$.value}-${Jt[k]}`];
582
- Object.entries(E(r, l, g) || []).forEach(
583
- ([h, R]) => {
584
- u[h] = R;
581
+ const k = r.value.step ? "bandScale" : "linearScale", x = Zn[`${$.value}-${Jt[k]}`];
582
+ Object.entries(x(r, l, g) || []).forEach(
583
+ ([h, M]) => {
584
+ u[h] = M;
585
585
  }
586
586
  );
587
587
  }
588
- return X(r, Le, { flush: "sync", immediate: !0 }), X(r, fe, { immediate: !0 }), X(m, fe), X(K, (k) => a("lume__internal--axis-size", k)), X(o.containerSize, Te), ye(() => ze(y.value)), (k, E) => d(r) ? (_(), I("g", {
588
+ return X(r, $e, { flush: "sync", immediate: !0 }), X(r, pe, { immediate: !0 }), X(m, pe), X(U, (k) => a("lume__internal--axis-size", k)), X(o.containerSize, Le), _e(() => ze(y.value)), (k, x) => d(r) ? (_(), I("g", {
589
589
  key: 0,
590
590
  ref_key: "root",
591
591
  ref: y,
592
592
  class: "axis",
593
593
  transform: D.value,
594
594
  "data-j-axis": "",
595
- onMouseleave: E[1] || (E[1] = (h) => a("mouseleave", h))
595
+ onMouseleave: x[1] || (x[1] = (h) => a("mouseleave", h))
596
596
  }, [
597
- $.value === "x" ? (_(), I("defs", Xn, Kn)) : z("", !0),
598
- (_(!0), I(Q, null, W(p.value, (h, R) => (_(), Y(d(At), j({
599
- key: `${h.value}_${R}`,
597
+ $.value === "x" ? (_(), I("defs", Xn, Kn)) : C("", !0),
598
+ (_(!0), I(q, null, W(p.value, (h, M) => (_(), Y(d(At), j({
599
+ key: `${h.value}_${M}`,
600
600
  ref_for: !0,
601
601
  ref_key: "tickRefs",
602
602
  ref: m
603
603
  }, h, {
604
- "is-hidden": d(g).skip && !d(O)(R),
604
+ "is-hidden": d(g).skip && !d(O)(M),
605
605
  "with-gridlines": d(g).gridLines,
606
- onMouseenter: (F) => C(R, h.value, F),
607
- onClick: (F) => ae(R, h.value, F)
606
+ onMouseenter: (z) => Q(M, h.value, z),
607
+ onClick: (z) => J(M, h.value, z)
608
608
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
609
- B.value ? (_(), Y(d(At), j({ key: 1 }, p.value[d(i)], {
609
+ E.value ? (_(), Y(d(At), j({ key: 1 }, p.value[d(i)], {
610
610
  "with-gridlines": !1,
611
611
  "is-hovered": "",
612
- onClick: E[0] || (E[0] = (h) => ae(
612
+ onClick: x[0] || (x[0] = (h) => J(
613
613
  d(i),
614
614
  p.value[d(i)].value,
615
615
  h
616
616
  ))
617
- }), null, 16)) : z("", !0)
618
- ], 40, Un)) : z("", !0);
617
+ }), null, 16)) : C("", !0)
618
+ ], 40, Un)) : C("", !0);
619
619
  }
620
620
  });
621
- function Jn(e, t, n, o) {
622
- const a = v(() => n.value > 0 && n.value < 1), r = v(
621
+ function Jn(e, n, t, o) {
622
+ const a = v(() => t.value > 0 && t.value < 1), r = v(
623
623
  () => o.value > 0 && o.value < 1
624
624
  ), l = v(
625
625
  () => a.value ? e.value - 0.5 : e.value
626
626
  // draws the 1px bar closer to the axis
627
627
  ), i = v(
628
- () => r.value ? t.value - 0.5 : t.value
628
+ () => r.value ? n.value - 0.5 : n.value
629
629
  // draws the 1px bar closer to the axis
630
630
  );
631
631
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: r };
632
632
  }
633
- function Qn(e, t, n, o) {
634
- const a = G(0), r = G(0), l = v(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
635
- return ye(() => {
636
- a.value = n.value, r.value = o.value;
637
- }), X(n, (i) => a.value = i), X(o, (i) => r.value = i), { computedWidth: a, computedHeight: r, transformOrigin: l };
633
+ function Qn(e, n, t, o) {
634
+ const a = R(0), r = R(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
635
+ return _e(() => {
636
+ a.value = t.value, r.value = o.value;
637
+ }), X(t, (i) => a.value = i), X(o, (i) => r.value = i), { computedWidth: a, computedHeight: r, transformOrigin: l };
638
638
  }
639
639
  const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
640
640
  __name: "lume-bar",
@@ -673,14 +673,14 @@ const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
673
673
  }
674
674
  },
675
675
  emits: ["click", "mouseover", "mouseleave"],
676
- setup(e, { emit: t }) {
677
- const n = e, o = t, { x: a, y: r, width: l, height: i, transition: c, classList: s } = ee(n), f = G(null), u = v(
676
+ setup(e, { emit: n }) {
677
+ const t = e, o = n, { x: a, y: r, width: l, height: i, transition: c, classList: s } = te(t), f = R(null), u = v(
678
678
  () => typeof s.value == "string" ? [s.value] : s.value
679
679
  ), m = v(() => c.value === "width"), y = v(() => c.value === "height"), p = Qn(a, r, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: g } = Jn(a, r, l, i), O = v(() => L.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => g.value ? 1 : (y.value ? p.computedHeight : i).value), D = m.value || y.value ? p.transformOrigin : null;
680
- return ye(() => ze(f.value)), (P, w) => (_(), I("rect", {
680
+ return _e(() => ze(f.value)), (P, G) => (_(), I("rect", {
681
681
  ref_key: "root",
682
682
  ref: f,
683
- class: te(["lume-bar", [
683
+ class: ne(["lume-bar", [
684
684
  {
685
685
  "lume-fill--faded": e.isFaded,
686
686
  "lume-bar--negative": e.isNegative,
@@ -695,56 +695,56 @@ const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
695
695
  width: O.value,
696
696
  height: N.value,
697
697
  "data-j-bar": "",
698
- onClick: w[0] || (w[0] = (B) => o("click", B)),
699
- onMouseover: w[1] || (w[1] = (B) => o("mouseover", B)),
700
- onMouseleave: w[2] || (w[2] = (B) => o("mouseleave", B))
698
+ onClick: G[0] || (G[0] = (E) => o("click", E)),
699
+ onMouseover: G[1] || (G[1] = (E) => o("mouseover", E)),
700
+ onMouseleave: G[2] || (G[2] = (E) => o("mouseleave", E))
701
701
  }, null, 46, qn));
702
702
  }
703
- }), dt = /* @__PURE__ */ q(eo, [["__scopeId", "data-v-8e8f732a"]]);
704
- var ke = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(ke || {}), ie = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ie || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(mt || {}), ft = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(ft || {});
705
- const to = ke.Categorical, Se = ie.Skyblue, no = vt.SkyTeal;
703
+ }), dt = /* @__PURE__ */ ee(eo, [["__scopeId", "data-v-8e8f732a"]]);
704
+ var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {}), ie = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ie || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(mt || {}), ft = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(ft || {});
705
+ const to = be.Categorical, Ge = ie.Skyblue, no = vt.SkyTeal;
706
706
  function oo(e) {
707
- return e === ke.Divergent ? no : Se;
707
+ return e === be.Divergent ? no : Ge;
708
708
  }
709
709
  function ao(e) {
710
710
  return Object.values(ft).includes(e);
711
711
  }
712
- function $t(e, t) {
713
- return t === ke.Divergent ? Object.values(vt).includes(e) : Object.values({
712
+ function $t(e, n) {
713
+ return n === be.Divergent ? Object.values(vt).includes(e) : Object.values({
714
714
  ...ie,
715
715
  ...qt,
716
716
  ...mt,
717
717
  ...ft
718
718
  }).includes(e);
719
719
  }
720
- function lo(e, t) {
721
- const n = Object.values(ie).indexOf(e);
722
- return Dn(Object.values(ie), n > -1 ? n : 0)[t];
720
+ function lo(e, n) {
721
+ const t = Object.values(ie).indexOf(e);
722
+ return Dn(Object.values(ie), t > -1 ? t : 0)[n];
723
723
  }
724
- function ro(e, t) {
725
- const n = 50 + t * 10;
726
- return `${e}-${n}`;
724
+ function ro(e, n) {
725
+ const t = 50 + n * 10;
726
+ return `${e}-${t}`;
727
727
  }
728
- function uo(e, t) {
729
- const n = (t + 1) * 10;
730
- return `${e}-${n}`;
728
+ function uo(e, n) {
729
+ const t = (n + 1) * 10;
730
+ return `${e}-${t}`;
731
731
  }
732
- function Ot(e, t, n) {
733
- switch (t) {
732
+ function Ot(e, n, t) {
733
+ switch (n) {
734
734
  default:
735
- case ke.Categorical:
736
- return ao(e) ? e : lo(e, n);
737
- case ke.Sequential:
738
- return ro(e, n);
739
- case ke.Divergent:
740
- return uo(e, n);
735
+ case be.Categorical:
736
+ return ao(e) ? e : lo(e, t);
737
+ case be.Sequential:
738
+ return ro(e, t);
739
+ case be.Divergent:
740
+ return uo(e, t);
741
741
  }
742
742
  }
743
- function io(e, t, n = to, o) {
744
- return $t(e, n) ? e : (o > 4 && (ge(ve.ColorLoop), o = o % 5), $t(t, n) ? Ot(t, n, o) : Ot(oo(n), n, o));
743
+ function io(e, n, t = to, o) {
744
+ return $t(e, t) ? e : (o > 4 && (ye(me.ColorLoop), o = o % 5), $t(n, t) ? Ot(n, t, o) : Ot(oo(t), t, o));
745
745
  }
746
746
  function so(e) {
747
- return e.map((t) => $n(t) ? t : { value: t });
747
+ return e.map((n) => $n(n) ? n : { value: n });
748
748
  }
749
749
  function co(e) {
750
750
  return e.__internal === !0;
@@ -768,18 +768,18 @@ const pt = (e = null) => ({
768
768
  default: null
769
769
  }
770
770
  });
771
- function ht(e, t, n, o, a) {
772
- const r = Fe({
771
+ function ht(e, n, t, o, a) {
772
+ const r = Ce({
773
773
  width: 0,
774
774
  height: 0
775
775
  }), l = crypto.randomUUID(), i = v(() => {
776
776
  var f;
777
- return e.value.length > 5 && ge(ve.DatasetLength), (f = e.value) == null ? void 0 : f.map(
777
+ return e.value.length > 5 && ye(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
778
778
  (u, m) => {
779
779
  if (co(u)) return u;
780
780
  const y = so(u.values), p = io(
781
781
  u.color,
782
- n == null ? void 0 : n.value,
782
+ t == null ? void 0 : t.value,
783
783
  o == null ? void 0 : o.value.colorPalette,
784
784
  m
785
785
  );
@@ -791,7 +791,7 @@ function ht(e, t, n, o, a) {
791
791
  };
792
792
  }
793
793
  );
794
- }), c = v(() => Array.isArray(t.value) ? t.value : Wt(e.value).map((f, u) => u));
794
+ }), c = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((f, u) => u));
795
795
  function s(f) {
796
796
  const u = (a == null ? void 0 : a.value) === H.HORIZONTAL && c.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
797
797
  r.width = f.width, r.height = u;
@@ -814,27 +814,27 @@ const vo = () => ({
814
814
  default: null
815
815
  }
816
816
  });
817
- function mo(e, t, n, o, a) {
818
- const r = G(null), l = G(null);
817
+ function mo(e, n, t, o, a) {
818
+ const r = R(null), l = R(null);
819
819
  function i() {
820
820
  var f, u, m, y;
821
- const { width: c, height: s } = n;
822
- !c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? xt(
821
+ const { width: c, height: s } = t;
822
+ !c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? wt(
823
823
  e.value,
824
824
  c,
825
825
  o.value,
826
826
  a.value.startOnZero
827
- ) : null, l.value = (u = t.value) != null && u.length ? It(
828
- t.value,
827
+ ) : null, l.value = (u = n.value) != null && u.length ? It(
828
+ n.value,
829
829
  s,
830
830
  o.value,
831
831
  a.value
832
- ) : null) : (r.value = (m = t.value) != null && m.length ? It(
833
- t.value,
832
+ ) : null) : (r.value = (m = n.value) != null && m.length ? It(
833
+ n.value,
834
834
  c,
835
835
  o.value,
836
836
  a.value
837
- ) : null, l.value = (y = e.value) != null && y.length ? xt(
837
+ ) : null, l.value = (y = e.value) != null && y.length ? wt(
838
838
  e.value,
839
839
  s,
840
840
  o.value,
@@ -843,41 +843,41 @@ function mo(e, t, n, o, a) {
843
843
  }
844
844
  return Vt(i), { xScale: r, yScale: l };
845
845
  }
846
- function It(e, t, n, o) {
847
- const a = [0, t], { padding: r, paddingInner: l, paddingOuter: i } = o, c = r ?? (n === H.HORIZONTAL ? Xt : Ut);
846
+ function It(e, n, t, o) {
847
+ const a = [0, n], { padding: r, paddingInner: l, paddingOuter: i } = o, c = r ?? (t === H.HORIZONTAL ? Xt : Ut);
848
848
  return Object.assign(
849
849
  Me().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
850
850
  { labels: e }
851
851
  );
852
852
  }
853
- function xt(e, t, n, o) {
854
- const a = Ft(e).filter((f) => f != null), r = [0, t];
853
+ function wt(e, n, t, o) {
854
+ const a = Ct(e).filter((f) => f != null), r = [0, n];
855
855
  if (a.length === 0)
856
856
  return Be().range(r).domain([0, 0]).nice();
857
857
  const l = Math.min(...a), i = o && l > 0 ? 0 : l;
858
858
  let c = Math.max(...a);
859
859
  o && c < 0 && (c = 0);
860
- const s = n === H.HORIZONTAL ? [i, c] : [c, i];
860
+ const s = t === H.HORIZONTAL ? [i, c] : [c, i];
861
861
  return Be().range(r).domain(s).nice();
862
862
  }
863
- function wt(e) {
863
+ function xt(e) {
864
864
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
865
865
  }
866
- function tt(e, t) {
867
- return de(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
866
+ function tt(e, n) {
867
+ return ve(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
868
868
  }
869
- function Et(e, t, {
870
- padding: n,
869
+ function Et(e, n, {
870
+ padding: t,
871
871
  paddingInner: o,
872
872
  paddingOuter: a
873
873
  } = {}) {
874
- const r = n ?? (t === H.HORIZONTAL ? Xt : Ut);
874
+ const r = t ?? (n === H.HORIZONTAL ? Xt : Ut);
875
875
  return e.copy().paddingInner(o ?? r).paddingOuter(a ?? r);
876
876
  }
877
877
  function gt(e) {
878
878
  return Object.values(H).includes(e);
879
879
  }
880
- const Ie = (e, t = !0) => ({
880
+ const we = (e, n = !0) => ({
881
881
  ...pt(e),
882
882
  ...vo(),
883
883
  ...Re(),
@@ -889,7 +889,7 @@ const Ie = (e, t = !0) => ({
889
889
  type: Number,
890
890
  default: null
891
891
  },
892
- ...t ? {
892
+ ...n ? {
893
893
  orientation: {
894
894
  type: String,
895
895
  default: H.VERTICAL,
@@ -905,18 +905,18 @@ const Ie = (e, t = !0) => ({
905
905
  }
906
906
  });
907
907
  function po() {
908
- const e = G(), t = Fe({
908
+ const e = R(), n = Ce({
909
909
  dimensions: {}
910
- }), n = new ResizeObserver((o) => {
910
+ }), t = new ResizeObserver((o) => {
911
911
  o.forEach((a) => {
912
- t.dimensions = a.contentRect;
912
+ n.dimensions = a.contentRect;
913
913
  });
914
914
  });
915
- return ye(() => {
916
- n.observe(e.value);
915
+ return _e(() => {
916
+ t.observe(e.value);
917
917
  }), Pt(() => {
918
- n.unobserve(e.value);
919
- }), { resizeState: t, resizeRef: e };
918
+ t.unobserve(e.value);
919
+ }), { resizeState: n, resizeRef: e };
920
920
  }
921
921
  const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
922
922
  __name: "lume-chart-container",
@@ -944,14 +944,14 @@ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
944
944
  }
945
945
  },
946
946
  emits: ["click", "mouseenter", "mouseleave", "resize"],
947
- setup(e, { emit: t }) {
948
- const n = e, o = t, { margins: a, containerSize: r } = ee(n), l = G(null), { resizeRef: i, resizeState: c } = po(), s = v(
947
+ setup(e, { emit: n }) {
948
+ const t = e, o = n, { margins: a, containerSize: r } = te(t), l = R(null), { resizeRef: i, resizeState: c } = po(), s = v(
949
949
  () => r.value.height + a.value.top + a.value.bottom
950
950
  );
951
951
  return Vt(() => {
952
952
  if (!l.value) return;
953
953
  const { width: f } = c.dimensions, { height: u } = l.value.getBoundingClientRect();
954
- if (!f || n.orientation === H.VERTICAL && !u)
954
+ if (!f || t.orientation === H.VERTICAL && !u)
955
955
  return;
956
956
  const m = f - a.value.left - a.value.right, y = u - a.value.top - a.value.bottom, p = {
957
957
  width: m > 0 ? m : 0,
@@ -963,16 +963,16 @@ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
963
963
  }), (f, u) => (_(), I("div", {
964
964
  ref_key: "resizeRef",
965
965
  ref: i,
966
- class: te(["lume-chart-container", {
966
+ class: ne(["lume-chart-container", {
967
967
  "lume-chart-container--minimum": !e.noMinSize
968
968
  }]),
969
969
  "data-j-chart-container": ""
970
970
  }, [
971
- M(f.$slots, "header", {}, void 0, !0),
971
+ B(f.$slots, "header", {}, void 0, !0),
972
972
  (_(), I("svg", {
973
973
  ref_key: "root",
974
974
  ref: l,
975
- class: te(["lume-chart-container__svg", {
975
+ class: ne(["lume-chart-container__svg", {
976
976
  "lume-chart-container__svg--transparent": e.transparentBackground
977
977
  }]),
978
978
  height: s.value,
@@ -986,14 +986,14 @@ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
986
986
  class: "lume-chart-container__group",
987
987
  "data-j-chart-container__group": ""
988
988
  }, [
989
- M(f.$slots, "default", {}, void 0, !0)
989
+ B(f.$slots, "default", {}, void 0, !0)
990
990
  ], 8, go)
991
991
  ], 42, ho)),
992
- M(f.$slots, "footer", {}, void 0, !0),
993
- M(f.$slots, "extra", {}, void 0, !0)
992
+ B(f.$slots, "footer", {}, void 0, !0),
993
+ B(f.$slots, "extra", {}, void 0, !0)
994
994
  ], 2));
995
995
  }
996
- }), _o = /* @__PURE__ */ q(yo, [["__scopeId", "data-v-d53cdc3e"]]), ko = ["onClick", "onMouseenter"], bo = /* @__PURE__ */ Z({
996
+ }), _o = /* @__PURE__ */ ee(yo, [["__scopeId", "data-v-d53cdc3e"]]), ko = ["onClick", "onMouseenter"], bo = /* @__PURE__ */ Z({
997
997
  __name: "lume-chart-legend",
998
998
  props: {
999
999
  data: {
@@ -1003,53 +1003,53 @@ const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
1003
1003
  }
1004
1004
  },
1005
1005
  emits: ["click", "mouseenter", "mouseleave"],
1006
- setup(e, { emit: t }) {
1007
- const n = t;
1006
+ setup(e, { emit: n }) {
1007
+ const t = n;
1008
1008
  return (o, a) => (_(), I("div", {
1009
1009
  class: "lume-chart-legend",
1010
1010
  "data-j-chart-legend": "",
1011
- onMouseleave: a[0] || (a[0] = (r) => n("mouseleave"))
1011
+ onMouseleave: a[0] || (a[0] = (r) => t("mouseleave"))
1012
1012
  }, [
1013
- (_(!0), I(Q, null, W(e.data, (r, l) => (_(), I("div", {
1013
+ (_(!0), I(q, null, W(e.data, (r, l) => (_(), I("div", {
1014
1014
  key: `legend-item-${l}`,
1015
1015
  class: "lume-chart-legend__item lume-typography--caption",
1016
1016
  tabindex: "0",
1017
1017
  "data-j-chart-legend__symbol-wrapper": "",
1018
- onClick: (i) => n("click", { index: l, dataset: r, event: i }),
1019
- onMouseenter: (i) => n("mouseenter", { index: l, dataset: r, event: i })
1018
+ onClick: (i) => t("click", { index: l, dataset: r, event: i }),
1019
+ onMouseenter: (i) => t("mouseenter", { index: l, dataset: r, event: i })
1020
1020
  }, [
1021
1021
  S("span", {
1022
- class: te(["lume-chart-legend__symbol", `lume-background-color--${r.color}`]),
1022
+ class: ne(["lume-chart-legend__symbol", `lume-background-color--${r.color}`]),
1023
1023
  "data-j-chart-legend__symbol": ""
1024
1024
  }, null, 2),
1025
- se(" " + ne(r.label || l), 1)
1025
+ ce(" " + oe(r.label || l), 1)
1026
1026
  ], 40, ko))), 128))
1027
1027
  ], 32));
1028
1028
  }
1029
- }), Nt = /* @__PURE__ */ q(bo, [["__scopeId", "data-v-6f1d1c44"]]), Ao = {}, To = {
1029
+ }), Nt = /* @__PURE__ */ ee(bo, [["__scopeId", "data-v-6f1d1c44"]]), Ao = {}, To = {
1030
1030
  class: "lume-tooltip__title",
1031
1031
  "data-j-tooltip__title": ""
1032
1032
  };
1033
- function Lo(e, t) {
1033
+ function Lo(e, n) {
1034
1034
  return _(), I("div", To, [
1035
- M(e.$slots, "default", {}, void 0, !0)
1035
+ B(e.$slots, "default", {}, void 0, !0)
1036
1036
  ]);
1037
1037
  }
1038
- const $o = /* @__PURE__ */ q(Ao, [["render", Lo], ["__scopeId", "data-v-8af3fac6"]]), Oo = {}, Io = {
1038
+ const $o = /* @__PURE__ */ ee(Ao, [["render", Lo], ["__scopeId", "data-v-8af3fac6"]]), Oo = {}, Io = {
1039
1039
  class: "lume-tooltip__item",
1040
1040
  "data-j-tooltip__summary-item": ""
1041
- }, xo = { class: "lume-tooltip__value" };
1042
- function wo(e, t) {
1041
+ }, wo = { class: "lume-tooltip__value" };
1042
+ function xo(e, n) {
1043
1043
  return _(), I("li", Io, [
1044
1044
  S("span", null, [
1045
- M(e.$slots, "default", {}, void 0, !0)
1045
+ B(e.$slots, "default", {}, void 0, !0)
1046
1046
  ]),
1047
- S("strong", xo, [
1048
- M(e.$slots, "value", {}, void 0, !0)
1047
+ S("strong", wo, [
1048
+ B(e.$slots, "value", {}, void 0, !0)
1049
1049
  ])
1050
1050
  ]);
1051
1051
  }
1052
- const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b"]]), No = {
1052
+ const Eo = /* @__PURE__ */ ee(Oo, [["render", xo], ["__scopeId", "data-v-4ed7ec1b"]]), No = {
1053
1053
  class: "lume-tooltip__item",
1054
1054
  "data-j-tooltip__item": ""
1055
1055
  }, Do = { "data-j-tooltip__item__label": "" }, Ho = {
@@ -1064,21 +1064,21 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1064
1064
  }
1065
1065
  },
1066
1066
  setup(e) {
1067
- return (t, n) => (_(), I("li", No, [
1067
+ return (n, t) => (_(), I("li", No, [
1068
1068
  e.color ? (_(), I("span", {
1069
1069
  key: 0,
1070
- class: te([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
1070
+ class: ne([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
1071
1071
  "data-j-tooltip__item__symbol": ""
1072
- }, null, 2)) : z("", !0),
1072
+ }, null, 2)) : C("", !0),
1073
1073
  S("span", Do, [
1074
- M(t.$slots, "label", {}, void 0, !0)
1074
+ B(n.$slots, "label", {}, void 0, !0)
1075
1075
  ]),
1076
1076
  S("strong", Ho, [
1077
- M(t.$slots, "value", {}, void 0, !0)
1077
+ B(n.$slots, "value", {}, void 0, !0)
1078
1078
  ])
1079
1079
  ]));
1080
1080
  }
1081
- }), Mo = /* @__PURE__ */ q(Bo, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e) => (sn("data-v-6f13599d"), e = e(), cn(), e), Go = { class: "lume-tooltip__items" }, So = {
1081
+ }), Mo = /* @__PURE__ */ ee(Bo, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e) => (sn("data-v-6f13599d"), e = e(), cn(), e), So = { class: "lume-tooltip__items" }, Go = {
1082
1082
  key: 0,
1083
1083
  class: "lume-tooltip__break"
1084
1084
  }, jo = /* @__PURE__ */ Ro(() => /* @__PURE__ */ S("hr", null, null, -1)), Vo = [
@@ -1126,9 +1126,9 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1126
1126
  ...Re()
1127
1127
  },
1128
1128
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
1129
- setup(e, { emit: t }) {
1130
- const n = e, o = t, a = G(null), { items: r, options: l } = ee(n), i = re(), c = G(null), { allOptions: s } = me(l), f = v(
1131
- () => s.value.fixedPositioning ?? n.fixedPositioning
1129
+ setup(e, { emit: n }) {
1130
+ const t = e, o = n, a = R(null), { items: r, options: l } = te(t), i = re(), c = R(null), { allOptions: s } = fe(l), f = v(
1131
+ () => s.value.fixedPositioning ?? t.fixedPositioning
1132
1132
  ), u = v(
1133
1133
  () => f.value ? "fixed" : "absolute"
1134
1134
  ), m = v(() => [
@@ -1143,94 +1143,94 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1143
1143
  name: "offset",
1144
1144
  options: { offset: [0, s.value.offset || 8] }
1145
1145
  },
1146
- ...n.modifiers || []
1146
+ ...t.modifiers || []
1147
1147
  ]), y = v(
1148
- () => s.value.showTitle !== !1 && n.title != null
1148
+ () => s.value.showTitle !== !1 && t.title != null
1149
1149
  ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
1150
1150
  () => {
1151
1151
  var P;
1152
- return ((P = r.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
1153
- label: s.value.summary ?? n.summary
1152
+ return ((P = r.value) == null ? void 0 : P.find((G) => G.isSummary)) || {
1153
+ label: s.value.summary ?? t.summary
1154
1154
  };
1155
1155
  }
1156
- ), L = v(() => i.summary || $.value.label), g = v(() => n.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
1156
+ ), L = v(() => i.summary || $.value.label), g = v(() => t.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
1157
1157
  function O() {
1158
- n.targetElement && a.value && (c.value = kn(n.targetElement, a.value, {
1159
- placement: n.position,
1158
+ t.targetElement && a.value && (c.value = kn(t.targetElement, a.value, {
1159
+ placement: t.position,
1160
1160
  strategy: u.value,
1161
1161
  modifiers: m.value
1162
- }), o("opened", n.targetElement));
1162
+ }), o("opened", t.targetElement));
1163
1163
  }
1164
1164
  function N() {
1165
1165
  c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
1166
1166
  }
1167
1167
  function D() {
1168
- c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), n.targetElement ? function() {
1169
- c.value.state.elements.reference = n.targetElement, c.value.update(), o("moved", n.targetElement);
1168
+ c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
1169
+ c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
1170
1170
  }() : N());
1171
1171
  }
1172
1172
  return X(
1173
- () => n.targetElement,
1174
- async (P, w) => {
1175
- !w && P ? (await Qe(), O()) : D();
1173
+ () => t.targetElement,
1174
+ async (P, G) => {
1175
+ !G && P ? (await Qe(), O()) : D();
1176
1176
  }
1177
- ), ye(O), Pt(N), (P, w) => e.opened && e.targetElement ? (_(), I("div", {
1177
+ ), _e(O), Pt(N), (P, G) => e.opened && e.targetElement ? (_(), I("div", {
1178
1178
  key: 0,
1179
1179
  ref_key: "root",
1180
1180
  ref: a,
1181
- class: te(["lume-tooltip lume-typography--caption", {
1181
+ class: ne(["lume-tooltip lume-typography--caption", {
1182
1182
  "lume-tooltip--pointer-events": d(l).withPointerEvents
1183
1183
  }]),
1184
1184
  "data-j-tooltip": "",
1185
- onMouseenter: w[0] || (w[0] = (B) => o("tooltip-mouseenter")),
1186
- onMouseleave: w[1] || (w[1] = (B) => o("tooltip-mouseleave"))
1185
+ onMouseenter: G[0] || (G[0] = (E) => o("tooltip-mouseenter")),
1186
+ onMouseleave: G[1] || (G[1] = (E) => o("tooltip-mouseleave"))
1187
1187
  }, [
1188
- M(P.$slots, "default", {}, () => [
1189
- M(P.$slots, "title", {}, () => [
1188
+ B(P.$slots, "default", {}, () => [
1189
+ B(P.$slots, "title", {}, () => [
1190
1190
  y.value ? (_(), Y(d($o), { key: 0 }, {
1191
1191
  default: V(() => [
1192
- se(ne(b.value(e.title)), 1)
1192
+ ce(oe(b.value(e.title)), 1)
1193
1193
  ]),
1194
1194
  _: 1
1195
- })) : z("", !0)
1195
+ })) : C("", !0)
1196
1196
  ], !0),
1197
- S("ul", Go, [
1198
- M(P.$slots, "summary", {}, () => [
1199
- L.value ? (_(), Y(d(Eo), { key: 0 }, ce({
1197
+ S("ul", So, [
1198
+ B(P.$slots, "summary", {}, () => [
1199
+ L.value ? (_(), Y(d(Eo), { key: 0 }, de({
1200
1200
  default: V(() => [
1201
- se(ne($.value.label) + " ", 1)
1201
+ ce(oe($.value.label) + " ", 1)
1202
1202
  ]),
1203
1203
  _: 2
1204
1204
  }, [
1205
1205
  $.value.value ? {
1206
1206
  name: "value",
1207
1207
  fn: V(() => [
1208
- se(ne(p.value($.value.value)), 1)
1208
+ ce(oe(p.value($.value.value)), 1)
1209
1209
  ]),
1210
1210
  key: "0"
1211
1211
  } : void 0
1212
- ]), 1024)) : z("", !0)
1212
+ ]), 1024)) : C("", !0)
1213
1213
  ], !0),
1214
- L.value ? (_(), I("li", So, Vo)) : z("", !0),
1215
- M(P.$slots, "items", {}, () => [
1216
- (_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Mo), {
1217
- key: B.label,
1218
- color: B.color
1214
+ L.value ? (_(), I("li", Go, Vo)) : C("", !0),
1215
+ B(P.$slots, "items", {}, () => [
1216
+ (_(!0), I(q, null, W(g.value, (E) => (_(), Y(d(Mo), {
1217
+ key: E.label,
1218
+ color: E.color
1219
1219
  }, {
1220
1220
  label: V(() => [
1221
- se(ne(B.label), 1)
1221
+ ce(oe(E.label), 1)
1222
1222
  ]),
1223
1223
  value: V(() => [
1224
- se(ne(p.value(B.value)), 1)
1224
+ ce(oe(p.value(E.value)), 1)
1225
1225
  ]),
1226
1226
  _: 2
1227
1227
  }, 1032, ["color"]))), 128))
1228
1228
  ], !0)
1229
1229
  ])
1230
1230
  ], !0)
1231
- ], 34)) : z("", !0);
1231
+ ], 34)) : C("", !0);
1232
1232
  }
1233
- }), Co = /* @__PURE__ */ q(Po, [["__scopeId", "data-v-6f13599d"]]), We = () => ({
1233
+ }), Fo = /* @__PURE__ */ ee(Po, [["__scopeId", "data-v-6f13599d"]]), We = () => ({
1234
1234
  data: {
1235
1235
  type: Array,
1236
1236
  required: !0
@@ -1272,7 +1272,7 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1272
1272
  type: [String, Array],
1273
1273
  default: () => []
1274
1274
  }
1275
- }), Fo = { class: "lume-overlay-group" }, zo = /* @__PURE__ */ Z({
1275
+ }), Co = { class: "lume-overlay-group" }, zo = /* @__PURE__ */ Z({
1276
1276
  __name: "lume-overlay-group",
1277
1277
  props: {
1278
1278
  ...We(),
@@ -1282,11 +1282,11 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1282
1282
  }
1283
1283
  },
1284
1284
  emits: ["click", "lume__internal--hover", "mouseover"],
1285
- setup(e, { emit: t }) {
1286
- const n = e, o = t, { data: a, orientation: r, xScale: l, yScale: i } = ee(n), c = v(() => Wt(a));
1285
+ setup(e, { emit: n }) {
1286
+ const t = e, o = n, { data: a, orientation: r, xScale: l, yScale: i } = te(t), c = v(() => Wt(a));
1287
1287
  function s(f) {
1288
1288
  var L;
1289
- const u = r.value === H.HORIZONTAL ? i.value : l.value, m = u.domain(), y = On(u), p = ((L = u.paddingInner) == null ? void 0 : L.call(u)) ?? 0, b = y * p, $ = de(u) ? u(m[f]) - b / 2 : u(f) - y / 2;
1289
+ const u = r.value === H.HORIZONTAL ? i.value : l.value, m = u.domain(), y = On(u), p = ((L = u.paddingInner) == null ? void 0 : L.call(u)) ?? 0, b = y * p, $ = ve(u) ? u(m[f]) - b / 2 : u(f) - y / 2;
1290
1290
  return r.value === H.HORIZONTAL ? {
1291
1291
  width: Math.max(...l.value.range()),
1292
1292
  height: y,
@@ -1297,8 +1297,8 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1297
1297
  transform: `translate(${$}, 0)`
1298
1298
  };
1299
1299
  }
1300
- return (f, u) => (_(), I("g", Fo, [
1301
- (_(!0), I(Q, null, W(c.value, (m, y) => (_(), Y(d(dt), j(s(y), {
1300
+ return (f, u) => (_(), I("g", Co, [
1301
+ (_(!0), I(q, null, W(c.value, (m, y) => (_(), Y(d(dt), j(s(y), {
1302
1302
  key: `overlay-${y}`,
1303
1303
  "data-j-lume-overlay-group": y,
1304
1304
  transition: !1,
@@ -1308,35 +1308,35 @@ const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b
1308
1308
  }), null, 16, ["data-j-lume-overlay-group", "onMouseover", "onClick"]))), 128))
1309
1309
  ]));
1310
1310
  }
1311
- }), _e = (e, t) => {
1312
- function n(r, ...l) {
1311
+ }), ke = (e, n) => {
1312
+ function t(r, ...l) {
1313
1313
  }
1314
1314
  function o(r, l) {
1315
1315
  }
1316
- return { componentEventPropagator: {}, emitInternalEvent: n, listenInternalEvent: o };
1316
+ return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1317
1317
  };
1318
1318
  function Wo(e) {
1319
1319
  return { hasNegativeValues: v(
1320
- () => Ft(e.value).some((n) => n < 0)
1320
+ () => Ct(e.value).some((t) => t < 0)
1321
1321
  ) };
1322
1322
  }
1323
- function Zo(e, t, n, o) {
1323
+ function Zo(e, n, t, o) {
1324
1324
  const a = v(
1325
1325
  () => o.value === H.HORIZONTAL
1326
1326
  ), r = v(
1327
1327
  () => {
1328
1328
  var s;
1329
- return e.height - (a != null && a.value ? 0 : ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0);
1329
+ return e.height - (a != null && a.value ? 0 : ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0);
1330
1330
  }
1331
1331
  ), l = v(
1332
1332
  () => {
1333
1333
  var s;
1334
- return a != null && a.value ? ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0 : e.width;
1334
+ return a != null && a.value ? ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0 : e.width;
1335
1335
  }
1336
1336
  ), i = v(
1337
1337
  () => {
1338
1338
  var s;
1339
- return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = n.value) == null ? void 0 : s.call(n, 0)) || 0})`;
1339
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = t.value) == null ? void 0 : s.call(t, 0)) || 0})`;
1340
1340
  }
1341
1341
  );
1342
1342
  return { negativeBarAttributes: v(() => ({
@@ -1345,27 +1345,27 @@ function Zo(e, t, n, o) {
1345
1345
  transform: i.value
1346
1346
  })) };
1347
1347
  }
1348
- function Uo(e, t) {
1349
- return e.reduce((n, o) => ct(o.values, t).map(
1350
- (a, r) => n[r] ? a.value > n[r] ? a.value : n[r] : a.value ?? 0
1348
+ function Uo(e, n) {
1349
+ return e.reduce((t, o) => ct(o.values, n).map(
1350
+ (a, r) => t[r] ? a.value > t[r] ? a.value : t[r] : a.value ?? 0
1351
1351
  ), []);
1352
1352
  }
1353
- function Xo(e, t) {
1354
- return e.reduce((n, o) => ct(o.values, t).map(
1353
+ function Xo(e, n) {
1354
+ return e.reduce((t, o) => ct(o.values, n).map(
1355
1355
  (a, r) => {
1356
1356
  const l = a.value == null || a.value < 0 ? 0 : a.value;
1357
- return n[r] ? n[r] + l : l;
1357
+ return t[r] ? t[r] + l : l;
1358
1358
  }
1359
1359
  ), []);
1360
1360
  }
1361
1361
  const Dt = {
1362
1362
  "stacked-bar": Xo
1363
1363
  };
1364
- function en(e, t, n, o, a, r, l, i) {
1364
+ function en(e, n, t, o, a, r, l, i) {
1365
1365
  const c = v(
1366
1366
  () => {
1367
1367
  var f;
1368
- return t.value.withTooltip !== !1 && !((f = t.value.tooltipOptions) != null && f.targetElement);
1368
+ return n.value.withTooltip !== !1 && !((f = n.value.tooltipOptions) != null && f.targetElement);
1369
1369
  }
1370
1370
  );
1371
1371
  function s(f) {
@@ -1375,20 +1375,20 @@ function en(e, t, n, o, a, r, l, i) {
1375
1375
  u
1376
1376
  ) : Uo(f, u);
1377
1377
  e.value = m.map((p, b) => ({
1378
- cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? n.value(p) : tt(n.value, b),
1378
+ cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? t.value(p) : tt(t.value, b),
1379
1379
  cy: (r == null ? void 0 : r.value) === H.HORIZONTAL ? tt(o.value, b) : o.value(p)
1380
1380
  }));
1381
1381
  }
1382
1382
  return X(
1383
- [n, o],
1383
+ [t, o],
1384
1384
  () => {
1385
- n.value && o.value && (l != null && l.value) && c.value && s(l.value);
1385
+ t.value && o.value && (l != null && l.value) && c.value && s(l.value);
1386
1386
  },
1387
1387
  { immediate: !0 }
1388
1388
  ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1389
1389
  }
1390
1390
  function Yo() {
1391
- const e = Fe({
1391
+ const e = Ce({
1392
1392
  opened: !1,
1393
1393
  targetElement: null
1394
1394
  });
@@ -1400,17 +1400,17 @@ function Yo() {
1400
1400
  }
1401
1401
  function Ko(e) {
1402
1402
  return { getTooltipItems: v(
1403
- () => (n) => e.value.map(({ color: o, label: a, values: r }) => {
1403
+ () => (t) => e.value.map(({ color: o, label: a, values: r }) => {
1404
1404
  var l, i, c;
1405
1405
  return {
1406
- color: ((l = r[n]) == null ? void 0 : l.color) || o,
1406
+ color: ((l = r[t]) == null ? void 0 : l.color) || o,
1407
1407
  label: a,
1408
- value: ((i = r[n]) == null ? void 0 : i.label) ?? ((c = r[n]) == null ? void 0 : c.value) ?? Zt
1408
+ value: ((i = r[t]) == null ? void 0 : i.label) ?? ((c = r[t]) == null ? void 0 : c.value) ?? Zt
1409
1409
  };
1410
1410
  })
1411
1411
  ) };
1412
1412
  }
1413
- const nt = 16, ot = 8, at = 28, lt = 24, be = {
1413
+ const nt = 16, ot = 8, at = 28, lt = 24, Ae = {
1414
1414
  VERTICAL: {
1415
1415
  top: nt,
1416
1416
  right: ot,
@@ -1430,11 +1430,11 @@ function Jo(e) {
1430
1430
  function Qo(e) {
1431
1431
  return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
1432
1432
  }
1433
- function qo(e, t) {
1434
- return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || at : e.bottom;
1433
+ function qo(e, n) {
1434
+ return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || at : e.bottom;
1435
1435
  }
1436
- function ea(e, t) {
1437
- return !e || e === "auto" || e.left == null || e.left === "auto" ? t || lt : e.left;
1436
+ function ea(e, n) {
1437
+ return !e || e === "auto" || e.left == null || e.left === "auto" ? n || lt : e.left;
1438
1438
  }
1439
1439
  const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-section" }, oa = {
1440
1440
  key: 0,
@@ -1448,63 +1448,63 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1448
1448
  }, ca = /* @__PURE__ */ Z({
1449
1449
  __name: "lume-chart",
1450
1450
  props: {
1451
- ...Ie(),
1451
+ ...we(),
1452
1452
  chartType: {
1453
1453
  type: String,
1454
1454
  default: null
1455
1455
  }
1456
1456
  },
1457
- setup(e, { emit: t }) {
1458
- const n = e, o = re(), a = t, { data: r, labels: l, color: i, options: c, orientation: s, chartType: f } = ee(n), u = G(-1), m = G(null), y = G(null), p = G([]), b = G(null), $ = G(0), L = G(0), { allOptions: g } = me(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(r, l, i, g, s), { xScale: B, yScale: U } = mo(
1457
+ setup(e, { emit: n }) {
1458
+ const t = e, o = re(), a = n, { data: r, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), u = R(-1), m = R(null), y = R(null), p = R([]), b = R(null), $ = R(0), L = R(0), { allOptions: g } = fe(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: G } = ht(r, l, i, g, s), { xScale: E, yScale: K } = mo(
1459
1459
  O,
1460
1460
  N,
1461
1461
  D,
1462
1462
  s,
1463
1463
  g
1464
- ), K = v(() => ({
1464
+ ), U = v(() => ({
1465
1465
  top: Jo(g.value.margins),
1466
1466
  right: Qo(g.value.margins),
1467
1467
  bottom: qo(g.value.margins, $.value),
1468
1468
  left: ea(g.value.margins, L.value)
1469
- })), J = v(() => {
1469
+ })), F = v(() => {
1470
1470
  var A;
1471
- return n.xScale ? wt(n.xScale) ? n.xScale : (A = n.xScale) == null ? void 0 : A.call(n, O.value, l.value, D) : B.value;
1472
- }), C = v(() => {
1471
+ return t.xScale ? xt(t.xScale) ? t.xScale : (A = t.xScale) == null ? void 0 : A.call(t, O.value, l.value, D) : E.value;
1472
+ }), Q = v(() => {
1473
1473
  var A;
1474
- return n.yScale ? wt(n.yScale) ? n.yScale : (A = n.yScale) == null ? void 0 : A.call(n, O.value, l.value, D) : U.value;
1475
- }), ae = v(() => ({
1474
+ return t.yScale ? xt(t.yScale) ? t.yScale : (A = t.yScale) == null ? void 0 : A.call(t, O.value, l.value, D) : K.value;
1475
+ }), J = v(() => ({
1476
1476
  ...g.value.xAxisOptions,
1477
1477
  withHover: s.value === H.VERTICAL
1478
- })), we = v(() => ({
1478
+ })), se = v(() => ({
1479
1479
  ...g.value.yAxisOptions,
1480
1480
  withHover: s.value === H.HORIZONTAL
1481
- })), fe = v(() => {
1481
+ })), pe = v(() => {
1482
1482
  var A;
1483
1483
  return (A = g.value.xAxisOptions) == null ? void 0 : A.title;
1484
- }), Te = v(() => {
1484
+ }), Le = v(() => {
1485
1485
  var A;
1486
1486
  return (A = g.value.yAxisOptions) == null ? void 0 : A.title;
1487
- }), Le = v(() => {
1487
+ }), $e = v(() => {
1488
1488
  var A;
1489
- return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && fe.value;
1489
+ return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && pe.value;
1490
1490
  }), k = v(() => {
1491
1491
  var A;
1492
- return ((A = g.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && Te.value;
1493
- }), E = v(
1492
+ return ((A = g.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && Le.value;
1493
+ }), x = v(
1494
1494
  () => r.value.every((A) => !A.values.length) || r.value.every((A) => A.values.every((T) => T === null))
1495
1495
  ), h = v(() => {
1496
1496
  const A = [], { noBaseScales: T } = g.value;
1497
- return T || A.push(() => !!(J.value && C.value)), A.every((x) => x() === !0);
1498
- }), { hasNegativeValues: R } = Wo(O), { negativeBarAttributes: F } = Zo(
1497
+ return T || A.push(() => !!(F.value && Q.value)), A.every((w) => w() === !0);
1498
+ }), { hasNegativeValues: M } = Wo(O), { negativeBarAttributes: z } = Zo(
1499
1499
  D,
1500
- J,
1501
- C,
1500
+ F,
1501
+ Q,
1502
1502
  s
1503
1503
  ), { shouldGenerateTooltipAnchors: le } = en(
1504
1504
  p,
1505
1505
  g,
1506
- J,
1507
- C,
1506
+ F,
1507
+ Q,
1508
1508
  l,
1509
1509
  s,
1510
1510
  O,
@@ -1514,17 +1514,17 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1514
1514
  var A;
1515
1515
  return ((A = g.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1516
1516
  }
1517
- ), $e = v(() => {
1517
+ ), Oe = v(() => {
1518
1518
  var T;
1519
1519
  const A = (T = g.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1520
1520
  return Ee.opened && (!A || A && b.value === !1);
1521
1521
  });
1522
1522
  function je(A) {
1523
- var x;
1523
+ var w;
1524
1524
  if (g.value.withHover === !1 || A === u.value) return;
1525
1525
  const T = u.value;
1526
1526
  if (u.value = A, g.value.withTooltip !== !1) {
1527
- const Ye = (x = g.value.tooltipOptions) != null && x.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : m.value[A];
1527
+ const Ye = (w = g.value.tooltipOptions) != null && w.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : m.value[A];
1528
1528
  Ze(Ye);
1529
1529
  }
1530
1530
  a("hovered-index-changed", { newIndex: A, oldIndex: T }), a("update:hoveredIndex", A);
@@ -1534,26 +1534,26 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1534
1534
  }
1535
1535
  function _t(A) {
1536
1536
  if (!r.value.some(
1537
- ({ values: x }) => A <= x.length - 1
1537
+ ({ values: w }) => A <= w.length - 1
1538
1538
  )) {
1539
- ge(ve.InvalidHoveredIndex);
1539
+ ye(me.InvalidHoveredIndex);
1540
1540
  return;
1541
1541
  }
1542
1542
  A == null || A === -1 ? Xe() : je(A);
1543
1543
  }
1544
1544
  function rn() {
1545
1545
  setTimeout(() => {
1546
- $e.value && Xe(), a("chart-mouseleave");
1546
+ Oe.value && Xe(), a("chart-mouseleave");
1547
1547
  }, 0);
1548
1548
  }
1549
1549
  function un(A) {
1550
1550
  P(A), a("resize", A);
1551
1551
  }
1552
- function kt({ index: A, value: T, event: x }) {
1553
- A !== null && je(A), a("axis-mouseenter", { index: A, value: T, event: x });
1552
+ function kt({ index: A, value: T, event: w }) {
1553
+ A !== null && je(A), a("axis-mouseenter", { index: A, value: T, event: w });
1554
1554
  }
1555
- function bt({ index: A, value: T, event: x }) {
1556
- a("axis-click", { index: A, value: T, event: x });
1555
+ function bt({ index: A, value: T, event: w }) {
1556
+ a("axis-click", { index: A, value: T, event: w });
1557
1557
  }
1558
1558
  return X(
1559
1559
  r,
@@ -1561,69 +1561,69 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1561
1561
  ), X(
1562
1562
  l,
1563
1563
  (A, T) => a("labels-changed", { newValue: A, oldValue: T })
1564
- ), X(E, (A) => A && ge(ve.Empty), { immediate: !0 }), X(() => n.hoveredIndex, _t), X(
1564
+ ), X(x, (A) => A && ye(me.Empty), { immediate: !0 }), X(() => t.hoveredIndex, _t), X(
1565
1565
  p,
1566
1566
  (A) => {
1567
- A && n.hoveredIndex != null && u.value === -1 && _t(n.hoveredIndex);
1567
+ A && t.hoveredIndex != null && u.value === -1 && _t(t.hoveredIndex);
1568
1568
  },
1569
1569
  { flush: "post" }
1570
1570
  ), X(b, (A) => {
1571
1571
  A === !1 && Ee.opened && Xe();
1572
- }), ye(async () => {
1572
+ }), _e(async () => {
1573
1573
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1574
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(_o), {
1575
- id: `lume-chart_${d(w)}`,
1574
+ }), Ke("chartID", G), Ke("isEmpty", x), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(_o), {
1575
+ id: `lume-chart_${d(G)}`,
1576
1576
  ref_key: "chartContainer",
1577
1577
  ref: y,
1578
- margins: K.value,
1578
+ margins: U.value,
1579
1579
  "container-size": d(D),
1580
1580
  "no-min-size": d(g).noMinSize,
1581
1581
  "transparent-background": d(g).transparentBackground,
1582
1582
  orientation: d(s),
1583
1583
  "data-j-lume-chart": "",
1584
1584
  onResize: un,
1585
- onClick: T[24] || (T[24] = (x) => a("chart-click", x)),
1586
- onMouseenter: T[25] || (T[25] = (x) => a("chart-mouseenter", x)),
1585
+ onClick: T[24] || (T[24] = (w) => a("chart-click", w)),
1586
+ onMouseenter: T[25] || (T[25] = (w) => a("chart-mouseenter", w)),
1587
1587
  onMouseleave: rn
1588
1588
  }, {
1589
1589
  header: V(() => [
1590
1590
  S("div", ta, [
1591
1591
  S("div", na, [
1592
- A.title ? (_(), I("h1", oa, ne(A.title), 1)) : z("", !0),
1592
+ A.title ? (_(), I("h1", oa, oe(A.title), 1)) : C("", !0),
1593
1593
  S("div", aa, [
1594
- M(A.$slots, "controls", {}, void 0, !0)
1594
+ B(A.$slots, "controls", {}, void 0, !0)
1595
1595
  ])
1596
1596
  ]),
1597
1597
  S("div", la, [
1598
- k.value ? (_(), I("h3", ra, ne(Te.value), 1)) : z("", !0),
1599
- M(A.$slots, "legend", { data: d(O) }, () => [
1598
+ k.value ? (_(), I("h3", ra, oe(Le.value), 1)) : C("", !0),
1599
+ B(A.$slots, "legend", { data: d(O) }, () => [
1600
1600
  d(g).withLegend !== !1 && d(g).legendPosition !== "bottom" ? (_(), Y(d(Nt), {
1601
1601
  key: 0,
1602
1602
  data: d(O),
1603
1603
  class: "lume-chart__legend",
1604
1604
  "data-j-lume-chart__legend": "",
1605
- onClick: T[0] || (T[0] = (x) => a("legend-click", x)),
1606
- onMouseenter: T[1] || (T[1] = (x) => a("legend-mouseenter", x)),
1607
- onMouseleave: T[2] || (T[2] = (x) => a("legend-mouseleave"))
1608
- }, null, 8, ["data"])) : z("", !0)
1605
+ onClick: T[0] || (T[0] = (w) => a("legend-click", w)),
1606
+ onMouseenter: T[1] || (T[1] = (w) => a("legend-mouseenter", w)),
1607
+ onMouseleave: T[2] || (T[2] = (w) => a("legend-mouseleave"))
1608
+ }, null, 8, ["data"])) : C("", !0)
1609
1609
  ], !0)
1610
1610
  ])
1611
1611
  ])
1612
1612
  ]),
1613
1613
  footer: V(() => [
1614
- Le.value ? (_(), I("h3", sa, ne(fe.value), 1)) : z("", !0),
1614
+ $e.value ? (_(), I("h3", sa, oe(pe.value), 1)) : C("", !0),
1615
1615
  d(g).withLegend !== !1 && d(g).legendPosition == "bottom" ? (_(), Y(d(Nt), {
1616
1616
  key: 1,
1617
1617
  data: d(O),
1618
1618
  class: "lume-chart__legend lume-chart__legend--bottom",
1619
1619
  "data-j-lume-chart__legend": "",
1620
- onClick: T[16] || (T[16] = (x) => a("legend-click", x)),
1621
- onMouseenter: T[17] || (T[17] = (x) => a("legend-mouseenter", x)),
1622
- onMouseleave: T[18] || (T[18] = (x) => a("legend-mouseleave"))
1623
- }, null, 8, ["data"])) : z("", !0)
1620
+ onClick: T[16] || (T[16] = (w) => a("legend-click", w)),
1621
+ onMouseenter: T[17] || (T[17] = (w) => a("legend-mouseenter", w)),
1622
+ onMouseleave: T[18] || (T[18] = (w) => a("legend-mouseleave"))
1623
+ }, null, 8, ["data"])) : C("", !0)
1624
1624
  ]),
1625
1625
  extra: V(() => [
1626
- M(A.$slots, "tooltip", j(d(Ee), {
1626
+ B(A.$slots, "tooltip", j(d(Ee), {
1627
1627
  data: d(O),
1628
1628
  labels: d(N),
1629
1629
  title: d(N)[u.value],
@@ -1635,124 +1635,124 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1635
1635
  handleMouseLeave: () => b.value = !1,
1636
1636
  options: d(g).tooltipOptions
1637
1637
  }), () => [
1638
- d(g).withTooltip !== !1 ? (_(), Y(d(Co), j({ key: 0 }, d(Ee), {
1638
+ d(g).withTooltip !== !1 ? (_(), Y(d(Fo), j({ key: 0 }, d(Ee), {
1639
1639
  position: De.value,
1640
1640
  title: d(N)[u.value],
1641
1641
  items: d(Ne)(u.value),
1642
1642
  options: d(g).tooltipOptions,
1643
1643
  "data-j-lume-chart__tooltip": "",
1644
- onOpened: T[19] || (T[19] = (x) => a("tooltip-opened", {
1644
+ onOpened: T[19] || (T[19] = (w) => a("tooltip-opened", {
1645
1645
  index: u.value,
1646
- targetElement: x
1646
+ targetElement: w
1647
1647
  })),
1648
- onMoved: T[20] || (T[20] = (x) => a("tooltip-moved", {
1648
+ onMoved: T[20] || (T[20] = (w) => a("tooltip-moved", {
1649
1649
  index: u.value,
1650
- targetElement: x
1650
+ targetElement: w
1651
1651
  })),
1652
- onClosed: T[21] || (T[21] = (x) => a("tooltip-closed")),
1653
- onTooltipMouseenter: T[22] || (T[22] = (x) => b.value = !0),
1654
- onTooltipMouseleave: T[23] || (T[23] = (x) => b.value = !1)
1652
+ onClosed: T[21] || (T[21] = (w) => a("tooltip-closed")),
1653
+ onTooltipMouseenter: T[22] || (T[22] = (w) => b.value = !0),
1654
+ onTooltipMouseleave: T[23] || (T[23] = (w) => b.value = !1)
1655
1655
  }), {
1656
1656
  default: V(() => [
1657
- M(A.$slots, "tooltip-content", {
1657
+ B(A.$slots, "tooltip-content", {
1658
1658
  data: d(O),
1659
1659
  labels: d(N),
1660
1660
  hoveredIndex: u.value
1661
1661
  }, void 0, !0)
1662
1662
  ]),
1663
1663
  _: 3
1664
- }, 16, ["position", "title", "items", "options"])) : z("", !0)
1664
+ }, 16, ["position", "title", "items", "options"])) : C("", !0)
1665
1665
  ], !0)
1666
1666
  ]),
1667
1667
  default: V(() => [
1668
- h.value ? (_(), I(Q, { key: 0 }, [
1669
- d(R) ? (_(), Y(d(dt), j({ key: 0 }, d(F), {
1668
+ h.value ? (_(), I(q, { key: 0 }, [
1669
+ d(M) ? (_(), Y(d(dt), j({ key: 0 }, d(z), {
1670
1670
  "class-list": "lume-fill--negative",
1671
1671
  transition: !1,
1672
1672
  "data-j-lume-chart__negative-values": ""
1673
- }), null, 16)) : z("", !0),
1674
- d(g).withAxes !== !1 ? M(A.$slots, "axes", {
1673
+ }), null, 16)) : C("", !0),
1674
+ d(g).withAxes !== !1 ? B(A.$slots, "axes", {
1675
1675
  key: 1,
1676
- xScale: J.value,
1677
- yScale: C.value,
1676
+ xScale: F.value,
1677
+ yScale: Q.value,
1678
1678
  containerSize: d(D),
1679
1679
  options: d(g),
1680
1680
  hoveredIndex: u.value
1681
1681
  }, () => [
1682
1682
  ue(d(Lt), {
1683
1683
  type: "x",
1684
- scale: J.value,
1684
+ scale: F.value,
1685
1685
  "container-size": d(D),
1686
- options: ae.value,
1686
+ options: J.value,
1687
1687
  "hovered-index": u.value,
1688
1688
  orientation: d(s),
1689
1689
  "data-j-lume-chart__x-axis": "",
1690
1690
  onClick: bt,
1691
1691
  onMouseenter: kt,
1692
- onMouseleave: T[3] || (T[3] = (x) => a("axis-mouseleave")),
1693
- "onLume__internal-AxisSize": T[4] || (T[4] = (x) => $.value = x)
1692
+ onMouseleave: T[3] || (T[3] = (w) => a("axis-mouseleave")),
1693
+ "onLume__internal-AxisSize": T[4] || (T[4] = (w) => $.value = w)
1694
1694
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1695
1695
  ue(d(Lt), {
1696
1696
  type: "y",
1697
- scale: C.value,
1697
+ scale: Q.value,
1698
1698
  "container-size": d(D),
1699
- options: we.value,
1699
+ options: se.value,
1700
1700
  "hovered-index": u.value,
1701
1701
  orientation: d(s),
1702
1702
  "data-j-lume-chart__y-axis": "",
1703
1703
  onClick: bt,
1704
1704
  onMouseenter: kt,
1705
- onMouseleave: T[5] || (T[5] = (x) => a("axis-mouseleave")),
1706
- "onLume__internal-AxisSize": T[6] || (T[6] = (x) => L.value = x)
1705
+ onMouseleave: T[5] || (T[5] = (w) => a("axis-mouseleave")),
1706
+ "onLume__internal-AxisSize": T[6] || (T[6] = (w) => L.value = w)
1707
1707
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1708
- ], !0) : z("", !0),
1708
+ ], !0) : C("", !0),
1709
1709
  d(g).withHover !== !1 ? (_(), Y(d(zo), {
1710
1710
  key: 2,
1711
1711
  data: d(O),
1712
1712
  orientation: d(s),
1713
- "x-scale": J.value,
1714
- "y-scale": C.value,
1713
+ "x-scale": F.value,
1714
+ "y-scale": Q.value,
1715
1715
  "data-j-lume-chart__overlay-group": "",
1716
1716
  "onLume__internal-Hover": je
1717
- }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
1717
+ }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : C("", !0),
1718
1718
  d(le) ? (_(), I("g", ua, [
1719
- (_(!0), I(Q, null, W(p.value, (x, Ye) => (_(), I("circle", j(x, {
1719
+ (_(!0), I(q, null, W(p.value, (w, Ye) => (_(), I("circle", j(w, {
1720
1720
  ref_for: !0,
1721
1721
  ref_key: "tooltipAnchor",
1722
1722
  ref: m,
1723
1723
  key: `anchor_${Ye}`,
1724
- r: d(Sn),
1724
+ r: d(Gn),
1725
1725
  class: "lume-fill--transparent"
1726
1726
  }), null, 16, ia))), 128))
1727
- ])) : z("", !0),
1728
- M(A.$slots, "groups", {
1727
+ ])) : C("", !0),
1728
+ B(A.$slots, "groups", {
1729
1729
  data: d(O),
1730
1730
  labels: d(N),
1731
1731
  options: d(g),
1732
1732
  orientation: d(s),
1733
- xScale: J.value,
1734
- yScale: C.value,
1733
+ xScale: F.value,
1734
+ yScale: Q.value,
1735
1735
  hoveredIndex: u.value,
1736
1736
  containerSize: d(D),
1737
1737
  transition: d(g).withTransition !== !1,
1738
1738
  classList: A.classList,
1739
- onNodeClick: T[7] || (T[7] = (x) => a("node-click", x)),
1740
- onNodeMouseenter: T[8] || (T[8] = (x) => a("node-mouseenter", x)),
1741
- onNodeMouseleave: T[9] || (T[9] = (x) => a("node-mouseleave", x)),
1742
- onLinkClick: T[10] || (T[10] = (x) => a("link-click", x)),
1743
- onLinkMouseenter: T[11] || (T[11] = (x) => a("link-mouseenter", x)),
1744
- onLinkMouseleave: T[12] || (T[12] = (x) => a("link-mouseleave", x)),
1745
- onBarClick: T[13] || (T[13] = (x) => a("bar-click", x)),
1746
- onLineClick: T[14] || (T[14] = (x) => a("line-click", x)),
1747
- onPointClick: T[15] || (T[15] = (x) => a("point-click", x)),
1739
+ onNodeClick: T[7] || (T[7] = (w) => a("node-click", w)),
1740
+ onNodeMouseenter: T[8] || (T[8] = (w) => a("node-mouseenter", w)),
1741
+ onNodeMouseleave: T[9] || (T[9] = (w) => a("node-mouseleave", w)),
1742
+ onLinkClick: T[10] || (T[10] = (w) => a("link-click", w)),
1743
+ onLinkMouseenter: T[11] || (T[11] = (w) => a("link-mouseenter", w)),
1744
+ onLinkMouseleave: T[12] || (T[12] = (w) => a("link-mouseleave", w)),
1745
+ onBarClick: T[13] || (T[13] = (w) => a("bar-click", w)),
1746
+ onLineClick: T[14] || (T[14] = (w) => a("line-click", w)),
1747
+ onPointClick: T[15] || (T[15] = (w) => a("point-click", w)),
1748
1748
  "onLume__internal-Hover": je
1749
1749
  }, void 0, !0)
1750
- ], 64)) : z("", !0)
1750
+ ], 64)) : C("", !0)
1751
1751
  ]),
1752
1752
  _: 3
1753
1753
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "orientation"]));
1754
1754
  }
1755
- }), xe = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-17c48844"]]), Ht = 8, da = 8, va = 20, He = 2, Bt = 2, ma = ["dy", "dominant-baseline"], fa = ["y", "x", "width", "height"], pa = { class: "lume-alluvial-group__label-wrapper" }, ha = /* @__PURE__ */ Z({
1755
+ }), xe = /* @__PURE__ */ ee(ca, [["__scopeId", "data-v-17c48844"]]), Ht = 8, da = 8, va = 20, He = 2, Bt = 2, ma = ["dy", "dominant-baseline"], fa = ["y", "x", "width", "height"], pa = { class: "lume-alluvial-group__label-wrapper" }, ha = /* @__PURE__ */ Z({
1756
1756
  __name: "lume-alluvial-node-label",
1757
1757
  props: {
1758
1758
  bottom: { type: Boolean, default: !1 },
@@ -1760,10 +1760,10 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1760
1760
  maxWidth: { type: Number, default: 0 }
1761
1761
  },
1762
1762
  emits: ["lume__internal--node-resize"],
1763
- setup(e, { emit: t }) {
1764
- const n = e, o = t, a = G(null), r = G(n.maxWidth), l = G(1);
1763
+ setup(e, { emit: n }) {
1764
+ const t = e, o = n, a = R(null), r = R(t.maxWidth), l = R(1);
1765
1765
  return X(
1766
- [a, () => n.maxWidth],
1766
+ [a, () => t.maxWidth],
1767
1767
  async ([i, c]) => {
1768
1768
  if (i && c) {
1769
1769
  r.value = c, await Qe();
@@ -1773,7 +1773,7 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1773
1773
  },
1774
1774
  { immediate: !0 }
1775
1775
  ), X(r, async (i) => {
1776
- i !== n.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1776
+ i !== t.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1777
1777
  }), (i, c) => e.maxWidth ? (_(), I("foreignObject", {
1778
1778
  key: 1,
1779
1779
  class: "lume-alluvial-group__node-foreign",
@@ -1788,7 +1788,7 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1788
1788
  ref: a,
1789
1789
  class: "lume-alluvial-group__node-label"
1790
1790
  }, [
1791
- M(i.$slots, "default", {}, void 0, !0)
1791
+ B(i.$slots, "default", {}, void 0, !0)
1792
1792
  ], 512)
1793
1793
  ])
1794
1794
  ], 8, fa)) : (_(), I("text", {
@@ -1797,93 +1797,93 @@ const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-se
1797
1797
  dy: e.bottom ? ".2em" : "-.2em",
1798
1798
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1799
1799
  }, [
1800
- M(i.$slots, "default", {}, void 0, !0)
1800
+ B(i.$slots, "default", {}, void 0, !0)
1801
1801
  ], 8, ma));
1802
1802
  }
1803
- }), ga = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], _a = /* @__PURE__ */ Z({
1803
+ }), ga = /* @__PURE__ */ ee(ha, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], _a = /* @__PURE__ */ Z({
1804
1804
  __name: "lume-alluvial-node-value",
1805
1805
  props: {
1806
1806
  bottom: { type: Boolean, default: !0 }
1807
1807
  },
1808
1808
  setup(e) {
1809
- return (t, n) => (_(), I("text", {
1809
+ return (n, t) => (_(), I("text", {
1810
1810
  class: "lume-alluvial-group__node-value",
1811
1811
  y: e.bottom ? ".2em" : "-.2em",
1812
1812
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1813
1813
  }, [
1814
- M(t.$slots, "default", {}, void 0, !0)
1814
+ B(n.$slots, "default", {}, void 0, !0)
1815
1815
  ], 8, ya));
1816
1816
  }
1817
- }), ka = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-b4fc758b"]]), ba = ["transform"], Aa = ["transform"], Ta = ["transform"], La = /* @__PURE__ */ Z({
1817
+ }), ka = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-b4fc758b"]]), ba = ["transform"], Aa = ["transform"], Ta = ["transform"], La = /* @__PURE__ */ Z({
1818
1818
  __name: "lume-alluvial-node-header",
1819
1819
  props: {
1820
1820
  x: { type: Number, required: !0 },
1821
1821
  y: { type: Number, required: !0 }
1822
1822
  },
1823
1823
  setup(e) {
1824
- const t = G(null), n = v(
1825
- () => t.value && `translate(${-t.value.getBBox().width / 2}, 0)`
1824
+ const n = R(null), t = v(
1825
+ () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1826
1826
  ), o = v(
1827
- () => t.value && `translate(${t.value.getBBox().width / 2}, 0)`
1827
+ () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1828
1828
  );
1829
1829
  return (a, r) => (_(), I("g", {
1830
1830
  transform: `translate(${e.x}, ${e.y})`
1831
1831
  }, [
1832
- S("g", { transform: n.value }, [
1833
- M(a.$slots, "before", {}, void 0, !0)
1832
+ S("g", { transform: t.value }, [
1833
+ B(a.$slots, "before", {}, void 0, !0)
1834
1834
  ], 8, Aa),
1835
1835
  S("text", {
1836
1836
  ref_key: "textRef",
1837
- ref: t,
1837
+ ref: n,
1838
1838
  class: "lume-alluvial-group__node-header lume-typography--caption"
1839
1839
  }, [
1840
- M(a.$slots, "default", {}, void 0, !0)
1840
+ B(a.$slots, "default", {}, void 0, !0)
1841
1841
  ], 512),
1842
1842
  S("g", { transform: o.value }, [
1843
- M(a.$slots, "after", {}, void 0, !0)
1843
+ B(a.$slots, "after", {}, void 0, !0)
1844
1844
  ], 8, Ta)
1845
1845
  ], 8, ba));
1846
1846
  }
1847
- }), $a = /* @__PURE__ */ q(La, [["__scopeId", "data-v-0e483453"]]);
1848
- function Mt(e, t) {
1847
+ }), $a = /* @__PURE__ */ ee(La, [["__scopeId", "data-v-0e483453"]]);
1848
+ function Mt(e, n) {
1849
1849
  return {
1850
- x0: 0 + (t ? t.left : 0),
1851
- y0: 0 + (t ? t.top : 0),
1852
- x1: e.width - (t ? t.right : 0),
1853
- y1: e.height - (t ? t.bottom : 0)
1850
+ x0: 0 + (n ? n.left : 0),
1851
+ y0: 0 + (n ? n.top : 0),
1852
+ x1: e.width - (n ? n.right : 0),
1853
+ y1: e.height - (n ? n.bottom : 0)
1854
1854
  };
1855
1855
  }
1856
1856
  function Oa(e) {
1857
- const t = G(Mt(e));
1858
- function n(o) {
1859
- t.value = Mt(e, o);
1857
+ const n = R(Mt(e));
1858
+ function t(o) {
1859
+ n.value = Mt(e, o);
1860
1860
  }
1861
- return { extents: t, updateExtents: n };
1861
+ return { extents: n, updateExtents: t };
1862
1862
  }
1863
1863
  var Pe = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Pe || {});
1864
1864
  const Ia = "[lume] ";
1865
- function rt(e, t, n = !0) {
1866
- n && Ct() || console.error(Ia + "Error: " + e, t);
1865
+ function rt(e, n, t = !0) {
1866
+ t && Ft() || console.error(Ia + "Error: " + e, n);
1867
1867
  }
1868
- const xa = 200;
1869
- function Oe(e) {
1868
+ const wa = 200;
1869
+ function Ie(e) {
1870
1870
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1871
1871
  }
1872
- function wa(e, t) {
1873
- return t.nodes.find((n) => n.id === e);
1872
+ function xa(e, n) {
1873
+ return n.nodes.find((t) => t.id === e);
1874
1874
  }
1875
- function Ea(e, t) {
1876
- return t.links.find((n) => n.id === e);
1875
+ function Ea(e, n) {
1876
+ return n.links.find((t) => t.id === e);
1877
1877
  }
1878
1878
  function tn(e) {
1879
1879
  return !!(e.sourceLinks && e.targetLinks);
1880
1880
  }
1881
- function Na(e, t) {
1882
- if (!t) return;
1883
- const n = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = t.filter((l) => n.includes(l.dataset.id)).reduce(
1881
+ function Na(e, n) {
1882
+ if (!n) return;
1883
+ const t = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = n.filter((l) => t.includes(l.dataset.id)).reduce(
1884
1884
  (l, i) => Math.max(l, i.getBBox().width),
1885
1885
  -1 / 0
1886
- ), r = t.filter((l) => o.includes(l.dataset.id)).reduce(
1886
+ ), r = n.filter((l) => o.includes(l.dataset.id)).reduce(
1887
1887
  (l, i) => Math.max(l, i.getBBox().width),
1888
1888
  -1 / 0
1889
1889
  );
@@ -1895,19 +1895,19 @@ function Na(e, t) {
1895
1895
  };
1896
1896
  }
1897
1897
  function Da(e) {
1898
- return e.map((t) => {
1899
- const n = t.y1 - t.y0 < He;
1898
+ return e.map((n) => {
1899
+ const t = n.y1 - n.y0 < He;
1900
1900
  return {
1901
- x: t.x0,
1902
- y: t.y0 - (n ? He / 2 : 0),
1901
+ x: n.x0,
1902
+ y: n.y0 - (t ? He / 2 : 0),
1903
1903
  // Negative offset to account for the min. height
1904
- width: t.x1 - t.x0,
1905
- height: n ? He : t.y1 - t.y0,
1904
+ width: n.x1 - n.x0,
1905
+ height: t ? He : n.y1 - n.y0,
1906
1906
  textTransform: {
1907
- x: t.depth > 0 ? t.x1 + Ht : t.x0 - Ht,
1908
- y: (t.y1 + t.y0) / 2
1907
+ x: n.depth > 0 ? n.x1 + Ht : n.x0 - Ht,
1908
+ y: (n.y1 + n.y0) / 2
1909
1909
  },
1910
- node: t
1910
+ node: n
1911
1911
  };
1912
1912
  });
1913
1913
  }
@@ -1921,27 +1921,27 @@ function Ma(e) {
1921
1921
  return e.curveFunction ? gn(e.curveFunction).source(Ha).target(Ba) : vn();
1922
1922
  }
1923
1923
  function Ra(e) {
1924
- return e.map((t) => {
1925
- var n;
1924
+ return e.map((n) => {
1925
+ var t;
1926
1926
  return {
1927
- id: t.id,
1928
- color: t.color || ((n = t.source) == null ? void 0 : n.color) || Se,
1929
- d: Ma(t)(t),
1930
- strokeWidth: Math.max(1, t.width),
1931
- link: t
1927
+ id: n.id,
1928
+ color: n.color || ((t = n.source) == null ? void 0 : t.color) || Ge,
1929
+ d: Ma(n)(n),
1930
+ strokeWidth: Math.max(1, n.width),
1931
+ link: n
1932
1932
  };
1933
1933
  });
1934
1934
  }
1935
- function Rt(e, t, n, o, a) {
1935
+ function Rt(e, n, t, o, a) {
1936
1936
  if (o === !1) {
1937
1937
  e.node = {
1938
1938
  ...e.node,
1939
- transitionValue: a ? void 0 : n
1939
+ transitionValue: a ? void 0 : t
1940
1940
  };
1941
1941
  return;
1942
1942
  }
1943
- const r = Date.now(), l = Nn(t, n), i = () => {
1944
- let s = (Date.now() - r) / xa;
1943
+ const r = Date.now(), l = Nn(n, t), i = () => {
1944
+ let s = (Date.now() - r) / wa;
1945
1945
  s > 1 && (s = 1), e.node = {
1946
1946
  ...e.node,
1947
1947
  transitionValue: a && s === 1 ? void 0 : l(s)
@@ -1949,21 +1949,21 @@ function Rt(e, t, n, o, a) {
1949
1949
  };
1950
1950
  requestAnimationFrame(i);
1951
1951
  }
1952
- const Ga = {
1952
+ const Sa = {
1953
1953
  nodes: [],
1954
1954
  links: []
1955
1955
  };
1956
- function Gt(e, t) {
1957
- return t.find((n) => n.every((o) => o.x0 === e.x0));
1956
+ function St(e, n) {
1957
+ return n.find((t) => t.every((o) => o.x0 === e.x0));
1958
1958
  }
1959
- function Sa(e, t, n) {
1960
- const o = G(null), a = v(() => {
1959
+ function Ga(e, n, t) {
1960
+ const o = R(null), a = v(() => {
1961
1961
  var u, m;
1962
1962
  return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
1963
1963
  ({ label: y, color: p, value: b, deriveColorFromIncomingLinks: $, offset: L }) => ({
1964
1964
  label: y || b.toString(),
1965
1965
  color: p,
1966
- fallbackColor: p || Se,
1966
+ fallbackColor: p || Ge,
1967
1967
  id: b,
1968
1968
  deriveColorFromIncomingLinks: $,
1969
1969
  offset: L
@@ -1988,18 +1988,18 @@ function Sa(e, t, n) {
1988
1988
  }
1989
1989
  ).filter(Boolean).flat();
1990
1990
  }
1991
- ), l = v(() => mn().nodeId(Oe).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations)), i = v(() => {
1991
+ ), l = v(() => mn().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
1992
1992
  var u;
1993
1993
  return (u = o.value) == null ? void 0 : u.nodes.reduce(
1994
1994
  (m, y) => {
1995
- const p = Gt(y, m);
1995
+ const p = St(y, m);
1996
1996
  return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([y]), m;
1997
1997
  },
1998
1998
  []
1999
1999
  );
2000
2000
  });
2001
2001
  function c(u) {
2002
- const { offset: m } = u, y = Gt(u, i.value);
2002
+ const { offset: m } = u, y = St(u, i.value);
2003
2003
  if (!y) return;
2004
2004
  const p = y[y.findIndex(($) => $.id === u.id) - 1], b = p && y.length !== 1 ? p.y1 + m : m;
2005
2005
  u._y0 = u.y0, u._y1 = u.y1, u.y0 = b, u.y1 = u.y0 + (u._y1 - u._y0);
@@ -2018,75 +2018,75 @@ function Sa(e, t, n) {
2018
2018
  m.value === 0 && (m.fallbackColor = mt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2019
2019
  })), o.value;
2020
2020
  });
2021
- return X([l, n], () => {
2021
+ return X([l, t], () => {
2022
2022
  try {
2023
- const { x0: u, y0: m, x1: y, y1: p } = n.value;
2023
+ const { x0: u, y0: m, x1: y, y1: p } = t.value;
2024
2024
  o.value = l.value.extent([
2025
2025
  [u, m],
2026
2026
  [y, p]
2027
2027
  ])({ nodes: a.value, links: r.value });
2028
2028
  } catch (u) {
2029
- rt(Pe.GraphProblem, u), o.value = Ga;
2029
+ rt(Pe.GraphProblem, u), o.value = Sa;
2030
2030
  }
2031
2031
  }), { columns: i, graph: f };
2032
2032
  }
2033
- function ut(e, t) {
2034
- return t || (t = {}), e.targetLinks && e.targetLinks.forEach(({ source: n, value: o }) => {
2035
- t[n.id] = o, ut(
2036
- n,
2037
- t
2033
+ function ut(e, n) {
2034
+ return n || (n = {}), e.targetLinks && e.targetLinks.forEach(({ source: t, value: o }) => {
2035
+ n[t.id] = o, ut(
2036
+ t,
2037
+ n
2038
2038
  );
2039
- }), t;
2039
+ }), n;
2040
2040
  }
2041
- function it(e, t) {
2042
- return t || (t = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: n, value: o }) => {
2043
- t[n.id] = o, it(
2044
- n,
2045
- t
2041
+ function it(e, n) {
2042
+ return n || (n = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: t, value: o }) => {
2043
+ n[t.id] = o, it(
2044
+ t,
2045
+ n
2046
2046
  );
2047
- }), t;
2047
+ }), n;
2048
2048
  }
2049
- function ja(e, t) {
2050
- return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(o.id), n), []);
2049
+ function ja(e, n) {
2050
+ return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2051
2051
  }
2052
- const Va = (e, t) => {
2053
- let n;
2054
- tn(e) ? n = {
2052
+ const Va = (e, n) => {
2053
+ let t;
2054
+ tn(e) ? t = {
2055
2055
  [e.id]: e.value,
2056
2056
  ...ut(e),
2057
2057
  ...it(e)
2058
- } : n = {
2058
+ } : t = {
2059
2059
  [e.source.id]: e.source.value,
2060
2060
  [e.target.id]: e.target.value,
2061
2061
  ...ut(e.source),
2062
2062
  ...it(e.target)
2063
2063
  };
2064
- const o = ja(n, t);
2065
- return { nodes: n, links: o };
2064
+ const o = ja(t, n);
2065
+ return { nodes: t, links: o };
2066
2066
  }, Pa = (e) => {
2067
2067
  if (tn(e)) {
2068
- const t = [...e.sourceLinks, ...e.targetLinks];
2068
+ const n = [...e.sourceLinks, ...e.targetLinks];
2069
2069
  return {
2070
- nodes: t.reduce(
2071
- (n, { source: o, target: a, value: r }) => o === e ? { ...n, [Oe(a)]: r } : { ...n, [Oe(o)]: r },
2072
- { [Oe(e)]: e.value }
2070
+ nodes: n.reduce(
2071
+ (t, { source: o, target: a, value: r }) => o === e ? { ...t, [Ie(a)]: r } : { ...t, [Ie(o)]: r },
2072
+ { [Ie(e)]: e.value }
2073
2073
  ),
2074
- links: t.map(({ id: n }) => n)
2074
+ links: n.map(({ id: t }) => t)
2075
2075
  };
2076
2076
  }
2077
2077
  return {
2078
2078
  nodes: {
2079
- [Oe(e.target)]: e.value,
2080
- [Oe(e.source)]: e.source.value
2079
+ [Ie(e.target)]: e.value,
2080
+ [Ie(e.source)]: e.source.value
2081
2081
  },
2082
2082
  links: [e.id]
2083
2083
  };
2084
2084
  };
2085
- function Ca(e, t, n) {
2086
- const o = G(null), a = v(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
2085
+ function Fa(e, n, t) {
2086
+ const o = R(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2087
2087
  o.value,
2088
- n.value
2089
- ) : t.value.highlightedElements === "closest" ? Pa(o.value, n.value) : Va(o.value, n.value) : { nodes: {}, links: [] });
2088
+ t.value
2089
+ ) : n.value.highlightedElements === "closest" ? Pa(o.value, t.value) : Va(o.value, t.value) : { nodes: {}, links: [] });
2090
2090
  return X(a, (r, l) => {
2091
2091
  if (r.links.length === 0 && Object.keys(r.nodes).length === 0) {
2092
2092
  e.value.forEach((i) => {
@@ -2094,7 +2094,7 @@ function Ca(e, t, n) {
2094
2094
  i,
2095
2095
  l.nodes[i.node.id],
2096
2096
  i.node.value,
2097
- t.value.withTransition,
2097
+ n.value.withTransition,
2098
2098
  !0
2099
2099
  );
2100
2100
  });
@@ -2105,12 +2105,12 @@ function Ca(e, t, n) {
2105
2105
  i,
2106
2106
  i.node.value,
2107
2107
  r.nodes[i.node.id],
2108
- t.value.withTransition
2108
+ n.value.withTransition
2109
2109
  );
2110
2110
  });
2111
2111
  }), { highlightedElements: a, hoveredElement: o };
2112
2112
  }
2113
- const Fa = {
2113
+ const Ca = {
2114
2114
  class: "lume-alluvial-group",
2115
2115
  "data-j-alluvial-group": ""
2116
2116
  }, za = { key: 0 }, Wa = { key: 0 }, Za = ["id", "x1", "x2"], Ua = ["stop-color"], Xa = ["stop-color"], Ya = ["d", "stroke-width", "onClick", "onMouseover"], Ka = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Ja = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Qa = ["x", "y", "height", "width"], qa = ["transform", "data-id", "width"], el = /* @__PURE__ */ Z({
@@ -2123,8 +2123,8 @@ const Fa = {
2123
2123
  }
2124
2124
  },
2125
2125
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2126
- setup(e, { emit: t }) {
2127
- const n = e, o = t, a = Ce("chartID"), { data: r, options: l } = ee(n), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: u } = Oa(n.containerSize), { columns: m, graph: y } = Sa(r, l, f), { hoveredElement: p, highlightedElements: b } = Ca(
2126
+ setup(e, { emit: n }) {
2127
+ const t = e, o = n, a = Fe("chartID"), { data: r, options: l } = te(t), i = R([]), c = R([]), s = R(null), { extents: f, updateExtents: u } = Oa(t.containerSize), { columns: m, graph: y } = Ga(r, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
2128
2128
  i,
2129
2129
  l,
2130
2130
  y
@@ -2134,98 +2134,98 @@ const Fa = {
2134
2134
  (k) => k[0].x0 + l.value.nodeWidth / 2
2135
2135
  ) : []), O = v(() => {
2136
2136
  if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
2137
- return l.value.nodeHeaders.slice(0, g.value.length).map((k, E) => ({
2137
+ return l.value.nodeHeaders.slice(0, g.value.length).map((k, x) => ({
2138
2138
  label: k,
2139
- x: g.value[E]
2139
+ x: g.value[x]
2140
2140
  }));
2141
2141
  }), N = v(
2142
2142
  () => l.value.nodeHeaderPadding ?? va
2143
2143
  ), D = v(() => {
2144
2144
  if (!(!l.value.gradient || !y.value))
2145
- return y.value.links.reduce((k, E) => {
2146
- const { source: h, target: R } = E, F = h.color || h.fallbackColor, le = R.deriveColorFromIncomingLinks ? F : R.color || R.fallbackColor;
2147
- return k[E.id] = {
2148
- source: F,
2145
+ return y.value.links.reduce((k, x) => {
2146
+ const { source: h, target: M } = x, z = h.color || h.fallbackColor, le = M.deriveColorFromIncomingLinks ? z : M.color || M.fallbackColor;
2147
+ return k[x.id] = {
2148
+ source: z,
2149
2149
  target: le,
2150
2150
  x1: h.x1,
2151
- x2: R.x0
2151
+ x2: M.x0
2152
2152
  }, k;
2153
2153
  }, {});
2154
2154
  }), P = v(() => {
2155
2155
  const k = i.value.filter(
2156
- (h) => C(h)
2157
- ), E = [];
2156
+ (h) => Q(h)
2157
+ ), x = [];
2158
2158
  return k.forEach((h) => {
2159
- const R = [];
2160
- c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le, Ee, Ze) => {
2159
+ const M = [];
2160
+ c.value.filter(({ link: z }) => z.target.id === h.node.id).reverse().reduce((z, le, Ee, Ze) => {
2161
2161
  const Ue = le.link.target.y1 - le.link.target.y0 > He;
2162
- let Ne, De, $e;
2163
- return Ue ? (Ne = le.link.target.y1 - le.link.target.y0, De = le.link.value / h.node.value, $e = De * Ne) : $e = He / Ze.length, R.push({
2162
+ let Ne, De, Oe;
2163
+ return Ue ? (Ne = le.link.target.y1 - le.link.target.y0, De = le.link.value / h.node.value, Oe = De * Ne) : Oe = He / Ze.length, M.push({
2164
2164
  x: h.x,
2165
- y: h.y + F,
2166
- height: $e,
2165
+ y: h.y + z,
2166
+ height: Oe,
2167
2167
  width: h.width,
2168
2168
  key: `node-block-${h.node.id}-source-link-${le.link.source.id}`,
2169
- class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Se}`
2170
- }), F + $e;
2171
- }, 0), E.push({
2169
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ge}`
2170
+ }), z + Oe;
2171
+ }, 0), x.push({
2172
2172
  id: h.node.id,
2173
- subNodes: R
2173
+ subNodes: M
2174
2174
  });
2175
- }), E;
2175
+ }), x;
2176
2176
  });
2177
- function w(k) {
2177
+ function G(k) {
2178
2178
  return l.value.gradient && `url('#${a}_${k.id}')`;
2179
2179
  }
2180
- function B(k) {
2180
+ function E(k) {
2181
2181
  return L.value.length > 0 && !L.value.includes(k.toString());
2182
2182
  }
2183
- function U(k) {
2183
+ function K(k) {
2184
2184
  return L.value.length > 0 && L.value.includes(k.toString());
2185
2185
  }
2186
- function K(k) {
2186
+ function U(k) {
2187
2187
  return b.value.links.length > 0 && !b.value.links.includes(k);
2188
2188
  }
2189
- function J(k) {
2189
+ function F(k) {
2190
2190
  return b.value.links.length > 0 && b.value.links.includes(k);
2191
2191
  }
2192
- function C(k) {
2192
+ function Q(k) {
2193
2193
  return !k.node.color && k.node.deriveColorFromIncomingLinks;
2194
2194
  }
2195
- function ae(k, E) {
2196
- k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
2195
+ function J(k, x) {
2196
+ k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: x }));
2197
2197
  }
2198
- function we(k) {
2199
- const E = p.value;
2200
- p.value = null, o("link-mouseleave", { link: E, event: k });
2198
+ function se(k) {
2199
+ const x = p.value;
2200
+ p.value = null, o("link-mouseleave", { link: x, event: k });
2201
2201
  }
2202
- function fe(k) {
2202
+ function pe(k) {
2203
2203
  if (k == null) {
2204
2204
  p.value = null;
2205
2205
  return;
2206
2206
  }
2207
- const E = wa(k, y.value) || Ea(k, y.value);
2208
- if (!E) {
2209
- ge(ve.InvalidHoveredElement);
2207
+ const x = xa(k, y.value) || Ea(k, y.value);
2208
+ if (!x) {
2209
+ ye(me.InvalidHoveredElement);
2210
2210
  return;
2211
2211
  }
2212
- p.value = E;
2212
+ p.value = x;
2213
2213
  }
2214
- function Te(k) {
2215
- var E;
2216
- return ((E = P.value.find(({ id: h }) => k === h)) == null ? void 0 : E.subNodes) ?? [];
2214
+ function Le(k) {
2215
+ var x;
2216
+ return ((x = P.value.find(({ id: h }) => k === h)) == null ? void 0 : x.subNodes) ?? [];
2217
2217
  }
2218
- function Le() {
2218
+ function $e() {
2219
2219
  const k = Na(y.value, s.value);
2220
2220
  u(k);
2221
2221
  }
2222
2222
  return X(y, (k) => {
2223
- i.value = Da(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && n.hoveredElementId != null && fe(n.hoveredElementId);
2224
- }), X([n.containerSize, s], () => {
2225
- n.containerSize.width && n.containerSize.height && Le();
2226
- }), X(() => n.hoveredElementId, fe), (k, E) => (_(), I("g", Fa, [
2223
+ i.value = Da(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && t.hoveredElementId != null && pe(t.hoveredElementId);
2224
+ }), X([t.containerSize, s], () => {
2225
+ t.containerSize.width && t.containerSize.height && $e();
2226
+ }), X(() => t.hoveredElementId, pe), (k, x) => (_(), I("g", Ca, [
2227
2227
  O.value ? (_(), I("g", za, [
2228
- (_(!0), I(Q, null, W(O.value, (h, R) => M(k.$slots, `node-header-${R}`, {
2228
+ (_(!0), I(q, null, W(O.value, (h, M) => B(k.$slots, `node-header-${M}`, {
2229
2229
  x: h.x,
2230
2230
  y: -N.value
2231
2231
  }, () => [
@@ -2235,20 +2235,20 @@ const Fa = {
2235
2235
  y: -N.value
2236
2236
  }, {
2237
2237
  default: V(() => [
2238
- se(ne(h.label), 1)
2238
+ ce(oe(h.label), 1)
2239
2239
  ]),
2240
2240
  _: 2
2241
2241
  }, 1032, ["x", "y"]))
2242
2242
  ], !0)), 256))
2243
- ])) : z("", !0),
2243
+ ])) : C("", !0),
2244
2244
  S("g", {
2245
2245
  class: "lume-alluvial-link-group",
2246
- onMouseleave: we
2246
+ onMouseleave: se
2247
2247
  }, [
2248
2248
  d(l).gradient ? (_(), I("defs", Wa, [
2249
- (_(!0), I(Q, null, W(D.value, (h, R) => (_(), I("linearGradient", {
2250
- id: `${d(a)}_${R}`,
2251
- key: R,
2249
+ (_(!0), I(q, null, W(D.value, (h, M) => (_(), I("linearGradient", {
2250
+ id: `${d(a)}_${M}`,
2251
+ key: M,
2252
2252
  gradientUnits: "userSpaceOnUse",
2253
2253
  x1: h.x1,
2254
2254
  x2: h.x2
@@ -2262,60 +2262,60 @@ const Fa = {
2262
2262
  "stop-color": `var(--lume-color--${h.target})`
2263
2263
  }, null, 8, Xa)
2264
2264
  ], 8, Za))), 128))
2265
- ])) : z("", !0),
2266
- (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2265
+ ])) : C("", !0),
2266
+ (_(!0), I(q, null, W(c.value, (h) => (_(), I("path", {
2267
2267
  key: `link-ghost_${h.id}`,
2268
- class: te(["lume-alluvial-group__link", [
2268
+ class: ne(["lume-alluvial-group__link", [
2269
2269
  "lume-stroke--transparent",
2270
2270
  "lume-alluvial-group__link--ghost"
2271
2271
  ]]),
2272
2272
  d: h.d,
2273
2273
  "stroke-width": h.strokeWidth + d(da),
2274
2274
  "data-j-alluvial-ghost": "",
2275
- onClick: (R) => o("link-click", { link: h.link, event: R }),
2276
- onMouseover: (R) => ae(h.link, R)
2275
+ onClick: (M) => o("link-click", { link: h.link, event: M }),
2276
+ onMouseover: (M) => J(h.link, M)
2277
2277
  }, null, 40, Ya))), 128)),
2278
- (_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
2278
+ (_(!0), I(q, null, W(c.value, (h) => (_(), I("path", {
2279
2279
  key: `link_${h.id}`,
2280
- class: te(["lume-alluvial-group__link", {
2280
+ class: ne(["lume-alluvial-group__link", {
2281
2281
  [`lume-stroke--${h.color}`]: !d(l).gradient && h.color,
2282
- "lume-alluvial-group__link--faded": K(h.id),
2283
- "lume-alluvial-group__link--focused": J(h.id)
2282
+ "lume-alluvial-group__link--faded": U(h.id),
2283
+ "lume-alluvial-group__link--focused": F(h.id)
2284
2284
  }]),
2285
2285
  d: h.d,
2286
- stroke: w(h.link),
2286
+ stroke: G(h.link),
2287
2287
  "stroke-dasharray": k.containerSize.width,
2288
2288
  "stroke-dashoffset": k.containerSize.width,
2289
2289
  "stroke-width": h.strokeWidth,
2290
2290
  "data-j-alluvial-path": "",
2291
2291
  "data-id": h.id,
2292
- onClick: (R) => o("link-click", { link: h.link, event: R }),
2293
- onMouseover: (R) => ae(h.link, R)
2292
+ onClick: (M) => o("link-click", { link: h.link, event: M }),
2293
+ onMouseover: (M) => J(h.link, M)
2294
2294
  }, null, 42, Ka))), 128))
2295
2295
  ], 32),
2296
- (_(!0), I(Q, null, W(i.value, (h, R) => (_(), I("g", {
2297
- key: `node-block_${R}`,
2298
- class: te(["lume-alluvial-group__node", {
2299
- "lume-alluvial-group__node--faded": B(h.node.id),
2300
- "lume-alluvial-group__node--focused": U(h.node.id)
2296
+ (_(!0), I(q, null, W(i.value, (h, M) => (_(), I("g", {
2297
+ key: `node-block_${M}`,
2298
+ class: ne(["lume-alluvial-group__node", {
2299
+ "lume-alluvial-group__node--faded": E(h.node.id),
2300
+ "lume-alluvial-group__node--focused": K(h.node.id)
2301
2301
  }]),
2302
2302
  "data-j-alluvial-group__node-block": ""
2303
2303
  }, [
2304
2304
  S("g", {
2305
- onClick: (F) => o("node-click", { node: h.node, event: F }),
2306
- onMouseenter: (F) => o("node-mouseenter", { node: h.node, event: F }),
2307
- onMouseleave: (F) => o("node-mouseleave", { node: h.node, event: F }),
2308
- onMouseover: (F) => p.value = h.node,
2309
- onMouseout: E[0] || (E[0] = (F) => p.value = null)
2305
+ onClick: (z) => o("node-click", { node: h.node, event: z }),
2306
+ onMouseenter: (z) => o("node-mouseenter", { node: h.node, event: z }),
2307
+ onMouseleave: (z) => o("node-mouseleave", { node: h.node, event: z }),
2308
+ onMouseover: (z) => p.value = h.node,
2309
+ onMouseout: x[0] || (x[0] = (z) => p.value = null)
2310
2310
  }, [
2311
- C(h) ? (_(!0), I(Q, { key: 0 }, W(Te(
2311
+ Q(h) ? (_(!0), I(q, { key: 0 }, W(Le(
2312
2312
  h.node.id
2313
- ), (F) => (_(), I("rect", j(F, {
2314
- key: F.key,
2313
+ ), (z) => (_(), I("rect", j(z, {
2314
+ key: z.key,
2315
2315
  "data-j-alluvial-sub-nodes": ""
2316
2316
  }), null, 16))), 128)) : (_(), I("rect", {
2317
2317
  key: 1,
2318
- class: te(["lume-alluvial-group__node-block", `lume-fill--${h.node.color || h.node.fallbackColor}`]),
2318
+ class: ne(["lume-alluvial-group__node-block", `lume-fill--${h.node.color || h.node.fallbackColor}`]),
2319
2319
  x: h.x,
2320
2320
  y: h.y,
2321
2321
  height: h.height,
@@ -2325,14 +2325,14 @@ const Fa = {
2325
2325
  ref_for: !0,
2326
2326
  ref_key: "nodeTextRefs",
2327
2327
  ref: s,
2328
- class: te(["lume-alluvial-group__node-text lume-typography--caption", {
2328
+ class: ne(["lume-alluvial-group__node-text lume-typography--caption", {
2329
2329
  "lume-alluvial-group__node-text--left": h.node.depth === 0
2330
2330
  }]),
2331
2331
  transform: `translate(${h.textTransform.x},${h.textTransform.y})`,
2332
2332
  "data-id": h.node.id,
2333
2333
  width: d(l).nodeLabelMaxWidth
2334
2334
  }, [
2335
- M(k.$slots, `node-text-${h.node.id}`, {
2335
+ B(k.$slots, `node-text-${h.node.id}`, {
2336
2336
  node: h.node,
2337
2337
  value: $.value(
2338
2338
  h.node.transitionValue || h.node.value,
@@ -2343,10 +2343,10 @@ const Fa = {
2343
2343
  bottom: d(l).switchText,
2344
2344
  left: h.node.depth === 0,
2345
2345
  "max-width": d(l).nodeLabelMaxWidth,
2346
- "onLume__internal-NodeResize": Le
2346
+ "onLume__internal-NodeResize": $e
2347
2347
  }, {
2348
2348
  default: V(() => [
2349
- se(ne(h.node.label), 1)
2349
+ ce(oe(h.node.label), 1)
2350
2350
  ]),
2351
2351
  _: 2
2352
2352
  }, 1032, ["bottom", "left", "max-width"]),
@@ -2354,7 +2354,7 @@ const Fa = {
2354
2354
  bottom: !d(l).switchText
2355
2355
  }, {
2356
2356
  default: V(() => [
2357
- se(ne($.value(
2357
+ ce(oe($.value(
2358
2358
  h.node.transitionValue || h.node.value,
2359
2359
  h.node.value
2360
2360
  )), 1)
@@ -2367,7 +2367,7 @@ const Fa = {
2367
2367
  ], 2))), 128))
2368
2368
  ]));
2369
2369
  }
2370
- }), tl = /* @__PURE__ */ q(el, [["__scopeId", "data-v-2a790ee0"]]), nl = {
2370
+ }), tl = /* @__PURE__ */ ee(el, [["__scopeId", "data-v-2a790ee0"]]), nl = {
2371
2371
  margins: {
2372
2372
  top: 0,
2373
2373
  right: 0,
@@ -2386,13 +2386,13 @@ const Fa = {
2386
2386
  nodeAlign: fn,
2387
2387
  valueFormat: (e) => String(e),
2388
2388
  iterations: 6
2389
- }, Wl = /* @__PURE__ */ Z({
2389
+ }, Zl = /* @__PURE__ */ Z({
2390
2390
  __name: "lume-alluvial-diagram",
2391
2391
  props: {
2392
2392
  ...fo(st)
2393
2393
  },
2394
- setup(e, { emit: t }) {
2395
- const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), r = Hn(re()), { options: l } = ee(n), { allOptions: i } = me(l, nl);
2394
+ setup(e, { emit: n }) {
2395
+ const t = e, { componentEventPropagator: o } = ke(), a = Te(re()), r = Hn(re()), { options: l } = te(t), { allOptions: i } = fe(l, nl);
2396
2396
  function c(s) {
2397
2397
  return {
2398
2398
  ...s,
@@ -2400,16 +2400,16 @@ const Fa = {
2400
2400
  // Alluvial chart never uses base scales
2401
2401
  };
2402
2402
  }
2403
- return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2403
+ return (s, f) => (_(), Y(d(xe), j({ ...t, ...s.$attrs }, {
2404
2404
  options: c(d(i)),
2405
2405
  "data-j-alluvial-diagram": ""
2406
- }, oe(d(o))), ce({
2406
+ }, ae(d(o))), de({
2407
2407
  groups: V((u) => [
2408
- ue(d(tl), j(u, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
2408
+ ue(d(tl), j(u, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2409
2409
  W(d(r), (m, y) => ({
2410
2410
  name: y,
2411
2411
  fn: V((p) => [
2412
- M(s.$slots, y, pe(he(p || {})))
2412
+ B(s.$slots, y, he(ge(p || {})))
2413
2413
  ])
2414
2414
  }))
2415
2415
  ]), 1040, ["hovered-element-id"])
@@ -2419,35 +2419,35 @@ const Fa = {
2419
2419
  W(d(a), (u, m) => ({
2420
2420
  name: m,
2421
2421
  fn: V((y) => [
2422
- M(s.$slots, m, pe(he(y || {})))
2422
+ B(s.$slots, m, he(ge(y || {})))
2423
2423
  ])
2424
2424
  }))
2425
2425
  ]), 1040, ["options"]));
2426
2426
  }
2427
2427
  });
2428
2428
  var nn = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(nn || {});
2429
- const Zl = /* @__PURE__ */ Z({
2429
+ const Ul = /* @__PURE__ */ Z({
2430
2430
  __name: "lume-bar-chart",
2431
2431
  props: {
2432
- ...Ie(),
2432
+ ...we(),
2433
2433
  type: {
2434
2434
  type: String,
2435
2435
  default: null,
2436
2436
  validator: (e) => e in nn || e == null
2437
2437
  }
2438
2438
  },
2439
- setup(e, { emit: t }) {
2440
- const n = Je(
2441
- () => import("./B79GZzqk.js")
2439
+ setup(e, { emit: n }) {
2440
+ const t = Je(
2441
+ () => import("./BkqRLrZG.js")
2442
2442
  ), o = Je(
2443
- () => import("./B-J6h1cQ.js")
2443
+ () => import("./BeJM7XD3.js")
2444
2444
  ), a = Je(
2445
- () => import("./DpwoykqR.js")
2445
+ () => import("./BFctvs0x.js")
2446
2446
  ), r = /* @__PURE__ */ new Map([
2447
- ["single", n],
2447
+ ["single", t],
2448
2448
  ["grouped", o],
2449
2449
  ["stacked", a]
2450
- ]), l = e, { componentEventPropagator: i } = _e(), c = Ae(re());
2450
+ ]), l = e, { componentEventPropagator: i } = ke(), c = Te(re());
2451
2451
  function s(u) {
2452
2452
  return {
2453
2453
  ...u,
@@ -2467,18 +2467,18 @@ const Zl = /* @__PURE__ */ Z({
2467
2467
  });
2468
2468
  return (u, m) => (_(), Y(dn(f.value), j({ ...l, ...u.$attrs }, {
2469
2469
  options: s(u.options)
2470
- }, oe(d(i))), ce({ _: 2 }, [
2470
+ }, ae(d(i))), de({ _: 2 }, [
2471
2471
  W(d(c), (y, p) => ({
2472
2472
  name: p,
2473
2473
  fn: V((b) => [
2474
- M(u.$slots, p, pe(he(b || {})))
2474
+ B(u.$slots, p, he(ge(b || {})))
2475
2475
  ])
2476
2476
  }))
2477
2477
  ]), 1040, ["options"]));
2478
2478
  }
2479
2479
  });
2480
2480
  function ol(e) {
2481
- return Object.values(Gn).includes(e) || e == null;
2481
+ return Object.values(Sn).includes(e) || e == null;
2482
2482
  }
2483
2483
  function al(e) {
2484
2484
  return Object.values(H).includes(e);
@@ -2497,14 +2497,14 @@ const ll = (e = !1) => ({
2497
2497
  }
2498
2498
  } : {}
2499
2499
  });
2500
- function on(e, t) {
2501
- const n = v(() => e.value.map((a) => {
2500
+ function on(e, n) {
2501
+ const t = v(() => e.value.map((a) => {
2502
2502
  var r;
2503
2503
  return {
2504
2504
  ...a,
2505
2505
  values: ct(
2506
2506
  a.values,
2507
- ((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) ?? 0
2507
+ ((r = n == null ? void 0 : n.value) == null ? void 0 : r.length) ?? 0
2508
2508
  ).map((l) => ({
2509
2509
  ...l,
2510
2510
  value: (l == null ? void 0 : l.value) || 0
@@ -2512,23 +2512,23 @@ function on(e, t) {
2512
2512
  };
2513
2513
  })), o = v(() => {
2514
2514
  var a;
2515
- return (a = n.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
2515
+ return (a = t.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
2516
2516
  r[c] ? r[c].push(i) : r[c] = [i];
2517
2517
  }), r), []);
2518
2518
  });
2519
- return { multiBarData: n, groupedData: o };
2519
+ return { multiBarData: t, groupedData: o };
2520
2520
  }
2521
- function rl(e, t) {
2522
- return e.value.length === 1 ? "single" : t.value;
2521
+ function rl(e, n) {
2522
+ return e.value.length === 1 ? "single" : n.value;
2523
2523
  }
2524
- function ul(e, t, n) {
2524
+ function ul(e, n, t) {
2525
2525
  const o = v(
2526
- () => n.value === H.HORIZONTAL
2526
+ () => t.value === H.HORIZONTAL
2527
2527
  );
2528
2528
  function a(i) {
2529
2529
  i || rt(Pe.BarScaleNull), Math.min(...i.domain()) > 0 && rt(Pe.BarScaleDomainAbove0);
2530
2530
  }
2531
- const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? t.value : (a(t.value), t.value));
2531
+ const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? n.value : (a(n.value), n.value));
2532
2532
  return { barXScale: r, barYScale: l };
2533
2533
  }
2534
2534
  const il = {
@@ -2537,23 +2537,23 @@ const il = {
2537
2537
  width: 0,
2538
2538
  height: 0
2539
2539
  };
2540
- function sl(e, t, n, o, a, r) {
2540
+ function sl(e, n, t, o, a, r) {
2541
2541
  const l = v(
2542
2542
  () => o.value === H.HORIZONTAL
2543
2543
  );
2544
2544
  function i(u, m) {
2545
2545
  let y, p;
2546
- return l.value ? (y = u >= 0 ? t.value(0) : t.value(u), p = n.value(n.value.domain()[m])) : (y = t.value(t.value.domain()[m]), p = u < 0 ? n.value(0) : n.value(u)), { x: y, y: p };
2546
+ return l.value ? (y = u >= 0 ? n.value(0) : n.value(u), p = t.value(t.value.domain()[m])) : (y = n.value(n.value.domain()[m]), p = u < 0 ? t.value(0) : t.value(u)), { x: y, y: p };
2547
2547
  }
2548
2548
  function c(u) {
2549
- return l.value ? u < 0 ? t.value(0) - t.value(u) : t.value(u) - t.value(0) : t.value.bandwidth();
2549
+ return l.value ? u < 0 ? n.value(0) - n.value(u) : n.value(u) - n.value(0) : n.value.bandwidth();
2550
2550
  }
2551
2551
  function s(u) {
2552
- return l.value ? n.value.bandwidth() : u < 0 ? n.value(u) - n.value(0) : n.value(0) - n.value(u);
2552
+ return l.value ? t.value.bandwidth() : u < 0 ? t.value(u) - t.value(0) : t.value(0) - t.value(u);
2553
2553
  }
2554
2554
  function f(u, m, y) {
2555
- if (!(t.value && n.value)) return il;
2556
- const { value: b, color: $ } = u, L = $ ?? e.value[m].color ?? Se, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
2555
+ if (!(n.value && t.value)) return il;
2556
+ const { value: b, color: $ } = u, L = $ ?? e.value[m].color ?? Ge, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
2557
2557
  return {
2558
2558
  classList: [`lume-fill--${L}`, ...r],
2559
2559
  x: g,
@@ -2572,47 +2572,47 @@ const cl = {
2572
2572
  width: 0,
2573
2573
  height: 0
2574
2574
  };
2575
- function dl(e, t, n, o, a, r) {
2575
+ function dl(e, n, t, o, a, r) {
2576
2576
  const l = v(
2577
2577
  () => o.value === H.HORIZONTAL
2578
- ), i = v(() => Me().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0)), c = v(() => Me().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0));
2578
+ ), i = v(() => Me().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), c = v(() => Me().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
2579
2579
  function s(p, b, $) {
2580
2580
  if (l.value)
2581
- return p >= 0 ? t.value(0) : t.value(p);
2582
- const L = t.value.domain();
2583
- return t.value(L[b]) + i.value($);
2581
+ return p >= 0 ? n.value(0) : n.value(p);
2582
+ const L = n.value.domain();
2583
+ return n.value(L[b]) + i.value($);
2584
2584
  }
2585
2585
  function f(p, b, $) {
2586
2586
  if (l.value) {
2587
- const L = n.value.domain();
2588
- return n.value(L[b]) + c.value($);
2587
+ const L = t.value.domain();
2588
+ return t.value(L[b]) + c.value($);
2589
2589
  }
2590
- return p < 0 ? n.value(0) : n.value(p);
2590
+ return p < 0 ? t.value(0) : t.value(p);
2591
2591
  }
2592
2592
  function u(p) {
2593
- return l.value ? p < 0 ? t.value(0) - t.value(p) : t.value(p) - t.value(0) : i.value.bandwidth();
2593
+ return l.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2594
2594
  }
2595
2595
  function m(p) {
2596
- return l.value ? c.value.bandwidth() : p < 0 ? n.value(p) - n.value(0) : n.value(0) - n.value(p);
2596
+ return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2597
2597
  }
2598
2598
  function y(p, b, $) {
2599
- if (!(t.value && n.value)) return cl;
2600
- const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = f(g, $, b), w = u(g), B = m(g);
2599
+ if (!(n.value && t.value)) return cl;
2600
+ const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = f(g, $, b), G = u(g), E = m(g);
2601
2601
  return {
2602
2602
  classList: [`lume-fill--${N}`, ...r],
2603
2603
  x: D,
2604
2604
  y: P,
2605
- width: w,
2606
- height: B,
2605
+ width: G,
2606
+ height: E,
2607
2607
  isFaded: a.value !== -1 && a.value !== $,
2608
2608
  isNegative: g < 0
2609
2609
  };
2610
2610
  }
2611
2611
  return { barAttributeGenerator: y };
2612
2612
  }
2613
- function vl(e, t, n) {
2613
+ function vl(e, n, t) {
2614
2614
  const o = v(
2615
- () => t.value === H.HORIZONTAL
2615
+ () => n.value === H.HORIZONTAL
2616
2616
  ), a = v(() => {
2617
2617
  const c = e.value.map(
2618
2618
  (s) => s.filter((f) => f.value < 0).reduce((f, u) => f + u.value, 0)
@@ -2631,8 +2631,8 @@ function vl(e, t, n) {
2631
2631
  return s.length ? o.value ? Be().domain([a.value, r.value]).range([0, f.width]) : Object.assign(
2632
2632
  Et(
2633
2633
  Me().domain(s.map((u, m) => m)).range([0, f.width]),
2634
- t.value,
2635
- n.value
2634
+ n.value,
2635
+ t.value
2636
2636
  ),
2637
2637
  { labels: s }
2638
2638
  ) : null;
@@ -2641,37 +2641,37 @@ function vl(e, t, n) {
2641
2641
  return s.length ? o.value ? Object.assign(
2642
2642
  Et(
2643
2643
  Me().domain(s.map((u, m) => m)).range([0, f.height]),
2644
- t.value,
2645
- n.value
2644
+ n.value,
2645
+ t.value
2646
2646
  ),
2647
2647
  { labels: s }
2648
2648
  ) : Be().domain([r.value, a.value]).range([0, f.height]) : null;
2649
2649
  }
2650
2650
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2651
2651
  }
2652
- function ml(e, t, n, o, a, r) {
2652
+ function ml(e, n, t, o, a, r) {
2653
2653
  const l = v(
2654
2654
  () => o.value === H.HORIZONTAL
2655
2655
  ), i = v(
2656
- () => l.value ? n.value.domain() : t.value.domain()
2656
+ () => l.value ? t.value.domain() : n.value.domain()
2657
2657
  ), c = v(
2658
2658
  () => e.value.map((L) => L.values.map((g) => g == null ? void 0 : g.value))
2659
2659
  );
2660
2660
  function s(L, g, O) {
2661
2661
  let N, D;
2662
- return l.value ? (N = t.value(L >= 0 ? 0 + O : L + O), D = n.value(i.value[g])) : (N = t.value(i.value[g]), D = n.value(L >= 0 ? L + O : 0 + O)), { x: N, y: D };
2662
+ return l.value ? (N = n.value(L >= 0 ? 0 + O : L + O), D = t.value(i.value[g])) : (N = n.value(i.value[g]), D = t.value(L >= 0 ? L + O : 0 + O)), { x: N, y: D };
2663
2663
  }
2664
2664
  function f(L) {
2665
- return l.value ? t.value(L) - t.value(0) : t.value.bandwidth();
2665
+ return l.value ? n.value(L) - n.value(0) : n.value.bandwidth();
2666
2666
  }
2667
2667
  function u(L) {
2668
- return l.value ? t.value(0) - t.value(L) : t.value.bandwidth();
2668
+ return l.value ? n.value(0) - n.value(L) : n.value.bandwidth();
2669
2669
  }
2670
2670
  function m(L) {
2671
- return l.value ? n.value.bandwidth() : n.value(0) - n.value(L);
2671
+ return l.value ? t.value.bandwidth() : t.value(0) - t.value(L);
2672
2672
  }
2673
2673
  function y(L) {
2674
- return l.value ? n.value.bandwidth() : n.value(L) - n.value(0);
2674
+ return l.value ? t.value.bandwidth() : t.value(L) - t.value(0);
2675
2675
  }
2676
2676
  function p(L, g) {
2677
2677
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] >= 0 && (O += N[g]), O), 0) : 0;
@@ -2680,13 +2680,13 @@ function ml(e, t, n, o, a, r) {
2680
2680
  return L ? c.value.reduce((O, N, D) => (D < L && N[g] < 0 && (O += N[g]), O), 0) : 0;
2681
2681
  }
2682
2682
  function $(L, g, O) {
2683
- const { value: N, color: D } = L, P = N >= 0 ? f(N) : u(N), w = N >= 0 ? m(N) : y(N), B = N >= 0 ? p(g, O) : b(g, O), { x: U, y: K } = s(N, O, B);
2683
+ const { value: N, color: D } = L, P = N >= 0 ? f(N) : u(N), G = N >= 0 ? m(N) : y(N), E = N >= 0 ? p(g, O) : b(g, O), { x: K, y: U } = s(N, O, E);
2684
2684
  return {
2685
2685
  classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...r],
2686
2686
  width: P,
2687
- height: w,
2688
- x: U,
2689
- y: K,
2687
+ height: G,
2688
+ x: K,
2689
+ y: U,
2690
2690
  isFaded: a.value !== -1 && a.value !== O,
2691
2691
  isNegative: N < 0
2692
2692
  };
@@ -2715,8 +2715,8 @@ const fl = {
2715
2715
  }
2716
2716
  },
2717
2717
  emits: ["bar-click", "lume__internal--hover"],
2718
- setup(e, { emit: t }) {
2719
- const n = e, o = t, {
2718
+ setup(e, { emit: n }) {
2719
+ const t = e, o = n, {
2720
2720
  data: a,
2721
2721
  hoveredIndex: r,
2722
2722
  orientation: l,
@@ -2726,9 +2726,9 @@ const fl = {
2726
2726
  yScale: f,
2727
2727
  classList: u,
2728
2728
  labels: m
2729
- } = ee(n);
2730
- Ce("chartID");
2731
- const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a, m), { barXScale: b, barYScale: $ } = ul(s, f, l), L = v(() => typeof u.value == "string" ? [u.value] : u.value), g = v(() => {
2729
+ } = te(t);
2730
+ Fe("chartID");
2731
+ const { emitInternalEvent: y } = ke(), { groupedData: p } = on(a, m), { barXScale: b, barYScale: $ } = ul(s, f, l), L = v(() => typeof u.value == "string" ? [u.value] : u.value), g = v(() => {
2732
2732
  const D = rl(a, c), { barAttributeGenerator: P } = hl[D](
2733
2733
  a,
2734
2734
  b,
@@ -2746,18 +2746,18 @@ const fl = {
2746
2746
  o("lume__internal--hover", D), y("lume__internal--hover", D);
2747
2747
  }
2748
2748
  return (D, P) => (_(), I("g", fl, [
2749
- (_(!0), I(Q, null, W(d(p), (w, B) => (_(), I("g", {
2750
- key: B,
2751
- onMouseenter: (U) => N(B)
2749
+ (_(!0), I(q, null, W(d(p), (G, E) => (_(), I("g", {
2750
+ key: E,
2751
+ onMouseenter: (K) => N(E)
2752
2752
  }, [
2753
- (_(!0), I(Q, null, W(w, (U, K) => (_(), Y(d(dt), j(g.value(U, K, B, w), {
2754
- key: `bar-${K}`,
2753
+ (_(!0), I(q, null, W(G, (K, U) => (_(), Y(d(dt), j(g.value(K, U, E, G), {
2754
+ key: `bar-${U}`,
2755
2755
  transition: O.value,
2756
2756
  "data-j-lume-bar": "",
2757
- onClick: (J) => o("bar-click", {
2758
- index: B,
2759
- datasetIndex: K,
2760
- event: J
2757
+ onClick: (F) => o("bar-click", {
2758
+ index: E,
2759
+ datasetIndex: U,
2760
+ event: F
2761
2761
  })
2762
2762
  }), null, 16, ["transition", "onClick"]))), 128))
2763
2763
  ], 40, pl))), 128))
@@ -2768,38 +2768,38 @@ const fl = {
2768
2768
  withTooltip: !0,
2769
2769
  xAxisOptions: {},
2770
2770
  yAxisOptions: { gridLines: !0 },
2771
- margins: be.VERTICAL
2771
+ margins: Ae.VERTICAL
2772
2772
  },
2773
2773
  [H.HORIZONTAL]: {
2774
2774
  withTooltip: !0,
2775
2775
  xAxisOptions: { gridLines: !0 },
2776
2776
  yAxisOptions: { gridLines: !1 },
2777
- margins: be.HORIZONTAL
2777
+ margins: Ae.HORIZONTAL
2778
2778
  }
2779
- }, Ul = /* @__PURE__ */ Z({
2779
+ }, Xl = /* @__PURE__ */ Z({
2780
2780
  __name: "lume-single-bar-chart",
2781
2781
  props: {
2782
- ...Ie(st)
2782
+ ...we(st)
2783
2783
  },
2784
- setup(e, { emit: t }) {
2785
- const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
2784
+ setup(e, { emit: n }) {
2785
+ const t = e, { componentEventPropagator: o } = ke(), a = Te(re()), { orientation: r, options: l } = te(t), i = v(
2786
2786
  () => gl[r.value || H.VERTICAL]
2787
2787
  // needs to be computed so that default options are reactive
2788
- ), { allOptions: c } = me(l, i);
2789
- return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2788
+ ), { allOptions: c } = fe(l, i);
2789
+ return (s, f) => (_(), Y(d(xe), j({ ...t, ...s.$attrs }, {
2790
2790
  "chart-type": "single-bar",
2791
2791
  options: d(c),
2792
2792
  "data-j-single-bar-chart": ""
2793
- }, oe(d(o))), ce({
2793
+ }, ae(d(o))), de({
2794
2794
  groups: V((u) => [
2795
- ue(d(yt), j(u, { orientation: d(r) }, oe(d(o))), null, 16, ["orientation"])
2795
+ ue(d(yt), j(u, { orientation: d(r) }, ae(d(o))), null, 16, ["orientation"])
2796
2796
  ]),
2797
2797
  _: 2
2798
2798
  }, [
2799
2799
  W(d(a), (u, m) => ({
2800
2800
  name: m,
2801
2801
  fn: V((y) => [
2802
- M(s.$slots, m, pe(he(y || {})))
2802
+ B(s.$slots, m, he(ge(y || {})))
2803
2803
  ])
2804
2804
  }))
2805
2805
  ]), 1040, ["options"]));
@@ -2809,42 +2809,42 @@ const fl = {
2809
2809
  withTooltip: !0,
2810
2810
  xAxisOptions: {},
2811
2811
  yAxisOptions: { gridLines: !0 },
2812
- margins: be.VERTICAL
2812
+ margins: Ae.VERTICAL
2813
2813
  },
2814
2814
  [H.HORIZONTAL]: {
2815
2815
  withTooltip: !0,
2816
2816
  xAxisOptions: { gridLines: !0 },
2817
2817
  yAxisOptions: { gridLines: !1 },
2818
- margins: be.HORIZONTAL,
2818
+ margins: Ae.HORIZONTAL,
2819
2819
  tooltipOptions: { position: "right" }
2820
2820
  }
2821
- }, Xl = /* @__PURE__ */ Z({
2821
+ }, Yl = /* @__PURE__ */ Z({
2822
2822
  __name: "lume-grouped-bar-chart",
2823
2823
  props: {
2824
- ...Ie()
2824
+ ...we()
2825
2825
  },
2826
- setup(e, { emit: t }) {
2827
- const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
2826
+ setup(e, { emit: n }) {
2827
+ const t = e, { componentEventPropagator: o } = ke(), a = Te(re()), { orientation: r, options: l } = te(t), i = v(
2828
2828
  () => yl[r.value || H.VERTICAL]
2829
2829
  // needs to be computed so that default options are reactive
2830
- ), { allOptions: c } = me(
2830
+ ), { allOptions: c } = fe(
2831
2831
  l,
2832
2832
  i
2833
2833
  );
2834
- return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
2834
+ return (s, f) => (_(), Y(d(xe), j({ ...t, ...s.$attrs }, {
2835
2835
  "chart-type": "grouped-bar",
2836
2836
  options: d(c),
2837
2837
  "data-j-grouped-bar-chart": ""
2838
- }, oe(d(o))), ce({
2838
+ }, ae(d(o))), de({
2839
2839
  groups: V((u) => [
2840
- ue(d(yt), j(u, { type: "grouped" }, oe(d(o))), null, 16)
2840
+ ue(d(yt), j(u, { type: "grouped" }, ae(d(o))), null, 16)
2841
2841
  ]),
2842
2842
  _: 2
2843
2843
  }, [
2844
2844
  W(d(a), (u, m) => ({
2845
2845
  name: m,
2846
2846
  fn: V((y) => [
2847
- M(s.$slots, m, pe(he(y || {})))
2847
+ B(s.$slots, m, he(ge(y || {})))
2848
2848
  ])
2849
2849
  }))
2850
2850
  ]), 1040, ["options"]));
@@ -2854,49 +2854,49 @@ const fl = {
2854
2854
  withTooltip: !0,
2855
2855
  xAxisOptions: {},
2856
2856
  yAxisOptions: { gridLines: !0 },
2857
- margins: be.VERTICAL,
2857
+ margins: Ae.VERTICAL,
2858
2858
  tooltipOptions: { inverse: !0 }
2859
2859
  },
2860
2860
  [H.HORIZONTAL]: {
2861
2861
  withTooltip: !0,
2862
2862
  xAxisOptions: { gridLines: !0 },
2863
2863
  yAxisOptions: { gridLines: !1 },
2864
- margins: be.HORIZONTAL,
2864
+ margins: Ae.HORIZONTAL,
2865
2865
  tooltipOptions: { position: "right" }
2866
2866
  }
2867
- }, Yl = /* @__PURE__ */ Z({
2867
+ }, Kl = /* @__PURE__ */ Z({
2868
2868
  __name: "lume-stacked-bar-chart",
2869
2869
  props: {
2870
- ...Ie()
2870
+ ...we()
2871
2871
  },
2872
- setup(e, { emit: t }) {
2873
- const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { data: r, orientation: l, options: i, labels: c } = ee(n), s = v(
2872
+ setup(e, { emit: n }) {
2873
+ const t = e, { componentEventPropagator: o } = ke(), a = Te(re()), { data: r, orientation: l, options: i, labels: c } = te(t), s = v(
2874
2874
  () => _l[l.value || H.VERTICAL]
2875
2875
  // needs to be computed so that default options are reactive
2876
- ), { allOptions: f } = me(
2876
+ ), { allOptions: f } = fe(
2877
2877
  i,
2878
2878
  s
2879
2879
  ), { internalData: u } = ht(r), { groupedData: m } = on(u, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = vl(
2880
2880
  m,
2881
2881
  l,
2882
2882
  i
2883
- ), b = v(() => n.xScale || y), $ = v(() => n.yScale || p);
2884
- return (L, g) => (_(), Y(d(xe), j({ ...n, ...L.$attrs }, {
2883
+ ), b = v(() => t.xScale || y), $ = v(() => t.yScale || p);
2884
+ return (L, g) => (_(), Y(d(xe), j({ ...t, ...L.$attrs }, {
2885
2885
  "chart-type": "stacked-bar",
2886
2886
  options: d(f),
2887
2887
  "x-scale": b.value,
2888
2888
  "y-scale": $.value,
2889
2889
  "data-j-stacked-bar-chart": ""
2890
- }, oe(d(o))), ce({
2890
+ }, ae(d(o))), de({
2891
2891
  groups: V((O) => [
2892
- ue(d(yt), j(O, { type: "stacked" }, oe(d(o))), null, 16)
2892
+ ue(d(yt), j(O, { type: "stacked" }, ae(d(o))), null, 16)
2893
2893
  ]),
2894
2894
  _: 2
2895
2895
  }, [
2896
2896
  W(d(a), (O, N) => ({
2897
2897
  name: N,
2898
2898
  fn: V((D) => [
2899
- M(L.$slots, N, pe(he(D || {})))
2899
+ B(L.$slots, N, he(ge(D || {})))
2900
2900
  ])
2901
2901
  }))
2902
2902
  ]), 1040, ["options", "x-scale", "y-scale"]));
@@ -2934,12 +2934,12 @@ const fl = {
2934
2934
  }
2935
2935
  },
2936
2936
  emits: ["click"],
2937
- setup(e, { emit: t }) {
2938
- const n = t, o = G(null);
2939
- return ye(() => ze(o.value)), (a, r) => (_(), I("path", {
2937
+ setup(e, { emit: n }) {
2938
+ const t = n, o = R(null);
2939
+ return _e(() => ze(o.value)), (a, r) => (_(), I("path", {
2940
2940
  ref_key: "root",
2941
2941
  ref: o,
2942
- class: te(["lume-line", {
2942
+ class: ne(["lume-line", {
2943
2943
  [`lume-stroke--${e.color}`]: !0,
2944
2944
  "lume-line--dashed": e.dashed,
2945
2945
  "lume-line--transition": e.transition
@@ -2951,49 +2951,45 @@ const fl = {
2951
2951
  animationDuration: e.transition && e.animationDuration + "s"
2952
2952
  }),
2953
2953
  "data-j-line": "",
2954
- onClick: r[0] || (r[0] = (l) => n("click", l))
2954
+ onClick: r[0] || (r[0] = (l) => t("click", l))
2955
2955
  }, null, 14, kl));
2956
2956
  }
2957
- }), Tl = /* @__PURE__ */ q(Al, [["__scopeId", "data-v-59449838"]]), Ll = ["cx", "cy", "r", "stroke-width"], $l = 4, Ol = /* @__PURE__ */ Z({
2957
+ }), Tl = /* @__PURE__ */ ee(Al, [["__scopeId", "data-v-59449838"]]), Ll = ["cx", "cy", "r", "stroke-width"], $l = 4, Ol = 3, Il = /* @__PURE__ */ Z({
2958
2958
  __name: "lume-point",
2959
2959
  props: {
2960
- x: { type: Number, required: !0 },
2961
- y: { type: Number, required: !0 },
2962
- color: {
2963
- type: String,
2964
- default: ie.Skyblue
2965
- },
2966
- radius: {
2967
- type: Number,
2968
- default: $l
2969
- },
2970
- active: {
2971
- type: Boolean,
2972
- default: !1
2973
- }
2960
+ x: {},
2961
+ y: {},
2962
+ color: { default: ie.Skyblue },
2963
+ radius: { default: $l },
2964
+ active: { type: Boolean, default: !1 },
2965
+ visible: { type: Boolean, default: !1 }
2974
2966
  },
2975
2967
  emits: ["click"],
2976
- setup(e, { emit: t }) {
2977
- const n = e, o = t, a = G(null), r = v(() => n.radius / 2);
2978
- return ye(() => ze(a.value)), (l, i) => (_(), I("circle", {
2968
+ setup(e, { emit: n }) {
2969
+ const t = e, o = n, a = R(null), r = v(() => t.radius / 2), l = v(() => t.active ? t.radius : t.visible ? Ol : 0);
2970
+ return _e(() => ze(a.value)), (i, c) => (_(), I("circle", {
2979
2971
  ref_key: "root",
2980
2972
  ref: a,
2981
- class: te(["lume-point", `lume-stroke--${e.color}`]),
2982
- cx: e.x,
2983
- cy: e.y,
2984
- r: e.active ? e.radius : 0,
2973
+ class: ne(["lume-point", {
2974
+ [`lume-stroke--${i.color}`]: !0,
2975
+ "lume-point--active": i.active,
2976
+ [`lume-point--visible lume-fill--${i.color}`]: i.visible
2977
+ }]),
2978
+ cx: i.x,
2979
+ cy: i.y,
2980
+ r: l.value,
2985
2981
  "stroke-width": r.value,
2986
2982
  "data-j-point": "",
2987
- onClick: i[0] || (i[0] = (c) => o("click", c))
2983
+ onClick: c[0] || (c[0] = (s) => o("click", s))
2988
2984
  }, null, 10, Ll));
2989
2985
  }
2990
- }), Il = /* @__PURE__ */ q(Ol, [["__scopeId", "data-v-436fef87"]]);
2986
+ }), wl = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-080270c0"]]);
2991
2987
  function an(e) {
2992
- function t(r) {
2988
+ function n(r) {
2993
2989
  let l = null;
2994
2990
  return r == null ? void 0 : r.reduce((i, c, s) => (c == null || c.value == null ? (l ? l.push(s) : l = [s], s === (r == null ? void 0 : r.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
2995
2991
  }
2996
- function n(r, l, i, c) {
2992
+ function t(r, l, i, c) {
2997
2993
  const u = Math.abs(r - l) / (i + 1) * (c + 1);
2998
2994
  return r == null && l == null ? null : r > l ? r - u : r + u;
2999
2995
  }
@@ -3004,60 +3000,63 @@ function an(e) {
3004
3000
  );
3005
3001
  };
3006
3002
  }
3007
- return { computedLineData: v(() => e.value.map((r) => {
3008
- const l = t(r.values);
3009
- return {
3010
- ...r,
3011
- isDashed: o(l),
3012
- values: r.values.map((i, c) => {
3013
- var f, u;
3014
- const s = l.find(
3015
- (m) => m.includes(c)
3016
- );
3017
- if (s) {
3018
- const m = s[0] - 1, y = s[s.length - 1] + 1;
3019
- let p = (f = r.values[m]) == null ? void 0 : f.value, b = (u = r.values[y]) == null ? void 0 : u.value;
3020
- return p == null && (p = b), b == null && (b = p), {
3021
- value: n(
3022
- p,
3023
- b,
3024
- s.length,
3025
- s.indexOf(c)
3026
- ),
3027
- label: Zt
3028
- };
3029
- }
3030
- return i;
3031
- })
3032
- };
3033
- })) };
3003
+ return { computedLineData: v(
3004
+ () => e.value.map((r) => {
3005
+ const l = n(r.values);
3006
+ return {
3007
+ ...r,
3008
+ isDashed: o(l),
3009
+ values: r.values.map((i, c) => {
3010
+ var f, u;
3011
+ const s = l.find(
3012
+ (m) => m.includes(c)
3013
+ );
3014
+ if (s) {
3015
+ const m = s[0] - 1, y = s[s.length - 1] + 1;
3016
+ let p = (f = r.values[m]) == null ? void 0 : f.value, b = (u = r.values[y]) == null ? void 0 : u.value;
3017
+ return p == null && (p = b), b == null && (b = p), {
3018
+ value: t(
3019
+ p,
3020
+ b,
3021
+ s.length,
3022
+ s.indexOf(c)
3023
+ ),
3024
+ label: Zt,
3025
+ isNull: !0
3026
+ };
3027
+ }
3028
+ return i;
3029
+ })
3030
+ };
3031
+ })
3032
+ ) };
3034
3033
  }
3035
- function xl(e, t) {
3036
- const n = e.bandwidth() / 2;
3037
- return (o, a) => e(e.domain()[t + (a - 1)]) + n;
3034
+ function xl(e, n) {
3035
+ const t = e.bandwidth() / 2;
3036
+ return (o, a) => e(e.domain()[n + (a - 1)]) + t;
3038
3037
  }
3039
- function wl(e, t) {
3040
- return (n, o) => e(t + (o - 1));
3038
+ function El(e, n) {
3039
+ return (t, o) => e(n + (o - 1));
3041
3040
  }
3042
- function El(e, t, n, o) {
3041
+ function Nl(e, n, t, o) {
3043
3042
  const a = yn().x(
3044
- de(n) ? xl(n, e) : wl(n, e)
3043
+ ve(t) ? xl(t, e) : El(t, e)
3045
3044
  ).y((r) => o(r));
3046
- return t.every((r) => r == null) ? null : a(t);
3045
+ return n.every((r) => r == null) ? null : a(n);
3047
3046
  }
3048
- const Nl = {
3047
+ const Dl = {
3049
3048
  class: "lume-line-group",
3050
3049
  "data-j-lume-line-group": ""
3051
- }, Dl = { class: "lume-line-group__lines" }, Hl = {
3050
+ }, Hl = { class: "lume-line-group__lines" }, Bl = {
3052
3051
  key: 0,
3053
3052
  class: "lume-line-group__points",
3054
3053
  "data-j-lume-line-group__points": ""
3055
- }, Bl = 1, Ml = /* @__PURE__ */ Z({
3054
+ }, Ml = 1, Rl = /* @__PURE__ */ Z({
3056
3055
  __name: "lume-line-group",
3057
3056
  props: {
3058
3057
  ...We(),
3059
3058
  withPoints: {
3060
- type: Boolean,
3059
+ type: [Boolean, String],
3061
3060
  default: !0
3062
3061
  },
3063
3062
  transition: {
@@ -3066,8 +3065,8 @@ const Nl = {
3066
3065
  }
3067
3066
  },
3068
3067
  emits: ["line-click", "point-click", "lume__internal--hover"],
3069
- setup(e, { emit: t }) {
3070
- const n = e, o = t, { data: a, options: r, xScale: l, yScale: i, labels: c } = ee(n), s = Ce(
3068
+ setup(e, { emit: n }) {
3069
+ const t = e, o = n, { data: a, options: r, xScale: l, yScale: i, labels: c } = te(t), s = Fe(
3071
3070
  "tooltipAnchorAttributes",
3072
3071
  null
3073
3072
  ), { updateTooltipAnchorAttributes: f } = en(
@@ -3077,128 +3076,134 @@ const Nl = {
3077
3076
  i,
3078
3077
  c
3079
3078
  ), u = v(() => {
3080
- if (a.value.every((B) => B.isDashed))
3079
+ if (a.value.every((K) => K.isDashed))
3081
3080
  return a.value;
3082
- const { computedLineData: w } = an(a);
3083
- return r.value.withTooltip !== !1 && (s != null && s.value) && f(w.value), w.value;
3081
+ const { computedLineData: E } = an(a);
3082
+ return r.value.withTooltip !== !1 && (s != null && s.value) && f(E.value), E.value;
3084
3083
  }), m = v(() => {
3085
- if (n.hoveredIndex === -1) return;
3086
- const w = wn(
3084
+ if (t.hoveredIndex === -1) return;
3085
+ const E = xn(
3087
3086
  u.value,
3088
- n.hoveredIndex
3087
+ t.hoveredIndex
3089
3088
  );
3090
3089
  return {
3091
- d: `M ${tt(l.value, n.hoveredIndex)},${i.value.range()[1]}
3092
- V ${i.value(w)}`
3090
+ d: `M ${tt(l.value, t.hoveredIndex)},${i.value.range()[1]}
3091
+ V ${i.value(E)}`
3093
3092
  // Move to X index, Vertical line to the highest point
3094
3093
  };
3095
3094
  }), y = v(
3096
- () => l.value && Bl / (En(l.value) - 1)
3095
+ () => l.value && Ml / (En(l.value) - 1)
3097
3096
  // Subtracting the first line (read below)
3098
3097
  ), p = v(
3099
3098
  () => {
3100
- var w;
3101
- return ((w = r.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3099
+ var E;
3100
+ return ((E = r.value) == null ? void 0 : E.lineWidth) * 2 || void 0;
3102
3101
  }
3103
3102
  // If no `lineWidth`, returns NaN which needs to be undefined
3104
3103
  ), b = v(
3105
3104
  () => l.value.bandwidth() / 2
3106
3105
  ), $ = v(() => l.value.domain()), L = v(
3107
- () => r.value.withPoints ?? n.withPoints
3106
+ () => r.value.withPoints ?? t.withPoints
3107
+ ), g = v(
3108
+ () => r.value.withPoints === "visible" || t.withPoints === "visible"
3108
3109
  );
3109
- function g(w) {
3110
- return u.value[w].values;
3111
- }
3112
- function O(w, B) {
3113
- var K, J;
3114
- const U = w === 0 ? [] : [
3115
- (K = g(B)[w - 1]) == null ? void 0 : K.value,
3116
- (J = g(B)[w]) == null ? void 0 : J.value
3110
+ function O(E) {
3111
+ return u.value[E].values;
3112
+ }
3113
+ function N(E, K) {
3114
+ var F, Q;
3115
+ const U = E === 0 ? [] : [
3116
+ (F = O(K)[E - 1]) == null ? void 0 : F.value,
3117
+ (Q = O(K)[E]) == null ? void 0 : Q.value
3117
3118
  ];
3118
- return El(
3119
- w,
3119
+ return Nl(
3120
+ E,
3120
3121
  U,
3121
3122
  l.value,
3122
3123
  i.value
3123
3124
  ) || "";
3124
3125
  }
3125
- function N(w) {
3126
+ function D(E) {
3126
3127
  return {
3127
- animationDelay: w < 2 ? 0 : (w - 1) * y.value,
3128
+ animationDelay: E < 2 ? 0 : (E - 1) * y.value,
3128
3129
  animationDuration: y.value
3129
3130
  };
3130
3131
  }
3131
- function D(w, B) {
3132
- var K;
3133
- const U = (K = g(B)[w]) == null ? void 0 : K.value;
3132
+ function P(E, K) {
3133
+ var F;
3134
+ const U = (F = O(K)[E]) == null ? void 0 : F.value;
3134
3135
  return {
3135
- x: de(l.value) ? n.xScale($.value[w]) + b.value : n.xScale(w),
3136
+ x: ve(l.value) ? t.xScale($.value[E]) + b.value : t.xScale(E),
3136
3137
  y: U === null ? i.value(i.value.domain()[1]) : i.value(U)
3137
3138
  };
3138
3139
  }
3139
- function P(w) {
3140
- return n.hoveredIndex === w;
3140
+ function G(E) {
3141
+ return t.hoveredIndex === E;
3141
3142
  }
3142
- return (w, B) => (_(), I("g", Nl, [
3143
+ return (E, K) => (_(), I("g", Dl, [
3143
3144
  S("path", j(m.value, {
3144
3145
  class: "lume-line-group__overlay-line",
3145
3146
  "data-j-lume-line-group__overlay-line": ""
3146
3147
  }), null, 16),
3147
- (_(!0), I(Q, null, W(u.value, (U, K) => (_(), I("g", {
3148
+ (_(!0), I(q, null, W(u.value, (U, F) => (_(), I("g", {
3148
3149
  key: U.label,
3149
3150
  class: "lume-line-group__group"
3150
3151
  }, [
3151
- S("g", Dl, [
3152
- (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Tl), j(N(C), {
3153
- key: `line-${C}`,
3152
+ S("g", Hl, [
3153
+ (_(!0), I(q, null, W(U.values, (Q, J) => (_(), Y(d(Tl), j(D(J), {
3154
+ key: `line-${J}`,
3154
3155
  color: U.color,
3155
- dashed: U.isDashed(C),
3156
- "path-definition": O(C, K),
3156
+ dashed: U.isDashed(J),
3157
+ "path-definition": N(J, F),
3157
3158
  transition: e.transition,
3158
3159
  width: d(r).lineWidth,
3159
- onClick: (ae) => o("line-click", { index: C, datasetIndex: K, event: ae })
3160
+ onClick: (se) => o("line-click", { index: J, datasetIndex: F, event: se })
3160
3161
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3161
3162
  ]),
3162
- L.value ? (_(), I("g", Hl, [
3163
- (_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Il), j(D(C, K), {
3164
- key: `point-${C}`,
3165
- active: P(C),
3166
- color: U.color,
3167
- index: C,
3168
- radius: p.value,
3169
- onClick: (ae) => o("point-click", { index: C, datasetIndex: K, event: ae })
3170
- }), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
3171
- ])) : z("", !0)
3163
+ L.value ? (_(), I("g", Bl, [
3164
+ (_(!0), I(q, null, W(U.values, (Q, J) => (_(), I(q, {
3165
+ key: `point-${J}`
3166
+ }, [
3167
+ Q.isNull ? C("", !0) : (_(), Y(d(wl), j({ key: 0 }, P(J, F), {
3168
+ active: G(J),
3169
+ color: U.color,
3170
+ index: J,
3171
+ radius: p.value,
3172
+ visible: g.value,
3173
+ onClick: (se) => o("point-click", { index: J, datasetIndex: F, event: se })
3174
+ }), null, 16, ["active", "color", "index", "radius", "visible", "onClick"]))
3175
+ ], 64))), 128))
3176
+ ])) : C("", !0)
3172
3177
  ]))), 128))
3173
3178
  ]));
3174
3179
  }
3175
- }), ln = /* @__PURE__ */ q(Ml, [["__scopeId", "data-v-23492507"]]), Rl = {
3176
- margins: be.VERTICAL,
3180
+ }), ln = /* @__PURE__ */ ee(Rl, [["__scopeId", "data-v-1eb6df01"]]), Sl = {
3181
+ margins: Ae.VERTICAL,
3177
3182
  startOnZero: !0,
3178
3183
  withTooltip: !0,
3179
3184
  xAxisOptions: {},
3180
3185
  yAxisOptions: { gridLines: !0 }
3181
- }, Kl = /* @__PURE__ */ Z({
3186
+ }, Jl = /* @__PURE__ */ Z({
3182
3187
  __name: "lume-line-chart",
3183
3188
  props: {
3184
- ...Ie(null, !1)
3189
+ ...we(null, !1)
3185
3190
  },
3186
- setup(e, { emit: t }) {
3187
- const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { options: r } = ee(n), { allOptions: l } = me(r, Rl);
3188
- return (i, c) => (_(), Y(d(xe), j({ ...n, ...i.$attrs }, {
3191
+ setup(e, { emit: n }) {
3192
+ const t = e, { componentEventPropagator: o } = ke(), a = Te(re()), { options: r } = te(t), { allOptions: l } = fe(r, Sl);
3193
+ return (i, c) => (_(), Y(d(xe), j({ ...t, ...i.$attrs }, {
3189
3194
  "chart-type": "line",
3190
3195
  options: d(l),
3191
3196
  "data-j-lume-line-chart": ""
3192
- }, oe(d(o))), ce({
3197
+ }, ae(d(o))), de({
3193
3198
  groups: V((s) => [
3194
- ue(d(ln), j(s, oe(d(o))), null, 16)
3199
+ ue(d(ln), j(s, ae(d(o))), null, 16)
3195
3200
  ]),
3196
3201
  _: 2
3197
3202
  }, [
3198
3203
  W(d(a), (s, f) => ({
3199
3204
  name: f,
3200
3205
  fn: V((u) => [
3201
- M(i.$slots, f, pe(he(u || {})))
3206
+ B(i.$slots, f, he(ge(u || {})))
3202
3207
  ])
3203
3208
  }))
3204
3209
  ]), 1040, ["options"]));
@@ -3206,15 +3211,15 @@ const Nl = {
3206
3211
  });
3207
3212
  function Gl(e) {
3208
3213
  return { areaPathDefinition: v(
3209
- () => function(n, o) {
3210
- if (!n || !o || de(n) || de(o))
3214
+ () => function(t, o) {
3215
+ if (!t || !o || ve(t) || ve(o))
3211
3216
  return;
3212
3217
  const a = e.value[0].values;
3213
- return _n().x((r, l) => n(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
3218
+ return _n().x((r, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
3214
3219
  }
3215
3220
  ) };
3216
3221
  }
3217
- const Sl = {
3222
+ const jl = {
3218
3223
  margins: {
3219
3224
  top: 0,
3220
3225
  right: 0,
@@ -3228,14 +3233,14 @@ const Sl = {
3228
3233
  tooltipOptions: {
3229
3234
  showTitle: !1
3230
3235
  }
3231
- }, jl = ["d"], Vl = /* @__PURE__ */ Z({
3236
+ }, Vl = ["d"], Pl = /* @__PURE__ */ Z({
3232
3237
  __name: "lume-sparkline-chart",
3233
3238
  props: {
3234
3239
  ...pt(null),
3235
3240
  ...Re()
3236
3241
  },
3237
- setup(e, { expose: t, emit: n }) {
3238
- const o = e, { componentEventPropagator: a } = _e(), r = Ae(re()), { data: l, options: i } = ee(o), { internalData: c } = ht(l), { allOptions: s } = me(i, Sl), { computedLineData: f } = an(c), { areaPathDefinition: u } = Gl(f), m = v(() => {
3242
+ setup(e, { expose: n, emit: t }) {
3243
+ const o = e, { componentEventPropagator: a } = ke(), r = Te(re()), { data: l, options: i } = te(o), { internalData: c } = ht(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = an(c), { areaPathDefinition: u } = Gl(f), m = v(() => {
3239
3244
  var $, L;
3240
3245
  return (L = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : L.color;
3241
3246
  }), y = v(
@@ -3254,17 +3259,17 @@ const Sl = {
3254
3259
  if ($.length)
3255
3260
  return Be().range([0, g.width]).domain([0, $[0].values.length - 1]);
3256
3261
  }
3257
- return t({
3262
+ return n({
3258
3263
  areaPathDefinition: u
3259
3264
  }), ($, L) => (_(), Y(d(xe), j(o, {
3260
3265
  "chart-type": "line",
3261
3266
  options: p(d(s)),
3262
3267
  "x-scale": b
3263
- }, oe(d(a))), ce({
3268
+ }, ae(d(a))), de({
3264
3269
  groups: V((g) => [
3265
3270
  d(s).showArea ? (_(), I("path", {
3266
3271
  key: 0,
3267
- class: te([
3272
+ class: ne([
3268
3273
  "sparkline-chart__area",
3269
3274
  d(i).withTransition !== !1 ? "sparkline-chart__area--transition" : "",
3270
3275
  `lume-fill--${y.value || m.value}`,
@@ -3272,32 +3277,32 @@ const Sl = {
3272
3277
  ]),
3273
3278
  d: d(u)(g.xScale, g.yScale),
3274
3279
  "data-j-sparkline__area": ""
3275
- }, null, 10, jl)) : z("", !0),
3276
- ue(d(ln), j(g, { "with-points": !1 }, oe(d(a))), null, 16)
3280
+ }, null, 10, Vl)) : C("", !0),
3281
+ ue(d(ln), j(g, { "with-points": !1 }, ae(d(a))), null, 16)
3277
3282
  ]),
3278
3283
  _: 2
3279
3284
  }, [
3280
3285
  W(d(r), (g, O) => ({
3281
3286
  name: O,
3282
3287
  fn: V((N) => [
3283
- M($.$slots, O, pe(he(N || {})), void 0, !0)
3288
+ B($.$slots, O, he(ge(N || {})), void 0, !0)
3284
3289
  ])
3285
3290
  }))
3286
3291
  ]), 1040, ["options"]));
3287
3292
  }
3288
- }), Jl = /* @__PURE__ */ q(Vl, [["__scopeId", "data-v-579f7e32"]]);
3293
+ }), Ql = /* @__PURE__ */ ee(Pl, [["__scopeId", "data-v-579f7e32"]]);
3289
3294
  export {
3290
3295
  Wo as A,
3291
3296
  Zo as B,
3292
3297
  Re as C,
3293
- me as D,
3298
+ fe as D,
3294
3299
  gt as E,
3295
- Ie as F,
3300
+ we as F,
3296
3301
  fo as G,
3297
3302
  po as H,
3298
3303
  vo as I,
3299
3304
  mo as J,
3300
- wt as K,
3305
+ xt as K,
3301
3306
  xe as L,
3302
3307
  tt as M,
3303
3308
  Et as N,
@@ -3309,24 +3314,24 @@ export {
3309
3314
  vt as T,
3310
3315
  mt as U,
3311
3316
  ft as V,
3312
- ke as W,
3313
- Wl as _,
3314
- Zl as a,
3315
- Ul as b,
3316
- Xl as c,
3317
- Yl as d,
3318
- Kl as e,
3317
+ be as W,
3318
+ Zl as _,
3319
+ Ul as a,
3320
+ Xl as b,
3321
+ Yl as c,
3322
+ Kl as d,
3323
+ Jl as e,
3319
3324
  Lt as f,
3320
3325
  _o as g,
3321
3326
  Nt as h,
3322
- Co as i,
3327
+ Fo as i,
3323
3328
  Mo as j,
3324
3329
  Eo as k,
3325
- Jl as l,
3330
+ Ql as l,
3326
3331
  $o as m,
3327
3332
  dt as n,
3328
3333
  Tl as o,
3329
- Il as p,
3334
+ wl as p,
3330
3335
  tl as q,
3331
3336
  ga as r,
3332
3337
  ka as s,
@@ -3338,4 +3343,4 @@ export {
3338
3343
  ht as y,
3339
3344
  an as z
3340
3345
  };
3341
- //# sourceMappingURL=BfKxCes1.js.map
3346
+ //# sourceMappingURL=CDiQ5aDd.js.map