react-semaphor 0.1.602 → 0.1.603

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 (107) hide show
  1. package/dist/analytics-protocol/index.js +415 -375
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
  7. package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
  8. package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
  9. package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
  10. package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
  11. package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
  12. package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
  13. package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
  14. package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
  16. package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
  17. package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
  18. package/dist/chunks/dates-BnrXF4bb.js +185 -0
  19. package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
  20. package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
  21. package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
  22. package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
  23. package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
  24. package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
  26. package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
  27. package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
  28. package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
  29. package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
  30. package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
  32. package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
  33. package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
  34. package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
  35. package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
  37. package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
  38. package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
  39. package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
  40. package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
  41. package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
  42. package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
  43. package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
  44. package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
  45. package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
  46. package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
  47. package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
  48. package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +2466 -2343
  51. package/dist/format-utils/index.js +205 -204
  52. package/dist/index.js +20 -20
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
  57. package/dist/types/index.js +5 -5
  58. package/dist/types/lib/document/document-edits.d.ts +0 -4
  59. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  60. package/dist/types/lib/types/common-types.d.ts +0 -2
  61. package/dist/types/lib/types/explorer-types.d.ts +1 -1
  62. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
  63. package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
  64. package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
  65. package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
  66. package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
  67. package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
  68. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
  69. package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
  70. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  71. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
  72. package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
  73. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
  74. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
  75. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  76. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
  77. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
  78. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
  79. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  80. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  81. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
  82. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
  83. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
  84. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
  85. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
  86. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
  87. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
  88. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
  89. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
  90. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
  91. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
  92. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
  93. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
  94. package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
  95. package/dist/types/shared/format-utils/index.d.ts +1 -0
  96. package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
  97. package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
  98. package/dist/types/shared/temporal/index.d.ts +2 -0
  99. package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
  100. package/dist/types/shared/temporal/temporal.d.ts +27 -0
  101. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
  102. package/dist/usage-events/index.js +1 -1
  103. package/package.json +3 -2
  104. package/dist/chunks/dates-Bz-qM5px.js +0 -164
  105. package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
  106. package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
  107. package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
@@ -1,21 +1,22 @@
1
- import { jp as Tn, dA as Vn, cJ as Mn, be as kn, bL as xn, t as Pn, cB as wn, jq as Te, ft as dt, fw as On, ch as _n, jr as An, aJ as Bn, iq as ut, is as En, c2 as Ve, js as ft, e4 as de, Y as Rn, iu as qn, s as _, ii as ue, q as Me, jt as jn, iz as Nn, dY as pt, d_ as mt, dJ as zn, e3 as Ln, e1 as Ge, e2 as Kn, h as Gn, dL as Hn, dX as Un, dV as Qn, c5 as gt, bG as $n, a9 as A, ha as yt, cN as Jn, a8 as Wn, ju as fe, jv as bt, jw as Yn, u as Zn, jx as ke, jj as pe, jy as Xn, jz as xe, jA as er, jB as tr, jC as nr, jD as rr, jE as or, w as Pe, jF as ir, x as U, r as ar, m as sr, jG as L, jH as lr, jI as te, jJ as It, i8 as we, S as cr, jK as dr, jL as ur, i1 as Ct, jM as fr, jN as pr, o as mr, jO as gr, jP as ht, jQ as yr, jR as br, jS as Ir, ci as vt, jT as Cr, jU as hr, jV as Ft, v as Oe, de as vr, aa as Fr, z as Dt, h9 as Dr, jW as Sr, jX as Tr, jY as Vr, dd as Mr, jg as kr, B as xr, C as He, L as Pr, jZ as wr, j_ as Or, df as _r, j$ as Ar } from "./resolve-dashboard-input-context-CULCE_hM.js";
2
- import { am as Br, a6 as J, K as Er, w as Rr, ay as Ce, x as qr, a9 as ne, aA as St, V as jr, b as Nr, k as zr, aE as Lr, aF as Kr } from "./validators-ClWHpYql.js";
3
- import { q as Tt } from "./matrix-operation-contract--DkNCOzd.js";
4
- import "./analytics-base-schemas-DevrgqQb.js";
1
+ import { jw as Vn, dE as Mn, cN as kn, bi as xn, bP as Pn, v as wn, cF as On, jx as Te, fx as dt, fA as _n, cl as An, jy as En, aM as Bn, iA as ut, iC as Rn, c6 as Ve, jz as ft, e8 as de, Z as qn, iE as jn, s as _, it as ue, u as Me, jA as Nn, iJ as zn, e0 as pt, e2 as mt, dN as Ln, e7 as Kn, e5 as Ge, e6 as Gn, h as Hn, dP as Un, d$ as Qn, dZ as $n, c9 as gt, bK as Zn, a8 as A, hj as yt, cR as Wn, ac as Jn, jB as fe, jC as bt, jD as Yn, w as Xn, jE as ke, jq as pe, jF as er, jG as xe, jH as tr, jI as nr, jJ as rr, jK as or, jL as ir, y as Pe, jM as ar, z as U, r as sr, m as lr, jN as L, jO as cr, jP as te, jQ as It, ij as we, T as dr, jR as ur, jS as fr, ib as Ct, jT as pr, jU as mr, o as gr, jV as yr, jW as ht, jX as br, jY as Ir, jZ as Cr, cm as vt, j_ as hr, j$ as vr, k0 as Ft, x as Oe, di as Fr, ad as Dr, q as Dt, hi as Sr, k1 as Tr, k2 as Vr, k3 as Mr, dh as kr, jn as xr, C as Pr, D as He, M as wr, k4 as Or, k5 as _r, dj as Ar, k6 as Er } from "./resolve-dashboard-input-context-Rtl1ffmE.js";
2
+ import { am as Br, a6 as Z, K as Rr, w as qr, ay as Ce, x as jr, a9 as ne, aA as St, V as Nr, b as zr, k as Lr, aE as Kr, aF as Gr } from "./validators-Baf3VIf5.js";
3
+ import { q as Tt } from "./matrix-operation-contract-DPBj69D8.js";
4
+ import "./analytics-base-schemas-DsUh5Q3C.js";
5
5
  import "./pickers-DkqmtnTL.js";
6
6
  import { canonicalizeSupportedCurrencyCode as Vt } from "../value-format-preferences/index.js";
7
- import { ZodError as Gr } from "zod";
8
- import { b as re, r as Hr, b7 as Ur, i as Qr, aQ as $r, aj as Ue, aN as Qe } from "./pivot-result-contract-expectations-C8KL7hPx.js";
9
- import { aE as Mt, aF as kt, aG as be, a3 as Jr, aD as xt, C as he, aH as N, A as W, i as Pt, w as Wr, q as Yr, v as Zr, B as _e, aI as Xr, al as eo, G as wt, F as to, K as $e, P as Ot, Q as _t, J as At } from "./bookmark-state-CBSTdW6q.js";
7
+ import { ZodError as Hr } from "zod";
8
+ import { b as re, r as Ur, ba as Qr, i as $r, aT as Zr, ak as Ue, aP as Qe } from "./pivot-result-contract-expectations-BYqAmG9n.js";
9
+ import { aE as Mt, aF as kt, aG as be, a4 as Wr, aD as xt, C as he, aH as N, A as W, i as Pt, w as Jr, q as Yr, v as Xr, B as _e, aI as eo, am as to, I as wt, H as no, L as $e, Q as Ot, R as _t, K as At } from "./bookmark-state-n7AaNzR_.js";
10
10
  import "./schema-C9NPiIru.js";
11
11
  import "./index-CV_Kzou0.js";
