react-semaphor 0.1.599 → 0.1.601

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 (62) hide show
  1. package/dist/analytics-protocol/index.js +106 -105
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +48 -45
  5. package/dist/chunks/{assistant-chat-f3XuzrAm.js → assistant-chat-BE0XXzZP.js} +12 -12
  6. package/dist/chunks/{bookmark-impact-B5hyttm2.js → bookmark-impact-DXDAN5AY.js} +3 -3
  7. package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
  8. package/dist/chunks/{card-filter-builder-DfLqD2RV.js → card-filter-builder-CE0-YVN5.js} +9 -9
  9. package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
  10. package/dist/chunks/{dashboard-briefing-launcher-RxYGtk-F.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
  11. package/dist/chunks/{dashboard-controls-DeaXrtLK.js → dashboard-controls-XO089DMg.js} +15 -15
  12. package/dist/chunks/{dashboard-json-DvxKpKd_.js → dashboard-json-CQRiydUv.js} +4 -4
  13. package/dist/chunks/{dashboard-CoI4aOUc.js → dashboard-mJKPFRbb.js} +1 -1
  14. package/dist/chunks/{dates-BhtO28Sn.js → dates-B-Urp5OD.js} +8 -8
  15. package/dist/chunks/{edit-dashboard-visual-C4f5hONA.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
  16. package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
  17. package/dist/chunks/{filter-reach-copy-Cl5Od38Q.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
  18. package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
  19. package/dist/chunks/{index-EKpTtkYF.js → index-DoPApnxg.js} +386 -360
  20. package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
  21. package/dist/chunks/{matrix-analytical-definition-BuUSBDm7.js → matrix-analytical-definition-myf3D3Qx.js} +383 -362
  22. package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
  23. package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
  24. package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
  25. package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
  26. package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
  27. package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
  28. package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
  29. package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
  30. package/dist/chunks/{report-preferences-dialog-CZaYsQLK.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
  31. package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
  32. package/dist/chunks/{resolve-dashboard-input-context-vPtbuDDz.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
  33. package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-C6X5nP4C.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
  35. package/dist/chunks/{selection-filter-compiler-Ce4BpjRX.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-BUiaKY6O.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
  37. package/dist/chunks/{shelf-drop-preview-context-CwxWJjBv.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
  38. package/dist/chunks/{stored-dashboard-Bmct-STp.js → stored-dashboard-NtOuEX6a.js} +111 -111
  39. package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
  40. package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
  41. package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
  42. package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
  43. package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
  44. package/dist/chunks/{variable-draft-Bi-zUa_a.js → variable-draft-Cy03qnEi.js} +4 -4
  45. package/dist/dashboard/index.js +2 -2
  46. package/dist/dashboard-authoring/index.js +80 -75
  47. package/dist/format-utils/index.js +238 -237
  48. package/dist/index.js +18 -18
  49. package/dist/report-runtime-context/index.js +1 -1
  50. package/dist/surfboard/index.js +2 -2
  51. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  52. package/dist/types/briefings/attachments.d.ts +45 -4
  53. package/dist/types/briefings/index.d.ts +1 -1
  54. package/dist/types/index.js +5 -5
  55. package/dist/types/lib/export-utils.d.ts +72 -0
  56. package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
  57. package/dist/types/shared/analytics-protocol/catalog-source-address.d.ts +16 -0
  58. package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
  59. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  60. package/package.json +1 -1
  61. package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
  62. package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
@@ -2,21 +2,21 @@ var wb = Object.defineProperty;
2
2
  var _b = (e, t, n) => t in e ? wb(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var fe = (e, t, n) => _b(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { t as Yu, F as Cb, E as kb, z as Sb, k as Fo, e as xo, S as fn, x as Tb, d as Uu, A as Db } from "./analytics-base-schemas-DevrgqQb.js";
5
- import { a7 as ye, b5 as la, U as Xr, aB as _r, aa as _n, ap as zu, at as Fb, r as dt, l as Eo, k as Wu, _ as xb, o as pt, a4 as ke, az as de, f as Eb, al as cs, ai as Zr, ak as Gu, C as ca, aI as Mb, b4 as Ab, M as Nb, b as Yt, b6 as $b, b7 as ic, y as Ob, x as Hu, b8 as Rb, c as Qu, j as Ju, b3 as Xu, aZ as da, aX as ht, a_ as Pb, b9 as Bb, aV as wi, v as jb, E as Lb, w as qb, b0 as Vb, t as ac, ay as Kb, W as Yb, b1 as Qe, aO as Ub, aR as zb, ba as eo, aQ as Wb, aF as Zu, ah as sc, D as Gb, aN as Hb } from "./validators-D2Hm57lJ.js";
6
- import { an as Qb, P as Mo, M as Jb, Q as Ao, B as Xb, l as qt, E as No, n as Vt, o as Zb, q as ef } from "./matrix-operation-contract-DdK0J_KU.js";
5
+ import { a6 as ye, b5 as la, T as Xr, aA as _r, a9 as _n, ao as zu, as as Fb, k as dt, r as Eo, aE as Gu, Z as xb, l as pt, a3 as ke, ay as de, f as Eb, ak as cs, ah as Zr, aj as Wu, C as ca, aI as Mb, b4 as Ab, K as Nb, b as Yt, b6 as $b, b7 as ic, x as Ob, w as Hu, b8 as Rb, c as Qu, j as Ju, b3 as Xu, aZ as da, aX as ht, a_ as Pb, b9 as Bb, aV as wi, u as jb, B as Lb, v as qb, b0 as Vb, q as ac, ax as Kb, V as Yb, b1 as Qe, aO as Ub, aR as zb, ba as eo, aQ as Gb, aF as Zu, ag as sc, D as Wb, aN as Hb } from "./validators-C7DFk3QK.js";
6
+ import { an as Qb, P as Mo, M as Jb, Q as Ao, B as Xb, l as qt, E as No, n as Vt, o as Zb, q as ef } from "./matrix-operation-contract-C1SuOHLZ.js";
7
7
  import { z as u } from "zod";
8
- import { ad as ev, i as ds, b8 as tf, b9 as us, ba as tv, bb as ua, b as fs, c as nv, aS as rv, aN as Cr, aQ as $o, aT as ov, ap as iv, a5 as av, Z as sv, ay as lv, at as cv, aA as Cn, aq as dv, ax as nf, ac as at, ao as ms, aa as uv, aB as fv, aD as rf, aO as of, d as mv, aU as pv, af as hv, a6 as gv, am as ps, ae as yv, aF as bv, aP as vv, ab as Iv, aG as wv, n as _v, j as Cv, X as kv, bc as Sv, aR as Tv, r as hs, D as Dv } from "./pivot-result-contract-expectations-Dk7WFR_u.js";
8
+ import { ad as ev, i as ds, b8 as tf, b9 as us, ba as tv, bb as ua, b as fs, c as nv, aS as rv, aM as Cr, aQ as $o, aT as ov, ap as iv, a5 as av, Z as sv, ay as lv, at as cv, aA as Cn, aq as dv, ax as nf, ac as at, ao as ms, aa as uv, aB as fv, aD as rf, aN as of, d as mv, aU as pv, af as hv, a6 as gv, am as ps, ae as yv, aF as bv, aO as vv, ab as Iv, aG as wv, n as _v, j as Cv, X as kv, bc as Sv, aR as Tv, r as hs, D as Dv } from "./pivot-result-contract-expectations-C1Dyx8du.js";
9
9
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as rt } from "../value-format-preferences/index.js";
10
10
  import { j as Fv, g as af, a as xv, C as Ev, S as Mv } from "./pickers-DkqmtnTL.js";
11
- import { a6 as gs, c as ys, r as bs, D as vs, P as kr, Q as Oo, au as sf, F as Ut, h as Av, d as Nv, aG as Qt, aL as $v, T as lf, ae as Ro, aJ as Ov, aI as Rv, aM as Is, aN as Pv, ag as Bv, aj as ws, am as jv, ai as cf, an as _s, a3 as Lv, H as Cs, C as Po, aD as df, aK as uf, aO as ff, k as mn, t as Ke, n as Bo, l as qv, o as Vv, w as Kv, aP as mf, ac as Yv, aH as ks, aQ as jo, J as Lo, R as Uv, M as zv, e as Wv, G as Gv, aA as pf, I as hf, K as Hv, a1 as Qv, aR as Ss } from "./bookmark-state-h1OLXVjE.js";
11
+ import { a6 as gs, c as ys, r as bs, D as vs, P as kr, Q as Oo, au as sf, F as Ut, h as Av, d as Nv, aG as Qt, aL as $v, T as lf, ae as Ro, aJ as Ov, aI as Rv, aM as Is, aN as Pv, ag as Bv, aj as ws, am as jv, ai as cf, an as _s, a3 as Lv, H as Cs, C as Po, aD as df, aK as uf, aO as ff, k as mn, t as Ke, n as Bo, l as qv, o as Vv, w as Kv, aP as mf, ac as Yv, aH as ks, aQ as jo, J as Lo, R as Uv, M as zv, e as Gv, G as Wv, aA as pf, I as hf, K as Hv, a1 as Qv, aR as Ss } from "./bookmark-state-BMyB3Tb6.js";
12
12
  import { e as lc } from "./schema-C9NPiIru.js";
13
13
  import { D as Jv, a as Xv } from "./index-CV_Kzou0.js";
14
14
  import "./context-BJoEFgNl.js";
15
- import { b as Zv } from "./report-runtime-context-CEGluufW.js";
16
- import { l as eI, Q as tI, O as nI, h as rI, f as gf, q as tr, A as cc, a as dc, T as uc, p as oI, o as iI, U as Ts, P as yf, n as to, s as qo, k as bf, d as aI, I as fa, G as sI, J as lI, S as cI, N as dI, F as uI, y as fI, x as mI, z as fc, v as pI, u as hI, t as vf, j as gI } from "./matrix-analytical-definition-BuUSBDm7.js";
17
- import { H as If, K as yI, i as bI, w as Ds, M as Fs, G as vI, v as wf, d as II, r as wI } from "./raw-temporal-value-BLvdaMng.js";
18
- import { r as Sr, h as _I, C as _f, D as xs, i as Es, a as kn, j as CI, e as kI } from "./metric-comparison-Bhz0V841.js";
19
- import { r as Tt, c as SI, P as TI } from "./pivot-result-identity-CzzrJpEm.js";
15
+ import { b as Zv } from "./report-runtime-context-BbedQdtc.js";
16
+ import { n as eI, T as tI, P as nI, j as rI, h as gf, t as tr, B as cc, a as dc, U as uc, q as oI, p as iI, V as Ts, Q as yf, o as to, s as qo, l as bf, e as aI, J as fa, H as sI, K as lI, S as cI, O as dI, G as uI, z as fI, y as mI, A as fc, w as pI, v as hI, u as vf, k as gI } from "./matrix-analytical-definition-myf3D3Qx.js";
17
+ import { H as If, K as yI, i as bI, w as Ds, M as Fs, G as vI, v as wf, d as II, r as wI } from "./raw-temporal-value-DN_l-Tss.js";
18
+ import { a as Sr, h as _I, C as _f, D as xs, i as Es, r as kn, j as CI, e as kI } from "./metric-comparison-Cm0G893W.js";
19
+ import { r as Tt, c as SI, P as TI } from "./pivot-result-identity-CBS-ssEp.js";
20
20
  const gO = (e) => Object.keys(e).length === 0;
21
21
  function xt(e) {
22
22
  return !!e && typeof e == "object";
@@ -300,7 +300,7 @@ function Yo(e) {
300
300
  return e === null || typeof e != "object" ? !0 : Object.isFrozen(e);
301
301
  }
302
302
  var NI = {};
303
- function Wt(e) {
303
+ function Gt(e) {
304
304
  const t = NI[e];
305
305
  return t || xe(0, e), t;
306
306
  }
@@ -320,7 +320,7 @@ function $I(e, t) {
320
320
  };
321
321
  }
322
322
  function hc(e, t) {
323
- t && (Wt("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
323
+ t && (Gt("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
324
324
  }
325
325
  function ha(e) {
326
326
  ga(e), e.drafts_.forEach(OI), e.drafts_ = null;
@@ -338,7 +338,7 @@ function OI(e) {
338
338
  function yc(e, t) {
339
339
  t.unfinalizedDrafts_ = t.drafts_.length;
340
340
  const n = t.drafts_[0];
341
- return e !== void 0 && e !== n ? (n[Re].modified_ && (ha(t), xe(4)), zt(e) && (e = ro(t, e), t.parent_ || oo(t, e)), t.patches_ && Wt("Patches").generateReplacementPatches_(
341
+ return e !== void 0 && e !== n ? (n[Re].modified_ && (ha(t), xe(4)), zt(e) && (e = ro(t, e), t.parent_ || oo(t, e)), t.patches_ && Gt("Patches").generateReplacementPatches_(
342
342
  n[Re].base_,
343
343
  e,
344
344
  t.patches_,
@@ -375,7 +375,7 @@ function ro(e, t, n) {
375
375
  s
376
376
  ),
377
377
  r
378
- ), oo(e, i, !1), n && e.patches_ && Wt("Patches").generatePatches_(
378
+ ), oo(e, i, !1), n && e.patches_ && Gt("Patches").generatePatches_(
379
379
  o,
380
380
  n,
381
381
  e.patches_,
@@ -561,7 +561,7 @@ var Ef = class {
561
561
  } else if (!t || typeof t != "object") {
562
562
  if (o = n(t), o === void 0 && (o = t), o === Sf && (o = void 0), this.autoFreeze_ && Ms(o, !0), r) {
563
563
  const i = [], a = [];
564
- Wt("Patches").generateReplacementPatches_(t, o, i, a), r(i, a);
564
+ Gt("Patches").generateReplacementPatches_(t, o, i, a), r(i, a);
565
565
  }
566
566
  return o;
567
567
  } else
@@ -624,7 +624,7 @@ var Ef = class {
624
624
  }
625
625
  }
626
626
  n > -1 && (t = t.slice(n + 1));
627
- const r = Wt("Patches").applyPatches_;
627
+ const r = Gt("Patches").applyPatches_;
628
628
  return pn(e) ? r(e, t) : this.produce(
629
629
  e,
630
630
  (o) => r(o, t)
@@ -632,7 +632,7 @@ var Ef = class {
632
632
  }
633
633
  };
634
634
  function ba(e, t) {
635
- const n = Tr(e) ? Wt("MapSet").proxyMap_(e, t) : Ko(e) ? Wt("MapSet").proxySet_(e, t) : RI(e, t);
635
+ const n = Tr(e) ? Gt("MapSet").proxyMap_(e, t) : Ko(e) ? Gt("MapSet").proxySet_(e, t) : RI(e, t);
636
636
  return (t ? t.scope_ : Ff()).drafts_.push(n), n;
637
637
  }
638
638
  function BI(e) {
@@ -780,7 +780,7 @@ function zI(e) {
780
780
  if (t.status === "invalid") throw t.error;
781
781
  return t.status === "ready" ? t.config : void 0;
782
782
  }
783
- function WI(e) {
783
+ function GI(e) {
784
784
  const t = [], n = (r, o, i) => {
785
785
  t.push({ field: r, place: o, ownerId: i }), r.derivedField && Object.values(r.derivedField.inputs).forEach((a) => n(a.field, "input", i));
786
786
  };
@@ -788,24 +788,24 @@ function WI(e) {
788
788
  r.kind === "aggregate" ? n(r.field, "measure", r.id) : Object.values(r.definition.inputs).forEach((o) => n(o.field, "input", r.id));
789
789
  }), t;
790
790
  }
791
- function GI(e) {
792
- return WI(e).map((t) => t.field);
791
+ function WI(e) {
792
+ return GI(e).map((t) => t.field);
793
793
  }
794
794
  function $f(e) {
795
795
  return _r([
796
796
  e.source,
797
- ...GI(e).map((t) => t.source ?? e.source)
797
+ ...WI(e).map((t) => t.source ?? e.source)
798
798
  ]);
799
799
  }
800
800
  function Ie(e) {
801
801
  return typeof e == "string" ? e.trim() : "";
802
802
  }
803
- function Gt(e) {
803
+ function Wt(e) {
804
804
  return Array.from(new Set(e.map(Ie).filter(Boolean)));
805
805
  }
806
806
  function zo(e) {
807
807
  var t;
808
- return (t = e.candidateDatasetNames) != null && t.length ? Gt(e.candidateDatasetNames) : Gt([e.datasetName]);
808
+ return (t = e.candidateDatasetNames) != null && t.length ? Wt(e.candidateDatasetNames) : Wt([e.datasetName]);
809
809
  }
810
810
  function HI(e, t) {
811
811
  const n = e || [];
@@ -831,11 +831,11 @@ function PO(e, t) {
831
831
  datasetName: o
832
832
  }) === t
833
833
  );
834
- return Gt([n, ...r]);
834
+ return Wt([n, ...r]);
835
835
  }
836
836
  function Of(e) {
837
837
  const t = Ie(e.table), n = Ie(e.schema), r = Ie(e.catalog) || Ie(e.database);
838
- return t ? Gt([
838
+ return t ? Wt([
839
839
  t,
840
840
  n ? `${n}.${t}` : "",
841
841
  r ? `${r}.${t}` : "",
@@ -845,7 +845,7 @@ function Of(e) {
845
845
  function $s(e, t, n, r = [n]) {
846
846
  if (!t || !n)
847
847
  return;
848
- const o = Gt(r);
848
+ const o = Wt(r);
849
849
  e.set(
850
850
  `${t}:${n}:${o.join("|")}`,
851
851
  {
@@ -948,11 +948,11 @@ function Bf(e, t, n = []) {
948
948
  s || l ? c = [
949
949
  (s || l).datasetName
950
950
  ] : i && (e.type === "table" || a === i) ? c = [i, o] : c = [o, i];
951
- const d = Gt(c)[0] || "";
951
+ const d = Wt(c)[0] || "";
952
952
  return !r || !d ? null : {
953
953
  domainId: r,
954
954
  datasetName: d,
955
- candidateDatasetNames: Gt(c)
955
+ candidateDatasetNames: Wt(c)
956
956
  };
957
957
  }
958
958
  function jf(e) {
@@ -1211,7 +1211,7 @@ function m0(e) {
1211
1211
  }
1212
1212
  function p0(e, t) {
1213
1213
  const n = dt(t);
1214
- return n && Sr(n).dataAnchored ? "between" : e === "not between" ? "not between" : e && Eo(e) && Wu(e, n) ? e : "between";
1214
+ return n && Sr(n).dataAnchored ? "between" : e === "not between" ? "not between" : e && Eo(e) && Gu(e, n) ? e : "between";
1215
1215
  }
1216
1216
  function qO(e) {
1217
1217
  return !!(e && l0.has(e));
@@ -1252,7 +1252,7 @@ function UO(e, t, n, r = {}) {
1252
1252
  function zO(e, t, n) {
1253
1253
  return (t === "=" || t === "!=") && n.temporalPrecision !== "minute" ? yI(e, n.timezone) : e;
1254
1254
  }
1255
- function WO(e, t) {
1255
+ function GO(e, t) {
1256
1256
  let n = [e == null ? void 0 : e.from, e == null ? void 0 : e.to];
1257
1257
  const r = e.from && (e.to === void 0 || e.from.getTime() === e.to.getTime()) ? e.from : void 0;
1258
1258
  return t.temporalPrecision !== "minute" && r && (n = [
@@ -1380,7 +1380,7 @@ function b0(e) {
1380
1380
  }
1381
1381
  };
1382
1382
  }
1383
- function GO(e) {
1383
+ function WO(e) {
1384
1384
  const { dependencies: t } = e, n = /* @__PURE__ */ new Set([
1385
1385
  e.targetInputId,
1386
1386
  ...t.excludeInputIds || []
@@ -1443,14 +1443,14 @@ function zf(e, t) {
1443
1443
  function I0(e, t) {
1444
1444
  return de(e.field.source, t.field.source) && ke(e.field.name) === ke(t.field.name) && ke(e.field.sourceField || e.field.name) === ke(t.field.sourceField || t.field.name);
1445
1445
  }
1446
- function Wo(e, t) {
1446
+ function Go(e, t) {
1447
1447
  if (e.kind !== "field") return !1;
1448
1448
  const n = kc(t), r = kc(e.field);
1449
1449
  return zf(t.dataType, e.field.dataType) && [...r].some((o) => n.has(o));
1450
1450
  }
1451
- function Wf(e) {
1451
+ function Gf(e) {
1452
1452
  const t = e.candidates.filter(
1453
- (n) => Wo(
1453
+ (n) => Go(
1454
1454
  n,
1455
1455
  e.logicalValueField
1456
1456
  )
@@ -1481,7 +1481,7 @@ function C0(e) {
1481
1481
  (n) => !!n && typeof n == "object" && !Array.isArray(n)
1482
1482
  ) : [];
1483
1483
  }
1484
- function Gf(e, t = {}) {
1484
+ function Wf(e, t = {}) {
1485
1485
  return rI(
1486
1486
  Hf(e, t)
1487
1487
  );
@@ -1509,7 +1509,7 @@ function Hf(e, t) {
1509
1509
  };
1510
1510
  }
1511
1511
  function Qf(e, t) {
1512
- const n = Gf(
1512
+ const n = Wf(
1513
1513
  e,
1514
1514
  t
1515
1515
  );
@@ -1532,7 +1532,7 @@ function Jf(e, t) {
1532
1532
  return r.kind === "resolved" ? r.source : void 0;
1533
1533
  }
1534
1534
  function Xf(e) {
1535
- const t = [], n = Gf(e);
1535
+ const t = [], n = Wf(e);
1536
1536
  return ao(
1537
1537
  t,
1538
1538
  n.kind === "resolved" ? n.source : void 0
@@ -1588,7 +1588,7 @@ function Bs(e) {
1588
1588
  }
1589
1589
  function tm(e, t) {
1590
1590
  return Bs(e).some(
1591
- (n) => de(n.source, t.field.source) && Wo({ kind: "field", field: t.field }, n)
1591
+ (n) => de(n.source, t.field.source) && Go({ kind: "field", field: t.field }, n)
1592
1592
  );
1593
1593
  }
1594
1594
  function ZO(e, t, n) {
@@ -1672,13 +1672,13 @@ function wa(e) {
1672
1672
  function _a(e) {
1673
1673
  return J(e.schema) || J(e.schemaName);
1674
1674
  }
1675
- function Wr(e) {
1675
+ function Gr(e) {
1676
1676
  return e.length === 1 ? e[0] : void 0;
1677
1677
  }
1678
1678
  function F0(e, t) {
1679
1679
  const n = Ia(t, !0), r = wa(t), o = _a(t);
1680
1680
  if (!(!n || !r && !o))
1681
- return Wr(
1681
+ return Gr(
1682
1682
  e.filter((i) => {
1683
1683
  const a = i;
1684
1684
  return !(Ia(a) !== n || r && wa(a) !== r || o && _a(a) !== o);
@@ -1694,14 +1694,14 @@ function hn(e, t) {
1694
1694
  if (t.type === "dataset") {
1695
1695
  const s = J(t.id);
1696
1696
  if (s)
1697
- return Wr(
1697
+ return Gr(
1698
1698
  n.filter(
1699
1699
  (c) => c.type === "dataset" && J(c.id) === s
1700
1700
  )
1701
1701
  );
1702
1702
  if (J(t.domainId)) {
1703
1703
  const c = J(t.name);
1704
- return Wr(
1704
+ return Gr(
1705
1705
  n.filter(
1706
1706
  (d) => d.type === "dataset" && J(d.name) === c
1707
1707
  )
@@ -1728,7 +1728,7 @@ function hn(e, t) {
1728
1728
  ).some(
1729
1729
  (c) => i.includes(c)
1730
1730
  ));
1731
- return Wr(a);
1731
+ return Gr(a);
1732
1732
  }
1733
1733
  function xi(e, t) {
1734
1734
  const n = hn(e, t);
@@ -1816,7 +1816,7 @@ function E0(e, t) {
1816
1816
  if (e.entityName === t.tableName) return !0;
1817
1817
  if (!e.qualifiedEntityName) return !1;
1818
1818
  const n = cs(t.connectionType), r = Zr({ qualifiedName: e.qualifiedEntityName, capabilities: n });
1819
- return r.tableName === t.tableName && Gu({ requested: r, allowed: t, capabilities: n });
1819
+ return r.tableName === t.tableName && Wu({ requested: r, allowed: t, capabilities: n });
1820
1820
  }
1821
1821
  function M0(e) {
1822
1822
  const t = new Set(
@@ -2020,7 +2020,7 @@ function B0(e, t) {
2020
2020
  (r) => de(r, t)
2021
2021
  );
2022
2022
  }
2023
- function Go(e, t) {
2023
+ function Wo(e, t) {
2024
2024
  if (e.kind === "config")
2025
2025
  return e.executableSources.find(
2026
2026
  (n) => de(n, t)
@@ -2194,7 +2194,7 @@ function z0(e, t, n, r, o, i) {
2194
2194
  return;
2195
2195
  }
2196
2196
  if (t.target.kind === "relationship") {
2197
- W0(e, t, n, r, o, i);
2197
+ G0(e, t, n, r, o, i);
2198
2198
  return;
2199
2199
  }
2200
2200
  const s = t.target.field;
@@ -2249,7 +2249,7 @@ function z0(e, t, n, r, o, i) {
2249
2249
  bindingId: t.bindingId
2250
2250
  });
2251
2251
  }
2252
- function W0(e, t, n, r, o, i) {
2252
+ function G0(e, t, n, r, o, i) {
2253
2253
  var d, f;
2254
2254
  const a = t.target, s = a.relationshipIds;
2255
2255
  (!Array.isArray(s) || s.length === 0 || !s.every(Se) || new Set(s).size !== s.length) && o.push({
@@ -2294,7 +2294,7 @@ function W0(e, t, n, r, o, i) {
2294
2294
  bindingId: t.bindingId
2295
2295
  });
2296
2296
  }
2297
- function G0(e, t, n) {
2297
+ function W0(e, t, n) {
2298
2298
  var r;
2299
2299
  (r = e.application) == null || r.cards.forEach((o, i) => {
2300
2300
  if (o.kind !== "bound" || o.target.kind !== "relationship" || tm(e, o.target)) return;
@@ -2544,7 +2544,7 @@ function Xt({
2544
2544
  ...m.optionDependencies ? { optionDependencies: m.optionDependencies } : {},
2545
2545
  ...m.optionPopulation ? { optionPopulation: m.optionPopulation } : {},
2546
2546
  definitionOrigin: v
2547
- }), r && G0(
2547
+ }), r && W0(
2548
2548
  s[s.length - 1],
2549
2549
  `${f}.application`,
2550
2550
  o
@@ -3981,12 +3981,12 @@ const Sm = (e) => ({ tz: e, weekStart: 1 }), yR = (e, t) => vI(e, "day", Sm(t)),
3981
3981
  if (typeof e != "string" && typeof e != "number") return;
3982
3982
  const r = new Date(e);
3983
3983
  return Number.isNaN(r.getTime()) ? void 0 : r;
3984
- }, Bw = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, Gr = /* @__PURE__ */ new Set([
3984
+ }, Bw = (e) => e ? typeof e == "object" && "tz" in e ? e.tz : e : Intl.DateTimeFormat().resolvedOptions().timeZone, Wr = /* @__PURE__ */ new Set([
3985
3985
  "previous_period",
3986
3986
  "same_period_last_year",
3987
3987
  "start_vs_end",
3988
3988
  "target"
3989
- ]), jw = /* @__PURE__ */ new Set([...Gr, "none", ""]);
3989
+ ]), jw = /* @__PURE__ */ new Set([...Wr, "none", ""]);
3990
3990
  function Z(e) {
3991
3991
  return !!e && typeof e == "object" && !Array.isArray(e);
3992
3992
  }
@@ -4262,7 +4262,7 @@ function vR(e) {
4262
4262
  message: "Metric contains both legacy and canonical comparison configuration; resolve the conflict before migration."
4263
4263
  });
4264
4264
  const g = Z(f.parameters) ? f.parameters : void 0, y = g && Z(g.windowTransform) ? g.windowTransform : void 0;
4265
- Gr.has(h) && (y == null ? void 0 : y.function) === "previous_period_delta" && n.push({
4265
+ Wr.has(h) && (y == null ? void 0 : y.function) === "previous_period_delta" && n.push({
4266
4266
  severity: "error",
4267
4267
  code: "conflicting_comparison_window_transform",
4268
4268
  path: p,
@@ -4350,13 +4350,13 @@ function vR(e) {
4350
4350
  if (a.metrics.forEach(({ metric: c, index: d }) => {
4351
4351
  if (!("comparisonType" in c)) return;
4352
4352
  const f = String(c.comparisonType || ""), m = `${a.path}.config.metricColumns[${d}]`, p = Vw(c), h = ["comparisonType"];
4353
- delete c.comparisonType, "targetValue" in c && (delete c.targetValue, h.push("targetValue")), "comparisonDisplay" in c && (delete c.comparisonDisplay, h.push("comparisonDisplay")), p ? c.comparison = p : delete c.comparison, Gr.has(f) && (c.comparisonPolarity = s), i.push({
4353
+ delete c.comparisonType, "targetValue" in c && (delete c.targetValue, h.push("targetValue")), "comparisonDisplay" in c && (delete c.comparisonDisplay, h.push("comparisonDisplay")), p ? c.comparison = p : delete c.comparison, Wr.has(f) && (c.comparisonPolarity = s), i.push({
4354
4354
  kind: "metric",
4355
4355
  path: m,
4356
4356
  metricId: typeof c.id == "string" ? c.id : void 0,
4357
4357
  legacyType: f,
4358
4358
  comparison: p,
4359
- comparisonPolarity: Gr.has(f) ? s : void 0,
4359
+ comparisonPolarity: Wr.has(f) ? s : void 0,
4360
4360
  removedFields: h
4361
4361
  });
4362
4362
  }), Kw(a.card), a.hasLegacyPresentation) {
@@ -4394,11 +4394,11 @@ const Yw = [
4394
4394
  ], Uw = new Set(
4395
4395
  Yw
4396
4396
  );
4397
- function Ws(e) {
4397
+ function Gs(e) {
4398
4398
  return typeof e == "string" && Uw.has(e);
4399
4399
  }
4400
4400
  function Fm(e) {
4401
- return e === "detailTable" || e === "table" || e === "custom" || Ws(e);
4401
+ return e === "detailTable" || e === "table" || e === "custom" || Gs(e);
4402
4402
  }
4403
4403
  function Lc(e) {
4404
4404
  return !!(e != null && e.trim());
@@ -4412,7 +4412,7 @@ function wR(e, t) {
4412
4412
  const n = (Date.parse(e.endExclusive) - Date.parse(e.startInclusive)) / Em;
4413
4413
  return n <= 2 ? t ? "hour" : "day" : n <= 62 ? "day" : n <= 183 ? "week" : n <= 3 * 366 ? "month" : n <= 12 * 366 ? "quarter" : "year";
4414
4414
  }
4415
- const Ww = {
4415
+ const Gw = {
4416
4416
  hour: 1 / 24,
4417
4417
  day: 1,
4418
4418
  week: 7,
@@ -4422,11 +4422,11 @@ const Ww = {
4422
4422
  };
4423
4423
  function _R(e, t) {
4424
4424
  const n = (Date.parse(e.endExclusive) - Date.parse(e.startInclusive)) / Em;
4425
- return Number.isFinite(n) ? Math.ceil(n / Ww[t]) : 0;
4425
+ return Number.isFinite(n) ? Math.ceil(n / Gw[t]) : 0;
4426
4426
  }
4427
- const Gw = /* @__PURE__ */ new Set(["detailTable", "custom"]);
4427
+ const Ww = /* @__PURE__ */ new Set(["detailTable", "custom"]);
4428
4428
  function Mm(e) {
4429
- return !Fm(e.cardType) || Gw.has(e.cardType) ? { ok: !1, reason: "card_type" } : e.configBacked ? e.shelf !== "groupBy" ? { ok: !1, reason: "not_group_by" } : _n(e.dataType) ? { ok: !0 } : { ok: !1, reason: "not_a_date" } : { ok: !1, reason: "sql_card" };
4429
+ return !Fm(e.cardType) || Ww.has(e.cardType) ? { ok: !1, reason: "card_type" } : e.configBacked ? e.shelf !== "groupBy" ? { ok: !1, reason: "not_group_by" } : _n(e.dataType) ? { ok: !0 } : { ok: !1, reason: "not_a_date" } : { ok: !1, reason: "sql_card" };
4430
4430
  }
4431
4431
  function Am(e, t) {
4432
4432
  const { grainMode: n, ...r } = e;
@@ -4457,7 +4457,7 @@ function Jw(e, t) {
4457
4457
  return o.grainMode ? { ...r, ...o } : { ...r, granularity: o.granularity };
4458
4458
  }
4459
4459
  function kR(e, t) {
4460
- return Mm({ cardType: t, configBacked: !0, shelf: "groupBy", dataType: e.dataType }).ok && Ws(t) ? Jw(e, "automatic") : e;
4460
+ return Mm({ cardType: t, configBacked: !0, shelf: "groupBy", dataType: e.dataType }).ok && Gs(t) ? Jw(e, "automatic") : e;
4461
4461
  }
4462
4462
  function on(e) {
4463
4463
  return JSON.stringify(e, (t, n) => !n || typeof n != "object" || Array.isArray(n) ? n : Object.keys(n).sort().reduce((r, o) => (r[o] = n[o], r), {}));
@@ -4475,7 +4475,7 @@ function Xw(e, t, n, r) {
4475
4475
  const i = e.rows.filter((c) => c.id !== t), a = e.columns.filter((c) => c.id !== t), s = n === "rows" ? i : a, l = r ? s.findIndex((c) => c.id === r) : -1;
4476
4476
  return s.splice(l < 0 ? s.length : l, 0, o), { kind: "structure", rows: i, columns: a };
4477
4477
  }
4478
- function Gs(e, t) {
4478
+ function Ws(e, t) {
4479
4479
  const n = dc(e), r = dc(t), o = (s, l) => on(n[s][l]) === on(r[s][l]), i = (s) => {
4480
4480
  const l = n.rankings.find((d) => d.id === s), c = r.rankings.find((d) => d.id === s);
4481
4481
  return !!l && !!c && on(l) === on(c);
@@ -4488,7 +4488,7 @@ function Gs(e, t) {
4488
4488
  );
4489
4489
  }
4490
4490
  function Zw(e, t, n = !1) {
4491
- const r = { ...t }, o = [], i = Gs(e, r), a = new Set(r.measures.map((l) => l.id)), s = (l, c, d) => o.push({ kind: l, id: c, message: d });
4491
+ const r = { ...t }, o = [], i = Ws(e, r), a = new Set(r.measures.map((l) => l.id)), s = (l, c, d) => o.push({ kind: l, id: c, message: d });
4492
4492
  return r.sorts = r.sorts.filter((l) => {
4493
4493
  const c = r[l.axis].findIndex(
4494
4494
  (f) => f.id === l.levelId
@@ -4541,7 +4541,7 @@ function Ho(e, t, n = [], r, o = !1) {
4541
4541
  measures: t.measures ?? e.spec.measures
4542
4542
  }, o), s = a.spec;
4543
4543
  i.push(...a.notices);
4544
- const l = Gs(e.spec, s), c = new Set(s.measures.map((v) => v.id)), d = [...s.rows, ...s.columns], f = new Set(d.map((v) => v.id)), m = (v, _, S) => i.push({ kind: v, id: _, message: S }), p = [], h = n.flatMap((v) => {
4544
+ const l = Ws(e.spec, s), c = new Set(s.measures.map((v) => v.id)), d = [...s.rows, ...s.columns], f = new Set(d.map((v) => v.id)), m = (v, _, S) => i.push({ kind: v, id: _, message: S }), p = [], h = n.flatMap((v) => {
4545
4545
  if (v.target === "sql_param" || v.target === "presentation_currency") return [v];
4546
4546
  const _ = Je(e.spec, v.target, r), S = v.matrixTargetId ?? (_.length === 1 ? _[0].id : void 0);
4547
4547
  return Je(s, v.target, r).some((T) => T.id === S) ? v.matrixTargetId ? [v] : (m("binding", v.controlId, "Pinned the control binding to its original Matrix target after a structural change."), [{ ...v, matrixTargetId: S }]) : (m(
@@ -5348,7 +5348,7 @@ function C_(e) {
5348
5348
  o.size === 1 && n.set(r, Array.from(o)[0]);
5349
5349
  return n;
5350
5350
  }
5351
- const Wc = {
5351
+ const Gc = {
5352
5352
  base: 0,
5353
5353
  draggable: 1,
5354
5354
  indirect: 2,
@@ -5469,11 +5469,11 @@ function Da(e) {
5469
5469
  }
5470
5470
  function Km(e, t) {
5471
5471
  var h;
5472
- const { selectedFields: n, joinPlan: r, autoJoinMetadata: o, baseEntityName: i, dataSourceEntities: a } = e, s = Gc(
5472
+ const { selectedFields: n, joinPlan: r, autoJoinMetadata: o, baseEntityName: i, dataSourceEntities: a } = e, s = Wc(
5473
5473
  n.flatMap(
5474
5474
  (g) => Vm(g) ? bs(g).datasets.map(t.ofDependency) : [t.ofField(g)]
5475
5475
  )
5476
- ), l = s.length > 0, c = Gc(
5476
+ ), l = s.length > 0, c = Wc(
5477
5477
  (a || []).map((g) => t.ofEntity(g))
5478
5478
  ), d = l ? s : c, f = r != null && r.baseEntity ? t.ofEntity(r.baseEntity) : void 0, m = (h = o == null ? void 0 : o.resolvedJoinPlan) != null && h.baseEntity ? t.ofEntity(o.resolvedJoinPlan.baseEntity) : void 0, p = i ? t.resolve(i) : void 0;
5479
5479
  return {
@@ -5569,7 +5569,7 @@ function $R(e) {
5569
5569
  };
5570
5570
  });
5571
5571
  }
5572
- function Gc(e) {
5572
+ function Wc(e) {
5573
5573
  const t = [];
5574
5574
  return e.forEach((n) => {
5575
5575
  n && !t.includes(n) && t.push(n);
@@ -5612,7 +5612,7 @@ function T_(e, t) {
5612
5612
  evaluated: z
5613
5613
  };
5614
5614
  }), g = h.reduce(
5615
- (w, x) => Wc[x.dependency.state] > Wc[w.dependency.state] ? x : w
5615
+ (w, x) => Gc[x.dependency.state] > Gc[w.dependency.state] ? x : w
5616
5616
  ), y = h.map((w) => w.dependency), b = qm(g.dependency.state);
5617
5617
  return {
5618
5618
  state: !r && g.dependency.state === "base" ? "draggable" : g.dependency.state,
@@ -6074,11 +6074,11 @@ function zR(e) {
6074
6074
  return !P_.has(e);
6075
6075
  }
6076
6076
  const B_ = /* @__PURE__ */ new Set(["kpi", "matrixTable"]);
6077
- function WR(e) {
6077
+ function GR(e) {
6078
6078
  return !B_.has(e);
6079
6079
  }
6080
6080
  const zm = (e, t) => e.type !== t && (e.type === "matrixTable" || t === "matrixTable"), j_ = ["pivotTable", "aggregateTable"];
6081
- function Wm(e) {
6081
+ function Gm(e) {
6082
6082
  return j_.includes(e.type);
6083
6083
  }
6084
6084
  function L_(e, t, n = [], r = () => crypto.randomUUID()) {
@@ -6112,7 +6112,7 @@ function V_(e, t, n, r) {
6112
6112
  return r.push({ code: "join_not_carried", label: "Join" }), {};
6113
6113
  }
6114
6114
  }
6115
- const Vn = (e) => e.label || e.name, Gm = {
6115
+ const Vn = (e) => e.label || e.name, Wm = {
6116
6116
  id: "identity",
6117
6117
  name: "identity",
6118
6118
  label: "identity",
@@ -6167,8 +6167,8 @@ function Y_(e, t) {
6167
6167
  function U_(e) {
6168
6168
  return Object.keys(e).some(Ea) ? Object.fromEntries(Object.entries(e).filter(([t]) => !Ea(t))) : e;
6169
6169
  }
6170
- const z_ = (e) => Object.entries(e).some(([t, n]) => ne(n) && !(t in Gm) && !Ea(t));
6171
- function W_(e, t) {
6170
+ const z_ = (e) => Object.entries(e).some(([t, n]) => ne(n) && !(t in Wm) && !Ea(t));
6171
+ function G_(e, t) {
6172
6172
  const n = t === "metrics" && Jm(e);
6173
6173
  if (e.fieldScope === "card" && !n) return "calculated_field_card_scope";
6174
6174
  if ((e.fieldScope === "sheet" || e.fieldScope === "dashboard") && !n) return "calculated_field_dashboard_scope";
@@ -6186,7 +6186,7 @@ function Qm(e) {
6186
6186
  const t = e.calculatedFormula;
6187
6187
  return !ne(e.aggregate) || !ne(e.expression) || ne(e.derivedField) || !((n = t == null ? void 0 : t.inputFields) != null && n.length) || t.computeStage === "aggregate" ? !1 : t.inputFields.every((r) => !ne(r.aggregate) && r.role !== "metric" && !ne(r.expression) && !ne(r.calculatedFormula) && !ne(r.derivedField));
6188
6188
  }
6189
- function G_(e) {
6189
+ function W_(e) {
6190
6190
  var t;
6191
6191
  return Qm(e) && ((t = e.calculatedFormula) == null ? void 0 : t.computeStage) !== "row" ? { ...e, calculatedFormula: { ...e.calculatedFormula, computeStage: "row" } } : e;
6192
6192
  }
@@ -6214,7 +6214,7 @@ function H_(e) {
6214
6214
  function Q_(e) {
6215
6215
  return Object.entries(e).every(([t, n]) => {
6216
6216
  if (!ne(n) || t === "sourceField" && !Hm(e)) return !0;
6217
- const r = Gm[t];
6217
+ const r = Wm[t];
6218
6218
  return r === "identity" || r === "translated" || r === "presentation";
6219
6219
  });
6220
6220
  }
@@ -6250,8 +6250,8 @@ function tl(e) {
6250
6250
  function X_(e, t, n, r, o) {
6251
6251
  var f;
6252
6252
  const i = [["groupBy", n.rows], ["pivotBy", n.columns], ["metrics", n.metrics]].flatMap(([m, p]) => p.flatMap((h) => {
6253
- const g = W_(h, m);
6254
- return g ? (r.push({ code: g, label: Vn(h) }), []) : [{ to: m, field: { ...tl(m === "metrics" ? H_(G_(h)) : Y_(h, r)), id: o() }, sourceId: h.id }];
6253
+ const g = G_(h, m);
6254
+ return g ? (r.push({ code: g, label: Vn(h) }), []) : [{ to: m, field: { ...tl(m === "metrics" ? H_(W_(h)) : Y_(h, r)), id: o() }, sourceId: h.id }];
6255
6255
  })), a = sn(e, i.map(({ field: m }) => m));
6256
6256
  let s = e;
6257
6257
  for (const { to: m, field: p } of i)
@@ -6260,7 +6260,7 @@ function X_(e, t, n, r, o) {
6260
6260
  } catch {
6261
6261
  r.push({ code: "field_not_resolvable", label: Vn(p) });
6262
6262
  }
6263
- Wm({ type: t }) || r.push(...n.details.map((m) => ({ code: "detail_columns", label: Vn(m) })));
6263
+ Gm({ type: t }) || r.push(...n.details.map((m) => ({ code: "detail_columns", label: Vn(m) })));
6264
6264
  const l = new Map(
6265
6265
  i.flatMap(({ field: m }) => m.granularity ? [[m.id, m.granularity]] : [])
6266
6266
  ), c = (f = s.config) == null ? void 0 : f.matrix;
@@ -6281,7 +6281,7 @@ function Z_(e, t, n, r) {
6281
6281
  var l, c;
6282
6282
  const o = (l = e.config) == null ? void 0 : l.matrix;
6283
6283
  if (!o) return e;
6284
- const i = Wm(t);
6284
+ const i = Gm(t);
6285
6285
  let a = e;
6286
6286
  const s = (d) => {
6287
6287
  var m;
@@ -6391,7 +6391,7 @@ function Qc(e, t, n, r) {
6391
6391
  }
6392
6392
  return n.push({ code: "filter_not_accepted", label: "Filters" }), e;
6393
6393
  }
6394
- function GR(e, t) {
6394
+ function WR(e, t) {
6395
6395
  var o, i;
6396
6396
  const n = e.type === "matrixTable" ? (i = (o = e.config) == null ? void 0 : o.matrix) == null ? void 0 : i.spec.source : void 0;
6397
6397
  return !n || (t.selectedEntities ?? []).some((a) => {
@@ -7559,8 +7559,8 @@ function Fr(e) {
7559
7559
  polarity: Ov(t)
7560
7560
  };
7561
7561
  }
7562
- const WC = 3;
7563
- function GC(e) {
7562
+ const GC = 3;
7563
+ function WC(e) {
7564
7564
  var o, i;
7565
7565
  const t = ((o = e.config) == null ? void 0 : o.metricColumns) ?? [], n = (((i = e.config) == null ? void 0 : i.groupByColumns) ?? []).length > 0, r = t.some((a) => Rv(a) === "target");
7566
7566
  return t.length > 1 && !n && !r ? "measures" : "value";
@@ -7652,7 +7652,7 @@ function mP(e) {
7652
7652
  const h = XC(i, n);
7653
7653
  return h.value === null && o !== void 0 ? { ...h, value: o } : h;
7654
7654
  }
7655
- const a = (r == null ? void 0 : r.kpiLayout) ?? GC({ config: t.config });
7655
+ const a = (r == null ? void 0 : r.kpiLayout) ?? WC({ config: t.config });
7656
7656
  if (!i)
7657
7657
  return { layout: a, value: o ?? null, missing: "no_value", others: [], resultKeys: {} };
7658
7658
  const s = Na(n, "current", Yn(i.measure)), l = s ?? o ?? null, c = {
@@ -7666,7 +7666,7 @@ function mP(e) {
7666
7666
  const h = ((m = t.config) == null ? void 0 : m.metricColumns) ?? [], g = ((p = t.preferences) == null ? void 0 : p.metricPairComparisonEnabled) === !0 && h.length === 2;
7667
7667
  return {
7668
7668
  ...c,
7669
- others: h.slice(1, WC).map((y, b) => {
7669
+ others: h.slice(1, GC).map((y, b) => {
7670
7670
  const v = Na(n, "current", Yn(y)) ?? o ?? null;
7671
7671
  return {
7672
7672
  measure: y,
@@ -8456,7 +8456,7 @@ function TP(e, t) {
8456
8456
  ...c ? { loading: !0 } : {},
8457
8457
  ...s
8458
8458
  };
8459
- }, o = Wn(e, { by: "answers", context: t }).flatMap((i) => {
8459
+ }, o = Gn(e, { by: "answers", context: t }).flatMap((i) => {
8460
8460
  if (i.type !== "link") return [r(i, void 0)];
8461
8461
  const a = yp(i.url, t);
8462
8462
  return a.pending && (n = !0), (i.children ?? []).map((s) => r(s, a.href));
@@ -8535,7 +8535,7 @@ function Ak(e, t) {
8535
8535
  return !1;
8536
8536
  }
8537
8537
  }
8538
- function Wn(e, t) {
8538
+ function Gn(e, t) {
8539
8539
  const n = [];
8540
8540
  for (const r of Array.isArray(e) ? e : []) {
8541
8541
  if ((r == null ? void 0 : r.type) !== "when") {
@@ -8547,14 +8547,14 @@ function Wn(e, t) {
8547
8547
  return n;
8548
8548
  }
8549
8549
  function Nk(e, t) {
8550
- const n = Wn(e.then, t);
8550
+ const n = Gn(e.then, t);
8551
8551
  if (t.by === "then") return n;
8552
8552
  if (t.by === "longest") {
8553
- const o = Wn(e.else, t);
8553
+ const o = Gn(e.else, t);
8554
8554
  return t.length(o) > t.length(n) ? o : n;
8555
8555
  }
8556
8556
  const r = Ak(e.test, t.context);
8557
- return r === "loading" ? [{ type: "variable", ref: e.test.ref }] : r ? n : Wn(e.else, t);
8557
+ return r === "loading" ? [{ type: "variable", ref: e.test.ref }] : r ? n : Gn(e.else, t);
8558
8558
  }
8559
8559
  function $k(e) {
8560
8560
  return e.status !== "text" ? !1 : e.cell ? e.cell.value !== null && e.cell.value !== "" : e.text !== "";
@@ -8636,7 +8636,7 @@ function Lk(e, t) {
8636
8636
  }
8637
8637
  }
8638
8638
  function Bi(e, t) {
8639
- return Wn(e, { by: "answers", context: t }).map((n) => Ip(n, t)).join("");
8639
+ return Gn(e, { by: "answers", context: t }).map((n) => Ip(n, t)).join("");
8640
8640
  }
8641
8641
  function Ip(e, t) {
8642
8642
  if (e.type === "link") {
@@ -8769,15 +8769,15 @@ const dl = ["kpi", "bar", "line", "area", "pie", "table", "detail_table", "matri
8769
8769
  function zk(e) {
8770
8770
  return typeof e == "string" && dl.includes(e);
8771
8771
  }
8772
- function Wk(e) {
8772
+ function Gk(e) {
8773
8773
  return _p[e].chartType;
8774
8774
  }
8775
- const Gk = {
8775
+ const Wk = {
8776
8776
  matrixTable: "matrix"
8777
8777
  };
8778
8778
  function ri(e) {
8779
8779
  if (!e) return "unknown";
8780
- const t = Gk[e];
8780
+ const t = Wk[e];
8781
8781
  return t || e.replace(/[A-Z]/g, (n) => `_${n.toLowerCase()}`);
8782
8782
  }
8783
8783
  function ul(e) {
@@ -8825,7 +8825,7 @@ function Hk(e, t) {
8825
8825
  case "pie":
8826
8826
  return { type: t.donut ? "doughnut" : "pie" };
8827
8827
  default:
8828
- return { type: Wk(e) };
8828
+ return { type: Gk(e) };
8829
8829
  }
8830
8830
  }
8831
8831
  const Qk = {
@@ -9677,7 +9677,7 @@ function zP(e, t = "SUM", n = !1) {
9677
9677
  targetMap: o
9678
9678
  };
9679
9679
  }
9680
- function WP(e) {
9680
+ function GP(e) {
9681
9681
  var n, r;
9682
9682
  const t = (n = e == null ? void 0 : e.config) == null ? void 0 : n.matrix;
9683
9683
  return t ? Je(t.spec, "config_field_selector").map((o) => ({
@@ -9692,7 +9692,7 @@ function WP(e) {
9692
9692
  )
9693
9693
  );
9694
9694
  }
9695
- function GP(e) {
9695
+ function WP(e) {
9696
9696
  var n, r;
9697
9697
  const t = (n = e == null ? void 0 : e.config) == null ? void 0 : n.matrix;
9698
9698
  return t ? Je(t.spec, "config_metric_selector").map((o) => ({
@@ -9934,7 +9934,7 @@ function oB(e, t) {
9934
9934
  function zS(e) {
9935
9935
  return Array.isArray(e) ? e.filter((t) => typeof t == "string") : typeof e == "string" ? [e] : [];
9936
9936
  }
9937
- const Gn = [
9937
+ const Wn = [
9938
9938
  {
9939
9939
  value: "enum",
9940
9940
  label: "Dropdown",
@@ -9998,7 +9998,7 @@ const Gn = [
9998
9998
  grain_selector: "Time Grain"
9999
9999
  };
10000
10000
  function aB(e) {
10001
- return Gn.find((t) => t.value === e) || Gn[0];
10001
+ return Wn.find((t) => t.value === e) || Wn[0];
10002
10002
  }
10003
10003
  function sB(e) {
10004
10004
  var a;
@@ -10007,12 +10007,12 @@ function sB(e) {
10007
10007
  "aggregation_selector",
10008
10008
  "field_selector",
10009
10009
  "metric_selector"
10010
- ]), o = (t == null ? void 0 : t.scope) === "card" && ((a = t.card) == null ? void 0 : a.sql) == null ? Gn.filter(
10010
+ ]), o = (t == null ? void 0 : t.scope) === "card" && ((a = t.card) == null ? void 0 : a.sql) == null ? Wn.filter(
10011
10011
  (s) => n.has(s.value)
10012
- ) : Gn;
10012
+ ) : Wn;
10013
10013
  if (!(t != null && t.includeType) || o.some((s) => s.value === t.includeType))
10014
10014
  return o;
10015
- const i = Gn.find(
10015
+ const i = Wn.find(
10016
10016
  (s) => s.value === t.includeType
10017
10017
  );
10018
10018
  return i ? [...o, i] : o;
@@ -10036,7 +10036,7 @@ function dB(e) {
10036
10036
  function uB(e) {
10037
10037
  return Array.isArray(e) ? e.length > 0 : e != null && String(e).trim().length > 0;
10038
10038
  }
10039
- function WS(e, t) {
10039
+ function GS(e, t) {
10040
10040
  var i, a;
10041
10041
  const n = pl(e.type), r = $p(e), o = (n ?? (r.source.kind === "manual" ? r.source.options : [])).map((s) => s.value);
10042
10042
  if (e.type === "boolean")
@@ -10074,9 +10074,9 @@ function _d(e) {
10074
10074
  function fB(e) {
10075
10075
  const { previousControl: t, nextControl: n, currentDefaultValue: r } = e;
10076
10076
  if (!(t.source.kind !== "sql_query" && n.source.kind === "sql_query") && !(t.source.kind === "sql_query" && n.source.kind === "sql_query" && _d(t.source) !== _d(n.source)))
10077
- return WS(n, r);
10077
+ return GS(n, r);
10078
10078
  }
10079
- function GS(e) {
10079
+ function WS(e) {
10080
10080
  const { control: t, defaultValues: n } = e;
10081
10081
  return n && Object.prototype.hasOwnProperty.call(n, t.id) ? n[t.id] : t.defaultValue;
10082
10082
  }
@@ -10094,7 +10094,7 @@ function HS(e) {
10094
10094
  for (const r of e.controls) {
10095
10095
  if (!Cd(r))
10096
10096
  continue;
10097
- const o = GS({
10097
+ const o = WS({
10098
10098
  control: r,
10099
10099
  defaultValues: e.defaultValues
10100
10100
  });
@@ -10524,7 +10524,7 @@ function gt(e, t, n) {
10524
10524
  }
10525
10525
  function Ne(e, t, n, r) {
10526
10526
  var i, a, s, l, c, d;
10527
- const o = Gp(e);
10527
+ const o = Wp(e);
10528
10528
  switch (t.runtimeScope) {
10529
10529
  case "shared":
10530
10530
  return o.shared || (o.shared = {}), o.shared[t.id] = r, Ee(o);
@@ -10555,7 +10555,7 @@ function Il(e, t) {
10555
10555
  }
10556
10556
  function lT(e, t, n) {
10557
10557
  var o, i, a, s, l, c, d;
10558
- const r = Gp(e);
10558
+ const r = Wp(e);
10559
10559
  switch (t.runtimeScope) {
10560
10560
  case "shared":
10561
10561
  (o = r.shared) == null || delete o[t.id];
@@ -10724,7 +10724,7 @@ function zp(e, t) {
10724
10724
  }
10725
10725
  } : void 0;
10726
10726
  }
10727
- function Wp(e) {
10727
+ function Gp(e) {
10728
10728
  return e ? {
10729
10729
  status: "set",
10730
10730
  value: {
@@ -10742,7 +10742,7 @@ function Sd(e) {
10742
10742
  }
10743
10743
  } : void 0;
10744
10744
  }
10745
- function Gp(e) {
10745
+ function Wp(e) {
10746
10746
  return {
10747
10747
  shared: e != null && e.shared ? { ...e.shared } : void 0,
10748
10748
  bySheetId: Vi(e == null ? void 0 : e.bySheetId),
@@ -11889,7 +11889,7 @@ function $T(e) {
11889
11889
  }
11890
11890
  return { entries: t, owners: n };
11891
11891
  }
11892
- function WB(e) {
11892
+ function GB(e) {
11893
11893
  const t = /* @__PURE__ */ new Set();
11894
11894
  for (const n of e ?? [])
11895
11895
  if (n && typeof n == "object")
@@ -12034,7 +12034,7 @@ function xd(e, t, n, r) {
12034
12034
  ...Vr(e.slice(i + 1), t, n)
12035
12035
  ];
12036
12036
  }
12037
- function GB(e) {
12037
+ function WB(e) {
12038
12038
  if (Pe(e) !== "config") return;
12039
12039
  const t = /* @__PURE__ */ new Set();
12040
12040
  for (const { role: n, fields: r } of Dn(e))
@@ -12095,22 +12095,22 @@ function HB(e) {
12095
12095
  function QB(e) {
12096
12096
  var Be, bt, De, vt, ae, tn, Ye, It, An;
12097
12097
  const { card: t, result: n } = e, r = e.projection ?? "screen", o = Pe(t) === "config", i = qT(t), a = i === "card-type" ? void 0 : i === "author-disabled" ? (Be = e.settings) != null && Be.sort ? { sort: e.settings.sort } : void 0 : e.settings, s = LT(o, e.paginationMode), l = n.columnKeyMap, c = o ? NT(t, n) : $T(n), d = (D) => {
12098
- var R, W;
12099
- return D && ((W = (R = a == null ? void 0 : a.labels) == null ? void 0 : R[D]) == null ? void 0 : W.trim()) || void 0;
12098
+ var R, G;
12099
+ return D && ((G = (R = a == null ? void 0 : a.labels) == null ? void 0 : R[D]) == null ? void 0 : G.trim()) || void 0;
12100
12100
  }, f = (D) => Ke({ kind: "metric", ...D }), { keys: m, exportLabels: p } = RT(
12101
12101
  t,
12102
12102
  n,
12103
12103
  r,
12104
12104
  (D) => {
12105
- var W;
12105
+ var G;
12106
12106
  const R = f(D);
12107
- return d(c.entries.has(R) ? R : void 0) ?? ((W = c.entries.get(R)) == null ? void 0 : W.authorLabel);
12107
+ return d(c.entries.has(R) ? R : void 0) ?? ((G = c.entries.get(R)) == null ? void 0 : G.authorLabel);
12108
12108
  }
12109
12109
  ), h = (D) => li(t, D), g = (D) => {
12110
12110
  const R = c.owners.get(D);
12111
12111
  if (!R || i === "card-type") return;
12112
- const W = c.entries.get(R.columnId);
12113
- if (!(!W || W.baseKey && h(W.baseKey)))
12112
+ const G = c.entries.get(R.columnId);
12113
+ if (!(!G || G.baseKey && h(G.baseKey)))
12114
12114
  return R;
12115
12115
  }, y = (D) => i === "card-type" ? void 0 : c.owners.get(D), b = (D) => La(D, g).flatMap(
12116
12116
  (R) => R.columnId ? [R.columnId] : []
@@ -12164,12 +12164,12 @@ function QB(e) {
12164
12164
  ), M = B == null ? void 0 : B.order, H = M ? xd(A, g, M, n.columns) : A, F = M ? [...H, ...x.filter(h)] : x, O = b(H), j = MT(O, S), L = new Set((B == null ? void 0 : B.hidden) ?? []);
12165
12165
  O.length && O.every((D) => L.has(D)) && L.delete(O[0]);
12166
12166
  const K = r === "screen" ? PT(t, n, x) : /* @__PURE__ */ new Map(), Xe = (D, R) => {
12167
- const W = d(R == null ? void 0 : R.columnId);
12168
- if ((R == null ? void 0 : R.part) === "base" && W) return W;
12167
+ const G = d(R == null ? void 0 : R.columnId);
12168
+ if ((R == null ? void 0 : R.part) === "base" && G) return G;
12169
12169
  const Ae = K.get(D);
12170
12170
  if (Ae)
12171
12171
  return hT(
12172
- ((R == null ? void 0 : R.part) === "comparison" ? W : void 0) ?? (Ae.metric.label || Ae.metric.name),
12172
+ ((R == null ? void 0 : R.part) === "comparison" ? G : void 0) ?? (Ae.metric.label || Ae.metric.name),
12173
12173
  Ae.kind
12174
12174
  );
12175
12175
  const Ue = p.get(D);
@@ -12181,19 +12181,19 @@ function QB(e) {
12181
12181
  resultColumns: n.columns,
12182
12182
  // No temporal presentation: a flat table never formats pivot members
12183
12183
  // as dates (its temporal activation covers group columns only).
12184
- metricLabelOverride: (R == null ? void 0 : R.part) === "pivot-member" ? W : void 0
12184
+ metricLabelOverride: (R == null ? void 0 : R.part) === "pivot-member" ? G : void 0
12185
12185
  });
12186
12186
  return Nn || (oh(D, t, l) ?? D);
12187
12187
  }, ee = F.map((D) => {
12188
12188
  var Ae;
12189
- const R = g(D), W = (R == null ? void 0 : R.part) ?? ((Ae = c.owners.get(D)) == null ? void 0 : Ae.part) ?? "base";
12189
+ const R = g(D), G = (R == null ? void 0 : R.part) ?? ((Ae = c.owners.get(D)) == null ? void 0 : Ae.part) ?? "base";
12190
12190
  return {
12191
12191
  outputKey: D,
12192
12192
  ...R ? { columnId: R.columnId } : {},
12193
- part: W,
12193
+ part: G,
12194
12194
  visible: !h(D) && !(R && L.has(R.columnId)),
12195
12195
  label: Xe(D, R),
12196
- resizable: !i && AT({ part: W, columnId: R == null ? void 0 : R.columnId }),
12196
+ resizable: !i && AT({ part: G, columnId: R == null ? void 0 : R.columnId }),
12197
12197
  movable: !!R && R.part !== "comparison" && j.has(R.columnId)
12198
12198
  };
12199
12199
  }), ue = Object.fromEntries(
@@ -12208,8 +12208,8 @@ function QB(e) {
12208
12208
  const E = s === "page-only" ? [] : s === "query" ? k : (B == null ? void 0 : B.sort) ?? [], V = new Map(
12209
12209
  E.map((D) => [D.columnId, D.direction])
12210
12210
  ), U = E.flatMap((D) => {
12211
- var W;
12212
- const R = (W = c.entries.get(D.columnId)) == null ? void 0 : W.baseKey;
12211
+ var G;
12212
+ const R = (G = c.entries.get(D.columnId)) == null ? void 0 : G.baseKey;
12213
12213
  return R && A.includes(R) ? [{ outputKey: R, desc: D.direction === "desc" }] : [];
12214
12214
  }), ie = !i && Vv(B);
12215
12215
  let we;
@@ -12219,19 +12219,19 @@ function QB(e) {
12219
12219
  we = { available: !1, reason: "no-addressable-columns" };
12220
12220
  else {
12221
12221
  const D = new Set(M ?? []), R = O.filter(
12222
- (W) => !L.has(W)
12222
+ (G) => !L.has(G)
12223
12223
  ).length;
12224
12224
  we = {
12225
12225
  available: !0,
12226
12226
  canReset: ie,
12227
- items: O.map((W) => {
12228
- const Ae = c.entries.get(W), Ue = L.has(W), Nn = V.get(W);
12227
+ items: O.map((G) => {
12228
+ const Ae = c.entries.get(G), Ue = L.has(G), Nn = V.get(G);
12229
12229
  return {
12230
- columnId: W,
12231
- label: d(W) ?? Ae.authorLabel,
12230
+ columnId: G,
12231
+ label: d(G) ?? Ae.authorLabel,
12232
12232
  authorLabel: Ae.authorLabel,
12233
12233
  hidden: Ue,
12234
- isNew: M !== void 0 && !D.has(W),
12234
+ isNew: M !== void 0 && !D.has(G),
12235
12235
  canHide: !Ue && R > 1,
12236
12236
  ...Nn ? { sort: Nn } : {}
12237
12237
  };
@@ -12388,17 +12388,17 @@ function ci(e, t) {
12388
12388
  const p = (C = e.fieldMeta) == null ? void 0 : C.expression, h = t.expression;
12389
12389
  return p || h ? i && s && c && p === h : i && s && c;
12390
12390
  }
12391
- function WT(e) {
12391
+ function GT(e) {
12392
12392
  const t = (e.label ?? "").trim();
12393
12393
  return t ? e.derivedLabel === void 0 ? !0 : t !== e.derivedLabel.trim() : !1;
12394
12394
  }
12395
12395
  function di(e) {
12396
- return WT(e) ? e.label.trim() : e.name || (e.label ?? "").trim();
12396
+ return GT(e) ? e.label.trim() : e.name || (e.label ?? "").trim();
12397
12397
  }
12398
12398
  function Md(e) {
12399
12399
  return di(e).toLowerCase().trim();
12400
12400
  }
12401
- function GT(e, t) {
12401
+ function WT(e, t) {
12402
12402
  return Md(e).localeCompare(Md(t), void 0, {
12403
12403
  numeric: !0,
12404
12404
  sensitivity: "base"
@@ -12429,7 +12429,7 @@ function Ad(e, t) {
12429
12429
  return r.startsWith(n) ? 0 : r.includes(n) ? 1 : [e.label, e.name].filter(Boolean).map(Qn).some((i) => i.includes(n)) ? 2 : 3;
12430
12430
  }
12431
12431
  function e1(e, t, n) {
12432
- return Ad(e, n) - Ad(t, n) || GT(e, t);
12432
+ return Ad(e, n) - Ad(t, n) || WT(e, t);
12433
12433
  }
12434
12434
  function Dl(e, t) {
12435
12435
  var n;
@@ -12626,26 +12626,26 @@ function o1(e, t) {
12626
12626
  return `${e}-${t}`;
12627
12627
  }
12628
12628
  const i1 = "CONTROL_PLACEHOLDER_QUOTED", rD = "CONTROL_REFERENCE_MISSING", oD = "CONTROL_VALUE_MISSING", a1 = "CONTROL_VALUE_INVALID", s1 = "CONTROL_CONTEXT_UNSUPPORTED", iD = "CONTROL_DEFINITION_DUPLICATE", aD = "CONTROL_DEFINITION_INVALID", xl = "CONTROL_BINDING_MAPPING_MISSING", l1 = "CONTROL_BINDING_TARGET_INVALID", Od = "CONTROL_BINDING_VALUE_INVALID";
12629
- class Ge extends Error {
12629
+ class We extends Error {
12630
12630
  constructor(n, r) {
12631
12631
  super(n);
12632
12632
  fe(this, "status", 400);
12633
12633
  fe(this, "details");
12634
- Object.setPrototypeOf(this, Ge.prototype), this.name = "ControlResolutionError", this.details = r;
12634
+ Object.setPrototypeOf(this, We.prototype), this.name = "ControlResolutionError", this.details = r;
12635
12635
  }
12636
12636
  }
12637
12637
  function sD(e, t) {
12638
12638
  const n = /* @__PURE__ */ new Map();
12639
12639
  for (const r of [...e, ...t]) {
12640
12640
  if (!r || typeof r != "object" || typeof r.id != "string" || r.id.trim().length === 0)
12641
- throw new Ge(
12641
+ throw new We(
12642
12642
  "Malformed control definition was provided for query execution.",
12643
12643
  {
12644
12644
  code: aD
12645
12645
  }
12646
12646
  );
12647
12647
  if (n.get(r.id))
12648
- throw new Ge(
12648
+ throw new We(
12649
12649
  `Duplicate control definition '${r.id}' was provided for query execution.`,
12650
12650
  {
12651
12651
  code: iD,
@@ -12761,7 +12761,7 @@ function uD(e) {
12761
12761
  var o;
12762
12762
  const t = e.definitions.get(e.binding.controlId);
12763
12763
  if (!t)
12764
- throw new Ge(
12764
+ throw new We(
12765
12765
  `Binding references unknown control '${e.binding.controlId}'.`,
12766
12766
  {
12767
12767
  code: rD,
@@ -12774,7 +12774,7 @@ function uD(e) {
12774
12774
  )) {
12775
12775
  if (!t.requiredAtExecution)
12776
12776
  return;
12777
- throw new Ge(
12777
+ throw new We(
12778
12778
  `Control '${e.binding.controlId}' must resolve to a concrete value before query execution.`,
12779
12779
  {
12780
12780
  code: oD,
@@ -12790,7 +12790,7 @@ function uD(e) {
12790
12790
  );
12791
12791
  } catch (i) {
12792
12792
  const a = i instanceof Error ? i.message : String(i);
12793
- throw new Ge(a, {
12793
+ throw new We(a, {
12794
12794
  code: Od,
12795
12795
  controlId: e.binding.controlId
12796
12796
  });
@@ -12801,7 +12801,7 @@ function uD(e) {
12801
12801
  return String(r);
12802
12802
  if (r instanceof Date && !Number.isNaN(r.getTime()))
12803
12803
  return r.toISOString();
12804
- throw new Ge(
12804
+ throw new We(
12805
12805
  `Binding control '${e.binding.controlId}' must resolve to a single scalar value.`,
12806
12806
  {
12807
12807
  code: Od,
@@ -12829,7 +12829,7 @@ function d1(e) {
12829
12829
  const t = e.binding.mapping[e.selectedValue];
12830
12830
  if (typeof t == "string" && t.trim().length > 0)
12831
12831
  return t;
12832
- throw new Ge(
12832
+ throw new We(
12833
12833
  `Binding for control '${e.binding.controlId}' does not map value '${e.selectedValue}'.`,
12834
12834
  {
12835
12835
  code: xl,
@@ -12841,7 +12841,7 @@ function u1(e) {
12841
12841
  const t = e.binding.mapping[e.selectedValue];
12842
12842
  if (t && typeof t == "object" && "role" in t && t.role === "groupby")
12843
12843
  return t;
12844
- throw new Ge(
12844
+ throw new We(
12845
12845
  `Binding for control '${e.binding.controlId}' does not map value '${e.selectedValue}' to a valid group-by field.`,
12846
12846
  {
12847
12847
  code: xl,
@@ -12853,7 +12853,7 @@ function f1(e) {
12853
12853
  const t = e.binding.mapping[e.selectedValue];
12854
12854
  if (t && typeof t == "object" && "role" in t && t.role === "metric")
12855
12855
  return t;
12856
- throw new Ge(
12856
+ throw new We(
12857
12857
  `Binding for control '${e.binding.controlId}' does not map value '${e.selectedValue}' to a valid metric field.`,
12858
12858
  {
12859
12859
  code: xl,
@@ -13359,7 +13359,7 @@ const Va = [
13359
13359
  labelOrigin: "presentation",
13360
13360
  formatOrigin: "presentation",
13361
13361
  fieldScope: "query"
13362
- }, Wi = {
13362
+ }, Gi = {
13363
13363
  metric: {
13364
13364
  ...On,
13365
13365
  parameters: "query",
@@ -13378,10 +13378,10 @@ const Va = [
13378
13378
  detail: { ...On },
13379
13379
  sort: { ...On, direction: "query" },
13380
13380
  pivot: { ...On, memberOrder: "presentation" }
13381
- }, Gi = (e) => Object.entries(e).filter(([t, n]) => n === "presentation" && t !== "id").map(([t]) => t), xD = {
13382
- metric: Gi(Wi.metric),
13383
- group_by: Gi(Wi.group_by),
13384
- detail: Gi(Wi.detail)
13381
+ }, Wi = (e) => Object.entries(e).filter(([t, n]) => n === "presentation" && t !== "id").map(([t]) => t), xD = {
13382
+ metric: Wi(Gi.metric),
13383
+ group_by: Wi(Gi.group_by),
13384
+ detail: Wi(Gi.detail)
13385
13385
  }, Ht = (e) => typeof e == "string" ? e.trim().toLowerCase() : "";
13386
13386
  function Al(e) {
13387
13387
  const t = e.source;
@@ -13613,16 +13613,16 @@ function OD(e, t) {
13613
13613
  g(De[tn]) && (Ye == null ? void 0 : Ye.pass) !== 1 && h.push(ae.label || ae.name);
13614
13614
  let It = Ye ? ae : v(ae);
13615
13615
  if (Ye) {
13616
- const D = we[Ye.oldIndex], R = l.some((W) => Jn(W, De[tn]));
13616
+ const D = we[Ye.oldIndex], R = l.some((G) => Jn(G, De[tn]));
13617
13617
  if (o && Ye.pass === 1)
13618
13618
  It = R && ae.label && ae.label !== D.label ? fa(D, ae.label) : D;
13619
13619
  else {
13620
- const W = { ...ae, id: D.id };
13620
+ const G = { ...ae, id: D.id };
13621
13621
  for (const Ue of vt)
13622
- R && sI.includes(Ue) || (Ue in D ? W[Ue] = D[Ue] : delete W[Ue]);
13622
+ R && sI.includes(Ue) || (Ue in D ? G[Ue] = D[Ue] : delete G[Ue]);
13623
13623
  Ye.pass === 2 && !R && D.label && D.label !== ae.label && s.push({ label: D.label, field: ae.name, role: E });
13624
13624
  const Ae = E === "metric" ? (An = D.parameters) == null ? void 0 : An.windowTransform : void 0;
13625
- Ae && (W.parameters = { ...W.parameters, windowTransform: Ae }), It = W;
13625
+ Ae && (G.parameters = { ...G.parameters, windowTransform: Ae }), It = G;
13626
13626
  }
13627
13627
  m.set(D, It);
13628
13628
  }
@@ -13950,7 +13950,7 @@ const Nr = ["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"], Dt = u.s
13950
13950
  ]), Ah = KD, zD = UD, zd = {
13951
13951
  comparison: "{ kind: 'inherit' (the dashboard's; default) | 'off' | 'previous_period' | 'previous_year' (offsetPeriods or offsetYears?: n, alignment?: 'calendar' | 'weekday', toDate?: true) | 'target' (targetValue: number) }. Targets on kpi and table. A period or year compares over the card's date grouping (a KPI's Trend By: dateField with timeGrain) or the dataset's primary date.",
13952
13952
  transform: "{ kind: 'running_total' | 'moving_average' (window?: 7, minPeriods?: 1) | 'difference_from_previous' (mode?: 'difference' | 'percent_change') | 'percent_of_total' (scope?: 'grand_total' | 'partition_total' + resetBy, output?: 'percent' | 'fraction'), orderBy?: { field, direction? } (default: first date grouping), resetBy?: [fields] (default: other groupings) }; null removes it. Not beside its own comparison."
13953
- }, WD = 10, GD = 200, Wd = 200, HD = 20, Nh = 8, $h = 48, Oh = ["left", "center", "right"], S1 = 13, T1 = {
13953
+ }, GD = 10, WD = 200, Gd = 200, HD = 20, Nh = 8, $h = 48, Oh = ["left", "center", "right"], S1 = 13, T1 = {
13954
13954
  title: 13,
13955
13955
  metadata: 11
13956
13956
  };
@@ -13994,10 +13994,10 @@ const ge = Dt, JD = u.object({
13994
13994
  cardinality: u.enum(["many_to_one", "one_to_one"]),
13995
13995
  defaultJoinType: u.enum(["LEFT", "INNER"]),
13996
13996
  description: u.string().optional()
13997
- }).strict(), Gd = u.object({ add: u.array(u.string()).optional(), remove: u.array(u.string()).optional() }).strict(), XD = u.object({
13997
+ }).strict(), Wd = u.object({ add: u.array(u.string()).optional(), remove: u.array(u.string()).optional() }).strict(), XD = u.object({
13998
13998
  instructions: u.string().nullable().optional(),
13999
- synonyms: Gd.optional(),
14000
- examples: Gd.optional()
13999
+ synonyms: Wd.optional(),
14000
+ examples: Wd.optional()
14001
14001
  }).strict().describe("instructions replaces (null clears); synonyms and example questions (examples) add or remove items."), ZD = ["higher_is_better", "lower_is_better", "neutral"], Hd = u.enum(ZD).nullable().optional(), Qd = u.string().min(1).optional(), eF = u.union([
14002
14002
  u.object({ dataset: ge, field: ge, aggregate: u.enum(Nr).optional() }).strict(),
14003
14003
  u.object({ metric: ge, dataset: ge.optional() }).strict()
@@ -14115,7 +14115,7 @@ function zh(e) {
14115
14115
  limit: Pl.optional()
14116
14116
  }).strict();
14117
14117
  }
14118
- const Wh = zh(Yh), Ua = u.object({
14118
+ const Gh = zh(Yh), Ua = u.object({
14119
14119
  domainId: $,
14120
14120
  datasetName: $,
14121
14121
  columns: u.array(Oe).min(1),
@@ -14125,7 +14125,7 @@ const Wh = zh(Yh), Ua = u.object({
14125
14125
  orderBy: u.object({ field: Oe, direction: u.enum(["asc", "desc"]) }).strict().optional(),
14126
14126
  limit: Pl.optional()
14127
14127
  }).strict(), Bl = u.object({ connectionId: $, sql: $ }).strict();
14128
- function Gh(e) {
14128
+ function Wh(e) {
14129
14129
  return u.object({
14130
14130
  domainId: $.optional(),
14131
14131
  datasetName: $.optional(),
@@ -14142,8 +14142,8 @@ function Gh(e) {
14142
14142
  sql: $.optional()
14143
14143
  }).strict();
14144
14144
  }
14145
- const Hh = Gh(Yh), sF = Hh, lF = zh(Uh), cF = Gh(Uh), Xd = u.object({ columns: u.array(Oe) }).strict(), $r = u.string().regex(/^\$[A-Za-z0-9_-]{1,64}$/, "A handle starts with $ and has letters, digits, _ or -."), dF = u.enum(dl), uF = u.enum([...dl, "text"]), Rn = u.string().max(GD), Qh = u.object({
14146
- decimals: u.number().int().min(0).max(WD).optional(),
14145
+ const Hh = Wh(Yh), sF = Hh, lF = zh(Uh), cF = Wh(Uh), Xd = u.object({ columns: u.array(Oe) }).strict(), $r = u.string().regex(/^\$[A-Za-z0-9_-]{1,64}$/, "A handle starts with $ and has letters, digits, _ or -."), dF = u.enum(dl), uF = u.enum([...dl, "text"]), Rn = u.string().max(WD), Qh = u.object({
14146
+ decimals: u.number().int().min(0).max(GD).optional(),
14147
14147
  temporal: u.union([
14148
14148
  u.object({ mode: u.literal("style"), dateStyle: u.enum(["short", "medium", "long"]) }).strict(),
14149
14149
  u.object({ mode: u.literal("pattern"), dialect: u.literal("semaphor_tokens"), pattern: $ }).strict(),
@@ -14189,7 +14189,7 @@ function Zh(e) {
14189
14189
  const eg = Zh(Xh), wF = Zh(vF), _F = u.enum(["full", "half", "third", "quarter"]), CF = u.union([
14190
14190
  u.enum(["top", "end"]),
14191
14191
  u.object({ after: u.union([$r, $]) }).strict()
14192
- ]), Zd = u.union([u.string(), u.number(), u.boolean()]), We = u.union([$r, $]), kF = u.object({
14192
+ ]), Zd = u.union([u.string(), u.number(), u.boolean()]), Ge = u.union([$r, $]), kF = u.object({
14193
14193
  label: $.nullable().optional(),
14194
14194
  hidden: u.boolean().optional(),
14195
14195
  width: u.number().nullable().optional(),
@@ -14283,7 +14283,7 @@ function rg(e, t = ng, n = et, r = eg) {
14283
14283
  }).strict(),
14284
14284
  u.object({
14285
14285
  op: u.literal("card.update"),
14286
- cardId: We,
14286
+ cardId: Ge,
14287
14287
  type: dF.optional(),
14288
14288
  title: $.optional(),
14289
14289
  description: u.string().nullable().optional(),
@@ -14313,13 +14313,13 @@ const tu = u.string(), nu = u.object({ operator: u.string(), values: u.array(u.u
14313
14313
  defaultPeriod: Jd.optional(),
14314
14314
  sheetIds: u.array($).min(1).optional(),
14315
14315
  /** Pins the filter on this card instead (no sheetIds). */
14316
- cardId: We.optional(),
14316
+ cardId: Ge.optional(),
14317
14317
  /** A pinned filter's place, 0 first. */
14318
14318
  position: u.number().int().optional()
14319
14319
  }).strict(),
14320
14320
  u.object({
14321
14321
  op: u.literal("filter.update"),
14322
- filterId: We,
14322
+ filterId: Ge,
14323
14323
  label: $.optional(),
14324
14324
  selection: u.enum(["single", "multiple"]).optional(),
14325
14325
  showAs: tu.optional(),
@@ -14335,12 +14335,12 @@ const tu = u.string(), nu = u.object({ operator: u.string(), values: u.array(u.u
14335
14335
  u.object({ op: u.literal("filter.remove"), filterId: $, cardId: $.optional() }).strict(),
14336
14336
  u.object({
14337
14337
  op: u.literal("filter.bind"),
14338
- filterId: We,
14338
+ filterId: Ge,
14339
14339
  // A data variable's name too (data variables DV-D30).
14340
- cardId: We.describe("A card id or handle, or a data variable's name."),
14340
+ cardId: Ge.describe("A card id or handle, or a data variable's name."),
14341
14341
  field: u.union([$, u.object({ name: $, datasetName: $ }).strict()])
14342
14342
  }).strict(),
14343
- u.object({ op: u.literal("filter.exclude"), filterId: We, cardId: We.describe("A card id or handle, or a data variable's name.") }).strict()
14343
+ u.object({ op: u.literal("filter.exclude"), filterId: Ge, cardId: Ge.describe("A card id or handle, or a data variable's name.") }).strict()
14344
14344
  ], DF = u.union([
14345
14345
  $,
14346
14346
  u.object({ ...fi, aggregate: u.enum(Nr).optional(), comparison: Ah.optional() }).strict()
@@ -14395,7 +14395,7 @@ function sg({
14395
14395
  updatable: a,
14396
14396
  addable: s
14397
14397
  }) {
14398
- const l = a ?? { label: $.nullable().optional(), presentation: n.nullable().optional(), emptyText: u.string().max(Wd).nullable().optional() }, c = s ?? { label: $.optional(), emptyText: u.string().max(Wd).optional() };
14398
+ const l = a ?? { label: $.nullable().optional(), presentation: n.nullable().optional(), emptyText: u.string().max(Gd).nullable().optional() }, c = s ?? { label: $.optional(), emptyText: u.string().max(Gd).optional() };
14399
14399
  return [
14400
14400
  u.object({
14401
14401
  op: u.literal("variable.add"),
@@ -14435,8 +14435,8 @@ const lg = u.object({
14435
14435
  u.object({ op: u.literal("sheet.add"), handle: $r.optional(), title: $ }).strict(),
14436
14436
  u.object({ op: u.literal("sheet.update"), sheetId: $, title: $ }).strict()
14437
14437
  ], dg = [
14438
- u.object({ op: u.literal("layout.tabs"), cardIds: u.array(We).min(2) }).strict(),
14439
- u.object({ op: u.literal("layout.untab"), cardId: We }).strict()
14438
+ u.object({ op: u.literal("layout.tabs"), cardIds: u.array(Ge).min(2) }).strict(),
14439
+ u.object({ op: u.literal("layout.untab"), cardId: Ge }).strict()
14440
14440
  ], Yr = {
14441
14441
  when: "{ operator: '=' | '!=' | '>' | '>=' | '<' | '<=', value } | { operator: 'between', values: [low, high] } | { operator: 'contains', value } | { operator: 'is_null' } | { top: n } | { bottom: n }; with color.",
14442
14442
  color: "red, amber, green, blue or gray, or a hex color: the cell or row when the condition holds.",
@@ -14465,12 +14465,12 @@ function ug(e) {
14465
14465
  return [
14466
14466
  u.object({
14467
14467
  op: u.literal("highlight.add"),
14468
- cardId: We,
14468
+ cardId: Ge,
14469
14469
  column: $.describe("The column's name in the outline."),
14470
14470
  apply: u.enum(["cell", "row"]).optional().describe("cell (default) or the whole row."),
14471
14471
  ...t
14472
14472
  }).strict(),
14473
- u.object({ op: u.literal("highlight.remove"), cardId: We, ruleId: $ }).strict(),
14473
+ u.object({ op: u.literal("highlight.remove"), cardId: Ge, ruleId: $ }).strict(),
14474
14474
  u.object({ op: u.literal("dashboard.update"), title: $.optional(), description: u.string().nullable().optional() }).strict()
14475
14475
  ];
14476
14476
  }
@@ -14496,7 +14496,7 @@ const BF = ["none", "subtle", "raised"], jF = [
14496
14496
  corners: u.union([u.enum(Ji(xv)), u.object({ cards: u.number().optional(), controls: u.number().optional() }).strict()]).optional().describe("Cards and controls together, or { cards, controls } px."),
14497
14497
  chartColors: u.union([u.array(u.string()), iu(u.array(u.string()))]).optional().describe("Hex colors in order; or { light, dark }."),
14498
14498
  barCorners: u.number().optional().describe("px.")
14499
- }).strict(), LF = eo([Wh, Ua, Bl], ["metric query", "records query (detail table)", "SQL query"]), qF = u.discriminatedUnion("op", [
14499
+ }).strict(), LF = eo([Gh, Ua, Bl], ["metric query", "records query (detail table)", "SQL query"]), qF = u.discriminatedUnion("op", [
14500
14500
  ...rg(LF),
14501
14501
  ...og,
14502
14502
  lg,
@@ -14508,7 +14508,7 @@ const BF = ["none", "subtle", "raised"], jF = [
14508
14508
  ]), $1 = qF.options.map((e) => e.shape.op.value), VF = 20, KF = 50, YF = u.object({ title: $, description: u.string().max(2e3).optional() }).strict().describe("A new private dashboard in place of dashboardId. Its changes add sheets, cards and filters; with no sheet.add it has one sheet.");
14509
14509
  function O1(e) {
14510
14510
  const t = e.create && !e.onScreen, n = (d) => e.sql ? eo([d, Ua, Bl], ["metric query", "records query (detail table)", "SQL query"]) : eo([d, Ua], ["metric query", "records query (detail table)"]), r = (d) => e.sql ? d : d.omit({ connectionId: !0, sql: !0 }), o = (d, f, m) => {
14511
- const p = n(m ? lF : Wh), h = r(m ? cF : Hh), g = rg(p, d, f, m ? wF : eg).map(
14511
+ const p = n(m ? lF : Gh), h = r(m ? cF : Hh), g = rg(p, d, f, m ? wF : eg).map(
14512
14512
  (b) => b.shape.op.value === "card.update" ? b.extend({ query: h.optional() }) : b
14513
14513
  ), y = [
14514
14514
  ...e.dashboards ? [
@@ -14593,7 +14593,7 @@ function au(e) {
14593
14593
  return { kind: "previous_year", offset: e.offsetYears ?? 1, alignment: e.alignment ?? "calendar", toDate: e.toDate === !0 };
14594
14594
  }
14595
14595
  }
14596
- function WF(e, t) {
14596
+ function GF(e, t) {
14597
14597
  const n = au(e), r = au(pi(t));
14598
14598
  return Object.keys({ ...n, ...r }).every((o) => n[o] === r[o]);
14599
14599
  }
@@ -14605,7 +14605,7 @@ function lu(e) {
14605
14605
  const n = t.kind === "previous_year" ? t.offsetYears ?? 1 : t.offsetPeriods ?? 1;
14606
14606
  return `${t.kind === "previous_year" ? n === 1 ? "the same period last year" : `the same period ${su(n, "year")} before` : n === 1 ? "the period before" : `the period ${su(n, "period")} before`}${t.alignment === "weekday" ? ", matching weekdays" : ""}${t.toDate ? ", to date" : ""}`;
14607
14607
  }
14608
- const GF = /* @__PURE__ */ new Set([
14608
+ const WF = /* @__PURE__ */ new Set([
14609
14609
  "bar",
14610
14610
  "horizontalBar",
14611
14611
  "line",
@@ -14629,7 +14629,7 @@ const GF = /* @__PURE__ */ new Set([
14629
14629
  "treemap"
14630
14630
  ]);
14631
14631
  function R1(e) {
14632
- return typeof e == "string" && GF.has(e);
14632
+ return typeof e == "string" && WF.has(e);
14633
14633
  }
14634
14634
  const HF = [
14635
14635
  "table",
@@ -14674,7 +14674,7 @@ const pg = [
14674
14674
  "running_total",
14675
14675
  "moving_average",
14676
14676
  "previous_period_delta"
14677
- ]), Wa = [
14677
+ ]), Ga = [
14678
14678
  "running_total",
14679
14679
  "moving_average",
14680
14680
  "previous_period_delta",
@@ -14714,7 +14714,7 @@ function Xi(e) {
14714
14714
  }
14715
14715
  function nx(e) {
14716
14716
  const t = e == null ? void 0 : e.function;
14717
- return Wa.includes(t) ? t : null;
14717
+ return Ga.includes(t) ? t : null;
14718
14718
  }
14719
14719
  function rx(e) {
14720
14720
  return !e || !Number.isFinite(e) ? 7 : Math.max(1, Math.floor(e));
@@ -14755,7 +14755,7 @@ function hi({
14755
14755
  resolvedTransforms: []
14756
14756
  };
14757
14757
  const a = i.filter(
14758
- (C) => !Wa.includes(
14758
+ (C) => !Ga.includes(
14759
14759
  cu(C)
14760
14760
  )
14761
14761
  );
@@ -14765,7 +14765,7 @@ function hi({
14765
14765
  const T = cu(C), w = typeof T == "string" && T.trim().length > 0 ? T : "undefined";
14766
14766
  return {
14767
14767
  code: he.INVALID_WINDOW_TRANSFORM,
14768
- message: `Metric "${Pn(C)}" uses unsupported window transform function "${w}". Supported functions: ${Wa.join(", ")}.`,
14768
+ message: `Metric "${Pn(C)}" uses unsupported window transform function "${w}". Supported functions: ${Ga.join(", ")}.`,
14769
14769
  metricId: C.id
14770
14770
  };
14771
14771
  }),
@@ -15075,7 +15075,7 @@ function yx(e, t) {
15075
15075
  }
15076
15076
  class wg extends Error {
15077
15077
  }
15078
- const G = (e) => {
15078
+ const W = (e) => {
15079
15079
  throw new wg(e);
15080
15080
  }, pr = "__count";
15081
15081
  function bx(e, t) {
@@ -15142,9 +15142,9 @@ function gi(e) {
15142
15142
  }
15143
15143
  const _g = (e) => _n(e.dataType);
15144
15144
  function Co(e) {
15145
- (e.calculatedFieldOrigin || e.fieldScope && e.fieldScope !== "domain") && G("a calculated field of this dashboard"), e.expression && !e.derivedField && e.fieldScope !== "domain" && G("a calculated field of this dashboard");
15145
+ (e.calculatedFieldOrigin || e.fieldScope && e.fieldScope !== "domain") && W("a calculated field of this dashboard"), e.expression && !e.derivedField && e.fieldScope !== "domain" && W("a calculated field of this dashboard");
15146
15146
  const t = e.parameters;
15147
- t != null && t.filters && G("a measure with its own filter");
15147
+ t != null && t.filters && W("a measure with its own filter");
15148
15148
  }
15149
15149
  function Me(e, t) {
15150
15150
  const n = Al(e);
@@ -15167,12 +15167,12 @@ function Ix(e, t, n) {
15167
15167
  function wx(e, t, n, r) {
15168
15168
  var T, w, x, A, z, I;
15169
15169
  const o = e.config ?? {};
15170
- !((T = o.metricColumns) != null && T.length) && !((w = o.groupByColumns) != null && w.length) && !((x = o.detailColumns) != null && x.length) && G("no fields yet"), (A = o.pivotByColumns) != null && A.length && G("pivot columns"), (I = (z = o.joinPlan) == null ? void 0 : z.joins) != null && I.some((k) => !k.autoResolved) && G("a join set in the editor");
15170
+ !((T = o.metricColumns) != null && T.length) && !((w = o.groupByColumns) != null && w.length) && !((x = o.detailColumns) != null && x.length) && W("no fields yet"), (A = o.pivotByColumns) != null && A.length && W("pivot columns"), (I = (z = o.joinPlan) == null ? void 0 : z.joins) != null && I.some((k) => !k.autoResolved) && W("a join set in the editor");
15171
15171
  const i = o.metricColumns ?? [], a = o.groupByColumns ?? [], s = o.detailColumns ?? [];
15172
15172
  [...i, ...a, ...s].forEach(Co);
15173
15173
  const l = Sg(o.filters, n), c = Tg(l), d = (k) => ({ query: k, ...c ? { timeWindowReadOnly: c } : {} }), f = typeof o.rowLimit == "number" && o.rowLimit > 0 && o.rowLimit <= Vh ? { limit: o.rowLimit } : {};
15174
15174
  if (t === "detail_table") {
15175
- (i.length || a.length) && G("a detail table with grouped columns"), s.length || G("no columns yet");
15175
+ (i.length || a.length) && W("a detail table with grouped columns"), s.length || W("no columns yet");
15176
15176
  const k = mu(l, void 0, n), N = pu(o.sortByColumns, o, n, void 0);
15177
15177
  return d({
15178
15178
  domainId: n.domainId,
@@ -15185,15 +15185,15 @@ function wx(e, t, n, r) {
15185
15185
  ...f
15186
15186
  });
15187
15187
  }
15188
- s.length && G("detail columns on an aggregated card"), i.length || G(`a ${t.replace(/_/g, " ")} without measures`), t === "kpi" && i.length > 1 && G("a KPI with several measures");
15188
+ s.length && W("detail columns on an aggregated card"), i.length || W(`a ${t.replace(/_/g, " ")} without measures`), t === "kpi" && i.length > 1 && W("a KPI with several measures");
15189
15189
  const m = a.filter((k) => k.granularity && _g(k));
15190
- m.length > 1 && G("more than one date grouping");
15190
+ m.length > 1 && W("more than one date grouping");
15191
15191
  const p = m[0], h = a.filter((k) => k !== p);
15192
- t === "kpi" && h.length && G("a KPI grouped by a dimension");
15192
+ t === "kpi" && h.length && W("a KPI grouped by a dimension");
15193
15193
  const g = !!(p && p.grainMode) && Mm({ cardType: e.type, configBacked: !0, shelf: "groupBy", dataType: p.dataType }).ok, y = p ? { dateField: Me(p, n), timeGrain: g ? Lh : kg(p.granularity) } : mu(l, void 0, n);
15194
- p && l.windowField && ct(l.windowField) !== ct(p) && G("a date window on another date field");
15194
+ p && l.windowField && ct(l.windowField) !== ct(p) && W("a date window on another date field");
15195
15195
  const b = lI({ groupedDate: p, measures: i, grouped: a.length > 0 }), v = b && { column: b.target, direction: b.direction }, _ = pu(o.sortByColumns, o, n, v), S = r ? yx(e, (k) => Me(k, n)) : void 0;
15196
- S && !S.ok && G(S.detail);
15196
+ S && !S.ok && W(S.detail);
15197
15197
  const C = S != null && S.ok ? S.measures : [];
15198
15198
  return d({
15199
15199
  domainId: n.domainId,
@@ -15208,16 +15208,16 @@ function wx(e, t, n, r) {
15208
15208
  });
15209
15209
  }
15210
15210
  function kg(e) {
15211
- return jh.includes(e ?? "") || G(`a grouping by ${e}`), e;
15211
+ return jh.includes(e ?? "") || W(`a grouping by ${e}`), e;
15212
15212
  }
15213
15213
  function mu(e, t, n) {
15214
15214
  return e.windowField ? { dateField: Me(e.windowField, n) } : {};
15215
15215
  }
15216
15216
  function pu(e, t, n, r) {
15217
15217
  if (!(e != null && e.length)) return;
15218
- e.length > 1 && G("a sort on several columns");
15218
+ e.length > 1 && W("a sort on several columns");
15219
15219
  const [o] = e, i = mr(t, o);
15220
- return i || G("a sort on a column the card doesn't show"), r && i === r.column && o.direction === r.direction ? void 0 : { field: i.role === "metric" ? Cg(i, n) : Me(i, n), direction: o.direction };
15220
+ return i || W("a sort on a column the card doesn't show"), r && i === r.column && o.direction === r.direction ? void 0 : { field: i.role === "metric" ? Cg(i, n) : Me(i, n), direction: o.direction };
15221
15221
  }
15222
15222
  const _x = {
15223
15223
  "=": "=",
@@ -15240,25 +15240,25 @@ const _x = {
15240
15240
  };
15241
15241
  function Cx(e, t) {
15242
15242
  const n = Array.isArray(t) ? t : [t];
15243
- (n.length !== 1 || typeof n[0] != "string") && G("a pattern filter on a value that isn't text");
15243
+ (n.length !== 1 || typeof n[0] != "string") && W("a pattern filter on a value that isn't text");
15244
15244
  const r = dI(e, n[0]);
15245
- return r || G("a pattern filter that matches a value exactly"), r;
15245
+ return r || W("a pattern filter that matches a value exactly"), r;
15246
15246
  }
15247
15247
  function Sg(e, t) {
15248
15248
  var r;
15249
15249
  const n = { filters: [] };
15250
15250
  if (!e) return n;
15251
- (e.negate || (r = e.groups) != null && r.length || e.logicalOperator !== "AND" && e.conditions.length > 1) && G("filters combined with OR or nested groups");
15251
+ (e.negate || (r = e.groups) != null && r.length || e.logicalOperator !== "AND" && e.conditions.length > 1) && W("filters combined with OR or nested groups");
15252
15252
  for (const o of e.conditions) {
15253
15253
  if (o.latestValue && o.latestValuePolicy === "snapshot") continue;
15254
- if (o.latestValue && G("a filter on the latest value of a field"), o.temporalBucket && G("a filter on a time bucket"), o.rawTemporal && G("a filter on a date and time picked from a result"), Co(o.field), o.relativeMeta) {
15255
- n.timeWindow && G("two date windows");
15254
+ if (o.latestValue && W("a filter on the latest value of a field"), o.temporalBucket && W("a filter on a time bucket"), o.rawTemporal && W("a filter on a date and time picked from a result"), Co(o.field), o.relativeMeta) {
15255
+ n.timeWindow && W("two date windows");
15256
15256
  const c = dt(o.relativeMeta);
15257
- c && Eo(o.operator) && G("a date before or after a point measured from today"), (!c || o.operator !== "between") && G("a date window the query can't state"), n.timeWindow = c, n.windowField = o.field;
15257
+ c && Eo(o.operator) && W("a date before or after a point measured from today"), (!c || o.operator !== "between") && W("a date window the query can't state"), n.timeWindow = c, n.windowField = o.field;
15258
15258
  continue;
15259
15259
  }
15260
15260
  const i = _x[o.operator];
15261
- i || G(`a "${o.operator}" filter`);
15261
+ i || W(`a "${o.operator}" filter`);
15262
15262
  const a = o.field.role === "metric" && !!o.field.aggregate, s = a ? (() => {
15263
15263
  const c = Me(o.field, t);
15264
15264
  return typeof c == "string" ? { name: c, aggregate: o.field.aggregate } : { ...c, aggregate: o.field.aggregate };
@@ -15272,9 +15272,9 @@ function Sg(e, t) {
15272
15272
  const c = Cx(o.operator, o.value);
15273
15273
  l.operator = c.operator, l.values = [c.value];
15274
15274
  } else if (i !== "is_null" && i !== "is_not_null") {
15275
- (i === "in" || i === "not_in") && !(Array.isArray(o.value) && o.value.length) && G("a list filter without a list of values"), (i === "between" || i === "not_between") && !(Array.isArray(o.value) && o.value.length === 2) && G("a range filter without both ends");
15275
+ (i === "in" || i === "not_in") && !(Array.isArray(o.value) && o.value.length) && W("a list filter without a list of values"), (i === "between" || i === "not_between") && !(Array.isArray(o.value) && o.value.length === 2) && W("a range filter without both ends");
15276
15276
  const c = Array.isArray(o.value) ? o.value : [o.value];
15277
- c.every((d) => ["string", "number", "boolean"].includes(typeof d)) || G("a filter value the query can't state"), l.values = c;
15277
+ c.every((d) => ["string", "number", "boolean"].includes(typeof d)) || W("a filter value the query can't state"), l.values = c;
15278
15278
  }
15279
15279
  n.filters.push(l);
15280
15280
  }
@@ -15283,25 +15283,25 @@ function Sg(e, t) {
15283
15283
  function Tg(e) {
15284
15284
  if (!e.timeWindow) return;
15285
15285
  const t = m0(e.windowField);
15286
- return Wb(e.timeWindow, { use: "cardFilter", columnHasTime: t }, "timeWindow");
15286
+ return Gb(e.timeWindow, { use: "cardFilter", columnHasTime: t }, "timeWindow");
15287
15287
  }
15288
15288
  function kx(e, t) {
15289
15289
  var p, h, g;
15290
- e || G("no fields yet");
15290
+ e || W("no fields yet");
15291
15291
  const n = e.spec;
15292
- (h = (p = n.joinPlan) == null ? void 0 : p.joins) != null && h.some((y) => !y.autoResolved) && G("a join set in the editor"), (g = n.measureFilters) != null && g.length && G("a measure filter");
15292
+ (h = (p = n.joinPlan) == null ? void 0 : p.joins) != null && h.some((y) => !y.autoResolved) && W("a join set in the editor"), (g = n.measureFilters) != null && g.length && W("a measure filter");
15293
15293
  const r = (y) => y.field, o = (y) => Me(r(y), t), i = [...n.rows, ...n.columns];
15294
15294
  i.forEach((y) => Co(r(y)));
15295
15295
  const a = n.measures.map((y) => {
15296
- y.kind !== "aggregate" && G("a calculated Matrix measure");
15296
+ y.kind !== "aggregate" && W("a calculated Matrix measure");
15297
15297
  const b = y.kind === "aggregate" ? y : void 0, v = r({ field: b.field });
15298
15298
  if (Co(v), v.name === "*" || v.name === pr) return pr;
15299
15299
  const _ = Me(v, t);
15300
15300
  return typeof _ == "string" ? { name: _, aggregate: b.aggregate } : { ..._, aggregate: b.aggregate };
15301
15301
  }), s = i.filter((y) => y.grain && _g(r(y)));
15302
- s.length > 1 && G("more than one date level");
15302
+ s.length > 1 && W("more than one date level");
15303
15303
  const l = s[0], c = Sg(n.filters, t);
15304
- l && c.windowField && ct(c.windowField) !== ct(r(l)) && G("a date window on another date field");
15304
+ l && c.windowField && ct(c.windowField) !== ct(r(l)) && W("a date window on another date field");
15305
15305
  const d = i.filter((y) => y !== l).map(o), f = {
15306
15306
  domainId: t.domainId,
15307
15307
  datasetName: t.datasetName,
@@ -15631,7 +15631,7 @@ function Ox(e, t) {
15631
15631
  if (!Nx.includes(n)) return;
15632
15632
  let r;
15633
15633
  if (e.source)
15634
- r = Go(t, e.source);
15634
+ r = Wo(t, e.source);
15635
15635
  else {
15636
15636
  const i = [e.entityId, e.entityName, e.qualifiedEntityName].filter((s) => !!s).map((s) => ke(s)), a = t.executableSources.filter(
15637
15637
  (s) => $x(s).some((l) => i.includes(l))
@@ -15753,7 +15753,7 @@ const Og = u.union([
15753
15753
  }).strict(), K1 = u.boolean(), Y1 = u.object({
15754
15754
  targets: Og.nullable().optional(),
15755
15755
  cardMappings: u.array(Rg).nullable().optional()
15756
- }).strict(), Ga = { kind: "allSheets" }, jx = "global-date";
15756
+ }).strict(), Wa = { kind: "allSheets" }, jx = "global-date";
15757
15757
  function Pg(e, t) {
15758
15758
  return {
15759
15759
  namespace: e,
@@ -15776,7 +15776,7 @@ function Lx(e) {
15776
15776
  function qx(e, t) {
15777
15777
  if (!("relativeMeta" in e) || !e.relativeMeta)
15778
15778
  return e;
15779
- const { relativeMeta: n, ...r } = e, o = Wu(r.operation) ? t == null ? void 0 : t(n) : void 0;
15779
+ const { relativeMeta: n, ...r } = e, o = Gu(r.operation) ? t == null ? void 0 : t(n) : void 0;
15780
15780
  return o ? { ...r, values: Zu(r.operation, o) } : r;
15781
15781
  }
15782
15782
  function Vx(e, t, n, r) {
@@ -15845,7 +15845,7 @@ function Yx(e) {
15845
15845
  kind: "filter",
15846
15846
  label: e.label,
15847
15847
  variableName: Bg(e.namespace, e.sourceAlias),
15848
- scope: Ga,
15848
+ scope: Wa,
15849
15849
  runtimeScope: "shared",
15850
15850
  presentation: { placement: "hidden" },
15851
15851
  filter: e.filter,
@@ -15875,7 +15875,7 @@ function Ux(e, t) {
15875
15875
  e,
15876
15876
  `selection_${t.sourceCardId}`
15877
15877
  ),
15878
- scope: Ga,
15878
+ scope: Wa,
15879
15879
  runtimeScope: "shared",
15880
15880
  presentation: { placement: "hidden" },
15881
15881
  sourceCardId: n,
@@ -15884,7 +15884,7 @@ function Ux(e, t) {
15884
15884
  fields: { kind: "wholeRow" },
15885
15885
  multipleSelection: !0,
15886
15886
  selectionCheckboxes: "never",
15887
- targets: Ga,
15887
+ targets: Wa,
15888
15888
  // Source-card mappings name cards on the source dashboard.
15889
15889
  cardMappings: []
15890
15890
  }
@@ -15978,12 +15978,12 @@ function z1(e) {
15978
15978
  var t;
15979
15979
  return (t = e == null ? void 0 : e[0]) == null ? void 0 : t.contextMode;
15980
15980
  }
15981
- function Wx(e) {
15981
+ function Gx(e) {
15982
15982
  return (e ?? []).some(
15983
15983
  (t) => t.definitions.length > 0 || t.selectionDefinitions.length > 0
15984
15984
  );
15985
15985
  }
15986
- const Gx = [
15986
+ const Wx = [
15987
15987
  "interactionFilters",
15988
15988
  "full",
15989
15989
  "none"
@@ -16043,10 +16043,10 @@ function Zx(e, t) {
16043
16043
  value: { kind: "selection", selection: n.data }
16044
16044
  };
16045
16045
  }
16046
- function W1(e) {
16046
+ function G1(e) {
16047
16047
  if (!Array.isArray(e)) return;
16048
16048
  const t = e.flatMap((n) => {
16049
- if (!tt(n) || typeof n.namespace != "string" || !n.namespace || !Gx.includes(n.contextMode))
16049
+ if (!tt(n) || typeof n.namespace != "string" || !n.namespace || !Wx.includes(n.contextMode))
16050
16050
  return [];
16051
16051
  const r = n.namespace;
16052
16052
  if (n.contextMode === "none")
@@ -16096,7 +16096,7 @@ function W1(e) {
16096
16096
  });
16097
16097
  return t.length ? t : void 0;
16098
16098
  }
16099
- function G1({
16099
+ function W1({
16100
16100
  dashboard: e,
16101
16101
  dashboardInputValues: t,
16102
16102
  transientContexts: n
@@ -16108,7 +16108,7 @@ function G1({
16108
16108
  ) || Object.values((t == null ? void 0 : t.byDocumentSectionId) || {}).some(
16109
16109
  (o) => Object.keys(o).length > 0
16110
16110
  ));
16111
- return !!(e.inputs !== void 0 && e.inputs !== null && (!Array.isArray(e.inputs) || e.inputs.length > 0) || e.defaultInputValues || $t(e).inputs.length > 0 || r || Wx(n));
16111
+ return !!(e.inputs !== void 0 && e.inputs !== null && (!Array.isArray(e.inputs) || e.inputs.length > 0) || e.defaultInputValues || $t(e).inputs.length > 0 || r || Gx(n));
16112
16112
  }
16113
16113
  function Vl({
16114
16114
  dashboard: e,
@@ -16509,7 +16509,7 @@ function dE(e, t) {
16509
16509
  ));
16510
16510
  }
16511
16511
  }
16512
- const Wg = /^[A-Za-z][A-Za-z0-9_]*$/, uE = /* @__PURE__ */ new Set([
16512
+ const Gg = /^[A-Za-z][A-Za-z0-9_]*$/, uE = /* @__PURE__ */ new Set([
16513
16513
  "document",
16514
16514
  "generatedAt",
16515
16515
  "pageNumber",
@@ -16518,7 +16518,7 @@ const Wg = /^[A-Za-z][A-Za-z0-9_]*$/, uE = /* @__PURE__ */ new Set([
16518
16518
  function Iu(e, t) {
16519
16519
  var p;
16520
16520
  const n = [], r = e.name, o = `The variable ${r || "(unnamed)"}`;
16521
- Wg.test(r ?? "") ? uE.has(r) ? n.push({
16521
+ Gg.test(r ?? "") ? uE.has(r) ? n.push({
16522
16522
  code: "nameReserved",
16523
16523
  message: `${o} uses a name report values already use.`,
16524
16524
  fix: "Choose another name.",
@@ -16690,12 +16690,12 @@ function nj(e, t) {
16690
16690
  function rj(e) {
16691
16691
  return e.map((t) => `Skipped filter ${t.filterId || t.name || "unknown"}: ${t.reason}`);
16692
16692
  }
16693
- function Gg(e) {
16693
+ function Wg(e) {
16694
16694
  return e.replace(/[`"[\]]/g, "").trim().toLowerCase();
16695
16695
  }
16696
16696
  function Xn(e) {
16697
16697
  if (!e) return [];
16698
- const t = Gg(e);
16698
+ const t = Wg(e);
16699
16699
  if (!t) return [];
16700
16700
  const n = t.split(".").filter(Boolean);
16701
16701
  if (n.length === 0) return [];
@@ -16710,7 +16710,7 @@ function mE(e, t) {
16710
16710
  var f, m, p, h;
16711
16711
  if (((f = t.cardDataSource) == null ? void 0 : f.mode) === "semanticDomain") return;
16712
16712
  const n = e.fieldMeta, r = /* @__PURE__ */ new Set();
16713
- Wv(
16713
+ Gv(
16714
16714
  n,
16715
16715
  r
16716
16716
  );
@@ -16747,7 +16747,7 @@ function mE(e, t) {
16747
16747
  );
16748
16748
  return i.every(
16749
16749
  (g) => d.some(
16750
- (y) => Gu({
16750
+ (y) => Wu({
16751
16751
  requested: Zr({
16752
16752
  qualifiedName: g,
16753
16753
  capabilities: l
@@ -16776,7 +16776,7 @@ function Kl(e) {
16776
16776
  }), Xn(e.targetQualifiedTableName).forEach(
16777
16777
  (o) => t.add(o)
16778
16778
  ), e.targetQualifiedTableName) {
16779
- const o = Gg(e.targetQualifiedTableName).split(".").filter(Boolean), i = o[o.length - 1];
16779
+ const o = Wg(e.targetQualifiedTableName).split(".").filter(Boolean), i = o[o.length - 1];
16780
16780
  i && t.add(i);
16781
16781
  }
16782
16782
  return (e.additionalAllowedIdentifiers || []).forEach((o) => {
@@ -17056,8 +17056,8 @@ function ty(e, t) {
17056
17056
  }
17057
17057
  function ny(e) {
17058
17058
  const { valueField: t, valueSources: n, sourceIndex: r } = e, o = [], i = (a) => {
17059
- if (!Wo(a, t)) return;
17060
- const s = Go(
17059
+ if (!Go(a, t)) return;
17060
+ const s = Wo(
17061
17061
  r,
17062
17062
  a.field.source
17063
17063
  );
@@ -17101,7 +17101,7 @@ function TE(e, t, n) {
17101
17101
  };
17102
17102
  }
17103
17103
  function ry(e) {
17104
- const t = Go(
17104
+ const t = Wo(
17105
17105
  e.sourceIndex,
17106
17106
  e.target.field.source
17107
17107
  );
@@ -17122,7 +17122,7 @@ function DE(e, t) {
17122
17122
  var n;
17123
17123
  return t.kind !== "config" ? [] : (((n = e.application) == null ? void 0 : n.cards) || []).flatMap((r) => {
17124
17124
  if (r.kind !== "bound") return [];
17125
- const o = Go(
17125
+ const o = Wo(
17126
17126
  t,
17127
17127
  r.target.field.source
17128
17128
  );
@@ -17162,7 +17162,7 @@ function iy(e, t, n = Nt(t), r) {
17162
17162
  if (n.kind === "sql")
17163
17163
  return e.unmappedTargetPolicy === "requireFieldProof" ? { status: "notApplicable" } : { status: "sql" };
17164
17164
  if (n.kind !== "config" || !n.executableSources.length) return { status: "notApplicable" };
17165
- const a = TE(e, r, n), s = a.logicalValueField ? Wf({ logicalValueField: a.logicalValueField, candidates: a.candidates }) : { status: "notApplicable" }, l = s.status === "notApplicable" && a.logicalValueField ? w0({
17165
+ const a = TE(e, r, n), s = a.logicalValueField ? Gf({ logicalValueField: a.logicalValueField, candidates: a.candidates }) : { status: "notApplicable" }, l = s.status === "notApplicable" && a.logicalValueField ? w0({
17166
17166
  logicalValueField: a.logicalValueField,
17167
17167
  acceptedTargets: DE(e, n)
17168
17168
  }) : s;
@@ -17256,7 +17256,7 @@ function aj({
17256
17256
  continue;
17257
17257
  }
17258
17258
  const m = a.get(d.id), p = (m == null ? void 0 : m.filterValue) || s.get(d.filter.id);
17259
- if (!o && !Gv(d)) {
17259
+ if (!o && !Wv(d)) {
17260
17260
  l.push({
17261
17261
  status: "skip",
17262
17262
  inputId: d.id,
@@ -17414,7 +17414,7 @@ function EE(e) {
17414
17414
  var t;
17415
17415
  for (const n of e.filterInputs) {
17416
17416
  if (!Bs(n).some(
17417
- (i) => de(i.source, e.clicked.source) && Wo({ kind: "field", field: i }, e.clicked)
17417
+ (i) => de(i.source, e.clicked.source) && Go({ kind: "field", field: i }, e.clicked)
17418
17418
  )) continue;
17419
17419
  const o = (t = n.application) == null ? void 0 : t.cards.find(
17420
17420
  (i) => i.cardId === e.cardId
@@ -17445,7 +17445,7 @@ function ME(e) {
17445
17445
  const m = a(c.target);
17446
17446
  return m ? s(m, "borrowedFromFilter", c.inputId) : { status: "block", reason: "staleBinding", borrowed: c };
17447
17447
  }
17448
- const d = Wf({
17448
+ const d = Gf({
17449
17449
  logicalValueField: n,
17450
17450
  candidates: ny({
17451
17451
  valueField: n,
@@ -17584,7 +17584,7 @@ function lj(e) {
17584
17584
  function cj(e) {
17585
17585
  return e.map((t) => `${t.path}: ${t.message}`).join("; ");
17586
17586
  }
17587
- const RE = new Set(Gb.filter((e) => e !== "custom"));
17587
+ const RE = new Set(Wb.filter((e) => e !== "custom"));
17588
17588
  function PE(e, t, n) {
17589
17589
  var o;
17590
17590
  const r = t;
@@ -17660,7 +17660,7 @@ function KE(e) {
17660
17660
  throw new qE(e.id);
17661
17661
  return { ...e, granularity: "day" };
17662
17662
  }
17663
- function Wl(e) {
17663
+ function Gl(e) {
17664
17664
  const t = e.cardConfig ?? e.card.config;
17665
17665
  if (!t || !e.supportsCardType(e.card.type) || xm({
17666
17666
  hasExecutableConfig: Dr(t),
@@ -17685,7 +17685,7 @@ function Wl(e) {
17685
17685
  }
17686
17686
  function uj(e) {
17687
17687
  if (Qo(e.card))
17688
- return Wl({
17688
+ return Gl({
17689
17689
  ...e,
17690
17690
  card: e.card,
17691
17691
  supportsCardType: (t) => t === "table"
@@ -17693,15 +17693,15 @@ function uj(e) {
17693
17693
  }
17694
17694
  function fj(e) {
17695
17695
  if (Qo(e.card))
17696
- return Wl({
17696
+ return Gl({
17697
17697
  ...e,
17698
17698
  card: e.card,
17699
- supportsCardType: Ws
17699
+ supportsCardType: Gs
17700
17700
  });
17701
17701
  }
17702
17702
  function mj(e) {
17703
17703
  if (Qo(e.card))
17704
- return Wl({
17704
+ return Gl({
17705
17705
  ...e,
17706
17706
  card: e.card,
17707
17707
  // Raw detail-table presentation has its own result/adapter contract.
@@ -17742,19 +17742,19 @@ const YE = [
17742
17742
  "table",
17743
17743
  "detailTable",
17744
17744
  "matrixTable"
17745
- ], WE = new Set(
17745
+ ], GE = new Set(
17746
17746
  zE
17747
17747
  );
17748
17748
  function pj(e) {
17749
- return typeof e == "string" && WE.has(e);
17749
+ return typeof e == "string" && GE.has(e);
17750
17750
  }
17751
17751
  function hj(e) {
17752
17752
  return typeof e == "string" && UE.has(e);
17753
17753
  }
17754
- const GE = 150, HE = 50, QE = 500;
17754
+ const WE = 150, HE = 50, QE = 500;
17755
17755
  function JE(e) {
17756
17756
  return {
17757
- size: typeof (e == null ? void 0 : e.width) == "number" && e.width ? e.width : GE,
17757
+ size: typeof (e == null ? void 0 : e.width) == "number" && e.width ? e.width : WE,
17758
17758
  minSize: (e == null ? void 0 : e.minWidth) ?? HE,
17759
17759
  maxSize: (e == null ? void 0 : e.maxWidth) ?? QE
17760
17760
  };
@@ -17978,11 +17978,11 @@ function _j(e, t, n) {
17978
17978
  columns: l
17979
17979
  } : void 0;
17980
17980
  }
17981
- function Gl(e) {
17981
+ function Wl(e) {
17982
17982
  return (e == null ? void 0 : e.kind) === "document";
17983
17983
  }
17984
17984
  function Cj(e) {
17985
- return (e || []).filter((t) => !Gl(t));
17985
+ return (e || []).filter((t) => !Wl(t));
17986
17986
  }
17987
17987
  function cM(e, t, n) {
17988
17988
  var a, s, l, c;
@@ -17993,7 +17993,7 @@ function cM(e, t, n) {
17993
17993
  if (r.levelId !== void 0 && !o[r.axis].some((d) => d.id === r.levelId))
17994
17994
  return "Its level left the Matrix.";
17995
17995
  const i = (c = (l = e.config) == null ? void 0 : l.matrix) == null ? void 0 : c.spec;
17996
- if (r.oppositePath !== void 0 && i && !Gs(i, o)(r.axis === "rows" ? "columns" : "rows", r.oppositePath, !0))
17996
+ if (r.oppositePath !== void 0 && i && !Ws(i, o)(r.axis === "rows" ? "columns" : "rows", r.oppositePath, !0))
17997
17997
  return "Its member path changed.";
17998
17998
  }
17999
17999
  function gy(e) {
@@ -18716,14 +18716,14 @@ function zM(e, t) {
18716
18716
  s.comparisonPolarity && r.push(`Favorable direction (${s.label || s.name})`);
18717
18717
  return r;
18718
18718
  }
18719
- function WM(e, t) {
18719
+ function GM(e, t) {
18720
18720
  var a;
18721
18721
  const n = (a = e.preferences) == null ? void 0 : a.chartOptions;
18722
18722
  if (!n) return [];
18723
18723
  const r = [], o = n.plugins, i = o == null ? void 0 : o.legend;
18724
18724
  return i && !t.settings.has("legend") && r.push("Legend"), He(i, ["display", "position"]).length && r.push("Legend alignment"), He(o, ["legend"]).length && r.push("Chart options"), ot(n.indexAxis) && !t.settings.has("orientation") && r.push("Orientation"), He(n, ["plugins", "indexAxis"]).length && r.push("Chart options"), r;
18725
18725
  }
18726
- function GM(e, t) {
18726
+ function WM(e, t) {
18727
18727
  var l, c;
18728
18728
  const { xAxisConfig: n, yAxisConfig: r } = e.preferences ?? {}, o = [n, r].filter(ot);
18729
18729
  if (!o.length) return [];
@@ -18760,8 +18760,8 @@ function XM(e) {
18760
18760
  const { card: t, kind: n } = e, r = t.preferences ?? {}, o = [
18761
18761
  ...YM.filter(([i]) => ot(r[i])).map(([, i]) => i),
18762
18762
  ...zM(t, n),
18763
- ...WM(t, n),
18764
18763
  ...GM(t, n),
18764
+ ...WM(t, n),
18765
18765
  ...HM(t, n),
18766
18766
  ...QM(t, n, e.nameOfResultKey),
18767
18767
  ...n.type === "matrix" ? JM(t) : [],
@@ -19518,11 +19518,11 @@ function zj(e) {
19518
19518
  const t = e.target;
19519
19519
  return t instanceof HTMLInputElement && t.hasAttribute(OA) && t.value !== "";
19520
19520
  }
19521
- const Wj = [];
19521
+ const Gj = [];
19522
19522
  function RA(e) {
19523
19523
  return e.label || e.name;
19524
19524
  }
19525
- function Gj(e, t, n) {
19525
+ function Wj(e, t, n) {
19526
19526
  const r = e == null ? void 0 : e.drill;
19527
19527
  return {
19528
19528
  ...e,
@@ -19717,14 +19717,14 @@ function Py({
19717
19717
  let o = Ee(
19718
19718
  t || {}
19719
19719
  );
19720
- const i = [], a = GA({
19720
+ const i = [], a = WA({
19721
19721
  dashboard: e,
19722
19722
  sheetId: n,
19723
19723
  cardId: r
19724
19724
  });
19725
19725
  if (a.status === "unresolved")
19726
19726
  return { status: "unresolved" };
19727
- o = WA({
19727
+ o = GA({
19728
19728
  dashboardInputValues: o,
19729
19729
  savedSheetId: n,
19730
19730
  cardId: r,
@@ -19789,7 +19789,7 @@ function Py({
19789
19789
  cleared: i
19790
19790
  };
19791
19791
  }
19792
- function WA({
19792
+ function GA({
19793
19793
  dashboardInputValues: e,
19794
19794
  savedSheetId: t,
19795
19795
  cardId: n,
@@ -19842,7 +19842,7 @@ function ia(e, t) {
19842
19842
  ])
19843
19843
  ) : void 0;
19844
19844
  }
19845
- function GA({
19845
+ function WA({
19846
19846
  dashboard: e,
19847
19847
  sheetId: t,
19848
19848
  cardId: n
@@ -19956,7 +19956,7 @@ function nL({
19956
19956
  continue;
19957
19957
  const p = ((d = m.filter) == null ? void 0 : d.id) || ((f = m.filterReference) == null ? void 0 : f.filterId);
19958
19958
  if (!p) continue;
19959
- const h = s.get(p), g = h ? Wp(h) : void 0, y = (g == null ? void 0 : g.status) === "set" ? g : { status: "cleared" };
19959
+ const h = s.get(p), g = h ? Gp(h) : void 0, y = (g == null ? void 0 : g.status) === "set" ? g : { status: "cleared" };
19960
19960
  l = Up(
19961
19961
  l,
19962
19962
  m,
@@ -20535,7 +20535,7 @@ function In(e, t, n = !1) {
20535
20535
  ] : [{ run: r, path: i, inBlock: n }];
20536
20536
  });
20537
20537
  }
20538
- function Wy(e, t) {
20538
+ function Gy(e, t) {
20539
20539
  return e.type === "list" ? e.items.flatMap((n, r) => In(n, `${t}.items[${r}]`)) : In(e.content, `${t}.content`);
20540
20540
  }
20541
20541
  const lN = (e) => {
@@ -20543,10 +20543,10 @@ const lN = (e) => {
20543
20543
  return Te(e) ? 0 : ((t = Zt(e).text) == null ? void 0 : t.length) ?? 0;
20544
20544
  };
20545
20545
  function cN(e) {
20546
- return e.reduce((t, n) => t + Wy(n, "").reduce((r, { run: o }) => r + lN(o), 0), 0);
20546
+ return e.reduce((t, n) => t + Gy(n, "").reduce((r, { run: o }) => r + lN(o), 0), 0);
20547
20547
  }
20548
20548
  function pL(e, t = 60) {
20549
- return Gy([{ type: "paragraph", content: [...e] }], t);
20549
+ return Wy([{ type: "paragraph", content: [...e] }], t);
20550
20550
  }
20551
20551
  function yr(e) {
20552
20552
  return e.map((t) => {
@@ -20555,7 +20555,7 @@ function yr(e) {
20555
20555
  return n.variable !== void 0 ? `{{${n.variable}}}` : n.text;
20556
20556
  }).join("");
20557
20557
  }
20558
- function Gy(e, t = 60) {
20558
+ function Wy(e, t = 60) {
20559
20559
  const n = e.flatMap((r) => r.type === "list" ? r.items.map(yr) : [yr(r.content)]).join(" ").replace(/\s+/g, " ").trim();
20560
20560
  return n.length > t ? `${n.slice(0, t).trimEnd()}…` : n;
20561
20561
  }
@@ -21101,7 +21101,7 @@ function nc(e, t, n, r) {
21101
21101
  path: t,
21102
21102
  fix: "Keep it as it reads, or change it in the editor."
21103
21103
  };
21104
- if (!Wg.test(e.split(".")[0])) return ss(t);
21104
+ if (!Gg.test(e.split(".")[0])) return ss(t);
21105
21105
  if (!So(e, n.held, n.catalog))
21106
21106
  return MN(e, n.catalog, t);
21107
21107
  }
@@ -21259,7 +21259,7 @@ function IL(e) {
21259
21259
  });
21260
21260
  if (b.length) return { ok: !1, problems: b };
21261
21261
  const v = /* @__PURE__ */ new Map(), _ = (w) => To(w, h, v, r), S = (w) => {
21262
- for (const { run: x } of Wy(w, "")) {
21262
+ for (const { run: x } of Gy(w, "")) {
21263
21263
  const A = Te(x) ? void 0 : Zt(x).variable;
21264
21264
  A !== void 0 && v.set(A, (v.get(A) ?? 0) + 1);
21265
21265
  }
@@ -21275,7 +21275,7 @@ function lb(e, t = []) {
21275
21275
  return uN(n.flatMap((r) => r.type === "list" ? r.items.flat() : r.content));
21276
21276
  }
21277
21277
  function VN(e, t = []) {
21278
- return Sn(e) ? Gy(Ii(e.blocks, Mn(vi(t)), /* @__PURE__ */ new Set())) : "";
21278
+ return Sn(e) ? Wy(Ii(e.blocks, Mn(vi(t)), /* @__PURE__ */ new Set())) : "";
21279
21279
  }
21280
21280
  function KN(e, t) {
21281
21281
  const n = Array.from({ length: e.length + 1 }, () => new Array(t.length + 1).fill(0));
@@ -21296,7 +21296,7 @@ class it extends Error {
21296
21296
  }
21297
21297
  function UN(e, t) {
21298
21298
  for (const [n, r] of (e.sheets ?? []).entries())
21299
- if (!Gl(r))
21299
+ if (!Wl(r))
21300
21300
  for (const [o, i] of (r.frames ?? []).entries()) {
21301
21301
  const a = (i.cards ?? []).findIndex((s) => s.id === t);
21302
21302
  if (a >= 0)
@@ -21314,7 +21314,7 @@ function wL(e, t) {
21314
21314
  const n = e.sheets ?? [], r = n.findIndex((l) => l.id === t.sheetId), o = n[r];
21315
21315
  if (!o)
21316
21316
  throw new it("sheet_not_found", `No sheet ${t.sheetId} on this dashboard.`);
21317
- if (Gl(o))
21317
+ if (Wl(o))
21318
21318
  throw new it(
21319
21319
  "sheet_not_a_grid",
21320
21320
  "This sheet is a document: add to it through the document.",
@@ -21336,7 +21336,7 @@ function wL(e, t) {
21336
21336
  ...t.changeIndex !== void 0 ? { changeIndex: t.changeIndex } : {}
21337
21337
  })),
21338
21338
  clauses: [
21339
- oe.added(s == null ? void 0 : s.title, (s == null ? void 0 : s.type) ?? "", cb(o), s ? zN(s, e) : void 0, WN(t.placement, o))
21339
+ oe.added(s == null ? void 0 : s.title, (s == null ? void 0 : s.type) ?? "", cb(o), s ? zN(s, e) : void 0, GN(t.placement, o))
21340
21340
  ]
21341
21341
  };
21342
21342
  }
@@ -21346,7 +21346,7 @@ function zN(e, t) {
21346
21346
  const n = (a = (i = e.preferences) == null ? void 0 : i.textVisualOptions) == null ? void 0 : a.richContent, r = VN(n, t.inputs), o = lb(n, { inputs: t.inputs, variables: t.variables });
21347
21347
  return r ? `${Q(r)}${o ? `, ${o}` : ""}` : o;
21348
21348
  }
21349
- function WN(e, t) {
21349
+ function GN(e, t) {
21350
21350
  var o;
21351
21351
  if (!e) return;
21352
21352
  const n = [], r = e.position;
@@ -21358,13 +21358,13 @@ function WN(e, t) {
21358
21358
  }
21359
21359
  return e.width && n.push(`${e.width} width`), n.length ? n.join(", ") : void 0;
21360
21360
  }
21361
- function GN(e) {
21361
+ function WN(e) {
21362
21362
  const t = e.code === "frame_already_on_sheet" ? "frame_id_taken" : "frame_not_found";
21363
21363
  return new it(t, e.message);
21364
21364
  }
21365
21365
  function rc(e, t) {
21366
21366
  const n = Xv(e, t);
21367
- if (!n.ok) throw GN(n.failure);
21367
+ if (!n.ok) throw WN(n.failure);
21368
21368
  return {
21369
21369
  ...e,
21370
21370
  frames: n.frames,
@@ -21615,7 +21615,7 @@ function kL(e) {
21615
21615
  }
21616
21616
  const O = F.metric, j = O.label || O.name;
21617
21617
  let L = M.comparison;
21618
- L && WF(L, O.comparison) && (L = void 0);
21618
+ L && GF(L, O.comparison) && (L = void 0);
21619
21619
  let K = M.transform;
21620
21620
  if (K === null && !((S = O.parameters) != null && S.windowTransform) && (K = void 0), K) {
21621
21621
  const V = ju(t, M, K);
@@ -22269,7 +22269,7 @@ function S$(e, t, n) {
22269
22269
  ({ card: c }) => (l.has(c.id) || s.some((d) => d.card === c)) && (!n || n.includes(c.id))
22270
22270
  );
22271
22271
  }
22272
- function WL(e, t, n, r, o, i) {
22272
+ function GL(e, t, n, r, o, i) {
22273
22273
  const a = S$(
22274
22274
  e,
22275
22275
  n,
@@ -22484,7 +22484,7 @@ function yb({
22484
22484
  sheetId: t,
22485
22485
  cardId: n == null ? void 0 : n.id,
22486
22486
  sectionId: r,
22487
- sheetKind: o || G$(e, t)
22487
+ sheetKind: o || W$(e, t)
22488
22488
  }, d = Vl({
22489
22489
  dashboard: e,
22490
22490
  card: n,
@@ -22496,7 +22496,7 @@ function yb({
22496
22496
  const m = f.filter(
22497
22497
  (_) => Ut(_, c)
22498
22498
  );
22499
- W$(m);
22499
+ G$(m);
22500
22500
  const p = m.map(
22501
22501
  (_) => R$({
22502
22502
  dashboard: e,
@@ -22748,7 +22748,7 @@ function L$(e) {
22748
22748
  e.input
22749
22749
  ) ? (r == null ? void 0 : r.comparisonSelection) ?? (d ? { mode: "off" } : void 0) : void 0;
22750
22750
  if (d) {
22751
- const m = Wp(
22751
+ const m = Gp(
22752
22752
  vb(e.input, d)
22753
22753
  );
22754
22754
  return (m == null ? void 0 : m.status) === "set" ? {
@@ -22856,14 +22856,14 @@ function z$(e) {
22856
22856
  }
22857
22857
  return n;
22858
22858
  }
22859
- function W$(e) {
22859
+ function G$(e) {
22860
22860
  const [t] = z$(e);
22861
22861
  if (t)
22862
22862
  throw new Error(
22863
22863
  `Duplicate dashboard input variableName "${t.input.variableName}" for inputs "${t.previousInputId}" and "${t.input.id}" in the same resolved scope.`
22864
22864
  );
22865
22865
  }
22866
- function G$(e, t) {
22866
+ function W$(e, t) {
22867
22867
  var r;
22868
22868
  if (!t)
22869
22869
  return;
@@ -22989,7 +22989,7 @@ export {
22989
22989
  y$ as b0,
22990
22990
  ci as b1,
22991
22991
  Zp as b2,
22992
- Wk as b3,
22992
+ Gk as b3,
22993
22993
  q_ as b4,
22994
22994
  pS as b5,
22995
22995
  kL as b6,
@@ -23014,8 +23014,8 @@ export {
23014
23014
  u_ as bP,
23015
23015
  sl as bQ,
23016
23016
  Jt as bR,
23017
- WI as bS,
23018
- GI as bT,
23017
+ GI as bS,
23018
+ WI as bT,
23019
23019
  $f as bU,
23020
23020
  ZO as bV,
23021
23021
  ij as bW,
@@ -23038,7 +23038,7 @@ export {
23038
23038
  jN as bm,
23039
23039
  Bl as bn,
23040
23040
  Ua as bo,
23041
- Wh as bp,
23041
+ Gh as bp,
23042
23042
  $e as bq,
23043
23043
  Lh as br,
23044
23044
  Mm as bs,
@@ -23054,7 +23054,7 @@ export {
23054
23054
  pC as c0,
23055
23055
  vR as c1,
23056
23056
  Yw as c2,
23057
- Ws as c3,
23057
+ Gs as c3,
23058
23058
  Fm as c4,
23059
23059
  xm as c5,
23060
23060
  IR as c6,
@@ -23063,8 +23063,8 @@ export {
23063
23063
  Am as c9,
23064
23064
  NP as cA,
23065
23065
  $P as cB,
23066
- Wo as cC,
23067
- Wf as cD,
23066
+ Go as cC,
23067
+ Gf as cD,
23068
23068
  w0 as cE,
23069
23069
  _S as cF,
23070
23070
  Ep as cG,
@@ -23077,7 +23077,7 @@ export {
23077
23077
  Xt as cN,
23078
23078
  lm as cO,
23079
23079
  rR as cP,
23080
- Wg as cQ,
23080
+ Gg as cQ,
23081
23081
  uE as cR,
23082
23082
  nj as cS,
23083
23083
  Q0 as cT,
@@ -23106,11 +23106,11 @@ export {
23106
23106
  $0 as cp,
23107
23107
  st as cq,
23108
23108
  B0 as cr,
23109
- Go as cs,
23109
+ Wo as cs,
23110
23110
  nR as ct,
23111
23111
  am as cu,
23112
23112
  j_ as cv,
23113
- Wm as cw,
23113
+ Gm as cw,
23114
23114
  yS as cx,
23115
23115
  Fp as cy,
23116
23116
  xp as cz,
@@ -23137,7 +23137,7 @@ export {
23137
23137
  xl as dI,
23138
23138
  l1 as dJ,
23139
23139
  Od as dK,
23140
- Ge as dL,
23140
+ We as dL,
23141
23141
  sD as dM,
23142
23142
  El as dN,
23143
23143
  uD as dO,
@@ -23176,7 +23176,7 @@ export {
23176
23176
  EE as dv,
23177
23177
  ME as dw,
23178
23178
  Je as dx,
23179
- Gs as dy,
23179
+ Ws as dy,
23180
23180
  Zw as dz,
23181
23181
  aT as e,
23182
23182
  yN as e$,
@@ -23219,7 +23219,7 @@ export {
23219
23219
  pp as e_,
23220
23220
  y0 as ea,
23221
23221
  b0 as eb,
23222
- GO as ec,
23222
+ WO as ec,
23223
23223
  HO as ed,
23224
23224
  QO as ee,
23225
23225
  v0 as ef,
@@ -23230,7 +23230,7 @@ export {
23230
23230
  FD as ek,
23231
23231
  b1 as el,
23232
23232
  v1 as em,
23233
- Wi as en,
23233
+ Gi as en,
23234
23234
  xD as eo,
23235
23235
  ED as ep,
23236
23236
  St as eq,
@@ -23257,8 +23257,8 @@ export {
23257
23257
  zl as f9,
23258
23258
  cl as fA,
23259
23259
  mp as fB,
23260
- WC as fC,
23261
- GC as fD,
23260
+ GC as fC,
23261
+ WC as fD,
23262
23262
  uP as fE,
23263
23263
  Yn as fF,
23264
23264
  lr as fG,
@@ -23320,13 +23320,13 @@ export {
23320
23320
  du as g7,
23321
23321
  Ey as g8,
23322
23322
  EA as g9,
23323
- GS as gA,
23323
+ WS as gA,
23324
23324
  mB as gB,
23325
23325
  HP as gC,
23326
23326
  $p as gD,
23327
23327
  jP as gE,
23328
23328
  uB as gF,
23329
- WS as gG,
23329
+ GS as gG,
23330
23330
  Oa as gH,
23331
23331
  HS as gI,
23332
23332
  aB as gJ,
@@ -23374,7 +23374,7 @@ export {
23374
23374
  QP as gy,
23375
23375
  JP as gz,
23376
23376
  d0 as h,
23377
- lT as h$,
23377
+ Xj as h$,
23378
23378
  Rw as h0,
23379
23379
  yR as h1,
23380
23380
  kO as h2,
@@ -23385,264 +23385,264 @@ export {
23385
23385
  Uo as h7,
23386
23386
  UR as h8,
23387
23387
  BO as h9,
23388
- jB as hA,
23389
- VB as hB,
23390
- sM as hC,
23391
- _j as hD,
23392
- YB as hE,
23393
- DR as hF,
23394
- UB as hG,
23395
- TO as hH,
23396
- lu as hI,
23397
- it as hJ,
23398
- rc as hK,
23399
- oe as hL,
23400
- PR as hM,
23401
- el as hN,
23402
- tj as hO,
23403
- YN as hP,
23404
- AO as hQ,
23405
- dE as hR,
23406
- dM as hS,
23407
- cb as hT,
23408
- Ck as hU,
23409
- Wn as hV,
23410
- ud as hW,
23411
- id as hX,
23412
- Rs as hY,
23413
- Ps as hZ,
23414
- SB as h_,
23388
+ I$ as hA,
23389
+ ar as hB,
23390
+ rL as hC,
23391
+ DB as hD,
23392
+ oL as hE,
23393
+ qL as hF,
23394
+ eL as hG,
23395
+ zA as hH,
23396
+ G1 as hI,
23397
+ YA as hJ,
23398
+ UL as hK,
23399
+ u0 as hL,
23400
+ VO as hM,
23401
+ a0 as hN,
23402
+ AR as hO,
23403
+ Xs as hP,
23404
+ pg as hQ,
23405
+ hg as hR,
23406
+ z1 as hS,
23407
+ vB as hT,
23408
+ aj as hU,
23409
+ Yj as hV,
23410
+ XB as hW,
23411
+ Gj as hX,
23412
+ XR as hY,
23413
+ W1 as hZ,
23414
+ q1 as h_,
23415
23415
  O_ as ha,
23416
23416
  BP as hb,
23417
23417
  Ug as hc,
23418
23418
  sL as hd,
23419
- WL as he,
23419
+ GL as he,
23420
23420
  zL as hf,
23421
23421
  Iw as hg,
23422
23422
  HD as hh,
23423
- Wd as hi,
23423
+ Gd as hi,
23424
23424
  cP as hj,
23425
23425
  vd as hk,
23426
23426
  zn as hl,
23427
23427
  CP as hm,
23428
- Dr as hn,
23429
- QB as ho,
23430
- WB as hp,
23431
- QE as hq,
23432
- HE as hr,
23433
- GE as hs,
23434
- zC as ht,
23435
- hj as hu,
23436
- FR as hv,
23437
- i_ as hw,
23438
- yj as hx,
23439
- pj as hy,
23440
- qB as hz,
23428
+ YI as hn,
23429
+ Qo as ho,
23430
+ KE as hp,
23431
+ hj as hq,
23432
+ i_ as hr,
23433
+ y_ as hs,
23434
+ pj as ht,
23435
+ Dr as hu,
23436
+ HF as hv,
23437
+ _j as hw,
23438
+ Ee as hx,
23439
+ bB as hy,
23440
+ gB as hz,
23441
23441
  HB as i,
23442
- Wj as i$,
23443
- Up as i0,
23444
- gt as i1,
23445
- TB as i2,
23446
- $w as i3,
23447
- Ow as i4,
23448
- jL as i5,
23449
- iL as i6,
23450
- FB as i7,
23451
- Rt as i8,
23452
- en as i9,
23453
- y_ as iA,
23454
- HF as iB,
23455
- Ee as iC,
23456
- bB as iD,
23457
- gB as iE,
23458
- I$ as iF,
23459
- rL as iG,
23460
- DB as iH,
23461
- oL as iI,
23462
- qL as iJ,
23463
- eL as iK,
23464
- zA as iL,
23465
- W1 as iM,
23466
- YA as iN,
23467
- UL as iO,
23468
- u0 as iP,
23469
- VO as iQ,
23470
- a0 as iR,
23471
- AR as iS,
23472
- Xs as iT,
23473
- pg as iU,
23474
- hg as iV,
23475
- z1 as iW,
23476
- vB as iX,
23477
- aj as iY,
23478
- Yj as iZ,
23479
- XB as i_,
23480
- M1 as ia,
23481
- iE as ib,
23482
- Fa as ic,
23483
- pL as id,
23484
- CL as ie,
23485
- _L as ig,
23486
- wL as ih,
23487
- Fj as ii,
23488
- oR as ij,
23489
- ii as ik,
23490
- BL as il,
23491
- ar as im,
23492
- xS as io,
23493
- Lm as ip,
23494
- SO as iq,
23495
- RR as ir,
23496
- yd as is,
23497
- I_ as it,
23498
- WT as iu,
23499
- oP as iv,
23500
- _T as iw,
23501
- YI as ix,
23502
- Qo as iy,
23503
- KE as iz,
23442
+ Fj as i$,
23443
+ Zj as i0,
23444
+ oR as i1,
23445
+ yn as i2,
23446
+ LL as i3,
23447
+ R$ as i4,
23448
+ QB as i5,
23449
+ GB as i6,
23450
+ QE as i7,
23451
+ HE as i8,
23452
+ WE as i9,
23453
+ dM as iA,
23454
+ cb as iB,
23455
+ Ck as iC,
23456
+ Gn as iD,
23457
+ ud as iE,
23458
+ id as iF,
23459
+ Rs as iG,
23460
+ Ps as iH,
23461
+ SB as iI,
23462
+ lT as iJ,
23463
+ Up as iK,
23464
+ gt as iL,
23465
+ TB as iM,
23466
+ $w as iN,
23467
+ Ow as iO,
23468
+ jL as iP,
23469
+ iL as iQ,
23470
+ FB as iR,
23471
+ Rt as iS,
23472
+ en as iT,
23473
+ M1 as iU,
23474
+ iE as iV,
23475
+ Fa as iW,
23476
+ pL as iX,
23477
+ CL as iY,
23478
+ _L as iZ,
23479
+ wL as i_,
23480
+ zC as ia,
23481
+ FR as ib,
23482
+ yj as ic,
23483
+ qB as id,
23484
+ jB as ie,
23485
+ VB as ig,
23486
+ sM as ih,
23487
+ YB as ii,
23488
+ DR as ij,
23489
+ UB as ik,
23490
+ BB as il,
23491
+ py as im,
23492
+ wj as io,
23493
+ TO as ip,
23494
+ lu as iq,
23495
+ it as ir,
23496
+ rc as is,
23497
+ oe as it,
23498
+ PR as iu,
23499
+ el as iv,
23500
+ tj as iw,
23501
+ YN as ix,
23502
+ AO as iy,
23503
+ dE as iz,
23504
23504
  QR as j,
23505
- dP as j$,
23506
- XR as j0,
23507
- G1 as j1,
23508
- q1 as j2,
23509
- Xj as j3,
23510
- Zj as j4,
23511
- yn as j5,
23512
- LL as j6,
23513
- R$ as j7,
23514
- eR as j8,
23515
- h_ as j9,
23516
- B1 as jA,
23517
- fy as jB,
23518
- py as jC,
23519
- lM as jD,
23520
- nS as jE,
23521
- mM as jF,
23522
- Tj as jG,
23523
- MP as jH,
23524
- sS as jI,
23525
- iS as jJ,
23526
- aS as jK,
23527
- Jk as jL,
23528
- kp as jM,
23529
- Cp as jN,
23530
- rS as jO,
23531
- Xk as jP,
23532
- lR as jQ,
23533
- eS as jR,
23534
- tS as jS,
23535
- ww as jT,
23536
- $i as jU,
23537
- tP as jV,
23538
- LO as jW,
23539
- OR as jX,
23540
- xL as jY,
23541
- WR as jZ,
23542
- zR as j_,
23543
- HR as ja,
23544
- oC as jb,
23545
- $R as jc,
23546
- tR as jd,
23547
- qm as je,
23548
- NR as jf,
23549
- vw as jg,
23550
- V1 as jh,
23551
- xP as ji,
23552
- OL as jj,
23553
- ML as jk,
23554
- KP as jl,
23555
- YP as jm,
23556
- jm as jn,
23557
- WP as jo,
23558
- GP as jp,
23559
- tB as jq,
23560
- VP as jr,
23561
- ub as js,
23562
- FL as jt,
23563
- oc as ju,
23564
- jk as jv,
23565
- P1 as jw,
23566
- Bj as jx,
23567
- b_ as jy,
23568
- $_ as jz,
23505
+ GR as j$,
23506
+ ii as j0,
23507
+ BL as j1,
23508
+ xS as j2,
23509
+ Lm as j3,
23510
+ SO as j4,
23511
+ RR as j5,
23512
+ yd as j6,
23513
+ I_ as j7,
23514
+ GT as j8,
23515
+ oP as j9,
23516
+ Bj as jA,
23517
+ b_ as jB,
23518
+ $_ as jC,
23519
+ B1 as jD,
23520
+ fy as jE,
23521
+ lM as jF,
23522
+ nS as jG,
23523
+ mM as jH,
23524
+ Tj as jI,
23525
+ MP as jJ,
23526
+ sS as jK,
23527
+ iS as jL,
23528
+ aS as jM,
23529
+ Jk as jN,
23530
+ kp as jO,
23531
+ Cp as jP,
23532
+ rS as jQ,
23533
+ Xk as jR,
23534
+ lR as jS,
23535
+ eS as jT,
23536
+ tS as jU,
23537
+ ww as jV,
23538
+ $i as jW,
23539
+ tP as jX,
23540
+ LO as jY,
23541
+ OR as jZ,
23542
+ xL as j_,
23543
+ _T as ja,
23544
+ eR as jb,
23545
+ h_ as jc,
23546
+ HR as jd,
23547
+ oC as je,
23548
+ $R as jf,
23549
+ tR as jg,
23550
+ qm as jh,
23551
+ NR as ji,
23552
+ vw as jj,
23553
+ V1 as jk,
23554
+ xP as jl,
23555
+ OL as jm,
23556
+ ML as jn,
23557
+ KP as jo,
23558
+ YP as jp,
23559
+ jm as jq,
23560
+ GP as jr,
23561
+ WP as js,
23562
+ tB as jt,
23563
+ VP as ju,
23564
+ ub as jv,
23565
+ FL as jw,
23566
+ oc as jx,
23567
+ jk as jy,
23568
+ P1 as jz,
23569
23569
  qu as k,
23570
- rM as k$,
23571
- qC as k0,
23572
- CC as k1,
23573
- ei as k2,
23574
- tp as k3,
23575
- Pi as k4,
23576
- gp as k5,
23577
- Ek as k6,
23578
- al as k7,
23579
- RC as k8,
23580
- ni as k9,
23581
- L1 as kA,
23582
- MR as kB,
23583
- xO as kC,
23584
- Ha as kD,
23585
- bb as kE,
23586
- $$ as kF,
23587
- z$ as kG,
23588
- B$ as kH,
23589
- tL as kI,
23590
- bO as kJ,
23591
- yO as kK,
23592
- nL as kL,
23593
- Lt as kM,
23594
- qA as kN,
23595
- wj as kO,
23596
- Vf as kP,
23597
- zo as kQ,
23598
- HI as kR,
23599
- PO as kS,
23600
- iP as kT,
23601
- IO as kU,
23602
- cR as kV,
23603
- fj as kW,
23604
- gj as kX,
23605
- Zk as kY,
23606
- Ni as kZ,
23607
- nM as k_,
23608
- uj as ka,
23609
- oE as kb,
23610
- MO as kc,
23611
- AT as kd,
23612
- zB as ke,
23613
- Dj as kf,
23614
- ER as kg,
23615
- xR as kh,
23616
- iC as ki,
23617
- GR as kj,
23618
- EP as kk,
23619
- oS as kl,
23620
- R_ as km,
23621
- BI as kn,
23622
- wB as ko,
23623
- XS as kp,
23624
- Kp as kq,
23625
- yB as kr,
23626
- IB as ks,
23627
- Jj as kt,
23628
- Qj as ku,
23629
- Hj as kv,
23630
- Gj as kw,
23631
- Z1 as kx,
23632
- zg as ky,
23633
- ej as kz,
23634
- GB as l,
23570
+ nM as k$,
23571
+ zR as k0,
23572
+ dP as k1,
23573
+ qC as k2,
23574
+ CC as k3,
23575
+ ei as k4,
23576
+ tp as k5,
23577
+ Pi as k6,
23578
+ gp as k7,
23579
+ Ek as k8,
23580
+ al as k9,
23581
+ zg as kA,
23582
+ ej as kB,
23583
+ L1 as kC,
23584
+ MR as kD,
23585
+ xO as kE,
23586
+ Ha as kF,
23587
+ bb as kG,
23588
+ $$ as kH,
23589
+ z$ as kI,
23590
+ B$ as kJ,
23591
+ tL as kK,
23592
+ bO as kL,
23593
+ yO as kM,
23594
+ nL as kN,
23595
+ Lt as kO,
23596
+ qA as kP,
23597
+ Vf as kQ,
23598
+ zo as kR,
23599
+ HI as kS,
23600
+ PO as kT,
23601
+ iP as kU,
23602
+ IO as kV,
23603
+ cR as kW,
23604
+ fj as kX,
23605
+ gj as kY,
23606
+ Zk as kZ,
23607
+ Ni as k_,
23608
+ RC as ka,
23609
+ ni as kb,
23610
+ uj as kc,
23611
+ oE as kd,
23612
+ MO as ke,
23613
+ AT as kf,
23614
+ zB as kg,
23615
+ Dj as kh,
23616
+ ER as ki,
23617
+ xR as kj,
23618
+ iC as kk,
23619
+ WR as kl,
23620
+ EP as km,
23621
+ oS as kn,
23622
+ R_ as ko,
23623
+ BI as kp,
23624
+ wB as kq,
23625
+ XS as kr,
23626
+ Kp as ks,
23627
+ yB as kt,
23628
+ IB as ku,
23629
+ Jj as kv,
23630
+ Qj as kw,
23631
+ Hj as kx,
23632
+ Wj as ky,
23633
+ Z1 as kz,
23634
+ WB as l,
23635
23635
  Oy as l$,
23636
- UC as l0,
23637
- my as l1,
23638
- gP as l2,
23639
- lp as l3,
23640
- sk as l4,
23641
- yP as l5,
23642
- bP as l6,
23643
- rk as l7,
23644
- ld as l8,
23645
- vP as l9,
23636
+ rM as l0,
23637
+ UC as l1,
23638
+ my as l2,
23639
+ gP as l3,
23640
+ lp as l4,
23641
+ sk as l5,
23642
+ yP as l6,
23643
+ bP as l7,
23644
+ rk as l8,
23645
+ ld as l9,
23646
23646
  km as lA,
23647
23647
  w$ as lB,
23648
23648
  tm as lC,
@@ -23670,9 +23670,9 @@ export {
23670
23670
  M$ as lY,
23671
23671
  UA as lZ,
23672
23672
  Ry as l_,
23673
- hC as la,
23674
- rP as lb,
23675
- BB as lc,
23673
+ vP as la,
23674
+ hC as lb,
23675
+ rP as lc,
23676
23676
  DO as ld,
23677
23677
  ZR as le,
23678
23678
  eP as lf,
@@ -23681,7 +23681,7 @@ export {
23681
23681
  n1 as li,
23682
23682
  hB as lj,
23683
23683
  KT as lk,
23684
- WO as ll,
23684
+ GO as ll,
23685
23685
  p0 as lm,
23686
23686
  qO as ln,
23687
23687
  KO as lo,
@@ -23706,8 +23706,8 @@ export {
23706
23706
  qR as m5,
23707
23707
  IC as m6,
23708
23708
  Bk as m7,
23709
- WD as m8,
23710
- GD as m9,
23709
+ GD as m8,
23710
+ WD as m9,
23711
23711
  zx as mA,
23712
23712
  Nd as mB,
23713
23713
  F$ as mC,
@@ -23799,9 +23799,9 @@ export {
23799
23799
  on as s,
23800
23800
  Br as t,
23801
23801
  Nt as u,
23802
- Gl as v,
23802
+ Wl as v,
23803
23803
  Ky as w,
23804
- Wp as x,
23804
+ Gp as x,
23805
23805
  Ne as y,
23806
23806
  Sd as z
23807
23807
  };