@iota-uz/sdk 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-jtC2EUUS.js → CascadePanel-Sd2OKQx-.js} +15 -15
  4. package/dist/lens/{ChartDataEquivalent-BFDdHoQn.js → ChartDataEquivalent-DgCAb4Ov.js} +14 -13
  5. package/dist/lens/ChartPanel-CiAahY9O.js +709 -0
  6. package/dist/lens/{CoveragePanel-5LWQwFMZ.js → CoveragePanel-DeeKg8gF.js} +10 -10
  7. package/dist/lens/{GaugePanel-eVYvp3Hk.js → GaugePanel-8rsf_XHS.js} +8 -8
  8. package/dist/lens/{MapPanel-CzpZKz1Y.js → MapPanel-Bq0mfVCB.js} +14 -14
  9. package/dist/lens/{MetricFlowPanel-CG2Bj7s6.js → MetricFlowPanel-ZBJqPFpc.js} +2 -2
  10. package/dist/lens/{MetricHierarchyPanel-Difdcafn.js → MetricHierarchyPanel-DStGwvVU.js} +2 -2
  11. package/dist/lens/{MetricRelationshipPanel-Cq1dFTeY.js → MetricRelationshipPanel-D6ItmGCS.js} +2 -2
  12. package/dist/lens/{PrintReport-BiUdo8XG.js → PrintReport-Dr-6xXVr.js} +413 -397
  13. package/dist/lens/{TablePanel-_6j7epQg.js → TablePanel-CzLP8gG0.js} +1 -1
  14. package/dist/lens/{adapter-DRShqW45.js → adapter-BwEwcw2W.js} +4960 -4956
  15. package/dist/lens/adapter-CgoRd_uP.js +6 -0
  16. package/dist/lens/charts/adapter.d.ts +1 -0
  17. package/dist/lens/charts/adapter.d.ts.map +1 -1
  18. package/dist/lens/charts/echarts/options.d.ts.map +1 -1
  19. package/dist/lens/charts/keys.d.ts +2 -0
  20. package/dist/lens/charts/keys.d.ts.map +1 -1
  21. package/dist/lens/contract/schemas.d.ts.map +1 -1
  22. package/dist/lens/contract/types.d.ts +1 -0
  23. package/dist/lens/contract/types.d.ts.map +1 -1
  24. package/dist/lens/{index-CmXDbBaF.js → index-B6anZ5Pr.js} +1 -1
  25. package/dist/lens/{index-BBtBPnTb.js → index-R9mnOHaj.js} +684 -667
  26. package/dist/lens/index.js +1 -1
  27. package/dist/lens/{install-ByIx15ES.js → install-CsNOaFxV.js} +1 -1
  28. package/dist/lens/{install-DKwCLbtk.js → install-CumkiUJn.js} +1 -1
  29. package/dist/lens/{install-ByEamXef.js → install-D5OiGDnd.js} +1 -1
  30. package/dist/lens/{install-DIbrzh5h.js → install-VEXJv-Wi.js} +1 -1
  31. package/dist/lens/keys-6_gqLhcv.js +78 -0
  32. package/dist/lens/{metricViews-IoSavtwn.js → metricViews-De-9pff-.js} +1 -1
  33. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  34. package/dist/lens/panels/data.d.ts +2 -0
  35. package/dist/lens/panels/data.d.ts.map +1 -1
  36. package/dist/lens/{prefetch-CrMQhAEy.js → prefetch-C_qYKOTU.js} +2 -2
  37. package/dist/lens/{prefetchPanels-BbWAAYrz.js → prefetchPanels-CD4C-A5q.js} +1 -1
  38. package/dist/lens/print/PrintReport.d.ts.map +1 -1
  39. package/dist/lens/{print-CLo-mTEP.js → print-Iu804kRb.js} +18 -18
  40. package/dist/lens/{scales-CChHRiVq.js → scales-CWTA0tSQ.js} +53 -53
  41. package/dist/sdk-identity.cjs +3 -3
  42. package/dist/sdk-identity.js +3 -3
  43. package/dist/sdk-identity.json +2 -2
  44. package/dist/testing/driver.d.ts +19 -0
  45. package/dist/testing/driver.js +103 -30
  46. package/dist/testing/fixtures.d.ts +27 -0
  47. package/dist/testing/fixtures.js +19 -4
  48. package/dist/testing/index.d.ts +3 -2
  49. package/dist/testing/index.js +6 -30
  50. package/dist/testing/lease.d.ts +11 -0
  51. package/dist/testing/lease.js +44 -0
  52. package/package.json +1 -1
  53. package/dist/lens/ChartHost-DTnhnwkn.js +0 -68
  54. package/dist/lens/ChartPanel-_S4IVYdJ.js +0 -730
  55. package/dist/lens/keys-DenV5HsJ.js +0 -12
@@ -679,14 +679,14 @@ var _e;
679
679
  }
680
680
  t.joinValues = r, t.jsonStringifyReplacer = (a, s) => typeof s == "bigint" ? s.toString() : s;
681
681
  })(_e || (_e = {}));
