react-semaphor 0.1.555 → 0.1.557

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 (114) hide show
  1. package/DATA_APP_SDK.md +6 -29
  2. package/dist/analytics-protocol/index.js +20 -21
  3. package/dist/assistant-context/index.js +1 -1
  4. package/dist/assistant-protocol/index.js +5 -5
  5. package/dist/brand-studio/index.js +426 -444
  6. package/dist/briefings/index.js +56 -57
  7. package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
  8. package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
  9. package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
  10. package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
  11. package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
  12. package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
  14. package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
  16. package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
  17. package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
  18. package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
  19. package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
  20. package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
  21. package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
  22. package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
  23. package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
  24. package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
  25. package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
  26. package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
  27. package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
  28. package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
  29. package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
  30. package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
  31. package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
  32. package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
  33. package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
  34. package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
  35. package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
  36. package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
  37. package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
  38. package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
  39. package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
  40. package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
  41. package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
  42. package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
  43. package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
  44. package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
  45. package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
  46. package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
  47. package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
  48. package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
  49. package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
  50. package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
  51. package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
  52. package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
  53. package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
  54. package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
  55. package/dist/dashboard/index.js +2 -2
  56. package/dist/dashboard-authoring/index.js +168 -169
  57. package/dist/data-app-sdk/index.js +789 -4154
  58. package/dist/data-app-sdk-adapters/index.js +3 -3
  59. package/dist/data-app-sdk-validation/index.js +6 -6
  60. package/dist/format-utils/index.js +234 -253
  61. package/dist/index.js +233 -235
  62. package/dist/layouts/index.js +1 -1
  63. package/dist/pdf-export-policy/index.js +9 -11
  64. package/dist/report-runtime-context/index.js +2 -2
  65. package/dist/style.css +1 -1
  66. package/dist/surfboard/index.js +2 -2
  67. package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
  68. package/dist/types/brand-studio/index.d.ts +1 -1
  69. package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
  70. package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
  71. package/dist/types/data-app-sdk/contracts.d.ts +0 -146
  72. package/dist/types/data-app-sdk/index.d.ts +0 -2
  73. package/dist/types/index.js +27 -28
  74. package/dist/types/lib/api/exports-api.d.ts +1 -1
  75. package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
  76. package/dist/types/lib/charts/types.d.ts +2 -2
  77. package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
  78. package/dist/types/lib/document/document-edits.d.ts +1 -1
  79. package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
  80. package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
  81. package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
  82. package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
  83. package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
  84. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
  85. package/dist/types/lib/types/common-types.d.ts +0 -7
  86. package/dist/types/lib/types/explorer-types.d.ts +1 -14
  87. package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
  88. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
  89. package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
  90. package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
  91. package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
  92. package/dist/types/shared/format-utils/index.d.ts +0 -2
  93. package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
  94. package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
  95. package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
  96. package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
  97. package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
  98. package/package.json +2 -4
  99. package/src/data-app-sdk/README.md +7 -31
  100. package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
  101. package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
  102. package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
  103. package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
  104. package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
  105. package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
  106. package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
  107. package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
  108. package/dist/chunks/x-4f5U2XwU.js +0 -100
  109. package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
  110. package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
  111. package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
  112. package/dist/types/data-app-sdk/devtools.d.ts +0 -1
  113. package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
  114. package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
@@ -1,29 +1,28 @@
1
- import { al as li, am as ci, an as ui, ao as mt, ap as di, aq as K, ar as pt, as as fi, at as mi, au as we, av as pi, aw as ht, ax as hi, ay as yi, az as gi, aA as bi, aB as vi, aC as Fi, aD as yt, aE as Ci, aF as Ii, aG as xi, aH as ve, aI as Si, aJ as Mi, aK as Di, b as Ti, aL as wi, v as Pi, z as Oi, aM as Ai, aN as Ni } from "./resolve-dashboard-input-context-CIm9A8_j.js";
2
- import { ac as gt, f as _i, e as Ei, a9 as bt, an as Ri, v as Vi } from "./validators-ClKLGDGZ.js";
3
- import "./matrix-operation-contract--lMaLlpV.js";
4
- import { r as ki, C as Bi } from "./metric-comparison-CYIt2F5X.js";
5
- import "./analytics-base-schemas-BKs3flFS.js";
1
+ import { al as oi, am as si, an as li, ao as dt, ap as ci, aq as K, ar as ft, as as ui, at as di, au as Se, av as fi, aw as mt, ax as mi, ay as pi, az as hi, aA as gi, aB as yi, aC as bi, aD as pt, aE as vi, aF as Fi, aG as Ci, aH as ge, aI as Ii, aJ as xi, aK as Si, b as Mi, aL as Di, v as Ti, z as wi, aM as Pi, aN as Oi } from "./resolve-dashboard-input-context-Djl3kCFL.js";
2
+ import { ab as ht, f as Ai, e as _i, a8 as gt, am as Ni, v as Ei } from "./validators-hmfNNQz8.js";
3
+ import "./matrix-operation-contract-CpgLZ7E5.js";
4
+ import { r as Ri, C as Vi } from "./metric-comparison-C8LY7GG5.js";
5
+ import "./analytics-base-schemas-BUFUoO6G.js";
6
6
  import "zod";
7
- import { q as Ki } from "./pivot-result-lifecycle-BygCpOhk.js";
8
- import { f as G } from "./matrix-formatter-K2OVPJQI.js";
9
- import { b as vt, m as Li, h as qi, d as xe, e as $i, i as k, u as _, R as zi, v as ji, r as Ui, z as Hi } from "./temporal-bucket-C4rqmwaQ.js";
7
+ import { d as yt, n as ki, j as Bi, e as Fe, g as Ki, i as R, H as _, R as Li, v as qi, r as $i, L as zi, X as ji } from "./temporal-input-presentation-DoSniQj1.js";
8
+ import { f as W } from "./pivot-result-contract-expectations-DMk-mKhG.js";
10
9
  import "../value-format-preferences/index.js";
11
- import { L as Gi, w as pe } from "./table-settings-DOT_Bv1m.js";
12
- import { dp as Ft, dw as Ct, dx as Wi, dy as Qi, cS as Pe, dz as Yi, cT as Ge, dA as N, as as Ji, dB as It, dC as Oe, dD as Xi, dE as Zi, dF as We, dG as en, dH as Qe, dI as tn, dJ as nn, Q as xt, dK as St, dL as Mt, v as Dt, dM as Ye, Y as q, dN as Ae, d1 as Je, d3 as Ne, c_ as Xe, dO as Ze, ds as rn, bb as _e, dP as an, dQ as on, dR as sn, cX as H, be as et, dS as ln, a2 as Tt, a3 as wt, d as cn, dT as $, bg as un, dU as dn, bh as fn, aA as Pt, dV as mn, dW as pn, dX as hn, dY as yn, b as Ot, dr as gn, cW as bn, dZ as vn, d8 as Se, d_ as Fn, d$ as Fe, c8 as At, e0 as tt, e1 as Cn, bI as In, cb as it, ca as xn, e2 as Sn } from "./global-date-filter-utils-7OboTgrM.js";
13
- import { r as Mn } from "./pivot-result-identity-BHJGZwIc.js";
14
- import { g as Dn } from "./_commonjsHelpers-DimLPMtv.js";
15
- import { e as Tn, d as wn } from "./raw-temporal-presentation-CivONfcO.js";
16
- import "./index-CtoK1Lgu.js";
10
+ import { L as Hi, w as de } from "./table-settings-DF1gdVQR.js";
11
+ import { dm as bt, du as vt, dv as Ui, dw as Gi, cR as Me, dx as Wi, cS as Qi, dy as A, as as Yi, dz as Ft, dA as De, dB as Ji, dC as Xi, dD as Ue, dE as Zi, dF as Ge, dG as en, dH as tn, Q as Ct, dI as It, dJ as xt, v as St, dK as We, Y as $, dL as Te, c$ as Qe, d1 as we, cY as Ye, dM as Je, dq as nn, bb as Pe, dN as rn, dO as an, dP as on, cV as G, be as Xe, dQ as sn, a2 as Mt, a3 as Dt, d as ln, dR as z, bg as cn, dS as un, bh as dn, aA as Tt, dT as fn, dU as mn, dV as pn, dW as hn, b as wt, dp as gn, dX as yn, dY as bn, d6 as Ce, dZ as vn, d_ as ye, c7 as Pt, d$ as Ze, e0 as Fn, bH as Cn, ca as et, c9 as In, e1 as xn } from "./global-date-filter-utils-Cc5tqkoW.js";
12
+ import { r as Sn } from "./pivot-result-identity-CrQ54Xbj.js";
13
+ import { g as Mn } from "./_commonjsHelpers-DimLPMtv.js";
14
+ import { e as Dn, d as Tn } from "./raw-temporal-presentation-DdEpgPRB.js";
15
+ import "./index-dIV-Gdsb.js";
17
16
  import "./index-CuHybtft.js";
