react-semaphor 0.1.582 → 0.1.584

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 (88) hide show
  1. package/dist/analytics-protocol/index.js +183 -178
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
  6. package/dist/chunks/{assistant-chat-CVtxjVEH.js → assistant-chat-nmycV1Se.js} +12 -12
  7. package/dist/chunks/{bookmark-impact-BDSeeRy7.js → bookmark-impact-CI3gmxi0.js} +2 -2
  8. package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-D9-RFkDg.js} +22 -22
  9. package/dist/chunks/{card-filter-builder-CMZ5nwdC.js → card-filter-builder-C7QyPqRy.js} +145 -145
  10. package/dist/chunks/{comparison-window-caption-sRFtnX1q.js → comparison-window-caption-BAnsTI8y.js} +291 -305
  11. package/dist/chunks/{dashboard-briefing-launcher-C9wf8KhD.js → dashboard-briefing-launcher-DXs0XA1O.js} +13 -13
  12. package/dist/chunks/{dashboard-controls-PDb9Gap5.js → dashboard-controls-6Zoo8d8Y.js} +84 -84
  13. package/dist/chunks/{dashboard-BNn7fpDY.js → dashboard-inJy_V78.js} +1 -1
  14. package/dist/chunks/{dashboard-json-CvtVy2UH.js → dashboard-json-D5eJhVA9.js} +4 -4
  15. package/dist/chunks/{dates-B42fboJU.js → dates-B3_GWc_Y.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-Cat0RWPp.js → edit-dashboard-visual-DR03SYeW.js} +17 -17
  17. package/dist/chunks/{filter-reach-copy-C-RH1rVx.js → filter-reach-copy-CZwzrxBp.js} +1403 -1240
  18. package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-DtOvqcjn.js} +8 -8
  19. package/dist/chunks/{index-JWLo4R_t.js → index-BgT1L0p5.js} +5 -5
  20. package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
  21. package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
  22. package/dist/chunks/{matrix-analytical-definition-dkS8szLM.js → matrix-analytical-definition-Cs2v43FM.js} +3 -3
  23. package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
  24. package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
  25. package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-Be4uS3Ql.js} +1 -1
  26. package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
  27. package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
  28. package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-uH06jiZD.js} +1 -1
  29. package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-DvZY4eJM.js} +779 -765
  30. package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-BZexMfmL.js} +1 -1
  31. package/dist/chunks/{report-preferences-dialog-CwbsD6t6.js → report-preferences-dialog-DWeVe2so.js} +171 -170
  32. package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
  33. package/dist/chunks/{resolve-dashboard-input-context-6FP1-7aU.js → resolve-dashboard-input-context-uATCuOP7.js} +5083 -4973
  34. package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
  35. package/dist/chunks/{saved-dashboard-context-D2G0uLji.js → saved-dashboard-context-DSVV9iqW.js} +6 -6
  36. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
  37. package/dist/chunks/{semaphor-ready-indicator-UhNS27Gy.js → semaphor-ready-indicator-B9vvRMnJ.js} +46773 -45614
  38. package/dist/chunks/{shelf-drop-preview-context-DPksW68k.js → shelf-drop-preview-context-BHOnp5Bo.js} +5 -5
  39. package/dist/chunks/{stored-dashboard-KpTy4umJ.js → stored-dashboard-xc5iidHL.js} +210 -221
  40. package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
  41. package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Cv_94obr.js} +1 -1
  42. package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
  43. package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
  44. package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
  45. package/dist/chunks/{variable-draft-CP5I66_J.js → variable-draft-C3CjhsJQ.js} +4 -4
  46. package/dist/dashboard/index.js +2 -2
  47. package/dist/dashboard-authoring/index.js +1391 -1364
  48. package/dist/format-utils/index.js +140 -140
  49. package/dist/index.js +234 -231
  50. package/dist/report-runtime-context/index.js +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/surfboard/index.js +2 -2
  53. package/dist/types/components/ui-custom/date-range-presets.d.ts +7 -0
  54. package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
  55. package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
  56. package/dist/types/index.js +5 -5
  57. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  58. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
  59. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
  60. package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
  61. package/dist/types/lib/see-records/click.d.ts +79 -0
  62. package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
  63. package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
  64. package/dist/types/lib/types/common-types.d.ts +6 -0
  65. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
  66. package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
  67. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  68. package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  71. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  72. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
  73. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  74. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  75. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  76. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  77. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +11 -0
  78. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -0
  79. package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
  80. package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
  81. package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
  82. package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
  83. package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +46 -0
  84. package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
  85. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +61 -0
  86. package/dist/types/shared/usage-events/envelope.d.ts +4 -4
  87. package/package.json +1 -1
  88. package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
@@ -1,23 +1,23 @@
1
- import { hd as ro, cD as io, c3 as so, aV as ao, bf as lo, f as co, bX as uo, N as ne, he as fo, hf as qe, eg as Et, ej as po, bO as mo, hg as go, aw as yo, g2 as At, g4 as bo, bz as Ne, hh as _t, P as ho, g6 as Co, d2 as ve, s as _, fZ as Fe, n as Le, hi as Io, ga as vo, cY as Rt, c_ as Kt, cJ as Fo, d1 as So, c$ as mt, d0 as Do, b as To, cL as Mo, cX as Vo, cV as ko, bC as qt, a4 as q, gD as xo, hj as Se, hk as Nt, hl as Po, hm as je, gS as De, hn as wo, ho as ze, hp as Oo, hq as Bo, hr as Eo, hs as Ao, ht as _o, l as Ge, hu as Ro, k as Z, r as Ko, h as qo, hv as Q, h4 as He, hw as me, hx as Lt, hy as No, J as Lo, hz as jo, hA as zo, fY as Go, hB as Ho, hC as Uo, e as Qo, hD as $o, hE as jt, a0 as zt, hF as Jo, hG as Wo, hH as Yo, hI as Gt, j as Ue, cu as Xo, a5 as Zo, o as Ht, ct as er, gP as tr, q as nr, t as gt, C as or, hJ as rr, hK as ir, cv as sr, hL as ar } from "./resolve-dashboard-input-context-6FP1-7aU.js";
2
- import { ak as lr, a5 as oe, J as cr, v as dr, aw as we, w as ur, a7 as yt, ay as Ut, U as fr, r as pr } from "./validators-B8fpdinG.js";
3
- import { q as Qt } from "./matrix-operation-contract-DCVinw1o.js";
1
+ import { hk as ro, cD as io, c3 as so, aV as ao, bf as lo, f as co, bX as uo, N as ne, hl as fo, hm as qe, eg as Et, ej as po, bO as mo, hn as go, aw as yo, go as At, gq as bo, bz as Ne, ho as _t, P as ho, gs as Co, d2 as ve, s as _, gj as Fe, n as Le, hp as Io, gw as vo, cY as Rt, c_ as Kt, cJ as Fo, d1 as So, c$ as mt, d0 as Do, b as To, cL as Mo, cX as Vo, cV as ko, bC as qt, a4 as q, gY as xo, hq as Se, hr as Nt, hs as Po, ht as je, hb as De, hu as wo, hv as ze, hw as Oo, hx as Bo, hy as Eo, hz as Ao, hA as _o, l as Ge, hB as Ro, k as Z, r as Ko, h as qo, hC as Q, ga as He, hD as me, hE as Lt, hF as No, J as Lo, hG as jo, hH as zo, g3 as Go, hI as Ho, hJ as Uo, e as Qo, hK as $o, hL as jt, a0 as zt, hM as Jo, hN as Wo, hO as Yo, hP as Gt, j as Ue, cu as Xo, a5 as Zo, o as Ht, ct as er, h8 as tr, q as nr, t as gt, C as or, hQ as rr, hR as ir, cv as sr, hS as ar } from "./resolve-dashboard-input-context-uATCuOP7.js";
2
+ import { ak as lr, a5 as oe, J as cr, v as dr, aw as we, w as ur, a7 as yt, ay as Ut, U as fr, r as pr } from "./validators-CJ8Jh0E8.js";
3
+ import { r as Qt } from "./matrix-operation-contract-BM5TveR3.js";
4
4
  import { S as Qe } from "./analytics-base-schemas-BaIQrEzX.js";
5
5
  import "./pickers-DkqmtnTL.js";
6
6
  import { canonicalizeSupportedCurrencyCode as $t } from "../value-format-preferences/index.js";
7
7
  import { ZodError as mr } from "zod";
8
- import { c as ge, r as gr, aX as yr, i as br, aE as hr, aB as bt } from "./pivot-result-contract-expectations-8tuNjRvG.js";
9
- import { aB as Jt, aC as Wt, aD as Ve, a0 as Cr, aE as Yt, aF as Xt, aA as Zt, aG as en, n as Ir, l as vr, v as tn, t as j, aH as nn, k as on, C as Oe, aI as H, z as re, i as rn, o as Fr, u as Sr, B as $e, aJ as Dr, ai as Tr, F as sn, D as Mr, J as ht, O as an, P as ln, I as cn } from "./bookmark-state-BEl_G9vr.js";
8
+ import { c as ge, r as gr, b2 as yr, i as br, aL as hr, aI as bt } from "./pivot-result-contract-expectations-DvZY4eJM.js";
9
+ import { aB as Jt, aC as Wt, aD as Ve, a0 as Cr, aE as Yt, aF as Xt, aA as Zt, aG as en, n as Ir, l as vr, v as tn, t as j, aH as nn, k as on, C as Oe, aI as H, z as re, i as rn, o as Fr, u as Sr, B as $e, aJ as Dr, ai as Tr, F as sn, D as Mr, J as ht, O as an, P as ln, I as cn } from "./bookmark-state-D9-RFkDg.js";
10
10
  import "./schema-C9NPiIru.js";
