@graphysdk/react 1.9.0-beta.1793880532798 → 1.9.0-beta.1793904611666

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.
@@ -182,7 +182,7 @@ var bD = [
182
182
  } catch {
183
183
  return e;
184
184
  }
185
- }, zT = (e) => wl(e) ? e.stops.every((t) => qa(t.color)) : Ta(e) ? e.background !== void 0 && qa(e.color) && qa(e.background) : fm(e) ? qa(e.fallback) : qa(e), qa = (e) => {
185
+ }, zT = (e) => wl(e) ? e.stops.every((t) => Xa(t.color)) : Ta(e) ? e.background !== void 0 && Xa(e.color) && Xa(e.background) : fm(e) ? Xa(e.fallback) : Xa(e), Xa = (e) => {
186
186
  try {
187
187
  return En(Xi(e))[3] >= 1;
188
188
  } catch {
@@ -375,7 +375,7 @@ var FD = {
375
375
  nextWeek: "eeee 'at' p",
376
376
  other: "P"
377
377
  }, WD = (e, t, r, n) => $D[e];
378
- function Qa(e) {
378
+ function qa(e) {
379
379
  return (t, r) => {
380
380
  const n = r?.context ? String(r.context) : "standalone";
381
381
  let i;
@@ -568,31 +568,31 @@ var UD = {
568
568
  return r + "th";
569
569
  }, QD = {
570
570
  ordinalNumber: qD,
571
- era: Qa({
571
+ era: qa({
572
572
  values: UD,
573
573
  defaultWidth: "wide"
574
574
  }),
575
- quarter: Qa({
575
+ quarter: qa({
576
576
  values: jD,
577
577
  defaultWidth: "wide",
578
578
  argumentCallback: (e) => e - 1
579
579
  }),
580
- month: Qa({
580
+ month: qa({
581
581
  values: zD,
582
582
  defaultWidth: "wide"
583
583
  }),
584
- day: Qa({
584
+ day: qa({
585
585
  values: YD,
586
586
  defaultWidth: "wide"
587
587
  }),
588
- dayPeriod: Qa({
588
+ dayPeriod: qa({
589
589
  values: KD,
590
590
  defaultWidth: "wide",
591
591
  formattingValues: XD,
592
592
  defaultFormattingWidth: "wide"
593
593
  })
594
594
  };
595
- function Za(e) {
595
+ function Qa(e) {
596
596
  return (t, r = {}) => {
597
597
  const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
598
598
  if (!o) return null;
@@ -715,32 +715,32 @@ var tO = /^(\d+)(th|st|nd|rd)?/i, rO = /\d+/i, nO = {
715
715
  parsePattern: rO,
716
716
  valueCallback: (e) => parseInt(e, 10)
717
717
  }),
718
- era: Za({
718
+ era: Qa({
719
719
  matchPatterns: nO,
720
720
  defaultMatchWidth: "wide",
721
721
  parsePatterns: iO,
722
722
  defaultParseWidth: "any"
723
723
  }),
724
- quarter: Za({
724
+ quarter: Qa({
725
725
  matchPatterns: oO,
726
726
  defaultMatchWidth: "wide",
727
727
  parsePatterns: aO,
728
728
  defaultParseWidth: "any",
729
729
  valueCallback: (e) => e + 1
730
730
  }),
731
- month: Za({
731
+ month: Qa({
732
732
  matchPatterns: sO,
733
733
  defaultMatchWidth: "wide",
734
734
  parsePatterns: lO,
735
735
  defaultParseWidth: "any"
736
736
  }),
737
- day: Za({
737
+ day: Qa({
738
738
  matchPatterns: cO,
739
739
  defaultMatchWidth: "wide",
740
740
  parsePatterns: uO,
741
741
  defaultParseWidth: "any"
742
742
  }),
743
- dayPeriod: Za({
743
+ dayPeriod: Qa({
744
744
  matchPatterns: dO,
745
745
  defaultMatchWidth: "any",
746
746
  parsePatterns: hO,
@@ -2660,16 +2660,16 @@ function Ea(e) {
2660
2660
  var ed = (e) => {
2661
2661
  const t = X(e.mapping.x);
2662
2662
  return t !== null && t !== Zn.x ? t : d1(e) ?? xe.group;
2663
- }, l1 = (e) => $N(e) ? X(e.mapping.y) : null, c1 = (e) => l1(e) === null ? null : Ea(e), u1 = (e) => e.spatialKind !== "cells" && ed(e) !== d1(e), d1 = (e) => typeof e.identityKey == "object" ? e.identityKey.variable : null, $N = (e) => e.spatialKind === "points" || e.spatialKind === "cells", If = (e, t) => e.yScaleType === t.yScaleType && Rf(e.valueFormat) === Rf(t.valueFormat), Vy = (e) => `${e.yScaleType} y axis, ${Rf(e.valueFormat)}`, Rf = (e) => e.type === "currency" ? `${e.type}:${e.iso}` : e.type, h1 = typeof global == "object" && global && global.Object === Object && global, WN = typeof self == "object" && self && self.Object === Object && self, fn = h1 || WN || Function("return this")(), cn = fn.Symbol, f1 = Object.prototype, UN = f1.hasOwnProperty, jN = f1.toString, Ja = cn ? cn.toStringTag : void 0;
2663
+ }, l1 = (e) => $N(e) ? X(e.mapping.y) : null, c1 = (e) => l1(e) === null ? null : Ea(e), u1 = (e) => e.spatialKind !== "cells" && ed(e) !== d1(e), d1 = (e) => typeof e.identityKey == "object" ? e.identityKey.variable : null, $N = (e) => e.spatialKind === "points" || e.spatialKind === "cells", If = (e, t) => e.yScaleType === t.yScaleType && Rf(e.valueFormat) === Rf(t.valueFormat), Vy = (e) => `${e.yScaleType} y axis, ${Rf(e.valueFormat)}`, Rf = (e) => e.type === "currency" ? `${e.type}:${e.iso}` : e.type, h1 = typeof global == "object" && global && global.Object === Object && global, WN = typeof self == "object" && self && self.Object === Object && self, fn = h1 || WN || Function("return this")(), cn = fn.Symbol, f1 = Object.prototype, UN = f1.hasOwnProperty, jN = f1.toString, Za = cn ? cn.toStringTag : void 0;
2664
2664
  function zN(e) {
2665
- var t = UN.call(e, Ja), r = e[Ja];
2665
+ var t = UN.call(e, Za), r = e[Za];
2666
2666
  try {
2667
- e[Ja] = void 0;
2667
+ e[Za] = void 0;
2668
2668
  var n = !0;
2669
2669
  } catch {
2670
2670
  }
2671
2671
  var i = jN.call(e);
2672
- return n && (t ? e[Ja] = r : delete e[Ja]), i;
2672
+ return n && (t ? e[Za] = r : delete e[Za]), i;
2673
2673
  }
2674
2674
  var YN = Object.prototype.toString;
2675
2675
  function KN(e) {
@@ -3380,11 +3380,11 @@ function cH(e, t, r, n, i, o) {
3380
3380
  }
3381
3381
  return o.delete(e), o.delete(t), f;
3382
3382
  }
3383
- var uH = 1, h0 = "[object Arguments]", f0 = "[object Array]", ic = "[object Object]", p0 = Object.prototype.hasOwnProperty;
3383
+ var uH = 1, h0 = "[object Arguments]", f0 = "[object Array]", oc = "[object Object]", p0 = Object.prototype.hasOwnProperty;
3384
3384
  function dH(e, t, r, n, i, o) {
3385
3385
  var a = kr(e), s = kr(t), l = a ? f0 : u0(e), c = s ? f0 : u0(t);
3386
- l = l == h0 ? ic : l, c = c == h0 ? ic : c;
3387
- var u = l == ic, d = c == ic, h = l == c;
3386
+ l = l == h0 ? oc : l, c = c == h0 ? oc : c;
3387
+ var u = l == oc, d = c == oc, h = l == c;
3388
3388
  if (h && su(e)) {
3389
3389
  if (!su(t)) return !1;
3390
3390
  a = !0, u = !1;
@@ -3500,7 +3500,7 @@ function AH(e, t) {
3500
3500
  }
3501
3501
  var TH = uV(function(e, t) {
3502
3502
  return e == null ? {} : AH(e, t);
3503
- }), ka = "en-GB", Im = class extends Error {
3503
+ }), Cl = "en-US", Im = class extends Error {
3504
3504
  constructor(e) {
3505
3505
  super(e.message, e.cause !== void 0 ? { cause: e.cause } : void 0), this.name = new.target.name, this.code = e.code, this.context = e.context, this.suggestion = e.suggestion;
3506
3506
  }
@@ -3515,9 +3515,9 @@ var TH = uV(function(e, t) {
3515
3515
  code: e.code ?? "INTERNAL_INVARIANT"
3516
3516
  }), this.kind = "internal";
3517
3517
  }
3518
- }, Rm = (e) => e.type === "lookup", MH = (e) => e.type === "text", Pa = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "monthYear" || e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange" || e.type === "weeklyDateRangeWithYear" || e.type === "quarter" || e.type === "time", D1 = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", O1 = (e) => e.type === "currency", N1 = (e) => e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange", B1 = (e) => {
3518
+ }, Rm = (e) => e.type === "lookup", MH = (e) => e.type === "text", ka = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "monthYear" || e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange" || e.type === "weeklyDateRangeWithYear" || e.type === "quarter" || e.type === "time", D1 = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", O1 = (e) => e.type === "currency", N1 = (e) => e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange", B1 = (e) => {
3519
3519
  if (Rm(e)) return B1(e.fallback);
3520
- if (Pa(e)) return "temporal";
3520
+ if (ka(e)) return "temporal";
3521
3521
  if (D1(e)) return "numeric";
3522
3522
  if (MH(e)) return "categorical";
3523
3523
  throw new he({ message: `No data type found for value format: ${e.type}` });
@@ -3772,20 +3772,20 @@ var TH = uV(function(e, t) {
3772
3772
  let t = e;
3773
3773
  for (const [r, n] of _H) t = t.replace(r, n);
3774
3774
  return t;
3775
- }, j1 = (e, t = ka) => {
3775
+ }, j1 = (e, t = Cl) => {
3776
3776
  const r = zs(e);
3777
- return ld(r) ? { type: "datetime" } : z1(t).find((n) => !Pa(n) || n.type === "month" && r.length < LH ? !1 : n.dateFormat && Gt(la(r, n.dateFormat, /* @__PURE__ */ new Date())));
3777
+ return ld(r) ? { type: "datetime" } : z1(t).find((n) => !ka(n) || n.type === "month" && r.length < LH ? !1 : n.dateFormat && Gt(la(r, n.dateFormat, /* @__PURE__ */ new Date())));
3778
3778
  }, ld = (e) => PH.test(e.trim()), HH = (e) => {
3779
3779
  if (e instanceof Date) return Gt(e) ? e : null;
3780
3780
  if (typeof e != "string" || !ld(e)) return null;
3781
3781
  const t = new Date(e.trim());
3782
3782
  return Gt(t) ? t : null;
3783
- }, GH = (e, t = ka) => {
3783
+ }, GH = (e, t = Cl) => {
3784
3784
  const [r, n] = e.split(FH);
3785
3785
  if (!r || !n) return;
3786
3786
  const i = zs(r).trim(), o = zs(n).trim();
3787
3787
  return $H(t).find((a) => {
3788
- if (!Pa(a) || !a.dateFormat) return !1;
3788
+ if (!ka(a) || !a.dateFormat) return !1;
3789
3789
  const s = la(i, a.dateFormat, /* @__PURE__ */ new Date()), l = la(o, a.dateFormat, /* @__PURE__ */ new Date());
3790
3790
  if (!Gt(s) || !Gt(l)) return !1;
3791
3791
  const c = new F1(), u = c.incrementYearIfNeeded(s), d = c.incrementYearIfNeeded(l), h = qT(d, u);
@@ -3922,7 +3922,7 @@ var TH = uV(function(e, t) {
3922
3922
  return Gt(a) ? Mh(a) : null;
3923
3923
  }
3924
3924
  for (const a of z1(r)) {
3925
- if (!Pa(a) || !a.dateFormat) continue;
3925
+ if (!ka(a) || !a.dateFormat) continue;
3926
3926
  const s = la(n, a.dateFormat, i);
3927
3927
  if (Gt(s)) return Mh(s);
3928
3928
  }
@@ -3957,7 +3957,7 @@ var TH = uV(function(e, t) {
3957
3957
  }, XH = (e) => String(e).trim(), Mh = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())), $i = (e, t, r) => {
3958
3958
  if (t.type === "text" && typeof e == "string") return e;
3959
3959
  const n = J1(e, t, r);
3960
- return n !== null || !Pa(t) ? n : HH(e);
3960
+ return n !== null || !ka(t) ? n : HH(e);
3961
3961
  }, qH = (e, t) => {
3962
3962
  const r = As(e.data.getValueFormat(ed(e))), n = l1(e);
3963
3963
  return (i) => ({
@@ -3985,7 +3985,7 @@ function Vf(e) {
3985
3985
  function QH(e, t) {
3986
3986
  return nM(e, t);
3987
3987
  }
3988
- function oc(e, t) {
3988
+ function Ja(e, t) {
3989
3989
  for (const r of Object.keys(t)) {
3990
3990
  const n = t[r];
3991
3991
  if (n !== void 0 && n !== e[r]) return {
@@ -4183,13 +4183,13 @@ var a5 = [
4183
4183
  if (typeof e != "object" || e === null) return !1;
4184
4184
  const t = Object.keys(e);
4185
4185
  return t.length === 1 && t[0] === "image" && typeof e.image == "string";
4186
- }, Cl = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", lM = (e) => typeof e == "object" && e !== null && typeof e.token == "string", cM = (e) => typeof e == "string" ? e.trim().length > 0 : Cl(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
4186
+ }, _l = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", lM = (e) => typeof e == "object" && e !== null && typeof e.token == "string", cM = (e) => typeof e == "string" ? e.trim().length > 0 : _l(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
4187
4187
  function te(e) {
4188
4188
  return { token: e };
4189
4189
  }
4190
4190
  var Yn = (e, t) => {
4191
4191
  if (typeof e != "object" || e === null) return e;
4192
- if (Cl(e)) return e[t];
4192
+ if (_l(e)) return e[t];
4193
4193
  if (Array.isArray(e)) {
4194
4194
  if (e.every((i) => typeof i == "number")) return e;
4195
4195
  const n = e.map((i) => Yn(i, t));
@@ -4262,7 +4262,7 @@ var Yn = (e, t) => {
4262
4262
  }
4263
4263
  } : { status: "dropped" };
4264
4264
  }
4265
- return Cl(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
4265
+ return _l(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
4266
4266
  status: "accepted",
4267
4267
  value: {
4268
4268
  light: e.light,
@@ -4270,7 +4270,7 @@ var Yn = (e, t) => {
4270
4270
  }
4271
4271
  } : pe(S0, e);
4272
4272
  }, uM = (e, t) => {
4273
- if (typeof e != "object" || e === null || Cl(e) || lM(e)) return $n(e, t);
4273
+ if (typeof e != "object" || e === null || _l(e) || lM(e)) return $n(e, t);
4274
4274
  const r = e;
4275
4275
  if (wl(r)) {
4276
4276
  const n = r.gradient;
@@ -5680,13 +5680,17 @@ var T3 = "value", Es = {
5680
5680
  if (r === "count") return new Array(e.rowCount);
5681
5681
  throw new he({ message: `Variable '${t}' not defined` });
5682
5682
  }, Kn = class Ft {
5683
- constructor(t = {}) {
5684
- const { table: r, variableMetadata: n } = this.parseVariableMap(t);
5685
- this.table = r, this.variableMetadata = n;
5686
- }
5687
- static fromTrusted(t, r) {
5688
- const n = Object.create(Ft.prototype);
5689
- return n.table = t, n.variableMetadata = r, n;
5683
+ constructor(t = {}, r = Cl) {
5684
+ const { table: n, variableMetadata: i } = this.parseVariableMap(t);
5685
+ this.table = n, this.variableMetadata = i, this.parsingLocale = r;
5686
+ }
5687
+ static fromTrusted(t, r, n) {
5688
+ const i = Object.create(Ft.prototype);
5689
+ return Object.assign(i, {
5690
+ table: t,
5691
+ variableMetadata: r,
5692
+ parsingLocale: n
5693
+ });
5690
5694
  }
5691
5695
  size() {
5692
5696
  return this.table.rowCount;
@@ -5706,7 +5710,7 @@ var T3 = "value", Es = {
5706
5710
  valueFormat: this.resolveAddedVariableFormat(t, r, i)
5707
5711
  }
5708
5712
  }, a = this.normalizeRawValues(r, n), s = this.table.assign(t, a);
5709
- return Ft.fromTrusted(s, o);
5713
+ return Ft.fromTrusted(s, o, this.parsingLocale);
5710
5714
  }
5711
5715
  addConstantVariable(t, r, n, i) {
5712
5716
  const o = {
@@ -5717,7 +5721,7 @@ var T3 = "value", Es = {
5717
5721
  constant: { value: n }
5718
5722
  }
5719
5723
  }, [a = null] = this.normalizeRawValues(r, [n]), s = this.table.assign(t, new Array(this.size()).fill(a));
5720
- return Ft.fromTrusted(s, o);
5724
+ return Ft.fromTrusted(s, o, this.parsingLocale);
5721
5725
  }
5722
5726
  getConstant(t) {
5723
5727
  return this.variableMetadata[t]?.constant;
@@ -5737,11 +5741,11 @@ var T3 = "value", Es = {
5737
5741
  ...a,
5738
5742
  [r]: n
5739
5743
  };
5740
- return Ft.fromTrusted(i, s);
5744
+ return Ft.fromTrusted(i, s, this.parsingLocale);
5741
5745
  }
5742
5746
  selectVariables(...t) {
5743
5747
  const r = this.table.select(t), n = Object.fromEntries(Object.entries(this.variableMetadata).filter(([i]) => t.includes(i)));
5744
- return Ft.fromTrusted(r, n);
5748
+ return Ft.fromTrusted(r, n, this.parsingLocale);
5745
5749
  }
5746
5750
  getType(t) {
5747
5751
  const r = this.variableMetadata[t];
@@ -5776,20 +5780,20 @@ var T3 = "value", Es = {
5776
5780
  if (this.hasVariable(t) && this.getType(t) === "temporal") return this.filterByTimestamp(t, r, n);
5777
5781
  const i = F0[r], o = this.table.values(t) ?? [], a = [];
5778
5782
  for (let s = 0; s < o.length; s++) i(o[s] ?? null, n) && a.push(s);
5779
- return Ft.fromTrusted(this.table.take(a), this.variableMetadata);
5783
+ return Ft.fromTrusted(this.table.take(a), this.variableMetadata, this.parsingLocale);
5780
5784
  }
5781
5785
  filterByMask(t) {
5782
5786
  if (t.length !== this.size()) throw new he({ message: `Row mask length ${t.length} does not match dataset size ${this.size()}` });
5783
5787
  const r = [];
5784
5788
  for (let n = 0; n < t.length; n++) t[n] === 1 && r.push(n);
5785
- return Ft.fromTrusted(this.table.take(r), this.variableMetadata);
5789
+ return Ft.fromTrusted(this.table.take(r), this.variableMetadata, this.parsingLocale);
5786
5790
  }
5787
5791
  take(t) {
5788
- return Ft.fromTrusted(this.table.take(t), this.variableMetadata);
5792
+ return Ft.fromTrusted(this.table.take(t), this.variableMetadata, this.parsingLocale);
5789
5793
  }
5790
5794
  orderBy(t, r = "asc") {
5791
5795
  const n = this.table.take(this.table.sortedIndices(t, r));
5792
- return Ft.fromTrusted(n, this.variableMetadata);
5796
+ return Ft.fromTrusted(n, this.variableMetadata, this.parsingLocale);
5793
5797
  }
5794
5798
  getAt(t) {
5795
5799
  return t < 0 || t >= this.size() ? null : this.table.objectAt(t);
@@ -5816,7 +5820,7 @@ var T3 = "value", Es = {
5816
5820
  return null;
5817
5821
  }
5818
5822
  groupBy(...t) {
5819
- return new M3(t, this.table, this.variableMetadata);
5823
+ return new M3(t, this.table, this.variableMetadata, this.parsingLocale);
5820
5824
  }
5821
5825
  rollup(t) {
5822
5826
  const r = Hf.from(Object.fromEntries(Object.entries(t).map(([i, { variableName: o, aggregation: a }]) => [i, [RM(a, DM(this.table, o, a), void 0, {
@@ -5830,7 +5834,7 @@ var T3 = "value", Es = {
5830
5834
  valueFormat: LM(a, c)
5831
5835
  };
5832
5836
  }
5833
- return Ft.fromTrusted(r, n);
5837
+ return Ft.fromTrusted(r, n, this.parsingLocale);
5834
5838
  }
5835
5839
  reshapeFromWideToLong({ keep: t, reshape: r, keyName: n = "key", valueName: i = T3 } = {}) {
5836
5840
  const { numeric: o, categorical: a, temporal: s } = this.groupVariableNamesByType(), l = t ?? [...a, ...s], c = r ?? o.filter((h) => !l.includes(h));
@@ -5873,7 +5877,7 @@ var T3 = "value", Es = {
5873
5877
  }, d[i] = {
5874
5878
  type: "numeric",
5875
5879
  valueFormat: E3(this.variableMetadata, c, n)
5876
- }, Ft.fromTrusted(u, d);
5880
+ }, Ft.fromTrusted(u, d, this.parsingLocale);
5877
5881
  }
5878
5882
  print() {
5879
5883
  console.table(this.variableMetadata), console.table([...this.table]);
@@ -5882,9 +5886,9 @@ var T3 = "value", Es = {
5882
5886
  return this.table[Symbol.iterator]();
5883
5887
  }
5884
5888
  filterByTimestamp(t, r, n) {
5885
- const i = F0[r], o = $i(n, this.getValueFormat(t), ka), a = V0(o ?? n), s = this.getValues(t, { type: "temporal" }), l = [];
5889
+ const i = F0[r], o = $i(n, this.getValueFormat(t), this.parsingLocale), a = V0(o ?? n), s = this.getValues(t, { type: "temporal" }), l = [];
5886
5890
  for (let c = 0; c < s.length; c++) i(V0(s[c] ?? null), a) && l.push(c);
5887
- return Ft.fromTrusted(this.table.take(l), this.variableMetadata);
5891
+ return Ft.fromTrusted(this.table.take(l), this.variableMetadata, this.parsingLocale);
5888
5892
  }
5889
5893
  resolveAddedVariableFormat(t, r, n) {
5890
5894
  if (n !== void 0) return n;
@@ -5927,12 +5931,12 @@ var T3 = "value", Es = {
5927
5931
  return o;
5928
5932
  }
5929
5933
  }, M3 = class {
5930
- constructor(e, t, r) {
5931
- this.groupedBy = e, this.table = t, this.variableMetadata = r;
5934
+ constructor(e, t, r, n) {
5935
+ this.groupedBy = e, this.table = t, this.variableMetadata = r, this.parsingLocale = n;
5932
5936
  }
5933
5937
  forEach(e) {
5934
5938
  this.readPartitions().forEach(({ key: t, indices: r }, n) => {
5935
- e(Kn.fromTrusted(this.table.take(r), this.variableMetadata), t, n);
5939
+ e(Kn.fromTrusted(this.table.take(r), this.variableMetadata, this.parsingLocale), t, n);
5936
5940
  });
5937
5941
  }
5938
5942
  rollup(e) {
@@ -5960,7 +5964,7 @@ var T3 = "value", Es = {
5960
5964
  valueFormat: LM(a, u)
5961
5965
  };
5962
5966
  }
5963
- return Kn.fromTrusted(Hf.from(r), n);
5967
+ return Kn.fromTrusted(Hf.from(r), n, this.parsingLocale);
5964
5968
  }
5965
5969
  readPartitions() {
5966
5970
  return this.partitions ??= this.table.partition(this.groupedBy), this.partitions;
@@ -6078,7 +6082,7 @@ var P3 = class extends ui {
6078
6082
  transform(e) {
6079
6083
  return this.transformStage.compile(e);
6080
6084
  }
6081
- }, Ca = class {
6085
+ }, Pa = class {
6082
6086
  constructor(e) {
6083
6087
  this.label = e, this.items = /* @__PURE__ */ new Map();
6084
6088
  }
@@ -6331,7 +6335,7 @@ function Q3(e) {
6331
6335
  data: t
6332
6336
  };
6333
6337
  }
6334
- var Z3 = class extends Ca {
6338
+ var Z3 = class extends Pa {
6335
6339
  constructor() {
6336
6340
  super("coord"), this.register("cartesian", new R3()), this.register("flip", new L3()), this.register("polar", new G3());
6337
6341
  }
@@ -6349,15 +6353,15 @@ var Z3 = class extends Ca {
6349
6353
  type: "year",
6350
6354
  dateFormat: "yyyy"
6351
6355
  }, tG = { type: "text" }, rG = (e) => {
6352
- const t = e._metadata?.parsingLocale ?? "en-GB", r = {}, n = aG(e), i = iG(e), o = n.size > 0;
6356
+ const t = e.parsingLocale ?? "en-US", r = {}, n = aG(e), i = iG(e), o = n.size > 0;
6353
6357
  for (const [a, s] of e.columns.entries()) {
6354
- if (s._metadata?.hidden) continue;
6358
+ if (s.visible === !1) continue;
6355
6359
  const l = n.get(s.key);
6356
6360
  if (da(l) && o) continue;
6357
6361
  const c = s.valueFormat ?? (da(l) ? tG : a === i ? eG : J3(l, t)), u = B1(c);
6358
6362
  r[s.key] = oG(s.key, e.rows, c, u, t);
6359
6363
  }
6360
- return new Kn(r);
6364
+ return new Kn(r, t);
6361
6365
  }, nG = class extends ui {
6362
6366
  dependencies(e) {
6363
6367
  return [e];
@@ -6465,7 +6469,7 @@ var Ch = (e) => {
6465
6469
  case "continuous":
6466
6470
  return D1(e);
6467
6471
  case "datetime":
6468
- return Pa(e);
6472
+ return ka(e);
6469
6473
  case "discrete":
6470
6474
  case "identity":
6471
6475
  return !0;
@@ -6597,7 +6601,7 @@ var E0e = ii.range, Um = mt(function(e) {
6597
6601
  return (t - e) / Sn;
6598
6602
  }, function(e) {
6599
6603
  return e.getUTCHours();
6600
- }), P0e = md.range, _a = mt(function(e) {
6604
+ }), P0e = md.range, Ca = mt(function(e) {
6601
6605
  e.setUTCHours(0, 0, 0, 0);
6602
6606
  }, function(e, t) {
6603
6607
  e.setUTCDate(e.getUTCDate() + t);
@@ -6605,7 +6609,7 @@ var E0e = ii.range, Um = mt(function(e) {
6605
6609
  return (t - e) / ro;
6606
6610
  }, function(e) {
6607
6611
  return e.getUTCDate() - 1;
6608
- }), C0e = _a.range;
6612
+ }), C0e = Ca.range;
6609
6613
  function go(e) {
6610
6614
  return mt(function(t) {
6611
6615
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -6848,7 +6852,7 @@ function UM(e, t, r, n, i, o) {
6848
6852
  }
6849
6853
  return [s, l];
6850
6854
  }
6851
- var [_G, IG] = UM(un, vd, gd, _a, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, FM), RG = [
6855
+ var [_G, IG] = UM(un, vd, gd, Ca, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, FM), RG = [
6852
6856
  {
6853
6857
  unit: "year",
6854
6858
  step: 1e3
@@ -6975,7 +6979,7 @@ var [_G, IG] = UM(un, vd, gd, _a, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, F
6975
6979
  case "hour":
6976
6980
  return md;
6977
6981
  case "day":
6978
- return _a;
6982
+ return Ca;
6979
6983
  case "week":
6980
6984
  return Xs;
6981
6985
  case "month":
@@ -7040,36 +7044,37 @@ function GG(e, t) {
7040
7044
  return d;
7041
7045
  }
7042
7046
  function $G(e) {
7043
- const { scaledAesthetic: t, scale: r, config: n, layers: i, axisMapping: o, resolvedYPosition: a, gridOverrides: s, variableLabels: l, geomRegistry: c, flipped: u } = e, { axisConfig: d, position: h, geometry: f } = jG(t, n, o, a), p = to(i, t), m = KG(t, i, c), g = XG(m), y = qG({
7047
+ const { scaledAesthetic: t, scale: r, config: n, layers: i, axisMapping: o, resolvedYPosition: a, gridOverrides: s, variableLabels: l, geomRegistry: c, flipped: u } = e, { axisConfig: d, position: h, geometry: f } = jG(t, n, o, a), p = t === "x" ? s.x : s.y, m = to(i, t), g = KG(t, i, c), y = XG(g), x = qG({
7044
7048
  scale: r,
7045
7049
  scaledAesthetic: t,
7046
7050
  layers: i,
7047
- spanLayers: m,
7051
+ spanLayers: g,
7048
7052
  flipped: u,
7049
- variableName: p
7053
+ variableName: m
7050
7054
  });
7051
7055
  return {
7052
7056
  scaledAesthetic: t,
7053
7057
  position: h,
7054
7058
  geometry: f,
7055
- label: WG(d, p, l),
7059
+ label: WG(d, m, l),
7056
7060
  visible: d.visible,
7057
7061
  tickCandidates: QG({
7058
7062
  scale: r,
7059
- spanLayers: m,
7063
+ spanLayers: g,
7060
7064
  flipped: u,
7061
- scaleValueFormat: y,
7062
- categoryValueFormat: g,
7065
+ scaleValueFormat: x,
7066
+ categoryValueFormat: y,
7063
7067
  tickMode: d.ticks.mode
7064
7068
  }),
7065
- valueFormat: y,
7066
- categorySpan: g === null ? void 0 : {
7067
- valueFormat: g,
7068
- layerIds: m.map((x) => x.id)
7069
+ valueFormat: x,
7070
+ categorySpan: y === null ? void 0 : {
7071
+ valueFormat: y,
7072
+ layerIds: g.map((w) => w.id)
7069
7073
  },
7070
7074
  tickMode: d.ticks.mode,
7071
7075
  showTicks: d.ticks.visible,
7072
- showGrid: YG(d, s, t),
7076
+ showGrid: YG(d, p, t),
7077
+ supportsGrid: p.supportsGrid,
7073
7078
  scaleType: r.spec.scaleType,
7074
7079
  bandwidth: r.bandwidth ?? void 0
7075
7080
  };
@@ -7083,8 +7088,14 @@ function UG(e, t, r, n) {
7083
7088
  return l ? [l] : [];
7084
7089
  }), o = i.some((s) => s.hideGridX), a = i.some((s) => s.hideGridY);
7085
7090
  return {
7086
- x: { showGrid: Y0(o, n.axes.x.grid.visible) },
7087
- y: { showGrid: Y0(a, n.axes.y.grid.visible) }
7091
+ x: {
7092
+ showGrid: Y0(o, n.axes.x.grid.visible),
7093
+ supportsGrid: !o
7094
+ },
7095
+ y: {
7096
+ showGrid: Y0(a, n.axes.y.grid.visible),
7097
+ supportsGrid: !a
7098
+ }
7088
7099
  };
7089
7100
  }
7090
7101
  function Y0(e, t) {
@@ -7128,8 +7139,7 @@ function zG(e, t) {
7128
7139
  return t.has(e) ? jM[e] : e;
7129
7140
  }
7130
7141
  function YG(e, t, r) {
7131
- const { showGrid: n } = r === "x" ? t.x : t.y;
7132
- return n ?? e.grid.visible ?? VG[r];
7142
+ return t.showGrid ?? e.grid.visible ?? VG[r];
7133
7143
  }
7134
7144
  var KG = (e, t, r) => e !== "x" ? [] : t.filter((n) => ri(r.get(n.geom))), XG = (e) => {
7135
7145
  const [t] = e;
@@ -9819,12 +9829,12 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
9819
9829
  resolveParams(e) {
9820
9830
  return uo({}, this.defaultParams, e.params);
9821
9831
  }
9822
- }, cb = 0.5, _l = (e) => ({
9832
+ }, cb = 0.5, Il = (e) => ({
9823
9833
  x: 0,
9824
9834
  y: 0,
9825
9835
  width: e.width,
9826
9836
  height: e.height
9827
- }), Zm = (e) => e === "panelEnd" ? "end" : e === "panelStart" ? "start" : e, Il = ({ box: e, panel: t, orientation: r, placement: n, justify: i, align: o, offset: a, alignOffset: s, labelWidth: l, labelHeight: c }) => {
9837
+ }), Zm = (e) => e === "panelEnd" ? "end" : e === "panelStart" ? "start" : e, Rl = ({ box: e, panel: t, orientation: r, placement: n, justify: i, align: o, offset: a, alignOffset: s, labelWidth: l, labelHeight: c }) => {
9828
9838
  const u = i === "panelStart" || i === "panelEnd", d = (r.valueAxis === "x" ? e.height : e.width) === 0, h = {
9829
9839
  anchor: F4(i, r.valueDirectionSign),
9830
9840
  placement: u ? "inside" : n,
@@ -9872,9 +9882,9 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
9872
9882
  slice: a,
9873
9883
  mainAxis: i,
9874
9884
  panelRect: e.panelRect
9875
- }), h = Il({
9885
+ }), h = Rl({
9876
9886
  box: u,
9877
- panel: _l(e.panelRect),
9887
+ panel: Il(e.panelRect),
9878
9888
  orientation: d,
9879
9889
  ...n,
9880
9890
  offset: r,
@@ -10264,7 +10274,7 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10264
10274
  panelWidth: e.panelRect.width,
10265
10275
  panelHeight: e.panelRect.height,
10266
10276
  offset: e.layer.dataLabels.offset
10267
- }) : uW(e.layer.dataLabels, e.coordSystem.mainAxis, n, s, _l(e.panelRect));
10277
+ }) : uW(e.layer.dataLabels, e.coordSystem.mainAxis, n, s, Il(e.panelRect));
10268
10278
  if (l === null) {
10269
10279
  r += 1;
10270
10280
  continue;
@@ -10354,7 +10364,7 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10354
10364
  valueDirectionSign: e === "right" ? 1 : -1
10355
10365
  }, cW = (e) => e === "panelStart" || e === "panelEnd", uW = (e, t, r, n, i) => {
10356
10366
  if (e.position === "auto") return null;
10357
- const o = r && e.position === "outside" ? "inside" : e.position, a = n.boxes[o], s = Il({
10367
+ const o = r && e.position === "outside" ? "inside" : e.position, a = n.boxes[o], s = Rl({
10358
10368
  box: n.bounds,
10359
10369
  panel: i,
10360
10370
  orientation: bE(n.tipEdge),
@@ -10381,13 +10391,13 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10381
10391
  position: s.position
10382
10392
  };
10383
10393
  }, dW = (e, t, r) => {
10384
- const n = [], { categoryPosition: i, categoryJustify: o, categoryAlign: a, categoryOffset: s } = e.layer.dataLabels, l = t && i === "outside" ? "inside" : i, c = e.coordSystem.mainAxis, u = _l(e.panelRect);
10394
+ const n = [], { categoryPosition: i, categoryJustify: o, categoryAlign: a, categoryOffset: s } = e.layer.dataLabels, l = t && i === "outside" ? "inside" : i, c = e.coordSystem.mainAxis, u = Il(e.panelRect);
10385
10395
  for (const d of e.layer.data) {
10386
10396
  const h = r(d);
10387
10397
  if (h === null) continue;
10388
10398
  const f = e.formatCategory(d);
10389
10399
  if (f === null || f === "") continue;
10390
- const p = eg(e.measureDataLabel, "category", f), m = p[l], g = Il({
10400
+ const p = eg(e.measureDataLabel, "category", f), m = p[l], g = Rl({
10391
10401
  box: ag(h, e.panelRect),
10392
10402
  panel: u,
10393
10403
  orientation: bE(Ml(d, c)),
@@ -10853,14 +10863,14 @@ var vW = " · ", xn = 2, yW = (e) => {
10853
10863
  if (o === null || a === null || !eo(o, a)) continue;
10854
10864
  const s = e.formatLabel(i);
10855
10865
  if (s === "") continue;
10856
- const { width: l, height: c } = e.measureDataLabel("observation", "outside", s), u = Il({
10866
+ const { width: l, height: c } = e.measureDataLabel("observation", "outside", s), u = Rl({
10857
10867
  box: {
10858
10868
  x: o * e.panelRect.width,
10859
10869
  y: (1 - a) * e.panelRect.height,
10860
10870
  width: 0,
10861
10871
  height: 0
10862
10872
  },
10863
- panel: _l(e.panelRect),
10873
+ panel: Il(e.panelRect),
10864
10874
  orientation: {
10865
10875
  valueAxis: "y",
10866
10876
  valueDirectionSign: -1
@@ -10981,14 +10991,14 @@ var vW = " · ", xn = 2, yW = (e) => {
10981
10991
  if (s === null || l === null || !eo(s, l)) continue;
10982
10992
  const c = e.formatLabel(a);
10983
10993
  if (c === "") continue;
10984
- const { width: u, height: d } = e.measureDataLabel("observation", "outside", c), h = o.get("size", a) / 2, f = Il({
10994
+ const { width: u, height: d } = e.measureDataLabel("observation", "outside", c), h = o.get("size", a) / 2, f = Rl({
10985
10995
  box: {
10986
10996
  x: s * e.panelRect.width,
10987
10997
  y: (1 - l) * e.panelRect.height,
10988
10998
  width: 0,
10989
10999
  height: 0
10990
11000
  },
10991
- panel: _l(e.panelRect),
11001
+ panel: Il(e.panelRect),
10992
11002
  orientation: {
10993
11003
  valueAxis: "y",
10994
11004
  valueDirectionSign: -1
@@ -11150,7 +11160,7 @@ var vW = " · ", xn = 2, yW = (e) => {
11150
11160
  type: "numeric",
11151
11161
  values: [r.value],
11152
11162
  valueFormat: r.sourceFormat
11153
- } }),
11163
+ } }, e.parsingLocale),
11154
11164
  mapping: {
11155
11165
  y: fs.y,
11156
11166
  x: void 0
@@ -11162,7 +11172,7 @@ var vW = " · ", xn = 2, yW = (e) => {
11162
11172
  type: "numeric",
11163
11173
  values: [n.value],
11164
11174
  valueFormat: n.sourceFormat
11165
- } }),
11175
+ } }, e.parsingLocale),
11166
11176
  mapping: {
11167
11177
  x: fs.x,
11168
11178
  y: void 0
@@ -11338,7 +11348,7 @@ var DW = (e) => {
11338
11348
  new z4(),
11339
11349
  new RW(),
11340
11350
  new FW()
11341
- ], Rl = class extends Ca {
11351
+ ], Ll = class extends Pa {
11342
11352
  constructor() {
11343
11353
  super("geom");
11344
11354
  for (const e of AE) this.register(e.type, e);
@@ -11416,7 +11426,7 @@ var DW = (e) => {
11416
11426
  data: e.size() === 0 ? new Kn({ [Mt.mean]: {
11417
11427
  type: "numeric",
11418
11428
  values: []
11419
- } }) : e.rollup({ [Mt.mean]: {
11429
+ } }, e.parsingLocale) : e.rollup({ [Mt.mean]: {
11420
11430
  variableName: r,
11421
11431
  aggregation: "mean"
11422
11432
  } }),
@@ -11581,14 +11591,14 @@ var DW = (e) => {
11581
11591
  var St = F[vt], Ue = N[vt], yt = S(Math.abs(q - St) * jt) * ie[vt], Ge = St * yt;
11582
11592
  Se += yt, Ae += Ge, Qe += Ue * yt, ut += Ue * Ge, dt += St * Ge;
11583
11593
  }
11584
- var Xa = n(f(Ae / Se, Qe / Se, ut / Se, dt / Se), 2);
11585
- re[K] = Xa[0] + Xa[1] * q, se[K] = Math.abs(N[K] - re[K]), M(F, K + 1, W);
11594
+ var Ka = n(f(Ae / Se, Qe / Se, ut / Se, dt / Se), 2);
11595
+ re[K] = Ka[0] + Ka[1] * q, se[K] = Math.abs(N[K] - re[K]), M(F, K + 1, W);
11586
11596
  }
11587
11597
  if (le === y) break;
11588
- var nc = g(se);
11589
- if (Math.abs(nc) < x) break;
11598
+ var ic = g(se);
11599
+ if (Math.abs(ic) < x) break;
11590
11600
  for (var To = 0, At, My; To < ne; ++To)
11591
- At = se[To] / (6 * nc), ie[To] = At >= 1 ? x : (My = 1 - At * At) * My;
11601
+ At = se[To] / (6 * ic), ie[To] = At >= 1 ? x : (My = 1 - At * At) * My;
11592
11602
  }
11593
11603
  return A(F, re, j, ee);
11594
11604
  }
@@ -11975,7 +11985,7 @@ var DW = (e) => {
11975
11985
  values: s[c] ?? [],
11976
11986
  valueFormat: i.getValueFormat(c)
11977
11987
  };
11978
- return new Kn(l);
11988
+ return new Kn(l, i.parsingLocale);
11979
11989
  }
11980
11990
  };
11981
11991
  }, ZW = (e, t) => {
@@ -12255,7 +12265,7 @@ var b6 = [
12255
12265
  new GW(),
12256
12266
  new JW(),
12257
12267
  new u6()
12258
- ], _E = class extends Ca {
12268
+ ], _E = class extends Pa {
12259
12269
  constructor() {
12260
12270
  super("stat");
12261
12271
  for (const e of b6) this.register(e.type, e);
@@ -12281,7 +12291,7 @@ var b6 = [
12281
12291
  this.transformType = "constant";
12282
12292
  }
12283
12293
  apply(e, t) {
12284
- const { options: r } = t, n = $i(r.value, w6[r.type], ka);
12294
+ const { options: r } = t, n = $i(r.value, w6[r.type], e.parsingLocale);
12285
12295
  if (r.value !== null && n === null) throw new qe({
12286
12296
  code: "INCOMPATIBLE_TYPE",
12287
12297
  message: `Constant '${r.variableName}' cannot be read as ${r.type}`,
@@ -12335,14 +12345,14 @@ var b6 = [
12335
12345
  new A6(),
12336
12346
  new T6(),
12337
12347
  new M6()
12338
- ], IE = class extends Ca {
12348
+ ], IE = class extends Pa {
12339
12349
  constructor() {
12340
12350
  super("transform");
12341
12351
  for (const e of E6) this.register(e.transformType, e);
12342
12352
  }
12343
12353
  };
12344
12354
  function k6({ geoms: e, stats: t, transforms: r }) {
12345
- const n = new Rl(), i = new _E(), o = new IE();
12355
+ const n = new Ll(), i = new _E(), o = new IE();
12346
12356
  for (const a of e) n.register(a.type, a);
12347
12357
  for (const a of t) i.register(a.type, a);
12348
12358
  for (const a of r) o.register(a.transformType, a);
@@ -12442,7 +12452,7 @@ var LE = (e) => e instanceof pn, DE = (e) => e instanceof vo, OE = (e) => "trans
12442
12452
  return this.registry.get(e).adjust(t);
12443
12453
  }
12444
12454
  };
12445
- function Ia(e, t) {
12455
+ function _a(e, t) {
12446
12456
  switch (arguments.length) {
12447
12457
  case 0:
12448
12458
  break;
@@ -12478,7 +12488,7 @@ function dg() {
12478
12488
  return arguments.length ? (n = o, i) : n;
12479
12489
  }, i.copy = function() {
12480
12490
  return dg(t, r).unknown(n);
12481
- }, Ia.apply(i, arguments), i;
12491
+ }, _a.apply(i, arguments), i;
12482
12492
  }
12483
12493
  function hg() {
12484
12494
  var e = dg().unknown(void 0), t = e.domain, r = e.range, n = 0, i = 1, o, a, s = !1, l = 0, c = 0, u = 0.5;
@@ -12513,9 +12523,9 @@ function hg() {
12513
12523
  return arguments.length ? (u = Math.max(0, Math.min(1, h)), d()) : u;
12514
12524
  }, e.copy = function() {
12515
12525
  return hg(t(), [n, i]).round(s).paddingInner(l).paddingOuter(c).align(u);
12516
- }, Ia.apply(d(), arguments);
12526
+ }, _a.apply(d(), arguments);
12517
12527
  }
12518
- function Ll(e, t, r) {
12528
+ function Dl(e, t, r) {
12519
12529
  e.prototype = t.prototype = r, r.constructor = e;
12520
12530
  }
12521
12531
  function Ed(e, t) {
@@ -12675,7 +12685,7 @@ var Zs = 0.7, mu = 1 / Zs, Jo = "\\s*([+-]?\\d+)\\s*", Js = "\\s*([+-]?(?:\\d*\\
12675
12685
  yellow: 16776960,
12676
12686
  yellowgreen: 10145074
12677
12687
  };
12678
- Ll(yo, el, {
12688
+ Dl(yo, el, {
12679
12689
  copy(e) {
12680
12690
  return Object.assign(new this.constructor(), this, e);
12681
12691
  },
@@ -12720,7 +12730,7 @@ function gu(e, t, r, n) {
12720
12730
  function Et(e, t, r, n) {
12721
12731
  this.r = +e, this.g = +t, this.b = +r, this.opacity = +n;
12722
12732
  }
12723
- Ll(Et, gu, Ed(yo, {
12733
+ Dl(Et, gu, Ed(yo, {
12724
12734
  brighter(e) {
12725
12735
  return e = e == null ? mu : Math.pow(mu, e), new Et(this.r * e, this.g * e, this.b * e, this.opacity);
12726
12736
  },
@@ -12778,7 +12788,7 @@ function ep(e, t, r, n) {
12778
12788
  function Sr(e, t, r, n) {
12779
12789
  this.h = +e, this.s = +t, this.l = +r, this.opacity = +n;
12780
12790
  }
12781
- Ll(Sr, ep, Ed(yo, {
12791
+ Dl(Sr, ep, Ed(yo, {
12782
12792
  brighter(e) {
12783
12793
  return e = e == null ? mu : Math.pow(mu, e), new Sr(this.h, this.s, this.l * e, this.opacity);
12784
12794
  },
@@ -12823,7 +12833,7 @@ function tp(e, t, r, n) {
12823
12833
  function nn(e, t, r, n) {
12824
12834
  this.l = +e, this.a = +t, this.b = +r, this.opacity = +n;
12825
12835
  }
12826
- Ll(nn, tp, Ed(yo, {
12836
+ Dl(nn, tp, Ed(yo, {
12827
12837
  brighter(e) {
12828
12838
  return new nn(this.l + yu * (e ?? 1), this.a, this.b, this.opacity);
12829
12839
  },
@@ -12864,7 +12874,7 @@ function UE(e) {
12864
12874
  var t = e.h * $6;
12865
12875
  return new nn(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
12866
12876
  }
12867
- Ll(An, rp, Ed(yo, {
12877
+ Dl(An, rp, Ed(yo, {
12868
12878
  brighter(e) {
12869
12879
  return new An(this.h, this.c, this.l + yu * (e ?? 1), this.opacity);
12870
12880
  },
@@ -13348,7 +13358,7 @@ function $c() {
13348
13358
  var e = QE();
13349
13359
  return e.copy = function() {
13350
13360
  return Cd(e, $c());
13351
- }, Ia.apply(e, arguments), ek(e);
13361
+ }, _a.apply(e, arguments), ek(e);
13352
13362
  }
13353
13363
  function tk(e, t) {
13354
13364
  e = e.slice();
@@ -13426,7 +13436,7 @@ function IU(e) {
13426
13436
  }
13427
13437
  function rk() {
13428
13438
  const e = IU(fg()).domain([1, 10]);
13429
- return e.copy = () => Cd(e, rk()).base(e.base()), Ia.apply(e, arguments), e;
13439
+ return e.copy = () => Cd(e, rk()).base(e.base()), _a.apply(e, arguments), e;
13430
13440
  }
13431
13441
  function Gb(e) {
13432
13442
  return function(t) {
@@ -13452,7 +13462,7 @@ function nk() {
13452
13462
  var e = DU(fg());
13453
13463
  return e.copy = function() {
13454
13464
  return Cd(e, nk()).exponent(e.exponent());
13455
- }, Ia.apply(e, arguments), e;
13465
+ }, _a.apply(e, arguments), e;
13456
13466
  }
13457
13467
  function OU() {
13458
13468
  return nk.apply(null, arguments).exponent(0.5);
@@ -13599,7 +13609,7 @@ function NU(e) {
13599
13609
  if ("s" in H) return new Date(H.s * 1e3 + ("L" in H ? H.L : 0));
13600
13610
  if (K && !("Z" in H) && (H.Z = 0), "p" in H && (H.H = H.H % 12 + H.p * 12), H.m === void 0 && (H.m = "q" in H ? H.q : 0), "V" in H) {
13601
13611
  if (H.V < 1 || H.V > 53) return null;
13602
- "w" in H || (H.w = 1), "Z" in H ? (J = jh(es(H.y, 0, 1)), Se = J.getUTCDay(), J = Se > 4 || Se === 0 ? Xs.ceil(J) : Xs(J), J = _a.offset(J, (H.V - 1) * 7), H.y = J.getUTCFullYear(), H.m = J.getUTCMonth(), H.d = J.getUTCDate() + (H.w + 6) % 7) : (J = Uh(es(H.y, 0, 1)), Se = J.getDay(), J = Se > 4 || Se === 0 ? pu.ceil(J) : pu(J), J = pd.offset(J, (H.V - 1) * 7), H.y = J.getFullYear(), H.m = J.getMonth(), H.d = J.getDate() + (H.w + 6) % 7);
13612
+ "w" in H || (H.w = 1), "Z" in H ? (J = jh(es(H.y, 0, 1)), Se = J.getUTCDay(), J = Se > 4 || Se === 0 ? Xs.ceil(J) : Xs(J), J = Ca.offset(J, (H.V - 1) * 7), H.y = J.getUTCFullYear(), H.m = J.getUTCMonth(), H.d = J.getUTCDate() + (H.w + 6) % 7) : (J = Uh(es(H.y, 0, 1)), Se = J.getDay(), J = Se > 4 || Se === 0 ? pu.ceil(J) : pu(J), J = pd.offset(J, (H.V - 1) * 7), H.y = J.getFullYear(), H.m = J.getMonth(), H.d = J.getDate() + (H.w + 6) % 7);
13603
13613
  } else ("W" in H || "U" in H) && ("w" in H || (H.w = "u" in H ? H.u % 7 : "W" in H ? 1 : 0), Se = "Z" in H ? jh(es(H.y, 0, 1)).getUTCDay() : Uh(es(H.y, 0, 1)).getDay(), H.m = 0, H.d = "W" in H ? (H.w + 6) % 7 + H.W * 7 - (Se + 5) % 7 : H.w + H.U * 7 - (Se + 6) % 7);
13604
13614
  return "Z" in H ? (H.H += H.Z / 100 | 0, H.M += H.Z % 100, jh(H)) : Uh(H);
13605
13615
  };
@@ -13877,7 +13887,7 @@ function xj(e, t) {
13877
13887
  return Ee(e.getUTCHours() % 12 || 12, t, 2);
13878
13888
  }
13879
13889
  function wj(e, t) {
13880
- return Ee(1 + _a.count(un(e), e), t, 3);
13890
+ return Ee(1 + Ca.count(un(e), e), t, 3);
13881
13891
  }
13882
13892
  function ak(e, t) {
13883
13893
  return Ee(e.getUTCMilliseconds(), t, 3);
@@ -14023,7 +14033,7 @@ function ck(e, t, r, n, i, o, a, s, l, c) {
14023
14033
  }, u;
14024
14034
  }
14025
14035
  function $j() {
14026
- return Ia.apply(ck(_G, IG, un, vd, gd, _a, md, Um, $o, lk).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
14036
+ return _a.apply(ck(_G, IG, un, vd, gd, Ca, md, Um, $o, lk).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
14027
14037
  }
14028
14038
  var _d = class {
14029
14039
  }, Wj = class extends _d {
@@ -14204,7 +14214,7 @@ var Jb = (e, t) => e && t ? "solo" : e ? "base" : t ? "tip" : "middle", jj = cla
14204
14214
  mapping: {}
14205
14215
  };
14206
14216
  }
14207
- }, Kj = class extends Ca {
14217
+ }, Kj = class extends Pa {
14208
14218
  constructor() {
14209
14219
  super("position"), this.register("identity", new zj()), this.register("stack", new Yj()), this.register("fill", new jj()), this.register("dodge", new Wj());
14210
14220
  }
@@ -14852,7 +14862,7 @@ var xz = class extends Id {
14852
14862
  generateTicks: () => []
14853
14863
  };
14854
14864
  }
14855
- }, Mz = class extends Ca {
14865
+ }, Mz = class extends Pa {
14856
14866
  constructor(e) {
14857
14867
  super("scale"), this.register("continuous", new gz(e)), this.register("discrete", new Sz()), this.register("datetime", new xz()), this.register("identity", new Tz());
14858
14868
  }
@@ -15361,7 +15371,6 @@ var Wz = {
15361
15371
  endArrowheadStyle: t.endArrowheadStyle ?? sx.endArrowheadStyle
15362
15372
  };
15363
15373
  }, i8 = {
15364
- parsingLocale: "en-US",
15365
15374
  legend: {
15366
15375
  position: "auto",
15367
15376
  display: "auto",
@@ -15426,8 +15435,11 @@ var Wz = {
15426
15435
  }
15427
15436
  }
15428
15437
  };
15429
- function o8(e, t) {
15430
- return uo({}, i8, t, e);
15438
+ function o8(e, t, r) {
15439
+ return {
15440
+ ...uo({}, i8, t, e),
15441
+ parsingLocale: r
15442
+ };
15431
15443
  }
15432
15444
  var a8 = {
15433
15445
  xLimits: null,
@@ -15725,7 +15737,7 @@ function A8(e, t) {
15725
15737
  layers: i,
15726
15738
  mapping: t.mapping,
15727
15739
  coords: r
15728
- }), a = o8(t.config, e.theme?.config), s = l8(e, t.highlights, i), l = Uz(e, t.annotations, i), c = Tk(t.styles);
15740
+ }), a = o8(t.config, e.theme?.config, t.data.parsingLocale), s = l8(e, t.highlights, i), l = Uz(e, t.annotations, i), c = Tk(t.styles);
15729
15741
  return {
15730
15742
  data: t.data,
15731
15743
  mapping: t.mapping,
@@ -16066,7 +16078,7 @@ var F8 = class extends po {
16066
16078
  geomColor: e.geomColor
16067
16079
  });
16068
16080
  }
16069
- }, H8 = new Rl(), G8 = new Set(f5), $8 = /* @__PURE__ */ new WeakMap(), W8 = /* @__PURE__ */ new WeakMap(), hx = {
16081
+ }, H8 = new Ll(), G8 = new Set(f5), $8 = /* @__PURE__ */ new WeakMap(), W8 = /* @__PURE__ */ new WeakMap(), hx = {
16070
16082
  stateless: 0,
16071
16083
  dimmed: 1,
16072
16084
  hovered: 2
@@ -16084,7 +16096,7 @@ var F8 = class extends po {
16084
16096
  ...K8(),
16085
16097
  warnings: i
16086
16098
  }, s = (l, c, u, d) => {
16087
- if (Dl(l) || !Bk(l.select, t)) return;
16099
+ if (Ol(l) || !Bk(l.select, t)) return;
16088
16100
  const h = l.id === void 0 ? {} : { styleEntryId: l.id }, f = l.select.target, p = X8(l.select);
16089
16101
  if (p.status === "unknown-target") {
16090
16102
  i.push({
@@ -16222,7 +16234,7 @@ var F8 = class extends po {
16222
16234
  const { layer: t, layerIndex: r, styles: n, parsingLocale: i, styleTarget: o, coord: a = "cartesian", theme: s, geomColor: l } = e, c = Gm(t, i), u = [], d = Hk(n, s, l), h = (p) => p === t.geom ? o : void 0, f = (p, m, g = "spec") => {
16223
16235
  const y = [];
16224
16236
  return p.forEach((x, w) => {
16225
- if (!Dl(x) || !Bk(x.select, a)) return;
16237
+ if (!Ol(x) || !Bk(x.select, a)) return;
16226
16238
  const S = x.select.kind;
16227
16239
  if (S !== void 0 && S !== t.geom || x.select.layer !== void 0 && x.select.layer !== t.id) return;
16228
16240
  const M = il(g, m, w);
@@ -16365,7 +16377,7 @@ var F8 = class extends po {
16365
16377
  }, q8 = (e, t) => {
16366
16378
  const r = e === "geom" ? H8.getAll().find((n) => n.styleTarget !== void 0 && pE(n.styleTarget)[t] !== void 0)?.type : e === "annotation" ? Object.entries(Te.annotation.children).find(([, n]) => n.vocabulary[t] !== void 0)?.[0] : void 0;
16367
16379
  return r === void 0 ? void 0 : `style.${e}.${r}`;
16368
- }, Dl = (e) => e.select.target === "geom", Q8 = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, Rk = (e, t, r, n) => {
16380
+ }, Ol = (e) => e.select.target === "geom", Q8 = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, Rk = (e, t, r, n) => {
16369
16381
  const i = e.get(r) ?? /* @__PURE__ */ new Map();
16370
16382
  e.set(r, i);
16371
16383
  const o = i.get(t);
@@ -16465,15 +16477,15 @@ var F8 = class extends po {
16465
16477
  });
16466
16478
  };
16467
16479
  if (xg.defaults.forEach((s, l) => {
16468
- Dl(s) && a(s.select, s.declarations, s.when?.state, `builtin[${l}]`);
16480
+ Ol(s) && a(s.select, s.declarations, s.when?.state, `builtin[${l}]`);
16469
16481
  }), t === void 0) return i;
16470
16482
  for (const s of tY(e, t)) a(s.select, s.declarations, s.when?.state, nY(e, s.select.part));
16471
16483
  return i.sort(rY);
16472
- }, il = (e, t, r) => `${e === "theme" ? "theme " : ""}${t}[${r}]`, Ol = (e, t, r) => {
16484
+ }, il = (e, t, r) => `${e === "theme" ? "theme " : ""}${t}[${r}]`, Nl = (e, t, r) => {
16473
16485
  e.defaults.forEach((n, i) => r(n, il(t, "defaults", i))), e.overrides.forEach((n, i) => r(n, il(t, "overrides", i)));
16474
16486
  }, oY = (e, t, r = "spec") => {
16475
16487
  const n = new Set(t.map((o) => o.id)), i = [];
16476
- return Ol(e, r, (o, a) => {
16488
+ return Nl(e, r, (o, a) => {
16477
16489
  const s = o.select;
16478
16490
  if (s.target !== "geom") return;
16479
16491
  const l = s.layer;
@@ -16490,7 +16502,7 @@ var F8 = class extends po {
16490
16502
  }), i;
16491
16503
  }, mx = (e, t, r = "spec") => {
16492
16504
  const n = new Map(Mk.flatMap((o) => t[bg[o]].map((a) => [a.id, o]))), i = [];
16493
- return Ol(e, r, (o, a) => {
16505
+ return Nl(e, r, (o, a) => {
16494
16506
  const s = o.select;
16495
16507
  if (s.target !== "annotation") return;
16496
16508
  const l = s.annotation;
@@ -16528,8 +16540,8 @@ var F8 = class extends po {
16528
16540
  }), i;
16529
16541
  }, aY = (e, t = "spec") => {
16530
16542
  const r = [];
16531
- return Ol(e, t, (n, i) => {
16532
- if (!Dl(n)) return;
16543
+ return Nl(e, t, (n, i) => {
16544
+ if (!Ol(n)) return;
16533
16545
  const o = n.when?.state;
16534
16546
  o === void 0 || Nk(o) || r.push({
16535
16547
  code: "INVALID_STYLE_RULE",
@@ -16548,7 +16560,7 @@ var F8 = class extends po {
16548
16560
  ...e.id === void 0 ? {} : { id: e.id }
16549
16561
  }), sY = (e, t = "spec") => {
16550
16562
  const r = [];
16551
- return Ol(e, t, (n, i) => {
16563
+ return Nl(e, t, (n, i) => {
16552
16564
  const o = n.select.coord;
16553
16565
  o === void 0 || Z0.includes(o) || r.push({
16554
16566
  code: "INVALID_STYLE_RULE",
@@ -16611,8 +16623,8 @@ var F8 = class extends po {
16611
16623
  const t = Y8(e);
16612
16624
  return (r, n = "spec") => {
16613
16625
  const i = [];
16614
- return Ol(r, n, (o, a) => {
16615
- if (!Dl(o)) return;
16626
+ return Nl(r, n, (o, a) => {
16627
+ if (!Ol(o)) return;
16616
16628
  const s = cY(o, a, e) ?? Fk(o, a, t);
16617
16629
  s !== void 0 && i.push(s);
16618
16630
  }), i;
@@ -16807,7 +16819,7 @@ var F8 = class extends po {
16807
16819
  };
16808
16820
  }
16809
16821
  }, vY = (e) => (t) => G(t) ? e.map(t) : null;
16810
- function yY(e = new Rl(), t, r = new _E()) {
16822
+ function yY(e = new Ll(), t, r = new _E()) {
16811
16823
  return {
16812
16824
  diagnostics: new c8(),
16813
16825
  geomRegistry: e,
@@ -17314,7 +17326,10 @@ var UY = {
17314
17326
  colorScheme: r
17315
17327
  });
17316
17328
  this.lastData = e.data;
17317
- const n = this.dataCompiler.compile(e.data), i = this.reResolveInferredScalesIfNeeded(e.spec.data, oc(e.spec, { data: n }));
17329
+ const n = this.dataCompiler.compile(e.data), i = this.reResolveInferredScalesIfNeeded(e.spec.data, Ja(e.spec, {
17330
+ data: n,
17331
+ config: Ja(e.spec.config, { parsingLocale: n.parsingLocale })
17332
+ }));
17318
17333
  return this.runPipeline({
17319
17334
  spec: i,
17320
17335
  colorScheme: r
@@ -17343,7 +17358,7 @@ var UY = {
17343
17358
  layers: t.layers,
17344
17359
  mapping: t.mapping
17345
17360
  });
17346
- return oc(t, { scales: rM(t.scales, (n) => {
17361
+ return Ja(t, { scales: rM(t.scales, (n) => {
17347
17362
  const i = n.inferredFrom;
17348
17363
  if (i === void 0) return n;
17349
17364
  const o = vg(r, i);
@@ -17378,7 +17393,7 @@ var UY = {
17378
17393
  }
17379
17394
  runPipeline({ spec: e, colorScheme: t }) {
17380
17395
  return {
17381
- ...cd({ spec: e }).pipe(({ spec: r }) => ({ spec: oc(r, { data: this.transformCompiler.compile({
17396
+ ...cd({ spec: e }).pipe(({ spec: r }) => ({ spec: Ja(r, { data: this.transformCompiler.compile({
17382
17397
  data: r.data,
17383
17398
  transforms: r.transforms
17384
17399
  }) }) })).pipe(({ spec: r }) => {
@@ -17386,7 +17401,7 @@ var UY = {
17386
17401
  data: r.data,
17387
17402
  mapping: r.mapping
17388
17403
  });
17389
- return { spec: oc(r, {
17404
+ return { spec: Ja(r, {
17390
17405
  data: n.data,
17391
17406
  mapping: n.mapping
17392
17407
  }) };
@@ -18260,7 +18275,7 @@ var Pt = {
18260
18275
  "group",
18261
18276
  "decimal",
18262
18277
  "fraction"
18263
- ]), Ra = (e, t) => {
18278
+ ]), Ia = (e, t) => {
18264
18279
  const r = zk(e, t), n = pc.get(r);
18265
18280
  if (n !== void 0) return n;
18266
18281
  pc.size >= Uk && pc.clear();
@@ -18282,7 +18297,7 @@ var Pt = {
18282
18297
  } catch {
18283
18298
  return;
18284
18299
  }
18285
- }, Rd = (e) => jk(e) ?? "en-GB", zk = (e, t) => `${e}\0${JSON.stringify(t)}`, JY = /* @__PURE__ */ GT(QY(), 1), e7 = JY.default.humanizer({
18300
+ }, Rd = (e) => jk(e) ?? "en-US", zk = (e, t) => `${e}\0${JSON.stringify(t)}`, JY = /* @__PURE__ */ GT(QY(), 1), e7 = JY.default.humanizer({
18286
18301
  language: "en",
18287
18302
  spacer: "",
18288
18303
  delimiter: " ",
@@ -18298,7 +18313,7 @@ var Pt = {
18298
18313
  } }
18299
18314
  }), Ld = { signDisplay: "negative" }, Yk = ({ valueFormat: e, locale: t, numberFormat: r, intlOptions: n }) => hi((i) => {
18300
18315
  const o = typeof r.decimals == "number" ? r.decimals : 2, a = Cg(i, o), { base: s, suffix: l } = Dd(i, r.abbreviation);
18301
- return kg(Ra(t, {
18316
+ return kg(Ia(t, {
18302
18317
  ...a,
18303
18318
  ...Ld,
18304
18319
  ...O1(e) ? {
@@ -18310,7 +18325,7 @@ var Pt = {
18310
18325
  }), s, l);
18311
18326
  }), Kk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => {
18312
18327
  const { base: i, suffix: o } = Dd(n, t.abbreviation);
18313
- return kg(Ra(e, {
18328
+ return kg(Ia(e, {
18314
18329
  ...Cg(i, t.decimals),
18315
18330
  ...Ld,
18316
18331
  ...r
@@ -18319,13 +18334,13 @@ var Pt = {
18319
18334
  const r = e7(Math.abs(t));
18320
18335
  return t < 0 ? `-${r}` : r;
18321
18336
  }), Xk = ({ locale: e, intlOptions: t }) => {
18322
- const r = Ra(e, {
18337
+ const r = Ia(e, {
18323
18338
  maximumFractionDigits: 0,
18324
18339
  ...Ld,
18325
18340
  ...t
18326
18341
  });
18327
18342
  return hi((n) => r.format(n));
18328
- }, qk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => Ra(e, {
18343
+ }, qk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => Ia(e, {
18329
18344
  ...Cg(n, t.decimals),
18330
18345
  ...Ld,
18331
18346
  ...r,
@@ -18457,9 +18472,9 @@ var Pt = {
18457
18472
  return Lg(n, e, i);
18458
18473
  }), Lg = (e, t, r) => {
18459
18474
  const { base: n, suffix: i } = Dd(e, c7(e, r));
18460
- return kg(Ra(t, r), n, i);
18475
+ return kg(Ia(t, r), n, i);
18461
18476
  }, c7 = (e, t) => {
18462
- const r = Ra("en-US", {
18477
+ const r = Ia("en-US", {
18463
18478
  ...t,
18464
18479
  notation: "compact"
18465
18480
  }).formatToParts(e).find((n) => n.type === "compact")?.value.toLowerCase();
@@ -18955,7 +18970,7 @@ function cP() {
18955
18970
  return j7 ??= Bg();
18956
18971
  }
18957
18972
  function z7(e) {
18958
- const t = new Rl();
18973
+ const t = new Ll();
18959
18974
  for (const r of e) {
18960
18975
  const n = Md(r);
18961
18976
  n instanceof pn && t.register(n.type, n);
@@ -19298,7 +19313,7 @@ var Kh = {
19298
19313
  label: e.tooltip.label().resolve(),
19299
19314
  value: e.tooltip.value().resolve(),
19300
19315
  primaryRow: e.tooltip.primaryRow().resolve()
19301
- }), Nl = (e) => ({
19316
+ }), Bl = (e) => ({
19302
19317
  item: e.legendItem().resolve(),
19303
19318
  swatch: e.legendItem.swatch().resolve()
19304
19319
  }), fP = (e) => {
@@ -20123,7 +20138,7 @@ var fp = [
20123
20138
  createLayerMeasurement: (r) => t.has(r.geom) ? MM(r, t.get(r.geom)) : null
20124
20139
  };
20125
20140
  }, Y9 = (e) => {
20126
- const t = new Rl();
20141
+ const t = new Ll();
20127
20142
  for (const r of e) {
20128
20143
  const n = Md(r);
20129
20144
  n instanceof pn && t.register(n.type, n);
@@ -20782,7 +20797,7 @@ var MK = ({ layers: e, coordSystem: t, axes: r, numberFormat: n, parsingLocale:
20782
20797
  }, HK = /* @__PURE__ */ new Set(["line", "rule"]), Hg = (e) => HK.has(e), AP = (e) => e === "transparent" || e === "none", GK = (e, t) => {
20783
20798
  const r = e.styles.colorPartVariable, n = r === void 0 ? void 0 : t?.[r];
20784
20799
  return typeof n == "string" ? n : void 0;
20785
- }, La = (e, t, r, n) => {
20800
+ }, Ra = (e, t, r, n) => {
20786
20801
  const i = e.geom(t), o = GK(t, r), a = o === void 0 ? void 0 : i.part(o);
20787
20802
  if (a !== void 0) {
20788
20803
  const l = a.get("fill", r, n) ?? a.get("stroke", r, n);
@@ -21592,7 +21607,7 @@ var wX = (function e(t) {
21592
21607
  return WX(s.declarations, n, r);
21593
21608
  }
21594
21609
  }, GX = (e) => e.state === void 0 && e.part === void 0, $X = (e, t, r) => e === void 0 ? !0 : t === null || r === void 0 ? !1 : Ms(e).every((n) => n === t) && jP(e, r), jP = (e, t) => "eq" in e ? Mr(e.eq, t) : "and" in e ? e.and.every((r) => jP(r, t)) : !1, WX = (e, t, r) => {
21595
- const n = e[t], i = Cl(n) ? Yn(n, r) : n;
21610
+ const n = e[t], i = _l(n) ? Yn(n, r) : n;
21596
21611
  return typeof i == "string" && !AP(i) ? i : void 0;
21597
21612
  }, rr = (e, t, r) => {
21598
21613
  const n = El(e, t);
@@ -21719,7 +21734,7 @@ function KX(e, t) {
21719
21734
  polar: Jx(e, n)
21720
21735
  };
21721
21736
  }
21722
- function Bl(e, t) {
21737
+ function Fl(e, t) {
21723
21738
  return e <= t.on.point;
21724
21739
  }
21725
21740
  function sl({ mainDistance: e, crossDistance: t }, r) {
@@ -21745,7 +21760,7 @@ function XX(e, t, r, n, i) {
21745
21760
  const a = o.find(t.x * r, t.y, n ?? void 0), s = e.points[a];
21746
21761
  if (!s) return null;
21747
21762
  const l = KP(e, s, t, r);
21748
- return i === void 0 || Bl(l.distance, i) || sl(l, i) ? l : ZX(e, t, r, i) ?? l;
21763
+ return i === void 0 || Fl(l.distance, i) || sl(l, i) ? l : ZX(e, t, r, i) ?? l;
21749
21764
  }
21750
21765
  function qX(e, t) {
21751
21766
  if (e.projection === "polar" || e.points.length === 0 || !e.delaunay || e.delaunayAspectRatio === null) return null;
@@ -23360,7 +23375,7 @@ function hw(e, t, r) {
23360
23375
  function yQ(e, t, r, n) {
23361
23376
  if (!sn(e.points)) return null;
23362
23377
  const i = ym(t, r), o = fw(e, hr(e.points, (s) => pC(s, i)), i);
23363
- if (n === void 0 || Bl(o.distance, n) || sl(o, n)) return o;
23378
+ if (n === void 0 || Fl(o.distance, n) || sl(o, n)) return o;
23364
23379
  const a = e.points.map((s) => fw(e, s, i)).filter((s) => sl(s, n));
23365
23380
  return sn(a) ? hr(a, (s) => s.crossDistance) : o;
23366
23381
  }
@@ -23442,7 +23457,7 @@ function wQ(e, t) {
23442
23457
  intersects: !0,
23443
23458
  onPoint: !1
23444
23459
  };
23445
- const r = AQ(e, t), n = e.kind === "buckets" && Bl(e.match.vertexDistance, r);
23460
+ const r = AQ(e, t), n = e.kind === "buckets" && Fl(e.match.vertexDistance, r);
23446
23461
  return {
23447
23462
  intersects: gC(e, r),
23448
23463
  onPoint: n
@@ -23462,14 +23477,14 @@ function gC(e, t) {
23462
23477
  case "buckets":
23463
23478
  return TQ(e.match, t);
23464
23479
  case "points":
23465
- return Bl(e.match.distance, t);
23480
+ return Fl(e.match.distance, t);
23466
23481
  }
23467
23482
  }
23468
23483
  function AQ(e, t) {
23469
23484
  return e.match.index.projection === "polar" ? t.polar : t.cartesian;
23470
23485
  }
23471
23486
  function TQ(e, t) {
23472
- return e.strokeDistance <= t.on.stroke ? !0 : Bl(e.vertexDistance, t);
23487
+ return e.strokeDistance <= t.on.stroke ? !0 : Fl(e.vertexDistance, t);
23473
23488
  }
23474
23489
  function pw(e, t) {
23475
23490
  return t === void 0 ? !1 : !gC(e, t) && !sl(e.match, t);
@@ -24334,7 +24349,7 @@ function yw(e, t, r, n, i) {
24334
24349
  const d = Vd(e.readers.geom, t, u.observation, xC), { label: h, qualifier: f } = SC(nv(t, u, e.resolveColorLabel), l, e.headingGroup), p = c(u.observation);
24335
24350
  return {
24336
24351
  row: {
24337
- swatchColor: La(e.readers, t, u.observation) ?? null,
24352
+ swatchColor: Ra(e.readers, t, u.observation) ?? null,
24338
24353
  geom: t.geom,
24339
24354
  swatchLineType: eK(pZ(e.readers, t, u.observation)),
24340
24355
  swatchFill: d.fill,
@@ -24362,7 +24377,7 @@ function SZ({ input: e, layer: t, field: r, hit: n, key: i, namesGroup: o, prima
24362
24377
  } : AZ(t, r, n, e);
24363
24378
  return {
24364
24379
  row: {
24365
- swatchColor: c ? La(e.readers, t, n.observation) ?? null : null,
24380
+ swatchColor: c ? Ra(e.readers, t, n.observation) ?? null : null,
24366
24381
  geom: t.geom,
24367
24382
  swatchLineType: "solid",
24368
24383
  swatchFill: l.fill,
@@ -25108,7 +25123,7 @@ var Oi = {
25108
25123
  }, ZZ = (e) => {
25109
25124
  const t = e.style ?? "normal", r = e.weight ?? 500, n = e.family.includes(",") ? e.family : `'${e.family}'`;
25110
25125
  return `${t} ${r} ${e.size}px ${n}`;
25111
- }, IC = (e) => typeof e != "string" ? e ?? 500 : Oi[e], Da = (e, t) => {
25126
+ }, IC = (e) => typeof e != "string" ? e ?? 500 : Oi[e], La = (e, t) => {
25112
25127
  switch (t) {
25113
25128
  case "uppercase":
25114
25129
  return e.toUpperCase();
@@ -25239,7 +25254,7 @@ var Oi = {
25239
25254
  };
25240
25255
  var tJ = 1.05, rJ = 0.84, nJ = 0.21, iJ = class {
25241
25256
  measureText(e, t) {
25242
- const r = Da(e, t.textTransform);
25257
+ const r = La(e, t.textTransform);
25243
25258
  let n = RC(r, t.letterSpacing);
25244
25259
  for (const a of r) n += (eJ[a] ?? 0.55) * t.size;
25245
25260
  IC(t.weight) >= Oi.semiBold && (n *= tJ);
@@ -25330,7 +25345,7 @@ var _w = (e) => {
25330
25345
  subscribe: (c) => (r.add(c), () => r.delete(c))
25331
25346
  }, l = t = e(n, i, s);
25332
25347
  return s;
25333
- }, Oa = ((e) => e ? _w(e) : _w), pJ = (e) => e;
25348
+ }, Da = ((e) => e ? _w(e) : _w), pJ = (e) => e;
25334
25349
  function _n(e, t = pJ) {
25335
25350
  const r = ds.useSyncExternalStore(e.subscribe, ds.useCallback(() => t(e.getState()), [e, t]), ds.useCallback(() => t(e.getInitialState()), [e, t]));
25336
25351
  return ds.useDebugValue(r), r;
@@ -25342,14 +25357,14 @@ var ov = De(null), ct = () => {
25342
25357
  }, ge = (e) => {
25343
25358
  const { store: t } = ct();
25344
25359
  return _n(t, (r) => e(r.scene));
25345
- }, Fl = (e, t, r) => e.get("alpha", t, r) * e.get("fillAlpha", t, r), av = (e, t) => {
25360
+ }, Vl = (e, t, r) => e.get("alpha", t, r) * e.get("fillAlpha", t, r), av = (e, t) => {
25346
25361
  const r = _f(e);
25347
25362
  let n = t.get(r);
25348
25363
  return n === void 0 && (n = zT(e), t.set(r, n)), n;
25349
- }, Na = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, mJ = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, bo = (e) => {
25364
+ }, Oa = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, mJ = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, bo = (e) => {
25350
25365
  if (e !== "none")
25351
25366
  return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
25352
- }, Vl = De(null), Iw = [
25367
+ }, Hl = De(null), Iw = [
25353
25368
  "shadow",
25354
25369
  "blendMode",
25355
25370
  "alpha",
@@ -25380,7 +25395,7 @@ var ov = De(null), ct = () => {
25380
25395
  if (!Iw.filter((c) => !l.includes(c)).some((c) => !a(r, c)))
25381
25396
  return l.length === 0 || e.data.findFirst((c) => l.some((u) => !a(c, u))) === null ? i : void 0;
25382
25397
  }, [e, t]), gJ = (e, t) => {
25383
- const r = ae(Vl), n = r?.layerId === e.id && r.paintsShadow;
25398
+ const r = ae(Hl), n = r?.layerId === e.id && r.paintsShadow;
25384
25399
  return V(() => n ? xJ(t) : t, [n, t]);
25385
25400
  }, vJ = (e) => {
25386
25401
  const t = /* @__PURE__ */ new Set();
@@ -25409,13 +25424,13 @@ var ov = De(null), ct = () => {
25409
25424
  return r === void 0 ? null : t(r);
25410
25425
  }, BC = (e) => {
25411
25426
  const t = xo(), r = ge((n) => n.layers).find((n) => n.id === e.layerId);
25412
- return r === void 0 ? void 0 : La({ geom: t }, r, e.observation);
25427
+ return r === void 0 ? void 0 : Ra({ geom: t }, r, e.observation);
25413
25428
  }, wJ = () => {
25414
25429
  const e = xo(), t = ge((r) => r.layers);
25415
25430
  return V(() => (r) => {
25416
25431
  const n = SP(t, r);
25417
25432
  if (n !== null)
25418
- return La({ geom: e }, n.layer, n.observation);
25433
+ return Ra({ geom: e }, n.layer, n.observation);
25419
25434
  }, [t, e]);
25420
25435
  }, SJ = (e) => {
25421
25436
  const t = xo(), r = ge((n) => n.layers);
@@ -25427,7 +25442,7 @@ var ov = De(null), ct = () => {
25427
25442
  height: e
25428
25443
  });
25429
25444
  return {
25430
- color: La({ geom: t }, i.layer, i.observation),
25445
+ color: Ra({ geom: t }, i.layer, i.observation),
25431
25446
  fill: o.fill,
25432
25447
  alpha: o.alpha,
25433
25448
  cornerRadius: o.cornerRadiusPx,
@@ -25445,15 +25460,15 @@ var ov = De(null), ct = () => {
25445
25460
  centerX: 0,
25446
25461
  centerY: 0,
25447
25462
  radius: 1
25448
- }, Ba = (e) => {
25463
+ }, Na = (e) => {
25449
25464
  const t = Math.min(e.width, e.height);
25450
25465
  return {
25451
25466
  centerX: (e.width - t) / 2 + t / 2,
25452
25467
  centerY: (e.height - t) / 2 + t / 2,
25453
25468
  radius: t / 2
25454
25469
  };
25455
- }, Hl = (e) => {
25456
- const { radius: t } = Ba(e), r = t > 0 ? 1 / t : 1;
25470
+ }, Gl = (e) => {
25471
+ const { radius: t } = Na(e), r = t > 0 ? 1 / t : 1;
25457
25472
  return {
25458
25473
  x: r,
25459
25474
  y: r
@@ -25498,7 +25513,7 @@ function UC(e) {
25498
25513
  let t;
25499
25514
  return () => (t === void 0 && (t = e()), t);
25500
25515
  }
25501
- var dr = /* @__NO_SIDE_EFFECTS__ */ (e) => e, TJ = (e, t) => (r) => t(e(r)), Gl = (...e) => e.reduce(TJ), wa = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
25516
+ var dr = /* @__NO_SIDE_EFFECTS__ */ (e) => e, TJ = (e, t) => (r) => t(e(r)), $l = (...e) => e.reduce(TJ), wa = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
25502
25517
  const n = t - e;
25503
25518
  return n === 0 ? 1 : (r - e) / n;
25504
25519
  }, cv = class {
@@ -25538,12 +25553,12 @@ function PJ(e, t, r, n, i) {
25538
25553
  while (Math.abs(o) > EJ && ++s < kJ);
25539
25554
  return a;
25540
25555
  }
25541
- function $l(e, t, r, n) {
25556
+ function Wl(e, t, r, n) {
25542
25557
  if (e === t && r === n) return dr;
25543
25558
  const i = (o) => PJ(o, 0, 1, e, r);
25544
25559
  return (o) => o === 0 || o === 1 ? o : zC(i(o), t, n);
25545
25560
  }
25546
- var YC = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, KC = (e) => (t) => 1 - e(1 - t), XC = /* @__PURE__ */ $l(0.33, 1.53, 0.69, 0.99), uv = /* @__PURE__ */ KC(XC), qC = /* @__PURE__ */ YC(uv), QC = (e) => (e *= 2) < 1 ? 0.5 * uv(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), dv = (e) => 1 - Math.sin(Math.acos(e)), ZC = KC(dv), JC = YC(dv), CJ = /* @__PURE__ */ $l(0.42, 0, 1, 1), _J = /* @__PURE__ */ $l(0, 0, 0.58, 1), e_ = /* @__PURE__ */ $l(0.42, 0, 0.58, 1), t_ = (e) => Array.isArray(e) && typeof e[0] != "number";
25561
+ var YC = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, KC = (e) => (t) => 1 - e(1 - t), XC = /* @__PURE__ */ Wl(0.33, 1.53, 0.69, 0.99), uv = /* @__PURE__ */ KC(XC), qC = /* @__PURE__ */ YC(uv), QC = (e) => (e *= 2) < 1 ? 0.5 * uv(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), dv = (e) => 1 - Math.sin(Math.acos(e)), ZC = KC(dv), JC = YC(dv), CJ = /* @__PURE__ */ Wl(0.42, 0, 1, 1), _J = /* @__PURE__ */ Wl(0, 0, 0.58, 1), e_ = /* @__PURE__ */ Wl(0.42, 0, 0.58, 1), t_ = (e) => Array.isArray(e) && typeof e[0] != "number";
25547
25562
  function r_(e, t) {
25548
25563
  return t_(e) ? e[MJ(0, e.length, t)] : e;
25549
25564
  }
@@ -25563,7 +25578,7 @@ var n_ = (e) => Array.isArray(e) && typeof e[0] == "number", Rw = {
25563
25578
  if (n_(e)) {
25564
25579
  si(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
25565
25580
  const [t, r, n, i] = e;
25566
- return $l(t, r, n, i);
25581
+ return Wl(t, r, n, i);
25567
25582
  } else if (IJ(e))
25568
25583
  return si(Rw[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Rw[e];
25569
25584
  return e;
@@ -25651,15 +25666,15 @@ var Rt = {
25651
25666
  function Dw(e) {
25652
25667
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
25653
25668
  }
25654
- var Fa = {
25669
+ var Ba = {
25655
25670
  test: (e) => typeof e == "number",
25656
25671
  parse: parseFloat,
25657
25672
  transform: (e) => e
25658
25673
  }, ul = {
25659
- ...Fa,
25674
+ ...Ba,
25660
25675
  transform: (e) => dn(0, 1, e)
25661
25676
  }, Ec = {
25662
- ...Fa,
25677
+ ...Ba,
25663
25678
  default: 1
25664
25679
  }, Cs = (e) => Math.round(e * 1e5) / 1e5, fv = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
25665
25680
  function BJ(e) {
@@ -25675,7 +25690,7 @@ var FJ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(
25675
25690
  alpha: s !== void 0 ? parseFloat(s) : 1
25676
25691
  };
25677
25692
  }, VJ = (e) => dn(0, 255, e), nf = {
25678
- ...Fa,
25693
+ ...Ba,
25679
25694
  transform: (e) => Math.round(VJ(e))
25680
25695
  }, Vi = {
25681
25696
  test: /* @__PURE__ */ pv("rgb", "red"),
@@ -25695,11 +25710,11 @@ var Tp = {
25695
25710
  test: /* @__PURE__ */ pv("#"),
25696
25711
  parse: HJ,
25697
25712
  transform: Vi.transform
25698
- }, Wl = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
25713
+ }, Ul = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
25699
25714
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
25700
25715
  parse: parseFloat,
25701
25716
  transform: (t) => `${t}${e}`
25702
- }), Hn = /* @__PURE__ */ Wl("deg"), on = /* @__PURE__ */ Wl("%"), Q = /* @__PURE__ */ Wl("px"), GJ = /* @__PURE__ */ Wl("vh"), $J = /* @__PURE__ */ Wl("vw"), Ow = {
25717
+ }), Hn = /* @__PURE__ */ Ul("deg"), on = /* @__PURE__ */ Ul("%"), Q = /* @__PURE__ */ Ul("px"), GJ = /* @__PURE__ */ Ul("vh"), $J = /* @__PURE__ */ Ul("vw"), Ow = {
25703
25718
  ...on,
25704
25719
  parse: (e) => on.parse(e) / 100,
25705
25720
  transform: (e) => on.transform(e * 100)
@@ -25842,7 +25857,7 @@ function ree(e, t) {
25842
25857
  }
25843
25858
  var nee = (e, t) => {
25844
25859
  const r = Er.createTransformer(t), n = dl(e), i = dl(t);
25845
- return n.indexes.var.length === i.indexes.var.length && n.indexes.color.length === i.indexes.color.length && n.indexes.number.length >= i.indexes.number.length ? Mp.has(e) && !i.values.length || Mp.has(t) && !n.values.length ? JJ(e, t) : Gl(h_(ree(n, i), i.values), r) : (Wd(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pu(e, t));
25860
+ return n.indexes.var.length === i.indexes.var.length && n.indexes.color.length === i.indexes.color.length && n.indexes.number.length >= i.indexes.number.length ? Mp.has(e) && !i.values.length || Mp.has(t) && !n.values.length ? JJ(e, t) : $l(h_(ree(n, i), i.values), r) : (Wd(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pu(e, t));
25846
25861
  };
25847
25862
  function f_(e, t, r) {
25848
25863
  return typeof e == "number" && typeof t == "number" && typeof r == "number" ? $e(e, t, r) : mv(e)(e, t);
@@ -26067,7 +26082,7 @@ function hee(e, t, r) {
26067
26082
  const n = [], i = r || In.mix || f_, o = e.length - 1;
26068
26083
  for (let a = 0; a < o; a++) {
26069
26084
  let s = i(e[a], e[a + 1]);
26070
- t && (s = Gl(Array.isArray(t) ? t[a] || dr : t, s)), n.push(s);
26085
+ t && (s = $l(Array.isArray(t) ? t[a] || dr : t, s)), n.push(s);
26071
26086
  }
26072
26087
  return n;
26073
26088
  }
@@ -26160,7 +26175,7 @@ var yv = class {
26160
26175
  const { type: t = _s, repeat: r = 0, repeatDelay: n = 0, repeatType: i, velocity: o = 0 } = e;
26161
26176
  let { keyframes: a } = e;
26162
26177
  const s = t || _s;
26163
- s !== _s && typeof a[0] != "number" && (this.mixKeyframes = Gl(vee, f_(a[0], a[1])), a = [0, 100]);
26178
+ s !== _s && typeof a[0] != "number" && (this.mixKeyframes = $l(vee, f_(a[0], a[1])), a = [0, 100]);
26164
26179
  const l = s({
26165
26180
  ...e,
26166
26181
  keyframes: a
@@ -26317,7 +26332,7 @@ var wee = (e, t) => {
26317
26332
  function See(e) {
26318
26333
  return parseFloat(e.trim());
26319
26334
  }
26320
- var Va = [
26335
+ var Fa = [
26321
26336
  "transformPerspective",
26322
26337
  "x",
26323
26338
  "y",
@@ -26335,11 +26350,11 @@ var Va = [
26335
26350
  "skew",
26336
26351
  "skewX",
26337
26352
  "skewY"
26338
- ], Ha = new Set(Va), Uw = (e) => e === Fa || e === Q, Aee = /* @__PURE__ */ new Set([
26353
+ ], Va = new Set(Fa), Uw = (e) => e === Ba || e === Q, Aee = /* @__PURE__ */ new Set([
26339
26354
  "x",
26340
26355
  "y",
26341
26356
  "z"
26342
- ]), Tee = Va.filter((e) => !Aee.has(e));
26357
+ ]), Tee = Fa.filter((e) => !Aee.has(e));
26343
26358
  function Mee(e) {
26344
26359
  const t = [];
26345
26360
  return Tee.forEach((r) => {
@@ -26830,7 +26845,7 @@ var Kee = {
26830
26845
  1
26831
26846
  ],
26832
26847
  duration: 0.3
26833
- }, Zee = (e, { keyframes: t }) => t.length > 2 ? qee : Ha.has(e) ? e.startsWith("scale") ? Xee(t[1]) : Kee : Qee, Jee = (e) => e !== null;
26848
+ }, Zee = (e, { keyframes: t }) => t.length > 2 ? qee : Va.has(e) ? e.startsWith("scale") ? Xee(t[1]) : Kee : Qee, Jee = (e) => e !== null;
26834
26849
  function ete(e, { repeat: t, repeatType: r = "loop" }, n) {
26835
26850
  const i = e.filter(Jee), o = t && r !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
26836
26851
  return !o || n === void 0 ? i[o] : n;
@@ -26913,7 +26928,7 @@ var R_ = /* @__PURE__ */ new Set([
26913
26928
  "left",
26914
26929
  "right",
26915
26930
  "bottom",
26916
- ...Va
26931
+ ...Fa
26917
26932
  ]), Xw = 30, rte = (e) => !isNaN(parseFloat(e)), Is = { current: void 0 }, nte = class {
26918
26933
  constructor(e, t = {}) {
26919
26934
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r) => {
@@ -27115,7 +27130,7 @@ var hte = {
27115
27130
  test: (e) => e === "auto",
27116
27131
  parse: (e) => e
27117
27132
  }, O_ = (e) => (t) => t.test(e), N_ = [
27118
- Fa,
27133
+ Ba,
27119
27134
  Q,
27120
27135
  on,
27121
27136
  Hn,
@@ -27157,7 +27172,7 @@ var gte = /\b([a-z-]*)\(.*?\)/gu, Vp = {
27157
27172
  } : r));
27158
27173
  }
27159
27174
  }, Qw = {
27160
- ...Fa,
27175
+ ...Ba,
27161
27176
  transform: Math.round
27162
27177
  }, vte = {
27163
27178
  rotate: Hn,
@@ -27665,7 +27680,7 @@ var K_ = class {
27665
27680
  });
27666
27681
  return;
27667
27682
  }
27668
- const r = Ha.has(e);
27683
+ const r = Va.has(e);
27669
27684
  r && this.onBindTransform && this.onBindTransform();
27670
27685
  const n = t.on("change", (o) => {
27671
27686
  this.latestValues[e] = o, this.props.onUpdate && Ne.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -27904,11 +27919,11 @@ var Zte = {
27904
27919
  y: "translateY",
27905
27920
  z: "translateZ",
27906
27921
  transformPerspective: "perspective"
27907
- }, Jte = Va.length;
27922
+ }, Jte = Fa.length;
27908
27923
  function ere(e, t, r) {
27909
27924
  let n = "", i = !0;
27910
27925
  for (let o = 0; o < Jte; o++) {
27911
- const a = Va[o], s = e[a];
27926
+ const a = Fa[o], s = e[a];
27912
27927
  if (s === void 0) continue;
27913
27928
  let l = !0;
27914
27929
  if (typeof s == "number") l = s === (a.startsWith("scale") ? 1 : 0);
@@ -27933,7 +27948,7 @@ function Dv(e, t, r) {
27933
27948
  let a = !1, s = !1;
27934
27949
  for (const l in t) {
27935
27950
  const c = t[l];
27936
- if (Ha.has(l)) {
27951
+ if (Va.has(l)) {
27937
27952
  a = !0;
27938
27953
  continue;
27939
27954
  } else if (a_(l)) {
@@ -27988,7 +28003,7 @@ var ss = { correct: (e, t) => {
27988
28003
  boxShadow: tre
27989
28004
  };
27990
28005
  function tI(e, { layout: t, layoutId: r }) {
27991
- return Ha.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!Wp[e] || e === "opacity");
28006
+ return Va.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!Wp[e] || e === "opacity");
27992
28007
  }
27993
28008
  function Ov(e, t, r) {
27994
28009
  const n = e.style, i = t?.style, o = {};
@@ -28004,7 +28019,7 @@ var rI = class extends X_ {
28004
28019
  super(...arguments), this.type = "html", this.renderInstance = eI;
28005
28020
  }
28006
28021
  readValueFromInstance(e, t) {
28007
- if (Ha.has(t)) return this.projection?.isProjecting ? _p(t) : wee(e, t);
28022
+ if (Va.has(t)) return this.projection?.isProjecting ? _p(t) : wee(e, t);
28008
28023
  {
28009
28024
  const r = rre(e), n = (a_(t) ? r.getPropertyValue(t) : r[t]) || 0;
28010
28025
  return typeof n == "string" ? n.trim() : n;
@@ -28111,7 +28126,7 @@ function cre(e, t, r, n) {
28111
28126
  function aI(e, t, r) {
28112
28127
  const n = Ov(e, t, r);
28113
28128
  for (const i in e) if (pt(e[i]) || pt(t[i])) {
28114
- const o = Va.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
28129
+ const o = Fa.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
28115
28130
  n[o] = e[i];
28116
28131
  }
28117
28132
  return n;
@@ -28124,7 +28139,7 @@ var sI = class extends X_ {
28124
28139
  return e[t];
28125
28140
  }
28126
28141
  readValueFromInstance(e, t) {
28127
- if (Ha.has(t)) {
28142
+ if (Va.has(t)) {
28128
28143
  const r = B_(t);
28129
28144
  return r && r.default || 0;
28130
28145
  }
@@ -29534,13 +29549,13 @@ var Pne = (e, t) => t.isSVG ?? Fv(e) ? new sI(t) : new rI(t, { allowProjection:
29534
29549
  animation: { Feature: Cne },
29535
29550
  exit: { Feature: Ine }
29536
29551
  };
29537
- function Ul(e) {
29552
+ function jl(e) {
29538
29553
  return { point: {
29539
29554
  x: e.pageX,
29540
29555
  y: e.pageY
29541
29556
  } };
29542
29557
  }
29543
- var Lne = (e) => (t) => _v(t) && e(t, Ul(t));
29558
+ var Lne = (e) => (t) => _v(t) && e(t, jl(t));
29544
29559
  function Ls(e, t, r, n) {
29545
29560
  return ml(e, t, Lne(r), n);
29546
29561
  }
@@ -29579,13 +29594,13 @@ var HS = /* @__PURE__ */ new Set(["auto", "scroll"]), PI = class {
29579
29594
  this.startEvent && f && f(d, g), p && p(d, g);
29580
29595
  }, !_v(e)) return;
29581
29596
  this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = r, this.distanceThreshold = o, this.contextWindow = n || window;
29582
- const s = pf(Ul(e), this.transformPagePoint), { point: l } = s, { timestamp: c } = bt;
29597
+ const s = pf(jl(e), this.transformPagePoint), { point: l } = s, { timestamp: c } = bt;
29583
29598
  this.history = [{
29584
29599
  ...l,
29585
29600
  timestamp: c
29586
29601
  }];
29587
29602
  const { onSessionStart: u } = t;
29588
- u && u(e, mf(s, this.history)), this.removeListeners = Gl(Ls(this.contextWindow, "pointermove", this.handlePointerMove), Ls(this.contextWindow, "pointerup", this.handlePointerUp), Ls(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
29603
+ u && u(e, mf(s, this.history)), this.removeListeners = $l(Ls(this.contextWindow, "pointermove", this.handlePointerMove), Ls(this.contextWindow, "pointerup", this.handlePointerUp), Ls(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
29589
29604
  }
29590
29605
  startScrollTracking(e) {
29591
29606
  let t = e.parentElement;
@@ -29740,7 +29755,7 @@ var Wne = /* @__PURE__ */ new WeakMap(), Une = class {
29740
29755
  const { presenceContext: n } = this.visualElement;
29741
29756
  if (n && n.isPresent === !1) return;
29742
29757
  const i = (u) => {
29743
- t && this.snapToCursor(Ul(u).point), this.stopAnimation();
29758
+ t && this.snapToCursor(jl(u).point), this.stopAnimation();
29744
29759
  }, o = (u, d) => {
29745
29760
  const { drag: h, dragPropagation: f, onDragStart: p } = this.getProps();
29746
29761
  if (h && !f && (this.openDragLock && this.openDragLock(), this.openDragLock = Mte(h), !this.openDragLock))
@@ -30075,7 +30090,7 @@ function YS(e, t, r) {
30075
30090
  const { props: n } = e;
30076
30091
  e.animationState && n.whileHover && e.animationState.setActive("whileHover", r === "Start");
30077
30092
  const i = n["onHover" + r];
30078
- i && Ne.postRender(() => i(t, Ul(t)));
30093
+ i && Ne.postRender(() => i(t, jl(t)));
30079
30094
  }
30080
30095
  var Qne = class extends pi {
30081
30096
  mount() {
@@ -30101,7 +30116,7 @@ var Qne = class extends pi {
30101
30116
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
30102
30117
  }
30103
30118
  mount() {
30104
- this.unmount = Gl(ml(this.node.current, "focus", () => this.onFocus()), ml(this.node.current, "blur", () => this.onBlur()));
30119
+ this.unmount = $l(ml(this.node.current, "focus", () => this.onFocus()), ml(this.node.current, "blur", () => this.onBlur()));
30105
30120
  }
30106
30121
  unmount() {
30107
30122
  }
@@ -30111,7 +30126,7 @@ function KS(e, t, r) {
30111
30126
  if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
30112
30127
  e.animationState && n.whileTap && e.animationState.setActive("whileTap", r === "Start");
30113
30128
  const i = n["onTap" + (r === "End" ? "" : r)];
30114
- i && Ne.postRender(() => i(t, Ul(t)));
30129
+ i && Ne.postRender(() => i(t, jl(t)));
30115
30130
  }
30116
30131
  var Jne = class extends pi {
30117
30132
  mount() {
@@ -30613,7 +30628,7 @@ var DI = De(/* @__PURE__ */ new Map()), vs = /* @__PURE__ */ new Map(), Ds = [],
30613
30628
  strokeWidth: a === void 0 ? void 0 : a / h
30614
30629
  })
30615
30630
  });
30616
- }, jl = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity: o, opacity: a, stroke: s, strokeOpacity: l, strokeWidth: c, style: u, motion: d, "data-testid": h }) => {
30631
+ }, zl = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity: o, opacity: a, stroke: s, strokeOpacity: l, strokeWidth: c, style: u, motion: d, "data-testid": h }) => {
30617
30632
  const f = Kd(), p = {
30618
30633
  fill: i,
30619
30634
  fillOpacity: o,
@@ -30739,7 +30754,7 @@ var DI = De(/* @__PURE__ */ new Map()), vs = /* @__PURE__ */ new Map(), Ds = [],
30739
30754
  const r = NC(e.layerId), n = BC(e) ?? yd;
30740
30755
  if (!e.anchored) return null;
30741
30756
  const i = (cg(e.observation) ?? 1) * zie, o = r?.get("size", e.observation) ?? 8, a = r?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = t(e.x, e.y);
30742
- return /* @__PURE__ */ v(jl, {
30757
+ return /* @__PURE__ */ v(zl, {
30743
30758
  symbol: r?.get("symbol", e.observation) ?? "circle",
30744
30759
  cx: Z(s.x),
30745
30760
  cy: Z(s.y),
@@ -31310,7 +31325,7 @@ var Nu = (e, t, r) => {
31310
31325
  }, jI = {}, zI = De(jI), boe = {
31311
31326
  x: 1,
31312
31327
  y: 1
31313
- }, gl = De(null), zl = ({ shapes: e = jI, children: t }) => /* @__PURE__ */ v(zI.Provider, {
31328
+ }, gl = De(null), Yl = ({ shapes: e = jI, children: t }) => /* @__PURE__ */ v(zI.Provider, {
31314
31329
  value: e,
31315
31330
  children: t
31316
31331
  }), Qd = () => ae(zI), YI = ({ size: e, children: t }) => {
@@ -31341,21 +31356,21 @@ var Nu = (e, t, r) => {
31341
31356
  value: i,
31342
31357
  children: r
31343
31358
  });
31344
- }, Yl = () => ae(gl)?.viewport ?? null, Zd = () => {
31345
- const e = Yl();
31359
+ }, Kl = () => ae(gl)?.viewport ?? null, Zd = () => {
31360
+ const e = Kl();
31346
31361
  return e?.space === "pixels" ? e.size : null;
31347
31362
  }, Nr = () => {
31348
31363
  const e = ae(gl);
31349
31364
  if (e === null) throw new Error("useGeomPanelSize ran outside a geom layer.");
31350
31365
  return e.panel.size;
31351
31366
  }, xoe = () => {
31352
- const e = Yl();
31367
+ const e = Kl();
31353
31368
  return e?.space !== "unit" ? boe : {
31354
31369
  x: e.size.width,
31355
31370
  y: e.size.height
31356
31371
  };
31357
31372
  }, mn = ({ effects: e, children: t, ...r }) => {
31358
- const n = Yl()?.size ?? null, i = r.viewBox === "0 0 1 1" && r.preserveAspectRatio === "none";
31373
+ const n = Kl()?.size ?? null, i = r.viewBox === "0 0 1 1" && r.preserveAspectRatio === "none";
31359
31374
  return /* @__PURE__ */ v("g", {
31360
31375
  style: e,
31361
31376
  children: /* @__PURE__ */ v("svg", {
@@ -31436,7 +31451,7 @@ var Nu = (e, t, r) => {
31436
31451
  lineCap: l,
31437
31452
  lineJoin: c,
31438
31453
  animateTransitions: u
31439
- }), KI = 1, Aoe = 0.4, Toe = 0.2, Moe = 1, Eoe = 0.5, koe = 2.25, Ga = ({ hit: e, project: t = io, ...r }) => {
31454
+ }), KI = 1, Aoe = 0.4, Toe = 0.2, Moe = 1, Eoe = 0.5, koe = 2.25, Ha = ({ hit: e, project: t = io, ...r }) => {
31440
31455
  const n = NC(e.layerId), i = BC(e) ?? yd;
31441
31456
  if (!e.anchored) return null;
31442
31457
  const o = cg(e.observation) ?? 1, a = n?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = n?.get("symbol", e.observation) ?? "circle", l = t(e.x, e.y), c = Z(l.x), u = Z(l.y), d = Poe(e.observation, n), h = ei(s) ? TX(s, d * 2) : d * Math.SQRT2, { strokeRadius: f, strokeWidth: p } = Coe(d, h), m = n ? et(wt(n, e.observation, "hovered")) : void 0;
@@ -31450,7 +31465,7 @@ var Nu = (e, t, r) => {
31450
31465
  fill: "none",
31451
31466
  stroke: a,
31452
31467
  strokeWidth: p
31453
- }), /* @__PURE__ */ v(jl, {
31468
+ }), /* @__PURE__ */ v(zl, {
31454
31469
  symbol: s,
31455
31470
  cx: c,
31456
31471
  cy: u,
@@ -31519,7 +31534,7 @@ var Nu = (e, t, r) => {
31519
31534
  })]
31520
31535
  }),
31521
31536
  n.map((x) => /* @__PURE__ */ v(mi, { hit: x }, `companion-${x.layerId}-${x.pointIndex}`)),
31522
- /* @__PURE__ */ v(Ga, {
31537
+ /* @__PURE__ */ v(Ha, {
31523
31538
  hit: r,
31524
31539
  "data-testid": "hovered-area-point"
31525
31540
  })
@@ -31606,7 +31621,7 @@ var sA = "\0", qI = (e, t) => {
31606
31621
  height: i
31607
31622
  } : null);
31608
31623
  }, r.onerror = () => t(null), r.src = e;
31609
- }), $a = (e) => {
31624
+ }), Ga = (e) => {
31610
31625
  const t = [...new Set(e.map(lA).filter((a) => a !== void 0))].join(sA), [r, n] = be(() => /* @__PURE__ */ new Map()), i = de(/* @__PURE__ */ new Set()), o = de(/* @__PURE__ */ new Set());
31611
31626
  return fe(() => () => {
31612
31627
  i.current = /* @__PURE__ */ new Set();
@@ -31673,7 +31688,7 @@ var Doe = 1 / 3, Ooe = {
31673
31688
  t ^= e.charCodeAt(r), t = Math.imul(t, 16777619);
31674
31689
  return (t >>> 0).toString(36);
31675
31690
  }, Foe = ({ entries: e, unitsPerPixel: t, origin: r }) => {
31676
- const n = $a(e.map(({ paint: i }) => i));
31691
+ const n = Ga(e.map(({ paint: i }) => i));
31677
31692
  return e.length === 0 ? null : /* @__PURE__ */ v("defs", { children: e.map(({ id: i, paint: o }) => /* @__PURE__ */ v(Voe, {
31678
31693
  id: i,
31679
31694
  paint: o,
@@ -32092,7 +32107,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32092
32107
  t,
32093
32108
  n
32094
32109
  ]);
32095
- }, Kl = (e, t) => V(() => {
32110
+ }, Xl = (e, t) => V(() => {
32096
32111
  const r = Array.from(e.data, (i) => t.get("fill", i));
32097
32112
  return {
32098
32113
  paints: r,
@@ -32277,7 +32292,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32277
32292
  width: e.width,
32278
32293
  height: 0
32279
32294
  }, vae = Jt(function({ layer: t, coordSystem: r, animateTransitions: n, intro: i }) {
32280
- const o = Oe(t), a = Yv(), s = nh(i?.type === "grow" && (i.growAxis === "x" || i.growAxis === "y") ? i : null, n), { paints: l, paintAt: c } = Kl(t, o), { fillFor: u, defs: d } = gr({
32295
+ const o = Oe(t), a = Yv(), s = nh(i?.type === "grow" && (i.growAxis === "x" || i.growAxis === "y") ? i : null, n), { paints: l, paintAt: c } = Xl(t, o), { fillFor: u, defs: d } = gr({
32281
32296
  paints: l,
32282
32297
  origin: zv(t, r)
32283
32298
  }), { mainAxis: h } = r, f = V(() => {
@@ -32287,7 +32302,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32287
32302
  mainAxis: h,
32288
32303
  styleReaders: o,
32289
32304
  buildSegment: (g, y, x) => {
32290
- const w = c(x), S = Fl(o, g);
32305
+ const w = c(x), S = Vl(o, g);
32291
32306
  return {
32292
32307
  key: m(g),
32293
32308
  ...y,
@@ -32655,7 +32670,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32655
32670
  }, l));
32656
32671
  }) })] });
32657
32672
  }, _ae = (e, t, r) => {
32658
- const { mainAxis: n } = r, i = Yv(), o = Oe(t), a = jv(t, n, o, i), { paints: s, paintAt: l } = Kl(e, o), { fillFor: c, defs: u } = gr({
32673
+ const { mainAxis: n } = r, i = Yv(), o = Oe(t), a = jv(t, n, o, i), { paints: s, paintAt: l } = Xl(e, o), { fillFor: c, defs: u } = gr({
32659
32674
  paints: s,
32660
32675
  origin: zv(t, r)
32661
32676
  }), d = rr(e.data, e.mapping, e.id), h = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = Xv(n);
@@ -32664,7 +32679,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32664
32679
  m += 1;
32665
32680
  const y = cR(a, n, o, g);
32666
32681
  if (y === null) continue;
32667
- const x = d(g), w = l(m), S = Fl(o, g), M = i ? Kv : p(y.column, () => S >= 1 && av(w, f)), A = {
32682
+ const x = d(g), w = l(m), S = Vl(o, g), M = i ? Kv : p(y.column, () => S >= 1 && av(w, f)), A = {
32668
32683
  key: x,
32669
32684
  effects: et(wt(o, g)),
32670
32685
  node: /* @__PURE__ */ v(MR, {
@@ -32687,7 +32702,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32687
32702
  const { mainAxis: n } = t, i = Yv(), o = Oe(e), a = jv(e, n, o, i), s = o.get("fill", r.observation, "hovered"), { fillFor: l, defs: c } = gr({
32688
32703
  paints: [s],
32689
32704
  origin: zv(e, t)
32690
- }), u = cR(a, n, o, r.observation), d = Fl(o, r.observation, "hovered"), h = u && (i ? Kv : Xv(n)(u.column, () => d >= 1 && zT(s)));
32705
+ }), u = cR(a, n, o, r.observation), d = Vl(o, r.observation, "hovered"), h = u && (i ? Kv : Xv(n)(u.column, () => d >= 1 && zT(s)));
32691
32706
  if (u === null || h === null) return null;
32692
32707
  const { column: f, bounds: p } = u, m = o.get("stroke", r.observation, "hovered");
32693
32708
  return /* @__PURE__ */ U("g", {
@@ -32948,7 +32963,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32948
32963
  })
32949
32964
  }),
32950
32965
  r.map((p) => /* @__PURE__ */ v(mi, { hit: p }, `companion-${p.layerId}-${p.pointIndex}`)),
32951
- /* @__PURE__ */ v(Ga, {
32966
+ /* @__PURE__ */ v(Ha, {
32952
32967
  hit: t,
32953
32968
  "data-testid": "hovered-line-point"
32954
32969
  })
@@ -32979,14 +32994,14 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32979
32994
  };
32980
32995
  }
32981
32996
  }, ER = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: i }) => {
32982
- const o = ae(Vl)?.paintsShadow === !0, a = kR(e, t);
32997
+ const o = ae(Hl)?.paintsShadow === !0, a = kR(e, t);
32983
32998
  if (a === null) return null;
32984
32999
  const { animated: s, activeIntro: l, animateTransitions: c } = n, u = s ? {
32985
33000
  intro: l !== null,
32986
33001
  fadesIn: !o,
32987
33002
  transition: l ? qd(l, i) : Xd(c)
32988
33003
  } : null;
32989
- return /* @__PURE__ */ v(jl, {
33004
+ return /* @__PURE__ */ v(zl, {
32990
33005
  symbol: r.get("symbol", e),
32991
33006
  cx: Z(a.x),
32992
33007
  cy: Z(a.y),
@@ -33044,7 +33059,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
33044
33059
  o
33045
33060
  ]);
33046
33061
  }), vA = ({ primary: e, companions: t }) => {
33047
- const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ga, { hit: e }) : null] });
33062
+ const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ha, { hit: e }) : null] });
33048
33063
  return e ? /* @__PURE__ */ v("g", {
33049
33064
  "data-testid": "hovered-point",
33050
33065
  children: r
@@ -33577,7 +33592,7 @@ var ls = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
33577
33592
  return typeof document < "u" && "fonts" in document && await document.fonts.ready, new HR();
33578
33593
  }
33579
33594
  measureText(t, r) {
33580
- const n = Da(t, r.textTransform), i = ZZ(r);
33595
+ const n = La(t, r.textTransform), i = ZZ(r);
33581
33596
  this.setFont(i);
33582
33597
  const { width: o, fontBoundingBoxAscent: a, fontBoundingBoxDescent: s } = this.ctx.measureText(n);
33583
33598
  let l = o + RC(n, r.letterSpacing);
@@ -33698,7 +33713,7 @@ function Ise() {
33698
33713
  function Rse(e) {
33699
33714
  return "render" in e && "measure" in e;
33700
33715
  }
33701
- var Lse = "swatch_root__1uv26hu0", Dse = 2, Ose = 12, Nse = 12, AA = 1, TA = 2, Bse = 4, Fse = 3, Vse = 2, Hse = /* @__PURE__ */ new Set(["square", "slice"]), MA = 0.375, UR = 1, Xl = (e) => /* @__PURE__ */ v(Xr("Swatch", Gse), { ...e }), Gse = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: i = Ose, height: o = Nse, strokeWidth: a = Dse, alpha: s, cornerRadius: l, symbol: c, mainAxis: u = "x" }) => {
33716
+ var Lse = "swatch_root__1uv26hu0", Dse = 2, Ose = 12, Nse = 12, AA = 1, TA = 2, Bse = 4, Fse = 3, Vse = 2, Hse = /* @__PURE__ */ new Set(["square", "slice"]), MA = 0.375, UR = 1, ql = (e) => /* @__PURE__ */ v(Xr("Swatch", Gse), { ...e }), Gse = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: i = Ose, height: o = Nse, strokeWidth: a = Dse, alpha: s, cornerRadius: l, symbol: c, mainAxis: u = "x" }) => {
33702
33717
  const d = Kd(), h = Use(e, t, r, Math.min(i, o)), f = gr({ paints: [h] }), p = f.fillFor(h);
33703
33718
  return /* @__PURE__ */ U("svg", {
33704
33719
  className: Lse,
@@ -33903,7 +33918,7 @@ var qse = iD((() => {
33903
33918
  e.assignInlineVars = r;
33904
33919
  })), Zse = /* @__PURE__ */ hn(((e, t) => {
33905
33920
  t.exports = Qse();
33906
- })), Wa = (e, t = B.fontFamily) => ({
33921
+ })), $a = (e, t = B.fontFamily) => ({
33907
33922
  fontFamily: e.fontFamily ?? t,
33908
33923
  fontSize: e.fontSize,
33909
33924
  fontWeight: e.fontWeight,
@@ -33922,14 +33937,14 @@ var qse = iD((() => {
33922
33937
  WebkitTextStroke: `${e.textOutlineWidth * 2}px ${e.textOutlineColor}`,
33923
33938
  paintOrder: "stroke"
33924
33939
  } : {}, Ho = (e) => ({
33925
- ...Wa(e),
33940
+ ...$a(e),
33926
33941
  lineHeight: e.lineHeight,
33927
33942
  color: e.textColor,
33928
33943
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
33929
33944
  ...YR(e),
33930
33945
  ...zR(e)
33931
33946
  }), kt = (e) => ({
33932
- ...Wa(e),
33947
+ ...$a(e),
33933
33948
  lineHeight: e.lineHeight,
33934
33949
  color: e.textColor,
33935
33950
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
@@ -34014,7 +34029,7 @@ var qse = iD((() => {
34014
34029
  }, tle = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: i, position: o, color: a, textColor: s, symbolShape: l, symbolColor: c, symbolPaint: u, symbolAlpha: d, symbolCornerRadius: h, symbolGlyph: f, symbolMainAxis: p, panelWidth: m, animateTransitions: g }) => {
34015
34030
  const y = l === null ? 0 : 14, x = r + y + 10, w = Math.max(yse, oi(t)) + 10, S = /* @__PURE__ */ U(Me, { children: [l !== null && c !== null && /* @__PURE__ */ v("g", {
34016
34031
  transform: `translate(0, ${-10 / 2})`,
34017
- children: /* @__PURE__ */ v(Xl, {
34032
+ children: /* @__PURE__ */ v(ql, {
34018
34033
  shape: l,
34019
34034
  color: c,
34020
34035
  paint: u,
@@ -34032,11 +34047,11 @@ var qse = iD((() => {
34032
34047
  dominantBaseline: "central",
34033
34048
  fill: s,
34034
34049
  style: {
34035
- ...Wa(t),
34050
+ ...$a(t),
34036
34051
  ...lh(t)
34037
34052
  },
34038
34053
  ...sh(t),
34039
- children: Da(e, t.textTransform)
34054
+ children: La(e, t.textTransform)
34040
34055
  })] });
34041
34056
  return i ? /* @__PURE__ */ v(Jse, {
34042
34057
  labelPosition: n,
@@ -34169,13 +34184,13 @@ var qse = iD((() => {
34169
34184
  pathData: i,
34170
34185
  animateTransitions: n
34171
34186
  }];
34172
- }, sle = ({ intro: e, children: t }) => ae(Vl)?.fading ? t : /* @__PURE__ */ v(Be.g, {
34187
+ }, sle = ({ intro: e, children: t }) => ae(Hl)?.fading ? t : /* @__PURE__ */ v(Be.g, {
34173
34188
  initial: { opacity: 0 },
34174
34189
  animate: { opacity: 1 },
34175
34190
  transition: WI(e),
34176
34191
  children: t
34177
34192
  }), lle = Jt(function({ layer: t, animateTransitions: r, intro: n }) {
34178
- const i = Nr(), o = n?.type === "fade" ? n : null, a = Oe(t), { paints: s, paintAt: l } = Kl(t, a), { fillFor: c, defs: u } = gr({ paints: s }), d = V(() => {
34193
+ const i = Nr(), o = n?.type === "fade" ? n : null, a = Oe(t), { paints: s, paintAt: l } = Xl(t, a), { fillFor: c, defs: u } = gr({ paints: s }), d = V(() => {
34179
34194
  const h = UX(t.data, t.mapping, t.id), f = [];
34180
34195
  let p = -1;
34181
34196
  for (const m of t.data) {
@@ -34282,7 +34297,7 @@ var qse = iD((() => {
34282
34297
  const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, {
34283
34298
  hit: n,
34284
34299
  project: _r
34285
- }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ga, {
34300
+ }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ha, {
34286
34301
  hit: e,
34287
34302
  project: _r
34288
34303
  }) : null] });
@@ -34291,7 +34306,7 @@ var qse = iD((() => {
34291
34306
  children: r
34292
34307
  }) : r;
34293
34308
  }, XR = (e) => {
34294
- const t = Ba(e);
34309
+ const t = Na(e);
34295
34310
  return {
34296
34311
  origin: {
34297
34312
  x: t.centerX,
@@ -34301,9 +34316,9 @@ var qse = iD((() => {
34301
34316
  scaleY: t.radius
34302
34317
  };
34303
34318
  }, hle = (e) => ({
34304
- ...Ba(e),
34319
+ ...Na(e),
34305
34320
  digits: 2
34306
- }), qR = (e, t, r) => fr(e, t, Ba(r)), Zp = (e) => {
34321
+ }), qR = (e, t, r) => fr(e, t, Na(r)), Zp = (e) => {
34307
34322
  const [t, ...r] = e;
34308
34323
  if (!t) return "";
34309
34324
  const n = r.map((i) => `L ${i.x} ${i.y}`).join(" ");
@@ -34335,7 +34350,7 @@ var qse = iD((() => {
34335
34350
  n
34336
34351
  ]), { fillFor: o, defs: a } = gr({
34337
34352
  paints: V(() => i.map((s) => s.paint), [i]),
34338
- unitsPerPixel: Hl(r)
34353
+ unitsPerPixel: Gl(r)
34339
34354
  });
34340
34355
  return /* @__PURE__ */ U(mn, {
34341
34356
  viewBox: "-1 -1 2 2",
@@ -34413,7 +34428,7 @@ var qse = iD((() => {
34413
34428
  }, mle = ({ layer: e, primary: t, companions: r }) => {
34414
34429
  const n = Nr(), i = Oe(e), o = tr(t.observation), a = i.get("fill", t.observation, "hovered"), { fillFor: s, defs: l } = gr({
34415
34430
  paints: [a],
34416
- unitsPerPixel: Hl(n)
34431
+ unitsPerPixel: Gl(n)
34417
34432
  }), c = V(() => QR([...e.data.filter(xe.group, "eq", o)]), [e.data, o]);
34418
34433
  if (!c) return null;
34419
34434
  const u = i.get("stroke", t.observation, "hovered") ?? Fe(a), d = i.get("alpha", t.observation, "hovered"), h = i.get("fillAlpha", t.observation, "hovered") * d, f = i.get("strokeAlpha", t.observation, "hovered") * d, { strokeWidth: p, strokeDasharray: m, strokeLinecap: g } = gi(i.get("dashArray", t.observation, "hovered"), i.get("strokeWidth", t.observation, "hovered"));
@@ -34453,7 +34468,7 @@ var qse = iD((() => {
34453
34468
  hit: y,
34454
34469
  project: _r
34455
34470
  }, `companion-${y.layerId}-${y.pointIndex}`)),
34456
- /* @__PURE__ */ v(Ga, {
34471
+ /* @__PURE__ */ v(Ha, {
34457
34472
  hit: t,
34458
34473
  project: _r,
34459
34474
  "data-testid": "hovered-area-point"
@@ -34564,16 +34579,16 @@ var qse = iD((() => {
34564
34579
  strokeWidth: t,
34565
34580
  vectorEffect: "non-scaling-stroke"
34566
34581
  }), xle = Jt(function({ layer: t, coordSystem: r, animateTransitions: n, intro: i }) {
34567
- const o = Nr(), a = Zt(), s = nh(i?.type === "grow" && (i.growAxis === "angle" || i.growAxis === "radius") ? i : null, n), l = r.bandAxis !== "x", c = Oe(t), { paints: u, paintAt: d } = Kl(t, c), { fillFor: h, defs: f } = gr({
34582
+ const o = Nr(), a = Zt(), s = nh(i?.type === "grow" && (i.growAxis === "angle" || i.growAxis === "radius") ? i : null, n), l = r.bandAxis !== "x", c = Oe(t), { paints: u, paintAt: d } = Xl(t, c), { fillFor: h, defs: f } = gr({
34568
34583
  paints: u,
34569
- unitsPerPixel: Hl(o)
34584
+ unitsPerPixel: Gl(o)
34570
34585
  }), p = V(() => {
34571
34586
  const g = rr(t.data, t.mapping, t.id);
34572
34587
  return [...JR(t, r, c, (y, x, w) => ({
34573
34588
  key: g(y),
34574
34589
  ...x,
34575
34590
  fill: h(d(w)),
34576
- opacity: Fl(c, y)
34591
+ opacity: Vl(c, y)
34577
34592
  })).values()].map((y, x) => ({
34578
34593
  ...y,
34579
34594
  key: y.members[0]?.key ?? String(x)
@@ -34757,7 +34772,7 @@ var qse = iD((() => {
34757
34772
  if (s === null) return null;
34758
34773
  const l = vle(n, t, r, e, s), c = eL(s, l, t);
34759
34774
  if (c === void 0) return null;
34760
- const u = Fl(r, e, i), { stroke: d, strokeWidth: h, strokeAlpha: f } = l.style;
34775
+ const u = Vl(r, e, i), { stroke: d, strokeWidth: h, strokeAlpha: f } = l.style;
34761
34776
  if (d === void 0) return /* @__PURE__ */ v("path", {
34762
34777
  d: c,
34763
34778
  fill: o,
@@ -34800,9 +34815,9 @@ var qse = iD((() => {
34800
34815
  t,
34801
34816
  r,
34802
34817
  i
34803
- ]), { paints: a, paintAt: s } = Kl(e, i), { fillFor: l, defs: c } = gr({
34818
+ ]), { paints: a, paintAt: s } = Xl(e, i), { fillFor: l, defs: c } = gr({
34804
34819
  paints: a,
34805
- unitsPerPixel: Hl(n)
34820
+ unitsPerPixel: Gl(n)
34806
34821
  }), { bandAxis: u } = r, d = V(() => {
34807
34822
  const h = rr(e.data, e.mapping, e.id), f = [];
34808
34823
  let p = -1;
@@ -34861,7 +34876,7 @@ var qse = iD((() => {
34861
34876
  i
34862
34877
  ]), a = i.get("fill", r.observation, "hovered"), { fillFor: s, defs: l } = gr({
34863
34878
  paints: [a],
34864
- unitsPerPixel: Hl(n)
34879
+ unitsPerPixel: Gl(n)
34865
34880
  });
34866
34881
  return /* @__PURE__ */ U(mn, {
34867
34882
  viewBox: "-1 -1 2 2",
@@ -35014,7 +35029,7 @@ var qse = iD((() => {
35014
35029
  hit: f,
35015
35030
  project: _r
35016
35031
  }, `companion-${f.layerId}-${f.pointIndex}`)),
35017
- /* @__PURE__ */ v(Ga, {
35032
+ /* @__PURE__ */ v(Ha, {
35018
35033
  hit: t,
35019
35034
  project: _r,
35020
35035
  "data-testid": "hovered-line-point"
@@ -35119,7 +35134,7 @@ function ch(e) {
35119
35134
  fn: e.fn
35120
35135
  };
35121
35136
  }
35122
- function Ua(e) {
35137
+ function Wa(e) {
35123
35138
  return e ? ch(e.render).live : !1;
35124
35139
  }
35125
35140
  function cwe(e, t) {
@@ -35145,7 +35160,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35145
35160
  }, Ole = (e, t) => {
35146
35161
  const r = e.filter((n) => Nle(n, t));
35147
35162
  return r.length === e.length ? e : r;
35148
- }, Nle = (e, t) => e.kind === "annotation" ? Ek(t.annotations, e.id) !== null : e.kind === "observations" || e.kind === "layer" && e.layerId !== void 0 ? qs(t.layers, e.layerId) !== void 0 : !0, CA = [], Ble = () => Oa((e) => ({
35163
+ }, Nle = (e, t) => e.kind === "annotation" ? Ek(t.annotations, e.id) !== null : e.kind === "observations" || e.kind === "layer" && e.layerId !== void 0 ? qs(t.layers, e.layerId) !== void 0 : !0, CA = [], Ble = () => Da((e) => ({
35149
35164
  selection: CA,
35150
35165
  setSelection: (t) => e((r) => Fle(r.selection, t) ? r : { selection: t }),
35151
35166
  clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: CA })
@@ -35157,7 +35172,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35157
35172
  "right",
35158
35173
  "bottom",
35159
35174
  "left"
35160
- ], Hle = () => Oa((e) => ({
35175
+ ], Hle = () => Da((e) => ({
35161
35176
  boundary: null,
35162
35177
  setBoundary: (t) => e((r) => Gle(r.boundary, t) ? r : { boundary: t })
35163
35178
  })), Jp = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, em = (e, t) => Vle.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), Gle = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Jp(e.frame, t.frame) && Jp(e.client, t.client) && em(e.frameSpans, t.frameSpans) && em(e.clientSpans, t.clientSpans), Ki = (e) => {
@@ -35170,7 +35185,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35170
35185
  getLastTrigger: () => null,
35171
35186
  getLastCompile: () => null,
35172
35187
  getCacheStats: () => e.getCacheStats()
35173
- }), Ule = () => Oa((e) => ({
35188
+ }), Ule = () => Da((e) => ({
35174
35189
  lastCompile: null,
35175
35190
  history: [],
35176
35191
  nextId: 1,
@@ -35272,7 +35287,7 @@ function Xle(e, t) {
35272
35287
  for (const a of n) {
35273
35288
  if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || i.has(a.geom)) continue;
35274
35289
  const s = t(a.geom, r.type);
35275
- s === null || s.hitTest || Ua(s) || (i.add(a.geom), o.push({
35290
+ s === null || s.hitTest || Wa(s) || (i.add(a.geom), o.push({
35276
35291
  kind: "userInput",
35277
35292
  severity: "warning",
35278
35293
  code: "MISSING_RENDER_HIT_TEST",
@@ -35309,7 +35324,7 @@ function Qle(e, t) {
35309
35324
  for (const a of n) {
35310
35325
  if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || i.has(a.geom)) continue;
35311
35326
  const s = t(a.geom, r.type);
35312
- s === null || !s.hitTest || !Ua(s) || (i.add(a.geom), o.push({
35327
+ s === null || !s.hitTest || !Wa(s) || (i.add(a.geom), o.push({
35313
35328
  kind: "userInput",
35314
35329
  severity: "warning",
35315
35330
  code: "CONFLICTING_RENDER_HIT_TEST",
@@ -35344,7 +35359,7 @@ function Jle(e, t) {
35344
35359
  for (const a of n) {
35345
35360
  if (a.interactive === !1 || a.spatialKind === "renderHitTest" || i.has(a.geom)) continue;
35346
35361
  const s = t(a.geom, r.type);
35347
- s === null || !Ua(s) || (i.add(a.geom), o.push({
35362
+ s === null || !Wa(s) || (i.add(a.geom), o.push({
35348
35363
  kind: "userInput",
35349
35364
  severity: "warning",
35350
35365
  code: "LIVE_RENDER_REQUIRES_RENDER_HIT_TEST",
@@ -35360,7 +35375,7 @@ function Jle(e, t) {
35360
35375
  }
35361
35376
  function ece(e, t) {
35362
35377
  let r;
35363
- return e.layers.flatMap((n, i) => Ua(t(n.geom, e.coordSystem.type)) ? tce(n) ? (r ??= PC().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
35378
+ return e.layers.flatMap((n, i) => Wa(t(n.geom, e.coordSystem.type)) ? tce(n) ? (r ??= PC().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
35364
35379
  kind: "userInput",
35365
35380
  severity: "warning",
35366
35381
  code: "INVALID_STYLE_RULE",
@@ -35392,7 +35407,7 @@ function rce(e) {
35392
35407
  }
35393
35408
  return r;
35394
35409
  }
35395
- var nce = (e) => Oa((t) => ({
35410
+ var nce = (e) => Da((t) => ({
35396
35411
  scene: e,
35397
35412
  setScene: (r) => t((n) => n.scene === r ? n : { scene: r })
35398
35413
  })), ice = ({ spec: e, data: t, colorScheme: r, plugins: n, theme: i, resolveRenderer: o, anchorResolver: a, onSpecChange: s, onError: l, onWarnings: c }) => {
@@ -35613,7 +35628,7 @@ var nce = (e) => Oa((t) => ({
35613
35628
  value: g,
35614
35629
  children: /* @__PURE__ */ v(hJ, {
35615
35630
  value: w,
35616
- children: /* @__PURE__ */ v(zl, {
35631
+ children: /* @__PURE__ */ v(Yl, {
35617
35632
  shapes: f?.shapes,
35618
35633
  children: /* @__PURE__ */ v(Rie, {
35619
35634
  glyphs: p,
@@ -35635,7 +35650,7 @@ var nce = (e) => Oa((t) => ({
35635
35650
  severity: "warning",
35636
35651
  kind: "userInput",
35637
35652
  code: "INVALID_FORMATTING_LOCALE",
35638
- message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${ka}.`
35653
+ message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${Cl}.`
35639
35654
  }];
35640
35655
  ll(n), r.current?.(n);
35641
35656
  }, [e, r]), e === void 0 ? void 0 : Rd(e);
@@ -35654,7 +35669,7 @@ function uce({ theme: e, glyphs: t, ...r } = {}) {
35654
35669
  }
35655
35670
  var dce = () => {
35656
35671
  const e = /* @__PURE__ */ new Map();
35657
- return Oa((t) => ({
35672
+ return Da((t) => ({
35658
35673
  hover: ar,
35659
35674
  tooltipAnchor: null,
35660
35675
  pointerRegions: [],
@@ -35852,7 +35867,7 @@ var gce = ({ hitTest: e, input: t }) => {
35852
35867
  return r !== void 0 && r !== "circle" ? /* @__PURE__ */ v("g", {
35853
35868
  style: et(e.effects),
35854
35869
  "data-testid": e["data-testid"],
35855
- children: /* @__PURE__ */ v(jl, {
35870
+ children: /* @__PURE__ */ v(zl, {
35856
35871
  symbol: r,
35857
35872
  cx: RA(e.cx),
35858
35873
  cy: RA(e.cy),
@@ -35869,19 +35884,19 @@ var gce = ({ hitTest: e, input: t }) => {
35869
35884
  fadesIn: !1
35870
35885
  } : null
35871
35886
  })
35872
- }) : t === void 0 ? xce(n) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...n }) });
35887
+ }) : t === void 0 ? xce(n) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...n }) });
35873
35888
  }, fwe = (e) => {
35874
35889
  const { Line: t } = Qd();
35875
- return t === void 0 ? wce(e) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...e }) });
35890
+ return t === void 0 ? wce(e) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...e }) });
35876
35891
  }, pwe = ({ cornerRadius: e, ...t }) => {
35877
- const { Rect: r } = Qd(), n = Yl()?.size ?? null, i = xoe(), o = {
35892
+ const { Rect: r } = Qd(), n = Kl()?.size ?? null, i = xoe(), o = {
35878
35893
  ...t,
35879
35894
  ...Mce(e, t, n, i)
35880
35895
  };
35881
- return r === void 0 ? Sce(o) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(r, { ...o }) });
35896
+ return r === void 0 ? Sce(o) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(r, { ...o }) });
35882
35897
  }, mwe = (e) => {
35883
35898
  const { Path: t } = Qd();
35884
- return t === void 0 ? Ace(e) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...e }) });
35899
+ return t === void 0 ? Ace(e) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...e }) });
35885
35900
  }, RA = (e) => typeof e == "number" ? `${e}px` : e, Tce = ({ d: e, source: t, ...r }) => {
35886
35901
  const n = Nu(e, Nt, t);
35887
35902
  return /* @__PURE__ */ v(Be.path, {
@@ -36045,7 +36060,7 @@ function _ce(e) {
36045
36060
  ]);
36046
36061
  }
36047
36062
  var vwe = ({ children: e, ...t }) => {
36048
- const r = Yl()?.size ?? null;
36063
+ const r = Kl()?.size ?? null;
36049
36064
  return /* @__PURE__ */ v("svg", {
36050
36065
  viewBox: "0 0 1 1",
36051
36066
  preserveAspectRatio: "none",
@@ -38675,7 +38690,7 @@ function Fue(e = {
38675
38690
  })
38676
38691
  };
38677
38692
  }
38678
- var ja = class yn {
38693
+ var Ua = class yn {
38679
38694
  constructor(t, r = yn.defaultLocale, n, i) {
38680
38695
  if (z(this, "ast", void 0), z(this, "locales", void 0), z(this, "resolvedLocale", void 0), z(this, "formatters", void 0), z(this, "formats", void 0), z(this, "message", void 0), z(this, "formatterCache", {
38681
38696
  number: {},
@@ -38701,14 +38716,14 @@ var ja = class yn {
38701
38716
  return yn.memoizedDefaultLocale || (yn.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), yn.memoizedDefaultLocale;
38702
38717
  }
38703
38718
  };
38704
- z(ja, "memoizedDefaultLocale", null);
38705
- z(ja, "resolveLocale", (e) => {
38719
+ z(Ua, "memoizedDefaultLocale", null);
38720
+ z(Ua, "resolveLocale", (e) => {
38706
38721
  if (typeof Intl.Locale > "u") return;
38707
38722
  const t = Intl.NumberFormat.supportedLocalesOf(e);
38708
38723
  return t.length > 0 ? new Intl.Locale(t[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
38709
38724
  });
38710
- z(ja, "__parse", Rue);
38711
- z(ja, "formats", {
38725
+ z(Ua, "__parse", Rue);
38726
+ z(Ua, "formats", {
38712
38727
  number: {
38713
38728
  integer: { maximumFractionDigits: 0 },
38714
38729
  currency: { style: "currency" },
@@ -38761,9 +38776,9 @@ z(ja, "formats", {
38761
38776
  }
38762
38777
  }
38763
38778
  });
38764
- var ql = /* @__PURE__ */ (function(e) {
38779
+ var Ql = /* @__PURE__ */ (function(e) {
38765
38780
  return e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION", e;
38766
- })({}), Ql = class PL extends Error {
38781
+ })({}), Zl = class PL extends Error {
38767
38782
  constructor(t, r, n) {
38768
38783
  const i = n ? n instanceof Error ? n : new Error(String(n)) : void 0;
38769
38784
  super(`[@formatjs/intl Error ${t}] ${r}
@@ -38771,21 +38786,21 @@ ${i ? `
38771
38786
  ${i.message}
38772
38787
  ${i.stack}` : ""}`), z(this, "code", void 0), this.code = t, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, PL);
38773
38788
  }
38774
- }, Vue = class extends Ql {
38789
+ }, Vue = class extends Zl {
38775
38790
  constructor(e, t) {
38776
- super(ql.UNSUPPORTED_FORMATTER, e, t);
38791
+ super(Ql.UNSUPPORTED_FORMATTER, e, t);
38777
38792
  }
38778
- }, Hue = class extends Ql {
38793
+ }, Hue = class extends Zl {
38779
38794
  constructor(e, t) {
38780
- super(ql.INVALID_CONFIG, e, t);
38795
+ super(Ql.INVALID_CONFIG, e, t);
38781
38796
  }
38782
- }, jA = class extends Ql {
38797
+ }, jA = class extends Zl {
38783
38798
  constructor(e, t) {
38784
- super(ql.MISSING_DATA, e, t);
38799
+ super(Ql.MISSING_DATA, e, t);
38785
38800
  }
38786
- }, vr = class extends Ql {
38801
+ }, vr = class extends Zl {
38787
38802
  constructor(e, t, r) {
38788
- super(ql.FORMAT_ERROR, `${e}
38803
+ super(Ql.FORMAT_ERROR, `${e}
38789
38804
  Locale: ${t}
38790
38805
  `, r), z(this, "descriptor", void 0), z(this, "locale", void 0), this.locale = t;
38791
38806
  }
@@ -38797,15 +38812,15 @@ Default Message: ${r?.defaultMessage}
38797
38812
  Description: ${r?.description}
38798
38813
  `, t, n), z(this, "descriptor", void 0), z(this, "locale", void 0), this.descriptor = r, this.locale = t;
38799
38814
  }
38800
- }, Gue = class extends Ql {
38815
+ }, Gue = class extends Zl {
38801
38816
  constructor(e, t) {
38802
- super(ql.MISSING_TRANSLATION, `Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage ? `default message (${typeof e.defaultMessage == "string" ? e.defaultMessage : e.defaultMessage.map((r) => r.value ?? JSON.stringify(r)).join()})` : "id"} as fallback.`), z(this, "descriptor", void 0), this.descriptor = e;
38817
+ super(Ql.MISSING_TRANSLATION, `Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage ? `default message (${typeof e.defaultMessage == "string" ? e.defaultMessage : e.defaultMessage.map((r) => r.value ?? JSON.stringify(r)).join()})` : "id"} as fallback.`), z(this, "descriptor", void 0), this.descriptor = e;
38803
38818
  }
38804
38819
  };
38805
38820
  function $ue(e, t, r = Error) {
38806
38821
  if (!e) throw new r(t);
38807
38822
  }
38808
- function za(e, t, r = {}) {
38823
+ function ja(e, t, r = {}) {
38809
38824
  return t.reduce((n, i) => (i in e ? n[i] = e[i] : i in r && (n[i] = r[i]), n), {});
38810
38825
  }
38811
38826
  var Wue = (e) => {
@@ -38857,7 +38872,7 @@ function jue(e = _L()) {
38857
38872
  return {
38858
38873
  getDateTimeFormat: i,
38859
38874
  getNumberFormat: o,
38860
- getMessageFormat: $r((s, l, c, u) => new ja(s, l, c, {
38875
+ getMessageFormat: $r((s, l, c, u) => new Ua(s, l, c, {
38861
38876
  formatters: {
38862
38877
  getNumberFormat: o,
38863
38878
  getDateTimeFormat: i,
@@ -38906,7 +38921,7 @@ function zA(e, t) {
38906
38921
  }
38907
38922
  function YA(e, t) {
38908
38923
  if (!t) return e;
38909
- const r = ja.formats;
38924
+ const r = Ua.formats;
38910
38925
  return {
38911
38926
  ...r,
38912
38927
  ...e,
@@ -38965,12 +38980,12 @@ var im = ({ locale: e, formats: t, messages: r, defaultLocale: n, defaultFormats
38965
38980
  "numberingSystem",
38966
38981
  "fractionalSecondDigits"
38967
38982
  ];
38968
- function Zl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38983
+ function Jl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38969
38984
  const { format: s } = a, l = {
38970
38985
  ...n && { timeZone: n },
38971
38986
  ...s && sy(t, i, s, r)
38972
38987
  };
38973
- let c = za(a, zue, l);
38988
+ let c = ja(a, zue, l);
38974
38989
  return i === "time" && !c.hour && !c.minute && !c.second && !c.timeStyle && !c.dateStyle && (c = {
38975
38990
  ...c,
38976
38991
  hour: "numeric",
@@ -38980,7 +38995,7 @@ function Zl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38980
38995
  function Yue(e, t, r, n = {}) {
38981
38996
  const i = typeof r == "string" ? new Date(r || 0) : r;
38982
38997
  try {
38983
- return Zl(e, "date", t, n).format(i);
38998
+ return Jl(e, "date", t, n).format(i);
38984
38999
  } catch (o) {
38985
39000
  e.onError(new vr("Error formatting date.", e.locale, o));
38986
39001
  }
@@ -38989,7 +39004,7 @@ function Yue(e, t, r, n = {}) {
38989
39004
  function Kue(e, t, r, n = {}) {
38990
39005
  const i = typeof r == "string" ? new Date(r || 0) : r;
38991
39006
  try {
38992
- return Zl(e, "time", t, n).format(i);
39007
+ return Jl(e, "time", t, n).format(i);
38993
39008
  } catch (o) {
38994
39009
  e.onError(new vr("Error formatting time.", e.locale, o));
38995
39010
  }
@@ -38998,7 +39013,7 @@ function Kue(e, t, r, n = {}) {
38998
39013
  function Xue(e, t, r, n, i = {}) {
38999
39014
  const o = typeof r == "string" ? new Date(r || 0) : r, a = typeof n == "string" ? new Date(n || 0) : n;
39000
39015
  try {
39001
- return Zl(e, "dateTimeRange", t, i).formatRange(o, a);
39016
+ return Jl(e, "dateTimeRange", t, i).formatRange(o, a);
39002
39017
  } catch (s) {
39003
39018
  e.onError(new vr("Error formatting date time range.", e.locale, s));
39004
39019
  }
@@ -39007,7 +39022,7 @@ function Xue(e, t, r, n, i = {}) {
39007
39022
  function que(e, t, r, n = {}) {
39008
39023
  const i = typeof r == "string" ? new Date(r || 0) : r;
39009
39024
  try {
39010
- return Zl(e, "date", t, n).formatToParts(i);
39025
+ return Jl(e, "date", t, n).formatToParts(i);
39011
39026
  } catch (o) {
39012
39027
  e.onError(new vr("Error formatting date.", e.locale, o));
39013
39028
  }
@@ -39016,7 +39031,7 @@ function que(e, t, r, n = {}) {
39016
39031
  function Que(e, t, r, n = {}) {
39017
39032
  const i = typeof r == "string" ? new Date(r || 0) : r;
39018
39033
  try {
39019
- return Zl(e, "time", t, n).formatToParts(i);
39034
+ return Jl(e, "time", t, n).formatToParts(i);
39020
39035
  } catch (o) {
39021
39036
  e.onError(new vr("Error formatting time.", e.locale, o));
39022
39037
  }
@@ -39032,7 +39047,7 @@ function Jue({ locale: e, onError: t }, r, n, i) {
39032
39047
  Intl.DisplayNames || t(new xi(`Intl.DisplayNames is not available in this environment.
39033
39048
  Try polyfilling it using "@formatjs/intl-displaynames"
39034
39049
  `, bi.MISSING_INTL_API));
39035
- const o = za(i, Zue);
39050
+ const o = ja(i, Zue);
39036
39051
  try {
39037
39052
  return r(e, o).of(n);
39038
39053
  } catch (a) {
@@ -39054,7 +39069,7 @@ function IL({ locale: e, onError: t }, r, n, i = {}) {
39054
39069
  Intl.ListFormat || t(new xi(`Intl.ListFormat is not available in this environment.
39055
39070
  Try polyfilling it using "@formatjs/intl-listformat"
39056
39071
  `, bi.MISSING_INTL_API));
39057
- const o = za(i, ede);
39072
+ const o = ja(i, ede);
39058
39073
  try {
39059
39074
  const a = {}, s = Array.from(n).map((l, c) => {
39060
39075
  if (typeof l == "object" && l !== null) {
@@ -39077,7 +39092,7 @@ function ide({ locale: e, onError: t }, r, n, i = {}) {
39077
39092
  Intl.PluralRules || t(new xi(`Intl.PluralRules is not available in this environment.
39078
39093
  Try polyfilling it using "@formatjs/intl-pluralrules"
39079
39094
  `, bi.MISSING_INTL_API));
39080
- const o = za(i, nde);
39095
+ const o = ja(i, nde);
39081
39096
  try {
39082
39097
  return r(e, o).select(n);
39083
39098
  } catch (a) {
@@ -39088,7 +39103,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
39088
39103
  var ode = ["numeric", "style"];
39089
39104
  function ade({ locale: e, formats: t, onError: r }, n, i = {}) {
39090
39105
  const { format: o } = i, a = !!o && sy(t, "relative", o, r) || {};
39091
- return n(e, za(i, ode, a));
39106
+ return n(e, ja(i, ode, a));
39092
39107
  }
39093
39108
  function sde(e, t, r, n, i = {}) {
39094
39109
  n || (n = "second"), Intl.RelativeTimeFormat || e.onError(new xi(`Intl.RelativeTimeFormat is not available in this environment.
@@ -39127,7 +39142,7 @@ var lde = [
39127
39142
  ];
39128
39143
  function RL({ locale: e, formats: t, onError: r }, n, i = {}) {
39129
39144
  const { format: o } = i, a = o && sy(t, "number", o, r) || {};
39130
- return n(e, za(i, lde, a));
39145
+ return n(e, ja(i, lde, a));
39131
39146
  }
39132
39147
  function cde(e, t, r, n = {}) {
39133
39148
  try {
@@ -39587,9 +39602,9 @@ var Tde = {
39587
39602
  r = r[n];
39588
39603
  }
39589
39604
  if (typeof r == "string" || typeof r == "function") return r;
39590
- }, NL = (e = ka) => {
39605
+ }, NL = (e = Cl) => {
39591
39606
  const { language: t, region: r } = new Intl.Locale(Rd(e));
39592
- return [`${t}-${r}`, t].find(Dde) ?? "en-GB";
39607
+ return [`${t}-${r}`, t].find(Dde) ?? "en-US";
39593
39608
  }, Dde = (e) => e in cy, uy = De(null), Ode = [cy], BL = () => Bde().translator, Nde = (e) => {
39594
39609
  const t = ae(uy)?.requested;
39595
39610
  return {
@@ -39990,7 +40005,7 @@ var the = function(e) {
39990
40005
  function hh() {
39991
40006
  return typeof window < "u";
39992
40007
  }
39993
- function Ya(e) {
40008
+ function za(e) {
39994
40009
  return $L(e) ? (e.nodeName || "").toLowerCase() : "#document";
39995
40010
  }
39996
40011
  function Qt(e) {
@@ -40013,12 +40028,12 @@ function Bn(e) {
40013
40028
  function nT(e) {
40014
40029
  return !hh() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Qt(e).ShadowRoot;
40015
40030
  }
40016
- function Jl(e) {
40031
+ function ec(e) {
40017
40032
  const { overflow: t, overflowX: r, overflowY: n, display: i } = Rr(e);
40018
40033
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && i !== "inline" && i !== "contents";
40019
40034
  }
40020
40035
  function nhe(e) {
40021
- return /^(table|td|th)$/.test(Ya(e));
40036
+ return /^(table|td|th)$/.test(za(e));
40022
40037
  }
40023
40038
  function fh(e) {
40024
40039
  try {
@@ -40049,7 +40064,7 @@ function hy() {
40049
40064
  return Af == null && (Af = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Af;
40050
40065
  }
40051
40066
  function Sa(e) {
40052
- return /^(html|body|#document)$/.test(Ya(e));
40067
+ return /^(html|body|#document)$/.test(za(e));
40053
40068
  }
40054
40069
  function Rr(e) {
40055
40070
  return Qt(e).getComputedStyle(e);
@@ -40064,13 +40079,13 @@ function ph(e) {
40064
40079
  };
40065
40080
  }
40066
40081
  function ci(e) {
40067
- if (Ya(e) === "html") return e;
40082
+ if (za(e) === "html") return e;
40068
40083
  const t = e.assignedSlot || e.parentNode || nT(e) && e.host || Nn(e);
40069
40084
  return nT(t) ? t.host : t;
40070
40085
  }
40071
40086
  function WL(e) {
40072
40087
  const t = ci(e);
40073
- return Sa(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Bn(t) && Jl(t) ? t : WL(t);
40088
+ return Sa(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Bn(t) && ec(t) ? t : WL(t);
40074
40089
  }
40075
40090
  function am(e, t, r) {
40076
40091
  var n;
@@ -40078,7 +40093,7 @@ function am(e, t, r) {
40078
40093
  const i = WL(e), o = i === ((n = e.ownerDocument) == null ? void 0 : n.body), a = Qt(i);
40079
40094
  if (o) {
40080
40095
  const s = sm(a);
40081
- return t.concat(a, a.visualViewport || [], Jl(i) ? i : [], s && r ? am(s) : []);
40096
+ return t.concat(a, a.visualViewport || [], ec(i) ? i : [], s && r ? am(s) : []);
40082
40097
  } else return t.concat(i, am(i, [], r));
40083
40098
  }
40084
40099
  function sm(e) {
@@ -40160,7 +40175,7 @@ function che(e) {
40160
40175
  scrollTop: 0
40161
40176
  }, c = an(1);
40162
40177
  const u = an(0), d = Bn(n);
40163
- if ((d || !d && !o) && ((Ya(n) !== "body" || Jl(a)) && (l = ph(n)), d)) {
40178
+ if ((d || !d && !o) && ((za(n) !== "body" || ec(a)) && (l = ph(n)), d)) {
40164
40179
  const f = yl(n);
40165
40180
  c = oa(n), u.x = f.x + n.clientLeft, u.y = f.y + n.clientTop;
40166
40181
  }
@@ -40239,12 +40254,12 @@ function KL(e, t) {
40239
40254
  function phe(e, t) {
40240
40255
  const r = t.get(e);
40241
40256
  if (r) return r;
40242
- let n = am(e, [], !1).filter((s) => Ir(s) && Ya(s) !== "body"), i = null;
40257
+ let n = am(e, [], !1).filter((s) => Ir(s) && za(s) !== "body"), i = null;
40243
40258
  const o = Rr(e).position === "fixed";
40244
40259
  let a = o ? ci(e) : e;
40245
40260
  for (; Ir(a) && !Sa(a); ) {
40246
40261
  const s = Rr(a), l = dy(a);
40247
- !l && s.position === "fixed" && (i = null), (o ? !l && !i : !l && s.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Jl(a) && !l && KL(e, a)) ? n = n.filter((c) => c !== a) : i = s, a = ci(a);
40262
+ !l && s.position === "fixed" && (i = null), (o ? !l && !i : !l && s.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || ec(a) && !l && KL(e, a)) ? n = n.filter((c) => c !== a) : i = s, a = ci(a);
40248
40263
  }
40249
40264
  return t.set(e, n), n;
40250
40265
  }
@@ -40281,7 +40296,7 @@ function vhe(e, t, r) {
40281
40296
  l.x = mh(i);
40282
40297
  }
40283
40298
  if (n || !n && !o)
40284
- if ((Ya(t) !== "body" || Jl(i)) && (s = ph(t)), n) {
40299
+ if ((za(t) !== "body" || ec(i)) && (s = ph(t)), n) {
40285
40300
  const d = yl(t, !0, o, t);
40286
40301
  l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
40287
40302
  } else i && c();
@@ -40531,7 +40546,7 @@ var lm = (e, t) => {
40531
40546
  }, Mhe = (e) => {
40532
40547
  const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: i } = ZL(e);
40533
40548
  return t > 0 || r > 0 || n > 0 || i > 0;
40534
- }, ec = (e, t = 0) => {
40549
+ }, tc = (e, t = 0) => {
40535
40550
  const r = gh(e);
40536
40551
  if (r !== null) return `${lT(r, t)}px`;
40537
40552
  const { topLeft: n, topRight: i, bottomRight: o, bottomLeft: a } = e;
@@ -40922,7 +40937,7 @@ var zu = {
40922
40937
  }), y = Vhe();
40923
40938
  return y ? J2(/* @__PURE__ */ v(Bhe, { children: g }), y) : g;
40924
40939
  }, ffe = ({ content: e }) => {
40925
- const t = Bt(), r = ge((d) => d.coordSystem), n = ue(v9, ke()), i = $a([n.box.fill]), o = kt(n.heading), a = kt(n.label), s = kt(n.value), l = { paddingInline: n.box.paddingInline }, c = e.rows.some((d) => d.swatchColor !== null), u = e.rows.some((d) => !d.primary);
40940
+ const t = Bt(), r = ge((d) => d.coordSystem), n = ue(v9, ke()), i = Ga([n.box.fill]), o = kt(n.heading), a = kt(n.label), s = kt(n.value), l = { paddingInline: n.box.paddingInline }, c = e.rows.some((d) => d.swatchColor !== null), u = e.rows.some((d) => !d.primary);
40926
40941
  return /* @__PURE__ */ U("div", {
40927
40942
  className: qhe,
40928
40943
  style: pfe(n.box, i(n.box.fill)),
@@ -40968,9 +40983,9 @@ var zu = {
40968
40983
  });
40969
40984
  }, pfe = (e, t) => ({
40970
40985
  ...Aa(e.fill, t),
40971
- borderRadius: ec(e.cornerRadius),
40986
+ borderRadius: tc(e.cornerRadius),
40972
40987
  paddingBlock: e.paddingBlock,
40973
- boxShadow: Na(e.shadow),
40988
+ boxShadow: Oa(e.shadow),
40974
40989
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
40975
40990
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
40976
40991
  }), mfe = (e) => ({
@@ -41018,7 +41033,7 @@ var zu = {
41018
41033
  e.swatchColor === null ? n && /* @__PURE__ */ v("span", {
41019
41034
  className: "tooltip_swatchPlaceholder__1aumv55",
41020
41035
  "aria-hidden": !0
41021
- }) : /* @__PURE__ */ v(Xl, {
41036
+ }) : /* @__PURE__ */ v(ql, {
41022
41037
  shape: t,
41023
41038
  color: e.swatchColor,
41024
41039
  paint: e.swatchFill,
@@ -41162,7 +41177,7 @@ var zu = {
41162
41177
  });
41163
41178
  return Math.max(...f) + d;
41164
41179
  }, Lfe = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, i) => e.measureText(n, Ut(t(i), r)), Dfe = Object.freeze({}), Ofe = ({ textMeasurer: e, metrics: t, overrides: r = Dfe }) => {
41165
- const n = ke(), i = ue(a2, n), o = ue(yh, n), a = ue(fP, n), s = ue(Nl, n), l = ue(vy, n), c = ue(s2, n), u = de(r);
41180
+ const n = ke(), i = ue(a2, n), o = ue(yh, n), a = ue(fP, n), s = ue(Bl, n), l = ue(vy, n), c = ue(s2, n), u = de(r);
41166
41181
  return u.current = r, V(() => {
41167
41182
  if (!e) return null;
41168
41183
  const d = t.fonts.familyDefault, h = n.graph().get("textScale"), f = {
@@ -41359,7 +41374,7 @@ var zu = {
41359
41374
  }, epe = (e) => {
41360
41375
  const t = e.editTargetUnderPointer;
41361
41376
  return t !== null && t.kind !== "menu-trigger";
41362
- }, tpe = () => Oa((e) => ({
41377
+ }, tpe = () => Da((e) => ({
41363
41378
  menuTrigger: null,
41364
41379
  editTargetUnderPointer: null,
41365
41380
  standingInteraction: null,
@@ -41757,7 +41772,7 @@ var Jpe = ({ segment: e, itemStyle: t }) => {
41757
41772
  });
41758
41773
  }, eme = ({ swatch: e, size: t }) => {
41759
41774
  const r = Bt(), n = ah(e.layerId, e.value, t), i = oh(e.layerId, e.value, e.color) ?? e.color;
41760
- return /* @__PURE__ */ v(Xl, {
41775
+ return /* @__PURE__ */ v(ql, {
41761
41776
  shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
41762
41777
  color: i,
41763
41778
  paint: n.fill,
@@ -41859,21 +41874,21 @@ var Jpe = ({ segment: e, itemStyle: t }) => {
41859
41874
  }, ame = "data-legend-index", sme = "data-legend-item-index", A2 = ({ legendIndex: e, itemIndex: t }) => ({
41860
41875
  [ame]: String(e),
41861
41876
  [sme]: String(t)
41862
- }), Ka = "data-edit-kind", lme = "data-edit-id", T2 = "data-edit-axis", cme = "data-edit-tick-index", M2 = "data-legend-overflow-control", Mwe = `[${M2}]`, ume = "observations", dme = "data-live-geom", Ewe = `[${Ka}]`, tc = (e) => ({
41863
- [Ka]: e.kind,
41877
+ }), Ya = "data-edit-kind", lme = "data-edit-id", T2 = "data-edit-axis", cme = "data-edit-tick-index", M2 = "data-legend-overflow-control", Mwe = `[${M2}]`, ume = "observations", dme = "data-live-geom", Ewe = `[${Ya}]`, rc = (e) => ({
41878
+ [Ya]: e.kind,
41864
41879
  [lme]: e.id
41865
41880
  }), xy = (e, t) => ({
41866
- [Ka]: "axis",
41881
+ [Ya]: "axis",
41867
41882
  [T2]: e,
41868
41883
  ...t === void 0 ? {} : { [cme]: String(t) }
41869
41884
  }), wy = (e) => ({
41870
- [Ka]: "legend",
41885
+ [Ya]: "legend",
41871
41886
  ...A2(e)
41872
41887
  }), E2 = (e) => ({
41873
- [Ka]: "grid",
41888
+ [Ya]: "grid",
41874
41889
  [T2]: e
41875
41890
  }), k2 = ({ live: e = !1 } = {}) => ({
41876
- [Ka]: ume,
41891
+ [Ya]: ume,
41877
41892
  ...e ? { [dme]: "" } : {}
41878
41893
  }), wi = () => Br[yi()].selectGuidesOnPress, hme = 0.25, Sy = (e) => Ao() ? null : /* @__PURE__ */ v(fme, { ...e }), fme = ({ children: e, as: t = "g", ...r }) => {
41879
41894
  const n = ife(), i = t;
@@ -41990,8 +42005,8 @@ var vme = 8, yme = 16, bme = 2, xme = ({ indexedLegends: e, containerRect: t })
41990
42005
  var kme = 0.6;
41991
42006
  var P2 = (e, t) => ({
41992
42007
  ...e.fill === void 0 ? {} : Aa(e.fill, t),
41993
- ...e.cornerRadius === void 0 ? {} : { borderRadius: ec(e.cornerRadius) },
41994
- ...e.shadow === void 0 ? {} : { boxShadow: Na(e.shadow) },
42008
+ ...e.cornerRadius === void 0 ? {} : { borderRadius: tc(e.cornerRadius) },
42009
+ ...e.shadow === void 0 ? {} : { boxShadow: Oa(e.shadow) },
41995
42010
  ...I2(e.strokeWidth, e.stroke)
41996
42011
  }), C2 = (e, t) => ({
41997
42012
  ...kt(e),
@@ -42001,10 +42016,10 @@ var P2 = (e, t) => ({
42001
42016
  paddingBlock: e.paddingBlock
42002
42017
  }), _2 = (e) => e.fill !== void 0 || e.strokeWidth > 0, Pme = (e, t, r) => ({
42003
42018
  ...Aa(e.fill, r),
42004
- borderRadius: ec(e.cornerRadius),
42019
+ borderRadius: tc(e.cornerRadius),
42005
42020
  paddingInline: e.paddingInline,
42006
42021
  paddingBlock: e.paddingBlock,
42007
- boxShadow: Na(e.shadow),
42022
+ boxShadow: Oa(e.shadow),
42008
42023
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
42009
42024
  ...I2(e.strokeWidth, e.stroke),
42010
42025
  ...kt(t)
@@ -42051,8 +42066,8 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42051
42066
  }
42052
42067
  return r;
42053
42068
  }, R2 = ({ pill: e }) => e.hasBubbleSwatch ? /* @__PURE__ */ v(Hme, { pill: e }) : /* @__PURE__ */ v(Vme, { pill: e }), Fme = ({ color: e, lineType: t, shape: r, label: n, layerId: i, groupValue: o }) => {
42054
- const { swatch: a } = ue(Nl, ke()), s = ah(i, o, a.size), l = oh(i, o, e), c = ge((d) => di(d.coordSystem)), u = Gme(e, l);
42055
- return u ? /* @__PURE__ */ v(Xl, {
42069
+ const { swatch: a } = ue(Bl, ke()), s = ah(i, o, a.size), l = oh(i, o, e), c = ge((d) => di(d.coordSystem)), u = Gme(e, l);
42070
+ return u ? /* @__PURE__ */ v(ql, {
42056
42071
  shape: r,
42057
42072
  color: u,
42058
42073
  paint: s.fill,
@@ -42075,7 +42090,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42075
42090
  layerId: e.layerId,
42076
42091
  groupValue: e.groupValue
42077
42092
  }), /* @__PURE__ */ v("span", { children: e.formattedLabel })] }), Hme = ({ pill: e }) => {
42078
- const t = Number(e.visual.size), { item: r } = ue(Nl, ke()), n = ah(e.layerId, e.groupValue, t), i = oh(e.layerId, e.groupValue, r.textColor), o = n.fill === void 0 ? i : Fe(n.fill);
42093
+ const t = Number(e.visual.size), { item: r } = ue(Bl, ke()), n = ah(e.layerId, e.groupValue, t), i = oh(e.layerId, e.groupValue, r.textColor), o = n.fill === void 0 ? i : Fe(n.fill);
42079
42094
  return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v("span", {
42080
42095
  className: Nme,
42081
42096
  style: {
@@ -42086,7 +42101,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42086
42101
  }
42087
42102
  }), /* @__PURE__ */ v("span", { children: e.formattedLabel })] });
42088
42103
  }, Gme = (e, t) => e === void 0 ? void 0 : t, AT = { [M2]: "" }, $me = ({ hiddenPills: e, placement: t }) => {
42089
- const r = BL(), [n, i] = be(!1), o = ke(), a = ue(Nl, o), s = ue(c2, o), l = wi(), { openLegendOverflow: c } = Br[yi()], u = $a([a.item.fill, s.popover.fill]), d = u(a.item.fill), h = C2(a.item, d), f = Wme(e.length, a.item), p = f === null ? void 0 : {
42104
+ const r = BL(), [n, i] = be(!1), o = ke(), a = ue(Bl, o), s = ue(c2, o), l = wi(), { openLegendOverflow: c } = Br[yi()], u = Ga([a.item.fill, s.popover.fill]), d = u(a.item.fill), h = C2(a.item, d), f = Wme(e.length, a.item), p = f === null ? void 0 : {
42090
42105
  ...P2(a.item, d),
42091
42106
  opacity: kme * (a.item.alpha ?? 1)
42092
42107
  }, { refs: m, floatingStyles: g } = QL({
@@ -42189,7 +42204,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42189
42204
  left: "pill-legends_verticalPlotHug_left__1unrqh47"
42190
42205
  }, qme = "pill-legends_item__1unrqh48";
42191
42206
  var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
42192
- const i = vi(), o = wo(), a = ke(), s = ue(c2, a), l = ue(Nl, a), c = Bt(), u = ge((A) => A.coordSystem.type), d = wi(), h = V(() => Bme(t, (A) => c(A, u)?.swatchShape ?? "square"), [
42207
+ const i = vi(), o = wo(), a = ke(), s = ue(c2, a), l = ue(Bl, a), c = Bt(), u = ge((A) => A.coordSystem.type), d = wi(), h = V(() => Bme(t, (A) => c(A, u)?.swatchShape ?? "square"), [
42193
42208
  t,
42194
42209
  c,
42195
42210
  u
@@ -42231,7 +42246,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42231
42246
  o,
42232
42247
  s,
42233
42248
  l
42234
- ]), y = $a([l.item.fill]);
42249
+ ]), y = Ga([l.item.fill]);
42235
42250
  if (h.length === 0) return null;
42236
42251
  const x = h.slice(0, g.visibleCount), w = h.slice(g.visibleCount), S = g.hasOverflow && w.length > 0, M = C2(l.item, y(l.item.fill));
42237
42252
  return /* @__PURE__ */ U("div", {
@@ -42332,7 +42347,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42332
42347
  }) });
42333
42348
  }), ige = (e, t, r) => {
42334
42349
  if (e.type === "cartesian") return LQ(e, t);
42335
- const n = Ba(r), i = fr(t.x, e.innerRadius, n), o = fr(t.x, 1, n);
42350
+ const n = Na(r), i = fr(t.x, e.innerRadius, n), o = fr(t.x, 1, n);
42336
42351
  return {
42337
42352
  x1: i.x,
42338
42353
  y1: i.y,
@@ -42589,7 +42604,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42589
42604
  o.removeAttribute(kf);
42590
42605
  };
42591
42606
  }, [e, i]);
42592
- }, bh = () => Xn((e) => Vs(e, "move-drag")?.annotationId ?? Vs(e, "shape-resize-drag")?.annotationId ?? Vs(e, "arrow-endpoint-drag")?.annotationId ?? null), rc = (e) => {
42607
+ }, bh = () => Xn((e) => Vs(e, "move-drag")?.annotationId ?? Vs(e, "shape-resize-drag")?.annotationId ?? Vs(e, "arrow-endpoint-drag")?.annotationId ?? null), nc = (e) => {
42593
42608
  const t = ge((s) => s.annotations), r = Hfe(), n = Wfe(), i = Mge(e), o = _e((s) => MT(n, "cycle", s, `Annotation reference cycle detected; dropping annotation(s): ${s.join(", ")}`), [n]), a = _e((s) => MT(n, "missing-ref", s, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${s.join(", ")}`), [n]);
42594
42609
  return V(() => Z9({
42595
42610
  annotations: t,
@@ -42721,7 +42736,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42721
42736
  return r;
42722
42737
  }
42723
42738
  }, Lge = ({ panelRect: e, editable: t }) => {
42724
- const { arrows: r } = rc(e), n = bh(), i = ke(), o = V(() => r.filter((a) => a.id !== n).flatMap((a) => {
42739
+ const { arrows: r } = nc(e), n = bh(), i = ke(), o = V(() => r.filter((a) => a.id !== n).flatMap((a) => {
42725
42740
  const s = PZ(i, a.id), l = uK({
42726
42741
  arrow: a,
42727
42742
  style: s,
@@ -42743,7 +42758,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42743
42758
  transform: `translate(${e.x}, ${e.y})`,
42744
42759
  "data-testid": "arrows",
42745
42760
  children: o.map(({ computed: a, style: s }) => /* @__PURE__ */ v("g", {
42746
- ...tc({
42761
+ ...rc({
42747
42762
  kind: "annotation",
42748
42763
  id: a.id
42749
42764
  }),
@@ -42809,11 +42824,11 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42809
42824
  textAnchor: "middle",
42810
42825
  fill: i.textColor,
42811
42826
  style: {
42812
- ...Wa(i, s.familyDefault),
42827
+ ...$a(i, s.familyDefault),
42813
42828
  ...lh(i)
42814
42829
  },
42815
42830
  ...sh(i),
42816
- children: Da(r, i.textTransform)
42831
+ children: La(r, i.textTransform)
42817
42832
  })]
42818
42833
  });
42819
42834
  }, Bge = "difference-arrows_pointer__1lwhbn50", Fge = "75%", Vge = ({ panelRect: e, editable: t }) => {
@@ -42826,7 +42841,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42826
42841
  return /* @__PURE__ */ U("g", {
42827
42842
  className: n === l ? Bge : void 0,
42828
42843
  "data-warning": y || void 0,
42829
- ...tc({
42844
+ ...rc({
42830
42845
  kind: "annotation",
42831
42846
  id: l
42832
42847
  }),
@@ -42871,7 +42886,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42871
42886
  })]
42872
42887
  });
42873
42888
  }, ET = ({ panelRect: e, zOrder: t }) => {
42874
- const r = rc(e).images, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42889
+ const r = nc(e).images, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42875
42890
  return o.length === 0 ? null : /* @__PURE__ */ v("svg", {
42876
42891
  x: e.x,
42877
42892
  y: e.y,
@@ -42880,7 +42895,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42880
42895
  overflow: "visible",
42881
42896
  "data-testid": `image-annotations-${t}`,
42882
42897
  children: o.map((a) => /* @__PURE__ */ v("g", {
42883
- ...tc({
42898
+ ...rc({
42884
42899
  kind: "annotation",
42885
42900
  id: a.id
42886
42901
  }),
@@ -42905,7 +42920,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42905
42920
  strokeWidth: t.strokeWidth
42906
42921
  });
42907
42922
  }, kT = ({ panelRect: e, zOrder: t }) => {
42908
- const r = rc(e).shapes, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42923
+ const r = nc(e).shapes, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42909
42924
  return o.length === 0 ? null : /* @__PURE__ */ v("svg", {
42910
42925
  x: e.x,
42911
42926
  y: e.y,
@@ -42914,7 +42929,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42914
42929
  overflow: "visible",
42915
42930
  "data-testid": `shapes-${t}`,
42916
42931
  children: o.map((a) => /* @__PURE__ */ v("g", {
42917
- ...tc({
42932
+ ...rc({
42918
42933
  kind: "annotation",
42919
42934
  id: a.id
42920
42935
  }),
@@ -42948,11 +42963,11 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42948
42963
  const t = wm(e);
42949
42964
  return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
42950
42965
  }, Kge = (e) => {
42951
- const { backgroundColor: t, borderShadow: r } = Xge(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : Na(e.shadow)].filter((i) => i !== void 0);
42966
+ const { backgroundColor: t, borderShadow: r } = Xge(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : Oa(e.shadow)].filter((i) => i !== void 0);
42952
42967
  return {
42953
42968
  ...kt(e),
42954
42969
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
42955
- borderRadius: ec(e.cornerRadius),
42970
+ borderRadius: tc(e.cornerRadius),
42956
42971
  opacity: e.alpha,
42957
42972
  ...t === void 0 ? {} : { backgroundColor: t },
42958
42973
  ...n.length === 0 ? {} : { boxShadow: n.join(", ") }
@@ -42967,7 +42982,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42967
42982
  borderShadow: `0 0 0 ${e.strokeWidth}px ${n}`
42968
42983
  };
42969
42984
  }, qge = (e) => {
42970
- const t = rc(e).textAnnotations, r = Xn((n) => Vs(n, "text-resize-drag"));
42985
+ const t = nc(e).textAnnotations, r = Xn((n) => Vs(n, "text-resize-drag"));
42971
42986
  return V(() => t.map((n) => Qge(n, r)), [t, r]);
42972
42987
  }, Qge = (e, t) => t === null || t.annotationId !== e.id ? e : {
42973
42988
  ...e,
@@ -42994,7 +43009,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42994
43009
  }, Jge = ({ annotation: e, panel: t, style: r }) => {
42995
43010
  const n = $fe(e.id), i = Xn((a) => a.caret?.annotationId === e.id), { TextAnnotation: o } = by();
42996
43011
  return /* @__PURE__ */ v("g", {
42997
- ...tc({
43012
+ ...rc({
42998
43013
  kind: "annotation",
42999
43014
  id: e.id
43000
43015
  }),
@@ -43080,7 +43095,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43080
43095
  t,
43081
43096
  r,
43082
43097
  a
43083
- ]), h = V(() => gK(s, e), [s, e]), f = $a([...d.values()].map((p) => p.label.fill));
43098
+ ]), h = V(() => gK(s, e), [s, e]), f = Ga([...d.values()].map((p) => p.label.fill));
43084
43099
  return fe(() => {
43085
43100
  const p = l.getState();
43086
43101
  return p.publishPointerRegions(CT, h), () => {
@@ -43112,7 +43127,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43112
43127
  style: lve(g.label, f(g.label.fill)),
43113
43128
  children: [p.kind === "pinnedNumber" && /* @__PURE__ */ v("span", {
43114
43129
  className: "callouts_miniSwatch__1rlvxtx1",
43115
- children: /* @__PURE__ */ v(Xl, {
43130
+ children: /* @__PURE__ */ v(ql, {
43116
43131
  shape: i(m.geom, n.type)?.swatchShape ?? "square",
43117
43132
  surface: "callout",
43118
43133
  color: x ?? "currentColor",
@@ -43141,9 +43156,9 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43141
43156
  });
43142
43157
  }, ave = (e, t) => e.hasAuthoredFill ? Fe(e.fill) : t ?? Fe(e.fill), sve = (e) => e.hasAuthoredTextColor ? e.textColor : Sl(e.textColor, Fe(e.fill)), lve = (e, t) => ({
43143
43158
  ...Aa(e.fill, t),
43144
- borderRadius: ec(e.cornerRadius),
43159
+ borderRadius: tc(e.cornerRadius),
43145
43160
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
43146
- boxShadow: Na(e.shadow),
43161
+ boxShadow: Oa(e.shadow),
43147
43162
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
43148
43163
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
43149
43164
  }), cve = (e) => ({
@@ -43171,7 +43186,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43171
43186
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSHSURBVHgB7VwLcFzVef7PfezefWklZEl+BQQSGGQsMMa0vFXStCRAaQsaEpoyZTINTMkwHaAloWlRTcNQZkImSTNTmoG4YEoTOhkTkjF1gYgE6leEjQ0yorIs23pYLySttK/7Ov3/c+5Ku3uv1qJIUGfyjw93d+8595z/P//zO1cA/IZ+Qx8nMc45A+hQ8LMG0KZt2rRJpyvd89rHuyD4+IjmUpqbP6v94hdPtcXj8YvC4XCr4zjTuVzuYF/fwOuXXtrah30cbC42Dr8u1NHRobS0tISGhoauR4aP8QUom81u6+rqugBgk05j4BPQiCUnqfKb9HQ6/Q2+SKK+zc3NYRyuwOlMyAtdtEOHDl/BPyRls/ltjY2NBpzOQpC732hUUvvKQshuI9OB09UUyI7J7gO5Sx3kfPBJzoeeQU6HFxRCKpV6UEaK05Bo96amph7zcZUb4fytGzh/53PY8PrW73N+fGugAFzXndq+fftqL3QuOS2rfeHuqbquX+S7MfqinJmpwBUdeDgCMPFDgMPf8HVljCWvueaaO9rbO5bFDJZVAPl8lcqYkvTdyPQJq+aKhi0KoBrAdTT1yVcBhn7m6445w427dq0NSZ+ytLScAsCsb5TYrLBoFf9FgKtxXAkKIIaacOyHvl6oRVdu2bJlBWrD6SWAine4vHImtYCuoKBAzKMAM+/7hlx33WeubW9vP30EQA6surqamaZ1wnczVE8dMOF1gbl5VBUTWKES0FAQ0z2+IYYRPquvr2/J16vBMpHU1jo32G6Z0ADGLcz8sygLG4VhS61QUQsyQ0HPq8lmu04rEwBScKQFihoSgiM1wMngFYXBsQZSgnnEcMhSqbUq50tbIy2bBhC1tqquqqr+KEBMCEbIDEj9cR/cwnf3VI8teJAloWUTAPFXW5tA/pUq301zdJ4NIQxnPlhYqAmRVb4hqdTs4MCAMIUlVYHlMgF26aWbtKee+vY5kUjkt313CwIogUA8vkwUQHS1b0g2a001NjYvOUawHAIgltSHHnpoxY03/t6zvrv5EdmU8iGF+yZAcp1v2PHjxwf6+ztPaR8flpbaBKj217q6/qX54osvfllRlDN9PWYOgdhthRdZsveBmI/g7msJ37DPf/5rh2AZUKKl1ACGxY8+NvbyLRs3btwVyDzt/PDzIgEMRAAtDIVV/t1PpzN7Gcu7WBUCJkOqt25RTVDFSaH2/xodliquCub37t3bEYvFvrZgryOPAEztAQgXaUBxm04DnP0AwNqbSoaNjk5s379///fWrTtfxzyJDw4OHte0qHvs2ND0/fffPalpGu/t7XVRGM7DDz/MvYx5URJZCgEg0NmsHzhw4OEFmbeRsb5/QPU/iFkgflddKCRDc42+j08BXPoDgMR5sFjCnZ9GwOUgtRMnTmy7+eab3+ru7l40sLpYE5jz2RKs5B68TeNbtLfffvvvFmSe1P69e1GPkXkD16Odwo99CObFwrBcRg24GhHme3Ajdh069M6+o0ePbiaNhEXwxxZxX1jsiy++csbZZ9fXtLZ+7hhywRsbcWNtm/X09Hw9Go0+FDh6ajdA/7fwwyyqvevNxrykJ0gDpgGu3hHoBD8sZTKZR2+99aItO3b0YlwFtxKDC5E4vEBI63fq6ur+hqRcuEFqR010CnJ2RMP/hrX9c1jLInehIk2cY5qVfcc2g6ay5i6EEW+HpaBcznxuw4b1X0L/YMIC5qAG/CZUHdWJcPwnsKL7DjJ5VkkHxgxSPWpBDxXMUyN7D/HgGYJkr6PW9v0XFki4YRpiBEYdfkah2JPSlHKYCpojsi/9Ts8gHGEB0jS19c4775zZuXPn3uHh4UAtCNIAwTzZ9YKqXYnGEdU59oRkXA9gvqDu5RFA3GNw8v0pDBIWVK82gMUNiREU+rhlY0i5dSytE4i6nfUnKLAG/3SoqTt27Dh/374bRjs6/KYQoAHt6ptvfn/zqlWrtsKHZv4VZP5bcuf1Sg6Y+b/nGYwdyUMULS+xIgIsEgamEWKE9zQmtEPAZiHM3UL4e1jBPsQB+pf8EYCj26WAalpLn4zaWl9fP/7YY7t39/f3+wRQngmyxsZ9elNT8z9CEFmofrpfyjCNHv7kT9CGd/t3nmJycZIiiiDPCWLeQ4yDxaCvNw0rNQXC5P9cBkzxHDgKgCuoCSyMClJw7AikIIbAOZbSWg77YNSjWye2IUcxgE/9UcnyDCN6U29v/jsgzx15BQF0sG3bfrdJ17WroJzG0aGNYsuR3cXlRBYtfkbGedIl2pFymydmi4VAF4fJ55AKo9q7tgupUQvWrNVgLnJR0ad4Nk7MK4gdMhKEJgQAbk46UowojGdxfuyP+Coc3+4TgKYpZw4MfKBhCKcwXrLAkjjZ1tapNDU1XQvlRDs/vk1mb1GcPJzCH0/iAqh5zMfJ2y8QbQrMk/yJ8SyTn5HsvAuO6QphKKzIIXjAiPzmpRw0ESOB6AJSlxPj78xjI4TCzIz4psea/FOoakEOv1QD+vtxX2PxVl+vmV2l3wV256WzriI/a7Bw3iUclqfyrhSIiwJw81xAAfTATM5G5x9CdryHeA6PUUfVkuousIO8nJ+AFHSWbE6r8Vk5mqYOwmXTI5qEOxZV3n33XVZJACyf71F0PbTBx8DsLliQ3ALzZXYPMG/rJi9JRVwLBWAVDk8lMpKs0mB00oHVVYq0GDQLhj4Bsy3skkWFQJsnQy+gp+gDBKaIgCpHLbImOZjjNujnf8a3RMuyBltaAF544QVeSQAQiazWQyHtQj+TaViQyA4pvS2x86JdtIrKXrw6uNjCrhdTXX0YjuxPYUEYhvpzFIigOpOWi8KGQBKGWoC+QygBpjUu5gpuzgU7y8HOcSFU4/xbIHzhHb4lMqZWfeELdyYPHtw7jUJYWAATEybmPAEQVu4IBBKFKLWM6YIgiHm7wKjEAB3TE1hBIkx6dOrj4I6TRR3vy8KJkzloPNcQVquG0Cg8Zye6uoSdcoyGCjYmcVRMmlZe8yVgVU2By8RNXXPPPX9+9xln/PvXYc77+ATQrmzd+mdn+UY7lXafQh7z775bmKbAPHjMQ5GpFNRfmsLRw2mIrVJg8yUJEfeVGKp7mM1njXPj2Hwq7XjzEJA68H0UON5QMTHa9LgvKaqurrqrocHaMjIitmXOFOaiQFvbGPqAnL96cmehIoV5qf0XMrbCF5KHL/oWbkshTI9YoGOxdGELxlELfQBlf7pGh4eSUeF0mfiNGyHgmCRxA88TDXR3YRSUoUlhRan/GEDXX/umorR9z56f0elSCY9zXzo7AVaubPDn9pU0IIiKi5zCbjl8HgafM/15HzA5loc1a3Q5lvqFy0IKaVjhJJnRWWISuEYNj9S0sEyXyZyon6HIumHyoG9piFCfU1NTEyyAtjbEIpNVfvtHDeBB0MJC55Su5/Q8sxD2W/gODPzIFYOJKQuSCW3uuay4WCqMEx4RhYRZIVcSQgB0sCoEU2CeF61tyi8ARKjPfOONSRYogM7OGeY4/uKImHdxB12Xe4svDnFBxEuujLnzm41jmG8KDhFdgVzemevDXV76HE6prwR5ROx38SSJNNPJizMFRovkxUvD9bKYf2UYRjKZfcEagHgjHD7cPegbFWqQcdsuCMKFykATm2dYqK7iyarg+edjf4HOqA3BwKAl79FGWh5kVhjGZH86RgPB/DRGxUlgmIIzOy+dDPf8TdqB/CwKpf4K38oGBycOY0EUnAp3dVHObPhZ4x7jlLmhlxXnmG4FBWDz46TN48IVL3lBRnjx2bhHdY2oyo4KI0M27hzOYeI1a4mdFPPQhI5YADKPGaGdwyvm/2Ye+1pgZ2wwUxZkRkxIj5oIUv4psKi/aNuzZ/+7WOqX/DYXBtvaEtx1zUC2aPdJzQQjZIqkygrFX+Z3BZRxU6BhbM4fkPlyp5TpYiGoaNrnbU7CWzsnYGjIhGRdCLQwMoPJDiVCySoVZtOOGBJCczFNaSZVUVVuPMrHiFaBtvpKSGz+LGj1AW/lILJ8//1/2zc727tQHgDw5S8/OHD77e0lA1m4Qey+0E4PyhY+Rzhema35SAiBzzlK0ZeSFrMolpfYEYPRY1lIrlbg3A0xyFtShjHbg6foc70GqibTZIXmpQ3A/zAv72AYIfSL24ElgpOhp59+4duaFvfhg3MCQNyPp9M9iC47M1g9laCSHOtMbs8iI2xuR0W1SgJRA6IB855s8/niTpMRgJRsvsKTT6fPR3pScO11VShwBfRqTIRqdO/og3lLVr0wCfOh1ZVNRKl8DjjGf3bVM7JUL6Kenr5/3rLle0ey2dlcuQDmfAAVCqtWJdDUeMrHkN4w5wOEP7ClU3TsCt6Q+NPBw5w8J0YZHsZpViI0Bjl0WrG46smES61SvHGceS9TGeDivrgY/lxMfbmG2ICme2ETm4HPhgzA2H/7lpLJZPt1PYFho98uv6eUdsw5CCcfhiABeC9xFJgXgjA96btMghy8VAKE4HAd43aE3gKjhEWRODvm94peMANyi1jQlGSLRQIS9YIuARGtCnhoBV4xD1DDMjcg5KiQNyjBzjkcDjmRSBrDBfgEUOwDuKqGHAxz0+WdlNBKoAjE5vAHz7NTtYqfdcNbMAlCvNPpOQpQxcKBkBwyATsLzKRmoUmAeDGCqjndUCGKWB85wDXnRYSDk9HSFRrAmCPqf8Gkk/NivyVzg0IO4MoNofeP/EbpToyMZHzMA5RpgK5HncnJqW5fJ6yyXIzNVH67ojHvyiGPNTx3vd2nax68jXUFWEHYndAGyt70Gszf4zKHVxUhRI20AYXTtDGBKTHA+z1ZWfFlXfk8wSAlP2lQbIz/CJErVgqvWcQBTMG0mXEgg+EvV3MTKCv8EeCNN/YjT72B9lqiASMjH7jDw6OHmpoaSzrptRcJtRf4m/D8MgwKlcPf0yctiDfo8+koAZ0EjykYtyErEhWGcA1HOIvUHXRV9k3LTVbRJxgxDc5pTUD3rinYPTINsVr06nGGpawq0KIYVodkdhT65k0Ry+LEaoECnbHuGoi23OpjMJ/PH77vvof629vBKYMCfAKAlpYq5/nnX3rnqqsuK+mkxlaCEl4JPHPSA2Wl+rte0pcds8TP0XrvkIK8NRWWZDI6CkEhA5fvAnFQpBBIxyMyAqgIqznoBMZG8xBbqUDjOkQ3I4pglMCO2kQIY7+D2IoroDXLcrAIVMCIqGCcezWEN/wFLEQ9Pf0/0HWeR+YDNaDMXNoQExyvHR7e/VIiEdtcfGf2wFaY3b8VSrM4D6FxpB0mm1ZDLDnjn4UwQ4LKVW9scblADUFSgrQO7pmAjZfH8EBEBTzy9BIODU1NEWiQODFClVGoJhApKgkahdv6TwjK+uP/yMj4i42N1967YkVybGBgVw4CkvgSDejoaHOfeOI/rcnJ6V3lAiD1yh7fjw4xjrE6AaEVzQjQxkHHK/2mJVbKjlSKDj2P8NIr87KymWzCL/J5QLUgSMzAHcWFCDlTzStpBYuadKDhKGpPSAKhlAJTEWRbkh8yJdtfsk9Pp7ruu++RR2pqIpnm5rA1MLAoDQC2du3lRlvb5ec9++w3D8BHIXoV5iieEuVHg2ciUjx8APnNpRw4smsSLrgcBVytY+WrCp8BFP7wHIIzFIKLEcSZFS9XMhIAwmhAznI9nuNUl4LZ27e/fOcXv3j/yzU1yemFdh/Af37OBwbG3B//eMfo4ODJZ+GjUALB5danAc7+S/T6Z4lagPP59FhQIX9A7aBoYhCyQ9HOLpTAljgAYU4K/emoqALFd6/6E5klQWDVfiTfNPOj6bSZQeYLcSmQAjL5e3k8/pYyPDz9/vXXX3sTnrB+tMP66DnAGm5Am27FiIGeOzeDOYUEWRxTormZCQuyk7bI7afGLSoMBegpEi3MGdwcQt8mhrwcRpIcVn9pG6yUjVVgBNTz78WDqk+VMW8PXnHFDX9vWX3kkOxKywt4S6yDT05C7kc/2jHY2Ljyjgcf/MozmEmtho9KqBFKQh45cLRZPnNEugEMrVSEG67UDhZpQPUmNR8RfVwrg/F+RqK/eE+8Wq/HILzi4sCSl2h2dnZ3bW0in05XZp5oAVwLlLq6lqjrJpOc55I//elTt6xff94fqCpU2bY7k05nhlKp2aGJiQ+GZmezqVdfffP99947mv7qV+9uu+SS9XcZRngVfEJkmubQd7+77bann/7mge7ubvKOvFL/hQQAmDioP//5ldFs1ozZdi4aj+vhfN6RJQqTBbJpauJqGOKtJ8wk8zpWk8ZLL239w02bLrz7kxDEa6/tvve2277yH+Pj2QmAbvNU/Vnl2+3q2rUDoYGBbDged0PIqJbJkAAshzHdVRQDr7NYQ0QFyGBZdsi2LUPXlYjj5IydO5/940su2fCxaASV8fv2vfP49dff8ZyqZiY+/emNaaxwnVONY6d+NLC2tjYVsTStv38V9h9GlboA26hLKFJnZ6enYgSkvKs2NGh6JmOiEBLRdDodjkY148knH/2tyy7beF1tbdXmeDx+Liwhob3/z+Dg6GsPPPD4v/7yl10jnOtTqZSJzq/LWsz4xQigvH9FmyK0bP16ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="
43172
43187
  }
43173
43188
  }, hve = 3.2, fve = ({ panelRect: e }) => {
43174
- const t = rc(e).stickers, r = ke().graph().get("textScale");
43189
+ const t = nc(e).stickers, r = ke().graph().get("textScale");
43175
43190
  if (t.length === 0) return null;
43176
43191
  const n = uve(hve, r);
43177
43192
  return /* @__PURE__ */ v("svg", {
@@ -43238,7 +43253,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43238
43253
  })), /* @__PURE__ */ v("text", {
43239
43254
  className: yve,
43240
43255
  style: {
43241
- ...Wa(g),
43256
+ ...$a(g),
43242
43257
  ...lh(g),
43243
43258
  fill: c === void 0 ? xve(g) : bve(g, x)
43244
43259
  },
@@ -43247,7 +43262,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43247
43262
  y: t,
43248
43263
  textAnchor: "middle",
43249
43264
  dominantBaseline: "central",
43250
- children: Da(i, g.textTransform)
43265
+ children: La(i, g.textTransform)
43251
43266
  })]
43252
43267
  });
43253
43268
  }, bve = (e, t) => e.hasAuthoredTextColor || t === void 0 ? e.textColor : e.hasThemedTextColor ? Sl(e.textColor, t) : qu(t), xve = (e) => {
@@ -43509,12 +43524,12 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43509
43524
  }), /* @__PURE__ */ v("text", {
43510
43525
  ...e,
43511
43526
  style: {
43512
- ...Wa(r),
43527
+ ...$a(r),
43513
43528
  ...lh(r)
43514
43529
  },
43515
43530
  ...sh(r),
43516
43531
  fill: r.textColor,
43517
- children: Da(t, r.textTransform)
43532
+ children: La(t, r.textTransform)
43518
43533
  })] }), Ove = ({ placement: e, text: t, style: r, bounds: n }) => {
43519
43534
  const i = vi(), { fonts: o } = wo();
43520
43535
  return /* @__PURE__ */ v("rect", {
@@ -43817,7 +43832,7 @@ var H2 = (e, t) => {
43817
43832
  if (r.type !== "polar") return null;
43818
43833
  const n = t.find((l) => l.geometry === "circular");
43819
43834
  if (!n) return null;
43820
- const { innerRadius: i, startAngle: o, spokeRotation: a } = r, s = Ba(e);
43835
+ const { innerRadius: i, startAngle: o, spokeRotation: a } = r, s = Na(e);
43821
43836
  return s.radius <= 0 ? null : {
43822
43837
  circle: s,
43823
43838
  circularAxis: n,
@@ -43983,7 +43998,7 @@ var H2 = (e, t) => {
43983
43998
  opacity: t ? r.opacity : void 0,
43984
43999
  filter: s
43985
44000
  },
43986
- children: /* @__PURE__ */ v(Vl.Provider, {
44001
+ children: /* @__PURE__ */ v(Hl.Provider, {
43987
44002
  value: c,
43988
44003
  children: /* @__PURE__ */ v(Jve, {
43989
44004
  layer: e,
@@ -44086,7 +44101,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44086
44101
  })), /* @__PURE__ */ U(Sy, { children: [y, l.map(({ observation: x, observationIndex: w, anchor: S }) => /* @__PURE__ */ v(oye, {
44087
44102
  observation: x,
44088
44103
  anchor: S,
44089
- fill: La(d, t, x) ?? yd,
44104
+ fill: Ra(d, t, x) ?? yd,
44090
44105
  symbol: u.get("symbol", x) ?? "circle",
44091
44106
  dotRadius: (u.get("size", x) ?? 8) / 2,
44092
44107
  readSegmentY: h,
@@ -44102,7 +44117,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44102
44117
  }), [e.id, r]);
44103
44118
  return /* @__PURE__ */ v("g", {
44104
44119
  style: { filter: r },
44105
- children: /* @__PURE__ */ v(Vl.Provider, {
44120
+ children: /* @__PURE__ */ v(Hl.Provider, {
44106
44121
  value: n,
44107
44122
  children: /* @__PURE__ */ v(iye, {
44108
44123
  layer: e,
@@ -44136,7 +44151,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44136
44151
  s,
44137
44152
  l
44138
44153
  ]);
44139
- return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v(jl, {
44154
+ return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v(zl, {
44140
44155
  symbol: n,
44141
44156
  cx: Z(d),
44142
44157
  cy: Z(h),
@@ -44280,7 +44295,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44280
44295
  });
44281
44296
  }), fye = (e, t) => {
44282
44297
  const r = Bt();
44283
- return Ao() ? [] : e.filter((n) => !Ua(r(n.geom, t.type)));
44298
+ return Ao() ? [] : e.filter((n) => !Wa(r(n.geom, t.type)));
44284
44299
  }, pye = (e) => (0, py.assignInlineVars)({
44285
44300
  ...e.opacity === void 0 ? {} : { [cye]: String(e.opacity) },
44286
44301
  ...e.filter === void 0 ? {} : { [uye]: e.filter }
@@ -44339,7 +44354,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44339
44354
  });
44340
44355
  }, vye = (e, t) => {
44341
44356
  const r = Bt();
44342
- return Ao() ? [] : e.filter((n) => Ua(r(n.geom, t.type)));
44357
+ return Ao() ? [] : e.filter((n) => Wa(r(n.geom, t.type)));
44343
44358
  }, yye = "plot.renderer_root__1ts0j5d0", bye = ({ formattedAxes: e, plotRect: t, panelBorder: r, axisLines: n, axisLineCornerRadius: i, panelEdges: o, panelFrameRect: a, panelRect: s, axisRects: l, axisLabelRects: c, animateTransitions: u, formattingLocale: d, plotBottomY: h, hasReservedFooterSpace: f, editable: p, showAnnotations: m }) => {
44344
44359
  const g = de(null);
44345
44360
  Tge(g);
@@ -44549,7 +44564,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44549
44564
  };
44550
44565
  }, Mye = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, Eye = () => null, kye = "graph-frame_overpaint__fzk2ns0", Pye = "graph-frame_backgroundScope__fzk2ns1";
44551
44566
  var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef: i, children: o }) => {
44552
- const { themeClass: a, inlineVarsStyle: s } = my(), l = e.strokeWidth, c = l > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), d = u === 0 ? 0 : u + l, { shadow: h, alpha: f, blendMode: p, fill: m, overpaint: g = Cye } = e, y = $a([m, ...g]), x = y(m), w = typeof m != "string", S = V(() => ({
44567
+ const { themeClass: a, inlineVarsStyle: s } = my(), l = e.strokeWidth, c = l > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), d = u === 0 ? 0 : u + l, { shadow: h, alpha: f, blendMode: p, fill: m, overpaint: g = Cye } = e, y = Ga([m, ...g]), x = y(m), w = typeof m != "string", S = V(() => ({
44553
44568
  ...n,
44554
44569
  borderRadius: `${d}px`,
44555
44570
  ...s,
@@ -44558,7 +44573,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44558
44573
  borderStyle: "solid",
44559
44574
  borderColor: c
44560
44575
  },
44561
- ...h === void 0 ? {} : { boxShadow: Na(h) }
44576
+ ...h === void 0 ? {} : { boxShadow: Oa(h) }
44562
44577
  }), [
44563
44578
  n,
44564
44579
  d,
@@ -44722,7 +44737,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44722
44737
  oe.gap
44723
44738
  ]);
44724
44739
  if (!Ue) return null;
44725
- const { layout: Ge, formattedAxes: Xa, plotBottomY: nc } = Ue, To = Ge.footer.height > 0;
44740
+ const { layout: Ge, formattedAxes: Ka, plotBottomY: ic } = Ue, To = Ge.footer.height > 0;
44726
44741
  return /* @__PURE__ */ v(uL.Provider, {
44727
44742
  value: o,
44728
44743
  children: /* @__PURE__ */ v(Nhe, {
@@ -44761,7 +44776,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44761
44776
  graphyBadge: Qe
44762
44777
  }),
44763
44778
  /* @__PURE__ */ v(bye, {
44764
- formattedAxes: Xa,
44779
+ formattedAxes: Ka,
44765
44780
  plotRect: Ge.plot,
44766
44781
  panelBorder: jt,
44767
44782
  axisLines: vt,
@@ -44773,7 +44788,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44773
44788
  axisLabelRects: Ge.axisLabels,
44774
44789
  animateTransitions: S,
44775
44790
  formattingLocale: b ?? u,
44776
- plotBottomY: nc,
44791
+ plotBottomY: ic,
44777
44792
  hasReservedFooterSpace: To,
44778
44793
  editable: x,
44779
44794
  showAnnotations: y.showAnnotations
@@ -44804,7 +44819,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44804
44819
  x && L !== null && /* @__PURE__ */ v(C, {
44805
44820
  frameElement: L,
44806
44821
  panelRect: Ge.panel,
44807
- formattedAxes: Xa,
44822
+ formattedAxes: Ka,
44808
44823
  animateTransitions: S
44809
44824
  }),
44810
44825
  y.showTooltip && /* @__PURE__ */ v(hfe, {})
@@ -44929,7 +44944,7 @@ var jye = (e) => [...new Set(e)], zye = (e) => ({
44929
44944
  stickers: e.stickers.length,
44930
44945
  pinnedNumbers: e.pinnedNumbers.length,
44931
44946
  comments: e.comments.length
44932
- }), Yye = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", Kye = "1.9.0-beta.1793880532798", Xye = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
44947
+ }), Yye = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", Kye = "1.9.0-beta.1793904611666", Xye = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
44933
44948
  function z2() {
44934
44949
  return Yye;
44935
44950
  }
@@ -45093,7 +45108,7 @@ export {
45093
45108
  Pn as VISUAL_VARIABLES,
45094
45109
  P8 as annotation,
45095
45110
  Xie as buildDotsEditOutlineShapes,
45096
- _l as buildPanelAnchorBox,
45111
+ Il as buildPanelAnchorBox,
45097
45112
  no as buildPolarBarArcPath,
45098
45113
  og as clampBarThickness,
45099
45114
  D0 as composePoint,
@@ -45166,7 +45181,7 @@ export {
45166
45181
  dwe as readRectPixels,
45167
45182
  Ml as readTipEdge,
45168
45183
  X as readVariableName,
45169
- Il as resolveAnchoredLabelCenter,
45184
+ Rl as resolveAnchoredLabelCenter,
45170
45185
  Ad as resolveBarBaseline,
45171
45186
  eW as resolveBarCornersPx,
45172
45187
  va as resolveGeomCornerRadiusPx,