@asgard-js/react 0.3.22 → 0.3.23

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
@@ -362,7 +362,7 @@ function pP(e) {
362
362
  );
363
363
  }
364
364
  const gP = [], mP = [], yP = [];
365
- function tCe(e) {
365
+ function nCe(e) {
366
366
  const t = Y(
367
367
  (r) => {
368
368
  if (!e) return () => {
@@ -374,7 +374,7 @@ function tCe(e) {
374
374
  ), n = Y(() => e?.getTasks() ?? gP, [e]);
375
375
  return vm(t, n, n);
376
376
  }
377
- function nCe(e) {
377
+ function rCe(e) {
378
378
  const t = Y(
379
379
  (r) => {
380
380
  if (!e) return () => {
@@ -386,7 +386,7 @@ function nCe(e) {
386
386
  ), n = Y(() => e?.getSubagents() ?? mP, [e]);
387
387
  return vm(t, n, n);
388
388
  }
389
- function rCe(e) {
389
+ function iCe(e) {
390
390
  const t = Y(
391
391
  (r) => {
392
392
  if (!e) return () => {
@@ -472,7 +472,7 @@ function vP({
472
472
  setEditingDirty: m
473
473
  };
474
474
  }
475
- function iCe(e, t) {
475
+ function oCe(e, t) {
476
476
  const [n, r] = oe(e);
477
477
  return me(() => {
478
478
  const i = window.setTimeout(() => {
@@ -527,7 +527,7 @@ function OC(e, t) {
527
527
  const n = je(void 0), r = je(void 0);
528
528
  return (!r.current || !N_(r.current, t)) && (r.current = t, n.current = e()), n.current;
529
529
  }
530
- function oCe(e, t = 50) {
530
+ function sCe(e, t = 50) {
531
531
  const [n, r] = oe(!0);
532
532
  return me(() => {
533
533
  const i = e.current;
@@ -1311,7 +1311,7 @@ function n5(e) {
1311
1311
  }
1312
1312
  ) : /* @__PURE__ */ b(AP, {});
1313
1313
  }
1314
- const MP = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ De.createElement("circle", { cx: 12, cy: 12, r: 3 })), NP = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ De.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), TP = "_api_key_input_7488d_1", FP = "_api_key_input__header_7488d_18", DP = "_api_key_input__title_7488d_31", RP = "_api_key_input__form_7488d_38", OP = "_api_key_input__label_7488d_45", LP = "_api_key_input__input_wrapper_7488d_52", IP = "_api_key_input__input_7488d_52", PP = "_api_key_input__toggle_button_7488d_93", zP = "_api_key_input__toggle_icon_7488d_118", BP = "_api_key_input__error_message_7488d_123", UP = "_api_key_input__submit_button_7488d_129", Vn = {
1314
+ const MP = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ De.createElement("circle", { cx: 12, cy: 12, r: 3 })), NP = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }), /* @__PURE__ */ De.createElement("line", { x1: 1, y1: 1, x2: 23, y2: 23 })), TP = "_api_key_input_7488d_1", FP = "_api_key_input__header_7488d_18", DP = "_api_key_input__title_7488d_31", RP = "_api_key_input__form_7488d_38", OP = "_api_key_input__label_7488d_45", LP = "_api_key_input__input_wrapper_7488d_52", IP = "_api_key_input__input_7488d_52", PP = "_api_key_input__toggle_button_7488d_93", zP = "_api_key_input__toggle_icon_7488d_118", BP = "_api_key_input__error_message_7488d_123", UP = "_api_key_input__submit_button_7488d_129", Yn = {
1315
1315
  api_key_input: TP,
1316
1316
  api_key_input__header: FP,
1317
1317
  api_key_input__title: DP,
@@ -1345,20 +1345,20 @@ function IC({
1345
1345
  return /* @__PURE__ */ D(
1346
1346
  "div",
1347
1347
  {
1348
- className: se(Vn.api_key_input, s),
1348
+ className: se(Yn.api_key_input, s),
1349
1349
  style: {
1350
1350
  backgroundColor: f.backgroundColor,
1351
1351
  borderColor: f.borderColor
1352
1352
  },
1353
1353
  children: [
1354
- /* @__PURE__ */ D("div", { className: Vn.api_key_input__header, children: [
1354
+ /* @__PURE__ */ D("div", { className: Yn.api_key_input__header, children: [
1355
1355
  /* @__PURE__ */ b(n5, { avatar: d }),
1356
- /* @__PURE__ */ b("h2", { className: Vn.api_key_input__title, style: f?.header?.title?.style, children: i })
1356
+ /* @__PURE__ */ b("h2", { className: Yn.api_key_input__title, style: f?.header?.title?.style, children: i })
1357
1357
  ] }),
1358
- /* @__PURE__ */ D("form", { onSubmit: h, className: Vn.api_key_input__form, children: [
1358
+ /* @__PURE__ */ D("form", { onSubmit: h, className: Yn.api_key_input__form, children: [
1359
1359
  /* @__PURE__ */ D("div", { children: [
1360
- /* @__PURE__ */ b("label", { className: Vn.api_key_input__label, children: "Key" }),
1361
- /* @__PURE__ */ D("div", { className: Vn.api_key_input__input_wrapper, children: [
1360
+ /* @__PURE__ */ b("label", { className: Yn.api_key_input__label, children: "Key" }),
1361
+ /* @__PURE__ */ D("div", { className: Yn.api_key_input__input_wrapper, children: [
1362
1362
  /* @__PURE__ */ b(
1363
1363
  "input",
1364
1364
  {
@@ -1366,9 +1366,9 @@ function IC({
1366
1366
  value: a,
1367
1367
  onChange: p,
1368
1368
  placeholder: r,
1369
- className: se(Vn.api_key_input__input, {
1370
- [Vn["api_key_input__input--error"]]: n,
1371
- [Vn["api_key_input__input--disabled"]]: t
1369
+ className: se(Yn.api_key_input__input, {
1370
+ [Yn["api_key_input__input--error"]]: n,
1371
+ [Yn["api_key_input__input--disabled"]]: t
1372
1372
  }),
1373
1373
  disabled: t,
1374
1374
  autoComplete: "off"
@@ -1379,21 +1379,21 @@ function IC({
1379
1379
  {
1380
1380
  type: "button",
1381
1381
  onClick: g,
1382
- className: Vn.api_key_input__toggle_button,
1382
+ className: Yn.api_key_input__toggle_button,
1383
1383
  disabled: t,
1384
1384
  "aria-label": c ? "Hide password" : "Show password",
1385
- children: c ? /* @__PURE__ */ b(NP, { className: Vn.api_key_input__toggle_icon }) : /* @__PURE__ */ b(MP, { className: Vn.api_key_input__toggle_icon })
1385
+ children: c ? /* @__PURE__ */ b(NP, { className: Yn.api_key_input__toggle_icon }) : /* @__PURE__ */ b(MP, { className: Yn.api_key_input__toggle_icon })
1386
1386
  }
1387
1387
  )
1388
1388
  ] }),
1389
- n && /* @__PURE__ */ b("div", { className: Vn.api_key_input__error_message, children: n })
1389
+ n && /* @__PURE__ */ b("div", { className: Yn.api_key_input__error_message, children: n })
1390
1390
  ] }),
1391
1391
  /* @__PURE__ */ b(
1392
1392
  "button",
1393
1393
  {
1394
1394
  type: "submit",
1395
1395
  disabled: !a.trim() || t,
1396
- className: Vn.api_key_input__submit_button,
1396
+ className: Yn.api_key_input__submit_button,
1397
1397
  style: {
1398
1398
  backgroundColor: f?.mainColor,
1399
1399
  color: f?.secondaryColor
@@ -2079,7 +2079,7 @@ function Kz(e) {
2079
2079
  const o = n(t);
2080
2080
  return o?.length ? /* @__PURE__ */ b("div", { className: se("asgard-message-actions", YC.message_actions), children: o.map((s) => /* @__PURE__ */ b("button", { className: YC.message_action, onClick: () => i(s.id), type: "button", children: s.label }, s.id)) }) : null;
2081
2081
  }
2082
- function er(e) {
2082
+ function tr(e) {
2083
2083
  const { quickReplies: t, references: n, time: r, children: i, message: o, isEmpty: s } = e;
2084
2084
  return /* @__PURE__ */ D("div", { className: se("asgard-template-box-content", GC.template_box_content), children: [
2085
2085
  !s && /* @__PURE__ */ D("div", { className: GC.content, children: [
@@ -2210,7 +2210,7 @@ function aB(e) {
2210
2210
  return /* @__PURE__ */ D(un, { className: "asgard-button-template", type: "bot", direction: "horizontal", children: [
2211
2211
  /* @__PURE__ */ b(gi, { avatar: r }),
2212
2212
  /* @__PURE__ */ b(
2213
- er,
2213
+ tr,
2214
2214
  {
2215
2215
  time: t.time,
2216
2216
  quickReplies: i?.quickReplies,
@@ -2631,7 +2631,7 @@ function O1(e) {
2631
2631
  children: [
2632
2632
  /* @__PURE__ */ b(gi, { invisible: !0 }),
2633
2633
  /* @__PURE__ */ b(
2634
- er,
2634
+ tr,
2635
2635
  {
2636
2636
  time: t.time,
2637
2637
  quickReplies: d,
@@ -2652,7 +2652,7 @@ function O1(e) {
2652
2652
  children: [
2653
2653
  /* @__PURE__ */ b(gi, { avatar: n }),
2654
2654
  /* @__PURE__ */ b(
2655
- er,
2655
+ tr,
2656
2656
  {
2657
2657
  time: t.time,
2658
2658
  quickReplies: d,
@@ -2675,7 +2675,7 @@ function QB(e) {
2675
2675
  );
2676
2676
  return !t || !n ? null : /* @__PURE__ */ D(un, { className: "asgard-text-template asgard-text-template--bot", type: "bot", direction: "horizontal", children: [
2677
2677
  /* @__PURE__ */ b(gi, { avatar: r }),
2678
- /* @__PURE__ */ b(er, { time: /* @__PURE__ */ new Date(), children: /* @__PURE__ */ b("div", { className: se(ii.text, ii["text--bot"], ii["text--bot-default"]), style: o, children: /* @__PURE__ */ b("span", { children: /* @__PURE__ */ b(yc, { children: n }) }) }) })
2678
+ /* @__PURE__ */ b(tr, { time: /* @__PURE__ */ new Date(), children: /* @__PURE__ */ b("div", { className: se(ii.text, ii["text--bot"], ii["text--bot-default"]), style: o, children: /* @__PURE__ */ b("span", { children: /* @__PURE__ */ b(yc, { children: n }) }) }) })
2679
2679
  ] });
2680
2680
  }
2681
2681
  const eU = "_carousel_root_v06v3_1", tU = "_carousel_time_v06v3_13", ZC = {
@@ -2693,7 +2693,7 @@ function nU(e) {
2693
2693
  style: n?.CarouselMessageTemplate?.style,
2694
2694
  children: [
2695
2695
  /* @__PURE__ */ b(gi, { avatar: r }),
2696
- /* @__PURE__ */ b(er, { quickReplies: i.quickReplies, references: i.references, message: t, children: /* @__PURE__ */ b("div", { className: ZC.carousel_root, children: i.columns?.map((o, s) => /* @__PURE__ */ b(
2696
+ /* @__PURE__ */ b(tr, { quickReplies: i.quickReplies, references: i.references, message: t, children: /* @__PURE__ */ b("div", { className: ZC.carousel_root, children: i.columns?.map((o, s) => /* @__PURE__ */ b(
2697
2697
  l5,
2698
2698
  {
2699
2699
  template: o,
@@ -2810,7 +2810,7 @@ ${a}`
2810
2810
  return c;
2811
2811
  })(e, "", 0);
2812
2812
  }
2813
- function ar(e, t, n) {
2813
+ function lr(e, t, n) {
2814
2814
  return e.fields = t || [], e.fname = n, e;
2815
2815
  }
2816
2816
  function At(e) {
@@ -2856,9 +2856,9 @@ function ao(e) {
2856
2856
  }
2857
2857
  function Br(e, t, n) {
2858
2858
  const r = ao(e);
2859
- return e = r.length === 1 ? r[0] : e, ar((n && n.get || R5)(r), [e], t || e);
2859
+ return e = r.length === 1 ? r[0] : e, lr((n && n.get || R5)(r), [e], t || e);
2860
2860
  }
2861
- const $d = Br("id"), An = ar((e) => e, [], "identity"), ys = ar(() => 0, [], "zero"), tu = ar(() => 1, [], "one"), Ur = ar(() => !0, [], "true"), ls = ar(() => !1, [], "false"), rx = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]);
2861
+ const $d = Br("id"), An = lr((e) => e, [], "identity"), ys = lr(() => 0, [], "zero"), tu = lr(() => 1, [], "one"), Ur = lr(() => !0, [], "true"), ls = lr(() => !1, [], "false"), rx = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]);
2862
2862
  function fU(e, t, n) {
2863
2863
  const r = [t].concat([].slice.call(n));
2864
2864
  console[e].apply(console, r);
@@ -2984,7 +2984,7 @@ function cx(e, t, n) {
2984
2984
  const r = [], i = [], o = {}, s = n.comparator || pU;
2985
2985
  return ie(e).forEach((a, l) => {
2986
2986
  a != null && (r.push(t[l] === hU ? -1 : 1), i.push(a = Ne(a) ? a : Br(a, null, n)), (En(a) || []).forEach((c) => o[c] = 1));
2987
- }), i.length === 0 ? null : ar(s(i, r), Object.keys(o));
2987
+ }), i.length === 0 ? null : lr(s(i, r), Object.keys(o));
2988
2988
  }
2989
2989
  const iu = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, (e = e instanceof Date ? +e : e) !== e && t === t ? -1 : t !== t && e === e ? 1 : 0), pU = (e, t) => e.length === 1 ? gU(e[0], t[0]) : mU(e, t, e.length), gU = (e, t) => function(n, r) {
2990
2990
  return iu(e(n), e(r)) * t;
@@ -3152,7 +3152,7 @@ function dx(e, t, n) {
3152
3152
  return c;
3153
3153
  };
3154
3154
  }
3155
- return ar(s, e, "key");
3155
+ return lr(s, e, "key");
3156
3156
  }
3157
3157
  function J5(e, t) {
3158
3158
  const n = e[0], r = We(e), i = +t;
@@ -3254,16 +3254,16 @@ function tS(e) {
3254
3254
  i in t || n.push(t[i] = i);
3255
3255
  }), n;
3256
3256
  }
3257
- function Yn(e, t) {
3257
+ function Xn(e, t) {
3258
3258
  var n = e + "", r = n.length;
3259
3259
  return r < t ? new Array(t - r + 1).join(0) + n : n;
3260
3260
  }
3261
3261
  function vU(e) {
3262
- return e < 0 ? "-" + Yn(-e, 6) : e > 9999 ? "+" + Yn(e, 6) : Yn(e, 4);
3262
+ return e < 0 ? "-" + Xn(-e, 6) : e > 9999 ? "+" + Xn(e, 6) : Xn(e, 4);
3263
3263
  }
3264
3264
  function xU(e) {
3265
3265
  var t = e.getUTCHours(), n = e.getUTCMinutes(), r = e.getUTCSeconds(), i = e.getUTCMilliseconds();
3266
- return isNaN(e) ? "Invalid Date" : vU(e.getUTCFullYear()) + "-" + Yn(e.getUTCMonth() + 1, 2) + "-" + Yn(e.getUTCDate(), 2) + (i ? "T" + Yn(t, 2) + ":" + Yn(n, 2) + ":" + Yn(r, 2) + "." + Yn(i, 3) + "Z" : r ? "T" + Yn(t, 2) + ":" + Yn(n, 2) + ":" + Yn(r, 2) + "Z" : n || t ? "T" + Yn(t, 2) + ":" + Yn(n, 2) + "Z" : "");
3266
+ return isNaN(e) ? "Invalid Date" : vU(e.getUTCFullYear()) + "-" + Xn(e.getUTCMonth() + 1, 2) + "-" + Xn(e.getUTCDate(), 2) + (i ? "T" + Xn(t, 2) + ":" + Xn(n, 2) + ":" + Xn(r, 2) + "." + Xn(i, 3) + "Z" : r ? "T" + Xn(t, 2) + ":" + Xn(n, 2) + ":" + Xn(r, 2) + "Z" : n || t ? "T" + Xn(t, 2) + ":" + Xn(n, 2) + "Z" : "");
3267
3267
  }
3268
3268
  function wU(e) {
3269
3269
  var t = new RegExp('["' + e + `
@@ -3571,7 +3571,7 @@ function LU(e, t) {
3571
3571
  const n = OU(e, t);
3572
3572
  return n && Math.sqrt(n);
3573
3573
  }
3574
- class Bn {
3574
+ class Un {
3575
3575
  constructor() {
3576
3576
  this._partials = new Float64Array(32), this._n = 0;
3577
3577
  }
@@ -4158,18 +4158,18 @@ function xT(e, t, n, r, i, o) {
4158
4158
  }
4159
4159
  return [a, l];
4160
4160
  }
4161
- const [lj, cj] = xT(Qi, Yf, lu, vT, Nm, Am), [uj, fj] = xT(Ji, Vf, au, Io, Mm, $m), fn = "year", tr = "quarter", Cn = "month", qt = "week", nr = "date", xn = "day", eo = "dayofyear", wr = "hours", kr = "minutes", jr = "seconds", yi = "milliseconds", bx = [fn, tr, Cn, qt, nr, xn, eo, wr, kr, jr, yi], q1 = bx.reduce((e, t, n) => (e[t] = 1 + n, e), {});
4161
+ const [lj, cj] = xT(Qi, Yf, lu, vT, Nm, Am), [uj, fj] = xT(Ji, Vf, au, Io, Mm, $m), fn = "year", nr = "quarter", Cn = "month", qt = "week", rr = "date", xn = "day", eo = "dayofyear", wr = "hours", kr = "minutes", jr = "seconds", yi = "milliseconds", bx = [fn, nr, Cn, qt, rr, xn, eo, wr, kr, jr, yi], q1 = bx.reduce((e, t, n) => (e[t] = 1 + n, e), {});
4162
4162
  function vx(e) {
4163
4163
  const t = ie(e).slice(), n = {};
4164
4164
  return t.length || z("Missing time unit."), t.forEach((i) => {
4165
4165
  le(q1, i) ? n[i] = 1 : z(`Invalid time unit: ${i}.`);
4166
- }), (n[qt] || n[xn] ? 1 : 0) + (n[tr] || n[Cn] || n[nr] ? 1 : 0) + (n[eo] ? 1 : 0) > 1 && z(`Incompatible time units: ${e}`), t.sort((i, o) => q1[i] - q1[o]), t;
4166
+ }), (n[qt] || n[xn] ? 1 : 0) + (n[nr] || n[Cn] || n[rr] ? 1 : 0) + (n[eo] ? 1 : 0) > 1 && z(`Incompatible time units: ${e}`), t.sort((i, o) => q1[i] - q1[o]), t;
4167
4167
  }
4168
4168
  const dj = {
4169
4169
  [fn]: "%Y ",
4170
- [tr]: "Q%q ",
4170
+ [nr]: "Q%q ",
4171
4171
  [Cn]: "%b ",
4172
- [nr]: "%d ",
4172
+ [rr]: "%d ",
4173
4173
  [qt]: "W%U ",
4174
4174
  [xn]: "%a ",
4175
4175
  [eo]: "%j ",
@@ -4178,7 +4178,7 @@ const dj = {
4178
4178
  [jr]: ":%S",
4179
4179
  [yi]: ".%L",
4180
4180
  [`${fn}-${Cn}`]: "%Y-%m ",
4181
- [`${fn}-${Cn}-${nr}`]: "%Y-%m-%d ",
4181
+ [`${fn}-${Cn}-${rr}`]: "%Y-%m-%d ",
4182
4182
  [`${wr}-${kr}`]: "%H:%M"
4183
4183
  };
4184
4184
  function wT(e, t) {
@@ -4243,7 +4243,7 @@ function pj(e, t, n, r, i, o, s) {
4243
4243
  return new Date(Date.UTC(e, t, n, r, i, o, s));
4244
4244
  }
4245
4245
  function MT(e, t, n, r, i) {
4246
- const o = t || 1, s = We(e), a = (y, _, v) => (v = v || y, gj(n[v], r[v], y === s && o, _)), l = /* @__PURE__ */ new Date(), c = mi(e), u = c[fn] ? a(fn) : Mn(2012), f = c[Cn] ? a(Cn) : c[tr] ? a(tr) : ys, d = c[qt] && c[xn] ? a(xn, 1, qt + xn) : c[qt] ? a(qt, 1) : c[xn] ? a(xn, 1) : c[nr] ? a(nr, 1) : c[eo] ? a(eo, 1) : tu, h = c[wr] ? a(wr) : ys, p = c[kr] ? a(kr) : ys, g = c[jr] ? a(jr) : ys, m = c[yi] ? a(yi) : ys;
4246
+ const o = t || 1, s = We(e), a = (y, _, v) => (v = v || y, gj(n[v], r[v], y === s && o, _)), l = /* @__PURE__ */ new Date(), c = mi(e), u = c[fn] ? a(fn) : Mn(2012), f = c[Cn] ? a(Cn) : c[nr] ? a(nr) : ys, d = c[qt] && c[xn] ? a(xn, 1, qt + xn) : c[qt] ? a(qt, 1) : c[xn] ? a(xn, 1) : c[rr] ? a(rr, 1) : c[eo] ? a(eo, 1) : tu, h = c[wr] ? a(wr) : ys, p = c[kr] ? a(kr) : ys, g = c[jr] ? a(jr) : ys, m = c[yi] ? a(yi) : ys;
4247
4247
  return function(y) {
4248
4248
  l.setTime(+y);
4249
4249
  const _ = u(l);
@@ -4259,9 +4259,9 @@ function wc(e, t, n) {
4259
4259
  }
4260
4260
  const mj = {
4261
4261
  [fn]: (e) => e.getFullYear(),
4262
- [tr]: (e) => Math.floor(e.getMonth() / 3),
4262
+ [nr]: (e) => Math.floor(e.getMonth() / 3),
4263
4263
  [Cn]: (e) => e.getMonth(),
4264
- [nr]: (e) => e.getDate(),
4264
+ [rr]: (e) => e.getDate(),
4265
4265
  [wr]: (e) => e.getHours(),
4266
4266
  [kr]: (e) => e.getMinutes(),
4267
4267
  [jr]: (e) => e.getSeconds(),
@@ -4271,7 +4271,7 @@ const mj = {
4271
4271
  [qt + xn]: (e, t) => wc(z_(e), e.getDay(), B_(t)),
4272
4272
  [xn]: (e, t) => wc(1, e.getDay(), B_(t))
4273
4273
  }, yj = {
4274
- [tr]: (e) => 3 * e,
4274
+ [nr]: (e) => 3 * e,
4275
4275
  [qt]: (e, t) => wc(e, 0, B_(t))
4276
4276
  };
4277
4277
  function NT(e, t) {
@@ -4279,9 +4279,9 @@ function NT(e, t) {
4279
4279
  }
4280
4280
  const _j = {
4281
4281
  [fn]: (e) => e.getUTCFullYear(),
4282
- [tr]: (e) => Math.floor(e.getUTCMonth() / 3),
4282
+ [nr]: (e) => Math.floor(e.getUTCMonth() / 3),
4283
4283
  [Cn]: (e) => e.getUTCMonth(),
4284
- [nr]: (e) => e.getUTCDate(),
4284
+ [rr]: (e) => e.getUTCDate(),
4285
4285
  [wr]: (e) => e.getUTCHours(),
4286
4286
  [kr]: (e) => e.getUTCMinutes(),
4287
4287
  [jr]: (e) => e.getUTCSeconds(),
@@ -4291,7 +4291,7 @@ const _j = {
4291
4291
  [xn]: (e, t) => wc(1, e.getUTCDay(), j_(t)),
4292
4292
  [qt + xn]: (e, t) => wc(U_(e), e.getUTCDay(), j_(t))
4293
4293
  }, bj = {
4294
- [tr]: (e) => 3 * e,
4294
+ [nr]: (e) => 3 * e,
4295
4295
  [qt]: (e, t) => wc(e, 0, j_(t))
4296
4296
  };
4297
4297
  function TT(e, t) {
@@ -4299,10 +4299,10 @@ function TT(e, t) {
4299
4299
  }
4300
4300
  const vj = {
4301
4301
  [fn]: Ji,
4302
- [tr]: Vf.every(3),
4302
+ [nr]: Vf.every(3),
4303
4303
  [Cn]: Vf,
4304
4304
  [qt]: au,
4305
- [nr]: Io,
4305
+ [rr]: Io,
4306
4306
  [xn]: Io,
4307
4307
  [eo]: Io,
4308
4308
  [wr]: Mm,
@@ -4311,10 +4311,10 @@ const vj = {
4311
4311
  [yi]: bc
4312
4312
  }, xj = {
4313
4313
  [fn]: Qi,
4314
- [tr]: Yf.every(3),
4314
+ [nr]: Yf.every(3),
4315
4315
  [Cn]: Yf,
4316
4316
  [qt]: lu,
4317
- [nr]: As,
4317
+ [rr]: As,
4318
4318
  [xn]: As,
4319
4319
  [eo]: As,
4320
4320
  [wr]: Nm,
@@ -4346,7 +4346,7 @@ function LT(e, t, n, r) {
4346
4346
  function IT(e, t, n, r) {
4347
4347
  return OT(uu(e), t, n, r);
4348
4348
  }
4349
- const uf = 1e3, ff = uf * 60, df = ff * 60, Tm = df * 24, wj = Tm * 7, uS = Tm * 30, q_ = Tm * 365, PT = [fn, Cn, nr, wr, kr, jr, yi], hf = PT.slice(0, -1), pf = hf.slice(0, -1), gf = pf.slice(0, -1), kj = gf.slice(0, -1), Ej = [fn, qt], fS = [fn, Cn], zT = [fn], zu = [[hf, 1, uf], [hf, 5, 5 * uf], [hf, 15, 15 * uf], [hf, 30, 30 * uf], [pf, 1, ff], [pf, 5, 5 * ff], [pf, 15, 15 * ff], [pf, 30, 30 * ff], [gf, 1, df], [gf, 3, 3 * df], [gf, 6, 6 * df], [gf, 12, 12 * df], [kj, 1, Tm], [Ej, 1, wj], [fS, 1, uS], [fS, 3, 3 * uS], [zT, 1, q_]];
4349
+ const uf = 1e3, ff = uf * 60, df = ff * 60, Tm = df * 24, wj = Tm * 7, uS = Tm * 30, q_ = Tm * 365, PT = [fn, Cn, rr, wr, kr, jr, yi], hf = PT.slice(0, -1), pf = hf.slice(0, -1), gf = pf.slice(0, -1), kj = gf.slice(0, -1), Ej = [fn, qt], fS = [fn, Cn], zT = [fn], zu = [[hf, 1, uf], [hf, 5, 5 * uf], [hf, 15, 15 * uf], [hf, 30, 30 * uf], [pf, 1, ff], [pf, 5, 5 * ff], [pf, 15, 15 * ff], [pf, 30, 30 * ff], [gf, 1, df], [gf, 3, 3 * df], [gf, 6, 6 * df], [gf, 12, 12 * df], [kj, 1, Tm], [Ej, 1, wj], [fS, 1, uS], [fS, 3, 3 * uS], [zT, 1, q_]];
4350
4350
  function BT(e) {
4351
4351
  const t = e.extent, n = e.maxbins || 40, r = Math.abs(Ad(t)) / n;
4352
4352
  let i = su((a) => a[2]).right(zu, r), o, s;
@@ -4931,7 +4931,7 @@ function Vp(e) {
4931
4931
  }
4932
4932
  function wS(e, t, n) {
4933
4933
  n = n || {}, te(n) || z(`Invalid time multi-format specifier: ${n}`);
4934
- const r = t(jr), i = t(kr), o = t(wr), s = t(nr), a = t(qt), l = t(Cn), c = t(tr), u = t(fn), f = e(n[yi] || ".%L"), d = e(n[jr] || ":%S"), h = e(n[kr] || "%I:%M"), p = e(n[wr] || "%I %p"), g = e(n[nr] || n[xn] || "%a %d"), m = e(n[qt] || "%b %d"), y = e(n[Cn] || "%B"), _ = e(n[tr] || "%B"), v = e(n[fn] || "%Y");
4934
+ const r = t(jr), i = t(kr), o = t(wr), s = t(rr), a = t(qt), l = t(Cn), c = t(nr), u = t(fn), f = e(n[yi] || ".%L"), d = e(n[jr] || ":%S"), h = e(n[kr] || "%I:%M"), p = e(n[wr] || "%I %p"), g = e(n[rr] || n[xn] || "%a %d"), m = e(n[qt] || "%b %d"), y = e(n[Cn] || "%B"), _ = e(n[nr] || "%B"), v = e(n[fn] || "%Y");
4935
4935
  return (x) => (r(x) < x ? f : i(x) < x ? d : o(x) < x ? h : s(x) < x ? p : l(x) < x ? a(x) < x ? g : m : u(x) < x ? c(x) < x ? y : _ : v)(x);
4936
4936
  }
4937
4937
  function ZT(e) {
@@ -7290,7 +7290,7 @@ Z(Xx, I, {
7290
7290
  let u = wn(t(c));
7291
7291
  return u == null ? null : u < i ? -1 / 0 : u > o ? 1 / 0 : (u = Math.max(i, Math.min(u, o - r)), i + r * Math.floor(XW + (u - i) / r));
7292
7292
  };
7293
- return l.start = i, l.stop = n.stop, l.step = r, this.value = ar(l, En(t), e.name || "bin_" + At(t));
7293
+ return l.start = i, l.stop = n.stop, l.step = r, this.value = lr(l, En(t), e.name || "bin_" + At(t));
7294
7294
  }
7295
7295
  });
7296
7296
  function F6(e, t, n) {
@@ -7639,7 +7639,7 @@ function P6(e) {
7639
7639
  Z(P6, at);
7640
7640
  function iH(e) {
7641
7641
  const t = e.expr;
7642
- return this.value && !e.modified("expr") ? this.value : ar((n) => t(n, e), En(t), At(t));
7642
+ return this.value && !e.modified("expr") ? this.value : lr((n) => t(n, e), En(t), At(t));
7643
7643
  }
7644
7644
  function n2(e) {
7645
7645
  I.call(this, [void 0, void 0], e);
@@ -8278,7 +8278,7 @@ function pH(e, t) {
8278
8278
  };
8279
8279
  }
8280
8280
  function gH(e, t, n, r) {
8281
- return ar((i) => t(i) === e ? n(i) : NaN, r, e + "");
8281
+ return lr((i) => t(i) === e ? n(i) : NaN, r, e + "");
8282
8282
  }
8283
8283
  function mH(e, t, n) {
8284
8284
  const r = {}, i = [];
@@ -10712,7 +10712,7 @@ function nb(e) {
10712
10712
  return +e;
10713
10713
  }
10714
10714
  var e$ = [0, 1];
10715
- function Jn(e) {
10715
+ function Qn(e) {
10716
10716
  return e;
10717
10717
  }
10718
10718
  function rb(e, t) {
@@ -10745,10 +10745,10 @@ function Rd(e, t) {
10745
10745
  return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
10746
10746
  }
10747
10747
  function Zm() {
10748
- var e = e$, t = e$, n = Ks, r, i, o, s = Jn, a, l, c;
10748
+ var e = e$, t = e$, n = Ks, r, i, o, s = Qn, a, l, c;
10749
10749
  function u() {
10750
10750
  var d = Math.min(e.length, t.length);
10751
- return s !== Jn && (s = WG(e[0], e[d - 1])), a = d > 2 ? GG : HG, l = c = null, f;
10751
+ return s !== Qn && (s = WG(e[0], e[d - 1])), a = d > 2 ? GG : HG, l = c = null, f;
10752
10752
  }
10753
10753
  function f(d) {
10754
10754
  return d == null || isNaN(d = +d) ? o : (l || (l = a(e.map(r), t, n)))(r(s(d)));
@@ -10762,7 +10762,7 @@ function Zm() {
10762
10762
  }, f.rangeRound = function(d) {
10763
10763
  return t = Array.from(d), n = Dd, u();
10764
10764
  }, f.clamp = function(d) {
10765
- return arguments.length ? (s = d ? !0 : Jn, u()) : s !== Jn;
10765
+ return arguments.length ? (s = d ? !0 : Qn, u()) : s !== Qn;
10766
10766
  }, f.interpolate = function(d) {
10767
10767
  return arguments.length ? (n = d, u()) : n;
10768
10768
  }, f.unknown = function(d) {
@@ -10772,7 +10772,7 @@ function Zm() {
10772
10772
  };
10773
10773
  }
10774
10774
  function H4() {
10775
- return Zm()(Jn, Jn);
10775
+ return Zm()(Qn, Qn);
10776
10776
  }
10777
10777
  function G4(e, t, n, r) {
10778
10778
  var i = Rs(e, t, n), o;
@@ -10956,9 +10956,9 @@ function QG(e) {
10956
10956
  return e < 0 ? -e * e : e * e;
10957
10957
  }
10958
10958
  function D2(e) {
10959
- var t = e(Jn, Jn), n = 1;
10959
+ var t = e(Qn, Qn), n = 1;
10960
10960
  function r() {
10961
- return n === 1 ? e(Jn, Jn) : n === 0.5 ? e(JG, QG) : e(s$(n), s$(1 / n));
10961
+ return n === 1 ? e(Qn, Qn) : n === 0.5 ? e(JG, QG) : e(s$(n), s$(1 / n));
10962
10962
  }
10963
10963
  return t.exponent = function(i) {
10964
10964
  return arguments.length ? (n = +i, r()) : n;
@@ -11081,7 +11081,7 @@ function iV() {
11081
11081
  return lo.apply(O2(lj, cj, Qi, Yf, lu, As, Nm, Am, Fo, kx).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
11082
11082
  }
11083
11083
  function Jm() {
11084
- var e = 0, t = 1, n, r, i, o, s = Jn, a = !1, l;
11084
+ var e = 0, t = 1, n, r, i, o, s = Qn, a = !1, l;
11085
11085
  function c(f) {
11086
11086
  return f == null || isNaN(f = +f) ? l : s(i === 0 ? 0.5 : (f = (o(f) - n) * i, a ? Math.max(0, Math.min(1, f)) : f));
11087
11087
  }
@@ -11108,7 +11108,7 @@ function Zs(e, t) {
11108
11108
  return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());
11109
11109
  }
11110
11110
  function L2() {
11111
- var e = wl(Jm()(Jn));
11111
+ var e = wl(Jm()(Qn));
11112
11112
  return e.copy = function() {
11113
11113
  return Zs(e, L2());
11114
11114
  }, Ys.apply(e, arguments);
@@ -11135,7 +11135,7 @@ function oV() {
11135
11135
  return I2.apply(null, arguments).exponent(0.5);
11136
11136
  }
11137
11137
  function Qm() {
11138
- var e = 0, t = 0.5, n = 1, r = 1, i, o, s, a, l, c = Jn, u, f = !1, d;
11138
+ var e = 0, t = 0.5, n = 1, r = 1, i, o, s, a, l, c = Qn, u, f = !1, d;
11139
11139
  function h(g) {
11140
11140
  return isNaN(g = +g) ? d : (g = 0.5 + ((g = +u(g)) - o) * (r * g < r * o ? a : l), c(f ? Math.max(0, Math.min(1, g)) : g));
11141
11141
  }
@@ -11159,7 +11159,7 @@ function Qm() {
11159
11159
  };
11160
11160
  }
11161
11161
  function rF() {
11162
- var e = wl(Qm()(Jn));
11162
+ var e = wl(Qm()(Qn));
11163
11163
  return e.copy = function() {
11164
11164
  return Zs(e, rF());
11165
11165
  }, Ys.apply(e, arguments);
@@ -13819,8 +13819,8 @@ class xw extends Gd {
13819
13819
  return Fr(u, 0), n._svg;
13820
13820
  u.setAttribute("class", QF(n));
13821
13821
  const f = fD(n);
13822
- for (const g in f) Fn(u, g, f[g]);
13823
- c || Fn(u, "pointer-events", l), Fn(u, "clip-path", n.clip ? J2(this, n, n.group) : null);
13822
+ for (const g in f) Dn(u, g, f[g]);
13823
+ c || Dn(u, "pointer-events", l), Dn(u, "clip-path", n.clip ? J2(this, n, n.group) : null);
13824
13824
  let d = null, h = 0;
13825
13825
  const p = (g) => {
13826
13826
  const m = this.isDirty(g), y = R$(g, u, d, a.tag, o);
@@ -13962,11 +13962,11 @@ const pK = {
13962
13962
  const i = Ro = t.childNodes[0];
13963
13963
  e.background(Of, n, this);
13964
13964
  const o = n.mark.interactive === !1 ? "none" : null;
13965
- if (o !== vn.events && (Fn(r, "pointer-events", o), Fn(i, "pointer-events", o), vn.events = o), n.strokeForeground && n.stroke) {
13965
+ if (o !== vn.events && (Dn(r, "pointer-events", o), Dn(i, "pointer-events", o), vn.events = o), n.strokeForeground && n.stroke) {
13966
13966
  const s = n.fill;
13967
- Fn(r, "display", null), this.style(i, n), Fn(i, "stroke", null), s && (n.fill = null), vn = r.__values__, this.style(r, n), s && (n.fill = s), Ro = null;
13967
+ Dn(r, "display", null), this.style(i, n), Dn(i, "stroke", null), s && (n.fill = null), vn = r.__values__, this.style(r, n), s && (n.fill = s), Ro = null;
13968
13968
  } else
13969
- Fn(r, "display", "none");
13969
+ Dn(r, "display", "none");
13970
13970
  },
13971
13971
  image(e, t, n) {
13972
13972
  n.smooth === !1 ? (kp(t, "image-rendering", "optimizeSpeed"), kp(t, "image-rendering", "pixelated")) : kp(t, "image-rendering", null);
@@ -13978,20 +13978,20 @@ const pK = {
13978
13978
  `), i !== vn.text && (Fr(t, 0), s = t.ownerDocument, a = zs(n), o.forEach((l, c) => {
13979
13979
  const u = bs(s, "tspan", Ut);
13980
13980
  u.__data__ = n, u.textContent = l, c && (u.setAttribute("x", 0), u.setAttribute("dy", a)), t.appendChild(u);
13981
- }), vn.text = i)) : (o = Bs(n, r), o !== vn.text && (t.textContent = o, vn.text = o)), Fn(t, "font-family", Hd(n)), Fn(t, "font-size", uo(n) + "px"), Fn(t, "font-style", n.fontStyle), Fn(t, "font-variant", n.fontVariant), Fn(t, "font-weight", n.fontWeight);
13981
+ }), vn.text = i)) : (o = Bs(n, r), o !== vn.text && (t.textContent = o, vn.text = o)), Dn(t, "font-family", Hd(n)), Dn(t, "font-size", uo(n) + "px"), Dn(t, "font-style", n.fontStyle), Dn(t, "font-variant", n.fontVariant), Dn(t, "font-weight", n.fontWeight);
13982
13982
  }
13983
13983
  };
13984
13984
  function Of(e, t, n) {
13985
- t !== vn[e] && (n ? gK(Ro, e, t, n) : Fn(Ro, e, t), vn[e] = t);
13985
+ t !== vn[e] && (n ? gK(Ro, e, t, n) : Dn(Ro, e, t), vn[e] = t);
13986
13986
  }
13987
13987
  function kp(e, t, n) {
13988
13988
  n !== vn[t] && (n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n + ""), vn[t] = n);
13989
13989
  }
13990
13990
  function vs(e, t) {
13991
13991
  for (const n in t)
13992
- Fn(e, n, t[n]);
13992
+ Dn(e, n, t[n]);
13993
13993
  }
13994
- function Fn(e, t, n) {
13994
+ function Dn(e, t, n) {
13995
13995
  n != null ? e.setAttribute(t, n) : e.removeAttribute(t);
13996
13996
  }
13997
13997
  function gK(e, t, n, r) {
@@ -14340,7 +14340,7 @@ function vK(e, t) {
14340
14340
  function xK() {
14341
14341
  LY(), WV();
14342
14342
  }
14343
- const Fc = "top", li = "left", ci = "right", Us = "bottom", wK = "top-left", kK = "top-right", EK = "bottom-left", CK = "bottom-right", kw = "start", yb = "middle", Dn = "end", SK = "x", $K = "y", g0 = "group", Ew = "axis", Cw = "title", AK = "frame", MK = "scope", Sw = "legend", TD = "row-header", FD = "row-footer", DD = "row-title", RD = "column-header", OD = "column-footer", LD = "column-title", NK = "padding", TK = "symbol", ID = "fit", PD = "fit-x", zD = "fit-y", FK = "pad", $w = "none", Rh = "all", _b = "each", Aw = "flush", ws = "column", ks = "row";
14343
+ const Fc = "top", li = "left", ci = "right", Us = "bottom", wK = "top-left", kK = "top-right", EK = "bottom-left", CK = "bottom-right", kw = "start", yb = "middle", Rn = "end", SK = "x", $K = "y", g0 = "group", Ew = "axis", Cw = "title", AK = "frame", MK = "scope", Sw = "legend", TD = "row-header", FD = "row-footer", DD = "row-title", RD = "column-header", OD = "column-footer", LD = "column-title", NK = "padding", TK = "symbol", ID = "fit", PD = "fit-x", zD = "fit-y", FK = "pad", $w = "none", Rh = "all", _b = "each", Aw = "flush", ws = "column", ks = "row";
14344
14344
  function BD(e) {
14345
14345
  I.call(this, null, e);
14346
14346
  }
@@ -14623,14 +14623,14 @@ function HD(e, t, n) {
14623
14623
  for (k = 0; k < d; ++k)
14624
14624
  o.union(w[k].translate(v[k], x[k]));
14625
14625
  switch (N = pt(n.anchor, SK), S = pt(n.anchor, $K), pt(n.anchor, ws)) {
14626
- case Dn:
14626
+ case Rn:
14627
14627
  N -= o.width();
14628
14628
  break;
14629
14629
  case yb:
14630
14630
  N -= o.width() / 2;
14631
14631
  }
14632
14632
  switch (pt(n.anchor, ks)) {
14633
- case Dn:
14633
+ case Rn:
14634
14634
  S -= o.height();
14635
14635
  break;
14636
14636
  case yb:
@@ -14645,7 +14645,7 @@ function HD(e, t, n) {
14645
14645
  function qK(e, t, n) {
14646
14646
  var r = BK(t), i = r.marks, o = n.bounds === Aw ? WK : HK, s = n.offset, a = n.columns || i.length, l = a <= 0 ? 1 : Math.ceil(i.length / a), c = l * a, u, f, d, h, p, g, m;
14647
14647
  const y = HD(e, i, n);
14648
- y.empty() && y.set(0, 0, 0, 0), r.rowheaders && (g = pt(n.headerBand, ks, null), u = Ih(e, r.rowheaders, i, a, l, -pt(s, "rowHeader"), B$, 0, o, "x1", 0, a, 1, g)), r.colheaders && (g = pt(n.headerBand, ws, null), f = Ih(e, r.colheaders, i, a, a, -pt(s, "columnHeader"), B$, 1, o, "y1", 0, 1, a, g)), r.rowfooters && (g = pt(n.footerBand, ks, null), d = Ih(e, r.rowfooters, i, a, l, pt(s, "rowFooter"), U$, 0, o, "x2", a - 1, a, 1, g)), r.colfooters && (g = pt(n.footerBand, ws, null), h = Ih(e, r.colfooters, i, a, a, pt(s, "columnFooter"), U$, 1, o, "y2", c - a, 1, a, g)), r.rowtitle && (p = pt(n.titleAnchor, ks), m = pt(s, "rowTitle"), m = p === Dn ? d + m : u - m, g = pt(n.titleBand, ks, 0.5), q$(e, r.rowtitle, m, 0, y, g)), r.coltitle && (p = pt(n.titleAnchor, ws), m = pt(s, "columnTitle"), m = p === Dn ? h + m : f - m, g = pt(n.titleBand, ws, 0.5), q$(e, r.coltitle, m, 1, y, g));
14648
+ y.empty() && y.set(0, 0, 0, 0), r.rowheaders && (g = pt(n.headerBand, ks, null), u = Ih(e, r.rowheaders, i, a, l, -pt(s, "rowHeader"), B$, 0, o, "x1", 0, a, 1, g)), r.colheaders && (g = pt(n.headerBand, ws, null), f = Ih(e, r.colheaders, i, a, a, -pt(s, "columnHeader"), B$, 1, o, "y1", 0, 1, a, g)), r.rowfooters && (g = pt(n.footerBand, ks, null), d = Ih(e, r.rowfooters, i, a, l, pt(s, "rowFooter"), U$, 0, o, "x2", a - 1, a, 1, g)), r.colfooters && (g = pt(n.footerBand, ws, null), h = Ih(e, r.colfooters, i, a, a, pt(s, "columnFooter"), U$, 1, o, "y2", c - a, 1, a, g)), r.rowtitle && (p = pt(n.titleAnchor, ks), m = pt(s, "rowTitle"), m = p === Rn ? d + m : u - m, g = pt(n.titleBand, ks, 0.5), q$(e, r.rowtitle, m, 0, y, g)), r.coltitle && (p = pt(n.titleAnchor, ws), m = pt(s, "columnTitle"), m = p === Rn ? h + m : f - m, g = pt(n.titleBand, ws, 0.5), q$(e, r.coltitle, m, 1, y, g));
14649
14649
  }
14650
14650
  function WK(e, t) {
14651
14651
  return t === "x1" ? e.x || 0 : t === "y1" ? e.y || 0 : t === "x2" ? (e.x || 0) + (e.width || 0) : t === "y2" ? (e.y || 0) + (e.height || 0) : void 0;
@@ -14685,7 +14685,7 @@ function VK(e, t) {
14685
14685
  }), n > -1 / 0 ? n : t;
14686
14686
  }
14687
14687
  function YK(e, t, n, r, i, o, s) {
14688
- const a = GK(n, t), l = VK(e, a("offset", 0)), c = a("anchor", kw), u = c === Dn ? 1 : c === yb ? 0.5 : 0, f = {
14688
+ const a = GK(n, t), l = VK(e, a("offset", 0)), c = a("anchor", kw), u = c === Rn ? 1 : c === yb ? 0.5 : 0, f = {
14689
14689
  align: _b,
14690
14690
  bounds: a("bounds", Aw),
14691
14691
  columns: a("direction") === "vertical" ? 1 : e.length,
@@ -14697,7 +14697,7 @@ function YK(e, t, n, r, i, o, s) {
14697
14697
  case li:
14698
14698
  f.anchor = {
14699
14699
  x: Math.floor(r.x1) - l,
14700
- column: Dn,
14700
+ column: Rn,
14701
14701
  y: u * (s || r.height() + 2 * r.y1),
14702
14702
  row: c
14703
14703
  };
@@ -14712,7 +14712,7 @@ function YK(e, t, n, r, i, o, s) {
14712
14712
  case Fc:
14713
14713
  f.anchor = {
14714
14714
  y: Math.floor(i.y1) - l,
14715
- row: Dn,
14715
+ row: Rn,
14716
14716
  x: u * (o || i.width() + 2 * i.x1),
14717
14717
  column: c
14718
14718
  };
@@ -14734,22 +14734,22 @@ function YK(e, t, n, r, i, o, s) {
14734
14734
  f.anchor = {
14735
14735
  x: o - l,
14736
14736
  y: l,
14737
- column: Dn
14737
+ column: Rn
14738
14738
  };
14739
14739
  break;
14740
14740
  case EK:
14741
14741
  f.anchor = {
14742
14742
  x: l,
14743
14743
  y: s - l,
14744
- row: Dn
14744
+ row: Rn
14745
14745
  };
14746
14746
  break;
14747
14747
  case CK:
14748
14748
  f.anchor = {
14749
14749
  x: o - l,
14750
14750
  y: s - l,
14751
- column: Dn,
14752
- row: Dn
14751
+ column: Rn,
14752
+ row: Rn
14753
14753
  };
14754
14754
  break;
14755
14755
  }
@@ -14783,10 +14783,10 @@ function ZK(e, t, n) {
14783
14783
  u += Ul(t, n, s, a, 1, 1);
14784
14784
  break;
14785
14785
  case ci:
14786
- c += Ul(t, n, s, Dn, 0, 0) + l, u += Ul(t, n, s, a, 1, 1);
14786
+ c += Ul(t, n, s, Rn, 0, 0) + l, u += Ul(t, n, s, a, 1, 1);
14787
14787
  break;
14788
14788
  case Us:
14789
- c += Ul(t, n, s, a, 0, 0), u += Ul(t, n, s, Dn, -1, 0, 1) + l;
14789
+ c += Ul(t, n, s, a, 0, 0), u += Ul(t, n, s, Rn, -1, 0, 1) + l;
14790
14790
  break;
14791
14791
  default:
14792
14792
  c += Ul(t, n, s, a, 0, 0);
@@ -14796,7 +14796,7 @@ function ZK(e, t, n) {
14796
14796
  }
14797
14797
  function Ul(e, t, n, r, i, o, s) {
14798
14798
  const a = e.datum.type !== "symbol", l = n.datum.vgrad, c = a && (o || !l) && !s ? t.items[0] : t, u = c.bounds[i ? "y2" : "x2"] - e.padding, f = l && o ? u : 0, d = l && o ? 0 : u, h = i <= 0 ? 0 : fw(n);
14799
- return Math.round(r === kw ? f : r === Dn ? d - h : 0.5 * (u - h));
14799
+ return Math.round(r === kw ? f : r === Rn ? d - h : 0.5 * (u - h));
14800
14800
  }
14801
14801
  function Yu(e, t, n, r) {
14802
14802
  t.x += n, t.y += r, t.bounds.translate(n, r), t.mark.bounds.translate(n, r), e.dirty(t);
@@ -14809,7 +14809,7 @@ function JK(e) {
14809
14809
  }
14810
14810
  function QK(e, t, n, r, i) {
14811
14811
  var o = t.items[0], s = o.frame, a = o.orient, l = o.anchor, c = o.offset, u = o.padding, f = o.items[0].items[0], d = o.items[1] && o.items[1].items[0], h = a === li || a === ci ? r : n, p = 0, g = 0, m = 0, y = 0, _ = 0, v;
14812
- if (s !== g0 ? a === li ? (p = i.y2, h = i.y1) : a === ci ? (p = i.y1, h = i.y2) : (p = i.x1, h = i.x2) : a === li && (p = r, h = 0), v = l === kw ? p : l === Dn ? h : (p + h) / 2, d && d.text) {
14812
+ if (s !== g0 ? a === li ? (p = i.y2, h = i.y1) : a === ci ? (p = i.y1, h = i.y2) : (p = i.x1, h = i.x2) : a === li && (p = r, h = 0), v = l === kw ? p : l === Rn ? h : (p + h) / 2, d && d.text) {
14813
14813
  switch (a) {
14814
14814
  case Fc:
14815
14815
  case Us:
@@ -15345,13 +15345,13 @@ const OZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15345
15345
  sortitems: r8,
15346
15346
  stack: Fw
15347
15347
  }, Symbol.toStringTag, { value: "Module" }));
15348
- var _e = 1e-6, _g = 1e-12, Pe = Math.PI, $t = Pe / 2, bg = Pe / 4, jn = Pe * 2, Dt = 180 / Pe, Le = Pe / 180, qe = Math.abs, gu = Math.atan, Wr = Math.atan2, be = Math.cos, Ph = Math.ceil, a8 = Math.exp, vb = Math.hypot, vg = Math.log, uy = Math.pow, ge = Math.sin, Or = Math.sign || function(e) {
15348
+ var _e = 1e-6, _g = 1e-12, Pe = Math.PI, $t = Pe / 2, bg = Pe / 4, qn = Pe * 2, Dt = 180 / Pe, Le = Pe / 180, qe = Math.abs, gu = Math.atan, Wr = Math.atan2, be = Math.cos, Ph = Math.ceil, a8 = Math.exp, vb = Math.hypot, vg = Math.log, uy = Math.pow, ge = Math.sin, Or = Math.sign || function(e) {
15349
15349
  return e > 0 ? 1 : e < 0 ? -1 : 0;
15350
- }, qn = Math.sqrt, Dw = Math.tan;
15350
+ }, Wn = Math.sqrt, Dw = Math.tan;
15351
15351
  function l8(e) {
15352
15352
  return e > 1 ? 0 : e < -1 ? Pe : Math.acos(e);
15353
15353
  }
15354
- function rr(e) {
15354
+ function ir(e) {
15355
15355
  return e > 1 ? $t : e < -1 ? -$t : Math.asin(e);
15356
15356
  }
15357
15357
  function ln() {
@@ -15405,19 +15405,19 @@ function X$(e, t) {
15405
15405
  function Ao(e, t) {
15406
15406
  e && V$.hasOwnProperty(e.type) ? V$[e.type](e, t) : xg(e, t);
15407
15407
  }
15408
- var wg = new Bn(), kg = new Bn(), c8, u8, wb, kb, Eb, to = {
15408
+ var wg = new Un(), kg = new Un(), c8, u8, wb, kb, Eb, to = {
15409
15409
  point: ln,
15410
15410
  lineStart: ln,
15411
15411
  lineEnd: ln,
15412
15412
  polygonStart: function() {
15413
- wg = new Bn(), to.lineStart = LZ, to.lineEnd = IZ;
15413
+ wg = new Un(), to.lineStart = LZ, to.lineEnd = IZ;
15414
15414
  },
15415
15415
  polygonEnd: function() {
15416
15416
  var e = +wg;
15417
- kg.add(e < 0 ? jn + e : e), this.lineStart = this.lineEnd = this.point = ln;
15417
+ kg.add(e < 0 ? qn + e : e), this.lineStart = this.lineEnd = this.point = ln;
15418
15418
  },
15419
15419
  sphere: function() {
15420
- kg.add(jn);
15420
+ kg.add(qn);
15421
15421
  }
15422
15422
  };
15423
15423
  function LZ() {
@@ -15435,10 +15435,10 @@ function f8(e, t) {
15435
15435
  wg.add(Wr(c, l)), wb = e, kb = o, Eb = s;
15436
15436
  }
15437
15437
  function zZ(e) {
15438
- return kg = new Bn(), Ao(e, to), kg * 2;
15438
+ return kg = new Un(), Ao(e, to), kg * 2;
15439
15439
  }
15440
15440
  function Eg(e) {
15441
- return [Wr(e[1], e[0]), rr(e[2])];
15441
+ return [Wr(e[1], e[0]), ir(e[2])];
15442
15442
  }
15443
15443
  function Ja(e) {
15444
15444
  var t = e[0], n = e[1], r = be(n);
@@ -15457,25 +15457,25 @@ function Bh(e, t) {
15457
15457
  return [e[0] * t, e[1] * t, e[2] * t];
15458
15458
  }
15459
15459
  function Cg(e) {
15460
- var t = qn(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
15460
+ var t = Wn(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]);
15461
15461
  e[0] /= t, e[1] /= t, e[2] /= t;
15462
15462
  }
15463
- var xt, Kn, Ct, dr, Ca, d8, h8, uc, Lf, ps, Go, So = {
15463
+ var xt, Zn, Ct, dr, Ca, d8, h8, uc, Lf, ps, Go, So = {
15464
15464
  point: Cb,
15465
15465
  lineStart: K$,
15466
15466
  lineEnd: Z$,
15467
15467
  polygonStart: function() {
15468
- So.point = g8, So.lineStart = BZ, So.lineEnd = UZ, Lf = new Bn(), to.polygonStart();
15468
+ So.point = g8, So.lineStart = BZ, So.lineEnd = UZ, Lf = new Un(), to.polygonStart();
15469
15469
  },
15470
15470
  polygonEnd: function() {
15471
- to.polygonEnd(), So.point = Cb, So.lineStart = K$, So.lineEnd = Z$, wg < 0 ? (xt = -(Ct = 180), Kn = -(dr = 90)) : Lf > _e ? dr = 90 : Lf < -_e && (Kn = -90), Go[0] = xt, Go[1] = Ct;
15471
+ to.polygonEnd(), So.point = Cb, So.lineStart = K$, So.lineEnd = Z$, wg < 0 ? (xt = -(Ct = 180), Zn = -(dr = 90)) : Lf > _e ? dr = 90 : Lf < -_e && (Zn = -90), Go[0] = xt, Go[1] = Ct;
15472
15472
  },
15473
15473
  sphere: function() {
15474
- xt = -(Ct = 180), Kn = -(dr = 90);
15474
+ xt = -(Ct = 180), Zn = -(dr = 90);
15475
15475
  }
15476
15476
  };
15477
15477
  function Cb(e, t) {
15478
- ps.push(Go = [xt = e, Ct = e]), t < Kn && (Kn = t), t > dr && (dr = t);
15478
+ ps.push(Go = [xt = e, Ct = e]), t < Zn && (Zn = t), t > dr && (dr = t);
15479
15479
  }
15480
15480
  function p8(e, t) {
15481
15481
  var n = Ja([e * Le, t * Le]);
@@ -15483,10 +15483,10 @@ function p8(e, t) {
15483
15483
  var r = Dc(uc, n), i = [r[1], -r[0], 0], o = Dc(i, r);
15484
15484
  Cg(o), o = Eg(o);
15485
15485
  var s = e - Ca, a = s > 0 ? 1 : -1, l = o[0] * Dt * a, c, u = qe(s) > 180;
15486
- u ^ (a * Ca < l && l < a * e) ? (c = o[1] * Dt, c > dr && (dr = c)) : (l = (l + 360) % 360 - 180, u ^ (a * Ca < l && l < a * e) ? (c = -o[1] * Dt, c < Kn && (Kn = c)) : (t < Kn && (Kn = t), t > dr && (dr = t))), u ? e < Ca ? fr(xt, e) > fr(xt, Ct) && (Ct = e) : fr(e, Ct) > fr(xt, Ct) && (xt = e) : Ct >= xt ? (e < xt && (xt = e), e > Ct && (Ct = e)) : e > Ca ? fr(xt, e) > fr(xt, Ct) && (Ct = e) : fr(e, Ct) > fr(xt, Ct) && (xt = e);
15486
+ u ^ (a * Ca < l && l < a * e) ? (c = o[1] * Dt, c > dr && (dr = c)) : (l = (l + 360) % 360 - 180, u ^ (a * Ca < l && l < a * e) ? (c = -o[1] * Dt, c < Zn && (Zn = c)) : (t < Zn && (Zn = t), t > dr && (dr = t))), u ? e < Ca ? fr(xt, e) > fr(xt, Ct) && (Ct = e) : fr(e, Ct) > fr(xt, Ct) && (xt = e) : Ct >= xt ? (e < xt && (xt = e), e > Ct && (Ct = e)) : e > Ca ? fr(xt, e) > fr(xt, Ct) && (Ct = e) : fr(e, Ct) > fr(xt, Ct) && (xt = e);
15487
15487
  } else
15488
15488
  ps.push(Go = [xt = e, Ct = e]);
15489
- t < Kn && (Kn = t), t > dr && (dr = t), uc = n, Ca = e;
15489
+ t < Zn && (Zn = t), t > dr && (dr = t), uc = n, Ca = e;
15490
15490
  }
15491
15491
  function K$() {
15492
15492
  So.point = p8;
@@ -15519,15 +15519,15 @@ function J$(e, t) {
15519
15519
  }
15520
15520
  function qZ(e) {
15521
15521
  var t, n, r, i, o, s, a;
15522
- if (dr = Ct = -(xt = Kn = 1 / 0), ps = [], Ao(e, So), n = ps.length) {
15522
+ if (dr = Ct = -(xt = Zn = 1 / 0), ps = [], Ao(e, So), n = ps.length) {
15523
15523
  for (ps.sort(jZ), t = 1, r = ps[0], o = [r]; t < n; ++t)
15524
15524
  i = ps[t], J$(r, i[0]) || J$(r, i[1]) ? (fr(r[0], i[1]) > fr(r[0], r[1]) && (r[1] = i[1]), fr(i[0], r[1]) > fr(r[0], r[1]) && (r[0] = i[0])) : o.push(r = i);
15525
15525
  for (s = -1 / 0, n = o.length - 1, t = 0, r = o[n]; t <= n; r = i, ++t)
15526
15526
  i = o[t], (a = fr(r[1], i[0])) > s && (s = a, xt = i[0], Ct = r[1]);
15527
15527
  }
15528
- return ps = Go = null, xt === 1 / 0 || Kn === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[xt, Kn], [Ct, dr]];
15528
+ return ps = Go = null, xt === 1 / 0 || Zn === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[xt, Zn], [Ct, dr]];
15529
15529
  }
15530
- var _f, Sg, $g, Ag, Mg, Ng, Tg, Fg, Sb, $b, Ab, m8, y8, Rn, On, Ln, ui = {
15530
+ var _f, Sg, $g, Ag, Mg, Ng, Tg, Fg, Sb, $b, Ab, m8, y8, On, Ln, In, ui = {
15531
15531
  sphere: ln,
15532
15532
  point: Rw,
15533
15533
  lineStart: Q$,
@@ -15553,12 +15553,12 @@ function Q$() {
15553
15553
  function WZ(e, t) {
15554
15554
  e *= Le, t *= Le;
15555
15555
  var n = be(t);
15556
- Rn = n * be(e), On = n * ge(e), Ln = ge(t), ui.point = HZ, Yd(Rn, On, Ln);
15556
+ On = n * be(e), Ln = n * ge(e), In = ge(t), ui.point = HZ, Yd(On, Ln, In);
15557
15557
  }
15558
15558
  function HZ(e, t) {
15559
15559
  e *= Le, t *= Le;
15560
- var n = be(t), r = n * be(e), i = n * ge(e), o = ge(t), s = Wr(qn((s = On * o - Ln * i) * s + (s = Ln * r - Rn * o) * s + (s = Rn * i - On * r) * s), Rn * r + On * i + Ln * o);
15561
- Sg += s, Ng += s * (Rn + (Rn = r)), Tg += s * (On + (On = i)), Fg += s * (Ln + (Ln = o)), Yd(Rn, On, Ln);
15560
+ var n = be(t), r = n * be(e), i = n * ge(e), o = ge(t), s = Wr(Wn((s = Ln * o - In * i) * s + (s = In * r - On * o) * s + (s = On * i - Ln * r) * s), On * r + Ln * i + In * o);
15561
+ Sg += s, Ng += s * (On + (On = r)), Tg += s * (Ln + (Ln = i)), Fg += s * (In + (In = o)), Yd(On, Ln, In);
15562
15562
  }
15563
15563
  function eA() {
15564
15564
  ui.point = Rw;
@@ -15572,17 +15572,17 @@ function VZ() {
15572
15572
  function YZ(e, t) {
15573
15573
  m8 = e, y8 = t, e *= Le, t *= Le, ui.point = _8;
15574
15574
  var n = be(t);
15575
- Rn = n * be(e), On = n * ge(e), Ln = ge(t), Yd(Rn, On, Ln);
15575
+ On = n * be(e), Ln = n * ge(e), In = ge(t), Yd(On, Ln, In);
15576
15576
  }
15577
15577
  function _8(e, t) {
15578
15578
  e *= Le, t *= Le;
15579
- var n = be(t), r = n * be(e), i = n * ge(e), o = ge(t), s = On * o - Ln * i, a = Ln * r - Rn * o, l = Rn * i - On * r, c = vb(s, a, l), u = rr(c), f = c && -u / c;
15580
- Sb.add(f * s), $b.add(f * a), Ab.add(f * l), Sg += u, Ng += u * (Rn + (Rn = r)), Tg += u * (On + (On = i)), Fg += u * (Ln + (Ln = o)), Yd(Rn, On, Ln);
15579
+ var n = be(t), r = n * be(e), i = n * ge(e), o = ge(t), s = Ln * o - In * i, a = In * r - On * o, l = On * i - Ln * r, c = vb(s, a, l), u = ir(c), f = c && -u / c;
15580
+ Sb.add(f * s), $b.add(f * a), Ab.add(f * l), Sg += u, Ng += u * (On + (On = r)), Tg += u * (Ln + (Ln = i)), Fg += u * (In + (In = o)), Yd(On, Ln, In);
15581
15581
  }
15582
15582
  function XZ(e) {
15583
- _f = Sg = $g = Ag = Mg = Ng = Tg = Fg = 0, Sb = new Bn(), $b = new Bn(), Ab = new Bn(), Ao(e, ui);
15583
+ _f = Sg = $g = Ag = Mg = Ng = Tg = Fg = 0, Sb = new Un(), $b = new Un(), Ab = new Un(), Ao(e, ui);
15584
15584
  var t = +Sb, n = +$b, r = +Ab, i = vb(t, n, r);
15585
- return i < _g && (t = Ng, n = Tg, r = Fg, Sg < _e && (t = $g, n = Ag, r = Mg), i = vb(t, n, r), i < _g) ? [NaN, NaN] : [Wr(n, t) * Dt, rr(r / i) * Dt];
15585
+ return i < _g && (t = Ng, n = Tg, r = Fg, Sg < _e && (t = $g, n = Ag, r = Mg), i = vb(t, n, r), i < _g) ? [NaN, NaN] : [Wr(n, t) * Dt, ir(r / i) * Dt];
15586
15586
  }
15587
15587
  function Mb(e, t) {
15588
15588
  function n(r, i) {
@@ -15593,15 +15593,15 @@ function Mb(e, t) {
15593
15593
  }), n;
15594
15594
  }
15595
15595
  function Nb(e, t) {
15596
- return qe(e) > Pe && (e -= Math.round(e / jn) * jn), [e, t];
15596
+ return qe(e) > Pe && (e -= Math.round(e / qn) * qn), [e, t];
15597
15597
  }
15598
15598
  Nb.invert = Nb;
15599
15599
  function b8(e, t, n) {
15600
- return (e %= jn) ? t || n ? Mb(nA(e), rA(t, n)) : nA(e) : t || n ? rA(t, n) : Nb;
15600
+ return (e %= qn) ? t || n ? Mb(nA(e), rA(t, n)) : nA(e) : t || n ? rA(t, n) : Nb;
15601
15601
  }
15602
15602
  function tA(e) {
15603
15603
  return function(t, n) {
15604
- return t += e, qe(t) > Pe && (t -= Math.round(t / jn) * jn), [t, n];
15604
+ return t += e, qe(t) > Pe && (t -= Math.round(t / qn) * qn), [t, n];
15605
15605
  };
15606
15606
  }
15607
15607
  function nA(e) {
@@ -15614,14 +15614,14 @@ function rA(e, t) {
15614
15614
  var c = be(l), u = be(a) * c, f = ge(a) * c, d = ge(l), h = d * n + u * r;
15615
15615
  return [
15616
15616
  Wr(f * i - h * o, u * n - d * r),
15617
- rr(h * i + f * o)
15617
+ ir(h * i + f * o)
15618
15618
  ];
15619
15619
  }
15620
15620
  return s.invert = function(a, l) {
15621
15621
  var c = be(l), u = be(a) * c, f = ge(a) * c, d = ge(l), h = d * i - f * o;
15622
15622
  return [
15623
15623
  Wr(f * i + d * o, u * n + h * r),
15624
- rr(h * n - u * r)
15624
+ ir(h * n - u * r)
15625
15625
  ];
15626
15626
  }, s;
15627
15627
  }
@@ -15637,7 +15637,7 @@ function KZ(e) {
15637
15637
  function ZZ(e, t, n, r, i, o) {
15638
15638
  if (n) {
15639
15639
  var s = be(t), a = ge(t), l = r * n;
15640
- i == null ? (i = t + r * jn, o = t - l / 2) : (i = iA(s, i), o = iA(s, o), (r > 0 ? i < o : i > o) && (i += r * jn));
15640
+ i == null ? (i = t + r * qn, o = t - l / 2) : (i = iA(s, i), o = iA(s, o), (r > 0 ? i < o : i > o) && (i += r * qn));
15641
15641
  for (var c, u = i; r > 0 ? u > o : u < o; u -= l)
15642
15642
  c = Eg([s, -a * be(u), -a * ge(u)]), e.point(c[0], c[1]);
15643
15643
  }
@@ -15645,7 +15645,7 @@ function ZZ(e, t, n, r, i, o) {
15645
15645
  function iA(e, t) {
15646
15646
  t = Ja(t), t[0] -= e, Cg(t);
15647
15647
  var n = l8(-t[1]);
15648
- return ((-t[2] < 0 ? -n : n) + jn - _e) % jn;
15648
+ return ((-t[2] < 0 ? -n : n) + qn - _e) % qn;
15649
15649
  }
15650
15650
  function v8() {
15651
15651
  var e = [], t;
@@ -15721,21 +15721,21 @@ function oA(e) {
15721
15721
  }
15722
15722
  }
15723
15723
  function dy(e) {
15724
- return qe(e[0]) <= Pe ? e[0] : Or(e[0]) * ((qe(e[0]) + Pe) % jn - Pe);
15724
+ return qe(e[0]) <= Pe ? e[0] : Or(e[0]) * ((qe(e[0]) + Pe) % qn - Pe);
15725
15725
  }
15726
15726
  function JZ(e, t) {
15727
- var n = dy(t), r = t[1], i = ge(r), o = [ge(n), -be(n), 0], s = 0, a = 0, l = new Bn();
15727
+ var n = dy(t), r = t[1], i = ge(r), o = [ge(n), -be(n), 0], s = 0, a = 0, l = new Un();
15728
15728
  i === 1 ? r = $t + _e : i === -1 && (r = -$t - _e);
15729
15729
  for (var c = 0, u = e.length; c < u; ++c)
15730
15730
  if (d = (f = e[c]).length)
15731
15731
  for (var f, d, h = f[d - 1], p = dy(h), g = h[1] / 2 + bg, m = ge(g), y = be(g), _ = 0; _ < d; ++_, p = x, m = E, y = k, h = v) {
15732
15732
  var v = f[_], x = dy(v), w = v[1] / 2 + bg, E = ge(w), k = be(w), C = x - p, $ = C >= 0 ? 1 : -1, A = $ * C, M = A > Pe, T = m * E;
15733
- if (l.add(Wr(T * $ * ge(A), y * k + T * be(A))), s += M ? C + $ * jn : C, M ^ p >= n ^ x >= n) {
15733
+ if (l.add(Wr(T * $ * ge(A), y * k + T * be(A))), s += M ? C + $ * qn : C, M ^ p >= n ^ x >= n) {
15734
15734
  var R = Dc(Ja(h), Ja(v));
15735
15735
  Cg(R);
15736
15736
  var N = Dc(o, R);
15737
15737
  Cg(N);
15738
- var S = (M ^ C >= 0 ? -1 : 1) * rr(N[2]);
15738
+ var S = (M ^ C >= 0 ? -1 : 1) * ir(N[2]);
15739
15739
  (r > S || r === S && (R[0] || R[1])) && (a += M ^ C >= 0 ? 1 : -1);
15740
15740
  }
15741
15741
  }
@@ -15881,7 +15881,7 @@ function iJ(e) {
15881
15881
  fy(k, C);
15882
15882
  var $ = E, A = zh(k, $), M = zh($, $), T = A * A - M * (zh(k, k) - 1);
15883
15883
  if (!(T < 0)) {
15884
- var R = qn(T), N = Bh($, (-A - R) / M);
15884
+ var R = Wn(T), N = Bh($, (-A - R) / M);
15885
15885
  if (fy(N, k), N = Eg(N), !d) return N;
15886
15886
  var S = u[0], F = f[0], O = u[1], P = f[1], L;
15887
15887
  F < S && (L = S, S = F, F = L);
@@ -16066,7 +16066,7 @@ function sJ() {
16066
16066
  }, y.extentMajor([[-180, -90 + _e], [180, 90 - _e]]).extentMinor([[-180, -80 - _e], [180, 80 + _e]]);
16067
16067
  }
16068
16068
  const id = (e) => e;
16069
- var hy = new Bn(), Tb = new Bn(), E8, C8, Fb, Db, Mo = {
16069
+ var hy = new Un(), Tb = new Un(), E8, C8, Fb, Db, Mo = {
16070
16070
  point: ln,
16071
16071
  lineStart: ln,
16072
16072
  lineEnd: ln,
@@ -16074,11 +16074,11 @@ var hy = new Bn(), Tb = new Bn(), E8, C8, Fb, Db, Mo = {
16074
16074
  Mo.lineStart = aJ, Mo.lineEnd = cJ;
16075
16075
  },
16076
16076
  polygonEnd: function() {
16077
- Mo.lineStart = Mo.lineEnd = Mo.point = ln, hy.add(qe(Tb)), Tb = new Bn();
16077
+ Mo.lineStart = Mo.lineEnd = Mo.point = ln, hy.add(qe(Tb)), Tb = new Un();
16078
16078
  },
16079
16079
  result: function() {
16080
16080
  var e = hy / 2;
16081
- return hy = new Bn(), e;
16081
+ return hy = new Un(), e;
16082
16082
  }
16083
16083
  };
16084
16084
  function aJ() {
@@ -16132,7 +16132,7 @@ function fJ(e, t) {
16132
16132
  Dr.point = dJ, Qa(Ui = e, ji = t);
16133
16133
  }
16134
16134
  function dJ(e, t) {
16135
- var n = e - Ui, r = t - ji, i = qn(n * n + r * r);
16135
+ var n = e - Ui, r = t - ji, i = Wn(n * n + r * r);
16136
16136
  Lg += i * (Ui + e) / 2, Ig += i * (ji + t) / 2, rc += i, Qa(Ui = e, ji = t);
16137
16137
  }
16138
16138
  function uA() {
@@ -16148,7 +16148,7 @@ function gJ(e, t) {
16148
16148
  Dr.point = M8, Qa($8 = Ui = e, A8 = ji = t);
16149
16149
  }
16150
16150
  function M8(e, t) {
16151
- var n = e - Ui, r = t - ji, i = qn(n * n + r * r);
16151
+ var n = e - Ui, r = t - ji, i = Wn(n * n + r * r);
16152
16152
  Lg += i * (Ui + e) / 2, Ig += i * (ji + t) / 2, rc += i, i = ji * e - Ui * t, Lb += i * (Ui + e), Ib += i * (ji + t), xf += i * 3, Qa(Ui = e, ji = t);
16153
16153
  }
16154
16154
  function N8(e) {
@@ -16182,14 +16182,14 @@ N8.prototype = {
16182
16182
  break;
16183
16183
  }
16184
16184
  default: {
16185
- this._context.moveTo(e + this._radius, t), this._context.arc(e, t, this._radius, 0, jn);
16185
+ this._context.moveTo(e + this._radius, t), this._context.arc(e, t, this._radius, 0, qn);
16186
16186
  break;
16187
16187
  }
16188
16188
  }
16189
16189
  },
16190
16190
  result: ln
16191
16191
  };
16192
- var Pb = new Bn(), py, T8, F8, wf, kf, sd = {
16192
+ var Pb = new Un(), py, T8, F8, wf, kf, sd = {
16193
16193
  point: ln,
16194
16194
  lineStart: function() {
16195
16195
  sd.point = mJ;
@@ -16205,14 +16205,14 @@ var Pb = new Bn(), py, T8, F8, wf, kf, sd = {
16205
16205
  },
16206
16206
  result: function() {
16207
16207
  var e = +Pb;
16208
- return Pb = new Bn(), e;
16208
+ return Pb = new Un(), e;
16209
16209
  }
16210
16210
  };
16211
16211
  function mJ(e, t) {
16212
16212
  sd.point = D8, T8 = wf = e, F8 = kf = t;
16213
16213
  }
16214
16214
  function D8(e, t) {
16215
- wf -= e, kf -= t, Pb.add(qn(wf * wf + kf * kf)), wf = e, kf = t;
16215
+ wf -= e, kf -= t, Pb.add(Wn(wf * wf + kf * kf)), wf = e, kf = t;
16216
16216
  }
16217
16217
  let fA, Pg, dA, hA;
16218
16218
  class pA {
@@ -16380,7 +16380,7 @@ function vJ(e, t) {
16380
16380
  function n(r, i, o, s, a, l, c, u, f, d, h, p, g, m) {
16381
16381
  var y = c - r, _ = u - i, v = y * y + _ * _;
16382
16382
  if (v > 4 * t && g--) {
16383
- var x = s + d, w = a + h, E = l + p, k = qn(x * x + w * w + E * E), C = rr(E /= k), $ = qe(qe(E) - 1) < _e || qe(o - f) < _e ? (o + f) / 2 : Wr(w, x), A = e($, C), M = A[0], T = A[1], R = M - r, N = T - i, S = _ * R - y * N;
16383
+ var x = s + d, w = a + h, E = l + p, k = Wn(x * x + w * w + E * E), C = ir(E /= k), $ = qe(qe(E) - 1) < _e || qe(o - f) < _e ? (o + f) / 2 : Wr(w, x), A = e($, C), M = A[0], T = A[1], R = M - r, N = T - i, S = _ * R - y * N;
16384
16384
  (S * S / v > t || qe((y * R + _ * N) / v - 0.5) > 0.3 || s * d + a * h + l * p < _J) && (n(r, i, o, s, a, l, M, T, $, x /= k, w /= k, E, g, m), m.point(M, T), n(M, T, $, x, w, E, c, u, f, d, h, p, g, m));
16385
16385
  }
16386
16386
  }
@@ -16490,7 +16490,7 @@ function L8(e) {
16490
16490
  }, M.reflectY = function(S) {
16491
16491
  return arguments.length ? (h = S ? -1 : 1, R()) : h < 0;
16492
16492
  }, M.precision = function(S) {
16493
- return arguments.length ? (E = mA(k, w = S * S), N()) : qn(w);
16493
+ return arguments.length ? (E = mA(k, w = S * S), N()) : Wn(w);
16494
16494
  }, M.fitExtent = function(S, F) {
16495
16495
  return y0(M, S, F);
16496
16496
  }, M.fitSize = function(S, F) {
@@ -16523,20 +16523,20 @@ function EJ(e) {
16523
16523
  return [r * t, ge(i) / t];
16524
16524
  }
16525
16525
  return n.invert = function(r, i) {
16526
- return [r / t, rr(i * t)];
16526
+ return [r / t, ir(i * t)];
16527
16527
  }, n;
16528
16528
  }
16529
16529
  function CJ(e, t) {
16530
16530
  var n = ge(e), r = (n + ge(t)) / 2;
16531
16531
  if (qe(r) < _e) return EJ(e);
16532
- var i = 1 + n * (2 * r - n), o = qn(i) / r;
16532
+ var i = 1 + n * (2 * r - n), o = Wn(i) / r;
16533
16533
  function s(a, l) {
16534
- var c = qn(i - 2 * r * ge(l)) / r;
16534
+ var c = Wn(i - 2 * r * ge(l)) / r;
16535
16535
  return [c * ge(a *= r), o - c * be(a)];
16536
16536
  }
16537
16537
  return s.invert = function(a, l) {
16538
16538
  var c = o - l, u = Wr(a, qe(c)) * Or(c);
16539
- return c * r < 0 && (u -= Pe * Or(a) * Or(c)), [u / r, rr((i - (a * a + c * c) * r * r) / (2 * r))];
16539
+ return c * r < 0 && (u -= Pe * Or(a) * Or(c)), [u / r, ir((i - (a * a + c * c) * r * r) / (2 * r))];
16540
16540
  }, s;
16541
16541
  }
16542
16542
  function zg() {
@@ -16614,18 +16614,18 @@ function P8(e) {
16614
16614
  }
16615
16615
  function Xd(e) {
16616
16616
  return function(t, n) {
16617
- var r = qn(t * t + n * n), i = e(r), o = ge(i), s = be(i);
16617
+ var r = Wn(t * t + n * n), i = e(r), o = ge(i), s = be(i);
16618
16618
  return [
16619
16619
  Wr(t * o, r * s),
16620
- rr(r && n * o / r)
16620
+ ir(r && n * o / r)
16621
16621
  ];
16622
16622
  };
16623
16623
  }
16624
16624
  var z8 = P8(function(e) {
16625
- return qn(2 / (1 + e));
16625
+ return Wn(2 / (1 + e));
16626
16626
  });
16627
16627
  z8.invert = Xd(function(e) {
16628
- return 2 * rr(e / 2);
16628
+ return 2 * ir(e / 2);
16629
16629
  });
16630
16630
  function AJ() {
16631
16631
  return fo(z8).scale(124.75).clipAngle(180 - 1e-3);
@@ -16646,7 +16646,7 @@ _0.invert = function(e, t) {
16646
16646
  return [e, 2 * gu(a8(t)) - $t];
16647
16647
  };
16648
16648
  function NJ() {
16649
- return U8(_0).scale(961 / jn);
16649
+ return U8(_0).scale(961 / qn);
16650
16650
  }
16651
16651
  function U8(e) {
16652
16652
  var t = fo(e), n = t.center, r = t.scale, i = t.translate, o = t.clipExtent, s = null, a, l, c;
@@ -16677,7 +16677,7 @@ function TJ(e, t) {
16677
16677
  return [l * ge(r * s), i - l * be(r * s)];
16678
16678
  }
16679
16679
  return o.invert = function(s, a) {
16680
- var l = i - a, c = Or(r) * qn(s * s + l * l), u = Wr(s, qe(l)) * Or(l);
16680
+ var l = i - a, c = Or(r) * Wn(s * s + l * l), u = Wr(s, qe(l)) * Or(l);
16681
16681
  return l * r < 0 && (u -= Pe * Or(s) * Or(l)), [u / r, 2 * gu(uy(i / c, 1 / r)) - $t];
16682
16682
  }, o;
16683
16683
  }
@@ -16700,15 +16700,15 @@ function RJ(e, t) {
16700
16700
  }
16701
16701
  return o.invert = function(s, a) {
16702
16702
  var l = i - a, c = Wr(s, qe(l)) * Or(l);
16703
- return l * r < 0 && (c -= Pe * Or(s) * Or(l)), [c / r, i - Or(r) * qn(s * s + l * l)];
16703
+ return l * r < 0 && (c -= Pe * Or(s) * Or(l)), [c / r, i - Or(r) * Wn(s * s + l * l)];
16704
16704
  }, o;
16705
16705
  }
16706
16706
  function OJ() {
16707
16707
  return zw(RJ).scale(131.154).center([0, 13.9389]);
16708
16708
  }
16709
- var If = 1.340264, Pf = -0.081106, zf = 893e-6, Bf = 3796e-6, Ug = qn(3) / 2, LJ = 12;
16709
+ var If = 1.340264, Pf = -0.081106, zf = 893e-6, Bf = 3796e-6, Ug = Wn(3) / 2, LJ = 12;
16710
16710
  function j8(e, t) {
16711
- var n = rr(Ug * ge(t)), r = n * n, i = r * r * r;
16711
+ var n = ir(Ug * ge(t)), r = n * n, i = r * r * r;
16712
16712
  return [
16713
16713
  e * be(n) / (Ug * (If + 3 * Pf * r + i * (7 * zf + 9 * Bf * r))),
16714
16714
  n * (If + Pf * r + i * (zf + Bf * r))
@@ -16719,7 +16719,7 @@ j8.invert = function(e, t) {
16719
16719
  ;
16720
16720
  return [
16721
16721
  Ug * e * (If + 3 * Pf * r + i * (7 * zf + 9 * Bf * r)) / be(n),
16722
- rr(ge(n) / Ug)
16722
+ ir(ge(n) / Ug)
16723
16723
  ];
16724
16724
  };
16725
16725
  function IJ() {
@@ -16808,7 +16808,7 @@ function BJ() {
16808
16808
  function H8(e, t) {
16809
16809
  return [be(t) * ge(e), ge(t)];
16810
16810
  }
16811
- H8.invert = Xd(rr);
16811
+ H8.invert = Xd(ir);
16812
16812
  function UJ() {
16813
16813
  return fo(H8).scale(249.5).clipAngle(90 + _e);
16814
16814
  }
@@ -17725,20 +17725,20 @@ function CQ() {
17725
17725
  function SQ(e) {
17726
17726
  return arguments.length ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
17727
17727
  }
17728
- function In(e, t, n, r, i) {
17728
+ function Pn(e, t, n, r, i) {
17729
17729
  this.node = e, this.x0 = t, this.y0 = n, this.x1 = r, this.y1 = i;
17730
17730
  }
17731
17731
  function $Q(e, t, n) {
17732
17732
  var r, i = this._x0, o = this._y0, s, a, l, c, u = this._x1, f = this._y1, d = [], h = this._root, p, g;
17733
- for (h && d.push(new In(h, i, o, u, f)), n == null ? n = 1 / 0 : (i = e - n, o = t - n, u = e + n, f = t + n, n *= n); p = d.pop(); )
17733
+ for (h && d.push(new Pn(h, i, o, u, f)), n == null ? n = 1 / 0 : (i = e - n, o = t - n, u = e + n, f = t + n, n *= n); p = d.pop(); )
17734
17734
  if (!(!(h = p.node) || (s = p.x0) > u || (a = p.y0) > f || (l = p.x1) < i || (c = p.y1) < o))
17735
17735
  if (h.length) {
17736
17736
  var m = (s + l) / 2, y = (a + c) / 2;
17737
17737
  d.push(
17738
- new In(h[3], m, y, l, c),
17739
- new In(h[2], s, y, m, c),
17740
- new In(h[1], m, a, l, y),
17741
- new In(h[0], s, a, m, y)
17738
+ new Pn(h[3], m, y, l, c),
17739
+ new Pn(h[2], s, y, m, c),
17740
+ new Pn(h[1], m, a, l, y),
17741
+ new Pn(h[0], s, a, m, y)
17742
17742
  ), (g = (t >= y) << 1 | e >= m) && (p = d[d.length - 1], d[d.length - 1] = d[d.length - 1 - g], d[d.length - 1 - g] = p);
17743
17743
  } else {
17744
17744
  var _ = e - +this._x.call(null, h.data), v = t - +this._y.call(null, h.data), x = _ * _ + v * v;
@@ -17778,20 +17778,20 @@ function TQ() {
17778
17778
  }
17779
17779
  function FQ(e) {
17780
17780
  var t = [], n, r = this._root, i, o, s, a, l;
17781
- for (r && t.push(new In(r, this._x0, this._y0, this._x1, this._y1)); n = t.pop(); )
17781
+ for (r && t.push(new Pn(r, this._x0, this._y0, this._x1, this._y1)); n = t.pop(); )
17782
17782
  if (!e(r = n.node, o = n.x0, s = n.y0, a = n.x1, l = n.y1) && r.length) {
17783
17783
  var c = (o + a) / 2, u = (s + l) / 2;
17784
- (i = r[3]) && t.push(new In(i, c, u, a, l)), (i = r[2]) && t.push(new In(i, o, u, c, l)), (i = r[1]) && t.push(new In(i, c, s, a, u)), (i = r[0]) && t.push(new In(i, o, s, c, u));
17784
+ (i = r[3]) && t.push(new Pn(i, c, u, a, l)), (i = r[2]) && t.push(new Pn(i, o, u, c, l)), (i = r[1]) && t.push(new Pn(i, c, s, a, u)), (i = r[0]) && t.push(new Pn(i, o, s, c, u));
17785
17785
  }
17786
17786
  return this;
17787
17787
  }
17788
17788
  function DQ(e) {
17789
17789
  var t = [], n = [], r;
17790
- for (this._root && t.push(new In(this._root, this._x0, this._y0, this._x1, this._y1)); r = t.pop(); ) {
17790
+ for (this._root && t.push(new Pn(this._root, this._x0, this._y0, this._x1, this._y1)); r = t.pop(); ) {
17791
17791
  var i = r.node;
17792
17792
  if (i.length) {
17793
17793
  var o, s = r.x0, a = r.y0, l = r.x1, c = r.y1, u = (s + l) / 2, f = (a + c) / 2;
17794
- (o = i[0]) && t.push(new In(o, s, a, u, f)), (o = i[1]) && t.push(new In(o, u, a, l, f)), (o = i[2]) && t.push(new In(o, s, f, u, c)), (o = i[3]) && t.push(new In(o, u, f, l, c));
17794
+ (o = i[0]) && t.push(new Pn(o, s, a, u, f)), (o = i[1]) && t.push(new Pn(o, u, a, l, f)), (o = i[2]) && t.push(new Pn(o, s, f, u, c)), (o = i[3]) && t.push(new Pn(o, u, f, l, c));
17795
17795
  }
17796
17796
  n.push(r);
17797
17797
  }
@@ -17822,8 +17822,8 @@ function wA(e) {
17822
17822
  for (var t = { data: e.data }, n = t; e = e.next; ) n = n.next = { data: e.data };
17823
17823
  return t;
17824
17824
  }
17825
- var Hn = Zw.prototype = Jw.prototype;
17826
- Hn.copy = function() {
17825
+ var Gn = Zw.prototype = Jw.prototype;
17826
+ Gn.copy = function() {
17827
17827
  var e = new Jw(this._x, this._y, this._x0, this._y0, this._x1, this._y1), t = this._root, n, r;
17828
17828
  if (!t) return e;
17829
17829
  if (!t.length) return e._root = wA(t), e;
@@ -17832,21 +17832,21 @@ Hn.copy = function() {
17832
17832
  (r = t.source[i]) && (r.length ? n.push({ source: r, target: t.target[i] = new Array(4) }) : t.target[i] = wA(r));
17833
17833
  return e;
17834
17834
  };
17835
- Hn.add = wQ;
17836
- Hn.addAll = kQ;
17837
- Hn.cover = EQ;
17838
- Hn.data = CQ;
17839
- Hn.extent = SQ;
17840
- Hn.find = $Q;
17841
- Hn.remove = AQ;
17842
- Hn.removeAll = MQ;
17843
- Hn.root = NQ;
17844
- Hn.size = TQ;
17845
- Hn.visit = FQ;
17846
- Hn.visitAfter = DQ;
17847
- Hn.x = OQ;
17848
- Hn.y = IQ;
17849
- function Pn(e) {
17835
+ Gn.add = wQ;
17836
+ Gn.addAll = kQ;
17837
+ Gn.cover = EQ;
17838
+ Gn.data = CQ;
17839
+ Gn.extent = SQ;
17840
+ Gn.find = $Q;
17841
+ Gn.remove = AQ;
17842
+ Gn.removeAll = MQ;
17843
+ Gn.root = NQ;
17844
+ Gn.size = TQ;
17845
+ Gn.visit = FQ;
17846
+ Gn.visitAfter = DQ;
17847
+ Gn.x = OQ;
17848
+ Gn.y = IQ;
17849
+ function zn(e) {
17850
17850
  return function() {
17851
17851
  return e;
17852
17852
  };
@@ -17862,7 +17862,7 @@ function zQ(e) {
17862
17862
  }
17863
17863
  function BQ(e) {
17864
17864
  var t, n, r, i = 1, o = 1;
17865
- typeof e != "function" && (e = Pn(e == null ? 1 : +e));
17865
+ typeof e != "function" && (e = zn(e == null ? 1 : +e));
17866
17866
  function s() {
17867
17867
  for (var c, u = t.length, f, d, h, p, g, m, y = 0; y < o; ++y)
17868
17868
  for (f = Zw(t, PQ, zQ).visitAfter(a), c = 0; c < u; ++c)
@@ -17897,7 +17897,7 @@ function BQ(e) {
17897
17897
  }, s.strength = function(c) {
17898
17898
  return arguments.length ? (i = +c, s) : i;
17899
17899
  }, s.radius = function(c) {
17900
- return arguments.length ? (e = typeof c == "function" ? c : Pn(+c), l(), s) : e;
17900
+ return arguments.length ? (e = typeof c == "function" ? c : zn(+c), l(), s) : e;
17901
17901
  }, s;
17902
17902
  }
17903
17903
  function UQ(e) {
@@ -17909,7 +17909,7 @@ function kA(e, t) {
17909
17909
  return n;
17910
17910
  }
17911
17911
  function jQ(e) {
17912
- var t = UQ, n = f, r, i = Pn(30), o, s, a, l, c, u = 1;
17912
+ var t = UQ, n = f, r, i = zn(30), o, s, a, l, c, u = 1;
17913
17913
  e == null && (e = []);
17914
17914
  function f(m) {
17915
17915
  return 1 / Math.min(a[m.source.index], a[m.target.index]);
@@ -17948,9 +17948,9 @@ function jQ(e) {
17948
17948
  }, d.iterations = function(m) {
17949
17949
  return arguments.length ? (u = +m, d) : u;
17950
17950
  }, d.strength = function(m) {
17951
- return arguments.length ? (n = typeof m == "function" ? m : Pn(+m), p(), d) : n;
17951
+ return arguments.length ? (n = typeof m == "function" ? m : zn(+m), p(), d) : n;
17952
17952
  }, d.distance = function(m) {
17953
- return arguments.length ? (i = typeof m == "function" ? m : Pn(+m), g(), d) : i;
17953
+ return arguments.length ? (i = typeof m == "function" ? m : zn(+m), g(), d) : i;
17954
17954
  }, d;
17955
17955
  }
17956
17956
  var qQ = { value: () => {
@@ -18162,7 +18162,7 @@ function iee(e) {
18162
18162
  };
18163
18163
  }
18164
18164
  function oee() {
18165
- var e, t, n, r, i = Pn(-30), o, s = 1, a = 1 / 0, l = 0.81;
18165
+ var e, t, n, r, i = zn(-30), o, s = 1, a = 1 / 0, l = 0.81;
18166
18166
  function c(h) {
18167
18167
  var p, g = e.length, m = Zw(e, eee, tee).visitAfter(f);
18168
18168
  for (r = h, p = 0; p < g; ++p) t = e[p], m.visit(d);
@@ -18201,7 +18201,7 @@ function oee() {
18201
18201
  return c.initialize = function(h, p) {
18202
18202
  e = h, n = p, u();
18203
18203
  }, c.strength = function(h) {
18204
- return arguments.length ? (i = typeof h == "function" ? h : Pn(+h), u(), c) : i;
18204
+ return arguments.length ? (i = typeof h == "function" ? h : zn(+h), u(), c) : i;
18205
18205
  }, c.distanceMin = function(h) {
18206
18206
  return arguments.length ? (s = h * h, c) : Math.sqrt(s);
18207
18207
  }, c.distanceMax = function(h) {
@@ -18211,8 +18211,8 @@ function oee() {
18211
18211
  }, c;
18212
18212
  }
18213
18213
  function see(e) {
18214
- var t = Pn(0.1), n, r, i;
18215
- typeof e != "function" && (e = Pn(e == null ? 0 : +e));
18214
+ var t = zn(0.1), n, r, i;
18215
+ typeof e != "function" && (e = zn(e == null ? 0 : +e));
18216
18216
  function o(a) {
18217
18217
  for (var l = 0, c = n.length, u; l < c; ++l)
18218
18218
  u = n[l], u.vx += (i[l] - u.x) * r[l] * a;
@@ -18227,14 +18227,14 @@ function see(e) {
18227
18227
  return o.initialize = function(a) {
18228
18228
  n = a, s();
18229
18229
  }, o.strength = function(a) {
18230
- return arguments.length ? (t = typeof a == "function" ? a : Pn(+a), s(), o) : t;
18230
+ return arguments.length ? (t = typeof a == "function" ? a : zn(+a), s(), o) : t;
18231
18231
  }, o.x = function(a) {
18232
- return arguments.length ? (e = typeof a == "function" ? a : Pn(+a), s(), o) : e;
18232
+ return arguments.length ? (e = typeof a == "function" ? a : zn(+a), s(), o) : e;
18233
18233
  }, o;
18234
18234
  }
18235
18235
  function aee(e) {
18236
- var t = Pn(0.1), n, r, i;
18237
- typeof e != "function" && (e = Pn(e == null ? 0 : +e));
18236
+ var t = zn(0.1), n, r, i;
18237
+ typeof e != "function" && (e = zn(e == null ? 0 : +e));
18238
18238
  function o(a) {
18239
18239
  for (var l = 0, c = n.length, u; l < c; ++l)
18240
18240
  u = n[l], u.vy += (i[l] - u.y) * r[l] * a;
@@ -18249,9 +18249,9 @@ function aee(e) {
18249
18249
  return o.initialize = function(a) {
18250
18250
  n = a, s();
18251
18251
  }, o.strength = function(a) {
18252
- return arguments.length ? (t = typeof a == "function" ? a : Pn(+a), s(), o) : t;
18252
+ return arguments.length ? (t = typeof a == "function" ? a : zn(+a), s(), o) : t;
18253
18253
  }, o.y = function(a) {
18254
- return arguments.length ? (e = typeof a == "function" ? a : Pn(+a), s(), o) : e;
18254
+ return arguments.length ? (e = typeof a == "function" ? a : zn(+a), s(), o) : e;
18255
18255
  }, o;
18256
18256
  }
18257
18257
  const $A = {
@@ -21327,7 +21327,7 @@ function Une(e) {
21327
21327
  return [];
21328
21328
  }
21329
21329
  }
21330
- var ho, fe, B, Sn, tt, x0 = 1, Jd = 2, nl = 3, Js = 4, w0 = 5, El = 6, Xn = 7, Qd = 8, jne = 9;
21330
+ var ho, fe, B, Sn, tt, x0 = 1, Jd = 2, nl = 3, Js = 4, w0 = 5, El = 6, Kn = 7, Qd = 8, jne = 9;
21331
21331
  ho = {};
21332
21332
  ho[x0] = "Boolean";
21333
21333
  ho[Jd] = "<end>";
@@ -21335,7 +21335,7 @@ ho[nl] = "Identifier";
21335
21335
  ho[Js] = "Keyword";
21336
21336
  ho[w0] = "Null";
21337
21337
  ho[El] = "Numeric";
21338
- ho[Xn] = "Punctuator";
21338
+ ho[Kn] = "Punctuator";
21339
21339
  ho[Qd] = "String";
21340
21340
  ho[jne] = "RegularExpression";
21341
21341
  var qne = "ArrayExpression", Wne = "BinaryExpression", Hne = "CallExpression", Gne = "ConditionalExpression", kR = "Identifier", Vne = "Literal", Yne = "LogicalExpression", Xne = "MemberExpression", Kne = "ObjectExpression", Zne = "Property", Jne = "UnaryExpression", Zt = "Unexpected token %0", Qne = "Unexpected number", ere = "Unexpected string", tre = "Unexpected identifier", nre = "Unexpected reserved word", rre = "Unexpected end of input", tv = "Invalid regular expression", Fy = "Invalid regular expression: missing /", ER = "Octal literals are not allowed in strict mode.", ire = "Duplicate data property in object literal not allowed in strict mode", cn = "ILLEGAL", cd = "Disabled.", ore = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), sre = new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
@@ -21493,7 +21493,7 @@ function Dy() {
21493
21493
  // ?
21494
21494
  case 126:
21495
21495
  return ++B, {
21496
- type: Xn,
21496
+ type: Kn,
21497
21497
  value: String.fromCharCode(t),
21498
21498
  start: e,
21499
21499
  end: B
@@ -21521,7 +21521,7 @@ function Dy() {
21521
21521
  // &
21522
21522
  case 42:
21523
21523
  return B += 2, {
21524
- type: Xn,
21524
+ type: Kn,
21525
21525
  value: String.fromCharCode(t) + String.fromCharCode(n),
21526
21526
  start: e,
21527
21527
  end: B
@@ -21530,7 +21530,7 @@ function Dy() {
21530
21530
  // !
21531
21531
  case 61:
21532
21532
  return B += 2, fe.charCodeAt(B) === 61 && ++B, {
21533
- type: Xn,
21533
+ type: Kn,
21534
21534
  value: fe.slice(e, B),
21535
21535
  start: e,
21536
21536
  end: B
@@ -21539,28 +21539,28 @@ function Dy() {
21539
21539
  }
21540
21540
  if (s = fe.substr(B, 4), s === ">>>=")
21541
21541
  return B += 4, {
21542
- type: Xn,
21542
+ type: Kn,
21543
21543
  value: s,
21544
21544
  start: e,
21545
21545
  end: B
21546
21546
  };
21547
21547
  if (o = s.substr(0, 3), o === ">>>" || o === "<<=" || o === ">>=")
21548
21548
  return B += 3, {
21549
- type: Xn,
21549
+ type: Kn,
21550
21550
  value: o,
21551
21551
  start: e,
21552
21552
  end: B
21553
21553
  };
21554
21554
  if (i = o.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>")
21555
21555
  return B += 2, {
21556
- type: Xn,
21556
+ type: Kn,
21557
21557
  value: i,
21558
21558
  start: e,
21559
21559
  end: B
21560
21560
  };
21561
21561
  if (i === "//" && Ve({}, Zt, cn), "<>=!+-*%&|^/".includes(r))
21562
21562
  return ++B, {
21563
- type: Xn,
21563
+ type: Kn,
21564
21564
  value: r,
21565
21565
  start: e,
21566
21566
  end: B
@@ -21745,7 +21745,7 @@ function $R() {
21745
21745
  const e = fe.charCodeAt(B);
21746
21746
  return eh(e) ? fre() : e === 40 || e === 41 || e === 59 ? Dy() : e === 39 || e === 34 ? pre() : e === 46 ? $o(fe.charCodeAt(B + 1)) ? VA() : Dy() : $o(e) ? VA() : Dy();
21747
21747
  }
21748
- function Zn() {
21748
+ function Jn() {
21749
21749
  const e = tt;
21750
21750
  return B = e.end, tt = $R(), B = e.end, e;
21751
21751
  }
@@ -21801,11 +21801,11 @@ function E0(e) {
21801
21801
  e.type === Jd && Ve(e, rre), e.type === El && Ve(e, Qne), e.type === Qd && Ve(e, ere), e.type === nl && Ve(e, tre), e.type === Js && Ve(e, nre), Ve(e, Zt, e.value);
21802
21802
  }
21803
21803
  function $n(e) {
21804
- const t = Zn();
21805
- (t.type !== Xn || t.value !== e) && E0(t);
21804
+ const t = Jn();
21805
+ (t.type !== Kn || t.value !== e) && E0(t);
21806
21806
  }
21807
21807
  function ft(e) {
21808
- return tt.type === Xn && tt.value === e;
21808
+ return tt.type === Kn && tt.value === e;
21809
21809
  }
21810
21810
  function Ry(e) {
21811
21811
  return tt.type === Js && tt.value === e;
@@ -21813,19 +21813,19 @@ function Ry(e) {
21813
21813
  function Cre() {
21814
21814
  const e = [];
21815
21815
  for (B = tt.start, $n("["); !ft("]"); )
21816
- ft(",") ? (Zn(), e.push(null)) : (e.push(rl()), ft("]") || $n(","));
21817
- return Zn(), vre(e);
21816
+ ft(",") ? (Jn(), e.push(null)) : (e.push(rl()), ft("]") || $n(","));
21817
+ return Jn(), vre(e);
21818
21818
  }
21819
21819
  function ZA() {
21820
21820
  B = tt.start;
21821
- const e = Zn();
21821
+ const e = Jn();
21822
21822
  return e.type === Qd || e.type === El ? (e.octal && Ve(e, ER), Mf(e)) : _k(e.value);
21823
21823
  }
21824
21824
  function Sre() {
21825
21825
  var e, t, n, r;
21826
21826
  if (B = tt.start, e = tt, e.type === nl)
21827
21827
  return n = ZA(), $n(":"), r = rl(), KA("init", n, r);
21828
- if (e.type === Jd || e.type === Xn)
21828
+ if (e.type === Jd || e.type === Kn)
21829
21829
  E0(e);
21830
21830
  else
21831
21831
  return t = ZA(), $n(":"), r = rl(), KA("init", t, r);
@@ -21853,13 +21853,13 @@ function Nre() {
21853
21853
  if (ft("{"))
21854
21854
  return $re();
21855
21855
  if (e = tt.type, B = tt.start, e === nl || Mre[tt.value])
21856
- n = _k(Zn().value);
21856
+ n = _k(Jn().value);
21857
21857
  else if (e === Qd || e === El)
21858
- tt.octal && Ve(tt, ER), n = Mf(Zn());
21858
+ tt.octal && Ve(tt, ER), n = Mf(Jn());
21859
21859
  else {
21860
21860
  if (e === Js)
21861
21861
  throw new Error(cd);
21862
- e === x0 ? (t = Zn(), t.value = t.value === "true", n = Mf(t)) : e === w0 ? (t = Zn(), t.value = null, n = Mf(t)) : ft("/") || ft("/=") ? (n = Mf(_re()), AR()) : E0(Zn());
21862
+ e === x0 ? (t = Jn(), t.value = t.value === "true", n = Mf(t)) : e === w0 ? (t = Jn(), t.value = null, n = Mf(t)) : ft("/") || ft("/=") ? (n = Mf(_re()), AR()) : E0(Jn());
21863
21863
  }
21864
21864
  return n;
21865
21865
  }
@@ -21872,7 +21872,7 @@ function Tre() {
21872
21872
  }
21873
21873
  function Fre() {
21874
21874
  B = tt.start;
21875
- const e = Zn();
21875
+ const e = Jn();
21876
21876
  return bre(e) || E0(e), _k(e.value);
21877
21877
  }
21878
21878
  function Dre() {
@@ -21898,19 +21898,19 @@ function Ore() {
21898
21898
  }
21899
21899
  function JA() {
21900
21900
  const e = Ore();
21901
- if (tt.type === Xn && (ft("++") || ft("--")))
21901
+ if (tt.type === Kn && (ft("++") || ft("--")))
21902
21902
  throw new Error(cd);
21903
21903
  return e;
21904
21904
  }
21905
21905
  function Np() {
21906
21906
  var e, t;
21907
- if (tt.type !== Xn && tt.type !== Js)
21907
+ if (tt.type !== Kn && tt.type !== Js)
21908
21908
  t = JA();
21909
21909
  else {
21910
21910
  if (ft("++") || ft("--"))
21911
21911
  throw new Error(cd);
21912
21912
  if (ft("+") || ft("-") || ft("~") || ft("!"))
21913
- e = Zn(), t = Np(), t = Ere(e.value, t);
21913
+ e = Jn(), t = Np(), t = Ere(e.value, t);
21914
21914
  else {
21915
21915
  if (Ry("delete") || Ry("void") || Ry("typeof"))
21916
21916
  throw new Error(cd);
@@ -21921,7 +21921,7 @@ function Np() {
21921
21921
  }
21922
21922
  function QA(e) {
21923
21923
  let t = 0;
21924
- if (e.type !== Xn && e.type !== Js)
21924
+ if (e.type !== Kn && e.type !== Js)
21925
21925
  return 0;
21926
21926
  switch (e.value) {
21927
21927
  case "||":
@@ -21974,10 +21974,10 @@ function Lre() {
21974
21974
  var e, t, n, r, i, o, s, a, l, c;
21975
21975
  if (e = tt, l = Np(), r = tt, i = QA(r), i === 0)
21976
21976
  return l;
21977
- for (r.prec = i, Zn(), t = [e, tt], s = Np(), o = [l, r, s]; (i = QA(tt)) > 0; ) {
21977
+ for (r.prec = i, Jn(), t = [e, tt], s = Np(), o = [l, r, s]; (i = QA(tt)) > 0; ) {
21978
21978
  for (; o.length > 2 && i <= o[o.length - 2].prec; )
21979
21979
  s = o.pop(), a = o.pop().value, l = o.pop(), t.pop(), n = YA(a, l, s), o.push(n);
21980
- r = Zn(), r.prec = i, o.push(r), t.push(tt), n = Np(), o.push(n);
21980
+ r = Jn(), r.prec = i, o.push(r), t.push(tt), n = Np(), o.push(n);
21981
21981
  }
21982
21982
  for (c = o.length - 1, n = o[c], t.pop(); c > 1; )
21983
21983
  t.pop(), n = YA(o[c - 1].value, o[c - 2], n), c -= 2;
@@ -21985,7 +21985,7 @@ function Lre() {
21985
21985
  }
21986
21986
  function rl() {
21987
21987
  var e, t, n;
21988
- return e = Lre(), ft("?") && (Zn(), t = rl(), $n(":"), n = rl(), e = wre(e, t, n)), e;
21988
+ return e = Lre(), ft("?") && (Jn(), t = rl(), $n(":"), n = rl(), e = wre(e, t, n)), e;
21989
21989
  }
21990
21990
  function bk() {
21991
21991
  const e = rl();
@@ -22316,7 +22316,7 @@ function bie(e, t, n, r) {
22316
22316
  const i = t[0].value, o = t[1].value, s = _ie + o;
22317
22317
  le(s, r) || (r[s] = n.getData(i).indataRef(n, o));
22318
22318
  }
22319
- function Un(e, t, n, r) {
22319
+ function jn(e, t, n, r) {
22320
22320
  if (t[0].type === tl)
22321
22321
  i3(n, r, t[0].value);
22322
22322
  else
@@ -22339,7 +22339,7 @@ function po(e, t) {
22339
22339
  return a$(e) ? e : void 0;
22340
22340
  }
22341
22341
  function vie(e, t, n) {
22342
- t.__bandwidth = (i) => i && i.bandwidth ? i.bandwidth() : 0, n._bandwidth = Un, n._range = Un, n._scale = Un;
22342
+ t.__bandwidth = (i) => i && i.bandwidth ? i.bandwidth() : 0, n._bandwidth = jn, n._range = jn, n._scale = jn;
22343
22343
  const r = (i) => "_[" + (i.type === tl ? X(rv + i.value) : X(rv) + "+" + e(i)) + "]";
22344
22344
  return {
22345
22345
  _bandwidth: (i) => `this.__bandwidth(${r(i[0])})`,
@@ -22718,18 +22718,18 @@ function foe(e) {
22718
22718
  function Lt(e, t, n) {
22719
22719
  return arguments.length === 1 ? dd[e] : (dd[e] = t, n && ($k[e] = n), ov && (ov.functions[e] = qR + e), this);
22720
22720
  }
22721
- Lt("bandwidth", Wie, Un);
22722
- Lt("copy", Hie, Un);
22723
- Lt("domain", Gie, Un);
22724
- Lt("range", Yie, Un);
22725
- Lt("invert", Vie, Un);
22726
- Lt("scale", Xie, Un);
22727
- Lt("gradient", Kie, Un);
22728
- Lt("geoArea", xie, Un);
22729
- Lt("geoBounds", wie, Un);
22730
- Lt("geoCentroid", kie, Un);
22731
- Lt("geoShape", Zie, Un);
22732
- Lt("geoScale", Eie, Un);
22721
+ Lt("bandwidth", Wie, jn);
22722
+ Lt("copy", Hie, jn);
22723
+ Lt("domain", Gie, jn);
22724
+ Lt("range", Yie, jn);
22725
+ Lt("invert", Vie, jn);
22726
+ Lt("scale", Xie, jn);
22727
+ Lt("gradient", Kie, jn);
22728
+ Lt("geoArea", xie, jn);
22729
+ Lt("geoBounds", wie, jn);
22730
+ Lt("geoCentroid", kie, jn);
22731
+ Lt("geoShape", Zie, jn);
22732
+ Lt("geoScale", Eie, jn);
22733
22733
  Lt("indata", sie, bie);
22734
22734
  Lt("data", RR, kk);
22735
22735
  Lt("treePath", Qie, kk);
@@ -22909,7 +22909,7 @@ function woe(e, t) {
22909
22909
  function koe(e, t, n) {
22910
22910
  e.$params && t.parseParameters(e.$params, n);
22911
22911
  const r = "e:" + e.$expr.code;
22912
- return t.fn[r] || (t.fn[r] = ar(t.parameterExpression(e.$expr), e.$fields));
22912
+ return t.fn[r] || (t.fn[r] = lr(t.parameterExpression(e.$expr), e.$fields));
22913
22913
  }
22914
22914
  function Eoe(e, t) {
22915
22915
  const n = "k:" + e.$key + "_" + !!e.$flat;
@@ -22928,7 +22928,7 @@ function $oe(e, t) {
22928
22928
  const n = e.$encode, r = {};
22929
22929
  for (const i in n) {
22930
22930
  const o = n[i];
22931
- r[i] = ar(t.encodeExpression(o.$expr), o.$fields), r[i].output = o.$output;
22931
+ r[i] = lr(t.encodeExpression(o.$expr), o.$fields), r[i].output = o.$output;
22932
22932
  }
22933
22933
  return r;
22934
22934
  }
@@ -24301,7 +24301,7 @@ const Ci = "top", yu = "left", _u = "right", js = "bottom", AO = "center", cle =
24301
24301
  function gd(e) {
24302
24302
  return e.type = D0, e.interactive = e.interactive || !1, e;
24303
24303
  }
24304
- function lr(e, t) {
24304
+ function cr(e, t) {
24305
24305
  const n = (r, i) => ri(e[r], ri(t[r], i));
24306
24306
  return n.isVertical = (r) => cle === ri(e.direction, t.direction || (r ? t.symbolDirection : t.gradientDirection)), n.gradientLength = () => ri(e.gradientLength, t.gradientLength || t.gradientWidth), n.gradientThickness = () => ri(e.gradientThickness, t.gradientThickness || t.gradientHeight), n.entryColumns = () => ri(e.columns, ri(t.columns, +n.isVertical(!0))), n;
24307
24307
  }
@@ -24344,7 +24344,7 @@ function Cr(e, t) {
24344
24344
  return t ? (e.name = t.name, e.style = t.style || e.style, e.interactive = !!t.interactive, e.encode = mu(e.encode, t, rh)) : e.interactive = !1, e;
24345
24345
  }
24346
24346
  function Sle(e, t, n, r) {
24347
- const i = lr(e, n), o = i.isVertical(), s = i.gradientThickness(), a = i.gradientLength();
24347
+ const i = cr(e, n), o = i.isVertical(), s = i.gradientThickness(), a = i.gradientLength();
24348
24348
  let l, c, u, f, d;
24349
24349
  o ? (c = [0, 1], u = [0, 0], f = s, d = a) : (c = [0, 0], u = [1, 0], f = a, d = s);
24350
24350
  const h = {
@@ -24380,7 +24380,7 @@ function Sle(e, t, n, r) {
24380
24380
  }, r);
24381
24381
  }
24382
24382
  function $le(e, t, n, r, i) {
24383
- const o = lr(e, n), s = o.isVertical(), a = o.gradientThickness(), l = o.gradientLength();
24383
+ const o = cr(e, n), s = o.isVertical(), a = o.gradientThickness(), l = o.gradientLength();
24384
24384
  let c, u, f, d, h = "";
24385
24385
  s ? (c = "y", f = "y2", u = "x", d = "width", h = "1-") : (c = "x", f = "x2", u = "y", d = "height");
24386
24386
  const p = {
@@ -24422,7 +24422,7 @@ function $le(e, t, n, r, i) {
24422
24422
  }
24423
24423
  const Ale = `datum.${Ic}<=0?"${yu}":datum.${Ic}>=1?"${_u}":"${AO}"`, Mle = `datum.${Ic}<=0?"${js}":datum.${Ic}>=1?"${Ci}":"${fle}"`;
24424
24424
  function C3(e, t, n, r) {
24425
- const i = lr(e, t), o = i.isVertical(), s = Jt(i.gradientThickness()), a = i.gradientLength();
24425
+ const i = cr(e, t), o = i.isVertical(), s = Jt(i.gradientThickness()), a = i.gradientLength();
24426
24426
  let l = i("labelOverlap"), c, u, f, d, h = "";
24427
24427
  const p = {
24428
24428
  enter: c = {
@@ -24472,7 +24472,7 @@ function C3(e, t, n, r) {
24472
24472
  }, n);
24473
24473
  }
24474
24474
  function Nle(e, t, n, r, i) {
24475
- const o = lr(e, t), s = n.entries, a = !!(s && s.interactive), l = s ? s.name : void 0, c = o("clipHeight"), u = o("symbolOffset"), f = {
24475
+ const o = cr(e, t), s = n.entries, a = !!(s && s.interactive), l = s ? s.name : void 0, c = o("clipHeight"), u = o("symbolOffset"), f = {
24476
24476
  data: "value"
24477
24477
  }, d = `(${i}) ? datum.${hle} : datum.${pv}`, h = c ? Jt(c) : {
24478
24478
  field: pv
@@ -24605,7 +24605,7 @@ function Nle(e, t, n, r, i) {
24605
24605
  });
24606
24606
  }
24607
24607
  function Tle(e, t) {
24608
- const n = lr(e, t);
24608
+ const n = cr(e, t);
24609
24609
  return {
24610
24610
  align: n("gridAlign"),
24611
24611
  columns: n.entryColumns(),
@@ -24621,7 +24621,7 @@ function Tle(e, t) {
24621
24621
  }
24622
24622
  const jk = 'item.orient === "left"', qk = 'item.orient === "right"', O0 = `(${jk} || ${qk})`, Fle = `datum.vgrad && ${O0}`, Dle = R0('"top"', '"bottom"', '"middle"'), Rle = R0('"right"', '"left"', '"center"'), Ole = `datum.vgrad && ${qk} ? (${Rle}) : (${O0} && !(datum.vgrad && ${jk})) ? "left" : ${Uk}`, Lle = `item._anchor || (${O0} ? "middle" : "start")`, Ile = `${Fle} ? (${jk} ? -90 : 90) : 0`, Ple = `${O0} ? (datum.vgrad ? (${qk} ? "bottom" : "top") : ${Dle}) : "top"`;
24623
24623
  function zle(e, t, n, r) {
24624
- const i = lr(e, t), o = {
24624
+ const i = cr(e, t), o = {
24625
24625
  enter: {
24626
24626
  opacity: He
24627
24627
  },
@@ -24950,7 +24950,7 @@ function Jle(e, t, n) {
24950
24950
  return he(n.add(Uae(s)));
24951
24951
  }
24952
24952
  function Qle(e, t) {
24953
- const n = t.config.legend, r = e.encode || {}, i = lr(e, n), o = r.legend || {}, s = o.name || void 0, a = o.interactive, l = o.style, c = {};
24953
+ const n = t.config.legend, r = e.encode || {}, i = cr(e, n), o = r.legend || {}, s = o.name || void 0, a = o.interactive, l = o.style, c = {};
24954
24954
  let u = 0, f, d, h;
24955
24955
  zk.forEach((v) => e[v] ? (c[v] = e[v], u = u || e[v]) : 0), u || z("Missing valid scale for legend.");
24956
24956
  const p = ece(e, t.scaleType(u)), g = {
@@ -25041,7 +25041,7 @@ function sce(e, t) {
25041
25041
  e = ne(e) ? {
25042
25042
  text: e
25043
25043
  } : e;
25044
- const n = lr(e, t.config.title), r = e.encode || {}, i = r.group || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = [], c = {}, u = he(t.add(Ei(null, [c])));
25044
+ const n = cr(e, t.config.title), r = e.encode || {}, i = r.group || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = [], c = {}, u = he(t.add(Ei(null, [c])));
25045
25045
  return l.push(cce(e, n, ace(e), u)), e.subtitle && l.push(uce(e, n, r.subtitle, u)), L0(gd({
25046
25046
  role: nae,
25047
25047
  from: u,
@@ -25297,7 +25297,7 @@ function xce(e, t) {
25297
25297
  return a || l || o ? Fe({}, i, a, l, o) : i;
25298
25298
  }
25299
25299
  function wce(e, t, n, r) {
25300
- const i = lr(e, t), o = e.orient;
25300
+ const i = cr(e, t), o = e.orient;
25301
25301
  let s, a;
25302
25302
  const l = {
25303
25303
  enter: s = {
@@ -25333,7 +25333,7 @@ function L3(e, t) {
25333
25333
  };
25334
25334
  }
25335
25335
  function kce(e, t, n, r, i) {
25336
- const o = lr(e, t), s = e.orient, a = e.gridScale, l = I0(s, 1, -1), c = Ece(e.offset, l);
25336
+ const o = cr(e, t), s = e.orient, a = e.gridScale, l = I0(s, 1, -1), c = Ece(e.offset, l);
25337
25337
  let u, f, d;
25338
25338
  const h = {
25339
25339
  enter: u = {
@@ -25409,7 +25409,7 @@ function Ece(e, t) {
25409
25409
  return e;
25410
25410
  }
25411
25411
  function Cce(e, t, n, r, i, o) {
25412
- const s = lr(e, t), a = e.orient, l = I0(a, -1, 1);
25412
+ const s = cr(e, t), a = e.orient, l = I0(a, -1, 1);
25413
25413
  let c, u, f;
25414
25414
  const d = {
25415
25415
  enter: c = {
@@ -25454,7 +25454,7 @@ function Uy(e, t, n, r, i) {
25454
25454
  };
25455
25455
  }
25456
25456
  function Sce(e, t, n, r, i, o) {
25457
- const s = lr(e, t), a = e.orient, l = e.scale, c = I0(a, -1, 1), u = Ua(s("labelFlush")), f = Ua(s("labelFlushOffset")), d = s("labelAlign"), h = s("labelBaseline");
25457
+ const s = cr(e, t), a = e.orient, l = e.scale, c = I0(a, -1, 1), u = Ua(s("labelFlush")), f = Ua(s("labelFlushOffset")), d = s("labelAlign"), h = s("labelBaseline");
25458
25458
  let p = u === 0 || !!u, g;
25459
25459
  const m = Jt(i);
25460
25460
  m.mult = c, m.offset = Jt(s("labelPadding") || 0), m.offset.mult = c;
@@ -25530,7 +25530,7 @@ function Sce(e, t, n, r, i, o) {
25530
25530
  }, n);
25531
25531
  }
25532
25532
  function $ce(e, t, n, r) {
25533
- const i = lr(e, t), o = e.orient, s = I0(o, -1, 1);
25533
+ const i = cr(e, t), o = e.orient, s = I0(o, -1, 1);
25534
25534
  let a, l;
25535
25535
  const c = {
25536
25536
  enter: a = {
@@ -25579,7 +25579,7 @@ function Ace(e, t, n, r) {
25579
25579
  n.enter.auto = s === o ? Jt(s) : Qt(t, Jt(s), Jt(o));
25580
25580
  }
25581
25581
  function Mce(e, t) {
25582
- const n = xce(e, t), r = e.encode || {}, i = r.axis || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = lr(e, n), c = Cle(l), u = {
25582
+ const n = xce(e, t), r = e.encode || {}, i = r.axis || {}, o = i.name || void 0, s = i.interactive, a = i.style, l = cr(e, n), c = Cle(l), u = {
25583
25583
  scale: e.scale,
25584
25584
  ticks: !!l("ticks"),
25585
25585
  labels: !!l("labels"),
@@ -26150,7 +26150,7 @@ const zce = Pce, Bce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
26150
26150
  Bounds: Bt,
26151
26151
  CanvasHandler: Vd,
26152
26152
  CanvasRenderer: gg,
26153
- DATE: nr,
26153
+ DATE: rr,
26154
26154
  DAY: xn,
26155
26155
  DAYOFYEAR: eo,
26156
26156
  Dataflow: ac,
@@ -26175,7 +26175,7 @@ const zce = Pce, Bce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
26175
26175
  Operator: at,
26176
26176
  Parameters: Lm,
26177
26177
  Pulse: Ms,
26178
- QUARTER: tr,
26178
+ QUARTER: nr,
26179
26179
  RenderType: xs,
26180
26180
  Renderer: Gd,
26181
26181
  ResourceLoader: OF,
@@ -26190,7 +26190,7 @@ const zce = Pce, Bce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
26190
26190
  WEEK: qt,
26191
26191
  Warn: ox,
26192
26192
  YEAR: fn,
26193
- accessor: ar,
26193
+ accessor: lr,
26194
26194
  accessorFields: En,
26195
26195
  accessorName: At,
26196
26196
  array: ie,
@@ -26907,7 +26907,7 @@ function nt(e) {
26907
26907
  function H(e, t) {
26908
26908
  return te(e) && le(e, t) && e[t] !== void 0;
26909
26909
  }
26910
- const zo = "row", Bo = "column", z0 = "facet", yt = "x", nn = "y", Si = "x2", go = "y2", ea = "xOffset", vu = "yOffset", $i = "radius", Jo = "radius2", Yr = "theta", Qo = "theta2", Ai = "latitude", Mi = "longitude", Ni = "latitude2", Gr = "longitude2", ta = "time", ir = "color", mo = "fill", yo = "stroke", or = "shape", es = "size", $l = "angle", ts = "opacity", na = "fillOpacity", ra = "strokeOpacity", ia = "strokeWidth", oa = "strokeDash", oh = "text", jc = "order", sh = "detail", B0 = "key", sl = "tooltip", U0 = "href", j0 = "url", q0 = "description", rue = {
26910
+ const zo = "row", Bo = "column", z0 = "facet", yt = "x", nn = "y", Si = "x2", go = "y2", ea = "xOffset", vu = "yOffset", $i = "radius", Jo = "radius2", Yr = "theta", Qo = "theta2", Ai = "latitude", Mi = "longitude", Ni = "latitude2", Gr = "longitude2", ta = "time", or = "color", mo = "fill", yo = "stroke", sr = "shape", es = "size", $l = "angle", ts = "opacity", na = "fillOpacity", ra = "strokeOpacity", ia = "strokeWidth", oa = "strokeDash", oh = "text", jc = "order", sh = "detail", B0 = "key", sl = "tooltip", U0 = "href", j0 = "url", q0 = "description", rue = {
26911
26911
  x: 1,
26912
26912
  y: 1,
26913
26913
  x2: 1,
@@ -26974,7 +26974,7 @@ const iue = W(eE), tE = {
26974
26974
  description: 1
26975
26975
  };
26976
26976
  function hc(e) {
26977
- return e === ir || e === mo || e === yo;
26977
+ return e === or || e === mo || e === yo;
26978
26978
  }
26979
26979
  const e9 = {
26980
26980
  row: 1,
@@ -26983,7 +26983,7 @@ const e9 = {
26983
26983
  }, Ir = W(e9), nE = {
26984
26984
  ...tE,
26985
26985
  ...e9
26986
- }, oue = W(nE), { order: cCe, detail: uCe, tooltip: fCe, ...sue } = nE, { row: dCe, column: hCe, facet: pCe, ...aue } = sue;
26986
+ }, oue = W(nE), { order: uCe, detail: fCe, tooltip: dCe, ...sue } = nE, { row: hCe, column: pCe, facet: gCe, ...aue } = sue;
26987
26987
  function lue(e) {
26988
26988
  return le(aue, e);
26989
26989
  }
@@ -27041,7 +27041,7 @@ function _o(e) {
27041
27041
  return Jo;
27042
27042
  }
27043
27043
  }
27044
- function sr(e) {
27044
+ function ar(e) {
27045
27045
  switch (e) {
27046
27046
  case yt:
27047
27047
  case Si:
@@ -27088,22 +27088,22 @@ function uue(e) {
27088
27088
  }
27089
27089
  }
27090
27090
  const fue = W(tE), {
27091
- x: gCe,
27092
- y: mCe,
27091
+ x: mCe,
27092
+ y: yCe,
27093
27093
  // x2 and y2 share the same scale as x and y
27094
- x2: yCe,
27095
- y2: _Ce,
27094
+ x2: _Ce,
27095
+ y2: bCe,
27096
27096
  //
27097
- xOffset: bCe,
27098
- yOffset: vCe,
27099
- latitude: xCe,
27100
- longitude: wCe,
27101
- latitude2: kCe,
27102
- longitude2: ECe,
27103
- theta: CCe,
27104
- theta2: SCe,
27105
- radius: $Ce,
27106
- radius2: ACe,
27097
+ xOffset: vCe,
27098
+ yOffset: xCe,
27099
+ latitude: wCe,
27100
+ longitude: kCe,
27101
+ latitude2: ECe,
27102
+ longitude2: CCe,
27103
+ theta: SCe,
27104
+ theta2: $Ce,
27105
+ radius: ACe,
27106
+ radius2: MCe,
27107
27107
  // The rest of unit channels then have scale
27108
27108
  ...iE
27109
27109
  } = tE, due = W(iE), oE = {
@@ -27134,15 +27134,15 @@ const {
27134
27134
  // x2 and y2 share the same scale as x and y
27135
27135
  // text and tooltip have format instead of scale,
27136
27136
  // href has neither format, nor scale
27137
- text: MCe,
27138
- tooltip: NCe,
27139
- href: TCe,
27140
- url: FCe,
27141
- description: DCe,
27137
+ text: NCe,
27138
+ tooltip: TCe,
27139
+ href: FCe,
27140
+ url: DCe,
27141
+ description: RCe,
27142
27142
  // detail and order have no scale
27143
- detail: RCe,
27144
- key: OCe,
27145
- order: LCe,
27143
+ detail: OCe,
27144
+ key: LCe,
27145
+ order: ICe,
27146
27146
  ...o9
27147
27147
  } = iE, gue = W(o9);
27148
27148
  function mue(e) {
@@ -27150,11 +27150,11 @@ function mue(e) {
27150
27150
  }
27151
27151
  function yue(e) {
27152
27152
  switch (e) {
27153
- case ir:
27153
+ case or:
27154
27154
  case mo:
27155
27155
  case yo:
27156
27156
  case es:
27157
- case or:
27157
+ case sr:
27158
27158
  case ts:
27159
27159
  case ia:
27160
27160
  case oa:
@@ -27194,10 +27194,10 @@ const a9 = {
27194
27194
  trail: "always",
27195
27195
  text: "always",
27196
27196
  tick: "always"
27197
- }, { geoshape: ICe, ...bue } = a9;
27197
+ }, { geoshape: PCe, ...bue } = a9;
27198
27198
  function vue(e) {
27199
27199
  switch (e) {
27200
- case ir:
27200
+ case or:
27201
27201
  case mo:
27202
27202
  case yo:
27203
27203
  // falls through
@@ -27266,7 +27266,7 @@ function vue(e) {
27266
27266
  bar: "always",
27267
27267
  geoshape: "always"
27268
27268
  };
27269
- case or:
27269
+ case sr:
27270
27270
  return { point: "always", geoshape: "always" };
27271
27271
  case oh:
27272
27272
  return { text: "always" };
@@ -27307,7 +27307,7 @@ function qy(e) {
27307
27307
  case z0:
27308
27308
  case zo:
27309
27309
  case Bo:
27310
- case or:
27310
+ case sr:
27311
27311
  case oa:
27312
27312
  // TEXT, TOOLTIP, URL, and HREF have no scale but have discrete output [falls through]
27313
27313
  case oh:
@@ -27317,7 +27317,7 @@ function qy(e) {
27317
27317
  case q0:
27318
27318
  return "discrete";
27319
27319
  // Color can be either continuous or discrete, depending on scale type.
27320
- case ir:
27320
+ case or:
27321
27321
  case mo:
27322
27322
  case yo:
27323
27323
  return "flexible";
@@ -27419,7 +27419,7 @@ function z3(e) {
27419
27419
  case zo:
27420
27420
  case Bo:
27421
27421
  case es:
27422
- case ir:
27422
+ case or:
27423
27423
  case mo:
27424
27424
  case yo:
27425
27425
  case ia:
@@ -27428,7 +27428,7 @@ function z3(e) {
27428
27428
  case ra:
27429
27429
  // Facets and Size shouldn't have too many bins
27430
27430
  // We choose 6 like shape to simplify the rule [falls through]
27431
- case or:
27431
+ case sr:
27432
27432
  return 6;
27433
27433
  // Vega's "shape" has 6 distinct values
27434
27434
  case oa:
@@ -27728,7 +27728,7 @@ function q3(e) {
27728
27728
  return `${t} "container" only works well with autosize "fit" or "fit-${n}".`;
27729
27729
  }
27730
27730
  function W3(e) {
27731
- return e ? `Dropping "fit-${e}" because spec has discrete ${sr(e)}.` : 'Dropping "fit" because spec has discrete size.';
27731
+ return e ? `Dropping "fit-${e}" because spec has discrete ${ar(e)}.` : 'Dropping "fit" because spec has discrete size.';
27732
27732
  }
27733
27733
  function uE(e) {
27734
27734
  return `Unknown field for ${e}. Cannot calculate view size.`;
@@ -28443,7 +28443,7 @@ const _de = {
28443
28443
  padding: 1,
28444
28444
  paddingInner: 1,
28445
28445
  paddingOuter: 1
28446
- }, { type: PCe, domain: zCe, range: BCe, rangeMax: UCe, rangeMin: jCe, scheme: qCe, ...bde } = _de, vde = W(bde);
28446
+ }, { type: zCe, domain: BCe, range: UCe, rangeMax: jCe, rangeMin: qCe, scheme: WCe, ...bde } = _de, vde = W(bde);
28447
28447
  function wv(e, t) {
28448
28448
  switch (t) {
28449
28449
  case "type":
@@ -28549,20 +28549,20 @@ function wde(e, t, n = !1) {
28549
28549
  case ra:
28550
28550
  case $l:
28551
28551
  return qi(t) || Wc(t) || ze(["band", "point", "ordinal"], t);
28552
- case ir:
28552
+ case or:
28553
28553
  case mo:
28554
28554
  case yo:
28555
28555
  return t !== "band";
28556
28556
  // band does not make sense with color
28557
28557
  case oa:
28558
- case or:
28558
+ case sr:
28559
28559
  return t === "ordinal" || Wc(t);
28560
28560
  }
28561
28561
  }
28562
28562
  function kde(e) {
28563
28563
  return te(e) && "value" in e;
28564
28564
  }
28565
- const Gn = {
28565
+ const Vn = {
28566
28566
  arc: "arc",
28567
28567
  area: "area",
28568
28568
  bar: "bar",
@@ -28577,7 +28577,7 @@ const Gn = {
28577
28577
  circle: "circle",
28578
28578
  square: "square",
28579
28579
  geoshape: "geoshape"
28580
- }, j9 = Gn.arc, K0 = Gn.area, Z0 = Gn.bar, Ede = Gn.image, J0 = Gn.line, Q0 = Gn.point, Cde = Gn.rect, om = Gn.rule, q9 = Gn.text, SE = Gn.tick, Sde = Gn.trail, $E = Gn.circle, AE = Gn.square, W9 = Gn.geoshape;
28580
+ }, j9 = Vn.arc, K0 = Vn.area, Z0 = Vn.bar, Ede = Vn.image, J0 = Vn.line, Q0 = Vn.point, Cde = Vn.rect, om = Vn.rule, q9 = Vn.text, SE = Vn.tick, Sde = Vn.trail, $E = Vn.circle, AE = Vn.square, W9 = Vn.geoshape;
28581
28581
  function aa(e) {
28582
28582
  return ["line", "area", "trail"].includes(e);
28583
28583
  }
@@ -28591,7 +28591,7 @@ function yd(e) {
28591
28591
  /* arc is rect/interval in polar coordinate */
28592
28592
  ].includes(e);
28593
28593
  }
28594
- const $de = new Set(W(Gn));
28594
+ const $de = new Set(W(Vn));
28595
28595
  function io(e) {
28596
28596
  return H(e, "type");
28597
28597
  }
@@ -28764,7 +28764,7 @@ function FE({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i,
28764
28764
  if (t) {
28765
28765
  if (Se(t)) {
28766
28766
  const f = s?.get("type");
28767
- if (Wn(t)) {
28767
+ if (Hn(t)) {
28768
28768
  u ??= Hs({
28769
28769
  fieldDef: t,
28770
28770
  fieldDef2: n,
@@ -29011,7 +29011,7 @@ function Hs({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) {
29011
29011
  }
29012
29012
  }
29013
29013
  function tL({ channel: e, fieldDef: t, fieldDef2: n, markDef: r, config: i, scaleType: o, useVlSizeChannel: s }) {
29014
- const a = sr(e), l = Qe(s ? "size" : a, r, i, {
29014
+ const a = ar(e), l = Qe(s ? "size" : a, r, i, {
29015
29015
  vgChannel: a
29016
29016
  });
29017
29017
  if (l !== void 0)
@@ -29027,7 +29027,7 @@ function tL({ channel: e, fieldDef: t, fieldDef2: n, markDef: r, config: i, scal
29027
29027
  return o ? Mt(o) ? i[r.type]?.discreteBandSize || { band: 1 } : i[r.type]?.continuousBandSize : i[r.type]?.discreteBandSize;
29028
29028
  }
29029
29029
  function nL(e, t, n, r) {
29030
- return ct(e.bin) || e.timeUnit && Wn(e) && e.type === "temporal" ? Hs({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) !== void 0 : !1;
29030
+ return ct(e.bin) || e.timeUnit && Hn(e) && e.type === "temporal" ? Hs({ fieldDef: e, fieldDef2: t, markDef: n, config: r }) !== void 0 : !1;
29031
29031
  }
29032
29032
  function rL(e) {
29033
29033
  return H(e, "sort") && !H(e, "field");
@@ -29057,10 +29057,10 @@ function vo(e) {
29057
29057
  return H(e, "datum");
29058
29058
  }
29059
29059
  function Ss(e) {
29060
- return Wn(e) && !lm(e) || am(e);
29060
+ return Hn(e) && !lm(e) || am(e);
29061
29061
  }
29062
29062
  function nM(e) {
29063
- return Wn(e) && e.type === "quantitative" && !e.bin || am(e);
29063
+ return Hn(e) && e.type === "quantitative" && !e.bin || am(e);
29064
29064
  }
29065
29065
  function am(e) {
29066
29066
  return vo(e) && Ye(e.datum);
@@ -29068,7 +29068,7 @@ function am(e) {
29068
29068
  function Se(e) {
29069
29069
  return V(e) || vo(e);
29070
29070
  }
29071
- function Wn(e) {
29071
+ function Hn(e) {
29072
29072
  return e && (H(e, "field") || e.aggregate === "count") && H(e, "type");
29073
29073
  }
29074
29074
  function vi(e) {
@@ -29275,14 +29275,14 @@ function ohe(e) {
29275
29275
  }
29276
29276
  function PE(e, t, { compositeMark: n = !1 } = {}) {
29277
29277
  const { aggregate: r, timeUnit: i, bin: o, field: s } = e, a = { ...e };
29278
- if (!n && r && !lE(r) && !sa(r) && !Vo(r) && (G(ofe(r)), delete a.aggregate), i && (a.timeUnit = en(i)), s && (a.field = `${s}`), ct(o) && (a.bin = r1(o, t)), rn(o) && !Ot(t) && G(Pfe(t)), Wn(a)) {
29278
+ if (!n && r && !lE(r) && !sa(r) && !Vo(r) && (G(ofe(r)), delete a.aggregate), i && (a.timeUnit = en(i)), s && (a.field = `${s}`), ct(o) && (a.bin = r1(o, t)), rn(o) && !Ot(t) && G(Pfe(t)), Hn(a)) {
29279
29279
  const { type: l } = a, c = cde(l);
29280
29280
  l !== c && (a.type = c), l !== "quantitative" && H0(r) && (G(ife(l, r)), a.type = "quantitative");
29281
29281
  } else if (!n9(t)) {
29282
29282
  const l = ihe(a, t);
29283
29283
  a.type = l;
29284
29284
  }
29285
- if (Wn(a)) {
29285
+ if (Hn(a)) {
29286
29286
  const { compatible: l, warning: c } = she(a, t) || {};
29287
29287
  l === !1 && G(c);
29288
29288
  }
@@ -29342,7 +29342,7 @@ function she(e, t) {
29342
29342
  case nn:
29343
29343
  case ea:
29344
29344
  case vu:
29345
- case ir:
29345
+ case or:
29346
29346
  case mo:
29347
29347
  case yo:
29348
29348
  case oh:
@@ -29378,7 +29378,7 @@ function she(e, t) {
29378
29378
  compatible: !1,
29379
29379
  warning: `Channel ${t} should not be used with an unsorted discrete field.`
29380
29380
  } : Vl;
29381
- case or:
29381
+ case sr:
29382
29382
  case oa:
29383
29383
  return !lm(e) && !Qde(e) ? {
29384
29384
  compatible: !1,
@@ -29764,7 +29764,7 @@ function yL(e, t) {
29764
29764
  };
29765
29765
  c && (v.field = c), o.push(v);
29766
29766
  }
29767
- } else if (n.push(m), Wn(a) && ct(f)) {
29767
+ } else if (n.push(m), Hn(a) && ct(f)) {
29768
29768
  if (r.push({ bin: f, field: c, as: m }), n.push(Q(a, { binSuffix: "end" })), ph(a, l) && n.push(Q(a, { binSuffix: "range" })), Ot(l)) {
29769
29769
  const _ = {
29770
29770
  field: `${m}_end`
@@ -29778,7 +29778,7 @@ function yL(e, t) {
29778
29778
  field: c,
29779
29779
  as: m
29780
29780
  });
29781
- const _ = Wn(a) && a.type !== qc && "time";
29781
+ const _ = Hn(a) && a.type !== qc && "time";
29782
29782
  _ && (l === oh || l === sl ? y.formatType = _ : mue(l) ? y.legend = {
29783
29783
  formatType: _,
29784
29784
  ...y.legend
@@ -29833,7 +29833,7 @@ function dhe(e, t, n, r) {
29833
29833
  G(afe);
29834
29834
  continue;
29835
29835
  }
29836
- if (o === ir && (n ? "fill" in e : "stroke" in e)) {
29836
+ if (o === or && (n ? "fill" in e : "stroke" in e)) {
29837
29837
  G(v9("encoding", { fill: "fill" in e, stroke: "stroke" in e }));
29838
29838
  continue;
29839
29839
  }
@@ -29921,7 +29921,7 @@ function _L(e, t) {
29921
29921
  // TODO: case 'cursor':
29922
29922
  // text, shape, shouldn't be a part of line/trail/area [falls through]
29923
29923
  case oh:
29924
- case or:
29924
+ case sr:
29925
29925
  case $l:
29926
29926
  // falls through
29927
29927
  // tooltip fields should not be added to group by [falls through]
@@ -29944,7 +29944,7 @@ function _L(e, t) {
29944
29944
  return n;
29945
29945
  // For line, size should group lines.
29946
29946
  // falls through
29947
- case ir:
29947
+ case or:
29948
29948
  case mo:
29949
29949
  case yo:
29950
29950
  case ts:
@@ -31363,7 +31363,7 @@ function cpe(e, t, n) {
31363
31363
  if (a && l)
31364
31364
  return "vertical";
31365
31365
  {
31366
- const c = Wn(r) && r.type === qc, u = Wn(i) && i.type === qc;
31366
+ const c = Hn(r) && r.type === qc, u = Hn(i) && i.type === qc;
31367
31367
  if (c && !u)
31368
31368
  return "vertical";
31369
31369
  if (!c && u)
@@ -32186,7 +32186,7 @@ class rt {
32186
32186
  this._parent = n, n.addChild(this, r), t.parent = this;
32187
32187
  }
32188
32188
  }
32189
- class Qn extends rt {
32189
+ class er extends rt {
32190
32190
  type;
32191
32191
  refCounts;
32192
32192
  _source;
@@ -32442,10 +32442,10 @@ const Xpe = {
32442
32442
  const r = t.name + mh;
32443
32443
  return n.filter((o) => o.name === r).length > 0 || t.project.hasSelectionId ? n : n.concat({
32444
32444
  name: r,
32445
- value: t.project.items.map(rI)
32445
+ value: t.project.items.map(r7)
32446
32446
  });
32447
32447
  }
32448
- }, eI = "_curr", Ip = "anim_value", Ql = "anim_clock", Nv = "eased_anim_clock", tI = "min_extent", nI = "max_range_extent", Ky = "last_tick_at", Zy = "is_playing", Kpe = 1 / 60 * 1e3, Zpe = (e, t) => [
32448
+ }, e7 = "_curr", Ip = "anim_value", Ql = "anim_clock", Nv = "eased_anim_clock", t7 = "min_extent", n7 = "max_range_extent", Ky = "last_tick_at", Zy = "is_playing", Kpe = 1 / 60 * 1e3, Zpe = (e, t) => [
32449
32449
  // timer signals
32450
32450
  {
32451
32451
  name: Nv,
@@ -32456,9 +32456,9 @@ const Xpe = {
32456
32456
  // scale signals
32457
32457
  // TODO(jzong): uncomment commented signals below when implementing interpolation
32458
32458
  { name: `${e}_domain`, init: `domain('${t}')` },
32459
- { name: tI, init: `extent(${e}_domain)[0]` },
32459
+ { name: t7, init: `extent(${e}_domain)[0]` },
32460
32460
  // {name: 'max_extent', init: `extent(${selectionName}_domain)[1]`},
32461
- { name: nI, init: `extent(range('${t}'))[1]` },
32461
+ { name: n7, init: `extent(range('${t}'))[1]` },
32462
32462
  // {name: 't_index', update: `indexof(${selectionName}_domain, anim_value)`},
32463
32463
  { name: Ip, update: `invert('${t}', ${Nv})` }
32464
32464
  ], Jpe = {
@@ -32470,7 +32470,7 @@ const Xpe = {
32470
32470
  on: [
32471
32471
  {
32472
32472
  events: { type: "timer", throttle: Kpe },
32473
- update: `${Zy} ? (${Ql} + (now() - ${Ky}) > ${nI} ? 0 : ${Ql} + (now() - ${Ky})) : ${Ql}`
32473
+ update: `${Zy} ? (${Ql} + (now() - ${Ky}) > ${n7} ? 0 : ${Ql} + (now() - ${Ky})) : ${Ql}`
32474
32474
  }
32475
32475
  ]
32476
32476
  },
@@ -32490,7 +32490,7 @@ const Xpe = {
32490
32490
  if (t.project.hasSelectionId)
32491
32491
  c += `${wi}: ${s}[${X(wi)}]`;
32492
32492
  else if (Yi(t))
32493
- c += `fields: ${i}, values: [${Ip} ? ${Ip} : ${tI}]`;
32493
+ c += `fields: ${i}, values: [${Ip} ? ${Ip} : ${t7}]`;
32494
32494
  else {
32495
32495
  const u = o.items.map((f) => e.fieldDef(f.channel)?.bin ? `[${s}[${X(e.vgField(f.channel, {}))}], ${s}[${X(e.vgField(f.channel, { binSuffix: "end" }))}]]` : `${s}[${X(f.field)}]`).join(", ");
32496
32496
  c += `fields: ${i}, values: [${u}]`;
@@ -32525,7 +32525,7 @@ const Xpe = {
32525
32525
  }
32526
32526
  }
32527
32527
  };
32528
- function rI(e) {
32528
+ function r7(e) {
32529
32529
  const { signals: t, hasLegend: n, index: r, ...i } = e;
32530
32530
  return i.field = Hr(i.field), i;
32531
32531
  }
@@ -32579,7 +32579,7 @@ function tge(e, t) {
32579
32579
  const a = r.resolve === "global" ? "union" : r.resolve, l = r.type === "point" ? ", true, true)" : ")";
32580
32580
  t.push({
32581
32581
  name: r.name,
32582
- update: `${xI}(${o}, ${X(a)}${l}`
32582
+ update: `${x7}(${o}, ${X(a)}${l}`
32583
32583
  });
32584
32584
  }
32585
32585
  n = !0;
@@ -32597,7 +32597,7 @@ function nge(e, t) {
32597
32597
  for (const o of zt(e.component.selection ?? {})) {
32598
32598
  const s = { name: o.name + hl };
32599
32599
  if (o.project.hasSelectionId && (s.transform = [{ type: "collect", sort: { field: wi } }]), o.init) {
32600
- const l = o.project.items.map(rI);
32600
+ const l = o.project.items.map(r7);
32601
32601
  s.values = o.project.hasSelectionId ? o.init.map((c) => ({ unit: i, [wi]: dl(c, !1)[0] })) : o.init.map((c) => ({ unit: i, fields: l, values: dl(c, !1) }));
32602
32602
  }
32603
32603
  if ([...n, ...t].filter((l) => l.name === o.name + hl).length || n.push(s), Yi(o) && t.length) {
@@ -32605,7 +32605,7 @@ function nge(e, t) {
32605
32605
  if (u) {
32606
32606
  c.transform = c.transform.filter((d) => d !== u);
32607
32607
  const f = {
32608
- name: c.name + eI,
32608
+ name: c.name + e7,
32609
32609
  source: c.name,
32610
32610
  transform: [u]
32611
32611
  // add the selection filter to the animation dataset
@@ -32616,7 +32616,7 @@ function nge(e, t) {
32616
32616
  }
32617
32617
  return n.concat(t, r);
32618
32618
  }
32619
- function iI(e, t) {
32619
+ function i7(e, t) {
32620
32620
  for (const n of zt(e.component.selection ?? {}))
32621
32621
  for (const r of d1)
32622
32622
  r.defined(n) && r.marks && (t = r.marks(e, n, t));
@@ -32624,11 +32624,11 @@ function iI(e, t) {
32624
32624
  }
32625
32625
  function rge(e, t) {
32626
32626
  for (const n of e.children)
32627
- gt(n) && (t = iI(n, t));
32627
+ gt(n) && (t = i7(n, t));
32628
32628
  return t;
32629
32629
  }
32630
32630
  function ige(e, t, n, r) {
32631
- const i = SI(e, t.param, t);
32631
+ const i = S7(e, t.param, t);
32632
32632
  return {
32633
32633
  signal: bi(n.get("type")) && U(r) && r[0] > r[1] ? `isValid(${i}) && reverse(${i})` : i
32634
32634
  };
@@ -32658,7 +32658,7 @@ const jo = {
32658
32658
  return n;
32659
32659
  const i = n.find((s) => s.name === t.name);
32660
32660
  let o = i.update;
32661
- if (o.includes(xI))
32661
+ if (o.includes(x7))
32662
32662
  i.update = `{${r.map((s) => `${X(Hr(s.field))}: ${s.signals.data}`).join(", ")}}`;
32663
32663
  else {
32664
32664
  for (const s of r) {
@@ -32684,7 +32684,7 @@ function Tv(e, t) {
32684
32684
  function Fv(e) {
32685
32685
  return e.parent && Su(e.parent) && (!e.parent.parent || Fv(e.parent.parent));
32686
32686
  }
32687
- const gc = "_brush", oI = "_scale_trigger", rf = "geo_interval_init_tick", sI = "_init", oge = "_center", sge = {
32687
+ const gc = "_brush", o7 = "_scale_trigger", rf = "geo_interval_init_tick", s7 = "_init", oge = "_center", sge = {
32688
32688
  defined: (e) => e.type === "interval",
32689
32689
  parse: (e, t, n) => {
32690
32690
  if (e.hasProjection) {
@@ -32708,7 +32708,7 @@ const gc = "_brush", oI = "_scale_trigger", rf = "geo_interval_init_tick", sI =
32708
32708
  if (n.push(...o.reduce((a, l) => a.concat(age(e, t, l, s?.[l.index])), [])), e.hasProjection) {
32709
32709
  const a = X(e.projectionName()), l = e.projectionName() + oge, { x: c, y: u } = t.project.hasChannel, f = c?.signals.visual, d = u?.signals.visual, h = c ? s?.[c.index] : `${l}[0]`, p = u ? s?.[u.index] : `${l}[1]`, g = (w) => e.getSizeSignalRef(w).signal, m = `[[${f ? `${f}[0]` : "0"}, ${d ? `${d}[0]` : "0"}],[${f ? `${f}[1]` : g("width")}, ${d ? `${d}[1]` : g("height")}]]`;
32710
32710
  s && (n.unshift({
32711
- name: r + sI,
32711
+ name: r + s7,
32712
32712
  init: `[scale(${a}, [${c ? h[0] : h}, ${u ? p[0] : p}]), scale(${a}, [${c ? h[1] : h}, ${u ? p[1] : p}])]`
32713
32713
  }), (!c || !u) && (n.find((E) => E.name === l) || n.unshift({
32714
32714
  name: l,
@@ -32729,7 +32729,7 @@ const gc = "_brush", oI = "_scale_trigger", rf = "geo_interval_init_tick", sI =
32729
32729
  });
32730
32730
  } else {
32731
32731
  if (!jo.defined(t)) {
32732
- const c = r + oI, u = o.map((f) => {
32732
+ const c = r + o7, u = o.map((f) => {
32733
32733
  const d = f.channel, { data: h, visual: p } = f.signals, g = X(e.scaleName(d)), m = e.getScaleComponent(d).get("type"), y = bi(m) ? "+" : "";
32734
32734
  return `(!isArray(${h}) || (${y}invert(${g}, ${p})[0] === ${y}${h}[0] && ${y}invert(${g}, ${p})[1] === ${y}${h}[1]))`;
32735
32735
  });
@@ -32839,7 +32839,7 @@ function age(e, t, n, r) {
32839
32839
  if (i) {
32840
32840
  const d = n.signals.data, h = jo.defined(t), p = e.getScaleComponent(o), g = p ? p.get("type") : void 0, m = r ? { init: dl(r, !0, l) } : { value: [] };
32841
32841
  return f.push({
32842
- events: { signal: t.name + oI },
32842
+ events: { signal: t.name + o7 },
32843
32843
  update: bi(g) ? `[${l(`${d}[0]`)}, ${l(`${d}[1]`)}]` : "[0, 0]"
32844
32844
  }), h ? [{ name: d, on: [] }] : [
32845
32845
  { name: s, ...m, on: f },
@@ -32856,7 +32856,7 @@ function age(e, t, n, r) {
32856
32856
  }
32857
32857
  ];
32858
32858
  } else {
32859
- const d = o === yt ? 0 : 1, h = t.name + sI, p = r ? { init: `[${h}[0][${d}], ${h}[1][${d}]]` } : { value: [] };
32859
+ const d = o === yt ? 0 : 1, h = t.name + s7, p = r ? { init: `[${h}[0][${d}], ${h}[1][${d}]]` } : { value: [] };
32860
32860
  return [{ name: s, ...p, on: f }];
32861
32861
  }
32862
32862
  }
@@ -32867,7 +32867,7 @@ function wu({ model: e, channelDef: t, vgChannel: n, invalidValueRef: r, mainRef
32867
32867
  const u = i(c);
32868
32868
  if (Yde(c)) {
32869
32869
  const { param: f, empty: d } = c;
32870
- return { test: CI(e, { param: f, empty: d }), ...u };
32870
+ return { test: C7(e, { param: f, empty: d }), ...u };
32871
32871
  } else
32872
32872
  return { test: pm(e, c.test), ...u };
32873
32873
  })), r !== void 0 && s.push(r);
@@ -32895,7 +32895,7 @@ function eC(e, t, n = "datum") {
32895
32895
  }
32896
32896
  }
32897
32897
  }
32898
- function aI(e, t = {}) {
32898
+ function a7(e, t = {}) {
32899
32899
  const { encoding: n, markDef: r, config: i, stack: o } = e, s = n.tooltip;
32900
32900
  if (U(s))
32901
32901
  return { tooltip: wM({ tooltip: s }, o, i, t) };
@@ -32906,7 +32906,7 @@ function aI(e, t = {}) {
32906
32906
  channelDef: s,
32907
32907
  vgChannel: "tooltip",
32908
32908
  mainRefFn: (c) => {
32909
- const u = cI(c, i, a);
32909
+ const u = c7(c, i, a);
32910
32910
  if (u)
32911
32911
  return u;
32912
32912
  if (c === null)
@@ -32922,10 +32922,10 @@ function aI(e, t = {}) {
32922
32922
  });
32923
32923
  }
32924
32924
  }
32925
- function lI(e, t, n, { reactiveGeom: r } = {}) {
32925
+ function l7(e, t, n, { reactiveGeom: r } = {}) {
32926
32926
  const i = { ...n, ...n.tooltipFormat }, o = /* @__PURE__ */ new Set(), s = r ? "datum.datum" : "datum", a = [];
32927
32927
  function l(u, f) {
32928
- const d = Al(f), h = Wn(u) ? u : {
32928
+ const d = Al(f), h = Hn(u) ? u : {
32929
32929
  ...u,
32930
32930
  type: e[d].type
32931
32931
  // for secondary field def, copy type from main channel
@@ -32949,7 +32949,7 @@ function lI(e, t, n, { reactiveGeom: r } = {}) {
32949
32949
  normalizeStack: !0
32950
32950
  }).signal;
32951
32951
  }
32952
- m ??= cI(h, i, s).signal, a.push({ channel: f, key: g, value: m });
32952
+ m ??= c7(h, i, s).signal, a.push({ channel: f, key: g, value: m });
32953
32953
  }
32954
32954
  zE(e, (u, f) => {
32955
32955
  V(u) ? l(u, f) : n1(u) && l(u.condition, f);
@@ -32960,10 +32960,10 @@ function lI(e, t, n, { reactiveGeom: r } = {}) {
32960
32960
  return c;
32961
32961
  }
32962
32962
  function wM(e, t, n, { reactiveGeom: r } = {}) {
32963
- const i = lI(e, t, n, { reactiveGeom: r }), o = qs(i).map(([s, a]) => `"${s}": ${a}`);
32963
+ const i = l7(e, t, n, { reactiveGeom: r }), o = qs(i).map(([s, a]) => `"${s}": ${a}`);
32964
32964
  return o.length > 0 ? { signal: `{${o.join(", ")}}` } : void 0;
32965
32965
  }
32966
- function cI(e, t, n = "datum") {
32966
+ function c7(e, t, n = "datum") {
32967
32967
  if (V(e) && kE(e.type) && !Vc(e).format && !Vc(e).formatType) {
32968
32968
  const r = `${n}["${e.field}"]`;
32969
32969
  return {
@@ -33005,7 +33005,7 @@ function uge(e) {
33005
33005
  };
33006
33006
  if (r.aria === !1)
33007
33007
  return {};
33008
- const a = lI(t, i, r);
33008
+ const a = l7(t, i, r);
33009
33009
  if (!lt(a))
33010
33010
  return {
33011
33011
  description: {
@@ -33048,7 +33048,7 @@ function an(e, t, n = {}) {
33048
33048
  })
33049
33049
  });
33050
33050
  }
33051
- function uI(e, t = { filled: void 0 }) {
33051
+ function u7(e, t = { filled: void 0 }) {
33052
33052
  const { markDef: n, encoding: r, config: i } = e, { type: o } = n, s = t.filled ?? Qe("filled", n, i), a = ze(["bar", "point", "circle", "square", "geoshape"], o) ? "transparent" : void 0, l = Qe(s === !0 ? "color" : void 0, n, i, { vgChannel: "fill" }) ?? // need to add this manually as getMarkConfig normally drops config.mark[channel] if vgChannel is specified
33053
33053
  i.mark[s === !0 && "color"] ?? // If there is no fill, always fill symbols, bar, geoshape
33054
33054
  // with transparent fills https://github.com/vega/vega-lite/issues/1316
@@ -33101,7 +33101,7 @@ function Kc({ channel: e, markDef: t, encoding: n = {}, model: r, bandPosition:
33101
33101
  const l = t[o];
33102
33102
  return l ? { offsetType: "visual", offset: l } : {};
33103
33103
  }
33104
- function zn(e, t, { defaultPos: n, vgChannel: r }) {
33104
+ function Bn(e, t, { defaultPos: n, vgChannel: r }) {
33105
33105
  const { encoding: i, markDef: o, config: s, stack: a } = t, l = i[e], c = i[_o(e)], u = t.scaleName(e), f = t.getScaleComponent(e), { offset: d, offsetType: h } = Kc({
33106
33106
  channel: e,
33107
33107
  markDef: o,
@@ -33169,7 +33169,7 @@ function tC({ model: e, defaultPos: t, channel: n, scaleName: r, scale: i }) {
33169
33169
  config: s
33170
33170
  });
33171
33171
  case "mid":
33172
- return { ...e[sr(n)], mult: 0.5 };
33172
+ return { ...e[ar(n)], mult: 0.5 };
33173
33173
  }
33174
33174
  };
33175
33175
  }
@@ -33203,7 +33203,7 @@ const hge = {
33203
33203
  middle: "yc",
33204
33204
  bottom: "y2"
33205
33205
  };
33206
- function fI(e, t, n, r = "middle") {
33206
+ function f7(e, t, n, r = "middle") {
33207
33207
  if (e === "radius" || e === "theta")
33208
33208
  return Ws(e);
33209
33209
  const i = e === "x" ? "align" : "baseline", o = Qe(i, t, n);
@@ -33211,25 +33211,25 @@ function fI(e, t, n, r = "middle") {
33211
33211
  return de(o) ? (G(dfe(i)), s = void 0) : s = o, e === "x" ? hge[s || (r === "top" ? "left" : "center")] : pge[s || r];
33212
33212
  }
33213
33213
  function dm(e, t, { defaultPos: n, defaultPos2: r, range: i }) {
33214
- return i ? dI(e, t, { defaultPos: n, defaultPos2: r }) : zn(e, t, { defaultPos: n });
33214
+ return i ? d7(e, t, { defaultPos: n, defaultPos2: r }) : Bn(e, t, { defaultPos: n });
33215
33215
  }
33216
- function dI(e, t, { defaultPos: n, defaultPos2: r }) {
33217
- const { markDef: i, config: o } = t, s = _o(e), a = sr(e), l = gge(t, r, s), c = l[a] ? (
33216
+ function d7(e, t, { defaultPos: n, defaultPos2: r }) {
33217
+ const { markDef: i, config: o } = t, s = _o(e), a = ar(e), l = gge(t, r, s), c = l[a] ? (
33218
33218
  // If there is width/height, we need to position the marks based on the alignment.
33219
- fI(e, i, o)
33219
+ f7(e, i, o)
33220
33220
  ) : (
33221
33221
  // Otherwise, make sure to apply to the right Vg Channel (for arc mark)
33222
33222
  Ws(e)
33223
33223
  );
33224
33224
  return {
33225
- ...zn(e, t, { defaultPos: n, vgChannel: c }),
33225
+ ...Bn(e, t, { defaultPos: n, vgChannel: c }),
33226
33226
  ...l
33227
33227
  };
33228
33228
  }
33229
33229
  function gge(e, t, n) {
33230
- const { encoding: r, mark: i, markDef: o, stack: s, config: a } = e, l = Al(n), c = sr(n), u = Ws(n), f = r[l], d = e.scaleName(l), h = e.getScaleComponent(l), { offset: p } = n in r || n in o ? Kc({ channel: n, markDef: o, encoding: r, model: e }) : Kc({ channel: l, markDef: o, encoding: r, model: e });
33230
+ const { encoding: r, mark: i, markDef: o, stack: s, config: a } = e, l = Al(n), c = ar(n), u = Ws(n), f = r[l], d = e.scaleName(l), h = e.getScaleComponent(l), { offset: p } = n in r || n in o ? Kc({ channel: n, markDef: o, encoding: r, model: e }) : Kc({ channel: l, markDef: o, encoding: r, model: e });
33231
33231
  if (!f && (n === "x2" || n === "y2") && (r.latitude || r.longitude)) {
33232
- const m = sr(n), y = e.markDef[m];
33232
+ const m = ar(n), y = e.markDef[m];
33233
33233
  return y != null ? {
33234
33234
  [m]: { value: y }
33235
33235
  } : {
@@ -33276,7 +33276,7 @@ function mge({ channel: e, channelDef: t, channel2Def: n, markDef: r, config: i,
33276
33276
  });
33277
33277
  }
33278
33278
  function ep(e, t) {
33279
- const n = sr(e), r = Ws(e);
33279
+ const n = ar(e), r = Ws(e);
33280
33280
  if (t[r] !== void 0)
33281
33281
  return { [r]: Hf(e, t[r]) };
33282
33282
  if (t[e] !== void 0)
@@ -33290,13 +33290,13 @@ function ep(e, t) {
33290
33290
  }
33291
33291
  }
33292
33292
  function Yo(e, t) {
33293
- const { config: n, encoding: r, markDef: i } = e, o = i.type, s = _o(t), a = sr(t), l = r[t], c = r[s], u = e.getScaleComponent(t), f = u ? u.get("type") : void 0, d = i.orient, h = r[a] ?? r.size ?? Qe("size", i, n, { vgChannel: a }), p = r9(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
33293
+ const { config: n, encoding: r, markDef: i } = e, o = i.type, s = _o(t), a = ar(t), l = r[t], c = r[s], u = e.getScaleComponent(t), f = u ? u.get("type") : void 0, d = i.orient, h = r[a] ?? r.size ?? Qe("size", i, n, { vgChannel: a }), p = r9(t), g = o === "bar" && (t === "x" ? d === "vertical" : d === "horizontal") || o === "tick" && (t === "y" ? d === "vertical" : d === "horizontal");
33294
33294
  return V(l) && (ct(l.bin) || rn(l.bin) || l.timeUnit && !c) && !(h && !ul(h)) && !r[p] && !Mt(f) ? bge({
33295
33295
  fieldDef: l,
33296
33296
  fieldDef2: c,
33297
33297
  channel: t,
33298
33298
  model: e
33299
- }) : (Se(l) && Mt(f) || g) && !c ? _ge(l, t, e) : dI(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
33299
+ }) : (Se(l) && Mt(f) || g) && !c ? _ge(l, t, e) : d7(t, e, { defaultPos: "zeroOrMax", defaultPos2: "zeroOrMin" });
33300
33300
  }
33301
33301
  function yge(e, t, n, r, i, o, s) {
33302
33302
  if (ul(i))
@@ -33334,7 +33334,7 @@ function yge(e, t, n, r, i, o, s) {
33334
33334
  return { value: Sv(r.view, e) - 2 };
33335
33335
  }
33336
33336
  function _ge(e, t, n) {
33337
- const { markDef: r, encoding: i, config: o, stack: s } = n, a = r.orient, l = n.scaleName(t), c = n.getScaleComponent(t), u = sr(t), f = _o(t), d = r9(t), h = n.scaleName(d), p = n.getScaleComponent(rE(t)), g = (
33337
+ const { markDef: r, encoding: i, config: o, stack: s } = n, a = r.orient, l = n.scaleName(t), c = n.getScaleComponent(t), u = ar(t), f = _o(t), d = r9(t), h = n.scaleName(d), p = n.getScaleComponent(rE(t)), g = (
33338
33338
  // Always uses size channel for ticks, because tick only calls rectPosition() for the size channel
33339
33339
  r.type === "tick" || // use "size" channel for bars, if there is orient and the channel matches the right orientation
33340
33340
  a === "horizontal" && t === "y" || a === "vertical" && t === "x"
@@ -33355,7 +33355,7 @@ function _ge(e, t, n) {
33355
33355
  m = m || {
33356
33356
  [u]: yge(u, h || l, p || c, o, _, !!e, r.type)
33357
33357
  };
33358
- const v = (c || p)?.get("type") === "band" && ul(_) && !y ? "top" : "middle", x = fI(t, r, o, v), w = x === "xc" || x === "yc", { offset: E, offsetType: k } = Kc({ channel: t, markDef: r, encoding: i, model: n, bandPosition: w ? 0.5 : 0 }), C = TE({
33358
+ const v = (c || p)?.get("type") === "band" && ul(_) && !y ? "top" : "middle", x = f7(t, r, o, v), w = x === "xc" || x === "yc", { offset: E, offsetType: k } = Kc({ channel: t, markDef: r, encoding: i, model: n, bandPosition: w ? 0.5 : 0 }), C = TE({
33359
33359
  channel: t,
33360
33360
  channelDef: e,
33361
33361
  markDef: r,
@@ -33445,7 +33445,7 @@ function CM({ fieldDef: e, scaleName: t, bandPosition: n, offset: r, useRectOffs
33445
33445
  }
33446
33446
  const vge = /* @__PURE__ */ new Set(["aria", "width", "height"]);
33447
33447
  function Xr(e, t) {
33448
- const { fill: n = void 0, stroke: r = void 0 } = t.color === "include" ? uI(e) : {};
33448
+ const { fill: n = void 0, stroke: r = void 0 } = t.color === "include" ? u7(e) : {};
33449
33449
  return {
33450
33450
  ...xge(e.markDef, t),
33451
33451
  ...SM("fill", n),
@@ -33456,7 +33456,7 @@ function Xr(e, t) {
33456
33456
  ...an("strokeWidth", e),
33457
33457
  ...an("strokeDash", e),
33458
33458
  ...fge(e),
33459
- ...aI(e),
33459
+ ...a7(e),
33460
33460
  ...QE(e, "href"),
33461
33461
  ...lge(e)
33462
33462
  };
@@ -33491,7 +33491,7 @@ function $M(e, t) {
33491
33491
  if (t !== void 0)
33492
33492
  return { [e]: dt(t) };
33493
33493
  }
33494
- const Jy = "voronoi", hI = {
33494
+ const Jy = "voronoi", h7 = {
33495
33495
  defined: (e) => e.type === "point" && e.nearest,
33496
33496
  parse: (e, t) => {
33497
33497
  if (t.events)
@@ -33514,7 +33514,7 @@ const Jy = "voronoi", hI = {
33514
33514
  strokeWidth: { value: 0.35 },
33515
33515
  stroke: { value: "transparent" },
33516
33516
  isVoronoi: { value: !0 },
33517
- ...aI(e, { reactiveGeom: !0 })
33517
+ ...a7(e, { reactiveGeom: !0 })
33518
33518
  }
33519
33519
  },
33520
33520
  transform: [
@@ -33532,11 +33532,11 @@ const Jy = "voronoi", hI = {
33532
33532
  f === e.component.mark[0].name ? a = u : f.includes(Jy) && (l = !0);
33533
33533
  }), l || n.splice(a + 1, 0, s), n;
33534
33534
  }
33535
- }, pI = {
33535
+ }, p7 = {
33536
33536
  defined: (e) => e.type === "point" && e.resolve === "global" && e.bind && e.bind !== "scales" && !HE(e.bind),
33537
- parse: (e, t, n) => wI(t, n),
33537
+ parse: (e, t, n) => w7(t, n),
33538
33538
  topLevelSignals: (e, t, n) => {
33539
- const r = t.name, i = t.project, o = t.bind, s = t.init?.[0], a = hI.defined(t) ? "(item().isVoronoi ? datum.datum : datum)" : "datum";
33539
+ const r = t.name, i = t.project, o = t.bind, s = t.init?.[0], a = h7.defined(t) ? "(item().isVoronoi ? datum.datum : datum)" : "datum";
33540
33540
  return i.items.forEach((l, c) => {
33541
33541
  const u = mt(`${r}_${l.field}`);
33542
33542
  n.filter((d) => d.name === u).length || n.unshift({
@@ -33556,7 +33556,7 @@ const Jy = "voronoi", hI = {
33556
33556
  const r = t.name, i = t.project, o = n.find((c) => c.name === r + Xo), s = r + mh, a = i.items.map((c) => mt(`${r}_${c.field}`)), l = a.map((c) => `${c} !== null`).join(" && ");
33557
33557
  return a.length && (o.update = `${l} ? {fields: ${s}, values: [${a.join(", ")}]} : null`), delete o.value, delete o.on, n;
33558
33558
  }
33559
- }, hm = "_toggle", gI = {
33559
+ }, hm = "_toggle", g7 = {
33560
33560
  defined: (e) => e.type === "point" && !Yi(e) && !!e.toggle,
33561
33561
  signals: (e, t, n) => n.concat({
33562
33562
  name: t.name + hm,
@@ -33573,7 +33573,7 @@ const Jy = "voronoi", hI = {
33573
33573
  t.clear && (t.clear = ne(t.clear) ? Qs(t.clear, "view") : t.clear);
33574
33574
  },
33575
33575
  topLevelSignals: (e, t, n) => {
33576
- if (pI.defined(t))
33576
+ if (p7.defined(t))
33577
33577
  for (const r of t.project.items) {
33578
33578
  const i = n.findIndex((o) => o.name === mt(`${t.name}_${r.field}`));
33579
33579
  i !== -1 && n[i].on.push({ events: t.clear, update: "null" });
@@ -33594,18 +33594,18 @@ const Jy = "voronoi", hI = {
33594
33594
  }
33595
33595
  else {
33596
33596
  let i = n.findIndex((o) => o.name === t.name + Xo);
33597
- r(i, "null"), gI.defined(t) && (i = n.findIndex((o) => o.name === t.name + hm), r(i, "false"));
33597
+ r(i, "null"), g7.defined(t) && (i = n.findIndex((o) => o.name === t.name + hm), r(i, "false"));
33598
33598
  }
33599
33599
  return n;
33600
33600
  }
33601
- }, mI = {
33601
+ }, m7 = {
33602
33602
  defined: (e) => {
33603
33603
  const t = e.resolve === "global" && e.bind && HE(e.bind), n = e.project.items.length === 1 && e.project.items[0].field !== wi;
33604
33604
  return t && !n && G(Bue), t && n;
33605
33605
  },
33606
33606
  parse: (e, t, n) => {
33607
33607
  const r = Ee(n);
33608
- if (r.select = ne(r.select) ? { type: r.select, toggle: t.toggle } : { ...r.select, toggle: t.toggle }, wI(t, r), te(n.select) && (n.select.on || n.select.clear)) {
33608
+ if (r.select = ne(r.select) ? { type: r.select, toggle: t.toggle } : { ...r.select, toggle: t.toggle }, w7(t, r), te(n.select) && (n.select.on || n.select.clear)) {
33609
33609
  const s = 'event.item && indexof(event.item.mark.role, "legend") < 0';
33610
33610
  for (const a of t.events)
33611
33611
  a.filter = ie(a.filter ?? []), a.filter.includes(s) || a.filter.push(s);
@@ -33655,16 +33655,16 @@ function kge(e, t, n) {
33655
33655
  const r = e.fieldDef(t)?.field;
33656
33656
  for (const i of zt(e.component.selection ?? {})) {
33657
33657
  const o = i.project.hasField[r] ?? i.project.hasChannel[t];
33658
- if (o && mI.defined(i)) {
33658
+ if (o && m7.defined(i)) {
33659
33659
  const s = n.get("selections") ?? [];
33660
33660
  s.push(i.name), n.set("selections", s, !1), o.hasLegend = !0;
33661
33661
  }
33662
33662
  }
33663
33663
  }
33664
- const yI = "_translate_anchor", _I = "_translate_delta", Ege = {
33664
+ const y7 = "_translate_anchor", _7 = "_translate_delta", Ege = {
33665
33665
  defined: (e) => e.type === "interval" && e.translate,
33666
33666
  signals: (e, t, n) => {
33667
- const r = t.name, i = jo.defined(t), o = r + yI, { x: s, y: a } = t.project.hasChannel;
33667
+ const r = t.name, i = jo.defined(t), o = r + y7, { x: s, y: a } = t.project.hasChannel;
33668
33668
  let l = Qs(t.translate, "scope");
33669
33669
  return i || (l = l.map((c) => (c.between[0].markname = r + gc, c))), n.push({
33670
33670
  name: o,
@@ -33676,7 +33676,7 @@ const yI = "_translate_anchor", _I = "_translate_delta", Ege = {
33676
33676
  }
33677
33677
  ]
33678
33678
  }, {
33679
- name: r + _I,
33679
+ name: r + _7,
33680
33680
  value: {},
33681
33681
  on: [
33682
33682
  {
@@ -33688,19 +33688,19 @@ const yI = "_translate_anchor", _I = "_translate_delta", Ege = {
33688
33688
  }
33689
33689
  };
33690
33690
  function AM(e, t, n, r, i) {
33691
- const o = t.name, s = o + yI, a = o + _I, l = n.channel, c = jo.defined(t), u = i.find((w) => w.name === n.signals[c ? "data" : "visual"]), f = e.getSizeSignalRef(r).signal, d = e.getScaleComponent(l), h = d?.get("type"), p = d?.get("reverse"), g = c ? l === yt ? p ? "" : "-" : p ? "-" : "" : "", m = `${s}.extent_${l}`, y = `${g}${a}.${l} / ${c ? `${f}` : `span(${m})`}`, _ = !c || !d ? "panLinear" : h === "log" ? "panLog" : h === "symlog" ? "panSymlog" : h === "pow" ? "panPow" : "panLinear", v = c ? h === "pow" ? `, ${d.get("exponent") ?? 1}` : h === "symlog" ? `, ${d.get("constant") ?? 1}` : "" : "", x = `${_}(${m}, ${y}${v})`;
33691
+ const o = t.name, s = o + y7, a = o + _7, l = n.channel, c = jo.defined(t), u = i.find((w) => w.name === n.signals[c ? "data" : "visual"]), f = e.getSizeSignalRef(r).signal, d = e.getScaleComponent(l), h = d?.get("type"), p = d?.get("reverse"), g = c ? l === yt ? p ? "" : "-" : p ? "-" : "" : "", m = `${s}.extent_${l}`, y = `${g}${a}.${l} / ${c ? `${f}` : `span(${m})`}`, _ = !c || !d ? "panLinear" : h === "log" ? "panLog" : h === "symlog" ? "panSymlog" : h === "pow" ? "panPow" : "panLinear", v = c ? h === "pow" ? `, ${d.get("exponent") ?? 1}` : h === "symlog" ? `, ${d.get("constant") ?? 1}` : "" : "", x = `${_}(${m}, ${y}${v})`;
33692
33692
  u.on.push({
33693
33693
  events: { signal: a },
33694
33694
  update: c ? x : `clampRange(${x}, 0, ${f})`
33695
33695
  });
33696
33696
  }
33697
- const bI = "_zoom_anchor", vI = "_zoom_delta", Cge = {
33697
+ const b7 = "_zoom_anchor", v7 = "_zoom_delta", Cge = {
33698
33698
  defined: (e) => e.type === "interval" && e.zoom,
33699
33699
  signals: (e, t, n) => {
33700
- const r = t.name, i = jo.defined(t), o = r + vI, { x: s, y: a } = t.project.hasChannel, l = X(e.scaleName(yt)), c = X(e.scaleName(nn));
33700
+ const r = t.name, i = jo.defined(t), o = r + v7, { x: s, y: a } = t.project.hasChannel, l = X(e.scaleName(yt)), c = X(e.scaleName(nn));
33701
33701
  let u = Qs(t.zoom, "scope");
33702
33702
  return i || (u = u.map((f) => (f.markname = r + gc, f))), n.push({
33703
- name: r + bI,
33703
+ name: r + b7,
33704
33704
  on: [
33705
33705
  {
33706
33706
  events: u,
@@ -33720,25 +33720,25 @@ const bI = "_zoom_anchor", vI = "_zoom_delta", Cge = {
33720
33720
  }
33721
33721
  };
33722
33722
  function MM(e, t, n, r, i) {
33723
- const o = t.name, s = n.channel, a = jo.defined(t), l = i.find((_) => _.name === n.signals[a ? "data" : "visual"]), c = e.getSizeSignalRef(r).signal, u = e.getScaleComponent(s), f = u?.get("type"), d = a ? Tv(e, s) : l.name, h = o + vI, p = `${o}${bI}.${s}`, g = !a || !u ? "zoomLinear" : f === "log" ? "zoomLog" : f === "symlog" ? "zoomSymlog" : f === "pow" ? "zoomPow" : "zoomLinear", m = a ? f === "pow" ? `, ${u.get("exponent") ?? 1}` : f === "symlog" ? `, ${u.get("constant") ?? 1}` : "" : "", y = `${g}(${d}, ${p}, ${h}${m})`;
33723
+ const o = t.name, s = n.channel, a = jo.defined(t), l = i.find((_) => _.name === n.signals[a ? "data" : "visual"]), c = e.getSizeSignalRef(r).signal, u = e.getScaleComponent(s), f = u?.get("type"), d = a ? Tv(e, s) : l.name, h = o + v7, p = `${o}${b7}.${s}`, g = !a || !u ? "zoomLinear" : f === "log" ? "zoomLog" : f === "symlog" ? "zoomSymlog" : f === "pow" ? "zoomPow" : "zoomLinear", m = a ? f === "pow" ? `, ${u.get("exponent") ?? 1}` : f === "symlog" ? `, ${u.get("constant") ?? 1}` : "" : "", y = `${g}(${d}, ${p}, ${h}${m})`;
33724
33724
  l.on.push({
33725
33725
  events: { signal: h },
33726
33726
  update: a ? y : `clampRange(${y}, 0, ${c})`
33727
33727
  });
33728
33728
  }
33729
- const hl = "_store", Xo = "_tuple", Sge = "_modify", xI = "vlSelectionResolve", d1 = [
33729
+ const hl = "_store", Xo = "_tuple", Sge = "_modify", x7 = "vlSelectionResolve", d1 = [
33730
33730
  Jpe,
33731
33731
  sge,
33732
33732
  Xpe,
33733
- gI,
33733
+ g7,
33734
33734
  // Bindings may disable direct manipulation.
33735
- pI,
33735
+ p7,
33736
33736
  jo,
33737
- mI,
33737
+ m7,
33738
33738
  wge,
33739
33739
  Ege,
33740
33740
  Cge,
33741
- hI
33741
+ h7
33742
33742
  ];
33743
33743
  function $ge(e) {
33744
33744
  let t = e.parent;
@@ -33759,7 +33759,7 @@ function Wa(e, { escape: t } = { escape: !0 }) {
33759
33759
  function rC(e) {
33760
33760
  return zt(e.component.selection ?? {}).reduce((t, n) => t || n.project.hasSelectionId, !1);
33761
33761
  }
33762
- function wI(e, t) {
33762
+ function w7(e, t) {
33763
33763
  (ne(t.select) || !t.select.on) && delete e.events, (ne(t.select) || !t.select.clear) && delete e.clear, (ne(t.select) || !t.select.toggle) && delete e.toggle;
33764
33764
  }
33765
33765
  function Yi(e) {
@@ -33769,13 +33769,13 @@ function Dv(e) {
33769
33769
  const t = [];
33770
33770
  return e.type === "Identifier" ? [e.name] : e.type === "Literal" ? [e.value] : (e.type === "MemberExpression" && (t.push(...Dv(e.object)), t.push(...Dv(e.property))), t);
33771
33771
  }
33772
- function kI(e) {
33773
- return e.object.type === "MemberExpression" ? kI(e.object) : e.object.name === "datum";
33772
+ function k7(e) {
33773
+ return e.object.type === "MemberExpression" ? k7(e.object) : e.object.name === "datum";
33774
33774
  }
33775
- function EI(e) {
33775
+ function E7(e) {
33776
33776
  const t = vk(e), n = /* @__PURE__ */ new Set();
33777
33777
  return t.visit((r) => {
33778
- r.type === "MemberExpression" && kI(r) && n.add(Dv(r).slice(1).join("."));
33778
+ r.type === "MemberExpression" && k7(r) && n.add(Dv(r).slice(1).join("."));
33779
33779
  }), n;
33780
33780
  }
33781
33781
  class ku extends rt {
@@ -33787,7 +33787,7 @@ class ku extends rt {
33787
33787
  return new ku(null, this.model, Ee(this.filter));
33788
33788
  }
33789
33789
  constructor(t, n, r) {
33790
- super(t), this.model = n, this.filter = r, this.expr = pm(this.model, this.filter, this), this._dependentFields = EI(this.expr);
33790
+ super(t), this.model = n, this.filter = r, this.expr = pm(this.model, this.filter, this), this._dependentFields = E7(this.expr);
33791
33791
  }
33792
33792
  dependentFields() {
33793
33793
  return this._dependentFields;
@@ -33832,7 +33832,7 @@ function Age(e, t) {
33832
33832
  }
33833
33833
  return i > 1 && G(Gue), n;
33834
33834
  }
33835
- function CI(e, t, n, r = "datum") {
33835
+ function C7(e, t, n, r = "datum") {
33836
33836
  const i = ne(t) ? t : t.param, o = mt(i), s = X(o + hl);
33837
33837
  let a;
33838
33838
  try {
@@ -33847,7 +33847,7 @@ function CI(e, t, n, r = "datum") {
33847
33847
  const l = a.project.hasSelectionId ? "vlSelectionIdTest(" : "vlSelectionTest(", c = a.resolve === "global" ? ")" : `, ${X(a.resolve)})`, u = `${l}${s}, ${r}${c}`, f = `length(data(${s}))`;
33848
33848
  return t.empty === !1 ? `${f} && ${u}` : `!${f} || ${u}`;
33849
33849
  }
33850
- function SI(e, t, n) {
33850
+ function S7(e, t, n) {
33851
33851
  const r = mt(t), i = n.encoding;
33852
33852
  let o = n.field, s;
33853
33853
  try {
@@ -33866,11 +33866,11 @@ function SI(e, t, n) {
33866
33866
  function Mge(e, t) {
33867
33867
  for (const [n, r] of qs(e.component.selection ?? {})) {
33868
33868
  const i = e.getName(`lookup_${n}`);
33869
- e.component.data.outputNodes[i] = r.materialized = new Qn(new ku(t, e, { param: n }), i, wt.Lookup, e.component.data.outputNodeRefCounts);
33869
+ e.component.data.outputNodes[i] = r.materialized = new er(new ku(t, e, { param: n }), i, wt.Lookup, e.component.data.outputNodeRefCounts);
33870
33870
  }
33871
33871
  }
33872
33872
  function pm(e, t, n) {
33873
- return Wf(t, (r) => ne(r) ? r : ide(r) ? CI(e, r, n) : O9(r));
33873
+ return Wf(t, (r) => ne(r) ? r : ide(r) ? C7(e, r, n) : O9(r));
33874
33874
  }
33875
33875
  function Nge(e, t) {
33876
33876
  if (e)
@@ -33969,7 +33969,7 @@ function Nf(e, t, n, r = { header: !1 }) {
33969
33969
  }
33970
33970
  }
33971
33971
  }
33972
- function $I(e) {
33972
+ function $7(e) {
33973
33973
  const { axes: t } = e.component, n = [];
33974
33974
  for (const r of ns)
33975
33975
  if (t[r]) {
@@ -34055,10 +34055,10 @@ const TM = {
34055
34055
  // we already calculate this in parse
34056
34056
  grid: ({ fieldOrDatumDef: e, axis: t, scaleType: n }) => t.grid ?? Rge(n, e),
34057
34057
  gridScale: ({ model: e, channel: t }) => Oge(e, t),
34058
- labelAlign: ({ axis: e, labelAngle: t, orient: n, channel: r }) => e.labelAlign || MI(t, n, r),
34058
+ labelAlign: ({ axis: e, labelAngle: t, orient: n, channel: r }) => e.labelAlign || M7(t, n, r),
34059
34059
  labelAngle: ({ labelAngle: e }) => e,
34060
34060
  // we already calculate this in parse
34061
- labelBaseline: ({ axis: e, labelAngle: t, orient: n, channel: r }) => e.labelBaseline || AI(t, n, r),
34061
+ labelBaseline: ({ axis: e, labelAngle: t, orient: n, channel: r }) => e.labelBaseline || A7(t, n, r),
34062
34062
  labelFlush: ({ axis: e, fieldOrDatumDef: t, channel: n }) => e.labelFlush ?? Ige(t.type, n),
34063
34063
  labelOverlap: ({ axis: e, fieldOrDatumDef: t, scaleType: n }) => e.labelOverlap ?? Pge(t.type, n, V(t) && !!t.timeUnit, V(t) ? t.sort : void 0),
34064
34064
  // we already calculate orient in parse
@@ -34072,7 +34072,7 @@ const TM = {
34072
34072
  title: ({ axis: e, model: t, channel: n }) => {
34073
34073
  if (e.title !== void 0)
34074
34074
  return e.title;
34075
- const r = NI(t, n);
34075
+ const r = N7(t, n);
34076
34076
  if (r !== void 0)
34077
34077
  return r;
34078
34078
  const i = t.typedFieldDef(n), o = n === "x" ? "x2" : "y2", s = t.fieldDef(o);
@@ -34101,7 +34101,7 @@ function Lge(e, t, n, r, i) {
34101
34101
  function Ov(e) {
34102
34102
  return `(((${e.signal} % 360) + 360) % 360)`;
34103
34103
  }
34104
- function AI(e, t, n, r) {
34104
+ function A7(e, t, n, r) {
34105
34105
  if (e !== void 0)
34106
34106
  if (n === "x") {
34107
34107
  if (de(e)) {
@@ -34133,7 +34133,7 @@ function AI(e, t, n, r) {
34133
34133
  return (45 <= e && e <= 135) == (t === "left") ? "top" : "bottom";
34134
34134
  }
34135
34135
  }
34136
- function MI(e, t, n) {
34136
+ function M7(e, t, n) {
34137
34137
  if (e === void 0)
34138
34138
  return;
34139
34139
  const r = n === "x", i = r ? 0 : 90, o = r ? "bottom" : "left";
@@ -34187,7 +34187,7 @@ function Uge({ format: e, fieldOrDatumDef: t }) {
34187
34187
  }
34188
34188
  }
34189
34189
  }
34190
- function NI(e, t) {
34190
+ function N7(e, t) {
34191
34191
  const n = t === "x" ? "x2" : "y2", r = e.fieldDef(t), i = e.fieldDef(n), o = r ? r.title : void 0, s = i ? i.title : void 0;
34192
34192
  if (o && s)
34193
34193
  return m9(o, s);
@@ -34217,7 +34217,7 @@ class Zc extends rt {
34217
34217
  return new Zc(null, Ee(this.transform));
34218
34218
  }
34219
34219
  constructor(t, n) {
34220
- super(t), this.transform = n, this._dependentFields = EI(this.transform.calculate);
34220
+ super(t), this.transform = n, this._dependentFields = E7(this.transform.calculate);
34221
34221
  }
34222
34222
  static parseAllForSortIndex(t, n) {
34223
34223
  return n.forEachFieldDef((r, i) => {
@@ -34276,24 +34276,24 @@ function Wge(e, t) {
34276
34276
  text: n,
34277
34277
  ...t === "row" ? { orient: "left" } : {},
34278
34278
  style: "guide-title",
34279
- ...FI(c, l),
34280
- ...TI(l, c, o),
34281
- ...DI(r, i, t, Nhe, ML)
34279
+ ...F7(c, l),
34280
+ ...T7(l, c, o),
34281
+ ...D7(r, i, t, Nhe, ML)
34282
34282
  }
34283
34283
  };
34284
34284
  }
34285
- function TI(e, t, n = "middle") {
34285
+ function T7(e, t, n = "middle") {
34286
34286
  switch (n) {
34287
34287
  case "start":
34288
34288
  return { align: "left" };
34289
34289
  case "end":
34290
34290
  return { align: "right" };
34291
34291
  }
34292
- const r = MI(t, e === "row" ? "left" : "top", e === "row" ? "y" : "x");
34292
+ const r = M7(t, e === "row" ? "left" : "top", e === "row" ? "y" : "x");
34293
34293
  return r ? { align: r } : {};
34294
34294
  }
34295
- function FI(e, t) {
34296
- const n = AI(e, t === "row" ? "left" : "top", t === "row" ? "y" : "x", !0);
34295
+ function F7(e, t) {
34296
+ const n = A7(e, t === "row" ? "left" : "top", t === "row" ? "y" : "x", !0);
34297
34297
  return n ? { baseline: n } : {};
34298
34298
  }
34299
34299
  function Hge(e, t) {
@@ -34334,9 +34334,9 @@ function Lv(e, t, n) {
34334
34334
  ...t === "row" ? { orient: "left" } : {},
34335
34335
  style: "guide-label",
34336
34336
  frame: "group",
34337
- ...FI(o, u),
34338
- ...TI(u, o, s),
34339
- ...DI(n, e, t, The, NL)
34337
+ ...F7(o, u),
34338
+ ...T7(u, o, s),
34339
+ ...D7(n, e, t, The, NL)
34340
34340
  };
34341
34341
  }
34342
34342
  function Vge(e, t, n, r, i) {
@@ -34399,7 +34399,7 @@ function Kge(e, t) {
34399
34399
  }
34400
34400
  return lt(n) ? void 0 : n;
34401
34401
  }
34402
- function DI(e, t, n, r, i) {
34402
+ function D7(e, t, n, r, i) {
34403
34403
  const o = {};
34404
34404
  for (const s of r) {
34405
34405
  if (!i[s])
@@ -34432,7 +34432,7 @@ function tp(e, t) {
34432
34432
  FM(l, a),
34433
34433
  {
34434
34434
  name: i,
34435
- update: RI(l, o, `domain('${l}').length`)
34435
+ update: R7(l, o, `domain('${l}').length`)
34436
34436
  }
34437
34437
  ];
34438
34438
  }
@@ -34453,7 +34453,7 @@ function FM(e, t) {
34453
34453
  const n = `${e}_step`;
34454
34454
  return de(t.step) ? { name: n, update: t.step.signal } : { name: n, value: t.step };
34455
34455
  }
34456
- function RI(e, t, n) {
34456
+ function R7(e, t, n) {
34457
34457
  const r = t.get("type"), i = t.get("padding"), o = Rt(t.get("paddingOuter"), i);
34458
34458
  let s = t.get("paddingInner");
34459
34459
  return s = r === "band" ? (
@@ -34465,10 +34465,10 @@ function RI(e, t, n) {
34465
34465
  1
34466
34466
  ), `bandspace(${n}, ${fi(s)}, ${fi(o)}) * ${e}_step`;
34467
34467
  }
34468
- function OI(e) {
34468
+ function O7(e) {
34469
34469
  return e === "childWidth" ? "width" : e === "childHeight" ? "height" : e;
34470
34470
  }
34471
- function LI(e, t) {
34471
+ function L7(e, t) {
34472
34472
  return W(e).reduce((n, r) => ({
34473
34473
  ...n,
34474
34474
  ...wu({
@@ -34481,7 +34481,7 @@ function LI(e, t) {
34481
34481
  })
34482
34482
  }), {});
34483
34483
  }
34484
- function II(e, t) {
34484
+ function I7(e, t) {
34485
34485
  if (xr(t))
34486
34486
  return e === "theta" ? "independent" : "shared";
34487
34487
  if (Su(t))
@@ -34509,7 +34509,7 @@ const Zge = {
34509
34509
  strokeDash: 1,
34510
34510
  // encode
34511
34511
  encode: 1
34512
- }, PI = W(Zge);
34512
+ }, P7 = W(Zge);
34513
34513
  class Jge extends is {
34514
34514
  }
34515
34515
  const DM = {
@@ -34524,11 +34524,11 @@ function Qge(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
34524
34524
  const { markDef: s, encoding: a, config: l, mark: c } = n, u = s.filled && c !== "trail";
34525
34525
  let f = {
34526
34526
  ...Due({}, n, Nde),
34527
- ...uI(n, { filled: u })
34527
+ ...u7(n, { filled: u })
34528
34528
  };
34529
- const d = i.get("symbolOpacity") ?? l.legend.symbolOpacity, h = i.get("symbolFillColor") ?? l.legend.symbolFillColor, p = i.get("symbolStrokeColor") ?? l.legend.symbolStrokeColor, g = d === void 0 ? zI(a.opacity) ?? s.opacity : void 0;
34529
+ const d = i.get("symbolOpacity") ?? l.legend.symbolOpacity, h = i.get("symbolFillColor") ?? l.legend.symbolFillColor, p = i.get("symbolStrokeColor") ?? l.legend.symbolStrokeColor, g = d === void 0 ? z7(a.opacity) ?? s.opacity : void 0;
34530
34530
  if (f.fill) {
34531
- if (r === "fill" || u && r === ir)
34531
+ if (r === "fill" || u && r === or)
34532
34532
  delete f.fill;
34533
34533
  else if (H(f.fill, "field"))
34534
34534
  h ? delete f.fill : (f.fill = dt(l.legend.symbolBaseFillColor ?? "black"), f.fillOpacity = dt(g ?? 1));
@@ -34538,7 +34538,7 @@ function Qge(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
34538
34538
  }
34539
34539
  }
34540
34540
  if (f.stroke) {
34541
- if (r === "stroke" || !u && r === ir)
34541
+ if (r === "stroke" || !u && r === or)
34542
34542
  delete f.stroke;
34543
34543
  else if (H(f.stroke, "field") || p)
34544
34544
  delete f.stroke;
@@ -34548,7 +34548,7 @@ function Qge(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i, legen
34548
34548
  }
34549
34549
  }
34550
34550
  if (r !== ts) {
34551
- const m = V(t) && UI(n, i, t);
34551
+ const m = V(t) && U7(n, i, t);
34552
34552
  m ? f.opacity = [
34553
34553
  { test: m, ...dt(g ?? 1) },
34554
34554
  dt(l.legend.unselectedOpacity)
@@ -34561,11 +34561,11 @@ function eme(e, { model: t, legendType: n, legendCmpt: r }) {
34561
34561
  return;
34562
34562
  const { config: i, markDef: o, encoding: s } = t;
34563
34563
  let a = {};
34564
- const c = (r.get("gradientOpacity") ?? i.legend.gradientOpacity) === void 0 ? zI(s.opacity) || o.opacity : void 0;
34564
+ const c = (r.get("gradientOpacity") ?? i.legend.gradientOpacity) === void 0 ? z7(s.opacity) || o.opacity : void 0;
34565
34565
  return c && (a.opacity = dt(c)), a = { ...a, ...e }, lt(a) ? void 0 : a;
34566
34566
  }
34567
34567
  function tme(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i }) {
34568
- const o = n.legend(r) || {}, s = n.config, a = V(t) ? UI(n, i, t) : void 0, l = a ? [{ test: a, value: 1 }, { value: s.legend.unselectedOpacity }] : void 0, { format: c, formatType: u } = o;
34568
+ const o = n.legend(r) || {}, s = n.config, a = V(t) ? U7(n, i, t) : void 0, l = a ? [{ test: a, value: 1 }, { value: s.legend.unselectedOpacity }] : void 0, { format: c, formatType: u } = o;
34569
34569
  let f;
34570
34570
  fl(u) ? f = di({
34571
34571
  fieldOrDatumDef: t,
@@ -34596,19 +34596,19 @@ function tme(e, { fieldOrDatumDef: t, model: n, channel: r, legendCmpt: i }) {
34596
34596
  function nme(e, { legendCmpt: t }) {
34597
34597
  return t.get("selections")?.length ? { ...e, fill: { value: "transparent" } } : e;
34598
34598
  }
34599
- function zI(e) {
34600
- return BI(e, (t, n) => Math.max(t, n.value));
34599
+ function z7(e) {
34600
+ return B7(e, (t, n) => Math.max(t, n.value));
34601
34601
  }
34602
34602
  function Iv(e) {
34603
- return BI(e, (t, n) => Rt(t, n.value));
34603
+ return B7(e, (t, n) => Rt(t, n.value));
34604
34604
  }
34605
- function BI(e, t) {
34605
+ function B7(e, t) {
34606
34606
  if (Kde(e))
34607
34607
  return ie(e.condition).reduce(t, e.value);
34608
34608
  if (vi(e))
34609
34609
  return e.value;
34610
34610
  }
34611
- function UI(e, t, n) {
34611
+ function U7(e, t, n) {
34612
34612
  const r = t.get("selections");
34613
34613
  if (!r?.length)
34614
34614
  return;
@@ -34719,15 +34719,15 @@ function ume(e) {
34719
34719
  if (ze(["quantile", "threshold", "log", "symlog"], e))
34720
34720
  return "greedy";
34721
34721
  }
34722
- function jI(e) {
34722
+ function j7(e) {
34723
34723
  const t = gt(e) ? fme(e) : gme(e);
34724
34724
  return e.component.legends = t, t;
34725
34725
  }
34726
34726
  function fme(e) {
34727
34727
  const { encoding: t } = e, n = {};
34728
- for (const r of [ir, ...FL]) {
34728
+ for (const r of [or, ...FL]) {
34729
34729
  const i = Wt(t[r]);
34730
- !i || !e.getScaleComponent(r) || r === or && V(i) && i.type === xu || (n[r] = pme(e, r));
34730
+ !i || !e.getScaleComponent(r) || r === sr && V(i) && i.type === xu || (n[r] = pme(e, r));
34731
34731
  }
34732
34732
  return n;
34733
34733
  }
@@ -34776,7 +34776,7 @@ function pme(e, t) {
34776
34776
  legendType: h,
34777
34777
  direction: p
34778
34778
  };
34779
- for (const x of PI) {
34779
+ for (const x of P7) {
34780
34780
  if (h === "gradient" && x.startsWith("symbol") || h === "symbol" && x.startsWith("gradient"))
34781
34781
  continue;
34782
34782
  const w = x in RM ? RM[x](g) : n[x];
@@ -34787,7 +34787,7 @@ function pme(e, t) {
34787
34787
  }
34788
34788
  const m = n?.encoding ?? {}, y = a.get("selections"), _ = {}, v = { fieldOrDatumDef: u, model: e, channel: t, legendCmpt: a, legendType: h };
34789
34789
  for (const x of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
34790
- const w = LI(m[x] ?? {}, e), E = x in DM ? DM[x](w, v) : w;
34790
+ const w = L7(m[x] ?? {}, e), E = x in DM ? DM[x](w, v) : w;
34791
34791
  E !== void 0 && !lt(E) && (_[x] = {
34792
34792
  ...y?.length && V(u) ? { name: `${mt(u.field)}_legend_${x}` } : {},
34793
34793
  ...y?.length ? { interactive: !0 } : {},
@@ -34799,23 +34799,23 @@ function pme(e, t) {
34799
34799
  function gme(e) {
34800
34800
  const { legends: t, resolve: n } = e.component;
34801
34801
  for (const r of e.children) {
34802
- jI(r);
34802
+ j7(r);
34803
34803
  for (const i of W(r.component.legends))
34804
- n.legend[i] = aC(e.component.resolve, i), n.legend[i] === "shared" && (t[i] = qI(t[i], r.component.legends[i]), t[i] || (n.legend[i] = "independent", delete t[i]));
34804
+ n.legend[i] = aC(e.component.resolve, i), n.legend[i] === "shared" && (t[i] = q7(t[i], r.component.legends[i]), t[i] || (n.legend[i] = "independent", delete t[i]));
34805
34805
  }
34806
34806
  for (const r of W(t))
34807
34807
  for (const i of e.children)
34808
34808
  i.component.legends[r] && n.legend[r] === "shared" && delete i.component.legends[r];
34809
34809
  return t;
34810
34810
  }
34811
- function qI(e, t) {
34811
+ function q7(e, t) {
34812
34812
  if (!e)
34813
34813
  return t.clone();
34814
34814
  const n = e.getWithExplicit("orient"), r = t.getWithExplicit("orient");
34815
34815
  if (n.explicit && r.explicit && n.value !== r.value)
34816
34816
  return;
34817
34817
  let i = !1;
34818
- for (const o of PI) {
34818
+ for (const o of P7) {
34819
34819
  const s = Gs(
34820
34820
  e.getWithExplicit(o),
34821
34821
  t.getWithExplicit(o),
@@ -34851,7 +34851,7 @@ function yme(e, t, n, r) {
34851
34851
  }
34852
34852
  return {};
34853
34853
  }
34854
- function WI(e, t) {
34854
+ function W7(e, t) {
34855
34855
  return `${l9(e)}_${t}`;
34856
34856
  }
34857
34857
  function _me(e, t) {
@@ -34861,7 +34861,7 @@ function _me(e, t) {
34861
34861
  };
34862
34862
  }
34863
34863
  function lC(e, t, n) {
34864
- const r = r1(n, void 0) ?? {}, i = WI(r, t);
34864
+ const r = r1(n, void 0) ?? {}, i = W7(r, t);
34865
34865
  return e.getName(`${i}_bins`);
34866
34866
  }
34867
34867
  function bme(e) {
@@ -34870,10 +34870,10 @@ function bme(e) {
34870
34870
  function LM(e, t, n) {
34871
34871
  let r, i;
34872
34872
  bme(e) ? r = ne(e.as) ? [e.as, `${e.as}_end`] : [e.as[0], e.as[1]] : r = [Q(e, { forAs: !0 }), Q(e, { binSuffix: "end", forAs: !0 })];
34873
- const o = { ...r1(t, void 0) }, s = WI(o, e.field), { signal: a, extentSignal: l } = _me(n, s);
34873
+ const o = { ...r1(t, void 0) }, s = W7(o, e.field), { signal: a, extentSignal: l } = _me(n, s);
34874
34874
  if (G0(o.extent)) {
34875
34875
  const u = o.extent;
34876
- i = SI(n, u.param, u), delete o.extent;
34876
+ i = S7(n, u.param, u), delete o.extent;
34877
34877
  }
34878
34878
  const c = {
34879
34879
  bin: o,
@@ -34895,7 +34895,7 @@ class Xi extends rt {
34895
34895
  }
34896
34896
  static makeFromEncoding(t, n) {
34897
34897
  const r = n.reduceFieldDef((i, o, s) => {
34898
- if (Wn(o) && ct(o.bin)) {
34898
+ if (Hn(o) && ct(o.bin)) {
34899
34899
  const { key: a, binComponent: l } = LM(o, o.bin, n);
34900
34900
  i[a] = {
34901
34901
  ...l,
@@ -34970,7 +34970,7 @@ class Xi extends rt {
34970
34970
  }
34971
34971
  function vme(e, t, n, r) {
34972
34972
  const i = gt(r) ? r.encoding[_o(t)] : void 0;
34973
- if (Wn(n) && gt(r) && nL(n, i, r.markDef, r.config)) {
34973
+ if (Hn(n) && gt(r) && nL(n, i, r.markDef, r.config)) {
34974
34974
  e.add(Q(n, {})), e.add(Q(n, { suffix: "end" }));
34975
34975
  const { mark: o, markDef: s, config: a } = r, l = Hs({ fieldDef: n, markDef: s, config: a });
34976
34976
  yd(o) && l !== 0.5 && Ot(t) && (e.add(Q(n, { suffix: u1 })), e.add(Q(n, { suffix: f1 }))), n.bin && ph(n, t) && e.add(Q(n, { binSuffix: "range" }));
@@ -35263,7 +35263,7 @@ function Eme(e) {
35263
35263
  Yc(r) ? t[r.field] = "date" : r.type === "quantitative" && Eue(r.aggregate) ? t[r.field] = "number" : Uc(r.field) > 1 ? r.field in t || (t[r.field] = "flatten") : Dl(r) && Uo(r.sort) && Uc(r.sort.field) > 1 && (r.sort.field in t || (t[r.sort.field] = "flatten"));
35264
35264
  }
35265
35265
  if ((gt(e) || xr(e)) && e.forEachFieldDef((r, i) => {
35266
- if (Wn(r))
35266
+ if (Hn(r))
35267
35267
  n(r);
35268
35268
  else {
35269
35269
  const o = Al(i), s = e.fieldDef(o);
@@ -35575,7 +35575,7 @@ class Mme extends fC {
35575
35575
  super();
35576
35576
  }
35577
35577
  run(t) {
35578
- t instanceof Qn && !t.isRequired() && (this.setModified(), t.remove());
35578
+ t instanceof er && !t.isRequired() && (this.setModified(), t.remove());
35579
35579
  }
35580
35580
  }
35581
35581
  class Nme extends Rl {
@@ -35620,7 +35620,7 @@ class Tme extends Rl {
35620
35620
  }
35621
35621
  class Fme extends Rl {
35622
35622
  run(t) {
35623
- t instanceof Qn || t.numChildren() > 0 || t instanceof Eu || t instanceof pl || (this.setModified(), t.remove());
35623
+ t instanceof er || t.numChildren() > 0 || t instanceof Eu || t instanceof pl || (this.setModified(), t.remove());
35624
35624
  }
35625
35625
  }
35626
35626
  class Dme extends Rl {
@@ -35673,16 +35673,16 @@ class Ome extends Rl {
35673
35673
  class Lme extends Rl {
35674
35674
  run(t) {
35675
35675
  const n = [...t.children];
35676
- if (!zc(n, (s) => s instanceof Qn) || t.numChildren() <= 1)
35676
+ if (!zc(n, (s) => s instanceof er) || t.numChildren() <= 1)
35677
35677
  return;
35678
35678
  const i = [];
35679
35679
  let o;
35680
35680
  for (const s of n)
35681
- if (s instanceof Qn) {
35681
+ if (s instanceof er) {
35682
35682
  let a = s;
35683
35683
  for (; a.numChildren() === 1; ) {
35684
35684
  const [l] = a.children;
35685
- if (l instanceof Qn)
35685
+ if (l instanceof er)
35686
35686
  a = l;
35687
35687
  else
35688
35688
  break;
@@ -35973,7 +35973,7 @@ function zme(e) {
35973
35973
  function t(n) {
35974
35974
  if (!(n instanceof Eu)) {
35975
35975
  const r = n.clone();
35976
- if (r instanceof Qn) {
35976
+ if (r instanceof er) {
35977
35977
  const i = Bv + r.getSource();
35978
35978
  r.setSource(i), e.model.component.data.outputNodes[i] = r;
35979
35979
  } else (r instanceof pi || r instanceof qo || r instanceof Cu || r instanceof Ol) && r.addDimensions(e.fields);
@@ -35987,12 +35987,12 @@ function zme(e) {
35987
35987
  }
35988
35988
  function zv(e) {
35989
35989
  if (e instanceof Eu)
35990
- if (e.numChildren() === 1 && !(e.children[0] instanceof Qn)) {
35990
+ if (e.numChildren() === 1 && !(e.children[0] instanceof er)) {
35991
35991
  const t = e.children[0];
35992
35992
  (t instanceof pi || t instanceof qo || t instanceof Cu || t instanceof Ol) && t.addDimensions(e.fields), t.swapWithParent(), zv(e);
35993
35993
  } else {
35994
35994
  const t = e.model.component.data.main;
35995
- HI(t);
35995
+ H7(t);
35996
35996
  const n = zme(e), r = e.children.map(n).flat();
35997
35997
  for (const i of r)
35998
35998
  i.parent = t;
@@ -36000,10 +36000,10 @@ function zv(e) {
36000
36000
  else
36001
36001
  e.children.map(zv);
36002
36002
  }
36003
- function HI(e) {
36004
- if (e instanceof Qn && e.type === wt.Main && e.numChildren() === 1) {
36003
+ function H7(e) {
36004
+ if (e instanceof er && e.type === wt.Main && e.numChildren() === 1) {
36005
36005
  const t = e.children[0];
36006
- t instanceof Eu || (t.swapWithParent(), HI(e));
36006
+ t instanceof Eu || (t.swapWithParent(), H7(e));
36007
36007
  }
36008
36008
  }
36009
36009
  const Bv = "scale_", np = 5;
@@ -36050,7 +36050,7 @@ class Yt {
36050
36050
  return new Yt(() => t(n));
36051
36051
  }
36052
36052
  }
36053
- function GI(e) {
36053
+ function G7(e) {
36054
36054
  gt(e) ? Ume(e) : jme(e);
36055
36055
  }
36056
36056
  function Ume(e) {
@@ -36069,7 +36069,7 @@ function Ume(e) {
36069
36069
  }
36070
36070
  function jme(e) {
36071
36071
  for (const n of e.children)
36072
- GI(n);
36072
+ G7(n);
36073
36073
  const t = e.component.scales;
36074
36074
  for (const n of W(t)) {
36075
36075
  let r, i = null;
@@ -36367,13 +36367,13 @@ function gl(e, t) {
36367
36367
  function Xme(e, t, n, r) {
36368
36368
  e.encode ??= {}, e.encode[t] ??= {}, e.encode[t].update ??= {}, e.encode[t].update[n] = r;
36369
36369
  }
36370
- function VI(e, t) {
36370
+ function V7(e, t) {
36371
36371
  if (gt(e)) {
36372
36372
  const r = e.fieldDef(t);
36373
36373
  if (r?.field)
36374
36374
  return r.field;
36375
36375
  }
36376
- const n = (e.children ?? []).map((r) => VI(r, t)).filter((r) => !!r);
36376
+ const n = (e.children ?? []).map((r) => V7(r, t)).filter((r) => !!r);
36377
36377
  if (n.length > 0) {
36378
36378
  const r = gr(n, Re);
36379
36379
  return r.length === 1 ? r[0] : void 0;
@@ -36428,10 +36428,10 @@ function e0e(e, t, n) {
36428
36428
  const a = gl(e, t), l = gl(e, n);
36429
36429
  return Re(a) === Re(l);
36430
36430
  }
36431
- function YI(e) {
36431
+ function Y7(e) {
36432
36432
  const t = e.component.legends, n = {};
36433
36433
  for (const i of W(t)) {
36434
- const o = VI(e, i), s = Zme(o, i);
36434
+ const o = V7(e, i), s = Zme(o, i);
36435
36435
  if (!n[s]) {
36436
36436
  n[s] = [{ channel: i, cmpt: t[i].clone() }];
36437
36437
  continue;
@@ -36440,7 +36440,7 @@ function YI(e) {
36440
36440
  for (const l of n[s]) {
36441
36441
  if (!Kme(e, l.channel, i))
36442
36442
  continue;
36443
- if (qI(l.cmpt, t[i])) {
36443
+ if (q7(l.cmpt, t[i])) {
36444
36444
  const u = e.getScaleType(l.channel), f = e.getScaleType(i);
36445
36445
  u && f && Mt(u) && Mt(f) && (e0e(e, l.channel, i) ? BM(l.cmpt, qv(e, l.channel)) : BM(
36446
36446
  l.cmpt,
@@ -36472,12 +36472,12 @@ function t0e(e, t) {
36472
36472
  }
36473
36473
  }
36474
36474
  function n0e(e) {
36475
- return Su(e) || hC(e) ? r0e(e) : XI(e);
36475
+ return Su(e) || hC(e) ? r0e(e) : X7(e);
36476
36476
  }
36477
36477
  function r0e(e) {
36478
- return e.children.reduce((t, n) => t.concat(n.assembleProjections()), XI(e));
36478
+ return e.children.reduce((t, n) => t.concat(n.assembleProjections()), X7(e));
36479
36479
  }
36480
- function XI(e) {
36480
+ function X7(e) {
36481
36481
  const t = e.component.projection;
36482
36482
  if (!t || t.merged)
36483
36483
  return [];
@@ -36531,7 +36531,7 @@ const i0e = [
36531
36531
  "spacing",
36532
36532
  "tilt"
36533
36533
  ];
36534
- class KI extends is {
36534
+ class K7 extends is {
36535
36535
  specifiedProjection;
36536
36536
  size;
36537
36537
  data;
@@ -36550,12 +36550,12 @@ class KI extends is {
36550
36550
  return !!this.data;
36551
36551
  }
36552
36552
  }
36553
- function ZI(e) {
36553
+ function Z7(e) {
36554
36554
  e.component.projection = gt(e) ? o0e(e) : l0e(e);
36555
36555
  }
36556
36556
  function o0e(e) {
36557
36557
  if (e.hasProjection) {
36558
- const t = on(e.specifiedProjection), n = !(t && (t.scale != null || t.translate != null)), r = n ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] : void 0, i = n ? s0e(e) : void 0, o = new KI(e.projectionName(!0), {
36558
+ const t = on(e.specifiedProjection), n = !(t && (t.scale != null || t.translate != null)), r = n ? [e.getSizeSignalRef("width"), e.getSizeSignalRef("height")] : void 0, i = n ? s0e(e) : void 0, o = new K7(e.projectionName(!0), {
36559
36559
  ...on(e.config.projection),
36560
36560
  ...t
36561
36561
  }, r, i);
@@ -36571,7 +36571,7 @@ function s0e(e) {
36571
36571
  (Wt(n[r[0]]) || Wt(n[r[1]])) && t.push({
36572
36572
  signal: e.getName(`geojson_${t.length}`)
36573
36573
  });
36574
- return e.channelHasField(or) && e.typedFieldDef(or).type === xu && t.push({
36574
+ return e.channelHasField(sr) && e.typedFieldDef(sr).type === xu && t.push({
36575
36575
  signal: e.getName(`geojson_${t.length}`)
36576
36576
  }), t.length === 0 && t.push(e.requestDataName(wt.Main)), t;
36577
36577
  }
@@ -36593,7 +36593,7 @@ function l0e(e) {
36593
36593
  return;
36594
36594
  let t;
36595
36595
  for (const r of e.children)
36596
- ZI(r);
36596
+ Z7(r);
36597
36597
  const n = Kk(e.children, (r) => {
36598
36598
  const i = r.component.projection;
36599
36599
  if (i)
@@ -36605,7 +36605,7 @@ function l0e(e) {
36605
36605
  else return !0;
36606
36606
  });
36607
36607
  if (t && n) {
36608
- const r = e.projectionName(!0), i = new KI(r, t.specifiedProjection, t.size, Ee(t.data));
36608
+ const r = e.projectionName(!0), i = new K7(r, t.specifiedProjection, t.size, Ee(t.data));
36609
36609
  for (const o of e.children) {
36610
36610
  const s = o.component.projection;
36611
36611
  s && (s.isFit && i.data.push(...o.component.projection.data), o.renameProjection(s.get("name"), r), s.merged = !0);
@@ -36613,8 +36613,8 @@ function l0e(e) {
36613
36613
  return i;
36614
36614
  }
36615
36615
  }
36616
- function JI(e) {
36617
- return Su(e) || hC(e) ? e.children.reduce((t, n) => t.concat(JI(n)), UM(e)) : UM(e);
36616
+ function J7(e) {
36617
+ return Su(e) || hC(e) ? e.children.reduce((t, n) => t.concat(J7(n)), UM(e)) : UM(e);
36618
36618
  }
36619
36619
  function UM(e) {
36620
36620
  return W(e.component.scales).reduce((t, n) => {
@@ -36646,7 +36646,7 @@ function c0e(e, t, n, r) {
36646
36646
  };
36647
36647
  return e;
36648
36648
  }
36649
- class QI extends is {
36649
+ class Q7 extends is {
36650
36650
  merged = !1;
36651
36651
  constructor(t, n) {
36652
36652
  super(
@@ -36705,7 +36705,7 @@ function f0e(e) {
36705
36705
  function jM(e, t) {
36706
36706
  const n = e.fieldDef(t);
36707
36707
  if (n?.bin) {
36708
- const { bin: r, field: i } = n, o = sr(t), s = e.getName(o);
36708
+ const { bin: r, field: i } = n, o = ar(t), s = e.getName(o);
36709
36709
  if (te(r) && r.binned && r.step !== void 0)
36710
36710
  return new Yt(() => {
36711
36711
  const a = e.scaleName(t), l = `(domain("${a}")[1] - domain("${a}")[0]) / ${r.step}`;
@@ -36758,7 +36758,7 @@ function d0e(e, t) {
36758
36758
  if (oo(a)) {
36759
36759
  if (Ot(e))
36760
36760
  if (Mt(o)) {
36761
- const f = t7(a, t, e);
36761
+ const f = tI(a, t, e);
36762
36762
  if (f)
36763
36763
  return Pi({ step: f });
36764
36764
  } else
@@ -36766,7 +36766,7 @@ function d0e(e, t) {
36766
36766
  else if (ah(e)) {
36767
36767
  const f = e === ea ? "x" : "y";
36768
36768
  if (t.getScaleComponent(f).get("type") === "band") {
36769
- const p = n7(a, o);
36769
+ const p = nI(a, o);
36770
36770
  if (p)
36771
36771
  return Pi(p);
36772
36772
  }
@@ -36782,8 +36782,8 @@ function h0e(e) {
36782
36782
  ...vr(e, ["name"])
36783
36783
  } : { scheme: e };
36784
36784
  }
36785
- function e7(e, t, n, { center: r } = {}) {
36786
- const i = sr(e), o = t.getName(i), s = t.getSignalName.bind(t);
36785
+ function eI(e, t, n, { center: r } = {}) {
36786
+ const i = ar(e), o = t.getName(i), s = t.getSignalName.bind(t);
36787
36787
  return e === nn && bi(n) ? r ? [
36788
36788
  Yt.fromName((a) => `${s(a)}/2`, o),
36789
36789
  Yt.fromName((a) => `-${s(a)}/2`, o)
@@ -36798,11 +36798,11 @@ function p0e(e, t) {
36798
36798
  case yt:
36799
36799
  case nn: {
36800
36800
  if (ze(["point", "band"], l)) {
36801
- const f = r7(e, n, r.view);
36801
+ const f = rI(e, n, r.view);
36802
36802
  if (oo(f))
36803
- return { step: t7(f, t, e) };
36803
+ return { step: tI(f, t, e) };
36804
36804
  }
36805
- return e7(e, t, l);
36805
+ return eI(e, t, l);
36806
36806
  }
36807
36807
  case ea:
36808
36808
  case vu:
@@ -36836,9 +36836,9 @@ function p0e(e, t) {
36836
36836
  [1, 1],
36837
36837
  [1, 2, 4, 2]
36838
36838
  ];
36839
- case or:
36839
+ case sr:
36840
36840
  return "symbol";
36841
- case ir:
36841
+ case or:
36842
36842
  case mo:
36843
36843
  case yo:
36844
36844
  return l === "ordinal" ? s === "nominal" ? "category" : "ordinal" : u !== void 0 ? "diverging" : i === "rect" || i === "geoshape" ? "heatmap" : "ramp";
@@ -36848,7 +36848,7 @@ function p0e(e, t) {
36848
36848
  return [r.scale.minOpacity, r.scale.maxOpacity];
36849
36849
  }
36850
36850
  }
36851
- function t7(e, t, n) {
36851
+ function tI(e, t, n) {
36852
36852
  const { encoding: r } = t, i = t.getScaleComponent(n), o = rE(n), s = r[o];
36853
36853
  if (RL({ step: e, offsetIsDiscrete: Se(s) && kE(s.type) }) === "offset" && pL(r, o)) {
36854
36854
  const l = t.getScaleComponent(o);
@@ -36864,19 +36864,19 @@ function t7(e, t, n) {
36864
36864
  } else
36865
36865
  return e.step;
36866
36866
  }
36867
- function n7(e, t) {
36867
+ function nI(e, t) {
36868
36868
  if (RL({ step: e, offsetIsDiscrete: Mt(t) }) === "offset")
36869
36869
  return { step: e.step };
36870
36870
  }
36871
36871
  function g0e(e, t, n) {
36872
36872
  const r = e === ea ? "x" : "y", i = t.getScaleComponent(r);
36873
36873
  if (!i)
36874
- return e7(r, t, n, { center: !0 });
36874
+ return eI(r, t, n, { center: !0 });
36875
36875
  const o = i.get("type"), s = t.scaleName(r), { markDef: a, config: l } = t;
36876
36876
  if (o === "band") {
36877
- const c = r7(r, t.size, t.config.view);
36877
+ const c = rI(r, t.size, t.config.view);
36878
36878
  if (oo(c)) {
36879
- const u = n7(c, n);
36879
+ const u = nI(c, n);
36880
36880
  if (u)
36881
36881
  return u;
36882
36882
  }
@@ -36898,7 +36898,7 @@ function g0e(e, t, n) {
36898
36898
  return UO(`Cannot use ${e} scale if ${r} scale is not discrete.`);
36899
36899
  }
36900
36900
  }
36901
- function r7(e, t, n) {
36901
+ function rI(e, t, n) {
36902
36902
  const r = e === yt ? "width" : "height", i = t[r];
36903
36903
  return i !== void 0 ? i : fm(n, r);
36904
36904
  }
@@ -36975,8 +36975,8 @@ function WM(e, t, n) {
36975
36975
  t.y ? t.y.signal : i
36976
36976
  ].join(", ")})`) : Math.min(r, i);
36977
36977
  }
36978
- function i7(e, t) {
36979
- gt(e) ? v0e(e, t) : s7(e, t);
36978
+ function iI(e, t) {
36979
+ gt(e) ? v0e(e, t) : sI(e, t);
36980
36980
  }
36981
36981
  function v0e(e, t) {
36982
36982
  const n = e.component.scales, { config: r, encoding: i, markDef: o, specifiedScales: s } = e;
@@ -37027,13 +37027,13 @@ const HM = {
37027
37027
  },
37028
37028
  zero: ({ channel: e, fieldOrDatumDef: t, domain: n, markDef: r, scaleType: i, config: o, hasSecondaryRangeChannel: s }) => A0e(e, t, n, r, i, o.scale, s)
37029
37029
  };
37030
- function o7(e) {
37031
- gt(e) ? f0e(e) : s7(e, "range");
37030
+ function oI(e) {
37031
+ gt(e) ? f0e(e) : sI(e, "range");
37032
37032
  }
37033
- function s7(e, t) {
37033
+ function sI(e, t) {
37034
37034
  const n = e.component.scales;
37035
37035
  for (const r of e.children)
37036
- t === "range" ? o7(r) : i7(r, t);
37036
+ t === "range" ? oI(r) : iI(r, t);
37037
37037
  for (const r of W(n)) {
37038
37038
  let i;
37039
37039
  for (const o of e.children) {
@@ -37057,7 +37057,7 @@ function x0e(e, t) {
37057
37057
  };
37058
37058
  }
37059
37059
  function w0e(e, t) {
37060
- if (ze([ir, mo, yo], e) && t !== "nominal")
37060
+ if (ze([or, mo, yo], e) && t !== "nominal")
37061
37061
  return "hcl";
37062
37062
  }
37063
37063
  function k0e(e, t, n, r, i, o) {
@@ -37149,7 +37149,7 @@ function N0e(e, t, n, r) {
37149
37149
  return "band";
37150
37150
  } else if (n.type === "arc" && e in sE)
37151
37151
  return "band";
37152
- const i = n[sr(e)];
37152
+ const i = n[ar(e)];
37153
37153
  return ul(i) || Gc(t) && t.axis?.tickBand ? "band" : "point";
37154
37154
  }
37155
37155
  case "temporal":
@@ -37162,25 +37162,25 @@ function N0e(e, t, n, r) {
37162
37162
  throw new Error(b9(t.type));
37163
37163
  }
37164
37164
  function T0e(e, { ignoreRange: t } = {}) {
37165
- a7(e), GI(e);
37165
+ aI(e), G7(e);
37166
37166
  for (const n of vde)
37167
- i7(e, n);
37168
- t || o7(e);
37167
+ iI(e, n);
37168
+ t || oI(e);
37169
37169
  }
37170
- function a7(e) {
37170
+ function aI(e) {
37171
37171
  gt(e) ? e.component.scales = F0e(e) : e.component.scales = R0e(e);
37172
37172
  }
37173
37173
  function F0e(e) {
37174
37174
  const { encoding: t, mark: n, markDef: r } = e, i = {};
37175
37175
  for (const o of aE) {
37176
37176
  const s = Wt(t[o]);
37177
- if (s && n === W9 && o === or && s.type === xu)
37177
+ if (s && n === W9 && o === sr && s.type === xu)
37178
37178
  continue;
37179
37179
  let a = s && s.scale;
37180
37180
  if (s && a !== null && a !== !1) {
37181
37181
  a ??= {};
37182
37182
  const l = gL(t, o), c = M0e(a, o, s, r, l);
37183
- i[o] = new QI(e.scaleName(`${o}`, !0), {
37183
+ i[o] = new Q7(e.scaleName(`${o}`, !0), {
37184
37184
  value: c,
37185
37185
  explicit: a.type === c
37186
37186
  });
@@ -37192,16 +37192,16 @@ const D0e = YL((e, t) => Z3(e) - Z3(t));
37192
37192
  function R0e(e) {
37193
37193
  const t = e.component.scales = {}, n = {}, r = e.component.resolve;
37194
37194
  for (const i of e.children) {
37195
- a7(i);
37195
+ aI(i);
37196
37196
  for (const o of W(i.component.scales))
37197
- if (r.scale[o] ??= II(o, e), r.scale[o] === "shared") {
37197
+ if (r.scale[o] ??= I7(o, e), r.scale[o] === "shared") {
37198
37198
  const s = n[o], a = i.component.scales[o].getWithExplicit("type");
37199
37199
  s ? ude(s.value, a.value) ? n[o] = Gs(s, a, "type", "scale", D0e) : (r.scale[o] = "independent", delete n[o]) : n[o] = a;
37200
37200
  }
37201
37201
  }
37202
37202
  for (const i of W(n)) {
37203
37203
  const o = e.scaleName(i, !0), s = n[i];
37204
- t[i] = new QI(o, s);
37204
+ t[i] = new Q7(o, s);
37205
37205
  for (const a of e.children) {
37206
37206
  const l = a.component.scales[i];
37207
37207
  l && (a.renameScale(l.get("name"), o), l.merged = !0);
@@ -37295,7 +37295,7 @@ class pC {
37295
37295
  T0e(this);
37296
37296
  }
37297
37297
  parseProjection() {
37298
- ZI(this);
37298
+ Z7(this);
37299
37299
  }
37300
37300
  /**
37301
37301
  * Rename top-level spec's size to be just width / height, ignoring model name.
@@ -37306,7 +37306,7 @@ class pC {
37306
37306
  this.getName("width") !== "width" && this.renameSignal(this.getName("width"), "width"), this.getName("height") !== "height" && this.renameSignal(this.getName("height"), "height");
37307
37307
  }
37308
37308
  parseLegends() {
37309
- jI(this);
37309
+ j7(this);
37310
37310
  }
37311
37311
  assembleEncodeFromView(t) {
37312
37312
  const { style: n, ...r } = t, i = {};
@@ -37351,7 +37351,7 @@ class pC {
37351
37351
  return Tge(this.component.axes, this.config);
37352
37352
  }
37353
37353
  assembleLegends() {
37354
- return YI(this);
37354
+ return Y7(this);
37355
37355
  }
37356
37356
  assembleProjections() {
37357
37357
  return n0e(this);
@@ -37373,7 +37373,7 @@ class pC {
37373
37373
  t = t.concat(this.assembleSignals()), t.length > 0 && (n.signals = t);
37374
37374
  const r = this.assembleLayout();
37375
37375
  r && (n.layout = r), n.marks = [].concat(this.assembleHeaderMarks(), this.assembleMarks());
37376
- const i = !this.parent || xr(this.parent) ? JI(this) : [];
37376
+ const i = !this.parent || xr(this.parent) ? J7(this) : [];
37377
37377
  i.length > 0 && (n.scales = i);
37378
37378
  const o = this.assembleAxes();
37379
37379
  o.length > 0 && (n.axes = o);
@@ -37397,7 +37397,7 @@ class pC {
37397
37397
  }
37398
37398
  getSizeSignalRef(t) {
37399
37399
  if (xr(this.parent)) {
37400
- const n = OI(t), r = W0(n), i = this.component.scales[r];
37400
+ const n = O7(t), r = W0(n), i = this.component.scales[r];
37401
37401
  if (i && !i.merged) {
37402
37402
  const o = i.get("type"), s = i.get("range");
37403
37403
  if (Mt(o) && Nl(s)) {
@@ -37405,7 +37405,7 @@ class pC {
37405
37405
  if (c) {
37406
37406
  const u = Q({ aggregate: "distinct", field: c }, { expr: "datum" });
37407
37407
  return {
37408
- signal: RI(a, i, u)
37408
+ signal: R7(a, i, u)
37409
37409
  };
37410
37410
  } else
37411
37411
  return G(uE(r)), null;
@@ -37486,7 +37486,7 @@ class pC {
37486
37486
  return this.component.axes.x?.some((t) => t.hasOrientSignalRef()) || this.component.axes.y?.some((t) => t.hasOrientSignalRef());
37487
37487
  }
37488
37488
  }
37489
- class l7 extends pC {
37489
+ class lI extends pC {
37490
37490
  /** Get "field" reference for Vega */
37491
37491
  vgField(t, n = {}) {
37492
37492
  const r = this.fieldDef(t);
@@ -37639,8 +37639,8 @@ class mc extends rt {
37639
37639
  });
37640
37640
  (o[0] || o[1]) && (t = new mc(t, o, null, n.getName(`geojson_${r++}`)));
37641
37641
  }
37642
- if (n.channelHasField(or)) {
37643
- const i = n.typedFieldDef(or);
37642
+ if (n.channelHasField(sr)) {
37643
+ const i = n.typedFieldDef(sr);
37644
37644
  i.type === xu && (t = new mc(t, null, i.field, n.getName(`geojson_${r++}`)));
37645
37645
  }
37646
37646
  return t;
@@ -37835,10 +37835,10 @@ class vd extends rt {
37835
37835
  const o = n.component.data.sources, { from: s } = r;
37836
37836
  let a = null;
37837
37837
  if (ype(s)) {
37838
- let l = f7(s.data, o);
37838
+ let l = fI(s.data, o);
37839
37839
  l || (l = new pl(s.data), o.push(l));
37840
37840
  const c = n.getName(`lookup_${i}`);
37841
- a = new Qn(l, c, wt.Lookup, n.component.data.outputNodeRefCounts), n.component.data.outputNodes[c] = a;
37841
+ a = new er(l, c, wt.Lookup, n.component.data.outputNodeRefCounts), n.component.data.outputNodes[c] = a;
37842
37842
  } else if (_pe(s)) {
37843
37843
  const l = s.param;
37844
37844
  r = { as: l, ...r };
@@ -37997,7 +37997,7 @@ class k1 extends rt {
37997
37997
  };
37998
37998
  }
37999
37999
  }
38000
- function c7(e) {
38000
+ function cI(e) {
38001
38001
  let t = 0;
38002
38002
  function n(r, i) {
38003
38003
  if (r instanceof pl && !r.isGenerator && !Xc(r.data) && (e.push(i), i = {
@@ -38011,13 +38011,13 @@ function c7(e) {
38011
38011
  i.name || (i.name = `data_${t++}`), !i.source || i.transform.length > 0 ? (e.push(i), r.data = i.name) : r.data = i.source, e.push(...r.assemble());
38012
38012
  return;
38013
38013
  }
38014
- switch ((r instanceof yh || r instanceof _h || r instanceof eu || r instanceof ku || r instanceof Zc || r instanceof bd || r instanceof pi || r instanceof vd || r instanceof Cu || r instanceof Ol || r instanceof _1 || r instanceof y1 || r instanceof g1 || r instanceof b1 || r instanceof v1 || r instanceof x1 || r instanceof Vs || r instanceof k1 || r instanceof w1 || r instanceof m1) && i.transform.push(r.assemble()), (r instanceof Xi || r instanceof Vi || r instanceof Ha || r instanceof qo || r instanceof mc) && i.transform.push(...r.assemble()), r instanceof Qn && (i.source && i.transform.length === 0 ? r.setSource(i.source) : r.parent instanceof Qn ? r.setSource(i.name) : (i.name || (i.name = `data_${t++}`), r.setSource(i.name), r.numChildren() === 1 && (e.push(i), i = {
38014
+ switch ((r instanceof yh || r instanceof _h || r instanceof eu || r instanceof ku || r instanceof Zc || r instanceof bd || r instanceof pi || r instanceof vd || r instanceof Cu || r instanceof Ol || r instanceof _1 || r instanceof y1 || r instanceof g1 || r instanceof b1 || r instanceof v1 || r instanceof x1 || r instanceof Vs || r instanceof k1 || r instanceof w1 || r instanceof m1) && i.transform.push(r.assemble()), (r instanceof Xi || r instanceof Vi || r instanceof Ha || r instanceof qo || r instanceof mc) && i.transform.push(...r.assemble()), r instanceof er && (i.source && i.transform.length === 0 ? r.setSource(i.source) : r.parent instanceof er ? r.setSource(i.name) : (i.name || (i.name = `data_${t++}`), r.setSource(i.name), r.numChildren() === 1 && (e.push(i), i = {
38015
38015
  name: null,
38016
38016
  source: i.name,
38017
38017
  transform: []
38018
38018
  }))), r.numChildren()) {
38019
38019
  case 0:
38020
- r instanceof Qn && (!i.source || i.transform.length > 0) && e.push(i);
38020
+ r instanceof er && (!i.source || i.transform.length > 0) && e.push(i);
38021
38021
  break;
38022
38022
  case 1:
38023
38023
  n(r.children[0], i);
@@ -38039,7 +38039,7 @@ function c7(e) {
38039
38039
  return n;
38040
38040
  }
38041
38041
  function O0e(e) {
38042
- const t = [], n = c7(t);
38042
+ const t = [], n = cI(t);
38043
38043
  for (const r of e.children)
38044
38044
  n(r, {
38045
38045
  source: e.name,
@@ -38049,7 +38049,7 @@ function O0e(e) {
38049
38049
  return t;
38050
38050
  }
38051
38051
  function L0e(e, t) {
38052
- const n = [], r = c7(n);
38052
+ const n = [], r = cI(n);
38053
38053
  let i = 0;
38054
38054
  for (const s of e.sources) {
38055
38055
  s.hasName() || (s.dataName = `source_${i++}`);
@@ -38089,11 +38089,11 @@ function z0e(e, t) {
38089
38089
  o.layoutHeaders[t] = {
38090
38090
  title: s.header !== null ? l : null,
38091
38091
  facetFieldDef: s,
38092
- [f]: t === "facet" ? [] : [u7(e, t, u)]
38092
+ [f]: t === "facet" ? [] : [uI(e, t, u)]
38093
38093
  };
38094
38094
  }
38095
38095
  }
38096
- function u7(e, t, n) {
38096
+ function uI(e, t, n) {
38097
38097
  const r = t === "row" ? "height" : "width";
38098
38098
  return {
38099
38099
  labels: n,
@@ -38109,7 +38109,7 @@ function GM(e, t) {
38109
38109
  const o = t === "x" ? "column" : "row", s = r[o];
38110
38110
  for (const a of n.component.axes[t]) {
38111
38111
  const l = I0e(a.get("orient"));
38112
- s[l] ??= [u7(e, o, !1)];
38112
+ s[l] ??= [uI(e, o, !1)];
38113
38113
  const c = Nf(a, "main", e.config, { header: !0 });
38114
38114
  c && s[l][0].axes.push(c), a.mainExtracted = !0;
38115
38115
  }
@@ -38129,10 +38129,10 @@ function gC(e) {
38129
38129
  t.parseLayoutSize();
38130
38130
  }
38131
38131
  function gm(e, t) {
38132
- const n = OI(t), r = W0(n), i = e.component.resolve, o = e.component.layoutSize;
38132
+ const n = O7(t), r = W0(n), i = e.component.resolve, o = e.component.layoutSize;
38133
38133
  let s;
38134
38134
  for (const a of e.children) {
38135
- const l = a.component.layoutSize.getWithExplicit(n), c = i.scale[r] ?? II(r, e);
38135
+ const l = a.component.layoutSize.getWithExplicit(n), c = i.scale[r] ?? I7(r, e);
38136
38136
  if (c === "independent" && l.value === "step") {
38137
38137
  s = void 0;
38138
38138
  break;
@@ -38159,7 +38159,7 @@ function gm(e, t) {
38159
38159
  function j0e(e) {
38160
38160
  const { size: t, component: n } = e;
38161
38161
  for (const r of ns) {
38162
- const i = sr(r);
38162
+ const i = ar(r);
38163
38163
  if (t[i] != null && t[i] != null) {
38164
38164
  const o = t[i];
38165
38165
  n.layoutSize.set(i, oo(o) ? "step" : o, !0);
@@ -38190,7 +38190,7 @@ function q0e(e, t) {
38190
38190
  function Wv(e, t, n) {
38191
38191
  return Q(t, { suffix: `by_${Q(e)}`, ...n });
38192
38192
  }
38193
- class Gf extends l7 {
38193
+ class Gf extends lI {
38194
38194
  facet;
38195
38195
  child;
38196
38196
  children;
@@ -38426,7 +38426,7 @@ function W0e(e, t) {
38426
38426
  }
38427
38427
  return null;
38428
38428
  }
38429
- function f7(e, t) {
38429
+ function fI(e, t) {
38430
38430
  for (const n of t) {
38431
38431
  const r = n.data;
38432
38432
  if (e.name && n.hasName() && e.name !== n.dataName)
@@ -38457,7 +38457,7 @@ function H0e(e, t) {
38457
38457
  const r = new pl({ values: [] });
38458
38458
  return t.push(r), r;
38459
38459
  }
38460
- const n = f7(e.data, t);
38460
+ const n = fI(e.data, t);
38461
38461
  if (n)
38462
38462
  return Fs(e.data) || (n.data.format = jO({}, e.data.format, n.data.format)), !n.hasName() && e.data.name && (n.dataName = e.data.name), n;
38463
38463
  {
@@ -38566,7 +38566,7 @@ function E1(e) {
38566
38566
  };
38567
38567
  }
38568
38568
  function rp(e, t, n) {
38569
- const { outputNodes: r, outputNodeRefCounts: i } = t.component.data, o = t.getDataName(e), s = new Qn(n, o, e, i);
38569
+ const { outputNodes: r, outputNodeRefCounts: i } = t.component.data, o = t.getDataName(e), s = new er(n, o, e, i);
38570
38570
  return r[o] = s, s;
38571
38571
  }
38572
38572
  class V0e extends pC {
@@ -38655,7 +38655,7 @@ const X0e = {
38655
38655
  ...dL,
38656
38656
  labelExpr: 1,
38657
38657
  encode: 1
38658
- }, d7 = W(X0e);
38658
+ }, dI = W(X0e);
38659
38659
  class mC extends is {
38660
38660
  explicit;
38661
38661
  implicit;
@@ -38785,7 +38785,7 @@ function e1e(e, t) {
38785
38785
  return e;
38786
38786
  }
38787
38787
  function t1e(e, t) {
38788
- for (const n of d7) {
38788
+ for (const n of dI) {
38789
38789
  const r = Gs(
38790
38790
  e.getWithExplicit(n),
38791
38791
  t.getWithExplicit(n),
@@ -38823,7 +38823,7 @@ function n1e(e, t, n, r, i) {
38823
38823
  case "encode":
38824
38824
  return !!n.encoding || !!n.labelAngle;
38825
38825
  case "title":
38826
- if (e === NI(r, i))
38826
+ if (e === N7(r, i))
38827
38827
  return !0;
38828
38828
  }
38829
38829
  return e === n[t];
@@ -38861,7 +38861,7 @@ function i1e(e, t) {
38861
38861
  mark: o,
38862
38862
  config: s
38863
38863
  };
38864
- for (const y of d7) {
38864
+ for (const y of dI) {
38865
38865
  const _ = y in TM ? TM[y](p) : iM(y) ? n[y] : void 0, v = _ !== void 0, x = n1e(_, y, n, t, e);
38866
38866
  if (v && x)
38867
38867
  r.set(y, _, x);
@@ -38879,14 +38879,14 @@ function i1e(e, t) {
38879
38879
  const g = n.encoding ?? {}, m = fL.reduce((y, _) => {
38880
38880
  if (!r.hasAxisPart(_))
38881
38881
  return y;
38882
- const v = LI(g[_] ?? {}, t), x = _ === "labels" ? K0e(t, e, v) : v;
38882
+ const v = L7(g[_] ?? {}, t), x = _ === "labels" ? K0e(t, e, v) : v;
38883
38883
  return x !== void 0 && !lt(x) && (y[_] = { update: x }), y;
38884
38884
  }, {});
38885
38885
  return lt(m) || r.set("encode", m, !!n.encoding || n.labelAngle !== void 0), r;
38886
38886
  }
38887
38887
  function o1e({ encoding: e, size: t }) {
38888
38888
  for (const n of ns) {
38889
- const r = sr(n);
38889
+ const r = ar(n);
38890
38890
  oo(t[r]) && Ss(e[n]) && (delete t[r], G(w9(r)));
38891
38891
  }
38892
38892
  return t;
@@ -38902,8 +38902,8 @@ const s1e = {
38902
38902
  orient: "ignore",
38903
38903
  theta: "ignore"
38904
38904
  }),
38905
- ...zn("x", e, { defaultPos: "mid" }),
38906
- ...zn("y", e, { defaultPos: "mid" }),
38905
+ ...Bn("x", e, { defaultPos: "mid" }),
38906
+ ...Bn("y", e, { defaultPos: "mid" }),
38907
38907
  // arcs are rectangles in polar coordinates
38908
38908
  ...Yo(e, "radius"),
38909
38909
  ...Yo(e, "theta")
@@ -38992,8 +38992,8 @@ const s1e = {
38992
38992
  orient: "ignore",
38993
38993
  theta: "ignore"
38994
38994
  }),
38995
- ...zn("x", e, { defaultPos: "mid" }),
38996
- ...zn("y", e, { defaultPos: "mid" }),
38995
+ ...Bn("x", e, { defaultPos: "mid" }),
38996
+ ...Bn("y", e, { defaultPos: "mid" }),
38997
38997
  ...an("size", e, {
38998
38998
  vgChannel: "strokeWidth"
38999
38999
  // VL's line size is strokeWidth
@@ -39011,8 +39011,8 @@ const s1e = {
39011
39011
  orient: "ignore",
39012
39012
  theta: "ignore"
39013
39013
  }),
39014
- ...zn("x", e, { defaultPos: "mid" }),
39015
- ...zn("y", e, { defaultPos: "mid" }),
39014
+ ...Bn("x", e, { defaultPos: "mid" }),
39015
+ ...Bn("y", e, { defaultPos: "mid" }),
39016
39016
  ...an("size", e),
39017
39017
  ...nC(e)
39018
39018
  })
@@ -39028,8 +39028,8 @@ function yC(e, t) {
39028
39028
  orient: "ignore",
39029
39029
  theta: "ignore"
39030
39030
  }),
39031
- ...zn("x", e, { defaultPos: "mid" }),
39032
- ...zn("y", e, { defaultPos: "mid" }),
39031
+ ...Bn("x", e, { defaultPos: "mid" }),
39032
+ ...Bn("y", e, { defaultPos: "mid" }),
39033
39033
  ...an("size", e),
39034
39034
  ...an("angle", e),
39035
39035
  ...h1e(e, n, t)
@@ -39105,8 +39105,8 @@ const p1e = {
39105
39105
  orient: "ignore",
39106
39106
  theta: "include"
39107
39107
  }),
39108
- ...zn("x", e, { defaultPos: "mid" }),
39109
- ...zn("y", e, { defaultPos: "mid" }),
39108
+ ...Bn("x", e, { defaultPos: "mid" }),
39109
+ ...Bn("y", e, { defaultPos: "mid" }),
39110
39110
  ...QE(e),
39111
39111
  ...an("size", e, {
39112
39112
  vgChannel: "fontSize"
@@ -39115,8 +39115,8 @@ const p1e = {
39115
39115
  ...an("angle", e),
39116
39116
  ...$M("align", v1e(e.markDef, n, t)),
39117
39117
  ...$M("baseline", x1e(e.markDef, n, t)),
39118
- ...zn("radius", e, { defaultPos: null }),
39119
- ...zn("theta", e, { defaultPos: null })
39118
+ ...Bn("radius", e, { defaultPos: null }),
39119
+ ...Bn("theta", e, { defaultPos: null })
39120
39120
  };
39121
39121
  }
39122
39122
  };
@@ -39142,7 +39142,7 @@ const w1e = {
39142
39142
  theta: "ignore"
39143
39143
  }),
39144
39144
  ...Yo(e, i),
39145
- ...zn(o, e, {
39145
+ ...Bn(o, e, {
39146
39146
  defaultPos: "mid",
39147
39147
  vgChannel: o === "y" ? "yc" : "xc"
39148
39148
  }),
@@ -39350,7 +39350,7 @@ function M1e(e) {
39350
39350
  interactive: t > 0 || e.mark === "geoshape" || !!e.encoding.tooltip || !!e.markDef.tooltip
39351
39351
  } : null;
39352
39352
  }
39353
- class h7 extends l7 {
39353
+ class hI extends lI {
39354
39354
  markDef;
39355
39355
  encoding;
39356
39356
  specifiedScales = {};
@@ -39467,7 +39467,7 @@ class h7 extends l7 {
39467
39467
  return tge(this, t);
39468
39468
  }
39469
39469
  assembleSignals() {
39470
- return [...$I(this), ...Qpe(this, [])];
39470
+ return [...$7(this), ...Qpe(this, [])];
39471
39471
  }
39472
39472
  assembleSelectionData(t) {
39473
39473
  return nge(this, t);
@@ -39481,10 +39481,10 @@ class h7 extends l7 {
39481
39481
  /**
39482
39482
  * Corrects the data references in marks after assemble.
39483
39483
  */
39484
- correctDataNames = (t) => (t.from?.data && (t.from.data = this.lookupDataSource(t.from.data), "time" in this.encoding && (t.from.data = t.from.data + eI)), t.from?.facet?.data && (t.from.facet.data = this.lookupDataSource(t.from.facet.data)), t);
39484
+ correctDataNames = (t) => (t.from?.data && (t.from.data = this.lookupDataSource(t.from.data), "time" in this.encoding && (t.from.data = t.from.data + e7)), t.from?.facet?.data && (t.from.facet.data = this.lookupDataSource(t.from.facet.data)), t);
39485
39485
  assembleMarks() {
39486
39486
  let t = this.component.mark ?? [];
39487
- return (!this.parent || !Su(this.parent)) && (t = iI(this, t)), t.map(this.correctDataNames);
39487
+ return (!this.parent || !Su(this.parent)) && (t = i7(this, t)), t.map(this.correctDataNames);
39488
39488
  }
39489
39489
  assembleGroupStyle() {
39490
39490
  const { style: t } = this.view || {};
@@ -39505,7 +39505,7 @@ class h7 extends l7 {
39505
39505
  }
39506
39506
  typedFieldDef(t) {
39507
39507
  const n = this.fieldDef(t);
39508
- return Wn(n) ? n : null;
39508
+ return Hn(n) ? n : null;
39509
39509
  }
39510
39510
  }
39511
39511
  class bC extends pC {
@@ -39523,7 +39523,7 @@ class bC extends pC {
39523
39523
  if (l1(a))
39524
39524
  return new bC(a, this, this.getName(`layer_${l}`), s, o);
39525
39525
  if (rs(a))
39526
- return new h7(a, this, this.getName(`layer_${l}`), s, o);
39526
+ return new hI(a, this, this.getName(`layer_${l}`), s, o);
39527
39527
  throw new Error(cE(a));
39528
39528
  });
39529
39529
  }
@@ -39556,7 +39556,7 @@ class bC extends pC {
39556
39556
  }
39557
39557
  // TODO: Support same named selections across children.
39558
39558
  assembleSignals() {
39559
- return this.children.reduce((t, n) => t.concat(n.assembleSignals()), $I(this));
39559
+ return this.children.reduce((t, n) => t.concat(n.assembleSignals()), $7(this));
39560
39560
  }
39561
39561
  assembleLayoutSignals() {
39562
39562
  return this.children.reduce((t, n) => t.concat(n.assembleLayoutSignals()), sC(this));
@@ -39587,7 +39587,7 @@ class bC extends pC {
39587
39587
  return rge(this, this.children.flatMap((t) => t.assembleMarks()));
39588
39588
  }
39589
39589
  assembleLegends() {
39590
- return this.children.reduce((t, n) => t.concat(n.assembleLegends()), YI(this));
39590
+ return this.children.reduce((t, n) => t.concat(n.assembleLegends()), Y7(this));
39591
39591
  }
39592
39592
  }
39593
39593
  function vC(e, t, n, r, i) {
@@ -39596,7 +39596,7 @@ function vC(e, t, n, r, i) {
39596
39596
  if (l1(e))
39597
39597
  return new bC(e, t, n, r, i);
39598
39598
  if (rs(e))
39599
- return new h7(e, t, n, r, i);
39599
+ return new hI(e, t, n, r, i);
39600
39600
  if (Lhe(e))
39601
39601
  return new V0e(e, t, n, i);
39602
39602
  throw new Error(cE(e));
@@ -39704,7 +39704,7 @@ const D1e = Jce.version, R1e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obj
39704
39704
  varName: mt,
39705
39705
  version: D1e
39706
39706
  }, Symbol.toStringTag, { value: "Module" }));
39707
- function p7(e) {
39707
+ function pI(e) {
39708
39708
  const [t, n] = /schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1, 3);
39709
39709
  return { library: t, version: n };
39710
39710
  }
@@ -40198,8 +40198,8 @@ const Xl = "#fff", XM = "#888", I1e = {
40198
40198
  ],
40199
40199
  heatmap: ["#c6dafc", "#5e97f6", "#2a56c6"]
40200
40200
  }
40201
- }, xC = (e) => e * (1 / 3 + 1), iN = xC(9), oN = xC(10), sN = xC(12), af = "Segoe UI", aN = "wf_standard-font, helvetica, arial, sans-serif", lN = "#252423", lf = "#605E5C", cN = "transparent", tye = "#C8C6C4", ei = "#118DFF", nye = "#12239E", rye = "#E66C37", iye = "#6B007B", oye = "#E044A7", sye = "#744EC2", aye = "#D9B300", lye = "#D64550", g7 = ei, m7 = "#DEEFFF", uN = [m7, g7], cye = [
40202
- m7,
40201
+ }, xC = (e) => e * (1 / 3 + 1), iN = xC(9), oN = xC(10), sN = xC(12), af = "Segoe UI", aN = "wf_standard-font, helvetica, arial, sans-serif", lN = "#252423", lf = "#605E5C", cN = "transparent", tye = "#C8C6C4", ei = "#118DFF", nye = "#12239E", rye = "#E66C37", iye = "#6B007B", oye = "#E044A7", sye = "#744EC2", aye = "#D9B300", lye = "#D64550", gI = ei, mI = "#DEEFFF", uN = [mI, gI], cye = [
40202
+ mI,
40203
40203
  "#c7e4ff",
40204
40204
  "#b0d9ff",
40205
40205
  "#9aceff",
@@ -40208,7 +40208,7 @@ const Xl = "#fff", XM = "#888", I1e = {
40208
40208
  "#55aeff",
40209
40209
  "#3fa3ff",
40210
40210
  "#2898ff",
40211
- g7
40211
+ gI
40212
40212
  ], uye = {
40213
40213
  view: { stroke: cN },
40214
40214
  background: cN,
@@ -40541,10 +40541,10 @@ var wye = `#vg-tooltip-element {
40541
40541
  color: #bfbfbf;
40542
40542
  }
40543
40543
  `;
40544
- const y7 = "vg-tooltip-element", kye = {
40544
+ const yI = "vg-tooltip-element", kye = {
40545
40545
  offsetX: 10,
40546
40546
  offsetY: 10,
40547
- id: y7,
40547
+ id: yI,
40548
40548
  styleId: "vega-tooltip-style",
40549
40549
  theme: "light",
40550
40550
  disableDefaultStyle: !1,
@@ -40561,21 +40561,21 @@ function Eye(e) {
40561
40561
  function Cye(e) {
40562
40562
  if (!/^[A-Za-z]+[-:.\w]*$/.test(e))
40563
40563
  throw new Error("Invalid HTML ID");
40564
- return wye.toString().replaceAll(y7, e);
40564
+ return wye.toString().replaceAll(yI, e);
40565
40565
  }
40566
- function _7(e, t, { offsetX: n, offsetY: r }) {
40567
- const i = b7({ x1: e.clientX, x2: e.clientX, y1: e.clientY, y2: e.clientY }, t, n, r), o = ["bottom-right", "bottom-left", "top-right", "top-left"];
40566
+ function _I(e, t, { offsetX: n, offsetY: r }) {
40567
+ const i = bI({ x1: e.clientX, x2: e.clientX, y1: e.clientY, y2: e.clientY }, t, n, r), o = ["bottom-right", "bottom-left", "top-right", "top-left"];
40568
40568
  for (const s of o)
40569
- if (v7(i[s], t))
40569
+ if (vI(i[s], t))
40570
40570
  return i[s];
40571
40571
  return i["top-left"];
40572
40572
  }
40573
40573
  function Sye(e, t, n, r, i) {
40574
- const { position: o, offsetX: s, offsetY: a } = i, l = e._el.getBoundingClientRect(), c = e._origin, u = $ye(l, c, n), f = b7(u, r, s, a), d = Array.isArray(o) ? o : [o];
40574
+ const { position: o, offsetX: s, offsetY: a } = i, l = e._el.getBoundingClientRect(), c = e._origin, u = $ye(l, c, n), f = bI(u, r, s, a), d = Array.isArray(o) ? o : [o];
40575
40575
  for (const h of d)
40576
- if (v7(f[h], r) && !Aye(t, f[h], r))
40576
+ if (vI(f[h], r) && !Aye(t, f[h], r))
40577
40577
  return f[h];
40578
- return _7(t, r, i);
40578
+ return _I(t, r, i);
40579
40579
  }
40580
40580
  function $ye(e, t, n) {
40581
40581
  const r = n.isVoronoi ? n.datum.bounds : n.bounds;
@@ -40590,7 +40590,7 @@ function $ye(e, t, n) {
40590
40590
  y2: o + l
40591
40591
  };
40592
40592
  }
40593
- function b7(e, t, n, r) {
40593
+ function bI(e, t, n, r) {
40594
40594
  const i = (e.x1 + e.x2) / 2, o = (e.y1 + e.y2) / 2, s = e.x1 - t.width - n, a = i - t.width / 2, l = e.x2 + n, c = e.y1 - t.height - r, u = o - t.height / 2, f = e.y2 + r;
40595
40595
  return {
40596
40596
  top: { x: a, y: c },
@@ -40603,7 +40603,7 @@ function b7(e, t, n, r) {
40603
40603
  "bottom-right": { x: l, y: f }
40604
40604
  };
40605
40605
  }
40606
- function v7(e, t) {
40606
+ function vI(e, t) {
40607
40607
  return e.x >= 0 && e.y >= 0 && e.x + t.width <= window.innerWidth && e.y + t.height <= window.innerHeight;
40608
40608
  }
40609
40609
  function Aye(e, t, n) {
@@ -40646,7 +40646,7 @@ class Mye {
40646
40646
  return;
40647
40647
  }
40648
40648
  this.el.innerHTML = this.options.formatTooltip(i, this.options.sanitize, this.options.maxDepth, this.options.baseURL), this.el.classList.add("visible", `${this.options.theme}-theme`);
40649
- const { x: o, y: s } = this.options.anchor === "mark" ? Sye(t, n, r, this.el.getBoundingClientRect(), this.options) : _7(n, this.el.getBoundingClientRect(), this.options);
40649
+ const { x: o, y: s } = this.options.anchor === "mark" ? Sye(t, n, r, this.el.getBoundingClientRect(), this.options) : _I(n, this.el.getBoundingClientRect(), this.options);
40650
40650
  this.el.style.top = `${s}px`, this.el.style.left = `${o}px`;
40651
40651
  }
40652
40652
  }
@@ -40707,7 +40707,7 @@ function Vv(e) {
40707
40707
  function Sa(e) {
40708
40708
  return e.indexOf("/") === -1 && e.indexOf("~") === -1 ? e : e.replace(/~/g, "~0").replace(/\//g, "~1");
40709
40709
  }
40710
- function x7(e) {
40710
+ function xI(e) {
40711
40711
  return e.replace(/~1/g, "/").replace(/~0/g, "~");
40712
40712
  }
40713
40713
  function Yv(e) {
@@ -40735,7 +40735,7 @@ function dN(e, t) {
40735
40735
  return n.join(`
40736
40736
  `);
40737
40737
  }
40738
- var w7 = (
40738
+ var wI = (
40739
40739
  /** @class */
40740
40740
  (function(e) {
40741
40741
  Nye(t, e);
@@ -40745,7 +40745,7 @@ var w7 = (
40745
40745
  }
40746
40746
  return t;
40747
40747
  })(Error)
40748
- ), St = w7, Fye = yr, sc = {
40748
+ ), St = wI, Fye = yr, sc = {
40749
40749
  add: function(e, t, n) {
40750
40750
  return e[t] = this.value, { newDocument: n };
40751
40751
  },
@@ -40822,7 +40822,7 @@ function Ga(e, t, n, r, i, o) {
40822
40822
  r || (e = yr(e));
40823
40823
  var a = t.path || "", l = a.split("/"), c = e, u = 1, f = l.length, d = void 0, h = void 0, p = void 0;
40824
40824
  for (typeof n == "function" ? p = n : p = ym; ; ) {
40825
- if (h = l[u], h && h.indexOf("~") != -1 && (h = x7(h)), i && (h == "__proto__" || h == "prototype" && u > 0 && l[u - 1] == "constructor"))
40825
+ if (h = l[u], h && h.indexOf("~") != -1 && (h = xI(h)), i && (h == "__proto__" || h == "prototype" && u > 0 && l[u - 1] == "constructor"))
40826
40826
  throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");
40827
40827
  if (n && d === void 0 && (c[h] === void 0 ? d = l.slice(0, u).join("/") : u == f - 1 && (d = t.path), d !== void 0 && p(t, 0, e, d)), u++, Array.isArray(c)) {
40828
40828
  if (h === "-")
@@ -40888,14 +40888,14 @@ function ym(e, t, n, r) {
40888
40888
  if (e.path !== r)
40889
40889
  throw new St("Cannot perform the operation at a path that does not exist", "OPERATION_PATH_UNRESOLVABLE", t, e, n);
40890
40890
  } else if (e.op === "move" || e.op === "copy") {
40891
- var s = { op: "_get", path: e.from, value: void 0 }, a = k7([s], n);
40891
+ var s = { op: "_get", path: e.from, value: void 0 }, a = kI([s], n);
40892
40892
  if (a && a.name === "OPERATION_PATH_UNRESOLVABLE")
40893
40893
  throw new St("Cannot perform the operation from a path that does not exist", "OPERATION_FROM_UNRESOLVABLE", t, e, n);
40894
40894
  }
40895
40895
  }
40896
40896
  } else throw new St("Operation `op` property is not one of operations defined in RFC-6902", "OPERATION_OP_INVALID", t, e, n);
40897
40897
  }
40898
- function k7(e, t, n) {
40898
+ function kI(e, t, n) {
40899
40899
  try {
40900
40900
  if (!Array.isArray(e))
40901
40901
  throw new St("Patch sequence must be an array", "SEQUENCE_NOT_AN_ARRAY");
@@ -40949,7 +40949,7 @@ var Oye = /* @__PURE__ */ Object.freeze({
40949
40949
  applyReducer: Rye,
40950
40950
  deepClone: Fye,
40951
40951
  getValueByPointer: mm,
40952
- validate: k7,
40952
+ validate: kI,
40953
40953
  validator: ym
40954
40954
  });
40955
40955
  var wC = /* @__PURE__ */ new WeakMap(), Lye = (
@@ -41041,10 +41041,10 @@ var Wye = /* @__PURE__ */ Object.freeze({
41041
41041
  unobserve: Uye
41042
41042
  });
41043
41043
  Object.assign({}, Oye, Wye, {
41044
- JsonPatchError: w7,
41044
+ JsonPatchError: wI,
41045
41045
  deepClone: yr,
41046
41046
  escapePathComponent: Sa,
41047
- unescapePathComponent: x7
41047
+ unescapePathComponent: xI
41048
41048
  });
41049
41049
  function Hye(e) {
41050
41050
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -41438,11 +41438,11 @@ function t_e() {
41438
41438
  }
41439
41439
  }
41440
41440
  w_ = t;
41441
- const n = EC(), { safeRe: r, t: i } = SC(), o = e_e(), s = $1(), a = $C(), l = E7();
41441
+ const n = EC(), { safeRe: r, t: i } = SC(), o = e_e(), s = $1(), a = $C(), l = EI();
41442
41442
  return w_;
41443
41443
  }
41444
41444
  var k_, MN;
41445
- function E7() {
41445
+ function EI() {
41446
41446
  if (MN) return k_;
41447
41447
  MN = 1;
41448
41448
  const e = /\s+/g;
@@ -41583,7 +41583,7 @@ var E_, NN;
41583
41583
  function n_e() {
41584
41584
  if (NN) return E_;
41585
41585
  NN = 1;
41586
- const e = E7();
41586
+ const e = EI();
41587
41587
  return E_ = (n, r, i) => {
41588
41588
  try {
41589
41589
  r = new e(r, i);
@@ -41593,7 +41593,7 @@ function n_e() {
41593
41593
  return r.test(n);
41594
41594
  }, E_;
41595
41595
  }
41596
- var r_e = n_e(), C7 = /* @__PURE__ */ Hye(r_e);
41596
+ var r_e = n_e(), CI = /* @__PURE__ */ Hye(r_e);
41597
41597
  function i_e(e, t, n) {
41598
41598
  const r = e.open(t), i = 250, { origin: o } = new URL(t);
41599
41599
  let s = 40;
@@ -41725,7 +41725,7 @@ var o_e = `.vega-embed {
41725
41725
  }
41726
41726
  }
41727
41727
  `;
41728
- function S7(e, ...t) {
41728
+ function SI(e, ...t) {
41729
41729
  for (const n of t)
41730
41730
  s_e(e, n);
41731
41731
  return e;
@@ -41769,18 +41769,18 @@ function FN(e, t, n, r) {
41769
41769
  }
41770
41770
  function h_e(e, t, n) {
41771
41771
  if (e.$schema) {
41772
- const r = p7(e.$schema);
41772
+ const r = pI(e.$schema);
41773
41773
  n && n !== r.library && t.warn(`The given visualization spec is written in ${Tf[r.library]}, but mode argument sets ${Tf[n] ?? n}.`);
41774
41774
  const i = r.library;
41775
- return C7(_m[i], `^${r.version.slice(1)}`) || t.warn(`The input spec uses ${Tf[i]} ${r.version}, but the current version of ${Tf[i]} is v${_m[i]}.`), i;
41775
+ return CI(_m[i], `^${r.version.slice(1)}`) || t.warn(`The input spec uses ${Tf[i]} ${r.version}, but the current version of ${Tf[i]} is v${_m[i]}.`), i;
41776
41776
  }
41777
41777
  return "mark" in e || "encoding" in e || "layer" in e || "hconcat" in e || "vconcat" in e || "facet" in e || "repeat" in e ? "vega-lite" : "marks" in e || "signals" in e || "scales" in e || "axes" in e ? "vega" : n ?? "vega";
41778
41778
  }
41779
- function $7(e) {
41779
+ function $I(e) {
41780
41780
  return !!(e && "load" in e);
41781
41781
  }
41782
41782
  function DN(e) {
41783
- return $7(e) ? e : Li.loader(e);
41783
+ return $I(e) ? e : Li.loader(e);
41784
41784
  }
41785
41785
  function p_e(e) {
41786
41786
  const t = e.usermeta?.embedOptions ?? {};
@@ -41792,7 +41792,7 @@ async function g_e(e, t, n = {}) {
41792
41792
  const o = p_e(r), s = o.loader;
41793
41793
  (!i || s) && (i = DN(n.loader ?? s));
41794
41794
  const a = await RN(o, i), l = await RN(n, i), c = {
41795
- ...S7(l, a),
41795
+ ...SI(l, a),
41796
41796
  config: nu(l.config ?? {}, a.config ?? {})
41797
41797
  };
41798
41798
  return await y_e(e, r, c, i);
@@ -41810,7 +41810,7 @@ function m_e(e) {
41810
41810
  return t instanceof ShadowRoot ? { root: t, rootContainer: t } : { root: document, rootContainer: document.head ?? document.body };
41811
41811
  }
41812
41812
  async function y_e(e, t, n = {}, r) {
41813
- const i = n.theme ? nu(bye[n.theme], n.config ?? {}) : n.config, o = yl(n.actions) ? n.actions : S7({}, a_e, n.actions ?? {}), s = { ...l_e, ...n.i18n }, a = n.renderer ?? "svg", l = n.logger ?? km(Li.Warn);
41813
+ const i = n.theme ? nu(bye[n.theme], n.config ?? {}) : n.config, o = yl(n.actions) ? n.actions : SI({}, a_e, n.actions ?? {}), s = { ...l_e, ...n.i18n }, a = n.renderer ?? "svg", l = n.logger ?? km(Li.Warn);
41814
41814
  n.logLevel !== void 0 && l.level(n.logLevel);
41815
41815
  const c = n.downloadFileName ?? "visualization", u = typeof e == "string" ? document.querySelector(e) : e;
41816
41816
  if (!u)
@@ -41825,8 +41825,8 @@ async function y_e(e, t, n = {}, r) {
41825
41825
  const f = h_e(t, l, n.mode);
41826
41826
  let d = c_e[f](t, l, i);
41827
41827
  if (f === "vega-lite" && d.$schema) {
41828
- const w = p7(d.$schema);
41829
- C7(_m.vega, `^${w.version.slice(1)}`) || l.warn(`The compiled spec uses Vega ${w.version}, but current version is v${_m.vega}.`);
41828
+ const w = pI(d.$schema);
41829
+ CI(_m.vega, `^${w.version.slice(1)}`) || l.warn(`The compiled spec uses Vega ${w.version}, but current version is v${_m.vega}.`);
41830
41830
  }
41831
41831
  u.classList.add("vega-embed"), o && u.classList.add("has-actions"), u.innerHTML = "";
41832
41832
  let h = u;
@@ -41850,7 +41850,7 @@ async function y_e(e, t, n = {}, r) {
41850
41850
  const { type: k } = E;
41851
41851
  k == "fit-x" ? (h.classList.add("fit-x"), h.classList.remove("fit-y")) : k == "fit-y" ? (h.classList.remove("fit-x"), h.classList.add("fit-y")) : k == "fit" ? h.classList.add("fit-x", "fit-y") : h.classList.remove("fit-x", "fit-y");
41852
41852
  }), n.tooltip !== !1) {
41853
- const { loader: w, tooltip: E } = n, k = w && !$7(w) ? w?.baseURL : void 0, C = d_e(E) ? E : (
41853
+ const { loader: w, tooltip: E } = n, k = w && !$I(w) ? w?.baseURL : void 0, C = d_e(E) ? E : (
41854
41854
  // user provided boolean true or tooltip options
41855
41855
  new Mye({ baseURL: k, ...E === !0 ? {} : E }).call
41856
41856
  );
@@ -41971,7 +41971,7 @@ function k_e(e, t) {
41971
41971
  const n = La.useRef(null), r = La.useRef(0);
41972
41972
  (!n.current || !x_e(t, n.current)) && (r.current += 1), n.current = t, La.useEffect(e, [r.current]);
41973
41973
  }
41974
- const A7 = La.forwardRef(
41974
+ const AI = La.forwardRef(
41975
41975
  (e, t) => {
41976
41976
  const { spec: n, options: r, onEmbed: i, onError: o, ...s } = e, a = La.useRef(null);
41977
41977
  return La.useImperativeHandle(t, () => {
@@ -41987,7 +41987,7 @@ const A7 = La.forwardRef(
41987
41987
  }), /* @__PURE__ */ b("div", { ref: a, ...s });
41988
41988
  }
41989
41989
  );
41990
- A7.displayName = "VegaEmbed";
41990
+ AI.displayName = "VegaEmbed";
41991
41991
  const E_e = "_container_1erxu_1", C_e = "_header_1erxu_13", S_e = "_title_box_1erxu_20", $_e = "_title_1erxu_20", A_e = "_description_1erxu_32", M_e = "_chart_select_1erxu_38", N_e = "_chart_wrapper_1erxu_53", T_e = "_chart_time_1erxu_61", ss = {
41992
41992
  container: E_e,
41993
41993
  header: C_e,
@@ -42030,7 +42030,7 @@ function F_e(e) {
42030
42030
  direction: "vertical",
42031
42031
  style: r?.ChartMessageTemplate?.style,
42032
42032
  children: [
42033
- /* @__PURE__ */ b(er, { quickReplies: n?.quickReplies, references: n?.references, message: t, children: /* @__PURE__ */ D("div", { className: ss.container, style: h, children: [
42033
+ /* @__PURE__ */ b(tr, { quickReplies: n?.quickReplies, references: n?.references, message: t, children: /* @__PURE__ */ D("div", { className: ss.container, style: h, children: [
42034
42034
  /* @__PURE__ */ D("div", { className: ss.header, children: [
42035
42035
  /* @__PURE__ */ D("div", { className: ss.title_box, children: [
42036
42036
  n.title && /* @__PURE__ */ b("div", { className: ss.title, children: n.title }),
@@ -42047,7 +42047,7 @@ function F_e(e) {
42047
42047
  }
42048
42048
  )
42049
42049
  ] }),
42050
- /* @__PURE__ */ b("div", { ref: c, className: ss.chart_wrapper, children: /* @__PURE__ */ b(A7, { spec: d, options: { actions: !1 } }) })
42050
+ /* @__PURE__ */ b("div", { ref: c, className: ss.chart_wrapper, children: /* @__PURE__ */ b(AI, { spec: d, options: { actions: !1 } }) })
42051
42051
  ] }) }),
42052
42052
  /* @__PURE__ */ b(ml, { className: ss.chart_time, time: t.time })
42053
42053
  ]
@@ -42075,7 +42075,7 @@ function P_e(e) {
42075
42075
  children: [
42076
42076
  /* @__PURE__ */ b(gi, { avatar: s }),
42077
42077
  /* @__PURE__ */ b(
42078
- er,
42078
+ tr,
42079
42079
  {
42080
42080
  quickReplies: n.quickReplies,
42081
42081
  references: n.references,
@@ -42097,7 +42097,7 @@ const z_e = "_video_box_119ne_1", B_e = "_video_preview_119ne_12", U_e = "_play_
42097
42097
  video_player: W_e,
42098
42098
  youtube_player: H_e
42099
42099
  };
42100
- function M7(e) {
42100
+ function MI(e) {
42101
42101
  try {
42102
42102
  const t = new URL(e), n = t.hostname.toLowerCase();
42103
42103
  if (!n.includes("youtube.com") && !n.includes("youtu.be"))
@@ -42116,7 +42116,7 @@ function M7(e) {
42116
42116
  }
42117
42117
  }
42118
42118
  function G_e(e) {
42119
- return M7(e) !== null;
42119
+ return MI(e) !== null;
42120
42120
  }
42121
42121
  function V_e(e) {
42122
42122
  return `https://www.youtube.com/embed/${e}?autoplay=1&rel=0`;
@@ -42135,7 +42135,7 @@ function Y_e(e) {
42135
42135
  l.current && setTimeout(() => {
42136
42136
  l.current?.scrollIntoView({ behavior: "smooth" });
42137
42137
  }, 50);
42138
- }, x = Te(() => G_e(i), [i]), w = Te(() => M7(i), [i]), E = Te(() => w ? V_e(w) : null, [w]), k = () => {
42138
+ }, x = Te(() => G_e(i), [i]), w = Te(() => MI(i), [i]), E = Te(() => w ? V_e(w) : null, [w]), k = () => {
42139
42139
  u(!0), !x && f.current && f.current.play();
42140
42140
  }, C = (M) => {
42141
42141
  const T = Math.floor(M / 1e3), R = Math.floor(T / 60), N = T % 60;
@@ -42200,7 +42200,7 @@ function Y_e(e) {
42200
42200
  children: [
42201
42201
  /* @__PURE__ */ b(gi, { avatar: a }),
42202
42202
  /* @__PURE__ */ b(
42203
- er,
42203
+ tr,
42204
42204
  {
42205
42205
  quickReplies: n.quickReplies,
42206
42206
  references: n.references,
@@ -42261,7 +42261,7 @@ function Z_e(e) {
42261
42261
  style: i?.AudioMessageTemplate?.style,
42262
42262
  children: [
42263
42263
  /* @__PURE__ */ b(gi, { avatar: o }),
42264
- /* @__PURE__ */ b(er, { quickReplies: n.quickReplies, time: t.time, message: t, children: /* @__PURE__ */ b("div", { className: IN.audio_box, children: /* @__PURE__ */ b(
42264
+ /* @__PURE__ */ b(tr, { quickReplies: n.quickReplies, time: t.time, message: t, children: /* @__PURE__ */ b("div", { className: IN.audio_box, children: /* @__PURE__ */ b(
42265
42265
  "audio",
42266
42266
  {
42267
42267
  className: IN.audio_player,
@@ -42325,7 +42325,7 @@ function obe(e) {
42325
42325
  return /* @__PURE__ */ D(un, { className: "asgard-location-template", type: "bot", direction: "horizontal", children: [
42326
42326
  /* @__PURE__ */ b(gi, { avatar: r }),
42327
42327
  /* @__PURE__ */ b(
42328
- er,
42328
+ tr,
42329
42329
  {
42330
42330
  time: t.time,
42331
42331
  quickReplies: i?.quickReplies,
@@ -42477,7 +42477,7 @@ const _be = "_tool_call_group_pw1vl_1", bbe = "_tool_call_group__header_pw1vl_11
42477
42477
  json_modal__action_btn: Gbe,
42478
42478
  json_modal__content: Vbe
42479
42479
  };
42480
- function N7({ className: e }) {
42480
+ function NI({ className: e }) {
42481
42481
  return /* @__PURE__ */ b("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ b("path", { d: "M9 18l6-6-6-6" }) });
42482
42482
  }
42483
42483
  function Ybe({ className: e }) {
@@ -42532,7 +42532,7 @@ function Kbe({ className: e }) {
42532
42532
  }
42533
42533
  );
42534
42534
  }
42535
- function T7({ className: e }) {
42535
+ function TI({ className: e }) {
42536
42536
  return /* @__PURE__ */ D("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
42537
42537
  /* @__PURE__ */ b("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
42538
42538
  /* @__PURE__ */ b("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
@@ -42541,7 +42541,7 @@ function T7({ className: e }) {
42541
42541
  function Zbe({ className: e }) {
42542
42542
  return /* @__PURE__ */ b("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ b("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
42543
42543
  }
42544
- function F7({ className: e }) {
42544
+ function FI({ className: e }) {
42545
42545
  return /* @__PURE__ */ b("svg", { className: e, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ b("path", { d: "M18 6L6 18M6 6l12 12" }) });
42546
42546
  }
42547
42547
  const la = {
@@ -42649,7 +42649,7 @@ function cve(e) {
42649
42649
  return $e["json_token--punctuation"];
42650
42650
  }
42651
42651
  }
42652
- function D7({ json: e }) {
42652
+ function DI({ json: e }) {
42653
42653
  const t = lve(e);
42654
42654
  return /* @__PURE__ */ b("pre", { className: $e.json_viewer__code, children: t.map((n, r) => /* @__PURE__ */ b("span", { className: cve(n.type), children: n.value }, r)) });
42655
42655
  }
@@ -42676,11 +42676,11 @@ function uve({ isOpen: e, onClose: t, title: n, data: r }) {
42676
42676
  /* @__PURE__ */ D("div", { className: $e.json_modal__header, children: [
42677
42677
  /* @__PURE__ */ b("span", { className: $e.json_modal__title, children: n }),
42678
42678
  /* @__PURE__ */ D("div", { className: $e.json_modal__actions, children: [
42679
- /* @__PURE__ */ b("button", { className: $e.json_modal__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ b(T7, {}) }),
42680
- /* @__PURE__ */ b("button", { className: $e.json_modal__action_btn, onClick: t, title: "Close", children: /* @__PURE__ */ b(F7, {}) })
42679
+ /* @__PURE__ */ b("button", { className: $e.json_modal__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ b(TI, {}) }),
42680
+ /* @__PURE__ */ b("button", { className: $e.json_modal__action_btn, onClick: t, title: "Close", children: /* @__PURE__ */ b(FI, {}) })
42681
42681
  ] })
42682
42682
  ] }),
42683
- /* @__PURE__ */ b("div", { className: $e.json_modal__content, children: /* @__PURE__ */ b(D7, { json: i }) })
42683
+ /* @__PURE__ */ b("div", { className: $e.json_modal__content, children: /* @__PURE__ */ b(DI, { json: i }) })
42684
42684
  ] }) }) : null;
42685
42685
  }
42686
42686
  function Kv({ title: e, data: t }) {
@@ -42696,11 +42696,11 @@ function Kv({ title: e, data: t }) {
42696
42696
  /* @__PURE__ */ D("div", { className: $e.json_viewer__header, children: [
42697
42697
  /* @__PURE__ */ b("span", { className: $e.json_viewer__title, children: e }),
42698
42698
  /* @__PURE__ */ D("div", { className: $e.json_viewer__actions, children: [
42699
- /* @__PURE__ */ b("button", { className: $e.json_viewer__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ b(T7, {}) }),
42699
+ /* @__PURE__ */ b("button", { className: $e.json_viewer__action_btn, onClick: o, title: "Copy", children: /* @__PURE__ */ b(TI, {}) }),
42700
42700
  /* @__PURE__ */ b("button", { className: $e.json_viewer__action_btn, onClick: s, title: "Expand", children: /* @__PURE__ */ b(Zbe, {}) })
42701
42701
  ] })
42702
42702
  ] }),
42703
- /* @__PURE__ */ b("div", { className: $e.json_viewer__content, children: /* @__PURE__ */ b(D7, { json: i }) })
42703
+ /* @__PURE__ */ b("div", { className: $e.json_viewer__content, children: /* @__PURE__ */ b(DI, { json: i }) })
42704
42704
  ] }),
42705
42705
  /* @__PURE__ */ b(uve, { isOpen: n, onClose: a, title: e, data: t })
42706
42706
  ] });
@@ -42735,7 +42735,7 @@ function dve({ item: e, locale: t }) {
42735
42735
  /* @__PURE__ */ D("div", { className: $e.tool_call_item__header, onClick: o, children: [
42736
42736
  /* @__PURE__ */ D("div", { className: $e.tool_call_item__left, children: [
42737
42737
  i && /* @__PURE__ */ b(
42738
- N7,
42738
+ NI,
42739
42739
  {
42740
42740
  className: se(
42741
42741
  $e.tool_call_item__chevron,
@@ -42787,7 +42787,7 @@ function hve({
42787
42787
  "aria-expanded": c,
42788
42788
  children: [
42789
42789
  /* @__PURE__ */ b(
42790
- N7,
42790
+ NI,
42791
42791
  {
42792
42792
  className: se($e.tool_call_group__chevron, c && $e["tool_call_group__chevron--expanded"])
42793
42793
  }
@@ -42801,7 +42801,7 @@ function hve({
42801
42801
  }
42802
42802
  function pve(e) {
42803
42803
  const { time: t, ...n } = e;
42804
- return /* @__PURE__ */ b(un, { className: "asgard-tool-call-group-template", type: "bot", direction: "vertical", children: /* @__PURE__ */ b(er, { children: /* @__PURE__ */ b(hve, { ...n }) }) });
42804
+ return /* @__PURE__ */ b(un, { className: "asgard-tool-call-group-template", type: "bot", direction: "vertical", children: /* @__PURE__ */ b(tr, { children: /* @__PURE__ */ b(hve, { ...n }) }) });
42805
42805
  }
42806
42806
  const gve = /* @__PURE__ */ new Set(["Bash", "Read", "Write", "Edit", "Skill", "WebFetch", "WebSearch"]), mve = {
42807
42807
  Bash: "bash",
@@ -43027,7 +43027,7 @@ const Rve = "_container_12tvo_1", Ove = "_tabs_12tvo_13", Lve = "_tab_12tvo_13",
43027
43027
  snackbar_action: uxe,
43028
43028
  snackbar_close: fxe
43029
43029
  };
43030
- function R7(e, t) {
43030
+ function RI(e, t) {
43031
43031
  if (e == null) return "";
43032
43032
  switch (t) {
43033
43033
  case "DATE":
@@ -43053,7 +43053,7 @@ function zN(e) {
43053
43053
  }
43054
43054
  function dxe(e, t, n) {
43055
43055
  const r = e.map((o) => zN(o.header)).join(","), i = t.map((o) => e.map((s, a) => {
43056
- const l = AC(o, s, a, n), c = R7(l, s.format);
43056
+ const l = AC(o, s, a, n), c = RI(l, s.format);
43057
43057
  return zN(c);
43058
43058
  }).join(","));
43059
43059
  return [r, ...i].join(`
@@ -43130,7 +43130,7 @@ function mxe(e) {
43130
43130
  direction: "vertical",
43131
43131
  style: d?.TableMessageTemplate?.style,
43132
43132
  children: [
43133
- /* @__PURE__ */ b(er, { quickReplies: n?.quickReplies, children: /* @__PURE__ */ D("div", { className: Ie.container, style: $, children: [
43133
+ /* @__PURE__ */ b(tr, { quickReplies: n?.quickReplies, children: /* @__PURE__ */ D("div", { className: Ie.container, style: $, children: [
43134
43134
  f && /* @__PURE__ */ D("div", { className: Ie.tabs, role: "tablist", children: [
43135
43135
  /* @__PURE__ */ b(
43136
43136
  "button",
@@ -43205,7 +43205,7 @@ ${c}
43205
43205
  l === "OBJECT" && S.key && /* @__PURE__ */ b("span", { className: Ie.header_key, children: S.key })
43206
43206
  ] }) }, F)) }) }),
43207
43207
  /* @__PURE__ */ b("tbody", { children: C.map((S, F) => /* @__PURE__ */ b("tr", { className: Ie.table_row, children: o.map((O, P) => {
43208
- const L = AC(S, O, P, l), j = R7(L, O.format);
43208
+ const L = AC(S, O, P, l), j = RI(L, O.format);
43209
43209
  return /* @__PURE__ */ b("td", { className: Ie.table_cell, children: j }, P);
43210
43210
  }) }, F)) })
43211
43211
  ] }) }),
@@ -43356,7 +43356,7 @@ function Axe(e) {
43356
43356
  return /* @__PURE__ */ D(un, { className: "asgard-attachment-template", type: "bot", direction: "horizontal", children: [
43357
43357
  /* @__PURE__ */ b(gi, { avatar: n }),
43358
43358
  /* @__PURE__ */ b(
43359
- er,
43359
+ tr,
43360
43360
  {
43361
43361
  time: t.time,
43362
43362
  quickReplies: i?.quickReplies,
@@ -43388,7 +43388,7 @@ function Mxe(e) {
43388
43388
  const { message: t } = e, { renderMessageContent: n } = so(), { avatar: r } = Nt(), i = Te(() => function({ children: a }) {
43389
43389
  return t.type === "bot" ? /* @__PURE__ */ D(un, { type: "bot", direction: "horizontal", children: [
43390
43390
  /* @__PURE__ */ b(gi, { avatar: r }),
43391
- /* @__PURE__ */ b(er, { message: t, time: t.time, children: a })
43391
+ /* @__PURE__ */ b(tr, { message: t, time: t.time, children: a })
43392
43392
  ] }) : t.type === "user" ? /* @__PURE__ */ b(un, { type: "user", direction: "horizontal", children: a }) : a;
43393
43393
  }, [t, r]), o = Y(() => {
43394
43394
  if (t.type === "user")
@@ -43469,16 +43469,16 @@ const Nxe = "_subagent_list_14euv_1", Txe = "_header_14euv_9", Fxe = "_header__i
43469
43469
  strokeLinecap: "round",
43470
43470
  strokeLinejoin: "round"
43471
43471
  };
43472
- function O7({ className: e, label: t }) {
43472
+ function OI({ className: e, label: t }) {
43473
43473
  return /* @__PURE__ */ b("svg", { className: e, ...Ll, role: t ? "img" : void 0, "aria-label": t, children: /* @__PURE__ */ b("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) });
43474
43474
  }
43475
- function L7({ className: e, label: t }) {
43475
+ function LI({ className: e, label: t }) {
43476
43476
  return /* @__PURE__ */ D("svg", { className: e, ...Ll, role: t ? "img" : void 0, "aria-label": t, children: [
43477
43477
  /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10" }),
43478
43478
  /* @__PURE__ */ b("path", { d: "m9 12 2 2 4-4" })
43479
43479
  ] });
43480
43480
  }
43481
- function I7({ className: e, label: t }) {
43481
+ function II({ className: e, label: t }) {
43482
43482
  return /* @__PURE__ */ D("svg", { className: e, ...Ll, role: t ? "img" : void 0, "aria-label": t, children: [
43483
43483
  /* @__PURE__ */ b("circle", { cx: "12", cy: "12", r: "10" }),
43484
43484
  /* @__PURE__ */ b("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
@@ -43501,17 +43501,17 @@ function Qxe({ className: e }) {
43501
43501
  /* @__PURE__ */ b("path", { d: "M9 13v2" })
43502
43502
  ] });
43503
43503
  }
43504
- function P7({ className: e }) {
43504
+ function PI({ className: e }) {
43505
43505
  return /* @__PURE__ */ b("svg", { className: e, ...Ll, children: /* @__PURE__ */ b("path", { d: "m6 9 6 6 6-6" }) });
43506
43506
  }
43507
- function z7({ className: e }) {
43507
+ function zI({ className: e }) {
43508
43508
  return /* @__PURE__ */ b("svg", { className: e, ...Ll, children: /* @__PURE__ */ b("path", { d: "m9 18 6-6-6-6" }) });
43509
43509
  }
43510
43510
  function e2e({ status: e, label: t }) {
43511
- return e === "running" ? /* @__PURE__ */ b(O7, { className: se(Oe.glyph, Oe.glyph__spin, Oe["glyph--running"]), label: t }) : e === "failed" ? /* @__PURE__ */ b(I7, { className: se(Oe.glyph, Oe["glyph--failed"]), label: t }) : e === "cancelled" ? /* @__PURE__ */ b(Jxe, { className: se(Oe.glyph, Oe["glyph--cancelled"]), label: t }) : /* @__PURE__ */ b(L7, { className: se(Oe.glyph, Oe["glyph--completed"]), label: t });
43511
+ return e === "running" ? /* @__PURE__ */ b(OI, { className: se(Oe.glyph, Oe.glyph__spin, Oe["glyph--running"]), label: t }) : e === "failed" ? /* @__PURE__ */ b(II, { className: se(Oe.glyph, Oe["glyph--failed"]), label: t }) : e === "cancelled" ? /* @__PURE__ */ b(Jxe, { className: se(Oe.glyph, Oe["glyph--cancelled"]), label: t }) : /* @__PURE__ */ b(LI, { className: se(Oe.glyph, Oe["glyph--completed"]), label: t });
43512
43512
  }
43513
43513
  function t2e({ status: e }) {
43514
- return e === "running" ? /* @__PURE__ */ b(O7, { className: se(Oe.tool_glyph, Oe.glyph__spin, Oe["glyph--running"]) }) : e === "error" ? /* @__PURE__ */ b(I7, { className: se(Oe.tool_glyph, Oe["glyph--failed"]) }) : /* @__PURE__ */ b(L7, { className: se(Oe.tool_glyph, Oe["glyph--completed"]) });
43514
+ return e === "running" ? /* @__PURE__ */ b(OI, { className: se(Oe.tool_glyph, Oe.glyph__spin, Oe["glyph--running"]) }) : e === "error" ? /* @__PURE__ */ b(II, { className: se(Oe.tool_glyph, Oe["glyph--failed"]) }) : /* @__PURE__ */ b(LI, { className: se(Oe.tool_glyph, Oe["glyph--completed"]) });
43515
43515
  }
43516
43516
  function n2e(e) {
43517
43517
  for (let t = e.length - 1; t >= 0; t--)
@@ -43547,7 +43547,7 @@ function r2e({ sa: e, locale: t }) {
43547
43547
  ] }),
43548
43548
  /* @__PURE__ */ D("span", { className: Oe.row__meta, children: [
43549
43549
  !n && !i && o && /* @__PURE__ */ b("span", { children: Ue(t, "subagent.toolCount", { n: e.tools.length }) }),
43550
- o && (n ? /* @__PURE__ */ b(P7, { className: Oe.row__chevron }) : /* @__PURE__ */ b(z7, { className: Oe.row__chevron }))
43550
+ o && (n ? /* @__PURE__ */ b(PI, { className: Oe.row__chevron }) : /* @__PURE__ */ b(zI, { className: Oe.row__chevron }))
43551
43551
  ] })
43552
43552
  ]
43553
43553
  }
@@ -43572,7 +43572,7 @@ function i2e({ subagents: e, locale: t = "en-US" }) {
43572
43572
  "/",
43573
43573
  e.length
43574
43574
  ] }),
43575
- o ? /* @__PURE__ */ b(P7, { className: Oe.header__chevron }) : /* @__PURE__ */ b(z7, { className: Oe.header__chevron })
43575
+ o ? /* @__PURE__ */ b(PI, { className: Oe.header__chevron }) : /* @__PURE__ */ b(zI, { className: Oe.header__chevron })
43576
43576
  ] })
43577
43577
  ] }),
43578
43578
  o && /* @__PURE__ */ b("ul", { className: Oe.list, children: e.map((a) => /* @__PURE__ */ b(r2e, { sa: a, locale: t }, a.parentToolUseId)) })
@@ -43629,10 +43629,10 @@ function w2e({ className: e }) {
43629
43629
  /* @__PURE__ */ b("path", { d: "M13 18h8" })
43630
43630
  ] });
43631
43631
  }
43632
- function B7({ className: e }) {
43632
+ function BI({ className: e }) {
43633
43633
  return /* @__PURE__ */ b("svg", { className: e, ...Au, children: /* @__PURE__ */ b("path", { d: "m6 9 6 6 6-6" }) });
43634
43634
  }
43635
- function U7({ className: e }) {
43635
+ function UI({ className: e }) {
43636
43636
  return /* @__PURE__ */ b("svg", { className: e, ...Au, children: /* @__PURE__ */ b("path", { d: "m9 18 6-6-6-6" }) });
43637
43637
  }
43638
43638
  function k2e({ status: e, label: t }) {
@@ -43670,7 +43670,7 @@ function E2e({ task: e, locale: t }) {
43670
43670
  children: s
43671
43671
  }
43672
43672
  ),
43673
- a && (n ? /* @__PURE__ */ b(B7, { className: ut.row__chevron }) : /* @__PURE__ */ b(U7, { className: ut.row__chevron }))
43673
+ a && (n ? /* @__PURE__ */ b(BI, { className: ut.row__chevron }) : /* @__PURE__ */ b(UI, { className: ut.row__chevron }))
43674
43674
  ]
43675
43675
  }
43676
43676
  ),
@@ -43691,7 +43691,7 @@ function C2e({ tasks: e, locale: t = "en-US" }) {
43691
43691
  "/",
43692
43692
  e.length
43693
43693
  ] }),
43694
- n ? /* @__PURE__ */ b(B7, { className: ut.header__chevron }) : /* @__PURE__ */ b(U7, { className: ut.header__chevron })
43694
+ n ? /* @__PURE__ */ b(BI, { className: ut.header__chevron }) : /* @__PURE__ */ b(UI, { className: ut.header__chevron })
43695
43695
  ] })
43696
43696
  ] }),
43697
43697
  n && /* @__PURE__ */ b("ul", { className: ut.list, children: e.map((s) => /* @__PURE__ */ b(E2e, { task: s, locale: t }, s.id)) })
@@ -43834,7 +43834,7 @@ function D2e({ running: e }) {
43834
43834
  }
43835
43835
  );
43836
43836
  }
43837
- const j7 = (e) => /* @__PURE__ */ De.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M13.234 20.252 21 12.3" }), /* @__PURE__ */ De.createElement("path", { d: "m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486" })), R2e = (e) => /* @__PURE__ */ De.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), q7 = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ De.createElement("rect", { x: 3, y: 3, width: 10, height: 10, rx: 2, fill: "currentColor" })), O2e = "_preview_16mws_1", L2e = "_thumbnails_16mws_8", I2e = "_thumbnail_16mws_8", P2e = "_thumbnail__error_16mws_26", z2e = "_thumbnail_image_16mws_30", B2e = "_overlay_16mws_41", U2e = "_overlay__error_16mws_50", j2e = "_error_icon_16mws_54", q2e = "_spinner_16mws_68", W2e = "_remove_button_16mws_82", H2e = "_chips_16mws_101", G2e = "_chip_16mws_101", V2e = "_chip__uploading_16mws_120", Y2e = "_chip__error_16mws_124", X2e = "_chip_icon_16mws_128", K2e = "_chip_name_16mws_135", Z2e = "_chip_size_16mws_142", J2e = "_chip_remove_16mws_147", Q2e = "_modal_16mws_161", ewe = "_modal_image_16mws_172", twe = "_modal_close_16mws_181", Et = {
43837
+ const jI = (e) => /* @__PURE__ */ De.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M13.234 20.252 21 12.3" }), /* @__PURE__ */ De.createElement("path", { d: "m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486" })), R2e = (e) => /* @__PURE__ */ De.createElement("svg", { width: 15, height: 12, viewBox: "0 0 15 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ De.createElement("path", { d: "M0.823242 11.6953V0.945312L14.3328 6.32031L0.823242 11.6953ZM1.90658 10.0911L11.3649 6.32031L1.90658 2.54948V4.98052L5.92574 6.32031L1.90658 7.6601V10.0911Z", fill: "currentColor" })), qI = (e) => /* @__PURE__ */ De.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ De.createElement("rect", { x: 3, y: 3, width: 10, height: 10, rx: 2, fill: "currentColor" })), O2e = "_preview_16mws_1", L2e = "_thumbnails_16mws_8", I2e = "_thumbnail_16mws_8", P2e = "_thumbnail__error_16mws_26", z2e = "_thumbnail_image_16mws_30", B2e = "_overlay_16mws_41", U2e = "_overlay__error_16mws_50", j2e = "_error_icon_16mws_54", q2e = "_spinner_16mws_68", W2e = "_remove_button_16mws_82", H2e = "_chips_16mws_101", G2e = "_chip_16mws_101", V2e = "_chip__uploading_16mws_120", Y2e = "_chip__error_16mws_124", X2e = "_chip_icon_16mws_128", K2e = "_chip_name_16mws_135", Z2e = "_chip_size_16mws_142", J2e = "_chip_remove_16mws_147", Q2e = "_modal_16mws_161", ewe = "_modal_image_16mws_172", twe = "_modal_close_16mws_181", Et = {
43838
43838
  preview: O2e,
43839
43839
  thumbnails: L2e,
43840
43840
  thumbnail: I2e,
@@ -43917,7 +43917,7 @@ function iwe({ items: e, onRemove: t, removeLabel: n, closeLabel: r }) {
43917
43917
  ),
43918
43918
  title: l.file.name,
43919
43919
  children: [
43920
- /* @__PURE__ */ b(j7, { className: Et.chip_icon }),
43920
+ /* @__PURE__ */ b(jI, { className: Et.chip_icon }),
43921
43921
  /* @__PURE__ */ b("span", { className: Et.chip_name, children: l.file.name }),
43922
43922
  /* @__PURE__ */ b("span", { className: Et.chip_size, children: nwe(l.file.size) }),
43923
43923
  /* @__PURE__ */ b(
@@ -44023,11 +44023,11 @@ function awe(e) {
44023
44023
  onMouseUp: d,
44024
44024
  onTouchStart: h,
44025
44025
  onTouchEnd: p,
44026
- children: s ? /* @__PURE__ */ b(q7, {}) : /* @__PURE__ */ b(owe, {})
44026
+ children: s ? /* @__PURE__ */ b(qI, {}) : /* @__PURE__ */ b(owe, {})
44027
44027
  }
44028
44028
  );
44029
44029
  }
44030
- const lwe = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"], W7 = [
44030
+ const lwe = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"], WI = [
44031
44031
  // Office documents
44032
44032
  "application/pdf",
44033
44033
  "application/vnd.ms-excel",
@@ -44062,7 +44062,7 @@ const lwe = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"],
44062
44062
  // txt
44063
44063
  "application/json"
44064
44064
  // json
44065
- ], H7 = [
44065
+ ], HI = [
44066
44066
  ".pdf",
44067
44067
  ".xls",
44068
44068
  ".xlsx",
@@ -44078,16 +44078,16 @@ const lwe = ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp"],
44078
44078
  ".xml",
44079
44079
  ".txt",
44080
44080
  ".json"
44081
- ], G7 = 20 * 1024 * 1024;
44082
- function V7(e) {
44081
+ ], GI = 20 * 1024 * 1024;
44082
+ function VI(e) {
44083
44083
  return !e || e.length === 0 ? lwe : e;
44084
44084
  }
44085
- function Y7(e) {
44085
+ function YI(e) {
44086
44086
  return !e || e.length === 0 ? null : e;
44087
44087
  }
44088
44088
  function cwe(e, t) {
44089
- const n = V7(t);
44090
- return n.includes(e.type) ? e.size > G7 ? {
44089
+ const n = VI(t);
44090
+ return n.includes(e.type) ? e.size > GI ? {
44091
44091
  isValid: !1,
44092
44092
  error: `檔案大小 ${(e.size / 1024 / 1024).toFixed(1)}MB 超過限制 20MB。`
44093
44093
  } : { isValid: !0 } : {
@@ -44107,7 +44107,7 @@ function fwe(e) {
44107
44107
  return t === -1 ? "" : e.slice(t).toLowerCase();
44108
44108
  }
44109
44109
  function dwe(e, t) {
44110
- const n = Y7(t);
44110
+ const n = YI(t);
44111
44111
  if (n) {
44112
44112
  if (!n.includes(e.type))
44113
44113
  return {
@@ -44115,14 +44115,14 @@ function dwe(e, t) {
44115
44115
  error: "不支援的檔案格式。"
44116
44116
  };
44117
44117
  } else {
44118
- const r = fwe(e.name), i = W7.includes(e.type), o = H7.includes(r);
44118
+ const r = fwe(e.name), i = WI.includes(e.type), o = HI.includes(r);
44119
44119
  if (!i && !o)
44120
44120
  return {
44121
44121
  isValid: !1,
44122
44122
  error: "不支援的檔案格式。請選擇 PDF、Office 文件、音訊、影片或文字檔案。"
44123
44123
  };
44124
44124
  }
44125
- return e.size > G7 ? {
44125
+ return e.size > GI ? {
44126
44126
  isValid: !1,
44127
44127
  error: `檔案大小 ${(e.size / 1024 / 1024).toFixed(1)}MB 超過限制 20MB。`
44128
44128
  } : { isValid: !0 };
@@ -44233,9 +44233,9 @@ ${x.join(`
44233
44233
  l([]);
44234
44234
  }, []), g = Te(() => {
44235
44235
  const y = [];
44236
- if (e && y.push(...V7(n)), t) {
44237
- const _ = Y7(r);
44238
- y.push(..._ ?? [...W7, ...H7]);
44236
+ if (e && y.push(...VI(n)), t) {
44237
+ const _ = YI(r);
44238
+ y.push(..._ ?? [...WI, ...HI]);
44239
44239
  }
44240
44240
  return y.join(",");
44241
44241
  }, [e, t, n, r]), m = Te(
@@ -44417,7 +44417,7 @@ function $we({
44417
44417
  "aria-label": Ue(m, "composer.attach"),
44418
44418
  title: Ue(m, "composer.attach"),
44419
44419
  onClick: () => A.current?.click(),
44420
- children: /* @__PURE__ */ b(j7, {})
44420
+ children: /* @__PURE__ */ b(jI, {})
44421
44421
  }
44422
44422
  )
44423
44423
  ] }),
@@ -44459,7 +44459,7 @@ function $we({
44459
44459
  style: _.footer?.submitButton?.style,
44460
44460
  "aria-label": Ue(m, "composer.stop"),
44461
44461
  onClick: a,
44462
- children: /* @__PURE__ */ b(q7, {})
44462
+ children: /* @__PURE__ */ b(qI, {})
44463
44463
  }
44464
44464
  ) : /* @__PURE__ */ b(
44465
44465
  "button",
@@ -44522,7 +44522,7 @@ function Nwe({
44522
44522
  ] })
44523
44523
  ] });
44524
44524
  }
44525
- const Twe = "_chatbot_root_htsl5_2", Fwe = "_full_screen_htsl5_128", Dwe = "_chatbot_container_htsl5_133", bm = {
44525
+ const Twe = "_chatbot_root_8adl4_2", Fwe = "_full_screen_8adl4_128", Dwe = "_chatbot_container_8adl4_133", bm = {
44526
44526
  chatbot_root: Twe,
44527
44527
  full_screen: Fwe,
44528
44528
  chatbot_container: Dwe
@@ -44904,7 +44904,7 @@ function uEe(e, t) {
44904
44904
  function fEe(e) {
44905
44905
  return [...e].sort((t, n) => Number(n.isDir) - Number(t.isDir) || t.name.localeCompare(n.name));
44906
44906
  }
44907
- function X7(e) {
44907
+ function XI(e) {
44908
44908
  const { sandboxName: t, dirPath: n, depth: r, listDir: i, refreshKey: o } = e, [s, a] = oe(null), [l, c] = oe(!0), [u, f] = oe(null);
44909
44909
  me(() => {
44910
44910
  let h = !1;
@@ -44950,7 +44950,7 @@ function dEe(e) {
44950
44950
  ]
44951
44951
  }
44952
44952
  ),
44953
- t.isDir && u && /* @__PURE__ */ b(X7, { ...e, dirPath: t.path, depth: n + 1 })
44953
+ t.isDir && u && /* @__PURE__ */ b(XI, { ...e, dirPath: t.path, depth: n + 1 })
44954
44954
  ] });
44955
44955
  }
44956
44956
  function hEe(e) {
@@ -45360,7 +45360,7 @@ function hEe(e) {
45360
45360
  }
45361
45361
  }
45362
45362
  ) : ee === null ? null : /* @__PURE__ */ b("div", { className: Ce.tree, onContextMenu: (re) => Kr(re, { kind: "background" }), children: /* @__PURE__ */ b(
45363
- X7,
45363
+ XI,
45364
45364
  {
45365
45365
  sandboxName: y,
45366
45366
  dirPath: ee,
@@ -45547,7 +45547,7 @@ function jEe(e) {
45547
45547
  ] }),
45548
45548
  "?"
45549
45549
  ] }),
45550
- o && /* @__PURE__ */ b("button", { type: "button", className: Ft.close_btn, onClick: o, "aria-label": "關閉", children: /* @__PURE__ */ b(F7, {}) })
45550
+ o && /* @__PURE__ */ b("button", { type: "button", className: Ft.close_btn, onClick: o, "aria-label": "關閉", children: /* @__PURE__ */ b(FI, {}) })
45551
45551
  ] }),
45552
45552
  /* @__PURE__ */ D("div", { className: Ft.content, children: [
45553
45553
  /* @__PURE__ */ D("div", { className: Ft.meta_row, children: [
@@ -45710,15 +45710,16 @@ function qEe() {
45710
45710
  }
45711
45711
  );
45712
45712
  }
45713
- const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_state_1y6tn_9", GEe = "_chatbot__error_state__content_1y6tn_13", VEe = "_chatbot__error_state__icon_1y6tn_17", YEe = "_chatbot__thread_area_1y6tn_22", XEe = "_chatbot__main_row_1y6tn_29", KEe = "_chatbot__file_explorer_aside_1y6tn_40", cr = {
45713
+ const WEe = "_chatbot__auth_state_container_14bbg_1", HEe = "_chatbot__error_state_14bbg_9", GEe = "_chatbot__error_state__content_14bbg_13", VEe = "_chatbot__error_state__icon_14bbg_17", YEe = "_chatbot__thread_area_14bbg_22", XEe = "_chatbot__chat_column_14bbg_29", KEe = "_chatbot__main_row_14bbg_37", ZEe = "_chatbot__file_explorer_aside_14bbg_48", Fn = {
45714
45714
  chatbot__auth_state_container: WEe,
45715
45715
  chatbot__error_state: HEe,
45716
45716
  chatbot__error_state__content: GEe,
45717
45717
  chatbot__error_state__icon: VEe,
45718
45718
  chatbot__thread_area: YEe,
45719
- chatbot__main_row: XEe,
45720
- chatbot__file_explorer_aside: KEe
45721
- }, WCe = nP(function(t, n) {
45719
+ chatbot__chat_column: XEe,
45720
+ chatbot__main_row: KEe,
45721
+ chatbot__file_explorer_aside: ZEe
45722
+ }, HCe = nP(function(t, n) {
45722
45723
  const {
45723
45724
  title: r,
45724
45725
  customActions: i,
@@ -45775,7 +45776,7 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45775
45776
  onSandboxOpenBrowser: Kr,
45776
45777
  onSandboxOpenFile: Ti,
45777
45778
  sandboxBrowserOpenTarget: Mu,
45778
- fileExplorer: A1 = "off",
45779
+ fileExplorer: A1 = "builtin",
45779
45780
  autoRevealOnOpenFileCard: re = !0,
45780
45781
  fileExplorerBasePath: Be,
45781
45782
  autoResetChannel: kt,
@@ -45789,16 +45790,16 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45789
45790
  }
45790
45791
  },
45791
45792
  [Ti, Tu, re, ca]
45792
- ), Fu = je(0), Du = je(null), bh = y || v, K7 = Y(
45793
+ ), Fu = je(0), Du = je(null), bh = y || v, KI = Y(
45793
45794
  (pn) => {
45794
45795
  pn.preventDefault(), pn.stopPropagation(), !(!bh || !pn.dataTransfer.types.includes("Files")) && (Fu.current++, Fu.current === 1 && Du.current?.setIsDraggingOver(!0));
45795
45796
  },
45796
45797
  [bh]
45797
- ), Z7 = Y((pn) => {
45798
+ ), ZI = Y((pn) => {
45798
45799
  pn.preventDefault(), pn.stopPropagation();
45799
- }, []), J7 = Y((pn) => {
45800
+ }, []), JI = Y((pn) => {
45800
45801
  pn.preventDefault(), pn.stopPropagation(), Fu.current--, Fu.current === 0 && Du.current?.setIsDraggingOver(!1);
45801
- }, []), Q7 = Y(
45802
+ }, []), QI = Y(
45802
45803
  (pn) => {
45803
45804
  if (pn.preventDefault(), pn.stopPropagation(), Fu.current = 0, Du.current?.setIsDraggingOver(!1), !bh) return;
45804
45805
  const Ru = Array.from(pn.dataTransfer.files);
@@ -45808,9 +45809,9 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45808
45809
  ), TC = () => {
45809
45810
  switch (ce) {
45810
45811
  case "loading":
45811
- return /* @__PURE__ */ b("div", { className: cr.chatbot__auth_state_container, children: C || /* @__PURE__ */ b("div", { children: "Loading..." }) });
45812
+ return /* @__PURE__ */ b("div", { className: Fn.chatbot__auth_state_container, children: C || /* @__PURE__ */ b("div", { children: "Loading..." }) });
45812
45813
  case "needApiKey":
45813
- return /* @__PURE__ */ b("div", { className: cr.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45814
+ return /* @__PURE__ */ b("div", { className: Fn.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45814
45815
  IC,
45815
45816
  {
45816
45817
  title: r,
@@ -45819,7 +45820,7 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45819
45820
  }
45820
45821
  ) });
45821
45822
  case "invalidApiKey":
45822
- return /* @__PURE__ */ b("div", { className: cr.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45823
+ return /* @__PURE__ */ b("div", { className: Fn.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45823
45824
  IC,
45824
45825
  {
45825
45826
  title: r,
@@ -45829,12 +45830,12 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45829
45830
  }
45830
45831
  ) });
45831
45832
  case "error":
45832
- return /* @__PURE__ */ b("div", { className: se(cr.chatbot__auth_state_container, cr.chatbot__error_state), children: /* @__PURE__ */ D("div", { className: cr.chatbot__error_state__content, children: [
45833
- /* @__PURE__ */ b("div", { className: cr.chatbot__error_state__icon, children: /* @__PURE__ */ b("span", { role: "img", "aria-label": "warning", children: "⚠️" }) }),
45834
- /* @__PURE__ */ b("div", { className: cr.chatbot__error_state__message, children: "Something went wrong. Please try again later." })
45833
+ return /* @__PURE__ */ b("div", { className: se(Fn.chatbot__auth_state_container, Fn.chatbot__error_state), children: /* @__PURE__ */ D("div", { className: Fn.chatbot__error_state__content, children: [
45834
+ /* @__PURE__ */ b("div", { className: Fn.chatbot__error_state__icon, children: /* @__PURE__ */ b("span", { role: "img", "aria-label": "warning", children: "⚠️" }) }),
45835
+ /* @__PURE__ */ b("div", { className: Fn.chatbot__error_state__message, children: "Something went wrong. Please try again later." })
45835
45836
  ] }) });
45836
45837
  case "subscriptionExpired":
45837
- return /* @__PURE__ */ b("div", { className: cr.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45838
+ return /* @__PURE__ */ b("div", { className: Fn.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45838
45839
  HN,
45839
45840
  {
45840
45841
  avatar: h,
@@ -45842,7 +45843,7 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45842
45843
  }
45843
45844
  ) });
45844
45845
  case "botNotFound":
45845
- return /* @__PURE__ */ b("div", { className: cr.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45846
+ return /* @__PURE__ */ b("div", { className: Fn.chatbot__auth_state_container, children: /* @__PURE__ */ b(
45846
45847
  HN,
45847
45848
  {
45848
45849
  avatar: h,
@@ -45869,10 +45870,7 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45869
45870
  onSandboxOpenFile: NC,
45870
45871
  sandboxBrowserOpenTarget: Mu,
45871
45872
  children: [
45872
- /* @__PURE__ */ D("div", { className: cr.chatbot__main_row, children: [
45873
- /* @__PURE__ */ b("div", { className: cr.chatbot__thread_area, children: /* @__PURE__ */ b(M2e, { hideRunChrome: ye }) }),
45874
- Tu && ca.open && /* @__PURE__ */ b("aside", { className: cr.chatbot__file_explorer_aside, children: /* @__PURE__ */ b(xEe, { controller: ca, basePath: Be }) })
45875
- ] }),
45873
+ /* @__PURE__ */ b("div", { className: Fn.chatbot__main_row, children: /* @__PURE__ */ b("div", { className: Fn.chatbot__thread_area, children: /* @__PURE__ */ b(M2e, { hideRunChrome: ye }) }) }),
45876
45874
  Tu && /* @__PURE__ */ b(vEe, { onIntent: NC }),
45877
45875
  K?.(),
45878
45876
  Ae ? Ae() : /* @__PURE__ */ b(
@@ -45923,36 +45921,39 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45923
45921
  autoResetChannel: kt,
45924
45922
  keepConnectionOnUnmount: Tt,
45925
45923
  children: /* @__PURE__ */ D($P, { children: [
45926
- /* @__PURE__ */ b(ZEe, { fileDropRef: Du }),
45924
+ /* @__PURE__ */ b(JEe, { fileDropRef: Du }),
45927
45925
  /* @__PURE__ */ D(
45928
45926
  WN,
45929
45927
  {
45930
45928
  fullScreen: d,
45931
45929
  className: P,
45932
45930
  style: L,
45933
- onDragEnter: K7,
45934
- onDragOver: Z7,
45935
- onDragLeave: J7,
45936
- onDrop: Q7,
45931
+ onDragEnter: KI,
45932
+ onDragOver: ZI,
45933
+ onDragLeave: JI,
45934
+ onDrop: QI,
45937
45935
  children: [
45938
- ve ? ve() : /* @__PURE__ */ b(
45939
- HC,
45940
- {
45941
- title: r,
45942
- onReset: $,
45943
- onClose: A,
45944
- customActions: i,
45945
- headerActions: o,
45946
- maintainConnectionWhenClosed: E,
45947
- locale: M,
45948
- untitledLabel: we,
45949
- channelTitleHidden: It,
45950
- renderTitle: Ge,
45951
- fileExplorerController: ca,
45952
- builtinFileExplorer: Tu
45953
- }
45954
- ),
45955
- TC(),
45936
+ /* @__PURE__ */ D("div", { className: Fn.chatbot__chat_column, children: [
45937
+ ve ? ve() : /* @__PURE__ */ b(
45938
+ HC,
45939
+ {
45940
+ title: r,
45941
+ onReset: $,
45942
+ onClose: A,
45943
+ customActions: i,
45944
+ headerActions: o,
45945
+ maintainConnectionWhenClosed: E,
45946
+ locale: M,
45947
+ untitledLabel: we,
45948
+ channelTitleHidden: It,
45949
+ renderTitle: Ge,
45950
+ fileExplorerController: ca,
45951
+ builtinFileExplorer: Tu
45952
+ }
45953
+ ),
45954
+ TC()
45955
+ ] }),
45956
+ Tu && ca.open && /* @__PURE__ */ b("aside", { className: Fn.chatbot__file_explorer_aside, children: /* @__PURE__ */ b(xEe, { controller: ca, basePath: Be }) }),
45956
45957
  /* @__PURE__ */ b(jwe, {})
45957
45958
  ]
45958
45959
  }
@@ -45961,7 +45962,7 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45961
45962
  }
45962
45963
  ) })
45963
45964
  }
45964
- ) : /* @__PURE__ */ b(LC, { theme: s, children: /* @__PURE__ */ D(WN, { fullScreen: d, className: P, style: L, children: [
45965
+ ) : /* @__PURE__ */ b(LC, { theme: s, children: /* @__PURE__ */ b(WN, { fullScreen: d, className: P, style: L, children: /* @__PURE__ */ D("div", { className: Fn.chatbot__chat_column, children: [
45965
45966
  ve ? ve() : /* @__PURE__ */ b(
45966
45967
  HC,
45967
45968
  {
@@ -45980,9 +45981,9 @@ const WEe = "_chatbot__auth_state_container_1y6tn_1", HEe = "_chatbot__error_sta
45980
45981
  }
45981
45982
  ),
45982
45983
  TC()
45983
- ] }) });
45984
+ ] }) }) });
45984
45985
  });
45985
- function ZEe({
45986
+ function JEe({
45986
45987
  fileDropRef: e
45987
45988
  }) {
45988
45989
  const { setDroppedFiles: t, setIsDraggingOver: n } = ex();
@@ -46007,8 +46008,8 @@ export {
46007
46008
  nU as CarouselTemplate,
46008
46009
  F_e as ChartTemplate,
46009
46010
  xz as ChatHeader,
46010
- WCe as Chatbot,
46011
- F7 as CloseIcon,
46011
+ HCe as Chatbot,
46012
+ FI as CloseIcon,
46012
46013
  $P as FileDropContextProvider,
46013
46014
  hEe as FileExplorerPanel,
46014
46015
  _ke as FileView,
@@ -46021,11 +46022,11 @@ export {
46021
46022
  Tz as QuickReplies,
46022
46023
  Vz as References,
46023
46024
  i2e as SubagentList,
46024
- D7 as SyntaxHighlightedJson,
46025
+ DI as SyntaxHighlightedJson,
46025
46026
  mxe as TableTemplate,
46026
46027
  C2e as TaskList,
46027
46028
  un as TemplateBox,
46028
- er as TemplateBoxContent,
46029
+ tr as TemplateBoxContent,
46029
46030
  O1 as TextTemplate,
46030
46031
  Dve as ThinkingBlock,
46031
46032
  qEe as ToolCallConsentGate,
@@ -46047,16 +46048,16 @@ export {
46047
46048
  so as useAsgardTemplateContext,
46048
46049
  _t as useAsgardThemeContext,
46049
46050
  pP as useChannel,
46050
- rCe as useChannelTitle,
46051
- iCe as useDebounce,
46051
+ iCe as useChannelTitle,
46052
+ oCe as useDebounce,
46052
46053
  OC as useDeepCompareMemo,
46053
46054
  ex as useFileDropContext,
46054
46055
  vP as useFileExplorerController,
46055
- oCe as useIsAtBottom,
46056
+ sCe as useIsAtBottom,
46056
46057
  _P as useLaunchedSandboxes,
46057
46058
  xP as useResizeObserver,
46058
46059
  bP as useSandboxLaunch,
46059
- nCe as useSubagents,
46060
- tCe as useTaskList,
46060
+ rCe as useSubagents,
46061
+ nCe as useTaskList,
46061
46062
  wP as useVisualViewport
46062
46063
  };