11
11
  import "./index-CV_Kzou0.js";
12
12
  import "./context-BTLBjQNh.js";
13
- import { D as Vr } from "./report-runtime-context-BhPzLTbS.js";
13
+ import { D as Vr } from "./report-runtime-context-NlOXwyRB.js";
14
14
  import { isPdfTableCardType as kr, PDF_CAPACITY as xr } from "../pdf-export-policy/index.js";
15
- import { c as Pr } from "./selection-filter-compiler-CUDRnUxc.js";
16
- import { r as ie, C as wr } from "./metric-comparison-n9NsIa-2.js";
17
- import { a as Or, h as Br, s as Er } from "./matrix-analytical-definition-dkS8szLM.js";
18
- import { r as Ar } from "./pivot-result-identity-B89X5xjb.js";
19
- import { p as _r } from "./pivot-header-presentation-MvvlxtIB.js";
20
- const Rr = (e, t) => {
15
+ import { t as Pr, c as wr } from "./selection-filter-compiler-BReJy-uv.js";
16
+ import { r as ie, C as Or } from "./metric-comparison-Be4uS3Ql.js";
17
+ import { a as Br, h as Er, s as Ar } from "./matrix-analytical-definition-Cs2v43FM.js";
18
+ import { r as _r } from "./pivot-result-identity-BZexMfmL.js";
19
+ import { p as Rr } from "./pivot-header-presentation-uH06jiZD.js";
20
+ const Kr = (e, t) => {
21
21
  const n = {};
22
22
  if (e === null || t === null)
23
23
  return t;
@@ -36,7 +36,7 @@ const Rr = (e, t) => {
36
36
  if (Array.isArray(i) && Array.isArray(s))
37
37
  n[r] = s;
38
38
  else if (Ct(i) && Ct(s)) {
39
- const a = Rr(i, s);
39
+ const a = Kr(i, s);
40
40
  Object.keys(a).length > 0 && (n[r] = a);
41
41
  } else
42
42
  n[r] = s;
@@ -64,29 +64,29 @@ const Rr = (e, t) => {
64
64
  for (const n in e)
65
65
  Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
66
66
  return t;
67
- }, Kr = /^(?:[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;
68
- function qr(e) {
69
- return typeof e == "string" && Kr.test(e);
70
- }
67
+ }, qr = /^(?:[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;
71
68
  function Nr(e) {
72
- if (!qr(e))
69
+ return typeof e == "string" && qr.test(e);
70
+ }
71
+ function Lr(e) {
72
+ if (!Nr(e))
73
73
  throw TypeError("Invalid UUID");
74
74
  let t;
75
75
  const n = new Uint8Array(16);
76
76
  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;
77
77
  }
78
- function Lr(e) {
78
+ function jr(e) {
79
79
  e = unescape(encodeURIComponent(e));
80
80
  const t = [];
81
81
  for (let n = 0; n < e.length; ++n)
82
82
  t.push(e.charCodeAt(n));
83
83
  return t;
84
84
  }
85
- const jr = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", zr = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
86
- function Gr(e, t, n) {
85
+ const zr = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Gr = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
86
+ function Hr(e, t, n) {
87
87
  function o(r, i, s, a) {
88
88
  var c;
89
- if (typeof r == "string" && (r = Lr(r)), typeof i == "string" && (i = Nr(i)), ((c = i) === null || c === void 0 ? void 0 : c.length) !== 16)
89
+ if (typeof r == "string" && (r = jr(r)), typeof i == "string" && (i = Lr(i)), ((c = i) === null || c === void 0 ? void 0 : c.length) !== 16)
90
90
  throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
91
91
  let l = new Uint8Array(16 + r.length);
92
92
  if (l.set(i), l.set(r, i.length), l = n(l), l[6] = l[6] & 15 | t, l[8] = l[8] & 63 | 128, s) {
@@ -101,9 +101,9 @@ function Gr(e, t, n) {
101
101
  o.name = e;
102
102
  } catch {
103
103
  }
104
- return o.DNS = jr, o.URL = zr, o;
104
+ return o.DNS = zr, o.URL = Gr, o;
105
105
  }
106
- function Hr(e, t, n, o) {
106
+ function Ur(e, t, n, o) {
107
107
  switch (e) {
108
108
  case 0:
109
109
  return t & n ^ ~t & o;
@@ -118,7 +118,7 @@ function Hr(e, t, n, o) {
118
118
  function ke(e, t) {
119
119
  return e << t | e >>> 32 - t;
120
120
  }
121
- function Ur(e) {
121
+ function Qr(e) {
122
122
  const t = [1518500249, 1859775393, 2400959708, 3395469782], n = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
123
123
  if (typeof e == "string") {
124
124
  const s = unescape(encodeURIComponent(e));
@@ -143,15 +143,15 @@ function Ur(e) {
143
143
  a[m] = ke(a[m - 3] ^ a[m - 8] ^ a[m - 14] ^ a[m - 16], 1);
144
144
  let c = n[0], l = n[1], d = n[2], u = n[3], f = n[4];
145
145
  for (let m = 0; m < 80; ++m) {
146
- const g = Math.floor(m / 20), p = ke(c, 5) + Hr(g, l, d, u) + f + t[g] + a[m] >>> 0;
146
+ const g = Math.floor(m / 20), p = ke(c, 5) + Ur(g, l, d, u) + f + t[g] + a[m] >>> 0;
147
147
  f = u, u = d, d = ke(l, 30) >>> 0, l = c, c = p;
148
148
  }
149
149
  n[0] = n[0] + c >>> 0, n[1] = n[1] + l >>> 0, n[2] = n[2] + d >>> 0, n[3] = n[3] + u >>> 0, n[4] = n[4] + f >>> 0;
150
150
  }
151
151
  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];
152
152
  }
153
- const Qr = Gr("v5", 80, Ur), It = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, vt = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
154
- function $r(e) {
153
+ const $r = Hr("v5", 80, Qr), It = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, vt = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
154
+ function Jr(e) {
155
155
  const t = [];
156
156
  let n = 0;
157
157
  for (; n < e.length; ) {
@@ -178,7 +178,7 @@ function dn(e) {
178
178
  const i = (o = n[1]) == null ? void 0 : o.trim();
179
179
  i && t.add(i);
180
180
  }
181
- for (const i of $r(e))
181
+ for (const i of Jr(e))
182
182
  for (vt.lastIndex = 0; (n = vt.exec(i)) !== null; ) {
183
183
  const s = (r = n[2]) == null ? void 0 : r.trim();
184
184
  s && t.add(s);
@@ -193,7 +193,7 @@ function Je(e) {
193
193
  t.add(n.get(o) ?? o);
194
194
  return Array.from(t);
195
195
  }
196
- function Jr(e) {
196
+ function Wr(e) {
197
197
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
198
198
  for (const o of e.controlBindings || [])
199
199
  o.target === "sql_param" && n.set(o.paramId, o.controlId);
@@ -204,12 +204,12 @@ function Jr(e) {
204
204
  });
205
205
  return Array.from(t.values());
206
206
  }
207
- function Wr(e, t) {
207
+ function Yr(e, t) {
208
208
  var r;
209
209
  const n = (r = e.controlBindings) == null ? void 0 : r.map((i) => ({
210
210
  ...i,
211
211
  controlId: t.get(i.controlId) ?? i.controlId
212
- })), o = Jr(e).flatMap(
212
+ })), o = Wr(e).flatMap(
213
213
  ({ paramId: i, controlId: s }) => {
214
214
  var c;
215
215
  const a = t.get(s);
@@ -228,7 +228,7 @@ function un(e, t) {
228
228
  inputId: ((a = t.inputIds) == null ? void 0 : a[i.inputId]) ?? i.inputId
229
229
  } : i;
230
230
  }
231
- function Yr(e, t) {
231
+ function Xr(e, t) {
232
232
  var r;
233
233
  const n = {};
234
234
  for (const i of [
@@ -251,7 +251,7 @@ function Yr(e, t) {
251
251
  function Qa(e, t) {
252
252
  var r, i, s, a;
253
253
  const n = ye(Jt(e));
254
- n.controlBindings = Wr(
254
+ n.controlBindings = Yr(
255
255
  e,
256
256
  new Map(Object.entries(t.controlIds ?? {}))
257
257
  );
@@ -287,24 +287,24 @@ function Qa(e, t) {
287
287
  c.cardId = ((a = t.cardIds) == null ? void 0 : a[c.cardId]) ?? c.cardId;
288
288
  return n;
289
289
  }
290
- const Xr = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
291
- function Zr(e) {
290
+ const Zr = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
291
+ function ei(e) {
292
292
  let t = 0;
293
- return () => Qr(`${e}#${t++}`, Xr);
293
+ return () => $r(`${e}#${t++}`, Zr);
294
294
  }
295
- const ei = [
295
+ const ti = [
296
296
  { code: "matrix_definition_incomplete", label: "Matrix definition" }
297
- ], ti = [
297
+ ], ni = [
298
298
  { code: "connection_type_unresolved", label: "Connection type" }
299
299
  ], X = (e) => !Array.isArray(e) || e.length === 0;
300
- function ni(e) {
300
+ function oi(e) {
301
301
  var i;
302
302
  const t = e.config ?? {};
303
303
  if ((i = e.sql) != null && i.trim() || !X(t.pivotByColumns)) return "matrixTable";
304
304
  const n = !X(t.groupByColumns), o = !X(t.metricColumns), r = e.type === "pivotTable" && (n || o) && X(t.rowAggregates) && X(t.columnAggregates);
305
305
  return n && !o || r ? "table" : "matrixTable";
306
306
  }
307
- function oi(e) {
307
+ function ri(e) {
308
308
  var r;
309
309
  const t = e.dataSource;
310
310
  if (!t || (r = t.connectionType) != null && r.trim()) return e;
@@ -317,7 +317,7 @@ function fn(e) {
317
317
  var s, a;
318
318
  const t = e;
319
319
  if (!so(t)) return { status: "not_legacy", card: e };
320
- const n = oi(t), o = ni(t) === "table" ? ao(n, "table") : lo(n, "matrixTable", { createId: Zr(t.id) });
320
+ const n = ri(t), o = oi(t) === "table" ? ao(n, "table") : lo(n, "matrixTable", { createId: ei(t.id) });
321
321
  if (o.status !== "changed") throw new Error(`Card ${t.id} could not leave ${t.type}.`);
322
322
  const r = o.card.type === "matrixTable" && co(o.card).status !== "ready", i = !!n.dataSource && !((a = (s = n.dataSource) == null ? void 0 : s.connectionType) != null && a.trim());
323
323
  return {
@@ -325,8 +325,8 @@ function fn(e) {
325
325
  card: o.card,
326
326
  gaps: [
327
327
  ...o.gaps,
328
- ...r ? ei : [],
329
- ...i ? ti : []
328
+ ...r ? ti : [],
329
+ ...i ? ni : []
330
330
  ]
331
331
  };
332
332
  }
@@ -335,17 +335,17 @@ function $a(e) {
335
335
  const t = e.cards.map((n) => fn(n).card);
336
336
  return t.every((n, o) => n === e.cards[o]) ? e : { ...e, cards: t };
337
337
  }
338
- function ri(e) {
338
+ function ii(e) {
339
339
  const t = [];
340
340
  return { dashboard: Cr(e, (o, r) => {
341
341
  const i = fn(o);
342
342
  return i.status === "routed" && i.gaps.length && t.push({ location: r, gaps: i.gaps }), i.card;
343
343
  }), routedWithGaps: t };
344
344
  }
345
- function ii(e, t) {
345
+ function si(e, t) {
346
346
  return e.name === t.name && e.qualifiedEntityName === t.qualifiedEntityName;
347
347
  }
348
- function si(e, t, n) {
348
+ function ai(e, t, n) {
349
349
  var r, i;
350
350
  if (n.sortPolicy === "dropUnrelatedSorts") {
351
351
  const s = new Set(
@@ -364,7 +364,7 @@ function si(e, t, n) {
364
364
  ...e,
365
365
  groupByColumns: [t],
366
366
  sortByColumns: (i = e.sortByColumns) == null ? void 0 : i.map(
367
- (s) => o && ii(s, o) ? {
367
+ (s) => o && si(s, o) ? {
368
368
  ...t,
369
369
  role: "sortby",
370
370
  direction: s.direction
@@ -389,13 +389,13 @@ function pn(e, t, n) {
389
389
  if (((o = n == null ? void 0 : n.output) == null ? void 0 : o.availability.status) === "available" && n.output.comparisonColumnKey)
390
390
  return n.output.comparisonColumnKey;
391
391
  }
392
- function ai(e, t) {
392
+ function li(e, t) {
393
393
  return `${e} Δ`;
394
394
  }
395
395
  function Wa(e, t) {
396
396
  return Yt(e, t);
397
397
  }
398
- function li(e, t) {
398
+ function ci(e, t) {
399
399
  return e.rawKey === t.rawKey && e.outputKey === t.outputKey;
400
400
  }
401
401
  function mn(e) {
@@ -409,14 +409,14 @@ function mn(e) {
409
409
  var d;
410
410
  if (r && c.id !== r) return !1;
411
411
  const l = (d = n.byMetricAlias) == null ? void 0 : d[ie(c)];
412
- return !!(l && li(i, l));
412
+ return !!(l && ci(i, l));
413
413
  });
414
414
  return s.length === 1 ? s[0] : void 0;
415
415
  }
416
416
  function Ya(e, t) {
417
417
  return t ? { ...e, config: t } : e;
418
418
  }
419
- function ci(e) {
419
+ function di(e) {
420
420
  return [
421
421
  e.alias,
422
422
  e.name,
@@ -427,7 +427,7 @@ function ci(e) {
427
427
  function $(e) {
428
428
  return e != null && e.config ? ne(e) === "config" : !1;
429
429
  }
430
- function di(e, t, n, o) {
430
+ function ui(e, t, n, o) {
431
431
  if (t === -1 || n === -1 || t === n)
432
432
  return null;
433
433
  const r = [...e], [i] = r.splice(t, 1), s = o === "before" ? n > t ? n - 1 : n : n > t ? n : n + 1;
@@ -440,7 +440,7 @@ function xe(e, t, n) {
440
440
  ), r = e.findIndex(
441
441
  (i) => n(i).includes(t.targetColumnId)
442
442
  );
443
- return di(e, o, r, t.side);
443
+ return ui(e, o, r, t.side);
444
444
  }
445
445
  function Pe(e, t, n) {
446
446
  return n ? {
@@ -477,12 +477,12 @@ function Xa(e, t, n) {
477
477
  )
478
478
  );
479
479
  }
480
- function ui(e) {
480
+ function fi(e) {
481
481
  var t, n, o, r, i, s;
482
482
  return $(e) ? e.type === "detailTable" ? !!((n = (t = e.config) == null ? void 0 : t.detailColumns) != null && n.length) : !!((r = (o = e.config) == null ? void 0 : o.groupByColumns) != null && r.length || (s = (i = e.config) == null ? void 0 : i.metricColumns) != null && s.length) : !1;
483
483
  }
484
484
  function Za(e, t) {
485
- return ui(e) && !!t;
485
+ return fi(e) && !!t;
486
486
  }
487
487
  function pe(e, t, n) {
488
488
  if (!n) return [];
@@ -493,7 +493,7 @@ function pe(e, t, n) {
493
493
  var a;
494
494
  const s = (a = n.byMetricAlias) == null ? void 0 : a[i];
495
495
  return s ? [s] : [];
496
- }) : [], r = Ar(
496
+ }) : [], r = _r(
497
497
  n,
498
498
  e.id,
499
499
  t
@@ -508,7 +508,7 @@ function se(e, t, n, o) {
508
508
  );
509
509
  return o ? r.find(
510
510
  (i) => n.includes(i)
511
- ) : ci(e).find(
511
+ ) : di(e).find(
512
512
  (i) => n.includes(i)
513
513
  );
514
514
  }
@@ -529,12 +529,12 @@ function gn(e, t, n) {
529
529
  ) === e && typeof s.label == "string" && s.label.length > 0)
530
530
  return s.label;
531
531
  }
532
- function fi(e, t) {
532
+ function pi(e, t) {
533
533
  if (!e) return;
534
534
  const n = JSON.stringify(t), o = t.every((r) => r !== null) ? t.join("__") : void 0;
535
535
  return e[n] || (o ? e[o] : void 0);
536
536
  }
537
- function pi(e, t, n) {
537
+ function mi(e, t, n) {
538
538
  if (!e) return;
539
539
  let o = e, r = !1;
540
540
  return t.forEach((i, s) => {
@@ -547,7 +547,7 @@ function pi(e, t, n) {
547
547
  });
548
548
  }), r && o.trim() ? o : void 0;
549
549
  }
550
- function mi(e) {
550
+ function gi(e) {
551
551
  const t = (e.card.config.metricColumns || []).filter(
552
552
  (n) => n.id === e.metricId && ie(n) === e.metricAlias
553
553
  );
@@ -568,7 +568,7 @@ function We(e) {
568
568
  }
569
569
  ))
570
570
  return;
571
- const o = e.card.config.metricColumns || [], r = mi({
571
+ const o = e.card.config.metricColumns || [], r = gi({
572
572
  card: e.card,
573
573
  columnKeyMap: e.columnKeyMap,
574
574
  metricId: t.metricId,
@@ -583,7 +583,7 @@ function We(e) {
583
583
  authoredMetric: r
584
584
  };
585
585
  }
586
- function gi(e) {
586
+ function yi(e) {
587
587
  const {
588
588
  columnId: t,
589
589
  card: n,
@@ -600,7 +600,7 @@ function gi(e) {
600
600
  columnKeyMap: o
601
601
  });
602
602
  if (!a) return;
603
- const { identity: c, pivotFields: l, authoredMetrics: d, authoredMetric: u } = a, m = _r({
603
+ const { identity: c, pivotFields: l, authoredMetrics: d, authoredMetric: u } = a, m = Rr({
604
604
  members: c.members,
605
605
  resolveTemporalFormat: (I) => {
606
606
  var v;
@@ -612,7 +612,7 @@ function gi(e) {
612
612
  }
613
613
  }).memberLabels.map(
614
614
  (I) => I || "(Blank)"
615
- ), g = c.members.map((I) => I.value), p = fi(u == null ? void 0 : u.valueAliases, g) || pi(
615
+ ), g = c.members.map((I) => I.value), p = pi(u == null ? void 0 : u.valueAliases, g) || mi(
616
616
  u == null ? void 0 : u.aliasTemplate,
617
617
  l,
618
618
  m
@@ -653,7 +653,7 @@ function Ft(e, t, n, o) {
653
653
  i(s), i(n == null ? void 0 : n(s));
654
654
  })), e.forEach(i), r;
655
655
  }
656
- function yi(e, t) {
656
+ function bi(e, t) {
657
657
  var f, m, g;
658
658
  const { keys: n, card: o, columnKeyMap: r, resultColumns: i } = e;
659
659
  if (!((f = o.config.pivotByColumns) != null && f.length)) return null;
@@ -706,7 +706,7 @@ function yi(e, t) {
706
706
  u(p), u(t(p));
707
707
  }), n.forEach(u), d;
708
708
  }
709
- function bi(e) {
709
+ function hi(e) {
710
710
  var c;
711
711
  const { keys: t, card: n, comparisonMetadata: o, columnKeyMap: r, resultColumns: i } = e;
712
712
  if ((n == null ? void 0 : n.type) !== "table")
@@ -736,7 +736,7 @@ function bi(e) {
736
736
  });
737
737
  const a = (l) => s.get(l) ?? null;
738
738
  if ($(n)) {
739
- const l = yi(
739
+ const l = bi(
740
740
  { keys: t, card: n, columnKeyMap: r, resultColumns: i },
741
741
  a
742
742
  );
@@ -775,12 +775,12 @@ function yn(e, t) {
775
775
  (n) => Et(ee(be([n])[0]), n.format, t)
776
776
  );
777
777
  }
778
- function hi(e, t) {
778
+ function Ci(e, t) {
779
779
  return e == null ? void 0 : e.map(
780
780
  (n) => po(ee(be([n])[0]), n.format, t)
781
781
  );
782
782
  }
783
- function Ci(e, t) {
783
+ function Ii(e, t) {
784
784
  const { dateFormat: n, customFormat: o, ...r } = he(e.field);
785
785
  return {
786
786
  ...e,
@@ -791,7 +791,7 @@ function Te(e, t = !1) {
791
791
  if (e)
792
792
  return {
793
793
  ...e,
794
- conditions: e.conditions.map((n) => Ci(n, t)),
794
+ conditions: e.conditions.map((n) => Ii(n, t)),
795
795
  groups: e.groups.map((n) => Te(n, t))
796
796
  };
797
797
  }
@@ -808,7 +808,7 @@ function ee(e) {
808
808
  filters: Te(t.parameters.filters)
809
809
  }), t;
810
810
  }
811
- function Ii(e, t) {
811
+ function vi(e, t) {
812
812
  return t.cardType === "detailTable" || !mo(t.cardType) || t.temporalResultOwner !== "config" ? yn(e, "grouped") : e == null ? void 0 : e.map((n) => {
813
813
  const o = go(n), r = he(o ?? n);
814
814
  if (!o)
@@ -821,16 +821,16 @@ function bn(e, t) {
821
821
  if (!e)
822
822
  return;
823
823
  const n = { type: t.cardType, config: e };
824
- return qe(n) ? vi(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
824
+ return qe(n) ? Fi(n, t) : e.matrix === void 0 ? {} : { matrix: e.matrix };
825
825
  }
826
- function vi(e, t = {}) {
826
+ function Fi(e, t = {}) {
827
827
  var i, s, a;
828
828
  const n = e.config;
829
829
  if (!n) return;
830
830
  const o = { ...t, cardType: e.type };
831
831
  return {
832
832
  ...n,
833
- groupByColumns: Ii(n.groupByColumns, o),
833
+ groupByColumns: vi(n.groupByColumns, o),
834
834
  metricColumns: (i = be(n.metricColumns)) == null ? void 0 : i.map(
835
835
  ee
836
836
  ),
@@ -838,24 +838,24 @@ function vi(e, t = {}) {
838
838
  sortByColumns: (s = be(n.sortByColumns)) == null ? void 0 : s.map(
839
839
  ee
840
840
  ),
841
- detailColumns: hi(n.detailColumns, (a = o.dataSource) == null ? void 0 : a.connectionType),
841
+ detailColumns: Ci(n.detailColumns, (a = o.dataSource) == null ? void 0 : a.connectionType),
842
842
  filters: Te(n.filters)
843
843
  };
844
844
  }
845
845
  function Ce(e) {
846
846
  return (e == null ? void 0 : e.type) === "number" || (e == null ? void 0 : e.type) === "currency";
847
847
  }
848
- function Fi(e) {
848
+ function Si(e) {
849
849
  return (e == null ? void 0 : e.type) === "number";
850
850
  }
851
- function Si(e) {
851
+ function Di(e) {
852
852
  var n;
853
- if (!Fi(e))
853
+ if (!Si(e))
854
854
  return !1;
855
855
  const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
856
856
  return t === void 0 || t === "decimal" || t === "currency";
857
857
  }
858
- function Di(e, t) {
858
+ function Ti(e, t) {
859
859
  const n = t == null ? void 0 : t.type;
860
860
  if (n && n !== "none" && n !== "number")
861
861
  return { currencyBindable: !1 };
@@ -869,7 +869,7 @@ function Di(e, t) {
869
869
  currencyBindable: Ce(a)
870
870
  };
871
871
  }
872
- function Ti(e, t) {
872
+ function Mi(e, t) {
873
873
  const n = ge(t.format, {
874
874
  preserveOmittedProperties: !0
875
875
  }), o = oe(t.dataType) === "number" ? { type: "number" } : void 0, r = n || o;
@@ -938,7 +938,7 @@ function In(e, t = []) {
938
938
  return { measureId: s.id, label: hr(s, r), canonical: f };
939
939
  });
940
940
  }
941
- function Mi(e) {
941
+ function Vi(e) {
942
942
  var t, n;
943
943
  return e.type === "detailTable" ? ((t = e.config) == null ? void 0 : t.detailColumns) || [] : ((n = e.config) == null ? void 0 : n.metricColumns) || [];
944
944
  }
@@ -949,7 +949,7 @@ function vn(e) {
949
949
  )
950
950
  );
951
951
  }
952
- function Vi(e, t) {
952
+ function ki(e, t) {
953
953
  const n = [
954
954
  t.id,
955
955
  t.alias,
@@ -977,9 +977,9 @@ function St(e) {
977
977
  ).values()
978
978
  ];
979
979
  }
980
- function ki(e, t = [], n) {
980
+ function xi(e, t = [], n) {
981
981
  var T;
982
- const o = !!((T = e.sql) != null && T.trim()), r = At(e.type), i = o && r && e.type !== "kpi" && e.type !== "matrixTable", s = Mi(e), a = ho(e), c = !o && e.type === "kpi" ? s.map(
982
+ const o = !!((T = e.sql) != null && T.trim()), r = At(e.type), i = o && r && e.type !== "kpi" && e.type !== "matrixTable", s = Vi(e), a = ho(e), c = !o && e.type === "kpi" ? s.map(
983
983
  (C) => Ee(e, {
984
984
  column: { kind: "field", fieldId: C.id }
985
985
  })
@@ -1004,10 +1004,10 @@ function ki(e, t = [], n) {
1004
1004
  ), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? c.filter((C) => C.currencyBindable).flatMap(
1005
1005
  (C) => C.target ? [C.target] : []
1006
1006
  ) : (o || !r ? [] : s).filter(
1007
- (C) => (Co(e.type) ? Di(
1007
+ (C) => (Co(e.type) ? Ti(
1008
1008
  C,
1009
- Vi(a, C)
1010
- ) : Ti(e, C)).currencyBindable
1009
+ ki(a, C)
1010
+ ) : Mi(e, C)).currencyBindable
1011
1011
  ).map(
1012
1012
  (C) => ({
1013
1013
  kind: "metric",
@@ -1019,7 +1019,7 @@ function ki(e, t = [], n) {
1019
1019
  columnKey: C
1020
1020
  })
1021
1021
  ), y = (i ? g : []).filter(
1022
- (C) => Si(
1022
+ (C) => Di(
1023
1023
  a[C]
1024
1024
  )
1025
1025
  ).map(
@@ -1062,7 +1062,7 @@ function nl(e) {
1062
1062
  function U(e) {
1063
1063
  return e.kind === "metric" ? `metric:${e.metricId}` : e.kind === "column" ? `column:${e.columnKey}` : `matrix_measure:${e.measureId}`;
1064
1064
  }
1065
- function xi(e) {
1065
+ function Pi(e) {
1066
1066
  if (!e || typeof e != "object" || Array.isArray(e))
1067
1067
  return;
1068
1068
  const t = e;
@@ -1163,7 +1163,7 @@ function Tn(e, t) {
1163
1163
  const n = e, o = typeof n.controlId == "string" && n.controlId.trim() ? n.controlId : void 0;
1164
1164
  if (!o)
1165
1165
  return { diagnostic: { code: "invalid_binding_shape" } };
1166
- const r = xi(
1166
+ const r = Pi(
1167
1167
  n.presentationTarget
1168
1168
  );
1169
1169
  if (!r)
@@ -1203,7 +1203,7 @@ function sl(e) {
1203
1203
  return "diagnostic" in o ? [o.diagnostic] : [];
1204
1204
  });
1205
1205
  }
1206
- function Pi(e) {
1206
+ function wi(e) {
1207
1207
  var r;
1208
1208
  const t = [], n = U(e.target), o = Dn(e);
1209
1209
  for (const i of e.bindings || []) {
@@ -1224,10 +1224,10 @@ function Pi(e) {
1224
1224
  }
1225
1225
  return { diagnostics: t };
1226
1226
  }
1227
- function wi(e, t, n, o) {
1228
- const r = { ...e, config: { ...e.config, matrix: t } }, i = ki(r, [], o), s = In(r, o), a = { ...t.presentation.measureFormats };
1227
+ function Oi(e, t, n, o) {
1228
+ const r = { ...e, config: { ...e.config, matrix: t } }, i = xi(r, [], o), s = In(r, o), a = { ...t.presentation.measureFormats };
1229
1229
  for (const c of s) {
1230
- const l = { kind: "matrix_measure", measureId: c.measureId }, { currency: d } = Pi({
1230
+ const l = { kind: "matrix_measure", measureId: c.measureId }, { currency: d } = wi({
1231
1231
  ...n,
1232
1232
  ...i,
1233
1233
  bindings: e.controlBindings,
@@ -1239,7 +1239,7 @@ function wi(e, t, n, o) {
1239
1239
  }
1240
1240
  return { ...t.presentation, measureFormats: a };
1241
1241
  }
1242
- function Oi(e, t) {
1242
+ function Bi(e, t) {
1243
1243
  if (!e || typeof e != "object" || !("kind" in e))
1244
1244
  return e;
1245
1245
  switch (e.kind) {
@@ -1284,12 +1284,12 @@ function Oi(e, t) {
1284
1284
  return e;
1285
1285
  }
1286
1286
  }
1287
- function Bi(e, t) {
1287
+ function Ei(e, t) {
1288
1288
  return {
1289
1289
  id: e.id,
1290
1290
  scope: e.scope,
1291
1291
  type: e.type,
1292
- source: Oi(e.source, t),
1292
+ source: Bi(e.source, t),
1293
1293
  initialValueStrategy: e.initialValueStrategy,
1294
1294
  defaultValue: e.defaultValue,
1295
1295
  requiredAtExecution: e.requiredAtExecution,
@@ -1304,7 +1304,7 @@ function Bi(e, t) {
1304
1304
  } : {}
1305
1305
  };
1306
1306
  }
1307
- function Ei(e, t) {
1307
+ function Ai(e, t) {
1308
1308
  return e.target === "sql_param" || e.target === "presentation_currency" ? e : e.target === "config_field_selector" && !(t != null && t.includePresentation) ? {
1309
1309
  ...e,
1310
1310
  mapping: Object.fromEntries(
@@ -1329,29 +1329,29 @@ function Ei(e, t) {
1329
1329
  };
1330
1330
  }
1331
1331
  function Tt(e = [], t) {
1332
- return [...e].map((n) => Bi(n, t)).sort(
1332
+ return [...e].map((n) => Ei(n, t)).sort(
1333
1333
  (n, o) => n.id.localeCompare(o.id) || n.scope.localeCompare(o.scope) || n.type.localeCompare(o.type)
1334
1334
  );
1335
1335
  }
1336
- function Ai(e = [], t) {
1336
+ function _i(e = [], t) {
1337
1337
  return e.filter(
1338
1338
  (n) => (t == null ? void 0 : t.includePresentation) || !ve(n)
1339
- ).map((n) => Ei(n, t)).sort(
1339
+ ).map((n) => Ai(n, t)).sort(
1340
1340
  (n, o) => _(n).localeCompare(_(o))
1341
1341
  );
1342
1342
  }
1343
- function _i(e, t) {
1343
+ function Ri(e, t) {
1344
1344
  return e ? _({
1345
1345
  controlDefinitions: Tt(e.controlDefinitions, t),
1346
1346
  cardControlDefinitions: Tt(
1347
1347
  e.cardControlDefinitions,
1348
1348
  t
1349
1349
  ),
1350
- controlBindings: Ai(e.controlBindings, t)
1350
+ controlBindings: _i(e.controlBindings, t)
1351
1351
  }) : "__none__";
1352
1352
  }
1353
- const Ri = ["table", "detailTable"], Mt = (e) => Ri.includes(e.type), Ki = "calendar-context";
1354
- function qi(e) {
1353
+ const Ki = ["table", "detailTable"], Mt = (e) => Ki.includes(e.type), qi = "calendar-context";
1354
+ function Ni(e) {
1355
1355
  const { id: t, label: n, field: o, ...r } = e;
1356
1356
  return {
1357
1357
  ...r,
@@ -1366,7 +1366,7 @@ function Me(e) {
1366
1366
  const { id: t, conditions: n, groups: o, ...r } = e;
1367
1367
  return {
1368
1368
  ...r,
1369
- conditions: n.map(qi),
1369
+ conditions: n.map(Ni),
1370
1370
  groups: o.map((i) => Me(i))
1371
1371
  };
1372
1372
  }
@@ -1393,7 +1393,7 @@ function Ye(e) {
1393
1393
  } : {}
1394
1394
  };
1395
1395
  }
1396
- function Ni(e) {
1396
+ function Li(e) {
1397
1397
  const t = (n) => n == null ? void 0 : n.map(Ye);
1398
1398
  return {
1399
1399
  ...e,
@@ -1405,23 +1405,23 @@ function Ni(e) {
1405
1405
  filters: e.filters ? Me(e.filters) : void 0
1406
1406
  };
1407
1407
  }
1408
- function Li(e, t, n) {
1408
+ function ji(e, t, n) {
1409
1409
  if (!e)
1410
1410
  return JSON.stringify(e);
1411
- if (n === "matrixTable" && e.matrix) return _(Or(e.matrix.spec));
1412
- const { matrix: o, ...r } = e, i = t ? Ni(r) : r;
1411
+ if (n === "matrixTable" && e.matrix) return _(Br(e.matrix.spec));
1412
+ const { matrix: o, ...r } = e, i = t ? Li(r) : r;
1413
1413
  return JSON.stringify({
1414
1414
  ...i,
1415
1415
  filters: Me(i.filters)
1416
1416
  });
1417
1417
  }
1418
- function ji(e) {
1418
+ function zi(e) {
1419
1419
  if (!e)
1420
1420
  return null;
1421
1421
  const { format: t, ...n } = e;
1422
1422
  return n;
1423
1423
  }
1424
- function zi(e, t) {
1424
+ function Gi(e, t) {
1425
1425
  const n = /* @__PURE__ */ new Map();
1426
1426
  for (const r of (t == null ? void 0 : t.controlDefinitions) || [])
1427
1427
  n.set(r.id, r.type);
@@ -1437,7 +1437,7 @@ function zi(e, t) {
1437
1437
  );
1438
1438
  return _(o);
1439
1439
  }
1440
- function Gi(e, {
1440
+ function Hi(e, {
1441
1441
  finalFiltersKey: t,
1442
1442
  cardFilterValues: n,
1443
1443
  controlValues: o,
@@ -1466,24 +1466,24 @@ function Gi(e, {
1466
1466
  g,
1467
1467
  p,
1468
1468
  JSON.stringify(n),
1469
- zi(o, {
1469
+ Gi(o, {
1470
1470
  controlDefinitions: r,
1471
1471
  cardControlDefinitions: i
1472
1472
  }),
1473
- _i({
1473
+ Ri({
1474
1474
  controlDefinitions: r,
1475
1475
  cardControlDefinitions: i,
1476
1476
  controlBindings: s
1477
1477
  }),
1478
1478
  _(
1479
- ji(c)
1479
+ zi(c)
1480
1480
  ),
1481
1481
  _(l ?? null),
1482
- Ki,
1482
+ qi,
1483
1483
  _(d),
1484
1484
  JSON.stringify(f),
1485
1485
  JSON.stringify(m),
1486
- Li(
1486
+ ji(
1487
1487
  h,
1488
1488
  I,
1489
1489
  e.type
@@ -1491,9 +1491,9 @@ function Gi(e, {
1491
1491
  t
1492
1492
  ];
1493
1493
  }
1494
- function Hi(e, t, n) {
1494
+ function Ui(e, t, n) {
1495
1495
  var a, c, l;
1496
- const o = Gi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = Mt(e) && Fe(e.config) || Mt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
1496
+ const o = Hi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = Mt(e) && Fe(e.config) || Mt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
1497
1497
  return {
1498
1498
  queryKey: [
1499
1499
  ...o,
@@ -1503,8 +1503,8 @@ function Hi(e, t, n) {
1503
1503
  paginationConfig: i
1504
1504
  };
1505
1505
  }
1506
- function Ui(e, t, n, o) {
1507
- return Hi(
1506
+ function Qi(e, t, n, o) {
1507
+ return Ui(
1508
1508
  e,
1509
1509
  {
1510
1510
  finalFiltersKey: t.finalFiltersKey,
@@ -1523,7 +1523,7 @@ function Ui(e, t, n, o) {
1523
1523
  }
1524
1524
  function Mn(e) {
1525
1525
  const t = {
1526
- ...wr,
1526
+ ...Or,
1527
1527
  ...e.presentation
1528
1528
  }, n = t.displayMode, {
1529
1529
  bookkeepingKeys: o,
@@ -1611,7 +1611,7 @@ function ll(e) {
1611
1611
  (o) => !Yt(e.comparisonMetadata, o)
1612
1612
  );
1613
1613
  }
1614
- function Qi(e) {
1614
+ function $i(e) {
1615
1615
  return e.part === "base" && !!e.columnId;
1616
1616
  }
1617
1617
  function Xe(e) {
@@ -1635,7 +1635,7 @@ function Vt(e) {
1635
1635
  for (const n of e) t.set(n, (t.get(n) ?? 0) + 1);
1636
1636
  return t;
1637
1637
  }
1638
- function $i(e, t) {
1638
+ function Ji(e, t) {
1639
1639
  var u, f;
1640
1640
  const n = [...t.keys], o = new Set(n), r = t.columnKeyMap, i = Xe(e).flatMap(
1641
1641
  ({ role: m, fields: g }) => g.flatMap((p) => {
@@ -1718,7 +1718,7 @@ function $i(e, t) {
1718
1718
  }
1719
1719
  return { entries: c, owners: l };
1720
1720
  }
1721
- function Ji(e) {
1721
+ function Wi(e) {
1722
1722
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1723
1723
  for (const o of e.keys) {
1724
1724
  const r = { kind: "result", key: o }, i = j(r);
@@ -1738,12 +1738,12 @@ function cl(e) {
1738
1738
  for (const o of Object.keys(n)) t.add(o);
1739
1739
  return [...t];
1740
1740
  }
1741
- function Wi(e, t) {
1741
+ function Yi(e, t) {
1742
1742
  if (e.toLowerCase() !== "count") return !1;
1743
1743
  const n = t == null ? void 0 : t.find((o) => (o == null ? void 0 : o[e]) != null);
1744
1744
  return n ? typeof n[e] == "number" : !1;
1745
1745
  }
1746
- function Yi(e, t, n, o) {
1746
+ function Xi(e, t, n, o) {
1747
1747
  var c, l, d, u;
1748
1748
  let r = [...t.keys], i = /* @__PURE__ */ new Map();
1749
1749
  const s = t.comparisonMetadata;
@@ -1761,8 +1761,8 @@ function Yi(e, t, n, o) {
1761
1761
  r = r.filter((m) => !f.excludedKeys.has(m)), i = f.columnLabels;
1762
1762
  }
1763
1763
  const a = e.config;
1764
- return e.type === "table" && !((d = a == null ? void 0 : a.metricColumns) != null && d.length) && ((u = a == null ? void 0 : a.groupByColumns) != null && u.length) && !e.sql && (r = r.filter((f) => !Wi(f, t.rows))), {
1765
- keys: bi({
1764
+ return e.type === "table" && !((d = a == null ? void 0 : a.metricColumns) != null && d.length) && ((u = a == null ? void 0 : a.groupByColumns) != null && u.length) && !e.sql && (r = r.filter((f) => !Yi(f, t.rows))), {
1765
+ keys: hi({
1766
1766
  keys: r,
1767
1767
  card: e,
1768
1768
  comparisonMetadata: s,
@@ -1772,7 +1772,7 @@ function Yi(e, t, n, o) {
1772
1772
  exportLabels: i
1773
1773
  };
1774
1774
  }
1775
- function Xi(e, t, n) {
1775
+ function Zi(e, t, n) {
1776
1776
  var r, i;
1777
1777
  const o = /* @__PURE__ */ new Map();
1778
1778
  if (e.type !== "table" || !nn((r = e.preferences) == null ? void 0 : r.comparisonPresentation))
@@ -1797,18 +1797,18 @@ function Xi(e, t, n) {
1797
1797
  }
1798
1798
  return o;
1799
1799
  }
1800
- function Zi(e) {
1800
+ function es(e) {
1801
1801
  const t = Xe(e);
1802
1802
  return [
1803
1803
  ...t.filter((n) => n.role === "metric"),
1804
1804
  ...t.filter((n) => n.role !== "metric")
1805
1805
  ];
1806
1806
  }
1807
- function es(e, t, n) {
1807
+ function ts(e, t, n) {
1808
1808
  if (!t.length) return [];
1809
- const o = Zi(e), r = [], i = /* @__PURE__ */ new Set();
1809
+ const o = es(e), r = [], i = /* @__PURE__ */ new Set();
1810
1810
  for (const s of t) {
1811
- const a = Br(o, s);
1811
+ const a = Er(o, s);
1812
1812
  if (!a) continue;
1813
1813
  const c = o[a.group], l = Ze(c.fields[a.index], c.role);
1814
1814
  if (!l) continue;
@@ -1820,14 +1820,14 @@ function es(e, t, n) {
1820
1820
  }
1821
1821
  return r;
1822
1822
  }
1823
- function ts(e, t) {
1823
+ function ns(e, t) {
1824
1824
  return e ? "query" : t === "server" ? "page-only" : "browser";
1825
1825
  }
1826
1826
  function Vn(e, t) {
1827
1827
  var n, o, r;
1828
1828
  return !!t && ((r = (o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.columnVisibility) == null ? void 0 : r[t]) === !1;
1829
1829
  }
1830
- function ns(e) {
1830
+ function os(e) {
1831
1831
  return e.type !== "table" && e.type !== "detailTable" ? "card-type" : tn(e) ? void 0 : "author-disabled";
1832
1832
  }
1833
1833
  function Ae(e, t) {
@@ -1854,10 +1854,10 @@ function de(e, t, n) {
1854
1854
  s.splice(d, 0, a);
1855
1855
  }), s.flatMap((a) => a.keys);
1856
1856
  }
1857
- function os(e) {
1857
+ function rs(e) {
1858
1858
  return e != null && e.pivotIdentity ? JSON.stringify(e.pivotIdentity.members.map((t) => t.value)) : void 0;
1859
1859
  }
1860
- function rs(e, t, n, o) {
1860
+ function is(e, t, n, o) {
1861
1861
  const r = e.findIndex(
1862
1862
  (l) => {
1863
1863
  var d;
@@ -1875,7 +1875,7 @@ function rs(e, t, n, o) {
1875
1875
  ), a = [];
1876
1876
  let c;
1877
1877
  for (const l of e.slice(r, i + 1)) {
1878
- const d = os(s.get(l)) ?? `key:${l}`;
1878
+ const d = rs(s.get(l)) ?? `key:${l}`;
1879
1879
  (!a.length || d !== c) && a.push([]), a[a.length - 1].push(l), c = d;
1880
1880
  }
1881
1881
  return [
@@ -1900,10 +1900,10 @@ function ul(e) {
1900
1900
  }
1901
1901
  function fl(e) {
1902
1902
  var at, lt, ct, dt, ut, ft, pt;
1903
- const { card: t, result: n } = e, o = e.projection ?? "screen", r = ne(t) === "config", i = ns(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (at = e.settings) != null && at.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ts(r, e.paginationMode), c = n.columnKeyMap, l = r ? $i(t, n) : Ji(n), d = (b) => {
1903
+ const { card: t, result: n } = e, o = e.projection ?? "screen", r = ne(t) === "config", i = os(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (at = e.settings) != null && at.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ns(r, e.paginationMode), c = n.columnKeyMap, l = r ? Ji(t, n) : Wi(n), d = (b) => {
1904
1904
  var S, V;
1905
1905
  return b && ((V = (S = s == null ? void 0 : s.labels) == null ? void 0 : S[b]) == null ? void 0 : V.trim()) || void 0;
1906
- }, u = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } = Yi(
1906
+ }, u = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } = Xi(
1907
1907
  t,
1908
1908
  n,
1909
1909
  o,
@@ -1920,7 +1920,7 @@ function fl(e) {
1920
1920
  return S;
1921
1921
  }, y = f.filter((b) => !g(b)), I = Ae(y, p).flatMap(
1922
1922
  (b) => b.columnId ? [b.columnId] : []
1923
- ), v = new Set(I), T = r ? es(
1923
+ ), v = new Set(I), T = r ? ts(
1924
1924
  t,
1925
1925
  ((lt = t.config) == null ? void 0 : lt.sortByColumns) ?? [],
1926
1926
  l.entries
@@ -1960,22 +1960,22 @@ function fl(e) {
1960
1960
  )
1961
1961
  )
1962
1962
  } : void 0
1963
- ), F = M == null ? void 0 : M.order, k = F ? rs(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f, P = Ae(k, p).flatMap(
1963
+ ), F = M == null ? void 0 : M.order, k = F ? is(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f, P = Ae(k, p).flatMap(
1964
1964
  (b) => b.columnId ? [b.columnId] : []
1965
1965
  ), D = new Set((M == null ? void 0 : M.hidden) ?? []);
1966
1966
  P.length && P.every((b) => D.has(b)) && D.delete(P[0]);
1967
- const x = o === "screen" ? Xi(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
1967
+ const x = o === "screen" ? Zi(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
1968
1968
  const V = d(S == null ? void 0 : S.columnId);
1969
1969
  if ((S == null ? void 0 : S.part) === "base" && V) return V;
1970
1970
  const K = x.get(b);
1971
1971
  if (K)
1972
- return ai(
1972
+ return li(
1973
1973
  ((S == null ? void 0 : S.part) === "comparison" ? V : void 0) ?? (K.metric.label || K.metric.name),
1974
1974
  K.kind
1975
1975
  );
1976
1976
  const W = m.get(b);
1977
1977
  if (W) return W;
1978
- const Y = gi({
1978
+ const Y = yi({
1979
1979
  columnId: b,
1980
1980
  card: t,
1981
1981
  columnKeyMap: c,
@@ -1994,7 +1994,7 @@ function fl(e) {
1994
1994
  part: V,
1995
1995
  visible: !g(b) && !(S && D.has(S.columnId)),
1996
1996
  label: E(b, S),
1997
- resizable: !i && Qi({ part: V, columnId: S == null ? void 0 : S.columnId })
1997
+ resizable: !i && $i({ part: V, columnId: S == null ? void 0 : S.columnId })
1998
1998
  };
1999
1999
  }), z = Object.fromEntries(
2000
2000
  R.map((b) => [b.outputKey, b.label])
@@ -2071,14 +2071,14 @@ function kn(e, t) {
2071
2071
  return;
2072
2072
  return r.length === 1 ? { field: r[0], role: i } : void 0;
2073
2073
  }
2074
- function is(e, t) {
2074
+ function ss(e, t) {
2075
2075
  const n = t == null ? void 0 : t.sort;
2076
2076
  if (!n || !e.config || e.type !== "table" && e.type !== "detailTable" || ne(e) !== "config")
2077
2077
  return e.config;
2078
2078
  const o = n.flatMap((r) => {
2079
2079
  const i = kn(e, r.columnId);
2080
2080
  if (!i) return [];
2081
- const s = Er(i.field, i.role);
2081
+ const s = Ar(i.field, i.role);
2082
2082
  return Vn(e, s) ? [] : [
2083
2083
  {
2084
2084
  ...i.field,
@@ -2090,28 +2090,28 @@ function is(e, t) {
2090
2090
  });
2091
2091
  return n.length > 0 && o.length === 0 ? e.config : { ...e.config, sortByColumns: o };
2092
2092
  }
2093
- const ss = 500, as = 250;
2093
+ const as = 500, ls = 250;
2094
2094
  function _e(e) {
2095
2095
  return e.type === "table" || e.type === "detailTable";
2096
2096
  }
2097
- function ls(e) {
2097
+ function cs(e) {
2098
2098
  var t, n, o;
2099
2099
  return !!((t = e.sql) != null && t.trim() && _e(e) && ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && o.enableDevModePagination));
2100
2100
  }
2101
2101
  function ml(e) {
2102
- return e === "export-full-with-cap" ? ss : as;
2102
+ return e === "export-full-with-cap" ? as : ls;
2103
2103
  }
2104
- function cs({
2104
+ function ds({
2105
2105
  card: e,
2106
2106
  isTablePrintMode: t,
2107
2107
  isDocumentSectionRuntime: n,
2108
2108
  documentTableDataPolicy: o
2109
2109
  }) {
2110
2110
  var c, l;
2111
- const r = n && o !== void 0 && _e(e), i = t && !r, s = Fe(e.config) && _e(e) && !e.sql, a = r ? ls(e) : !!(e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) != null && l.enableDevModePagination));
2111
+ const r = n && o !== void 0 && _e(e), i = t && !r, s = Fe(e.config) && _e(e) && !e.sql, a = r ? cs(e) : !!(e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) != null && l.enableDevModePagination));
2112
2112
  return !i && (s || a);
2113
2113
  }
2114
- function ds(e) {
2114
+ function us(e) {
2115
2115
  var t, n, o;
2116
2116
  return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.pageSize) || 50;
2117
2117
  }
@@ -2139,12 +2139,12 @@ function bl(e, t) {
2139
2139
  hasPrevPage: t.page > 1
2140
2140
  };
2141
2141
  }
2142
- function us(e) {
2143
- return { page: 1, pageSize: ds(e) };
2144
- }
2145
2142
  function fs(e) {
2143
+ return { page: 1, pageSize: us(e) };
2144
+ }
2145
+ function ps(e) {
2146
2146
  var s, a, c, l, d;
2147
- const { card: t } = e, n = cs({
2147
+ const { card: t } = e, n = ds({
2148
2148
  card: t,
2149
2149
  isTablePrintMode: ((s = e.display) == null ? void 0 : s.isTablePrintMode) ?? !1,
2150
2150
  isDocumentSectionRuntime: !!e.documentSection,
@@ -2161,14 +2161,14 @@ function fs(e) {
2161
2161
  } : {}
2162
2162
  };
2163
2163
  }
2164
- function ps(e, t = {}) {
2164
+ function ms(e, t = {}) {
2165
2165
  var r, i, s;
2166
2166
  const n = ((r = e.connectionId) == null ? void 0 : r.trim()) || void 0;
2167
2167
  if (t.editorDevMode) return n;
2168
2168
  const o = ((s = (i = e.dataSource) == null ? void 0 : i.connectionId) == null ? void 0 : s.trim()) || void 0;
2169
2169
  return e.sql ? n || o : o || n;
2170
2170
  }
2171
- function ms(e, t) {
2171
+ function gs(e, t) {
2172
2172
  var n;
2173
2173
  return {
2174
2174
  connectionId: t,
@@ -2178,7 +2178,7 @@ function ms(e, t) {
2178
2178
  };
2179
2179
  }
2180
2180
  function hl(e, t, n = {}) {
2181
- const o = ps(e, n);
2181
+ const o = ms(e, n);
2182
2182
  if (!o)
2183
2183
  throw new Error("No connection ID found for card");
2184
2184
  const r = t.cardDataSource || e.dataSource;
@@ -2186,11 +2186,11 @@ function hl(e, t, n = {}) {
2186
2186
  connectionId: o,
2187
2187
  requestPayloadBase: {
2188
2188
  ...t,
2189
- cardDataSource: n.liveDataSource ? r : r || ms(e, o)
2189
+ cardDataSource: n.liveDataSource ? r : r || gs(e, o)
2190
2190
  }
2191
2191
  };
2192
2192
  }
2193
- const gs = /* @__PURE__ */ new Set([
2193
+ const ys = /* @__PURE__ */ new Set([
2194
2194
  "day",
2195
2195
  "week",
2196
2196
  "month",
@@ -2200,7 +2200,7 @@ const gs = /* @__PURE__ */ new Set([
2200
2200
  "minute",
2201
2201
  "second"
2202
2202
  ]);
2203
- function ys(e) {
2203
+ function bs(e) {
2204
2204
  let t = e.spec;
2205
2205
  const n = Rt(
2206
2206
  e.controlDefinitions || [],
@@ -2279,7 +2279,7 @@ function ys(e) {
2279
2279
  );
2280
2280
  M !== void 0 && !F && I("The selected Matrix level is no longer available.");
2281
2281
  const k = p.target === "config_field_selector" && !F ? Do({ binding: p, selectedValue: h }) : void 0, O = p.target === "config_grain" ? mt({ binding: p, selectedValue: h }) : F ? F.grain : k == null ? void 0 : k.granularity;
2282
- O !== void 0 && !gs.has(O) && I("This time grain is not supported by Matrix.");
2282
+ O !== void 0 && !ys.has(O) && I("This time grain is not supported by Matrix.");
2283
2283
  const P = (D) => D.map((x) => {
2284
2284
  if (x.id !== y) return x;
2285
2285
  const E = (F == null ? void 0 : F.field) ?? (k ? w(k) : x.field), R = u(E, p.controlId), z = O ?? (k && yt(R) ? x.grain : void 0);
@@ -2322,31 +2322,20 @@ function xn(e, t) {
2322
2322
  }
2323
2323
  return n;
2324
2324
  }
2325
- function bs(e, t = [], n = []) {
2325
+ function hs(e, t = [], n = []) {
2326
2326
  return Ut([...qt(e), ...xn(t), ...n]);
2327
2327
  }
2328
- function hs(e, t = {}) {
2328
+ function Cs(e, t = {}) {
2329
2329
  const n = t.controlBindings ?? [], o = Rt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), r = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, Kt({ binding: i, definitions: o, controlValues: t.controlValues })]));
2330
2330
  return Ut([...qt(e), ...xn(n, r)]);
2331
2331
  }
2332
- function Cs(e, t) {
2333
- return {
2334
- id: t,
2335
- field: e.field,
2336
- operator: e.operator,
2337
- value: e.value,
2338
- label: e.label,
2339
- temporalBucket: e.temporalBucket,
2340
- ...e.rawTemporal ? { rawTemporal: e.rawTemporal } : {}
2341
- };
2342
- }
2343
2332
  function Is(e, t) {
2344
2333
  return qe(e) ? vs(e, t) : e.config ?? {};
2345
2334
  }
2346
2335
  function vs(e, t) {
2347
2336
  var o;
2348
2337
  const n = (o = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : o.toField;
2349
- return n ? si(e.config ?? {}, n, {
2338
+ return n ? ai(e.config ?? {}, n, {
2350
2339
  sortPolicy: "retargetDimensionSort"
2351
2340
  }) : e.config ?? {};
2352
2341
  }
@@ -2369,7 +2358,7 @@ function Fs(e, t) {
2369
2358
  logicalOperator: "AND",
2370
2359
  negate: !1,
2371
2360
  conditions: o.conditions.map(
2372
- (i) => Cs(
2361
+ (i) => Pr(
2373
2362
  i,
2374
2363
  `${i.field.id}-${i.value}`
2375
2364
  )
@@ -2425,7 +2414,7 @@ function Vs(e) {
2425
2414
  }
2426
2415
  function Il(e) {
2427
2416
  const t = Jt(e), o = q(t).issues.length ? t : Va(t);
2428
- return ri(Ds(o)).dashboard;
2417
+ return ii(Ds(o)).dashboard;
2429
2418
  }
2430
2419
  function nt(e, t) {
2431
2420
  const n = {};
@@ -3519,13 +3508,13 @@ function El(e, t) {
3519
3508
  const n = new Map((e ? H(e) : []).map(({ card: o }) => [o.id, o]));
3520
3509
  return t && n.set(t.id, t), [...n.values()].flatMap((o) => {
3521
3510
  const r = Ne(o);
3522
- return r.status === "ready" ? bs(r.config.spec, o.controlBindings) : [];
3511
+ return r.status === "ready" ? hs(r.config.spec, o.controlBindings) : [];
3523
3512
  });
3524
3513
  }
3525
3514
  function Js(e, t, n) {
3526
3515
  const o = Lo(e);
3527
3516
  if (!o) throw new Error("Matrix card definition is required.");
3528
- const r = n && ys({
3517
+ const r = n && bs({
3529
3518
  ...n,
3530
3519
  spec: o.spec,
3531
3520
  catalog: t.map((d) => ({ ...d, id: d.resolvedField.id }))
@@ -3630,7 +3619,7 @@ function Qn(e, t = {}) {
3630
3619
  return {
3631
3620
  authored: t.includeAuthoredFilters === !1 ? void 0 : Qo(e),
3632
3621
  drill: Fs(t.drill, e.id),
3633
- selections: Pr(t.selections ?? [])
3622
+ selections: wr(t.selections ?? [])
3634
3623
  };
3635
3624
  }
3636
3625
  function Zs(e, t, n) {
@@ -3733,7 +3722,7 @@ function na({
3733
3722
  e,
3734
3723
  o == null ? void 0 : o.drill,
3735
3724
  I
3736
- ), T = is({ ...e, config: v }, r) ?? v, C = bn(T, {
3725
+ ), T = ss({ ...e, config: v }, r) ?? v, C = bn(T, {
3737
3726
  cardType: e.type,
3738
3727
  dataSource: e.dataSource,
3739
3728
  temporalResultOwner: zt({
@@ -4003,7 +3992,7 @@ function da(e, t, n) {
4003
3992
  cardFilterValues: s,
4004
3993
  resolvedPrimaryDateField: a,
4005
3994
  globalDateComparison: c
4006
- } = i, { queryKey: l, queryInputIdentity: d, paginationConfig: u } = Ui(
3995
+ } = i, { queryKey: l, queryInputIdentity: d, paginationConfig: u } = Qi(
4007
3996
  e,
4008
3997
  r.queryContext,
4009
3998
  n.calendarContext,
@@ -4187,14 +4176,14 @@ function ba({
4187
4176
  message: "Matrix field metadata is required.",
4188
4177
  context: v
4189
4178
  };
4190
- const B = hs(C.config.spec, v), M = r.filter(
4179
+ const B = Cs(C.config.spec, v), M = r.filter(
4191
4180
  (x) => x.field.source && B.some(
4192
4181
  (E) => we(E, x.field.source)
4193
4182
  )
4194
4183
  ), F = Js(h, M, v), { params: k } = w, O = k.dashboardInputContext;
4195
4184
  F.config = {
4196
4185
  ...F.config,
4197
- presentation: wi(
4186
+ presentation: Oi(
4198
4187
  h,
4199
4188
  F.config,
4200
4189
  {
@@ -4334,11 +4323,11 @@ function ba({
4334
4323
  ...(C == null ? void 0 : C.status) === "ready" ? {
4335
4324
  request: {
4336
4325
  ...C.requestPayloadBase,
4337
- ...fs({
4326
+ ...ps({
4338
4327
  card: d.card,
4339
4328
  finalConfig: d.context.finalConfig,
4340
4329
  documentSection: t.kind === "documentSection" ? {} : void 0,
4341
- page: us(d.card)
4330
+ page: fs(d.card)
4342
4331
  })
4343
4332
  }
4344
4333
  } : {}
@@ -4730,7 +4719,7 @@ function Ta(e, t) {
4730
4719
  );
4731
4720
  (i = e.frames) != null && i.some(
4732
4721
  (c) => c.visualId && c.cards.some((l) => l.id === r[s].id)
4733
- ) && (r[s].linkedReferenceOverrides = Yr(
4722
+ ) && (r[s].linkedReferenceOverrides = Xr(
4734
4723
  r[s].linkedReferenceOverrides,
4735
4724
  { inputAliases: a }
4736
4725
  ));
@@ -4751,38 +4740,38 @@ function Va(e) {
4751
4740
  ).toStoredDashboard();
4752
4741
  }
4753
4742
  export {
4754
- Rr as $,
4743
+ Kr as $,
4755
4744
  to as A,
4756
4745
  Fa as B,
4757
4746
  Ll as C,
4758
4747
  oa as D,
4759
4748
  Jn as E,
4760
- Yr as F,
4749
+ Xr as F,
4761
4750
  Qa as G,
4762
- si as H,
4763
- ys as I,
4751
+ ai as H,
4752
+ bs as I,
4764
4753
  Mt as J,
4765
4754
  fl as K,
4766
- Xr as L,
4755
+ Zr as L,
4767
4756
  cl as M,
4768
- Ti as N,
4769
- Di as O,
4770
- Fi as P,
4757
+ Mi as N,
4758
+ Ti as O,
4759
+ Si as P,
4771
4760
  nl as Q,
4772
4761
  In as R,
4773
4762
  Ee as S,
4774
4763
  Ya as T,
4775
- ki as U,
4764
+ xi as U,
4776
4765
  U as V,
4777
4766
  al as W,
4778
- Pi as X,
4767
+ wi as X,
4779
4768
  ll as Y,
4780
4769
  tt as Z,
4781
4770
  et as _,
4782
4771
  Rs as a,
4783
4772
  ol as a0,
4784
4773
  sl as a1,
4785
- Mi as a2,
4774
+ Vi as a2,
4786
4775
  el as a3,
4787
4776
  Kl as a4,
4788
4777
  ga as a5,
@@ -4793,7 +4782,7 @@ export {
4793
4782
  Ja as aA,
4794
4783
  Za as aB,
4795
4784
  ba as aC,
4796
- ui as aD,
4785
+ fi as aD,
4797
4786
  Xa as aE,
4798
4787
  El as aF,
4799
4788
  dn as aG,
@@ -4810,31 +4799,31 @@ export {
4810
4799
  Je as aR,
4811
4800
  il as aS,
4812
4801
  ml as aT,
4813
- as as aU,
4802
+ ls as aU,
4814
4803
  te as aV,
4815
4804
  vl as aW,
4816
4805
  Pl as aX,
4817
4806
  xl as aY,
4818
- Qi as aa,
4807
+ $i as aa,
4819
4808
  kl as ab,
4820
4809
  Ml as ac,
4821
4810
  Pn as ad,
4822
4811
  Vl as ae,
4823
- _i as af,
4812
+ Ri as af,
4824
4813
  ia as ag,
4825
4814
  ql as ah,
4826
4815
  Zs as ai,
4827
4816
  Al as aj,
4828
4817
  Rl as ak,
4829
- cs as al,
4830
- ds as am,
4818
+ ds as al,
4819
+ us as am,
4831
4820
  ya as an,
4832
4821
  gl as ao,
4833
4822
  yl as ap,
4834
- fs as aq,
4823
+ ps as aq,
4835
4824
  _e as ar,
4836
- ls as as,
4837
- ps as at,
4825
+ cs as as,
4826
+ ms as at,
4838
4827
  bl as au,
4839
4828
  _l as av,
4840
4829
  Bl as aw,
@@ -4842,9 +4831,9 @@ export {
4842
4831
  pn as ay,
4843
4832
  Wa as az,
4844
4833
  dl as b,
4845
- Ui as c,
4834
+ Qi as c,
4846
4835
  ea as d,
4847
- Jr as e,
4836
+ Wr as e,
4848
4837
  pl as f,
4849
4838
  hl as g,
4850
4839
  Tl as h,
@@ -4858,12 +4847,12 @@ export {
4858
4847
  Il as p,
4859
4848
  va as q,
4860
4849
  Fl as r,
4861
- bs as s,
4862
- hs as t,
4863
- Zr as u,
4864
- ni as v,
4850
+ hs as s,
4851
+ Cs as t,
4852
+ ei as u,
4853
+ oi as v,
4865
4854
  fn as w,
4866
4855
  $a as x,
4867
- ri as y,
4856
+ ii as y,
4868
4857
  Va as z
4869
4858
  };