12
- import "./context-BJoEFgNl.js";
13
- import { a as no, i as ro } from "./matrix-analytical-definition-CgQgVeeI.js";
14
- import { D as oo } from "./report-runtime-context-E7USjN7E.js";
15
- import { isPdfTableCardType as io, PDF_CAPACITY as ao } from "../pdf-export-policy/index.js";
16
- import { K as Je } from "./raw-temporal-value-E416F-0L.js";
17
- import { t as so, c as lo, n as co } from "./selection-filter-compiler-ifT8JCXS.js";
18
- const uo = (e, t) => {
12
+ import "./context-UCQ7sere.js";
13
+ import { a as ro, i as oo } from "./matrix-analytical-definition-CCp48UCw.js";
14
+ import { D as io } from "./report-runtime-context-c77_KF9v.js";
15
+ import { isPdfTableCardType as ao, PDF_CAPACITY as so } from "../pdf-export-policy/index.js";
16
+ import { a4 as Ze } from "./raw-temporal-value-Dg_MTFF7.js";
17
+ import { g as Et } from "./metric-comparison-B0FR-Q8I.js";
18
+ import { t as lo, c as co, n as uo } from "./selection-filter-compiler-DNijjI5y.js";
19
+ const fo = (e, t) => {
19
20
  const n = {};
20
21
  if (e === null || t === null)
21
22
  return t;
@@ -34,7 +35,7 @@ const uo = (e, t) => {
34
35
  if (Array.isArray(i) && Array.isArray(a))
35
36
  n[o] = a;
36
37
  else if (We(i) && We(a)) {
37
- const s = uo(i, a);
38
+ const s = fo(i, a);
38
39
  Object.keys(s).length > 0 && (n[o] = s);
39
40
  } else
40
41
  n[o] = a;
@@ -62,29 +63,29 @@ const uo = (e, t) => {
62
63
  for (const n in e)
63
64
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
64
65
  return t;
65
- }, fo = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
66
- function po(e) {
67
- return typeof e == "string" && fo.test(e);
68
- }
66
+ }, po = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
69
67
  function mo(e) {
70
- if (!po(e))
68
+ return typeof e == "string" && po.test(e);
69
+ }
70
+ function go(e) {
71
+ if (!mo(e))
71
72
  throw TypeError("Invalid UUID");
72
73
  let t;
73
74
  const n = new Uint8Array(16);
74
75
  return n[0] = (t = parseInt(e.slice(0, 8), 16)) >>> 24, n[1] = t >>> 16 & 255, n[2] = t >>> 8 & 255, n[3] = t & 255, n[4] = (t = parseInt(e.slice(9, 13), 16)) >>> 8, n[5] = t & 255, n[6] = (t = parseInt(e.slice(14, 18), 16)) >>> 8, n[7] = t & 255, n[8] = (t = parseInt(e.slice(19, 23), 16)) >>> 8, n[9] = t & 255, n[10] = (t = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, n[11] = t / 4294967296 & 255, n[12] = t >>> 24 & 255, n[13] = t >>> 16 & 255, n[14] = t >>> 8 & 255, n[15] = t & 255, n;
75
76
  }
76
- function go(e) {
77
+ function yo(e) {
77
78
  e = unescape(encodeURIComponent(e));
78
79
  const t = [];
79
80
  for (let n = 0; n < e.length; ++n)
80
81
  t.push(e.charCodeAt(n));
81
82
  return t;
82
83
  }
83
- const yo = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", bo = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
84
- function Io(e, t, n) {
84
+ const bo = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Io = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
85
+ function Co(e, t, n) {
85
86
  function r(o, i, a, s) {
86
87
  var l;
87
- if (typeof o == "string" && (o = go(o)), typeof i == "string" && (i = mo(i)), ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16)
88
+ if (typeof o == "string" && (o = yo(o)), typeof i == "string" && (i = go(i)), ((l = i) === null || l === void 0 ? void 0 : l.length) !== 16)
88
89
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
89
90
  let c = new Uint8Array(16 + o.length);
90
91
  if (c.set(i), c.set(o, i.length), c = n(c), c[6] = c[6] & 15 | t, c[8] = c[8] & 63 | 128, a) {
@@ -93,15 +94,15 @@ function Io(e, t, n) {
93
94
  a[s + d] = c[d];
94
95
  return a;
95
96
  }
96
- return Tn(c);
97
+ return Vn(c);
97
98
  }
98
99
  try {
99
100
  r.name = e;
100
101
  } catch {
101
102
  }
102
- return r.DNS = yo, r.URL = bo, r;
103
+ return r.DNS = bo, r.URL = Io, r;
103
104
  }
104
- function Co(e, t, n, r) {
105
+ function ho(e, t, n, r) {
105
106
  switch (e) {
106
107
  case 0:
107
108
  return t & n ^ ~t & r;
@@ -116,7 +117,7 @@ function Co(e, t, n, r) {
116
117
  function Ie(e, t) {
117
118
  return e << t | e >>> 32 - t;
118
119
  }
119
- function ho(e) {
120
+ function vo(e) {
120
121
  const t = [1518500249, 1859775393, 2400959708, 3395469782], n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
121
122
  if (typeof e == "string") {
122
123
  const a = unescape(encodeURIComponent(e));
@@ -141,15 +142,15 @@ function ho(e) {
141
142
  s[m] = Ie(s[m - 3] ^ s[m - 8] ^ s[m - 14] ^ s[m - 16], 1);
142
143
  let l = n[0], c = n[1], d = n[2], u = n[3], f = n[4];
143
144
  for (let m = 0; m < 80; ++m) {
144
- const y = Math.floor(m / 20), p = Ie(l, 5) + Co(y, c, d, u) + f + t[y] + s[m] >>> 0;
145
+ const y = Math.floor(m / 20), p = Ie(l, 5) + ho(y, c, d, u) + f + t[y] + s[m] >>> 0;
145
146
  f = u, u = d, d = Ie(c, 30) >>> 0, c = l, l = p;
146
147
  }
147
148
  n[0] = n[0] + l >>> 0, n[1] = n[1] + c >>> 0, n[2] = n[2] + d >>> 0, n[3] = n[3] + u >>> 0, n[4] = n[4] + f >>> 0;
148
149
  }
149
150
  return [n[0] >> 24 & 255, n[0] >> 16 & 255, n[0] >> 8 & 255, n[0] & 255, n[1] >> 24 & 255, n[1] >> 16 & 255, n[1] >> 8 & 255, n[1] & 255, n[2] >> 24 & 255, n[2] >> 16 & 255, n[2] >> 8 & 255, n[2] & 255, n[3] >> 24 & 255, n[3] >> 16 & 255, n[3] >> 8 & 255, n[3] & 255, n[4] >> 24 & 255, n[4] >> 16 & 255, n[4] >> 8 & 255, n[4] & 255];
150
151
  }
151
- const vo = Io("v5", 80, ho), Ye = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Ze = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
152
- function Fo(e) {
152
+ const Fo = Co("v5", 80, vo), Je = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Ye = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
153
+ function Do(e) {
153
154
  const t = [];
154
155
  let n = 0;
155
156
  for (; n < e.length; ) {
@@ -172,12 +173,12 @@ function Bt(e) {
172
173
  return [];
173
174
  const t = /* @__PURE__ */ new Set();
174
175
  let n;
175
- for (Ye.lastIndex = 0; (n = Ye.exec(e)) !== null; ) {
176
+ for (Je.lastIndex = 0; (n = Je.exec(e)) !== null; ) {
176
177
  const i = (r = n[1]) == null ? void 0 : r.trim();
177
178
  i && t.add(i);
178
179
  }
179
- for (const i of Fo(e))
180
- for (Ze.lastIndex = 0; (n = Ze.exec(i)) !== null; ) {
180
+ for (const i of Do(e))
181
+ for (Ye.lastIndex = 0; (n = Ye.exec(i)) !== null; ) {
181
182
  const a = (o = n[2]) == null ? void 0 : o.trim();
182
183
  a && t.add(a);
183
184
  }
@@ -191,7 +192,7 @@ function Ae(e) {
191
192
  t.add(n.get(r) ?? r);
192
193
  return Array.from(t);
193
194
  }
194
- function Do(e) {
195
+ function So(e) {
195
196
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
196
197
  for (const r of e.controlBindings || [])
197
198
  r.target === "sql_param" && n.set(r.paramId, r.controlId);
@@ -202,12 +203,12 @@ function Do(e) {
202
203
  });
203
204
  return Array.from(t.values());
204
205
  }
205
- function So(e, t) {
206
+ function To(e, t) {
206
207
  var o;
207
208
  const n = (o = e.controlBindings) == null ? void 0 : o.map((i) => ({
208
209
  ...i,
209
210
  controlId: t.get(i.controlId) ?? i.controlId
210
- })), r = Do(e).flatMap(
211
+ })), r = So(e).flatMap(
211
212
  ({ paramId: i, controlId: a }) => {
212
213
  var l;
213
214
  const s = t.get(a);
@@ -218,7 +219,7 @@ function So(e, t) {
218
219
  );
219
220
  return r.length ? [...n ?? [], ...r] : n;
220
221
  }
221
- function Et(e, t) {
222
+ function Rt(e, t) {
222
223
  var a, s;
223
224
  const n = be(e) ?? e, r = n.source === "dashboardInputAlias" ? (a = t.inputAliases) == null ? void 0 : a[n.variableName] : void 0, o = n.source === "dashboardInputAlias" && r ? be(r) ?? be({ ...r, export: n.export ?? "label" }) ?? n : n, i = n.source === "dashboardInputAlias" && o !== n ? { ...o, export: n.export ?? "label" } : o;
224
225
  return i.source === "input" ? {
@@ -226,7 +227,7 @@ function Et(e, t) {
226
227
  inputId: ((s = t.inputIds) == null ? void 0 : s[i.inputId]) ?? i.inputId
227
228
  } : i;
228
229
  }
229
- function To(e, t) {
230
+ function Vo(e, t) {
230
231
  var o;
231
232
  const n = {};
232
233
  for (const i of [
@@ -243,13 +244,13 @@ function To(e, t) {
243
244
  }
244
245
  const r = { ...t.inputAliases };
245
246
  for (const [i, a] of Object.entries((e == null ? void 0 : e.inputAliases) ?? {}))
246
- r[i] = Et(a, t);
247
+ r[i] = Rt(a, t);
247
248
  return Object.keys(r).length && (n.inputAliases = r), n;
248
249
  }
249
- function Xa(e, t) {
250
+ function ts(e, t) {
250
251
  var o, i, a, s;
251
252
  const n = oe(Mt(e));
252
- n.controlBindings = So(
253
+ n.controlBindings = To(
253
254
  e,
254
255
  new Map(Object.entries(t.controlIds ?? {}))
255
256
  );
@@ -258,7 +259,7 @@ function Xa(e, t) {
258
259
  for (const l of n.inlineFilters ?? [])
259
260
  l.id = ((i = t.filterIds) == null ? void 0 : i[l.id]) ?? l.id;
260
261
  const r = (l) => {
261
- var d, u;
262
+ var d;
262
263
  if (!l || typeof l != "object") return;
263
264
  if (Array.isArray(l)) {
264
265
  l.forEach(r);
@@ -269,81 +270,81 @@ function Xa(e, t) {
269
270
  c,
270
271
  kt(
271
272
  c,
272
- (f) => f && typeof f == "object" ? Et(f, t) : f
273
+ (u) => u && typeof u == "object" ? Rt(u, t) : u
273
274
  )
274
275
  ), typeof c.entityId == "string") {
275
- const f = c.entityId;
276
- c.fieldScope === "card" && (c.entityId = ((d = t.cardIds) == null ? void 0 : d[f]) ?? f), c.fieldScope === "sheet" && (c.entityId = ((u = t.sheetIds) == null ? void 0 : u[f]) ?? f);
276
+ const u = c.entityId;
277
+ c.fieldScope === "card" && (c.entityId = ((d = t.cardIds) == null ? void 0 : d[u]) ?? u);
277
278
  }
278
- for (const [f, m] of Object.entries(c))
279
- f !== "linkedReferenceOverrides" && r(m);
279
+ for (const [u, f] of Object.entries(c))
280
+ u !== "linkedReferenceOverrides" && r(f);
280
281
  };
281
- r(n), n.clickToFilter && (n.clickToFilter = Vn(n.clickToFilter, t));
282
+ r(n), n.clickToFilter && (n.clickToFilter = Mn(n.clickToFilter, t));
282
283
  for (const l of Object.values(
283
284
  ((a = n.customCardPreferences) == null ? void 0 : a.dataInputCardIds) ?? {}
284
285
  ))
285
286
  l.cardId = ((s = t.cardIds) == null ? void 0 : s[l.cardId]) ?? l.cardId;
286
287
  return n;
287
288
  }
288
- const Vo = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
289
- function Mo(e) {
289
+ const Mo = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
290
+ function ko(e) {
290
291
  let t = 0;
291
- return () => vo(`${e}#${t++}`, Vo);
292
+ return () => Fo(`${e}#${t++}`, Mo);
292
293
  }
293
- const ko = [
294
+ const xo = [
294
295
  { code: "matrix_definition_incomplete", label: "Matrix definition" }
295
- ], xo = [
296
+ ], Po = [
296
297
  { code: "connection_type_unresolved", label: "Connection type" }
297
298
  ], G = (e) => !Array.isArray(e) || e.length === 0;
298
- function Po(e) {
299
+ function wo(e) {
299
300
  var i;
300
301
  const t = e.config ?? {};
301
302
  if ((i = e.sql) != null && i.trim() || !G(t.pivotByColumns)) return "matrixTable";
302
303
  const n = !G(t.groupByColumns), r = !G(t.metricColumns), o = e.type === "pivotTable" && (n || r) && G(t.rowAggregates) && G(t.columnAggregates);
303
304
  return n && !r || o ? "table" : "matrixTable";
304
305
  }
305
- function wo(e) {
306
+ function Oo(e) {
306
307
  var o;
307
308
  const t = e.dataSource;
308
309
  if (!t || (o = t.connectionType) != null && o.trim()) return e;
309
- const n = Br(wn(t.selectedEntities));
310
+ const n = Br(On(t.selectedEntities));
310
311
  if (!n) return e;
311
312
  const r = Array.isArray(t.selectedEntities) ? t.selectedEntities.map((i) => i && typeof i == "object" && "connectionType" in i && !String(i.connectionType ?? "").trim() ? { ...i, connectionType: n } : i) : t.selectedEntities;
312
313
  return { ...e, dataSource: { ...t, connectionType: n, selectedEntities: r } };
313
314
  }
314
- function Rt(e) {
315
+ function qt(e) {
315
316
  var a, s;
316
317
  const t = e;
317
- if (!Mn(t)) return { status: "not_legacy", card: e };
318
- const n = wo(t), r = Po(t) === "table" ? kn(n, "table") : xn(n, "matrixTable", { createId: Mo(t.id) });
318
+ if (!kn(t)) return { status: "not_legacy", card: e };
319
+ const n = Oo(t), r = wo(t) === "table" ? xn(n, "table") : Pn(n, "matrixTable", { createId: ko(t.id) });
319
320
  if (r.status !== "changed") throw new Error(`Card ${t.id} could not leave ${t.type}.`);
320
- const o = r.card.type === "matrixTable" && Pn(r.card).status !== "ready", i = !!n.dataSource && !((s = (a = n.dataSource) == null ? void 0 : a.connectionType) != null && s.trim());
321
+ const o = r.card.type === "matrixTable" && wn(r.card).status !== "ready", i = !!n.dataSource && !((s = (a = n.dataSource) == null ? void 0 : a.connectionType) != null && s.trim());
321
322
  return {
322
323
  status: "routed",
323
324
  card: r.card,
324
325
  gaps: [
325
326
  ...r.gaps,
326
- ...o ? ko : [],
327
- ...i ? xo : []
327
+ ...o ? xo : [],
328
+ ...i ? Po : []
328
329
  ]
329
330
  };
330
331
  }
331
- function es(e) {
332
+ function ns(e) {
332
333
  if (!e.cards) return e;
333
- const t = e.cards.map((n) => Rt(n).card);
334
+ const t = e.cards.map((n) => qt(n).card);
334
335
  return t.every((n, r) => n === e.cards[r]) ? e : { ...e, cards: t };
335
336
  }
336
- function Oo(e) {
337
+ function _o(e) {
337
338
  const t = [];
338
- return { dashboard: Jr(e, (r, o) => {
339
- const i = Rt(r);
339
+ return { dashboard: Wr(e, (r, o) => {
340
+ const i = qt(r);
340
341
  return i.status === "routed" && i.gaps.length && t.push({ location: o, gaps: i.gaps }), i.card;
341
342
  }), routedWithGaps: t };
342
343
  }
343
- function _o(e, t) {
344
+ function Ao(e, t) {
344
345
  return e.name === t.name && e.qualifiedEntityName === t.qualifiedEntityName;
345
346
  }
346
- function Ao(e, t, n) {
347
+ function Eo(e, t, n) {
347
348
  var o, i;
348
349
  if (n.sortPolicy === "dropUnrelatedSorts") {
349
350
  const a = new Set(
@@ -362,7 +363,7 @@ function Ao(e, t, n) {
362
363
  ...e,
363
364
  groupByColumns: [t],
364
365
  sortByColumns: (i = e.sortByColumns) == null ? void 0 : i.map(
365
- (a) => r && _o(a, r) ? {
366
+ (a) => r && Ao(a, r) ? {
366
367
  ...t,
367
368
  role: "sortby",
368
369
  direction: a.direction
@@ -391,17 +392,17 @@ function ae(e) {
391
392
  } = e;
392
393
  return Q(o);
393
394
  }
394
- function qt(e, t) {
395
+ function jt(e, t) {
395
396
  return e == null ? void 0 : e.map(
396
397
  (n) => dt(Q(ie([n])[0]), n.format, t)
397
398
  );
398
399
  }
399
400
  function Bo(e, t) {
400
401
  return e == null ? void 0 : e.map(
401
- (n) => On(Q(ie([n])[0]), n.format, t)
402
+ (n) => _n(Q(ie([n])[0]), n.format, t)
402
403
  );
403
404
  }
404
- function Eo(e, t) {
405
+ function Ro(e, t) {
405
406
  const { dateFormat: n, customFormat: r, ...o } = ae(e.field);
406
407
  return {
407
408
  ...e,
@@ -412,7 +413,7 @@ function me(e, t = !1) {
412
413
  if (e)
413
414
  return {
414
415
  ...e,
415
- conditions: e.conditions.map((n) => Eo(n, t)),
416
+ conditions: e.conditions.map((n) => Ro(n, t)),
416
417
  groups: e.groups.map((n) => me(n, t))
417
418
  };
418
419
  }
@@ -429,33 +430,33 @@ function Q(e) {
429
430
  filters: me(t.parameters.filters)
430
431
  }), t;
431
432
  }
432
- function Ro(e, t) {
433
- return t.cardType === "detailTable" || !_n(t.cardType) || t.temporalResultOwner !== "config" ? qt(e, "grouped") : e == null ? void 0 : e.map((n) => {
434
- const r = An(n), o = ae(r ?? n);
433
+ function qo(e, t) {
434
+ return t.cardType === "detailTable" || !An(t.cardType) || t.temporalResultOwner !== "config" ? jt(e, "grouped") : e == null ? void 0 : e.map((n) => {
435
+ const r = En(n), o = ae(r ?? n);
435
436
  if (!r)
436
437
  return o;
437
438
  const { dateFormat: i, customFormat: a, ...s } = o;
438
439
  return s;
439
440
  });
440
441
  }
441
- function jt(e, t) {
442
+ function Nt(e, t) {
442
443
  if (!e)
443
444
  return;
444
445
  const n = { type: t.cardType, config: e };
445
- return Te(n) ? qo(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
446
+ return Te(n) ? jo(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
446
447
  }
447
- function qo(e, t = {}) {
448
+ function jo(e, t = {}) {
448
449
  var i, a, s;
449
450
  const n = e.config;
450
451
  if (!n) return;
451
452
  const r = { ...t, cardType: e.type };
452
453
  return {
453
454
  ...n,
454
- groupByColumns: Ro(n.groupByColumns, r),
455
+ groupByColumns: qo(n.groupByColumns, r),
455
456
  metricColumns: (i = ie(n.metricColumns)) == null ? void 0 : i.map(
456
457
  Q
457
458
  ),
458
- pivotByColumns: qt(n.pivotByColumns, "grouped"),
459
+ pivotByColumns: jt(n.pivotByColumns, "grouped"),
459
460
  sortByColumns: (a = ie(n.sortByColumns)) == null ? void 0 : a.map(
460
461
  Q
461
462
  ),
@@ -466,34 +467,34 @@ function qo(e, t = {}) {
466
467
  function se(e) {
467
468
  return (e == null ? void 0 : e.type) === "number" || (e == null ? void 0 : e.type) === "currency";
468
469
  }
469
- function jo(e) {
470
+ function No(e) {
470
471
  return (e == null ? void 0 : e.type) === "number";
471
472
  }
472
- function No(e) {
473
+ function zo(e) {
473
474
  var n;
474
- if (!jo(e))
475
+ if (!No(e))
475
476
  return !1;
476
477
  const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
477
478
  return t === void 0 || t === "decimal" || t === "currency";
478
479
  }
479
- function zo(e, t) {
480
+ function Lo(e, t) {
480
481
  const n = t == null ? void 0 : t.type;
481
482
  if (n && n !== "none" && n !== "number")
482
483
  return { currencyBindable: !1 };
483
- const r = n === "number" ? t != null && t.numberFormat ? En(t.numberFormat, {
484
+ const r = n === "number" ? t != null && t.numberFormat ? Rn(t.numberFormat, {
484
485
  preserveOmittedProperties: !0
485
486
  }) : { type: "number" } : void 0, o = re(e.format, {
486
487
  preserveOmittedProperties: !0
487
- }), i = J(e.dataType) === "number" ? { type: "number" } : void 0, s = (t == null ? void 0 : t.inheritMetricFormat) === !1 || !!(t != null && t.numberFormat) && (t == null ? void 0 : t.inheritMetricFormat) !== !0 ? r : o || i || r;
488
+ }), i = Z(e.dataType) === "number" ? { type: "number" } : void 0, s = (t == null ? void 0 : t.inheritMetricFormat) === !1 || !!(t != null && t.numberFormat) && (t == null ? void 0 : t.inheritMetricFormat) !== !0 ? r : o || i || r;
488
489
  return {
489
490
  authoredFormat: s,
490
491
  currencyBindable: se(s)
491
492
  };
492
493
  }
493
- function Lo(e, t) {
494
+ function Ko(e, t) {
494
495
  const n = re(t.format, {
495
496
  preserveOmittedProperties: !0
496
- }), r = J(t.dataType) === "number" ? { type: "number" } : void 0, o = n || r;
497
+ }), r = Z(t.dataType) === "number" ? { type: "number" } : void 0, o = n || r;
497
498
  return {
498
499
  authoredFormat: o,
499
500
  source: n ? "semantic" : r ? "inferred" : void 0,
@@ -508,7 +509,7 @@ function Fe(e, t = {}) {
508
509
  kind: "column",
509
510
  columnKey: t.resultColumnKey
510
511
  } : void 0, f = re(
511
- Hr({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
512
+ Ur({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
512
513
  { preserveOmittedProperties: !0 }
513
514
  );
514
515
  return {
@@ -523,7 +524,7 @@ function Fe(e, t = {}) {
523
524
  metricId: r.id
524
525
  } : void 0, i = re(r == null ? void 0 : r.format, {
525
526
  preserveOmittedProperties: !0
526
- }), a = J(r == null ? void 0 : r.dataType) === "number" ? { type: "number" } : void 0, s = i || a;
527
+ }), a = Z(r == null ? void 0 : r.dataType) === "number" ? { type: "number" } : void 0, s = i || a;
527
528
  return {
528
529
  target: o,
529
530
  authoredFormat: s,
@@ -531,46 +532,46 @@ function Fe(e, t = {}) {
531
532
  currencyBindable: ut(e.type) && !!o && se(s)
532
533
  };
533
534
  }
534
- function Nt(e, t, n) {
535
+ function zt(e, t, n) {
535
536
  var o;
536
537
  const r = n(e, t);
537
538
  return ((o = e.derivedField) == null ? void 0 : o.format) ?? (r == null ? void 0 : r.format) ?? (r == null ? void 0 : r.resolvedField.format);
538
539
  }
539
- function zt(e, t, n) {
540
- return e.kind === "calculated" ? e.definition.format : Nt(e.field, t, n);
540
+ function Lt(e, t, n) {
541
+ return e.kind === "calculated" ? e.definition.format : zt(e.field, t, n);
541
542
  }
542
- function ts(e, t) {
543
+ function rs(e, t) {
543
544
  const n = ft(t), r = (o, i) => Object.fromEntries(o.flatMap((a) => {
544
545
  const s = i(a);
545
546
  return s ? [[a.id, s]] : [];
546
547
  }));
547
548
  return {
548
- measureFormats: r(e.measures, (o) => zt(o, e.source, n)),
549
- levelFormats: r([...e.rows, ...e.columns], (o) => Nt(o.field, e.source, n))
549
+ measureFormats: r(e.measures, (o) => Lt(o, e.source, n)),
550
+ levelFormats: r([...e.rows, ...e.columns], (o) => zt(o.field, e.source, n))
550
551
  };
551
552
  }
552
- function Lt(e, t = []) {
553
+ function Kt(e, t = []) {
553
554
  const n = Ve(e);
554
555
  if (n.status !== "ready") return [];
555
556
  const { spec: r, presentation: o } = n.config, i = ft(t);
556
557
  return r.measures.map((a) => {
557
558
  var m;
558
- const s = a.kind === "aggregate" ? i(a.field, r.source) : void 0, l = Ur(o.measureFormats[a.id], zt(a, r.source, i)), c = a.kind === "calculated" ? a.definition.dataType : ["MIN", "MAX"].includes(a.aggregate) ? ((m = a.field.derivedField) == null ? void 0 : m.dataType) ?? (s == null ? void 0 : s.resolvedField.dataType) ?? a.field.dataType : "number", d = J(c) === "number", u = a.kind === "calculated" || !!(s || a.field.derivedField || a.field.name === "*"), f = l && Qr(l) ? l : !l && d && u ? { type: "number" } : void 0;
559
- return { measureId: a.id, label: $r(a, o), canonical: f };
559
+ const s = a.kind === "aggregate" ? i(a.field, r.source) : void 0, l = Qr(o.measureFormats[a.id], Lt(a, r.source, i)), c = a.kind === "calculated" ? a.definition.dataType : ["MIN", "MAX"].includes(a.aggregate) ? ((m = a.field.derivedField) == null ? void 0 : m.dataType) ?? (s == null ? void 0 : s.resolvedField.dataType) ?? a.field.dataType : "number", d = Z(c) === "number", u = a.kind === "calculated" || !!(s || a.field.derivedField || a.field.name === "*"), f = l && $r(l) ? l : !l && d && u ? { type: "number" } : void 0;
560
+ return { measureId: a.id, label: Zr(a, o), canonical: f };
560
561
  });
561
562
  }
562
- function Ko(e) {
563
+ function Go(e) {
563
564
  var t, n;
564
565
  return e.type === "detailTable" ? ((t = e.config) == null ? void 0 : t.detailColumns) || [] : ((n = e.config) == null ? void 0 : n.metricColumns) || [];
565
566
  }
566
- function Kt(e) {
567
+ function Gt(e) {
567
568
  return new Set(
568
569
  xt(e).flatMap(
569
570
  (t) => (t.controlBindings || []).filter(de).map((n) => n.controlId)
570
571
  )
571
572
  );
572
573
  }
573
- function Go(e, t) {
574
+ function Ho(e, t) {
574
575
  const n = [
575
576
  t.id,
576
577
  t.alias,
@@ -598,13 +599,13 @@ function Xe(e) {
598
599
  ).values()
599
600
  ];
600
601
  }
601
- function Ho(e, t = [], n) {
602
+ function Uo(e, t = [], n) {
602
603
  var S;
603
- const r = !!((S = e.sql) != null && S.trim()), o = ut(e.type), i = r && o && e.type !== "kpi" && e.type !== "matrixTable", a = Ko(e), s = Rn(e), l = !r && e.type === "kpi" ? a.map(
604
+ const r = !!((S = e.sql) != null && S.trim()), o = ut(e.type), i = r && o && e.type !== "kpi" && e.type !== "matrixTable", a = Go(e), s = qn(e), l = !r && e.type === "kpi" ? a.map(
604
605
  (g) => Fe(e, {
605
606
  column: { kind: "field", fieldId: g.id }
606
607
  })
607
- ) : [], c = !r && e.type === "matrixTable" ? Lt(e, n) : [], d = (r ? [] : a).map(
608
+ ) : [], c = !r && e.type === "matrixTable" ? Kt(e, n) : [], d = (r ? [] : a).map(
608
609
  (g) => ({
609
610
  kind: "metric",
610
611
  metricId: g.id
@@ -625,10 +626,10 @@ function Ho(e, t = [], n) {
625
626
  ), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? l.filter((g) => g.currencyBindable).flatMap(
626
627
  (g) => g.target ? [g.target] : []
627
628
  ) : (r || !o ? [] : a).filter(
628
- (g) => (qn(e.type) ? zo(
629
+ (g) => (jn(e.type) ? Lo(
629
630
  g,
630
- Go(s, g)
631
- ) : Lo(e, g)).currencyBindable
631
+ Ho(s, g)
632
+ ) : Ko(e, g)).currencyBindable
632
633
  ).map(
633
634
  (g) => ({
634
635
  kind: "metric",
@@ -640,7 +641,7 @@ function Ho(e, t = [], n) {
640
641
  columnKey: g
641
642
  })
642
643
  ), b = (i ? y : []).filter(
643
- (g) => No(
644
+ (g) => zo(
644
645
  s[g]
645
646
  )
646
647
  ).map(
@@ -670,20 +671,20 @@ function Ho(e, t = [], n) {
670
671
  ])
671
672
  };
672
673
  }
673
- function ns(e, t) {
674
+ function os(e, t) {
674
675
  const n = Fe(e, {
675
676
  resultColumnKey: t
676
677
  });
677
678
  return n.currencyBindable ? n.target : void 0;
678
679
  }
679
- function rs(e) {
680
+ function is(e) {
680
681
  var t;
681
682
  return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
682
683
  }
683
684
  function z(e) {
684
685
  return e.kind === "metric" ? `metric:${e.metricId}` : e.kind === "column" ? `column:${e.columnKey}` : `matrix_measure:${e.measureId}`;
685
686
  }
686
- function Uo(e) {
687
+ function Qo(e) {
687
688
  if (!e || typeof e != "object" || Array.isArray(e))
688
689
  return;
689
690
  const t = e;
@@ -698,7 +699,7 @@ function et(e) {
698
699
  const t = Vt(e);
699
700
  return typeof e == "string" && e === t ? t : void 0;
700
701
  }
701
- function Gt(e) {
702
+ function Ht(e) {
702
703
  if (e.type !== "enum" || e.source.kind !== "manual")
703
704
  return { diagnostic: "invalid_control_type" };
704
705
  const t = e.source.options.map(
@@ -716,11 +717,11 @@ function Gt(e) {
716
717
  currencies: t
717
718
  };
718
719
  }
719
- function os(e) {
720
- return "control" in Gt(e);
720
+ function as(e) {
721
+ return "control" in Ht(e);
721
722
  }
722
- function Ht(e) {
723
- const t = Kt(e.dashboard);
723
+ function Ut(e) {
724
+ const t = Gt(e.dashboard);
724
725
  if (t.size === 0)
725
726
  return {
726
727
  definitions: e.definitions || [],
@@ -742,8 +743,8 @@ function Ht(e) {
742
743
  )
743
744
  };
744
745
  }
745
- function is(e) {
746
- return Ht({
746
+ function ss(e) {
747
+ return Ut({
747
748
  ...e,
748
749
  referencedControlIds: new Set(
749
750
  Ae({
@@ -753,9 +754,9 @@ function is(e) {
753
754
  )
754
755
  });
755
756
  }
756
- function as(e) {
757
+ function ls(e) {
757
758
  var t;
758
- return Ht({
759
+ return Ut({
759
760
  ...e,
760
761
  referencedControlIds: new Set(
761
762
  Ae({
@@ -765,7 +766,7 @@ function as(e) {
765
766
  )
766
767
  });
767
768
  }
768
- function Ut(e) {
769
+ function Qt(e) {
769
770
  return {
770
771
  knownKeys: new Set(
771
772
  e.knownTargets.map(z)
@@ -778,13 +779,13 @@ function Ut(e) {
778
779
  )
779
780
  };
780
781
  }
781
- function Qt(e, t) {
782
+ function $t(e, t) {
782
783
  if (!e || typeof e != "object" || e.target !== "presentation_currency")
783
784
  return {};
784
785
  const n = e, r = typeof n.controlId == "string" && n.controlId.trim() ? n.controlId : void 0;
785
786
  if (!r)
786
787
  return { diagnostic: { code: "invalid_binding_shape" } };
787
- const o = Uo(
788
+ const o = Qo(
788
789
  n.presentationTarget
789
790
  );
790
791
  if (!o)
@@ -805,7 +806,7 @@ function Qt(e, t) {
805
806
  return {
806
807
  diagnostic: { code: "missing_control", controlId: r }
807
808
  };
808
- const s = Gt(a);
809
+ const s = Ht(a);
809
810
  return "diagnostic" in s ? {
810
811
  diagnostic: { code: s.diagnostic, controlId: r }
811
812
  } : {
@@ -817,18 +818,18 @@ function Qt(e, t) {
817
818
  }
818
819
  };
819
820
  }
820
- function ss(e) {
821
- const t = Ut(e);
821
+ function cs(e) {
822
+ const t = Qt(e);
822
823
  return (e.bindings || []).flatMap((n) => {
823
- const r = Qt(n, t);
824
+ const r = $t(n, t);
824
825
  return "diagnostic" in r ? [r.diagnostic] : [];
825
826
  });
826
827
  }
827
- function Qo(e) {
828
+ function $o(e) {
828
829
  var o;
829
- const t = [], n = z(e.target), r = Ut(e);
830
+ const t = [], n = z(e.target), r = Qt(e);
830
831
  for (const i of e.bindings || []) {
831
- const a = Qt(i, r);
832
+ const a = $t(i, r);
832
833
  if ("diagnostic" in a) {
833
834
  t.push(a.diagnostic);
834
835
  continue;
@@ -845,10 +846,10 @@ function Qo(e) {
845
846
  }
846
847
  return { diagnostics: t };
847
848
  }
848
- function $o(e, t, n, r) {
849
- const o = { ...e, config: { ...e.config, matrix: t } }, i = Ho(o, [], r), a = Lt(o, r), s = { ...t.presentation.measureFormats };
849
+ function Zo(e, t, n, r) {
850
+ const o = { ...e, config: { ...e.config, matrix: t } }, i = Uo(o, [], r), a = Kt(o, r), s = { ...t.presentation.measureFormats };
850
851
  for (const l of a) {
851
- const c = { kind: "matrix_measure", measureId: l.measureId }, { currency: d } = Qo({
852
+ const c = { kind: "matrix_measure", measureId: l.measureId }, { currency: d } = $o({
852
853
  ...n,
853
854
  ...i,
854
855
  bindings: e.controlBindings,
@@ -860,7 +861,7 @@ function $o(e, t, n, r) {
860
861
  }
861
862
  return { ...t.presentation, measureFormats: s };
862
863
  }
863
- function Jo(e, t) {
864
+ function Wo(e, t) {
864
865
  if (!e || typeof e != "object" || !("kind" in e))
865
866
  return e;
866
867
  switch (e.kind) {
@@ -905,12 +906,12 @@ function Jo(e, t) {
905
906
  return e;
906
907
  }
907
908
  }
908
- function Wo(e, t) {
909
+ function Jo(e, t) {
909
910
  return {
910
911
  id: e.id,
911
912
  scope: e.scope,
912
913
  type: e.type,
913
- source: Jo(e.source, t),
914
+ source: Wo(e.source, t),
914
915
  initialValueStrategy: e.initialValueStrategy,
915
916
  defaultValue: e.defaultValue,
916
917
  requiredAtExecution: e.requiredAtExecution,
@@ -950,33 +951,33 @@ function Yo(e, t) {
950
951
  };
951
952
  }
952
953
  function tt(e = [], t) {
953
- return [...e].map((n) => Wo(n, t)).sort(
954
+ return [...e].map((n) => Jo(n, t)).sort(
954
955
  (n, r) => n.id.localeCompare(r.id) || n.scope.localeCompare(r.scope) || n.type.localeCompare(r.type)
955
956
  );
956
957
  }
957
- function Zo(e = [], t) {
958
+ function Xo(e = [], t) {
958
959
  return e.filter(
959
960
  (n) => (t == null ? void 0 : t.includePresentation) || !de(n)
960
961
  ).map((n) => Yo(n, t)).sort(
961
962
  (n, r) => _(n).localeCompare(_(r))
962
963
  );
963
964
  }
964
- function Xo(e, t) {
965
+ function ei(e, t) {
965
966
  return e ? _({
966
967
  controlDefinitions: tt(e.controlDefinitions, t),
967
968
  cardControlDefinitions: tt(
968
969
  e.cardControlDefinitions,
969
970
  t
970
971
  ),
971
- controlBindings: Zo(e.controlBindings, t)
972
+ controlBindings: Xo(e.controlBindings, t)
972
973
  }) : "__none__";
973
974
  }
974
- const ei = ["table", "detailTable"], nt = (e) => ei.includes(e.type), ti = "calendar-context";
975
- function ni(e) {
975
+ const ti = ["table", "detailTable"], nt = (e) => ti.includes(e.type), ni = "calendar-context";
976
+ function ri(e) {
976
977
  const { id: t, label: n, field: r, ...o } = e;
977
978
  return {
978
979
  ...o,
979
- field: Be(
980
+ field: Ee(
980
981
  r
981
982
  )
982
983
  };
@@ -987,11 +988,11 @@ function ge(e) {
987
988
  const { id: t, conditions: n, groups: r, ...o } = e;
988
989
  return {
989
990
  ...o,
990
- conditions: n.map(ni),
991
+ conditions: n.map(ri),
991
992
  groups: r.map((i) => ge(i))
992
993
  };
993
994
  }
994
- function Be(e) {
995
+ function Ee(e) {
995
996
  var r, o;
996
997
  const { label: t, ...n } = e;
997
998
  return {
@@ -1000,7 +1001,7 @@ function Be(e) {
1000
1001
  calculatedFormula: {
1001
1002
  ...e.calculatedFormula,
1002
1003
  inputFields: e.calculatedFormula.inputFields.map(
1003
- Be
1004
+ Ee
1004
1005
  )
1005
1006
  }
1006
1007
  } : {},
@@ -1014,8 +1015,8 @@ function Be(e) {
1014
1015
  } : {}
1015
1016
  };
1016
1017
  }
1017
- function ri(e) {
1018
- const t = (n) => n == null ? void 0 : n.map(Be);
1018
+ function oi(e) {
1019
+ const t = (n) => n == null ? void 0 : n.map(Ee);
1019
1020
  return {
1020
1021
  ...e,
1021
1022
  groupByColumns: t(e.groupByColumns),
@@ -1026,23 +1027,23 @@ function ri(e) {
1026
1027
  filters: e.filters ? ge(e.filters) : void 0
1027
1028
  };
1028
1029
  }
1029
- function oi(e, t, n) {
1030
+ function ii(e, t, n) {
1030
1031
  if (!e)
1031
1032
  return JSON.stringify(e);
1032
- if (n === "matrixTable" && e.matrix) return _(no(e.matrix.spec));
1033
- const { matrix: r, ...o } = e, i = t ? ri(o) : o;
1033
+ if (n === "matrixTable" && e.matrix) return _(ro(e.matrix.spec));
1034
+ const { matrix: r, ...o } = e, i = t ? oi(o) : o;
1034
1035
  return JSON.stringify({
1035
1036
  ...i,
1036
1037
  filters: ge(i.filters)
1037
1038
  });
1038
1039
  }
1039
- function ii(e) {
1040
+ function ai(e) {
1040
1041
  if (!e)
1041
1042
  return null;
1042
1043
  const { format: t, ...n } = e;
1043
1044
  return n;
1044
1045
  }
1045
- function ai(e, t) {
1046
+ function si(e, t) {
1046
1047
  const n = /* @__PURE__ */ new Map();
1047
1048
  for (const o of (t == null ? void 0 : t.controlDefinitions) || [])
1048
1049
  n.set(o.id, o.type);
@@ -1058,7 +1059,7 @@ function ai(e, t) {
1058
1059
  );
1059
1060
  return _(r);
1060
1061
  }
1061
- function si(e, {
1062
+ function li(e, {
1062
1063
  finalFiltersKey: t,
1063
1064
  cardFilterValues: n,
1064
1065
  controlValues: r,
@@ -1077,7 +1078,7 @@ function si(e, {
1077
1078
  }
1078
1079
  ), y = (e == null ? void 0 : e.sql) || "", p = Me((e == null ? void 0 : e.python) || ""), b = ["table", "detailTable", "matrixTable"].includes(
1079
1080
  e.type
1080
- ) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s || jt(e.config, { cardType: e.type, dataSource: e.dataSource }), C = jn.includes(
1081
+ ) ? "table" : e.type === "kpi" ? "kpi" : "chart", I = s || Nt(e.config, { cardType: e.type, dataSource: e.dataSource }), C = Nn.includes(
1081
1082
  e.type
1082
1083
  );
1083
1084
  return [
@@ -1087,24 +1088,24 @@ function si(e, {
1087
1088
  y,
1088
1089
  p,
1089
1090
  JSON.stringify(n),
1090
- ai(r, {
1091
+ si(r, {
1091
1092
  controlDefinitions: o,
1092
1093
  cardControlDefinitions: i
1093
1094
  }),
1094
- Xo({
1095
+ ei({
1095
1096
  controlDefinitions: o,
1096
1097
  cardControlDefinitions: i,
1097
1098
  controlBindings: a
1098
1099
  }),
1099
1100
  _(
1100
- ii(l)
1101
+ ai(l)
1101
1102
  ),
1102
1103
  _(c ?? null),
1103
- ti,
1104
+ ni,
1104
1105
  _(d),
1105
1106
  JSON.stringify(f),
1106
1107
  JSON.stringify(m),
1107
- oi(
1108
+ ii(
1108
1109
  I,
1109
1110
  C,
1110
1111
  e.type
@@ -1112,9 +1113,9 @@ function si(e, {
1112
1113
  t
1113
1114
  ];
1114
1115
  }
1115
- function li(e, t, n) {
1116
+ function ci(e, t, n) {
1116
1117
  var s, l, c;
1117
- const r = si(e, t), o = _(r), i = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, o)) ?? e.paginationConfig, a = nt(e) && ue(e.config) || nt(e) && e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) == null ? void 0 : c.enableDevModePagination);
1118
+ const r = li(e, t), o = _(r), i = ((s = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : s.call(n, o)) ?? e.paginationConfig, a = nt(e) && ue(e.config) || nt(e) && e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) == null ? void 0 : c.enableDevModePagination);
1118
1119
  return {
1119
1120
  queryKey: [
1120
1121
  ...r,
@@ -1124,8 +1125,8 @@ function li(e, t, n) {
1124
1125
  paginationConfig: i
1125
1126
  };
1126
1127
  }
1127
- function ci(e, t, n, r) {
1128
- return li(
1128
+ function di(e, t, n, r) {
1129
+ return ci(
1129
1130
  e,
1130
1131
  {
1131
1132
  finalFiltersKey: t.finalFiltersKey,
@@ -1142,32 +1143,32 @@ function ci(e, t, n, r) {
1142
1143
  r
1143
1144
  );
1144
1145
  }
1145
- const di = 500, ui = 250;
1146
+ const ui = 500, fi = 250;
1146
1147
  function De(e) {
1147
1148
  return e.type === "table" || e.type === "detailTable";
1148
1149
  }
1149
- function fi(e) {
1150
+ function pi(e) {
1150
1151
  var t, n, r;
1151
1152
  return !!((t = e.sql) != null && t.trim() && De(e) && ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && r.enableDevModePagination));
1152
1153
  }
1153
- function ls(e) {
1154
- return e === "export-full-with-cap" ? di : ui;
1154
+ function ds(e) {
1155
+ return e === "export-full-with-cap" ? ui : fi;
1155
1156
  }
1156
- function pi({
1157
+ function mi({
1157
1158
  card: e,
1158
1159
  isTablePrintMode: t,
1159
1160
  isDocumentSectionRuntime: n,
1160
1161
  documentTableDataPolicy: r
1161
1162
  }) {
1162
1163
  var l, c;
1163
- const o = n && r !== void 0 && De(e), i = t && !o, a = ue(e.config) && De(e) && !e.sql, s = o ? fi(e) : !!(e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) != null && c.enableDevModePagination));
1164
+ const o = n && r !== void 0 && De(e), i = t && !o, a = ue(e.config) && De(e) && !e.sql, s = o ? pi(e) : !!(e.sql && ((c = (l = e.preferences) == null ? void 0 : l.tablePrefs) != null && c.enableDevModePagination));
1164
1165
  return !i && (a || s);
1165
1166
  }
1166
- function mi(e) {
1167
+ function gi(e) {
1167
1168
  var t, n, r;
1168
1169
  return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.pageSize) || 50;
1169
1170
  }
1170
- function cs({
1171
+ function us({
1171
1172
  current: e,
1172
1173
  defaultPageSize: t,
1173
1174
  queryInputIdentity: n
@@ -1180,10 +1181,10 @@ function cs({
1180
1181
  pageSize: (e == null ? void 0 : e.pageSize) ?? t
1181
1182
  };
1182
1183
  }
1183
- function ds(e, t, n) {
1184
+ function fs(e, t, n) {
1184
1185
  return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
1185
1186
  }
1186
- function us(e, t) {
1187
+ function ps(e, t) {
1187
1188
  return !e || !t || e.page === t.page && e.pageSize === t.pageSize ? e : {
1188
1189
  ...e,
1189
1190
  page: t.page,
@@ -1191,20 +1192,20 @@ function us(e, t) {
1191
1192
  hasPrevPage: t.page > 1
1192
1193
  };
1193
1194
  }
1194
- function gi(e) {
1195
- return { page: 1, pageSize: mi(e) };
1196
- }
1197
1195
  function yi(e) {
1196
+ return { page: 1, pageSize: gi(e) };
1197
+ }
1198
+ function bi(e) {
1198
1199
  var a, s, l, c, d;
1199
- const { card: t } = e, n = pi({
1200
+ const { card: t } = e, n = mi({
1200
1201
  card: t,
1201
1202
  isTablePrintMode: ((a = e.display) == null ? void 0 : a.isTablePrintMode) ?? !1,
1202
1203
  isDocumentSectionRuntime: !!e.documentSection,
1203
1204
  documentTableDataPolicy: (s = e.documentSection) == null ? void 0 : s.documentTableDataPolicy
1204
- }), { page: r } = e, o = e.documentSection && !e.documentSection.totalsRow ? void 0 : Nn(t, e.finalConfig), i = !!((l = e.display) != null && l.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && io(t.type));
1205
+ }), { page: r } = e, o = e.documentSection && !e.documentSection.totalsRow ? void 0 : zn(t, e.finalConfig), i = !!((l = e.display) != null && l.deliveryStrict && e.display.isTablePrintMode && !e.documentSection && ao(t.type));
1205
1206
  return {
1206
1207
  ...o ? { tableTotalsRequest: o } : {},
1207
- ...i ? { sourceRowProbe: { limit: ao.maxTableRows } } : {},
1208
+ ...i ? { sourceRowProbe: { limit: so.maxTableRows } } : {},
1208
1209
  ...n ? {
1209
1210
  pagination: {
1210
1211
  page: (r == null ? void 0 : r.page) || 1,
@@ -1213,14 +1214,14 @@ function yi(e) {
1213
1214
  } : {}
1214
1215
  };
1215
1216
  }
1216
- function bi(e, t = {}) {
1217
+ function Ii(e, t = {}) {
1217
1218
  var o, i, a;
1218
1219
  const n = ((o = e.connectionId) == null ? void 0 : o.trim()) || void 0;
1219
1220
  if (t.editorDevMode) return n;
1220
1221
  const r = ((a = (i = e.dataSource) == null ? void 0 : i.connectionId) == null ? void 0 : a.trim()) || void 0;
1221
1222
  return e.sql ? n || r : r || n;
1222
1223
  }
1223
- function Ii(e, t) {
1224
+ function Ci(e, t) {
1224
1225
  var n;
1225
1226
  return {
1226
1227
  connectionId: t,
@@ -1229,8 +1230,8 @@ function Ii(e, t) {
1229
1230
  selectedEntities: []
1230
1231
  };
1231
1232
  }
1232
- function fs(e, t, n = {}) {
1233
- const r = bi(e, n);
1233
+ function ms(e, t, n = {}) {
1234
+ const r = Ii(e, n);
1234
1235
  if (!r)
1235
1236
  throw new Error("No connection ID found for card");
1236
1237
  const o = t.cardDataSource || e.dataSource;
@@ -1238,11 +1239,11 @@ function fs(e, t, n = {}) {
1238
1239
  connectionId: r,
1239
1240
  requestPayloadBase: {
1240
1241
  ...t,
1241
- cardDataSource: n.liveDataSource ? o : o || Ii(e, r)
1242
+ cardDataSource: n.liveDataSource ? o : o || Ci(e, r)
1242
1243
  }
1243
1244
  };
1244
1245
  }
1245
- const Ci = /* @__PURE__ */ new Set([
1246
+ const hi = /* @__PURE__ */ new Set([
1246
1247
  "day",
1247
1248
  "week",
1248
1249
  "month",
@@ -1252,7 +1253,7 @@ const Ci = /* @__PURE__ */ new Set([
1252
1253
  "minute",
1253
1254
  "second"
1254
1255
  ]);
1255
- function hi(e) {
1256
+ function vi(e) {
1256
1257
  let t = e.spec;
1257
1258
  const n = pt(
1258
1259
  e.controlDefinitions || [],
@@ -1274,16 +1275,16 @@ function hi(e) {
1274
1275
  }
1275
1276
  return l = { refs: p, byId: b }, l;
1276
1277
  }, d = (p, b) => {
1277
- throw new Un(p, {
1278
- code: Qn,
1278
+ throw new Qn(p, {
1279
+ code: $n,
1279
1280
  ...b ? { controlId: b } : {}
1280
1281
  });
1281
1282
  }, u = (p, b) => {
1282
1283
  var C;
1283
1284
  if (p.derivedField) return p.derivedField.dataType;
1284
1285
  const I = c().refs.filter((h) => h.field.name === p.name && Ce(h.field.source ?? e.spec.source, p.source ?? e.spec.source));
1285
- return I.length > 1 ? d("The selected field is ambiguous in the authorized Matrix field catalog.", b) : J(((C = I[0]) == null ? void 0 : C.field.dataType) ?? p.dataType);
1286
- }, f = (p, b) => zn(p, b.target, (I) => u(I, b.controlId)), m = Er.safeParse(t);
1286
+ return I.length > 1 ? d("The selected field is ambiguous in the authorized Matrix field catalog.", b) : Z(((C = I[0]) == null ? void 0 : C.field.dataType) ?? p.dataType);
1287
+ }, f = (p, b) => Ln(p, b.target, (I) => u(I, b.controlId)), m = Rr.safeParse(t);
1287
1288
  if (!m.success) return d(m.error.message);
1288
1289
  t = m.data;
1289
1290
  const y = [...o, ...i].map((p) => {
@@ -1304,7 +1305,7 @@ function hi(e) {
1304
1305
  const V = (v) => {
1305
1306
  const T = (c().byId.get(v.id) ?? []).filter((k) => !v.source || Ce(v.source, k.field.source ?? e.spec.source));
1306
1307
  if (T.length !== 1) return C(T.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
1307
- const M = qr.safeParse(T[0].field);
1308
+ const M = jr.safeParse(T[0].field);
1308
1309
  return M.success ? M.data : C(M.error.message);
1309
1310
  }, P = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[I] : void 0, x = P && typeof P == "object" && "kind" in P && P.kind === "matrix_instance" ? P.id : void 0;
1310
1311
  if (h) {
@@ -1313,7 +1314,7 @@ function hi(e) {
1313
1314
  (F) => F.id === x && F.kind === "aggregate"
1314
1315
  );
1315
1316
  x !== void 0 && !v && C("The selected Matrix aggregate measure is no longer available.");
1316
- const T = p.target === "config_metric_selector" && !v ? Ln({ binding: p, selectedValue: I }) : void 0, M = ((v == null ? void 0 : v.kind) === "aggregate" ? v.aggregate : T == null ? void 0 : T.aggregate) ?? (p.target === "config_aggregation" ? Ge({ binding: p, selectedValue: I }) : void 0), k = M === void 0 ? void 0 : Rr.safeParse(M);
1317
+ const T = p.target === "config_metric_selector" && !v ? Kn({ binding: p, selectedValue: I }) : void 0, M = ((v == null ? void 0 : v.kind) === "aggregate" ? v.aggregate : T == null ? void 0 : T.aggregate) ?? (p.target === "config_aggregation" ? Ge({ binding: p, selectedValue: I }) : void 0), k = M === void 0 ? void 0 : qr.safeParse(M);
1317
1318
  k && !k.success && C("This aggregation is not supported by Matrix."), t = {
1318
1319
  ...t,
1319
1320
  measures: t.measures.map(
@@ -1330,12 +1331,12 @@ function hi(e) {
1330
1331
  (F) => F.id === x
1331
1332
  );
1332
1333
  x !== void 0 && !v && C("The selected Matrix level is no longer available.");
1333
- const T = p.target === "config_field_selector" && !v ? Kn({ binding: p, selectedValue: I }) : void 0, M = p.target === "config_grain" ? Ge({ binding: p, selectedValue: I }) : v ? v.grain : T == null ? void 0 : T.granularity;
1334
- M !== void 0 && !Ci.has(M) && C("This time grain is not supported by Matrix.");
1334
+ const T = p.target === "config_field_selector" && !v ? Gn({ binding: p, selectedValue: I }) : void 0, M = p.target === "config_grain" ? Ge({ binding: p, selectedValue: I }) : v ? v.grain : T == null ? void 0 : T.granularity;
1335
+ M !== void 0 && !hi.has(M) && C("This time grain is not supported by Matrix.");
1335
1336
  const k = (F) => F.map((D) => {
1336
1337
  if (D.id !== b) return D;
1337
- const w = (v == null ? void 0 : v.field) ?? (T ? V(T) : D.field), E = u(w, p.controlId), R = M ?? (T && ne(E) ? D.grain : void 0);
1338
- return R && !ne(E) && C("A time grain requires a temporal Matrix level."), { ...D, field: w, grain: R };
1338
+ const w = (v == null ? void 0 : v.field) ?? (T ? V(T) : D.field), B = u(w, p.controlId), R = M ?? (T && ne(B) ? D.grain : void 0);
1339
+ return R && !ne(B) && C("A time grain requires a temporal Matrix level."), { ...D, field: w, grain: R };
1339
1340
  });
1340
1341
  t = {
1341
1342
  ...t,
@@ -1348,19 +1349,19 @@ function hi(e) {
1348
1349
  const I = t.measures.find((h) => h.id === p);
1349
1350
  if (!I || I.kind !== "aggregate") continue;
1350
1351
  const C = u(I.field, b);
1351
- Gn(C).some((h) => h.value === I.aggregate) || d(`Aggregation '${I.aggregate}' is not eligible for this Matrix field datatype.`, b);
1352
+ Hn(C).some((h) => h.value === I.aggregate) || d(`Aggregation '${I.aggregate}' is not eligible for this Matrix field datatype.`, b);
1352
1353
  }
1353
1354
  try {
1354
- return Hn(m.data, t);
1355
+ return Un(m.data, t);
1355
1356
  } catch (p) {
1356
- if (p instanceof Gr) return d(p.message);
1357
+ if (p instanceof Hr) return d(p.message);
1357
1358
  throw p;
1358
1359
  }
1359
1360
  }
1360
- function $t(e, t) {
1361
+ function Zt(e, t) {
1361
1362
  const n = [], r = (o) => {
1362
1363
  if (o.source) {
1363
- const i = jr.safeParse(o.source);
1364
+ const i = Nr.safeParse(o.source);
1364
1365
  if (i.success) n.push(i.data);
1365
1366
  else if (t) throw i.error;
1366
1367
  }
@@ -1374,27 +1375,27 @@ function $t(e, t) {
1374
1375
  }
1375
1376
  return n;
1376
1377
  }
1377
- function vi(e, t = [], n = []) {
1378
- return St([...gt(e), ...$t(t), ...n]);
1378
+ function Fi(e, t = [], n = []) {
1379
+ return St([...gt(e), ...Zt(t), ...n]);
1379
1380
  }
1380
- function Fi(e, t = {}) {
1381
+ function Di(e, t = {}) {
1381
1382
  const n = t.controlBindings ?? [], r = pt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), o = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, mt({ binding: i, definitions: r, controlValues: t.controlValues })]));
1382
- return St([...gt(e), ...$t(n, o)]);
1383
+ return St([...gt(e), ...Zt(n, o)]);
1383
1384
  }
1384
- function Jt(e, t) {
1385
- return Te(e) ? Si(e, t) : e.config ?? {};
1386
- }
1387
- function Di(e, t) {
1388
- return t != null && t.steps.length ? { ...e, config: Jt(e, t) } : e;
1385
+ function Wt(e, t) {
1386
+ return Te(e) ? Ti(e, t) : e.config ?? {};
1389
1387
  }
1390
1388
  function Si(e, t) {
1389
+ return t != null && t.steps.length ? { ...e, config: Wt(e, t) } : e;
1390
+ }
1391
+ function Ti(e, t) {
1391
1392
  var r;
1392
1393
  const n = (r = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : r.toField;
1393
- return n ? Ao(e.config ?? {}, n, {
1394
+ return n ? Eo(e.config ?? {}, n, {
1394
1395
  sortPolicy: "retargetDimensionSort"
1395
1396
  }) : e.config ?? {};
1396
1397
  }
1397
- function Ti(e, t) {
1398
+ function Vi(e, t) {
1398
1399
  const n = (e == null ? void 0 : e.steps) ?? [];
1399
1400
  if (n.length !== 0)
1400
1401
  return {
@@ -1413,7 +1414,7 @@ function Ti(e, t) {
1413
1414
  logicalOperator: "AND",
1414
1415
  negate: !1,
1415
1416
  conditions: r.conditions.map(
1416
- (i) => so(
1417
+ (i) => lo(
1417
1418
  i,
1418
1419
  `${i.field.id}-${i.value}`
1419
1420
  )
@@ -1428,16 +1429,16 @@ const ye = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
1428
1429
  function H(e) {
1429
1430
  return e instanceof Date ? JSON.stringify(Number.isNaN(e.getTime()) ? null : e.toISOString()) : Array.isArray(e) ? `[${e.map(H).join(",")}]` : ye(e) ? `{${Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${JSON.stringify(t)}:${H(e[t])}`).join(",")}}` : JSON.stringify(e) ?? "null";
1430
1431
  }
1431
- function Vi(e) {
1432
+ function Mi(e) {
1432
1433
  const t = e;
1433
1434
  return t.valueType === "date" || t.relativeMeta !== void 0 || t.temporalBucket !== void 0 || ne(t.dataType);
1434
1435
  }
1435
- function Mi(e) {
1436
+ function ki(e) {
1436
1437
  const t = ye(e.field) ? e.field : void 0;
1437
1438
  return e.temporalBucket !== void 0 || e.rawTemporal !== void 0 || e.relativeMeta !== void 0 || ne(t == null ? void 0 : t.dataType);
1438
1439
  }
1439
- function Wt(e) {
1440
- return e ? [...(e.conditions ?? []).filter(Mi).map((n) => {
1440
+ function Jt(e) {
1441
+ return e ? [...(e.conditions ?? []).filter(ki).map((n) => {
1441
1442
  const r = ye(n.field) ? n.field : {};
1442
1443
  return {
1443
1444
  field: r.qualifiedFieldName ?? r.name,
@@ -1447,10 +1448,10 @@ function Wt(e) {
1447
1448
  rawTemporal: n.rawTemporal,
1448
1449
  relativeMeta: n.relativeMeta
1449
1450
  };
1450
- }), ...(e.groups ?? []).flatMap((n) => Wt(n))] : [];
1451
+ }), ...(e.groups ?? []).flatMap((n) => Jt(n))] : [];
1451
1452
  }
1452
1453
  function rt(e) {
1453
- const t = e.filterValues.filter(Vi).map((r) => {
1454
+ const t = e.filterValues.filter(Mi).map((r) => {
1454
1455
  const o = r, i = ye(o.fieldMeta) ? o.fieldMeta : void 0;
1455
1456
  return {
1456
1457
  field: (i == null ? void 0 : i.qualifiedFieldName) ?? o.name,
@@ -1458,14 +1459,14 @@ function rt(e) {
1458
1459
  ...o.relativeMeta !== void 0 ? { relativeMeta: o.relativeMeta } : { values: o.values },
1459
1460
  temporalBucket: o.temporalBucket
1460
1461
  };
1461
- }), n = Wt(e.selectionFilters);
1462
+ }), n = Jt(e.selectionFilters);
1462
1463
  return H({
1463
1464
  values: t.map(H).sort(),
1464
1465
  conditions: n.map(H).sort(),
1465
1466
  ...e.zoom ? { zoom: [e.zoom.from, e.zoom.to] } : {}
1466
1467
  });
1467
1468
  }
1468
- function ki(e, t, n) {
1469
+ function xi(e, t, n) {
1469
1470
  if (!t || n.drillActive || t.madeUnder !== n.currentFingerprint) return e;
1470
1471
  const r = e.groupByColumns ?? [];
1471
1472
  return r.some((o) => o.id === t.fieldId && o.grainMode === "automatic") ? {
@@ -1477,14 +1478,14 @@ function ki(e, t, n) {
1477
1478
  })
1478
1479
  } : e;
1479
1480
  }
1480
- function ps(e) {
1481
+ function gs(e) {
1481
1482
  var t;
1482
1483
  return (((t = e.config) == null ? void 0 : t.groupByColumns) ?? []).find(
1483
- (n) => n.grainMode === "automatic" && $n({ cardType: e.type, configBacked: !0, shelf: "groupBy", dataType: n.dataType }).ok
1484
+ (n) => n.grainMode === "automatic" && Zn({ cardType: e.type, configBacked: !0, shelf: "groupBy", dataType: n.dataType }).ok
1484
1485
  );
1485
1486
  }
1486
- function xi(e, t) {
1487
- if (!e || !t || t.id !== e.fieldId || Nr(t)) return;
1487
+ function Pi(e, t) {
1488
+ if (!e || !t || t.id !== e.fieldId || zr(t)) return;
1488
1489
  const {
1489
1490
  granularity: n,
1490
1491
  grainMode: r,
@@ -1508,18 +1509,18 @@ function xi(e, t) {
1508
1509
  groups: []
1509
1510
  };
1510
1511
  }
1511
- function ms(e, t, n) {
1512
+ function ys(e, t, n) {
1512
1513
  const r = Ue(e, n), o = Ue(t, n);
1513
1514
  if (!r || !o) return;
1514
1515
  const [i, a] = r.first <= o.first ? [r, o] : [o, r];
1515
1516
  return { from: i.first, to: a.last };
1516
1517
  }
1517
- function Pi(e, t, n) {
1518
+ function wi(e, t, n) {
1518
1519
  if (!e || e.madeUnder !== n) return;
1519
- const r = t == null ? void 0 : t.find((i) => i.id === e.fieldId && i.grainMode === "automatic"), o = xi(e, r);
1520
+ const r = t == null ? void 0 : t.find((i) => i.id === e.fieldId && i.grainMode === "automatic"), o = Pi(e, r);
1520
1521
  return o ? { zoom: e, filterGroup: o } : void 0;
1521
1522
  }
1522
- function gs(e, t, n) {
1523
+ function bs(e, t, n) {
1523
1524
  if (!e) return;
1524
1525
  const [r, o] = t <= n ? [t, n] : [n, t];
1525
1526
  if (r < 0 || o >= e.length) return;
@@ -1530,49 +1531,49 @@ function gs(e, t, n) {
1530
1531
  (d, u) => (u < r || u > o) && typeof d == "string" && d > s && d < l
1531
1532
  ) ? void 0 : { first: s, last: l };
1532
1533
  }
1533
- function ys(e, t, n) {
1534
+ function Is(e, t, n) {
1534
1535
  if (!t || !n) return { from: e.from, to: e.to };
1535
- const r = Je(new Date(t.startInclusive), n), o = Je(new Date(Date.parse(t.endExclusive) - 1), n), i = e.from < r ? r : e.from, a = e.to > o ? o : e.to;
1536
+ const r = Ze(new Date(t.startInclusive), n), o = Ze(new Date(Date.parse(t.endExclusive) - 1), n), i = e.from < r ? r : e.from, a = e.to > o ? o : e.to;
1536
1537
  return i <= a ? { from: i, to: a } : { from: e.from, to: e.to };
1537
1538
  }
1538
- function bs(e, t, n) {
1539
+ function Cs(e, t, n) {
1539
1540
  const r = (i) => /* @__PURE__ */ new Date(`${i}T00:00:00.000Z`), o = new Intl.DateTimeFormat(t, { dateStyle: n, timeZone: "UTC" });
1540
1541
  return e.from === e.to ? o.format(r(e.from)) : o.formatRange(r(e.from), r(e.to));
1541
1542
  }
1542
- function Ee(e) {
1543
+ function Be(e) {
1543
1544
  return e === "in" || e === "not in";
1544
1545
  }
1545
1546
  function Re(e) {
1546
1547
  return e === "not in" ? "exclude" : "include";
1547
1548
  }
1548
- function wi(e) {
1549
+ function Oi(e) {
1549
1550
  return e === "exclude" ? "not in" : "in";
1550
1551
  }
1551
- function Is(e) {
1552
+ function hs(e) {
1552
1553
  var n;
1553
1554
  const t = (n = e.liveValue) == null ? void 0 : n.operation;
1554
- return Ee(t) ? Re(t) : e.pendingMode ?? e.authoredMode;
1555
+ return Be(t) ? Re(t) : e.pendingMode ?? e.authoredMode;
1555
1556
  }
1556
- function Oi(e) {
1557
+ function _i(e) {
1557
1558
  var r;
1558
1559
  let t = !1;
1559
1560
  const n = (r = e.inputs) == null ? void 0 : r.map((o) => {
1560
1561
  if (o.kind !== "filter" || !o.filter) return o;
1561
- const i = _i(
1562
+ const i = Ai(
1562
1563
  o.filter,
1563
- new Set(Ai(e.defaultInputValues, o))
1564
+ new Set(Ei(e.defaultInputValues, o))
1564
1565
  );
1565
1566
  return i === o.filter ? o : (t = !0, { ...o, filter: i });
1566
1567
  });
1567
1568
  return t ? { ...e, inputs: n } : e;
1568
1569
  }
1569
- function _i(e, t) {
1570
- if (t.size !== 1 || !Ee(e.operation))
1570
+ function Ai(e, t) {
1571
+ if (t.size !== 1 || !Be(e.operation))
1571
1572
  return e;
1572
1573
  const [n] = t;
1573
- return Re(e.operation) === n ? e : { ...e, operation: wi(n) };
1574
+ return Re(e.operation) === n ? e : { ...e, operation: Oi(n) };
1574
1575
  }
1575
- function Ai(e, t) {
1576
+ function Ei(e, t) {
1576
1577
  var o;
1577
1578
  const n = (i) => Object.values(i ?? {}).map((a) => a[t.id]);
1578
1579
  return (t.runtimeScope === "shared" ? [(o = e == null ? void 0 : e.shared) == null ? void 0 : o[t.id]] : t.runtimeScope === "perSheet" ? n(e == null ? void 0 : e.bySheetId) : t.runtimeScope === "perCard" ? n(e == null ? void 0 : e.byCardId) : t.runtimeScope === "perDocumentSection" ? n(e == null ? void 0 : e.byDocumentSectionId) : []).flatMap(
@@ -1580,13 +1581,13 @@ function Ai(e, t) {
1580
1581
  );
1581
1582
  }
1582
1583
  function Bi(e) {
1583
- return Ee(e.operation) ? [Re(e.operation)] : [];
1584
+ return Be(e.operation) ? [Re(e.operation)] : [];
1584
1585
  }
1585
- function Cs(e) {
1586
+ function vs(e) {
1586
1587
  const t = Mt(e), r = A(t).issues.length ? t : Ba(t);
1587
1588
  return yt(
1588
- Oo(
1589
- Jn(Oi(r))
1589
+ _o(
1590
+ Wn(_i(r))
1590
1591
  ).dashboard
1591
1592
  );
1592
1593
  }
@@ -1597,7 +1598,7 @@ function qe(e, t) {
1597
1598
  continue;
1598
1599
  const o = [];
1599
1600
  for (const i of r.inlineFilters) {
1600
- const a = Wn(i, t);
1601
+ const a = Jn(i, t);
1601
1602
  a && o.push(a);
1602
1603
  }
1603
1604
  o.length > 0 && (n[r.id] = o);
@@ -1638,17 +1639,17 @@ function Yt(e, t, n) {
1638
1639
  };
1639
1640
  }
1640
1641
  function je(e, t, n) {
1641
- return Zt(
1642
+ return Xt(
1642
1643
  e,
1643
1644
  Yt(e, t, n),
1644
1645
  n
1645
1646
  );
1646
1647
  }
1647
- function hs(e, t, n) {
1648
- return Zt(e, t, n);
1648
+ function Fs(e, t, n) {
1649
+ return Xt(e, t, n);
1649
1650
  }
1650
- function Zt(e, t, n) {
1651
- const r = e.sheets ?? [], o = r.filter((s) => (s.kind ?? "dashboard") === "dashboard").map((s) => s.id), i = r.filter((s) => s.kind === "document"), a = o.length ? Xn({
1651
+ function Xt(e, t, n) {
1652
+ const r = e.sheets ?? [], o = r.filter((s) => (s.kind ?? "dashboard") === "dashboard").map((s) => s.id), i = r.filter((s) => s.kind === "document"), a = o.length ? er({
1652
1653
  dashboard: e,
1653
1654
  sheetIds: o,
1654
1655
  mode: "dashboard",
@@ -1661,7 +1662,7 @@ function Zt(e, t, n) {
1661
1662
  var c;
1662
1663
  return xe(
1663
1664
  s,
1664
- er({
1665
+ tr({
1665
1666
  dashboard: e,
1666
1667
  sheetId: l.id,
1667
1668
  sheetKind: "document",
@@ -1678,7 +1679,7 @@ function Zt(e, t, n) {
1678
1679
  a
1679
1680
  );
1680
1681
  }
1681
- function Xt(e, t) {
1682
+ function en(e, t) {
1682
1683
  const n = {}, r = {}, o = /* @__PURE__ */ new Map();
1683
1684
  for (const i of $(t)) {
1684
1685
  const a = e.get(i.inputId), { slot: s } = i, l = () => s.status === "set" && s.value.kind === "filter" ? s.value.filterValue : s.status === "cleared" ? null : void 0;
@@ -1704,14 +1705,14 @@ function Xt(e, t) {
1704
1705
  inlineFilterValues: o
1705
1706
  };
1706
1707
  }
1707
- function Ei(e, t) {
1708
+ function Ri(e, t) {
1708
1709
  if (!t.size) return [...e];
1709
1710
  const n = e.filter((o) => !t.has(o.filterId)), r = [...t.values()].filter(
1710
1711
  (o) => o !== null
1711
1712
  );
1712
- return tr(n, r);
1713
+ return nr(n, r);
1713
1714
  }
1714
- function en(e, t, n) {
1715
+ function tn(e, t, n) {
1715
1716
  if (!Object.keys(n).length) return t;
1716
1717
  const r = bt(
1717
1718
  e,
@@ -1726,21 +1727,21 @@ function en(e, t, n) {
1726
1727
  ...n
1727
1728
  };
1728
1729
  }
1729
- function Ri(e, t) {
1730
+ function qi(e, t) {
1730
1731
  if (!t.size) return;
1731
1732
  const n = Object.fromEntries(
1732
1733
  Object.entries(e).map(([r, o]) => [r, [...o]])
1733
1734
  );
1734
1735
  for (const [r, o] of t)
1735
- n[r] = Ei(n[r] ?? [], o);
1736
+ n[r] = Ri(n[r] ?? [], o);
1736
1737
  return n;
1737
1738
  }
1738
- function qi(e, t, n) {
1739
+ function ji(e, t, n) {
1739
1740
  const r = new Map(
1740
1741
  N(e).map(({ card: a }) => [
1741
1742
  a.id,
1742
1743
  // Column filters too (TCF-D4): a viewer's column filter survives a refetch.
1743
- new Map(Zn(a).map((s) => [s.id, s]))
1744
+ new Map(Xn(a).map((s) => [s.id, s]))
1744
1745
  ])
1745
1746
  );
1746
1747
  let o = !1;
@@ -1756,8 +1757,8 @@ function qi(e, t, n) {
1756
1757
  }
1757
1758
  return o ? i : void 0;
1758
1759
  }
1759
- function vs(e) {
1760
- const { dashboard: t, capture: n, calendar: r } = e, o = Sn(t, n.filterValues, {
1760
+ function Ds(e) {
1761
+ const { dashboard: t, capture: n, calendar: r } = e, o = Tn(t, n.filterValues, {
1761
1762
  calendar: r
1762
1763
  }), i = n.dashboardInputExecutionSnapshot, a = n.controlValues, s = {
1763
1764
  ...Yt(
@@ -1768,7 +1769,7 @@ function vs(e) {
1768
1769
  // The snapshot replays exactly over the listed values.
1769
1770
  dashboardInputValues: i ? xe(
1770
1771
  o.slots,
1771
- rr({
1772
+ or({
1772
1773
  dashboard: t,
1773
1774
  dashboardInputValues: i.dashboardInputValues,
1774
1775
  sheetId: i.sheetId,
@@ -1778,23 +1779,23 @@ function vs(e) {
1778
1779
  },
1779
1780
  r
1780
1781
  ),
1781
- cardViewState: i ? nr(i.cardViewState) : {}
1782
- }, l = i ? or(i.transientContexts) : void 0;
1782
+ cardViewState: i ? rr(i.cardViewState) : {}
1783
+ }, l = i ? ir(i.transientContexts) : void 0;
1783
1784
  return {
1784
1785
  runtimeValues: s,
1785
1786
  controlOverrides: a,
1786
1787
  ...l != null && l.length ? { transientContexts: l } : {}
1787
1788
  };
1788
1789
  }
1789
- function Fs(e, t) {
1790
+ function Ss(e, t) {
1790
1791
  const { controlContractOverrides: n, cardId: r } = t;
1791
1792
  if (!n || (n.controlDefinitions !== void 0 && (e.controls = n.controlDefinitions), typeof r != "string" || r.trim().length === 0))
1792
1793
  return e;
1793
1794
  const o = W(e, r);
1794
1795
  return o && (n.cardControlDefinitions !== void 0 && (o.controls = n.cardControlDefinitions), n.controlBindings !== void 0 && (o.controlBindings = n.controlBindings)), e;
1795
1796
  }
1796
- const ji = ["bySheetId", "byCardId", "byDocumentSectionId"];
1797
- function Ni(e, t) {
1797
+ const Ni = ["bySheetId", "byCardId", "byDocumentSectionId"];
1798
+ function zi(e, t) {
1798
1799
  const n = A(e);
1799
1800
  let r = !1;
1800
1801
  const o = (a) => {
@@ -1810,7 +1811,7 @@ function Ni(e, t) {
1810
1811
  ...t,
1811
1812
  ...t.shared ? { shared: o(t.shared) } : {}
1812
1813
  };
1813
- for (const a of ji) {
1814
+ for (const a of Ni) {
1814
1815
  const s = t[a];
1815
1816
  s && (i[a] = Object.fromEntries(
1816
1817
  Object.entries(s).map(([l, c]) => [l, o(c) ?? {}])
@@ -1818,18 +1819,18 @@ function Ni(e, t) {
1818
1819
  }
1819
1820
  return r ? i : t;
1820
1821
  }
1821
- function zi(e) {
1822
+ function Li(e) {
1822
1823
  var t, n;
1823
1824
  return ((n = (t = e.sheets) == null ? void 0 : t[0]) == null ? void 0 : n.id) ?? null;
1824
1825
  }
1825
- function Y(e, t) {
1826
+ function J(e, t) {
1826
1827
  var n;
1827
1828
  return !!t && !!((n = e.sheets) != null && n.some((r) => r.id === t));
1828
1829
  }
1829
- function Ds(e) {
1830
- const { dashboard: t, host: n, calendar: r } = e, o = Sn(t, n.filterValues, {
1830
+ function Ts(e) {
1831
+ const { dashboard: t, host: n, calendar: r } = e, o = Tn(t, n.filterValues, {
1831
1832
  calendar: r
1832
- }).slots, i = n.controlValues, a = Y(t, n.selectedSheetId) ? n.selectedSheetId : zi(t);
1833
+ }).slots, i = n.controlValues, a = J(t, n.selectedSheetId) ? n.selectedSheetId : Li(t);
1833
1834
  return {
1834
1835
  hostInputValues: o,
1835
1836
  controlOverrides: i,
@@ -1846,25 +1847,25 @@ function Ds(e) {
1846
1847
  )
1847
1848
  };
1848
1849
  }
1849
- function tn(e) {
1850
+ function nn(e) {
1850
1851
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
1851
1852
  for (const o of Pe(e))
1852
1853
  o.kind === "filter" && o.filter ? t.set(o.id, o.filter) : o.kind === "control" && n.add(o.id), o.compatibility && r.set(o.id, o.compatibility);
1853
1854
  return { filterInputs: t, controlInputIds: n, compatibility: r };
1854
1855
  }
1855
- function nn(e, t) {
1856
+ function rn(e, t) {
1856
1857
  const n = Tt(t);
1857
1858
  if (!n) return;
1858
1859
  const r = W(e, n);
1859
- return r ? ir(r, e) ? "applies" : "not-eligible" : "removed";
1860
+ return r ? ar(r, e) ? "applies" : "not-eligible" : "removed";
1860
1861
  }
1861
- function Ss(e, t) {
1862
- const n = nn(e, t);
1862
+ function Vs(e, t) {
1863
+ const n = rn(e, t);
1863
1864
  return n ? n === "applies" : Pe(e).some(
1864
1865
  (r) => r.id === t
1865
1866
  );
1866
1867
  }
1867
- function rn(e, t, n, r) {
1868
+ function on(e, t, n, r) {
1868
1869
  if (!n) return {};
1869
1870
  const o = new Set((e.sheets ?? []).map((c) => c.id)), i = new Set(
1870
1871
  N(e).map(({ card: c }) => c.id)
@@ -1875,7 +1876,7 @@ function rn(e, t, n, r) {
1875
1876
  for (const [f, m] of Object.entries(c)) {
1876
1877
  const y = t.filterInputs.has(f) || t.controlInputIds.has(f) ? f : ((u = a.findFilterInput({ inputId: f })) == null ? void 0 : u.input.id) ?? f;
1877
1878
  if (y !== f && c[y]) continue;
1878
- const p = nn(e, y);
1879
+ const p = rn(e, y);
1879
1880
  if (p) {
1880
1881
  if (p !== "applies") {
1881
1882
  r.push({
@@ -1943,11 +1944,11 @@ function O(e, t, n, r = {}) {
1943
1944
  ), i = {};
1944
1945
  for (const [a, s] of Object.entries(t ?? {})) {
1945
1946
  const l = o.get(a);
1946
- if (l && Wr(l)) {
1947
+ if (l && Jr(l)) {
1947
1948
  Yr(s) || (i[a] = s);
1948
1949
  continue;
1949
1950
  }
1950
- if (l && r.sessionSorts && Zr(l)) {
1951
+ if (l && r.sessionSorts && Xr(l)) {
1951
1952
  s.sort && (i[a] = { sort: s.sort });
1952
1953
  continue;
1953
1954
  }
@@ -1960,9 +1961,9 @@ function O(e, t, n, r = {}) {
1960
1961
  }
1961
1962
  return i;
1962
1963
  }
1963
- function Li(e, t, n) {
1964
+ function Ki(e, t, n) {
1964
1965
  if (t) {
1965
- if (Y(e, t)) return t;
1966
+ if (J(e, t)) return t;
1966
1967
  n.push({
1967
1968
  kind: "setting-no-longer-applies",
1968
1969
  target: "sheet",
@@ -1972,7 +1973,7 @@ function Li(e, t, n) {
1972
1973
  }
1973
1974
  }
1974
1975
  const Ne = (e, t) => pe(e ?? null, t ?? null);
1975
- function on(e) {
1976
+ function an(e) {
1976
1977
  return {
1977
1978
  adHocFilterValues: e.adHocFilterValues,
1978
1979
  controlOverrides: e.controlOverrides,
@@ -1991,7 +1992,7 @@ function X(e, t) {
1991
1992
  tableSettings: t
1992
1993
  };
1993
1994
  }
1994
- function an(e, t) {
1995
+ function sn(e, t) {
1995
1996
  const n = t.dashboardInputValues === e.baseline.hostInputValues && !t.inlineFilterValuesMap && !t.adHocFilterValues.length && t.controlOverrides === e.baseline.controlOverrides;
1996
1997
  return {
1997
1998
  selectedSheetId: t.selectedSheetId,
@@ -2001,24 +2002,24 @@ function an(e, t) {
2001
2002
  };
2002
2003
  }
2003
2004
  function j(e, t) {
2004
- const n = on(t), r = t.restore ?? n;
2005
+ const n = an(t), r = t.restore ?? n;
2005
2006
  return {
2006
2007
  ...n,
2007
2008
  appliedBookmarkId: t.appliedBookmarkId,
2008
2009
  rememberedWrites: t.rememberedWrites ?? [],
2009
2010
  notices: t.notices ?? [],
2010
- opened: an(e, r),
2011
+ opened: sn(e, r),
2011
2012
  restore: r
2012
2013
  };
2013
2014
  }
2014
2015
  function ot(e, t, n, r) {
2015
2016
  const { dashboard: o, baseline: i } = e, a = [], s = Pt(t.state, _e), l = s.ok ? s.value : {};
2016
2017
  for (const y of s.ok ? s.issues : [])
2017
- a.push(Ki(y));
2018
- const c = tn(o), d = Xt(
2018
+ a.push(Gi(y));
2019
+ const c = nn(o), d = en(
2019
2020
  c.compatibility,
2020
- rn(o, c, l.inputs, a)
2021
- ), u = Li(o, l.selectedSheetId, a) ?? i.selectedSheetId, f = O(
2021
+ on(o, c, l.inputs, a)
2022
+ ), u = Ki(o, l.selectedSheetId, a) ?? i.selectedSheetId, f = O(
2022
2023
  o,
2023
2024
  l.tableSettings,
2024
2025
  a
@@ -2031,7 +2032,7 @@ function ot(e, t, n, r) {
2031
2032
  appliedBookmarkId: t.id,
2032
2033
  // A bookmark opens without ad-hoc values, as today (P4a-02 f).
2033
2034
  adHocFilterValues: [],
2034
- controlOverrides: en(
2035
+ controlOverrides: tn(
2035
2036
  o,
2036
2037
  i.controlOverrides,
2037
2038
  d.controlValues
@@ -2041,8 +2042,8 @@ function ot(e, t, n, r) {
2041
2042
  i.hostInputValues,
2042
2043
  d.runtime
2043
2044
  ),
2044
- ...sn(
2045
- Ri(
2045
+ ...ln(
2046
+ qi(
2046
2047
  qe(o, e.calendar),
2047
2048
  d.inlineFilterValues
2048
2049
  )
@@ -2062,7 +2063,7 @@ function ot(e, t, n, r) {
2062
2063
  notices: a
2063
2064
  });
2064
2065
  }
2065
- function Ki(e) {
2066
+ function Gi(e) {
2066
2067
  return {
2067
2068
  kind: "setting-no-longer-applies",
2068
2069
  target: e.target,
@@ -2070,7 +2071,7 @@ function Ki(e) {
2070
2071
  reason: "invalid"
2071
2072
  };
2072
2073
  }
2073
- function sn(e) {
2074
+ function ln(e) {
2074
2075
  return e ? { inlineFilterValuesMap: e } : {};
2075
2076
  }
2076
2077
  function it(e, t, n) {
@@ -2086,18 +2087,18 @@ function it(e, t, n) {
2086
2087
  // Live slots stay, except a filter value this template no longer accepts:
2087
2088
  // that filter loads its new default, as the old list did. The resolver
2088
2089
  // ignores slots this template no longer has.
2089
- dashboardInputValues: Ni(
2090
+ dashboardInputValues: zi(
2090
2091
  r,
2091
2092
  t.dashboardInputValues
2092
2093
  ),
2093
- ...sn(
2094
- qi(
2094
+ ...ln(
2095
+ ji(
2095
2096
  r,
2096
2097
  qe(r, e.calendar),
2097
2098
  t.inlineFilterValuesMap ?? {}
2098
2099
  )
2099
2100
  ),
2100
- selectedSheetId: !n.sheetChanged && Y(r, t.selectedSheetId) ? t.selectedSheetId : o.selectedSheetId,
2101
+ selectedSheetId: !n.sheetChanged && J(r, t.selectedSheetId) ? t.selectedSheetId : o.selectedSheetId,
2101
2102
  tableSettings: O(
2102
2103
  r,
2103
2104
  t.tableSettings,
@@ -2106,7 +2107,7 @@ function it(e, t, n) {
2106
2107
  )
2107
2108
  };
2108
2109
  }
2109
- function Ts(e) {
2110
+ function Ms(e) {
2110
2111
  const { dashboard: t, baseline: n, event: r } = e, o = e.rememberedTableSettings;
2111
2112
  switch (r.kind) {
2112
2113
  case "initial-load":
@@ -2188,7 +2189,7 @@ function Ts(e) {
2188
2189
  return j(e, {
2189
2190
  appliedBookmarkId: r.applied.appliedBookmarkId,
2190
2191
  ...i,
2191
- selectedSheetId: Y(t, i.selectedSheetId) ? i.selectedSheetId : n.selectedSheetId,
2192
+ selectedSheetId: J(t, i.selectedSheetId) ? i.selectedSheetId : n.selectedSheetId,
2192
2193
  tableSettings: a,
2193
2194
  rememberedWrites: c,
2194
2195
  notices: r.applied.notices,
@@ -2197,7 +2198,7 @@ function Ts(e) {
2197
2198
  }
2198
2199
  }
2199
2200
  }
2200
- function Vs(e) {
2201
+ function ks(e) {
2201
2202
  const { dashboard: t, calendar: n } = e, r = e.hostControlValues, o = {
2202
2203
  ...e.baseline,
2203
2204
  controlOverrides: r,
@@ -2216,16 +2217,16 @@ function Vs(e) {
2216
2217
  const l = Pt(
2217
2218
  e.appliedBookmark.state,
2218
2219
  _e
2219
- ), c = tn(t), d = Xt(
2220
+ ), c = nn(t), d = en(
2220
2221
  c.compatibility,
2221
- rn(
2222
+ on(
2222
2223
  t,
2223
2224
  c,
2224
2225
  l.ok ? l.value.inputs : void 0,
2225
2226
  []
2226
2227
  )
2227
2228
  ).controlValues;
2228
- i = en(t, r, d);
2229
+ i = tn(t, r, d);
2229
2230
  }
2230
2231
  const a = e.applied;
2231
2232
  if (!a) return { baseline: o, controlOverrides: i, applied: null };
@@ -2237,12 +2238,12 @@ function Vs(e) {
2237
2238
  ...a,
2238
2239
  controlOverrides: i,
2239
2240
  restore: s,
2240
- opened: an({ dashboard: t, baseline: o, calendar: n }, s)
2241
+ opened: sn({ dashboard: t, baseline: o, calendar: n }, s)
2241
2242
  }
2242
2243
  };
2243
2244
  }
2244
- function Ms(e, t, n) {
2245
- const r = on(n.values);
2245
+ function xs(e, t, n) {
2246
+ const r = an(n.values);
2246
2247
  return {
2247
2248
  ...r,
2248
2249
  appliedBookmarkId: t,
@@ -2256,7 +2257,7 @@ const at = (e) => JSON.stringify([e.scope, e.target, e.inputId]);
2256
2257
  function ee(e) {
2257
2258
  return !e || e.status === "cleared" && !e.comparisonSelection;
2258
2259
  }
2259
- function ln(e, t) {
2260
+ function cn(e, t) {
2260
2261
  const n = new Map(
2261
2262
  $(e).map((i) => [at(i), i])
2262
2263
  ), r = new Map(
@@ -2274,12 +2275,12 @@ function ln(e, t) {
2274
2275
  r.has(i) || ee(a.slot) || le(o, a, { status: "cleared" });
2275
2276
  return fe(o);
2276
2277
  }
2277
- function ks(e) {
2278
- const { dashboard: t, baseline: n, current: r } = e, o = ln(n.materializedInputs, r.inputs), i = O(
2278
+ function Ps(e) {
2279
+ const { dashboard: t, baseline: n, current: r } = e, o = cn(n.materializedInputs, r.inputs), i = O(
2279
2280
  t,
2280
2281
  r.tableSettings,
2281
2282
  void 0
2282
- ), a = r.selectedSheetId && r.selectedSheetId !== n.selectedSheetId && Y(t, r.selectedSheetId) ? r.selectedSheetId : void 0;
2283
+ ), a = r.selectedSheetId && r.selectedSheetId !== n.selectedSheetId && J(t, r.selectedSheetId) ? r.selectedSheetId : void 0;
2283
2284
  return {
2284
2285
  version: _e,
2285
2286
  ...a ? { selectedSheetId: a } : {},
@@ -2287,13 +2288,13 @@ function ks(e) {
2287
2288
  ...Object.keys(i).length ? { tableSettings: i } : {}
2288
2289
  };
2289
2290
  }
2290
- function Gi(e) {
2291
+ function Hi(e) {
2291
2292
  const t = /* @__PURE__ */ new Map();
2292
2293
  for (const n of Pe(e))
2293
2294
  n.label && t.set(n.id, n.label);
2294
2295
  return t;
2295
2296
  }
2296
- function Hi(e, t, n) {
2297
+ function Ui(e, t, n) {
2297
2298
  var o, i;
2298
2299
  const r = Tt(n);
2299
2300
  if (r) {
@@ -2302,16 +2303,16 @@ function Hi(e, t, n) {
2302
2303
  }
2303
2304
  return t.get(n) ?? n;
2304
2305
  }
2305
- function xs(e) {
2306
+ function ws(e) {
2306
2307
  var c, d;
2307
- const { dashboard: t, opened: n, current: r } = e, o = [], i = Gi(t), a = /* @__PURE__ */ new Set();
2308
+ const { dashboard: t, opened: n, current: r } = e, o = [], i = Hi(t), a = /* @__PURE__ */ new Set();
2308
2309
  for (const u of $(
2309
- ln(n.inputs, r.inputs)
2310
+ cn(n.inputs, r.inputs)
2310
2311
  ))
2311
2312
  a.has(u.inputId) || (a.add(u.inputId), o.push({
2312
2313
  target: "input",
2313
2314
  inputId: u.inputId,
2314
- label: Hi(t, i, u.inputId)
2315
+ label: Ui(t, i, u.inputId)
2315
2316
  }));
2316
2317
  (n.selectedSheetId ?? null) !== (r.selectedSheetId ?? null) && o.push({ target: "sheet" });
2317
2318
  const s = O(
@@ -2348,7 +2349,7 @@ function st(e) {
2348
2349
  }
2349
2350
  };
2350
2351
  }
2351
- function Ui(e) {
2352
+ function Qi(e) {
2352
2353
  var o, i;
2353
2354
  if ((o = e.card.sql) != null && o.trim())
2354
2355
  return {
@@ -2358,7 +2359,7 @@ function Ui(e) {
2358
2359
  };
2359
2360
  const t = e.inputs.filter((a) => !U(a.filter)).map((a) => ({
2360
2361
  input: a,
2361
- resolution: ar({
2362
+ resolution: sr({
2362
2363
  filter: a.filter,
2363
2364
  filterValue: a.filterValue,
2364
2365
  effectiveFilterValue: a.effectiveFilterValue,
@@ -2372,7 +2373,7 @@ function Ui(e) {
2372
2373
  const n = e.inputs.find(
2373
2374
  (a) => U(a.filter)
2374
2375
  );
2375
- if (n && ((i = n.filterValue) == null ? void 0 : i.filterId) === n.filterId && n.effectiveFilterValue.filterId === n.filterId && sr(n.effectiveFilterValue))
2376
+ if (n && ((i = n.filterValue) == null ? void 0 : i.filterId) === n.filterId && n.effectiveFilterValue.filterId === n.filterId && lr(n.effectiveFilterValue))
2376
2377
  return {
2377
2378
  inputs: e.inputs,
2378
2379
  fieldCandidates: t,
@@ -2402,7 +2403,7 @@ function Ui(e) {
2402
2403
  }
2403
2404
  } : { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
2404
2405
  }
2405
- function Ps(e) {
2406
+ function Os(e) {
2406
2407
  const t = {
2407
2408
  ownerCardCount: 0,
2408
2409
  matchingCardCount: 0,
@@ -2420,7 +2421,7 @@ function Ps(e) {
2420
2421
  }
2421
2422
  return t;
2422
2423
  }
2423
- const Qi = /* @__PURE__ */ new Set([
2424
+ const $i = /* @__PURE__ */ new Set([
2424
2425
  "between",
2425
2426
  "not between",
2426
2427
  "=",
@@ -2431,36 +2432,36 @@ const Qi = /* @__PURE__ */ new Set([
2431
2432
  "<=",
2432
2433
  "is null",
2433
2434
  "is not null"
2434
- ]), $i = /^(\d{4}-\d{2}-\d{2})T/, Ji = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
2435
+ ]), Zi = /^(\d{4}-\d{2}-\d{2})T/, Wi = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/;
2435
2436
  function ze(e) {
2436
- return Qi.has(e);
2437
+ return $i.has(e);
2437
2438
  }
2438
- function Wi(e, t) {
2439
+ function Ji(e, t) {
2439
2440
  if (e instanceof Date)
2440
2441
  return Number.isNaN(e.getTime()) ? e : t ? Qe(e, t, "yyyy-MM-dd") : e.toISOString().slice(0, 10);
2441
2442
  if (typeof e != "string")
2442
2443
  return e;
2443
2444
  const n = e.trim();
2444
- if (t && Ji.test(n)) {
2445
+ if (t && Wi.test(n)) {
2445
2446
  const o = new Date(n);
2446
2447
  if (!Number.isNaN(o.getTime()))
2447
2448
  return Qe(o, t, "yyyy-MM-dd");
2448
2449
  }
2449
- const r = $i.exec(n);
2450
+ const r = Zi.exec(n);
2450
2451
  return r ? r[1] : e;
2451
2452
  }
2452
- function cn(e, t) {
2453
+ function dn(e, t) {
2453
2454
  return Array.isArray(e) ? e.map(
2454
- (n) => Wi(n, t)
2455
+ (n) => Ji(n, t)
2455
2456
  ) : e;
2456
2457
  }
2457
- function dn(e) {
2458
+ function un(e) {
2458
2459
  return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision : we(
2459
2460
  e.dashboard,
2460
2461
  e.semanticExecutionPayload
2461
2462
  ).allEligibleTargetsAreDateTime;
2462
2463
  }
2463
- function un(e) {
2464
+ function fn(e) {
2464
2465
  const {
2465
2466
  globalDateFilter: t,
2466
2467
  globalDateFilterValue: n,
@@ -2474,7 +2475,7 @@ function un(e) {
2474
2475
  ...n,
2475
2476
  filterId: t.id
2476
2477
  };
2477
- const i = n, a = i.temporalPrecision === "minute" || te(i.relativeMeta) === "minute", s = !o && a, l = i.operation === "is null" || i.operation === "is not null" ? [] : s ? cn(i.values, r) : i.values, c = o || te(i.relativeMeta) !== "minute" ? i.relativeMeta : void 0, d = o && i.temporalPrecision === "minute" ? i.temporalPrecision : void 0, {
2478
+ const i = n, a = i.temporalPrecision === "minute" || te(i.relativeMeta) === "minute", s = !o && a, l = i.operation === "is null" || i.operation === "is not null" ? [] : s ? dn(i.values, r) : i.values, c = o || te(i.relativeMeta) !== "minute" ? i.relativeMeta : void 0, d = o && i.temporalPrecision === "minute" ? i.temporalPrecision : void 0, {
2478
2479
  relativeMeta: u,
2479
2480
  temporalPrecision: f,
2480
2481
  values: m,
@@ -2492,15 +2493,15 @@ function Yi(e) {
2492
2493
  const t = L(e.filters);
2493
2494
  if (!t)
2494
2495
  return e.filterValues;
2495
- const n = dn(e);
2496
- return e.filterValues.map((r) => r.filterId !== t.id ? r : un({
2496
+ const n = un(e);
2497
+ return e.filterValues.map((r) => r.filterId !== t.id ? r : fn({
2497
2498
  globalDateFilter: t,
2498
2499
  globalDateFilterValue: r,
2499
2500
  timezone: e.timezone,
2500
2501
  allowMinutePrecision: n
2501
2502
  }) || r);
2502
2503
  }
2503
- function fn(e) {
2504
+ function pn(e) {
2504
2505
  const {
2505
2506
  globalDateFilter: t,
2506
2507
  globalDateFilterValue: n,
@@ -2511,7 +2512,7 @@ function fn(e) {
2511
2512
  } = e;
2512
2513
  if (!t || !n || !r || !ze(n.operation))
2513
2514
  return null;
2514
- const s = n, l = lr(
2515
+ const s = n, l = cr(
2515
2516
  r.dataType
2516
2517
  ), c = a && l, d = s.temporalPrecision === "minute" || te(s.relativeMeta) === "minute", u = c && s.temporalPrecision === "minute" ? s.temporalPrecision : void 0, f = c || te(s.relativeMeta) !== "minute" ? s.relativeMeta : void 0, m = !c && d;
2517
2518
  return {
@@ -2520,7 +2521,7 @@ function fn(e) {
2520
2521
  name: r.qualifiedFieldName || r.name,
2521
2522
  operation: s.operation,
2522
2523
  valueType: "date",
2523
- values: s.operation === "is null" || s.operation === "is not null" ? [] : m ? cn(
2524
+ values: s.operation === "is null" || s.operation === "is not null" ? [] : m ? dn(
2524
2525
  s.values,
2525
2526
  i
2526
2527
  ) : s.values,
@@ -2545,25 +2546,25 @@ function fn(e) {
2545
2546
  ...u ? { temporalPrecision: u } : {}
2546
2547
  };
2547
2548
  }
2548
- function B(e) {
2549
+ function E(e) {
2549
2550
  return typeof e == "string" ? e.trim() : "";
2550
2551
  }
2551
- function Zi(e) {
2552
+ function Xi(e) {
2552
2553
  var t;
2553
2554
  return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
2554
2555
  var r;
2555
2556
  return {
2556
- domainId: B(n.domainId) || B((r = e.semanticContext) == null ? void 0 : r.semanticDomainId),
2557
- datasetName: B(n.name),
2558
- selectedEntityId: B(n.id)
2557
+ domainId: E(n.domainId) || E((r = e.semanticContext) == null ? void 0 : r.semanticDomainId),
2558
+ datasetName: E(n.name),
2559
+ selectedEntityId: E(n.id)
2559
2560
  };
2560
2561
  }).filter((n) => n.domainId && n.datasetName);
2561
2562
  }
2562
- function Xi(e) {
2563
+ function ea(e) {
2563
2564
  var l, c, d, u, f;
2564
2565
  if (U(e) || (l = e.sql) != null && l.trim())
2565
2566
  return null;
2566
- const t = Zi(e), n = B((c = e.semanticContext) == null ? void 0 : c.semanticDomainId), r = B((d = e.fieldMeta) == null ? void 0 : d.entityId), o = B((u = e.fieldMeta) == null ? void 0 : u.entityName), i = B((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", a = t.find(
2567
+ const t = Xi(e), n = E((c = e.semanticContext) == null ? void 0 : c.semanticDomainId), r = E((d = e.fieldMeta) == null ? void 0 : d.entityId), o = E((u = e.fieldMeta) == null ? void 0 : u.entityName), i = E((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", a = t.find(
2567
2568
  (m) => r && m.selectedEntityId === r
2568
2569
  );
2569
2570
  if (a)
@@ -2576,22 +2577,22 @@ function Xi(e) {
2576
2577
  datasetName: o
2577
2578
  } : null);
2578
2579
  }
2579
- function ea(e) {
2580
+ function ta(e) {
2580
2581
  var o, i;
2581
2582
  const { filter: t, semanticExecutionPayload: n } = e;
2582
2583
  if (!n)
2583
2584
  return null;
2584
- const r = Xi(t);
2585
+ const r = ea(t);
2585
2586
  return r && ((i = (o = n.domainsById[r.domainId]) == null ? void 0 : o.datasetsByName[r.datasetName]) == null ? void 0 : i.primaryDateField) || null;
2586
2587
  }
2587
- function pn(e) {
2588
+ function mn(e) {
2588
2589
  const t = L(e.filters);
2589
2590
  return t ? e.filterValues.filter(
2590
2591
  (n) => n.filterId !== t.id
2591
2592
  ) : e.filterValues;
2592
2593
  }
2593
- function ws(e) {
2594
- const t = L(e.filters), n = pn({
2594
+ function _s(e) {
2595
+ const t = L(e.filters), n = mn({
2595
2596
  filters: e.filters,
2596
2597
  filterValues: e.filterValues
2597
2598
  });
@@ -2599,10 +2600,10 @@ function ws(e) {
2599
2600
  return n;
2600
2601
  const r = e.filterValues.find(
2601
2602
  (a) => a.filterId === t.id
2602
- ), o = ea({
2603
+ ), o = ta({
2603
2604
  filter: e.filter,
2604
2605
  semanticExecutionPayload: e.semanticExecutionPayload
2605
- }), i = fn({
2606
+ }), i = pn({
2606
2607
  globalDateFilter: t,
2607
2608
  globalDateFilterValue: r,
2608
2609
  resolvedPrimaryDateField: o || void 0,
@@ -2612,7 +2613,7 @@ function ws(e) {
2612
2613
  });
2613
2614
  return i ? [i, ...n] : n;
2614
2615
  }
2615
- function ta(e) {
2616
+ function na(e) {
2616
2617
  var d;
2617
2618
  const t = L(e.filters), n = t ? e.cardFilterValues.find(
2618
2619
  (u) => u.filterId === t.id
@@ -2623,7 +2624,7 @@ function ta(e) {
2623
2624
  cardConfig: e.cardConfig,
2624
2625
  resolvedFields: e.resolvedFields,
2625
2626
  semanticExecutionPayload: e.semanticExecutionPayload
2626
- }), i = fn({
2627
+ }), i = pn({
2627
2628
  globalDateFilter: t,
2628
2629
  globalDateFilterValue: n,
2629
2630
  resolvedPrimaryDateField: o || void 0,
@@ -2644,7 +2645,7 @@ function ta(e) {
2644
2645
  effectiveFilterValue: f,
2645
2646
  mappedFilterValue: (m = e.mappedFilterValuesByInputId) == null ? void 0 : m.get(u.inputId)
2646
2647
  }] : [];
2647
- })) || [], c = Ui({
2648
+ })) || [], c = Qi({
2648
2649
  inputs: l,
2649
2650
  temporalBinding: o,
2650
2651
  card: e.card
@@ -2655,13 +2656,13 @@ function ta(e) {
2655
2656
  dateComparisonPlan: c
2656
2657
  };
2657
2658
  }
2658
- function Os(e) {
2659
- const t = L(e.filters), n = dn(e), r = t ? e.filterValues.find(
2659
+ function As(e) {
2660
+ const t = L(e.filters), n = un(e), r = t ? e.filterValues.find(
2660
2661
  (a) => a.filterId === t.id
2661
- ) : void 0, o = pn(e);
2662
+ ) : void 0, o = mn(e);
2662
2663
  return !t || !r || !ze(r.operation) ? o : [
2663
2664
  {
2664
- ...un({
2665
+ ...fn({
2665
2666
  globalDateFilter: t,
2666
2667
  globalDateFilterValue: r,
2667
2668
  timezone: e.timezone,
@@ -2673,26 +2674,26 @@ function Os(e) {
2673
2674
  ...o
2674
2675
  ];
2675
2676
  }
2676
- class na extends Error {
2677
+ class ra extends Error {
2677
2678
  }
2678
- function _s(e, t) {
2679
+ function Es(e, t) {
2679
2680
  const n = new Map((e ? N(e) : []).map(({ card: r }) => [r.id, r]));
2680
2681
  return t && n.set(t.id, t), [...n.values()].flatMap((r) => {
2681
2682
  const o = Ve(r);
2682
- return o.status === "ready" ? vi(o.config.spec, r.controlBindings) : [];
2683
+ return o.status === "ready" ? Fi(o.config.spec, r.controlBindings) : [];
2683
2684
  });
2684
2685
  }
2685
- function ra(e, t, n) {
2686
- const r = cr(e);
2686
+ function oa(e, t, n) {
2687
+ const r = dr(e);
2687
2688
  if (!r) throw new Error("Matrix card definition is required.");
2688
- const o = n && hi({
2689
+ const o = n && vi({
2689
2690
  ...n,
2690
2691
  spec: r.spec,
2691
2692
  catalog: t.map((d) => ({ ...d, id: d.resolvedField.id }))
2692
- }), i = o ? { ...r, spec: o.spec } : r, a = dr(t), s = ur(t), l = (d) => {
2693
+ }), i = o ? { ...r, spec: o.spec } : r, a = ur(t), s = fr(t), l = (d) => {
2693
2694
  const u = s(d, i.spec.source);
2694
2695
  if (!(!u && d.derivedField)) {
2695
- if (!u) throw new na(`Matrix field metadata is unavailable: ${d.name}`);
2696
+ if (!u) throw new ra(`Matrix field metadata is unavailable: ${d.name}`);
2696
2697
  return { ...u, ...d.derivedField ? { derivedField: d.derivedField } : {} };
2697
2698
  }
2698
2699
  }, c = {
@@ -2714,7 +2715,7 @@ function ra(e, t, n) {
2714
2715
  };
2715
2716
  return { config: i, fields: c, resolveField: a };
2716
2717
  }
2717
- function oa(e) {
2718
+ function ia(e) {
2718
2719
  const t = e.filter(Boolean);
2719
2720
  if (t.length !== 0)
2720
2721
  return t.length === 1 ? t[0] : {
@@ -2725,7 +2726,7 @@ function oa(e) {
2725
2726
  groups: t
2726
2727
  };
2727
2728
  }
2728
- function ia(e) {
2729
+ function aa(e) {
2729
2730
  if (!e) return;
2730
2731
  const t = (n) => ({
2731
2732
  logicalOperator: n.logicalOperator,
@@ -2745,12 +2746,14 @@ function ia(e) {
2745
2746
  });
2746
2747
  return JSON.stringify(t(e));
2747
2748
  }
2748
- function aa(e, t, n = {}) {
2749
+ function sa(e, t, n = {}) {
2749
2750
  const r = e.metricColumns || [];
2750
2751
  if (r.length === 0) return e;
2751
- const o = fr.includes(
2752
+ if (n.hidden)
2753
+ return { ...e, metricColumns: r.map((c) => ({ ...c, comparison: { mode: "off" } })) };
2754
+ const o = pr.includes(
2752
2755
  t
2753
- ), i = pr.includes(
2756
+ ), i = mr.includes(
2754
2757
  t
2755
2758
  ), a = (c) => {
2756
2759
  var d;
@@ -2766,7 +2769,7 @@ function aa(e, t, n = {}) {
2766
2769
  const l = r.map(
2767
2770
  (c) => {
2768
2771
  var f;
2769
- const d = Xr(c);
2772
+ const d = eo(c);
2770
2773
  if (d === "none")
2771
2774
  return c;
2772
2775
  let u = c;
@@ -2781,43 +2784,45 @@ function aa(e, t, n = {}) {
2781
2784
  metricColumns: l
2782
2785
  } : e;
2783
2786
  }
2784
- function As(e, t = {}) {
2785
- return mn(gn(e, t));
2787
+ function Bs(e, t = {}) {
2788
+ return gn(yn(e, t));
2786
2789
  }
2787
- function mn(e) {
2790
+ function gn(e) {
2788
2791
  const t = [e.drill, e.selections, e.zoom, e.search];
2789
- return e.authored ? co(e.authored, t, Ct()) : oa(t);
2792
+ return e.authored ? uo(e.authored, t, Ct()) : ia(t);
2790
2793
  }
2791
- function gn(e, t = {}) {
2794
+ function yn(e, t = {}) {
2792
2795
  return {
2793
- authored: t.includeAuthoredFilters === !1 ? void 0 : mr(e),
2794
- drill: Ti(t.drill, e.id),
2795
- selections: lo(t.selections ?? []),
2796
+ authored: t.includeAuthoredFilters === !1 ? void 0 : gr(e),
2797
+ drill: Vi(t.drill, e.id),
2798
+ selections: co(t.selections ?? []),
2796
2799
  ...t.zoom ? { zoom: t.zoom } : {}
2797
2800
  };
2798
2801
  }
2799
- function sa(e, t, n) {
2800
- const r = Jt(e, t);
2801
- return Te(e) ? aa(
2802
+ function la(e, t, n) {
2803
+ var o;
2804
+ const r = Wt(e, t);
2805
+ return Te(e) ? sa(
2802
2806
  { ...r, filters: n },
2803
2807
  e.type,
2804
- // A data variable's card keeps its own period comparison (P3b-03).
2805
- { keepsPeriodComparison: eo(e) }
2808
+ // A data variable's card keeps its own period comparison (P3b-03); a card saved
2809
+ // with its comparisons hidden runs none (compare-with CW-D28).
2810
+ { keepsPeriodComparison: to(e), hidden: Et((o = e.preferences) == null ? void 0 : o.comparisonPresentation) }
2806
2811
  ) : r;
2807
2812
  }
2808
- function la(e) {
2809
- const t = gr(e);
2813
+ function ca(e) {
2814
+ const t = yr(e);
2810
2815
  return {
2811
2816
  contextMode: t,
2812
2817
  shouldApplyDashboardFilters: !t || t === "full"
2813
2818
  };
2814
2819
  }
2815
- function ca(e) {
2820
+ function da(e) {
2816
2821
  const t = e.dashboardControls || [], n = e.card.controls || [], r = /* @__PURE__ */ new Set([
2817
2822
  ...t.map((o) => o.id),
2818
2823
  ...n.map((o) => o.id)
2819
2824
  ]);
2820
- return yn(
2825
+ return bn(
2821
2826
  e.card,
2822
2827
  {
2823
2828
  controlValues: ht({
@@ -2832,7 +2837,7 @@ function ca(e) {
2832
2837
  e.presentationControlIds
2833
2838
  );
2834
2839
  }
2835
- function yn(e, t, n) {
2840
+ function bn(e, t, n) {
2836
2841
  const o = t.controlBindings.filter(
2837
2842
  (f) => !de(f)
2838
2843
  ), i = new Set(
@@ -2864,35 +2869,35 @@ function yn(e, t, n) {
2864
2869
  controlBindings: d
2865
2870
  };
2866
2871
  }
2867
- function da(e, t) {
2872
+ function ua(e, t) {
2868
2873
  return !!t && e.endsWith(t);
2869
2874
  }
2870
- function bn(e, t) {
2875
+ function In(e, t) {
2871
2876
  return (e ?? []).filter(
2872
- (n) => da(n.filterId, t)
2877
+ (n) => ua(n.filterId, t)
2873
2878
  );
2874
2879
  }
2875
- function In(e, t, n) {
2876
- var r;
2877
- if (t)
2880
+ function Cn(e, t, n) {
2881
+ var r, o;
2882
+ if (!(!t || e.dataVariableId || Et((r = e.preferences) == null ? void 0 : r.comparisonPresentation)))
2878
2883
  return {
2879
2884
  selection: t,
2880
- ...((r = e.preferences) == null ? void 0 : r.inheritGlobalComparison) === !1 ? { inheritGlobalComparison: !1 } : {},
2885
+ ...((o = e.preferences) == null ? void 0 : o.inheritGlobalComparison) === !1 ? { inheritGlobalComparison: !1 } : {},
2881
2886
  ...n ? { owner: n } : {}
2882
2887
  };
2883
2888
  }
2884
- function ua(e) {
2889
+ function fa(e) {
2885
2890
  if (e.resolution.status === "resolved")
2886
- return In(
2891
+ return Cn(
2887
2892
  e.card,
2888
2893
  e.resolution.resolvedOwner.selection,
2889
2894
  e.resolution.resolvedOwner.owner
2890
2895
  );
2891
2896
  }
2892
- function fa(e) {
2897
+ function pa(e) {
2893
2898
  return `Set ${e.join(", ")} to run this card.`;
2894
2899
  }
2895
- function pa({
2900
+ function ma({
2896
2901
  dashboardInputContext: e,
2897
2902
  shouldApplyDashboardFilters: t
2898
2903
  }) {
@@ -2907,7 +2912,7 @@ function pa({
2907
2912
  (r) => n.has(r.filterId)
2908
2913
  );
2909
2914
  }
2910
- function ma({
2915
+ function ga({
2911
2916
  dashboardInputFilterValues: e,
2912
2917
  adHocFilterValues: t
2913
2918
  }) {
@@ -2919,7 +2924,7 @@ function ma({
2919
2924
  return n;
2920
2925
  }
2921
2926
  function ce(e, t) {
2922
- const n = t.shouldApplyDashboardFilters ? bn(t.adHocFilterValues, t.selectedSheetId) : [], r = t.selectionFilterValues ?? [];
2927
+ const n = t.shouldApplyDashboardFilters ? In(t.adHocFilterValues, t.selectedSheetId) : [], r = t.selectionFilterValues ?? [];
2923
2928
  if (!t.dashboardInputContext)
2924
2929
  return {
2925
2930
  status: "ready",
@@ -2937,14 +2942,14 @@ function ce(e, t) {
2937
2942
  return u.kind === "filter" && ((f = u.compatibility) == null ? void 0 : f.source) === "cardInlineFilter" ? [u.filter.id] : [];
2938
2943
  }
2939
2944
  )
2940
- ), s = pa({
2945
+ ), s = ma({
2941
2946
  dashboardInputContext: t.dashboardInputContext,
2942
2947
  shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
2943
2948
  }).filter((u) => !i.has(u.filterId)), l = s.filter(
2944
2949
  (u) => !a.has(u.filterId)
2945
2950
  ), c = s.filter(
2946
2951
  (u) => a.has(u.filterId)
2947
- ), d = yr({
2952
+ ), d = br({
2948
2953
  card: e,
2949
2954
  inputs: o,
2950
2955
  resolvedInputs: t.dashboardInputContext.resolvedInputs,
@@ -2957,7 +2962,7 @@ function ce(e, t) {
2957
2962
  } : {
2958
2963
  status: "ready",
2959
2964
  filterValues: [
2960
- ...ma({
2965
+ ...ga({
2961
2966
  dashboardInputFilterValues: [
2962
2967
  ...l,
2963
2968
  ...d.filterValues
@@ -2970,7 +2975,7 @@ function ce(e, t) {
2970
2975
  mappingDispositions: d.dispositions
2971
2976
  };
2972
2977
  }
2973
- function ga(e, t) {
2978
+ function ya(e, t) {
2974
2979
  const n = e.dashboardInputContext;
2975
2980
  if (!n) return [];
2976
2981
  const r = new Set(
@@ -2984,7 +2989,7 @@ function ga(e, t) {
2984
2989
  return a ? a.kind === "filter" && (!e.shouldApplyDashboardFilters && !wt(a) || r.has(a.id)) ? [] : [i.label] : [];
2985
2990
  });
2986
2991
  }
2987
- function ya({
2992
+ function ba({
2988
2993
  card: e,
2989
2994
  cardConfig: t,
2990
2995
  input: n,
@@ -2997,7 +3002,7 @@ function ya({
2997
3002
  var p;
2998
3003
  const l = n.dashboardInputContext ? n.dashboardInputContext.inputs.flatMap(
2999
3004
  (b) => b.kind === "filter" ? [b.filter] : []
3000
- ) : [], c = ce(e, n), d = ga(
3005
+ ) : [], c = ce(e, n), d = ya(
3001
3006
  n,
3002
3007
  c.mappingDispositions
3003
3008
  );
@@ -3017,7 +3022,7 @@ function ya({
3017
3022
  mappingDispositions: c.mappingDispositions,
3018
3023
  missingRequiredLabels: []
3019
3024
  };
3020
- const u = ta({
3025
+ const u = na({
3021
3026
  card: e,
3022
3027
  cardConfig: t,
3023
3028
  filters: l,
@@ -3035,10 +3040,10 @@ function ya({
3035
3040
  )
3036
3041
  }), f = L(l), m = !!(f && u.cardFilterValues.some(
3037
3042
  (b) => b.filterId === f.id
3038
- )), y = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ? ua({
3043
+ )), y = u.resolvedPrimaryDateField && !((p = e.sql) != null && p.trim()) ? u.dateComparisonPlan.inputs.length ? fa({
3039
3044
  card: e,
3040
3045
  resolution: u.dateComparisonPlan.resolution
3041
- }) : m ? In(
3046
+ }) : m ? Cn(
3042
3047
  e,
3043
3048
  n.globalDateComparisonSelection
3044
3049
  ) : void 0 : void 0;
@@ -3050,7 +3055,7 @@ function ya({
3050
3055
  mappingDispositions: c.mappingDispositions
3051
3056
  };
3052
3057
  }
3053
- function ba({
3058
+ function Ia({
3054
3059
  card: e,
3055
3060
  dashboard: t,
3056
3061
  transientContexts: n,
@@ -3065,13 +3070,13 @@ function ba({
3065
3070
  dashboardInputContext: u,
3066
3071
  includeAuthoredFilters: f
3067
3072
  }) {
3068
- var K, Z, Le, Ke;
3069
- const m = Kt(t);
3073
+ var K, Y, Le, Ke;
3074
+ const m = Gt(t);
3070
3075
  for (const q of e.controlBindings || [])
3071
3076
  de(q) && m.add(q.controlId);
3072
- const { shouldApplyDashboardFilters: y } = la(n), p = u != null && u.inputs.length ? u : void 0, b = ((u == null ? void 0 : u.selections) ?? []).filter(
3077
+ const { shouldApplyDashboardFilters: y } = ca(n), p = u != null && u.inputs.length ? u : void 0, b = ((u == null ? void 0 : u.selections) ?? []).filter(
3073
3078
  (q) => q.status === "apply"
3074
- ), I = gn(e, {
3079
+ ), I = yn(e, {
3075
3080
  includeAuthoredFilters: f,
3076
3081
  selections: b,
3077
3082
  drill: r == null ? void 0 : r.drill
@@ -3099,22 +3104,22 @@ function ba({
3099
3104
  }, h = ce(e, C), S = {
3100
3105
  filterValues: h.status === "ready" ? h.filterValues : [],
3101
3106
  selectionFilters: I.selections
3102
- }, g = rt(S), V = Pi(r == null ? void 0 : r.zoom, (K = e.config) == null ? void 0 : K.groupByColumns, g), P = br(
3103
- Di(e, r == null ? void 0 : r.drill),
3104
- (Z = r == null ? void 0 : r.search) == null ? void 0 : Z.text,
3107
+ }, g = rt(S), V = wi(r == null ? void 0 : r.zoom, (K = e.config) == null ? void 0 : K.groupByColumns, g), P = Ir(
3108
+ Si(e, r == null ? void 0 : r.drill),
3109
+ (Y = r == null ? void 0 : r.search) == null ? void 0 : Y.text,
3105
3110
  o
3106
3111
  ), x = {
3107
3112
  ...I,
3108
3113
  ...V ? { zoom: V.filterGroup } : {},
3109
3114
  ...P ? { search: P } : {}
3110
- }, v = V ? rt({ ...S, zoom: V.zoom }) : g, T = mn(x), M = f === !1 ? me(T, !0) : T, k = sa(
3115
+ }, v = V ? rt({ ...S, zoom: V.zoom }) : g, T = gn(x), M = f === !1 ? me(T, !0) : T, k = la(
3111
3116
  e,
3112
3117
  r == null ? void 0 : r.drill,
3113
3118
  M
3114
- ), F = ki(k, r == null ? void 0 : r.grainPick, {
3119
+ ), F = xi(k, r == null ? void 0 : r.grainPick, {
3115
3120
  currentFingerprint: v,
3116
3121
  drillActive: (((Le = r == null ? void 0 : r.drill) == null ? void 0 : Le.steps.length) ?? 0) > 0
3117
- }), D = Ir({ ...e, config: F }, o) ?? F, w = jt(D, {
3122
+ }), D = Cr({ ...e, config: F }, o) ?? F, w = Nt(D, {
3118
3123
  cardType: e.type,
3119
3124
  dataSource: e.dataSource,
3120
3125
  temporalResultOwner: vt({
@@ -3122,7 +3127,7 @@ function ba({
3122
3127
  sql: e.sql,
3123
3128
  normalizedPython: Me(e.python || "")
3124
3129
  })
3125
- }) || D, E = ia(M) || "", R = p ? yn(
3130
+ }) || D, B = aa(M) || "", R = p ? bn(
3126
3131
  e,
3127
3132
  {
3128
3133
  controlValues: p.controlValues,
@@ -3131,7 +3136,7 @@ function ba({
3131
3136
  controlBindings: p.controlBindings
3132
3137
  },
3133
3138
  m
3134
- ) : ca({
3139
+ ) : da({
3135
3140
  card: e,
3136
3141
  presentationControlIds: m,
3137
3142
  dashboardControls: l,
@@ -3143,17 +3148,17 @@ function ba({
3143
3148
  ...R,
3144
3149
  resolvedFilters: M,
3145
3150
  resolvedFilterParts: x,
3146
- drillSteps: ((Ke = r == null ? void 0 : r.drill) == null ? void 0 : Ke.steps) ?? Cr,
3151
+ drillSteps: ((Ke = r == null ? void 0 : r.drill) == null ? void 0 : Ke.steps) ?? hr,
3147
3152
  dateContextKey: v,
3148
3153
  zoomContextKey: g,
3149
3154
  ...V ? { activeZoom: V.zoom } : {},
3150
3155
  finalConfig: D,
3151
3156
  queryRelevantConfig: w,
3152
- finalFiltersKey: E
3157
+ finalFiltersKey: B
3153
3158
  };
3154
3159
  }
3155
- function Cn(e, t, n) {
3156
- const r = ya({
3160
+ function hn(e, t, n) {
3161
+ const r = ba({
3157
3162
  resolvedFields: t.resolvedDateFields,
3158
3163
  ...n,
3159
3164
  card: e,
@@ -3172,8 +3177,8 @@ function Cn(e, t, n) {
3172
3177
  dateComparisonInputs: o.dateComparisonInputs
3173
3178
  }, compiledFilters: r };
3174
3179
  }
3175
- function Ia(e, t, n) {
3176
- const r = hr(e), o = Cn(e, t, {
3180
+ function Ca(e, t, n) {
3181
+ const r = vr(e), o = hn(e, t, {
3177
3182
  resolvedPrimaryDateField: n.resolvedPrimaryDateField,
3178
3183
  timezone: n.calendarContext.tz,
3179
3184
  allowMinutePrecision: n.allowGlobalDateMinutePrecision
@@ -3184,7 +3189,7 @@ function Ia(e, t, n) {
3184
3189
  cardFilterValues: a,
3185
3190
  resolvedPrimaryDateField: s,
3186
3191
  globalDateComparison: l
3187
- } = i, { queryKey: c, queryInputIdentity: d, paginationConfig: u } = ci(
3192
+ } = i, { queryKey: c, queryInputIdentity: d, paginationConfig: u } = di(
3188
3193
  e,
3189
3194
  o.queryContext,
3190
3195
  n.calendarContext,
@@ -3225,18 +3230,18 @@ function Ia(e, t, n) {
3225
3230
  }
3226
3231
  };
3227
3232
  }
3228
- const lt = [], Ca = [], ha = {};
3229
- function Bs(e, t) {
3233
+ const lt = [], ha = [], va = {};
3234
+ function Rs(e, t) {
3230
3235
  return {
3231
3236
  sheetId: e.sheetId,
3232
3237
  sectionId: e.sectionId,
3233
3238
  documentFilterValues: e.documentFilterValues ?? lt,
3234
- documentControlDefinitions: e.documentControlDefinitions ?? Ca,
3235
- documentControlValues: e.documentControlValues ?? ha,
3239
+ documentControlDefinitions: e.documentControlDefinitions ?? ha,
3240
+ documentControlValues: e.documentControlValues ?? va,
3236
3241
  editorFilterValues: t ?? lt
3237
3242
  };
3238
3243
  }
3239
- function va({
3244
+ function Fa({
3240
3245
  card: e,
3241
3246
  dashboard: t,
3242
3247
  runtime: n,
@@ -3264,7 +3269,7 @@ function va({
3264
3269
  ...n.documentFilterValues
3265
3270
  ];
3266
3271
  return {
3267
- card: s ? e : Fa(
3272
+ card: s ? e : Da(
3268
3273
  e,
3269
3274
  n.documentControlDefinitions
3270
3275
  ),
@@ -3282,7 +3287,7 @@ function va({
3282
3287
  dashboardInputContext: a
3283
3288
  };
3284
3289
  }
3285
- function Fa(e, t) {
3290
+ function Da(e, t) {
3286
3291
  if (t.length === 0)
3287
3292
  return e;
3288
3293
  const n = /* @__PURE__ */ new Map();
@@ -3295,12 +3300,12 @@ function Fa(e, t) {
3295
3300
  controls: Array.from(n.values())
3296
3301
  };
3297
3302
  }
3298
- function Es({
3303
+ function qs({
3299
3304
  card: e,
3300
3305
  place: t,
3301
3306
  source: n
3302
3307
  }) {
3303
- ({ card: e, place: t, source: n } = hn(e, t, n));
3308
+ ({ card: e, place: t, source: n } = vn(e, t, n));
3304
3309
  const r = Se(e, t, n);
3305
3310
  return {
3306
3311
  card: r.card,
@@ -3308,9 +3313,9 @@ function Es({
3308
3313
  inputContext: r.inputContext
3309
3314
  };
3310
3315
  }
3311
- function Da(e, t, n) {
3316
+ function Sa(e, t, n) {
3312
3317
  return {
3313
- calendarContext: n ?? oo,
3318
+ calendarContext: n ?? io,
3314
3319
  allowGlobalDateMinutePrecision: we(
3315
3320
  e,
3316
3321
  t
@@ -3319,17 +3324,17 @@ function Da(e, t, n) {
3319
3324
  globalCacheConfig: e.globalCacheConfig
3320
3325
  };
3321
3326
  }
3322
- function Rs(e, t) {
3323
- return Dn(
3327
+ function js(e, t) {
3328
+ return Sn(
3324
3329
  e,
3325
3330
  t,
3326
3331
  t.allowGlobalDateMinutePrecision
3327
3332
  );
3328
3333
  }
3329
- function Sa(e, t, n = {}) {
3330
- const r = Fn(e, t);
3334
+ function Ta(e, t, n = {}) {
3335
+ const r = Dn(e, t);
3331
3336
  return {
3332
- ...Ia(e.card, e.context, {
3337
+ ...Ca(e.card, e.context, {
3333
3338
  resolvedPrimaryDateField: r,
3334
3339
  calendarContext: t.calendarContext,
3335
3340
  allowGlobalDateMinutePrecision: t.allowGlobalDateMinutePrecision,
@@ -3339,7 +3344,7 @@ function Sa(e, t, n = {}) {
3339
3344
  resolvedPrimaryDateField: r
3340
3345
  };
3341
3346
  }
3342
- function Ta({
3347
+ function Va({
3343
3348
  card: e,
3344
3349
  place: t,
3345
3350
  source: n,
@@ -3348,7 +3353,7 @@ function Ta({
3348
3353
  withRequest: i = !1
3349
3354
  }) {
3350
3355
  var p, b;
3351
- ({ card: e, place: t, source: n } = hn(e, t, n));
3356
+ ({ card: e, place: t, source: n } = vn(e, t, n));
3352
3357
  const { dashboard: a } = n, s = e.id, l = (I, C) => {
3353
3358
  var S;
3354
3359
  let h;
@@ -3370,14 +3375,14 @@ function Ta({
3370
3375
  message: "Matrix field metadata is required.",
3371
3376
  context: h
3372
3377
  };
3373
- const P = Fi(g.config.spec, h), x = o.filter(
3378
+ const P = Di(g.config.spec, h), x = o.filter(
3374
3379
  (D) => D.field.source && P.some(
3375
3380
  (w) => Ce(w, D.field.source)
3376
3381
  )
3377
- ), v = ra(I, x, h), { params: T } = V, M = T.dashboardInputContext;
3382
+ ), v = oa(I, x, h), { params: T } = V, M = T.dashboardInputContext;
3378
3383
  v.config = {
3379
3384
  ...v.config,
3380
- presentation: $o(
3385
+ presentation: Zo(
3381
3386
  I,
3382
3387
  v.config,
3383
3388
  {
@@ -3429,19 +3434,19 @@ function Ta({
3429
3434
  missingRequiredLabels: [],
3430
3435
  message: c.message
3431
3436
  };
3432
- const { assembled: d, matrix: u } = c.value, f = Da(
3437
+ const { assembled: d, matrix: u } = c.value, f = Sa(
3433
3438
  a,
3434
3439
  r,
3435
3440
  n.calendar
3436
- ), m = d.context.filterCompilationInput, y = vr(a);
3441
+ ), m = d.context.filterCompilationInput, y = Fr(a);
3437
3442
  try {
3438
3443
  const I = ce(d.card, m), C = u && y && I.status === "ready" && I.filterValues.some((V) => V.filterId === y.id);
3439
3444
  let h = f.allowGlobalDateMinutePrecision;
3440
3445
  if (C) {
3441
3446
  const V = (p = m.dashboardInputContext) == null ? void 0 : p.inputs.find(
3442
3447
  (F) => F.kind === "filter" && F.filter.id === y.id
3443
- ), x = Fr(a, y).filter(
3444
- ({ card: F, sheet: D }) => !V || to(V, {
3448
+ ), x = Dr(a, y).filter(
3449
+ ({ card: F, sheet: D }) => !V || no(V, {
3445
3450
  cardId: F.id,
3446
3451
  sheetId: D.id,
3447
3452
  sheetKind: Dt(D) ? "document" : "dashboard"
@@ -3464,15 +3469,15 @@ function Ta({
3464
3469
  })
3465
3470
  ), M = x.flatMap(
3466
3471
  ({ card: F, value: D }) => {
3467
- const w = F.id, E = D.status === "ready" ? D.value.assembled.context : D.context;
3468
- if (!E) return [w];
3472
+ const w = F.id, B = D.status === "ready" ? D.value.assembled.context : D.context;
3473
+ if (!B) return [w];
3469
3474
  const R = D.status === "ready" ? D.value.assembled.card : F;
3470
3475
  try {
3471
3476
  const K = ce(
3472
3477
  R,
3473
- E.filterCompilationInput
3478
+ B.filterCompilationInput
3474
3479
  );
3475
- return K.status === "blocked" || K.filterValues.some((Z) => Z.filterId === y.id) ? [w] : [];
3480
+ return K.status === "blocked" || K.filterValues.some((Y) => Y.filterId === y.id) ? [w] : [];
3476
3481
  } catch {
3477
3482
  return v.set(w, null), [w];
3478
3483
  }
@@ -3496,7 +3501,7 @@ function Ta({
3496
3501
  };
3497
3502
  h = k.allEligibleTargetsAreDateTime;
3498
3503
  }
3499
- const S = Dn(d, f, h);
3504
+ const S = Sn(d, f, h);
3500
3505
  if (S.status === "blocked")
3501
3506
  return {
3502
3507
  status: "blocked",
@@ -3504,10 +3509,10 @@ function Ta({
3504
3509
  mappingDispositions: S.mappingDispositions,
3505
3510
  reason: S.reason,
3506
3511
  missingRequiredLabels: S.missingRequiredLabels,
3507
- ...S.reason === "requiredInput" ? { message: fa(S.missingRequiredLabels) } : {},
3512
+ ...S.reason === "requiredInput" ? { message: pa(S.missingRequiredLabels) } : {},
3508
3513
  ...S.resolvedPrimaryDateField ? { resolvedPrimaryDateField: S.resolvedPrimaryDateField } : {}
3509
3514
  };
3510
- const g = i && !u ? Sa(d, f) : void 0;
3515
+ const g = i && !u ? Ta(d, f) : void 0;
3511
3516
  return {
3512
3517
  ...S,
3513
3518
  ...u ? { matrix: u } : {},
@@ -3517,11 +3522,11 @@ function Ta({
3517
3522
  ...(g == null ? void 0 : g.status) === "ready" ? {
3518
3523
  request: {
3519
3524
  ...g.requestPayloadBase,
3520
- ...yi({
3525
+ ...bi({
3521
3526
  card: d.card,
3522
3527
  finalConfig: d.context.finalConfig,
3523
3528
  documentSection: t.kind === "documentSection" ? {} : void 0,
3524
- page: gi(d.card)
3529
+ page: yi(d.card)
3525
3530
  })
3526
3531
  }
3527
3532
  } : {}
@@ -3537,11 +3542,11 @@ function Ta({
3537
3542
  };
3538
3543
  }
3539
3544
  }
3540
- function hn(e, t, n) {
3545
+ function vn(e, t, n) {
3541
3546
  var s, l, c;
3542
3547
  const r = ((s = n.editor) == null ? void 0 : s.calculatedFields) ?? n.dashboard.calculatedFields;
3543
3548
  if (!(r != null && r.length)) return { card: e, place: t, source: n };
3544
- const o = (d) => Dr(d, r), i = {
3549
+ const o = (d) => Sr(d, r), i = {
3545
3550
  ...n,
3546
3551
  dashboard: yt(n.dashboard, r),
3547
3552
  adHocFilterValues: o(n.adHocFilterValues),
@@ -3555,7 +3560,7 @@ function hn(e, t, n) {
3555
3560
  source: a ? n : i
3556
3561
  };
3557
3562
  }
3558
- function Va(e, t) {
3563
+ function Ma(e, t) {
3559
3564
  const n = e.editor ? {
3560
3565
  ...e.inlineFilterValuesMap,
3561
3566
  ...Object.fromEntries(
@@ -3563,7 +3568,7 @@ function Va(e, t) {
3563
3568
  (a) => a[1] !== void 0
3564
3569
  )
3565
3570
  )
3566
- } : e.inlineFilterValuesMap, r = n == null ? void 0 : n[t.id], o = Sr(t, r), i = o === r ? n : { ...n, [t.id]: o };
3571
+ } : e.inlineFilterValuesMap, r = n == null ? void 0 : n[t.id], o = Tr(t, r), i = o === r ? n : { ...n, [t.id]: o };
3567
3572
  return {
3568
3573
  dashboardInputValues: e.dashboardInputValues,
3569
3574
  adHocFilterValues: e.adHocFilterValues,
@@ -3574,8 +3579,8 @@ function Va(e, t) {
3574
3579
  }
3575
3580
  function Se(e, t, n, r) {
3576
3581
  var c, d;
3577
- const { dashboard: o } = n, i = Va(n, e), a = t.kind === "documentSection" ? {
3578
- ...va({
3582
+ const { dashboard: o } = n, i = Ma(n, e), a = t.kind === "documentSection" ? {
3583
+ ...Fa({
3579
3584
  card: e,
3580
3585
  dashboard: o,
3581
3586
  runtime: t.section,
@@ -3584,20 +3589,20 @@ function Se(e, t, n, r) {
3584
3589
  }),
3585
3590
  selectedSheetId: t.section.sheetId,
3586
3591
  includeAuthoredFilters: r
3587
- } : Ma(e, t.sheetId, n, i, r), s = ba(a), l = (c = e.config) == null ? void 0 : c.rowLimit;
3588
- return (d = e.sql) != null && d.trim() && l && vn(o, e.id) && (s.sqlRowLimit = l), {
3592
+ } : ka(e, t.sheetId, n, i, r), s = Ia(a), l = (c = e.config) == null ? void 0 : c.rowLimit;
3593
+ return (d = e.sql) != null && d.trim() && l && Fn(o, e.id) && (s.sqlRowLimit = l), {
3589
3594
  card: a.card,
3590
3595
  params: a,
3591
3596
  context: s,
3592
3597
  inputContext: a.dashboardInputContext
3593
3598
  };
3594
3599
  }
3595
- function vn(e, t) {
3600
+ function Fn(e, t) {
3596
3601
  return (e.variables ?? []).some((n) => n.id === t);
3597
3602
  }
3598
- function Ma(e, t, n, r, o) {
3603
+ function ka(e, t, n, r, o) {
3599
3604
  var c, d, u;
3600
- const { dashboard: i } = n, a = vn(i, e.id), s = a ? void 0 : n.transientContexts, l = Ft({
3605
+ const { dashboard: i } = n, a = Fn(i, e.id), s = a ? void 0 : n.transientContexts, l = Ft({
3601
3606
  dashboard: i,
3602
3607
  dashboardInputValues: r.dashboardInputValues,
3603
3608
  transientContexts: s
@@ -3616,8 +3621,8 @@ function Ma(e, t, n, r, o) {
3616
3621
  // The editor previews the card without a viewer's zoom (chart date zoom
3617
3622
  // DZ-D1) or search (table column filters TCF-D10): it shows the
3618
3623
  // dashboard's dates and every row, and its save never sees either.
3619
- cardViewState: a ? void 0 : n.editor ? Tr(
3620
- Vr((c = n.cardViewStates) == null ? void 0 : c[e.id], null),
3624
+ cardViewState: a ? void 0 : n.editor ? Vr(
3625
+ Mr((c = n.cardViewStates) == null ? void 0 : c[e.id], null),
3621
3626
  null
3622
3627
  ) : (d = n.cardViewStates) == null ? void 0 : d[e.id],
3623
3628
  viewerTableSettings: n.editor || a || (u = n.viewerTableSettings) == null ? void 0 : u[e.id],
@@ -3632,7 +3637,7 @@ function Ma(e, t, n, r, o) {
3632
3637
  includeAuthoredFilters: o
3633
3638
  };
3634
3639
  }
3635
- function Fn({ card: e, context: t }, n) {
3640
+ function Dn({ card: e, context: t }, n) {
3636
3641
  return It({
3637
3642
  card: e,
3638
3643
  cardConfig: t.queryRelevantConfig,
@@ -3640,8 +3645,8 @@ function Fn({ card: e, context: t }, n) {
3640
3645
  semanticExecutionPayload: n.semanticExecutionPayload
3641
3646
  });
3642
3647
  }
3643
- function Dn(e, t, n) {
3644
- const { card: r } = e, o = Fn(e, t), i = Cn(r, e.context, {
3648
+ function Sn(e, t, n) {
3649
+ const { card: r } = e, o = Dn(e, t), i = hn(r, e.context, {
3645
3650
  resolvedPrimaryDateField: o,
3646
3651
  timezone: t.calendarContext.tz,
3647
3652
  allowMinutePrecision: n
@@ -3654,7 +3659,7 @@ function Dn(e, t, n) {
3654
3659
  resolvedPrimaryDateField: o
3655
3660
  };
3656
3661
  }
3657
- function qs({
3662
+ function Ns({
3658
3663
  dashboard: e,
3659
3664
  dashboardInputValues: t,
3660
3665
  adHocFilterValues: n,
@@ -3666,9 +3671,9 @@ function qs({
3666
3671
  semanticExecutionPayload: l,
3667
3672
  timezone: c
3668
3673
  }) {
3669
- const d = e ? [...Mr(e)] : void 0, u = o ?? null, f = (C) => {
3674
+ const d = e ? [...kr(e)] : void 0, u = o ?? null, f = (C) => {
3670
3675
  var h;
3671
- return e ? Pa({
3676
+ return e ? wa({
3672
3677
  dashboard: e,
3673
3678
  runtimeValues: { dashboardInputValues: t },
3674
3679
  adHocFilterValues: n,
@@ -3693,7 +3698,7 @@ function qs({
3693
3698
  ) : [];
3694
3699
  for (const C of p)
3695
3700
  Object.assign(y, (s == null ? void 0 : s[C.card.id]) || {});
3696
- const b = kr({
3701
+ const b = xr({
3697
3702
  filterDefinitions: d,
3698
3703
  filterValues: m
3699
3704
  }), I = Yi({
@@ -3709,7 +3714,7 @@ function qs({
3709
3714
  controlValues: y
3710
3715
  };
3711
3716
  }
3712
- function js({
3717
+ function zs({
3713
3718
  dashboard: e,
3714
3719
  cardId: t,
3715
3720
  transientContexts: n,
@@ -3736,7 +3741,7 @@ function js({
3736
3741
  const C = $e(e, t);
3737
3742
  if (!C)
3738
3743
  return null;
3739
- const h = Ta({
3744
+ const h = Va({
3740
3745
  card: m ?? C.card,
3741
3746
  place: p ? { kind: "documentSection", section: p } : { kind: "sheet", sheetId: C.sheet.id },
3742
3747
  source: {
@@ -3771,19 +3776,19 @@ function js({
3771
3776
  ...h.request ? { request: h.request } : {}
3772
3777
  };
3773
3778
  }
3774
- function ka(e, t, n) {
3775
- const r = t === "date" && "relativeMeta" in e ? zr(e.relativeMeta) : void 0;
3779
+ function xa(e, t, n) {
3780
+ const r = t === "date" && "relativeMeta" in e ? Lr(e.relativeMeta) : void 0;
3776
3781
  if (!r) return { values: e.values };
3777
- const o = Or(r, n ?? void 0), i = Lr(String(e.operation), r);
3782
+ const o = _r(r, n ?? void 0), i = Kr(String(e.operation), r);
3778
3783
  return {
3779
- values: o && i ? Kr(String(e.operation), o) : e.values,
3784
+ values: o && i ? Gr(String(e.operation), o) : e.values,
3780
3785
  relativeMeta: r,
3781
3786
  ..."temporalPrecision" in e && e.temporalPrecision === "minute" ? { temporalPrecision: "minute" } : {}
3782
3787
  };
3783
3788
  }
3784
- function xa(e, t, n) {
3785
- const r = t, o = Pr(e);
3786
- return wr({
3789
+ function Pa(e, t, n) {
3790
+ const r = t, o = wr(e);
3791
+ return Or({
3787
3792
  definition: e,
3788
3793
  sourceValue: r,
3789
3794
  value: {
@@ -3794,16 +3799,16 @@ function xa(e, t, n) {
3794
3799
  dataType: e.dataType,
3795
3800
  fieldMeta: e.fieldMeta,
3796
3801
  semanticContext: e.semanticContext,
3797
- ...ka(r, o, n)
3802
+ ...xa(r, o, n)
3798
3803
  }
3799
3804
  });
3800
3805
  }
3801
- function Sn(e, t, n) {
3806
+ function Tn(e, t, n) {
3802
3807
  const r = A(e);
3803
3808
  let o = {};
3804
3809
  const i = [], a = [];
3805
3810
  for (const s of t ?? []) {
3806
- if (ro(s.filterId)) {
3811
+ if (oo(s.filterId)) {
3807
3812
  a.push(s.filterId);
3808
3813
  continue;
3809
3814
  }
@@ -3812,8 +3817,8 @@ function Sn(e, t, n) {
3812
3817
  a.push(s.filterId);
3813
3818
  continue;
3814
3819
  }
3815
- const d = xr(
3816
- xa(c.filter, s, n.calendar)
3820
+ const d = Pr(
3821
+ Pa(c.filter, s, n.calendar)
3817
3822
  );
3818
3823
  if (d) {
3819
3824
  if (c.runtimeScope === "shared") {
@@ -3831,11 +3836,11 @@ function Sn(e, t, n) {
3831
3836
  }
3832
3837
  return { slots: o, adHocFilterValues: i, droppedFilterIds: a };
3833
3838
  }
3834
- function Pa(e) {
3839
+ function wa(e) {
3835
3840
  const { dashboard: t, sheetId: n } = e, r = [];
3836
3841
  if (n)
3837
- for (const { input: o } of _r(t, n, e.sheetKind)) {
3838
- const i = Ar({
3842
+ for (const { input: o } of Ar(t, n, e.sheetKind)) {
3843
+ const i = Er({
3839
3844
  dashboard: t,
3840
3845
  input: o,
3841
3846
  runtimeValues: { dashboardInputValues: e.runtimeValues.dashboardInputValues },
@@ -3844,9 +3849,9 @@ function Pa(e) {
3844
3849
  });
3845
3850
  i.kind === "filter" && i.filterValue && r.push(i.filterValue);
3846
3851
  }
3847
- return [...r, ...bn(e.adHocFilterValues, n)];
3852
+ return [...r, ...In(e.adHocFilterValues, n)];
3848
3853
  }
3849
- function Ns(e, t) {
3854
+ function Ls(e, t) {
3850
3855
  switch (t.runtimeScope) {
3851
3856
  case "shared":
3852
3857
  return [{}];
@@ -3882,7 +3887,7 @@ function ct(e) {
3882
3887
  )
3883
3888
  ];
3884
3889
  }
3885
- function wa(e, t) {
3890
+ function Oa(e, t) {
3886
3891
  var n, r;
3887
3892
  return {
3888
3893
  sheetId: e.id,
@@ -3893,7 +3898,7 @@ function wa(e, t) {
3893
3898
  )) == null ? void 0 : r.id
3894
3899
  };
3895
3900
  }
3896
- function Oa(e, t, n, r) {
3901
+ function _a(e, t, n, r) {
3897
3902
  var c, d, u;
3898
3903
  const o = {}, i = (c = e.preferences) == null ? void 0 : c.textVisualOptions;
3899
3904
  if (!i) return o;
@@ -3901,7 +3906,7 @@ function Oa(e, t, n, r) {
3901
3906
  // Authoring: carried drill context never applies to a dashboard being edited.
3902
3907
  transientContexts: void 0,
3903
3908
  dashboard: n,
3904
- ...wa(r, t),
3909
+ ...Oa(r, t),
3905
3910
  card: t,
3906
3911
  runtimeValues: {},
3907
3912
  // Aliases only: no input value is read.
@@ -3923,7 +3928,7 @@ function Oa(e, t, n, r) {
3923
3928
  f.type === "list" ? f.items.forEach((m) => m.forEach(l)) : f.children.forEach(l);
3924
3929
  }), o;
3925
3930
  }
3926
- function _a(e, t) {
3931
+ function Aa(e, t) {
3927
3932
  var i;
3928
3933
  const n = ct(e);
3929
3934
  if (!n.some((a) => {
@@ -3933,7 +3938,7 @@ function _a(e, t) {
3933
3938
  return e;
3934
3939
  const r = oe(e), o = ct(r);
3935
3940
  for (let a = 0; a < o.length; a++) {
3936
- const s = Oa(
3941
+ const s = _a(
3937
3942
  o[a],
3938
3943
  n[a],
3939
3944
  t,
@@ -3941,130 +3946,130 @@ function _a(e, t) {
3941
3946
  );
3942
3947
  (i = e.frames) != null && i.some(
3943
3948
  (l) => l.visualId && l.cards.some((c) => c.id === o[a].id)
3944
- ) && (o[a].linkedReferenceOverrides = To(
3949
+ ) && (o[a].linkedReferenceOverrides = Vo(
3945
3950
  o[a].linkedReferenceOverrides,
3946
3951
  { inputAliases: s }
3947
3952
  ));
3948
3953
  }
3949
3954
  return r;
3950
3955
  }
3951
- function Aa(e) {
3956
+ function Ea(e) {
3952
3957
  var n;
3953
3958
  const t = (n = e.sheets) == null ? void 0 : n.map(
3954
- (r) => _a(r, e)
3959
+ (r) => Aa(r, e)
3955
3960
  );
3956
3961
  return t && t.some((r, o) => r !== e.sheets[o]) ? { ...e, sheets: t } : e;
3957
3962
  }
3958
3963
  function Ba(e) {
3959
3964
  const t = A(e);
3960
3965
  return t.issues.length === 0 && !t.needsUpgrade ? e : t.issues.length ? t.toStoredDashboard() : A(
3961
- Aa(e)
3966
+ Ea(e)
3962
3967
  ).toStoredDashboard();
3963
3968
  }
3964
3969
  export {
3965
- wa as $,
3966
- da as A,
3967
- bn as B,
3968
- To as C,
3969
- Xa as D,
3970
- Ao as E,
3971
- hi as F,
3970
+ Oa as $,
3971
+ ua as A,
3972
+ In as B,
3973
+ Vo as C,
3974
+ ts as D,
3975
+ Eo as E,
3976
+ vi as F,
3972
3977
  nt as G,
3973
- Lo as H,
3974
- zo as I,
3975
- jo as J,
3976
- rs as K,
3977
- Vo as L,
3978
- Lt as M,
3978
+ Ko as H,
3979
+ Lo as I,
3980
+ No as J,
3981
+ is as K,
3982
+ Mo as L,
3983
+ Kt as M,
3979
3984
  Fe as N,
3980
- Ho as O,
3985
+ Uo as O,
3981
3986
  z as P,
3982
- Qo as Q,
3987
+ $o as Q,
3983
3988
  Re as R,
3984
- Ee as S,
3985
- uo as T,
3986
- os as U,
3987
- ss as V,
3988
- Ko as W,
3989
- ts as X,
3990
- Rs as Y,
3991
- Da as Z,
3989
+ Be as S,
3990
+ fo as T,
3991
+ as as U,
3992
+ cs as V,
3993
+ Go as W,
3994
+ rs as X,
3995
+ js as Y,
3996
+ Sa as Z,
3992
3997
  ct as _,
3993
- Hi as a,
3994
- Oa as a0,
3995
- _a as a1,
3996
- Ms as a2,
3997
- Ts as a3,
3998
+ Ui as a,
3999
+ _a as a0,
4000
+ Aa as a1,
4001
+ xs as a2,
4002
+ Ms as a3,
3998
4003
  Yt as a4,
3999
- Vs as a5,
4000
- Xo as a6,
4001
- fa as a7,
4002
- qs as a8,
4003
- sa as a9,
4004
+ ks as a5,
4005
+ ei as a6,
4006
+ pa as a7,
4007
+ Ns as a8,
4008
+ la as a9,
4004
4009
  ce as aA,
4005
- Ta as aB,
4006
- _s as aC,
4007
- ns as aD,
4008
- na as aE,
4009
- Di as aF,
4010
- fn as aG,
4010
+ Va as aB,
4011
+ Es as aC,
4012
+ os as aD,
4013
+ ra as aE,
4014
+ Si as aF,
4015
+ pn as aG,
4011
4016
  Ae as aH,
4012
- as as aI,
4013
- ls as aJ,
4014
- ui as aK,
4017
+ ls as aI,
4018
+ ds as aJ,
4019
+ fi as aK,
4015
4020
  $ as aL,
4016
- hs as aM,
4017
- xs as aN,
4018
- ks as aO,
4019
- As as aa,
4020
- Es as ab,
4021
- pi as ac,
4022
- mi as ad,
4023
- Sa as ae,
4024
- cs as af,
4025
- ds as ag,
4026
- yi as ah,
4021
+ Fs as aM,
4022
+ ws as aN,
4023
+ Ps as aO,
4024
+ Bs as aa,
4025
+ qs as ab,
4026
+ mi as ac,
4027
+ gi as ad,
4028
+ Ta as ae,
4029
+ us as af,
4030
+ fs as ag,
4031
+ bi as ah,
4027
4032
  De as ai,
4028
- fi as aj,
4029
- bi as ak,
4030
- us as al,
4031
- Bs as am,
4032
- Os as an,
4033
- ps as ao,
4034
- gs as ap,
4035
- ms as aq,
4036
- ys as ar,
4037
- bs as as,
4033
+ pi as aj,
4034
+ Ii as ak,
4035
+ ps as al,
4036
+ Rs as am,
4037
+ As as an,
4038
+ gs as ao,
4039
+ bs as ap,
4040
+ ys as aq,
4041
+ Is as ar,
4042
+ Cs as as,
4038
4043
  Bt as at,
4039
- is as au,
4040
- ws as av,
4041
- Is as aw,
4042
- wi as ax,
4043
- Ps as ay,
4044
- un as az,
4045
- la as b,
4046
- ci as c,
4047
- fs as d,
4048
- Do as e,
4049
- Fs as f,
4044
+ ss as au,
4045
+ _s as av,
4046
+ hs as aw,
4047
+ Oi as ax,
4048
+ Os as ay,
4049
+ fn as az,
4050
+ ca as b,
4051
+ di as c,
4052
+ ms as d,
4053
+ So as e,
4054
+ Ss as f,
4050
4055
  oe as g,
4051
- Ss as h,
4052
- js as i,
4053
- Ds as j,
4054
- xa as k,
4055
- Gi as l,
4056
+ Vs as h,
4057
+ zs as i,
4058
+ Ts as j,
4059
+ Pa as k,
4060
+ Hi as l,
4056
4061
  je as m,
4057
- vi as n,
4058
- Fi as o,
4059
- Cs as p,
4060
- Mo as q,
4061
- vs as r,
4062
- Po as s,
4063
- Rt as t,
4064
- es as u,
4065
- Oo as v,
4062
+ Fi as n,
4063
+ Di as o,
4064
+ vs as p,
4065
+ ko as q,
4066
+ Ds as r,
4067
+ wo as s,
4068
+ qt as t,
4069
+ ns as u,
4070
+ _o as v,
4066
4071
  Ba as w,
4067
- Sn as x,
4068
- Pa as y,
4069
- Ns as z
4072
+ Tn as x,
4073
+ wa as y,
4074
+ Ls as z
4070
4075
  };