682
- var da;
682
+ var ua;
683
683
  (function(t) {
684
684
  t.mergeShapes = (e, n) => ({
685
685
  ...e,
686
686
  ...n
687
687
  // second overwrites first
688
688
  });
689
- })(da || (da = {}));
689
+ })(ua || (ua = {}));
690
690
  const K = _e.arrayToEnum([
691
691
  "string",
692
692
  "nan",
@@ -952,7 +952,7 @@ class He {
952
952
  }
953
953
  const ce = Object.freeze({
954
954
  status: "aborted"
955
- }), on = (t) => ({ status: "dirty", value: t }), Je = (t) => ({ status: "valid", value: t }), ua = (t) => t.status === "aborted", pa = (t) => t.status === "dirty", Vt = (t) => t.status === "valid", Rn = (t) => typeof Promise < "u" && t instanceof Promise;
955
+ }), on = (t) => ({ status: "dirty", value: t }), Je = (t) => ({ status: "valid", value: t }), pa = (t) => t.status === "aborted", fa = (t) => t.status === "dirty", Vt = (t) => t.status === "valid", Rn = (t) => typeof Promise < "u" && t instanceof Promise;
956
956
  function _r(t, e, n, r) {
957
957
  if (typeof e == "function" ? t !== e || !0 : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
958
958
  return e.get(t);
@@ -974,7 +974,7 @@ class kt {
974
974
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
975
975
  }
976
976
  }
977
- const ss = (t, e) => {
977
+ const os = (t, e) => {
978
978
  if (Vt(e))
979
979
  return { success: !0, data: e.value };
980
980
  if (!t.common.issues.length)
@@ -1061,7 +1061,7 @@ class be {
1061
1061
  data: e,
1062
1062
  parsedType: Nt(e)
1063
1063
  }, s = this._parseSync({ data: e, path: a.path, parent: a });
1064
- return ss(a, s);
1064
+ return os(a, s);
1065
1065
  }
1066
1066
  "~validate"(e) {
1067
1067
  var n, r;
@@ -1115,7 +1115,7 @@ class be {
1115
1115
  data: e,
1116
1116
  parsedType: Nt(e)
1117
1117
  }, a = this._parse({ data: e, path: r.path, parent: r }), s = await (Rn(a) ? a : Promise.resolve(a));
1118
- return ss(r, s);
1118
+ return os(r, s);
1119
1119
  }
1120
1120
  refine(e, n) {
1121
1121
  const r = (a) => typeof n == "string" || typeof n > "u" ? { message: n } : typeof n == "function" ? n(a) : n;
@@ -1186,7 +1186,7 @@ class be {
1186
1186
  });
1187
1187
  }
1188
1188
  brand() {
1189
- return new Ra({
1189
+ return new Ea({
1190
1190
  typeName: le.ZodBranded,
1191
1191
  type: this,
1192
1192
  ...ye(this._def)
@@ -1222,7 +1222,7 @@ class be {
1222
1222
  }
1223
1223
  }
1224
1224
  const hl = /^c[^\s-]{8,}$/i, ml = /^[0-9a-z]+$/, yl = /^[0-9A-HJKMNP-TV-Z]{26}$/i, gl = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, vl = /^[a-z0-9_-]{21}$/i, bl = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, wl = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, kl = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, xl = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1225
- let Xr;
1225
+ let ea;
1226
1226
  const _l = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Sl = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Nl = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Tl = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Cl = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ll = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, qs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Pl = new RegExp(`^${qs}$`);
1227
1227
  function Ks(t) {
1228
1228
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
@@ -1307,7 +1307,7 @@ class ct extends be {
1307
1307
  message: s.message
1308
1308
  }), r.dirty());
1309
1309
  else if (s.kind === "emoji")
1310
- Xr || (Xr = new RegExp(xl, "u")), Xr.test(e.data) || (a = this._getOrReturnCtx(e, a), Z(a, {
1310
+ ea || (ea = new RegExp(xl, "u")), ea.test(e.data) || (a = this._getOrReturnCtx(e, a), Z(a, {
1311
1311
  validation: "emoji",
1312
1312
  code: j.invalid_string,
1313
1313
  message: s.message
@@ -2602,8 +2602,8 @@ jn.create = (t, e) => new jn({
2602
2602
  typeName: le.ZodUnion,
2603
2603
  ...ye(e)
2604
2604
  });
2605
- const St = (t) => t instanceof zn ? St(t.schema) : t instanceof pt ? St(t.innerType()) : t instanceof $n ? [t.value] : t instanceof Ft ? t.options : t instanceof On ? _e.objectValues(t.enum) : t instanceof Un ? St(t._def.innerType) : t instanceof An ? [void 0] : t instanceof Mn ? [null] : t instanceof bt ? [void 0, ...St(t.unwrap())] : t instanceof Dt ? [null, ...St(t.unwrap())] : t instanceof Ra || t instanceof Bn ? St(t.unwrap()) : t instanceof Zn ? St(t._def.innerType) : [];
2606
- class Fr extends be {
2605
+ const St = (t) => t instanceof zn ? St(t.schema) : t instanceof pt ? St(t.innerType()) : t instanceof $n ? [t.value] : t instanceof Ft ? t.options : t instanceof On ? _e.objectValues(t.enum) : t instanceof Un ? St(t._def.innerType) : t instanceof An ? [void 0] : t instanceof Mn ? [null] : t instanceof bt ? [void 0, ...St(t.unwrap())] : t instanceof Dt ? [null, ...St(t.unwrap())] : t instanceof Ea || t instanceof Bn ? St(t.unwrap()) : t instanceof Zn ? St(t._def.innerType) : [];
2606
+ class Dr extends be {
2607
2607
  _parse(e) {
2608
2608
  const { ctx: n } = this._processInputParams(e);
2609
2609
  if (n.parsedType !== K.object)
@@ -2656,7 +2656,7 @@ class Fr extends be {
2656
2656
  a.set(l, s);
2657
2657
  }
2658
2658
  }
2659
- return new Fr({
2659
+ return new Dr({
2660
2660
  typeName: le.ZodDiscriminatedUnion,
2661
2661
  discriminator: e,
2662
2662
  options: n,
@@ -2665,14 +2665,14 @@ class Fr extends be {
2665
2665
  });
2666
2666
  }
2667
2667
  }
2668
- function fa(t, e) {
2668
+ function ha(t, e) {
2669
2669
  const n = Nt(t), r = Nt(e);
2670
2670
  if (t === e)
2671
2671
  return { valid: !0, data: t };
2672
2672
  if (n === K.object && r === K.object) {
2673
2673
  const a = _e.objectKeys(e), s = _e.objectKeys(t).filter((l) => a.indexOf(l) !== -1), i = { ...t, ...e };
2674
2674
  for (const l of s) {
2675
- const d = fa(t[l], e[l]);
2675
+ const d = ha(t[l], e[l]);
2676
2676
  if (!d.valid)
2677
2677
  return { valid: !1 };
2678
2678
  i[l] = d.data;
@@ -2683,7 +2683,7 @@ function fa(t, e) {
2683
2683
  return { valid: !1 };
2684
2684
  const a = [];
2685
2685
  for (let s = 0; s < t.length; s++) {
2686
- const i = t[s], l = e[s], d = fa(i, l);
2686
+ const i = t[s], l = e[s], d = ha(i, l);
2687
2687
  if (!d.valid)
2688
2688
  return { valid: !1 };
2689
2689
  a.push(d.data);
@@ -2694,10 +2694,10 @@ function fa(t, e) {
2694
2694
  class Fn extends be {
2695
2695
  _parse(e) {
2696
2696
  const { status: n, ctx: r } = this._processInputParams(e), a = (s, i) => {
2697
- if (ua(s) || ua(i))
2697
+ if (pa(s) || pa(i))
2698
2698
  return ce;
2699
- const l = fa(s.value, i.value);
2700
- return l.valid ? ((pa(s) || pa(i)) && n.dirty(), { status: n.value, value: l.data }) : (Z(r, {
2699
+ const l = ha(s.value, i.value);
2700
+ return l.valid ? ((fa(s) || fa(i)) && n.dirty(), { status: n.value, value: l.data }) : (Z(r, {
2701
2701
  code: j.invalid_intersection_types
2702
2702
  }), ce);
2703
2703
  };
@@ -3388,7 +3388,7 @@ Cr.create = (t) => new Cr({
3388
3388
  ...ye(t)
3389
3389
  });
3390
3390
  const jl = Symbol("zod_brand");
3391
- class Ra extends be {
3391
+ class Ea extends be {
3392
3392
  _parse(e) {
3393
3393
  const { ctx: n } = this._processInputParams(e), r = n.data;
3394
3394
  return this._def.type._parse({
@@ -3473,7 +3473,7 @@ var le;
3473
3473
  })(le || (le = {}));
3474
3474
  const Dl = (t, e = {
3475
3475
  message: `Input not instance of ${t.name}`
3476
- }) => Js((n) => n instanceof t, e), Qs = ct.create, Ys = Mt.create, zl = Cr.create, $l = jt.create, Xs = En.create, Ol = Wt.create, Ul = Sr.create, Zl = An.create, Bl = Mn.create, Vl = fn.create, Wl = Zt.create, ql = Tt.create, Kl = Nr.create, Hl = dt.create, Gl = ze.create, Jl = ze.strictCreate, Ql = jn.create, Yl = Fr.create, Xl = Fn.create, ec = xt.create, tc = Dn.create, nc = Tr.create, rc = qt.create, ac = cn.create, sc = zn.create, oc = $n.create, ic = Ft.create, lc = On.create, cc = hn.create, os = pt.create, dc = bt.create, uc = Dt.create, pc = pt.createWithPreprocess, fc = er.create, hc = () => Qs().optional(), mc = () => Ys().optional(), yc = () => Xs().optional(), gc = {
3476
+ }) => Js((n) => n instanceof t, e), Qs = ct.create, Ys = Mt.create, zl = Cr.create, $l = jt.create, Xs = En.create, Ol = Wt.create, Ul = Sr.create, Zl = An.create, Bl = Mn.create, Vl = fn.create, Wl = Zt.create, ql = Tt.create, Kl = Nr.create, Hl = dt.create, Gl = ze.create, Jl = ze.strictCreate, Ql = jn.create, Yl = Dr.create, Xl = Fn.create, ec = xt.create, tc = Dn.create, nc = Tr.create, rc = qt.create, ac = cn.create, sc = zn.create, oc = $n.create, ic = Ft.create, lc = On.create, cc = hn.create, is = pt.create, dc = bt.create, uc = Dt.create, pc = pt.createWithPreprocess, fc = er.create, hc = () => Qs().optional(), mc = () => Ys().optional(), yc = () => Xs().optional(), gc = {
3477
3477
  string: (t) => ct.create({ ...t, coerce: !0 }),
3478
3478
  number: (t) => Mt.create({ ...t, coerce: !0 }),
3479
3479
  boolean: (t) => En.create({
@@ -3495,15 +3495,15 @@ var o = /* @__PURE__ */ Object.freeze({
3495
3495
  INVALID: ce,
3496
3496
  DIRTY: on,
3497
3497
  OK: Je,
3498
- isAborted: ua,
3499
- isDirty: pa,
3498
+ isAborted: pa,
3499
+ isDirty: fa,
3500
3500
  isValid: Vt,
3501
3501
  isAsync: Rn,
3502
3502
  get util() {
3503
3503
  return _e;
3504
3504
  },
3505
3505
  get objectUtil() {
3506
- return da;
3506
+ return ua;
3507
3507
  },
3508
3508
  ZodParsedType: K,
3509
3509
  getParsedType: Nt,
@@ -3524,7 +3524,7 @@ var o = /* @__PURE__ */ Object.freeze({
3524
3524
  ZodArray: dt,
3525
3525
  ZodObject: ze,
3526
3526
  ZodUnion: jn,
3527
- ZodDiscriminatedUnion: Fr,
3527
+ ZodDiscriminatedUnion: Dr,
3528
3528
  ZodIntersection: Fn,
3529
3529
  ZodTuple: xt,
3530
3530
  ZodRecord: Dn,
@@ -3544,7 +3544,7 @@ var o = /* @__PURE__ */ Object.freeze({
3544
3544
  ZodCatch: Zn,
3545
3545
  ZodNaN: Cr,
3546
3546
  BRAND: jl,
3547
- ZodBranded: Ra,
3547
+ ZodBranded: Ea,
3548
3548
  ZodPipeline: er,
3549
3549
  ZodReadonly: Bn,
3550
3550
  custom: Js,
@@ -3561,7 +3561,7 @@ var o = /* @__PURE__ */ Object.freeze({
3561
3561
  boolean: Xs,
3562
3562
  date: Ol,
3563
3563
  discriminatedUnion: Yl,
3564
- effect: os,
3564
+ effect: is,
3565
3565
  enum: ic,
3566
3566
  function: ac,
3567
3567
  instanceof: Dl,
@@ -3588,7 +3588,7 @@ var o = /* @__PURE__ */ Object.freeze({
3588
3588
  strictObject: Jl,
3589
3589
  string: Qs,
3590
3590
  symbol: Ul,
3591
- transformer: os,
3591
+ transformer: is,
3592
3592
  tuple: ec,
3593
3593
  undefined: Zl,
3594
3594
  union: Ql,
@@ -3620,19 +3620,19 @@ const bc = "1.0.0", Lr = {
3620
3620
  stat: [],
3621
3621
  table: ["columns", "table"]
3622
3622
  }, Vn = bc.split(".", 1)[0];
3623
- function Ea(t) {
3623
+ function Aa(t) {
3624
3624
  return t.split(".", 1)[0];
3625
3625
  }
3626
3626
  class wc extends Error {
3627
3627
  constructor(n) {
3628
- super(`Lens contract major version ${Ea(n)} is incompatible with expected major ${Vn}`);
3628
+ super(`Lens contract major version ${Aa(n)} is incompatible with expected major ${Vn}`);
3629
3629
  Ge(this, "code", "CONTRACT_VERSION_MISMATCH");
3630
3630
  Ge(this, "expectedMajor", Vn);
3631
3631
  this.actualVersion = n, this.name = "ContractVersionMismatchError";
3632
3632
  }
3633
3633
  }
3634
3634
  const kc = o.string().refine(
3635
- (t) => Ea(t) === Vn,
3635
+ (t) => Aa(t) === Vn,
3636
3636
  { message: `Expected Lens contract major version ${Vn}` }
3637
3637
  ), Gt = o.lazy(() => o.object({
3638
3638
  kind: o.lazy(() => _c),
@@ -3657,7 +3657,7 @@ const kc = o.string().refine(
3657
3657
  label: o.string(),
3658
3658
  value: o.string(),
3659
3659
  removeUrl: o.string()
3660
- }).strict(), Dr = o.enum(["available", "config_required", "empty_source", "unavailable"]), Tc = o.enum(["linear", "logarithmic"]), Cc = o.enum(["waterfall"]);
3660
+ }).strict(), zr = o.enum(["available", "config_required", "empty_source", "unavailable"]), Tc = o.enum(["linear", "logarithmic"]), Cc = o.enum(["waterfall"]);
3661
3661
  o.enum(["inflow", "negative", "neutral", "positive"]);
3662
3662
  const Lc = o.enum(["category", "rank", "sequence"]), Pc = o.lazy(() => o.object({
3663
3663
  name: o.string(),
@@ -3672,13 +3672,13 @@ const Lc = o.enum(["category", "rank", "sequence"]), Pc = o.lazy(() => o.object(
3672
3672
  mode: o.lazy(() => Ec),
3673
3673
  start: o.string().optional(),
3674
3674
  end: o.string().optional()
3675
- }).strict(), zr = o.enum(["calculated", "proxy", "requires_reconciliation", "verified"]), Mc = o.lazy(() => o.object({
3675
+ }).strict(), $r = o.enum(["calculated", "proxy", "requires_reconciliation", "verified"]), Mc = o.lazy(() => o.object({
3676
3676
  version: kc,
3677
3677
  snapshotId: o.string(),
3678
3678
  meta: o.lazy(() => dd),
3679
3679
  layout: o.lazy(() => Xc),
3680
3680
  panels: o.array(o.lazy(() => bd)),
3681
- frames: o.record(o.lazy(() => Jt), o.lazy(() => $r)),
3681
+ frames: o.record(o.lazy(() => Jt), o.lazy(() => Or)),
3682
3682
  drill: o.lazy(() => zc),
3683
3683
  perspectives: o.array(o.lazy(() => Td)),
3684
3684
  filters: o.array(o.lazy(() => Bc)).optional(),
@@ -3775,12 +3775,12 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3775
3775
  tab: o.string()
3776
3776
  }).strict(), qc = o.object({
3777
3777
  tolerance: o.number().optional()
3778
- }).strict(), Kc = o.enum(["canvas"]), Hc = o.enum(["date", "money", "number", "percent", "string"]), $r = o.lazy(() => o.object({
3778
+ }).strict(), Kc = o.enum(["canvas"]), Hc = o.enum(["date", "money", "number", "percent", "string"]), Or = o.lazy(() => o.object({
3779
3779
  columns: o.array(o.lazy(() => Pc)),
3780
3780
  rows: o.array(o.array(o.unknown())),
3781
3781
  children: o.array(o.lazy(() => ro)).optional(),
3782
3782
  total: o.number().optional(),
3783
- presentation: o.lazy(() => ja).optional(),
3783
+ presentation: o.lazy(() => Fa).optional(),
3784
3784
  colors: o.array(o.string()).optional()
3785
3785
  }).strict()), Jt = o.string(), Gc = o.object({
3786
3786
  type: o.string(),
@@ -3805,7 +3805,7 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3805
3805
  layout: o.lazy(() => nd).optional(),
3806
3806
  span: o.number().int(),
3807
3807
  tab: o.string().optional(),
3808
- status: o.lazy(() => Ma).optional()
3808
+ status: o.lazy(() => ja).optional()
3809
3809
  }).strict()), td = o.enum(["metrics", "tabs"]), nd = o.enum(["columns", "rows"]), rd = o.object({
3810
3810
  panelId: o.string(),
3811
3811
  span: o.number().int(),
@@ -3816,7 +3816,7 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3816
3816
  anchor: o.string().optional(),
3817
3817
  panels: o.array(o.lazy(() => rd))
3818
3818
  }).strict(), sd = o.enum(["below"]), od = o.enum(["percent", "value"]), id = o.lazy(() => o.object({
3819
- path: o.lazy(() => Aa),
3819
+ path: o.lazy(() => Ma),
3820
3820
  label: o.string(),
3821
3821
  children: o.array(o.lazy(() => ro)),
3822
3822
  dynamicChildren: o.lazy(() => $c).optional(),
@@ -3825,8 +3825,8 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3825
3825
  perspectives: o.array(o.lazy(() => Cd)),
3826
3826
  defaultPerspective: o.string().optional(),
3827
3827
  view: o.lazy(() => oo).optional(),
3828
- presentation: o.lazy(() => ja).optional(),
3829
- status: o.lazy(() => Ma).optional(),
3828
+ presentation: o.lazy(() => Fa).optional(),
3829
+ status: o.lazy(() => ja).optional(),
3830
3830
  source: o.lazy(() => ld).optional()
3831
3831
  }).strict()), ld = o.lazy(() => o.object({
3832
3832
  label: o.string().optional(),
@@ -3852,8 +3852,8 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3852
3852
  label: o.string(),
3853
3853
  role: o.lazy(() => fd),
3854
3854
  caption: o.string().optional(),
3855
- confidence: o.lazy(() => zr).optional(),
3856
- availability: o.lazy(() => Dr).optional(),
3855
+ confidence: o.lazy(() => $r).optional(),
3856
+ availability: o.lazy(() => zr).optional(),
3857
3857
  action: o.lazy(() => Gt).optional()
3858
3858
  }).strict()), fd = o.enum(["add", "input", "intermediate", "result", "subtract"]), hd = o.lazy(() => o.object({
3859
3859
  rows: o.array(o.lazy(() => md)),
@@ -3866,28 +3866,28 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3866
3866
  depth: o.number().int().optional(),
3867
3867
  unallocated: o.boolean().optional(),
3868
3868
  selected: o.boolean().optional(),
3869
- confidence: o.lazy(() => zr).optional(),
3870
- availability: o.lazy(() => Dr).optional(),
3869
+ confidence: o.lazy(() => $r).optional(),
3870
+ availability: o.lazy(() => zr).optional(),
3871
3871
  action: o.lazy(() => Gt).optional()
3872
3872
  }).strict(), yd = o.lazy(() => o.object({
3873
- source: o.lazy(() => is),
3874
- target: o.lazy(() => is),
3873
+ source: o.lazy(() => ls),
3874
+ target: o.lazy(() => ls),
3875
3875
  type: o.lazy(() => vd),
3876
3876
  direction: o.lazy(() => gd).optional(),
3877
3877
  note: o.string().optional()
3878
- }).strict()), gd = o.enum(["bidirectional", "source_to_target", "target_to_source"]), is = o.object({
3878
+ }).strict()), gd = o.enum(["bidirectional", "source_to_target", "target_to_source"]), ls = o.object({
3879
3879
  key: o.string(),
3880
3880
  label: o.string(),
3881
- confidence: o.lazy(() => zr).optional(),
3882
- availability: o.lazy(() => Dr).optional(),
3881
+ confidence: o.lazy(() => $r).optional(),
3882
+ availability: o.lazy(() => zr).optional(),
3883
3883
  action: o.lazy(() => Gt).optional()
3884
3884
  }).strict(), vd = o.enum(["association", "derivation", "reconciliation"]), ro = o.lazy(() => o.object({
3885
3885
  key: o.lazy(() => Kt),
3886
- path: o.lazy(() => Aa),
3886
+ path: o.lazy(() => Ma),
3887
3887
  label: o.string(),
3888
3888
  target: o.lazy(() => Kt).optional(),
3889
3889
  action: o.lazy(() => Gt).optional()
3890
- }).strict()), Kt = o.string(), Aa = o.array(o.lazy(() => Kt)), bd = o.lazy(() => o.object({
3890
+ }).strict()), Kt = o.string(), Ma = o.array(o.lazy(() => Kt)), bd = o.lazy(() => o.object({
3891
3891
  id: o.string(),
3892
3892
  kind: o.lazy(() => oo),
3893
3893
  title: o.string(),
@@ -3901,7 +3901,7 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3901
3901
  drillRoot: o.lazy(() => Kt).optional(),
3902
3902
  actions: o.array(o.lazy(() => Gt)),
3903
3903
  accent: o.string().optional(),
3904
- status: o.lazy(() => Ma).optional(),
3904
+ status: o.lazy(() => ja).optional(),
3905
3905
  caption: o.string().optional(),
3906
3906
  info: o.string().optional(),
3907
3907
  headline: o.number().optional(),
@@ -3909,15 +3909,15 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3909
3909
  sparkline: o.lazy(() => Fd).optional(),
3910
3910
  target: o.lazy(() => io).optional(),
3911
3911
  temporal: o.lazy(() => xd).optional(),
3912
- presentation: o.lazy(() => ja).optional(),
3912
+ presentation: o.lazy(() => Fa).optional(),
3913
3913
  valueAxis: o.lazy(() => tu).optional(),
3914
3914
  metricFlow: o.lazy(() => ud).optional(),
3915
3915
  metricHierarchy: o.lazy(() => hd).optional(),
3916
3916
  metricRelationship: o.lazy(() => yd).optional(),
3917
3917
  radial: o.lazy(() => Pd).optional(),
3918
3918
  map: o.lazy(() => cd).optional(),
3919
- confidence: o.lazy(() => zr).optional(),
3920
- availability: o.lazy(() => Dr).optional(),
3919
+ confidence: o.lazy(() => $r).optional(),
3920
+ availability: o.lazy(() => zr).optional(),
3921
3921
  deferred: o.boolean().optional(),
3922
3922
  terminal: o.boolean().optional(),
3923
3923
  comparisonUnsupported: o.boolean().optional()
@@ -3927,17 +3927,17 @@ const Dc = o.enum(["wide"]), zc = o.lazy(() => o.object({
3927
3927
  !n.has(a) && r[a] !== void 0 && e.addIssue({ code: o.ZodIssueCode.custom, path: [a], message: `${a} is not valid for ${t.kind}` });
3928
3928
  }), wd = o.lazy(() => o.object({
3929
3929
  snapshotId: o.string(),
3930
- panels: o.array(o.lazy(() => ha))
3930
+ panels: o.array(o.lazy(() => ma))
3931
3931
  }).strict());
3932
3932
  o.lazy(() => o.object({
3933
3933
  panels: o.record(o.string(), o.lazy(() => ao))
3934
3934
  }).strict());
3935
3935
  const ao = o.lazy(() => o.object({
3936
- frames: o.record(o.lazy(() => Jt), o.lazy(() => $r)).optional(),
3936
+ frames: o.record(o.lazy(() => Jt), o.lazy(() => Or)).optional(),
3937
3937
  calculation: o.lazy(() => so).optional(),
3938
3938
  summary: o.lazy(() => mo).optional(),
3939
- page: o.lazy(() => Da).optional(),
3940
- error: o.lazy(() => Fa).optional()
3939
+ page: o.lazy(() => za).optional(),
3940
+ error: o.lazy(() => Da).optional()
3941
3941
  }).strict()), kd = o.object({
3942
3942
  panelId: o.string().optional(),
3943
3943
  result: o.lazy(() => ao).optional(),
@@ -3946,7 +3946,7 @@ const ao = o.lazy(() => o.object({
3946
3946
  durationMs: o.number().int(),
3947
3947
  cacheHit: o.boolean(),
3948
3948
  calculatedAt: o.string().datetime({ offset: !0 })
3949
- }).strict(), oo = o.enum(["area", "bar", "boxplot", "cascade", "coverage", "donut", "gauge", "hbar", "heatmap", "histogram", "line", "map", "metric_flow", "metric_hierarchy", "metric_relationship", "pie", "radial", "stat", "table"]), ha = o.lazy(() => o.object({
3949
+ }).strict(), oo = o.enum(["area", "bar", "boxplot", "cascade", "coverage", "donut", "gauge", "hbar", "heatmap", "histogram", "line", "map", "metric_flow", "metric_hierarchy", "metric_relationship", "pie", "radial", "stat", "table"]), ma = o.lazy(() => o.object({
3950
3950
  panelId: o.string(),
3951
3951
  recompute: o.boolean().optional(),
3952
3952
  search: o.string().optional(),
@@ -3955,12 +3955,12 @@ const ao = o.lazy(() => o.object({
3955
3955
  viewportRank: o.number().int().min(0).max(2).optional()
3956
3956
  }).strict());
3957
3957
  o.lazy(() => o.object({
3958
- frames: o.record(o.lazy(() => Jt), o.lazy(() => $r)),
3958
+ frames: o.record(o.lazy(() => Jt), o.lazy(() => Or)),
3959
3959
  calculation: o.lazy(() => so),
3960
3960
  summary: o.lazy(() => mo).optional(),
3961
- page: o.lazy(() => Da).optional()
3961
+ page: o.lazy(() => za).optional()
3962
3962
  }).strict());
3963
- const Ma = o.lazy(() => o.object({
3963
+ const ja = o.lazy(() => o.object({
3964
3964
  label: o.string(),
3965
3965
  tone: o.lazy(() => Dd).optional()
3966
3966
  }).strict()), io = o.object({
@@ -4006,12 +4006,13 @@ const Ma = o.lazy(() => o.object({
4006
4006
  root: o.lazy(() => Kt)
4007
4007
  }).strict()), Cd = o.object({
4008
4008
  id: o.string()
4009
- }).strict(), ja = o.lazy(() => o.object({
4009
+ }).strict(), Fa = o.lazy(() => o.object({
4010
4010
  dataLabels: o.boolean().optional(),
4011
4011
  legend: o.lazy(() => sd).optional(),
4012
4012
  legendValue: o.lazy(() => od).optional(),
4013
4013
  sliceLabels: o.lazy(() => Md).optional(),
4014
4014
  totalBadge: o.lazy(() => Qd).optional(),
4015
+ keepTotalBadge: o.boolean().optional(),
4015
4016
  colorBy: o.lazy(() => Lc).optional(),
4016
4017
  valueSpreadThreshold: o.number().optional(),
4017
4018
  fill: o.boolean().optional(),
@@ -4024,17 +4025,17 @@ const Ma = o.lazy(() => o.object({
4024
4025
  focus: o.lazy(() => Kc).optional(),
4025
4026
  stack: o.boolean().optional(),
4026
4027
  lineSeries: o.array(o.string()).optional()
4027
- }).strict()), Ld = o.enum(["bad_request", "internal", "snapshot_gone"]), Fa = o.object({
4028
+ }).strict()), Ld = o.enum(["bad_request", "internal", "snapshot_gone"]), Da = o.object({
4028
4029
  error: o.lazy(() => Ld),
4029
4030
  message: o.string(),
4030
4031
  reason: o.lazy(() => to).optional()
4031
- }).strict(), Da = o.object({
4032
+ }).strict(), za = o.object({
4032
4033
  number: o.number().int(),
4033
4034
  size: o.number().int(),
4034
4035
  hasNext: o.boolean().optional()
4035
4036
  }).strict(), co = o.lazy(() => o.object({
4036
4037
  snapshotId: o.string(),
4037
- path: o.lazy(() => Aa),
4038
+ path: o.lazy(() => Ma),
4038
4039
  perspective: o.string().optional(),
4039
4040
  revision: o.number().int().optional(),
4040
4041
  prefetch: o.boolean().optional(),
@@ -4042,8 +4043,8 @@ const Ma = o.lazy(() => o.object({
4042
4043
  page: o.number().int().optional(),
4043
4044
  sort: o.lazy(() => ho).optional()
4044
4045
  }).strict()), uo = o.object({
4045
- frames: o.record(o.lazy(() => Jt), o.lazy(() => $r)),
4046
- page: o.lazy(() => Da).optional()
4046
+ frames: o.record(o.lazy(() => Jt), o.lazy(() => Or)),
4047
+ page: o.lazy(() => za).optional()
4047
4048
  }).strict(), Pd = o.lazy(() => o.object({
4048
4049
  mode: o.lazy(() => Id),
4049
4050
  max: o.number().optional(),
@@ -4146,9 +4147,9 @@ function su(t) {
4146
4147
  throw new o.ZodError([{ code: "custom", path: ["panels", n], message: "panel " + e.id + " must be actionable or explicitly terminal" }]);
4147
4148
  });
4148
4149
  }
4149
- function za(t) {
4150
+ function $a(t) {
4150
4151
  const e = ru.safeParse(t);
4151
- if (e.success && Ea(e.data.version) !== Vn)
4152
+ if (e.success && Aa(e.data.version) !== Vn)
4152
4153
  throw new wc(e.data.version);
4153
4154
  const n = Mc.parse(t);
4154
4155
  return su(n), n;
@@ -4197,7 +4198,7 @@ async function hr(t, e = {}) {
4197
4198
  signal: e.signal
4198
4199
  });
4199
4200
  if (!n.ok) throw new Error(`document request failed with ${n.status}`);
4200
- return za(await n.json());
4201
+ return $a(await n.json());
4201
4202
  }
4202
4203
  function Te(t, e) {
4203
4204
  return function({ size: r = e, className: a }) {
@@ -4253,7 +4254,7 @@ const lu = Te(
4253
4254
  /* @__PURE__ */ c("path", { d: "M188.4,192a88,88,0,1,1,1.83-126.23L232,104", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })
4254
4255
  ] }),
4255
4256
  14
4256
- ), $a = Te(
4257
+ ), Oa = Te(
4257
4258
  /* @__PURE__ */ c(ve, { children: /* @__PURE__ */ c("path", { d: "M168,40a97,97,0,0,1,56,88,96,96,0,0,1-192,0A97,97,0,0,1,88,40", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }) }),
4258
4259
  14
4259
4260
  ), vn = Te(
@@ -4285,10 +4286,10 @@ const lu = Te(
4285
4286
  /* @__PURE__ */ c("path", { d: "M40,168H32a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8H160a8,8,0,0,1,8,8v8", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })
4286
4287
  ] }),
4287
4288
  13
4288
- ), Or = Te(
4289
+ ), Ur = Te(
4289
4290
  /* @__PURE__ */ c(ve, { children: /* @__PURE__ */ c("polyline", { points: "216 72 104 184 48 128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }) }),
4290
4291
  13
4291
- ), ma = Te(
4292
+ ), ya = Te(
4292
4293
  /* @__PURE__ */ v(ve, { children: [
4293
4294
  /* @__PURE__ */ c("line", { x1: "64", y1: "192", x2: "192", y2: "64", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
4294
4295
  /* @__PURE__ */ c("polyline", { points: "88 64 192 64 192 168", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })
@@ -4401,7 +4402,7 @@ const lu = Te(
4401
4402
  ), mu = Te(
4402
4403
  /* @__PURE__ */ c(ve, { children: /* @__PURE__ */ c("path", { d: "M106.63,152.13l-8.69,9.81a48,48,0,1,1,0-67.88l60.12,67.88a48,48,0,1,0,0-67.88l-8.69,9.81", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }) }),
4403
4404
  14
4404
- ), Oa = Te(
4405
+ ), Ua = Te(
4405
4406
  /* @__PURE__ */ v(ve, { children: [
4406
4407
  /* @__PURE__ */ c("circle", { cx: "128", cy: "128", r: "96", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" }),
4407
4408
  /* @__PURE__ */ c("polyline", { points: "128 72 128 128 184 128", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "16" })
@@ -4429,7 +4430,7 @@ function Ht(t, e) {
4429
4430
  return new Date(Date.UTC(t, e, 0)).getUTCDate();
4430
4431
  }
4431
4432
  const wo = 864e5;
4432
- function ya(t) {
4433
+ function ga(t) {
4433
4434
  return Date.UTC(t.year, t.month - 1, t.day) / wo;
4434
4435
  }
4435
4436
  function gu(t) {
@@ -4437,14 +4438,14 @@ function gu(t) {
4437
4438
  return { year: e.getUTCFullYear(), month: e.getUTCMonth() + 1, day: e.getUTCDate() };
4438
4439
  }
4439
4440
  function Ke(t, e) {
4440
- return gu(ya(t) + e);
4441
+ return gu(ga(t) + e);
4441
4442
  }
4442
4443
  function gt(t, e) {
4443
4444
  const n = t.year * 12 + (t.month - 1) + e, r = Math.floor(n / 12), a = n - r * 12 + 1;
4444
4445
  return { year: r, month: a, day: Math.min(t.day, Ht(r, a)) };
4445
4446
  }
4446
4447
  function ko(t, e) {
4447
- return Math.abs(ya(e) - ya(t)) + 1;
4448
+ return Math.abs(ga(e) - ga(t)) + 1;
4448
4449
  }
4449
4450
  function vu(t, e) {
4450
4451
  return t === e.year ? e : { year: t, month: 12, day: 31 };
@@ -4593,31 +4594,31 @@ function Pu(t) {
4593
4594
  }
4594
4595
  return 1;
4595
4596
  }
4596
- function Ur(t, e) {
4597
+ function Zr(t, e) {
4597
4598
  return new Intl.DateTimeFormat(_o(t), { ...e, timeZone: "UTC" });
4598
4599
  }
4599
- function Zr(t) {
4600
+ function Br(t) {
4600
4601
  return new Date(Date.UTC(t.year, t.month - 1, t.day));
4601
4602
  }
4602
4603
  function or(t, e, n) {
4603
- const r = Ur(t, { month: "long" }).format(Zr({ year: e, month: n, day: 1 }));
4604
+ const r = Zr(t, { month: "long" }).format(Br({ year: e, month: n, day: 1 }));
4604
4605
  return `${r.charAt(0).toUpperCase()}${r.slice(1)} ${e}`;
4605
4606
  }
4606
4607
  function Iu(t, e) {
4607
- const n = Ur(t, { weekday: "short" }), r = [];
4608
+ const n = Zr(t, { weekday: "short" }), r = [];
4608
4609
  for (let a = 0; a < 7; a += 1) {
4609
4610
  const s = (e - 1 + a) % 7 + 1;
4610
- r.push(n.format(Zr({ year: 2024, month: 1, day: s })));
4611
+ r.push(n.format(Br({ year: 2024, month: 1, day: s })));
4611
4612
  }
4612
4613
  return r;
4613
4614
  }
4614
4615
  function ir(t, e) {
4615
- return Ur(t, { day: "numeric", month: "short", year: "numeric" }).format(Zr(e));
4616
+ return Zr(t, { day: "numeric", month: "short", year: "numeric" }).format(Br(e));
4616
4617
  }
4617
4618
  function Ru(t) {
4618
- const e = Ur(t, { month: "short" });
4619
+ const e = Zr(t, { month: "short" });
4619
4620
  return Array.from({ length: 12 }, (n, r) => {
4620
- const a = e.format(Zr({ year: 2024, month: r + 1, day: 1 }));
4621
+ const a = e.format(Br({ year: 2024, month: r + 1, day: 1 }));
4621
4622
  return `${a.charAt(0).toUpperCase()}${a.slice(1)}`;
4622
4623
  });
4623
4624
  }
@@ -4625,12 +4626,12 @@ function Eu(t) {
4625
4626
  const e = Math.floor(t / 12) * 12;
4626
4627
  return Array.from({ length: 12 }, (n, r) => e + r);
4627
4628
  }
4628
- function ls(t) {
4629
+ function cs(t) {
4629
4630
  const e = String(t.day).padStart(2, "0"), n = String(t.month).padStart(2, "0"), r = String(t.year).padStart(4, "0");
4630
4631
  return `${e}.${n}.${r}`;
4631
4632
  }
4632
- function cs(t, e) {
4633
- const n = ls(t), r = ls(e);
4633
+ function ds(t, e) {
4634
+ const n = cs(t), r = cs(e);
4634
4635
  return n === r ? n : `${n} – ${r}`;
4635
4636
  }
4636
4637
  function Au(t, e) {
@@ -4658,7 +4659,7 @@ function Mu(t, e) {
4658
4659
  for (const [r, a] of e.searchParams)
4659
4660
  n.has(r) || t.searchParams.append(r, a);
4660
4661
  }
4661
- function ga(t) {
4662
+ function va(t) {
4662
4663
  return typeof t == "string" ? t : typeof t == "number" || typeof t == "boolean" || typeof t == "bigint" ? String(t) : JSON.stringify(t);
4663
4664
  }
4664
4665
  function ju(t, e) {
@@ -4667,29 +4668,29 @@ function ju(t, e) {
4667
4668
  for (const r of t.params) {
4668
4669
  const a = Ir(r.source, e);
4669
4670
  if (a == null) return;
4670
- const s = ga(a);
4671
+ const s = va(a);
4671
4672
  if (s === void 0) return;
4672
4673
  n = n.replaceAll(`{${r.name}}`, encodeURIComponent(s));
4673
4674
  }
4674
4675
  if (!/\{[^}]+\}/.test(n))
4675
4676
  return n;
4676
4677
  }
4677
- function Ua(t, e) {
4678
+ function Za(t, e) {
4678
4679
  if (!(t.kind !== "navigate_to_leaf" && t.kind !== "open_drawer"))
4679
- return Za(t, e);
4680
+ return Ba(t, e);
4680
4681
  }
4681
- function Za(t, e) {
4682
+ function Ba(t, e) {
4682
4683
  var a;
4683
4684
  if (t.kind !== "navigate" && t.kind !== "navigate_to_leaf" && t.kind !== "open_drawer") return;
4684
4685
  if (t.kind === "open_drawer" && t.drawerKey) {
4685
- const s = (a = ga(Ir(t.drawerKey, e))) == null ? void 0 : a.trim();
4686
+ const s = (a = va(Ir(t.drawerKey, e))) == null ? void 0 : a.trim();
4686
4687
  return s ? `${e.location.pathname}#lens-drawer=${encodeURIComponent(s)}` : void 0;
4687
4688
  }
4688
4689
  let n;
4689
4690
  if (t.urlSource) {
4690
4691
  const s = Ir(t.urlSource, e);
4691
4692
  if (s == null) return;
4692
- n = typeof s == "string" ? s : ga(s);
4693
+ n = typeof s == "string" ? s : va(s);
4693
4694
  } else
4694
4695
  n = ju(t, e);
4695
4696
  if (n === void 0 || n.trim() === "") return;
@@ -4711,7 +4712,7 @@ function ln(t) {
4711
4712
  }
4712
4713
  }
4713
4714
  function vm(t, e, n, r) {
4714
- return Ua(t, {
4715
+ return Za(t, {
4715
4716
  fields: qn(e, n),
4716
4717
  variables: bn(r),
4717
4718
  location: r
@@ -4724,7 +4725,7 @@ function So(t, e, n, r) {
4724
4725
  }
4725
4726
  function bm(t, e, n, r, a) {
4726
4727
  const s = a ? So(a, t, e, n) : void 0, i = No(t, a, s);
4727
- return i ? Ua(i, {
4728
+ return i ? Za(i, {
4728
4729
  fields: qn(e, n),
4729
4730
  variables: bn(r),
4730
4731
  location: r
@@ -4748,17 +4749,17 @@ function Fu(t) {
4748
4749
  n.kind === "period" && n.period && e.push(n.period.startParam, n.period.endParam), n.kind === "compare" && n.compare && e.push(n.compare.modeParam, n.compare.startParam, n.compare.endParam), n.kind === "segmented" && n.segmented && e.push(n.segmented.param);
4749
4750
  return e;
4750
4751
  }
4751
- function ds(t, e) {
4752
+ function us(t, e) {
4752
4753
  return e === "" ? !!t.allowEmpty : !(!it(e) || t.min && e < t.min || t.max && e > t.max);
4753
4754
  }
4754
- function us(t, e) {
4755
+ function ps(t, e) {
4755
4756
  const n = {};
4756
4757
  for (const s of Pt(t)) {
4757
4758
  if (s.kind !== "period") continue;
4758
4759
  const i = s.period;
4759
4760
  if (!i) continue;
4760
4761
  const l = e.searchParams.get(i.startParam), d = e.searchParams.get(i.endParam);
4761
- l === null || d === null || !ds(i, l) || !ds(i, d) || l !== "" && d !== "" && d < l || (n[i.startParam] = l, n[i.endParam] = d);
4762
+ l === null || d === null || !us(i, l) || !us(i, d) || l !== "" && d !== "" && d < l || (n[i.startParam] = l, n[i.endParam] = d);
4762
4763
  }
4763
4764
  for (const s of Pt(t)) {
4764
4765
  if (s.kind !== "segmented" || !s.segmented) continue;
@@ -4798,7 +4799,7 @@ function To(t, e) {
4798
4799
  return Array.isArray(a) || Array.isArray(s) ? Array.isArray(a) && Array.isArray(s) && a.length === s.length && a.every((i, l) => i === s[l]) : a === s;
4799
4800
  });
4800
4801
  }
4801
- function ea(t, e) {
4802
+ function ta(t, e) {
4802
4803
  const n = e[t.startParam], r = e[t.endParam];
4803
4804
  return Array.isArray(n) || Array.isArray(r) ? t.value : n !== void 0 && r !== void 0 ? { start: n, end: r } : t.value;
4804
4805
  }
@@ -4856,7 +4857,7 @@ function Vu(t, e) {
4856
4857
  for (const n of Object.values(t.drill.edges))
4857
4858
  if (Co(n.path, e)) return n;
4858
4859
  }
4859
- function Ba(t, e) {
4860
+ function Va(t, e) {
4860
4861
  for (let n = e.length; n > 0; n -= 1) {
4861
4862
  const r = Vu(t, e.slice(0, n));
4862
4863
  if (!r) continue;
@@ -4875,11 +4876,11 @@ function Ba(t, e) {
4875
4876
  }
4876
4877
  function Ot(t, e) {
4877
4878
  var n;
4878
- return (n = Ba(t, e)) == null ? void 0 : n.level;
4879
+ return (n = Va(t, e)) == null ? void 0 : n.level;
4879
4880
  }
4880
4881
  function Lo(t, e) {
4881
4882
  var n;
4882
- return ((n = Ba(t, e)) == null ? void 0 : n.queryPath) ?? [...e];
4883
+ return ((n = Va(t, e)) == null ? void 0 : n.queryPath) ?? [...e];
4883
4884
  }
4884
4885
  function Er(t, e) {
4885
4886
  if (e.frame) return !1;
@@ -4914,7 +4915,7 @@ function Bt(t, e) {
4914
4915
  return r ? r.every((s, i) => e.path[i] === s) : !1;
4915
4916
  });
4916
4917
  }
4917
- function Va(t, e) {
4918
+ function Wa(t, e) {
4918
4919
  var a;
4919
4920
  const n = t.panels.find((s) => s.id === e), r = n != null && n.drillRoot ? ((a = t.drill.edges[n.drillRoot]) == null ? void 0 : a.path) ?? [] : [];
4920
4921
  return { panelId: n == null ? void 0 : n.id, path: [...r] };
@@ -4933,7 +4934,7 @@ function yr(t, e) {
4933
4934
  }
4934
4935
  function gr(t, e, n) {
4935
4936
  if (!n.children) return t;
4936
- const r = Ba(t, e);
4937
+ const r = Va(t, e);
4937
4938
  if (!(r != null && r.level.dynamicChildren)) return t;
4938
4939
  const a = Object.entries(t.drill.edges).find(([, l]) => l === r.level);
4939
4940
  if (!a) return t;
@@ -4946,7 +4947,7 @@ function gr(t, e, n) {
4946
4947
  }
4947
4948
  };
4948
4949
  }
4949
- function ta(t) {
4950
+ function na(t) {
4950
4951
  let e = t;
4951
4952
  for (const n of Object.values(t.drill.edges)) {
4952
4953
  const r = n.frame ? t.frames[n.frame] : void 0;
@@ -4954,7 +4955,7 @@ function ta(t) {
4954
4955
  }
4955
4956
  return e;
4956
4957
  }
4957
- function va({ className: t, style: e }) {
4958
+ function ba({ className: t, style: e }) {
4958
4959
  return /* @__PURE__ */ c("span", { className: `lens-shimmer ${t ?? ""}`.trim(), style: e });
4959
4960
  }
4960
4961
  function qu(t) {
@@ -4962,8 +4963,8 @@ function qu(t) {
4962
4963
  }
4963
4964
  function Io({ kind: t, metrics: e }) {
4964
4965
  return /* @__PURE__ */ v("div", { className: "lens-skeleton-card", "data-kind": t, "data-metrics": e ? "true" : void 0, children: [
4965
- /* @__PURE__ */ c(va, { className: "lens-shimmer-label" }),
4966
- /* @__PURE__ */ c(va, { className: "lens-shimmer-body" })
4966
+ /* @__PURE__ */ c(ba, { className: "lens-shimmer-label" }),
4967
+ /* @__PURE__ */ c(ba, { className: "lens-shimmer-body" })
4967
4968
  ] });
4968
4969
  }
4969
4970
  function Ro({ kind: t }) {
@@ -4972,7 +4973,7 @@ function Ro({ kind: t }) {
4972
4973
  function Eo({ rows: t }) {
4973
4974
  return /* @__PURE__ */ c("div", { "aria-hidden": "true", className: "lens-dashboard-skeleton", role: "presentation", children: t.map((e, n) => /* @__PURE__ */ v("section", { className: "lens-dashboard-row", children: [
4974
4975
  e.heading && /* @__PURE__ */ v("div", { className: "lens-skeleton-heading", children: [
4975
- /* @__PURE__ */ c(va, { className: "lens-shimmer-label", style: { width: "8rem" } }),
4976
+ /* @__PURE__ */ c(ba, { className: "lens-shimmer-label", style: { width: "8rem" } }),
4976
4977
  /* @__PURE__ */ c("span", { className: "lens-skeleton-heading-rule" })
4977
4978
  ] }),
4978
4979
  /* @__PURE__ */ c("div", { className: "lens-panel-grid", children: e.items.map((r, a) => /* @__PURE__ */ c("div", { className: "lens-grid-item", style: qu(r.span), children: /* @__PURE__ */ c(Io, { kind: r.kind, metrics: r.metrics }) }, a)) })
@@ -5195,7 +5196,7 @@ function ap(t, e, n, r) {
5195
5196
  return Jn(t, n, r);
5196
5197
  const s = n.kind === "money" && n.minorUnits ? a / 100 : a, i = n.kind === "money" && n.minorUnits ? e / 100 : e;
5197
5198
  if (Math.abs(i) < Gn) return Jn(t, n, r);
5198
- const d = 10 ** Math.min(15, Math.floor(Math.log10(Math.abs(i)) / 3) * 3), u = new Intl.NumberFormat(r, { notation: "compact", compactDisplay: "short", maximumFractionDigits: 0 }).formatToParts(d), p = u.findIndex((x) => x.type === "compact"), h = p < 0 ? "" : u[p].value, b = p > 0 && u[p - 1].type === "literal" ? u[p - 1].value.replace(/\s+/g, Ao) : "", f = new Intl.NumberFormat(r, Kn(n.precision)), y = ut(f.formatToParts(s / d), n.decimalSeparator), k = h ? `${y}${b}${h}` : y;
5199
+ const d = 10 ** Math.min(15, Math.floor(Math.log10(Math.abs(i)) / 3) * 3), u = new Intl.NumberFormat(r, { notation: "compact", compactDisplay: "short", maximumFractionDigits: 0 }).formatToParts(d), p = u.findIndex((x) => x.type === "compact"), h = p < 0 ? "" : u[p].value, b = p > 0 && u[p - 1].type === "literal" ? u[p - 1].value.replace(/\s+/g, Ao) : "", f = new Intl.NumberFormat(r, Kn(n.precision)), m = ut(f.formatToParts(s / d), n.decimalSeparator), k = h ? `${m}${b}${h}` : m;
5199
5200
  return n.kind === "money" ? Hn(k, n.currency ?? "USD") : k;
5200
5201
  }
5201
5202
  function jo(t) {
@@ -5210,12 +5211,12 @@ function dn(t) {
5210
5211
  ...t.drawer ? { drawer: jo(t.drawer) } : {}
5211
5212
  };
5212
5213
  }
5213
- function ps(t, e) {
5214
+ function fs(t, e) {
5214
5215
  return t.length === e.length && t.every((n, r) => n === e[r]);
5215
5216
  }
5216
5217
  function Fo(t, e) {
5217
- const n = t.drawer === void 0 && e.drawer === void 0 || t.drawer !== void 0 && e.drawer !== void 0 && t.drawer.src === e.drawer.src && t.drawer.panelId === e.drawer.panelId && t.drawer.perspectiveId === e.drawer.perspectiveId && ps(t.drawer.path, e.drawer.path);
5218
- return t.panelId === e.panelId && t.perspectiveId === e.perspectiveId && ps(t.path, e.path) && n;
5218
+ const n = t.drawer === void 0 && e.drawer === void 0 || t.drawer !== void 0 && e.drawer !== void 0 && t.drawer.src === e.drawer.src && t.drawer.panelId === e.drawer.panelId && t.drawer.perspectiveId === e.drawer.perspectiveId && fs(t.drawer.path, e.drawer.path);
5219
+ return t.panelId === e.panelId && t.perspectiveId === e.perspectiveId && fs(t.path, e.path) && n;
5219
5220
  }
5220
5221
  function sp(t) {
5221
5222
  return dn(t);
@@ -5223,7 +5224,7 @@ function sp(t) {
5223
5224
  function nn(t, e) {
5224
5225
  return Fo(t, e) ? t : { ...dn(e), revision: (t.revision ?? 0) + 1, history: [...t.history, sp(t)] };
5225
5226
  }
5226
- function fs(t, e) {
5227
+ function hs(t, e) {
5227
5228
  return Fo(t, e) ? t : { ...dn(e), revision: (t.revision ?? 0) + 1, history: t.history };
5228
5229
  }
5229
5230
  function Do(t = {}) {
@@ -5258,7 +5259,7 @@ function dr(t, e) {
5258
5259
  path: e.path ?? t.path,
5259
5260
  perspectiveId: e.perspectiveId
5260
5261
  };
5261
- return e.replace ? fs(t, d) : nn(t, d);
5262
+ return e.replace ? hs(t, d) : nn(t, d);
5262
5263
  }
5263
5264
  case "reset":
5264
5265
  return { ...Do(), revision: (t.revision ?? 0) + 1 };
@@ -5288,7 +5289,7 @@ function dr(t, e) {
5288
5289
  drawer: { src: t.drawer.src, ...e.view, path: [...e.view.path] }
5289
5290
  }) : t;
5290
5291
  case "closeDrawer":
5291
- return t.drawer ? fs(t, { panelId: t.panelId, path: t.path, perspectiveId: t.perspectiveId }) : t;
5292
+ return t.drawer ? hs(t, { panelId: t.panelId, path: t.path, perspectiveId: t.perspectiveId }) : t;
5292
5293
  case "restore":
5293
5294
  return { ...dn(e.view), revision: (t.revision ?? 0) + 1, history: (e.history ?? []).map(dn) };
5294
5295
  }
@@ -5315,7 +5316,7 @@ class Qn extends qe {
5315
5316
  super("snapshot_gone", e, 410), this.name = "SnapshotGoneError";
5316
5317
  }
5317
5318
  }
5318
- function ba(t) {
5319
+ function wa(t) {
5319
5320
  return JSON.stringify([
5320
5321
  t.snapshotId,
5321
5322
  t.path,
@@ -5324,9 +5325,9 @@ function ba(t) {
5324
5325
  ]);
5325
5326
  }
5326
5327
  function op(t) {
5327
- return JSON.stringify([ba(t), t.prefetch === !0, t.idlePrefetch === !0, t.revision ?? 0]);
5328
+ return JSON.stringify([wa(t), t.prefetch === !0, t.idlePrefetch === !0, t.revision ?? 0]);
5328
5329
  }
5329
- class hs {
5330
+ class ms {
5330
5331
  constructor(e, n = {}) {
5331
5332
  Ge(this, "cache", /* @__PURE__ */ new Map());
5332
5333
  Ge(this, "inFlight", /* @__PURE__ */ new Map());
@@ -5335,7 +5336,7 @@ class hs {
5335
5336
  this.endpoint = e, this.options = n;
5336
5337
  }
5337
5338
  peek(e) {
5338
- return this.cache.get(ba(e));
5339
+ return this.cache.get(wa(e));
5339
5340
  }
5340
5341
  async query(e, n = {}) {
5341
5342
  var h, b;
@@ -5343,7 +5344,7 @@ class hs {
5343
5344
  throw n.signal.reason instanceof Error ? n.signal.reason : new DOMException("The operation was aborted", "AbortError");
5344
5345
  const r = co.parse(e);
5345
5346
  this.snapshotId !== r.snapshotId && (this.snapshotId = r.snapshotId, this.cache.clear());
5346
- const a = ba(r), s = this.cache.get(a);
5347
+ const a = wa(r), s = this.cache.get(a);
5347
5348
  if (s && !n.force) return s;
5348
5349
  const i = op(r), l = this.inFlight.get(i);
5349
5350
  if (l) return l;
@@ -5374,7 +5375,7 @@ class hs {
5374
5375
  signal: n
5375
5376
  }), a = await r.json();
5376
5377
  if (!r.ok) {
5377
- const s = Fa.safeParse(a), i = s.success ? s.data.error : "internal", l = s.success ? s.data.message : `query request failed with ${r.status}`;
5378
+ const s = Da.safeParse(a), i = s.success ? s.data.error : "internal", l = s.success ? s.data.message : `query request failed with ${r.status}`;
5378
5379
  throw r.status === 410 && i === "snapshot_gone" ? new Qn(l) : new qe(i, l, r.status, s.success ? s.data.reason : void 0);
5379
5380
  }
5380
5381
  return uo.parse(a);
@@ -5393,7 +5394,7 @@ function ip(t) {
5393
5394
  t.viewportRank ?? -1
5394
5395
  ]);
5395
5396
  }
5396
- class ms {
5397
+ class ys {
5397
5398
  constructor(e, n = {}) {
5398
5399
  Ge(this, "inFlight", /* @__PURE__ */ new Map());
5399
5400
  Ge(this, "controllers", /* @__PURE__ */ new Set());
@@ -5413,7 +5414,7 @@ class ms {
5413
5414
  }
5414
5415
  load(e, n = {}) {
5415
5416
  var h;
5416
- const { snapshotId: r, ...a } = e, s = { ...ha.parse(a), snapshotId: r }, i = ip(s), l = this.inFlight.get(i);
5417
+ const { snapshotId: r, ...a } = e, s = { ...ma.parse(a), snapshotId: r }, i = ip(s), l = this.inFlight.get(i);
5417
5418
  if (l) return l;
5418
5419
  const d = new AbortController(), u = () => {
5419
5420
  var b;
@@ -5431,7 +5432,7 @@ class ms {
5431
5432
  if (e.length === 0) return {};
5432
5433
  const r = e[0].snapshotId;
5433
5434
  if (e.some((u) => u.snapshotId !== r)) throw new Error("panel batch mixes snapshots");
5434
- const a = e.map((u) => ha.parse({
5435
+ const a = e.map((u) => ma.parse({
5435
5436
  panelId: u.panelId,
5436
5437
  recompute: u.recompute,
5437
5438
  search: u.search,
@@ -5481,17 +5482,17 @@ class ms {
5481
5482
  signal: r
5482
5483
  });
5483
5484
  if (!s.ok) {
5484
- const l = await s.json(), d = Fa.safeParse(l), u = d.success ? d.data.error : "internal", p = d.success ? d.data.message : `panel request failed with ${s.status}`;
5485
+ const l = await s.json(), d = Da.safeParse(l), u = d.success ? d.data.error : "internal", p = d.success ? d.data.message : `panel request failed with ${s.status}`;
5485
5486
  throw s.status === 410 && u === "snapshot_gone" ? new Qn(p) : new qe(u, p, s.status, d.success ? d.data.reason : void 0);
5486
5487
  }
5487
5488
  if (!((i = s.headers.get("Content-Type")) != null && i.toLowerCase().includes("ndjson")))
5488
5489
  throw new qe("internal", "panel response must be application/x-ndjson", s.status);
5489
5490
  if (s.body) {
5490
- const l = {}, d = new Set(n.map(({ panelId: y }) => y)), u = s.body.getReader(), p = new TextDecoder();
5491
+ const l = {}, d = new Set(n.map(({ panelId: m }) => m)), u = s.body.getReader(), p = new TextDecoder();
5491
5492
  let h = "", b = !1;
5492
- const f = (y) => {
5493
- if (!y.trim()) return;
5494
- const k = kd.parse(JSON.parse(y));
5493
+ const f = (m) => {
5494
+ if (!m.trim()) return;
5495
+ const k = kd.parse(JSON.parse(m));
5495
5496
  if (k.complete === !0) {
5496
5497
  if (k.panelId !== void 0 || k.result !== void 0)
5497
5498
  throw new qe("internal", "panel stream completion marker carries a result", s.status);
@@ -5511,13 +5512,13 @@ class ms {
5511
5512
  l[k.panelId] = x, a == null || a(k.panelId, x);
5512
5513
  };
5513
5514
  for (; ; ) {
5514
- const { done: y, value: k } = await u.read();
5515
- h += p.decode(k, { stream: !y });
5515
+ const { done: m, value: k } = await u.read();
5516
+ h += p.decode(k, { stream: !m });
5516
5517
  const x = h.split(`
5517
5518
  `);
5518
5519
  h = x.pop() ?? "";
5519
5520
  for (const S of x) f(S);
5520
- if (y) break;
5521
+ if (m) break;
5521
5522
  }
5522
5523
  if (f(h), !b) throw new qe("internal", "panel stream ended before completion", s.status);
5523
5524
  return l;
@@ -5525,7 +5526,7 @@ class ms {
5525
5526
  throw new qe("internal", "panel stream has no body", s.status);
5526
5527
  }
5527
5528
  }
5528
- async function ys(t) {
5529
+ async function gs(t) {
5529
5530
  try {
5530
5531
  return {
5531
5532
  navigation: t.navigation,
@@ -5548,11 +5549,11 @@ async function ys(t) {
5548
5549
  reset: !1
5549
5550
  } : {
5550
5551
  document: e,
5551
- navigation: Va(e, t.navigation.panelId),
5552
+ navigation: Wa(e, t.navigation.panelId),
5552
5553
  reset: !0
5553
5554
  };
5554
5555
  }
5555
- const wa = "path", ka = "perspective", xa = "drawer", _a = "drawerPath", Sa = "drawerPerspective", Na = "drawerPanel", Ar = "lens-state", zo = "lensHidden", $o = "lensTemporal";
5556
+ const ka = "path", xa = "perspective", _a = "drawer", Sa = "drawerPath", Na = "drawerPerspective", Ta = "drawerPanel", Ar = "lens-state", zo = "lensHidden", $o = "lensTemporal";
5556
5557
  function Mr(t, e) {
5557
5558
  try {
5558
5559
  const n = new URL(t, e);
@@ -5561,7 +5562,7 @@ function Mr(t, e) {
5561
5562
  return;
5562
5563
  }
5563
5564
  }
5564
- function Br(t) {
5565
+ function Vr(t) {
5565
5566
  try {
5566
5567
  const e = JSON.parse(t.searchParams.get(Ar) ?? "");
5567
5568
  return e.v !== 1 ? { v: 1 } : { v: 1, ...e.h && typeof e.h == "object" ? { h: e.h } : {}, ...e.t && typeof e.t == "object" ? { t: e.t } : {} };
@@ -5579,25 +5580,25 @@ function lp(t, e) {
5579
5580
  }
5580
5581
  function _m(t, e) {
5581
5582
  var r;
5582
- const n = (r = Br(t).h) == null ? void 0 : r[e];
5583
+ const n = (r = Vr(t).h) == null ? void 0 : r[e];
5583
5584
  return new Set(Array.isArray(n) ? n.filter((a) => typeof a == "string") : []);
5584
5585
  }
5585
5586
  function Sm(t, e, n) {
5586
- const r = Br(t), a = { ...r.h };
5587
+ const r = Vr(t), a = { ...r.h };
5587
5588
  return n.size > 0 ? a[e] = [...n].sort() : delete a[e], Oo(t, { ...r, h: a });
5588
5589
  }
5589
5590
  function Nm(t, e) {
5590
5591
  var r;
5591
- const n = (r = Br(t).t) == null ? void 0 : r[e];
5592
+ const n = (r = Vr(t).t) == null ? void 0 : r[e];
5592
5593
  return Array.isArray(n) && typeof n[0] == "boolean" ? { regression: n[0], ...typeof n[1] == "number" ? { movingAverage: n[1] } : {} } : { regression: !1 };
5593
5594
  }
5594
5595
  function Tm(t, e, n) {
5595
- const r = Br(t), a = { ...r.t };
5596
+ const r = Vr(t), a = { ...r.t };
5596
5597
  return n.regression || n.movingAverage !== void 0 ? a[e] = [n.regression, n.movingAverage] : delete a[e], Oo(t, { ...r, t: a });
5597
5598
  }
5598
- function Wa(t) {
5599
+ function qa(t) {
5599
5600
  var i, l, d, u;
5600
- const e = t.searchParams.getAll(wa).filter((p) => p.length > 0), n = ((i = t.searchParams.get(ka)) == null ? void 0 : i.trim()) || void 0, r = (l = t.searchParams.get(xa)) == null ? void 0 : l.trim();
5601
+ const e = t.searchParams.getAll(ka).filter((p) => p.length > 0), n = ((i = t.searchParams.get(xa)) == null ? void 0 : i.trim()) || void 0, r = (l = t.searchParams.get(_a)) == null ? void 0 : l.trim();
5601
5602
  let a;
5602
5603
  if (r)
5603
5604
  try {
@@ -5607,14 +5608,14 @@ function Wa(t) {
5607
5608
  }
5608
5609
  const s = a ? {
5609
5610
  src: a,
5610
- path: t.searchParams.getAll(_a).filter((p) => p.length > 0),
5611
- perspectiveId: ((d = t.searchParams.get(Sa)) == null ? void 0 : d.trim()) || void 0,
5612
- panelId: ((u = t.searchParams.get(Na)) == null ? void 0 : u.trim()) || void 0
5611
+ path: t.searchParams.getAll(Sa).filter((p) => p.length > 0),
5612
+ perspectiveId: ((d = t.searchParams.get(Na)) == null ? void 0 : d.trim()) || void 0,
5613
+ panelId: ((u = t.searchParams.get(Ta)) == null ? void 0 : u.trim()) || void 0
5613
5614
  } : void 0;
5614
5615
  return { path: e, perspectiveId: n, ...s ? { drawer: s } : {} };
5615
5616
  }
5616
- function na(t, e) {
5617
- const n = Wa(new URL(t, e));
5617
+ function ra(t, e) {
5618
+ const n = qa(new URL(t, e));
5618
5619
  return {
5619
5620
  path: [...n.path],
5620
5621
  perspectiveId: n.perspectiveId
@@ -5622,20 +5623,20 @@ function na(t, e) {
5622
5623
  }
5623
5624
  function cp(t, e) {
5624
5625
  const n = new URL(e);
5625
- n.searchParams.delete(wa), n.searchParams.delete(ka), n.searchParams.delete(xa), n.searchParams.delete(_a), n.searchParams.delete(Sa), n.searchParams.delete(Na);
5626
- for (const r of t.path) n.searchParams.append(wa, r);
5627
- if (t.perspectiveId && n.searchParams.set(ka, t.perspectiveId), t.drawer) {
5626
+ n.searchParams.delete(ka), n.searchParams.delete(xa), n.searchParams.delete(_a), n.searchParams.delete(Sa), n.searchParams.delete(Na), n.searchParams.delete(Ta);
5627
+ for (const r of t.path) n.searchParams.append(ka, r);
5628
+ if (t.perspectiveId && n.searchParams.set(xa, t.perspectiveId), t.drawer) {
5628
5629
  const r = Mr(t.drawer.src, e);
5629
- r && n.searchParams.set(xa, r);
5630
- for (const a of t.drawer.path) n.searchParams.append(_a, a);
5631
- t.drawer.perspectiveId && n.searchParams.set(Sa, t.drawer.perspectiveId), t.drawer.panelId && n.searchParams.set(Na, t.drawer.panelId);
5630
+ r && n.searchParams.set(_a, r);
5631
+ for (const a of t.drawer.path) n.searchParams.append(Sa, a);
5632
+ t.drawer.perspectiveId && n.searchParams.set(Na, t.drawer.perspectiveId), t.drawer.panelId && n.searchParams.set(Ta, t.drawer.panelId);
5632
5633
  }
5633
5634
  return n;
5634
5635
  }
5635
5636
  function ur(t, e) {
5636
5637
  return t.pathname === e.pathname && t.search === e.search && t.hash === e.hash;
5637
5638
  }
5638
- const Vr = Qe(void 0), dp = 5 * 60 * 1e3;
5639
+ const Wr = Qe(void 0), dp = 5 * 60 * 1e3;
5639
5640
  function up(t) {
5640
5641
  if (typeof document > "u" || typeof window > "u") return;
5641
5642
  const e = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(t) : t.replace(/["\\]/g, "\\$&"), n = document.querySelector(`[data-panel-id="${e}"]`);
@@ -5646,7 +5647,7 @@ function up(t) {
5646
5647
  function Uo({ src: t, initialDocument: e, csrf: n, fetcher: r, cache: a, children: s }) {
5647
5648
  const [i, l] = q(
5648
5649
  () => t ? (a == null ? void 0 : a.get(t)) ?? e : e
5649
- ), [d, u] = q(!!t && !(t && ((a == null ? void 0 : a.get(t)) ?? e))), [p, h] = q(!1), [b, f] = q(null), y = O(/* @__PURE__ */ new Set()), k = O(), x = O(t && (a != null && a.get(t)) ? Date.now() : 0), S = O(n), g = O(r), _ = O(/* @__PURE__ */ new Set()), T = O(), M = O();
5650
+ ), [d, u] = q(!!t && !(t && ((a == null ? void 0 : a.get(t)) ?? e))), [p, h] = q(!1), [b, f] = q(null), m = O(/* @__PURE__ */ new Set()), k = O(), x = O(t && (a != null && a.get(t)) ? Date.now() : 0), S = O(n), g = O(r), _ = O(/* @__PURE__ */ new Set()), T = O(), M = O();
5650
5651
  V(() => {
5651
5652
  S.current = n, g.current = r, a == null || a.configure({ csrf: n, fetcher: r });
5652
5653
  }, [a, n, r]);
@@ -5655,23 +5656,23 @@ function Uo({ src: t, initialDocument: e, csrf: n, fetcher: r, cache: a, childre
5655
5656
  return e ? (l(e), f(null), Promise.resolve(e)) : Promise.reject(new Error("Lens document source is required"));
5656
5657
  if (k.current) return k.current;
5657
5658
  const I = new AbortController();
5658
- y.current.add(I), u(!0);
5659
+ m.current.add(I), u(!0);
5659
5660
  const H = A() ?? t, te = (a && x.current === 0 && H === t ? a.load(H) : hr(H, { csrf: S.current, fetcher: g.current, signal: I.signal })).then((Ee) => (I.signal.aborted || (x.current = Date.now(), l(Ee), f(null)), Ee)).catch((Ee) => {
5660
5661
  const Fe = Ee instanceof Error ? Ee : new Error("document request failed");
5661
5662
  throw I.signal.aborted || f(Fe), Fe;
5662
5663
  }).finally(() => {
5663
- y.current.delete(I), k.current = void 0, I.signal.aborted || u(!1);
5664
+ m.current.delete(I), k.current = void 0, I.signal.aborted || u(!1);
5664
5665
  });
5665
5666
  return k.current = te, te;
5666
5667
  }, [a, A, e, t]), C = z(() => {
5667
5668
  if (!t || k.current) return;
5668
5669
  const I = new AbortController();
5669
- y.current.add(I), h(!0), hr(A() ?? t, { csrf: S.current, fetcher: g.current, signal: I.signal }).then((H) => {
5670
+ m.current.add(I), h(!0), hr(A() ?? t, { csrf: S.current, fetcher: g.current, signal: I.signal }).then((H) => {
5670
5671
  x.current = Date.now(), l(H), f(null);
5671
5672
  }).catch((H) => {
5672
5673
  I.signal.aborted || console.error("[lens] background document refresh failed", H);
5673
5674
  }).finally(() => {
5674
- y.current.delete(I), I.signal.aborted || h(!1);
5675
+ m.current.delete(I), I.signal.aborted || h(!1);
5675
5676
  });
5676
5677
  }, [A, t]), R = z((I) => {
5677
5678
  var ue;
@@ -5680,12 +5681,12 @@ function Uo({ src: t, initialDocument: e, csrf: n, fetcher: r, cache: a, childre
5680
5681
  if (T.current && To(T.current, I)) return;
5681
5682
  T.current = I, (ue = M.current) == null || ue.abort();
5682
5683
  const H = new AbortController();
5683
- M.current = H, y.current.add(H), h(!0), hr(A() ?? t, { csrf: S.current, fetcher: g.current, signal: H.signal }).then((te) => {
5684
+ M.current = H, m.current.add(H), h(!0), hr(A() ?? t, { csrf: S.current, fetcher: g.current, signal: H.signal }).then((te) => {
5684
5685
  x.current = Date.now(), l(te), f(null);
5685
5686
  }).catch((te) => {
5686
5687
  H.signal.aborted || f(te instanceof Error ? te : new Error("document request failed"));
5687
5688
  }).finally(() => {
5688
- y.current.delete(H), M.current === H && (M.current = void 0), H.signal.aborted || h(!1);
5689
+ m.current.delete(H), M.current === H && (M.current = void 0), H.signal.aborted || h(!1);
5689
5690
  });
5690
5691
  }, [A, t]);
5691
5692
  V(() => {
@@ -5699,16 +5700,16 @@ function Uo({ src: t, initialDocument: e, csrf: n, fetcher: r, cache: a, childre
5699
5700
  };
5700
5701
  return window.addEventListener("focus", I), () => window.removeEventListener("focus", I);
5701
5702
  }, [C, t]), V(() => () => {
5702
- for (const I of y.current) I.abort();
5703
- y.current.clear();
5703
+ for (const I of m.current) I.abort();
5704
+ m.current.clear();
5704
5705
  }, []);
5705
5706
  const F = z(() => f(null), []), B = je(
5706
5707
  () => ({ document: i, isLoading: d, isRefreshing: p, error: b, refresh: L, dismissError: F, applyFilters: R }),
5707
5708
  [R, F, i, b, d, p, L]
5708
5709
  );
5709
- return /* @__PURE__ */ c(Vr.Provider, { value: B, children: s });
5710
+ return /* @__PURE__ */ c(Wr.Provider, { value: B, children: s });
5710
5711
  }
5711
- function gs(t) {
5712
+ function vs(t) {
5712
5713
  if (typeof AbortSignal.timeout == "function") return AbortSignal.timeout(t);
5713
5714
  const e = new AbortController();
5714
5715
  return setTimeout(() => e.abort(new DOMException("signal timed out", "TimeoutError")), t), e.signal;
@@ -5722,7 +5723,7 @@ function pp(t) {
5722
5723
  r.addEventListener("abort", () => e.abort(r.reason), { once: !0 });
5723
5724
  return e.signal;
5724
5725
  }
5725
- function vs(t) {
5726
+ function bs(t) {
5726
5727
  return t ? `panel:${t}` : "dashboard";
5727
5728
  }
5728
5729
  class Zo {
@@ -5767,7 +5768,7 @@ function un(t, e) {
5767
5768
  ...e.drawer ? { drawer: { ...e.drawer, path: [...e.drawer.path] } } : {}
5768
5769
  };
5769
5770
  }
5770
- function bs(t) {
5771
+ function ws(t) {
5771
5772
  if (!t || typeof t != "object") return;
5772
5773
  const e = t;
5773
5774
  if (!Array.isArray(e.path) || !e.path.every((r) => typeof r == "string") || e.panelId !== void 0 && typeof e.panelId != "string" || e.perspectiveId !== void 0 && typeof e.perspectiveId != "string") return;
@@ -5799,9 +5800,9 @@ function mp(t, e) {
5799
5800
  return e.drawer && n.push({ panelId: e.panelId, path: [...e.path], perspectiveId: e.perspectiveId }), n;
5800
5801
  }
5801
5802
  function ei(t, e, n) {
5802
- const r = yr(t, e.path), a = r ? Bt(t, { ...e, path: r }) : void 0, s = r ? { ...e, panelId: a == null ? void 0 : a.id } : void 0, i = un(t, e) ?? s ?? Va(t, e.panelId), l = n && typeof n == "object" ? n[Xo] : void 0;
5803
+ const r = yr(t, e.path), a = r ? Bt(t, { ...e, path: r }) : void 0, s = r ? { ...e, panelId: a == null ? void 0 : a.id } : void 0, i = un(t, e) ?? s ?? Wa(t, e.panelId), l = n && typeof n == "object" ? n[Xo] : void 0;
5803
5804
  if (l && typeof l == "object") {
5804
- const d = l, u = bs(d.view), p = Array.isArray(d.history) ? d.history.map(bs) : [];
5805
+ const d = l, u = ws(d.view), p = Array.isArray(d.history) ? d.history.map(ws) : [];
5805
5806
  if (u && hp(un(t, u) ?? u, i) && p.every((h) => h !== void 0)) {
5806
5807
  const h = p.map((b) => un(t, b)).filter((b) => !!b);
5807
5808
  return { ...i, history: h };
@@ -5809,7 +5810,7 @@ function ei(t, e, n) {
5809
5810
  }
5810
5811
  return { ...i, history: mp(t, i) };
5811
5812
  }
5812
- function ra(t, e) {
5813
+ function aa(t, e) {
5813
5814
  const n = e && typeof e == "object" ? e : {}, r = (s) => ({
5814
5815
  panelId: s.panelId,
5815
5816
  path: [...s.path],
@@ -5840,10 +5841,10 @@ function _n(t) {
5840
5841
  }
5841
5842
  function gp(t) {
5842
5843
  if (typeof window > "u") return Do();
5843
- const e = Wa(new URL(window.location.href));
5844
+ const e = qa(new URL(window.location.href));
5844
5845
  return ei(t, e, window.history.state);
5845
5846
  }
5846
- function aa(t, e) {
5847
+ function sa(t, e) {
5847
5848
  return {
5848
5849
  snapshotId: t.snapshotId,
5849
5850
  // The wire shape interleaves point selections with the nodes they select
@@ -5861,20 +5862,20 @@ function vp(t) {
5861
5862
  return !!(r && t.frames[r.frame]);
5862
5863
  }) : !1;
5863
5864
  }
5864
- function ws(t, e, n, r, a) {
5865
+ function ks(t, e, n, r, a) {
5865
5866
  var p;
5866
5867
  const s = a || e.path.length === 0, i = s ? r != null && r.drillRoot ? t.drill.edges[r.drillRoot] : void 0 : Ot(t, e.path), l = s ? i == null ? void 0 : i.path : e.path, d = i == null ? void 0 : i.children.find((h) => h.key === n), u = d != null && d.target ? t.drill.edges[d.target] : void 0;
5867
5868
  return n === (r == null ? void 0 : r.drillRoot) ? (p = t.drill.edges[n]) == null ? void 0 : p.path : d != null && d.target && u && l ? [...l, d.key] : (u == null ? void 0 : u.path) ?? (d == null ? void 0 : d.path);
5868
5869
  }
5869
- function sa(t, e, n) {
5870
+ function oa(t, e, n) {
5870
5871
  if (n.type === "drillInto") {
5871
- const r = !!(n.panelId && n.panelId !== e.panelId), a = n.panelId ? t.panels.find((d) => d.id === n.panelId) : void 0, s = ws(t, e, n.nodeKey, a, r), i = r ? void 0 : e.perspectiveId;
5872
+ const r = !!(n.panelId && n.panelId !== e.panelId), a = n.panelId ? t.panels.find((d) => d.id === n.panelId) : void 0, s = ks(t, e, n.nodeKey, a, r), i = r ? void 0 : e.perspectiveId;
5872
5873
  if (!s || !At(t, s, i)) return e;
5873
5874
  const l = dr(e, We.drillInto(n.nodeKey, n.panelId, s));
5874
5875
  return r ? { ...l, perspectiveId: void 0 } : l;
5875
5876
  }
5876
5877
  if (n.type === "switchPerspective") {
5877
- const r = n.panelId ? t.panels.find((u) => u.id === n.panelId) : void 0, a = !!(n.panelId && n.panelId !== e.panelId), s = n.enterKey ? ws(t, e, n.enterKey, r, a) : void 0;
5878
+ const r = n.panelId ? t.panels.find((u) => u.id === n.panelId) : void 0, a = !!(n.panelId && n.panelId !== e.panelId), s = n.enterKey ? ks(t, e, n.enterKey, r, a) : void 0;
5878
5879
  if (n.enterKey && !s) return e;
5879
5880
  const i = Ot(t, s ?? e.path) ?? (r != null && r.drillRoot ? t.drill.edges[r.drillRoot] : void 0);
5880
5881
  if (!i || !Po(t, i).some((u) => u.id === n.perspectiveId)) return e;
@@ -5890,7 +5891,7 @@ function sa(t, e, n) {
5890
5891
  }
5891
5892
  return dr(e, n);
5892
5893
  }
5893
- function ks(t, e, n, r) {
5894
+ function xs(t, e, n, r) {
5894
5895
  const a = Bt(t, e);
5895
5896
  if (!a || a.id !== n.id || e.path.length === 0)
5896
5897
  return { frame: t.frames[n.frame], shouldQuery: !1 };
@@ -5917,45 +5918,45 @@ function bp({
5917
5918
  }) {
5918
5919
  const [h, b] = q(() => ({
5919
5920
  source: t,
5920
- resolved: ta(t)
5921
- })), f = h.source === t ? h.resolved : ta(t), y = z((m) => {
5921
+ resolved: na(t)
5922
+ })), f = h.source === t ? h.resolved : na(t), m = z((y) => {
5922
5923
  b((w) => {
5923
- const P = w.source === t ? w.resolved : ta(t), E = m(P);
5924
+ const P = w.source === t ? w.resolved : na(t), E = y(P);
5924
5925
  return w.source === t && E === P ? w : { source: t, resolved: E };
5925
5926
  });
5926
5927
  }, [t]), [k, x] = Ki(
5927
- (m, w) => sa(f, m, w),
5928
+ (y, w) => oa(f, y, w),
5928
5929
  f,
5929
5930
  gp
5930
5931
  ), g = je(() => {
5931
5932
  if (!l) return;
5932
- const m = un(f, l);
5933
- return m ? { ...m, history: l.history } : l;
5933
+ const y = un(f, l);
5934
+ return y ? { ...y, history: l.history } : l;
5934
5935
  }, [l, f]) ?? k, _ = O(g);
5935
5936
  _.current = g;
5936
5937
  const T = O();
5937
- (!T.current || T.current.panelId !== g.panelId || T.current.perspectiveId !== g.perspectiveId || T.current.path.length !== g.path.length || T.current.path.some((m, w) => m !== g.path[w])) && (T.current = {
5938
+ (!T.current || T.current.panelId !== g.panelId || T.current.perspectiveId !== g.perspectiveId || T.current.path.length !== g.path.length || T.current.path.some((y, w) => y !== g.path[w])) && (T.current = {
5938
5939
  panelId: g.panelId,
5939
5940
  path: [...g.path],
5940
5941
  perspectiveId: g.perspectiveId
5941
5942
  });
5942
- const M = T.current, A = z((m) => {
5943
+ const M = T.current, A = z((y) => {
5943
5944
  if (!l) {
5944
- x(m);
5945
+ x(y);
5945
5946
  return;
5946
5947
  }
5947
- const w = _.current, P = sa(f, w, m);
5948
+ const w = _.current, P = oa(f, w, y);
5948
5949
  P !== w && (d == null || d(P));
5949
5950
  }, [l, f, d]), [L, C] = q(), R = O(f);
5950
5951
  R.current = f, V(() => {
5951
- const m = f.endpoints.release;
5952
- if (!m) return;
5953
- const w = `${m}
5952
+ const y = f.endpoints.release;
5953
+ if (!y) return;
5954
+ const w = `${y}
5954
5955
  ${f.snapshotId}`;
5955
5956
  let P = !0, E;
5956
5957
  return import("./snapshotLease-LjBaqKs-.js").then(({ acquireSnapshotLease: Q }) => {
5957
5958
  const oe = Q(w, () => {
5958
- (r ?? fetch)(m, {
5959
+ (r ?? fetch)(y, {
5959
5960
  method: "POST",
5960
5961
  credentials: "same-origin",
5961
5962
  keepalive: !0,
@@ -5973,24 +5974,24 @@ ${f.snapshotId}`;
5973
5974
  P = !1, E == null || E();
5974
5975
  };
5975
5976
  }, [n, f.endpoints.release, f.snapshotId, r]);
5976
- const F = !l && p === 0, [B, I] = q(() => typeof window > "u" ? {} : us(f, new URL(window.location.href))), H = O(B);
5977
+ const F = !l && p === 0, [B, I] = q(() => typeof window > "u" ? {} : ps(f, new URL(window.location.href))), H = O(B);
5977
5978
  V(() => {
5978
5979
  if (!F || typeof window > "u") return;
5979
- const m = new URL(window.location.href), w = lr(m, R.current, H.current);
5980
- ur(m, w) || window.history.replaceState(window.history.state, "", w);
5980
+ const y = new URL(window.location.href), w = lr(y, R.current, H.current);
5981
+ ur(y, w) || window.history.replaceState(window.history.state, "", w);
5981
5982
  }, [f, F]);
5982
5983
  const [ue, te] = q({}), [Ee, Fe] = q({
5983
5984
  active: !1,
5984
5985
  status: "idle",
5985
5986
  preview: !1
5986
5987
  }), De = O(f.snapshotId), [Ue, N] = q(0), W = O(!1), ae = O(), we = O(), ge = O(), G = O(/* @__PURE__ */ new Map()), se = O(!0), pe = O(), Ae = O({ dark: !1 }), U = O(/* @__PURE__ */ new Map()), J = O(/* @__PURE__ */ new Map()), me = je(() => {
5987
- let m, w = {};
5988
- const P = import("./prefetch-CrMQhAEy.js").then(({ DocumentCache: E }) => (m = new E({ capacity: 8, ...w }), m));
5988
+ let y, w = {};
5989
+ const P = import("./prefetch-C_qYKOTU.js").then(({ DocumentCache: E }) => (y = new E({ capacity: 8, ...w }), y));
5989
5990
  return {
5990
5991
  configure: (E) => {
5991
- w = E, m == null || m.configure(E);
5992
+ w = E, y == null || y.configure(E);
5992
5993
  },
5993
- get: (E) => m == null ? void 0 : m.get(E),
5994
+ get: (E) => y == null ? void 0 : y.get(E),
5994
5995
  load: async (E) => (await P).load(E),
5995
5996
  prefetch: async (E, Q) => (await P).prefetch(E, Q)
5996
5997
  };
@@ -6004,25 +6005,25 @@ ${f.snapshotId}`;
6004
6005
  $(void 0);
6005
6006
  return;
6006
6007
  }
6007
- let m = !0, w;
6008
+ let y = !0, w;
6008
6009
  return import("./idlePrefetch-Bi4Wk1uR.js").then(({ IdlePrefetchQueue: P }) => {
6009
- m && (w = new P({ capacity: 8 }), $(w));
6010
+ y && (w = new P({ capacity: 8 }), $(w));
6010
6011
  }), () => {
6011
- m = !1, w == null || w.reset(), $(void 0);
6012
+ y = !1, w == null || w.reset(), $(void 0);
6012
6013
  };
6013
6014
  }, [f.snapshotId, p]), V(() => {
6014
6015
  Ce == null || Ce.setPaused(!!g.drawer);
6015
6016
  }, [Ce, g.drawer]);
6016
- const ne = O(), [Ie, Se] = q({}), Re = O(/* @__PURE__ */ new Set()), Ve = O(/* @__PURE__ */ new Map()), Ye = O(/* @__PURE__ */ new Set()), [en, Ut] = q(!1), at = z((m, w = !1) => {
6017
- w && Re.current.add(m), Se((P) => ({ ...P, [m]: (P[m] ?? 0) + 1 }));
6017
+ const ne = O(), [Ie, Se] = q({}), Re = O(/* @__PURE__ */ new Set()), Ve = O(/* @__PURE__ */ new Map()), Ye = O(/* @__PURE__ */ new Set()), [en, Ut] = q(!1), at = z((y, w = !1) => {
6018
+ w && Re.current.add(y), Se((P) => ({ ...P, [y]: (P[y] ?? 0) + 1 }));
6018
6019
  }, []), nt = z(() => {
6019
- W.current = !0, N((m) => m + 1);
6020
+ W.current = !0, N((y) => y + 1);
6020
6021
  }, []);
6021
6022
  ne.current || (ne.current = new Zo());
6022
6023
  const de = ne.current, kn = z(() => {
6023
- for (const m of t.panels) {
6024
- const w = de.get(m.id);
6025
- w && de.set(m.id, {
6024
+ for (const y of t.panels) {
6025
+ const w = de.get(y.id);
6026
+ w && de.set(y.id, {
6026
6027
  ...w,
6027
6028
  isStale: !0,
6028
6029
  isLoading: !w.data,
@@ -6031,79 +6032,79 @@ ${f.snapshotId}`;
6031
6032
  }
6032
6033
  }, [de, t.panels]), D = z(() => {
6033
6034
  if (typeof window > "u") return;
6034
- const m = us(R.current, new URL(window.location.href));
6035
- To(m, H.current) || (H.current = m, I(m), s && (kn(), s(m)));
6035
+ const y = ps(R.current, new URL(window.location.href));
6036
+ To(y, H.current) || (H.current = y, I(y), s && (kn(), s(y)));
6036
6037
  }, [s, kn]), re = z(
6037
- (m, w) => Yo(f.i18n, m, w),
6038
+ (y, w) => Yo(f.i18n, y, w),
6038
6039
  [f.i18n]
6039
6040
  ), he = z(() => re(
6040
6041
  "drill.reset",
6041
6042
  "The previous drill path is no longer available. Lens returned to the root view."
6042
6043
  ), [re]);
6043
- for (const m of f.panels)
6044
- de.get(m.id) || de.set(m.id, {
6045
- data: f.frames[m.frame],
6044
+ for (const y of f.panels)
6045
+ de.get(y.id) || de.set(y.id, {
6046
+ data: f.frames[y.frame],
6046
6047
  isStale: !1,
6047
- isLoading: !!m.deferred,
6048
+ isLoading: !!y.deferred,
6048
6049
  error: null,
6049
- retry: m.deferred ? () => at(m.id) : nt
6050
+ retry: y.deferred ? () => at(y.id) : nt
6050
6051
  });
6051
- const Me = f.endpoints.query, xe = je(() => Me ? new hs(Me, { csrf: n, fetcher: r }) : void 0, [n, Me, r]), st = t.endpoints.panel, $e = je(
6052
- () => st ? new ms(st, { csrf: n, fetcher: r }) : void 0,
6052
+ const Me = f.endpoints.query, xe = je(() => Me ? new ms(Me, { csrf: n, fetcher: r }) : void 0, [n, Me, r]), st = t.endpoints.panel, $e = je(
6053
+ () => st ? new ys(st, { csrf: n, fetcher: r }) : void 0,
6053
6054
  [n, r, st]
6054
- ), rr = z((m, w) => {
6055
+ ), rr = z((y, w) => {
6055
6056
  if (!xe) return () => {
6056
6057
  };
6057
6058
  const P = R.current;
6058
6059
  let E = _.current;
6059
- for (const fe of Array.isArray(m) ? m : [m]) {
6060
- const Le = sa(P, E, We.drillInto(fe, w));
6060
+ for (const fe of Array.isArray(y) ? y : [y]) {
6061
+ const Le = oa(P, E, We.drillInto(fe, w));
6061
6062
  if (Le === E) return () => {
6062
6063
  };
6063
6064
  E = Le, w = void 0;
6064
6065
  }
6065
6066
  const Q = yr(P, E.path), oe = Q ? { ...E, path: Q } : E, Y = Bt(P, oe);
6066
- if (!Y || !ks(P, oe, Y, /* @__PURE__ */ new Map()).shouldQuery) return () => {
6067
+ if (!Y || !xs(P, oe, Y, /* @__PURE__ */ new Map()).shouldQuery) return () => {
6067
6068
  };
6068
6069
  const ie = P.perspectives.find(({ id: fe }) => fe === oe.perspectiveId), X = {
6069
- ...aa(P, oe),
6070
+ ...sa(P, oe),
6070
6071
  prefetch: !0,
6071
6072
  ...Y.kind === "table" || (ie == null ? void 0 : ie.semantics) === "evidence" ? { page: 1 } : {}
6072
6073
  }, ke = new AbortController();
6073
6074
  return xe.query(X, { signal: ke.signal }).then((fe) => {
6074
6075
  const Le = Object.values(fe.frames)[0];
6075
- Le != null && Le.children && y((Ne) => gr(Ne, oe.path, Le));
6076
+ Le != null && Le.children && m((Ne) => gr(Ne, oe.path, Le));
6076
6077
  }).catch(() => {
6077
6078
  }), () => ke.abort(new DOMException("drill intent ended", "AbortError"));
6078
- }, [xe, y]), Ya = vp(f);
6079
+ }, [xe, m]), Xa = vp(f);
6079
6080
  V(() => {
6080
- if (!xe || p !== 0 || !Ya) return;
6081
- const m = R.current, w = new AbortController();
6081
+ if (!xe || p !== 0 || !Xa) return;
6082
+ const y = R.current, w = new AbortController();
6082
6083
  return import("./drillPrefetch-Bs-6Oyxa.js").then(({ prefetchIdleDrillStates: P }) => P({
6083
- document: m,
6084
+ document: y,
6084
6085
  queryClient: xe,
6085
6086
  signal: w.signal,
6086
6087
  onChildren: (E, Q) => {
6087
- y((oe) => gr(oe, E, Q));
6088
+ m((oe) => gr(oe, E, Q));
6088
6089
  }
6089
6090
  })).catch(() => {
6090
6091
  }), () => w.abort(new DOMException("idle drill prefetch scope changed", "AbortError"));
6091
- }, [f.snapshotId, p, xe, Ya, y]), V(() => () => xe == null ? void 0 : xe.dispose(), [xe]), V(() => () => $e == null ? void 0 : $e.dispose(), [$e]), V(() => {
6092
+ }, [f.snapshotId, p, xe, Xa, m]), V(() => () => xe == null ? void 0 : xe.dispose(), [xe]), V(() => () => $e == null ? void 0 : $e.dispose(), [$e]), V(() => {
6092
6093
  De.current !== f.snapshotId && (De.current = f.snapshotId, te({}));
6093
6094
  }, [f.snapshotId]), V(() => {
6094
6095
  Ve.current.clear();
6095
- for (const m of t.panels)
6096
- de.set(m.id, {
6097
- data: t.frames[m.frame],
6096
+ for (const y of t.panels)
6097
+ de.set(y.id, {
6098
+ data: t.frames[y.frame],
6098
6099
  isStale: !1,
6099
- isLoading: !!m.deferred,
6100
+ isLoading: !!y.deferred,
6100
6101
  error: null,
6101
- retry: m.deferred ? () => at(m.id) : nt
6102
+ retry: y.deferred ? () => at(y.id) : nt
6102
6103
  });
6103
6104
  }, [de, nt, at, t]), V(() => {
6104
6105
  var Q, oe;
6105
6106
  if (!$e) return;
6106
- const m = [];
6107
+ const y = [];
6107
6108
  for (const Y of t.panels) {
6108
6109
  const ie = Ie[Y.id] ?? 0, X = Re.current.has(Y.id);
6109
6110
  if (!Y.deferred && !X) continue;
@@ -6118,10 +6119,10 @@ ${f.snapshotId}`;
6118
6119
  error: null,
6119
6120
  retry: Le,
6120
6121
  calculation: (oe = de.get(Y.id)) == null ? void 0 : oe.calculation
6121
- }), m.push({ panel: Y, attempt: ie, force: X, key: ke, previous: fe, retry: Le });
6122
+ }), y.push({ panel: Y, attempt: ie, force: X, key: ke, previous: fe, retry: Le });
6122
6123
  }
6123
- if (m.length === 0) return;
6124
- const w = new Map(m.map((Y) => [Y.panel.id, Y])), P = /* @__PURE__ */ new Set(), E = (Y, ie) => {
6124
+ if (y.length === 0) return;
6125
+ const w = new Map(y.map((Y) => [Y.panel.id, Y])), P = /* @__PURE__ */ new Set(), E = (Y, ie) => {
6125
6126
  var xn;
6126
6127
  const X = w.get(Y);
6127
6128
  if (!X) return;
@@ -6154,17 +6155,17 @@ ${f.snapshotId}`;
6154
6155
  retry: Oe,
6155
6156
  calculation: ie.calculation,
6156
6157
  summary: ie.summary
6157
- }), y((ht) => ht.snapshotId !== t.snapshotId || ht.frames[ke.frame] === et ? ht : { ...ht, frames: { ...ht.frames, [ke.frame]: et } });
6158
+ }), m((ht) => ht.snapshotId !== t.snapshotId || ht.frames[ke.frame] === et ? ht : { ...ht, frames: { ...ht.frames, [ke.frame]: et } });
6158
6159
  };
6159
- $e.loadBatch(m.map(({ panel: Y, force: ie }) => ({
6160
+ $e.loadBatch(y.map(({ panel: Y, force: ie }) => ({
6160
6161
  snapshotId: t.snapshotId,
6161
6162
  panelId: Y.id,
6162
6163
  ...ie ? { recompute: !0 } : {},
6163
6164
  viewportRank: up(Y.id)
6164
6165
  })), { onResult: E }).catch((Y) => {
6165
6166
  var ie;
6166
- if (!ms.isAbort(Y)) {
6167
- for (const { panel: X, attempt: ke, key: fe, previous: Le, retry: Ne } of m)
6167
+ if (!ys.isAbort(Y)) {
6168
+ for (const { panel: X, attempt: ke, key: fe, previous: Le, retry: Ne } of y)
6168
6169
  if (!P.has(X.id) && Ve.current.get(fe) === ke) {
6169
6170
  if (Y instanceof Qn) {
6170
6171
  a().catch(() => {
@@ -6182,37 +6183,37 @@ ${f.snapshotId}`;
6182
6183
  }
6183
6184
  }
6184
6185
  }).finally(() => {
6185
- for (const { panel: Y, force: ie } of m)
6186
+ for (const { panel: Y, force: ie } of y)
6186
6187
  ie && Ye.current.delete(Y.id) && Ye.current.size === 0 && Ut(!1);
6187
6188
  });
6188
- }, [de, Ie, $e, a, at, y, t]);
6189
- const Xa = z(() => {
6189
+ }, [de, Ie, $e, a, at, m, t]);
6190
+ const es = z(() => {
6190
6191
  if (!$e || t.panels.length === 0) return;
6191
- const m = t.panels.map(({ id: w }) => w);
6192
- Ye.current = new Set(m);
6193
- for (const w of m) Re.current.add(w);
6192
+ const y = t.panels.map(({ id: w }) => w);
6193
+ Ye.current = new Set(y);
6194
+ for (const w of y) Re.current.add(w);
6194
6195
  Ut(!0), Se((w) => {
6195
6196
  const P = { ...w };
6196
- for (const E of m) P[E] = (P[E] ?? 0) + 1;
6197
+ for (const E of y) P[E] = (P[E] ?? 0) + 1;
6197
6198
  return P;
6198
6199
  });
6199
6200
  }, [$e, t.panels]);
6200
6201
  V(() => {
6201
- At(f, M.path, M.perspectiveId) || yr(f, M.path) || (se.current = !0, A(We.restore(Va(f, M.panelId))), C(he()));
6202
+ At(f, M.path, M.perspectiveId) || yr(f, M.path) || (se.current = !0, A(We.restore(Wa(f, M.panelId))), C(he()));
6202
6203
  }, [A, f, he, M]), V(() => {
6203
6204
  if (l || typeof window > "u" || !At(f, g.path, g.perspectiveId)) return;
6204
- const m = new URL(window.location.href), w = cp(g, m), P = ra(g, window.history.state);
6205
- se.current || ur(m, w) ? window.history.replaceState(P, "", w) : window.history.pushState(P, "", w), se.current = !1;
6205
+ const y = new URL(window.location.href), w = cp(g, y), P = aa(g, window.history.state);
6206
+ se.current || ur(y, w) ? window.history.replaceState(P, "", w) : window.history.pushState(P, "", w), se.current = !1;
6206
6207
  }, [l, f, g]), V(() => {
6207
6208
  if (l || typeof window > "u") return;
6208
- const m = (w) => {
6209
- const P = new URL(window.location.href), E = Wa(P), Q = ei(f, E, w.state);
6209
+ const y = (w) => {
6210
+ const P = new URL(window.location.href), E = qa(P), Q = ei(f, E, w.state);
6210
6211
  A(We.restore(Q, Q.history)), D();
6211
6212
  };
6212
- return window.addEventListener("popstate", m), () => window.removeEventListener("popstate", m);
6213
+ return window.addEventListener("popstate", y), () => window.removeEventListener("popstate", y);
6213
6214
  }, [l, A, f, D]), V(() => {
6214
6215
  var fe, Le;
6215
- const m = yr(f, M.path), w = m ? { ...M, path: m } : M, P = Bt(f, w);
6216
+ const y = yr(f, M.path), w = y ? { ...M, path: y } : M, P = Bt(f, w);
6216
6217
  for (const Ne of f.panels) {
6217
6218
  if (!Ne.drillRoot || Ne.id === (P == null ? void 0 : P.id)) continue;
6218
6219
  const Oe = f.frames[Ne.frame];
@@ -6225,7 +6226,7 @@ ${f.snapshotId}`;
6225
6226
  });
6226
6227
  }
6227
6228
  if (!P) return;
6228
- const E = ks(f, w, P, /* @__PURE__ */ new Map());
6229
+ const E = xs(f, w, P, /* @__PURE__ */ new Map());
6229
6230
  if (!E.shouldQuery || !xe) {
6230
6231
  E.frame && de.set(P.id, {
6231
6232
  data: E.frame,
@@ -6246,10 +6247,10 @@ ${f.snapshotId}`;
6246
6247
  retry: nt
6247
6248
  });
6248
6249
  const Y = { ...w, path: [...w.path] }, ie = f.perspectives.find(({ id: Ne }) => Ne === Y.perspectiveId), X = {
6249
- ...aa(f, Y),
6250
+ ...sa(f, Y),
6250
6251
  ...P.kind === "table" || (ie == null ? void 0 : ie.semantics) === "evidence" ? { page: 1 } : {}
6251
6252
  }, ke = W.current;
6252
- return W.current = !1, ys({
6253
+ return W.current = !1, gs({
6253
6254
  request: X,
6254
6255
  navigation: Y,
6255
6256
  loadDocument: a,
@@ -6262,7 +6263,7 @@ ${f.snapshotId}`;
6262
6263
  return;
6263
6264
  }
6264
6265
  const et = (xn = Object.entries(Ne.response.frames)[0]) == null ? void 0 : xn[1];
6265
- et != null && et.children && y((Ui) => gr(Ui, Y.path, et)), (ht = ne.current) == null || ht.set(P.id, {
6266
+ et != null && et.children && m((Ui) => gr(Ui, Y.path, et)), (ht = ne.current) == null || ht.set(P.id, {
6266
6267
  data: et ?? oe,
6267
6268
  page: Ne.response.page,
6268
6269
  isStale: !1,
@@ -6283,37 +6284,37 @@ ${f.snapshotId}`;
6283
6284
  }), () => {
6284
6285
  Q = !1;
6285
6286
  };
6286
- }, [A, f, he, de, xe, a, nt, Ue, M, y]);
6287
- const Kr = z(async (m, w, P = !1) => {
6287
+ }, [A, f, he, de, xe, a, nt, Ue, M, m]);
6288
+ const Hr = z(async (y, w, P = !1) => {
6288
6289
  var ke;
6289
- const E = t.panels.find((fe) => fe.id === m);
6290
+ const E = t.panels.find((fe) => fe.id === y);
6290
6291
  if ($e && ((ke = E == null ? void 0 : E.table) != null && ke.searchable) && w >= 1) {
6291
- const fe = de.get(m), Le = (fe == null ? void 0 : fe.data) ?? t.frames[E.frame], Ne = () => {
6292
+ const fe = de.get(y), Le = (fe == null ? void 0 : fe.data) ?? t.frames[E.frame], Ne = () => {
6292
6293
  var Oe;
6293
- (Oe = ae.current) == null || Oe.call(ae, m, w, !0);
6294
+ (Oe = ae.current) == null || Oe.call(ae, y, w, !0);
6294
6295
  };
6295
- de.set(m, { ...fe, data: Le, isStale: !!Le, isLoading: !0, error: null, retry: Ne });
6296
+ de.set(y, { ...fe, data: Le, isStale: !!Le, isLoading: !0, error: null, retry: Ne });
6296
6297
  try {
6297
6298
  const Oe = await $e.load({
6298
6299
  snapshotId: t.snapshotId,
6299
- panelId: m,
6300
- ...G.current.get(m),
6300
+ panelId: y,
6301
+ ...G.current.get(y),
6301
6302
  page: w
6302
6303
  }), et = Oe.frames[E.frame] ?? Object.values(Oe.frames)[0];
6303
- if (!et) throw new Error(`panel ${m} response has no frame`);
6304
- de.set(m, { data: et, page: Oe.page, isStale: !1, isLoading: !1, error: null, retry: Ne, calculation: Oe.calculation, summary: Oe.summary });
6304
+ if (!et) throw new Error(`panel ${y} response has no frame`);
6305
+ de.set(y, { data: et, page: Oe.page, isStale: !1, isLoading: !1, error: null, retry: Ne, calculation: Oe.calculation, summary: Oe.summary });
6305
6306
  } catch (Oe) {
6306
- de.set(m, { ...fe, data: Le, isStale: !!Le, isLoading: !1, error: Oe instanceof Error ? Oe : new Error("panel page failed"), retry: Ne });
6307
+ de.set(y, { ...fe, data: Le, isStale: !!Le, isLoading: !1, error: Oe instanceof Error ? Oe : new Error("panel page failed"), retry: Ne });
6307
6308
  }
6308
6309
  return;
6309
6310
  }
6310
6311
  const Q = Bt(f, M);
6311
- if (!xe || !Q || Q.id !== m || M.path.length === 0 || w < 1) return;
6312
- const oe = de.get(m), Y = (oe == null ? void 0 : oe.data) ?? f.frames[Q.frame], ie = () => {
6312
+ if (!xe || !Q || Q.id !== y || M.path.length === 0 || w < 1) return;
6313
+ const oe = de.get(y), Y = (oe == null ? void 0 : oe.data) ?? f.frames[Q.frame], ie = () => {
6313
6314
  var fe;
6314
- (fe = ae.current) == null || fe.call(ae, m, w, !0);
6315
+ (fe = ae.current) == null || fe.call(ae, y, w, !0);
6315
6316
  };
6316
- de.set(m, {
6317
+ de.set(y, {
6317
6318
  data: Y,
6318
6319
  page: oe == null ? void 0 : oe.page,
6319
6320
  isStale: !!Y,
@@ -6323,8 +6324,8 @@ ${f.snapshotId}`;
6323
6324
  });
6324
6325
  const X = { ...M, path: [...M.path] };
6325
6326
  try {
6326
- const fe = await ys({
6327
- request: { ...aa(f, X), page: w },
6327
+ const fe = await gs({
6328
+ request: { ...sa(f, X), page: w },
6328
6329
  navigation: X,
6329
6330
  loadDocument: a,
6330
6331
  query: (Ne) => xe.query(Ne, { force: P })
@@ -6334,7 +6335,7 @@ ${f.snapshotId}`;
6334
6335
  return;
6335
6336
  }
6336
6337
  const Le = Object.values(fe.response.frames)[0];
6337
- de.set(m, {
6338
+ de.set(y, {
6338
6339
  data: Le ?? Y,
6339
6340
  page: fe.response.page,
6340
6341
  isStale: !1,
@@ -6343,7 +6344,7 @@ ${f.snapshotId}`;
6343
6344
  retry: ie
6344
6345
  });
6345
6346
  } catch (fe) {
6346
- de.set(m, {
6347
+ de.set(y, {
6347
6348
  data: Y,
6348
6349
  page: oe == null ? void 0 : oe.page,
6349
6350
  isStale: !!Y,
@@ -6353,19 +6354,19 @@ ${f.snapshotId}`;
6353
6354
  });
6354
6355
  }
6355
6356
  }, [A, f, he, de, $e, xe, a, M, t]);
6356
- ae.current = Kr;
6357
- const Hr = z(async (m, w) => {
6357
+ ae.current = Hr;
6358
+ const Gr = z(async (y, w) => {
6358
6359
  var ie;
6359
6360
  if (!$e) return;
6360
- const P = t.panels.find((X) => X.id === m);
6361
+ const P = t.panels.find((X) => X.id === y);
6361
6362
  if (!((ie = P == null ? void 0 : P.table) != null && ie.searchable)) return;
6362
- const E = de.get(m), Q = (E == null ? void 0 : E.data) ?? t.frames[P.frame], oe = { ...G.current.get(m), search: w || void 0 };
6363
- G.current.set(m, oe);
6363
+ const E = de.get(y), Q = (E == null ? void 0 : E.data) ?? t.frames[P.frame], oe = { ...G.current.get(y), search: w || void 0 };
6364
+ G.current.set(y, oe);
6364
6365
  const Y = () => {
6365
6366
  var X;
6366
- (X = we.current) == null || X.call(we, m, w);
6367
+ (X = we.current) == null || X.call(we, y, w);
6367
6368
  };
6368
- de.set(m, {
6369
+ de.set(y, {
6369
6370
  data: Q,
6370
6371
  isStale: !!Q,
6371
6372
  isLoading: !Q,
@@ -6375,9 +6376,9 @@ ${f.snapshotId}`;
6375
6376
  summary: E == null ? void 0 : E.summary
6376
6377
  });
6377
6378
  try {
6378
- const X = await $e.load({ snapshotId: t.snapshotId, panelId: m, ...oe }), ke = X.frames[P.frame] ?? Object.values(X.frames)[0];
6379
+ const X = await $e.load({ snapshotId: t.snapshotId, panelId: y, ...oe }), ke = X.frames[P.frame] ?? Object.values(X.frames)[0];
6379
6380
  if (!ke) throw new Error(`panel ${P.id} response has no frame`);
6380
- de.set(m, {
6381
+ de.set(y, {
6381
6382
  data: ke,
6382
6383
  page: X.page,
6383
6384
  isStale: !1,
@@ -6393,7 +6394,7 @@ ${f.snapshotId}`;
6393
6394
  });
6394
6395
  return;
6395
6396
  }
6396
- de.set(m, {
6397
+ de.set(y, {
6397
6398
  data: Q,
6398
6399
  isStale: !!Q,
6399
6400
  isLoading: !1,
@@ -6404,41 +6405,41 @@ ${f.snapshotId}`;
6404
6405
  });
6405
6406
  }
6406
6407
  }, [de, $e, a, t]);
6407
- we.current = Hr;
6408
- const Gr = z(async (m, w) => {
6408
+ we.current = Gr;
6409
+ const Jr = z(async (y, w) => {
6409
6410
  var ie;
6410
6411
  if (!$e) return;
6411
- const P = t.panels.find((X) => X.id === m);
6412
+ const P = t.panels.find((X) => X.id === y);
6412
6413
  if (!P || ((ie = P.presentation) == null ? void 0 : ie.sortable) === !1) return;
6413
- const E = { ...G.current.get(m), sort: w };
6414
- G.current.set(m, E);
6415
- const Q = de.get(m), oe = (Q == null ? void 0 : Q.data) ?? t.frames[P.frame], Y = () => {
6414
+ const E = { ...G.current.get(y), sort: w };
6415
+ G.current.set(y, E);
6416
+ const Q = de.get(y), oe = (Q == null ? void 0 : Q.data) ?? t.frames[P.frame], Y = () => {
6416
6417
  var X;
6417
- (X = ge.current) == null || X.call(ge, m, w);
6418
+ (X = ge.current) == null || X.call(ge, y, w);
6418
6419
  };
6419
- de.set(m, { data: oe, isStale: !!oe, isLoading: !oe, error: null, retry: Y, summary: Q == null ? void 0 : Q.summary });
6420
+ de.set(y, { data: oe, isStale: !!oe, isLoading: !oe, error: null, retry: Y, summary: Q == null ? void 0 : Q.summary });
6420
6421
  try {
6421
- const X = await $e.load({ snapshotId: t.snapshotId, panelId: m, ...E }), ke = X.frames[P.frame] ?? Object.values(X.frames)[0];
6422
+ const X = await $e.load({ snapshotId: t.snapshotId, panelId: y, ...E }), ke = X.frames[P.frame] ?? Object.values(X.frames)[0];
6422
6423
  if (!ke) throw new Error(`panel ${P.id} response has no frame`);
6423
- de.set(m, { data: ke, page: X.page, isStale: !1, isLoading: !1, error: null, retry: Y, calculation: X.calculation, summary: X.summary });
6424
+ de.set(y, { data: ke, page: X.page, isStale: !1, isLoading: !1, error: null, retry: Y, calculation: X.calculation, summary: X.summary });
6424
6425
  } catch (X) {
6425
- de.set(m, { data: oe, isStale: !!oe, isLoading: !1, error: X instanceof Error ? X : new Error("panel sort failed"), retry: Y, summary: Q == null ? void 0 : Q.summary });
6426
+ de.set(y, { data: oe, isStale: !!oe, isLoading: !1, error: X instanceof Error ? X : new Error("panel sort failed"), retry: Y, summary: Q == null ? void 0 : Q.summary });
6426
6427
  }
6427
6428
  }, [de, $e, t]);
6428
- ge.current = Gr;
6429
+ ge.current = Jr;
6429
6430
  const Mi = je(() => ({
6430
- loadPage: (m, w) => Kr(m, w),
6431
- search: (m, w) => Hr(m, w),
6432
- sort: (m, w) => Gr(m, w)
6433
- }), [Kr, Hr, Gr]), es = z(async (m) => {
6434
- const w = vs(m), P = f.endpoints.export;
6431
+ loadPage: (y, w) => Hr(y, w),
6432
+ search: (y, w) => Gr(y, w),
6433
+ sort: (y, w) => Jr(y, w)
6434
+ }), [Hr, Gr, Jr]), ts = z(async (y) => {
6435
+ const w = bs(y), P = f.endpoints.export;
6435
6436
  if (P) {
6436
6437
  te((E) => ({ ...E, [w]: { status: "pending" } }));
6437
6438
  try {
6438
6439
  const E = await import("./export-B0U20F4u.js"), Q = await E.exportWorkbook({
6439
6440
  endpoint: P,
6440
6441
  snapshotId: f.snapshotId,
6441
- panelId: m,
6442
+ panelId: y,
6442
6443
  csrf: n,
6443
6444
  fetcher: r
6444
6445
  });
@@ -6463,15 +6464,15 @@ ${f.snapshotId}`;
6463
6464
  }
6464
6465
  }, [n, f.endpoints.export, f.snapshotId, r, a, re]), ji = je(() => ({
6465
6466
  available: !!f.endpoints.export,
6466
- state: (m) => ue[vs(m)] ?? { status: "idle" },
6467
- run: es
6468
- }), [f.endpoints.export, ue, es]), ts = z(async ({ preview: m = !1 } = {}) => {
6467
+ state: (y) => ue[bs(y)] ?? { status: "idle" },
6468
+ run: ts
6469
+ }), [f.endpoints.export, ue, ts]), ns = z(async ({ preview: y = !1 } = {}) => {
6469
6470
  var Q;
6470
6471
  if (p > 0 || typeof window > "u" || Ee.status === "pending") return;
6471
- Fe({ active: !0, status: "pending", preview: m });
6472
- const w = /* @__PURE__ */ new Map(), P = gs(9e4), E = () => pp([P, gs(2e4)]);
6472
+ Fe({ active: !0, status: "pending", preview: y });
6473
+ const w = /* @__PURE__ */ new Map(), P = vs(9e4), E = () => pp([P, vs(2e4)]);
6473
6474
  try {
6474
- const { buildPrintReport: oe } = await import("./print-CLo-mTEP.js"), Y = await oe(
6475
+ const { buildPrintReport: oe } = await import("./print-Iu804kRb.js"), Y = await oe(
6475
6476
  f,
6476
6477
  (X, ke = f) => {
6477
6478
  const fe = ke.endpoints.query;
@@ -6480,7 +6481,7 @@ ${f.snapshotId}`;
6480
6481
  `lens: ${ke.meta.dashboardId} declares no query endpoint, so its detail cannot be printed`
6481
6482
  ));
6482
6483
  let Le = w.get(fe);
6483
- return Le || (Le = new hs(fe, { csrf: n, fetcher: r }), w.set(fe, Le)), Le.query(X, { signal: E() });
6484
+ return Le || (Le = new ms(fe, { csrf: n, fetcher: r }), w.set(fe, Le)), Le.query(X, { signal: E() });
6484
6485
  },
6485
6486
  2e3,
6486
6487
  (X) => hr(X, {
@@ -6492,7 +6493,7 @@ ${f.snapshotId}`;
6492
6493
  P
6493
6494
  );
6494
6495
  for (const X of w.values()) X.dispose();
6495
- if (await import("./PrintReport-BiUdo8XG.js"), Fe({ active: !0, status: "idle", report: Y, preview: m }), m) return;
6496
+ if (await import("./PrintReport-Dr-6xXVr.js"), Fe({ active: !0, status: "idle", report: Y, preview: y }), y) return;
6496
6497
  await new Promise((X) => requestAnimationFrame(() => requestAnimationFrame(() => X()))), await ((Q = globalThis.document.fonts) == null ? void 0 : Q.ready), await new Promise((X) => setTimeout(X, 120)), globalThis.document.documentElement.classList.add("lens-print-active");
6497
6498
  const ie = () => {
6498
6499
  globalThis.document.documentElement.classList.remove("lens-print-active"), Fe({ active: !1, status: "idle", preview: !1 });
@@ -6515,14 +6516,14 @@ ${f.snapshotId}`;
6515
6516
  }, [n, f, p, r, Ee.status, re]), Fi = je(() => ({
6516
6517
  available: p === 0 && typeof window < "u",
6517
6518
  ...Ee,
6518
- run: ts
6519
- }), [p, Ee, ts]), ns = z((m, w) => {
6520
- if (!F || typeof window > "u" || !m.period) return;
6521
- const P = Zu(R.current, m, w, H.current), E = new URL(window.location.href), Q = lr(E, R.current, P);
6522
- ur(E, Q) || window.history.pushState(ra(g, window.history.state), "", Q), D();
6523
- }, [F, g, D]), tn = z((m, w) => {
6519
+ run: ns
6520
+ }), [p, Ee, ns]), rs = z((y, w) => {
6521
+ if (!F || typeof window > "u" || !y.period) return;
6522
+ const P = Zu(R.current, y, w, H.current), E = new URL(window.location.href), Q = lr(E, R.current, P);
6523
+ ur(E, Q) || window.history.pushState(aa(g, window.history.state), "", Q), D();
6524
+ }, [F, g, D]), tn = z((y, w) => {
6524
6525
  if (!F || typeof window > "u") return;
6525
- const P = new URL(m, window.location.href);
6526
+ const P = new URL(y, window.location.href);
6526
6527
  if (P.origin !== window.location.origin) return;
6527
6528
  if (w != null && w.newTab) {
6528
6529
  window.open(P.href, "_blank", "noopener");
@@ -6533,50 +6534,50 @@ ${f.snapshotId}`;
6533
6534
  yo(Mr(P.href, E) ?? P.href);
6534
6535
  return;
6535
6536
  }
6536
- ur(E, P) || window.history.pushState(ra(g, window.history.state), "", P), D();
6537
- }, [F, g, D]), rs = z((m, w) => {
6538
- if (!m.compare || typeof window > "u") return;
6537
+ ur(E, P) || window.history.pushState(aa(g, window.history.state), "", P), D();
6538
+ }, [F, g, D]), as = z((y, w) => {
6539
+ if (!y.compare || typeof window > "u") return;
6539
6540
  const P = { ...H.current };
6540
- delete P[m.compare.startParam], delete P[m.compare.endParam], Object.assign(P, Uu(m.compare, w));
6541
+ delete P[y.compare.startParam], delete P[y.compare.endParam], Object.assign(P, Uu(y.compare, w));
6541
6542
  const E = lr(new URL(window.location.href), R.current, P);
6542
6543
  tn(E);
6543
- }, [tn]), as = z((m, w) => {
6544
- if (!m.segmented || typeof window > "u" || !m.segmented.options.some((E) => E.value === w)) return;
6545
- const P = { ...H.current, ...$u(m.segmented, w) };
6544
+ }, [tn]), ss = z((y, w) => {
6545
+ if (!y.segmented || typeof window > "u" || !y.segmented.options.some((E) => E.value === w)) return;
6546
+ const P = { ...H.current, ...$u(y.segmented, w) };
6546
6547
  tn(lr(new URL(window.location.href), R.current, P));
6547
6548
  }, [tn]), Di = je(() => ({
6548
6549
  filters: F ? Pt(f) : [],
6549
6550
  values: B,
6550
- setPeriod: ns,
6551
- setCompare: rs,
6552
- setSegmented: as,
6551
+ setPeriod: rs,
6552
+ setCompare: as,
6553
+ setSegmented: ss,
6553
6554
  applyURL: tn
6554
- }), [tn, f, B, F, rs, ns, as]), zi = je(() => ({
6555
- drillInto: (m, w) => A(We.drillInto(m, w)),
6555
+ }), [tn, f, B, F, as, rs, ss]), zi = je(() => ({
6556
+ drillInto: (y, w) => A(We.drillInto(y, w)),
6556
6557
  prefetch: rr,
6557
6558
  back: () => A(We.back()),
6558
- jumpTo: (m) => A(We.jumpTo(m)),
6559
- switchPerspective: (m, w) => {
6560
- w != null && w.replace && (se.current = !0), A(We.switchPerspective(m, void 0, w == null ? void 0 : w.replace, w == null ? void 0 : w.enter, w == null ? void 0 : w.panelId));
6559
+ jumpTo: (y) => A(We.jumpTo(y)),
6560
+ switchPerspective: (y, w) => {
6561
+ w != null && w.replace && (se.current = !0), A(We.switchPerspective(y, void 0, w == null ? void 0 : w.replace, w == null ? void 0 : w.enter, w == null ? void 0 : w.panelId));
6561
6562
  },
6562
6563
  reset: () => A(We.reset()),
6563
6564
  canGoBack: g.history.length > 0
6564
- }), [A, g.history.length, rr]), Jr = z(() => {
6565
- var m;
6565
+ }), [A, g.history.length, rr]), Qr = z(() => {
6566
+ var y;
6566
6567
  if (!(!g.drawer || l)) {
6567
6568
  if (pe.current && typeof window < "u") {
6568
6569
  let w = 1;
6569
- for (let P = g.history.length - 1; P >= 0 && ((m = g.history[P]) != null && m.drawer); P -= 1)
6570
+ for (let P = g.history.length - 1; P >= 0 && ((y = g.history[P]) != null && y.drawer); P -= 1)
6570
6571
  w += 1;
6571
6572
  window.history.go(-w);
6572
6573
  return;
6573
6574
  }
6574
6575
  se.current = !0, A(We.closeDrawer());
6575
6576
  }
6576
- }, [l, A, g.drawer, g.history]), Qr = z(async (m, w) => {
6577
- !_n(m) || w != null && w.aborted || await (me == null ? void 0 : me.prefetch(m, w));
6578
- }, [me]), ar = z(async (m, w) => {
6579
- const P = f.endpoints.drawer, E = m.trim();
6577
+ }, [l, A, g.drawer, g.history]), Yr = z(async (y, w) => {
6578
+ !_n(y) || w != null && w.aborted || await (me == null ? void 0 : me.prefetch(y, w));
6579
+ }, [me]), ar = z(async (y, w) => {
6580
+ const P = f.endpoints.drawer, E = y.trim();
6580
6581
  if (!P || !E || w != null && w.aborted) throw new DOMException("Aborted", "AbortError");
6581
6582
  const Q = `${f.snapshotId}\0${P}\0${E}`, oe = U.current.get(Q);
6582
6583
  if (oe) return oe;
@@ -6601,17 +6602,17 @@ ${f.snapshotId}`;
6601
6602
  J.current.get(Q) === ie && J.current.delete(Q);
6602
6603
  });
6603
6604
  return J.current.set(Q, ie), ie;
6604
- }, [n, f.endpoints.drawer, f.snapshotId, r]), Yr = z(async (m, w) => {
6605
- const P = await ar(m, w);
6605
+ }, [n, f.endpoints.drawer, f.snapshotId, r]), Xr = z(async (y, w) => {
6606
+ const P = await ar(y, w);
6606
6607
  w != null && w.aborted || await (me == null ? void 0 : me.prefetch(P, w));
6607
6608
  }, [me, ar]), $i = je(() => ({
6608
6609
  depth: p,
6609
6610
  canOpen: p === 0 || !!u,
6610
- open: (m, w) => {
6611
+ open: (y, w) => {
6611
6612
  var Q;
6612
- if (!_n(m)) return;
6613
+ if (!_n(y)) return;
6613
6614
  if (p > 0) {
6614
- u == null || u(m);
6615
+ u == null || u(y);
6615
6616
  return;
6616
6617
  }
6617
6618
  if (g.drawer) return;
@@ -6621,47 +6622,47 @@ ${f.snapshotId}`;
6621
6622
  theme: E,
6622
6623
  dark: E === "dark" || (P == null ? void 0 : P.classList.contains("dark")) === !0
6623
6624
  }, A(We.openDrawer(
6624
- m,
6625
- na(m, new URL(window.location.href))
6625
+ y,
6626
+ ra(y, new URL(window.location.href))
6626
6627
  ));
6627
6628
  },
6628
- openKey: (m, w) => {
6629
- !f.endpoints.drawer || !m.trim() || ar(m).then((E) => {
6629
+ openKey: (y, w) => {
6630
+ !f.endpoints.drawer || !y.trim() || ar(y).then((E) => {
6630
6631
  const Q = (w == null ? void 0 : w.closest(".lens-root")) ?? globalThis.document.querySelector(".lens-root");
6631
6632
  pe.current = w;
6632
6633
  const oe = Q == null ? void 0 : Q.dataset.theme;
6633
6634
  Ae.current = { theme: oe, dark: oe === "dark" || (Q == null ? void 0 : Q.classList.contains("dark")) === !0 };
6634
6635
  const Y = new URL(window.location.href);
6635
- A(We.openDrawer(E, na(E, Y)));
6636
+ A(We.openDrawer(E, ra(E, Y)));
6636
6637
  }).catch((E) => C(E instanceof Error ? E.message : "drawer resolver failed"));
6637
6638
  },
6638
- close: Jr,
6639
- prefetch: (m) => p > 0 || g.drawer || !_n(m) ? () => {
6640
- } : (Qr(m), () => {
6639
+ close: Qr,
6640
+ prefetch: (y) => p > 0 || g.drawer || !_n(y) ? () => {
6641
+ } : (Yr(y), () => {
6641
6642
  }),
6642
- prefetchKey: (m) => {
6643
- if (p > 0 || g.drawer || !f.endpoints.drawer || !m.trim()) return () => {
6643
+ prefetchKey: (y) => {
6644
+ if (p > 0 || g.drawer || !f.endpoints.drawer || !y.trim()) return () => {
6644
6645
  };
6645
6646
  const w = new AbortController();
6646
- return Yr(m, w.signal).catch((P) => {
6647
+ return Xr(y, w.signal).catch((P) => {
6647
6648
  w.signal.aborted || console.debug("[lens] drawer prefetch skipped", P);
6648
6649
  }), () => w.abort();
6649
6650
  },
6650
- prefetchIdle: (m) => p > 0 || !_n(m) ? () => {
6651
- } : (Ce == null ? void 0 : Ce.register(`src:${m}`, (w) => Qr(m, w))) ?? (() => {
6651
+ prefetchIdle: (y) => p > 0 || !_n(y) ? () => {
6652
+ } : (Ce == null ? void 0 : Ce.register(`src:${y}`, (w) => Yr(y, w))) ?? (() => {
6652
6653
  }),
6653
- prefetchIdleKey: (m) => p > 0 || !f.endpoints.drawer || !m.trim() ? () => {
6654
- } : (Ce == null ? void 0 : Ce.register(`key:${m}`, (w) => Yr(m, w))) ?? (() => {
6654
+ prefetchIdleKey: (y) => p > 0 || !f.endpoints.drawer || !y.trim() ? () => {
6655
+ } : (Ce == null ? void 0 : Ce.register(`key:${y}`, (w) => Xr(y, w))) ?? (() => {
6655
6656
  })
6656
- }), [Jr, A, f.endpoints.drawer, p, Ce, g.drawer, u, ar, Yr, Qr]), Oi = je(() => ({
6657
+ }), [Qr, A, f.endpoints.drawer, p, Ce, g.drawer, u, ar, Xr, Yr]), Oi = je(() => ({
6657
6658
  document: f,
6658
6659
  navigation: g,
6659
6660
  notice: L,
6660
6661
  dismissNotice: () => C(void 0),
6661
6662
  canRecompute: !!$e,
6662
6663
  isRecomputing: en,
6663
- recompute: Xa
6664
- }), [f, en, g, L, $e, Xa]);
6664
+ recompute: es
6665
+ }), [f, en, g, L, $e, es]);
6665
6666
  return /* @__PURE__ */ c(tr.Provider, { value: e, children: /* @__PURE__ */ c(Qo.Provider, { value: f.i18n, children: /* @__PURE__ */ c(Bo.Provider, { value: Oi, children: /* @__PURE__ */ c(Jo.Provider, { value: Di, children: /* @__PURE__ */ c(Go.Provider, { value: $i, children: /* @__PURE__ */ c(Vo.Provider, { value: zi, children: /* @__PURE__ */ c(qo.Provider, { value: Mi, children: /* @__PURE__ */ c(Ko.Provider, { value: ji, children: /* @__PURE__ */ c(Ho.Provider, { value: Fi, children: /* @__PURE__ */ v(Wo.Provider, { value: de, children: [
6666
6667
  L && /* @__PURE__ */ c(Np, { notice: L, onDismiss: () => C(void 0) }),
6667
6668
  i,
@@ -6678,7 +6679,7 @@ ${f.snapshotId}`;
6678
6679
  dark: Ae.current.dark,
6679
6680
  eyebrow: re("drawer.eyebrow", "Detail view"),
6680
6681
  label: re("drawer.label", "Drill details"),
6681
- onClose: Jr,
6682
+ onClose: Qr,
6682
6683
  restoreFocus: pe.current,
6683
6684
  theme: Ae.current.theme,
6684
6685
  children: /* @__PURE__ */ c(
@@ -6690,10 +6691,10 @@ ${f.snapshotId}`;
6690
6691
  fallback: /* @__PURE__ */ c(Eo, { rows: Hu }),
6691
6692
  fetcher: r,
6692
6693
  locale: e,
6693
- onControlledNavigationChange: (m) => A(We.updateDrawer(m)),
6694
- onDrawerNavigate: (m) => A(We.replaceDrawer(
6695
- m,
6696
- na(m, new URL(window.location.href))
6694
+ onControlledNavigationChange: (y) => A(We.updateDrawer(y)),
6695
+ onDrawerNavigate: (y) => A(We.replaceDrawer(
6696
+ y,
6697
+ ra(y, new URL(window.location.href))
6697
6698
  )),
6698
6699
  children: i
6699
6700
  }
@@ -6713,7 +6714,7 @@ function ti({
6713
6714
  onDrawerNavigate: l,
6714
6715
  drawerDepth: d
6715
6716
  }) {
6716
- const u = Be(Vr);
6717
+ const u = Be(Wr);
6717
6718
  if (!u) throw new Error("DashboardRuntimeProvider must be inside DocumentProvider");
6718
6719
  return u.document ? /* @__PURE__ */ c(
6719
6720
  bp,
@@ -6783,7 +6784,7 @@ function ri(t) {
6783
6784
  if (!e) throw new Error("useExport must be used inside DashboardRuntimeProvider");
6784
6785
  return { ...e.state(t), available: e.available, run: () => e.run(t) };
6785
6786
  }
6786
- function Wr() {
6787
+ function qr() {
6787
6788
  const t = Be(Ho);
6788
6789
  if (!t) throw new Error("usePrint must be used inside DashboardRuntimeProvider");
6789
6790
  return t;
@@ -6804,7 +6805,7 @@ function Pm(t) {
6804
6805
  const e = Be(tr);
6805
6806
  return z((n) => ep(n, t, e), [t, e]);
6806
6807
  }
6807
- const xs = {
6808
+ const _s = {
6808
6809
  ru: {
6809
6810
  "runtime.loadError": "Не удалось загрузить дашборд",
6810
6811
  "runtime.retry": "Повторить",
@@ -6821,23 +6822,23 @@ const xs = {
6821
6822
  "runtime.slowLoad": "Ҳисоблаш давом этмоқда — кенг давр узоқроқ ҳисобланади."
6822
6823
  }
6823
6824
  };
6824
- function Ta(t, e, n) {
6825
+ function Ca(t, e, n) {
6825
6826
  var s, i;
6826
6827
  if (!t) return n;
6827
- const r = (s = xs[t]) == null ? void 0 : s[e];
6828
+ const r = (s = _s[t]) == null ? void 0 : s[e];
6828
6829
  if (r) return r;
6829
6830
  const a = t.split("-")[0];
6830
- return (a ? (i = xs[a]) == null ? void 0 : i[e] : void 0) ?? n;
6831
+ return (a ? (i = _s[a]) == null ? void 0 : i[e] : void 0) ?? n;
6831
6832
  }
6832
6833
  function xp({ locale: t, message: e, onRetry: n }) {
6833
6834
  const r = Pe();
6834
6835
  return /* @__PURE__ */ v("div", { className: "lens-placeholder-state", role: "alert", children: [
6835
6836
  /* @__PURE__ */ v("span", { children: [
6836
- r("runtime.loadError", Ta(t, "runtime.loadError", "Unable to load Lens document")),
6837
+ r("runtime.loadError", Ca(t, "runtime.loadError", "Unable to load Lens document")),
6837
6838
  ": ",
6838
6839
  e
6839
6840
  ] }),
6840
- /* @__PURE__ */ c("button", { className: "lens-placeholder-retry", onClick: n, type: "button", children: r("runtime.retry", Ta(t, "runtime.retry", "Retry")) })
6841
+ /* @__PURE__ */ c("button", { className: "lens-placeholder-retry", onClick: n, type: "button", children: r("runtime.retry", Ca(t, "runtime.retry", "Retry")) })
6841
6842
  ] });
6842
6843
  }
6843
6844
  const _p = 8e3;
@@ -6849,7 +6850,7 @@ function Sp({ locale: t, children: e }) {
6849
6850
  }, []), /* @__PURE__ */ v("div", { "aria-busy": "true", className: "lens-loading", children: [
6850
6851
  r && /* @__PURE__ */ c("p", { className: "lens-loading-notice", role: "status", children: n(
6851
6852
  "runtime.slowLoad",
6852
- Ta(t, "runtime.slowLoad", "Still computing — a wide period takes longer.")
6853
+ Ca(t, "runtime.slowLoad", "Still computing — a wide period takes longer.")
6853
6854
  ) }),
6854
6855
  e
6855
6856
  ] });
@@ -6876,18 +6877,18 @@ function Pe() {
6876
6877
  [t]
6877
6878
  );
6878
6879
  }
6879
- function qa() {
6880
- const t = Be(Vr);
6880
+ function Ka() {
6881
+ const t = Be(Wr);
6881
6882
  if (!t) throw new Error("useDocumentState must be used inside DocumentProvider");
6882
6883
  return t;
6883
6884
  }
6884
6885
  function ai() {
6885
6886
  var t, e;
6886
- return (e = (t = Be(Vr)) == null ? void 0 : t.document) == null ? void 0 : e.drawer;
6887
+ return (e = (t = Be(Wr)) == null ? void 0 : t.document) == null ? void 0 : e.drawer;
6887
6888
  }
6888
6889
  function Tp({ children: t, closeLabel: e, dark: n = !1, eyebrow: r, label: a, onClose: s, restoreFocus: i, theme: l }) {
6889
- var y, k, x;
6890
- const d = O(null), u = ai(), p = ((y = u == null ? void 0 : u.eyebrow) == null ? void 0 : y.trim()) || r, h = (k = u == null ? void 0 : u.title) == null ? void 0 : k.trim(), b = (x = u == null ? void 0 : u.caption) == null ? void 0 : x.trim(), f = (u == null ? void 0 : u.size) === "wide";
6890
+ var m, k, x;
6891
+ const d = O(null), u = ai(), p = ((m = u == null ? void 0 : u.eyebrow) == null ? void 0 : m.trim()) || r, h = (k = u == null ? void 0 : u.title) == null ? void 0 : k.trim(), b = (x = u == null ? void 0 : u.caption) == null ? void 0 : x.trim(), f = (u == null ? void 0 : u.size) === "wide";
6891
6892
  return /* @__PURE__ */ c(Vi, { surface: "drawer", label: a, onEscape: s, className: `lens-root lens-drawer-root${n ? " dark" : ""}`, theme: n ? "dark" : "light", children: /* @__PURE__ */ c(
6892
6893
  "div",
6893
6894
  {
@@ -6942,7 +6943,7 @@ function Rp() {
6942
6943
  return t.join(`
6943
6944
  `);
6944
6945
  }
6945
- function _s(t) {
6946
+ function Ss(t) {
6946
6947
  return t.trim().toLocaleLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-|-$/g, "") || "lens-panel";
6947
6948
  }
6948
6949
  function Ep(t) {
@@ -6974,8 +6975,8 @@ function Ap(t) {
6974
6975
  l.forEach((h, b) => {
6975
6976
  const f = d[b];
6976
6977
  if (!f) return;
6977
- const y = document.createElement("img");
6978
- y.src = h.toDataURL("image/png"), y.alt = "", y.width = h.width, y.height = h.height, y.style.cssText = f.style.cssText, f.replaceWith(y);
6978
+ const m = document.createElement("img");
6979
+ m.src = h.toDataURL("image/png"), m.alt = "", m.width = h.width, m.height = h.height, m.style.cssText = f.style.cssText, f.replaceWith(m);
6979
6980
  });
6980
6981
  const u = new XMLSerializer().serializeToString(i), p = `<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${s}" viewBox="0 0 ${r} ${s}"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml"><style>${Ep(Rp())}</style>${u}</div></foreignObject></svg>`;
6981
6982
  return {
@@ -6998,8 +6999,8 @@ async function Mp(t, e, n, r) {
6998
6999
  ));
6999
7000
  }
7000
7001
  function jp(t, e, n) {
7001
- const r = [n == null ? void 0 : n.dashboard, t, n == null ? void 0 : n.start, n == null ? void 0 : n.end].map((s) => s ? _s(s) : "").filter((s) => s && s !== "lens-panel");
7002
- return `${r.length > 0 ? r.join("_") : _s(t)}.${e}`;
7002
+ const r = [n == null ? void 0 : n.dashboard, t, n == null ? void 0 : n.start, n == null ? void 0 : n.end].map((s) => s ? Ss(s) : "").filter((s) => s && s !== "lens-panel");
7003
+ return `${r.length > 0 ? r.join("_") : Ss(t)}.${e}`;
7003
7004
  }
7004
7005
  async function Fp(t, e, n, r) {
7005
7006
  const a = Ap(t), s = n === "svg" ? a.blob : await Mp(a.blob, a.width, a.height, a.background), i = URL.createObjectURL(s);
@@ -7027,7 +7028,7 @@ function wn(t, e, n = "", r = {}) {
7027
7028
  };
7028
7029
  }, [t, n, r.dark, r.theme, e]), a;
7029
7030
  }
7030
- const Rt = 8, Ss = 4;
7031
+ const Rt = 8, Ns = 4;
7031
7032
  function $p(t, e, n, r) {
7032
7033
  const a = t.bottom + e.height <= n.height - Rt, s = t.top - e.height >= Rt, i = t.left + e.width <= n.width - Rt, l = t.right - e.width >= Rt;
7033
7034
  return { side: a || !s ? "down" : "up", align: r === "start" ? i || !l ? "start" : "end" : l || !i ? "end" : "start" };
@@ -7037,10 +7038,10 @@ function Op(t, e, n, r) {
7037
7038
  return a < Rt ? Math.round(Rt - a) : s > n.width - Rt ? Math.round(n.width - Rt - s) : 0;
7038
7039
  }
7039
7040
  function Up(t, e, n, r) {
7040
- const a = (n.align === "start" ? t.left : t.right - e.width) + r, s = n.side === "down" ? t.bottom + Ss : t.top - e.height - Ss;
7041
+ const a = (n.align === "start" ? t.left : t.right - e.width) + r, s = n.side === "down" ? t.bottom + Ns : t.top - e.height - Ns;
7041
7042
  return { left: Math.round(a), top: Math.round(s) };
7042
7043
  }
7043
- function Ka(t = "end") {
7044
+ function Ha(t = "end") {
7044
7045
  const [e, n] = q(!1), r = O(null), a = O(null), s = O(null), [i, l] = q({ side: "down", align: t }), [d, u] = q(), p = O(/* @__PURE__ */ new Map()), h = wn(e, r, "lens-menu-overlay-root"), b = z(() => n(!1), []), f = z(() => {
7045
7046
  var S;
7046
7047
  b(), (S = a.current) == null || S.focus();
@@ -7060,7 +7061,7 @@ function Ka(t = "end") {
7060
7061
  cancelAnimationFrame(S), document.removeEventListener("pointerdown", g, !0), document.removeEventListener("keydown", _, !0);
7061
7062
  };
7062
7063
  }, [b, f, e]);
7063
- const y = z(() => {
7064
+ const m = z(() => {
7064
7065
  var C, R, F, B;
7065
7066
  const S = (C = a.current) == null ? void 0 : C.getBoundingClientRect(), g = (R = s.current) == null ? void 0 : R.getBoundingClientRect();
7066
7067
  if (!S || !g) return;
@@ -7070,16 +7071,16 @@ function Ka(t = "end") {
7070
7071
  u((I) => (I == null ? void 0 : I.left) === L.left && I.top === L.top ? I : L);
7071
7072
  }, [t]);
7072
7073
  yn(() => {
7073
- e && h && y();
7074
- }, [e, h, y]), V(() => {
7074
+ e && h && m();
7075
+ }, [e, h, m]), V(() => {
7075
7076
  e || u(void 0);
7076
7077
  }, [e]), V(() => {
7077
7078
  if (!e || !h) return;
7078
- const S = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(y);
7079
- return a.current && (S == null || S.observe(a.current)), s.current && (S == null || S.observe(s.current)), globalThis.addEventListener("resize", y), globalThis.addEventListener("scroll", y, !0), () => {
7080
- S == null || S.disconnect(), globalThis.removeEventListener("resize", y), globalThis.removeEventListener("scroll", y, !0);
7079
+ const S = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(m);
7080
+ return a.current && (S == null || S.observe(a.current)), s.current && (S == null || S.observe(s.current)), globalThis.addEventListener("resize", m), globalThis.addEventListener("scroll", m, !0), () => {
7081
+ S == null || S.disconnect(), globalThis.removeEventListener("resize", m), globalThis.removeEventListener("scroll", m, !0);
7081
7082
  };
7082
- }, [e, h, y]);
7083
+ }, [e, h, m]);
7083
7084
  const k = z((S) => (g) => {
7084
7085
  g ? p.current.set(S, g) : p.current.delete(S);
7085
7086
  }, []), x = z((S) => {
@@ -7125,7 +7126,7 @@ function Ka(t = "end") {
7125
7126
  };
7126
7127
  }
7127
7128
  function Zp() {
7128
- const t = ri(), e = Wr(), n = Pe(), {
7129
+ const t = ri(), e = qr(), n = Pe(), {
7129
7130
  closeAndFocusTrigger: r,
7130
7131
  container: a,
7131
7132
  itemRef: s,
@@ -7136,7 +7137,7 @@ function Zp() {
7136
7137
  overlay: p,
7137
7138
  setOpen: h,
7138
7139
  trigger: b
7139
- } = Ka("start"), f = [];
7140
+ } = Ha("start"), f = [];
7140
7141
  if (t.available && f.push({
7141
7142
  key: "data",
7142
7143
  label: n("export.data", "Data (XLSX)"),
@@ -7156,16 +7157,16 @@ function Zp() {
7156
7157
  e.run();
7157
7158
  }
7158
7159
  }), f.length === 0) return null;
7159
- const y = f.find((_) => _.pending), k = y ?? f.find((_) => _.message), x = f.length === 1 ? f[0] : void 0, S = !!(x != null && x.retry), g = y ? y.key === "report" ? n("print.pending", "Preparing report…") : n("export.pending", "Exporting…") : x ? S ? n("export.retry", "Retry export") : x.label : n("export.menu", "Export");
7160
+ const m = f.find((_) => _.pending), k = m ?? f.find((_) => _.message), x = f.length === 1 ? f[0] : void 0, S = !!(x != null && x.retry), g = m ? m.key === "report" ? n("print.pending", "Preparing report…") : n("export.pending", "Exporting…") : x ? S ? n("export.retry", "Retry export") : x.label : n("export.menu", "Export");
7160
7161
  return /* @__PURE__ */ v("div", { className: "lens-export-control", ref: a, children: [
7161
7162
  /* @__PURE__ */ v(
7162
7163
  "button",
7163
7164
  {
7164
- "aria-busy": !!y,
7165
+ "aria-busy": !!m,
7165
7166
  "aria-expanded": x ? void 0 : u,
7166
7167
  "aria-haspopup": x ? void 0 : "menu",
7167
7168
  className: `lens-export-button${S ? " lens-export-button-retry" : ""}`,
7168
- disabled: !!y,
7169
+ disabled: !!m,
7169
7170
  onClick: () => {
7170
7171
  if (x) {
7171
7172
  x.run();
@@ -7177,9 +7178,9 @@ function Zp() {
7177
7178
  title: (k == null ? void 0 : k.message) ?? void 0,
7178
7179
  type: "button",
7179
7180
  children: [
7180
- y ? /* @__PURE__ */ c($a, { className: "lens-icon-spin" }) : S ? /* @__PURE__ */ c(vo, {}) : /* @__PURE__ */ c(go, {}),
7181
+ m ? /* @__PURE__ */ c(Oa, { className: "lens-icon-spin" }) : S ? /* @__PURE__ */ c(vo, {}) : /* @__PURE__ */ c(go, {}),
7181
7182
  /* @__PURE__ */ c("span", { children: g }),
7182
- !x && !y && /* @__PURE__ */ c(Qt, { className: "lens-export-caret" })
7183
+ !x && !m && /* @__PURE__ */ c(Qt, { className: "lens-export-caret" })
7183
7184
  ]
7184
7185
  }
7185
7186
  ),
@@ -7211,12 +7212,12 @@ function Zp() {
7211
7212
  ),
7212
7213
  p
7213
7214
  ),
7214
- (y || (k == null ? void 0 : k.message)) && /* @__PURE__ */ c(
7215
+ (m || (k == null ? void 0 : k.message)) && /* @__PURE__ */ c(
7215
7216
  "span",
7216
7217
  {
7217
- className: `lens-export-message${t.status === "error" || e.status === "error" ? " lens-export-message-error" : ""}${y ? " lens-export-message-pending" : ""}`,
7218
+ className: `lens-export-message${t.status === "error" || e.status === "error" ? " lens-export-message-error" : ""}${m ? " lens-export-message-pending" : ""}`,
7218
7219
  role: "status",
7219
- children: y ? g : k == null ? void 0 : k.message
7220
+ children: m ? g : k == null ? void 0 : k.message
7220
7221
  }
7221
7222
  )
7222
7223
  ] });
@@ -7241,7 +7242,7 @@ function Bp(t) {
7241
7242
  if (!t.drillRoot)
7242
7243
  return t.actions.find((e) => e.kind === "navigate" || e.kind === "open_drawer" || e.kind === "cross_filter" || e.kind === "cube_drill");
7243
7244
  }
7244
- function Ns(t) {
7245
+ function Ts(t) {
7245
7246
  return t.urlSource ? t.urlSource.kind === "field" : t.params.some((e) => e.source.kind === "field") || Object.values(t.payload).some((e) => e.kind === "field");
7246
7247
  }
7247
7248
  function Im() {
@@ -7250,7 +7251,7 @@ function Im() {
7250
7251
  if (!e) return;
7251
7252
  const r = e.kind === "open_drawer";
7252
7253
  if (r && !(t.depth === 0 || t.canOpen)) return;
7253
- const a = new URL(globalThis.location.href), s = Za(e, {
7254
+ const a = new URL(globalThis.location.href), s = Ba(e, {
7254
7255
  fields: n,
7255
7256
  variables: bn(a),
7256
7257
  location: a
@@ -7270,28 +7271,28 @@ function Vp(t) {
7270
7271
  V(() => d, [d]);
7271
7272
  const u = z((f) => (d(), !f || !r || !s || (i.current = setTimeout(() => {
7272
7273
  i.current = void 0;
7273
- const y = ln(f);
7274
- l.current = y ? e.prefetchKey(y) : e.prefetch(f);
7274
+ const m = ln(f);
7275
+ l.current = m ? e.prefetchKey(m) : e.prefetch(f);
7275
7276
  }, si)), d), [s, d, e, r]), p = z((f) => {
7276
7277
  if (!r || !s) return () => {
7277
7278
  };
7278
- const y = f.map((k) => {
7279
+ const m = f.map((k) => {
7279
7280
  const x = ln(k);
7280
7281
  return x ? e.prefetchIdleKey(x) : e.prefetchIdle(k);
7281
7282
  });
7282
- return () => y.forEach((k) => k());
7283
- }, [s, e, r]), h = z((f, y, k) => {
7283
+ return () => m.forEach((k) => k());
7284
+ }, [s, e, r]), h = z((f, m, k) => {
7284
7285
  if (!(!f || !s))
7285
7286
  if (r) {
7286
7287
  const x = ln(f);
7287
- x ? e.openKey(x, y) : e.open(f, y);
7288
+ x ? e.openKey(x, m) : e.open(f, m);
7288
7289
  } else a ? n.applyURL(f, k) : yo(f);
7289
7290
  }, [s, e, n, a, r]), b = z((f) => {
7290
7291
  if (!(!f || !r || !s))
7291
- return (y) => {
7292
- y.preventDefault();
7292
+ return (m) => {
7293
+ m.preventDefault();
7293
7294
  const k = ln(f);
7294
- k ? e.openKey(k, y.currentTarget) : e.open(f, y.currentTarget);
7295
+ k ? e.openKey(k, m.currentTarget) : e.open(f, m.currentTarget);
7295
7296
  };
7296
7297
  }, [s, e, r]);
7297
7298
  return { activate: h, available: s, onClick: b, prefetch: u, prefetchIdle: p };
@@ -7301,18 +7302,18 @@ function ii(t) {
7301
7302
  var u;
7302
7303
  if (!r) return;
7303
7304
  const d = new URL(globalThis.location.href);
7304
- return (r.kind === "cross_filter" || r.kind === "cube_drill") && r.filter ? (u = Bu(r, i && l ? qn(i, l) : {}, d)) == null ? void 0 : u.href : Za(r, {
7305
+ return (r.kind === "cross_filter" || r.kind === "cube_drill") && r.filter ? (u = Bu(r, i && l ? qn(i, l) : {}, d)) == null ? void 0 : u.href : Ba(r, {
7305
7306
  fields: i && l ? qn(i, l) : {},
7306
7307
  variables: bn(d),
7307
7308
  location: d
7308
7309
  });
7309
7310
  }, [r]), s = z((i) => {
7310
- if (r && !(Ns(r) && ((i == null ? void 0 : i.rows.length) ?? 0) > 1))
7311
+ if (r && !(Ts(r) && ((i == null ? void 0 : i.rows.length) ?? 0) > 1))
7311
7312
  return a(i, i == null ? void 0 : i.rows[0]);
7312
7313
  }, [r, a]);
7313
7314
  return je(() => ({
7314
7315
  action: r,
7315
- rowScoped: r ? Ns(r) : !1,
7316
+ rowScoped: r ? Ts(r) : !1,
7316
7317
  urlForRow: a,
7317
7318
  cardURL: s,
7318
7319
  onClick: n.onClick,
@@ -7329,7 +7330,7 @@ const Wp = 300, qp = /[\s\u00A0\u202F]/;
7329
7330
  function Kp() {
7330
7331
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
7331
7332
  }
7332
- function Ts(t) {
7333
+ function Cs(t) {
7333
7334
  const e = t.search(/\d/);
7334
7335
  if (e === -1) return null;
7335
7336
  let n = -1;
@@ -7341,8 +7342,8 @@ function Ts(t) {
7341
7342
  const r = t.slice(e, n + 1), a = t.slice(0, e), s = t.slice(n + 1), i = /[-−]\s*$/.test(a), l = [...r].filter((f) => f < "0" || f > "9");
7342
7343
  let d = "", u = 0, p = "";
7343
7344
  if (l.length > 0) {
7344
- const f = [...new Set(l)], y = l[l.length - 1], k = r.length - 1 - r.lastIndexOf(y), x = qp.test(y), S = l.filter((_) => _ === y).length;
7345
- !x && (f.length > 1 || S === 1 && k <= 2) ? (d = y, u = k, p = f.find((_) => _ !== y) ?? "") : p = y;
7345
+ const f = [...new Set(l)], m = l[l.length - 1], k = r.length - 1 - r.lastIndexOf(m), x = qp.test(m), S = l.filter((_) => _ === m).length;
7346
+ !x && (f.length > 1 || S === 1 && k <= 2) ? (d = m, u = k, p = f.find((_) => _ !== m) ?? "") : p = m;
7346
7347
  }
7347
7348
  const h = d ? r.slice(0, r.lastIndexOf(d)).replace(/\D/g, "") + "." + r.slice(r.lastIndexOf(d) + 1).replace(/\D/g, "") : r.replace(/\D/g, ""), b = Number(h);
7348
7349
  return Number.isFinite(b) ? { prefix: a, suffix: s, value: i ? -b : b, decimals: u, groupSep: p, decimalSep: d } : null;
@@ -7351,10 +7352,10 @@ function Hp(t, e) {
7351
7352
  const n = Math.abs(t).toFixed(e.decimals), [r, a] = n.split("."), s = e.groupSep ? r.replace(/\B(?=(\d{3})+(?!\d))/g, e.groupSep) : r, i = a ? `${s}${e.decimalSep}${a}` : s;
7352
7353
  return `${e.prefix}${i}${e.suffix}`;
7353
7354
  }
7354
- function Ha({ text: t }) {
7355
+ function Ga({ text: t }) {
7355
7356
  const [e, n] = q(t), r = O(t), a = O(!1), s = O();
7356
7357
  return V(() => {
7357
- const i = Ts(r.current), l = Ts(t), d = r.current;
7358
+ const i = Cs(r.current), l = Cs(t), d = r.current;
7358
7359
  if (r.current = t, !a.current) {
7359
7360
  a.current = !0, n(t);
7360
7361
  return;
@@ -7364,24 +7365,24 @@ function Ha({ text: t }) {
7364
7365
  return;
7365
7366
  }
7366
7367
  const p = performance.now(), h = (b) => {
7367
- const f = Math.min(1, (b - p) / Wp), y = 1 - Math.pow(1 - f, 3);
7368
+ const f = Math.min(1, (b - p) / Wp), m = 1 - Math.pow(1 - f, 3);
7368
7369
  if (f >= 1) {
7369
7370
  s.current = void 0, n(t);
7370
7371
  return;
7371
7372
  }
7372
- n(Hp(i.value + (l.value - i.value) * y, l)), s.current = requestAnimationFrame(h);
7373
+ n(Hp(i.value + (l.value - i.value) * m, l)), s.current = requestAnimationFrame(h);
7373
7374
  };
7374
7375
  return s.current = requestAnimationFrame(h), () => {
7375
7376
  s.current !== void 0 && cancelAnimationFrame(s.current), s.current = void 0;
7376
7377
  };
7377
7378
  }, [t]), /* @__PURE__ */ c(ve, { children: e });
7378
7379
  }
7379
- const Gp = "--lens-text-faint", oa = dl;
7380
+ const Gp = "--lens-text-faint", ia = dl;
7380
7381
  function Rm(t) {
7381
7382
  if (typeof globalThis.document > "u" || typeof getComputedStyle != "function")
7382
- return oa;
7383
+ return ia;
7383
7384
  const e = globalThis.document.querySelector(".lens-root");
7384
- return e && getComputedStyle(e).getPropertyValue(Gp).trim() || oa;
7385
+ return e && getComputedStyle(e).getPropertyValue(Gp).trim() || ia;
7385
7386
  }
7386
7387
  const Jp = cl;
7387
7388
  function li(t, e) {
@@ -7405,18 +7406,33 @@ function Qp(t, e) {
7405
7406
  }
7406
7407
  return n;
7407
7408
  }
7408
- function Ca(t, e, { positional: n = !0, labels: r } = {}) {
7409
+ function jr(t, e, { positional: n = !0, labels: r } = {}) {
7409
7410
  const a = Object.values(t.palette).filter((u) => u.trim() !== ""), s = a.length > 0 ? a : Jp, i = (u) => u ? t.palette[u] ?? u : void 0, l = r ? Qp(r, s.length) : void 0, d = (u) => (l == null ? void 0 : l.get(u)) ?? li(u, s.length);
7410
7411
  return (u, p) => i(t.series[u]) ?? (n ? i(t.series[`${e.id}:${p}`]) : void 0) ?? s[d(u || String(p))] ?? e.accent;
7411
7412
  }
7412
- function Em(t, e, { colors: n, positional: r = !0, labels: a } = {}) {
7413
- const s = Ca(t, e, { positional: r, labels: a }), i = (l) => {
7413
+ function Em(t, e, n, r = !0) {
7414
+ var d;
7415
+ const a = La(n, e), s = jr(t, e, { positional: r, labels: a }), i = /* @__PURE__ */ new Map(), l = (n == null ? void 0 : n.columns.findIndex((u) => u.name === e.encoding.series)) ?? -1;
7416
+ if (l >= 0 && n) {
7417
+ const u = ((d = n.colors) == null ? void 0 : d.length) === a.length && n.colors.length !== n.rows.length;
7418
+ n.rows.forEach((p, h) => {
7419
+ var k, x;
7420
+ const b = p[l];
7421
+ if (typeof b != "string" && typeof b != "number" && typeof b != "bigint") return;
7422
+ const f = String(b), m = (x = (k = n.colors) == null ? void 0 : k[u ? a.indexOf(f) : h]) == null ? void 0 : x.trim();
7423
+ m && !i.has(f) && i.set(f, t.palette[m] ?? m);
7424
+ });
7425
+ }
7426
+ return (u, p) => i.get(u) ?? s(u, a.indexOf(u) >= 0 ? a.indexOf(u) : p);
7427
+ }
7428
+ function Am(t, e, { colors: n, positional: r = !0, labels: a } = {}) {
7429
+ const s = jr(t, e, { positional: r, labels: a }), i = (l) => {
7414
7430
  const d = l == null ? void 0 : l.trim();
7415
7431
  return d ? t.palette[d] ?? d : void 0;
7416
7432
  };
7417
7433
  return (l, d, u) => i(n == null ? void 0 : n[d]) ?? i(u ? t.series[u] : void 0) ?? s(l, d);
7418
7434
  }
7419
- function Cs(t, e) {
7435
+ function La(t, e) {
7420
7436
  if (!t) return [];
7421
7437
  const n = t.columns.findIndex((i) => i.name === e.encoding.series), r = n >= 0 ? n : t.columns.findIndex((i) => i.name === (e.encoding.label ?? e.encoding.category));
7422
7438
  if (r < 0) return [];
@@ -7432,7 +7448,7 @@ function Cs(t, e) {
7432
7448
  function ci(t, e) {
7433
7449
  return !t || !(e != null && e.trim()) ? -1 : t.columns.findIndex((n) => n.name === e);
7434
7450
  }
7435
- function ia(t, e, n = 0) {
7451
+ function la(t, e, n = 0) {
7436
7452
  var a;
7437
7453
  const r = ci(t, e);
7438
7454
  return r >= 0 ? (a = t == null ? void 0 : t.rows[n]) == null ? void 0 : a[r] : void 0;
@@ -7440,7 +7456,7 @@ function ia(t, e, n = 0) {
7440
7456
  function Yp(t, e) {
7441
7457
  return typeof t == "string" && t.trim() ? t : typeof t == "number" || typeof t == "boolean" || typeof t == "bigint" ? String(t) : e;
7442
7458
  }
7443
- const Am = [
7459
+ const Mm = [
7444
7460
  "label",
7445
7461
  "value",
7446
7462
  "previous",
@@ -7496,7 +7512,7 @@ function Sn(t, e) {
7496
7512
  const n = ci(t, e);
7497
7513
  return n >= 0 ? n : "missing";
7498
7514
  }
7499
- function Mm(t, e, n) {
7515
+ function jm(t, e, n) {
7500
7516
  if (e.rows.length === 0)
7501
7517
  return { kind: "ok", resolve: () => Ls };
7502
7518
  const r = It(t, "id"), a = It(t, "value"), s = Sn(e, r), i = Sn(e, a);
@@ -7506,7 +7522,7 @@ function Mm(t, e, n) {
7506
7522
  if (p === "missing") return { kind: "contract-error", message: n.missingColumn(l ?? "share") };
7507
7523
  if (h === "missing") return { kind: "contract-error", message: n.missingColumn(d ?? "confidence") };
7508
7524
  if (b === "missing") return { kind: "contract-error", message: n.missingColumn(u ?? "availability") };
7509
- const f = p === "unset" ? -1 : p, y = h === "unset" ? -1 : h, k = b === "unset" ? -1 : b, x = /* @__PURE__ */ new Map();
7525
+ const f = p === "unset" ? -1 : p, m = h === "unset" ? -1 : h, k = b === "unset" ? -1 : b, x = /* @__PURE__ */ new Map();
7510
7526
  for (const g of e.rows) {
7511
7527
  const _ = rf(g[s]);
7512
7528
  if (x.has(_)) return { kind: "contract-error", message: n.duplicateKey(_) };
@@ -7519,7 +7535,7 @@ function Mm(t, e, n) {
7519
7535
  return {
7520
7536
  value: T === void 0 ? { kind: "unavailable" } : { kind: "value", value: T },
7521
7537
  share: f >= 0 ? Ps(_[f]) : void 0,
7522
- confidence: y >= 0 ? tf(_[y]) : void 0,
7538
+ confidence: m >= 0 ? tf(_[m]) : void 0,
7523
7539
  availability: k >= 0 ? nf(_[k]) : void 0
7524
7540
  };
7525
7541
  } };
@@ -7533,13 +7549,13 @@ function sf(t, e, n) {
7533
7549
  return Math.min(Math.max(t - e, vr), Math.max(vr, n - vr));
7534
7550
  }
7535
7551
  function di({ text: t, subject: e, inline: n }) {
7536
- const r = Pe(), [a, s] = q(!1), [i, l] = q(!1), [d, u] = q(), [p, h] = q(vr), b = O(null), f = O(null), y = O(null), k = O(), x = gn(), S = r("panel.info", "About this metric"), g = n ? t : e ? r("panel.infoAbout", "About {name}", { name: e }) : S, _ = a || i, T = wn(_, b, "lens-info-tip-overlay-root");
7552
+ const r = Pe(), [a, s] = q(!1), [i, l] = q(!1), [d, u] = q(), [p, h] = q(vr), b = O(null), f = O(null), m = O(null), k = O(), x = gn(), S = r("panel.info", "About this metric"), g = n ? t : e ? r("panel.infoAbout", "About {name}", { name: e }) : S, _ = a || i, T = wn(_, b, "lens-info-tip-overlay-root");
7537
7553
  V(() => {
7538
7554
  _ || u(void 0);
7539
7555
  }, [_]);
7540
7556
  const M = z(() => {
7541
7557
  var H, ue;
7542
- const F = (H = f.current) == null ? void 0 : H.getBoundingClientRect(), B = (ue = y.current) == null ? void 0 : ue.getBoundingClientRect();
7558
+ const F = (H = f.current) == null ? void 0 : H.getBoundingClientRect(), B = (ue = m.current) == null ? void 0 : ue.getBoundingClientRect();
7543
7559
  if (!F || !B) return;
7544
7560
  const I = af(
7545
7561
  F,
@@ -7553,7 +7569,7 @@ function di({ text: t, subject: e, inline: n }) {
7553
7569
  }, [T, M]), V(() => {
7554
7570
  if (!T) return;
7555
7571
  const F = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(M);
7556
- return y.current && (F == null || F.observe(y.current)), globalThis.addEventListener("resize", M), globalThis.addEventListener("scroll", M, !0), () => {
7572
+ return m.current && (F == null || F.observe(m.current)), globalThis.addEventListener("resize", M), globalThis.addEventListener("scroll", M, !0), () => {
7557
7573
  F == null || F.disconnect(), globalThis.removeEventListener("resize", M), globalThis.removeEventListener("scroll", M, !0);
7558
7574
  };
7559
7575
  }, [T, M]), V(() => {
@@ -7563,7 +7579,7 @@ function di({ text: t, subject: e, inline: n }) {
7563
7579
  }, B = (I) => {
7564
7580
  var ue, te;
7565
7581
  const H = I.target;
7566
- !((ue = b.current) != null && ue.contains(H)) && !((te = y.current) != null && te.contains(H)) && s(!1);
7582
+ !((ue = b.current) != null && ue.contains(H)) && !((te = m.current) != null && te.contains(H)) && s(!1);
7567
7583
  };
7568
7584
  return document.addEventListener("keydown", F), document.addEventListener("pointerdown", B), () => {
7569
7585
  document.removeEventListener("keydown", F), document.removeEventListener("pointerdown", B);
@@ -7591,7 +7607,7 @@ function di({ text: t, subject: e, inline: n }) {
7591
7607
  onMouseEnter: () => {
7592
7608
  L(), l(!0);
7593
7609
  },
7594
- onMouseLeave: (F) => C(F, y.current),
7610
+ onMouseLeave: (F) => C(F, m.current),
7595
7611
  children: [
7596
7612
  /* @__PURE__ */ c(
7597
7613
  "button",
@@ -7619,7 +7635,7 @@ function di({ text: t, subject: e, inline: n }) {
7619
7635
  L(), l(!0);
7620
7636
  },
7621
7637
  onMouseLeave: (F) => C(F, b.current),
7622
- ref: y,
7638
+ ref: m,
7623
7639
  role: "tooltip",
7624
7640
  style: R,
7625
7641
  children: [
@@ -7644,14 +7660,14 @@ function of({ panelId: t, title: e }) {
7644
7660
  closeAndFocusTrigger: h,
7645
7661
  container: b,
7646
7662
  itemRef: f,
7647
- menu: y,
7663
+ menu: m,
7648
7664
  menuPlacementProps: k,
7649
7665
  onMenuKeyDown: x,
7650
7666
  open: S,
7651
7667
  overlay: g,
7652
7668
  setOpen: _,
7653
7669
  trigger: T
7654
- } = Ka("end"), M = r("export.panel", "Export panel"), A = async (H) => {
7670
+ } = Ha("end"), M = r("export.panel", "Export panel"), A = async (H) => {
7655
7671
  _(!1), p(void 0), d(H);
7656
7672
  try {
7657
7673
  await new Promise((ue) => requestAnimationFrame(() => ue())), await Fp(t, e, H, i);
@@ -7679,7 +7695,7 @@ function of({ panelId: t, title: e }) {
7679
7695
  title: M,
7680
7696
  type: "button",
7681
7697
  children: [
7682
- L ? /* @__PURE__ */ c($a, { className: "lens-icon-spin" }) : /* @__PURE__ */ c(go, {}),
7698
+ L ? /* @__PURE__ */ c(Oa, { className: "lens-icon-spin" }) : /* @__PURE__ */ c(go, {}),
7683
7699
  !L && /* @__PURE__ */ c(Qt, { className: "lens-export-caret" })
7684
7700
  ]
7685
7701
  }
@@ -7690,7 +7706,7 @@ function of({ panelId: t, title: e }) {
7690
7706
  {
7691
7707
  className: "lens-export-menu",
7692
7708
  onKeyDown: x,
7693
- ref: y,
7709
+ ref: m,
7694
7710
  role: "menu",
7695
7711
  tabIndex: -1,
7696
7712
  ...k,
@@ -7712,12 +7728,12 @@ function of({ panelId: t, title: e }) {
7712
7728
  (u || n.message) && /* @__PURE__ */ c("span", { className: "lens-export-message lens-export-message-error", role: u || n.status === "error" ? "alert" : "status", children: u ?? n.message })
7713
7729
  ] });
7714
7730
  }
7715
- const Ga = Qe(void 0);
7731
+ const Ja = Qe(void 0);
7716
7732
  function lf() {
7717
- return Be(Ga);
7733
+ return Be(Ja);
7718
7734
  }
7719
7735
  const ui = Qe(void 0);
7720
- function jm() {
7736
+ function Fm() {
7721
7737
  return Be(ui);
7722
7738
  }
7723
7739
  function cf(t) {
@@ -7856,7 +7872,7 @@ function hi({ panel: t, frame: e }) {
7856
7872
  /* @__PURE__ */ c("span", { className: "lens-trend-chip-label", children: n.label || p("panel.trend.comparison", "vs comparison") })
7857
7873
  ] });
7858
7874
  }
7859
- const y = n.absoluteDeltaUnit === "percentage_points" && r !== void 0 ? r : s, k = y > 0, x = y === 0, S = pi(n), _ = x || S === "neutral" ? "lens-trend-chip-flat" : (S === "lower_better" ? !k : k) ? "lens-trend-chip-positive" : "lens-trend-chip-negative", M = `${k ? "+" : ""}${u(s)}`, A = x ? pu : k ? du : uu, L = f !== void 0 ? p("panel.trend.baseline", "was {value}", { value: f }) : void 0, C = r === void 0 ? void 0 : `${r > 0 ? "+" : ""}${n.absoluteDeltaUnit === "percentage_points" ? `${d(r)} ${p("panel.trend.percentagePoints", "pp")}` : i(r)}`, R = n.absoluteDeltaUnit === "percentage_points" && C !== void 0 ? C : rp(s, (B = h == null ? void 0 : h.meta) == null ? void 0 : B.locale) ?? M, F = n.label || p("panel.trend.comparison", "vs comparison");
7875
+ const m = n.absoluteDeltaUnit === "percentage_points" && r !== void 0 ? r : s, k = m > 0, x = m === 0, S = pi(n), _ = x || S === "neutral" ? "lens-trend-chip-flat" : (S === "lower_better" ? !k : k) ? "lens-trend-chip-positive" : "lens-trend-chip-negative", M = `${k ? "+" : ""}${u(s)}`, A = x ? pu : k ? du : uu, L = f !== void 0 ? p("panel.trend.baseline", "was {value}", { value: f }) : void 0, C = r === void 0 ? void 0 : `${r > 0 ? "+" : ""}${n.absoluteDeltaUnit === "percentage_points" ? `${d(r)} ${p("panel.trend.percentagePoints", "pp")}` : i(r)}`, R = n.absoluteDeltaUnit === "percentage_points" && C !== void 0 ? C : rp(s, (B = h == null ? void 0 : h.meta) == null ? void 0 : B.locale) ?? M, F = n.label || p("panel.trend.comparison", "vs comparison");
7860
7876
  return /* @__PURE__ */ v(
7861
7877
  "span",
7862
7878
  {
@@ -7885,7 +7901,7 @@ function yf({
7885
7901
  headerActions: i
7886
7902
  }) {
7887
7903
  var N, W, ae, we, ge, G, se;
7888
- const l = Pe(), { document: d } = ft(), u = lf(), [p, h] = q(!1), b = O(null), f = O(null), y = O(!1);
7904
+ const l = Pe(), { document: d } = ft(), u = lf(), [p, h] = q(!1), b = O(null), f = O(null), m = O(!1);
7889
7905
  V(() => {
7890
7906
  e.error && console.error(`[lens] panel ${t.id} request failed`, e.error);
7891
7907
  }, [e.error, t.id]);
@@ -7897,11 +7913,11 @@ function yf({
7897
7913
  `), Ee = (u == null ? void 0 : u.trail) ?? (u != null && u.titleIsRedundant ? void 0 : /* @__PURE__ */ c("h3", { className: "lens-panel-title", title: t.title, children: t.title })), Fe = z(() => {
7898
7914
  h((pe) => !pe);
7899
7915
  }, []), De = z(() => {
7900
- y.current = !0, h(!1);
7916
+ m.current = !0, h(!1);
7901
7917
  }, []);
7902
7918
  V(() => {
7903
7919
  var pe;
7904
- p || !y.current || (y.current = !1, (pe = b.current) == null || pe.focus());
7920
+ p || !m.current || (m.current = !1, (pe = b.current) == null || pe.focus());
7905
7921
  }, [p]);
7906
7922
  const Ue = /* @__PURE__ */ v(
7907
7923
  "section",
@@ -8012,10 +8028,10 @@ function vf(t) {
8012
8028
  }
8013
8029
  function mi({ sparkline: t, tone: e }) {
8014
8030
  var f;
8015
- const a = t.values.filter((y) => Number.isFinite(y));
8031
+ const a = t.values.filter((m) => Number.isFinite(m));
8016
8032
  if (a.length < 2) return null;
8017
- const s = Math.min(...a), l = Math.max(...a) - s || 1, d = a.map((y, k) => {
8018
- const x = k / (a.length - 1) * 40 + 2, S = 18 - 2.5 - (y - s) / l * 13;
8033
+ const s = Math.min(...a), l = Math.max(...a) - s || 1, d = a.map((m, k) => {
8034
+ const x = k / (a.length - 1) * 40 + 2, S = 18 - 2.5 - (m - s) / l * 13;
8019
8035
  return `${x.toFixed(1)},${S.toFixed(1)}`;
8020
8036
  }), [u, p] = d[d.length - 1].split(","), h = e === "positive" ? "var(--lens-pos)" : e === "negative" ? "var(--lens-neg)" : void 0, b = ((f = t.color) == null ? void 0 : f.trim()) || h || "var(--lens-accent-500)";
8021
8037
  return /* @__PURE__ */ v(
@@ -8042,7 +8058,7 @@ function mi({ sparkline: t, tone: e }) {
8042
8058
  }
8043
8059
  );
8044
8060
  }
8045
- function qr({ status: t }) {
8061
+ function Kr({ status: t }) {
8046
8062
  return /* @__PURE__ */ c(
8047
8063
  "span",
8048
8064
  {
@@ -8052,12 +8068,12 @@ function qr({ status: t }) {
8052
8068
  );
8053
8069
  }
8054
8070
  function yi(t) {
8055
- const e = ni(t.id), n = It(t, "value"), r = It(t, "final"), a = rt(n ? t.format[n] : void 0), s = kp(n ? t.format[n] : void 0), i = rt(r ? t.format[r] : void 0), l = Yp(ia(e.data, It(t, "label")), t.title), d = r ? ia(e.data, r) : void 0;
8071
+ const e = ni(t.id), n = It(t, "value"), r = It(t, "final"), a = rt(n ? t.format[n] : void 0), s = kp(n ? t.format[n] : void 0), i = rt(r ? t.format[r] : void 0), l = Yp(la(e.data, It(t, "label")), t.title), d = r ? la(e.data, r) : void 0;
8056
8072
  return {
8057
8073
  frame: e,
8058
8074
  label: l,
8059
8075
  showLabel: l !== t.title,
8060
- value: ia(e.data, n),
8076
+ value: la(e.data, n),
8061
8077
  formatValue: a,
8062
8078
  formatValueExact: s,
8063
8079
  formatDelta: i,
@@ -8082,17 +8098,17 @@ function gi({ href: t, label: e, children: n, onClick: r, prefetch: a }) {
8082
8098
  ] }) : /* @__PURE__ */ c(ve, { children: n });
8083
8099
  }
8084
8100
  function vi() {
8085
- return /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-stat-drill-mark", children: /* @__PURE__ */ c(ma, {}) });
8101
+ return /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-stat-drill-mark", children: /* @__PURE__ */ c(ya, {}) });
8086
8102
  }
8087
8103
  function bf({ panel: t }) {
8088
8104
  const { frame: e, label: n, showLabel: r, value: a, formatValue: s, formatValueExact: i, formatDelta: l, delta: d, deltaNumber: u } = yi(t), p = ii(t), h = p.cardURL(e.data), b = oi(h, p.action, p.prefetchIdle);
8089
8105
  return /* @__PURE__ */ c(yf, { panel: t, frame: e, variant: "stat", children: /* @__PURE__ */ c(gi, { href: h, label: t.title, onClick: p.onClick(h), prefetch: b, children: /* @__PURE__ */ v("div", { className: "lens-stat-content", children: [
8090
8106
  (r || t.status) && /* @__PURE__ */ v("p", { className: "lens-stat-label", children: [
8091
8107
  r && /* @__PURE__ */ c("span", { className: "lens-stat-label-text", title: n, children: n }),
8092
- t.status && /* @__PURE__ */ c(qr, { status: t.status })
8108
+ t.status && /* @__PURE__ */ c(Kr, { status: t.status })
8093
8109
  ] }),
8094
8110
  /* @__PURE__ */ v("div", { className: "lens-stat-value-row", children: [
8095
- /* @__PURE__ */ c("p", { className: "lens-stat-value", title: i(a), children: /* @__PURE__ */ c(Ha, { text: s(a) }) }),
8111
+ /* @__PURE__ */ c("p", { className: "lens-stat-value", title: i(a), children: /* @__PURE__ */ c(Ga, { text: s(a) }) }),
8096
8112
  h && /* @__PURE__ */ c(vi, {}),
8097
8113
  d !== void 0 && /* @__PURE__ */ v("span", { className: `lens-stat-delta${u !== void 0 && u < 0 ? " lens-stat-delta-negative" : ""}`, children: [
8098
8114
  u !== void 0 && u > 0 ? "+" : "",
@@ -8104,9 +8120,9 @@ function bf({ panel: t }) {
8104
8120
  }
8105
8121
  function wf({ panel: t }) {
8106
8122
  var x;
8107
- const { frame: e, label: n, showLabel: r, value: a, formatValue: s, formatValueExact: i } = yi(t), l = r ? n : t.title, d = ii(t), u = d.cardURL(e.data), p = oi(u, d.action, d.prefetchIdle), h = e.isLoading && !e.data, b = O(null), f = gf(b), y = [t.info, f ? t.caption : void 0].map((S) => (S == null ? void 0 : S.trim()) ?? "").filter(Boolean).join(`
8123
+ const { frame: e, label: n, showLabel: r, value: a, formatValue: s, formatValueExact: i } = yi(t), l = r ? n : t.title, d = ii(t), u = d.cardURL(e.data), p = oi(u, d.action, d.prefetchIdle), h = e.isLoading && !e.data, b = O(null), f = gf(b), m = [t.info, f ? t.caption : void 0].map((S) => (S == null ? void 0 : S.trim()) ?? "").filter(Boolean).join(`
8108
8124
 
8109
- `), k = h ? /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-shimmer lens-stat-metric-value-shimmer" }) : e.error && !e.data ? "—" : /* @__PURE__ */ c(Ha, { text: s(a) });
8125
+ `), k = h ? /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-shimmer lens-stat-metric-value-shimmer" }) : e.error && !e.data ? "—" : /* @__PURE__ */ c(Ga, { text: s(a) });
8110
8126
  return /* @__PURE__ */ c(gi, { href: u, label: l, onClick: d.onClick(u), prefetch: p, children: /* @__PURE__ */ v(
8111
8127
  "div",
8112
8128
  {
@@ -8117,8 +8133,8 @@ function wf({ panel: t }) {
8117
8133
  children: [
8118
8134
  /* @__PURE__ */ v("p", { className: "lens-stat-metric-label", title: l, children: [
8119
8135
  /* @__PURE__ */ c("span", { className: "lens-stat-metric-label-text", children: l }),
8120
- t.status && /* @__PURE__ */ c(qr, { status: t.status }),
8121
- y && /* @__PURE__ */ c(di, { inline: !0, subject: l, text: y })
8136
+ t.status && /* @__PURE__ */ c(Kr, { status: t.status }),
8137
+ m && /* @__PURE__ */ c(di, { inline: !0, subject: l, text: m })
8122
8138
  ] }),
8123
8139
  /* @__PURE__ */ v("div", { className: "lens-stat-metric-main", children: [
8124
8140
  /* @__PURE__ */ c("p", { className: "lens-stat-metric-value", title: i(a), children: k }),
@@ -8131,7 +8147,7 @@ function wf({ panel: t }) {
8131
8147
  }
8132
8148
  ) });
8133
8149
  }
8134
- const mt = _t(async () => ({ default: (await import("./ChartPanel-_S4IVYdJ.js")).ChartPanel })), kf = _t(async () => ({ default: (await import("./CascadePanel-jtC2EUUS.js").then((t) => t.C)).CascadePanel })), xf = _t(async () => ({ default: (await import("./CoveragePanel-5LWQwFMZ.js")).CoveragePanel })), _f = _t(async () => ({ default: (await import("./GaugePanel-eVYvp3Hk.js")).GaugePanel })), Sf = _t(async () => ({ default: (await import("./MetricFlowPanel-CG2Bj7s6.js")).MetricFlowPanel })), Nf = _t(async () => ({ default: (await import("./MetricHierarchyPanel-Difdcafn.js")).MetricHierarchyPanel })), Tf = _t(async () => ({ default: (await import("./MetricRelationshipPanel-Cq1dFTeY.js")).MetricRelationshipPanel })), Cf = _t(async () => ({ default: (await import("./MapPanel-CzpZKz1Y.js")).MapPanel })), Lf = _t(async () => ({ default: (await import("./TablePanel-_6j7epQg.js")).TablePanel })), Pf = {
8150
+ const mt = _t(async () => ({ default: (await import("./ChartPanel-CiAahY9O.js")).ChartPanel })), kf = _t(async () => ({ default: (await import("./CascadePanel-Sd2OKQx-.js").then((t) => t.C)).CascadePanel })), xf = _t(async () => ({ default: (await import("./CoveragePanel-DeeKg8gF.js")).CoveragePanel })), _f = _t(async () => ({ default: (await import("./GaugePanel-8rsf_XHS.js")).GaugePanel })), Sf = _t(async () => ({ default: (await import("./MetricFlowPanel-ZBJqPFpc.js")).MetricFlowPanel })), Nf = _t(async () => ({ default: (await import("./MetricHierarchyPanel-DStGwvVU.js")).MetricHierarchyPanel })), Tf = _t(async () => ({ default: (await import("./MetricRelationshipPanel-D6ItmGCS.js")).MetricRelationshipPanel })), Cf = _t(async () => ({ default: (await import("./MapPanel-Bq0mfVCB.js")).MapPanel })), Lf = _t(async () => ({ default: (await import("./TablePanel-CzLP8gG0.js")).TablePanel })), Pf = {
8135
8151
  stat: bf,
8136
8152
  pie: mt,
8137
8153
  donut: mt,
@@ -8227,7 +8243,7 @@ function jf() {
8227
8243
  },
8228
8244
  title: r,
8229
8245
  type: "button",
8230
- children: e === "copied" ? /* @__PURE__ */ c(Or, {}) : /* @__PURE__ */ c(bo, {})
8246
+ children: e === "copied" ? /* @__PURE__ */ c(Ur, {}) : /* @__PURE__ */ c(bo, {})
8231
8247
  }
8232
8248
  ),
8233
8249
  e !== "idle" && /* @__PURE__ */ c(
@@ -8250,11 +8266,11 @@ function Df({ parent: t, colorFor: e, centerLabel: n }) {
8250
8266
  const d = 0.035;
8251
8267
  let u = -Math.PI / 2;
8252
8268
  const p = t.slices.map((h, b) => {
8253
- const f = (i[b] ?? 0) / l * Math.PI * 2, y = f > d * 2 ? Ff(32, 32, 24, u + d, u + f - d) : void 0;
8254
- return u += f, y ? /* @__PURE__ */ c(
8269
+ const f = (i[b] ?? 0) / l * Math.PI * 2, m = f > d * 2 ? Ff(32, 32, 24, u + d, u + f - d) : void 0;
8270
+ return u += f, m ? /* @__PURE__ */ c(
8255
8271
  "path",
8256
8272
  {
8257
- d: y,
8273
+ d: m,
8258
8274
  fill: "none",
8259
8275
  opacity: h.selected ? 1 : 0.42,
8260
8276
  style: { stroke: e(h.label, b) },
@@ -8370,7 +8386,7 @@ function Bf({ href: t, onActivate: e, onIntent: n, children: r }) {
8370
8386
  };
8371
8387
  return t ? /* @__PURE__ */ c("a", { className: "lens-drill-row", href: t, ...p, children: r }) : /* @__PURE__ */ c("button", { className: "lens-drill-row", onClick: u, type: "button", ...p, children: r });
8372
8388
  }
8373
- const la = 320, Nn = 12, Lt = 12, Ln = 14;
8389
+ const ca = 320, Nn = 12, Lt = 12, Ln = 14;
8374
8390
  function Rs(t, e, n) {
8375
8391
  return Math.min(Math.max(t, e), Math.max(e, n));
8376
8392
  }
@@ -8394,12 +8410,12 @@ function Wf({
8394
8410
  onPerspective: b,
8395
8411
  onClose: f
8396
8412
  }) {
8397
- const y = Xt(), k = Pe(), x = rt(a), S = rt({ kind: "percent", minorUnits: !1, precision: 1, decimalSeparator: "." }), g = O(r ?? null);
8413
+ const m = Xt(), k = Pe(), x = rt(a), S = rt({ kind: "percent", minorUnits: !1, precision: 1, decimalSeparator: "." }), g = O(r ?? null);
8398
8414
  g.current = r ?? null;
8399
8415
  const _ = wn(
8400
8416
  !0,
8401
8417
  g,
8402
- y.depth > 0 ? "lens-overlay-root-over-drawer" : "",
8418
+ m.depth > 0 ? "lens-overlay-root-over-drawer" : "",
8403
8419
  { dark: l, theme: i }
8404
8420
  ), [T, M] = q({ left: n.x, top: n.y, placement: "right", caret: Ln }), [A, L] = q(!1), C = O(null), R = O(), [F] = q(() => {
8405
8421
  var N, W;
@@ -8411,7 +8427,7 @@ function Wf({
8411
8427
  if (!N) return;
8412
8428
  const W = g.current, ae = W == null ? void 0 : W.getBoundingClientRect(), we = ae && ae.width > 0 ? { x: ae.left + ae.width / 2, y: ae.top + ae.height / 2 } : B.current, ge = N.getBoundingClientRect(), G = Vf(
8413
8429
  we,
8414
- { width: ge.width || la, height: ge.height },
8430
+ { width: ge.width || ca, height: ge.height },
8415
8431
  { width: globalThis.innerWidth || 1024, height: globalThis.innerHeight || 768 }
8416
8432
  );
8417
8433
  M((se) => se.left === G.left && se.top === G.top && se.placement === G.placement && se.caret === G.caret ? se : G);
@@ -8465,7 +8481,7 @@ function Wf({
8465
8481
  N !== void 0 && (await Zf(N), L(!0), R.current && clearTimeout(R.current), R.current = setTimeout(() => L(!1), 1500));
8466
8482
  }, [t.value, a]);
8467
8483
  if (!_) return null;
8468
- const te = t.perspectives.length > 1, Ee = !!(t.node && t.target) && !(t.expandsToFork && te), Fe = t.breakdown.length === 0 && !t.leafHref && !Ee && !te, De = t.value !== void 0, Ue = T.placement === "below" ? { left: `${T.left + T.caret}px`, top: `${T.top}px` } : T.placement === "left" ? { left: `${T.left + la}px`, top: `${T.top + T.caret}px` } : { left: `${T.left}px`, top: `${T.top + T.caret}px` };
8484
+ const te = t.perspectives.length > 1, Ee = !!(t.node && t.target) && !(t.expandsToFork && te), Fe = t.breakdown.length === 0 && !t.leafHref && !Ee && !te, De = t.value !== void 0, Ue = T.placement === "below" ? { left: `${T.left + T.caret}px`, top: `${T.top}px` } : T.placement === "left" ? { left: `${T.left + ca}px`, top: `${T.top + T.caret}px` } : { left: `${T.left}px`, top: `${T.top + T.caret}px` };
8469
8485
  return $t(
8470
8486
  /* @__PURE__ */ v(ve, { children: [
8471
8487
  /* @__PURE__ */ c("button", { "aria-label": k("drill.close", "Close details"), className: "lens-drill-scrim", onMouseDown: f, tabIndex: -1, type: "button" }),
@@ -8480,7 +8496,7 @@ function Wf({
8480
8496
  onKeyDown: H,
8481
8497
  ref: C,
8482
8498
  role: "dialog",
8483
- style: { left: `${T.left}px`, top: `${T.top}px`, width: `${la}px` },
8499
+ style: { left: `${T.left}px`, top: `${T.top}px`, width: `${ca}px` },
8484
8500
  tabIndex: -1,
8485
8501
  children: [
8486
8502
  /* @__PURE__ */ v("header", { className: "lens-drill-header", children: [
@@ -8501,7 +8517,7 @@ function Wf({
8501
8517
  },
8502
8518
  title: A ? k("explore.copied", "Copied") : k("explore.copyValue", "Copy value"),
8503
8519
  type: "button",
8504
- children: A ? /* @__PURE__ */ c(Or, {}) : /* @__PURE__ */ c(bo, {})
8520
+ children: A ? /* @__PURE__ */ c(Ur, {}) : /* @__PURE__ */ c(bo, {})
8505
8521
  }
8506
8522
  )
8507
8523
  ] }),
@@ -8551,7 +8567,7 @@ function Wf({
8551
8567
  /* @__PURE__ */ c("span", { className: "lens-drill-row-label", children: N.label }),
8552
8568
  N.value !== void 0 && /* @__PURE__ */ c("span", { className: "lens-drill-row-value", children: x(N.value) }),
8553
8569
  N.share !== void 0 && /* @__PURE__ */ c("span", { className: "lens-drill-row-share", children: S(N.share * 100) }),
8554
- /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-drill-row-chevron", children: N.href ? /* @__PURE__ */ c(ma, {}) : /* @__PURE__ */ c(wt, {}) }),
8570
+ /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-drill-row-chevron", children: N.href ? /* @__PURE__ */ c(ya, {}) : /* @__PURE__ */ c(wt, {}) }),
8555
8571
  N.share !== void 0 && /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-drill-row-bar", style: { width: `${N.share * 100}%` } })
8556
8572
  ]
8557
8573
  }
@@ -8584,7 +8600,7 @@ function Wf({
8584
8600
  href: t.leafHref,
8585
8601
  children: [
8586
8602
  /* @__PURE__ */ c("span", { children: k("table.openRecord", "Open record") }),
8587
- /* @__PURE__ */ c(ma, {})
8603
+ /* @__PURE__ */ c(ya, {})
8588
8604
  ]
8589
8605
  }
8590
8606
  ),
@@ -8621,16 +8637,16 @@ function Hf(t, e, n) {
8621
8637
  for (let u = 0; u < a.length; u += 1) {
8622
8638
  const p = Ot(t, a.slice(0, u + 1));
8623
8639
  if (!p) continue;
8624
- const h = Yn(t, p), b = h.find(({ id: y }) => y === n.perspectiveId), f = p.label.trim() || (u === 0 ? e.title : "");
8640
+ const h = Yn(t, p), b = h.find(({ id: m }) => m === n.perspectiveId), f = p.label.trim() || (u === 0 ? e.title : "");
8625
8641
  f && ((d = s.at(-1)) == null ? void 0 : d.label) !== f && s.push({ label: f, pathIndex: u, current: !1, perspective: b, perspectiveCount: h.length });
8626
8642
  }
8627
8643
  const i = s.at(-1);
8628
8644
  return i && (i.current = !0), s;
8629
8645
  }
8630
- function Fm(t, e) {
8646
+ function Dm(t, e) {
8631
8647
  return t == null ? void 0 : t.children.find(({ key: n }) => n === e || n.endsWith(`/${e}`));
8632
8648
  }
8633
- function Ja(t, e, n) {
8649
+ function Qa(t, e, n) {
8634
8650
  if (!t || !e || !n) return;
8635
8651
  const r = t.columns.findIndex(({ name: a }) => a === n);
8636
8652
  return r < 0 ? void 0 : e[r];
@@ -8638,7 +8654,7 @@ function Ja(t, e, n) {
8638
8654
  function nr(t, e, n, r = e.encoding) {
8639
8655
  if (!(!n || !(r != null && r.id)))
8640
8656
  return n.rows.find((a) => {
8641
- const s = Ja(n, a, r.id);
8657
+ const s = Qa(n, a, r.id);
8642
8658
  if (typeof s != "string" && typeof s != "number" && typeof s != "bigint" && typeof s != "boolean") return !1;
8643
8659
  const i = String(s);
8644
8660
  return t.key === i || t.key.endsWith(`/${i}`);
@@ -8647,7 +8663,7 @@ function nr(t, e, n, r = e.encoding) {
8647
8663
  function Xn(t, e, n, r, a = e.encoding) {
8648
8664
  var u;
8649
8665
  if (t.label.trim()) return t.label;
8650
- const s = t.key.split("/").at(-1), i = nr(t, e, r, a), l = Ja(r, i, a == null ? void 0 : a.label);
8666
+ const s = t.key.split("/").at(-1), i = nr(t, e, r, a), l = Qa(r, i, a == null ? void 0 : a.label);
8651
8667
  return typeof l == "string" && l.trim() ? l : (t.target ? (u = n.drill.edges[t.target]) == null ? void 0 : u.label.trim() : "") || s || t.key;
8652
8668
  }
8653
8669
  function Gf(t) {
@@ -8659,21 +8675,21 @@ function Gf(t) {
8659
8675
  }
8660
8676
  function br(t, e, n, r = e.encoding) {
8661
8677
  const a = nr(t, e, n, r);
8662
- return Gf(Ja(n, a, r == null ? void 0 : r.value));
8678
+ return Gf(Qa(n, a, r == null ? void 0 : r.value));
8663
8679
  }
8664
- function La(t, e) {
8680
+ function Pa(t, e) {
8665
8681
  const n = t == null ? void 0 : t.total;
8666
8682
  return n !== void 0 && Number.isFinite(n) && n > 0 ? n : e;
8667
8683
  }
8668
8684
  function wi(t, e, n, r, a, s) {
8669
- const i = n.target ? t.drill.edges[n.target] : void 0, l = e.encoding ?? s.encoding, d = (i == null ? void 0 : i.encoding) ?? s.encoding, u = br(n, e, r, l), p = La(
8685
+ const i = n.target ? t.drill.edges[n.target] : void 0, l = e.encoding ?? s.encoding, d = (i == null ? void 0 : i.encoding) ?? s.encoding, u = br(n, e, r, l), p = Pa(
8670
8686
  r,
8671
- e.children.reduce((y, k) => y + (br(k, e, r, l) ?? 0), 0)
8672
- ), h = ((i == null ? void 0 : i.children) ?? []).map((y) => ({
8673
- node: y,
8674
- label: Xn(y, i, t, a, d),
8675
- value: i ? br(y, i, a, d) : void 0
8676
- })), b = La(a, h.reduce((y, k) => y + (k.value ?? 0), 0)), f = h.map((y) => ({ ...y, share: y.value !== void 0 && b > 0 ? y.value / b : void 0 })).sort((y, k) => (k.value ?? 0) - (y.value ?? 0));
8687
+ e.children.reduce((m, k) => m + (br(k, e, r, l) ?? 0), 0)
8688
+ ), h = ((i == null ? void 0 : i.children) ?? []).map((m) => ({
8689
+ node: m,
8690
+ label: Xn(m, i, t, a, d),
8691
+ value: i ? br(m, i, a, d) : void 0
8692
+ })), b = Pa(a, h.reduce((m, k) => m + (k.value ?? 0), 0)), f = h.map((m) => ({ ...m, share: m.value !== void 0 && b > 0 ? m.value / b : void 0 })).sort((m, k) => (k.value ?? 0) - (m.value ?? 0));
8677
8693
  return {
8678
8694
  node: n,
8679
8695
  label: Xn(n, e, t, r, l),
@@ -8691,7 +8707,7 @@ function ki(t, e, n, r) {
8691
8707
  node: l,
8692
8708
  label: Xn(l, n, t, r, a),
8693
8709
  value: br(l, n, r, a)
8694
- })), i = La(r, s.reduce((l, d) => l + (d.value ?? 0), 0));
8710
+ })), i = Pa(r, s.reduce((l, d) => l + (d.value ?? 0), 0));
8695
8711
  return {
8696
8712
  label: n.label.trim() || e.title,
8697
8713
  total: i > 0 ? i : void 0,
@@ -8748,14 +8764,14 @@ function nh(t, e, n, r) {
8748
8764
  const x = r.frame ? t.frames[r.frame] : void 0, S = ki(t, e, r, x);
8749
8765
  return { label: S.label, value: S.total, total: S.total, status: a };
8750
8766
  }
8751
- const u = i.frame ? t.frames[i.frame] : void 0, p = r.frame ? t.frames[r.frame] : void 0, h = wi(t, i, d, u, p, e), { slices: b, selectedIndex: f } = th(t, e, i, u, d.key), y = b.some((x) => x.value !== 0), k = {
8767
+ const u = i.frame ? t.frames[i.frame] : void 0, p = r.frame ? t.frames[r.frame] : void 0, h = wi(t, i, d, u, p, e), { slices: b, selectedIndex: f } = th(t, e, i, u, d.key), m = b.some((x) => x.value !== 0), k = {
8752
8768
  label: i.label.trim() || e.title,
8753
8769
  value: h.total,
8754
8770
  pathIndex: s.length - 1,
8755
8771
  view: xi(i) === "cascade" ? "cascade" : "donut",
8756
8772
  // A parent whose frame has not loaded (deep link) yields all-zero slices;
8757
8773
  // an empty list tells the header to drop the mini-chart entirely.
8758
- slices: y ? b : [],
8774
+ slices: m ? b : [],
8759
8775
  selectedIndex: f
8760
8776
  };
8761
8777
  return {
@@ -8782,13 +8798,13 @@ function rh({
8782
8798
  }) : void 0;
8783
8799
  return /* @__PURE__ */ v("div", { className: "lens-focus-header", children: [
8784
8800
  e.length > 1 && /* @__PURE__ */ c("nav", { "aria-label": l("focus.path", "Drill path"), className: "lens-focus-breadcrumb", children: /* @__PURE__ */ c("ol", { children: e.map((b, f) => {
8785
- const y = p && f > 0 && f < e.length - 2;
8801
+ const m = p && f > 0 && f < e.length - 2;
8786
8802
  return /* @__PURE__ */ v(Gi, { children: [
8787
8803
  p && f === e.length - 2 && /* @__PURE__ */ v("li", { "aria-hidden": "true", className: "lens-focus-crumb-gap", children: [
8788
8804
  /* @__PURE__ */ c(wt, { className: "lens-focus-crumb-sep", size: 12 }),
8789
8805
  /* @__PURE__ */ c("span", { children: "…" })
8790
8806
  ] }),
8791
- /* @__PURE__ */ v("li", { className: y ? "lens-focus-crumb-middle" : void 0, children: [
8807
+ /* @__PURE__ */ v("li", { className: m ? "lens-focus-crumb-middle" : void 0, children: [
8792
8808
  f > 0 && /* @__PURE__ */ c(wt, { className: "lens-focus-crumb-sep", size: 12 }),
8793
8809
  b.current ? /* @__PURE__ */ c("span", { "aria-current": "page", className: "lens-focus-crumb lens-focus-crumb-current", children: b.label }) : /* @__PURE__ */ c("button", { className: "lens-focus-crumb", onClick: () => s(b.pathIndex), type: "button", children: b.label })
8794
8810
  ] })
@@ -8797,10 +8813,10 @@ function rh({
8797
8813
  /* @__PURE__ */ v("div", { className: "lens-focus-context", children: [
8798
8814
  /* @__PURE__ */ v("div", { className: "lens-focus-context-body", children: [
8799
8815
  /* @__PURE__ */ c("span", { className: "lens-focus-name", title: t.label, children: t.label }),
8800
- t.value !== void 0 && /* @__PURE__ */ c("span", { className: "lens-focus-value", children: /* @__PURE__ */ c(Ha, { text: d(t.value) }) }),
8816
+ t.value !== void 0 && /* @__PURE__ */ c("span", { className: "lens-focus-value", children: /* @__PURE__ */ c(Ga, { text: d(t.value) }) }),
8801
8817
  h && /* @__PURE__ */ c("span", { className: "lens-focus-share", children: h }),
8802
8818
  a && /* @__PURE__ */ c("span", { className: "lens-focus-period", children: a }),
8803
- t.status && /* @__PURE__ */ c(qr, { status: t.status })
8819
+ t.status && /* @__PURE__ */ c(Kr, { status: t.status })
8804
8820
  ] }),
8805
8821
  t.parent && /* @__PURE__ */ c(
8806
8822
  $f,
@@ -8819,7 +8835,7 @@ function rh({
8819
8835
  const pr = 4;
8820
8836
  function Es({ perspectives: t, activeId: e, label: n, moreLabel: r, onSelect: a }) {
8821
8837
  var M, A;
8822
- const s = t.length <= pr ? t : t.slice(0, pr - 1), i = t.length <= pr ? [] : t.slice(pr - 1), l = i.some(({ id: L }) => L === e), d = O(null), u = O(null), p = O(null), h = O({}), [b, f] = q(), [y, k] = q(!1), x = z(() => {
8838
+ const s = t.length <= pr ? t : t.slice(0, pr - 1), i = t.length <= pr ? [] : t.slice(pr - 1), l = i.some(({ id: L }) => L === e), d = O(null), u = O(null), p = O(null), h = O({}), [b, f] = q(), [m, k] = q(!1), x = z(() => {
8823
8839
  const L = e ? h.current[e] : void 0;
8824
8840
  if (!L) {
8825
8841
  f(void 0);
@@ -8833,14 +8849,14 @@ function Es({ perspectives: t, activeId: e, label: n, moreLabel: r, onSelect: a
8833
8849
  const L = globalThis.document.fonts;
8834
8850
  return L == null || L.ready.then(x), () => globalThis.removeEventListener("resize", x);
8835
8851
  }, [x]), V(() => {
8836
- if (!y) return;
8852
+ if (!m) return;
8837
8853
  const L = (C) => {
8838
8854
  var F, B;
8839
8855
  const R = C.target;
8840
8856
  R && ((F = u.current) != null && F.contains(R) || (B = p.current) != null && B.contains(R)) || k(!1);
8841
8857
  };
8842
8858
  return globalThis.document.addEventListener("mousedown", L), () => globalThis.document.removeEventListener("mousedown", L);
8843
- }, [y]);
8859
+ }, [m]);
8844
8860
  const S = z((L) => {
8845
8861
  k(!1), L !== e && a(L);
8846
8862
  }, [e, a]), g = (L) => {
@@ -8911,7 +8927,7 @@ function Es({ perspectives: t, activeId: e, label: n, moreLabel: r, onSelect: a
8911
8927
  /* @__PURE__ */ v(
8912
8928
  "button",
8913
8929
  {
8914
- "aria-expanded": y,
8930
+ "aria-expanded": m,
8915
8931
  "aria-haspopup": "listbox",
8916
8932
  className: `lens-focus-lens-pill${l ? " lens-focus-lens-pill-active" : ""}`,
8917
8933
  "data-lens-stop": !0,
@@ -8925,7 +8941,7 @@ function Es({ perspectives: t, activeId: e, label: n, moreLabel: r, onSelect: a
8925
8941
  ]
8926
8942
  }
8927
8943
  ),
8928
- y && /* @__PURE__ */ c("div", { className: "lens-focus-lens-menu", ref: u, role: "listbox", "aria-label": r, children: i.map((L) => {
8944
+ m && /* @__PURE__ */ c("div", { className: "lens-focus-lens-menu", ref: u, role: "listbox", "aria-label": r, children: i.map((L) => {
8929
8945
  const C = L.id === e;
8930
8946
  return /* @__PURE__ */ v(
8931
8947
  "button",
@@ -8937,7 +8953,7 @@ function Es({ perspectives: t, activeId: e, label: n, moreLabel: r, onSelect: a
8937
8953
  type: "button",
8938
8954
  children: [
8939
8955
  /* @__PURE__ */ c("span", { className: "lens-focus-lens-option-label", children: L.label }),
8940
- C && /* @__PURE__ */ c(Or, { size: 14 })
8956
+ C && /* @__PURE__ */ c(Ur, { size: 14 })
8941
8957
  ]
8942
8958
  },
8943
8959
  L.id
@@ -8968,9 +8984,9 @@ function oh({ column: t, format: e, value: n }) {
8968
8984
  }
8969
8985
  function ih({ source: t, style: e }) {
8970
8986
  var g;
8971
- const { document: n, navigation: r } = ft(), a = Pe(), [s, i] = q(!1), [l, d] = q(), [u, p] = q(!1), [h, b] = q(!1), f = O(!1), y = n.frames[t.frame] ?? l, k = n.endpoints.query, x = ((g = t.label) == null ? void 0 : g.trim()) || a("focus.sourceData", "Source data");
8987
+ const { document: n, navigation: r } = ft(), a = Pe(), [s, i] = q(!1), [l, d] = q(), [u, p] = q(!1), [h, b] = q(!1), f = O(!1), m = n.frames[t.frame] ?? l, k = n.endpoints.query, x = ((g = t.label) == null ? void 0 : g.trim()) || a("focus.sourceData", "Source data");
8972
8988
  V(() => {
8973
- if (!s || y || !k || f.current) return;
8989
+ if (!s || m || !k || f.current) return;
8974
8990
  f.current = !0;
8975
8991
  const _ = new AbortController();
8976
8992
  p(!0);
@@ -8997,8 +9013,8 @@ function ih({ source: t, style: e }) {
8997
9013
  }), () => {
8998
9014
  _.signal.aborted || (_.abort(), f.current = !1, p(!1));
8999
9015
  };
9000
- }, [n, k, y, r.path, r.perspectiveId, s, t.frame]);
9001
- const S = je(() => y ? ah(t, y) : [], [y, t]);
9016
+ }, [n, k, m, r.path, r.perspectiveId, s, t.frame]);
9017
+ const S = je(() => m ? ah(t, m) : [], [m, t]);
9002
9018
  return /* @__PURE__ */ v("div", { className: `lens-focus-source${s ? " lens-focus-source-open" : ""}`, style: e, children: [
9003
9019
  /* @__PURE__ */ v(
9004
9020
  "button",
@@ -9010,11 +9026,11 @@ function ih({ source: t, style: e }) {
9010
9026
  children: [
9011
9027
  /* @__PURE__ */ c(wt, { className: "lens-focus-source-caret", size: 12 }),
9012
9028
  /* @__PURE__ */ c("span", { className: "lens-focus-source-label", children: x }),
9013
- y && /* @__PURE__ */ c("span", { className: "lens-focus-source-count", children: a("focus.sourceRows", "{n} rows", { n: y.rows.length }) })
9029
+ m && /* @__PURE__ */ c("span", { className: "lens-focus-source-count", children: a("focus.sourceRows", "{n} rows", { n: m.rows.length }) })
9014
9030
  ]
9015
9031
  }
9016
9032
  ),
9017
- s && /* @__PURE__ */ c("div", { className: "lens-focus-source-body", children: y ? /* @__PURE__ */ c("div", { className: "lens-focus-source-scroll", children: /* @__PURE__ */ v("table", { className: "lens-table lens-focus-source-table", children: [
9033
+ s && /* @__PURE__ */ c("div", { className: "lens-focus-source-body", children: m ? /* @__PURE__ */ c("div", { className: "lens-focus-source-scroll", children: /* @__PURE__ */ v("table", { className: "lens-table lens-focus-source-table", children: [
9018
9034
  /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: S.map((_) => /* @__PURE__ */ c(
9019
9035
  "th",
9020
9036
  {
@@ -9025,7 +9041,7 @@ function ih({ source: t, style: e }) {
9025
9041
  _.field
9026
9042
  )) }) }),
9027
9043
  /* @__PURE__ */ v("tbody", { children: [
9028
- y.rows.map((_, T) => /* @__PURE__ */ c("tr", { children: S.map((M) => {
9044
+ m.rows.map((_, T) => /* @__PURE__ */ c("tr", { children: S.map((M) => {
9029
9045
  var A;
9030
9046
  return /* @__PURE__ */ c(
9031
9047
  "td",
@@ -9036,12 +9052,12 @@ function ih({ source: t, style: e }) {
9036
9052
  M.field
9037
9053
  );
9038
9054
  }) }, T)),
9039
- y.rows.length === 0 && /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { className: "lens-table-empty", colSpan: Math.max(1, S.length), children: a("panel.empty", "No data") }) })
9055
+ m.rows.length === 0 && /* @__PURE__ */ c("tr", { children: /* @__PURE__ */ c("td", { className: "lens-table-empty", colSpan: Math.max(1, S.length), children: a("panel.empty", "No data") }) })
9040
9056
  ] })
9041
9057
  ] }) }) : /* @__PURE__ */ c("p", { className: "lens-focus-source-state", role: h ? "alert" : "status", children: u ? a("focus.sourceLoading", "Loading source data…") : a("focus.sourceUnavailable", "Source data is unavailable.") }) })
9042
9058
  ] });
9043
9059
  }
9044
- let ca = 0;
9060
+ let da = 0;
9045
9061
  function yt(t) {
9046
9062
  var a, s, i, l;
9047
9063
  const e = globalThis.document, n = (s = (a = globalThis.window) == null ? void 0 : a.matchMedia) == null ? void 0 : s.call(a, "(prefers-reduced-motion: reduce)").matches;
@@ -9049,12 +9065,12 @@ function yt(t) {
9049
9065
  t();
9050
9066
  return;
9051
9067
  }
9052
- ca += 1, globalThis.document.documentElement.classList.add("lens-explore-transition-active");
9068
+ da += 1, globalThis.document.documentElement.classList.add("lens-explore-transition-active");
9053
9069
  const r = e.startViewTransition(t);
9054
9070
  (i = r.ready) == null || i.catch(() => {
9055
9071
  }), (l = r.finished) == null || l.catch(() => {
9056
9072
  }).finally(() => {
9057
- ca -= 1, ca === 0 && globalThis.document.documentElement.classList.remove("lens-explore-transition-active");
9073
+ da -= 1, da === 0 && globalThis.document.documentElement.classList.remove("lens-explore-transition-active");
9058
9074
  });
9059
9075
  }
9060
9076
  function lh(t, e, n, r) {
@@ -9072,7 +9088,7 @@ function ch(t, e) {
9072
9088
  }
9073
9089
  function dh({ panel: t, registry: e }) {
9074
9090
  var de, kn;
9075
- const { document: n, navigation: r } = ft(), a = wp(), s = Xt(), i = Pe(), l = ni(t.id), d = r.panelId === t.id && r.path.length > 0, u = t.drillRoot ? n.drill.edges[t.drillRoot] : void 0, p = d ? Ot(n, r.path) : u, h = je(() => Yn(n, p), [n, p]), b = !!(p && Er(n, p)), f = je(() => Po(n, p), [n, p]), y = d ? n.perspectives.find(({ id: D }) => D === r.perspectiveId) : void 0, k = (y == null ? void 0 : y.semantics) ?? t.semantics, x = xi(p) ?? Kf(k, t.kind), S = Qf(u, p), g = S && d && !!p, _ = s.depth > 0, T = S && _, M = T && !g && f.length > 1, A = je(() => {
9091
+ const { document: n, navigation: r } = ft(), a = wp(), s = Xt(), i = Pe(), l = ni(t.id), d = r.panelId === t.id && r.path.length > 0, u = t.drillRoot ? n.drill.edges[t.drillRoot] : void 0, p = d ? Ot(n, r.path) : u, h = je(() => Yn(n, p), [n, p]), b = !!(p && Er(n, p)), f = je(() => Po(n, p), [n, p]), m = d ? n.perspectives.find(({ id: D }) => D === r.perspectiveId) : void 0, k = (m == null ? void 0 : m.semantics) ?? t.semantics, x = xi(p) ?? Kf(k, t.kind), S = Qf(u, p), g = S && d && !!p, _ = s.depth > 0, T = S && _, M = T && !g && f.length > 1, A = je(() => {
9076
9092
  const D = (p == null ? void 0 : p.encoding) ?? t.encoding;
9077
9093
  return {
9078
9094
  ...Uf(t, x),
@@ -9122,7 +9138,7 @@ function dh({ panel: t, registry: e }) {
9122
9138
  const he = re ?? p;
9123
9139
  if (!D.action || !he) return;
9124
9140
  const Me = new URL(globalThis.location.href), xe = he.frame ? n.frames[he.frame] : l.data;
9125
- return Ua(D.action, {
9141
+ return Za(D.action, {
9126
9142
  fields: lh(he, xe, D, he.encoding ?? t.encoding),
9127
9143
  variables: bn(Me),
9128
9144
  location: Me
@@ -9134,9 +9150,9 @@ function dh({ panel: t, registry: e }) {
9134
9150
  const he = l.data.rows.indexOf(re);
9135
9151
  if (he < 0) return;
9136
9152
  const Me = A.encoding.label ?? A.encoding.category, xe = Me ? l.data.columns.findIndex((rr) => rr.name === Me) : -1, st = xe >= 0 ? re[xe] : void 0, $e = typeof st == "string" ? st : Xn(D, p, n, l.data, A.encoding);
9137
- return Ca(n.theme, A, {
9153
+ return jr(n.theme, A, {
9138
9154
  positional: !d,
9139
- labels: Cs(l.data, A)
9155
+ labels: La(l.data, A)
9140
9156
  })($e, he);
9141
9157
  }, [d, n, l.data, p, A]), se = z((...D) => {
9142
9158
  ue(void 0), yt(() => {
@@ -9259,9 +9275,9 @@ function dh({ panel: t, registry: e }) {
9259
9275
  );
9260
9276
  const Ve = g && p ? nh(n, t, r.path, p) : void 0, Ye = z((D) => {
9261
9277
  yt(() => a.jumpTo(D));
9262
- }, [a]), en = z((D, re) => Ca(n.theme, t, {
9278
+ }, [a]), en = z((D, re) => jr(n.theme, t, {
9263
9279
  positional: !1,
9264
- labels: Cs(l.data, t)
9280
+ labels: La(l.data, t)
9265
9281
  })(D, re), [n.theme, l.data, t]), Ut = z((D) => {
9266
9282
  yt(() => a.switchPerspective(D));
9267
9283
  }, [a]), at = z((D) => {
@@ -9319,7 +9335,7 @@ function dh({ panel: t, registry: e }) {
9319
9335
  ref: C,
9320
9336
  style: Ee,
9321
9337
  tabIndex: -1,
9322
- children: /* @__PURE__ */ c(Ga.Provider, { value: Ie, children: /* @__PURE__ */ c(ui.Provider, { value: U, children: Re }) })
9338
+ children: /* @__PURE__ */ c(Ja.Provider, { value: Ie, children: /* @__PURE__ */ c(ui.Provider, { value: U, children: Re }) })
9323
9339
  }
9324
9340
  ),
9325
9341
  g && (p == null ? void 0 : p.source) && /* @__PURE__ */ c(ih, { source: p.source, style: De }, B),
@@ -9372,7 +9388,7 @@ function As(t) {
9372
9388
  const e = t == null ? void 0 : t.getBoundingClientRect();
9373
9389
  return e ? { x: e.left + e.width / 2, y: e.top + e.height / 2 } : { x: 0, y: 0 };
9374
9390
  }
9375
- const uh = 884, Ms = `(max-width: ${uh}px)`, Dm = 500, ph = [
9391
+ const uh = 884, Ms = `(max-width: ${uh}px)`, zm = 500, ph = [
9376
9392
  "ArrowLeft",
9377
9393
  "ArrowRight",
9378
9394
  "ArrowUp",
@@ -9406,7 +9422,7 @@ function hh() {
9406
9422
  }, []), t;
9407
9423
  }
9408
9424
  function mh({ locale: t, draft: e, min: n, max: r, today: a, onPick: s, translate: i }) {
9409
- const l = Pu(t), u = hh() ? 1 : 2, p = a ?? fh(), h = sr(e.start ?? p, n, r), [b, f] = q(h), [y, k] = q(js(h)), [x, S] = q(), [g, _] = q(""), [T, M] = q("days"), [A, L] = q(h.year), C = O(null), R = O(!1), F = Array.from({ length: u }, (U, J) => gt(y, J)), B = z((U) => Array.from({ length: u }, (J, me) => gt(y, me)).some((J) => Fs(U, J)), [u, y]), I = z((U) => n !== void 0 && Ze(U, n) < 0 || r !== void 0 && Ze(U, r) > 0, [r, n]), H = z((U, J = !0) => {
9425
+ const l = Pu(t), u = hh() ? 1 : 2, p = a ?? fh(), h = sr(e.start ?? p, n, r), [b, f] = q(h), [m, k] = q(js(h)), [x, S] = q(), [g, _] = q(""), [T, M] = q("days"), [A, L] = q(h.year), C = O(null), R = O(!1), F = Array.from({ length: u }, (U, J) => gt(m, J)), B = z((U) => Array.from({ length: u }, (J, me) => gt(m, me)).some((J) => Fs(U, J)), [u, m]), I = z((U) => n !== void 0 && Ze(U, n) < 0 || r !== void 0 && Ze(U, r) > 0, [r, n]), H = z((U, J = !0) => {
9410
9426
  const me = js(U);
9411
9427
  k((Ce) => Ze(me, Ce) < 0 ? me : gt(me, -(u - 1))), J && _(or(t, U.year, U.month));
9412
9428
  }, [t, u]), ue = z((U) => {
@@ -9419,7 +9435,7 @@ function mh({ locale: t, draft: e, min: n, max: r, today: a, onPick: s, translat
9419
9435
  R.current = !1;
9420
9436
  const U = (J = C.current) == null ? void 0 : J.querySelector('[data-focused="true"]');
9421
9437
  U == null || U.focus();
9422
- }, [b, y, u]);
9438
+ }, [b, m, u]);
9423
9439
  const te = z((U) => {
9424
9440
  if (I(U)) return;
9425
9441
  const J = Nu(e, U);
@@ -9446,9 +9462,9 @@ function mh({ locale: t, draft: e, min: n, max: r, today: a, onPick: s, translat
9446
9462
  if (me) return "left";
9447
9463
  if (Ce) return "right";
9448
9464
  }, ae = Iu(t, l), we = B(b), ge = z((U) => {
9449
- const J = gt(y, U);
9465
+ const J = gt(m, U);
9450
9466
  k(J), _(or(t, J.year, J.month)), f((me) => sr(gt(me, U), n, r));
9451
- }, [t, r, n, y]), G = (U) => {
9467
+ }, [t, r, n, m]), G = (U) => {
9452
9468
  L(U), M("months");
9453
9469
  }, se = (U, J) => n !== void 0 && Ze({ year: U, month: J, day: Ht(U, J) }, n) < 0 || r !== void 0 && Ze({ year: U, month: J, day: 1 }, r) > 0, pe = (U) => n !== void 0 && U < n.year || r !== void 0 && U > r.year, Ae = (U) => {
9454
9470
  const J = { year: A, month: U, day: 1 };
@@ -9492,7 +9508,7 @@ function mh({ locale: t, draft: e, min: n, max: r, today: a, onPick: s, translat
9492
9508
  /* @__PURE__ */ c("div", { className: "lens-calendar-jump-grid", children: J ? $.map((ne, Ie) => /* @__PURE__ */ c(
9493
9509
  "button",
9494
9510
  {
9495
- "aria-pressed": A === y.year && Ie + 1 === y.month,
9511
+ "aria-pressed": A === m.year && Ie + 1 === m.month,
9496
9512
  className: "lens-calendar-jump-cell",
9497
9513
  disabled: se(A, Ie + 1),
9498
9514
  onClick: () => Ae(Ie + 1),
@@ -9503,7 +9519,7 @@ function mh({ locale: t, draft: e, min: n, max: r, today: a, onPick: s, translat
9503
9519
  )) : U.map((ne) => /* @__PURE__ */ c(
9504
9520
  "button",
9505
9521
  {
9506
- "aria-pressed": ne === y.year,
9522
+ "aria-pressed": ne === m.year,
9507
9523
  className: "lens-calendar-jump-cell",
9508
9524
  disabled: pe(ne),
9509
9525
  onClick: () => {
@@ -9671,7 +9687,7 @@ function bh() {
9671
9687
  const wh = {
9672
9688
  thisMonth: Pn,
9673
9689
  lastMonth: Pn,
9674
- last30days: Oa,
9690
+ last30days: Ua,
9675
9691
  last12months: mr,
9676
9692
  yearToDate: mr,
9677
9693
  lastYear: mr
@@ -9713,7 +9729,7 @@ function Si(t) {
9713
9729
  if (!(r < 1 || r > 12) && !(n < 1 || n > Ht(a, r)))
9714
9730
  return { year: a, month: r, day: n };
9715
9731
  }
9716
- function Pa(t) {
9732
+ function Ia(t) {
9717
9733
  const e = String(t.day).padStart(2, "0"), n = String(t.month).padStart(2, "0");
9718
9734
  return `${e}.${n}.${String(t.year).padStart(4, "0")}`;
9719
9735
  }
@@ -9722,20 +9738,20 @@ function Ni(t) {
9722
9738
  return e.length <= 2 ? e : e.length <= 4 ? `${e.slice(0, 2)}.${e.slice(2)}` : `${e.slice(0, 2)}.${e.slice(2, 4)}.${e.slice(4)}`;
9723
9739
  }
9724
9740
  function ot(t) {
9725
- return { text: t ? Pa(t) : "", invalid: !1 };
9741
+ return { text: t ? Ia(t) : "", invalid: !1 };
9726
9742
  }
9727
9743
  function Nh({ filter: t, today: e }) {
9728
9744
  const { values: n, setPeriod: r } = Yt(), { document: a } = ft(), s = Pe(), i = a.meta.locale, l = t.period, [d, u] = q(!1), [p, h] = q({}), [b, f] = q({
9729
9745
  start: ot(void 0),
9730
9746
  end: ot(void 0)
9731
- }), [y, k] = q({ left: 0, top: 0 }), x = O(null), S = O(null), g = wn(d, x), [_] = q(() => {
9747
+ }), [m, k] = q({ left: 0, top: 0 }), x = O(null), S = O(null), g = wn(d, x), [_] = q(() => {
9732
9748
  var $, ne;
9733
9749
  return zt() ? !1 : !((ne = ($ = globalThis.window) == null ? void 0 : $.matchMedia) != null && ne.call($, "(prefers-reduced-motion: reduce)").matches);
9734
- }), T = l ? ea(l, n) : { start: "", end: "" }, M = z(($ = !0) => {
9750
+ }), T = l ? ta(l, n) : { start: "", end: "" }, M = z(($ = !0) => {
9735
9751
  var ne;
9736
9752
  u(!1), $ && ((ne = x.current) == null || ne.focus());
9737
9753
  }, []), A = z(() => {
9738
- const $ = Ds(l ? ea(l, n) : { start: "", end: "" });
9754
+ const $ = Ds(l ? ta(l, n) : { start: "", end: "" });
9739
9755
  h($), f({ start: ot($.start), end: ot($.end) }), u(!0);
9740
9756
  }, [l, n]), L = p.start ? Xe(p.start) : "", C = p.end ? Xe(p.end) : "";
9741
9757
  V(() => {
@@ -9780,7 +9796,7 @@ function Nh({ filter: t, today: e }) {
9780
9796
  const F = ($) => {
9781
9797
  h($.draft);
9782
9798
  }, B = () => {
9783
- const $ = Ds(l ? ea(l, n) : { start: "", end: "" });
9799
+ const $ = Ds(l ? ta(l, n) : { start: "", end: "" });
9784
9800
  h($), f({ start: ot($.start), end: ot($.end) }), M();
9785
9801
  }, I = ($) => {
9786
9802
  r(t, $), d && M(!1);
@@ -9807,12 +9823,12 @@ function Nh({ filter: t, today: e }) {
9807
9823
  return;
9808
9824
  }
9809
9825
  p.start && p.end && Ze(p.start, p.end) <= 0 && I({ start: Xe(p.start), end: Xe(p.end) });
9810
- }, Fe = e ?? bh(), De = xh(l), Ue = _h(l, Fe, s, De), N = Ue.filter(($) => !$.past), W = Ue.filter(($) => $.past), ae = !!(p.start && p.end && Ze(p.start, p.end) <= 0), we = s("filter.period.allTime", "All time"), ge = it(T.start), G = it(T.end), se = T.start === "" && T.end === "" ? we : ge && G ? cs(ge, G) : s("filter.period.custom", "Custom range"), pe = l.min ? it(l.min) : void 0, Ae = l.max ? it(l.max) : void 0, U = ($) => {
9826
+ }, Fe = e ?? bh(), De = xh(l), Ue = _h(l, Fe, s, De), N = Ue.filter(($) => !$.past), W = Ue.filter(($) => $.past), ae = !!(p.start && p.end && Ze(p.start, p.end) <= 0), we = s("filter.period.allTime", "All time"), ge = it(T.start), G = it(T.end), se = T.start === "" && T.end === "" ? we : ge && G ? ds(ge, G) : s("filter.period.custom", "Custom range"), pe = l.min ? it(l.min) : void 0, Ae = l.max ? it(l.max) : void 0, U = ($) => {
9811
9827
  if (!ge || !G) return;
9812
9828
  const ne = ku(ge, G, $, Fe);
9813
9829
  if (!(pe && Ze(ne.end, pe) < 0) && !(Ae && Ze(ne.start, Ae) > 0))
9814
9830
  return ne;
9815
- }, J = U(-1), me = U(1), Ce = ($, ne, Ie) => $ ? `${s(ne, Ie)}: ${cs($.start, $.end)}` : s(ne, Ie);
9831
+ }, J = U(-1), me = U(1), Ce = ($, ne, Ie) => $ ? `${s(ne, Ie)}: ${ds($.start, $.end)}` : s(ne, Ie);
9816
9832
  return /* @__PURE__ */ v(
9817
9833
  "div",
9818
9834
  {
@@ -9871,7 +9887,7 @@ function Nh({ filter: t, today: e }) {
9871
9887
  className: `lens-filter-popover${_ ? " lens-filter-popover-enter" : ""}`,
9872
9888
  ref: S,
9873
9889
  role: "dialog",
9874
- style: { left: y.left, top: y.top },
9890
+ style: { left: m.left, top: m.top },
9875
9891
  tabIndex: -1,
9876
9892
  children: [
9877
9893
  (De.length > 0 || Ue.length > 0 || l.allowEmpty) && // The rail leads with the producer's own periods, unheaded because
@@ -9993,7 +10009,7 @@ function Nh({ filter: t, today: e }) {
9993
10009
  ] })
9994
10010
  ] }),
9995
10011
  /* @__PURE__ */ v("div", { className: "lens-filter-popover-footer", children: [
9996
- /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-filter-summary-badge", children: /* @__PURE__ */ c(Oa, { size: 14 }) }),
10012
+ /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-filter-summary-badge", children: /* @__PURE__ */ c(Ua, { size: 14 }) }),
9997
10013
  /* @__PURE__ */ c("span", { className: "lens-filter-summary", "data-complete": ae || void 0, children: Au(p, s) }),
9998
10014
  /* @__PURE__ */ c(
9999
10015
  "button",
@@ -10028,10 +10044,10 @@ function Nh({ filter: t, today: e }) {
10028
10044
  }
10029
10045
  const Th = 500;
10030
10046
  function zs({ label: t, value: e, onChange: n }) {
10031
- const r = Pe(), a = it(e), [s, i] = q(a ? Pa(a) : ""), [l, d] = q(!1);
10047
+ const r = Pe(), a = it(e), [s, i] = q(a ? Ia(a) : ""), [l, d] = q(!1);
10032
10048
  V(() => {
10033
10049
  const p = it(e);
10034
- i(p ? Pa(p) : ""), d(!1);
10050
+ i(p ? Ia(p) : ""), d(!1);
10035
10051
  }, [e]);
10036
10052
  const u = () => {
10037
10053
  const p = s.trim();
@@ -10066,15 +10082,15 @@ function zs({ label: t, value: e, onChange: n }) {
10066
10082
  }
10067
10083
  function Ch({ filter: t }) {
10068
10084
  var Ue;
10069
- const e = t.compare, { setCompare: n } = Yt(), r = Pe(), a = (e == null ? void 0 : e.value.mode) ?? "off", s = gn(), i = O(null), l = O(null), d = O(/* @__PURE__ */ new Map()), u = O(null), p = O({ text: "", at: 0 }), [h, b] = q(!1), [f, y] = q(a), [k, x] = q(a), [S, g] = q((e == null ? void 0 : e.value.start) ?? ""), [_, T] = q((e == null ? void 0 : e.value.end) ?? ""), [M, A] = q({ left: 0, top: 0 }), L = z(() => b(!1), []), C = wn(h, i);
10085
+ const e = t.compare, { setCompare: n } = Yt(), r = Pe(), a = (e == null ? void 0 : e.value.mode) ?? "off", s = gn(), i = O(null), l = O(null), d = O(/* @__PURE__ */ new Map()), u = O(null), p = O({ text: "", at: 0 }), [h, b] = q(!1), [f, m] = q(a), [k, x] = q(a), [S, g] = q((e == null ? void 0 : e.value.start) ?? ""), [_, T] = q((e == null ? void 0 : e.value.end) ?? ""), [M, A] = q({ left: 0, top: 0 }), L = z(() => b(!1), []), C = wn(h, i);
10070
10086
  gh(l, h && !!C, L, u, i);
10071
10087
  const R = (e == null ? void 0 : e.value.start) ?? "", F = (e == null ? void 0 : e.value.end) ?? "";
10072
- V(() => y(a), [a]), V(() => g(R), [R]), V(() => T(F), [F]), V(() => {
10088
+ V(() => m(a), [a]), V(() => g(R), [R]), V(() => T(F), [F]), V(() => {
10073
10089
  if (h) {
10074
10090
  x(a);
10075
10091
  return;
10076
10092
  }
10077
- y(a), g(R), T(F);
10093
+ m(a), g(R), T(F);
10078
10094
  }, [h, F, a, R]);
10079
10095
  const B = z(() => {
10080
10096
  const N = i.current, W = l.current;
@@ -10112,7 +10128,7 @@ function Ch({ filter: t }) {
10112
10128
  { value: "custom", label: r("filter.compare.custom", "Custom interval") }
10113
10129
  ], H = ((Ue = I.find((N) => N.value === f)) == null ? void 0 : Ue.label) ?? I[0].label, ue = (N) => {
10114
10130
  var W;
10115
- if (y(N), x(N), N === "custom") {
10131
+ if (m(N), x(N), N === "custom") {
10116
10132
  (W = d.current.get(N)) == null || W.focus();
10117
10133
  return;
10118
10134
  }
@@ -10187,7 +10203,7 @@ function Ch({ filter: t }) {
10187
10203
  role: "option",
10188
10204
  tabIndex: N.value === k ? 0 : -1,
10189
10205
  children: [
10190
- /* @__PURE__ */ c("span", { className: "lens-compare-option-mark", children: N.value === f && /* @__PURE__ */ c(Or, { "aria-hidden": "true" }) }),
10206
+ /* @__PURE__ */ c("span", { className: "lens-compare-option-mark", children: N.value === f && /* @__PURE__ */ c(Ur, { "aria-hidden": "true" }) }),
10191
10207
  /* @__PURE__ */ c("span", { className: "lens-facet-option-label", children: N.label })
10192
10208
  ]
10193
10209
  },
@@ -10239,7 +10255,7 @@ function Ph(t) {
10239
10255
  return `${t.pathname}${t.search}${t.hash}`;
10240
10256
  }
10241
10257
  function Ih(t) {
10242
- const { document: e } = ft(), n = (t == null ? void 0 : t.optionsEndpoint) ?? "", r = t == null ? void 0 : t.searchParam, a = O(/* @__PURE__ */ new Map()), s = O(/* @__PURE__ */ new Map()), [i, l] = q(""), [d, u] = q([]), [p, h] = q(""), [b, f] = q("idle"), y = z((k) => {
10258
+ const { document: e } = ft(), n = (t == null ? void 0 : t.optionsEndpoint) ?? "", r = t == null ? void 0 : t.searchParam, a = O(/* @__PURE__ */ new Map()), s = O(/* @__PURE__ */ new Map()), [i, l] = q(""), [d, u] = q([]), [p, h] = q(""), [b, f] = q("idle"), m = z((k) => {
10243
10259
  const x = $s(n, r, k), S = a.current.get(x);
10244
10260
  if (S) return Promise.resolve(S);
10245
10261
  const g = s.current.get(x);
@@ -10261,7 +10277,7 @@ function Ih(t) {
10261
10277
  const x = $s(n, r, i);
10262
10278
  f(a.current.has(x) ? "idle" : "loading");
10263
10279
  const S = globalThis.setTimeout(() => {
10264
- y(i).then((g) => {
10280
+ m(i).then((g) => {
10265
10281
  k && (u(g.options ?? []), h(g.applyUrl), f("idle"));
10266
10282
  }).catch(() => {
10267
10283
  k && f("error");
@@ -10270,7 +10286,7 @@ function Ih(t) {
10270
10286
  return () => {
10271
10287
  k = !1, globalThis.clearTimeout(S);
10272
10288
  };
10273
- }, [n, y, e.theme.debounceMs, i, r]), { applyTarget: p, options: d, search: i, setSearch: l, status: b };
10289
+ }, [n, m, e.theme.debounceMs, i, r]), { applyTarget: p, options: d, search: i, setSearch: l, status: b };
10274
10290
  }
10275
10291
  const Rh = 3;
10276
10292
  function Eh(t, e) {
@@ -10296,7 +10312,7 @@ function Ah({ filter: t, draft: e, onToggle: n, onTarget: r }) {
10296
10312
  });
10297
10313
  return () => globalThis.cancelAnimationFrame(x);
10298
10314
  }, [p]);
10299
- const f = e ?? new Set(l.filter((x) => x.selected).map((x) => x.value)), y = Math.max(0, ...l.map(({ count: x }) => x ?? 0)), k = l.length >= Lh || d.trim() !== "";
10315
+ const f = e ?? new Set(l.filter((x) => x.selected).map((x) => x.value)), m = Math.max(0, ...l.map(({ count: x }) => x ?? 0)), k = l.length >= Lh || d.trim() !== "";
10300
10316
  return /* @__PURE__ */ v("div", { className: "lens-filter-menu-pane", ref: b, children: [
10301
10317
  /* @__PURE__ */ c("p", { className: "lens-filter-menu-pane-title", children: t.label }),
10302
10318
  k && /* @__PURE__ */ c(
@@ -10311,7 +10327,7 @@ function Ah({ filter: t, draft: e, onToggle: n, onTarget: r }) {
10311
10327
  }
10312
10328
  ),
10313
10329
  /* @__PURE__ */ c("div", { className: "lens-facet-options", children: p === "loading" ? /* @__PURE__ */ c("div", { className: "lens-facet-state", children: a("filter.facet.loading", "Loading options…") }) : p === "error" ? /* @__PURE__ */ c("div", { className: "lens-facet-state lens-facet-error", children: a("filter.facet.error", "Options could not be loaded") }) : l.length === 0 ? /* @__PURE__ */ c("div", { className: "lens-facet-state", children: a("filter.facet.empty", "No options") }) : l.map((x) => {
10314
- const S = f.has(x.value), g = y > 0 && (x.count ?? 0) > 0 ? Math.max(Rh, Math.floor((x.count ?? 0) * 100 / y)) : 0;
10330
+ const S = f.has(x.value), g = m > 0 && (x.count ?? 0) > 0 ? Math.max(Rh, Math.floor((x.count ?? 0) * 100 / m)) : 0;
10315
10331
  return /* @__PURE__ */ v("label", { className: "lens-facet-option", children: [
10316
10332
  g > 0 && /* @__PURE__ */ c("span", { "aria-hidden": "true", className: "lens-facet-option-bar", style: { width: `${g}%` } }),
10317
10333
  /* @__PURE__ */ c(
@@ -10330,7 +10346,7 @@ function Ah({ filter: t, draft: e, onToggle: n, onTarget: r }) {
10330
10346
  }
10331
10347
  function Mh({ filters: t }) {
10332
10348
  var Fe, De, Ue, N, W, ae, we, ge;
10333
- const e = Pe(), { applyURL: n } = Yt(), r = gn(), { close: a, container: s, menu: i, menuPlacementProps: l, open: d, overlay: u, setOpen: p, trigger: h } = Ka("start"), [b, f] = q(((Fe = t[0]) == null ? void 0 : Fe.id) ?? ""), [y, k] = q(/* @__PURE__ */ new Map()), [x, S] = q(/* @__PURE__ */ new Map()), [g, _] = q(/* @__PURE__ */ new Set()), T = z((G, se) => {
10349
+ const e = Pe(), { applyURL: n } = Yt(), r = gn(), { close: a, container: s, menu: i, menuPlacementProps: l, open: d, overlay: u, setOpen: p, trigger: h } = Ha("start"), [b, f] = q(((Fe = t[0]) == null ? void 0 : Fe.id) ?? ""), [m, k] = q(/* @__PURE__ */ new Map()), [x, S] = q(/* @__PURE__ */ new Map()), [g, _] = q(/* @__PURE__ */ new Set()), T = z((G, se) => {
10334
10350
  S((pe) => pe.get(G) === se ? pe : new Map(pe).set(G, se));
10335
10351
  }, []), M = t.find((G) => G.id === b) ?? t[0], A = t.reduce((G, se) => {
10336
10352
  var pe, Ae;
@@ -10344,9 +10360,9 @@ function Mh({ filters: t }) {
10344
10360
  }, C = (G, se, pe) => {
10345
10361
  const Ae = new Set(pe);
10346
10362
  Ae.has(se) ? Ae.delete(se) : Ae.add(se), L(G, Ae);
10347
- }, R = new Map([...y].filter(([G]) => g.has(G))), F = [...R.values()].reduce((G, se) => G + se.size, 0), B = [...R.keys()].map((G) => x.get(G)).find(Boolean) ?? "", I = () => {
10363
+ }, R = new Map([...m].filter(([G]) => g.has(G))), F = [...R.values()].reduce((G, se) => G + se.size, 0), B = [...R.keys()].map((G) => x.get(G)).find(Boolean) ?? "", I = () => {
10348
10364
  R.size === 0 || !B || (a(), n(Eh(B, R)));
10349
- }, H = t.length === 1, ue = H ? ((De = t[0]) == null ? void 0 : De.label) ?? "" : e("filter.facet.filters", "Filters"), te = ((Ue = M == null ? void 0 : M.facet) == null ? void 0 : Ue.dimension) ?? "", Ee = g.has(te) ? (((N = y.get(te)) == null ? void 0 : N.size) ?? 0) > 0 : (((ae = (W = M == null ? void 0 : M.facet) == null ? void 0 : W.selections) == null ? void 0 : ae.length) ?? 0) > 0;
10365
+ }, H = t.length === 1, ue = H ? ((De = t[0]) == null ? void 0 : De.label) ?? "" : e("filter.facet.filters", "Filters"), te = ((Ue = M == null ? void 0 : M.facet) == null ? void 0 : Ue.dimension) ?? "", Ee = g.has(te) ? (((N = m.get(te)) == null ? void 0 : N.size) ?? 0) > 0 : (((ae = (W = M == null ? void 0 : M.facet) == null ? void 0 : W.selections) == null ? void 0 : ae.length) ?? 0) > 0;
10350
10366
  return /* @__PURE__ */ v("div", { className: "lens-filter-menu", ref: s, children: [
10351
10367
  /* @__PURE__ */ v(
10352
10368
  "button",
@@ -10380,7 +10396,7 @@ function Mh({ filters: t }) {
10380
10396
  /* @__PURE__ */ v("div", { className: "lens-filter-menu-body", children: [
10381
10397
  !H && /* @__PURE__ */ c("div", { "aria-label": ue, className: "lens-filter-menu-rail", role: "tablist", children: t.map((G) => {
10382
10398
  var pe, Ae, U, J, me, Ce;
10383
- const se = y.has(((pe = G.facet) == null ? void 0 : pe.dimension) ?? "") && g.has(((Ae = G.facet) == null ? void 0 : Ae.dimension) ?? "") ? ((J = y.get(((U = G.facet) == null ? void 0 : U.dimension) ?? "")) == null ? void 0 : J.size) ?? 0 : ((Ce = (me = G.facet) == null ? void 0 : me.selections) == null ? void 0 : Ce.length) ?? 0;
10399
+ const se = m.has(((pe = G.facet) == null ? void 0 : pe.dimension) ?? "") && g.has(((Ae = G.facet) == null ? void 0 : Ae.dimension) ?? "") ? ((J = m.get(((U = G.facet) == null ? void 0 : U.dimension) ?? "")) == null ? void 0 : J.size) ?? 0 : ((Ce = (me = G.facet) == null ? void 0 : me.selections) == null ? void 0 : Ce.length) ?? 0;
10384
10400
  return /* @__PURE__ */ v(
10385
10401
  "button",
10386
10402
  {
@@ -10400,7 +10416,7 @@ function Mh({ filters: t }) {
10400
10416
  /* @__PURE__ */ c("div", { className: "lens-filter-menu-pane-host", children: M && /* @__PURE__ */ c(
10401
10417
  Ah,
10402
10418
  {
10403
- draft: g.has(((we = M.facet) == null ? void 0 : we.dimension) ?? "") ? y.get(((ge = M.facet) == null ? void 0 : ge.dimension) ?? "") : void 0,
10419
+ draft: g.has(((we = M.facet) == null ? void 0 : we.dimension) ?? "") ? m.get(((ge = M.facet) == null ? void 0 : ge.dimension) ?? "") : void 0,
10404
10420
  filter: M,
10405
10421
  onTarget: T,
10406
10422
  onToggle: C
@@ -10447,9 +10463,9 @@ function Ti({ filters: t, today: e }) {
10447
10463
  ] });
10448
10464
  }
10449
10465
  function Fh({ subtitle: t, today: e }) {
10450
- var y, k, x, S;
10466
+ var m, k, x, S;
10451
10467
  const { filters: n, applyURL: r } = Yt(), { document: a } = ft(), s = Pe(), i = n.filter((g) => !g.placement);
10452
- if (i.length === 0 && (((y = a.activeFilters) == null ? void 0 : y.length) ?? 0) === 0 && !t) return null;
10468
+ if (i.length === 0 && (((m = a.activeFilters) == null ? void 0 : m.length) ?? 0) === 0 && !t) return null;
10453
10469
  const l = (g) => (_) => {
10454
10470
  "metaKey" in _ && (_.metaKey || _.ctrlKey || _.shiftKey || _.altKey) || (_.preventDefault(), r(g));
10455
10471
  }, d = i.filter((g) => g.kind === "facet" && g.facet), u = (x = (k = d.find(
@@ -10498,24 +10514,24 @@ function Fh({ subtitle: t, today: e }) {
10498
10514
  ] })
10499
10515
  ] });
10500
10516
  }
10501
- const Dh = _t(() => import("./PrintReport-BiUdo8XG.js").then(({ PrintReport: t }) => ({ default: t })));
10517
+ const Dh = _t(() => import("./PrintReport-Dr-6xXVr.js").then(({ PrintReport: t }) => ({ default: t })));
10502
10518
  function zh(t) {
10503
10519
  return Number.isFinite(t) ? Math.min(12, Math.max(1, Math.round(t))) : 12;
10504
10520
  }
10505
- function Ia(t) {
10521
+ function Ra(t) {
10506
10522
  return { "--lens-panel-span": zh(t) };
10507
10523
  }
10508
- function Qa(t) {
10524
+ function Ya(t) {
10509
10525
  return t.groups ?? [];
10510
10526
  }
10511
- function jr(t, e) {
10512
- return Qa(t)[e];
10527
+ function Fr(t, e) {
10528
+ return Ya(t)[e];
10513
10529
  }
10514
10530
  function $h(t, e) {
10515
10531
  var r;
10516
10532
  const n = [];
10517
10533
  for (const a of t) {
10518
- const s = jr(a, e), i = n[n.length - 1];
10534
+ const s = Fr(a, e), i = n[n.length - 1];
10519
10535
  if (s && ((r = i == null ? void 0 : i.group) == null ? void 0 : r.id) === s.id) {
10520
10536
  i.items.push(a);
10521
10537
  continue;
@@ -10529,7 +10545,7 @@ function Uh(t) {
10529
10545
  const e = /* @__PURE__ */ new Map();
10530
10546
  for (const r of t)
10531
10547
  for (const a of r.panels)
10532
- for (const s of Qa(a))
10548
+ for (const s of Ya(a))
10533
10549
  s.kind === "metrics" && e.set(s.id, (e.get(s.id) ?? 0) + 1);
10534
10550
  const n = Math.max(1, ...e.values());
10535
10551
  return Math.min(Oh, n);
@@ -10553,8 +10569,8 @@ function Ii({ panelId: t }) {
10553
10569
  return /* @__PURE__ */ c("div", { className: "lens-panel-state", role: "alert", children: e("panel.missing", "Panel “{id}” is missing.", { id: t }) });
10554
10570
  }
10555
10571
  function Ri({ group: t, children: e }) {
10556
- const { isRefreshing: n } = qa();
10557
- return /* @__PURE__ */ c("div", { className: "lens-grid-item", style: Ia(t.span), children: /* @__PURE__ */ v(
10572
+ const { isRefreshing: n } = Ka();
10573
+ return /* @__PURE__ */ c("div", { className: "lens-grid-item", style: Ra(t.span), children: /* @__PURE__ */ v(
10558
10574
  "section",
10559
10575
  {
10560
10576
  "aria-label": t.label || void 0,
@@ -10562,7 +10578,7 @@ function Ri({ group: t, children: e }) {
10562
10578
  children: [
10563
10579
  (t.label || t.status) && /* @__PURE__ */ v("header", { className: "lens-panel-header lens-panel-group-header", children: [
10564
10580
  t.label && /* @__PURE__ */ c("h3", { className: "lens-panel-title", children: t.label }),
10565
- t.status && /* @__PURE__ */ c(qr, { status: t.status })
10581
+ t.status && /* @__PURE__ */ c(Kr, { status: t.status })
10566
10582
  ] }),
10567
10583
  t.caption && /* @__PURE__ */ c("p", { className: "lens-panel-caption", "data-stale": n || void 0, children: t.caption }),
10568
10584
  e
@@ -10572,7 +10588,7 @@ function Ri({ group: t, children: e }) {
10572
10588
  }
10573
10589
  function Zh({ item: t, panels: e, registry: n }) {
10574
10590
  const r = e.get(t.panelId);
10575
- return r ? /* @__PURE__ */ c("div", { className: "lens-grid-item", style: Ia(t.span), children: /* @__PURE__ */ c(Pi, { panel: r, registry: n }) }) : /* @__PURE__ */ c("div", { className: "lens-panel lens-panel-unsupported lens-grid-item", style: Ia(t.span), children: /* @__PURE__ */ c(Ii, { panelId: t.panelId }) });
10591
+ return r ? /* @__PURE__ */ c("div", { className: "lens-grid-item", style: Ra(t.span), children: /* @__PURE__ */ c(Pi, { panel: r, registry: n }) }) : /* @__PURE__ */ c("div", { className: "lens-panel lens-panel-unsupported lens-grid-item", style: Ra(t.span), children: /* @__PURE__ */ c(Ii, { panelId: t.panelId }) });
10576
10592
  }
10577
10593
  function Ei({ items: t, depth: e, panels: n, registry: r, filterToday: a }) {
10578
10594
  return /* @__PURE__ */ c(ve, { children: $h(t, e).map((s, i) => {
@@ -10609,19 +10625,19 @@ function Wh(t, e, n, r) {
10609
10625
  if (!t.trim()) return !1;
10610
10626
  const a = e.filter((d) => {
10611
10627
  var u;
10612
- return (((u = jr(d, n)) == null ? void 0 : u.tab) ?? "") === t;
10628
+ return (((u = Fr(d, n)) == null ? void 0 : u.tab) ?? "") === t;
10613
10629
  });
10614
10630
  if (a.length !== 1) return !1;
10615
10631
  const s = a[0];
10616
- if (s && Qa(s).length > n + 1) return !1;
10632
+ if (s && Ya(s).length > n + 1) return !1;
10617
10633
  const i = s ? (l = r.get(s.panelId)) == null ? void 0 : l.title : void 0;
10618
10634
  return !!i && Us(i) === Us(t);
10619
10635
  }
10620
10636
  function qh({ group: t, items: e, depth: n, panels: r, registry: a, filterToday: s }) {
10621
- const i = Pe(), { filters: l } = Yt(), d = Wr(), u = Be(Li), p = gn(), h = [...new Set(e.map((C) => {
10637
+ const i = Pe(), { filters: l } = Yt(), d = qr(), u = Be(Li), p = gn(), h = [...new Set(e.map((C) => {
10622
10638
  var R;
10623
- return ((R = jr(C, n)) == null ? void 0 : R.tab) ?? "";
10624
- }))], [b, f] = q(() => (u == null ? void 0 : u.get(t.id)) ?? h[0] ?? ""), y = h.includes(b) ? b : h[0] ?? "", k = O([]), [x, S] = q(y), g = h.includes(x) ? x : y, _ = (C) => {
10639
+ return ((R = Fr(C, n)) == null ? void 0 : R.tab) ?? "";
10640
+ }))], [b, f] = q(() => (u == null ? void 0 : u.get(t.id)) ?? h[0] ?? ""), m = h.includes(b) ? b : h[0] ?? "", k = O([]), [x, S] = q(m), g = h.includes(x) ? x : m, _ = (C) => {
10625
10641
  u == null || u.set(t.id, C), f(C), S(C);
10626
10642
  }, T = (C, R) => {
10627
10643
  var I;
@@ -10642,7 +10658,7 @@ function qh({ group: t, items: e, depth: n, panels: r, registry: a, filterToday:
10642
10658
  "button",
10643
10659
  {
10644
10660
  "aria-controls": A(R),
10645
- "aria-selected": C === y,
10661
+ "aria-selected": C === m,
10646
10662
  className: "lens-tabstrip-tab",
10647
10663
  "data-testid": `lens-tabs-${t.id}-tab-${R}`,
10648
10664
  id: M(R),
@@ -10666,19 +10682,19 @@ function qh({ group: t, items: e, depth: n, panels: r, registry: a, filterToday:
10666
10682
  {
10667
10683
  "aria-labelledby": M(R),
10668
10684
  className: "lens-panel-grid lens-tab-panel",
10669
- hidden: C !== y,
10685
+ hidden: C !== m,
10670
10686
  id: A(R),
10671
10687
  role: "tabpanel",
10672
10688
  tabIndex: 0,
10673
- children: (d.active || C === y) && /* @__PURE__ */ v(ve, { children: [
10689
+ children: (d.active || C === m) && /* @__PURE__ */ v(ve, { children: [
10674
10690
  L(C).length > 0 && /* @__PURE__ */ c("div", { className: "lens-tab-filter-bar", role: "group", children: /* @__PURE__ */ c(Ti, { filters: L(C), today: s }) }),
10675
- /* @__PURE__ */ c(Ga.Provider, { value: Wh(C, e, n, r) ? Vh : void 0, children: /* @__PURE__ */ c(
10691
+ /* @__PURE__ */ c(Ja.Provider, { value: Wh(C, e, n, r) ? Vh : void 0, children: /* @__PURE__ */ c(
10676
10692
  Ei,
10677
10693
  {
10678
10694
  depth: n + 1,
10679
10695
  items: e.filter((F) => {
10680
10696
  var B;
10681
- return (((B = jr(F, n)) == null ? void 0 : B.tab) ?? "") === C;
10697
+ return (((B = Fr(F, n)) == null ? void 0 : B.tab) ?? "") === C;
10682
10698
  }),
10683
10699
  panels: r,
10684
10700
  registry: a,
@@ -10701,7 +10717,7 @@ function Kh(t, e) {
10701
10717
  }
10702
10718
  const Hh = 60 * 6e4;
10703
10719
  function Gh() {
10704
- const { document: t } = ft(), { isRefreshing: e } = qa(), n = Xt(), r = Pe(), [, a] = q(0);
10720
+ const { document: t } = ft(), { isRefreshing: e } = Ka(), n = Xt(), r = Pe(), [, a] = q(0);
10705
10721
  if (V(() => {
10706
10722
  if (zt()) return;
10707
10723
  const d = setInterval(() => a((u) => u + 1), 6e4);
@@ -10724,7 +10740,7 @@ function Jh() {
10724
10740
  "data-stale": a.stale || void 0,
10725
10741
  title: a.absolute,
10726
10742
  children: [
10727
- /* @__PURE__ */ c(Oa, {}),
10743
+ /* @__PURE__ */ c(Ua, {}),
10728
10744
  /* @__PURE__ */ c("span", { children: a.label })
10729
10745
  ]
10730
10746
  }
@@ -10744,7 +10760,7 @@ function Jh() {
10744
10760
  title: a ? `${a.absolute} — ${i}` : i,
10745
10761
  type: "button",
10746
10762
  children: [
10747
- t ? /* @__PURE__ */ c($a, { className: "lens-icon-spin" }) : /* @__PURE__ */ c(vo, {}),
10763
+ t ? /* @__PURE__ */ c(Oa, { className: "lens-icon-spin" }) : /* @__PURE__ */ c(vo, {}),
10748
10764
  /* @__PURE__ */ c("span", { children: a ? a.label : r("dashboard.recompute", "Recompute") })
10749
10765
  ]
10750
10766
  }
@@ -10753,7 +10769,7 @@ function Jh() {
10753
10769
  ] });
10754
10770
  }
10755
10771
  function Qh() {
10756
- const { error: t, refresh: e, dismissError: n } = qa(), r = Pe();
10772
+ const { error: t, refresh: e, dismissError: n } = Ka(), r = Pe();
10757
10773
  return t ? /* @__PURE__ */ v("div", { className: "lens-document-refetch-error", role: "alert", children: [
10758
10774
  /* @__PURE__ */ c("span", { children: r("document.refetchFailed", "Unable to refresh the dashboard. The previous data is still shown.") }),
10759
10775
  /* @__PURE__ */ v("div", { className: "lens-document-refetch-error-actions", children: [
@@ -10773,17 +10789,17 @@ function Qh() {
10773
10789
  ] }) : null;
10774
10790
  }
10775
10791
  function Yh() {
10776
- const e = Wr().run, n = typeof window < "u" && new URL(window.location.href).searchParams.get("lens-print-preview") === "1", r = O(!1);
10792
+ const e = qr().run, n = typeof window < "u" && new URL(window.location.href).searchParams.get("lens-print-preview") === "1", r = O(!1);
10777
10793
  V(() => {
10778
10794
  !n || r.current || (r.current = !0, e({ preview: !0 }));
10779
10795
  }, [n, e]);
10780
10796
  }
10781
10797
  function Xh({ registry: t, filterToday: e }) {
10782
10798
  var S, g;
10783
- const { document: n, canRecompute: r } = ft(), a = Pe(), s = Xt(), i = ai(), l = Wr(), d = new Map(n.panels.map((_) => [_.id, _])), u = O(!zt() && s.depth === 0), p = O(/* @__PURE__ */ new Map()).current;
10799
+ const { document: n, canRecompute: r } = ft(), a = Pe(), s = Xt(), i = ai(), l = qr(), d = new Map(n.panels.map((_) => [_.id, _])), u = O(!zt() && s.depth === 0), p = O(/* @__PURE__ */ new Map()).current;
10784
10800
  if (Yh(), !n.layout.rows.length || !n.panels.length)
10785
10801
  return /* @__PURE__ */ c("div", { className: "lens-placeholder-state", children: a("dashboard.empty", "The document contains no panels.") });
10786
- const h = n.header, b = s.depth > 0 && !!((S = i == null ? void 0 : i.title) != null && S.trim()), f = b ? "" : (h == null ? void 0 : h.title) || n.meta.title, y = !!f || !!n.endpoints.export || l.available || (((g = n.filters) == null ? void 0 : g.length) ?? 0) > 0 || r, k = Uh(n.layout.rows), x = (n.filters ?? []).some((_) => _.kind === "compare" && _.compare !== void 0 && _.compare.value.mode !== "off");
10802
+ const h = n.header, b = s.depth > 0 && !!((S = i == null ? void 0 : i.title) != null && S.trim()), f = b ? "" : (h == null ? void 0 : h.title) || n.meta.title, m = !!f || !!n.endpoints.export || l.available || (((g = n.filters) == null ? void 0 : g.length) ?? 0) > 0 || r, k = Uh(n.layout.rows), x = (n.filters ?? []).some((_) => _.kind === "compare" && _.compare !== void 0 && _.compare.value.mode !== "off");
10787
10803
  return /* @__PURE__ */ c(Li.Provider, { value: p, children: /* @__PURE__ */ v(
10788
10804
  "main",
10789
10805
  {
@@ -10791,7 +10807,7 @@ function Xh({ registry: t, filterToday: e }) {
10791
10807
  className: `lens-dashboard${x ? " lens-dashboard-comparing" : ""}`,
10792
10808
  style: { "--lens-metric-columns": k },
10793
10809
  children: [
10794
- y && /* @__PURE__ */ v("header", { className: "lens-dashboard-header", children: [
10810
+ m && /* @__PURE__ */ v("header", { className: "lens-dashboard-header", children: [
10795
10811
  /* @__PURE__ */ v("div", { className: "lens-dashboard-headline", children: [
10796
10812
  f ? /* @__PURE__ */ c("h1", { className: "lens-dashboard-title", children: f }) : /* @__PURE__ */ c("span", {}),
10797
10813
  /* @__PURE__ */ v("div", { className: "lens-dashboard-actions", children: [
@@ -10802,7 +10818,7 @@ function Xh({ registry: t, filterToday: e }) {
10802
10818
  ] }),
10803
10819
  /* @__PURE__ */ c(Fh, { subtitle: b || h == null ? void 0 : h.subtitle, today: e })
10804
10820
  ] }),
10805
- y && /* @__PURE__ */ c(Qh, {}),
10821
+ m && /* @__PURE__ */ c(Qh, {}),
10806
10822
  /* @__PURE__ */ c(Ci.Provider, { value: k, children: /* @__PURE__ */ c("div", { className: "lens-dashboard-rows", children: n.layout.rows.map((_, T) => /* @__PURE__ */ v(
10807
10823
  "section",
10808
10824
  {
@@ -10827,7 +10843,7 @@ function Xh({ registry: t, filterToday: e }) {
10827
10843
  }
10828
10844
  ) });
10829
10845
  }
10830
- const em = za(ll);
10846
+ const em = $a(ll);
10831
10847
  function tm({
10832
10848
  src: t,
10833
10849
  locale: e = "en",
@@ -10852,7 +10868,7 @@ class Ai extends HTMLElement {
10852
10868
  if (n)
10853
10869
  try {
10854
10870
  const r = Uint8Array.from(globalThis.atob(n), (a) => a.charCodeAt(0));
10855
- return za(JSON.parse(new TextDecoder("utf-8", { fatal: !0 }).decode(r)));
10871
+ return $a(JSON.parse(new TextDecoder("utf-8", { fatal: !0 }).decode(r)));
10856
10872
  } catch (r) {
10857
10873
  console.error("[lens] embedded initial document is invalid", r);
10858
10874
  return;
@@ -10886,37 +10902,37 @@ class Ai extends HTMLElement {
10886
10902
  }
10887
10903
  }
10888
10904
  Ge(Ai, "observedAttributes", ["src", "locale", "theme", "csrf", "initial-document"]);
10889
- function zm() {
10905
+ function $m() {
10890
10906
  customElements.get(Zs) || customElements.define(Zs, Ai);
10891
10907
  }
10892
10908
  export {
10893
10909
  wn as $,
10894
- Yt as A,
10895
- vt as B,
10896
- Ir as C,
10897
- Sm as D,
10898
- Tm as E,
10899
- Fm as F,
10900
- Em as G,
10910
+ ii as A,
10911
+ Yt as B,
10912
+ vt as C,
10913
+ Ir as D,
10914
+ Sm as E,
10915
+ Tm as F,
10916
+ Dm as G,
10901
10917
  km as H,
10902
10918
  np as I,
10903
10919
  ap as J,
10904
- jm as K,
10920
+ Fm as K,
10905
10921
  rt as L,
10906
10922
  Pm as M,
10907
- Am as N,
10923
+ Mm as N,
10908
10924
  Rm as O,
10909
10925
  yf as P,
10910
10926
  dm as Q,
10911
10927
  gm as R,
10912
10928
  ym as S,
10913
10929
  Lh as T,
10914
- Or as U,
10930
+ Ur as U,
10915
10931
  bo as V,
10916
10932
  pm as W,
10917
10933
  Zf as X,
10918
10934
  gf as Y,
10919
- ma as Z,
10935
+ ya as Z,
10920
10936
  zp as _,
10921
10937
  ft as a,
10922
10938
  It as a0,
@@ -10924,60 +10940,61 @@ export {
10924
10940
  ci as a2,
10925
10941
  Yp as a3,
10926
10942
  Ps as a4,
10927
- gi as a5,
10928
- Im as a6,
10929
- mm as a7,
10930
- hm as a8,
10931
- fm as a9,
10932
- um as aa,
10933
- cm as ab,
10934
- lm as ac,
10935
- Cm as ad,
10936
- xm as ae,
10937
- Qt as af,
10938
- wm as ag,
10939
- Vp as ah,
10940
- bm as ai,
10941
- wt as aj,
10942
- vm as ak,
10943
- di as al,
10944
- Lm as am,
10945
- ms as an,
10946
- zt as ao,
10947
- Dm as ap,
10948
- Dp as aq,
10949
- Jp as ar,
10950
- ut as as,
10951
- bc as at,
10952
- wc as au,
10953
- Mc as av,
10954
- tm as aw,
10955
- Ai as ax,
10956
- za as ay,
10957
- zm as az,
10958
- Mm as b,
10959
- Wr as c,
10943
+ jr as a5,
10944
+ gi as a6,
10945
+ Im as a7,
10946
+ mm as a8,
10947
+ hm as a9,
10948
+ $m as aA,
10949
+ fm as aa,
10950
+ um as ab,
10951
+ cm as ac,
10952
+ lm as ad,
10953
+ Cm as ae,
10954
+ xm as af,
10955
+ Qt as ag,
10956
+ wm as ah,
10957
+ Vp as ai,
10958
+ bm as aj,
10959
+ wt as ak,
10960
+ vm as al,
10961
+ di as am,
10962
+ Lm as an,
10963
+ ys as ao,
10964
+ zt as ap,
10965
+ zm as aq,
10966
+ Dp as ar,
10967
+ Jp as as,
10968
+ ut as at,
10969
+ bc as au,
10970
+ wc as av,
10971
+ Mc as aw,
10972
+ tm as ax,
10973
+ Ai as ay,
10974
+ $a as az,
10975
+ jm as b,
10976
+ qr as c,
10960
10977
  rp as d,
10961
10978
  ep as e,
10962
10979
  Jn as f,
10963
- tp as g,
10964
- Cs as h,
10965
- hr as i,
10966
- Za as j,
10967
- qn as k,
10968
- Ot as l,
10969
- Er as m,
10970
- gr as n,
10971
- ni as o,
10980
+ Am as g,
10981
+ La as h,
10982
+ Em as i,
10983
+ tp as j,
10984
+ hr as k,
10985
+ Ba as l,
10986
+ qn as m,
10987
+ Ot as n,
10988
+ Er as o,
10972
10989
  Po as p,
10973
- Lo as q,
10990
+ gr as q,
10974
10991
  Uf as r,
10975
- Ca as s,
10976
- wp as t,
10992
+ Lo as s,
10993
+ ni as t,
10977
10994
  Pe as u,
10978
10995
  bn as v,
10979
- ta as w,
10980
- Nm as x,
10981
- _m as y,
10982
- ii as z
10996
+ na as w,
10997
+ wp as x,
10998
+ Nm as y,
10999
+ _m as z
10983
11000
  };