@asgard-js/react 0.1.15-canary.1 → 0.1.15-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -27538,7 +27538,7 @@ function Oce(e) {
27538
27538
  function wo(e) {
27539
27539
  return e && (e.op === "count" || q(e, "field"));
27540
27540
  }
27541
- function eL(e) {
27541
+ function e7(e) {
27542
27542
  return e && z(e);
27543
27543
  }
27544
27544
  function nh(e) {
@@ -27579,7 +27579,7 @@ function $s({ fieldDef: e, fieldDef2: t, markDef: n, config: i }) {
27579
27579
  return 0.5;
27580
27580
  }
27581
27581
  }
27582
- function tL({ channel: e, fieldDef: t, fieldDef2: n, markDef: i, config: r, scaleType: o, useVlSizeChannel: s }) {
27582
+ function t7({ channel: e, fieldDef: t, fieldDef2: n, markDef: i, config: r, scaleType: o, useVlSizeChannel: s }) {
27583
27583
  var l, c, f;
27584
27584
  const a = Vn(e), u = qe(s ? "size" : a, i, r, {
27585
27585
  vgChannel: a
@@ -27596,10 +27596,10 @@ function tL({ channel: e, fieldDef: t, fieldDef2: n, markDef: i, config: r, scal
27596
27596
  if (cd(i.type))
27597
27597
  return o ? Bt(o) ? ((l = r[i.type]) == null ? void 0 : l.discreteBandSize) || { band: 1 } : (c = r[i.type]) == null ? void 0 : c.continuousBandSize : (f = r[i.type]) == null ? void 0 : f.discreteBandSize;
27598
27598
  }
27599
- function nL(e, t, n, i) {
27599
+ function n7(e, t, n, i) {
27600
27600
  return et(e.bin) || e.timeUnit && Nn(e) && e.type === "temporal" ? $s({ fieldDef: e, fieldDef2: t, markDef: n, config: i }) !== void 0 : !1;
27601
27601
  }
27602
- function iL(e) {
27602
+ function i7(e) {
27603
27603
  return q(e, "sort") && !q(e, "field");
27604
27604
  }
27605
27605
  function ih(e) {
@@ -27650,10 +27650,10 @@ function cu(e) {
27650
27650
  function El(e) {
27651
27651
  return q(e, "axis") || q(e, "stack") || q(e, "impute");
27652
27652
  }
27653
- function rL(e) {
27653
+ function r7(e) {
27654
27654
  return q(e, "legend");
27655
27655
  }
27656
- function oL(e) {
27656
+ function o7(e) {
27657
27657
  return q(e, "format") || q(e, "formatType");
27658
27658
  }
27659
27659
  function Pce(e) {
@@ -27725,7 +27725,7 @@ function qce(e) {
27725
27725
  const o = i && !lu(i) ? zt(i) : void 0, s = t || (o == null ? void 0 : o.unit) || (o == null ? void 0 : o.maxbins) && "timeunit" || et(n) && "bin";
27726
27726
  return s ? `${s.toUpperCase()}(${r})` : r;
27727
27727
  }
27728
- const sL = (e, t) => {
27728
+ const s7 = (e, t) => {
27729
27729
  switch (t.fieldTitle) {
27730
27730
  case "plain":
27731
27731
  return e.field;
@@ -27735,12 +27735,12 @@ const sL = (e, t) => {
27735
27735
  return jce(e, t);
27736
27736
  }
27737
27737
  };
27738
- let aL = sL;
27739
- function uL(e) {
27740
- aL = e;
27738
+ let a7 = s7;
27739
+ function u7(e) {
27740
+ a7 = e;
27741
27741
  }
27742
27742
  function Wce() {
27743
- uL(sL);
27743
+ u7(s7);
27744
27744
  }
27745
27745
  function Gu(e, t, { allowDisabling: n, includeDefault: i = !0 }) {
27746
27746
  var a;
@@ -27753,16 +27753,16 @@ function Gu(e, t, { allowDisabling: n, includeDefault: i = !0 }) {
27753
27753
  function oC(e) {
27754
27754
  if (El(e) && e.axis)
27755
27755
  return e.axis;
27756
- if (rL(e) && e.legend)
27756
+ if (r7(e) && e.legend)
27757
27757
  return e.legend;
27758
27758
  if (iC(e) && e.header)
27759
27759
  return e.header;
27760
27760
  }
27761
27761
  function sC(e, t) {
27762
- return aL(e, t);
27762
+ return a7(e, t);
27763
27763
  }
27764
27764
  function Zg(e) {
27765
- if (oL(e)) {
27765
+ if (o7(e)) {
27766
27766
  const { format: t, formatType: n } = e;
27767
27767
  return { format: t, formatType: n };
27768
27768
  } else {
@@ -27814,7 +27814,7 @@ function At(e) {
27814
27814
  if (rh(e))
27815
27815
  return e.condition;
27816
27816
  }
27817
- function lL(e, t, n, i = {}) {
27817
+ function l7(e, t, n, i = {}) {
27818
27818
  if (Z(e) || Le(e) || Ts(e)) {
27819
27819
  const r = Z(e) ? "string" : Le(e) ? "number" : "boolean";
27820
27820
  return G(Hue(t, r, e)), { value: e };
@@ -27826,12 +27826,12 @@ function lL(e, t, n, i = {}) {
27826
27826
  } : e;
27827
27827
  }
27828
27828
  function Jg(e, t, n, i) {
27829
- if (oL(e)) {
27829
+ if (o7(e)) {
27830
27830
  const { format: r, formatType: o, ...s } = e;
27831
27831
  if (Ha(o) && !n.customFormatTypes)
27832
27832
  return G(CM(t)), Jg(s, t, n, i);
27833
27833
  } else {
27834
- const r = El(e) ? "axis" : rL(e) ? "legend" : iC(e) ? "header" : null;
27834
+ const r = El(e) ? "axis" : r7(e) ? "legend" : iC(e) ? "header" : null;
27835
27835
  if (r && e[r]) {
27836
27836
  const { format: o, formatType: s, ...a } = e[r];
27837
27837
  if (Ha(s) && !n.customFormatTypes)
@@ -27978,7 +27978,7 @@ function H0(e, { timeUnit: t, type: n, wrapTime: i, undefinedIfExprNotRequired:
27978
27978
  let s = o || n === "temporal", a;
27979
27979
  return Qd(e) ? a = e.expr : re(e) ? a = e.signal : uu(e) ? (s = !0, a = ja(e)) : (Z(e) || Le(e)) && s && (a = `datetime(${We(e)})`, Ile(o) && (Le(e) && e < 1e4 || Z(e) && isNaN(Date.parse(e))) && (a = ja({ [o]: e }))), a ? i && s ? `time(${a})` : a : r ? void 0 : We(e);
27980
27980
  }
27981
- function cL(e, t) {
27981
+ function c7(e, t) {
27982
27982
  const { type: n } = e;
27983
27983
  return t.map((i) => {
27984
27984
  const r = H(e) && !lu(e.timeUnit) ? e.timeUnit : void 0, o = H0(i, {
@@ -28074,7 +28074,7 @@ const RM = {
28074
28074
  function sh(e) {
28075
28075
  return e == null ? void 0 : e.condition;
28076
28076
  }
28077
- const fL = ["domain", "grid", "labels", "ticks", "title"], Xce = {
28077
+ const f7 = ["domain", "grid", "labels", "ticks", "title"], Xce = {
28078
28078
  grid: "grid",
28079
28079
  gridCap: "grid",
28080
28080
  gridColor: "grid",
@@ -28159,7 +28159,7 @@ const fL = ["domain", "grid", "labels", "ticks", "title"], Xce = {
28159
28159
  values: "both",
28160
28160
  zindex: "both"
28161
28161
  // this is actually set afterward, so it doesn't matter
28162
- }, dL = {
28162
+ }, d7 = {
28163
28163
  orient: 1,
28164
28164
  // other things can depend on orient
28165
28165
  aria: 1,
@@ -28238,7 +28238,7 @@ const fL = ["domain", "grid", "labels", "ticks", "title"], Xce = {
28238
28238
  values: 1,
28239
28239
  zindex: 1
28240
28240
  }, Kce = {
28241
- ...dL,
28241
+ ...d7,
28242
28242
  style: 1,
28243
28243
  labelExpr: 1,
28244
28244
  encoding: 1
@@ -28269,7 +28269,7 @@ const Zce = {
28269
28269
  axisYPoint: 1,
28270
28270
  axisYQuantitative: 1,
28271
28271
  axisYTemporal: 1
28272
- }, hL = j(Zce);
28272
+ }, h7 = j(Zce);
28273
28273
  function Bo(e) {
28274
28274
  return q(e, "mark");
28275
28275
  }
@@ -28287,21 +28287,21 @@ function Ea(e, t) {
28287
28287
  const n = e == null ? void 0 : e[t];
28288
28288
  return n ? z(n) ? yl(n, (i) => !!i.field) : H(n) || q0(n) : !1;
28289
28289
  }
28290
- function pL(e, t) {
28290
+ function p7(e, t) {
28291
28291
  const n = e == null ? void 0 : e[t];
28292
28292
  return n ? z(n) ? yl(n, (i) => !!i.field) : H(n) || Qr(n) || rh(n) : !1;
28293
28293
  }
28294
- function gL(e, t) {
28294
+ function g7(e, t) {
28295
28295
  if (xt(t)) {
28296
28296
  const n = e[t];
28297
28297
  if ((H(n) || Qr(n)) && (GE(n.type) || H(n) && n.timeUnit)) {
28298
28298
  const i = kE(t);
28299
- return pL(e, i);
28299
+ return p7(e, i);
28300
28300
  }
28301
28301
  }
28302
28302
  return !1;
28303
28303
  }
28304
- function mL(e) {
28304
+ function m7(e) {
28305
28305
  return yl(Gae, (t) => {
28306
28306
  if (Ea(e, t)) {
28307
28307
  const n = e[t];
@@ -28315,7 +28315,7 @@ function mL(e) {
28315
28315
  return !1;
28316
28316
  });
28317
28317
  }
28318
- function yL(e, t) {
28318
+ function y7(e, t) {
28319
28319
  const n = [], i = [], r = [], o = [], s = {};
28320
28320
  return uC(e, (a, u) => {
28321
28321
  if (H(a)) {
@@ -28419,7 +28419,7 @@ function Qce(e, t, n, i) {
28419
28419
  if (s) {
28420
28420
  if (o === vl) {
28421
28421
  const a = e[o];
28422
- if (iL(a)) {
28422
+ if (i7(a)) {
28423
28423
  r[o] = a;
28424
28424
  continue;
28425
28425
  }
@@ -28433,7 +28433,7 @@ function Qce(e, t, n, i) {
28433
28433
  G(Xv(s, o));
28434
28434
  continue;
28435
28435
  }
28436
- r[o] = lL(s, o, i);
28436
+ r[o] = l7(s, o, i);
28437
28437
  }
28438
28438
  }
28439
28439
  return r;
@@ -28441,7 +28441,7 @@ function Qce(e, t, n, i) {
28441
28441
  function V0(e, t) {
28442
28442
  const n = {};
28443
28443
  for (const i of j(e)) {
28444
- const r = lL(e[i], i, t, { compositeMark: !0 });
28444
+ const r = l7(e[i], i, t, { compositeMark: !0 });
28445
28445
  n[i] = r;
28446
28446
  }
28447
28447
  return n;
@@ -28473,7 +28473,7 @@ function tfe(e, t, n, i) {
28473
28473
  return z(s) ? s.reduce((a, u) => t.call(i, a, u, o), r) : t.call(i, r, s, o);
28474
28474
  }, n) : n;
28475
28475
  }
28476
- function bL(e, t) {
28476
+ function b7(e, t) {
28477
28477
  return j(t).reduce((n, i) => {
28478
28478
  switch (i) {
28479
28479
  // x, y, x2, y2, lat, long, lat1, long2, order, tooltip, href, aria label, cursor should not cause lines to group
@@ -28576,7 +28576,7 @@ function cC(e, t, n, i, r) {
28576
28576
  const { scale: o, axis: s } = n;
28577
28577
  return ({ partName: a, mark: u, positionPrefix: l, endPositionPrefix: c = void 0, extraEncoding: f = {} }) => {
28578
28578
  const d = lC(n);
28579
- return vL(e, a, r, {
28579
+ return v7(e, a, r, {
28580
28580
  mark: u,
28581
28581
  // TODO better remove this method and just have mark as a parameter of the method
28582
28582
  encoding: {
@@ -28598,7 +28598,7 @@ function cC(e, t, n, i, r) {
28598
28598
  });
28599
28599
  };
28600
28600
  }
28601
- function vL(e, t, n, i) {
28601
+ function v7(e, t, n, i) {
28602
28602
  const { clip: r, color: o, opacity: s } = e, a = e.type;
28603
28603
  return e[t] || e[t] === void 0 && n[t] ? [
28604
28604
  {
@@ -28615,7 +28615,7 @@ function vL(e, t, n, i) {
28615
28615
  }
28616
28616
  ] : [];
28617
28617
  }
28618
- function xL(e, t, n) {
28618
+ function x7(e, t, n) {
28619
28619
  const { encoding: i } = e, r = t === "vertical" ? "y" : "x", o = i[r], s = i[`${r}2`], a = i[`${r}Error`], u = i[`${r}Error2`];
28620
28620
  return {
28621
28621
  continuousAxisChannelDef: Uh(o, n),
@@ -28632,7 +28632,7 @@ function Uh(e, t) {
28632
28632
  } else
28633
28633
  return e;
28634
28634
  }
28635
- function _L(e, t) {
28635
+ function _7(e, t) {
28636
28636
  const { mark: n, encoding: i } = e, { x: r, y: o } = i;
28637
28637
  if (zr(n) && n.orient)
28638
28638
  return n.orient;
@@ -28654,11 +28654,11 @@ function _L(e, t) {
28654
28654
  throw new Error(`Need a valid continuous axis for ${t}s`);
28655
28655
  }
28656
28656
  }
28657
- const Qg = "boxplot", ife = ["box", "median", "outliers", "rule", "ticks"], rfe = new G0(Qg, EL);
28658
- function wL(e) {
28657
+ const Qg = "boxplot", ife = ["box", "median", "outliers", "rule", "ticks"], rfe = new G0(Qg, E7);
28658
+ function w7(e) {
28659
28659
  return Le(e) ? "tukey" : e;
28660
28660
  }
28661
- function EL(e, { config: t }) {
28661
+ function E7(e, { config: t }) {
28662
28662
  e = {
28663
28663
  ...e,
28664
28664
  encoding: V0(e.encoding, t)
@@ -28670,7 +28670,7 @@ function EL(e, { config: t }) {
28670
28670
  a,
28671
28671
  // TODO: https://github.com/vega/vega-lite/issues/6245
28672
28672
  t
28673
- ), c = a.invalid, f = wL(u), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: b, encodingWithoutContinuousAxis: v, ticksOrient: x, boxOrient: _, customTooltipWithoutAggregatedField: E } = ofe(e, u, t), w = Xl(g.field), { color: C, size: S, ...A } = v, $ = (yn) => cC(a, m, g, yn, t.boxplot), R = $(A), N = $(v), M = (J(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", k = $({
28673
+ ), c = a.invalid, f = w7(u), { bins: d, timeUnits: h, transform: p, continuousAxisChannelDef: g, continuousAxis: m, groupby: y, aggregate: b, encodingWithoutContinuousAxis: v, ticksOrient: x, boxOrient: _, customTooltipWithoutAggregatedField: E } = ofe(e, u, t), w = Xl(g.field), { color: C, size: S, ...A } = v, $ = (yn) => cC(a, m, g, yn, t.boxplot), R = $(A), N = $(v), M = (J(t.boxplot.box) ? t.boxplot.box.color : t.mark.color) || "#4c78a8", k = $({
28674
28674
  ...A,
28675
28675
  ...S ? { size: S } : {},
28676
28676
  color: {
@@ -28754,7 +28754,7 @@ function EL(e, { config: t }) {
28754
28754
  layer: K
28755
28755
  };
28756
28756
  const se = He(`lower_box_${g.field}`), oe = He(`upper_box_${g.field}`), ye = `(${oe} - ${se})`, Oe = `${se} - ${u} * ${ye}`, pe = `${oe} + ${u} * ${ye}`, mt = He(g.field), Kn = {
28757
- joinaggregate: CL(g.field),
28757
+ joinaggregate: C7(g.field),
28758
28758
  groupby: y
28759
28759
  }, Zn = {
28760
28760
  transform: [
@@ -28790,7 +28790,7 @@ function EL(e, { config: t }) {
28790
28790
  }
28791
28791
  ],
28792
28792
  layer: L
28793
- }, { tooltip: te, ...he } = A, { scale: xe, axis: W } = g, at = lC(g), Fe = vL(a, "outliers", t.boxplot, {
28793
+ }, { tooltip: te, ...he } = A, { scale: xe, axis: W } = g, at = lC(g), Fe = v7(a, "outliers", t.boxplot, {
28794
28794
  transform: [{ filter: `(${mt} < ${Oe}) || (${mt} > ${pe})` }],
28795
28795
  mark: "point",
28796
28796
  encoding: {
@@ -28823,7 +28823,7 @@ function EL(e, { config: t }) {
28823
28823
  ]
28824
28824
  };
28825
28825
  }
28826
- function CL(e) {
28826
+ function C7(e) {
28827
28827
  const t = Xl(e);
28828
28828
  return [
28829
28829
  {
@@ -28839,8 +28839,8 @@ function CL(e) {
28839
28839
  ];
28840
28840
  }
28841
28841
  function ofe(e, t, n) {
28842
- const i = _L(e, Qg), { continuousAxisChannelDef: r, continuousAxis: o } = xL(e, i, Qg), s = r.field, a = Xl(s), u = wL(t), l = [
28843
- ...CL(s),
28842
+ const i = _7(e, Qg), { continuousAxisChannelDef: r, continuousAxis: o } = x7(e, i, Qg), s = r.field, a = Xl(s), u = w7(t), l = [
28843
+ ...C7(s),
28844
28844
  {
28845
28845
  op: "median",
28846
28846
  field: s,
@@ -28870,7 +28870,7 @@ function ofe(e, t, n) {
28870
28870
  calculate: `max(${He(`lower_box_${a}`)} - ${He(`iqr_${a}`)} * ${t}, ${He(`min_${a}`)})`,
28871
28871
  as: `lower_whisker_${a}`
28872
28872
  }
28873
- ], { [o]: f, ...d } = e.encoding, { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = nfe(d), { bins: g, timeUnits: m, aggregate: y, groupby: b, encoding: v } = yL(p, n), x = i === "vertical" ? "horizontal" : "vertical", _ = i, E = [
28873
+ ], { [o]: f, ...d } = e.encoding, { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = nfe(d), { bins: g, timeUnits: m, aggregate: y, groupby: b, encoding: v } = y7(p, n), x = i === "vertical" ? "horizontal" : "vertical", _ = i, E = [
28874
28874
  ...g,
28875
28875
  ...m,
28876
28876
  {
@@ -28893,13 +28893,13 @@ function ofe(e, t, n) {
28893
28893
  customTooltipWithoutAggregatedField: h
28894
28894
  };
28895
28895
  }
28896
- const fC = "errorbar", sfe = ["ticks", "rule"], afe = new G0(fC, SL);
28897
- function SL(e, { config: t }) {
28896
+ const fC = "errorbar", sfe = ["ticks", "rule"], afe = new G0(fC, S7);
28897
+ function S7(e, { config: t }) {
28898
28898
  e = {
28899
28899
  ...e,
28900
28900
  encoding: V0(e.encoding, t)
28901
28901
  };
28902
- const { transform: n, continuousAxisChannelDef: i, continuousAxis: r, encodingWithoutContinuousAxis: o, ticksOrient: s, markDef: a, outerSpec: u, tooltipEncoding: l } = kL(e, fC, t);
28902
+ const { transform: n, continuousAxisChannelDef: i, continuousAxis: r, encodingWithoutContinuousAxis: o, ticksOrient: s, markDef: a, outerSpec: u, tooltipEncoding: l } = k7(e, fC, t);
28903
28903
  delete o.size;
28904
28904
  const c = cC(a, r, i, o, t.errorbar), f = a.thickness, d = a.size, h = {
28905
28905
  type: "tick",
@@ -28942,7 +28942,7 @@ function ufe(e, t) {
28942
28942
  const { encoding: n } = e;
28943
28943
  if (lfe(n))
28944
28944
  return {
28945
- orient: _L(e, t),
28945
+ orient: _7(e, t),
28946
28946
  inputType: "raw"
28947
28947
  };
28948
28948
  const i = cfe(n), r = ffe(n), o = n.x, s = n.y;
@@ -28991,10 +28991,10 @@ function cfe(e) {
28991
28991
  function ffe(e) {
28992
28992
  return be(e.xError) || be(e.xError2) || be(e.yError) || be(e.yError2);
28993
28993
  }
28994
- function kL(e, t, n) {
28994
+ function k7(e, t, n) {
28995
28995
  const { mark: i, encoding: r, params: o, projection: s, ...a } = e, u = zr(i) ? i : { type: i };
28996
28996
  o && G(b9(t));
28997
- const { orient: l, inputType: c } = ufe(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = xL(e, l, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: b, tooltipTitleWithFieldName: v } = dfe(u, f, d, h, p, c, t, n), { [g]: x, [g === "x" ? "x2" : "y2"]: _, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: w, ...C } = r, { bins: S, timeUnits: A, aggregate: $, groupby: R, encoding: N } = yL(C, n), M = [...$, ...m], k = c !== "raw" ? [] : R, F = Qv(b, f, N, v);
28997
+ const { orient: l, inputType: c } = ufe(e, t), { continuousAxisChannelDef: f, continuousAxisChannelDef2: d, continuousAxisChannelDefError: h, continuousAxisChannelDefError2: p, continuousAxis: g } = x7(e, l, t), { errorBarSpecificAggregate: m, postAggregateCalculates: y, tooltipSummary: b, tooltipTitleWithFieldName: v } = dfe(u, f, d, h, p, c, t, n), { [g]: x, [g === "x" ? "x2" : "y2"]: _, [g === "x" ? "xError" : "yError"]: E, [g === "x" ? "xError2" : "yError2"]: w, ...C } = r, { bins: S, timeUnits: A, aggregate: $, groupby: R, encoding: N } = y7(C, n), M = [...$, ...m], k = c !== "raw" ? [] : R, F = Qv(b, f, N, v);
28998
28998
  return {
28999
28999
  transform: [
29000
29000
  ...a.transform ?? [],
@@ -29094,13 +29094,13 @@ function dfe(e, t, n, i, r, o, s, a) {
29094
29094
  function DM(e, t, n) {
29095
29095
  return `${Xd(e)} ${n} ${t}`;
29096
29096
  }
29097
- const dC = "errorband", hfe = ["band", "borders"], pfe = new G0(dC, $L);
29098
- function $L(e, { config: t }) {
29097
+ const dC = "errorband", hfe = ["band", "borders"], pfe = new G0(dC, $7);
29098
+ function $7(e, { config: t }) {
29099
29099
  e = {
29100
29100
  ...e,
29101
29101
  encoding: V0(e.encoding, t)
29102
29102
  };
29103
- const { transform: n, continuousAxisChannelDef: i, continuousAxis: r, encodingWithoutContinuousAxis: o, markDef: s, outerSpec: a, tooltipEncoding: u } = kL(e, dC, t), l = s, c = cC(l, r, i, o, t.errorband), f = e.encoding.x !== void 0 && e.encoding.y !== void 0;
29103
+ const { transform: n, continuousAxisChannelDef: i, continuousAxis: r, encodingWithoutContinuousAxis: o, markDef: s, outerSpec: a, tooltipEncoding: u } = k7(e, dC, t), l = s, c = cC(l, r, i, o, t.errorband), f = e.encoding.x !== void 0 && e.encoding.y !== void 0;
29104
29104
  let d = { type: f ? "area" : "rect" }, h = { type: f ? "line" : "rule" };
29105
29105
  const p = {
29106
29106
  ...l.interpolate ? { interpolate: l.interpolate } : {},
@@ -29140,24 +29140,24 @@ function $L(e, { config: t }) {
29140
29140
  ]
29141
29141
  };
29142
29142
  }
29143
- const AL = {};
29143
+ const A7 = {};
29144
29144
  function hC(e, t, n) {
29145
29145
  const i = new G0(e, t);
29146
- AL[e] = { normalizer: i, parts: n };
29146
+ A7[e] = { normalizer: i, parts: n };
29147
29147
  }
29148
29148
  function gfe() {
29149
- return j(AL);
29149
+ return j(A7);
29150
29150
  }
29151
- hC(Qg, EL, ife);
29152
- hC(fC, SL, sfe);
29153
- hC(dC, $L, hfe);
29151
+ hC(Qg, E7, ife);
29152
+ hC(fC, S7, sfe);
29153
+ hC(dC, $7, hfe);
29154
29154
  const mfe = [
29155
29155
  "gradientHorizontalMaxLength",
29156
29156
  "gradientHorizontalMinLength",
29157
29157
  "gradientVerticalMaxLength",
29158
29158
  "gradientVerticalMinLength",
29159
29159
  "unselectedOpacity"
29160
- ], ML = {
29160
+ ], M7 = {
29161
29161
  titleAlign: "align",
29162
29162
  titleAnchor: "anchor",
29163
29163
  titleAngle: "angle",
@@ -29171,7 +29171,7 @@ const mfe = [
29171
29171
  titleLineHeight: "lineHeight",
29172
29172
  titleOrient: "orient",
29173
29173
  titlePadding: "offset"
29174
- }, TL = {
29174
+ }, T7 = {
29175
29175
  labelAlign: "align",
29176
29176
  labelAnchor: "anchor",
29177
29177
  labelAngle: "angle",
@@ -29185,12 +29185,12 @@ const mfe = [
29185
29185
  labelLineHeight: "lineHeight",
29186
29186
  labelOrient: "orient",
29187
29187
  labelPadding: "offset"
29188
- }, yfe = j(ML), bfe = j(TL), vfe = {
29188
+ }, yfe = j(M7), bfe = j(T7), vfe = {
29189
29189
  header: 1,
29190
29190
  headerRow: 1,
29191
29191
  headerColumn: 1,
29192
29192
  headerFacet: 1
29193
- }, FL = j(vfe), NL = [
29193
+ }, F7 = j(vfe), N7 = [
29194
29194
  "size",
29195
29195
  "shape",
29196
29196
  "fill",
@@ -29298,7 +29298,7 @@ function My(e) {
29298
29298
  function gC(e) {
29299
29299
  return !!(e != null && e.select);
29300
29300
  }
29301
- function RL(e) {
29301
+ function R7(e) {
29302
29302
  const t = [];
29303
29303
  for (const n of e || []) {
29304
29304
  if (gC(n))
@@ -29334,7 +29334,7 @@ function Y0(e) {
29334
29334
  function yC(e) {
29335
29335
  return q(e, "hconcat");
29336
29336
  }
29337
- function OL({ step: e, offsetIsDiscrete: t }) {
29337
+ function O7({ step: e, offsetIsDiscrete: t }) {
29338
29338
  return t ? e.for ?? "offset" : "position";
29339
29339
  }
29340
29340
  function Br(e) {
@@ -29370,16 +29370,16 @@ function ex(e, t) {
29370
29370
  }
29371
29371
  function tx(e, t) {
29372
29372
  const n = em(e, t);
29373
- return Br(n) ? n.step : DL;
29373
+ return Br(n) ? n.step : D7;
29374
29374
  }
29375
29375
  function em(e, t) {
29376
29376
  const n = e[t] ?? e[t === "width" ? "discreteWidth" : "discreteHeight"];
29377
29377
  return vt(n, { step: e.step });
29378
29378
  }
29379
- const DL = 20, $fe = {
29379
+ const D7 = 20, $fe = {
29380
29380
  continuousWidth: 300,
29381
29381
  continuousHeight: 300,
29382
- step: DL
29382
+ step: D7
29383
29383
  }, Afe = {
29384
29384
  background: "white",
29385
29385
  padding: 5,
@@ -29569,7 +29569,7 @@ function Ffe(e) {
29569
29569
  }
29570
29570
  };
29571
29571
  }
29572
- function LL(e) {
29572
+ function L7(e) {
29573
29573
  const t = j(e || {}), n = {};
29574
29574
  for (const i of t) {
29575
29575
  const r = e[i];
@@ -29580,13 +29580,13 @@ function LL(e) {
29580
29580
  function Nfe(e) {
29581
29581
  const t = j(e), n = {};
29582
29582
  for (const i of t)
29583
- n[i] = LL(e[i]);
29583
+ n[i] = L7(e[i]);
29584
29584
  return n;
29585
29585
  }
29586
29586
  const Rfe = [
29587
29587
  ...H9,
29588
- ...hL,
29589
- ...FL,
29588
+ ...h7,
29589
+ ...F7,
29590
29590
  "background",
29591
29591
  "padding",
29592
29592
  "legend",
@@ -29596,7 +29596,7 @@ const Rfe = [
29596
29596
  "title",
29597
29597
  "view"
29598
29598
  ];
29599
- function IL(e = {}) {
29599
+ function I7(e = {}) {
29600
29600
  const { color: t, font: n, fontSize: i, selection: r, ...o } = e, s = Nl({}, me(Afe), n ? Ffe(n) : {}, t ? Mfe(t) : {}, i ? Tfe(i) : {}, o || {});
29601
29601
  r && Rl(s, "selection", r, !0);
29602
29602
  const a = ui(s, Rfe);
@@ -29604,9 +29604,9 @@ function IL(e = {}) {
29604
29604
  s[u] && (a[u] = ni(s[u]));
29605
29605
  for (const u of H9)
29606
29606
  s[u] && (a[u] = Ht(s[u]));
29607
- for (const u of hL)
29608
- s[u] && (a[u] = LL(s[u]));
29609
- for (const u of FL)
29607
+ for (const u of h7)
29608
+ s[u] && (a[u] = L7(s[u]));
29609
+ for (const u of F7)
29610
29610
  s[u] && (a[u] = Ht(s[u]));
29611
29611
  if (s.legend && (a.legend = Ht(s.legend)), s.scale) {
29612
29612
  const { invalid: u, ...l } = s.scale, c = Ht(u, { level: 1 });
@@ -29668,7 +29668,7 @@ function Ife(e) {
29668
29668
  delete e.mark[t];
29669
29669
  e.mark.tooltip && J(e.mark.tooltip) && delete e.mark.tooltip;
29670
29670
  }
29671
- e.params && (e.signals = (e.signals || []).concat(RL(e.params)), delete e.params);
29671
+ e.params && (e.signals = (e.signals || []).concat(R7(e.params)), delete e.params);
29672
29672
  for (const t of Ofe) {
29673
29673
  for (const i of AM)
29674
29674
  delete e[t][i];
@@ -29820,7 +29820,7 @@ function Gfe(e) {
29820
29820
  return "theta";
29821
29821
  }
29822
29822
  }
29823
- function PL(e, t) {
29823
+ function P7(e, t) {
29824
29824
  var g, m;
29825
29825
  const n = zr(e) ? e : { type: e }, i = n.type;
29826
29826
  if (!Wfe.has(i))
@@ -29851,7 +29851,7 @@ function PL(e, t) {
29851
29851
  return y;
29852
29852
  }, []);
29853
29853
  let p;
29854
- return o.stack !== void 0 ? Ts(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : Hfe.has(i) && (p = "zero"), !p || !qfe(p) || mL(t) && h.length === 0 ? null : ((g = o == null ? void 0 : o.scale) != null && g.type && ((m = o == null ? void 0 : o.scale) == null ? void 0 : m.type) !== Gt.LINEAR && o != null && o.stack && G(vle(o.scale.type)), be(t[Zr(r)]) ? (o.stack !== void 0 && G(ble(r)), null) : (H(o) && o.aggregate && !due.has(o.aggregate) && G(xle(o.aggregate)), {
29854
+ return o.stack !== void 0 ? Ts(o.stack) ? p = o.stack ? "zero" : null : p = o.stack : Hfe.has(i) && (p = "zero"), !p || !qfe(p) || m7(t) && h.length === 0 ? null : ((g = o == null ? void 0 : o.scale) != null && g.type && ((m = o == null ? void 0 : o.scale) == null ? void 0 : m.type) !== Gt.LINEAR && o != null && o.stack && G(vle(o.scale.type)), be(t[Zr(r)]) ? (o.stack !== void 0 && G(ble(r)), null) : (H(o) && o.aggregate && !due.has(o.aggregate) && G(xle(o.aggregate)), {
29855
29855
  groupbyChannels: u,
29856
29856
  groupbyFields: l,
29857
29857
  fieldChannel: r,
@@ -29860,7 +29860,7 @@ function PL(e, t) {
29860
29860
  offset: p
29861
29861
  }));
29862
29862
  }
29863
- function zL(e, t, n) {
29863
+ function z7(e, t, n) {
29864
29864
  const i = Ht(e), r = qe("orient", i, n);
29865
29865
  if (i.orient = Kfe(i.type, t, r), r !== void 0 && r !== i.orient && G(nle(i.orient, r)), i.type === "bar" && i.orient) {
29866
29866
  const u = qe("cornerRadiusEnd", i, n);
@@ -29877,10 +29877,10 @@ function zL(e, t, n) {
29877
29877
  function Vfe(e, t, n) {
29878
29878
  return t.href || e.href || qe("href", e, n) ? "pointer" : e.cursor;
29879
29879
  }
29880
- const BL = 0.7;
29880
+ const B7 = 0.7;
29881
29881
  function Yfe(e, t) {
29882
- if (Se([B0, XE, KE, ZE], e) && !mL(t))
29883
- return BL;
29882
+ if (Se([B0, XE, KE, ZE], e) && !m7(t))
29883
+ return B7;
29884
29884
  }
29885
29885
  function Xfe(e, t, { graticule: n }) {
29886
29886
  if (n)
@@ -29999,13 +29999,13 @@ class Qfe {
29999
29999
  name: u,
30000
30000
  ...o ? { params: o } : {},
30001
30001
  mark: Zfe({
30002
- ...d.type === "area" && qe("opacity", d, r) == null && qe("fillOpacity", d, r) == null ? { opacity: BL } : {},
30002
+ ...d.type === "area" && qe("opacity", d, r) == null && qe("fillOpacity", d, r) == null ? { opacity: B7 } : {},
30003
30003
  ...d
30004
30004
  }),
30005
30005
  // drop shape from encoding as this might be used to trigger point overlay
30006
30006
  encoding: ui(f, ["shape"])
30007
30007
  }
30008
- ], m = PL(zL(d, f, r), f);
30008
+ ], m = P7(z7(d, f, r), f);
30009
30009
  let y = f;
30010
30010
  if (m) {
30011
30011
  const { fieldChannel: b, offset: v } = m;
@@ -30045,10 +30045,10 @@ class Qfe {
30045
30045
  }
30046
30046
  }
30047
30047
  function ede(e, t) {
30048
- return t ? nh(e) ? jL(e, t) : UL(e, t) : e;
30048
+ return t ? nh(e) ? j7(e, t) : U7(e, t) : e;
30049
30049
  }
30050
30050
  function Fy(e, t) {
30051
- return t ? jL(e, t) : e;
30051
+ return t ? j7(e, t) : e;
30052
30052
  }
30053
30053
  function nx(e, t, n) {
30054
30054
  const i = t[e];
@@ -30060,7 +30060,7 @@ function nx(e, t, n) {
30060
30060
  }
30061
30061
  return t;
30062
30062
  }
30063
- function UL(e, t) {
30063
+ function U7(e, t) {
30064
30064
  if (e = nx("field", e, t), e !== void 0) {
30065
30065
  if (e === null)
30066
30066
  return null;
@@ -30076,7 +30076,7 @@ function UL(e, t) {
30076
30076
  }
30077
30077
  function jM(e, t) {
30078
30078
  if (H(e))
30079
- return UL(e, t);
30079
+ return U7(e, t);
30080
30080
  {
30081
30081
  const n = nx("datum", e, t);
30082
30082
  return n !== e && !n.type && (n.type = "nominal"), n;
@@ -30105,7 +30105,7 @@ function qM(e, t) {
30105
30105
  return e;
30106
30106
  }
30107
30107
  }
30108
- function jL(e, t) {
30108
+ function j7(e, t) {
30109
30109
  const n = {};
30110
30110
  for (const i in e)
30111
30111
  if (q(e, i)) {
@@ -30335,7 +30335,7 @@ function vC(e) {
30335
30335
  function ide(e) {
30336
30336
  return q(e, "stop");
30337
30337
  }
30338
- function qL(e) {
30338
+ function q7(e) {
30339
30339
  return q(e, "lookup");
30340
30340
  }
30341
30341
  function rde(e) {
@@ -30374,7 +30374,7 @@ function pde(e) {
30374
30374
  function gde(e) {
30375
30375
  return q(e, "calculate");
30376
30376
  }
30377
- function WL(e) {
30377
+ function W7(e) {
30378
30378
  return q(e, "bin");
30379
30379
  }
30380
30380
  function mde(e) {
@@ -30408,7 +30408,7 @@ class Ede extends bC {
30408
30408
  if (t = GM(t, n), t.encoding) {
30409
30409
  const i = {};
30410
30410
  for (const [r, o] of Ss(t.encoding))
30411
- i[r] = HL(o, n);
30411
+ i[r] = H7(o, n);
30412
30412
  t = { ...t, encoding: i };
30413
30413
  }
30414
30414
  return super.mapLayerOrUnit(t, n);
@@ -30433,12 +30433,12 @@ function GM(e, t) {
30433
30433
  const r = n.map((o) => {
30434
30434
  if (vC(o))
30435
30435
  return { filter: ix(o, t) };
30436
- if (WL(o) && su(o.bin))
30436
+ if (W7(o) && su(o.bin))
30437
30437
  return {
30438
30438
  ...o,
30439
- bin: GL(o.bin)
30439
+ bin: G7(o.bin)
30440
30440
  };
30441
- if (qL(o)) {
30441
+ if (q7(o)) {
30442
30442
  const { selection: s, ...a } = o.from;
30443
30443
  return s ? {
30444
30444
  ...o,
@@ -30451,10 +30451,10 @@ function GM(e, t) {
30451
30451
  }
30452
30452
  return e;
30453
30453
  }
30454
- function HL(e, t) {
30454
+ function H7(e, t) {
30455
30455
  var i, r;
30456
30456
  const n = me(e);
30457
- if (H(n) && su(n.bin) && (n.bin = GL(n.bin)), cu(n) && ((r = (i = n.scale) == null ? void 0 : i.domain) != null && r.selection)) {
30457
+ if (H(n) && su(n.bin) && (n.bin = G7(n.bin)), cu(n) && ((r = (i = n.scale) == null ? void 0 : i.domain) != null && r.selection)) {
30458
30458
  const { selection: o, ...s } = n.scale.domain;
30459
30459
  n.scale.domain = { ...s, ...o ? { param: o } : {} };
30460
30460
  }
@@ -30465,7 +30465,7 @@ function HL(e, t) {
30465
30465
  return a ? o : { ...l, test: ix(o, t) };
30466
30466
  });
30467
30467
  else {
30468
- const { selection: o, param: s, test: a, ...u } = HL(n.condition, t);
30468
+ const { selection: o, param: s, test: a, ...u } = H7(n.condition, t);
30469
30469
  n.condition = s ? n.condition : {
30470
30470
  ...u,
30471
30471
  test: ix(n.condition, t)
@@ -30473,7 +30473,7 @@ function HL(e, t) {
30473
30473
  }
30474
30474
  return n;
30475
30475
  }
30476
- function GL(e) {
30476
+ function G7(e) {
30477
30477
  const t = e.extent;
30478
30478
  if (t != null && t.selection) {
30479
30479
  const { selection: n, ...i } = t;
@@ -30527,8 +30527,8 @@ function Cde(e, t) {
30527
30527
  path: (t.path ?? []).concat(e.name)
30528
30528
  } : t;
30529
30529
  }
30530
- function VL(e, t) {
30531
- t === void 0 && (t = IL(e.config));
30530
+ function V7(e, t) {
30531
+ t === void 0 && (t = I7(e.config));
30532
30532
  const n = Ade(e, t), { width: i, height: r } = e, o = Mde(n, { width: i, height: r, autosize: e.autosize }, t);
30533
30533
  return {
30534
30534
  ...n,
@@ -30630,7 +30630,7 @@ function Qn(e) {
30630
30630
  value: e
30631
30631
  };
30632
30632
  }
30633
- function YL(e) {
30633
+ function Y7(e) {
30634
30634
  return (t, n, i, r) => {
30635
30635
  const o = e(t.value, n.value);
30636
30636
  return o > 0 ? t : o < 0 ? n : K0(t, n, i, r);
@@ -30661,16 +30661,16 @@ function Sl(e) {
30661
30661
  function fd(e) {
30662
30662
  return q(e, "values");
30663
30663
  }
30664
- function XL(e) {
30664
+ function X7(e) {
30665
30665
  return q(e, "name") && !Sl(e) && !fd(e) && !ps(e);
30666
30666
  }
30667
30667
  function ps(e) {
30668
- return e && (KL(e) || ZL(e) || xC(e));
30668
+ return e && (K7(e) || Z7(e) || xC(e));
30669
30669
  }
30670
- function KL(e) {
30670
+ function K7(e) {
30671
30671
  return q(e, "sequence");
30672
30672
  }
30673
- function ZL(e) {
30673
+ function Z7(e) {
30674
30674
  return q(e, "sphere");
30675
30675
  }
30676
30676
  function xC(e) {
@@ -30680,7 +30680,7 @@ var ct;
30680
30680
  (function(e) {
30681
30681
  e[e.Raw = 0] = "Raw", e[e.Main = 1] = "Main", e[e.Row = 2] = "Row", e[e.Column = 3] = "Column", e[e.Lookup = 4] = "Lookup", e[e.PreFilterInvalid = 5] = "PreFilterInvalid", e[e.PostFilterInvalid = 6] = "PostFilterInvalid";
30682
30682
  })(ct || (ct = {}));
30683
- function JL({ invalid: e, isPath: t }) {
30683
+ function J7({ invalid: e, isPath: t }) {
30684
30684
  switch (G9(e, { isPath: t })) {
30685
30685
  case "filter":
30686
30686
  return {
@@ -30708,7 +30708,7 @@ function JL({ invalid: e, isPath: t }) {
30708
30708
  }
30709
30709
  }
30710
30710
  function Ode(e) {
30711
- const { marks: t, scales: n } = JL(e);
30711
+ const { marks: t, scales: n } = J7(e);
30712
30712
  return t === n ? ct.Main : n === "include-invalid-values" ? ct.PreFilterInvalid : ct.PostFilterInvalid;
30713
30713
  }
30714
30714
  class Ve {
@@ -30921,7 +30921,7 @@ class Mr extends Ve {
30921
30921
  as: f
30922
30922
  }), n.push(...KM(f, r, o));
30923
30923
  } else if (i) {
30924
- const { field: s } = i, a = GD(s), u = QL({ timeUnit: o, field: a }), l = XM(a);
30924
+ const { field: s } = i, a = GD(s), u = Q7({ timeUnit: o, field: a }), l = XM(a);
30925
30925
  n.push({
30926
30926
  type: "formula",
30927
30927
  expr: u,
@@ -30933,7 +30933,7 @@ class Mr extends Ve {
30933
30933
  }
30934
30934
  }
30935
30935
  const Z0 = "offsetted_rect_start", J0 = "offsetted_rect_end";
30936
- function QL({ timeUnit: e, field: t, reverse: n }) {
30936
+ function Q7({ timeUnit: e, field: t, reverse: n }) {
30937
30937
  const { unit: i, utc: r } = e, o = M9(i), { part: s, step: a } = R9(o, e.step);
30938
30938
  return `${r ? "utcOffset" : "timeOffset"}('${s}', ${He(t)}, ${n ? -a : a})`;
30939
30939
  }
@@ -30944,7 +30944,7 @@ function KM([e, t], n, i) {
30944
30944
  {
30945
30945
  type: "formula",
30946
30946
  expr: ZM([
30947
- QL({
30947
+ Q7({
30948
30948
  timeUnit: i,
30949
30949
  field: e,
30950
30950
  reverse: !0
@@ -31033,10 +31033,10 @@ const Lde = {
31033
31033
  const i = t.name + ah;
31034
31034
  return n.filter((o) => o.name === i).length > 0 || t.project.hasSelectionId ? n : n.concat({
31035
31035
  name: i,
31036
- value: t.project.items.map(i7)
31036
+ value: t.project.items.map(iL)
31037
31037
  });
31038
31038
  }
31039
- }, e7 = "_curr", $p = "anim_value", Fu = "anim_clock", ox = "eased_anim_clock", t7 = "min_extent", n7 = "max_range_extent", Ry = "last_tick_at", Oy = "is_playing", Ide = 1 / 60 * 1e3, Pde = (e, t) => [
31039
+ }, eL = "_curr", $p = "anim_value", Fu = "anim_clock", ox = "eased_anim_clock", tL = "min_extent", nL = "max_range_extent", Ry = "last_tick_at", Oy = "is_playing", Ide = 1 / 60 * 1e3, Pde = (e, t) => [
31040
31040
  // timer signals
31041
31041
  {
31042
31042
  name: ox,
@@ -31047,9 +31047,9 @@ const Lde = {
31047
31047
  // scale signals
31048
31048
  // TODO(jzong): uncomment commented signals below when implementing interpolation
31049
31049
  { name: `${e}_domain`, init: `domain('${t}')` },
31050
- { name: t7, init: `extent(${e}_domain)[0]` },
31050
+ { name: tL, init: `extent(${e}_domain)[0]` },
31051
31051
  // {name: 'max_extent', init: `extent(${selectionName}_domain)[1]`},
31052
- { name: n7, init: `extent(range('${t}'))[1]` },
31052
+ { name: nL, init: `extent(range('${t}'))[1]` },
31053
31053
  // {name: 't_index', update: `indexof(${selectionName}_domain, anim_value)`},
31054
31054
  { name: $p, update: `invert('${t}', ${ox})` }
31055
31055
  ], zde = {
@@ -31061,7 +31061,7 @@ const Lde = {
31061
31061
  on: [
31062
31062
  {
31063
31063
  events: { type: "timer", throttle: Ide },
31064
- update: `${Oy} ? (${Fu} + (now() - ${Ry}) > ${n7} ? 0 : ${Fu} + (now() - ${Ry})) : ${Fu}`
31064
+ update: `${Oy} ? (${Fu} + (now() - ${Ry}) > ${nL} ? 0 : ${Fu} + (now() - ${Ry})) : ${Fu}`
31065
31065
  }
31066
31066
  ]
31067
31067
  },
@@ -31081,7 +31081,7 @@ const Lde = {
31081
31081
  if (t.project.hasSelectionId)
31082
31082
  l += `${ir}: ${s}[${V(ir)}]`;
31083
31083
  else if (Tr(t))
31084
- l += `fields: ${r}, values: [${$p} ? ${$p} : ${t7}]`;
31084
+ l += `fields: ${r}, values: [${$p} ? ${$p} : ${tL}]`;
31085
31085
  else {
31086
31086
  const c = o.items.map((f) => {
31087
31087
  const d = e.fieldDef(f.channel);
@@ -31119,7 +31119,7 @@ const Lde = {
31119
31119
  }
31120
31120
  }
31121
31121
  };
31122
- function i7(e) {
31122
+ function iL(e) {
31123
31123
  const { signals: t, hasLegend: n, index: i, ...r } = e;
31124
31124
  return r.field = Ti(r.field), r;
31125
31125
  }
@@ -31173,7 +31173,7 @@ function jde(e, t) {
31173
31173
  const a = i.resolve === "global" ? "union" : i.resolve, u = i.type === "point" ? ", true, true)" : ")";
31174
31174
  t.push({
31175
31175
  name: i.name,
31176
- update: `${_7}(${o}, ${V(a)}${u}`
31176
+ update: `${_L}(${o}, ${V(a)}${u}`
31177
31177
  });
31178
31178
  }
31179
31179
  n = !0;
@@ -31191,7 +31191,7 @@ function qde(e, t) {
31191
31191
  for (const o of wt(e.component.selection ?? {})) {
31192
31192
  const s = { name: o.name + Va };
31193
31193
  if (o.project.hasSelectionId && (s.transform = [{ type: "collect", sort: { field: ir } }]), o.init) {
31194
- const u = o.project.items.map(i7);
31194
+ const u = o.project.items.map(iL);
31195
31195
  s.values = o.project.hasSelectionId ? o.init.map((l) => ({ unit: r, [ir]: Ga(l, !1)[0] })) : o.init.map((l) => ({ unit: r, fields: u, values: Ga(l, !1) }));
31196
31196
  }
31197
31197
  if ([...n, ...t].filter((u) => u.name === o.name + Va).length || n.push(s), Tr(o) && t.length) {
@@ -31199,7 +31199,7 @@ function qde(e, t) {
31199
31199
  if (c) {
31200
31200
  l.transform = l.transform.filter((d) => d !== c);
31201
31201
  const f = {
31202
- name: l.name + e7,
31202
+ name: l.name + eL,
31203
31203
  source: l.name,
31204
31204
  transform: [c]
31205
31205
  // add the selection filter to the animation dataset
@@ -31210,7 +31210,7 @@ function qde(e, t) {
31210
31210
  }
31211
31211
  return n.concat(t, i);
31212
31212
  }
31213
- function r7(e, t) {
31213
+ function rL(e, t) {
31214
31214
  for (const n of wt(e.component.selection ?? {}))
31215
31215
  for (const i of Q0)
31216
31216
  i.defined(n) && i.marks && (t = i.marks(e, n, t));
@@ -31218,11 +31218,11 @@ function r7(e, t) {
31218
31218
  }
31219
31219
  function Wde(e, t) {
31220
31220
  for (const n of e.children)
31221
- lt(n) && (t = r7(n, t));
31221
+ lt(n) && (t = rL(n, t));
31222
31222
  return t;
31223
31223
  }
31224
31224
  function Hde(e, t, n, i) {
31225
- const r = k7(e, t.param, t);
31225
+ const r = kL(e, t.param, t);
31226
31226
  return {
31227
31227
  signal: er(n.get("type")) && z(i) && i[0] > i[1] ? `isValid(${r}) && reverse(${r})` : r
31228
31228
  };
@@ -31252,7 +31252,7 @@ const Eo = {
31252
31252
  return n;
31253
31253
  const r = n.find((s) => s.name === t.name);
31254
31254
  let o = r.update;
31255
- if (o.includes(_7))
31255
+ if (o.includes(_L))
31256
31256
  r.update = `{${i.map((s) => `${V(Ti(s.field))}: ${s.signals.data}`).join(", ")}}`;
31257
31257
  else {
31258
31258
  for (const s of i) {
@@ -31278,7 +31278,7 @@ function sx(e, t) {
31278
31278
  function ax(e) {
31279
31279
  return e.parent && nc(e.parent) && (!e.parent.parent || ax(e.parent.parent));
31280
31280
  }
31281
- const Vu = "_brush", o7 = "_scale_trigger", Xc = "geo_interval_init_tick", s7 = "_init", Gde = "_center", Vde = {
31281
+ const Vu = "_brush", oL = "_scale_trigger", Xc = "geo_interval_init_tick", sL = "_init", Gde = "_center", Vde = {
31282
31282
  defined: (e) => e.type === "interval",
31283
31283
  parse: (e, t, n) => {
31284
31284
  var i;
@@ -31303,7 +31303,7 @@ const Vu = "_brush", o7 = "_scale_trigger", Xc = "geo_interval_init_tick", s7 =
31303
31303
  if (n.push(...o.reduce((a, u) => a.concat(Yde(e, t, u, s == null ? void 0 : s[u.index])), [])), e.hasProjection) {
31304
31304
  const a = V(e.projectionName()), u = e.projectionName() + Gde, { x: l, y: c } = t.project.hasChannel, f = l == null ? void 0 : l.signals.visual, d = c == null ? void 0 : c.signals.visual, h = l ? s == null ? void 0 : s[l.index] : `${u}[0]`, p = c ? s == null ? void 0 : s[c.index] : `${u}[1]`, g = (_) => e.getSizeSignalRef(_).signal, m = `[[${f ? `${f}[0]` : "0"}, ${d ? `${d}[0]` : "0"}],[${f ? `${f}[1]` : g("width")}, ${d ? `${d}[1]` : g("height")}]]`;
31305
31305
  s && (n.unshift({
31306
- name: i + s7,
31306
+ name: i + sL,
31307
31307
  init: `[scale(${a}, [${l ? h[0] : h}, ${c ? p[0] : p}]), scale(${a}, [${l ? h[1] : h}, ${c ? p[1] : p}])]`
31308
31308
  }), (!l || !c) && (n.find((E) => E.name === u) || n.unshift({
31309
31309
  name: u,
@@ -31324,7 +31324,7 @@ const Vu = "_brush", o7 = "_scale_trigger", Xc = "geo_interval_init_tick", s7 =
31324
31324
  });
31325
31325
  } else {
31326
31326
  if (!Eo.defined(t)) {
31327
- const l = i + o7, c = o.map((f) => {
31327
+ const l = i + oL, c = o.map((f) => {
31328
31328
  const d = f.channel, { data: h, visual: p } = f.signals, g = V(e.scaleName(d)), m = e.getScaleComponent(d).get("type"), y = er(m) ? "+" : "";
31329
31329
  return `(!isArray(${h}) || (${y}invert(${g}, ${p})[0] === ${y}${h}[0] && ${y}invert(${g}, ${p})[1] === ${y}${h}[1]))`;
31330
31330
  });
@@ -31434,7 +31434,7 @@ function Yde(e, t, n, i) {
31434
31434
  if (r) {
31435
31435
  const d = n.signals.data, h = Eo.defined(t), p = e.getScaleComponent(o), g = p ? p.get("type") : void 0, m = i ? { init: Ga(i, !0, u) } : { value: [] };
31436
31436
  return f.push({
31437
- events: { signal: t.name + o7 },
31437
+ events: { signal: t.name + oL },
31438
31438
  update: er(g) ? `[${u(`${d}[0]`)}, ${u(`${d}[1]`)}]` : "[0, 0]"
31439
31439
  }), h ? [{ name: d, on: [] }] : [
31440
31440
  { name: s, ...m, on: f },
@@ -31451,7 +31451,7 @@ function Yde(e, t, n, i) {
31451
31451
  }
31452
31452
  ];
31453
31453
  } else {
31454
- const d = o === st ? 0 : 1, h = t.name + s7, p = i ? { init: `[${h}[0][${d}], ${h}[1][${d}]]` } : { value: [] };
31454
+ const d = o === st ? 0 : 1, h = t.name + sL, p = i ? { init: `[${h}[0][${d}], ${h}[1][${d}]]` } : { value: [] };
31455
31455
  return [{ name: s, ...p, on: f }];
31456
31456
  }
31457
31457
  }
@@ -31462,7 +31462,7 @@ function Jl({ model: e, channelDef: t, vgChannel: n, invalidValueRef: i, mainRef
31462
31462
  const c = r(l);
31463
31463
  if (Dce(l)) {
31464
31464
  const { param: f, empty: d } = l;
31465
- return { test: S7(e, { param: f, empty: d }), ...c };
31465
+ return { test: SL(e, { param: f, empty: d }), ...c };
31466
31466
  } else
31467
31467
  return { test: im(e, l.test), ...c };
31468
31468
  })), i !== void 0 && s.push(i);
@@ -31490,7 +31490,7 @@ function EC(e, t, n = "datum") {
31490
31490
  }
31491
31491
  }
31492
31492
  }
31493
- function a7(e, t = {}) {
31493
+ function aL(e, t = {}) {
31494
31494
  const { encoding: n, markDef: i, config: r, stack: o } = e, s = n.tooltip;
31495
31495
  if (z(s))
31496
31496
  return { tooltip: JM({ tooltip: s }, o, r, t) };
@@ -31501,7 +31501,7 @@ function a7(e, t = {}) {
31501
31501
  channelDef: s,
31502
31502
  vgChannel: "tooltip",
31503
31503
  mainRefFn: (l) => {
31504
- const c = l7(l, r, a);
31504
+ const c = lL(l, r, a);
31505
31505
  if (c)
31506
31506
  return c;
31507
31507
  if (l === null)
@@ -31517,7 +31517,7 @@ function a7(e, t = {}) {
31517
31517
  });
31518
31518
  }
31519
31519
  }
31520
- function u7(e, t, n, { reactiveGeom: i } = {}) {
31520
+ function uL(e, t, n, { reactiveGeom: i } = {}) {
31521
31521
  const r = { ...n, ...n.tooltipFormat }, o = /* @__PURE__ */ new Set(), s = i ? "datum.datum" : "datum", a = [];
31522
31522
  function u(c, f) {
31523
31523
  const d = ou(f), h = Nn(c) ? c : {
@@ -31544,7 +31544,7 @@ function u7(e, t, n, { reactiveGeom: i } = {}) {
31544
31544
  normalizeStack: !0
31545
31545
  }).signal;
31546
31546
  }
31547
- m ?? (m = l7(h, r, s).signal), a.push({ channel: f, key: g, value: m });
31547
+ m ?? (m = lL(h, r, s).signal), a.push({ channel: f, key: g, value: m });
31548
31548
  }
31549
31549
  uC(e, (c, f) => {
31550
31550
  H(c) ? u(c, f) : q0(c) && u(c.condition, f);
@@ -31555,10 +31555,10 @@ function u7(e, t, n, { reactiveGeom: i } = {}) {
31555
31555
  return l;
31556
31556
  }
31557
31557
  function JM(e, t, n, { reactiveGeom: i } = {}) {
31558
- const r = u7(e, t, n, { reactiveGeom: i }), o = Ss(r).map(([s, a]) => `"${s}": ${a}`);
31558
+ const r = uL(e, t, n, { reactiveGeom: i }), o = Ss(r).map(([s, a]) => `"${s}": ${a}`);
31559
31559
  return o.length > 0 ? { signal: `{${o.join(", ")}}` } : void 0;
31560
31560
  }
31561
- function l7(e, t, n = "datum") {
31561
+ function lL(e, t, n = "datum") {
31562
31562
  if (H(e) && GE(e.type) && !q(e, "format")) {
31563
31563
  const i = `datum["${e.field}"]`;
31564
31564
  return {
@@ -31600,7 +31600,7 @@ function Zde(e) {
31600
31600
  };
31601
31601
  if (i.aria === !1)
31602
31602
  return {};
31603
- const a = u7(t, r, i);
31603
+ const a = uL(t, r, i);
31604
31604
  if (!Ze(a))
31605
31605
  return {
31606
31606
  description: {
@@ -31643,7 +31643,7 @@ function Vt(e, t, n = {}) {
31643
31643
  })
31644
31644
  });
31645
31645
  }
31646
- function c7(e, t = { filled: void 0 }) {
31646
+ function cL(e, t = { filled: void 0 }) {
31647
31647
  const { markDef: n, encoding: i, config: r } = e, { type: o } = n, s = t.filled ?? qe("filled", n, r), a = Se(["bar", "point", "circle", "square", "geoshape"], o) ? "transparent" : void 0, u = qe(s === !0 ? "color" : void 0, n, r, { vgChannel: "fill" }) ?? // need to add this manually as getMarkConfig normally drops config.mark[channel] if vgChannel is specified
31648
31648
  r.mark[s === !0 && "color"] ?? // If there is no fill, always fill symbols, bar, geoshape
31649
31649
  // with transparent fills https://github.com/vega/vega-lite/issues/1316
@@ -31798,7 +31798,7 @@ const ehe = {
31798
31798
  middle: "yc",
31799
31799
  bottom: "y2"
31800
31800
  };
31801
- function f7(e, t, n, i = "middle") {
31801
+ function fL(e, t, n, i = "middle") {
31802
31802
  if (e === "radius" || e === "theta")
31803
31803
  return ks(e);
31804
31804
  const r = e === "x" ? "align" : "baseline", o = qe(r, t, n);
@@ -31806,12 +31806,12 @@ function f7(e, t, n, i = "middle") {
31806
31806
  return re(o) ? (G(ele(r)), s = void 0) : s = o, e === "x" ? ehe[s || (i === "top" ? "left" : "center")] : the[s || i];
31807
31807
  }
31808
31808
  function tm(e, t, { defaultPos: n, defaultPos2: i, range: r }) {
31809
- return r ? d7(e, t, { defaultPos: n, defaultPos2: i }) : $n(e, t, { defaultPos: n });
31809
+ return r ? dL(e, t, { defaultPos: n, defaultPos2: i }) : $n(e, t, { defaultPos: n });
31810
31810
  }
31811
- function d7(e, t, { defaultPos: n, defaultPos2: i }) {
31811
+ function dL(e, t, { defaultPos: n, defaultPos2: i }) {
31812
31812
  const { markDef: r, config: o } = t, s = Zr(e), a = Vn(e), u = nhe(t, i, s), l = u[a] ? (
31813
31813
  // If there is width/height, we need to position the marks based on the alignment.
31814
- f7(e, r, o)
31814
+ fL(e, r, o)
31815
31815
  ) : (
31816
31816
  // Otherwise, make sure to apply to the right Vg Channel (for arc mark)
31817
31817
  ks(e)
@@ -31891,7 +31891,7 @@ function Mo(e, t) {
31891
31891
  fieldDef2: l,
31892
31892
  channel: t,
31893
31893
  model: e
31894
- }) : (be(u) && Bt(f) || g) && !l ? ohe(u, t, e) : d7(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
31894
+ }) : (be(u) && Bt(f) || g) && !l ? ohe(u, t, e) : dL(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
31895
31895
  }
31896
31896
  function rhe(e, t, n, i, r, o, s) {
31897
31897
  if (Wa(r))
@@ -31940,7 +31940,7 @@ function ohe(e, t, n) {
31940
31940
  vgChannel: c,
31941
31941
  defaultRef: nt(i.size)
31942
31942
  }) : G(ule(i.type)));
31943
- const y = !!m, b = tL({
31943
+ const y = !!m, b = t7({
31944
31944
  channel: t,
31945
31945
  fieldDef: e,
31946
31946
  markDef: i,
@@ -31951,7 +31951,7 @@ function ohe(e, t, n) {
31951
31951
  m = m || {
31952
31952
  [c]: rhe(c, h || u, p || l, o, b, !!e, i.type)
31953
31953
  };
31954
- const v = ((A = l || p) == null ? void 0 : A.get("type")) === "band" && Wa(b) && !y ? "top" : "middle", x = f7(t, i, o, v), _ = x === "xc" || x === "yc", { offset: E, offsetType: w } = kl({ channel: t, markDef: i, encoding: r, model: n, bandPosition: _ ? 0.5 : 0 }), C = eC({
31954
+ const v = ((A = l || p) == null ? void 0 : A.get("type")) === "band" && Wa(b) && !y ? "top" : "middle", x = fL(t, i, o, v), _ = x === "xc" || x === "yc", { offset: E, offsetType: w } = kl({ channel: t, markDef: i, encoding: r, model: n, bandPosition: _ ? 0.5 : 0 }), C = eC({
31955
31955
  channel: t,
31956
31956
  channelDef: e,
31957
31957
  markDef: i,
@@ -31991,7 +31991,7 @@ function e5(e, t, n, i, r, o, s) {
31991
31991
  }
31992
31992
  function she({ fieldDef: e, fieldDef2: t, channel: n, model: i }) {
31993
31993
  var A;
31994
- const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), u = i.scaleName(n), l = a ? a.get("type") : void 0, c = a.get("reverse"), f = tL({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: l }), d = (A = i.component.axes[n]) == null ? void 0 : A[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p = xt(n) ? qe("binSpacing", o, r) ?? 0 : 0, g = Zr(n), m = ks(n), y = ks(g), b = Pr("minBandSize", o, r), { offset: v } = kl({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: x } = kl({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), _ = Tce({ fieldDef: e, scaleName: u }), E = e5(n, p, c, h, v, b, _), w = e5(g, p, c, h, x ?? v, b, _), C = re(f) ? { signal: `(1-${f.signal})/2` } : Wa(f) ? (1 - f.band) / 2 : 0.5, S = $s({ fieldDef: e, fieldDef2: t, markDef: o, config: r });
31994
+ const { config: r, markDef: o, encoding: s } = i, a = i.getScaleComponent(n), u = i.scaleName(n), l = a ? a.get("type") : void 0, c = a.get("reverse"), f = t7({ channel: n, fieldDef: e, markDef: o, config: r, scaleType: l }), d = (A = i.component.axes[n]) == null ? void 0 : A[0], h = (d == null ? void 0 : d.get("translate")) ?? 0.5, p = xt(n) ? qe("binSpacing", o, r) ?? 0 : 0, g = Zr(n), m = ks(n), y = ks(g), b = Pr("minBandSize", o, r), { offset: v } = kl({ channel: n, markDef: o, encoding: s, model: i, bandPosition: 0 }), { offset: x } = kl({ channel: g, markDef: o, encoding: s, model: i, bandPosition: 0 }), _ = Tce({ fieldDef: e, scaleName: u }), E = e5(n, p, c, h, v, b, _), w = e5(g, p, c, h, x ?? v, b, _), C = re(f) ? { signal: `(1-${f.signal})/2` } : Wa(f) ? (1 - f.band) / 2 : 0.5, S = $s({ fieldDef: e, fieldDef2: t, markDef: o, config: r });
31995
31995
  if (et(e.bin) || e.timeUnit) {
31996
31996
  const $ = e.timeUnit && S !== 0.5;
31997
31997
  return {
@@ -32042,7 +32042,7 @@ function t5({ fieldDef: e, scaleName: t, bandPosition: n, offset: i, useRectOffs
32042
32042
  }
32043
32043
  const ahe = /* @__PURE__ */ new Set(["aria", "width", "height"]);
32044
32044
  function Oi(e, t) {
32045
- const { fill: n = void 0, stroke: i = void 0 } = t.color === "include" ? c7(e) : {};
32045
+ const { fill: n = void 0, stroke: i = void 0 } = t.color === "include" ? cL(e) : {};
32046
32046
  return {
32047
32047
  ...uhe(e.markDef, t),
32048
32048
  ...n5("fill", n),
@@ -32053,7 +32053,7 @@ function Oi(e, t) {
32053
32053
  ...Vt("strokeWidth", e),
32054
32054
  ...Vt("strokeDash", e),
32055
32055
  ...Jde(e),
32056
- ...a7(e),
32056
+ ...aL(e),
32057
32057
  ...wC(e, "href"),
32058
32058
  ...Xde(e)
32059
32059
  };
@@ -32089,7 +32089,7 @@ function i5(e, t) {
32089
32089
  if (t !== void 0)
32090
32090
  return { [e]: nt(t) };
32091
32091
  }
32092
- const Dy = "voronoi", h7 = {
32092
+ const Dy = "voronoi", hL = {
32093
32093
  defined: (e) => e.type === "point" && e.nearest,
32094
32094
  parse: (e, t) => {
32095
32095
  if (t.events)
@@ -32112,7 +32112,7 @@ const Dy = "voronoi", h7 = {
32112
32112
  strokeWidth: { value: 0.35 },
32113
32113
  stroke: { value: "transparent" },
32114
32114
  isVoronoi: { value: !0 },
32115
- ...a7(e, { reactiveGeom: !0 })
32115
+ ...aL(e, { reactiveGeom: !0 })
32116
32116
  }
32117
32117
  },
32118
32118
  transform: [
@@ -32130,12 +32130,12 @@ const Dy = "voronoi", h7 = {
32130
32130
  f === e.component.mark[0].name ? a = c : f.includes(Dy) && (u = !0);
32131
32131
  }), u || n.splice(a + 1, 0, s), n;
32132
32132
  }
32133
- }, p7 = {
32133
+ }, pL = {
32134
32134
  defined: (e) => e.type === "point" && e.resolve === "global" && e.bind && e.bind !== "scales" && !pC(e.bind),
32135
- parse: (e, t, n) => w7(t, n),
32135
+ parse: (e, t, n) => wL(t, n),
32136
32136
  topLevelSignals: (e, t, n) => {
32137
32137
  var u;
32138
- const i = t.name, r = t.project, o = t.bind, s = (u = t.init) == null ? void 0 : u[0], a = h7.defined(t) ? "(item().isVoronoi ? datum.datum : datum)" : "datum";
32138
+ const i = t.name, r = t.project, o = t.bind, s = (u = t.init) == null ? void 0 : u[0], a = hL.defined(t) ? "(item().isVoronoi ? datum.datum : datum)" : "datum";
32139
32139
  return r.items.forEach((l, c) => {
32140
32140
  const f = ot(`${i}_${l.field}`);
32141
32141
  n.filter((h) => h.name === f).length || n.unshift({
@@ -32155,7 +32155,7 @@ const Dy = "voronoi", h7 = {
32155
32155
  const i = t.name, r = t.project, o = n.find((l) => l.name === i + To), s = i + ah, a = r.items.map((l) => ot(`${i}_${l.field}`)), u = a.map((l) => `${l} !== null`).join(" && ");
32156
32156
  return a.length && (o.update = `${u} ? {fields: ${s}, values: [${a.join(", ")}]} : null`), delete o.value, delete o.on, n;
32157
32157
  }
32158
- }, nm = "_toggle", g7 = {
32158
+ }, nm = "_toggle", gL = {
32159
32159
  defined: (e) => e.type === "point" && !Tr(e) && !!e.toggle,
32160
32160
  signals: (e, t, n) => n.concat({
32161
32161
  name: t.name + nm,
@@ -32172,7 +32172,7 @@ const Dy = "voronoi", h7 = {
32172
32172
  t.clear && (t.clear = Z(t.clear) ? Ls(t.clear, "view") : t.clear);
32173
32173
  },
32174
32174
  topLevelSignals: (e, t, n) => {
32175
- if (p7.defined(t))
32175
+ if (pL.defined(t))
32176
32176
  for (const i of t.project.items) {
32177
32177
  const r = n.findIndex((o) => o.name === ot(`${t.name}_${i.field}`));
32178
32178
  r !== -1 && n[r].on.push({ events: t.clear, update: "null" });
@@ -32193,18 +32193,18 @@ const Dy = "voronoi", h7 = {
32193
32193
  }
32194
32194
  else {
32195
32195
  let r = n.findIndex((o) => o.name === t.name + To);
32196
- i(r, "null"), g7.defined(t) && (r = n.findIndex((o) => o.name === t.name + nm), i(r, "false"));
32196
+ i(r, "null"), gL.defined(t) && (r = n.findIndex((o) => o.name === t.name + nm), i(r, "false"));
32197
32197
  }
32198
32198
  return n;
32199
32199
  }
32200
- }, m7 = {
32200
+ }, mL = {
32201
32201
  defined: (e) => {
32202
32202
  const t = e.resolve === "global" && e.bind && pC(e.bind), n = e.project.items.length === 1 && e.project.items[0].field !== ir;
32203
32203
  return t && !n && G(Aue), t && n;
32204
32204
  },
32205
32205
  parse: (e, t, n) => {
32206
32206
  const i = me(n);
32207
- if (i.select = Z(i.select) ? { type: i.select, toggle: t.toggle } : { ...i.select, toggle: t.toggle }, w7(t, i), J(n.select) && (n.select.on || n.select.clear)) {
32207
+ if (i.select = Z(i.select) ? { type: i.select, toggle: t.toggle } : { ...i.select, toggle: t.toggle }, wL(t, i), J(n.select) && (n.select.on || n.select.clear)) {
32208
32208
  const s = 'event.item && indexof(event.item.mark.role, "legend") < 0';
32209
32209
  for (const a of t.events)
32210
32210
  a.filter = Q(a.filter ?? []), a.filter.includes(s) || a.filter.push(s);
@@ -32255,16 +32255,16 @@ function che(e, t, n) {
32255
32255
  const i = (r = e.fieldDef(t)) == null ? void 0 : r.field;
32256
32256
  for (const o of wt(e.component.selection ?? {})) {
32257
32257
  const s = o.project.hasField[i] ?? o.project.hasChannel[t];
32258
- if (s && m7.defined(o)) {
32258
+ if (s && mL.defined(o)) {
32259
32259
  const a = n.get("selections") ?? [];
32260
32260
  a.push(o.name), n.set("selections", a, !1), s.hasLegend = !0;
32261
32261
  }
32262
32262
  }
32263
32263
  }
32264
- const y7 = "_translate_anchor", b7 = "_translate_delta", fhe = {
32264
+ const yL = "_translate_anchor", bL = "_translate_delta", fhe = {
32265
32265
  defined: (e) => e.type === "interval" && e.translate,
32266
32266
  signals: (e, t, n) => {
32267
- const i = t.name, r = Eo.defined(t), o = i + y7, { x: s, y: a } = t.project.hasChannel;
32267
+ const i = t.name, r = Eo.defined(t), o = i + yL, { x: s, y: a } = t.project.hasChannel;
32268
32268
  let u = Ls(t.translate, "scope");
32269
32269
  return r || (u = u.map((l) => (l.between[0].markname = i + Vu, l))), n.push({
32270
32270
  name: o,
@@ -32276,7 +32276,7 @@ const y7 = "_translate_anchor", b7 = "_translate_delta", fhe = {
32276
32276
  }
32277
32277
  ]
32278
32278
  }, {
32279
- name: i + b7,
32279
+ name: i + bL,
32280
32280
  value: {},
32281
32281
  on: [
32282
32282
  {
@@ -32288,19 +32288,19 @@ const y7 = "_translate_anchor", b7 = "_translate_delta", fhe = {
32288
32288
  }
32289
32289
  };
32290
32290
  function r5(e, t, n, i, r) {
32291
- const o = t.name, s = o + y7, a = o + b7, u = n.channel, l = Eo.defined(t), c = r.find((_) => _.name === n.signals[l ? "data" : "visual"]), f = e.getSizeSignalRef(i).signal, d = e.getScaleComponent(u), h = d == null ? void 0 : d.get("type"), p = d == null ? void 0 : d.get("reverse"), g = l ? u === st ? p ? "" : "-" : p ? "-" : "" : "", m = `${s}.extent_${u}`, y = `${g}${a}.${u} / ${l ? `${f}` : `span(${m})`}`, b = !l || !d ? "panLinear" : h === "log" ? "panLog" : h === "symlog" ? "panSymlog" : h === "pow" ? "panPow" : "panLinear", v = l ? h === "pow" ? `, ${d.get("exponent") ?? 1}` : h === "symlog" ? `, ${d.get("constant") ?? 1}` : "" : "", x = `${b}(${m}, ${y}${v})`;
32291
+ const o = t.name, s = o + yL, a = o + bL, u = n.channel, l = Eo.defined(t), c = r.find((_) => _.name === n.signals[l ? "data" : "visual"]), f = e.getSizeSignalRef(i).signal, d = e.getScaleComponent(u), h = d == null ? void 0 : d.get("type"), p = d == null ? void 0 : d.get("reverse"), g = l ? u === st ? p ? "" : "-" : p ? "-" : "" : "", m = `${s}.extent_${u}`, y = `${g}${a}.${u} / ${l ? `${f}` : `span(${m})`}`, b = !l || !d ? "panLinear" : h === "log" ? "panLog" : h === "symlog" ? "panSymlog" : h === "pow" ? "panPow" : "panLinear", v = l ? h === "pow" ? `, ${d.get("exponent") ?? 1}` : h === "symlog" ? `, ${d.get("constant") ?? 1}` : "" : "", x = `${b}(${m}, ${y}${v})`;
32292
32292
  c.on.push({
32293
32293
  events: { signal: a },
32294
32294
  update: l ? x : `clampRange(${x}, 0, ${f})`
32295
32295
  });
32296
32296
  }
32297
- const v7 = "_zoom_anchor", x7 = "_zoom_delta", dhe = {
32297
+ const vL = "_zoom_anchor", xL = "_zoom_delta", dhe = {
32298
32298
  defined: (e) => e.type === "interval" && e.zoom,
32299
32299
  signals: (e, t, n) => {
32300
- const i = t.name, r = Eo.defined(t), o = i + x7, { x: s, y: a } = t.project.hasChannel, u = V(e.scaleName(st)), l = V(e.scaleName(jt));
32300
+ const i = t.name, r = Eo.defined(t), o = i + xL, { x: s, y: a } = t.project.hasChannel, u = V(e.scaleName(st)), l = V(e.scaleName(jt));
32301
32301
  let c = Ls(t.zoom, "scope");
32302
32302
  return r || (c = c.map((f) => (f.markname = i + Vu, f))), n.push({
32303
- name: i + v7,
32303
+ name: i + vL,
32304
32304
  on: [
32305
32305
  {
32306
32306
  events: c,
@@ -32320,25 +32320,25 @@ const v7 = "_zoom_anchor", x7 = "_zoom_delta", dhe = {
32320
32320
  }
32321
32321
  };
32322
32322
  function o5(e, t, n, i, r) {
32323
- const o = t.name, s = n.channel, a = Eo.defined(t), u = r.find((b) => b.name === n.signals[a ? "data" : "visual"]), l = e.getSizeSignalRef(i).signal, c = e.getScaleComponent(s), f = c == null ? void 0 : c.get("type"), d = a ? sx(e, s) : u.name, h = o + x7, p = `${o}${v7}.${s}`, g = !a || !c ? "zoomLinear" : f === "log" ? "zoomLog" : f === "symlog" ? "zoomSymlog" : f === "pow" ? "zoomPow" : "zoomLinear", m = a ? f === "pow" ? `, ${c.get("exponent") ?? 1}` : f === "symlog" ? `, ${c.get("constant") ?? 1}` : "" : "", y = `${g}(${d}, ${p}, ${h}${m})`;
32323
+ const o = t.name, s = n.channel, a = Eo.defined(t), u = r.find((b) => b.name === n.signals[a ? "data" : "visual"]), l = e.getSizeSignalRef(i).signal, c = e.getScaleComponent(s), f = c == null ? void 0 : c.get("type"), d = a ? sx(e, s) : u.name, h = o + xL, p = `${o}${vL}.${s}`, g = !a || !c ? "zoomLinear" : f === "log" ? "zoomLog" : f === "symlog" ? "zoomSymlog" : f === "pow" ? "zoomPow" : "zoomLinear", m = a ? f === "pow" ? `, ${c.get("exponent") ?? 1}` : f === "symlog" ? `, ${c.get("constant") ?? 1}` : "" : "", y = `${g}(${d}, ${p}, ${h}${m})`;
32324
32324
  u.on.push({
32325
32325
  events: { signal: h },
32326
32326
  update: a ? y : `clampRange(${y}, 0, ${l})`
32327
32327
  });
32328
32328
  }
32329
- const Va = "_store", To = "_tuple", hhe = "_modify", _7 = "vlSelectionResolve", Q0 = [
32329
+ const Va = "_store", To = "_tuple", hhe = "_modify", _L = "vlSelectionResolve", Q0 = [
32330
32330
  zde,
32331
32331
  Vde,
32332
32332
  Lde,
32333
- g7,
32333
+ gL,
32334
32334
  // Bindings may disable direct manipulation.
32335
- p7,
32335
+ pL,
32336
32336
  Eo,
32337
- m7,
32337
+ mL,
32338
32338
  lhe,
32339
32339
  fhe,
32340
32340
  dhe,
32341
- h7
32341
+ hL
32342
32342
  ];
32343
32343
  function phe(e) {
32344
32344
  let t = e.parent;
@@ -32359,7 +32359,7 @@ function Ca(e, { escape: t } = { escape: !0 }) {
32359
32359
  function kC(e) {
32360
32360
  return wt(e.component.selection ?? {}).reduce((t, n) => t || n.project.hasSelectionId, !1);
32361
32361
  }
32362
- function w7(e, t) {
32362
+ function wL(e, t) {
32363
32363
  (Z(t.select) || !t.select.on) && delete e.events, (Z(t.select) || !t.select.clear) && delete e.clear, (Z(t.select) || !t.select.toggle) && delete e.toggle;
32364
32364
  }
32365
32365
  function Tr(e) {
@@ -32370,13 +32370,13 @@ function ux(e) {
32370
32370
  const t = [];
32371
32371
  return e.type === "Identifier" ? [e.name] : e.type === "Literal" ? [e.value] : (e.type === "MemberExpression" && (t.push(...ux(e.object)), t.push(...ux(e.property))), t);
32372
32372
  }
32373
- function E7(e) {
32374
- return e.object.type === "MemberExpression" ? E7(e.object) : e.object.name === "datum";
32373
+ function EL(e) {
32374
+ return e.object.type === "MemberExpression" ? EL(e.object) : e.object.name === "datum";
32375
32375
  }
32376
- function C7(e) {
32376
+ function CL(e) {
32377
32377
  const t = qw(e), n = /* @__PURE__ */ new Set();
32378
32378
  return t.visit((i) => {
32379
- i.type === "MemberExpression" && E7(i) && n.add(ux(i).slice(1).join("."));
32379
+ i.type === "MemberExpression" && EL(i) && n.add(ux(i).slice(1).join("."));
32380
32380
  }), n;
32381
32381
  }
32382
32382
  class Ql extends Ve {
@@ -32386,7 +32386,7 @@ class Ql extends Ve {
32386
32386
  U(this, "filter");
32387
32387
  U(this, "expr");
32388
32388
  U(this, "_dependentFields");
32389
- this.model = i, this.filter = r, this.expr = im(this.model, this.filter, this), this._dependentFields = C7(this.expr);
32389
+ this.model = i, this.filter = r, this.expr = im(this.model, this.filter, this), this._dependentFields = CL(this.expr);
32390
32390
  }
32391
32391
  clone() {
32392
32392
  return new Ql(null, this.model, me(this.filter));
@@ -32434,7 +32434,7 @@ function ghe(e, t) {
32434
32434
  }
32435
32435
  return r > 1 && G(Oue), n;
32436
32436
  }
32437
- function S7(e, t, n, i = "datum") {
32437
+ function SL(e, t, n, i = "datum") {
32438
32438
  const r = Z(t) ? t : t.param, o = ot(r), s = V(o + Va);
32439
32439
  let a;
32440
32440
  try {
@@ -32449,7 +32449,7 @@ function S7(e, t, n, i = "datum") {
32449
32449
  const u = a.project.hasSelectionId ? "vlSelectionIdTest(" : "vlSelectionTest(", l = a.resolve === "global" ? ")" : `, ${V(a.resolve)})`, c = `${u}${s}, ${i}${l}`, f = `length(data(${s}))`;
32450
32450
  return t.empty === !1 ? `${f} && ${c}` : `!${f} || ${c}`;
32451
32451
  }
32452
- function k7(e, t, n) {
32452
+ function kL(e, t, n) {
32453
32453
  const i = ot(t), r = n.encoding;
32454
32454
  let o = n.field, s;
32455
32455
  try {
@@ -32472,7 +32472,7 @@ function mhe(e, t) {
32472
32472
  }
32473
32473
  }
32474
32474
  function im(e, t, n) {
32475
- return Lf(t, (i) => Z(i) ? i : Hle(i) ? S7(e, i, n) : D9(i));
32475
+ return Lf(t, (i) => Z(i) ? i : Hle(i) ? SL(e, i, n) : D9(i));
32476
32476
  }
32477
32477
  function yhe(e, t) {
32478
32478
  if (e)
@@ -32555,7 +32555,7 @@ function Ef(e, t, n, i = { header: !1 }) {
32555
32555
  (d = (f = c.encode) == null ? void 0 : f.labels) != null && d.update && re(c.encode.labels.update.text) && (p = za(a, "datum.label", c.encode.labels.update.text.signal)), Ly(c, "labels", "text", { signal: p });
32556
32556
  }
32557
32557
  if (c.labelAlign === null && delete c.labelAlign, c.encode) {
32558
- for (const p of fL)
32558
+ for (const p of f7)
32559
32559
  e.hasAxisPart(p) || delete c.encode[p];
32560
32560
  Ze(c.encode) && delete c.encode;
32561
32561
  }
@@ -32573,7 +32573,7 @@ function Ef(e, t, n, i = { header: !1 }) {
32573
32573
  }
32574
32574
  }
32575
32575
  }
32576
- function $7(e) {
32576
+ function $L(e) {
32577
32577
  const { axes: t } = e.component, n = [];
32578
32578
  for (const i of zo)
32579
32579
  if (t[i]) {
@@ -32661,10 +32661,10 @@ const a5 = {
32661
32661
  // we already calculate this in parse
32662
32662
  grid: ({ fieldOrDatumDef: e, axis: t, scaleType: n }) => t.grid ?? _he(n, e),
32663
32663
  gridScale: ({ model: e, channel: t }) => whe(e, t),
32664
- labelAlign: ({ axis: e, labelAngle: t, orient: n, channel: i }) => e.labelAlign || M7(t, n, i),
32664
+ labelAlign: ({ axis: e, labelAngle: t, orient: n, channel: i }) => e.labelAlign || ML(t, n, i),
32665
32665
  labelAngle: ({ labelAngle: e }) => e,
32666
32666
  // we already calculate this in parse
32667
- labelBaseline: ({ axis: e, labelAngle: t, orient: n, channel: i }) => e.labelBaseline || A7(t, n, i),
32667
+ labelBaseline: ({ axis: e, labelAngle: t, orient: n, channel: i }) => e.labelBaseline || AL(t, n, i),
32668
32668
  labelFlush: ({ axis: e, fieldOrDatumDef: t, channel: n }) => e.labelFlush ?? Che(t.type, n),
32669
32669
  labelOverlap: ({ axis: e, fieldOrDatumDef: t, scaleType: n }) => e.labelOverlap ?? She(t.type, n, H(t) && !!t.timeUnit, H(t) ? t.sort : void 0),
32670
32670
  // we already calculate orient in parse
@@ -32678,7 +32678,7 @@ const a5 = {
32678
32678
  title: ({ axis: e, model: t, channel: n }) => {
32679
32679
  if (e.title !== void 0)
32680
32680
  return e.title;
32681
- const i = T7(t, n);
32681
+ const i = TL(t, n);
32682
32682
  if (i !== void 0)
32683
32683
  return i;
32684
32684
  const r = t.typedFieldDef(n), o = n === "x" ? "x2" : "y2", s = t.fieldDef(o);
@@ -32707,7 +32707,7 @@ function Ehe(e, t, n, i, r) {
32707
32707
  function cx(e) {
32708
32708
  return `(((${e.signal} % 360) + 360) % 360)`;
32709
32709
  }
32710
- function A7(e, t, n, i) {
32710
+ function AL(e, t, n, i) {
32711
32711
  if (e !== void 0)
32712
32712
  if (n === "x") {
32713
32713
  if (re(e)) {
@@ -32739,7 +32739,7 @@ function A7(e, t, n, i) {
32739
32739
  return (45 <= e && e <= 135) == (t === "left") ? "top" : "bottom";
32740
32740
  }
32741
32741
  }
32742
- function M7(e, t, n) {
32742
+ function ML(e, t, n) {
32743
32743
  if (e === void 0)
32744
32744
  return;
32745
32745
  const i = n === "x", r = i ? 0 : 90, o = i ? "bottom" : "left";
@@ -32794,7 +32794,7 @@ function Ahe({ format: e, fieldOrDatumDef: t }) {
32794
32794
  }
32795
32795
  }
32796
32796
  }
32797
- function T7(e, t) {
32797
+ function TL(e, t) {
32798
32798
  const n = t === "x" ? "x2" : "y2", i = e.fieldDef(t), r = e.fieldDef(n), o = i ? i.title : void 0, s = r ? r.title : void 0;
32799
32799
  if (o && s)
32800
32800
  return m9(o, s);
@@ -32810,7 +32810,7 @@ function T7(e, t) {
32810
32810
  function Mhe(e, t) {
32811
32811
  const n = e.values;
32812
32812
  if (z(n))
32813
- return cL(t, n);
32813
+ return c7(t, n);
32814
32814
  if (re(n))
32815
32815
  return n;
32816
32816
  }
@@ -32822,14 +32822,14 @@ class $l extends Ve {
32822
32822
  super(n);
32823
32823
  U(this, "transform");
32824
32824
  U(this, "_dependentFields");
32825
- this.transform = i, this._dependentFields = C7(this.transform.calculate);
32825
+ this.transform = i, this._dependentFields = CL(this.transform.calculate);
32826
32826
  }
32827
32827
  clone() {
32828
32828
  return new $l(null, me(this.transform));
32829
32829
  }
32830
32830
  static parseAllForSortIndex(n, i) {
32831
32831
  return i.forEachFieldDef((r, o) => {
32832
- if (cu(r) && eL(r.sort)) {
32832
+ if (cu(r) && e7(r.sort)) {
32833
32833
  const { field: s, timeUnit: a } = r, u = r.sort, l = u.map((c, f) => `${D9({ field: s, timeUnit: a, equal: c })} ? ${f} : `).join("") + u.length;
32834
32834
  n = new $l(n, {
32835
32835
  calculate: l,
@@ -32884,24 +32884,24 @@ function Fhe(e, t) {
32884
32884
  text: n,
32885
32885
  ...t === "row" ? { orient: "left" } : {},
32886
32886
  style: "guide-title",
32887
- ...N7(l, u),
32888
- ...F7(u, l, o),
32889
- ...R7(i, r, t, yfe, ML)
32887
+ ...NL(l, u),
32888
+ ...FL(u, l, o),
32889
+ ...RL(i, r, t, yfe, M7)
32890
32890
  }
32891
32891
  };
32892
32892
  }
32893
- function F7(e, t, n = "middle") {
32893
+ function FL(e, t, n = "middle") {
32894
32894
  switch (n) {
32895
32895
  case "start":
32896
32896
  return { align: "left" };
32897
32897
  case "end":
32898
32898
  return { align: "right" };
32899
32899
  }
32900
- const i = M7(t, e === "row" ? "left" : "top", e === "row" ? "y" : "x");
32900
+ const i = ML(t, e === "row" ? "left" : "top", e === "row" ? "y" : "x");
32901
32901
  return i ? { align: i } : {};
32902
32902
  }
32903
- function N7(e, t) {
32904
- const n = A7(e, t === "row" ? "left" : "top", t === "row" ? "y" : "x", !0);
32903
+ function NL(e, t) {
32904
+ const n = AL(e, t === "row" ? "left" : "top", t === "row" ? "y" : "x", !0);
32905
32905
  return n ? { baseline: n } : {};
32906
32906
  }
32907
32907
  function Nhe(e, t) {
@@ -32942,9 +32942,9 @@ function fx(e, t, n) {
32942
32942
  ...t === "row" ? { orient: "left" } : {},
32943
32943
  style: "guide-label",
32944
32944
  frame: "group",
32945
- ...N7(o, c),
32946
- ...F7(c, o, s),
32947
- ...R7(n, e, t, bfe, TL)
32945
+ ...NL(o, c),
32946
+ ...FL(c, o, s),
32947
+ ...RL(n, e, t, bfe, T7)
32948
32948
  };
32949
32949
  }
32950
32950
  function Ohe(e, t, n, i, r) {
@@ -33007,7 +33007,7 @@ function Ihe(e, t) {
33007
33007
  }
33008
33008
  return Ze(n) ? void 0 : n;
33009
33009
  }
33010
- function R7(e, t, n, i, r) {
33010
+ function RL(e, t, n, i, r) {
33011
33011
  const o = {};
33012
33012
  for (const s of i) {
33013
33013
  if (!r[s])
@@ -33040,7 +33040,7 @@ function qh(e, t) {
33040
33040
  u5(u, a),
33041
33041
  {
33042
33042
  name: r,
33043
- update: O7(u, o, `domain('${u}').length`)
33043
+ update: OL(u, o, `domain('${u}').length`)
33044
33044
  }
33045
33045
  ];
33046
33046
  }
@@ -33061,7 +33061,7 @@ function u5(e, t) {
33061
33061
  const n = `${e}_step`;
33062
33062
  return re(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
33063
33063
  }
33064
- function O7(e, t, n) {
33064
+ function OL(e, t, n) {
33065
33065
  const i = t.get("type"), r = t.get("padding"), o = vt(t.get("paddingOuter"), r);
33066
33066
  let s = t.get("paddingInner");
33067
33067
  return s = i === "band" ? (
@@ -33073,10 +33073,10 @@ function O7(e, t, n) {
33073
33073
  1
33074
33074
  ), `bandspace(${n}, ${Gi(s)}, ${Gi(o)}) * ${e}_step`;
33075
33075
  }
33076
- function D7(e) {
33076
+ function DL(e) {
33077
33077
  return e === "childWidth" ? "width" : e === "childHeight" ? "height" : e;
33078
33078
  }
33079
- function L7(e, t) {
33079
+ function LL(e, t) {
33080
33080
  return j(e).reduce((n, i) => ({
33081
33081
  ...n,
33082
33082
  ...Jl({
@@ -33089,7 +33089,7 @@ function L7(e, t) {
33089
33089
  })
33090
33090
  }), {});
33091
33091
  }
33092
- function I7(e, t) {
33092
+ function IL(e, t) {
33093
33093
  if (li(t))
33094
33094
  return e === "theta" ? "independent" : "shared";
33095
33095
  if (nc(t))
@@ -33117,7 +33117,7 @@ const Phe = {
33117
33117
  strokeDash: 1,
33118
33118
  // encode
33119
33119
  encode: 1
33120
- }, P7 = j(Phe);
33120
+ }, PL = j(Phe);
33121
33121
  class zhe extends Uo {
33122
33122
  }
33123
33123
  const l5 = {
@@ -33132,9 +33132,9 @@ function Bhe(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r, legen
33132
33132
  const { markDef: s, encoding: a, config: u, mark: l } = n, c = s.filled && l !== "trail";
33133
33133
  let f = {
33134
33134
  ..._ue({}, n, yce),
33135
- ...c7(n, { filled: c })
33135
+ ...cL(n, { filled: c })
33136
33136
  };
33137
- const d = r.get("symbolOpacity") ?? u.legend.symbolOpacity, h = r.get("symbolFillColor") ?? u.legend.symbolFillColor, p = r.get("symbolStrokeColor") ?? u.legend.symbolStrokeColor, g = d === void 0 ? z7(a.opacity) ?? s.opacity : void 0;
33137
+ const d = r.get("symbolOpacity") ?? u.legend.symbolOpacity, h = r.get("symbolFillColor") ?? u.legend.symbolFillColor, p = r.get("symbolStrokeColor") ?? u.legend.symbolStrokeColor, g = d === void 0 ? zL(a.opacity) ?? s.opacity : void 0;
33138
33138
  if (f.fill) {
33139
33139
  if (i === "fill" || c && i === Hn)
33140
33140
  delete f.fill;
@@ -33156,7 +33156,7 @@ function Bhe(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r, legen
33156
33156
  }
33157
33157
  }
33158
33158
  if (i !== Po) {
33159
- const m = H(t) && U7(n, r, t);
33159
+ const m = H(t) && UL(n, r, t);
33160
33160
  m ? f.opacity = [
33161
33161
  { test: m, ...nt(g ?? 1) },
33162
33162
  nt(u.legend.unselectedOpacity)
@@ -33169,11 +33169,11 @@ function Uhe(e, { model: t, legendType: n, legendCmpt: i }) {
33169
33169
  return;
33170
33170
  const { config: r, markDef: o, encoding: s } = t;
33171
33171
  let a = {};
33172
- const l = (i.get("gradientOpacity") ?? r.legend.gradientOpacity) === void 0 ? z7(s.opacity) || o.opacity : void 0;
33172
+ const l = (i.get("gradientOpacity") ?? r.legend.gradientOpacity) === void 0 ? zL(s.opacity) || o.opacity : void 0;
33173
33173
  return l && (a.opacity = nt(l)), a = { ...a, ...e }, Ze(a) ? void 0 : a;
33174
33174
  }
33175
33175
  function jhe(e, { fieldOrDatumDef: t, model: n, channel: i, legendCmpt: r }) {
33176
- const o = n.legend(i) || {}, s = n.config, a = H(t) ? U7(n, r, t) : void 0, u = a ? [{ test: a, value: 1 }, { value: s.legend.unselectedOpacity }] : void 0, { format: l, formatType: c } = o;
33176
+ const o = n.legend(i) || {}, s = n.config, a = H(t) ? UL(n, r, t) : void 0, u = a ? [{ test: a, value: 1 }, { value: s.legend.unselectedOpacity }] : void 0, { format: l, formatType: c } = o;
33177
33177
  let f;
33178
33178
  Ha(c) ? f = Vi({
33179
33179
  fieldOrDatumDef: t,
@@ -33205,19 +33205,19 @@ function qhe(e, { legendCmpt: t }) {
33205
33205
  const n = t.get("selections");
33206
33206
  return n != null && n.length ? { ...e, fill: { value: "transparent" } } : e;
33207
33207
  }
33208
- function z7(e) {
33209
- return B7(e, (t, n) => Math.max(t, n.value));
33208
+ function zL(e) {
33209
+ return BL(e, (t, n) => Math.max(t, n.value));
33210
33210
  }
33211
33211
  function dx(e) {
33212
- return B7(e, (t, n) => vt(t, n.value));
33212
+ return BL(e, (t, n) => vt(t, n.value));
33213
33213
  }
33214
- function B7(e, t) {
33214
+ function BL(e, t) {
33215
33215
  if (Ice(e))
33216
33216
  return Q(e.condition).reduce(t, e.value);
33217
33217
  if (tr(e))
33218
33218
  return e.value;
33219
33219
  }
33220
- function U7(e, t, n) {
33220
+ function UL(e, t, n) {
33221
33221
  const i = t.get("selections");
33222
33222
  if (!(i != null && i.length))
33223
33223
  return;
@@ -33255,7 +33255,7 @@ const c5 = {
33255
33255
  function Whe(e, t) {
33256
33256
  const n = e.values;
33257
33257
  if (z(n))
33258
- return cL(t, n);
33258
+ return c7(t, n);
33259
33259
  if (re(n))
33260
33260
  return n;
33261
33261
  }
@@ -33328,13 +33328,13 @@ function Zhe(e) {
33328
33328
  if (Se(["quantile", "threshold", "log", "symlog"], e))
33329
33329
  return "greedy";
33330
33330
  }
33331
- function j7(e) {
33331
+ function jL(e) {
33332
33332
  const t = lt(e) ? Jhe(e) : npe(e);
33333
33333
  return e.component.legends = t, t;
33334
33334
  }
33335
33335
  function Jhe(e) {
33336
33336
  const { encoding: t } = e, n = {};
33337
- for (const i of [Hn, ...NL]) {
33337
+ for (const i of [Hn, ...N7]) {
33338
33338
  const r = At(t[i]);
33339
33339
  !r || !e.getScaleComponent(i) || i === Gn && H(r) && r.type === Zl || (n[i] = tpe(e, i));
33340
33340
  }
@@ -33386,7 +33386,7 @@ function tpe(e, t) {
33386
33386
  legendType: h,
33387
33387
  direction: p
33388
33388
  };
33389
- for (const _ of P7) {
33389
+ for (const _ of PL) {
33390
33390
  if (h === "gradient" && _.startsWith("symbol") || h === "symbol" && _.startsWith("gradient"))
33391
33391
  continue;
33392
33392
  const E = _ in c5 ? c5[_](g) : n[_];
@@ -33397,7 +33397,7 @@ function tpe(e, t) {
33397
33397
  }
33398
33398
  const m = (n == null ? void 0 : n.encoding) ?? {}, y = a.get("selections"), b = {}, v = { fieldOrDatumDef: c, model: e, channel: t, legendCmpt: a, legendType: h };
33399
33399
  for (const _ of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
33400
- const E = L7(m[_] ?? {}, e), w = _ in l5 ? l5[_](E, v) : E;
33400
+ const E = LL(m[_] ?? {}, e), w = _ in l5 ? l5[_](E, v) : E;
33401
33401
  w !== void 0 && !Ze(w) && (b[_] = {
33402
33402
  ...y != null && y.length && H(c) ? { name: `${ot(c.field)}_legend_${_}` } : {},
33403
33403
  ...y != null && y.length ? { interactive: !0 } : {},
@@ -33409,16 +33409,16 @@ function tpe(e, t) {
33409
33409
  function npe(e) {
33410
33410
  const { legends: t, resolve: n } = e.component;
33411
33411
  for (const i of e.children) {
33412
- j7(i);
33412
+ jL(i);
33413
33413
  for (const r of j(i.component.legends))
33414
- n.legend[r] = TC(e.component.resolve, r), n.legend[r] === "shared" && (t[r] = q7(t[r], i.component.legends[r]), t[r] || (n.legend[r] = "independent", delete t[r]));
33414
+ n.legend[r] = TC(e.component.resolve, r), n.legend[r] === "shared" && (t[r] = qL(t[r], i.component.legends[r]), t[r] || (n.legend[r] = "independent", delete t[r]));
33415
33415
  }
33416
33416
  for (const i of j(t))
33417
33417
  for (const r of e.children)
33418
33418
  r.component.legends[i] && n.legend[i] === "shared" && delete r.component.legends[i];
33419
33419
  return t;
33420
33420
  }
33421
- function q7(e, t) {
33421
+ function qL(e, t) {
33422
33422
  var o, s, a, u;
33423
33423
  if (!e)
33424
33424
  return t.clone();
@@ -33426,7 +33426,7 @@ function q7(e, t) {
33426
33426
  if (n.explicit && i.explicit && n.value !== i.value)
33427
33427
  return;
33428
33428
  let r = !1;
33429
- for (const l of P7) {
33429
+ for (const l of PL) {
33430
33430
  const c = As(
33431
33431
  e.getWithExplicit(l),
33432
33432
  t.getWithExplicit(l),
@@ -33456,13 +33456,13 @@ function rpe(e, t, n, i) {
33456
33456
  var r, o;
33457
33457
  e.encode ?? (e.encode = {}), (r = e.encode)[t] ?? (r[t] = {}), (o = e.encode[t]).update ?? (o.update = {}), e.encode[t].update[n] = i;
33458
33458
  }
33459
- function W7(e) {
33459
+ function WL(e) {
33460
33460
  const t = e.component.legends, n = {};
33461
33461
  for (const r of j(t)) {
33462
33462
  const o = e.getScaleComponent(r), s = We(o.get("domains"));
33463
33463
  if (n[s])
33464
33464
  for (const a of n[s])
33465
- q7(a, t[r]) || n[s].push(t[r]);
33465
+ qL(a, t[r]) || n[s].push(t[r]);
33466
33466
  else
33467
33467
  n[s] = [t[r].clone()];
33468
33468
  }
@@ -33475,7 +33475,7 @@ function ope(e, t) {
33475
33475
  if (t.aria === !1 && o.aria == null && (o.aria = !1), (s = o.encode) != null && s.symbols) {
33476
33476
  const l = o.encode.symbols.update;
33477
33477
  l.fill && l.fill.value !== "transparent" && !l.stroke && !o.stroke && (l.stroke = { value: "transparent" });
33478
- for (const c of NL)
33478
+ for (const c of N7)
33479
33479
  o[c] && delete l[c];
33480
33480
  }
33481
33481
  if (o.title || delete o.title, i !== void 0) {
@@ -33486,12 +33486,12 @@ function ope(e, t) {
33486
33486
  }
33487
33487
  }
33488
33488
  function spe(e) {
33489
- return nc(e) || LC(e) ? ape(e) : H7(e);
33489
+ return nc(e) || LC(e) ? ape(e) : HL(e);
33490
33490
  }
33491
33491
  function ape(e) {
33492
- return e.children.reduce((t, n) => t.concat(n.assembleProjections()), H7(e));
33492
+ return e.children.reduce((t, n) => t.concat(n.assembleProjections()), HL(e));
33493
33493
  }
33494
- function H7(e) {
33494
+ function HL(e) {
33495
33495
  const t = e.component.projection;
33496
33496
  if (!t || t.merged)
33497
33497
  return [];
@@ -33545,7 +33545,7 @@ const upe = [
33545
33545
  "spacing",
33546
33546
  "tilt"
33547
33547
  ];
33548
- class G7 extends Uo {
33548
+ class GL extends Uo {
33549
33549
  constructor(n, i, r, o) {
33550
33550
  super(
33551
33551
  { ...i },
@@ -33565,12 +33565,12 @@ class G7 extends Uo {
33565
33565
  return !!this.data;
33566
33566
  }
33567
33567
  }
33568
- function V7(e) {
33568
+ function VL(e) {
33569
33569
  e.component.projection = lt(e) ? lpe(e) : dpe(e);
33570
33570
  }
33571
33571
  function lpe(e) {
33572
33572
  if (e.hasProjection) {
33573
- const t = Ht(e.specifiedProjection), n = !(t && (t.scale != null || t.translate != null)), i = n ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] : void 0, r = n ? cpe(e) : void 0, o = new G7(e.projectionName(!0), {
33573
+ const t = Ht(e.specifiedProjection), n = !(t && (t.scale != null || t.translate != null)), i = n ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] : void 0, r = n ? cpe(e) : void 0, o = new GL(e.projectionName(!0), {
33574
33574
  ...Ht(e.config.projection),
33575
33575
  ...t
33576
33576
  }, i, r);
@@ -33608,7 +33608,7 @@ function dpe(e) {
33608
33608
  return;
33609
33609
  let t;
33610
33610
  for (const i of e.children)
33611
- V7(i);
33611
+ VL(i);
33612
33612
  const n = vE(e.children, (i) => {
33613
33613
  const r = i.component.projection;
33614
33614
  if (r)
@@ -33620,7 +33620,7 @@ function dpe(e) {
33620
33620
  else return !0;
33621
33621
  });
33622
33622
  if (t && n) {
33623
- const i = e.projectionName(!0), r = new G7(i, t.specifiedProjection, t.size, me(t.data));
33623
+ const i = e.projectionName(!0), r = new GL(i, t.specifiedProjection, t.size, me(t.data));
33624
33624
  for (const o of e.children) {
33625
33625
  const s = o.component.projection;
33626
33626
  s && (s.isFit && r.data.push(...o.component.projection.data), o.renameProjection(s.get("name"), i), s.merged = !0);
@@ -33638,7 +33638,7 @@ function hpe(e, t, n, i) {
33638
33638
  }
33639
33639
  return {};
33640
33640
  }
33641
- function Y7(e, t) {
33641
+ function YL(e, t) {
33642
33642
  return `${l9(e)}_${t}`;
33643
33643
  }
33644
33644
  function ppe(e, t) {
@@ -33648,7 +33648,7 @@ function ppe(e, t) {
33648
33648
  };
33649
33649
  }
33650
33650
  function FC(e, t, n) {
33651
- const i = W0(n, void 0) ?? {}, r = Y7(i, t);
33651
+ const i = W0(n, void 0) ?? {}, r = YL(i, t);
33652
33652
  return e.getName(`${r}_bins`);
33653
33653
  }
33654
33654
  function gpe(e) {
@@ -33657,10 +33657,10 @@ function gpe(e) {
33657
33657
  function d5(e, t, n) {
33658
33658
  let i, r;
33659
33659
  gpe(e) ? i = Z(e.as) ? [e.as, `${e.as}_end`] : [e.as[0], e.as[1]] : i = [X(e, { forAs: !0 }), X(e, { binSuffix: "end", forAs: !0 })];
33660
- const o = { ...W0(t, void 0) }, s = Y7(o, e.field), { signal: a, extentSignal: u } = ppe(n, s);
33660
+ const o = { ...W0(t, void 0) }, s = YL(o, e.field), { signal: a, extentSignal: u } = ppe(n, s);
33661
33661
  if (R0(o.extent)) {
33662
33662
  const c = o.extent;
33663
- r = k7(n, c.param, c), delete o.extent;
33663
+ r = kL(n, c.param, c), delete o.extent;
33664
33664
  }
33665
33665
  const l = {
33666
33666
  bin: o,
@@ -33759,7 +33759,7 @@ class Fr extends Ve {
33759
33759
  function mpe(e, t, n, i) {
33760
33760
  var o;
33761
33761
  const r = lt(i) ? i.encoding[Zr(t)] : void 0;
33762
- if (Nn(n) && lt(i) && nL(n, r, i.markDef, i.config)) {
33762
+ if (Nn(n) && lt(i) && n7(n, r, i.markDef, i.config)) {
33763
33763
  e.add(X(n, {})), e.add(X(n, { suffix: "end" }));
33764
33764
  const { mark: s, markDef: a, config: u } = i, l = $s({ fieldDef: n, markDef: a, config: u });
33765
33765
  cd(s) && l !== 0.5 && xt(t) && (e.add(X(n, { suffix: Z0 })), e.add(X(n, { suffix: J0 }))), n.bin && oh(n, t) && e.add(X(n, { binSuffix: "range" }));
@@ -34248,7 +34248,7 @@ class Ya extends Ve {
34248
34248
  let r = /(?:\.([^.]+))?$/.exec(n.url)[1];
34249
34249
  Se(["json", "csv", "tsv", "dsv", "topojson"], r) || (r = "json"), i.type = r;
34250
34250
  }
34251
- } else ZL(n) ? this._data = { values: [{ type: "Sphere" }] } : (XL(n) || ps(n)) && (this._data = {});
34251
+ } else Z7(n) ? this._data = { values: [{ type: "Sphere" }] } : (X7(n) || ps(n)) && (this._data = {});
34252
34252
  this._generator = ps(n), n.name && (this._name = n.name), i && !Ze(i) && (this._data.format = i);
34253
34253
  }
34254
34254
  dependentFields() {
@@ -34644,7 +34644,7 @@ class Co extends Ve {
34644
34644
  if (z(d) || H(d))
34645
34645
  h = p9(d);
34646
34646
  else {
34647
- const p = iL(d) ? d.sort : a === "y" ? "descending" : "ascending";
34647
+ const p = i7(d) ? d.sort : a === "y" ? "descending" : "ascending";
34648
34648
  h = f.reduce((g, m) => (g.field.includes(m) || (g.field.push(m), g.order.push(p)), g), { field: [], order: [] });
34649
34649
  }
34650
34650
  return new Co(n, {
@@ -34799,7 +34799,7 @@ function px(e) {
34799
34799
  (t instanceof Xi || t instanceof Co || t instanceof tc || t instanceof du) && t.addDimensions(e.fields), t.swapWithParent(), px(e);
34800
34800
  } else {
34801
34801
  const t = e.model.component.data.main;
34802
- X7(t);
34802
+ XL(t);
34803
34803
  const n = Dpe(e), i = e.children.map(n).flat();
34804
34804
  for (const r of i)
34805
34805
  r.parent = t;
@@ -34807,10 +34807,10 @@ function px(e) {
34807
34807
  else
34808
34808
  e.children.map(px);
34809
34809
  }
34810
- function X7(e) {
34810
+ function XL(e) {
34811
34811
  if (e instanceof Un && e.type === ct.Main && e.numChildren() === 1) {
34812
34812
  const t = e.children[0];
34813
- t instanceof ec || (t.swapWithParent(), X7(e));
34813
+ t instanceof ec || (t.swapWithParent(), XL(e));
34814
34814
  }
34815
34815
  }
34816
34816
  const gx = "scale_", Wh = 5;
@@ -34857,7 +34857,7 @@ class Rt {
34857
34857
  return new Rt(() => t(n));
34858
34858
  }
34859
34859
  }
34860
- function K7(e) {
34860
+ function KL(e) {
34861
34861
  lt(e) ? Ipe(e) : Ppe(e);
34862
34862
  }
34863
34863
  function Ipe(e) {
@@ -34876,7 +34876,7 @@ function Ipe(e) {
34876
34876
  }
34877
34877
  function Ppe(e) {
34878
34878
  for (const n of e.children)
34879
- K7(n);
34879
+ KL(n);
34880
34880
  const t = e.component.scales;
34881
34881
  for (const n of j(t)) {
34882
34882
  let i, r = null;
@@ -35004,7 +35004,7 @@ function Vo(e, t, n, i) {
35004
35004
  }
35005
35005
  } else if (p.timeUnit && Se(["time", "utc"], e)) {
35006
35006
  const g = r[Zr(i)];
35007
- if (nL(p, g, o, a)) {
35007
+ if (n7(p, g, o, a)) {
35008
35008
  const m = n.requestDataName(d), y = $s({ fieldDef: p, fieldDef2: g, markDef: o, config: a }), b = cd(s) && y !== 0.5 && xt(i);
35009
35009
  return Qn([
35010
35010
  {
@@ -35052,7 +35052,7 @@ function qpe(e, t, n) {
35052
35052
  if (!Bt(n))
35053
35053
  return;
35054
35054
  const i = e.fieldDef(t), r = i.sort;
35055
- if (eL(r))
35055
+ if (e7(r))
35056
35056
  return {
35057
35057
  op: "min",
35058
35058
  field: Al(i, t),
@@ -35174,8 +35174,8 @@ function n1(e, t) {
35174
35174
  const i = e.component.scales[t].get("domains").map((r) => (mo(r) && (r.data = e.lookupDataSource(r.data)), r));
35175
35175
  return Wpe(i);
35176
35176
  }
35177
- function Z7(e) {
35178
- return nc(e) || LC(e) ? e.children.reduce((t, n) => t.concat(Z7(n)), m5(e)) : m5(e);
35177
+ function ZL(e) {
35178
+ return nc(e) || LC(e) ? e.children.reduce((t, n) => t.concat(ZL(n)), m5(e)) : m5(e);
35179
35179
  }
35180
35180
  function m5(e) {
35181
35181
  return j(e.component.scales).reduce((t, n) => {
@@ -35207,7 +35207,7 @@ function Hpe(e, t, n, i) {
35207
35207
  };
35208
35208
  return e;
35209
35209
  }
35210
- class J7 extends Uo {
35210
+ class JL extends Uo {
35211
35211
  constructor(n, i) {
35212
35212
  super(
35213
35213
  {},
@@ -35344,7 +35344,7 @@ function Xpe(e) {
35344
35344
  ...ui(e, ["name"])
35345
35345
  } : { scheme: e };
35346
35346
  }
35347
- function Q7(e, t, n, { center: i } = {}) {
35347
+ function QL(e, t, n, { center: i } = {}) {
35348
35348
  const r = Vn(e), o = t.getName(r), s = t.getSignalName.bind(t);
35349
35349
  return e === jt && er(n) ? i ? [
35350
35350
  Rt.fromName((a) => `${s(a)}/2`, o),
@@ -35364,7 +35364,7 @@ function Kpe(e, t) {
35364
35364
  if (Br(f))
35365
35365
  return { step: eI(f, t, e) };
35366
35366
  }
35367
- return Q7(e, t, u);
35367
+ return QL(e, t, u);
35368
35368
  }
35369
35369
  case Is:
35370
35370
  case Kl:
@@ -35412,7 +35412,7 @@ function Kpe(e, t) {
35412
35412
  }
35413
35413
  function eI(e, t, n) {
35414
35414
  const { encoding: i } = t, r = t.getScaleComponent(n), o = kE(n), s = i[o];
35415
- if (OL({ step: e, offsetIsDiscrete: be(s) && GE(s.type) }) === "offset" && pL(i, o)) {
35415
+ if (O7({ step: e, offsetIsDiscrete: be(s) && GE(s.type) }) === "offset" && p7(i, o)) {
35416
35416
  const u = t.getScaleComponent(o);
35417
35417
  let c = `domain('${t.scaleName(o)}').length`;
35418
35418
  if (u.get("type") === "band") {
@@ -35427,13 +35427,13 @@ function eI(e, t, n) {
35427
35427
  return e.step;
35428
35428
  }
35429
35429
  function tI(e, t) {
35430
- if (OL({ step: e, offsetIsDiscrete: Bt(t) }) === "offset")
35430
+ if (O7({ step: e, offsetIsDiscrete: Bt(t) }) === "offset")
35431
35431
  return { step: e.step };
35432
35432
  }
35433
35433
  function Zpe(e, t, n) {
35434
35434
  const i = e === Is ? "x" : "y", r = t.getScaleComponent(i);
35435
35435
  if (!r)
35436
- return Q7(i, t, n, { center: !0 });
35436
+ return QL(i, t, n, { center: !0 });
35437
35437
  const o = r.get("type"), s = t.scaleName(i), { markDef: a, config: u } = t;
35438
35438
  if (o === "band") {
35439
35439
  const l = nI(i, t.size, t.config.view);
@@ -35569,7 +35569,7 @@ function nge(e, t) {
35569
35569
  domainMax: u.domainMax,
35570
35570
  markDef: o,
35571
35571
  config: i,
35572
- hasNestedOffsetScale: gL(r, a),
35572
+ hasNestedOffsetScale: g7(r, a),
35573
35573
  hasSecondaryRangeChannel: !!r[Zr(a)]
35574
35574
  }) : i.scale[t];
35575
35575
  b !== void 0 && l.set(t, b, !1);
@@ -35602,7 +35602,7 @@ function oI(e, t) {
35602
35602
  const s = o.component.scales[i];
35603
35603
  if (s) {
35604
35604
  const a = s.getWithExplicit(t);
35605
- r = As(r, a, t, "scale", YL((u, l) => {
35605
+ r = As(r, a, t, "scale", Y7((u, l) => {
35606
35606
  switch (t) {
35607
35607
  case "range":
35608
35608
  return u.step && l.step ? u.step - l.step : 0;
@@ -35732,7 +35732,7 @@ function dge(e, t, n, i) {
35732
35732
  throw new Error(v9(t.type));
35733
35733
  }
35734
35734
  function hge(e, { ignoreRange: t } = {}) {
35735
- sI(e), K7(e);
35735
+ sI(e), KL(e);
35736
35736
  for (const n of ace)
35737
35737
  iI(e, n);
35738
35738
  t || rI(e);
@@ -35749,8 +35749,8 @@ function pge(e) {
35749
35749
  let a = s && s.scale;
35750
35750
  if (s && a !== null && a !== !1) {
35751
35751
  a ?? (a = {});
35752
- const u = gL(t, o), l = fge(a, o, s, i, u);
35753
- r[o] = new J7(e.scaleName(`${o}`, !0), {
35752
+ const u = g7(t, o), l = fge(a, o, s, i, u);
35753
+ r[o] = new JL(e.scaleName(`${o}`, !0), {
35754
35754
  value: l,
35755
35755
  explicit: a.type === l
35756
35756
  });
@@ -35758,21 +35758,21 @@ function pge(e) {
35758
35758
  }
35759
35759
  return r;
35760
35760
  }
35761
- const gge = YL((e, t) => $M(e) - $M(t));
35761
+ const gge = Y7((e, t) => $M(e) - $M(t));
35762
35762
  function mge(e) {
35763
35763
  var r;
35764
35764
  const t = e.component.scales = {}, n = {}, i = e.component.resolve;
35765
35765
  for (const o of e.children) {
35766
35766
  sI(o);
35767
35767
  for (const s of j(o.component.scales))
35768
- if ((r = i.scale)[s] ?? (r[s] = I7(s, e)), i.scale[s] === "shared") {
35768
+ if ((r = i.scale)[s] ?? (r[s] = IL(s, e)), i.scale[s] === "shared") {
35769
35769
  const a = n[s], u = o.component.scales[s].getWithExplicit("type");
35770
35770
  a ? Zle(a.value, u.value) ? n[s] = As(a, u, "type", "scale", gge) : (i.scale[s] = "independent", delete n[s]) : n[s] = u;
35771
35771
  }
35772
35772
  }
35773
35773
  for (const o of j(n)) {
35774
35774
  const s = e.scaleName(o, !0), a = n[o];
35775
- t[o] = new J7(s, a);
35775
+ t[o] = new JL(s, a);
35776
35776
  for (const u of e.children) {
35777
35777
  const l = u.component.scales[o];
35778
35778
  l && (u.renameScale(l.get("name"), s), l.merged = !0);
@@ -35866,7 +35866,7 @@ class IC {
35866
35866
  hge(this);
35867
35867
  }
35868
35868
  parseProjection() {
35869
- V7(this);
35869
+ VL(this);
35870
35870
  }
35871
35871
  /**
35872
35872
  * Rename top-level spec's size to be just width / height, ignoring model name.
@@ -35877,7 +35877,7 @@ class IC {
35877
35877
  this.getName("width") !== "width" && this.renameSignal(this.getName("width"), "width"), this.getName("height") !== "height" && this.renameSignal(this.getName("height"), "height");
35878
35878
  }
35879
35879
  parseLegends() {
35880
- j7(this);
35880
+ jL(this);
35881
35881
  }
35882
35882
  assembleEncodeFromView(t) {
35883
35883
  const { style: n, ...i } = t, r = {};
@@ -35922,7 +35922,7 @@ class IC {
35922
35922
  return bhe(this.component.axes, this.config);
35923
35923
  }
35924
35924
  assembleLegends() {
35925
- return W7(this);
35925
+ return WL(this);
35926
35926
  }
35927
35927
  assembleProjections() {
35928
35928
  return spe(this);
@@ -35944,7 +35944,7 @@ class IC {
35944
35944
  t = t.concat(this.assembleSignals()), t.length > 0 && (n.signals = t);
35945
35945
  const i = this.assembleLayout();
35946
35946
  i && (n.layout = i), n.marks = [].concat(this.assembleHeaderMarks(), this.assembleMarks());
35947
- const r = !this.parent || li(this.parent) ? Z7(this) : [];
35947
+ const r = !this.parent || li(this.parent) ? ZL(this) : [];
35948
35948
  r.length > 0 && (n.scales = r);
35949
35949
  const o = this.assembleAxes();
35950
35950
  o.length > 0 && (n.axes = o);
@@ -35968,7 +35968,7 @@ class IC {
35968
35968
  }
35969
35969
  getSizeSignalRef(t) {
35970
35970
  if (li(this.parent)) {
35971
- const n = D7(t), i = F0(n), r = this.component.scales[i];
35971
+ const n = DL(t), i = F0(n), r = this.component.scales[i];
35972
35972
  if (r && !r.merged) {
35973
35973
  const o = r.get("type"), s = r.get("range");
35974
35974
  if (Bt(o) && au(s)) {
@@ -35976,7 +35976,7 @@ class IC {
35976
35976
  if (l) {
35977
35977
  const c = X({ aggregate: "distinct", field: l }, { expr: "datum" });
35978
35978
  return {
35979
- signal: O7(a, r, c)
35979
+ signal: OL(a, r, c)
35980
35980
  };
35981
35981
  } else
35982
35982
  return G(RE(i)), null;
@@ -36327,7 +36327,7 @@ class Sa extends Ve {
36327
36327
  const a = o.impute ? o : s.impute ? s : void 0;
36328
36328
  if (a === void 0)
36329
36329
  return;
36330
- const u = o.impute ? s : s.impute ? o : void 0, { method: l, value: c, frame: f, keyvals: d } = a.impute, h = bL(i.mark, r);
36330
+ const u = o.impute ? s : s.impute ? o : void 0, { method: l, value: c, frame: f, keyvals: d } = a.impute, h = b7(i.mark, r);
36331
36331
  return new Sa(n, {
36332
36332
  impute: a.field,
36333
36333
  key: u.field,
@@ -36715,10 +36715,10 @@ function PC(e) {
36715
36715
  t.parseLayoutSize();
36716
36716
  }
36717
36717
  function rm(e, t) {
36718
- const n = D7(t), i = F0(n), r = e.component.resolve, o = e.component.layoutSize;
36718
+ const n = DL(t), i = F0(n), r = e.component.resolve, o = e.component.layoutSize;
36719
36719
  let s;
36720
36720
  for (const a of e.children) {
36721
- const u = a.component.layoutSize.getWithExplicit(n), l = r.scale[i] ?? I7(i, e);
36721
+ const u = a.component.layoutSize.getWithExplicit(n), l = r.scale[i] ?? IL(i, e);
36722
36722
  if (l === "independent" && u.value === "step") {
36723
36723
  s = void 0;
36724
36724
  break;
@@ -37034,7 +37034,7 @@ function cI(e, t) {
37034
37034
  } else if (Sl(e) && Sl(a)) {
37035
37035
  if (e.url === a.url)
37036
37036
  return s;
37037
- } else if (XL(e) && e.name === s.dataName)
37037
+ } else if (X7(e) && e.name === s.dataName)
37038
37038
  return s;
37039
37039
  }
37040
37040
  }
@@ -37065,13 +37065,13 @@ function Age(e, t, n) {
37065
37065
  else if (vC(r)) {
37066
37066
  const a = vpe(r);
37067
37067
  s = e = ln.makeWithAncestors(e, {}, a, n) ?? e, e = new Ql(e, t, r.filter);
37068
- } else if (WL(r))
37068
+ } else if (W7(r))
37069
37069
  s = e = Fr.makeFromTransform(e, r, t), o = "number";
37070
37070
  else if (yde(r))
37071
37071
  o = "date", n.getWithExplicit(r.field).value === void 0 && (e = new ln(e, { [r.field]: o }), n.set(r.field, o, !1)), s = e = Mr.makeFromTransform(e, r);
37072
37072
  else if (bde(r))
37073
37073
  s = e = Xi.makeFromTransform(e, r), o = "number", kC(t) && (e = new Ms(e));
37074
- else if (qL(r))
37074
+ else if (q7(r))
37075
37075
  s = e = hd.make(e, t, r, i++), o = "derived";
37076
37076
  else if (dde(r))
37077
37077
  s = e = new tc(e, r), o = "number";
@@ -37113,7 +37113,7 @@ function d1(e) {
37113
37113
  var m;
37114
37114
  let t = $ge(e, e.component.data.sources);
37115
37115
  const { outputNodes: n, outputNodeRefCounts: i } = e.component.data, r = e.data, s = !(r && (ps(r) || Sl(r) || fd(r))) && e.parent ? e.parent.component.data.ancestorParse.clone() : new Rde();
37116
- ps(r) ? (KL(r) ? t = new lh(t, r.sequence) : xC(r) && (t = new uh(t, r.graticule)), s.parseNothing = !0) : ((m = r == null ? void 0 : r.format) == null ? void 0 : m.parse) === null && (s.parseNothing = !0), t = ln.makeExplicit(t, e, s) ?? t, t = new Ms(t);
37116
+ ps(r) ? (K7(r) ? t = new lh(t, r.sequence) : xC(r) && (t = new uh(t, r.graticule)), s.parseNothing = !0) : ((m = r == null ? void 0 : r.format) == null ? void 0 : m.parse) === null && (s.parseNothing = !0), t = ln.makeExplicit(t, e, s) ?? t, t = new Ms(t);
37117
37117
  const a = e.parent && nc(e.parent);
37118
37118
  (lt(e) || li(e)) && a && (t = Fr.makeFromEncoding(t, e) ?? t), e.transforms.length > 0 && (t = Age(t, e, s));
37119
37119
  const u = _pe(e), l = xpe(e);
@@ -37125,7 +37125,7 @@ function d1(e) {
37125
37125
  }
37126
37126
  let f, d;
37127
37127
  if (lt(e)) {
37128
- const { markDef: y, mark: b, config: v } = e, x = qe("invalid", y, v), { marks: _, scales: E } = d = JL({
37128
+ const { markDef: y, mark: b, config: v } = e, x = qe("invalid", y, v), { marks: _, scales: E } = d = J7({
37129
37129
  invalid: x,
37130
37130
  isPath: Ws(b)
37131
37131
  });
@@ -37244,7 +37244,7 @@ const Fge = {
37244
37244
  disable: 1,
37245
37245
  gridScale: 1,
37246
37246
  scale: 1,
37247
- ...dL,
37247
+ ...d7,
37248
37248
  labelExpr: 1,
37249
37249
  encode: 1
37250
37250
  }, fI = j(Fge);
@@ -37416,7 +37416,7 @@ function Pge(e, t, n, i, r) {
37416
37416
  case "encode":
37417
37417
  return !!n.encoding || !!n.labelAngle;
37418
37418
  case "title":
37419
- if (e === T7(i, r))
37419
+ if (e === TL(i, r))
37420
37420
  return !0;
37421
37421
  }
37422
37422
  return e === n[t];
@@ -37470,10 +37470,10 @@ function Bge(e, t) {
37470
37470
  );
37471
37471
  }
37472
37472
  }
37473
- const g = n.encoding ?? {}, m = fL.reduce((v, x) => {
37473
+ const g = n.encoding ?? {}, m = f7.reduce((v, x) => {
37474
37474
  if (!i.hasAxisPart(x))
37475
37475
  return v;
37476
- const _ = L7(g[x] ?? {}, t), E = x === "labels" ? Nge(t, e, _) : _;
37476
+ const _ = LL(g[x] ?? {}, t), E = x === "labels" ? Nge(t, e, _) : _;
37477
37477
  return E !== void 0 && !Ze(E) && (v[x] = { update: E }), v;
37478
37478
  }, {});
37479
37479
  return Ze(m) || i.set("encode", m, !!n.encoding || n.labelAngle !== void 0), i;
@@ -37761,7 +37761,7 @@ const rme = {
37761
37761
  };
37762
37762
  function ome(e) {
37763
37763
  if (Se([z0, I0, hce], e.mark)) {
37764
- const t = bL(e.mark, e.encoding);
37764
+ const t = b7(e.mark, e.encoding);
37765
37765
  if (t.length > 0)
37766
37766
  return sme(e, t);
37767
37767
  } else if (e.mark === P0) {
@@ -37963,21 +37963,21 @@ class dI extends aI {
37963
37963
  */
37964
37964
  U(this, "correctDataNames", (n) => {
37965
37965
  var i, r, o;
37966
- return (i = n.from) != null && i.data && (n.from.data = this.lookupDataSource(n.from.data), "time" in this.encoding && (n.from.data = n.from.data + e7)), (o = (r = n.from) == null ? void 0 : r.facet) != null && o.data && (n.from.facet.data = this.lookupDataSource(n.from.facet.data)), n;
37966
+ return (i = n.from) != null && i.data && (n.from.data = this.lookupDataSource(n.from.data), "time" in this.encoding && (n.from.data = n.from.data + eL)), (o = (r = n.from) == null ? void 0 : r.facet) != null && o.data && (n.from.facet.data = this.lookupDataSource(n.from.facet.data)), n;
37967
37967
  });
37968
37968
  const a = zr(n.mark) ? { ...n.mark } : { type: n.mark }, u = a.type;
37969
37969
  a.filled === void 0 && (a.filled = Xfe(a, s, {
37970
37970
  graticule: n.data && xC(n.data)
37971
37971
  }));
37972
37972
  const l = this.encoding = Qce(n.encoding || {}, u, a.filled, s);
37973
- this.markDef = zL(a, l, s), this.size = Uge({
37973
+ this.markDef = z7(a, l, s), this.size = Uge({
37974
37974
  encoding: l,
37975
37975
  size: LM(n) ? {
37976
37976
  ...o,
37977
37977
  ...n.width !== void 0 ? { width: n.width } : {},
37978
37978
  ...n.height !== void 0 ? { height: n.height } : {}
37979
37979
  } : o
37980
- }), this.stack = PL(this.markDef, l), this.specifiedScales = this.initScales(u, l), this.specifiedAxes = this.initAxes(l), this.specifiedLegends = this.initLegends(l), this.specifiedProjection = n.projection, this.selection = (n.params ?? []).filter((c) => gC(c)), this.alignStackOrderWithColorDomain();
37980
+ }), this.stack = P7(this.markDef, l), this.specifiedScales = this.initScales(u, l), this.specifiedAxes = this.initAxes(l), this.specifiedLegends = this.initLegends(l), this.specifiedProjection = n.projection, this.selection = (n.params ?? []).filter((c) => gC(c)), this.alignStackOrderWithColorDomain();
37981
37981
  }
37982
37982
  get hasProjection() {
37983
37983
  const { encoding: n } = this, i = this.mark === W9, r = n && Hae.some((o) => be(n[o]));
@@ -38069,7 +38069,7 @@ class dI extends aI {
38069
38069
  return jde(this, n);
38070
38070
  }
38071
38071
  assembleSignals() {
38072
- return [...$7(this), ...Bde(this, [])];
38072
+ return [...$L(this), ...Bde(this, [])];
38073
38073
  }
38074
38074
  assembleSelectionData(n) {
38075
38075
  return qde(this, n);
@@ -38082,7 +38082,7 @@ class dI extends aI {
38082
38082
  }
38083
38083
  assembleMarks() {
38084
38084
  let n = this.component.mark ?? [];
38085
- return (!this.parent || !nc(this.parent)) && (n = r7(this, n)), n.map(this.correctDataNames);
38085
+ return (!this.parent || !nc(this.parent)) && (n = rL(this, n)), n.map(this.correctDataNames);
38086
38086
  }
38087
38087
  assembleGroupStyle() {
38088
38088
  const { style: n } = this.view || {};
@@ -38154,7 +38154,7 @@ class jC extends IC {
38154
38154
  }
38155
38155
  // TODO: Support same named selections across children.
38156
38156
  assembleSignals() {
38157
- return this.children.reduce((n, i) => n.concat(i.assembleSignals()), $7(this));
38157
+ return this.children.reduce((n, i) => n.concat(i.assembleSignals()), $L(this));
38158
38158
  }
38159
38159
  assembleLayoutSignals() {
38160
38160
  return this.children.reduce((n, i) => n.concat(i.assembleLayoutSignals()), MC(this));
@@ -38185,7 +38185,7 @@ class jC extends IC {
38185
38185
  return Wde(this, this.children.flatMap((n) => n.assembleMarks()));
38186
38186
  }
38187
38187
  assembleLegends() {
38188
- return this.children.reduce((n, i) => n.concat(i.assembleLegends()), W7(this));
38188
+ return this.children.reduce((n, i) => n.concat(i.assembleLegends()), WL(this));
38189
38189
  }
38190
38190
  }
38191
38191
  function qC(e, t, n, i, r) {
@@ -38200,9 +38200,9 @@ function qC(e, t, n, i, r) {
38200
38200
  throw new Error(NE(e));
38201
38201
  }
38202
38202
  function dme(e, t = {}) {
38203
- t.logger && $le(t.logger), t.fieldTitle && uL(t.fieldTitle);
38203
+ t.logger && $le(t.logger), t.fieldTitle && u7(t.fieldTitle);
38204
38204
  try {
38205
- const n = IL(Nl(t.config, e.config)), i = VL(e, n), r = qC(i, null, "", void 0, n);
38205
+ const n = I7(Nl(t.config, e.config)), i = V7(e, n), r = qC(i, null, "", void 0, n);
38206
38206
  return r.parse(), Lpe(r.component.data, r), {
38207
38207
  spec: pme(r, hme(e, i.autosize, n, r), e.datasets, e.usermeta),
38208
38208
  normalized: i
@@ -38246,7 +38246,7 @@ function pme(e, t, n = {}, i) {
38246
38246
  ...e.assembleGroup([
38247
38247
  ...f,
38248
38248
  ...e.assembleSelectionTopLevelSignals([]),
38249
- ...RL(d)
38249
+ ...R7(d)
38250
38250
  ]),
38251
38251
  ...r ? { config: r } : {},
38252
38252
  ...i ? { usermeta: i } : {}
@@ -38281,7 +38281,7 @@ const gme = zae.version, mme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
38281
38281
  logicalExpr: Lf,
38282
38282
  mergeDeep: qD,
38283
38283
  never: jD,
38284
- normalize: VL,
38284
+ normalize: V7,
38285
38285
  normalizeAngle: ld,
38286
38286
  omit: ui,
38287
38287
  pick: ml,
@@ -40853,7 +40853,7 @@ function A1e(e) {
40853
40853
  }
40854
40854
  );
40855
40855
  }
40856
- const M1e = "_card_root_13pn9_1", T1e = "_map_container_13pn9_11", F1e = "_map_iframe_13pn9_18", N1e = "_card_content_13pn9_26", R1e = "_card_title_13pn9_34", O1e = "_card_description_13pn9_41", Au = {
40856
+ const M1e = "_card_root_19djz_1", T1e = "_map_container_19djz_10", F1e = "_map_iframe_19djz_17", N1e = "_card_content_19djz_25", R1e = "_card_title_19djz_35", O1e = "_card_description_19djz_42", Au = {
40857
40857
  card_root: M1e,
40858
40858
  map_container: T1e,
40859
40859
  map_iframe: F1e,
@@ -40862,22 +40862,22 @@ const M1e = "_card_root_13pn9_1", T1e = "_map_container_13pn9_11", F1e = "_map_i
40862
40862
  card_description: O1e
40863
40863
  };
40864
40864
  function D1e(e) {
40865
- var o, s;
40865
+ var u, l;
40866
40866
  const { template: t, customStyle: n } = e, i = `https://www.google.com/maps?q=${t.latitude},${t.longitude}&output=embed&z=15`, r = () => {
40867
- const a = `https://www.google.com/maps?q=${t.latitude},${t.longitude}`;
40868
- MT(a, "_blank");
40869
- };
40870
- return /* @__PURE__ */ ae(
40867
+ const c = `https://www.google.com/maps?q=${t.latitude},${t.longitude}`;
40868
+ MT(c, "_blank");
40869
+ }, { backgroundColor: o, background: s } = (n == null ? void 0 : n.style) || {}, a = {};
40870
+ return o && (a.backgroundColor = o), s && (a.background = s), /* @__PURE__ */ ae(
40871
40871
  "div",
40872
40872
  {
40873
40873
  className: `asgard-location-card ${Au.card_root}`,
40874
40874
  onClick: r,
40875
40875
  role: "button",
40876
40876
  tabIndex: 0,
40877
- onKeyDown: (a) => {
40878
- (a.key === "Enter" || a.key === " ") && (a.preventDefault(), r());
40877
+ onKeyDown: (c) => {
40878
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), r());
40879
40879
  },
40880
- style: { cursor: "pointer", ...n == null ? void 0 : n.style },
40880
+ style: { cursor: "pointer" },
40881
40881
  children: [
40882
40882
  /* @__PURE__ */ T("div", { className: Au.map_container, children: /* @__PURE__ */ T(
40883
40883
  "iframe",
@@ -40891,51 +40891,35 @@ function D1e(e) {
40891
40891
  referrerPolicy: "no-referrer-when-downgrade"
40892
40892
  }
40893
40893
  ) }),
40894
- /* @__PURE__ */ ae("div", { className: Au.card_content, children: [
40895
- /* @__PURE__ */ T("h5", { className: Au.card_title, style: (o = n == null ? void 0 : n.title) == null ? void 0 : o.style, children: t == null ? void 0 : t.title }),
40896
- /* @__PURE__ */ T("div", { className: Au.card_description, style: (s = n == null ? void 0 : n.description) == null ? void 0 : s.style, children: t == null ? void 0 : t.text })
40894
+ /* @__PURE__ */ ae("div", { className: Au.card_content, style: a, children: [
40895
+ /* @__PURE__ */ T("h5", { className: Au.card_title, style: (u = n == null ? void 0 : n.title) == null ? void 0 : u.style, children: t == null ? void 0 : t.title }),
40896
+ /* @__PURE__ */ T("div", { className: Au.card_description, style: (l = n == null ? void 0 : n.description) == null ? void 0 : l.style, children: t == null ? void 0 : t.text })
40897
40897
  ] })
40898
40898
  ]
40899
40899
  }
40900
40900
  );
40901
40901
  }
40902
40902
  function L1e(e) {
40903
- var o, s, a, u, l, c;
40903
+ var o, s, a, u, l;
40904
40904
  const { message: t } = e, { template: n } = Tt(), { avatar: i } = mn(), r = t.message.template;
40905
- return /* @__PURE__ */ ae(
40906
- Ki,
40907
- {
40908
- className: "asgard-location-template",
40909
- type: "bot",
40910
- direction: "horizontal",
40911
- style: (o = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : o.style,
40912
- children: [
40913
- /* @__PURE__ */ T(No, { avatar: i }),
40914
- /* @__PURE__ */ T(
40915
- Fo,
40916
- {
40917
- time: t.time,
40918
- quickReplies: r == null ? void 0 : r.quickReplies,
40919
- children: /* @__PURE__ */ T(
40920
- D1e,
40921
- {
40922
- template: r,
40923
- customStyle: {
40924
- style: (s = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : s.style,
40925
- title: {
40926
- style: ((u = (a = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : a.title) == null ? void 0 : u.style) ?? {}
40927
- },
40928
- description: {
40929
- style: ((c = (l = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : l.description) == null ? void 0 : c.style) ?? {}
40930
- }
40931
- }
40932
- }
40933
- )
40905
+ return /* @__PURE__ */ ae(Ki, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
40906
+ /* @__PURE__ */ T(No, { avatar: i }),
40907
+ /* @__PURE__ */ T(Fo, { time: t.time, quickReplies: r == null ? void 0 : r.quickReplies, children: /* @__PURE__ */ T(
40908
+ D1e,
40909
+ {
40910
+ template: r,
40911
+ customStyle: {
40912
+ style: (o = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : o.style,
40913
+ title: {
40914
+ style: ((a = (s = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : s.title) == null ? void 0 : a.style) ?? {}
40915
+ },
40916
+ description: {
40917
+ style: ((l = (u = n == null ? void 0 : n.LocationMessageTemplate) == null ? void 0 : u.description) == null ? void 0 : l.style) ?? {}
40934
40918
  }
40935
- )
40936
- ]
40937
- }
40938
- );
40919
+ }
40920
+ }
40921
+ ) })
40922
+ ] });
40939
40923
  }
40940
40924
  const I1e = "_message_wrapper_1cjr0_1", P1e = "_text_bubble_1cjr0_9", z1e = "_images_container_1cjr0_22", B1e = "_image_wrapper_1cjr0_29", U1e = "_uploaded_image_1cjr0_40", j1e = "_documents_container_1cjr0_52", q1e = "_document_card_1cjr0_60", W1e = "_document_icon_1cjr0_69", H1e = "_document_name_1cjr0_73", G1e = "_image_modal_1cjr0_80", V1e = "_modal_image_1cjr0_94", mi = {
40941
40925
  message_wrapper: I1e,