18
- import { i as Pn } from "./source-entity-resolution-CGymm5td.js";
19
- import { R as On } from "./matrix-analytical-definition-DPVGg1mU.js";
20
- import { r as Nt } from "./applied-constraints-DU-wndZ7.js";
21
- const Ga = 15, An = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, Nn = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, _n = /\bwhere\b/i;
22
- function En(e) {
23
- return e != null && e.trim() ? An.test(e) || Nn.test(e) : !1;
24
- }
25
- function Wa(e) {
26
- return !(e != null && e.trim()) || En(e) ? null : _n.test(e) ? {
17
+ import { i as wn } from "./source-entity-resolution-DXW1HpKf.js";
18
+ import { R as Pn } from "./matrix-analytical-definition-4GTUDheD.js";
19
+ import { r as Ot } from "./applied-constraints-DU-wndZ7.js";
20
+ const Ha = 15, On = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, An = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, _n = /\bwhere\b/i;
21
+ function Nn(e) {
22
+ return e != null && e.trim() ? On.test(e) || An.test(e) : !1;
23
+ }
24
+ function Ua(e) {
25
+ return !(e != null && e.trim()) || Nn(e) ? null : _n.test(e) ? {
27
26
  helper: "{{ filters | and }}",
28
27
  description: "For queries with an existing WHERE clause."
29
28
  } : {
@@ -31,60 +30,60 @@ function Wa(e) {
31
30
  description: "For queries without a WHERE clause."
32
31
  };
33
32
  }
34
- const nt = [10, 20, 50, 100, 500, 1e3], Rn = 50;
35
- function Vn(e) {
36
- return e && e > 0 ? e : Rn;
33
+ const tt = [10, 20, 50, 100, 500, 1e3], En = 50;
34
+ function Rn(e) {
35
+ return e && e > 0 ? e : En;
37
36
  }
38
- function Qa(e) {
39
- const t = Vn(e), i = [...nt];
40
- return nt.includes(
37
+ function Ga(e) {
38
+ const t = Rn(e), i = [...tt];
39
+ return tt.includes(
41
40
  t
42
41
  ) || (i.push(t), i.sort((n, r) => n - r)), i;
43
42
  }
44
- function Ya(e) {
43
+ function Wa(e) {
45
44
  var t, i;
46
- return !!((e.type === "table" || e.type === "detailTable") && e.sql && !Ft(e.config) && !((i = (t = e.preferences) == null ? void 0 : t.tablePrefs) != null && i.forceClientPagination));
45
+ return !!((e.type === "table" || e.type === "detailTable") && e.sql && !bt(e.config) && !((i = (t = e.preferences) == null ? void 0 : t.tablePrefs) != null && i.forceClientPagination));
47
46
  }
48
- function kn(e, t) {
47
+ function Vn(e, t) {
49
48
  var n, r, a, o;
50
49
  if (t === "table-print")
51
50
  return "disabled";
52
51
  if ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && r.forceClientPagination)
53
52
  return "client";
54
- const i = Ft(e.config);
55
- return e.sql && !i ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : i && li(e) ? "server" : "client";
53
+ const i = bt(e.config);
54
+ return e.sql && !i ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : i && oi(e) ? "server" : "client";
56
55
  }
57
- const _t = Object.freeze({}), Ja = {
56
+ const At = Object.freeze({}), Qa = {
58
57
  access: "session-only",
59
58
  printMode: !1,
60
59
  baseline: null,
61
60
  applied: null,
62
61
  appliedBookmark: null,
63
- tableSettings: _t,
62
+ tableSettings: At,
64
63
  notices: [],
65
64
  isFavorite: !1,
66
65
  fetchedAt: 0
67
66
  };
68
- function Xa(e) {
67
+ function Ya(e) {
69
68
  return !e.viewer.printMode && e.viewer.access !== "session-only" && !!e.viewer.baseline && !!e.viewerStateClient && !e.isDashboardEditing;
70
69
  }
71
- function Bn(e) {
72
- return e.isDashboardEditing ? _t : e.viewer.tableSettings;
70
+ function kn(e) {
71
+ return e.isDashboardEditing ? At : e.viewer.tableSettings;
73
72
  }
74
- function Kn(e, t) {
75
- return Bn(e)[t];
73
+ function Bn(e, t) {
74
+ return kn(e)[t];
76
75
  }
77
- function Za(e, t, i) {
78
- if (!(i.isEditorPreview || e.isDashboardEditing) && Gi(e.dashboard, t))
79
- return { settings: Kn(e, t) };
76
+ function Ja(e, t, i) {
77
+ if (!(i.isEditorPreview || e.isDashboardEditing) && Hi(e.dashboard, t))
78
+ return { settings: Bn(e, t) };
80
79
  }
81
- function Ln(e) {
80
+ function Kn(e) {
82
81
  var t;
83
- return ci({
82
+ return si({
84
83
  card: e.card,
85
- paginationMode: kn(e.card) === "server" ? "server" : "client",
84
+ paginationMode: Vn(e.card) === "server" ? "server" : "client",
86
85
  result: {
87
- keys: e.keys ?? ui(e.records),
86
+ keys: e.keys ?? li(e.records),
88
87
  rows: e.records,
89
88
  columns: e.resultColumns,
90
89
  columnKeyMap: e.columnKeyMap,
@@ -94,11 +93,7 @@ function Ln(e) {
94
93
  projection: "export"
95
94
  });
96
95
  }
97
- const eo = (e) => {
98
- e = e.replace("#", "");
99
- const t = Number.parseInt(e.substr(0, 2), 16), i = Number.parseInt(e.substr(2, 2), 16), n = Number.parseInt(e.substr(4, 2), 16);
100
- return (0.299 * t + 0.587 * i + 0.114 * n) / 255 > 0.5 ? "#000000" : "#ffffff";
101
- }, qn = () => ({
96
+ const Ln = () => ({
102
97
  urlTemplate: "{value}",
103
98
  // Default: use cell value as-is
104
99
  labelType: "value",
@@ -107,7 +102,7 @@ const eo = (e) => {
107
102
  labelColumn: "",
108
103
  openInNewTab: !0
109
104
  // Default: open in new tab (current behavior)
110
- }), Ee = () => ({
105
+ }), Oe = () => ({
111
106
  type: "none",
112
107
  inheritMetricFormat: !0,
113
108
  textAlign: "left",
@@ -142,13 +137,13 @@ const eo = (e) => {
142
137
  sourceTimezone: "auto"
143
138
  // Default to auto (use explicit timezone if present, otherwise assume UTC)
144
139
  },
145
- linkFormat: qn(),
140
+ linkFormat: Ln(),
146
141
  colorRanges: []
147
142
  });
148
- function to(e, t, i, n) {
143
+ function Xa(e, t, i, n) {
149
144
  return t && t !== "auto" ? t : i;
150
145
  }
151
- const io = (e) => !e || e === "auto" ? "local time" : {
146
+ const Za = (e) => !e || e === "auto" ? "local time" : {
152
147
  "America/New_York": "Eastern Time",
153
148
  "America/Chicago": "Central Time",
154
149
  "America/Denver": "Mountain Time",
@@ -159,11 +154,11 @@ const io = (e) => !e || e === "auto" ? "local time" : {
159
154
  "Asia/Shanghai": "China Time",
160
155
  UTC: "UTC"
161
156
  }[e] || e;
162
- function $n(e) {
163
- const t = G(e == null ? void 0 : e.format);
164
- return !!(t && vt(t));
157
+ function qn(e) {
158
+ const t = W(e == null ? void 0 : e.format);
159
+ return !!(t && yt(t));
165
160
  }
166
- function Me(e, t) {
161
+ function $n(e, t) {
167
162
  var o, s;
168
163
  if (!(e != null && e.config) || e.type === "matrixTable" || (o = e.sql) != null && o.trim() || (s = e.python) != null && s.trim())
169
164
  return;
@@ -201,16 +196,16 @@ function Me(e, t) {
201
196
  t.metricAlias,
202
197
  ...t.columnIds || []
203
198
  ].filter((f) => f !== void 0), c = n.map((f) => {
204
- var d, h;
199
+ var d, g;
205
200
  return {
206
201
  ...f,
207
202
  bindings: [
208
- Mn(
203
+ Sn(
209
204
  t.columnKeyMap,
210
205
  f.field.id,
211
206
  f.role
212
207
  ),
213
- f.role === "metric" && f.field.alias ? (h = (d = t.columnKeyMap) == null ? void 0 : d.byMetricAlias) == null ? void 0 : h[f.field.alias] : void 0
208
+ f.role === "metric" && f.field.alias ? (g = (d = t.columnKeyMap) == null ? void 0 : d.byMetricAlias) == null ? void 0 : g[f.field.alias] : void 0
214
209
  ]
215
210
  };
216
211
  }), u = c.filter(
@@ -243,46 +238,15 @@ function Me(e, t) {
243
238
  )
244
239
  );
245
240
  }
246
- function zn(e, t, i) {
247
- return Me(e, {
248
- fieldId: t.id,
249
- fieldRole: "groupby"
250
- }) ?? Me(
251
- e,
252
- i ? {
253
- columnIds: [t.alias, t.name, t.id].filter(
254
- (n) => !!n
255
- ),
256
- columnKeyMap: i,
257
- fieldRole: "groupby"
258
- } : { fieldId: t.id, fieldRole: "groupby" }
259
- );
260
- }
261
- function no(e, t, i) {
262
- return e.map((n) => {
263
- const r = zn(
264
- t,
265
- n,
266
- i
267
- );
268
- if (!r) return n;
269
- const { format: a, ...o } = n;
270
- return {
271
- ...o,
272
- ...r.label ? { label: r.label } : {},
273
- ...r.format !== void 0 ? { format: r.format } : {}
274
- };
275
- });
276
- }
277
- function Et(e, t) {
241
+ function _t(e, t) {
278
242
  const i = typeof e.decimalPlaces == "number", n = typeof e.minimumFractionDigits == "number" ? e.minimumFractionDigits : i ? e.decimalPlaces : t.min, r = typeof e.maximumFractionDigits == "number" ? e.maximumFractionDigits : i ? e.decimalPlaces : t.max;
279
243
  return {
280
244
  minimumFractionDigits: n,
281
245
  maximumFractionDigits: Math.max(n, r)
282
246
  };
283
247
  }
284
- function de(e, t) {
285
- const i = Et(e, t), n = typeof e.suffix == "string" && e.suffix.length > 0;
248
+ function le(e, t) {
249
+ const i = _t(e, t), n = typeof e.suffix == "string" && e.suffix.length > 0;
286
250
  return {
287
251
  style: "decimal",
288
252
  locale: e.locale,
@@ -299,42 +263,42 @@ function de(e, t) {
299
263
  percentValueMode: e.percentValueMode
300
264
  };
301
265
  }
302
- function Rt(e, t = "auto", i = {}) {
303
- switch (t === "auto" && (t = Wn(e, i)), t) {
266
+ function Nt(e, t = "auto", i = {}) {
267
+ switch (t === "auto" && (t = Gn(e, i)), t) {
304
268
  case "number":
305
- return Vt(e, i);
269
+ return Et(e, i);
306
270
  case "currency":
307
- return kt(e, i);
271
+ return Rt(e, i);
308
272
  case "percent":
309
- return jn(e, i);
273
+ return zn(e, i);
310
274
  case "date":
311
- return Un(e, i);
275
+ return jn(e, i);
312
276
  case "scientific":
313
277
  return Hn(e, i);
314
278
  case "duration":
315
- return Gn(e, i);
279
+ return Un(e, i);
316
280
  default:
317
281
  return String(e);
318
282
  }
319
283
  }
320
- function Vt(e, t = {}) {
321
- return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${xe(
284
+ function Et(e, t = {}) {
285
+ return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${Fe(
322
286
  Math.abs(e),
323
- de(t, {
287
+ le(t, {
324
288
  min: 0,
325
289
  max: 0
326
290
  })
327
- )}` : xe(
291
+ )}` : Fe(
328
292
  e,
329
- de(t, {
293
+ le(t, {
330
294
  min: 0,
331
295
  max: 0
332
296
  })
333
297
  );
334
298
  }
335
- function kt(e, t = {}) {
336
- return $i(e, {
337
- ...de(t, {
299
+ function Rt(e, t = {}) {
300
+ return Ki(e, {
301
+ ...le(t, {
338
302
  min: 2,
339
303
  max: 2
340
304
  }),
@@ -342,9 +306,9 @@ function kt(e, t = {}) {
342
306
  currency: t.currency || "USD"
343
307
  });
344
308
  }
345
- function jn(e, t = {}) {
346
- const i = Et(t, { min: 1, max: 1 }), r = typeof t.multiplyBy == "number" && Number.isFinite(t.multiplyBy) ? t.multiplyBy : t.percentValueMode === "whole" ? 1 : 100, a = e * r;
347
- return xe(a, {
309
+ function zn(e, t = {}) {
310
+ const i = _t(t, { min: 1, max: 1 }), r = typeof t.multiplyBy == "number" && Number.isFinite(t.multiplyBy) ? t.multiplyBy : t.percentValueMode === "whole" ? 1 : 100, a = e * r;
311
+ return Fe(a, {
348
312
  locale: t.locale,
349
313
  minimumFractionDigits: i.minimumFractionDigits,
350
314
  maximumFractionDigits: i.maximumFractionDigits,
@@ -355,7 +319,7 @@ function jn(e, t = {}) {
355
319
  useSuffix: !1
356
320
  });
357
321
  }
358
- function Un(e, t = {}) {
322
+ function jn(e, t = {}) {
359
323
  const { locale: i = "en-US" } = t;
360
324
  try {
361
325
  const n = new Date(e);
@@ -367,13 +331,13 @@ function Un(e, t = {}) {
367
331
  }
368
332
  }
369
333
  function Hn(e, t = {}) {
370
- return qi(
334
+ return Bi(
371
335
  e,
372
- de(t, { min: 2, max: 2 })
336
+ le(t, { min: 2, max: 2 })
373
337
  );
374
338
  }
375
- function Gn(e, t = {}) {
376
- return Li(e, {
339
+ function Un(e, t = {}) {
340
+ return ki(e, {
377
341
  inputUnit: t.durationInputUnit,
378
342
  outputStyle: t.durationDisplayStyle,
379
343
  largestUnit: t.durationLargestUnit,
@@ -384,13 +348,13 @@ function Gn(e, t = {}) {
384
348
  negativeInParentheses: t.negativeInParentheses
385
349
  });
386
350
  }
387
- function Wn(e, t) {
351
+ function Gn(e, t) {
388
352
  return t.currency ? "currency" : typeof e == "string" && !isNaN(Date.parse(e)) ? "date" : "number";
389
353
  }
390
- function ro(e, t = {}) {
391
- return (i) => Rt(i, e, t);
354
+ function eo(e, t = {}) {
355
+ return (i) => Nt(i, e, t);
392
356
  }
393
- function Qn({
357
+ function Wn({
394
358
  number: e,
395
359
  decimalPlaces: t = 0,
396
360
  useSuffix: i = !1,
@@ -399,7 +363,7 @@ function Qn({
399
363
  locale: a = "en-US"
400
364
  }) {
401
365
  if (r) {
402
- const o = kt(e, {
366
+ const o = Rt(e, {
403
367
  currency: r,
404
368
  decimalPlaces: t,
405
369
  locale: a,
@@ -407,14 +371,14 @@ function Qn({
407
371
  });
408
372
  return i && n ? `${o}${n}` : o;
409
373
  }
410
- return Vt(e, {
374
+ return Et(e, {
411
375
  decimalPlaces: t,
412
376
  useSuffix: i && !n,
413
377
  suffix: n,
414
378
  locale: a
415
379
  });
416
380
  }
417
- var Yn = function e(t, i) {
381
+ var Qn = function e(t, i) {
418
382
  if (t === i) return !0;
419
383
  if (t && i && typeof t == "object" && typeof i == "object") {
420
384
  if (t.constructor !== i.constructor) return !1;
@@ -440,8 +404,8 @@ var Yn = function e(t, i) {
440
404
  }
441
405
  return t !== t && i !== i;
442
406
  };
443
- const fe = /* @__PURE__ */ Dn(Yn);
444
- function Jn(e) {
407
+ const ce = /* @__PURE__ */ Mn(Qn);
408
+ function Yn(e) {
445
409
  if (typeof e == "number")
446
410
  return Number.isFinite(e);
447
411
  if (typeof e != "string")
@@ -449,7 +413,7 @@ function Jn(e) {
449
413
  const t = e.trim().replace(/,/g, "");
450
414
  return t !== "" && Number.isFinite(Number(t));
451
415
  }
452
- function Xn(e) {
416
+ function Jn(e) {
453
417
  if (!(e != null && e.length))
454
418
  return [];
455
419
  const t = /* @__PURE__ */ new Set();
@@ -457,33 +421,33 @@ function Xn(e) {
457
421
  Object.keys(i).forEach((n) => t.add(n));
458
422
  }), [...t];
459
423
  }
460
- function Zn(e) {
461
- return Xn(e).filter(
462
- (i) => e == null ? void 0 : e.some((n) => Jn(n[i]))
424
+ function Xn(e) {
425
+ return Jn(e).filter(
426
+ (i) => e == null ? void 0 : e.some((n) => Yn(n[i]))
463
427
  );
464
428
  }
465
- function Re(e, t) {
429
+ function Ae(e, t) {
466
430
  var i;
467
431
  if (t.id)
468
432
  return (i = e.sql) != null && i.trim() ? { kind: "column", columnKey: t.id } : { kind: "metric", metricId: t.id };
469
433
  }
470
- function Bt(e) {
434
+ function Vt(e) {
471
435
  const t = e.context.preferences;
472
436
  if (!t)
473
437
  return e.authoredFormat;
474
- const i = Re(e.card, e.metric);
438
+ const i = Ae(e.card, e.metric);
475
439
  return _(
476
440
  e.authoredFormat,
477
441
  t,
478
442
  i ? e.context.resolveBoundCurrency(i) : void 0
479
443
  );
480
444
  }
481
- function er(e) {
445
+ function Zn(e) {
482
446
  var a, o, s;
483
- const t = (s = (o = (a = e.card.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : o.columnSettingsMap) == null ? void 0 : s[e.columnKey], i = (t == null ? void 0 : t.type) === "number" ? di(
447
+ const t = (s = (o = (a = e.card.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : o.columnSettingsMap) == null ? void 0 : s[e.columnKey], i = (t == null ? void 0 : t.type) === "number" ? ci(
484
448
  { dataType: "number", format: void 0 },
485
449
  t
486
- ) : void 0, n = i == null ? void 0 : i.authoredFormat, r = k(n) ? Bt({
450
+ ) : void 0, n = i == null ? void 0 : i.authoredFormat, r = R(n) ? Vt({
487
451
  card: e.card,
488
452
  metric: {
489
453
  id: e.columnKey
@@ -501,10 +465,10 @@ function er(e) {
501
465
  format: r
502
466
  };
503
467
  }
504
- function ao(e) {
468
+ function to(e) {
505
469
  var r, a;
506
470
  const t = new Set(
507
- Zn(e.records)
471
+ Xn(e.records)
508
472
  ), i = new Set(
509
473
  e.renderedMetricKeys || e.resultKeys
510
474
  ), n = ((a = (r = e.card.preferences) == null ? void 0 : r.tablePrefs) == null ? void 0 : a.columnSettingsMap) || {};
@@ -515,29 +479,29 @@ function ao(e) {
515
479
  }
516
480
  );
517
481
  }
518
- function oo(e) {
482
+ function io(e) {
519
483
  var a, o;
520
484
  const { card: t, context: i } = e;
521
- if (!(i != null && i.preferences) || !Ct(t.type))
485
+ if (!(i != null && i.preferences) || !vt(t.type))
522
486
  return t;
523
487
  const n = i.preferences, r = (a = t.sql) != null && a.trim() ? e.resultMetricKeys.map(
524
- (s) => er({
488
+ (s) => Zn({
525
489
  card: t,
526
490
  columnKey: s,
527
491
  context: i
528
492
  })
529
493
  ) : (((o = t.config) == null ? void 0 : o.metricColumns) || []).map((s) => {
530
- const l = mt(t, s), c = l.authoredFormat;
531
- if (!k(c))
494
+ const l = dt(t, s), c = l.authoredFormat;
495
+ if (!R(c))
532
496
  return s;
533
- const u = Re(t, s), f = u ? i.resolveBoundCurrency(u) : void 0;
497
+ const u = Ae(t, s), f = u ? i.resolveBoundCurrency(u) : void 0;
534
498
  return l.source === "inferred" && !f ? s : {
535
499
  ...s,
536
500
  format: l.source === "inferred" ? _(
537
501
  c,
538
502
  n,
539
503
  f
540
- ) : Bt({
504
+ ) : Vt({
541
505
  card: t,
542
506
  metric: s,
543
507
  context: i,
@@ -553,16 +517,16 @@ function oo(e) {
553
517
  }
554
518
  };
555
519
  }
556
- function he(e) {
520
+ function fe(e) {
557
521
  var l;
558
522
  const { card: t, context: i, formatOptions: n } = e, r = i == null ? void 0 : i.preferences;
559
- if (!t || !r || !Ct(t.type))
523
+ if (!t || !r || !vt(t.type))
560
524
  return n;
561
525
  if (!n) {
562
526
  const c = e.metrics.filter(
563
527
  (f) => !!f
564
528
  ), u = c.some(
565
- (f) => k(f.format)
529
+ (f) => R(f.format)
566
530
  );
567
531
  return c.length < 2 || !u ? n : K(
568
532
  _({ type: "number" }, r),
@@ -573,7 +537,7 @@ function he(e) {
573
537
  const c = e.metrics.filter(
574
538
  (f) => !!f
575
539
  ), u = c.filter(
576
- (f) => k(f.format)
540
+ (f) => R(f.format)
577
541
  );
578
542
  if (u.length === 0)
579
543
  return n;
@@ -583,15 +547,15 @@ function he(e) {
583
547
  { preserveOmittedProperties: !0 }
584
548
  );
585
549
  }
586
- const a = pt(n, {
550
+ const a = ft(n, {
587
551
  preserveOmittedProperties: !0
588
552
  });
589
- if (!k(a))
553
+ if (!R(a))
590
554
  return n;
591
555
  const o = e.metrics.flatMap((c) => {
592
556
  if (!c)
593
557
  return [];
594
- const u = Re(t, c);
558
+ const u = Ae(t, c);
595
559
  return [
596
560
  _(
597
561
  a,
@@ -606,7 +570,7 @@ function he(e) {
606
570
  { preserveOmittedProperties: !0 }
607
571
  );
608
572
  const [s] = o;
609
- if (o.some((c) => !fe(c, s))) {
573
+ if (o.some((c) => !ce(c, s))) {
610
574
  const c = _(
611
575
  {
612
576
  ...a,
@@ -623,84 +587,84 @@ function he(e) {
623
587
  preserveOmittedProperties: !0
624
588
  });
625
589
  }
626
- const tr = /* @__PURE__ */ new Set([
590
+ const er = /* @__PURE__ */ new Set([
627
591
  "horizontalBar",
628
592
  "tornado",
629
593
  "pyramid",
630
594
  "range"
631
- ]), ir = /* @__PURE__ */ new Set([
595
+ ]), tr = /* @__PURE__ */ new Set([
632
596
  "tornado",
633
597
  "pyramid",
634
598
  "range"
635
- ]), nr = /* @__PURE__ */ new Set([
599
+ ]), ir = /* @__PURE__ */ new Set([
636
600
  "tornado",
637
601
  "pyramid",
638
602
  "range"
639
603
  ]);
640
- function rr(e) {
604
+ function nr(e) {
641
605
  const { chartType: t, resultKeys: i, config: n } = e, r = 1 + (n != null && n.enableGrouping && (n.groupKey || i[1]) ? 1 : 0), a = i.slice(r), o = (n == null ? void 0 : n.xMetricKey) ?? a[0], s = (n == null ? void 0 : n.yMetricKey) ?? a[1] ?? a[0], l = t === "bubble" ? (n == null ? void 0 : n.radiusMetricKey) ?? a[2] ?? a[1] ?? a[0] : void 0, c = new Set(i);
642
606
  return [o, s, l].filter((u) => !!u).filter((u) => c.has(u));
643
607
  }
644
- function so(e) {
608
+ function no(e) {
645
609
  const { chartType: t, resultKeys: i, preferences: n } = e;
646
610
  return t === "scatter" || t === "bubble" ? [
647
611
  ...new Set(
648
- rr({
612
+ nr({
649
613
  chartType: t,
650
614
  resultKeys: i,
651
615
  config: n == null ? void 0 : n.bubbleScatterConfig
652
616
  })
653
617
  )
654
- ] : nr.has(t || "") ? i.slice(2) : i.length === 1 ? [i[0]] : i.slice(1);
618
+ ] : ir.has(t || "") ? i.slice(2) : i.length === 1 ? [i[0]] : i.slice(1);
655
619
  }
656
- function ae(e, t) {
620
+ function te(e, t) {
657
621
  var i;
658
- return ((i = t == null ? void 0 : t.chartOptions) == null ? void 0 : i.indexAxis) === "y" || tr.has(e || "") ? "x" : "y";
622
+ return ((i = t == null ? void 0 : t.chartOptions) == null ? void 0 : i.indexAxis) === "y" || er.has(e || "") ? "x" : "y";
659
623
  }
660
- function lo(e, t) {
661
- return ae(e, t) === "x";
624
+ function ro(e, t) {
625
+ return te(e, t) === "x";
662
626
  }
663
- function ar(e, t) {
664
- return ae(e, t) === "y" ? t == null ? void 0 : t.yAxisConfig : (t == null ? void 0 : t.xAxisConfig) || (ir.has(e || "") ? t == null ? void 0 : t.yAxisConfig : void 0);
627
+ function rr(e, t) {
628
+ return te(e, t) === "y" ? t == null ? void 0 : t.yAxisConfig : (t == null ? void 0 : t.xAxisConfig) || (tr.has(e || "") ? t == null ? void 0 : t.yAxisConfig : void 0);
665
629
  }
666
- function ie(e) {
630
+ function X(e) {
667
631
  return e ? Object.entries(e).some(([t, i]) => i == null || i === "" ? !1 : t === "type" ? i !== "auto" : !0) : !1;
668
632
  }
669
- function Kt(e) {
633
+ function kt(e) {
670
634
  if (e)
671
635
  return e.alias || e.label || e.name;
672
636
  }
673
- function De(e, t) {
637
+ function Ie(e, t) {
674
638
  var n;
675
639
  return (((n = e == null ? void 0 : e.config) == null ? void 0 : n.metricColumns) || []).find((r) => {
676
- const a = Kt(r);
640
+ const a = kt(r);
677
641
  return t.metricId && r.id === t.metricId || t.metricAlias && a === t.metricAlias || t.metricAlias && r.alias === t.metricAlias || t.columnId && a === t.columnId || t.columnId && r.alias === t.columnId || t.columnId && r.label === t.columnId || t.columnId && r.name === t.columnId;
678
642
  });
679
643
  }
680
- function oe(e, t) {
644
+ function ie(e, t) {
681
645
  var n, r;
682
- const i = Me(e, t);
683
- if (!(i && ((r = (n = e == null ? void 0 : e.config) == null ? void 0 : n.groupByColumns) != null && r.includes(i)) && !$n(i)))
646
+ const i = $n(e, t);
647
+ if (!(i && ((r = (n = e == null ? void 0 : e.config) == null ? void 0 : n.groupByColumns) != null && r.includes(i)) && !qn(i)))
684
648
  return i;
685
649
  }
686
- function or(e) {
687
- return !!e && !(e != null && e.format) && gt(e == null ? void 0 : e.dataType) === "number";
650
+ function ar(e) {
651
+ return !!e && !(e != null && e.format) && ht(e == null ? void 0 : e.dataType) === "number";
688
652
  }
689
- const sr = {
653
+ const or = {
690
654
  style: "decimal",
691
655
  showDataBar: !1,
692
656
  dataBarColor: "#3b82f6"
693
657
  };
694
- function Lt(e) {
658
+ function Bt(e) {
695
659
  if (!e)
696
660
  return;
697
- const t = Ee();
661
+ const t = Oe();
698
662
  return {
699
663
  ...t,
700
664
  ...e,
701
665
  inheritMetricFormat: e.numberFormat ? e.inheritMetricFormat : e.inheritMetricFormat ?? t.inheritMetricFormat,
702
666
  numberFormat: {
703
- ...sr,
667
+ ...or,
704
668
  ...e.numberFormat
705
669
  },
706
670
  dateFormat: {
@@ -713,21 +677,21 @@ function Lt(e) {
713
677
  }
714
678
  };
715
679
  }
716
- function co(e) {
680
+ function ao(e) {
717
681
  return Object.fromEntries(
718
682
  Object.entries(e || {}).map(([t, i]) => [
719
683
  t,
720
- Lt(i)
684
+ Bt(i)
721
685
  ])
722
686
  );
723
687
  }
724
- function le(e) {
688
+ function ae(e) {
725
689
  return !!(e && typeof e == "object" && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype);
726
690
  }
727
- function qt(e, t, i) {
728
- if (!le(i))
691
+ function Kt(e, t, i) {
692
+ if (!ae(i))
729
693
  return i;
730
- const n = le(e) ? e : {}, r = le(t) ? t : {}, a = {};
694
+ const n = ae(e) ? e : {}, r = ae(t) ? t : {}, a = {};
731
695
  for (const o of Object.keys(i)) {
732
696
  const s = i[o];
733
697
  if (s === void 0)
@@ -736,23 +700,23 @@ function qt(e, t, i) {
736
700
  n,
737
701
  o
738
702
  ), c = r[o];
739
- if (l && fe(s, c)) {
703
+ if (l && ce(s, c)) {
740
704
  a[o] = n[o];
741
705
  continue;
742
706
  }
743
- if (!l && fe(s, c))
707
+ if (!l && ce(s, c))
744
708
  continue;
745
- const u = qt(
709
+ const u = Kt(
746
710
  n[o],
747
711
  c,
748
712
  s
749
713
  );
750
- le(u) && Object.keys(u).length === 0 && !l || (a[o] = u);
714
+ ae(u) && Object.keys(u).length === 0 && !l || (a[o] = u);
751
715
  }
752
716
  return a;
753
717
  }
754
- function lr(e) {
755
- let t = qt(
718
+ function sr(e) {
719
+ let t = Kt(
756
720
  e.persisted,
757
721
  e.baseline,
758
722
  e.next
@@ -760,11 +724,11 @@ function lr(e) {
760
724
  if (e.enforceDeclaredSqlTemporalFormat && e.next.type === "date" && !e.next.dateFormat.useRelativeTime && e.next.dateFormat.useCustomFormat) {
761
725
  const i = e.next.dateFormat.customFormat;
762
726
  if (!(i != null && i.trim()))
763
- throw new zi(
727
+ throw new Li(
764
728
  "invalid_raw_temporal_format",
765
729
  "Custom table date formatting requires a non-empty pattern."
766
730
  );
767
- ji({
731
+ qi({
768
732
  dialect: "date_fns",
769
733
  pattern: i,
770
734
  valueKind: e.rawTemporalValueKind
@@ -777,7 +741,7 @@ function lr(e) {
777
741
  }
778
742
  };
779
743
  }
780
- return e.next.type === "number" && !fe(e.next.numberFormat, e.baseline.numberFormat) && t.numberFormat ? {
744
+ return e.next.type === "number" && !ce(e.next.numberFormat, e.baseline.numberFormat) && t.numberFormat ? {
781
745
  ...t,
782
746
  type: "number",
783
747
  inheritMetricFormat: e.next.inheritMetricFormat ?? !1
@@ -790,10 +754,10 @@ function lr(e) {
790
754
  type: "date"
791
755
  } : t;
792
756
  }
793
- function uo(e) {
794
- return e.reset ? cr(e.persisted, e.columnId) : {
757
+ function oo(e) {
758
+ return e.reset ? lr(e.persisted, e.columnId) : {
795
759
  ...e.persisted,
796
- [e.columnId]: lr({
760
+ [e.columnId]: sr({
797
761
  persisted: e.persisted[e.columnId],
798
762
  baseline: e.baseline,
799
763
  next: e.next,
@@ -803,14 +767,14 @@ function uo(e) {
803
767
  })
804
768
  };
805
769
  }
806
- function cr(e, t) {
770
+ function lr(e, t) {
807
771
  if (!(t in e))
808
772
  return e;
809
773
  const i = { ...e };
810
774
  return delete i[t], i;
811
775
  }
812
- function ur(e, t) {
813
- const i = e || Ee(), n = !t;
776
+ function cr(e, t) {
777
+ const i = e || Oe(), n = !t;
814
778
  return {
815
779
  ...i,
816
780
  type: "number",
@@ -828,25 +792,25 @@ function ur(e, t) {
828
792
  }
829
793
  };
830
794
  }
831
- function Ce(e) {
795
+ function be(e) {
832
796
  if (e)
833
797
  return e.trim().toLowerCase();
834
798
  }
835
- const $t = /\s*(?:\((?:previous|last year|start|target|comparison)\)|δ)\s*$/i;
836
- function dr(e) {
799
+ const Lt = /\s*(?:\((?:previous|last year|start|target|comparison)\)|δ)\s*$/i;
800
+ function ur(e) {
837
801
  const t = e == null ? void 0 : e.trim();
838
- return t ? t.replace($t, "").trim() || t : void 0;
802
+ return t ? t.replace(Lt, "").trim() || t : void 0;
839
803
  }
840
- function fr(e) {
804
+ function dr(e) {
841
805
  const t = e == null ? void 0 : e.trim();
842
- return t ? $t.test(t) : !1;
806
+ return t ? Lt.test(t) : !1;
843
807
  }
844
- function mr(e, t) {
808
+ function fr(e, t) {
845
809
  return t.metricAlias ? e.find(
846
- (i) => ki(i) === t.metricAlias
810
+ (i) => Ri(i) === t.metricAlias
847
811
  ) : t.metricId ? e.find((i) => i.id === t.metricId) : void 0;
848
812
  }
849
- function pr(e) {
813
+ function mr(e) {
850
814
  var b;
851
815
  const {
852
816
  card: t,
@@ -857,26 +821,26 @@ function pr(e) {
857
821
  metricKey: o
858
822
  } = e, s = ((b = t == null ? void 0 : t.config) == null ? void 0 : b.metricColumns) || [];
859
823
  if (n || i)
860
- return mr(s, {
824
+ return fr(s, {
861
825
  metricAlias: n,
862
826
  metricId: i
863
827
  });
864
828
  const l = [o, a], c = l.some(
865
- (m) => fr(m)
829
+ (m) => dr(m)
866
830
  ), u = l.filter(
867
831
  (m) => !!m
868
832
  );
869
833
  for (const m of u) {
870
- const y = De(t, {
834
+ const y = Ie(t, {
871
835
  columnId: m,
872
836
  metricAlias: m
873
837
  });
874
838
  if (y)
875
839
  return y;
876
840
  }
877
- const f = u.map((m) => Ce(m)).filter((m) => !!m), d = u.map((m) => dr(m)).filter((m) => !!m);
841
+ const f = u.map((m) => be(m)).filter((m) => !!m), d = u.map((m) => ur(m)).filter((m) => !!m);
878
842
  for (const m of d) {
879
- const y = De(t, {
843
+ const y = Ie(t, {
880
844
  columnId: m,
881
845
  metricAlias: m
882
846
  });
@@ -887,9 +851,9 @@ function pr(e) {
887
851
  return s[0];
888
852
  if (!c && typeof r == "number" && r >= 0 && r < s.length)
889
853
  return s[r];
890
- const h = d.map((m) => Ce(m)).filter((m) => !!m), v = [
854
+ const g = d.map((m) => be(m)).filter((m) => !!m), v = [
891
855
  ...f,
892
- ...h
856
+ ...g
893
857
  ];
894
858
  if (v.length !== 0)
895
859
  return s.find((m) => {
@@ -897,59 +861,59 @@ function pr(e) {
897
861
  m.alias,
898
862
  m.label,
899
863
  m.name,
900
- Kt(m)
901
- ].map((C) => Ce(C)).filter((C) => !!C);
864
+ kt(m)
865
+ ].map((C) => be(C)).filter((C) => !!C);
902
866
  return v.some(
903
867
  (C) => y.includes(C)
904
868
  );
905
869
  });
906
870
  }
907
- function hr(e) {
908
- const t = G(e == null ? void 0 : e.format);
871
+ function pr(e) {
872
+ const t = W(e == null ? void 0 : e.format);
909
873
  return K(t);
910
874
  }
911
- function rt(e, t) {
875
+ function it(e, t) {
912
876
  if (t)
913
- return De(e, {
877
+ return Ie(e, {
914
878
  columnId: t,
915
879
  metricAlias: t
916
880
  });
917
881
  }
918
- function at(e) {
919
- const t = pt(e);
882
+ function nt(e) {
883
+ const t = ft(e);
920
884
  if (t)
921
885
  return JSON.stringify(t);
922
886
  }
923
- function yr(e, t) {
924
- const i = at(e), n = at(t);
887
+ function hr(e, t) {
888
+ const i = nt(e), n = nt(t);
925
889
  return !!(i && n && i === n);
926
890
  }
927
891
  function gr(e) {
928
892
  if (e.length === 0)
929
893
  return;
930
894
  const t = e.map(
931
- (o) => hr(o)
895
+ (o) => pr(o)
932
896
  );
933
897
  if (!t.every(
934
- (o) => ie(o)
898
+ (o) => X(o)
935
899
  ))
936
900
  return;
937
901
  const n = t, [r] = n;
938
902
  return n.every(
939
- (o) => yr(r, o)
903
+ (o) => hr(r, o)
940
904
  ) ? r : void 0;
941
905
  }
942
- function br(e) {
906
+ function yr(e) {
943
907
  const t = e.formatMode || e.legacyMode;
944
- return t === "override" ? "override" : t === "inherit" ? "inherit" : e.legacyMode && e.legacyMode !== "auto" && e.legacyMode !== "inherit" && e.legacyMode !== "override" || ie(e.formatOptions) ? "override" : "inherit";
908
+ return t === "override" ? "override" : t === "inherit" ? "inherit" : e.legacyMode && e.legacyMode !== "auto" && e.legacyMode !== "inherit" && e.legacyMode !== "override" || X(e.formatOptions) ? "override" : "inherit";
945
909
  }
946
- function ye(e) {
947
- const t = br({
910
+ function me(e) {
911
+ const t = yr({
948
912
  formatMode: e.formatMode,
949
913
  legacyMode: e.legacyMode,
950
914
  formatOptions: e.overrideFormatOptions
951
915
  });
952
- if (t === "override" && ie(e.overrideFormatOptions))
916
+ if (t === "override" && X(e.overrideFormatOptions))
953
917
  return {
954
918
  formatOptions: e.overrideFormatOptions || void 0,
955
919
  source: "override"
@@ -963,13 +927,13 @@ function ye(e) {
963
927
  const i = gr(
964
928
  e.metrics || []
965
929
  );
966
- if (ie(i))
930
+ if (X(i))
967
931
  return {
968
932
  formatOptions: i,
969
933
  source: "metric"
970
934
  };
971
- const n = Mr(e.preferences);
972
- return ie(n) ? {
935
+ const n = Sr(e.preferences);
936
+ return X(n) ? {
973
937
  formatOptions: n,
974
938
  source: "legacy"
975
939
  } : {
@@ -977,38 +941,38 @@ function ye(e) {
977
941
  source: "auto"
978
942
  };
979
943
  }
980
- function zt(e) {
944
+ function qt(e) {
981
945
  var l, c, u;
982
946
  const { card: t, chartType: i, axis: n, preferences: r } = e, a = ((l = t == null ? void 0 : t.config) == null ? void 0 : l.metricColumns) || [], o = (r == null ? void 0 : r.datasetOptions) || [];
983
947
  if (!a.length)
984
948
  return [];
985
949
  if (i === "combo")
986
950
  return n === "x" ? [] : a.filter((f, d) => {
987
- const h = o.find((b) => b.idx === d);
988
- return ((h == null ? void 0 : h.yAxisId) === "y2" ? "y2" : "y") === n;
951
+ const g = o.find((b) => b.idx === d);
952
+ return ((g == null ? void 0 : g.yAxisId) === "y2" ? "y2" : "y") === n;
989
953
  });
990
954
  if (i === "bubble" || i === "scatter") {
991
955
  if (n === "y2")
992
956
  return [];
993
- const f = rt(
957
+ const f = it(
994
958
  t,
995
959
  (c = r == null ? void 0 : r.bubbleScatterConfig) == null ? void 0 : c.xMetricKey
996
- ) || a[0], d = rt(
960
+ ) || a[0], d = it(
997
961
  t,
998
962
  (u = r == null ? void 0 : r.bubbleScatterConfig) == null ? void 0 : u.yMetricKey
999
963
  ) || a[1] || a[0];
1000
964
  return n === "x" ? f ? [f] : [] : d ? [d] : [];
1001
965
  }
1002
- const s = ae(i, r);
966
+ const s = te(i, r);
1003
967
  return i === "radar" ? n === "y" ? a : [] : n !== s ? [] : a;
1004
968
  }
1005
- function Ve(e) {
1006
- const { card: t, chartType: i, axis: n, preferences: r, axisConfig: a } = e, o = zt({
969
+ function _e(e) {
970
+ const { card: t, chartType: i, axis: n, preferences: r, axisConfig: a } = e, o = qt({
1007
971
  card: t,
1008
972
  chartType: i,
1009
973
  axis: n,
1010
974
  preferences: r
1011
- }), s = ye({
975
+ }), s = me({
1012
976
  formatMode: a == null ? void 0 : a.formatMode,
1013
977
  overrideFormatOptions: a == null ? void 0 : a.formatOptions,
1014
978
  metrics: o,
@@ -1016,7 +980,7 @@ function Ve(e) {
1016
980
  });
1017
981
  return {
1018
982
  ...s,
1019
- formatOptions: he({
983
+ formatOptions: fe({
1020
984
  card: t,
1021
985
  metrics: o,
1022
986
  formatOptions: s.formatOptions,
@@ -1024,7 +988,7 @@ function Ve(e) {
1024
988
  })
1025
989
  };
1026
990
  }
1027
- function jt(e, t) {
991
+ function $t(e, t) {
1028
992
  if (!e && (!t || t === "auto" || t === "none"))
1029
993
  return;
1030
994
  const i = {
@@ -1032,8 +996,8 @@ function jt(e, t) {
1032
996
  };
1033
997
  return t && t !== "auto" && t !== "none" && !i.type && (i.type = t), i;
1034
998
  }
1035
- function vr(e) {
1036
- const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r = ye({
999
+ function br(e) {
1000
+ const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r = me({
1037
1001
  formatMode: n == null ? void 0 : n.formatMode,
1038
1002
  legacyMode: n == null ? void 0 : n.mode,
1039
1003
  overrideFormatOptions: n == null ? void 0 : n.formatOptions,
@@ -1042,7 +1006,7 @@ function vr(e) {
1042
1006
  });
1043
1007
  return {
1044
1008
  ...r,
1045
- formatOptions: he({
1009
+ formatOptions: fe({
1046
1010
  card: e.card,
1047
1011
  metrics: e.metric ? [e.metric] : [],
1048
1012
  formatOptions: r.formatOptions,
@@ -1050,14 +1014,14 @@ function vr(e) {
1050
1014
  })
1051
1015
  };
1052
1016
  }
1053
- function ke(e, t, i) {
1054
- return t === ae(i, e) ? ar(i, e) : t === "x" ? e == null ? void 0 : e.xAxisConfig : t === "y2" ? e == null ? void 0 : e.secondaryYAxisConfig : e == null ? void 0 : e.yAxisConfig;
1017
+ function Ne(e, t, i) {
1018
+ return t === te(i, e) ? rr(i, e) : t === "x" ? e == null ? void 0 : e.xAxisConfig : t === "y2" ? e == null ? void 0 : e.secondaryYAxisConfig : e == null ? void 0 : e.yAxisConfig;
1055
1019
  }
1056
- function Be(e) {
1020
+ function Ee(e) {
1057
1021
  const { chartType: t, preferences: i } = e;
1058
- return t === "bubble" || t === "scatter" ? "y" : ae(t, i);
1022
+ return t === "bubble" || t === "scatter" ? "y" : te(t, i);
1059
1023
  }
1060
- function Ut(e) {
1024
+ function zt(e) {
1061
1025
  switch (e) {
1062
1026
  case "pie":
1063
1027
  case "doughnut":
@@ -1070,8 +1034,8 @@ function Ut(e) {
1070
1034
  return !0;
1071
1035
  }
1072
1036
  }
1073
- function fo(e) {
1074
- const { card: t, chartType: i, preferences: n, metric: r } = e, a = vr({
1037
+ function so(e) {
1038
+ const { card: t, chartType: i, preferences: n, metric: r } = e, a = br({
1075
1039
  card: t,
1076
1040
  preferences: n,
1077
1041
  metric: r,
@@ -1079,29 +1043,29 @@ function fo(e) {
1079
1043
  });
1080
1044
  if (a.source === "override")
1081
1045
  return a;
1082
- const o = e.axis || Be({ chartType: i, preferences: n }), s = Ve({
1046
+ const o = e.axis || Ee({ chartType: i, preferences: n }), s = _e({
1083
1047
  card: t,
1084
1048
  chartType: i,
1085
1049
  axis: o,
1086
1050
  preferences: n,
1087
- axisConfig: ke(n, o, i),
1051
+ axisConfig: Ne(n, o, i),
1088
1052
  numericPresentation: e.numericPresentation
1089
1053
  });
1090
1054
  return s.source === "override" ? s : a;
1091
1055
  }
1092
- function mo(e) {
1093
- const { card: t, chartType: i, preferences: n, dataLabelsConfig: r } = e, a = i || (t == null ? void 0 : t.type), o = Be({
1056
+ function lo(e) {
1057
+ const { card: t, chartType: i, preferences: n, dataLabelsConfig: r } = e, a = i || (t == null ? void 0 : t.type), o = Ee({
1094
1058
  chartType: a,
1095
1059
  preferences: n
1096
- }), s = zt({
1060
+ }), s = qt({
1097
1061
  card: t,
1098
1062
  chartType: a,
1099
1063
  axis: o,
1100
1064
  preferences: n
1101
- }), l = ye({
1065
+ }), l = me({
1102
1066
  formatMode: r == null ? void 0 : r.formatMode,
1103
1067
  legacyMode: r == null ? void 0 : r.format,
1104
- overrideFormatOptions: jt(
1068
+ overrideFormatOptions: $t(
1105
1069
  r == null ? void 0 : r.formatOptions,
1106
1070
  r == null ? void 0 : r.format
1107
1071
  ),
@@ -1109,21 +1073,21 @@ function mo(e) {
1109
1073
  preferences: n
1110
1074
  }), c = {
1111
1075
  ...l,
1112
- formatOptions: he({
1076
+ formatOptions: fe({
1113
1077
  card: t,
1114
1078
  metrics: s,
1115
1079
  formatOptions: l.formatOptions,
1116
1080
  context: e.numericPresentation
1117
1081
  })
1118
1082
  };
1119
- if (c.source === "override" || !Ut(a))
1083
+ if (c.source === "override" || !zt(a))
1120
1084
  return c;
1121
- const u = Ve({
1085
+ const u = _e({
1122
1086
  card: t,
1123
1087
  chartType: a,
1124
1088
  axis: o,
1125
1089
  preferences: n,
1126
- axisConfig: ke(
1090
+ axisConfig: Ne(
1127
1091
  n,
1128
1092
  o,
1129
1093
  a
@@ -1132,11 +1096,11 @@ function mo(e) {
1132
1096
  });
1133
1097
  return u.source === "override" ? u : c;
1134
1098
  }
1135
- function Fr(e) {
1136
- const { preferences: t, dataLabelsConfig: i, metric: n } = e, r = ye({
1099
+ function vr(e) {
1100
+ const { preferences: t, dataLabelsConfig: i, metric: n } = e, r = me({
1137
1101
  formatMode: i == null ? void 0 : i.formatMode,
1138
1102
  legacyMode: i == null ? void 0 : i.format,
1139
- overrideFormatOptions: jt(
1103
+ overrideFormatOptions: $t(
1140
1104
  i == null ? void 0 : i.formatOptions,
1141
1105
  i == null ? void 0 : i.format
1142
1106
  ),
@@ -1145,7 +1109,7 @@ function Fr(e) {
1145
1109
  });
1146
1110
  return {
1147
1111
  ...r,
1148
- formatOptions: he({
1112
+ formatOptions: fe({
1149
1113
  card: e.card,
1150
1114
  metrics: e.metric ? [e.metric] : [],
1151
1115
  formatOptions: r.formatOptions,
@@ -1153,16 +1117,16 @@ function Fr(e) {
1153
1117
  })
1154
1118
  };
1155
1119
  }
1156
- function po(e) {
1120
+ function co(e) {
1157
1121
  var o, s;
1158
- const t = pr({
1122
+ const t = mr({
1159
1123
  card: e.card,
1160
1124
  metricId: e.metricId,
1161
1125
  metricAlias: e.metricAlias,
1162
1126
  datasetIndex: e.datasetIndex,
1163
1127
  datasetLabel: e.datasetLabel,
1164
1128
  metricKey: e.metricKey
1165
- }), i = Fr({
1129
+ }), i = vr({
1166
1130
  card: e.card,
1167
1131
  preferences: e.preferences,
1168
1132
  dataLabelsConfig: e.dataLabelsConfig,
@@ -1172,9 +1136,9 @@ function po(e) {
1172
1136
  if (i.source === "override")
1173
1137
  return i;
1174
1138
  const n = (o = e.card) == null ? void 0 : o.type;
1175
- if (!Ut(n))
1139
+ if (!zt(n))
1176
1140
  return i;
1177
- let r = Be({
1141
+ let r = Ee({
1178
1142
  chartType: n,
1179
1143
  preferences: e.preferences
1180
1144
  });
@@ -1184,12 +1148,12 @@ function po(e) {
1184
1148
  );
1185
1149
  r = (c == null ? void 0 : c.yAxisId) === "y2" ? "y2" : "y";
1186
1150
  }
1187
- const a = Ve({
1151
+ const a = _e({
1188
1152
  card: e.card,
1189
1153
  chartType: n,
1190
1154
  axis: r,
1191
1155
  preferences: e.preferences,
1192
- axisConfig: ke(
1156
+ axisConfig: Ne(
1193
1157
  e.preferences,
1194
1158
  r,
1195
1159
  n
@@ -1198,15 +1162,15 @@ function po(e) {
1198
1162
  });
1199
1163
  return a.source === "override" ? a : i;
1200
1164
  }
1201
- function ho(e) {
1165
+ function uo(e) {
1202
1166
  return (e == null ? void 0 : e.rawValue) === !0;
1203
1167
  }
1204
- function Cr(e) {
1168
+ function Fr(e) {
1205
1169
  const t = e == null ? void 0 : e.numberFormat;
1206
1170
  if (!t)
1207
1171
  return;
1208
1172
  if (t.style === "duration")
1209
- return K(we(t), {
1173
+ return K(Se(t), {
1210
1174
  preserveOmittedProperties: !0
1211
1175
  });
1212
1176
  const i = t.style === "currency" ? "currency" : t.style === "percent" ? "percent" : t.style === "scientific" ? "scientific" : "number", n = t.minimumFractionDigits, r = t.maximumFractionDigits;
@@ -1226,14 +1190,14 @@ function Cr(e) {
1226
1190
  suffix: t.suffix
1227
1191
  };
1228
1192
  }
1229
- function Ir(e, t, i = !1) {
1230
- const n = i ? { preserveOmittedProperties: !0 } : void 0, r = G(e == null ? void 0 : e.format, n), a = ht(
1193
+ function Cr(e, t, i = !1) {
1194
+ const n = i ? { preserveOmittedProperties: !0 } : void 0, r = W(e == null ? void 0 : e.format, n), a = mt(
1231
1195
  r,
1232
1196
  n
1233
1197
  );
1234
1198
  if (!a)
1235
1199
  return;
1236
- const o = t || Ee(), s = i ? {
1200
+ const o = t || Oe(), s = i ? {
1237
1201
  showDataBar: o.numberFormat.showDataBar,
1238
1202
  showHeatmap: o.numberFormat.showHeatmap,
1239
1203
  dataBarColor: o.numberFormat.dataBarColor,
@@ -1256,8 +1220,8 @@ function Ir(e, t, i = !1) {
1256
1220
  }
1257
1221
  };
1258
1222
  }
1259
- function Ht(e) {
1260
- var g, I, R, O;
1223
+ function jt(e) {
1224
+ var T, V, N, O;
1261
1225
  const {
1262
1226
  card: t,
1263
1227
  columnId: i,
@@ -1271,56 +1235,56 @@ function Ht(e) {
1271
1235
  columnKeyMap: u,
1272
1236
  valueFormatPreferences: f,
1273
1237
  boundCurrency: d,
1274
- preserveOmittedProperties: h
1275
- } = e, v = n ?? ((R = (I = (g = t == null ? void 0 : t.preferences) == null ? void 0 : g.tablePrefs) == null ? void 0 : I.columnSettingsMap) == null ? void 0 : R[i]), b = !((O = t == null ? void 0 : t.sql) != null && O.trim()) || fi(v), m = b ? f : null, y = b ? d : void 0, C = mi(
1238
+ preserveOmittedProperties: g
1239
+ } = e, v = n ?? ((N = (V = (T = t == null ? void 0 : t.preferences) == null ? void 0 : T.tablePrefs) == null ? void 0 : V.columnSettingsMap) == null ? void 0 : N[i]), b = !((O = t == null ? void 0 : t.sql) != null && O.trim()) || ui(v), m = b ? f : null, y = b ? d : void 0, C = di(
1276
1240
  v == null ? void 0 : v.numberFormat
1277
- ), D = r ?? Lt(v);
1278
- if (D && D.inheritMetricFormat !== !0)
1279
- return ot(
1280
- D,
1241
+ ), S = r ?? Bt(v);
1242
+ if (S && S.inheritMetricFormat !== !0)
1243
+ return rt(
1244
+ S,
1281
1245
  m,
1282
1246
  y,
1283
1247
  {
1284
1248
  preserveHistoricalPersistedPrecision: C
1285
1249
  }
1286
1250
  );
1287
- const w = oe(t, {
1251
+ const w = ie(t, {
1288
1252
  columnId: i,
1289
1253
  metricId: o,
1290
1254
  metricAlias: s,
1291
1255
  columnKeyMap: u,
1292
1256
  fieldId: l,
1293
1257
  fieldRole: c
1294
- }), S = Ir(
1258
+ }), h = Cr(
1295
1259
  w,
1296
- D || a,
1297
- h ?? !!f
1298
- ), E = !S && m && or(w) ? ur(
1299
- D || a,
1260
+ S || a,
1261
+ g ?? !!f
1262
+ ), F = !h && m && ar(w) ? cr(
1263
+ S || a,
1300
1264
  y
1301
1265
  ) : void 0;
1302
- return ot(
1303
- S || E || D || a,
1266
+ return rt(
1267
+ h || F || S || a,
1304
1268
  m,
1305
1269
  y,
1306
1270
  {
1307
- preserveHistoricalPersistedPrecision: !!(D && C && !S && !E)
1271
+ preserveHistoricalPersistedPrecision: !!(S && C && !h && !F)
1308
1272
  }
1309
1273
  );
1310
1274
  }
1311
- function ot(e, t, i, n) {
1275
+ function rt(e, t, i, n) {
1312
1276
  if (!e || e.type !== "number" || !t)
1313
1277
  return e;
1314
- const r = e.numberFormat, a = r ? n != null && n.preserveHistoricalPersistedPrecision ? pi(r) : we(r, {
1278
+ const r = e.numberFormat, a = r ? n != null && n.preserveHistoricalPersistedPrecision ? fi(r) : Se(r, {
1315
1279
  preserveOmittedProperties: !0
1316
1280
  }) : { type: "number" };
1317
- if (!a || !k(a))
1281
+ if (!a || !R(a))
1318
1282
  return e;
1319
1283
  const o = _(
1320
1284
  a,
1321
1285
  t,
1322
1286
  i
1323
- ), s = ht(o, {
1287
+ ), s = mt(o, {
1324
1288
  preserveOmittedProperties: !0
1325
1289
  });
1326
1290
  return s ? {
@@ -1336,30 +1300,30 @@ function ot(e, t, i, n) {
1336
1300
  }
1337
1301
  } : e;
1338
1302
  }
1339
- function me(e) {
1303
+ function ue(e) {
1340
1304
  if (!e.valueFormatPreferences)
1341
1305
  return;
1342
- const t = Ht(e);
1306
+ const t = jt(e);
1343
1307
  if (!t || t.type !== "number")
1344
1308
  return;
1345
- const i = we(t.numberFormat, {
1309
+ const i = Se(t.numberFormat, {
1346
1310
  preserveOmittedProperties: !0
1347
1311
  });
1348
- if (!(!i || !vt(i)))
1312
+ if (!(!i || !yt(i)))
1349
1313
  return i;
1350
1314
  }
1351
- function xr(e) {
1315
+ function Ir(e) {
1352
1316
  var n, r;
1353
1317
  if (!e.presentation.preferences)
1354
1318
  return;
1355
- const t = oe(e.card, {
1319
+ const t = ie(e.card, {
1356
1320
  columnId: e.columnId,
1357
1321
  metricId: e.metricId,
1358
1322
  metricAlias: e.metricAlias,
1359
1323
  columnKeyMap: e.columnKeyMap
1360
1324
  });
1361
1325
  if (e.comparisonValueKind === "percent_change" || e.comparisonValueKind === "ratio") {
1362
- const a = me({
1326
+ const a = ue({
1363
1327
  card: e.card,
1364
1328
  columnId: e.columnId,
1365
1329
  persistedSettings: e.persistedSettings,
@@ -1369,7 +1333,7 @@ function xr(e) {
1369
1333
  columnKeyMap: e.columnKeyMap,
1370
1334
  metricAlias: e.metricAlias ?? (t == null ? void 0 : t.alias),
1371
1335
  valueFormatPreferences: e.presentation.preferences
1372
- }), o = gi(e.comparisonPrecision) ?? (k(a) ? a.maximumFractionDigits : void 0) ?? (e.comparisonValueKind === "percent_change" ? 1 : 2);
1336
+ }), o = hi(e.comparisonPrecision) ?? (R(a) ? a.maximumFractionDigits : void 0) ?? (e.comparisonValueKind === "percent_change" ? 1 : 2);
1373
1337
  return e.comparisonValueKind === "percent_change" ? {
1374
1338
  type: "percent",
1375
1339
  locale: e.presentation.preferences.locale,
@@ -1384,12 +1348,12 @@ function xr(e) {
1384
1348
  suffix: "×"
1385
1349
  };
1386
1350
  }
1387
- const i = bi({
1351
+ const i = gi({
1388
1352
  card: e.card,
1389
1353
  columnKey: e.columnId,
1390
1354
  metricId: e.metricId ?? (t && !((r = (n = e.card.config) == null ? void 0 : n.groupByColumns) != null && r.includes(t)) ? t.id : void 0)
1391
1355
  });
1392
- return me({
1356
+ return ue({
1393
1357
  card: e.card,
1394
1358
  columnId: e.columnId,
1395
1359
  persistedSettings: e.persistedSettings,
@@ -1402,10 +1366,10 @@ function xr(e) {
1402
1366
  boundCurrency: i ? e.presentation.resolveBoundCurrency(i) : void 0
1403
1367
  });
1404
1368
  }
1405
- function Sr(e) {
1406
- var s, l, c, u, f, d, h;
1369
+ function xr(e) {
1370
+ var s, l, c, u, f, d, g;
1407
1371
  if (e.card.type === "matrixTable" && e.target.kind === "matrix_measure") {
1408
- const v = e.target, b = vi(e.card, e.matrixCatalog).find(
1372
+ const v = e.target, b = yi(e.card, e.matrixCatalog).find(
1409
1373
  (y) => y.measureId === v.measureId
1410
1374
  ), m = b == null ? void 0 : b.canonical;
1411
1375
  return m && (m.type === "number" || m.type === "currency") ? _(
@@ -1422,44 +1386,44 @@ function Sr(e) {
1422
1386
  )) ?? -1 : 0;
1423
1387
  if (b < 0)
1424
1388
  return;
1425
- const m = Fi(e.card, {
1389
+ const m = bi(e.card, {
1426
1390
  metricIndex: b,
1427
1391
  resultColumnKey: e.target.kind === "column" ? e.target.columnKey : void 0
1428
1392
  }), y = m.authoredFormat;
1429
- return m.currencyBindable && y && k(y) ? _(
1393
+ return m.currencyBindable && y && R(y) ? _(
1430
1394
  y,
1431
1395
  e.valueFormatPreferences,
1432
1396
  e.boundCurrency
1433
1397
  ) : void 0;
1434
1398
  }
1435
- if (!((c = e.card.sql) != null && c.trim()) && !Wi(e.card.type) && e.target.kind === "metric") {
1399
+ if (!((c = e.card.sql) != null && c.trim()) && !Ui(e.card.type) && e.target.kind === "metric") {
1436
1400
  const v = e.target.metricId, b = (f = (u = e.card.config) == null ? void 0 : u.metricColumns) == null ? void 0 : f.find(
1437
1401
  (C) => C.id === v
1438
1402
  );
1439
1403
  if (!b)
1440
1404
  return;
1441
- const m = mt(
1405
+ const m = dt(
1442
1406
  e.card,
1443
1407
  b
1444
1408
  ), y = m.authoredFormat;
1445
- return m.currencyBindable && y && k(y) ? _(
1409
+ return m.currencyBindable && y && R(y) ? _(
1446
1410
  y,
1447
1411
  e.valueFormatPreferences,
1448
1412
  e.boundCurrency
1449
1413
  ) : void 0;
1450
1414
  }
1451
- const i = ((h = (d = e.card.preferences) == null ? void 0 : d.tablePrefs) == null ? void 0 : h.columnSettingsMap) || {}, n = e.target.kind === "metric" ? e.target.metricId : void 0, r = e.target.kind === "column" ? [e.target.columnKey] : [
1415
+ const i = ((g = (d = e.card.preferences) == null ? void 0 : d.tablePrefs) == null ? void 0 : g.columnSettingsMap) || {}, n = e.target.kind === "metric" ? e.target.metricId : void 0, r = e.target.kind === "column" ? [e.target.columnKey] : [
1452
1416
  ...e.resultColumnKeys || [],
1453
1417
  ...Object.keys(i),
1454
1418
  e.target.metricId
1455
1419
  ], a = e.target.kind === "column" ? e.target.columnKey : r.find(
1456
1420
  (v) => {
1457
1421
  var b;
1458
- return ((b = oe(e.card, {
1422
+ return ((b = ie(e.card, {
1459
1423
  columnId: v
1460
1424
  })) == null ? void 0 : b.id) === n;
1461
1425
  }
1462
- ) || n, o = me({
1426
+ ) || n, o = ue({
1463
1427
  card: e.card,
1464
1428
  columnId: a,
1465
1429
  metricId: n,
@@ -1467,14 +1431,14 @@ function Sr(e) {
1467
1431
  valueFormatPreferences: e.valueFormatPreferences,
1468
1432
  boundCurrency: e.boundCurrency
1469
1433
  });
1470
- return k(o) ? o : void 0;
1434
+ return R(o) ? o : void 0;
1471
1435
  }
1472
- function yo(e) {
1436
+ function fo(e) {
1473
1437
  var i, n, r, a, o, s;
1474
1438
  const t = e.persistedSettings ?? ((a = (r = (n = (i = e.card) == null ? void 0 : i.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.columnSettingsMap) == null ? void 0 : a[e.columnId]);
1475
1439
  if (!t && !e.resolvedSettings || (t == null ? void 0 : t.inheritMetricFormat) === !0 || ((o = e.resolvedSettings) == null ? void 0 : o.inheritMetricFormat) === !0) {
1476
- const l = G(
1477
- (s = oe(e.card, {
1440
+ const l = W(
1441
+ (s = ie(e.card, {
1478
1442
  columnId: e.columnId,
1479
1443
  metricId: e.metricId,
1480
1444
  metricAlias: e.metricAlias,
@@ -1487,33 +1451,33 @@ function yo(e) {
1487
1451
  preserveOmittedProperties: !0
1488
1452
  });
1489
1453
  }
1490
- return Cr(
1491
- Ht({
1454
+ return Fr(
1455
+ jt({
1492
1456
  ...e,
1493
1457
  persistedSettings: t
1494
1458
  })
1495
1459
  );
1496
1460
  }
1497
- function Mr(e) {
1498
- var v, b, m, y, C, D, w;
1499
- const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n = hi(e == null ? void 0 : e.numberAxisFormat) || (i ? yi(e == null ? void 0 : e.formatNumber) : void 0), r = K(n);
1461
+ function Sr(e) {
1462
+ var v, b, m, y, C, S, w;
1463
+ const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n = mi(e == null ? void 0 : e.numberAxisFormat) || (i ? pi(e == null ? void 0 : e.formatNumber) : void 0), r = K(n);
1500
1464
  if (!r || !r.type || r.type === "auto")
1501
1465
  return r;
1502
- const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (y = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : y.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (D = e == null ? void 0 : e.formatNumber) == null ? void 0 : D.minimumFractionDigits : void 0, f = i ? (w = e == null ? void 0 : e.formatNumber) == null ? void 0 : w.maximumFractionDigits : void 0, d = typeof s == "number" ? s : typeof l == "number" ? l : typeof u == "number" ? u : 0, h = typeof s == "number" ? s : typeof c == "number" ? c : typeof f == "number" ? f : 0;
1466
+ const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (y = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : y.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (S = e == null ? void 0 : e.formatNumber) == null ? void 0 : S.minimumFractionDigits : void 0, f = i ? (w = e == null ? void 0 : e.formatNumber) == null ? void 0 : w.maximumFractionDigits : void 0, d = typeof s == "number" ? s : typeof l == "number" ? l : typeof u == "number" ? u : 0, g = typeof s == "number" ? s : typeof c == "number" ? c : typeof f == "number" ? f : 0;
1503
1467
  return {
1504
1468
  ...r,
1505
- decimalPlaces: d === h ? h : r.decimalPlaces,
1469
+ decimalPlaces: d === g ? g : r.decimalPlaces,
1506
1470
  minimumFractionDigits: d,
1507
1471
  maximumFractionDigits: Math.max(
1508
1472
  d,
1509
- h
1473
+ g
1510
1474
  )
1511
1475
  };
1512
1476
  }
1513
- function go(e) {
1477
+ function mo(e) {
1514
1478
  var r, a, o, s, l;
1515
1479
  const { value: t, formatOptions: i, preferences: n } = e;
1516
- return i != null && i.type && i.type !== "auto" ? Rt(t, i.type, i) : Qn({
1480
+ return i != null && i.type && i.type !== "auto" ? Nt(t, i.type, i) : Wn({
1517
1481
  number: t,
1518
1482
  decimalPlaces: ((r = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : r.decimalPlaces) ?? 0,
1519
1483
  useSuffix: !!((a = n == null ? void 0 : n.numberAxisFormat) != null && a.suffix),
@@ -1522,18 +1486,18 @@ function go(e) {
1522
1486
  currency: ((l = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : l.currency) || ""
1523
1487
  });
1524
1488
  }
1525
- function Dr(e) {
1526
- return Qi({
1489
+ function Mr(e) {
1490
+ return Gi({
1527
1491
  ...e,
1528
- activation: Pe({
1492
+ activation: Me({
1529
1493
  card: e.card,
1530
1494
  cardConfig: e.cardConfig
1531
1495
  })
1532
1496
  });
1533
1497
  }
1534
- function bo(e) {
1535
- return Yi({
1536
- activation: Pe({
1498
+ function po(e) {
1499
+ return Wi({
1500
+ activation: Me({
1537
1501
  card: e.card,
1538
1502
  cardConfig: e.cardConfig
1539
1503
  }),
@@ -1541,9 +1505,9 @@ function bo(e) {
1541
1505
  expectedResultOwner: e.expectedResultOwner
1542
1506
  });
1543
1507
  }
1544
- function Tr(e) {
1508
+ function Dr(e) {
1545
1509
  var n, r;
1546
- const t = yt(e.card, e.effectiveCardConfig), i = Ln({
1510
+ const t = pt(e.card, e.effectiveCardConfig), i = Kn({
1547
1511
  card: t,
1548
1512
  records: e.rows,
1549
1513
  keys: e.rows.length === 0 ? e.resultKeys : void 0,
@@ -1566,35 +1530,35 @@ function Tr(e) {
1566
1530
  }
1567
1531
  };
1568
1532
  }
1569
- function wr(e) {
1533
+ function Tr(e) {
1570
1534
  var i;
1571
1535
  const t = (i = e.preferences) == null ? void 0 : i.comparisonPresentation;
1572
1536
  return {
1573
- ...Bi,
1537
+ ...Vi,
1574
1538
  ...t,
1575
1539
  ...t != null && t.conditionalLabels ? { conditionalLabels: { ...t.conditionalLabels } } : {},
1576
1540
  ...t != null && t.colors ? { colors: { ...t.colors } } : {}
1577
1541
  };
1578
1542
  }
1579
- function Pr(e) {
1580
- var D, w, F, S, E;
1581
- const t = yt(e.card, e.effectiveCardConfig), { cardId: i, ...n } = e.requestPayloadBase, r = e.formatOptions.visibleColumns ?? [], a = [
1543
+ function wr(e) {
1544
+ var S, w;
1545
+ const t = pt(e.card, e.effectiveCardConfig), { cardId: i, ...n } = e.requestPayloadBase, r = e.formatOptions.visibleColumns ?? [], a = [
1582
1546
  ...r,
1583
1547
  ...Object.keys(e.formatOptions.columnSettings ?? {})
1584
- ], o = Ci(
1548
+ ], o = vi(
1585
1549
  e.card,
1586
1550
  r,
1587
1551
  e.effectiveCardConfig
1588
- ), s = Ii(
1552
+ ), s = Fi(
1589
1553
  e.card,
1590
1554
  e.effectiveCardConfig,
1591
1555
  o
1592
- ), l = xi(
1556
+ ), l = Ci(
1593
1557
  t,
1594
1558
  a
1595
1559
  ), c = new Set(
1596
- l.eligibleTargets.map(ve)
1597
- ), u = (p) => c.has(ve(p)) ? Mi({
1560
+ l.eligibleTargets.map(ge)
1561
+ ), u = (p) => c.has(ge(p)) ? xi({
1598
1562
  bindings: n.controlBindings,
1599
1563
  controls: [
1600
1564
  ...n.controlDefinitions ?? [],
@@ -1604,23 +1568,18 @@ function Pr(e) {
1604
1568
  target: p,
1605
1569
  knownTargets: l.knownTargets,
1606
1570
  eligibleTargets: l.eligibleTargets
1607
- }).currency : void 0, f = Si({
1571
+ }).currency : void 0, f = Ii({
1608
1572
  card: e.card,
1609
1573
  comparisonMetadata: e.comparisonMetadata,
1610
- columnKeyMap: ((D = e.canonicalPivotResult) == null ? void 0 : D.columnKeyMap) ?? e.columnKeyMap
1611
- }), d = Pe({
1574
+ columnKeyMap: e.columnKeyMap
1575
+ }), d = Me({
1612
1576
  card: e.card,
1613
1577
  cardConfig: e.effectiveCardConfig
1614
- });
1615
- if (e.card.type === "pivotTable" && d && !e.canonicalPivotResult)
1616
- throw new Error(
1617
- "Canonical pivot export requires a parsed pivot result lifecycle."
1618
- );
1619
- const h = Dr({
1578
+ }), g = Mr({
1620
1579
  card: e.card,
1621
1580
  cardConfig: e.effectiveCardConfig,
1622
- columns: ((w = e.canonicalPivotResult) == null ? void 0 : w.columns) ?? e.resultColumns,
1623
- columnKeyMap: ((F = e.canonicalPivotResult) == null ? void 0 : F.columnKeyMap) ?? e.columnKeyMap,
1581
+ columns: e.resultColumns,
1582
+ columnKeyMap: e.columnKeyMap,
1624
1583
  resultRowCount: e.totalRows,
1625
1584
  valueFormatPreferences: e.reportContext.valueFormat
1626
1585
  }), v = (d == null ? void 0 : d.fields) ?? [], b = new Map(
@@ -1632,13 +1591,13 @@ function Pr(e) {
1632
1591
  if (e.card.type === "detailTable" && n.resultOwner === "config") {
1633
1592
  const p = e.resultColumns || [];
1634
1593
  if (p.filter(
1635
- (I) => I.rawTemporal
1594
+ (F) => F.rawTemporal
1636
1595
  ).length > 0) {
1637
1596
  if (!e.columnKeyMap)
1638
1597
  throw new Error(
1639
1598
  "Canonical raw temporal export requires an authoritative columnKeyMap."
1640
1599
  );
1641
- const I = Tn({
1600
+ const F = Dn({
1642
1601
  cardType: e.card.type,
1643
1602
  resultOwner: n.resultOwner,
1644
1603
  effectiveCardConfig: e.effectiveCardConfig,
@@ -1650,21 +1609,21 @@ function Pr(e) {
1650
1609
  preferences: e.reportContext.valueFormat,
1651
1610
  calendar: e.reportContext.calendar
1652
1611
  });
1653
- if (I.kind === "invalid") throw I.error;
1654
- if (I.kind === "loaded_empty" || I.kind === "loaded_valid")
1655
- for (const [R, O] of I.presentation.byColumnKey)
1656
- m.set(R, O.format);
1612
+ if (F.kind === "invalid") throw F.error;
1613
+ if (F.kind === "loaded_empty" || F.kind === "loaded_valid")
1614
+ for (const [D, T] of F.presentation.byColumnKey)
1615
+ m.set(D, T.format);
1657
1616
  }
1658
1617
  } else if (n.resultOwner === "freeform" && n.sql.trim() && !n.python.trim())
1659
- for (const [p, g] of Object.entries(
1660
- ((E = (S = e.card.preferences) == null ? void 0 : S.tablePrefs) == null ? void 0 : E.columnSettingsMap) || {}
1618
+ for (const [p, h] of Object.entries(
1619
+ ((w = (S = e.card.preferences) == null ? void 0 : S.tablePrefs) == null ? void 0 : w.columnSettingsMap) || {}
1661
1620
  )) {
1662
- if (g.type !== "date") continue;
1663
- const I = wn(g.dateFormat);
1664
- I && m.set(
1621
+ if (h.type !== "date") continue;
1622
+ const F = Tn(h.dateFormat);
1623
+ F && m.set(
1665
1624
  p,
1666
- Ui({
1667
- format: I,
1625
+ $i({
1626
+ format: F,
1668
1627
  preferences: e.reportContext.valueFormat,
1669
1628
  calendar: e.reportContext.calendar
1670
1629
  })
@@ -1673,66 +1632,66 @@ function Pr(e) {
1673
1632
  const y = [
1674
1633
  ...new Set(a)
1675
1634
  ].flatMap((p) => {
1676
- var P, J, X, Z, ee, te;
1677
- if (h.byColumnKey.has(p) || m.has(p))
1635
+ var q, E, re, P, Y, J;
1636
+ if (g.byColumnKey.has(p) || m.has(p))
1678
1637
  return [];
1679
- const g = f.columnPresentationOwners.get(p), I = (P = t.sql) != null && P.trim() ? void 0 : oe(t, {
1638
+ const h = f.columnPresentationOwners.get(p), F = (q = t.sql) != null && q.trim() ? void 0 : ie(t, {
1680
1639
  columnId: p,
1681
1640
  columnKeyMap: e.columnKeyMap,
1682
- metricId: g == null ? void 0 : g.metricId,
1683
- metricAlias: g == null ? void 0 : g.metricAlias
1684
- }), R = I ? { kind: "metric", metricId: I.id } : { kind: "column", columnKey: p }, O = c.has(
1685
- ve(R)
1686
- ), Q = u(R), V = (Z = (X = (J = t.preferences) == null ? void 0 : J.tablePrefs) == null ? void 0 : X.columnSettingsMap) == null ? void 0 : Z[p], U = {
1641
+ metricId: h == null ? void 0 : h.metricId,
1642
+ metricAlias: h == null ? void 0 : h.metricAlias
1643
+ }), D = F ? { kind: "metric", metricId: F.id } : { kind: "column", columnKey: p }, T = c.has(
1644
+ ge(D)
1645
+ ), V = u(D), N = (P = (re = (E = t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : re.columnSettingsMap) == null ? void 0 : P[p], O = {
1687
1646
  dashboardId: e.dashboardId,
1688
1647
  cardId: t.id
1689
- }, B = { kind: "column", columnKey: p }, T = I && (!V || V.inheritMetricFormat === !0) ? G(I.format, {
1648
+ }, U = { kind: "column", columnKey: p }, M = F && (!N || N.inheritMetricFormat === !0) ? W(F.format, {
1690
1649
  preserveOmittedProperties: !0
1691
1650
  }) : void 0;
1692
- if ((T == null ? void 0 : T.type) === "date")
1651
+ if ((M == null ? void 0 : M.type) === "date")
1693
1652
  return [
1694
1653
  {
1695
- scope: U,
1696
- target: B,
1654
+ scope: O,
1655
+ target: U,
1697
1656
  format: {
1698
1657
  type: "date",
1699
- locale: T.locale ?? e.reportContext.valueFormat.locale,
1700
- ...T.pattern ? { pattern: T.pattern } : {},
1701
- ...T.timezone ? { timezone: T.timezone } : {},
1702
- ...T.sourceTimezone ? { sourceTimezone: T.sourceTimezone } : {}
1658
+ locale: M.locale ?? e.reportContext.valueFormat.locale,
1659
+ ...M.pattern ? { pattern: M.pattern } : {},
1660
+ ...M.timezone ? { timezone: M.timezone } : {},
1661
+ ...M.sourceTimezone ? { sourceTimezone: M.sourceTimezone } : {}
1703
1662
  }
1704
1663
  }
1705
1664
  ];
1706
- const A = (g ? xr({
1665
+ const k = (h ? Ir({
1707
1666
  card: t,
1708
1667
  columnId: p,
1709
1668
  columnKeyMap: e.columnKeyMap,
1710
- persistedSettings: V,
1711
- metricId: g.metricId,
1712
- metricAlias: g.metricAlias,
1713
- comparisonValueKind: g.kind,
1714
- comparisonPrecision: (te = (ee = t.preferences) == null ? void 0 : ee.comparisonPresentation) == null ? void 0 : te.precision,
1669
+ persistedSettings: N,
1670
+ metricId: h.metricId,
1671
+ metricAlias: h.metricAlias,
1672
+ comparisonValueKind: h.kind,
1673
+ comparisonPrecision: (J = (Y = t.preferences) == null ? void 0 : Y.comparisonPresentation) == null ? void 0 : J.precision,
1715
1674
  presentation: {
1716
1675
  preferences: e.reportContext.valueFormat,
1717
1676
  resolveBoundCurrency: u
1718
1677
  }
1719
- }) : void 0) ?? (O ? Sr({
1678
+ }) : void 0) ?? (T ? xr({
1720
1679
  card: t,
1721
- target: R,
1680
+ target: D,
1722
1681
  resultColumnKeys: a,
1723
1682
  valueFormatPreferences: e.reportContext.valueFormat,
1724
- boundCurrency: Q
1725
- }) : void 0) ?? me({
1683
+ boundCurrency: V
1684
+ }) : void 0) ?? ue({
1726
1685
  card: t,
1727
1686
  columnId: p,
1728
1687
  columnKeyMap: e.columnKeyMap,
1729
- metricId: g == null ? void 0 : g.metricId,
1730
- persistedSettings: V,
1688
+ metricId: h == null ? void 0 : h.metricId,
1689
+ persistedSettings: N,
1731
1690
  valueFormatPreferences: e.reportContext.valueFormat
1732
- }), Y = (A == null ? void 0 : A.type) === "duration" ? A : A ? _(
1733
- A,
1691
+ }), B = (k == null ? void 0 : k.type) === "duration" ? k : k ? _(
1692
+ k,
1734
1693
  e.reportContext.valueFormat,
1735
- Q
1694
+ V
1736
1695
  ) : _(
1737
1696
  {
1738
1697
  type: "number",
@@ -1742,15 +1701,15 @@ function Pr(e) {
1742
1701
  e.reportContext.valueFormat
1743
1702
  );
1744
1703
  return [
1745
- Y.type === "duration" ? { scope: U, target: B, format: Y } : { scope: U, target: B, format: Y }
1704
+ B.type === "duration" ? { scope: O, target: U, format: B } : { scope: O, target: U, format: B }
1746
1705
  ];
1747
1706
  });
1748
1707
  y.push(
1749
- ...[...h.byColumnKey.values()].map((p) => {
1750
- const g = b.get(
1708
+ ...[...g.byColumnKey.values()].map((p) => {
1709
+ const h = b.get(
1751
1710
  `${p.role ?? "groupby"}:${p.fieldId}`
1752
1711
  );
1753
- if (!g)
1712
+ if (!h)
1754
1713
  throw new Error(
1755
1714
  `Unable to resolve temporal export field "${p.fieldId}".`
1756
1715
  );
@@ -1760,8 +1719,8 @@ function Pr(e) {
1760
1719
  cardId: e.card.id
1761
1720
  },
1762
1721
  target: { kind: "column", columnKey: p.columnKey },
1763
- format: Ge(
1764
- g,
1722
+ format: Qi(
1723
+ h,
1765
1724
  {
1766
1725
  dateStyle: e.reportContext.valueFormat.dateStyle,
1767
1726
  dateTime: { ...e.reportContext.valueFormat.dateTime }
@@ -1771,37 +1730,13 @@ function Pr(e) {
1771
1730
  };
1772
1731
  })
1773
1732
  ), y.push(
1774
- ...((d == null ? void 0 : d.fields) || []).flatMap(
1775
- (p) => p.role === "pivotby" ? [
1776
- {
1777
- scope: {
1778
- dashboardId: e.dashboardId,
1779
- cardId: e.card.id
1780
- },
1781
- target: {
1782
- kind: "field",
1783
- fieldId: p.id,
1784
- role: p.role
1785
- },
1786
- format: Ge(
1787
- p,
1788
- {
1789
- dateStyle: e.reportContext.valueFormat.dateStyle,
1790
- dateTime: { ...e.reportContext.valueFormat.dateTime }
1791
- },
1792
- e.reportContext.valueFormat.locale
1793
- )
1794
- }
1795
- ] : []
1796
- )
1797
- ), y.push(
1798
- ...[...m].map(([p, g]) => ({
1733
+ ...[...m].map(([p, h]) => ({
1799
1734
  scope: { dashboardId: e.dashboardId, cardId: e.card.id },
1800
1735
  target: { kind: "column", columnKey: p },
1801
- format: g
1736
+ format: h
1802
1737
  }))
1803
1738
  );
1804
- const C = Ki({
1739
+ const C = zi({
1805
1740
  reportContext: e.reportContext,
1806
1741
  resolvedFormats: y
1807
1742
  });
@@ -1809,17 +1744,17 @@ function Pr(e) {
1809
1744
  formatOptions: {
1810
1745
  ...e.formatOptions,
1811
1746
  ...o ? { tableTotalsLabelColumnKey: o } : {},
1812
- comparisonPresentation: wr(e.card),
1747
+ comparisonPresentation: Tr(e.card),
1813
1748
  presentationExecutionSnapshot: C
1814
1749
  },
1815
1750
  ...s ? { tableTotalsRequest: s } : {}
1816
1751
  };
1817
1752
  }
1818
- function Or(e) {
1819
- const t = Ti(
1753
+ function Pr(e) {
1754
+ const t = Mi(
1820
1755
  e.card,
1821
1756
  e.requestPayloadBase
1822
- ), { cardId: i, ...n } = t.requestPayloadBase, r = Pr(e);
1757
+ ), { cardId: i, ...n } = t.requestPayloadBase, r = wr(e);
1823
1758
  return {
1824
1759
  type: "card",
1825
1760
  dashboardId: e.dashboardId,
@@ -1833,13 +1768,13 @@ function Or(e) {
1833
1768
  formatOptions: r.formatOptions
1834
1769
  };
1835
1770
  }
1836
- function vo(e) {
1771
+ function ho(e) {
1837
1772
  const { card: t, result: i } = e;
1838
1773
  if (t.type !== "table" && t.type !== "detailTable")
1839
1774
  return { status: "refused", reason: "not_a_table" };
1840
- if (Di({ card: t, comparisonMetadata: i.comparisonMetadata }))
1775
+ if (Si({ card: t, comparisonMetadata: i.comparisonMetadata }))
1841
1776
  return { status: "refused", reason: "comparison_metadata_missing" };
1842
- const n = Tr({
1777
+ const n = Dr({
1843
1778
  card: t,
1844
1779
  effectiveCardConfig: e.effectiveCardConfig,
1845
1780
  rows: e.rows,
@@ -1850,7 +1785,7 @@ function vo(e) {
1850
1785
  });
1851
1786
  return n ? {
1852
1787
  status: "ready",
1853
- request: Or({
1788
+ request: Pr({
1854
1789
  card: t,
1855
1790
  dashboardId: e.dashboardId,
1856
1791
  title: e.title,
@@ -1866,9 +1801,9 @@ function vo(e) {
1866
1801
  })
1867
1802
  } : { status: "refused", reason: "columns_unresolved" };
1868
1803
  }
1869
- function Ar(e, t, i) {
1870
- if (_i(
1871
- Ei(t),
1804
+ function Or(e, t, i) {
1805
+ if (Ai(
1806
+ _i(t),
1872
1807
  e.aggregateOrigin
1873
1808
  ))
1874
1809
  return { aggregate: void 0, aggregateOrigin: void 0 };
@@ -1878,7 +1813,7 @@ function Ar(e, t, i) {
1878
1813
  aggregateOrigin: e.aggregate ? e.aggregateOrigin : n ? t.aggregateOrigin : void 0
1879
1814
  };
1880
1815
  }
1881
- function Nr(e, t, i) {
1816
+ function Ar(e, t, i) {
1882
1817
  var n, r, a, o, s, l;
1883
1818
  if (i === "domain")
1884
1819
  return {
@@ -1891,7 +1826,7 @@ function Nr(e, t, i) {
1891
1826
  windowTransform: ((s = e.parameters) == null ? void 0 : s.windowTransform) ?? ((l = t.parameters) == null ? void 0 : l.windowTransform)
1892
1827
  };
1893
1828
  }
1894
- function Fo(e, t, i) {
1829
+ function go(e, t, i) {
1895
1830
  const n = e;
1896
1831
  return {
1897
1832
  id: e.id,
@@ -1903,13 +1838,13 @@ function Fo(e, t, i) {
1903
1838
  dateFormat: e.dateFormat,
1904
1839
  customFormat: e.customFormat,
1905
1840
  semanticTemporalPresentation: t.semanticTemporalPresentation || e.semanticTemporalPresentation,
1906
- ...Ar(e, t, i),
1841
+ ...Or(e, t, i),
1907
1842
  ...e.role === "metric" ? {
1908
1843
  aliasTemplate: n.aliasTemplate,
1909
1844
  valueAliases: n.valueAliases,
1910
1845
  comparison: n.comparison,
1911
1846
  comparisonPolarity: n.comparisonPolarity,
1912
- parameters: Nr(
1847
+ parameters: Ar(
1913
1848
  n,
1914
1849
  t,
1915
1850
  "domain"
@@ -1944,73 +1879,73 @@ function _r(e) {
1944
1879
  return t;
1945
1880
  }
1946
1881
  }
1947
- const Er = "table";
1948
- function Co({ preferences: e, ...t }) {
1882
+ const Nr = "table";
1883
+ function yo({ preferences: e, ...t }) {
1949
1884
  return {
1950
1885
  ...t,
1951
- type: Er,
1886
+ type: Nr,
1952
1887
  preferences: e ?? { onClickFilter: [{ columnIndex: 0, expression: "" }] },
1953
1888
  sql: "",
1954
1889
  data: []
1955
1890
  };
1956
1891
  }
1957
- function Rr(e, t) {
1892
+ function Er(e, t) {
1958
1893
  const i = e.sheets ?? [], n = i.findIndex((o) => o.id === t.sheetId), r = i[n];
1959
1894
  if (!r)
1960
- throw new N("sheet_not_found", `No sheet ${t.sheetId} on this dashboard.`);
1961
- if (Ji(r))
1962
- throw new N(
1895
+ throw new A("sheet_not_found", `No sheet ${t.sheetId} on this dashboard.`);
1896
+ if (Yi(r))
1897
+ throw new A(
1963
1898
  "sheet_not_a_grid",
1964
1899
  "This sheet is a document: it has no grid to arrange.",
1965
1900
  "Arrange a grid sheet; Document sheets are laid out in the editor."
1966
1901
  );
1967
- const a = It(r, { kind: "arrange", keepOrder: t.keepOrder === !0 });
1902
+ const a = Ft(r, { kind: "arrange", keepOrder: t.keepOrder === !0 });
1968
1903
  return {
1969
1904
  dashboard: { ...e, sheets: i.map((o, s) => s === n ? a : o) },
1970
- clauses: [Oe.arranged(r.title || "the dashboard", t.keepOrder === !0, !(r.frames ?? []).length)]
1905
+ clauses: [De.arranged(r.title || "the dashboard", t.keepOrder === !0, !(r.frames ?? []).length)]
1971
1906
  };
1972
1907
  }
1973
- function Vr(e) {
1908
+ function Rr(e) {
1974
1909
  return !!(e && Object.prototype.hasOwnProperty.call(e, "calculatedFields"));
1975
1910
  }
1976
- function z(...e) {
1977
- return Xi(e.flatMap((t) => t || []));
1911
+ function j(...e) {
1912
+ return Ji(e.flatMap((t) => t || []));
1978
1913
  }
1979
- function W(e, t) {
1914
+ function Q(e, t) {
1980
1915
  return {
1981
1916
  ...e,
1982
1917
  fieldScope: t
1983
1918
  };
1984
1919
  }
1985
- function Ke(e) {
1986
- return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => t.fieldScope === "sheet").map((t) => W(t, "sheet"));
1920
+ function Re(e) {
1921
+ return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => t.fieldScope === "sheet").map((t) => Q(t, "sheet"));
1987
1922
  }
1988
- function Gt(e) {
1989
- return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => !t.fieldScope).map((t) => W(t, "sheet"));
1923
+ function Ht(e) {
1924
+ return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => !t.fieldScope).map((t) => Q(t, "sheet"));
1990
1925
  }
1991
- function kr(e) {
1926
+ function Vr(e) {
1992
1927
  return e ? [
1993
1928
  ...(e.calculatedFields || []).filter(
1994
1929
  (t) => t.fieldScope === "dashboard"
1995
1930
  ),
1996
1931
  ...(e.frames || []).flatMap((t) => t.calculatedFields || [])
1997
- ].map((t) => W(t, "dashboard")) : [];
1932
+ ].map((t) => Q(t, "dashboard")) : [];
1998
1933
  }
1999
- function Br(e) {
1934
+ function kr(e) {
2000
1935
  if (e !== void 0)
2001
- return z(
2002
- e.map((t) => W(t, "dashboard"))
1936
+ return j(
1937
+ e.map((t) => Q(t, "dashboard"))
2003
1938
  );
2004
1939
  }
2005
- function Io(e) {
1940
+ function bo(e) {
2006
1941
  var n;
2007
1942
  const t = [], i = (e.sheets || []).map((r) => {
2008
1943
  var a;
2009
- return t.push(...kr(r)), {
1944
+ return t.push(...Vr(r)), {
2010
1945
  ...r,
2011
- calculatedFields: z(
2012
- Ke(r),
2013
- Gt(r)
1946
+ calculatedFields: j(
1947
+ Re(r),
1948
+ Ht(r)
2014
1949
  ),
2015
1950
  frames: (a = r.frames) == null ? void 0 : a.map(
2016
1951
  (o) => o.calculatedFields === void 0 ? o : { ...o, calculatedFields: void 0 }
@@ -2019,10 +1954,10 @@ function Io(e) {
2019
1954
  });
2020
1955
  return {
2021
1956
  ...e,
2022
- calculatedFields: Br(
2023
- z(
1957
+ calculatedFields: kr(
1958
+ j(
2024
1959
  (n = e.calculatedFields) == null ? void 0 : n.map(
2025
- (r) => W(r, "dashboard")
1960
+ (r) => Q(r, "dashboard")
2026
1961
  ),
2027
1962
  t
2028
1963
  )
@@ -2030,42 +1965,42 @@ function Io(e) {
2030
1965
  sheets: i
2031
1966
  };
2032
1967
  }
2033
- function st(e, t) {
1968
+ function at(e, t) {
2034
1969
  var r;
2035
1970
  if (!((r = e == null ? void 0 : e.frames) != null && r.length))
2036
1971
  return [];
2037
1972
  const i = t ? e.frames.find((a) => a.id === t) : void 0, n = e.frames.filter(
2038
1973
  (a) => !t || a.id !== t
2039
1974
  );
2040
- return z(
1975
+ return j(
2041
1976
  i == null ? void 0 : i.calculatedFields,
2042
1977
  ...n.map((a) => a.calculatedFields)
2043
1978
  );
2044
1979
  }
2045
- function xo(e, t) {
2046
- return e ? Ke(e) : [];
1980
+ function vo(e, t) {
1981
+ return e ? Re(e) : [];
2047
1982
  }
2048
- function So(e, t) {
1983
+ function Fo(e, t) {
2049
1984
  if (!e)
2050
1985
  return [];
2051
- const i = Ke(e), n = Gt(e), r = z(
1986
+ const i = Re(e), n = Ht(e), r = j(
2052
1987
  i,
2053
1988
  n
2054
1989
  );
2055
- return Vr(e) ? r.length === 0 ? [] : n.length === 0 ? r : z(
1990
+ return Rr(e) ? r.length === 0 ? [] : n.length === 0 ? r : j(
2056
1991
  r,
2057
- st(e, t)
2058
- ) : st(e, t);
1992
+ at(e, t)
1993
+ ) : at(e, t);
2059
1994
  }
2060
- function Kr(e) {
1995
+ function Br(e) {
2061
1996
  if (e !== void 0)
2062
- return z(
2063
- e.map((t) => W(t, "sheet"))
1997
+ return j(
1998
+ e.map((t) => Q(t, "sheet"))
2064
1999
  );
2065
2000
  }
2066
- function Mo(e) {
2001
+ function Co(e) {
2067
2002
  const { field: t, sheetFields: i = [], dashboardFields: n = [] } = e, r = (s) => s.find(
2068
- (l) => Zi(l, t, {
2003
+ (l) => Xi(l, t, {
2069
2004
  allowComparableFallback: !0
2070
2005
  })
2071
2006
  );
@@ -2079,48 +2014,48 @@ function Mo(e) {
2079
2014
  const o = r(n);
2080
2015
  return o ? { scope: "dashboard", matchedField: o } : { scope: "card" };
2081
2016
  }
2082
- function Lr(e, t) {
2083
- var C, D, w;
2084
- const i = (e.sheets ?? []).findIndex((F) => F.id === t.sheetId), n = (C = e.sheets) == null ? void 0 : C[i];
2017
+ function Kr(e, t) {
2018
+ var C, S, w;
2019
+ const i = (e.sheets ?? []).findIndex((p) => p.id === t.sheetId), n = (C = e.sheets) == null ? void 0 : C[i];
2085
2020
  if (!(n != null && n.frames))
2086
- throw new N("sheet_not_found", `No sheet ${t.sheetId} with frames on this dashboard.`);
2087
- const { frame: r } = t, a = n.frames.findIndex((F) => F.id === r.id);
2021
+ throw new A("sheet_not_found", `No sheet ${t.sheetId} with frames on this dashboard.`);
2022
+ const { frame: r } = t, a = n.frames.findIndex((p) => p.id === r.id);
2088
2023
  if (a === -1)
2089
- throw new N("frame_not_found", `No frame ${r.id} on sheet ${t.sheetId}.`);
2090
- const o = n.frames[a], s = We(n), l = (F) => F.calculatedFields === void 0 ? F : { ...F, calculatedFields: void 0 }, c = t.rewrittenFrames, u = c && c.length > 0 ? (() => {
2091
- const F = c.map((S) => S.id === r.id ? r : S);
2092
- return F.some((S) => S.id === r.id) ? F : [r, ...F];
2093
- })() : [r], f = new Map(u.map((F) => [F.id, F])), d = It(n, { kind: "frame_updated", frame: r, resizeForNewKind: t.resizeLayouts });
2094
- let h = /* @__PURE__ */ new Set();
2095
- const v = en.produce(e, (F) => {
2096
- const S = F.sheets[i];
2097
- d.layouts !== n.layouts && (S.layouts = Qe(d.layouts)), d.customizedBreakpoints !== n.customizedBreakpoints && (S.customizedBreakpoints = d.customizedBreakpoints), t.sheetCalculatedFields !== void 0 && (S.calculatedFields = Kr(t.sheetCalculatedFields)), S.frames = S.frames.map((p) => {
2098
- const g = f.get(p.id);
2099
- return g ? Qe(l(g)) : p.calculatedFields === void 0 ? p : { ...p, calculatedFields: void 0 };
2024
+ throw new A("frame_not_found", `No frame ${r.id} on sheet ${t.sheetId}.`);
2025
+ const o = n.frames[a], s = Ue(n), l = (p) => p.calculatedFields === void 0 ? p : { ...p, calculatedFields: void 0 }, c = t.rewrittenFrames, u = c && c.length > 0 ? (() => {
2026
+ const p = c.map((h) => h.id === r.id ? r : h);
2027
+ return p.some((h) => h.id === r.id) ? p : [r, ...p];
2028
+ })() : [r], f = new Map(u.map((p) => [p.id, p])), d = Ft(n, { kind: "frame_updated", frame: r, resizeForNewKind: t.resizeLayouts });
2029
+ let g = /* @__PURE__ */ new Set();
2030
+ const v = Zi.produce(e, (p) => {
2031
+ const h = p.sheets[i];
2032
+ d.layouts !== n.layouts && (h.layouts = Ge(d.layouts)), d.customizedBreakpoints !== n.customizedBreakpoints && (h.customizedBreakpoints = d.customizedBreakpoints), t.sheetCalculatedFields !== void 0 && (h.calculatedFields = Br(t.sheetCalculatedFields)), h.frames = h.frames.map((D) => {
2033
+ const T = f.get(D.id);
2034
+ return T ? Ge(l(T)) : D.calculatedFields === void 0 ? D : { ...D, calculatedFields: void 0 };
2100
2035
  });
2101
- const E = We(S);
2102
- h = new Set([...s].filter((p) => !E.has(p))), tn(F, h), t.dashboardCalculatedFields && (F.calculatedFields = t.dashboardCalculatedFields);
2103
- }), b = v.sheets[i].frames.find((F) => F.id === r.id), m = [
2104
- ...h.size ? [{ kind: "cards_removed", cardIds: [...h] }] : [],
2036
+ const F = Ue(h);
2037
+ g = new Set([...s].filter((D) => !F.has(D))), en(p, g), t.dashboardCalculatedFields && (p.calculatedFields = t.dashboardCalculatedFields);
2038
+ }), b = v.sheets[i].frames.find((p) => p.id === r.id), m = [
2039
+ ...g.size ? [{ kind: "cards_removed", cardIds: [...g] }] : [],
2105
2040
  { kind: "frame_committed", sheetId: t.sheetId, before: o, after: b }
2106
- ], y = ((D = r.cards) == null ? void 0 : D.find((F) => F.id === r.activeCardId)) ?? ((w = r.cards) == null ? void 0 : w[0]);
2107
- return { dashboard: v, runtimeEffects: m, clauses: [Oe.committed(y == null ? void 0 : y.title)] };
2041
+ ], y = ((S = r.cards) == null ? void 0 : S.find((p) => p.id === r.activeCardId)) ?? ((w = r.cards) == null ? void 0 : w[0]);
2042
+ return { dashboard: v, runtimeEffects: m, clauses: [De.committed(y == null ? void 0 : y.title)] };
2108
2043
  }
2109
- function qr(e, t, i) {
2044
+ function Lr(e, t, i) {
2110
2045
  var a;
2111
2046
  if (!e || !t || t.customFilterPreferences) return;
2112
2047
  const n = t.defaultDateFilter;
2113
- return (t.dateSelectionMode === "day" ? an(n) : t.dateSelectionMode === "months" && (on(n) || sn(n) && n.unit === "month" && (n.mode === "previous" || n.mode === "this" && !n.toDate && !n.boundary))) && ((a = H(t, i)) == null ? void 0 : a.valueType) === "date" ? !0 : void 0;
2048
+ return (t.dateSelectionMode === "day" ? rn(n) : t.dateSelectionMode === "months" && (an(n) || on(n) && n.unit === "month" && (n.mode === "previous" || n.mode === "this" && !n.toDate && !n.boundary))) && ((a = G(t, i)) == null ? void 0 : a.valueType) === "date" ? !0 : void 0;
2114
2049
  }
2115
- function Do(e) {
2116
- const t = e.createId ?? Dt, i = t(), n = wi({
2050
+ function Io(e) {
2051
+ const t = e.createId ?? St, i = t(), n = Di({
2117
2052
  field: e.field,
2118
2053
  dataSource: e.dataSource,
2119
2054
  connectionId: e.connectionId,
2120
2055
  connectionType: e.connectionType,
2121
2056
  filterId: t()
2122
2057
  });
2123
- return $r({
2058
+ return qr({
2124
2059
  filter: e.label ? { ...n, title: e.label } : n,
2125
2060
  label: e.label || e.field.label || e.field.name,
2126
2061
  scope: e.scope,
@@ -2128,11 +2063,11 @@ function Do(e) {
2128
2063
  createId: () => i
2129
2064
  });
2130
2065
  }
2131
- function $r(e) {
2132
- const t = e.createId ?? Dt, i = e.label || e.filter.title || e.filter.column || e.filter.id, n = nn(i, [
2066
+ function qr(e) {
2067
+ const t = e.createId ?? St, i = e.label || e.filter.title || e.filter.column || e.filter.id, n = tn(i, [
2133
2068
  ...e.existingInputs
2134
2069
  ]), r = {
2135
- ...xt(e.filter),
2070
+ ...Ct(e.filter),
2136
2071
  variableName: n
2137
2072
  };
2138
2073
  return {
@@ -2143,22 +2078,22 @@ function $r(e) {
2143
2078
  requiredAtExecution: !1,
2144
2079
  scope: e.scope,
2145
2080
  runtimeScope: "shared",
2146
- presentation: Mt(r),
2081
+ presentation: xt(r),
2147
2082
  filter: r,
2148
- exports: St(r)
2083
+ exports: It(r)
2149
2084
  };
2150
2085
  }
2151
- function zr(e, t, i, n = { calendar: null }) {
2152
- var J, X, Z, ee, te, $e, ze, je;
2153
- const r = q(e), a = r.findFilterInput(t), o = (M, x) => ({
2086
+ function $r(e, t, i, n = { calendar: null }) {
2087
+ var Y, J, Be, Ke, Le, qe, $e, ze;
2088
+ const r = $(e), a = r.findFilterInput(t), o = (x, I) => ({
2154
2089
  ok: !1,
2155
2090
  issues: [
2156
2091
  {
2157
2092
  code: "invalidSettings",
2158
- message: M,
2093
+ message: x,
2159
2094
  ref: t,
2160
2095
  ...a ? { inputId: a.input.id } : {},
2161
- ...x ? { contractIssue: x } : {}
2096
+ ...I ? { contractIssue: I } : {}
2162
2097
  }
2163
2098
  ]
2164
2099
  });
@@ -2176,139 +2111,139 @@ function zr(e, t, i, n = { calendar: null }) {
2176
2111
  if (a.origin !== "embeddedInput")
2177
2112
  return o("This filter can not be edited here.");
2178
2113
  const s = a.input, l = s.filter;
2179
- if (((J = i.mapping) == null ? void 0 : J.kind) === "save") {
2114
+ if (((Y = i.mapping) == null ? void 0 : Y.kind) === "save") {
2180
2115
  if (!i.mapping.draft.acceptance.ok)
2181
2116
  return { ok: !1, issues: i.mapping.draft.acceptance.issues };
2182
2117
  if (i.mapping.draft.inputId !== s.id)
2183
2118
  return o("The card mapping was prepared for another filter.");
2184
2119
  }
2185
- const c = i.definition ? xt(i.definition) : l;
2186
- if (c.kind === "global-date" && i.scope && !jr(i.scope))
2120
+ const c = i.definition ? Ct(i.definition) : l;
2121
+ if (c.kind === "global-date" && i.scope && !zr(i.scope))
2187
2122
  return o("The Global Date filter applies to regular tabs only.");
2188
- const u = (X = n.calendar) == null ? void 0 : X.tz, f = i.definition !== void 0, d = i.forceSelection !== void 0 || f ? qr(
2123
+ const u = (J = n.calendar) == null ? void 0 : J.tz, f = i.definition !== void 0, d = i.forceSelection !== void 0 || f ? Lr(
2189
2124
  i.forceSelection ?? s.forceSelection,
2190
2125
  c,
2191
2126
  u
2192
- ) : s.forceSelection ? !0 : void 0, h = (Array.isArray(e.inputs) ? e.inputs : []).filter((M) => M.id !== s.id), v = i.variableName !== void 0 ? rn(i.variableName, [
2193
- ...h,
2194
- ...r.inputs.filter((M) => M.input.id !== s.id).map((M) => M.input)
2195
- ]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), y = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth, D = (M) => {
2196
- var Ue, He;
2197
- const x = { ...M };
2198
- if (m !== void 0 && (x.label = m), i.variableName !== void 0 && (x.variableName = v), i.scope && (x.scope = i.scope), y || C) {
2199
- const be = Mt(c);
2200
- x.presentation = { ...M.presentation }, y && (x.presentation.placement = be.placement), C && (be.widthPx === void 0 ? delete x.presentation.widthPx : x.presentation.widthPx = be.widthPx);
2127
+ ) : s.forceSelection ? !0 : void 0, g = (Array.isArray(e.inputs) ? e.inputs : []).filter((x) => x.id !== s.id), v = i.variableName !== void 0 ? nn(i.variableName, [
2128
+ ...g,
2129
+ ...r.inputs.filter((x) => x.input.id !== s.id).map((x) => x.input)
2130
+ ]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), y = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth, S = (x) => {
2131
+ var je, He;
2132
+ const I = { ...x };
2133
+ if (m !== void 0 && (I.label = m), i.variableName !== void 0 && (I.variableName = v), i.scope && (I.scope = i.scope), y || C) {
2134
+ const he = xt(c);
2135
+ I.presentation = { ...x.presentation }, y && (I.presentation.placement = he.placement), C && (he.widthPx === void 0 ? delete I.presentation.widthPx : I.presentation.widthPx = he.widthPx);
2201
2136
  }
2202
- return (i.forceSelection !== void 0 || f) && (d ? x.forceSelection = d : delete x.forceSelection), i.requiredAtExecution !== void 0 && (i.requiredAtExecution ? x.requiredAtExecution = !0 : delete x.requiredAtExecution), Ie(x, "optionSource", i.optionSource), Ie(x, "optionDependencies", i.optionDependencies), Ie(x, "optionPopulation", i.optionPopulation), ((Ue = i.mapping) == null ? void 0 : Ue.kind) === "save" && i.mapping.draft.acceptance.ok ? x.application = i.mapping.draft.acceptance.application : ((He = i.mapping) == null ? void 0 : He.kind) === "remove" && delete x.application, x;
2203
- }, w = i.label !== void 0 && i.label !== s.label && i.label !== c.title ? i.label : void 0, F = f || i.variableName !== void 0 || w !== void 0, S = (M) => ({
2204
- ...M,
2137
+ return (i.forceSelection !== void 0 || f) && (d ? I.forceSelection = d : delete I.forceSelection), i.requiredAtExecution !== void 0 && (i.requiredAtExecution ? I.requiredAtExecution = !0 : delete I.requiredAtExecution), ve(I, "optionSource", i.optionSource), ve(I, "optionDependencies", i.optionDependencies), ve(I, "optionPopulation", i.optionPopulation), ((je = i.mapping) == null ? void 0 : je.kind) === "save" && i.mapping.draft.acceptance.ok ? I.application = i.mapping.draft.acceptance.application : ((He = i.mapping) == null ? void 0 : He.kind) === "remove" && delete I.application, I;
2138
+ }, w = i.label !== void 0 && i.label !== s.label && i.label !== c.title ? i.label : void 0, p = f || i.variableName !== void 0 || w !== void 0, h = (x) => ({
2139
+ ...x,
2205
2140
  ...i.variableName !== void 0 ? { variableName: v } : {},
2206
2141
  ...w !== void 0 ? { title: w } : {}
2207
- }), E = Array.isArray(e.inputs) ? [...e.inputs] : [], p = E.findIndex((M) => M.id === s.id), g = E[p];
2208
- if (p < 0 || (g == null ? void 0 : g.kind) !== "filter" || !g.filter)
2142
+ }), F = Array.isArray(e.inputs) ? [...e.inputs] : [], D = F.findIndex((x) => x.id === s.id), T = F[D];
2143
+ if (D < 0 || (T == null ? void 0 : T.kind) !== "filter" || !T.filter)
2209
2144
  return o("This filter can not be edited here.");
2210
- const I = D(
2211
- F ? {
2212
- ...g,
2213
- filter: S(c)
2214
- } : g
2145
+ const V = S(
2146
+ p ? {
2147
+ ...T,
2148
+ filter: h(c)
2149
+ } : T
2215
2150
  );
2216
- f && (I.exports = St(c)), E[p] = I;
2217
- const R = _e({
2218
- inputs: [I],
2151
+ f && (V.exports = It(c)), F[D] = V;
2152
+ const N = Pe({
2153
+ inputs: [V],
2219
2154
  dashboardFilters: []
2220
2155
  });
2221
- if (!R.ok)
2156
+ if (!N.ok)
2222
2157
  return o(
2223
- ((Z = R.issues[0]) == null ? void 0 : Z.message) ?? "These settings could not be saved.",
2224
- R.issues[0]
2158
+ ((Be = N.issues[0]) == null ? void 0 : Be.message) ?? "These settings could not be saved.",
2159
+ N.issues[0]
2225
2160
  );
2226
- let O = { ...e, inputs: E };
2227
- const Q = q(O), V = Q.findFilterInput({ filterId: c.id });
2228
- if (!V)
2161
+ let O = { ...e, inputs: F };
2162
+ const U = $(O), M = U.findFilterInput({ filterId: c.id });
2163
+ if (!M)
2229
2164
  return o(
2230
- ((ee = Q.issues[0]) == null ? void 0 : ee.message) ?? "These settings could not be saved."
2165
+ ((Ke = U.issues[0]) == null ? void 0 : Ke.message) ?? "These settings could not be saved."
2231
2166
  );
2232
- const U = i.variableName !== void 0 || i.scope !== void 0 ? Ur(O, V.input) : void 0;
2233
- if (U)
2167
+ const k = i.variableName !== void 0 || i.scope !== void 0 ? jr(O, M.input) : void 0;
2168
+ if (k)
2234
2169
  return o(
2235
- `Another filter on the same cards is already named "${U}". Choose another name.`
2170
+ `Another filter on the same cards is already named "${k}". Choose another name.`
2236
2171
  );
2237
- const B = [], T = {
2238
- id: V.input.id,
2239
- runtimeScope: V.input.runtimeScope
2172
+ const B = [], q = {
2173
+ id: M.input.id,
2174
+ runtimeScope: M.input.runtimeScope
2240
2175
  };
2241
- let A = {
2176
+ let E = {
2242
2177
  defaultInputValues: O.defaultInputValues,
2243
2178
  dashboardInputValues: {}
2244
2179
  };
2245
- const Y = ((te = i.values) == null ? void 0 : te.target) ?? {}, P = Wr(
2180
+ const re = ((Le = i.values) == null ? void 0 : Le.target) ?? {}, P = Gr(
2246
2181
  l,
2247
2182
  c,
2248
2183
  {
2249
- defaultValueChanged: ($e = i.values) == null ? void 0 : $e.defaultChanged,
2250
- selectionIdentityChanged: (ze = i.values) == null ? void 0 : ze.selectionIdentityChanged,
2251
- ...((je = i.values) == null ? void 0 : je.defaultComparisonSelection) !== void 0 ? {
2184
+ defaultValueChanged: (qe = i.values) == null ? void 0 : qe.defaultChanged,
2185
+ selectionIdentityChanged: ($e = i.values) == null ? void 0 : $e.selectionIdentityChanged,
2186
+ ...((ze = i.values) == null ? void 0 : ze.defaultComparisonSelection) !== void 0 ? {
2252
2187
  defaultComparisonChanged: !0,
2253
2188
  defaultComparisonSelection: i.values.defaultComparisonSelection ?? void 0
2254
2189
  } : {}
2255
2190
  },
2256
- Y,
2191
+ re,
2257
2192
  n.calendar ?? void 0
2258
2193
  );
2259
2194
  if (P.defaultValueChanged || P.selectionIdentityChanged || P.defaultComparisonChanged) {
2260
- const M = Wt({
2261
- state: { ...A, dashboardInputValues: {} },
2262
- input: T,
2195
+ const x = Ut({
2196
+ state: { ...E, dashboardInputValues: {} },
2197
+ input: q,
2263
2198
  settings: P
2264
2199
  });
2265
- A = { ...A, defaultInputValues: M.defaultInputValues }, P.selectionIdentityChanged && B.push({
2200
+ E = { ...E, defaultInputValues: x.defaultInputValues }, P.selectionIdentityChanged && B.push({
2266
2201
  kind: "clear",
2267
- inputId: T.id,
2202
+ inputId: q.id,
2268
2203
  target: P.target
2269
2204
  }), P.defaultValueChanged && B.push({
2270
2205
  kind: "resetToDefault",
2271
- inputId: T.id,
2206
+ inputId: q.id,
2272
2207
  target: P.target,
2273
2208
  ...P.defaultFilterValue ? { filterValue: P.defaultFilterValue } : {}
2274
2209
  }), P.defaultComparisonChanged && B.push({
2275
2210
  kind: "setDefaultComparison",
2276
- inputId: T.id,
2211
+ inputId: q.id,
2277
2212
  target: P.target
2278
2213
  });
2279
2214
  }
2280
- if (i.scope && V.input.runtimeScope !== "shared") {
2281
- const M = Hr(
2215
+ if (i.scope && M.input.runtimeScope !== "shared") {
2216
+ const x = Hr(
2282
2217
  O,
2283
2218
  s,
2284
- V.input,
2285
- A.defaultInputValues
2219
+ M.input,
2220
+ E.defaultInputValues
2286
2221
  );
2287
- A = {
2288
- ...A,
2289
- defaultInputValues: M.defaultInputValues
2222
+ E = {
2223
+ ...E,
2224
+ defaultInputValues: x.defaultInputValues
2290
2225
  }, B.push(
2291
- ...M.dropped.map((x) => ({
2226
+ ...x.dropped.map((I) => ({
2292
2227
  kind: "dropTargetSlot",
2293
- inputId: T.id,
2294
- target: x
2228
+ inputId: q.id,
2229
+ target: I
2295
2230
  }))
2296
2231
  );
2297
2232
  }
2298
- return O = Gr(O, A), {
2233
+ return O = Ur(O, E), {
2299
2234
  ok: !0,
2300
2235
  dashboard: O,
2301
- inputId: V.input.id,
2236
+ inputId: M.input.id,
2302
2237
  valueEffects: B
2303
2238
  };
2304
2239
  }
2305
- function To(e) {
2306
- let t = Ye({
2240
+ function xo(e) {
2241
+ let t = We({
2307
2242
  dashboard: e.before,
2308
2243
  runtimeValues: e.dashboardInputValues,
2309
2244
  calendar: e.calendar
2310
2245
  });
2311
- const i = q(e.after), n = (r) => {
2246
+ const i = $(e.after), n = (r) => {
2312
2247
  var a;
2313
2248
  return (a = i.findFilterInput({ inputId: r })) == null ? void 0 : a.input;
2314
2249
  };
@@ -2319,7 +2254,7 @@ function To(e) {
2319
2254
  case "setDefaultComparison": {
2320
2255
  const a = n(r.inputId);
2321
2256
  if (!a) break;
2322
- t = Wt({
2257
+ t = Ut({
2323
2258
  state: { dashboardInputValues: t },
2324
2259
  input: a,
2325
2260
  settings: {
@@ -2335,7 +2270,7 @@ function To(e) {
2335
2270
  case "dropTargetSlot": {
2336
2271
  const a = n(r.inputId);
2337
2272
  if (!a) break;
2338
- t = Ae(
2273
+ t = Te(
2339
2274
  t,
2340
2275
  a,
2341
2276
  r.target
@@ -2343,22 +2278,22 @@ function To(e) {
2343
2278
  break;
2344
2279
  }
2345
2280
  }
2346
- return Ye({
2281
+ return We({
2347
2282
  dashboard: e.after,
2348
2283
  runtimeValues: t,
2349
2284
  calendar: e.calendar
2350
2285
  });
2351
2286
  }
2352
- function jr(e) {
2287
+ function zr(e) {
2353
2288
  var t;
2354
2289
  return e.kind !== "documentSections" && (e.kind !== "allSheets" || ((t = e.sheetKinds) == null ? void 0 : t.length) === 1 && e.sheetKinds[0] === "dashboard");
2355
2290
  }
2356
- function Ie(e, t, i) {
2291
+ function ve(e, t, i) {
2357
2292
  i !== void 0 && (i === null ? delete e[t] : e[t] = i);
2358
2293
  }
2359
- function Ur(e, t) {
2294
+ function jr(e, t) {
2360
2295
  const i = [
2361
- ...q(e).inputs.map((r) => r.input),
2296
+ ...$(e).inputs.map((r) => r.input),
2362
2297
  ...(Array.isArray(e.inputs) ? e.inputs : []).filter(
2363
2298
  (r) => r.kind === "control"
2364
2299
  )
@@ -2366,21 +2301,21 @@ function Ur(e, t) {
2366
2301
  (r) => r.id !== t.id && r.variableName === t.variableName
2367
2302
  );
2368
2303
  if (!i.length) return;
2369
- const n = et(e, t);
2304
+ const n = Xe(e, t);
2370
2305
  return i.some(
2371
- (r) => [...et(e, r)].some(
2306
+ (r) => [...Xe(e, r)].some(
2372
2307
  (a) => n.has(a)
2373
2308
  )
2374
2309
  ) ? t.variableName : void 0;
2375
2310
  }
2376
2311
  function Hr(e, t, i, n) {
2377
2312
  var u, f;
2378
- const r = [], a = Tt(e), o = (d) => lt(t, d, a), s = (d) => lt(i, d, a), l = [];
2313
+ const r = [], a = Mt(e), o = (d) => ot(t, d, a), s = (d) => ot(i, d, a), l = [];
2379
2314
  if (i.runtimeScope === "perSheet")
2380
2315
  for (const d of a.values())
2381
2316
  l.push({ sheetId: d.sheetId, sheetKind: d.sheetKind });
2382
2317
  else if (i.runtimeScope === "perCard")
2383
- for (const d of pe(e))
2318
+ for (const d of de(e))
2384
2319
  l.push({
2385
2320
  sheetId: d.sheetId,
2386
2321
  cardId: d.cardId,
@@ -2388,65 +2323,65 @@ function Hr(e, t, i, n) {
2388
2323
  });
2389
2324
  else if (i.runtimeScope === "perDocumentSection")
2390
2325
  for (const d of e.sheets ?? [])
2391
- for (const h of ((f = d.document) == null ? void 0 : f.sections) ?? [])
2326
+ for (const g of ((f = d.document) == null ? void 0 : f.sections) ?? [])
2392
2327
  l.push({
2393
2328
  sheetId: d.id,
2394
- sectionId: h.id,
2329
+ sectionId: g.id,
2395
2330
  sheetKind: "document"
2396
2331
  });
2397
2332
  let c = n;
2398
2333
  for (const d of l) {
2399
2334
  if (s(d)) continue;
2400
- const h = !!(c && Ne(c, i, d));
2401
- if (h && (c = Ae(c, i, d)), h || o(d)) {
2335
+ const g = !!(c && we(c, i, d));
2336
+ if (g && (c = Te(c, i, d)), g || o(d)) {
2402
2337
  const { sheetKind: v, ...b } = d;
2403
2338
  r.push(b);
2404
2339
  }
2405
2340
  }
2406
2341
  return { defaultInputValues: c, dropped: r };
2407
2342
  }
2408
- function lt(e, t, i) {
2343
+ function ot(e, t, i) {
2409
2344
  if (e.runtimeScope === "perSheet" && t.sheetId && !t.cardId && !t.sectionId) {
2410
2345
  const n = i.get(t.sheetId);
2411
- return n ? wt(e, n) : !1;
2346
+ return n ? Dt(e, n) : !1;
2412
2347
  }
2413
- return cn(e, t);
2348
+ return ln(e, t);
2414
2349
  }
2415
- function Gr(e, t) {
2350
+ function Ur(e, t) {
2416
2351
  const i = { ...e };
2417
2352
  return t.defaultInputValues && Object.keys(t.defaultInputValues).length ? i.defaultInputValues = t.defaultInputValues : e.defaultInputValues !== void 0 && delete i.defaultInputValues, i;
2418
2353
  }
2419
- function Wr(e, t, i, n, r) {
2420
- const a = !!(i != null && i.defaultValueChanged || i != null && i.selectionIdentityChanged) || ln(e, t);
2354
+ function Gr(e, t, i, n, r) {
2355
+ const a = !!(i != null && i.defaultValueChanged || i != null && i.selectionIdentityChanged) || sn(e, t);
2421
2356
  return {
2422
2357
  ...i,
2423
2358
  target: (i == null ? void 0 : i.target) ?? n,
2424
2359
  defaultValueChanged: a,
2425
- defaultFilterValue: a ? H(t, r) : void 0
2360
+ defaultFilterValue: a ? G(t, r) : void 0
2426
2361
  };
2427
2362
  }
2428
- function Wt(e) {
2363
+ function Ut(e) {
2429
2364
  const { settings: t } = e;
2430
2365
  if (!t) return e.state;
2431
2366
  const i = e.input;
2432
2367
  let n = e.state.dashboardInputValues, r = e.state.defaultInputValues;
2433
- if (t.selectionIdentityChanged && (n = Je(
2368
+ if (t.selectionIdentityChanged && (n = Qe(
2434
2369
  n,
2435
2370
  i,
2436
2371
  t.target,
2437
2372
  { status: "cleared" }
2438
2373
  )), t.defaultValueChanged) {
2439
- const a = Ne(
2374
+ const a = we(
2440
2375
  r,
2441
2376
  i,
2442
2377
  t.target
2443
2378
  );
2444
- let o = Ae(
2379
+ let o = Te(
2445
2380
  r || {},
2446
2381
  i,
2447
2382
  t.target
2448
2383
  );
2449
- t.defaultFilterValue ? o = Xe(
2384
+ t.defaultFilterValue ? o = Ye(
2450
2385
  o,
2451
2386
  i,
2452
2387
  t.target,
@@ -2458,12 +2393,12 @@ function Wt(e) {
2458
2393
  },
2459
2394
  ...a != null && a.comparisonSelection ? { comparisonSelection: a.comparisonSelection } : {}
2460
2395
  }
2461
- ) : a != null && a.comparisonSelection && (o = Xe(
2396
+ ) : a != null && a.comparisonSelection && (o = Ye(
2462
2397
  o,
2463
2398
  i,
2464
2399
  t.target,
2465
2400
  { comparisonSelection: a.comparisonSelection }
2466
- )), r = Object.keys(o).length ? o : void 0, n = Je(
2401
+ )), r = Object.keys(o).length ? o : void 0, n = Qe(
2467
2402
  n,
2468
2403
  i,
2469
2404
  t.target,
@@ -2476,12 +2411,12 @@ function Wt(e) {
2476
2411
  } : { status: "cleared" }
2477
2412
  );
2478
2413
  }
2479
- return t.defaultComparisonChanged && (r = Ze(
2414
+ return t.defaultComparisonChanged && (r = Je(
2480
2415
  r || {},
2481
2416
  i,
2482
2417
  t.target,
2483
2418
  t.defaultComparisonSelection
2484
- ), Object.keys(r).length || (r = void 0), n = Ze(
2419
+ ), Object.keys(r).length || (r = void 0), n = Je(
2485
2420
  n,
2486
2421
  i,
2487
2422
  t.target,
@@ -2492,57 +2427,57 @@ function Wt(e) {
2492
2427
  defaultInputValues: r
2493
2428
  };
2494
2429
  }
2495
- const j = (e) => Array.isArray(e.inputs) ? e.inputs : [];
2496
- function ge(e, t) {
2497
- const i = j(e).find((n) => n.id === t);
2430
+ const H = (e) => Array.isArray(e.inputs) ? e.inputs : [];
2431
+ function pe(e, t) {
2432
+ const i = H(e).find((n) => n.id === t);
2498
2433
  if (!i || i.kind !== "filter")
2499
- throw new N("filter_not_found", `No filter ${t} on this dashboard.`, "Read the outline again and use its filter ids.");
2434
+ throw new A("filter_not_found", `No filter ${t} on this dashboard.`, "Read the outline again and use its filter ids.");
2500
2435
  return i;
2501
2436
  }
2502
- function Qt(e, t) {
2437
+ function Gt(e, t) {
2503
2438
  var i;
2504
- return (i = pe(e).find((n) => n.cardId === t)) == null ? void 0 : i.card.title;
2439
+ return (i = de(e).find((n) => n.cardId === t)) == null ? void 0 : i.card.title;
2505
2440
  }
2506
- function Qr(e, t, i) {
2507
- const n = q(e), r = n.findFilterInput({ inputId: t });
2441
+ function Wr(e, t, i) {
2442
+ const n = $(e), r = n.findFilterInput({ inputId: t });
2508
2443
  return r ? n.reachedCards({ inputId: t }).filter(
2509
2444
  (a) => ["bound", "automatic", "sql", "relationshipApplied"].includes(
2510
- Pi(r.input, a.card, i).reach
2445
+ Ti(r.input, a.card, i).reach
2511
2446
  )
2512
2447
  ).length : 0;
2513
2448
  }
2514
- function Yr(e, t) {
2515
- const i = q(e), n = i.findFilterInput({ inputId: t });
2516
- return n ? i.reachedCards({ inputId: t }).filter((r) => Oi(n.input, r.card) === "relationship").length : 0;
2449
+ function Qr(e, t) {
2450
+ const i = $(e), n = i.findFilterInput({ inputId: t });
2451
+ return n ? i.reachedCards({ inputId: t }).filter((r) => wi(n.input, r.card) === "relationship").length : 0;
2517
2452
  }
2518
- function Yt(e, t) {
2453
+ function Wt(e, t) {
2519
2454
  if (t.scope.kind === "allSheets") return "every sheet";
2520
2455
  if (t.scope.kind !== "sheets") return "its cards";
2521
- const i = [...Tt(e).values()].filter((n) => wt(t, n));
2522
- return Pt(i.map((n) => {
2456
+ const i = [...Mt(e).values()].filter((n) => Dt(t, n));
2457
+ return Tt(i.map((n) => {
2523
2458
  var r, a;
2524
2459
  return ((a = (r = e.sheets) == null ? void 0 : r.find((o) => o.id === n.sheetId)) == null ? void 0 : a.title) ?? n.sheetId;
2525
2460
  }));
2526
2461
  }
2527
- const Jt = (e) => {
2462
+ const Qt = (e) => {
2528
2463
  var t;
2529
2464
  return ((t = e.filter) == null ? void 0 : t.type) === "single" ? "single select" : "multi select";
2530
2465
  };
2531
- function Xt(e) {
2466
+ function Yt(e) {
2532
2467
  var t, i, n;
2533
2468
  if ((i = (t = e.filter) == null ? void 0 : t.defaultValues) != null && i.length) return `default ${e.filter.defaultValues.join(", ")}`;
2534
2469
  if ((n = e.filter) != null && n.defaultDateFilter) return "a default period";
2535
2470
  }
2536
- function se(e) {
2537
- return Oe.plain("filter", e);
2471
+ function ne(e) {
2472
+ return De.plain("filter", e);
2538
2473
  }
2539
- function Jr(e, t) {
2540
- const { input: i } = t, n = j(e);
2474
+ function Yr(e, t) {
2475
+ const { input: i } = t, n = H(e);
2541
2476
  if (n.some((l) => l.id === i.id))
2542
- throw new N("filter_id_taken", `A filter with id ${i.id} is already on this dashboard.`);
2543
- if (q(e).findFilterInput({ filterId: i.filter.id }))
2544
- throw new N("filter_id_taken", `A filter definition with id ${i.filter.id} is already on this dashboard.`);
2545
- const r = { ...e, inputs: [...n, i] }, a = Qr(r, i.id), o = Yr(r, i.id), s = [Jt(i), Xt(i)].filter(Boolean).join(", ");
2477
+ throw new A("filter_id_taken", `A filter with id ${i.id} is already on this dashboard.`);
2478
+ if ($(e).findFilterInput({ filterId: i.filter.id }))
2479
+ throw new A("filter_id_taken", `A filter definition with id ${i.filter.id} is already on this dashboard.`);
2480
+ const r = { ...e, inputs: [...n, i] }, a = Wr(r, i.id), o = Qr(r, i.id), s = [Qt(i), Yt(i)].filter(Boolean).join(", ");
2546
2481
  return {
2547
2482
  dashboard: r,
2548
2483
  created: [
@@ -2554,99 +2489,99 @@ function Jr(e, t) {
2554
2489
  }
2555
2490
  ],
2556
2491
  clauses: [
2557
- se(
2558
- `adds the filter ${$(i.label)} (${s}) to ${Yt(r, i)}; it filters ${a} card${a === 1 ? "" : "s"}${o ? ` and may filter ${o} more through the domain's relationships` : ""}`
2492
+ ne(
2493
+ `adds the filter ${z(i.label)} (${s}) to ${Wt(r, i)}; it filters ${a} card${a === 1 ? "" : "s"}${o ? ` and may filter ${o} more through the domain's relationships` : ""}`
2559
2494
  )
2560
2495
  ]
2561
2496
  };
2562
2497
  }
2563
- function Xr(e, t, i) {
2564
- const n = zr(e, { inputId: t.filterId }, t.settings, {
2498
+ function Jr(e, t, i) {
2499
+ const n = $r(e, { inputId: t.filterId }, t.settings, {
2565
2500
  calendar: i.calendar
2566
2501
  });
2567
2502
  if (!n.ok) {
2568
2503
  const [o] = n.issues;
2569
- throw new N(
2504
+ throw new A(
2570
2505
  (o == null ? void 0 : o.code) === "inputNotFound" ? "filter_not_found" : "filter_invalid",
2571
2506
  (o == null ? void 0 : o.message) ?? "These filter settings could not be saved.",
2572
2507
  (o == null ? void 0 : o.code) === "inputNotFound" ? "Read the outline again and use its filter ids." : "Change the filter settings and propose again.",
2573
2508
  { issues: n.issues }
2574
2509
  );
2575
2510
  }
2576
- const r = j(e).find((o) => o.id === n.inputId), a = j(n.dashboard).find((o) => o.id === n.inputId);
2511
+ const r = H(e).find((o) => o.id === n.inputId), a = H(n.dashboard).find((o) => o.id === n.inputId);
2577
2512
  return {
2578
2513
  dashboard: n.dashboard,
2579
2514
  runtimeEffects: [{ kind: "filter_value", effects: n.valueEffects }],
2580
- clauses: [se(`changes the filter ${$((r == null ? void 0 : r.label) ?? a.label)}: ${Zr(n.dashboard, r, a)}`)]
2515
+ clauses: [ne(`changes the filter ${z((r == null ? void 0 : r.label) ?? a.label)}: ${Xr(n.dashboard, r, a)}`)]
2581
2516
  };
2582
2517
  }
2583
- function Zr(e, t, i) {
2518
+ function Xr(e, t, i) {
2584
2519
  var o, s, l, c, u, f;
2585
2520
  if (!t) return "updates its settings";
2586
2521
  const n = [];
2587
- t.label !== i.label && n.push(`renames it ${$(i.label)}`), (((o = t.filter) == null ? void 0 : o.type) ?? "multiple") !== (((s = i.filter) == null ? void 0 : s.type) ?? "multiple") && n.push(`makes it ${Jt(i)}`);
2522
+ t.label !== i.label && n.push(`renames it ${z(i.label)}`), (((o = t.filter) == null ? void 0 : o.type) ?? "multiple") !== (((s = i.filter) == null ? void 0 : s.type) ?? "multiple") && n.push(`makes it ${Qt(i)}`);
2588
2523
  const r = JSON.stringify([((l = t.filter) == null ? void 0 : l.defaultValues) ?? null, ((c = t.filter) == null ? void 0 : c.defaultDateFilter) ?? null]), a = JSON.stringify([((u = i.filter) == null ? void 0 : u.defaultValues) ?? null, ((f = i.filter) == null ? void 0 : f.defaultDateFilter) ?? null]);
2589
2524
  if (r !== a) {
2590
- const d = Xt(i);
2525
+ const d = Yt(i);
2591
2526
  n.push(d ? `sets its ${d.replace(/^default /, "default to ").replace(/^a default period$/, "default period")}` : "removes its default");
2592
2527
  }
2593
- return JSON.stringify(t.scope) !== JSON.stringify(i.scope) && n.push(`applies it to ${Yt(e, i)}`), n.length ? Pt(n) : "keeps its settings";
2528
+ return JSON.stringify(t.scope) !== JSON.stringify(i.scope) && n.push(`applies it to ${Wt(e, i)}`), n.length ? Tt(n) : "keeps its settings";
2594
2529
  }
2595
- function ea(e, t) {
2596
- const i = ge(e, t);
2530
+ function Zr(e, t) {
2531
+ const i = pe(e, t);
2597
2532
  return {
2598
2533
  dashboard: {
2599
2534
  ...e,
2600
- inputs: j(e).filter((r) => r.id !== t),
2601
- defaultInputValues: dn(e.defaultInputValues, t)
2535
+ inputs: H(e).filter((r) => r.id !== t),
2536
+ defaultInputValues: un(e.defaultInputValues, t)
2602
2537
  },
2603
2538
  runtimeEffects: [{ kind: "input_removed", inputId: t }],
2604
- clauses: [se(`removes the filter ${$(i.label)}`)]
2539
+ clauses: [ne(`removes the filter ${z(i.label)}`)]
2605
2540
  };
2606
2541
  }
2607
- function ta(e, t, i) {
2542
+ function ea(e, t, i) {
2608
2543
  var o;
2609
- if (!pe(e).some((s) => s.cardId === i))
2610
- throw new N("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
2611
- const n = fn(t.scope, i);
2544
+ if (!de(e).some((s) => s.cardId === i))
2545
+ throw new A("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
2546
+ const n = dn(t.scope, i);
2612
2547
  if (!n)
2613
- throw new N(
2548
+ throw new A(
2614
2549
  "filter_invalid",
2615
2550
  "This filter applies to Document sections, so it can't leave out one card.",
2616
2551
  "Change it in the editor."
2617
2552
  );
2618
- const r = { ...t, scope: n }, a = _e({ inputs: [r], dashboardFilters: [] });
2553
+ const r = { ...t, scope: n }, a = Pe({ inputs: [r], dashboardFilters: [] });
2619
2554
  if (!a.ok)
2620
- throw new N("filter_invalid", ((o = a.issues[0]) == null ? void 0 : o.message) ?? "This filter could not be saved.", "Change it in the editor.");
2555
+ throw new A("filter_invalid", ((o = a.issues[0]) == null ? void 0 : o.message) ?? "This filter could not be saved.", "Change it in the editor.");
2621
2556
  return {
2622
2557
  ...e,
2623
- inputs: j(e).map((s) => s.id === t.id ? r : s)
2558
+ inputs: H(e).map((s) => s.id === t.id ? r : s)
2624
2559
  };
2625
2560
  }
2626
- function Zt(e, t, i, n, r) {
2561
+ function Jt(e, t, i, n, r) {
2627
2562
  var u, f;
2628
- const a = ge(e, t);
2629
- if (!pe(e).some((d) => d.cardId === i))
2630
- throw new N("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
2563
+ const a = pe(e, t);
2564
+ if (!de(e).some((d) => d.cardId === i))
2565
+ throw new A("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
2631
2566
  const o = [...((u = a.application) == null ? void 0 : u.cards) ?? []], s = o.findIndex((d) => d.cardId === i);
2632
2567
  s >= 0 ? o[s] = n : o.push(n);
2633
2568
  const l = {
2634
2569
  ...a,
2635
2570
  ...r ? { scope: r } : {},
2636
2571
  application: { ...a.application ?? { kind: "cardMappings" }, cards: o }
2637
- }, c = _e({ inputs: [l], dashboardFilters: [] });
2572
+ }, c = Pe({ inputs: [l], dashboardFilters: [] });
2638
2573
  if (!c.ok)
2639
- throw new N(
2574
+ throw new A(
2640
2575
  "filter_invalid",
2641
2576
  ((f = c.issues[0]) == null ? void 0 : f.message) ?? "This filter mapping could not be saved.",
2642
2577
  "Change the mapping and propose again."
2643
2578
  );
2644
2579
  return {
2645
2580
  ...e,
2646
- inputs: j(e).map((d) => d.id === t ? l : d)
2581
+ inputs: H(e).map((d) => d.id === t ? l : d)
2647
2582
  };
2648
2583
  }
2649
- function ia(e) {
2584
+ function ta(e) {
2650
2585
  switch (e.kind) {
2651
2586
  case "field":
2652
2587
  return `by ${e.field.name}`;
@@ -2656,34 +2591,34 @@ function ia(e) {
2656
2591
  return String(e.kind);
2657
2592
  }
2658
2593
  }
2659
- function na(e, t) {
2660
- const i = ge(e, t.filterId), n = { ...t.binding, kind: "bound", cardId: t.cardId }, r = un(i.scope, t.cardId), a = r !== i.scope;
2594
+ function ia(e, t) {
2595
+ const i = pe(e, t.filterId), n = { ...t.binding, kind: "bound", cardId: t.cardId }, r = cn(i.scope, t.cardId), a = r !== i.scope;
2661
2596
  return {
2662
- dashboard: Zt(e, t.filterId, t.cardId, n, a ? r : void 0),
2597
+ dashboard: Jt(e, t.filterId, t.cardId, n, a ? r : void 0),
2663
2598
  clauses: [
2664
- se(
2665
- `makes ${$(i.label)} filter ${$(Qt(e, t.cardId))} ${ia(n.target)}${a ? ", which it used to leave out" : ""}`
2599
+ ne(
2600
+ `makes ${z(i.label)} filter ${z(Gt(e, t.cardId))} ${ta(n.target)}${a ? ", which it used to leave out" : ""}`
2666
2601
  )
2667
2602
  ]
2668
2603
  };
2669
2604
  }
2670
- function ra(e, t) {
2605
+ function na(e, t) {
2671
2606
  var r;
2672
- const i = ge(e, t.filterId);
2607
+ const i = pe(e, t.filterId);
2673
2608
  return {
2674
- dashboard: ((r = i.filter) == null ? void 0 : r.kind) === "global-date" ? ta(e, i, t.cardId) : Zt(e, t.filterId, t.cardId, { kind: "excluded", cardId: t.cardId }),
2675
- clauses: [se(`stops ${$(i.label)} from filtering ${$(Qt(e, t.cardId))}`)]
2609
+ dashboard: ((r = i.filter) == null ? void 0 : r.kind) === "global-date" ? ea(e, i, t.cardId) : Jt(e, t.filterId, t.cardId, { kind: "excluded", cardId: t.cardId }),
2610
+ clauses: [ne(`stops ${z(i.label)} from filtering ${z(Gt(e, t.cardId))}`)]
2676
2611
  };
2677
2612
  }
2678
- function wo(e, t, i) {
2613
+ function So(e, t, i) {
2679
2614
  let n = e;
2680
2615
  const r = [], a = [], o = [];
2681
2616
  for (const [s, l] of t.entries()) {
2682
2617
  let c;
2683
2618
  try {
2684
- c = aa(n, l, i);
2619
+ c = ra(n, l, i);
2685
2620
  } catch (u) {
2686
- if (!(u instanceof N)) throw u;
2621
+ if (!(u instanceof A)) throw u;
2687
2622
  return {
2688
2623
  ok: !1,
2689
2624
  failedAt: {
@@ -2698,33 +2633,33 @@ function wo(e, t, i) {
2698
2633
  }
2699
2634
  n = c.dashboard, r.push(...c.created ?? []), a.push(...c.runtimeEffects ?? []), o.push({ index: s, changeIndex: l.changeIndex, clauses: c.clauses });
2700
2635
  }
2701
- return { ok: !0, dashboard: n, created: r, descriptions: oa(o), runtimeEffects: a };
2636
+ return { ok: !0, dashboard: n, created: r, descriptions: aa(o), runtimeEffects: a };
2702
2637
  }
2703
- function aa(e, t, i) {
2638
+ function ra(e, t, i) {
2704
2639
  switch (t.op) {
2705
2640
  case "card.add":
2706
- return hn(e, t);
2641
+ return pn(e, t);
2707
2642
  case "card.remove":
2708
- return pn(e, t.cardId);
2643
+ return mn(e, t.cardId);
2709
2644
  case "card.update":
2710
- return mn(e, t.cardId, t.update);
2645
+ return fn(e, t.cardId, t.update);
2711
2646
  case "layout.arrange":
2712
- return Rr(e, t);
2647
+ return Er(e, t);
2713
2648
  case "frame.commit":
2714
- return Lr(e, t.commit);
2649
+ return Kr(e, t.commit);
2715
2650
  case "filter.add":
2716
- return Jr(e, t);
2651
+ return Yr(e, t);
2717
2652
  case "filter.update":
2718
- return Xr(e, t, i);
2653
+ return Jr(e, t, i);
2719
2654
  case "filter.remove":
2720
- return ea(e, t.filterId);
2655
+ return Zr(e, t.filterId);
2721
2656
  case "filter.bind":
2722
- return na(e, t);
2657
+ return ia(e, t);
2723
2658
  case "filter.exclude":
2724
- return ra(e, t);
2659
+ return na(e, t);
2725
2660
  }
2726
2661
  }
2727
- function oa(e) {
2662
+ function aa(e) {
2728
2663
  const t = [];
2729
2664
  for (const i of e) {
2730
2665
  const n = i.changeIndex === void 0 ? void 0 : t.find((r) => r.changeIndex === i.changeIndex);
@@ -2741,21 +2676,21 @@ function oa(e) {
2741
2676
  }
2742
2677
  return t.map(({ clauses: i, ...n }) => ({
2743
2678
  ...n,
2744
- sentence: yn(sa(i))
2679
+ sentence: hn(oa(i))
2745
2680
  }));
2746
2681
  }
2747
- function sa(e) {
2682
+ function oa(e) {
2748
2683
  let t = !1;
2749
2684
  return e.filter((i) => i.kind !== "detached" ? !0 : t ? !1 : (t = !0, !0));
2750
2685
  }
2751
- function ct(e) {
2686
+ function st(e) {
2752
2687
  return Object.fromEntries(
2753
2688
  Object.entries(e).filter(
2754
2689
  (t) => typeof t[1] == "string" && t[1].length > 0
2755
2690
  )
2756
2691
  );
2757
2692
  }
2758
- function re(e) {
2693
+ function ee(e) {
2759
2694
  return e.kind === "semantic" ? [
2760
2695
  e.kind,
2761
2696
  e.domainId,
@@ -2770,18 +2705,18 @@ function re(e) {
2770
2705
  e.tableName
2771
2706
  ].join(":");
2772
2707
  }
2773
- function la(e, t) {
2708
+ function sa(e, t) {
2774
2709
  if (e.kind === "semantic")
2775
2710
  return {
2776
2711
  status: "ready",
2777
- request: ct({
2712
+ request: st({
2778
2713
  connection_id: e.connectionId,
2779
2714
  domain_id: e.domainId,
2780
- dataset_id: Ri(e),
2715
+ dataset_id: Ni(e),
2781
2716
  dataset_name: e.datasetName
2782
2717
  })
2783
2718
  };
2784
- const i = Pn({
2719
+ const i = wn({
2785
2720
  source: e,
2786
2721
  capabilities: t
2787
2722
  });
@@ -2793,7 +2728,7 @@ function la(e, t) {
2793
2728
  message: `Source is missing required field-metadata coordinates: ${i.missing.join(", ")}.`
2794
2729
  } : {
2795
2730
  status: "ready",
2796
- request: ct({
2731
+ request: st({
2797
2732
  connection_id: e.connectionId,
2798
2733
  datamodel_id: "",
2799
2734
  database_name: i.coordinates.databaseName,
@@ -2802,14 +2737,14 @@ function la(e, t) {
2802
2737
  })
2803
2738
  };
2804
2739
  }
2805
- function Po(e, t = /* @__PURE__ */ new Map()) {
2740
+ function Mo(e, t = /* @__PURE__ */ new Map()) {
2806
2741
  const i = /* @__PURE__ */ new Map();
2807
2742
  for (const { card: n } of e) {
2808
- const r = Ot(n), a = r.kind === "config" ? r.executableSources : r.kind === "sql" ? r.pinnedCatalogSources.map((o) => o.source) : [];
2743
+ const r = wt(n), a = r.kind === "config" ? r.executableSources : r.kind === "sql" ? r.pinnedCatalogSources.map((o) => o.source) : [];
2809
2744
  for (const o of a) {
2810
- const s = re(o);
2745
+ const s = ee(o);
2811
2746
  if (!i.has(s)) {
2812
- const l = la(
2747
+ const l = sa(
2813
2748
  o,
2814
2749
  o.connectionId ? t.get(o.connectionId) : void 0
2815
2750
  );
@@ -2823,7 +2758,7 @@ function Po(e, t = /* @__PURE__ */ new Map()) {
2823
2758
  }
2824
2759
  return Array.from(i.values());
2825
2760
  }
2826
- function ca(e, t) {
2761
+ function la(e, t) {
2827
2762
  if (e.kind !== "semantic" || !e.connectionId) return;
2828
2763
  const i = (t.qualifiedEntityName || "").split(".").map((r) => r.trim()).filter(Boolean), n = i.at(-1);
2829
2764
  if (n)
@@ -2835,48 +2770,48 @@ function ca(e, t) {
2835
2770
  ...i.length > 2 ? { databaseName: i.at(-3) } : {}
2836
2771
  };
2837
2772
  }
2838
- function ce(e, t) {
2773
+ function oe(e, t) {
2839
2774
  let i = e.get(t);
2840
2775
  return i || (i = { fields: /* @__PURE__ */ new Map(), fieldConflicts: /* @__PURE__ */ new Set() }, e.set(t, i)), i;
2841
2776
  }
2842
- function ei(e, t) {
2777
+ function Xt(e, t) {
2843
2778
  e.sourceLabel === void 0 ? e.sourceLabel = t : e.sourceLabel !== t && (e.sourceLabelConflict = !0);
2844
2779
  }
2845
- function Te(e, t, i) {
2780
+ function xe(e, t, i) {
2846
2781
  for (const n of t) {
2847
2782
  const r = n == null ? void 0 : n.trim();
2848
2783
  if (!r) continue;
2849
- const a = bt(r), o = e.fields.get(a);
2784
+ const a = gt(r), o = e.fields.get(a);
2850
2785
  o === void 0 ? e.fields.set(a, i) : o !== i && e.fieldConflicts.add(a);
2851
2786
  }
2852
2787
  }
2853
- function ti(e, t) {
2854
- t.sourceLabel && ei(e, t.sourceLabel), t.sourceLabelConflict && (e.sourceLabelConflict = !0);
2788
+ function Zt(e, t) {
2789
+ t.sourceLabel && Xt(e, t.sourceLabel), t.sourceLabelConflict && (e.sourceLabelConflict = !0);
2855
2790
  for (const [i, n] of t.fields)
2856
- Te(e, [i], n);
2791
+ xe(e, [i], n);
2857
2792
  for (const i of t.fieldConflicts ?? [])
2858
2793
  e.fieldConflicts.add(i);
2859
2794
  }
2860
- function ii(e) {
2795
+ function ei(e) {
2861
2796
  return e.kind === "semantic" && (e.label || e.datasetName || "").trim() || void 0;
2862
2797
  }
2863
- function Oo(e, t) {
2798
+ function Do(e, t) {
2864
2799
  var n, r;
2865
2800
  const i = /* @__PURE__ */ new Map();
2866
2801
  for (const [a, o] of e) {
2867
2802
  if (o.status !== "ready") continue;
2868
- const s = t == null ? void 0 : t.get(a), l = s ? ii(s) : void 0;
2803
+ const s = t == null ? void 0 : t.get(a), l = s ? ei(s) : void 0;
2869
2804
  for (const c of o.columns) {
2870
- const u = (n = c.column_name) == null ? void 0 : n.trim(), f = (r = c.label) == null ? void 0 : r.trim(), d = s ? ca(s, c) : void 0;
2871
- d && l && ei(
2872
- ce(i, re(d)),
2805
+ const u = (n = c.column_name) == null ? void 0 : n.trim(), f = (r = c.label) == null ? void 0 : r.trim(), d = s ? la(s, c) : void 0;
2806
+ d && l && Xt(
2807
+ oe(i, ee(d)),
2873
2808
  l
2874
- ), !(!u || !f || f === u) && (Te(
2875
- ce(i, a),
2809
+ ), !(!u || !f || f === u) && (xe(
2810
+ oe(i, a),
2876
2811
  [u, c.sourceField],
2877
2812
  f
2878
- ), d && Te(
2879
- ce(i, re(d)),
2813
+ ), d && xe(
2814
+ oe(i, ee(d)),
2880
2815
  [c.sourceField, u],
2881
2816
  f
2882
2817
  ));
@@ -2884,56 +2819,56 @@ function Oo(e, t) {
2884
2819
  }
2885
2820
  return i;
2886
2821
  }
2887
- function Ao(...e) {
2822
+ function To(...e) {
2888
2823
  const t = /* @__PURE__ */ new Map();
2889
2824
  for (const i of e)
2890
2825
  for (const [n, r] of i ?? [])
2891
- ti(ce(t, n), r);
2826
+ Zt(oe(t, n), r);
2892
2827
  return t;
2893
2828
  }
2894
- function Le(e) {
2829
+ function Ve(e) {
2895
2830
  return [e.databaseName, e.schemaName, e.tableName].filter(Boolean).join(".");
2896
2831
  }
2897
- function ua(e) {
2832
+ function ca(e) {
2898
2833
  return e.split(":").slice(2).filter(Boolean).join(".");
2899
2834
  }
2900
- function ni(e, t) {
2901
- const i = re(t), n = e.get(i);
2835
+ function ti(e, t) {
2836
+ const i = ee(t), n = e.get(i);
2902
2837
  if (t.kind !== "physical") return n;
2903
- const r = `physical:${t.connectionId}:`, a = Le(t), o = {
2838
+ const r = `physical:${t.connectionId}:`, a = Ve(t), o = {
2904
2839
  fields: /* @__PURE__ */ new Map(),
2905
2840
  fieldConflicts: /* @__PURE__ */ new Set()
2906
2841
  };
2907
2842
  let s = !1;
2908
2843
  for (const [l, c] of e)
2909
- l.startsWith(r) && (l !== i && !On(a, ua(l)) || (ti(o, c), s = !0));
2844
+ l.startsWith(r) && (l !== i && !Pn(a, ca(l)) || (Zt(o, c), s = !0));
2910
2845
  return s ? o : void 0;
2911
2846
  }
2912
- function da(e, t) {
2847
+ function ua(e, t) {
2913
2848
  var r;
2914
2849
  if (!e) return;
2915
- const i = bt(t.name), n = ni(e, t.source);
2850
+ const i = gt(t.name), n = ti(e, t.source);
2916
2851
  return n && !((r = n.fieldConflicts) != null && r.has(i)) ? n.fields.get(i) : void 0;
2917
2852
  }
2918
- function fa(e, t) {
2853
+ function da(e, t) {
2919
2854
  if (t.kind === "semantic")
2920
- return ii(t) || t.datasetId || "Dataset";
2921
- const i = e ? ni(e, t) : void 0;
2922
- return i != null && i.sourceLabel && !i.sourceLabelConflict ? i.sourceLabel : Le(t);
2855
+ return ei(t) || t.datasetId || "Dataset";
2856
+ const i = e ? ti(e, t) : void 0;
2857
+ return i != null && i.sourceLabel && !i.sourceLabelConflict ? i.sourceLabel : Ve(t);
2923
2858
  }
2924
- function No(e, t) {
2925
- const i = da(e, t);
2859
+ function wo(e, t) {
2860
+ const i = ua(e, t);
2926
2861
  return {
2927
2862
  name: t.name,
2928
2863
  ...i ? { label: i } : {},
2929
- entityName: fa(e, t.source),
2930
- ...t.source.kind === "physical" ? { qualifiedEntityName: Le(t.source) } : {},
2864
+ entityName: da(e, t.source),
2865
+ ...t.source.kind === "physical" ? { qualifiedEntityName: Ve(t.source) } : {},
2931
2866
  dataType: t.dataType
2932
2867
  };
2933
2868
  }
2934
- function ma(e, t) {
2869
+ function fa(e, t) {
2935
2870
  var r, a;
2936
- const i = (r = t.column_name) == null ? void 0 : r.trim(), n = gt(t.data_type);
2871
+ const i = (r = t.column_name) == null ? void 0 : r.trim(), n = ht(t.data_type);
2937
2872
  if (!(!i || n === "unknown"))
2938
2873
  return {
2939
2874
  kind: "field",
@@ -2945,23 +2880,23 @@ function ma(e, t) {
2945
2880
  }
2946
2881
  };
2947
2882
  }
2948
- function _o(e) {
2883
+ function Po(e) {
2949
2884
  const t = {};
2950
2885
  for (const { card: i } of e.cards) {
2951
- const n = Ot(i), r = n.kind === "config" ? n.executableSources : n.kind === "sql" ? n.pinnedCatalogSources.map((s) => s.source) : [];
2886
+ const n = wt(i), r = n.kind === "config" ? n.executableSources : n.kind === "sql" ? n.pinnedCatalogSources.map((s) => s.source) : [];
2952
2887
  if (!r.length) continue;
2953
2888
  const a = [];
2954
2889
  let o;
2955
2890
  for (const s of r) {
2956
2891
  const l = e.metadataBySourceKey.get(
2957
- re(s)
2892
+ ee(s)
2958
2893
  );
2959
2894
  if (!l || l.status === "unavailable") {
2960
2895
  o = (l == null ? void 0 : l.status) === "unavailable" ? l.message : "Field metadata is not available yet.";
2961
2896
  break;
2962
2897
  }
2963
2898
  for (const c of l.columns) {
2964
- const u = ma(s, c);
2899
+ const u = fa(s, c);
2965
2900
  u && a.push(u);
2966
2901
  }
2967
2902
  }
@@ -2969,20 +2904,20 @@ function _o(e) {
2969
2904
  }
2970
2905
  return t;
2971
2906
  }
2972
- function Eo(e) {
2973
- const { dashboard: t, target: i, calendar: n } = e, r = ai(i), a = ri(t, i, n);
2907
+ function Oo(e) {
2908
+ const { dashboard: t, target: i, calendar: n } = e, r = ni(i), a = ii(t, i, n);
2974
2909
  return {
2975
2910
  value: a,
2976
- mode: Ai(
2977
- Ni(a == null ? void 0 : a.operation) ? a.operation : r.operation
2911
+ mode: Pi(
2912
+ Oi(a == null ? void 0 : a.operation) ? a.operation : r.operation
2978
2913
  )
2979
2914
  };
2980
2915
  }
2981
- function ri(e, t, i) {
2916
+ function ii(e, t, i) {
2982
2917
  var n;
2983
2918
  switch (t.kind) {
2984
2919
  case "dashboardInput": {
2985
- const r = bn({
2920
+ const r = yn({
2986
2921
  dashboard: e,
2987
2922
  input: t.input,
2988
2923
  target: t.scope,
@@ -2997,22 +2932,22 @@ function ri(e, t, i) {
2997
2932
  return r ? gn({
2998
2933
  filterDefinitions: [t.filter],
2999
2934
  filterValues: [r]
3000
- })[0] : H(t.filter, i);
2935
+ })[0] : G(t.filter, i);
3001
2936
  }
3002
2937
  case "definition":
3003
- return H(t.filter, i);
2938
+ return G(t.filter, i);
3004
2939
  }
3005
2940
  }
3006
- function ai(e) {
2941
+ function ni(e) {
3007
2942
  return e.kind === "dashboardInput" ? e.input.filter : e.filter;
3008
2943
  }
3009
- function Ro(e) {
2944
+ function Ao(e) {
3010
2945
  var a;
3011
2946
  const { dashboard: t, filter: i, input: n, scope: r } = e;
3012
- return n && (t.inputs || []).some((o) => o.id === n.id) ? { kind: "dashboardInput", input: n, scope: r } : ((a = q(t).findFilterInput({ filterId: i.id })) == null ? void 0 : a.origin) === "toolbarFilter" ? { kind: "dashboardFilter", filter: i } : { kind: "definition", filter: i };
2947
+ return n && (t.inputs || []).some((o) => o.id === n.id) ? { kind: "dashboardInput", input: n, scope: r } : ((a = $(t).findFilterInput({ filterId: i.id })) == null ? void 0 : a.origin) === "toolbarFilter" ? { kind: "dashboardFilter", filter: i } : { kind: "definition", filter: i };
3013
2948
  }
3014
- function Vo(e) {
3015
- const { dashboard: t, target: i, calendar: n } = e, r = ai(i), a = vn(r), o = pa(t, i);
2949
+ function _o(e) {
2950
+ const { dashboard: t, target: i, calendar: n } = e, r = ni(i), a = bn(r), o = ma(t, i);
3016
2951
  if (!o) return a;
3017
2952
  if (o === "cleared")
3018
2953
  return {
@@ -3020,13 +2955,13 @@ function Vo(e) {
3020
2955
  defaultValues: void 0,
3021
2956
  defaultDateFilter: void 0
3022
2957
  };
3023
- const s = ri(t, i, n);
3024
- if (!s || ha(s, H(r, n)))
2958
+ const s = ii(t, i, n);
2959
+ if (!s || pa(s, G(r, n)))
3025
2960
  return a;
3026
2961
  if (s.valueType === "date") {
3027
- const l = Vi(
2962
+ const l = Ei(
3028
2963
  "relativeMeta" in s ? s.relativeMeta : void 0
3029
- ) ?? ya(r, s, n);
2964
+ ) ?? ha(r, s, n);
3030
2965
  return l ? {
3031
2966
  operation: s.operation,
3032
2967
  defaultValues: r.defaultValues,
@@ -3039,10 +2974,10 @@ function Vo(e) {
3039
2974
  defaultDateFilter: r.defaultDateFilter
3040
2975
  };
3041
2976
  }
3042
- function pa(e, t) {
2977
+ function ma(e, t) {
3043
2978
  var i;
3044
2979
  if (t.kind === "dashboardInput") {
3045
- const n = Ne(
2980
+ const n = we(
3046
2981
  e.defaultInputValues,
3047
2982
  t.input,
3048
2983
  t.scope
@@ -3054,19 +2989,19 @@ function pa(e, t) {
3054
2989
  (n) => n.filterId === t.filter.id
3055
2990
  ) ? "set" : void 0;
3056
2991
  }
3057
- function ha(e, t) {
3058
- return !!(t && e.operation === t.operation && Se(ut(e), ut(t)) && Se(
2992
+ function pa(e, t) {
2993
+ return !!(t && e.operation === t.operation && Ce(lt(e), lt(t)) && Ce(
3059
2994
  "relativeMeta" in e ? e.relativeMeta : void 0,
3060
2995
  "relativeMeta" in t ? t.relativeMeta : void 0
3061
2996
  ));
3062
2997
  }
3063
- function ut(e) {
2998
+ function lt(e) {
3064
2999
  return e.values.map(
3065
3000
  (t) => t instanceof Date ? t.getTime() : t
3066
3001
  );
3067
3002
  }
3068
- function ya(e, t, i) {
3069
- const n = Fn(i == null ? void 0 : i.tz), r = Fe(t.values[0], n);
3003
+ function ha(e, t, i) {
3004
+ const n = vn(i == null ? void 0 : i.tz), r = ye(t.values[0], n);
3070
3005
  if (!r) return;
3071
3006
  const [a, o, s] = new Intl.DateTimeFormat("en-CA", {
3072
3007
  timeZone: n,
@@ -3083,19 +3018,19 @@ function ya(e, t, i) {
3083
3018
  ], c = t.values.map(
3084
3019
  (u) => {
3085
3020
  var f;
3086
- return (f = Fe(u, n)) == null ? void 0 : f.getTime();
3021
+ return (f = ye(u, n)) == null ? void 0 : f.getTime();
3087
3022
  }
3088
3023
  );
3089
3024
  return l.find((u) => {
3090
- const f = H(
3025
+ const f = G(
3091
3026
  { ...e, defaultDateFilter: u },
3092
3027
  i
3093
3028
  );
3094
- return (f == null ? void 0 : f.operation) === t.operation && Se(
3029
+ return (f == null ? void 0 : f.operation) === t.operation && Ce(
3095
3030
  f.values.map(
3096
3031
  (d) => {
3097
- var h;
3098
- return (h = Fe(d, n)) == null ? void 0 : h.getTime();
3032
+ var g;
3033
+ return (g = ye(d, n)) == null ? void 0 : g.getTime();
3099
3034
  }
3100
3035
  ),
3101
3036
  c
@@ -3103,10 +3038,10 @@ function ya(e, t, i) {
3103
3038
  });
3104
3039
  }
3105
3040
  function ga(e) {
3106
- const t = G(e.format);
3041
+ const t = W(e.format);
3107
3042
  if ((t == null ? void 0 : t.type) === "temporal_bucket") {
3108
3043
  if (!e.granularity) return {};
3109
- const i = Hi(
3044
+ const i = ji(
3110
3045
  t,
3111
3046
  e.granularity
3112
3047
  );
@@ -3123,34 +3058,34 @@ function ga(e) {
3123
3058
  ...t ? { format: t } : {}
3124
3059
  };
3125
3060
  }
3126
- function ba(e, t) {
3061
+ function ya(e, t) {
3127
3062
  var r, a;
3128
3063
  const i = ((r = e.nativeDataType) == null ? void 0 : r.trim()) || ((a = e.native_data_type) == null ? void 0 : a.trim());
3129
3064
  return i || ((e.dataTypeProvenance || t) === "physical" ? e.data_type : void 0);
3130
3065
  }
3131
- function oi(e) {
3066
+ function ri(e) {
3132
3067
  const t = (e.label ?? "").trim();
3133
3068
  return t ? e.derivedLabel === void 0 ? !0 : t !== e.derivedLabel.trim() : !1;
3134
3069
  }
3135
- function qe(e) {
3136
- return oi(e) ? e.label.trim() : e.name || (e.label ?? "").trim();
3070
+ function ke(e) {
3071
+ return ri(e) ? e.label.trim() : e.name || (e.label ?? "").trim();
3137
3072
  }
3138
- function dt(e) {
3139
- return qe(e).toLowerCase().trim();
3073
+ function ct(e) {
3074
+ return ke(e).toLowerCase().trim();
3140
3075
  }
3141
- function va(e, t) {
3142
- return dt(e).localeCompare(dt(t), void 0, {
3076
+ function ba(e, t) {
3077
+ return ct(e).localeCompare(ct(t), void 0, {
3143
3078
  numeric: !0,
3144
3079
  sensitivity: "base"
3145
3080
  });
3146
3081
  }
3147
- function ne(e) {
3082
+ function Z(e) {
3148
3083
  return String(e ?? "").toLowerCase().replace(/[\s_\-.]+/g, "");
3149
3084
  }
3150
- function ko(e, t) {
3151
- const i = ne(t);
3085
+ function No(e, t) {
3086
+ const i = Z(t);
3152
3087
  return i ? [
3153
- qe(e),
3088
+ ke(e),
3154
3089
  e.label,
3155
3090
  e.name,
3156
3091
  e.description,
@@ -3159,21 +3094,21 @@ function ko(e, t) {
3159
3094
  e.entityName && e.name ? `${e.entityName}.${e.name}` : "",
3160
3095
  e.dataType
3161
3096
  ].some(
3162
- (r) => !!r && ne(r).includes(i)
3097
+ (r) => !!r && Z(r).includes(i)
3163
3098
  ) : !0;
3164
3099
  }
3165
- function ft(e, t) {
3166
- const i = ne(t);
3100
+ function ut(e, t) {
3101
+ const i = Z(t);
3167
3102
  if (!i) return 0;
3168
- const n = ne(qe(e));
3169
- return n.startsWith(i) ? 0 : n.includes(i) ? 1 : [e.label, e.name].filter(Boolean).map(ne).some((a) => a.includes(i)) ? 2 : 3;
3103
+ const n = Z(ke(e));
3104
+ return n.startsWith(i) ? 0 : n.includes(i) ? 1 : [e.label, e.name].filter(Boolean).map(Z).some((a) => a.includes(i)) ? 2 : 3;
3170
3105
  }
3171
- function Bo(e, t, i) {
3172
- return ft(e, i) - ft(t, i) || va(e, t);
3106
+ function Eo(e, t, i) {
3107
+ return ut(e, i) - ut(t, i) || ba(e, t);
3173
3108
  }
3174
- function Fa(e, t) {
3109
+ function va(e, t) {
3175
3110
  var a;
3176
- const i = e.type === "dataset" ? (a = t.find((o) => o.entityName)) == null ? void 0 : a.entityName : void 0, n = i || e.name, r = tt(
3111
+ const i = e.type === "dataset" ? (a = t.find((o) => o.entityName)) == null ? void 0 : a.entityName : void 0, n = i || e.name, r = Ze(
3177
3112
  e.type === "dataset" && i ? { ...e, name: i } : e
3178
3113
  );
3179
3114
  return {
@@ -3184,13 +3119,13 @@ function Fa(e, t) {
3184
3119
  description: e.description,
3185
3120
  qualifiedEntityName: r,
3186
3121
  columns: t.map((o) => {
3187
- var h;
3188
- const s = e.type === "dataset" ? o.entityName || n : e.name, l = o.qualifiedEntityName || (e.type === "dataset" && s ? tt({ ...e, name: s }) : r), c = ba(
3122
+ var g;
3123
+ const s = e.type === "dataset" ? o.entityName || n : e.name, l = o.qualifiedEntityName || (e.type === "dataset" && s ? Ze({ ...e, name: s }) : r), c = ya(
3189
3124
  o,
3190
3125
  e.type === "dataset" ? "semantic" : "physical"
3191
- ), u = (h = o.label) != null && h.trim() ? o.label : void 0, f = u ? void 0 : Cn(o.column_name);
3126
+ ), u = (g = o.label) != null && g.trim() ? o.label : void 0, f = u ? void 0 : Fn(o.column_name);
3192
3127
  return {
3193
- id: In(s, o.column_name),
3128
+ id: Cn(s, o.column_name),
3194
3129
  name: o.column_name,
3195
3130
  qualifiedFieldName: o.qualifiedFieldName || o.column_name,
3196
3131
  dataType: o.data_type,
@@ -3220,17 +3155,17 @@ function Fa(e, t) {
3220
3155
  })
3221
3156
  };
3222
3157
  }
3223
- function Ca(e) {
3158
+ function Fa(e) {
3224
3159
  return e.map((t) => ({
3225
3160
  ...t,
3226
- id: At({ ...t }),
3161
+ id: Pt({ ...t }),
3227
3162
  fieldScope: "domain"
3228
3163
  }));
3229
3164
  }
3230
- function Ia(e) {
3165
+ function Ca(e) {
3231
3166
  return e.flatMap(
3232
3167
  (t) => t.columns.map((i) => {
3233
- const n = oi(i) ? i.label : void 0, r = n ? void 0 : i.derivedLabel ?? Sn(i.name), a = n ?? r ?? i.name;
3168
+ const n = ri(i) ? i.label : void 0, r = n ? void 0 : i.derivedLabel ?? xn(i.name), a = n ?? r ?? i.name;
3234
3169
  return {
3235
3170
  ...i,
3236
3171
  id: i.id || `${t.entityId}-${i.name}`,
@@ -3248,33 +3183,33 @@ function Ia(e) {
3248
3183
  })
3249
3184
  );
3250
3185
  }
3251
- function Ko(e) {
3252
- const t = e.map((n) => Fa(n.target, n.columns || [])).filter((n) => {
3186
+ function Ro(e) {
3187
+ const t = e.map((n) => va(n.target, n.columns || [])).filter((n) => {
3253
3188
  var r;
3254
3189
  return ((r = n == null ? void 0 : n.columns) == null ? void 0 : r.length) > 0;
3255
- }), i = Ca(e.flatMap((n) => n.calculatedFields || []));
3190
+ }), i = Fa(e.flatMap((n) => n.calculatedFields || []));
3256
3191
  if (i.length > 0) {
3257
3192
  const n = /* @__PURE__ */ new Map();
3258
3193
  i.forEach((r) => {
3259
- const a = At(r);
3194
+ const a = Pt(r);
3260
3195
  n.has(a) || n.set(a, r);
3261
3196
  }), t.unshift({
3262
- entityId: xn,
3197
+ entityId: In,
3263
3198
  entityType: "dataset",
3264
- entityName: it,
3199
+ entityName: et,
3265
3200
  label: "Calculated Fields",
3266
3201
  description: "Domain-level calculated metrics and dimensions",
3267
- qualifiedEntityName: it,
3202
+ qualifiedEntityName: et,
3268
3203
  columns: Array.from(n.values())
3269
3204
  });
3270
3205
  }
3271
- return { columnGroups: t, columns: Ia(t) };
3206
+ return { columnGroups: t, columns: Ca(t) };
3272
3207
  }
3273
- function Lo(e, t) {
3208
+ function Vo(e, t) {
3274
3209
  const i = e.answers.relationshipIds;
3275
3210
  return !i || !t ? !i && !t : i.length === t.length && i.every((n, r) => t[r] === n);
3276
3211
  }
3277
- const xa = /* @__PURE__ */ new Set([
3212
+ const Ia = /* @__PURE__ */ new Set([
3278
3213
  "dataset_not_reachable",
3279
3214
  "field_not_resolvable",
3280
3215
  "missing_metadata",
@@ -3286,15 +3221,15 @@ const xa = /* @__PURE__ */ new Set([
3286
3221
  function L(e) {
3287
3222
  return !!e && typeof e == "object" && !Array.isArray(e);
3288
3223
  }
3289
- function Sa(e) {
3224
+ function xa(e) {
3290
3225
  if (L(e))
3291
3226
  switch (e.status) {
3292
3227
  case "applied": {
3293
- const t = Nt(e.route);
3228
+ const t = Ot(e.route);
3294
3229
  return t ? { status: "applied", route: t } : void 0;
3295
3230
  }
3296
3231
  case "skipped":
3297
- return typeof e.reason == "string" && xa.has(e.reason) ? { status: "skipped", reason: e.reason } : void 0;
3232
+ return typeof e.reason == "string" && Ia.has(e.reason) ? { status: "skipped", reason: e.reason } : void 0;
3298
3233
  case "needsPath":
3299
3234
  return { status: "needsPath" };
3300
3235
  case "blocked":
@@ -3307,22 +3242,22 @@ function Sa(e) {
3307
3242
  return;
3308
3243
  }
3309
3244
  }
3310
- function si(e) {
3245
+ function ai(e) {
3311
3246
  if (e !== void 0)
3312
3247
  return Array.isArray(e) && e.length > 0 && e.every((t) => typeof t == "string" && t.length > 0) ? e : null;
3313
3248
  }
3314
- function Ma(e) {
3249
+ function Sa(e) {
3315
3250
  if (!L(e)) return;
3316
- const t = Nt(e.route), i = e.target;
3317
- if (!(!t || !L(i) || i.kind !== "relationship" || !L(i.field) || typeof i.field.name != "string" || !L(i.field.source) || i.field.source.kind !== "semantic" || !si(i.relationshipIds)))
3251
+ const t = Ot(e.route), i = e.target;
3252
+ if (!(!t || !L(i) || i.kind !== "relationship" || !L(i.field) || typeof i.field.name != "string" || !L(i.field.source) || i.field.source.kind !== "semantic" || !ai(i.relationshipIds)))
3318
3253
  return { route: t, target: i };
3319
3254
  }
3320
- function qo(e) {
3255
+ function ko(e) {
3321
3256
  if (!L(e) || !Array.isArray(e.previews)) return { previews: [] };
3322
3257
  const t = [];
3323
3258
  for (const n of e.previews) {
3324
3259
  if (!L(n) || typeof n.cardId != "string" || !n.cardId || !L(n.answers)) continue;
3325
- const r = si(n.answers.relationshipIds), a = Sa(n.outcome), o = Array.isArray(n.paths) ? n.paths.map(Ma) : [];
3260
+ const r = ai(n.answers.relationshipIds), a = xa(n.outcome), o = Array.isArray(n.paths) ? n.paths.map(Sa) : [];
3326
3261
  r === null || !a || !o.every(Boolean) || a.status === "needsPath" && o.length < 2 || t.push({
3327
3262
  cardId: n.cardId,
3328
3263
  answers: r ? { relationshipIds: r } : {},
@@ -3333,22 +3268,22 @@ function qo(e) {
3333
3268
  const i = L(e.manageRelationships) && typeof e.manageRelationships.href == "string" ? { href: e.manageRelationships.href } : void 0;
3334
3269
  return { previews: t, ...i ? { manageRelationships: i } : {} };
3335
3270
  }
3336
- const ue = (e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.name) || "";
3337
- function Da(e) {
3271
+ const se = (e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.name) || "";
3272
+ function Ma(e) {
3338
3273
  return !e || /s$/i.test(e) ? e : /[^aeiou]y$/i.test(e) ? `${e.slice(0, -1)}ies` : `${e}s`;
3339
3274
  }
3340
- function $o(e) {
3275
+ function Bo(e) {
3341
3276
  if (e.direction === "to_many") {
3342
- const i = ue(e.matchingDataset ?? e.datasets[e.datasets.length - 1]);
3343
- return `${e.base ? Da(ue(e.base)) : "Rows"} with at least one matching ${i}`;
3277
+ const i = se(e.matchingDataset ?? e.datasets[e.datasets.length - 1]);
3278
+ return `${e.base ? Ma(se(e.base)) : "Rows"} with at least one matching ${i}`;
3344
3279
  }
3345
- return `through ${(e.datasets.length > 1 ? e.datasets.slice(0, -1) : e.datasets).map(ue).join(", ")}`;
3280
+ return `through ${(e.datasets.length > 1 ? e.datasets.slice(0, -1) : e.datasets).map(se).join(", ")}`;
3346
3281
  }
3347
- const zo = "The relationship this card used changed; choose it again";
3348
- function jo(e, t) {
3282
+ const Ko = "The relationship this card used changed; choose it again";
3283
+ function Lo(e, t) {
3349
3284
  switch (e) {
3350
3285
  case "relationship_missing":
3351
- return t ? `Not related to ${ue(t)}` : "Not related to this card";
3286
+ return t ? `Not related to ${se(t)}` : "Not related to this card";
3352
3287
  case "relationship_ambiguous":
3353
3288
  return "Connects through more than one path";
3354
3289
  case "relationship_unsupported":
@@ -3363,120 +3298,114 @@ function jo(e, t) {
3363
3298
  }
3364
3299
  }
3365
3300
  export {
3366
- bo as $,
3367
- qe as A,
3368
- Sr as B,
3369
- br as C,
3370
- Ga as D,
3371
- Mo as E,
3372
- xo as F,
3373
- z as G,
3374
- fe as H,
3375
- Ja as I,
3376
- Br as J,
3377
- Kr as K,
3378
- Io as L,
3379
- To as M,
3380
- Er as N,
3381
- Kn as O,
3382
- kn as P,
3383
- Bn as Q,
3384
- zo as R,
3385
- Ht as S,
3386
- zn as T,
3387
- $n as U,
3388
- Ee as V,
3389
- no as W,
3390
- to as X,
3391
- co as Y,
3392
- Lt as Z,
3393
- xr as _,
3394
- wo as a,
3395
- lo as a0,
3396
- ar as a1,
3397
- Ve as a2,
3398
- ro as a3,
3399
- mo as a4,
3400
- ho as a5,
3401
- po as a6,
3402
- Rt as a7,
3403
- pr as a8,
3404
- Mr as a9,
3405
- cr as aA,
3406
- eo as aB,
3407
- qr as aC,
3408
- ko as aD,
3409
- oi as aE,
3410
- No as aF,
3411
- fa as aG,
3412
- re as aH,
3413
- Le as aI,
3414
- Po as aJ,
3415
- _o as aK,
3416
- Oo as aL,
3417
- la as aM,
3418
- ba as aN,
3419
- Vo as aO,
3420
- Ro as aP,
3421
- Ao as aQ,
3422
- da as aR,
3423
- So as aS,
3424
- Vr as aT,
3425
- mr as aU,
3426
- Bo as aV,
3427
- ft as aW,
3428
- ga as aX,
3429
- ne as aY,
3430
- Xa as aZ,
3431
- ae as aa,
3432
- fo as ab,
3433
- yo as ac,
3434
- Qn as ad,
3435
- rr as ae,
3436
- vr as af,
3437
- Fr as ag,
3438
- go as ah,
3439
- De as ai,
3440
- hr as aj,
3441
- so as ak,
3442
- ao as al,
3443
- oo as am,
3444
- Zn as an,
3445
- Xn as ao,
3446
- Dr as ap,
3447
- Me as aq,
3448
- Za as ar,
3449
- Vn as as,
3450
- Qa as at,
3451
- qn as au,
3452
- io as av,
3453
- me as aw,
3454
- oe as ax,
3455
- Ya as ay,
3456
- uo as az,
3457
- Do as b,
3458
- Co as c,
3459
- ma as d,
3460
- $r as e,
3461
- zr as f,
3462
- Wa as g,
3463
- En as h,
3464
- Tr as i,
3465
- Pr as j,
3466
- Or as k,
3467
- vo as l,
3468
- Ar as m,
3469
- Nr as n,
3470
- Fo as o,
3301
+ mr as $,
3302
+ ke as A,
3303
+ xr as B,
3304
+ yr as C,
3305
+ Ha as D,
3306
+ Co as E,
3307
+ vo as F,
3308
+ j as G,
3309
+ ce as H,
3310
+ Qa as I,
3311
+ kr as J,
3312
+ Br as K,
3313
+ bo as L,
3314
+ xo as M,
3315
+ Nr as N,
3316
+ Bn as O,
3317
+ Vn as P,
3318
+ kn as Q,
3319
+ Ko as R,
3320
+ po as S,
3321
+ ro as T,
3322
+ rr as U,
3323
+ _e as V,
3324
+ eo as W,
3325
+ lo as X,
3326
+ uo as Y,
3327
+ co as Z,
3328
+ Nt as _,
3329
+ So as a,
3330
+ Sr as a0,
3331
+ te as a1,
3332
+ so as a2,
3333
+ fo as a3,
3334
+ Wn as a4,
3335
+ nr as a5,
3336
+ br as a6,
3337
+ vr as a7,
3338
+ mo as a8,
3339
+ Ie as a9,
3340
+ da as aA,
3341
+ ee as aB,
3342
+ Ve as aC,
3343
+ Mo as aD,
3344
+ Po as aE,
3345
+ Do as aF,
3346
+ sa as aG,
3347
+ ya as aH,
3348
+ _o as aI,
3349
+ Ao as aJ,
3350
+ To as aK,
3351
+ ua as aL,
3352
+ Fo as aM,
3353
+ Rr as aN,
3354
+ fr as aO,
3355
+ Eo as aP,
3356
+ ut as aQ,
3357
+ ga as aR,
3358
+ Z as aS,
3359
+ Ya as aT,
3360
+ pr as aa,
3361
+ no as ab,
3362
+ to as ac,
3363
+ io as ad,
3364
+ Xn as ae,
3365
+ Jn as af,
3366
+ ao as ag,
3367
+ jt as ah,
3368
+ $n as ai,
3369
+ Ja as aj,
3370
+ Mr as ak,
3371
+ Rn as al,
3372
+ Ga as am,
3373
+ Ln as an,
3374
+ Oe as ao,
3375
+ Xa as ap,
3376
+ Za as aq,
3377
+ ue as ar,
3378
+ ie as as,
3379
+ Wa as at,
3380
+ oo as au,
3381
+ lr as av,
3382
+ Lr as aw,
3383
+ No as ax,
3384
+ ri as ay,
3385
+ wo as az,
3386
+ Io as b,
3387
+ yo as c,
3388
+ fa as d,
3389
+ qr as e,
3390
+ $r as f,
3391
+ Ua as g,
3392
+ Nn as h,
3393
+ Dr as i,
3394
+ wr as j,
3395
+ Pr as k,
3396
+ ho as l,
3397
+ Or as m,
3398
+ Ar as n,
3399
+ go as o,
3471
3400
  _r as p,
3472
- Fa as q,
3473
- Eo as r,
3474
- Ca as s,
3475
- Ia as t,
3476
- Ko as u,
3477
- Lo as v,
3478
- qo as w,
3479
- Da as x,
3480
- $o as y,
3481
- jo as z
3401
+ va as q,
3402
+ Oo as r,
3403
+ Fa as s,
3404
+ Ca as t,
3405
+ Ro as u,
3406
+ Vo as v,
3407
+ ko as w,
3408
+ Ma as x,
3409
+ Bo as y,
3410
+ Lo as z
3482
3411
  };