react-semaphor 0.1.583 → 0.1.585

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 (95) hide show
  1. package/dist/analytics-protocol/index.js +470 -428
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +7 -7
  4. package/dist/briefings/index.js +4 -4
  5. package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
  6. package/dist/chunks/{assistant-chat-D3fm5qod.js → assistant-chat-BdbLmAnK.js} +12 -12
  7. package/dist/chunks/{bookmark-impact-Dpxl46Wd.js → bookmark-impact-BhT3k379.js} +2 -2
  8. package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-CL4WEpgB.js} +22 -22
  9. package/dist/chunks/{card-filter-builder-IxkFVxy2.js → card-filter-builder-CEcKF6Fw.js} +124 -124
  10. package/dist/chunks/comparison-window-caption-CoART8BC.js +1254 -0
  11. package/dist/chunks/{dashboard-BMqG98fc.js → dashboard-MPku_x1M.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-D45YfCkm.js → dashboard-briefing-launcher-CkFNlkr1.js} +13 -13
  13. package/dist/chunks/{dashboard-controls-DOvZRfof.js → dashboard-controls-Clt4ovXS.js} +84 -84
  14. package/dist/chunks/{dashboard-json-B_4TqF_o.js → dashboard-json-DSmXazIg.js} +4 -4
  15. package/dist/chunks/{dates-44_rcNj2.js → dates-CYZW9owO.js} +8 -8
  16. package/dist/chunks/{edit-dashboard-visual-BBPKJWSe.js → edit-dashboard-visual-Dn2ECRbX.js} +2752 -2687
  17. package/dist/chunks/filter-line-Cu2u1K36.js +131 -0
  18. package/dist/chunks/{filter-reach-copy-DWPq4Swi.js → filter-reach-copy-CmJpPa4G.js} +1745 -1326
  19. package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-xefXzZlf.js} +6 -6
  20. package/dist/chunks/{index-DPRzcFp0.js → index-0WYn6RMz.js} +37 -37
  21. package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
  22. package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
  23. package/dist/chunks/{matrix-analytical-definition-D_HgptqZ.js → matrix-analytical-definition-QjBgUYhP.js} +382 -544
  24. package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
  26. package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-ZmurmEIs.js} +3 -3
  27. package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
  28. package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
  29. package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-CdeTU96P.js} +1 -1
  30. package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-Bx_BCu-7.js} +1029 -1010
  31. package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-Bvs6Uq3v.js} +1 -1
  32. package/dist/chunks/raw-temporal-value-DH-feMc2.js +322 -0
  33. package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-BRaeufEi.js} +63 -62
  34. package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
  35. package/dist/chunks/{resolve-dashboard-input-context-BfT8y5xL.js → resolve-dashboard-input-context-Cn9jumxl.js} +4924 -4823
  36. package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
  37. package/dist/chunks/{saved-dashboard-context-DH91-2B9.js → saved-dashboard-context-CfqkUMzR.js} +6 -6
  38. package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
  39. package/dist/chunks/{semaphor-ready-indicator-Cg_Z2IDc.js → semaphor-ready-indicator-D6WjdTGl.js} +48377 -47074
  40. package/dist/chunks/{shelf-drop-preview-context-C7-BgcP4.js → shelf-drop-preview-context-Bbbrr9u4.js} +5 -5
  41. package/dist/chunks/{stored-dashboard-BpyCiE49.js → stored-dashboard-sPkTjxYf.js} +210 -221
  42. package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
  43. package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Dmtqi5NV.js} +1 -1
  44. package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
  45. package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
  46. package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
  47. package/dist/chunks/{variable-draft-D8GFhAkm.js → variable-draft-D1RotIEG.js} +4 -4
  48. package/dist/dashboard/index.js +2 -2
  49. package/dist/dashboard-authoring/index.js +670 -647
  50. package/dist/format-utils/index.js +218 -215
  51. package/dist/index.js +234 -231
  52. package/dist/report-runtime-context/index.js +1 -1
  53. package/dist/style.css +1 -1
  54. package/dist/surfboard/index.js +2 -2
  55. package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
  56. package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
  57. package/dist/types/index.js +5 -5
  58. package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
  59. package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
  60. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
  61. package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
  62. package/dist/types/lib/see-records/click.d.ts +79 -0
  63. package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
  64. package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
  65. package/dist/types/lib/types/common-types.d.ts +6 -0
  66. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
  67. package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
  68. package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
  69. package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  72. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
  73. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
  75. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
  76. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  77. package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
  78. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +191 -0
  79. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +14 -0
  80. package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
  81. package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
  82. package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
  83. package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
  84. package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +49 -0
  85. package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
  86. package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +94 -0
  87. package/dist/types/shared/format-utils/semantic-format.d.ts +0 -1
  88. package/dist/types/shared/format-utils/temporal-bucket.d.ts +20 -0
  89. package/dist/types/shared/temporal/calendar-periods.d.ts +15 -0
  90. package/dist/types/shared/temporal/raw-temporal-equality.d.ts +14 -0
  91. package/dist/types/shared/usage-events/envelope.d.ts +4 -4
  92. package/package.json +1 -1
  93. package/dist/chunks/comparison-window-caption-sRFtnX1q.js +0 -1371
  94. package/dist/chunks/raw-temporal-value-DdT0s47W.js +0 -159
  95. package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
@@ -1,1371 +0,0 @@
1
- import { av as Ye, i as Ze, k as j, n as Je, L as De, aw as ie, ax as Ae, ay as Qe, az as ke, aA as Ne, ai as et, an as tt, aj as rt, a as nt, b as B, a0 as pe, ac as ot, _ as at, ad as st, f as it, q as he, t as ct, S as be, U as lt, W as ut, a1 as mt, aB as A, aC as U } from "./pivot-result-contract-expectations-8tuNjRvG.js";
2
- import { h as W, e as dt, p as ft, k as pt } from "./export-file-format-C-tJsxsf.js";
3
- import { aU as K, a5 as ht, m as G, aT as bt, j as yt, r as Y } from "./validators-B8fpdinG.js";
4
- import "./matrix-operation-contract-DCVinw1o.js";
5
- import "./analytics-base-schemas-BaIQrEzX.js";
6
- import { readPdfCapacityFacts as gt, PDF_SAFETY_LIMIT_EXCEEDED as ce, PDF_CAPACITY as D, PDF_NUMBER_COLUMN_TOO_WIDE as Re, getUtf8ByteLength as wt, FAST_PDF_POLICY as Ct, isPdfCapacityRefusalCode as vt } from "../pdf-export-policy/index.js";
7
- import { p as _t } from "./pivot-header-presentation-MvvlxtIB.js";
8
- import { c as xt, b as ye } from "./pivot-result-identity-B89X5xjb.js";
9
- import { v as Tt, c as Et } from "./raw-temporal-value-DdT0s47W.js";
10
- import { a as Oe } from "./metric-comparison-n9NsIa-2.js";
11
- import "../value-format-preferences/index.js";
12
- function $t(e, t, r) {
13
- const n = {
14
- ...t,
15
- locale: t.locale ?? r
16
- };
17
- if (n.type === "number")
18
- return j(e, n);
19
- const { prefix: o, suffix: c, ...s } = n;
20
- return `${o ?? ""}${j(e, {
21
- ...s,
22
- negativeStyle: n.type === "currency" ? n.negativeStyle : "minus"
23
- })}${c ?? ""}`;
24
- }
25
- function ee(e, t, r) {
26
- return e === null ? { value: e, text: null } : !t || !Ze(t) && t.type !== "duration" ? {
27
- value: e,
28
- text: j(e, { type: "number", locale: r })
29
- } : t.type === "duration" ? {
30
- value: e,
31
- text: Je(e, {
32
- inputUnit: t.inputUnit,
33
- outputStyle: t.outputStyle,
34
- largestUnit: t.largestUnit,
35
- smallestUnit: t.smallestUnit,
36
- maxUnits: t.maxUnits,
37
- prefix: t.prefix,
38
- suffix: t.suffix,
39
- negativeInParentheses: t.negativeStyle === "parentheses"
40
- })
41
- } : { value: e, text: $t(e, t, r) };
42
- }
43
- function ge(e, t, r, n) {
44
- return e === null ? { value: e, text: null } : n === "percent" ? {
45
- value: e,
46
- text: j(e, {
47
- type: "percent",
48
- locale: r,
49
- minimumFractionDigits: t,
50
- maximumFractionDigits: t,
51
- percentValueMode: "fraction"
52
- })
53
- } : {
54
- value: e,
55
- text: j(e, {
56
- type: "number",
57
- locale: r,
58
- minimumFractionDigits: t,
59
- maximumFractionDigits: t,
60
- suffix: "×"
61
- })
62
- };
63
- }
64
- function we(e, t) {
65
- if (e === void 0) return t;
66
- if (!Number.isInteger(e) || e < 0 || e > 6)
67
- throw new RangeError("Comparison precision must be an integer from 0 to 6.");
68
- return e;
69
- }
70
- function Or(e, t) {
71
- const r = {
72
- mode: t.displayMode,
73
- current: ee(
74
- e.currentValue,
75
- t.metricFormat,
76
- t.locale
77
- ),
78
- comparison: ee(
79
- e.comparisonValue,
80
- t.metricFormat,
81
- t.locale
82
- )
83
- };
84
- return (t.displayMode === "difference" || t.displayMode === "both") && (r.difference = ee(
85
- e.delta,
86
- Ye(t.metricFormat),
87
- t.locale
88
- )), (t.displayMode === "percent_change" || t.displayMode === "both") && (r.percentChange = ge(
89
- e.percentChange,
90
- we(t.precision, 1),
91
- t.locale,
92
- "percent"
93
- )), t.displayMode === "ratio" && (r.ratio = ge(
94
- e.ratio,
95
- we(t.precision, 2),
96
- t.locale,
97
- "ratio"
98
- )), r;
99
- }
100
- const Ft = /* @__PURE__ */ new Set(["second", "minute", "hour", "day", "month"]);
101
- function St(e) {
102
- const { presentation: t } = e;
103
- return e.formattedValues ? (t == null ? void 0 : t.kind) === "text" || (t == null ? void 0 : t.kind) === "measure" && t.format.type === "duration" ? "text" : (t == null ? void 0 : t.kind) === "temporal_bucket" ? Ft.has(t.grain) ? "date" : "text" : (t == null ? void 0 : t.kind) === "datetime" ? "date" : e.dataType === "number" ? "number" : e.dataType === "boolean" ? "boolean" : e.dataType === "unknown" ? "by_value" : "text" : "by_value";
104
- }
105
- function Lt(e) {
106
- const t = (o, c) => Number.isInteger(o) ? Math.min(20, Math.max(0, o)) : c, r = t(e.minimumFractionDigits, 0), n = Math.max(r, t(e.maximumFractionDigits, 2));
107
- return n === 0 ? "" : `.${"0".repeat(n)}`;
108
- }
109
- function te(e) {
110
- return `"${e.replace(/"/g, "")}"`;
111
- }
112
- function Pt(e) {
113
- let t;
114
- try {
115
- t = new Intl.NumberFormat(e.locale ?? "en-US", {
116
- style: "currency",
117
- currency: e.currency || "USD"
118
- }).formatToParts(1);
119
- } catch {
120
- return;
121
- }
122
- const r = t.findIndex((c) => c.type === "currency"), n = t.findIndex((c) => c.type === "integer");
123
- if (r < 0 || n < 0) return;
124
- const o = (c, s) => t.slice(c, s).filter((l) => l.type === "literal").map((l) => l.value.replace(/\s/g, " ")).join("");
125
- return r < n ? { side: "before", text: t[r].value + o(r + 1, n) } : {
126
- side: "after",
127
- text: o(n + 1, r) + t[r].value
128
- };
129
- }
130
- function It(e) {
131
- const t = Lt(e);
132
- let r;
133
- if (e.type === "scientific")
134
- r = `0${t}E+00`;
135
- else {
136
- const n = `${e.useGrouping === !1 ? "0" : "#,##0"}${t}`;
137
- if (e.type === "currency") {
138
- const o = Pt(e);
139
- r = o ? o.side === "before" ? `${te(o.text)}${n}` : `${n}${te(o.text)}` : n;
140
- } else e.type === "percent" ? r = e.percentValueMode === "whole" ? `${n}${te("%")}` : `${n}%` : r = n;
141
- }
142
- return e.negativeStyle === "parentheses" ? `${r};(${r})` : r;
143
- }
144
- function Mt(e, t) {
145
- if (!e.formattedValues) return;
146
- const { presentation: r } = e;
147
- if (t === "number" || t === "by_value")
148
- return (r == null ? void 0 : r.kind) !== "measure" || r.format.type === "duration" ? void 0 : It(r.format);
149
- if (t === "date") {
150
- if ((r == null ? void 0 : r.kind) === "temporal_bucket")
151
- return r.grain === "day" ? "yyyy-mm-dd" : r.grain === "month" ? "mmm yyyy" : "yyyy-mm-dd hh:mm";
152
- if ((r == null ? void 0 : r.kind) === "datetime")
153
- return r.dateOnly ? "yyyy-mm-dd" : "yyyy-mm-dd hh:mm:ss";
154
- }
155
- }
156
- function Ce(e) {
157
- const t = St(e), r = Mt(e, t);
158
- return Object.freeze({
159
- key: e.key,
160
- label: e.label,
161
- cellType: t,
162
- ...r === void 0 ? {} : { numberFormat: r }
163
- });
164
- }
165
- const Dt = 15, At = /^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
166
- function Ue(e) {
167
- return At.test(e) ? e : void 0;
168
- }
169
- function ve(e) {
170
- const r = e.replace(/^-/, "").replace(/[eE].*$/, "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "");
171
- if (r.length > Dt) return !1;
172
- const n = Number(e);
173
- return Number.isFinite(n) && (n !== 0 || r.length === 0);
174
- }
175
- const kt = Date.UTC(1900, 2, 1), Nt = Date.UTC(1e4, 0, 1), Rt = Date.UTC(1899, 11, 30), Ot = 864e5;
176
- function Ut(e) {
177
- const t = Date.UTC(
178
- e.year,
179
- e.month - 1,
180
- e.day,
181
- e.hour,
182
- e.minute,
183
- e.second
184
- );
185
- if (!(e.year < 1900 || !Number.isFinite(t)) && !(t < kt || t >= Nt))
186
- return (t - Rt) / Ot;
187
- }
188
- function _e(e, t, r) {
189
- if (typeof e == "number")
190
- return Number.isFinite(e) ? { kind: "number", text: t, value: e } : void 0;
191
- if (K(e))
192
- return ve(e.value) ? { kind: "number", text: t, value: e } : void 0;
193
- if (r && typeof e == "string") {
194
- const n = Ue(e);
195
- return n !== void 0 && ve(n) ? { kind: "number", text: t, value: n } : void 0;
196
- }
197
- }
198
- function X(e) {
199
- const { value: t, text: r, column: n } = e;
200
- if (r === "") return { kind: "empty" };
201
- const o = { kind: "text", text: r };
202
- switch (n.cellType) {
203
- case "text":
204
- return o;
205
- case "date": {
206
- const c = e.wallClock ? Ut(e.wallClock) : void 0;
207
- return c === void 0 ? o : { kind: "date", text: r, serial: c };
208
- }
209
- case "number":
210
- return _e(t, r, !0) ?? o;
211
- case "boolean":
212
- return typeof t == "boolean" ? { kind: "boolean", text: r, value: t } : o;
213
- case "by_value":
214
- return typeof t == "boolean" ? { kind: "boolean", text: r, value: t } : _e(t, r, !1) ?? o;
215
- }
216
- }
217
- function Ur(e) {
218
- return e.kind === "empty" ? "" : e.text;
219
- }
220
- const je = 1e4, jt = 1e6, jr = 5e6, Kr = 1024 ** 3, Vr = 1024 ** 3;
221
- function Br(e) {
222
- return e > je;
223
- }
224
- function Xr(e) {
225
- return e.cardType === "matrixTable" ? "try-direct" : e.loadedRowCount === null || e.loadedRowCount <= je ? "direct" : e.loadedRowCount <= jt ? "background" : "blocked";
226
- }
227
- const zr = {
228
- rowLabels: "tabular",
229
- subtotals: "after"
230
- };
231
- function Hr(e, t) {
232
- const r = t.rowLabels === "outline" ? { kind: "compact" } : e.layout.kind === "tabular" ? e.layout : { kind: "tabular", repeatLabels: !1 }, n = e.totals.rows;
233
- return {
234
- ...e,
235
- layout: r,
236
- totals: {
237
- ...e.totals,
238
- rows: {
239
- ...n,
240
- levels: Object.fromEntries(
241
- Object.entries(n.levels).map(([o, c]) => [
242
- o,
243
- { ...c, position: t.subtotals }
244
- ])
245
- )
246
- }
247
- }
248
- };
249
- }
250
- const Kt = 2;
251
- function Vt(e) {
252
- return typeof e == "number" ? Number.isInteger(e) : K(e) ? !e.value.includes(".") : !0;
253
- }
254
- function Bt(e, t, r) {
255
- const n = e.descriptors.measures.filter(
256
- (s) => r.measureFormats[s.id] === void 0 && s.semanticFormat === void 0 && ht(s.column.dataType) === "number"
257
- );
258
- if (n.length === 0) return r;
259
- const o = /* @__PURE__ */ new Set();
260
- e.columns.forEach((s, l) => {
261
- if (!(s.kind !== "measure" || o.has(s.measureId)))
262
- for (const f of t) {
263
- const h = f.values[l];
264
- if ((h == null ? void 0 : h.kind) === "value" && !Vt(h.value)) {
265
- o.add(s.measureId);
266
- return;
267
- }
268
- }
269
- });
270
- const c = { ...r.measureFormats };
271
- for (const { id: s } of n) {
272
- const l = o.has(s) ? Kt : 0;
273
- c[s] = {
274
- type: "number",
275
- minimumFractionDigits: l,
276
- maximumFractionDigits: l,
277
- useGrouping: !0
278
- };
279
- }
280
- return { ...r, measureFormats: c };
281
- }
282
- function z(e) {
283
- return G(e.slice(0, -1));
284
- }
285
- function Xt(e, t) {
286
- return t.length > e.length && G(t.slice(0, e.length)) === G(e);
287
- }
288
- function zt(e) {
289
- return e.map((t, r) => {
290
- if (r === 0 || t.kind !== "layout") return !1;
291
- const n = e[r - 1];
292
- if (n.kind !== "layout") return !1;
293
- if (t.role !== "member" || Xt(n.rowPath, t.rowPath)) return !0;
294
- const o = e[r - 2];
295
- return n.role === "member" && (!o || o.kind !== "layout" || o.role !== "member" || z(o.rowPath) !== z(n.rowPath)) && t.rowPath.length === n.rowPath.length && z(t.rowPath) === z(n.rowPath);
296
- });
297
- }
298
- const Ht = "pdf-group-continuation";
299
- function Ke(e, t, r) {
300
- return !(r != null && r.hasTextAffixes) && t.kind === "value" && (typeof t.value == "number" || K(t.value)) ? e : W(e);
301
- }
302
- function Gt(e, t, r) {
303
- const n = De(e.descriptors, t.presentation, r), o = e.columns.map((u) => {
304
- var a;
305
- return u.kind === "measure" && ((a = n.measureSemantics.get(u.measureId)) == null ? void 0 : a.isNumeric) === !0;
306
- }), c = (u) => ie([u], n.levels), s = (u, a, m) => Ae(u, a, t.presentation.totals[m], n.levels), l = e.columns.map((u) => {
307
- if (u.kind !== "measure") return u.label;
308
- const a = u.columnPath.map(c);
309
- return u.role !== "member" && a.push(s(u.columnPath, u.role, "columns")), [...a, u.label].join(" / ");
310
- }), f = Math.min(t.spec.columns.length, Math.max(
311
- 0,
312
- ...e.columns.map((u) => u.kind === "measure" ? u.columnPath.length + (u.role !== "member" ? 1 : 0) : 0)
313
- )), h = Array.from({ length: f + 1 }, (u, a) => e.columns.map((m) => a === f ? m.label : m.kind !== "measure" ? "" : a < m.columnPath.length ? c(m.columnPath[a]) : a === m.columnPath.length && m.role !== "member" ? s(m.columnPath, m.role, "columns") : "")), d = (u, a) => Qe({
314
- path: u.rowPath,
315
- role: u.kind === "layout" ? u.role : "member",
316
- levelCount: Math.max(1, t.spec.rows.length),
317
- repeatLabels: t.presentation.layout.kind !== "tabular" || t.presentation.layout.repeatLabels,
318
- previousPath: a == null ? void 0 : a.rowPath
319
- }), p = (u, a) => {
320
- if (u.kind !== "layout") throw new Error("Layout presentation requires layout rows.");
321
- if (u.values.length !== e.columns.length) throw new Error("Matrix row does not match its frozen layout.");
322
- const m = d(u, a);
323
- return e.columns.map((y, b) => {
324
- if (y.kind === "hierarchy")
325
- return `${" ".repeat(Math.max(0, u.rowPath.length - 1))}${s(u.rowPath, u.role, "rows")}`;
326
- if (y.kind === "level") {
327
- const C = t.spec.rows.findIndex((S) => S.id === y.levelId), _ = m[C];
328
- return _ != null && _.visible ? _.total ? s(u.rowPath, u.role, "rows") : ie(_.path, n.levels) : "";
329
- }
330
- const v = u.values[b], w = n.measures.get(y.measureId);
331
- if (v.kind === "value" && !w)
332
- throw new Error("Matrix value is missing its measure descriptor.");
333
- return ke(v, w, t.presentation.absence);
334
- });
335
- }, x = (u, a) => p(u, a).map((m, y) => {
336
- const b = e.columns[y];
337
- return b.kind === "measure" ? Ke(m, u.values[y], n.measureSemantics.get(b.measureId)) : W(m);
338
- });
339
- return {
340
- headers: l,
341
- headerBands: h,
342
- numericColumns: o,
343
- /** The card's prepared formats this presentation formats with (the Excel form reads its measure formats). */
344
- formatting: n,
345
- /** A row's cells; after `previous`, a tabular layout prints each label once. */
346
- row: (u, a) => p(u, a),
347
- /**
348
- * Level columns whose group label the row above shows, so this row
349
- * continues the group (Plan 2, 2d, C8). Only a member row after a member
350
- * row continues one: a total prints as a band, and its rules stay whole
351
- * above and below it.
352
- */
353
- continuedColumns: (u, a) => {
354
- const m = (b) => (b == null ? void 0 : b.kind) === "layout" && b.role === "member";
355
- if (!m(u) || !m(a)) return [];
356
- const y = d(u, a);
357
- return e.columns.flatMap((b, v) => {
358
- var C;
359
- if (b.kind !== "level") return [];
360
- const w = t.spec.rows.findIndex((_) => _.id === b.levelId);
361
- return w < u.rowPath.length && ((C = y[w]) == null ? void 0 : C.visible) === !1 ? [v] : [];
362
- });
363
- },
364
- csvRow: (u) => x(u),
365
- /**
366
- * `previousRow` is the row before `data[0]`, carried by the export's
367
- * continuation, so a tabular layout prints each label once across the
368
- * whole file. Retries are pure: suppression never relies on mutable
369
- * formatter state or an earlier worker. Without it, the first row prints
370
- * its labels.
371
- */
372
- csvRows: (u, a) => u.map((m, y) => x(m, y ? u[y - 1] : a ?? void 0))
373
- };
374
- }
375
- function Gr(e) {
376
- return e.columns.map((t) => W(t.label));
377
- }
378
- function qr(e, t, r) {
379
- return qt(e, t, r).map((n, o) => {
380
- const c = t.columns[o];
381
- return c.kind === "measure" ? Ke(n, e.values[o], r.measureSemantics.get(c.measureId)) : W(n);
382
- });
383
- }
384
- function qt(e, t, r) {
385
- if (e.kind !== "flat") throw new Error("Flat Matrix CSV requires flat rows.");
386
- if (e.values.length !== t.columns.length) throw new Error("Matrix row does not match its frozen layout.");
387
- const n = [...e.rowPath, ...e.columnPath];
388
- return t.columns.map((o, c) => {
389
- if (o.kind === "measure") {
390
- const l = e.values[c], f = r.measures.get(o.measureId);
391
- if (l.kind === "value" && !f) throw new Error("Matrix value is missing its measure descriptor.");
392
- return ke(l, f, r.absence);
393
- }
394
- const s = o.kind === "level" ? n.find((l) => l.levelId === o.levelId) : void 0;
395
- if (!s) throw new Error("Flat Matrix row does not match its frozen layout.");
396
- return ie([s], r.levels);
397
- });
398
- }
399
- function Wt(e) {
400
- const t = Gt(e.layout, e.request, e.report), r = e.layout.columns.map((s, l) => ({
401
- index: l,
402
- columnId: `matrix:${l}`,
403
- label: t.headers[l],
404
- isNumeric: t.numericColumns[l]
405
- })), n = (s, l, f) => ({
406
- text: s,
407
- colspan: 1,
408
- rowspan: 1,
409
- columnId: r[l].columnId,
410
- isHeader: f,
411
- isNumeric: r[l].isNumeric,
412
- className: r[l].isNumeric ? "numeric" : e.layout.columns[l].kind === "hierarchy" ? "matrix-hierarchy" : ""
413
- }), o = [], c = e.layout.columns.findIndex((s) => s.kind === "measure");
414
- e.request.spec.columns.length && c >= 0 && o.push({
415
- repeatHeader: !0,
416
- headerType: "pivot-axis",
417
- headerRowIndex: 0,
418
- cells: [
419
- ...c ? [{ ...n("", 0, !0), colspan: c }] : [],
420
- {
421
- ...n(e.request.spec.columns.map((s) => Ne(s, e.request.presentation)).join(" / "), c, !0),
422
- colspan: e.layout.columns.length - c,
423
- isNumeric: !1,
424
- className: ""
425
- }
426
- ]
427
- });
428
- for (const [s, l] of t.headerBands.entries())
429
- o.push({
430
- repeatHeader: !0,
431
- headerType: s === t.headerBands.length - 1 ? "metrics" : "pivot-level",
432
- headerRowIndex: o.length,
433
- cells: l.map((f, h) => n(f, h, !0))
434
- });
435
- return {
436
- headers: o,
437
- rows: e.rows.map((s, l) => {
438
- const f = new Set(t.continuedColumns(s, e.rows[l - 1]));
439
- return {
440
- index: l,
441
- type: s.kind === "layout" && s.role !== "member" ? "subtotal" : "data",
442
- subtotalLevel: String(s.rowPath.length),
443
- // A tabular layout prints each label once unless it repeats them; the
444
- // blank cell continues its group, so a grid draws no rule above it.
445
- cells: t.row(s, e.rows[l - 1]).map((h, d) => f.has(d) ? { ...n(h, d, !1), className: Ht } : n(h, d, !1))
446
- };
447
- }),
448
- grandTotal: null,
449
- // Totals are already in the ordered body at their authored position.
450
- metadata: {
451
- tableType: "pivot",
452
- totalRows: e.rows.length,
453
- totalColumns: r.length,
454
- rowLevels: e.layout.columns.filter((s) => s.kind !== "measure").length,
455
- pivotLevels: e.request.spec.columns.length,
456
- hasGrandTotal: !1,
457
- columnOrder: r.map((s) => s.columnId),
458
- columns: r
459
- }
460
- };
461
- }
462
- function Yt(e, t, r) {
463
- const { levels: n } = De(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, c = [], s = [], l = e.columns.map((h, d) => {
464
- if (h.kind !== "measure") return null;
465
- const p = o ? `${h.role}:${G(h.columnPath)}` : `measure:${d}`;
466
- let x = c.indexOf(p);
467
- return x < 0 && (x = c.push(p) - 1, s.push(o ? Ae(h.columnPath, h.role, t.presentation.totals.columns, n) : h.label)), x;
468
- }), f = t.spec.columns[t.spec.columns.length - 1];
469
- return {
470
- columnGroups: l,
471
- groupLabels: s,
472
- /** What bands name their groups by: the innermost column level, or "Measures". */
473
- groupLevelLabel: f ? Ne(f, t.presentation) : "Measures"
474
- };
475
- }
476
- function Wr(e) {
477
- const { layout: t, rows: r, report: n } = e, o = {
478
- ...e.request,
479
- presentation: Bt(t, r, e.request.presentation)
480
- }, c = Wt({ layout: t, rows: r, request: o, report: n }), s = zt(r), l = Yt(t, o, n), f = {
481
- ...c,
482
- rows: c.rows.map((h, d) => ({ ...h, keepWithPrevious: s[d] })),
483
- metadata: { ...c.metadata, ...l }
484
- };
485
- return { request: o, table: f, ...l };
486
- }
487
- const F = (e) => e.toLocaleString("en-US"), H = (e) => `${F(Math.ceil(e / 1048576))} MB`, re = "export the data as CSV or Excel";
488
- function Yr(e) {
489
- const t = gt(e.facts), r = e.dataExport ? `Add a filter to narrow it, or ${re}.` : "Add a filter to narrow it, then export again.";
490
- switch (e.code) {
491
- case "PDF_ROW_LIMIT_EXCEEDED": {
492
- const n = e.subject ?? "This table", o = t.rowLimit ?? D.maxTableRows;
493
- return t.rowCount !== void 0 ? `${n} has ${F(t.rowCount)} rows. A PDF holds up to ${F(o)} rows per table. ${r}` : `${n} has more than ${F(o)} rows, the most a PDF holds per table. ${r}`;
494
- }
495
- case "PDF_PAGE_LIMIT_EXCEEDED": {
496
- const n = e.subject ?? "This PDF", o = t.pageLimit ?? D.maxPages;
497
- return t.pageCount !== void 0 ? `${n} is ${F(t.pageCount)} pages. A PDF holds up to ${F(o)}. ${r}` : `${n} is longer than ${F(o)} pages, the most a PDF holds. ${r}`;
498
- }
499
- case "PDF_SIZE_LIMIT_EXCEEDED": {
500
- const n = e.subject ?? "This PDF", o = t.byteLimit ?? D.maxFileBytes;
501
- return t.bytes !== void 0 ? `${n} is ${H(t.bytes)}. A PDF file holds up to ${H(o)}. ${r}` : `${n} is larger than ${H(o)}, the most a PDF file holds. ${r}`;
502
- }
503
- case "PDF_CAPTURE_TOO_TALL":
504
- return `${e.subject ?? "This dashboard"} is too long to print as one PDF. Print one sheet or fewer cards${e.dataExport ? `, or ${re}` : ""}.`;
505
- case Re:
506
- return `A number in this table is too wide for its column in a PDF. Use landscape or fewer columns${e.dataExport ? `, or ${re}` : ""}.`;
507
- case ce:
508
- return `This PDF is over what a PDF holds: ${F(D.maxTableRows)} rows per table, ${F(
509
- D.maxPages
510
- )} pages and ${H(D.maxFileBytes)}. ${r}`;
511
- }
512
- }
513
- class Zt extends Error {
514
- constructor(t, r = ce) {
515
- super(t), this.code = r;
516
- }
517
- }
518
- function Jt(e) {
519
- return vt(e) || e === ce || e === Re;
520
- }
521
- function xe(e) {
522
- if (!e || typeof e != "object")
523
- return;
524
- const { error: t, message: r, detail: n } = e;
525
- for (const o of [t, r, n])
526
- if (typeof o == "string" && o.trim())
527
- return o.trim();
528
- }
529
- async function Qt(e) {
530
- const t = `PDF request failed: ${e.status} ${e.statusText}`.trim(), r = e.headers.get("content-type") || "";
531
- try {
532
- if (r.includes("application/json")) {
533
- const o = await e.json(), c = typeof o.code == "string" ? o.code : typeof o.errorCode == "string" ? o.errorCode : void 0;
534
- return { message: xe(o) || t, code: c };
535
- }
536
- const n = await e.text();
537
- if (!n.trim())
538
- return { message: t };
539
- try {
540
- const o = JSON.parse(n), c = typeof o.code == "string" ? o.code : typeof o.errorCode == "string" ? o.errorCode : void 0;
541
- return {
542
- message: xe(o) || n.trim(),
543
- code: c
544
- };
545
- } catch {
546
- return { message: n.trim() };
547
- }
548
- } catch {
549
- return { message: t };
550
- }
551
- }
552
- async function Zr(e) {
553
- if (!e.token) throw new Error("Missing auth token for PDF export");
554
- if (wt(e.serializedPayload) > Ct.maxRequestBytes)
555
- throw new Error("Fast-path PDF request exceeds the structured body limit");
556
- const t = await (e.fetchImpl ?? fetch)(e.url, {
557
- method: "POST",
558
- headers: { "Content-Type": "application/json", Authorization: `Bearer ${e.token}` },
559
- body: e.serializedPayload,
560
- signal: e.signal
561
- });
562
- if (!t.ok) {
563
- const n = await Qt(t);
564
- throw Jt(n.code) ? new Zt(n.message, n.code) : new Error(n.message);
565
- }
566
- const r = await t.json();
567
- if (r != null && r.error) throw new Error(r.error);
568
- if (typeof (r == null ? void 0 : r.url) != "string" || !r.url.trim())
569
- throw new Error("Fast-path PDF response missing download URL");
570
- return r;
571
- }
572
- const Jr = 1, Ve = ["loading", "measuring", "checking", "laidOut"], er = [
573
- // Already emitted before these contracts; names kept.
574
- "document_matrix_too_large",
575
- "document_matrix_unavailable",
576
- "document_matrix_too_wide",
577
- "document_kpi_value_overflow",
578
- "print_inputs_not_captured",
579
- // New.
580
- "document_section_setup",
581
- "document_input_missing",
582
- "document_section_query_failed",
583
- "document_table_completeness_unverified",
584
- "document_row_limit_exceeded",
585
- "document_section_render_failed",
586
- "document_page_overflow",
587
- "document_sheet_not_found",
588
- "document_print_timed_out",
589
- // PDF capacity contract PC-D3: more pages than one PDF holds.
590
- "document_page_limit_exceeded"
591
- ];
592
- function Qr(e) {
593
- return er.includes(e);
594
- }
595
- const tr = 64, rr = 120, nr = 3, or = 80, ar = [...Ve, "noPageStack", "unknown"];
596
- function ne(e, t) {
597
- return typeof e != "string" ? void 0 : e.trim().slice(0, t).trim() || void 0;
598
- }
599
- function $(e, t) {
600
- return typeof e == "number" && Number.isInteger(e) && e >= t ? e : void 0;
601
- }
602
- function oe(e, t) {
603
- return t.includes(e) ? e : void 0;
604
- }
605
- function sr(e) {
606
- let t = e;
607
- if (typeof e == "string")
608
- try {
609
- t = JSON.parse(e);
610
- } catch {
611
- return {};
612
- }
613
- if (!t || typeof t != "object" || Array.isArray(t)) return {};
614
- const r = t, n = Array.isArray(r.inputLabels) ? r.inputLabels.map((c) => ne(c, or)).filter((c) => c !== void 0).slice(0, nr) : [], o = {
615
- sectionId: ne(r.sectionId, tr),
616
- sectionTitle: ne(r.sectionTitle, rr),
617
- pageNumber: $(r.pageNumber, 1),
618
- rowCount: $(r.rowCount, 0),
619
- rowLimit: $(r.rowLimit, 1),
620
- inputLabels: n.length ? n : void 0,
621
- overflowAxis: oe(r.overflowAxis, ["height", "width"]),
622
- overflowPx: $(r.overflowPx, 0),
623
- matrixLimit: oe(r.matrixLimit, ["rows", "bytes"]),
624
- layoutStage: oe(r.layoutStage, ar),
625
- loadingSectionCount: $(r.loadingSectionCount, 0),
626
- measuredRowCount: $(r.measuredRowCount, 0),
627
- totalRowCount: $(r.totalRowCount, 0),
628
- pageCount: $(r.pageCount, 0),
629
- pageLimit: $(r.pageLimit, 1)
630
- };
631
- return Object.fromEntries(
632
- Object.entries(o).filter(([, c]) => c !== void 0)
633
- );
634
- }
635
- function en(e) {
636
- const t = sr(e.facts), r = t.sectionTitle ? `Section "${t.sectionTitle}"` : t.sectionId ? `Section ${t.sectionId}` : "A section", n = t.pageNumber !== void 0 ? ` on page ${t.pageNumber}` : "";
637
- switch (e.code) {
638
- case "document_section_setup":
639
- return `${r} is not set up to print.`;
640
- case "document_input_missing":
641
- return t.inputLabels ? `${r} needs a value for ${t.inputLabels.join(", ")}.` : `${r} needs a value for a required input.`;
642
- case "document_section_query_failed":
643
- return `${r}: its data could not be loaded.`;
644
- case "document_table_completeness_unverified":
645
- return `${r}: the query returned no total row count, so the table could not be confirmed complete.`;
646
- case "document_row_limit_exceeded":
647
- return t.rowCount !== void 0 && t.rowLimit !== void 0 ? `${r} has ${t.rowCount} rows; a document table prints up to ${t.rowLimit}.` : `${r} has more rows than a document table prints.`;
648
- case "document_section_render_failed":
649
- return `${r} could not be drawn.`;
650
- case "document_page_overflow":
651
- return `${r}${n} does not fit the page${t.overflowAxis ? ` (${t.overflowAxis}` : ""}${t.overflowAxis && t.overflowPx !== void 0 ? `, ${t.overflowPx} px over` : ""}${t.overflowAxis ? ")" : ""}.`;
652
- case "document_matrix_too_large":
653
- return t.matrixLimit === "rows" && t.rowLimit !== void 0 ? `${r}: the Matrix has more than ${t.rowLimit} rows, the most a report prints.` : `${r}: the Matrix is too large to print.`;
654
- case "document_matrix_unavailable":
655
- return `${r}: the Matrix result could not be loaded.`;
656
- case "document_matrix_too_wide":
657
- return `${r}: the Matrix is wider than the page.`;
658
- case "document_kpi_value_overflow":
659
- return `${r}: a KPI value does not fit its tile.`;
660
- case "print_inputs_not_captured":
661
- return t.inputLabels ? `The report's input values were not saved: ${t.inputLabels.join(", ")}.` : "The report's input values were not saved.";
662
- case "document_sheet_not_found":
663
- return "The requested Document sheet is not in the dashboard.";
664
- case "document_page_limit_exceeded":
665
- return t.pageCount !== void 0 && t.pageLimit !== void 0 ? `The Document is ${t.pageCount} pages; a PDF holds up to ${t.pageLimit}.` : "The Document has more pages than a PDF holds.";
666
- case "document_print_timed_out":
667
- return [
668
- `The Document did not finish preparing in time (stage ${t.layoutStage ?? "unknown"}`,
669
- t.measuredRowCount !== void 0 ? `; ${t.measuredRowCount} of ${t.totalRowCount ?? "unknown"} rows measured` : "",
670
- t.pageCount !== void 0 ? `; ${t.pageCount} pages` : "",
671
- t.loadingSectionCount ? `; ${t.loadingSectionCount} sections loading` : "",
672
- ")."
673
- ].join("");
674
- }
675
- }
676
- function ir(e) {
677
- return Ve.includes(e);
678
- }
679
- function ae(e) {
680
- return typeof e == "number" && Number.isInteger(e) && e >= 0;
681
- }
682
- function tn(e) {
683
- let t = e;
684
- if (typeof e == "string")
685
- try {
686
- t = JSON.parse(e);
687
- } catch {
688
- return;
689
- }
690
- if (!t || typeof t != "object" || Array.isArray(t)) return;
691
- const { stage: r, measuredRowCount: n, totalRowCount: o, pageCount: c } = t;
692
- if (!(!ir(r) || !ae(n) || o !== null && !ae(o) || c !== null && !ae(c)))
693
- return { stage: r, measuredRowCount: n, totalRowCount: o, pageCount: c };
694
- }
695
- function cr(e, t) {
696
- return e.dashboardId === t.dashboardId && e.cardId === t.cardId && e.attachmentIndex === void 0;
697
- }
698
- function Be(e) {
699
- return new Map(
700
- e.presentationExecutionSnapshot.resolvedFormats.flatMap(
701
- (t) => t.format.type === "raw_temporal" && t.target.kind === "column" && cr(t.scope, e.scope) ? [[t.target.columnKey, t.format]] : []
702
- )
703
- );
704
- }
705
- function Xe(e) {
706
- const t = e == null ? void 0 : e.sql, r = e == null ? void 0 : e.python;
707
- return (e == null ? void 0 : e.resultOwner) === "freeform" && typeof t == "string" && !!t.trim() && (typeof r != "string" || !r.trim());
708
- }
709
- function rn(e) {
710
- return e.formatting.useFormattedValues !== !1 && Xe(e.queryPayload) && Be(e.formatting).size > 0;
711
- }
712
- function lr(e, t) {
713
- return e.map((r, n) => {
714
- if (!Object.prototype.hasOwnProperty.call(r, t) || r[t] === void 0)
715
- throw new Error(
716
- `missing_raw_temporal_result_contract: Row ${n} is missing declared temporal column "${t}".`
717
- );
718
- const o = r[t];
719
- return o === null || typeof o == "string" ? o : String(o);
720
- });
721
- }
722
- function ur(e) {
723
- if (e.formatting.useFormattedValues === !1)
724
- return {
725
- activatedColumnKeys: /* @__PURE__ */ new Set(),
726
- byColumnKey: /* @__PURE__ */ new Map()
727
- };
728
- const t = Be(e.formatting), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
729
- if (t.size === 0)
730
- return { activatedColumnKeys: r, byColumnKey: n };
731
- const o = new Map(
732
- e.columns.flatMap((l) => {
733
- const f = l.key || l.field;
734
- return f ? [[f, l]] : [];
735
- })
736
- ), c = Xe(e.queryPayload), s = /* @__PURE__ */ new Map();
737
- for (const [l, f] of t) {
738
- const h = o.get(l);
739
- let d;
740
- if (h != null && h.rawTemporal)
741
- d = Tt(h, {
742
- metadataRequired: !0
743
- }), r.add(l);
744
- else if (c) {
745
- r.add(l);
746
- const p = et({
747
- columnKey: l,
748
- values: lr(e.records, l)
749
- });
750
- s.set(l, p), p.status === "classified" && (d = p.metadata);
751
- } else
752
- continue;
753
- d && n.set(l, {
754
- metadata: d,
755
- format: f,
756
- formatValue: tt({ metadata: d, format: f })
757
- });
758
- }
759
- return {
760
- activatedColumnKeys: r,
761
- byColumnKey: n,
762
- ...c ? {
763
- sqlChunkEvidence: rt(s)
764
- } : {}
765
- };
766
- }
767
- function mr(e) {
768
- if (!e.resolution.activatedColumnKeys.has(e.columnKey))
769
- return;
770
- if (e.value === void 0)
771
- throw new Error(
772
- `missing_raw_temporal_result_contract: Row ${e.rowIndex} is missing temporal column "${e.columnKey}".`
773
- );
774
- const t = e.resolution.byColumnKey.get(e.columnKey);
775
- if (!t)
776
- return { text: e.value === null ? "" : String(e.value) };
777
- if (e.value !== null && typeof e.value != "string")
778
- return { text: String(e.value) };
779
- const r = t.formatValue(e.value);
780
- return r.ok && r.wallClock ? { text: r.text, wallClock: r.wallClock } : { text: r.text };
781
- }
782
- function Te(e, t) {
783
- const r = e.byColumnKey.get(t);
784
- return r ? r.metadata.valueKind === "date" : void 0;
785
- }
786
- const dr = /* @__PURE__ */ new Set(["string", "number", "boolean", "date", "datetime"]), fr = /^\d{4}-\d{2}-\d{2}|^\d{2}\/\d{2}\/\d{4}/, pr = /^\d{4}-\d{2}-\d{2}$/, ze = "MM/dd/yyyy";
787
- function q(e) {
788
- return typeof e == "object" && e !== null && !Array.isArray(e);
789
- }
790
- function O(e) {
791
- return e.key || e.field || void 0;
792
- }
793
- function Ee(e) {
794
- return e == null ? "" : typeof e == "string" ? e : K(e) ? e.value : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e);
795
- }
796
- function $e(e, t) {
797
- var n;
798
- const r = (n = e.columnSettings) == null ? void 0 : n[t];
799
- if (!(!q(r) || r.type !== "date"))
800
- return q(r.dateFormat) ? r.dateFormat : {};
801
- }
802
- function Fe(e) {
803
- return e.useCustomFormat && e.customFormat ? e.customFormat : e.format || ze;
804
- }
805
- function Se(e, t) {
806
- return e && e !== "auto" ? e : t;
807
- }
808
- function hr(e) {
809
- return !/[HhKkmsSa]/.test(e.replace(/'[^']*'/g, ""));
810
- }
811
- function br(e) {
812
- if (typeof e == "number") return Number.isFinite(e) ? e : null;
813
- if (typeof e != "string" || !e.trim()) return null;
814
- const t = Number(e);
815
- return Number.isFinite(t) ? t : null;
816
- }
817
- function yr(e) {
818
- const t = Ue(e);
819
- if (t !== void 0)
820
- try {
821
- return bt(t, /[.eE]/.test(t) ? "decimal" : "integer");
822
- } catch {
823
- return;
824
- }
825
- }
826
- function gr(e) {
827
- return e.calendar.fiscalCalendar && (e.granularity === "quarter" || e.granularity === "year") ? "fiscal" : e.granularity;
828
- }
829
- function nn(e) {
830
- const { formatting: t, queryPayload: r } = e, n = t.useFormattedValues, o = t.scope, c = (a) => nt({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } }), s = (a) => at({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } });
831
- function l(a) {
832
- var y;
833
- if ((y = t.visibleColumns) != null && y.length) return t.visibleColumns;
834
- const m = a.columns.map(O).filter((b) => !!b);
835
- return m.length > 0 ? m : a.records[0] ? Object.keys(a.records[0]) : [];
836
- }
837
- function f(a, m) {
838
- return t.columnLabels && Object.prototype.hasOwnProperty.call(t.columnLabels, a) && t.columnLabels[a] || void 0 || h(m) || (m == null ? void 0 : m.label) || (m == null ? void 0 : m.headerName) || a;
839
- }
840
- function h(a, m) {
841
- const y = a == null ? void 0 : a.pivotIdentity;
842
- if (!y || !y.members || y.members.length === 0) return;
843
- const b = ye({ identity: y, columnKey: (a == null ? void 0 : a.key) || (a == null ? void 0 : a.field) || "" });
844
- return _t({
845
- members: b,
846
- metricLabel: (a == null ? void 0 : a.label) || (a == null ? void 0 : a.headerName),
847
- mode: n ? "formatted" : "canonical",
848
- resolveTemporalFormat: (v) => {
849
- const w = b.find((_) => _.fieldId === v);
850
- if (!(w != null && w.temporalBucket)) return;
851
- const C = pe({
852
- snapshot: t.presentationExecutionSnapshot,
853
- scope: o,
854
- target: { kind: "field", fieldId: v, role: "pivotby" }
855
- });
856
- return C ? d(w.temporalBucket, C) : void 0;
857
- }
858
- }).flattenedLabel;
859
- }
860
- function d(a, m) {
861
- return ot({
862
- metadata: a,
863
- cardFormat: m,
864
- locale: m.locale,
865
- ...m.presentation.mode === "auto" ? { styles: m.presentation.styles } : {}
866
- }).format;
867
- }
868
- function p(a, m) {
869
- const { records: y, columns: b } = a, v = q(r.cardConfig) ? r.cardConfig : void 0, w = v == null ? void 0 : v.pivotByColumns, C = Array.isArray(w) ? w.flatMap(
870
- (i) => q(i) && typeof i.id == "string" && i.id ? [i.id] : []
871
- ) : [];
872
- xt(
873
- b.map((i) => ({ key: O(i) || "<unknown>", pivotIdentity: i.pivotIdentity })),
874
- { expectedPivotFieldIds: C }
875
- );
876
- const _ = l(a), S = new Map(
877
- b.flatMap((i) => {
878
- const g = O(i);
879
- return g ? [[g, i]] : [];
880
- })
881
- ), Ge = new Map(a.resultColumns.map((i) => [i.key, i.dataType])), I = ur({
882
- records: y,
883
- columns: b,
884
- formatting: t,
885
- queryPayload: r
886
- }), Z = new Map(
887
- b.flatMap((i) => {
888
- const g = O(i);
889
- return g && i.temporalBucket ? [[g, i.temporalBucket]] : [];
890
- })
891
- ), ue = /* @__PURE__ */ new Map();
892
- for (const i of _) {
893
- const g = pe({
894
- snapshot: t.presentationExecutionSnapshot,
895
- scope: o,
896
- target: { kind: "column", columnKey: i }
897
- }), T = Z.get(i);
898
- if (n) {
899
- if (g && !T) throw new Error(`Missing temporal bucket metadata for column "${i}"`);
900
- if (T && !g) throw new Error(`Missing resolved temporal presentation for column "${i}"`);
901
- }
902
- g && T && ue.set(i, d(T, g));
903
- }
904
- const J = _.map((i) => {
905
- const g = Ge.get(i), T = g && dr.has(g) ? g : "unknown", E = n ? x(i, I, Z) : void 0, P = f(i, S.get(i)), k = n && I.activatedColumnKeys.has(i) && Te(I, i) === void 0;
906
- return {
907
- key: i,
908
- label: P,
909
- dataType: T,
910
- ...E ? { presentation: E } : {},
911
- xlsx: Ce({ key: i, label: P, formattedValues: n, dataType: T, presentation: E }),
912
- ...k ? { xlsxPending: !0 } : {}
913
- };
914
- });
915
- function qe(i, g, T, E) {
916
- if (!n) return { text: Ee(i), value: i };
917
- const P = mr({ value: i, columnKey: g, rowIndex: T, resolution: I });
918
- if (P !== void 0) return { text: P.text, value: i, ...P.wallClock ? { wallClock: P.wallClock } : {} };
919
- const k = Z.get(g);
920
- if (k) {
921
- const L = ue.get(g);
922
- if (!L) throw new Error(`Missing resolved temporal presentation for column "${g}"`);
923
- if (i != null && typeof i != "string")
924
- throw new Error(`Canonical temporal column "${g}" must contain a string or null`);
925
- const N = i ?? null, R = st(N, k);
926
- return {
927
- text: it({ value: N, metadata: k, format: L }),
928
- value: i,
929
- ...R ? { wallClock: R } : {}
930
- };
931
- }
932
- if (i == null) return { text: "", value: i };
933
- const Q = s(g);
934
- if (Q && typeof i == "number" && Number.isFinite(i))
935
- return {
936
- text: he(
937
- new Date(i).toISOString(),
938
- Q.pattern || ze,
939
- Se(Q.timezone, t.timezone),
940
- "UTC"
941
- ),
942
- value: i
943
- };
944
- const M = c(g);
945
- if (typeof i == "number")
946
- return { text: M ? B(i, M) : String(i), value: i };
947
- if (K(i))
948
- return { text: M ? B(i, M) : i.value, value: i };
949
- const V = $e(t, g);
950
- if (V && (i instanceof Date || typeof i == "string" && fr.test(i))) {
951
- const L = i instanceof Date ? i.toISOString() : i, N = typeof i == "string" && pr.test(i), R = N ? "UTC" : Se(V.timezone, t.timezone), de = N ? "UTC" : V.sourceTimezone || "auto", fe = ct(L, R, de);
952
- return {
953
- text: he(L, Fe(V), R, de),
954
- value: i,
955
- ...fe ? { wallClock: fe } : {}
956
- };
957
- }
958
- if (typeof i == "string" && M && E.dataType === "number") {
959
- const L = yr(i);
960
- if (L) return { text: B(L, M), value: i };
961
- }
962
- return { text: Ee(i), value: i };
963
- }
964
- const We = y.map(
965
- (i, g) => J.map((T) => {
966
- const E = qe(i[T.key], T.key, g, T);
967
- return X({ value: E.value, text: E.text, column: T.xlsx, wallClock: E.wallClock });
968
- })
969
- ), me = (m == null ? void 0 : m.withHeader) !== !1 && t.includeHeaders;
970
- if (me)
971
- for (const i of _) {
972
- const g = S.get(i);
973
- g != null && g.pivotIdentity && ye({ identity: g.pivotIdentity, columnKey: O(g) || i });
974
- }
975
- return {
976
- ...me ? { header: J.map((i) => i.label) } : {},
977
- columns: J,
978
- rows: We,
979
- ...I.sqlChunkEvidence ? { rawTemporalClassification: I.sqlChunkEvidence } : {}
980
- };
981
- }
982
- function x(a, m, y) {
983
- if (m.activatedColumnKeys.has(a)) {
984
- const C = Te(m, a);
985
- return C === void 0 ? { kind: "text" } : { kind: "datetime", dateOnly: C };
986
- }
987
- const b = y.get(a);
988
- if (b) return { kind: "temporal_bucket", grain: gr(b) };
989
- if (s(a)) return { kind: "text" };
990
- const v = $e(t, a);
991
- if (v) return { kind: "datetime", dateOnly: hr(Fe(v)) };
992
- const w = c(a);
993
- return w ? { kind: "measure", format: w } : void 0;
994
- }
995
- function u(a, m) {
996
- if (!Number.isInteger(m) || m < 0)
997
- throw new Error("totalRows must be a non-negative integer");
998
- return m === 0 ? void 0 : (t.visibleColumns ?? Object.keys(a)).map((b) => {
999
- const w = Object.prototype.hasOwnProperty.call(a, b) ? a[b] : b === t.tableTotalsLabelColumnKey ? "Total" : null, C = n ? c(b) : void 0, _ = Ce({
1000
- key: b,
1001
- label: b,
1002
- formattedValues: n,
1003
- dataType: "unknown",
1004
- ...C ? { presentation: { kind: "measure", format: C } } : {}
1005
- });
1006
- if (w == null) return { kind: "empty" };
1007
- if (!n) return X({ value: w, text: String(w), column: _ });
1008
- const S = C ? br(w) : null;
1009
- return X(C && S !== null ? { value: S, text: B(S, C), column: _ } : { value: w, text: String(w), column: _ });
1010
- });
1011
- }
1012
- return { format: p, totals: u };
1013
- }
1014
- const wr = /* @__PURE__ */ new Set([
1015
- "scope",
1016
- "useFormattedValues",
1017
- "timezone",
1018
- "presentationExecutionSnapshot",
1019
- "delimiter",
1020
- "csvEncoding",
1021
- "includeHeaders",
1022
- "columnSettings",
1023
- "visibleColumns",
1024
- "columnLabels",
1025
- "tableTotalsLabelColumnKey",
1026
- "fileFormat",
1027
- "title"
1028
- ]);
1029
- function le(e) {
1030
- return e !== null && typeof e == "object" && !Array.isArray(e);
1031
- }
1032
- function Le(e, t) {
1033
- if (e !== void 0) {
1034
- if (!le(e))
1035
- throw new Error(`formatting.${t} must be an object`);
1036
- return e;
1037
- }
1038
- }
1039
- function on(e) {
1040
- if (!le(e))
1041
- throw new Error("formatting must be an object");
1042
- const t = ["reportContext", "resolvedFormats"].find(
1043
- (a) => Object.prototype.hasOwnProperty.call(e, a)
1044
- );
1045
- if (t)
1046
- throw new be(
1047
- `formatting.${t} is retired; formatting.presentationExecutionSnapshot is authoritative.`
1048
- );
1049
- const r = Object.keys(e).find((a) => !wr.has(a));
1050
- if (r)
1051
- throw new Error(`formatting contains unknown property "${r}"`);
1052
- const n = typeof e.timezone == "string" ? e.timezone.trim() : "";
1053
- if (!n)
1054
- throw new Error("formatting.timezone must be a non-empty string");
1055
- const o = dt(e.delimiter);
1056
- if (!o)
1057
- throw new Error("formatting.delimiter must be a comma, semicolon or tab");
1058
- const c = ft(e.csvEncoding);
1059
- if (!c)
1060
- throw new Error("formatting.csvEncoding must be 'utf-8-bom' or 'utf-8'");
1061
- if (typeof e.includeHeaders != "boolean")
1062
- throw new Error("formatting.includeHeaders must be a boolean");
1063
- if (e.useFormattedValues !== void 0 && typeof e.useFormattedValues != "boolean")
1064
- throw new Error("formatting.useFormattedValues must be a boolean");
1065
- const s = e.fileFormat === void 0 ? void 0 : pt(e.fileFormat);
1066
- if (e.fileFormat !== void 0 && !s)
1067
- throw new Error("formatting.fileFormat must be 'csv' or 'xlsx'");
1068
- if (e.title !== void 0 && typeof e.title != "string")
1069
- throw new Error("formatting.title must be a string");
1070
- const l = e.visibleColumns === void 0 ? void 0 : Array.isArray(e.visibleColumns) && e.visibleColumns.every((a) => typeof a == "string") ? e.visibleColumns : void 0;
1071
- if (e.visibleColumns !== void 0 && !l)
1072
- throw new Error("formatting.visibleColumns must be an array of strings");
1073
- const f = Le(e.columnLabels, "columnLabels");
1074
- if (f && Object.values(f).some((a) => typeof a != "string"))
1075
- throw new Error("formatting.columnLabels values must be strings");
1076
- const h = Le(e.columnSettings, "columnSettings"), d = e.tableTotalsLabelColumnKey === void 0 ? void 0 : typeof e.tableTotalsLabelColumnKey == "string" && e.tableTotalsLabelColumnKey.trim() ? e.tableTotalsLabelColumnKey : null;
1077
- if (d === null)
1078
- throw new Error("formatting.tableTotalsLabelColumnKey must be a non-empty string");
1079
- if (d && !(l != null && l.includes(d)))
1080
- throw new Error("formatting.tableTotalsLabelColumnKey must identify a visible column");
1081
- const p = lt(e.scope, "formatting.scope");
1082
- if (!p.cardId || p.attachmentIndex !== void 0)
1083
- throw new Error("formatting.scope must identify exactly one dashboard card");
1084
- const x = e.useFormattedValues !== !1, u = ut(e.presentationExecutionSnapshot);
1085
- if (n !== u.reportContext.calendar.tz)
1086
- throw new Error(
1087
- "formatting.timezone must equal presentationExecutionSnapshot.reportContext.calendar.tz"
1088
- );
1089
- try {
1090
- mt({
1091
- snapshot: u,
1092
- expectedScope: { dashboardId: p.dashboardId, cardId: p.cardId },
1093
- visibleColumns: l,
1094
- useFormattedValues: x
1095
- });
1096
- } catch (a) {
1097
- throw new be(
1098
- `formatting.presentationExecutionSnapshot.${a instanceof Error ? a.message : String(a)}`
1099
- );
1100
- }
1101
- return {
1102
- scope: { dashboardId: p.dashboardId, cardId: p.cardId },
1103
- useFormattedValues: x,
1104
- timezone: n,
1105
- presentationExecutionSnapshot: u,
1106
- delimiter: o,
1107
- csvEncoding: c,
1108
- includeHeaders: e.includeHeaders,
1109
- ...h ? { columnSettings: h } : {},
1110
- ...l ? { visibleColumns: l } : {},
1111
- ...f ? { columnLabels: f } : {},
1112
- ...d ? { tableTotalsLabelColumnKey: d } : {},
1113
- ...s ? { fileFormat: s } : {},
1114
- ...typeof e.title == "string" ? { title: e.title } : {}
1115
- };
1116
- }
1117
- function an(e) {
1118
- const t = e.formatOptions, r = (n) => le(n) ? n : void 0;
1119
- return {
1120
- scope: { dashboardId: e.dashboardId, cardId: e.cardId },
1121
- useFormattedValues: t.useFormattedValues !== !1,
1122
- timezone: t.presentationExecutionSnapshot.reportContext.calendar.tz,
1123
- presentationExecutionSnapshot: t.presentationExecutionSnapshot,
1124
- delimiter: typeof t.delimiter == "string" ? t.delimiter : ",",
1125
- csvEncoding: t.csvEncoding,
1126
- includeHeaders: t.includeHeaders !== !1,
1127
- columnSettings: r(t.columnSettings),
1128
- visibleColumns: Array.isArray(t.visibleColumns) ? t.visibleColumns : void 0,
1129
- columnLabels: r(t.columnLabels),
1130
- tableTotalsLabelColumnKey: typeof t.tableTotalsLabelColumnKey == "string" ? t.tableTotalsLabelColumnKey : void 0,
1131
- ...e.fileFormat ? { fileFormat: e.fileFormat } : {},
1132
- ...typeof e.title == "string" ? { title: e.title } : {}
1133
- };
1134
- }
1135
- const Cr = /^\d{4}-\d{2}-\d{2}$/;
1136
- function He(e) {
1137
- const t = e.split(".");
1138
- return t[t.length - 1].replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").split(" ").map((o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase()).join(" ");
1139
- }
1140
- const Pe = 10;
1141
- function se(e, t) {
1142
- const r = e.slice(0, Pe).map(t).join(", "), n = e.length - Pe;
1143
- return n > 0 ? `${r}, and ${n} more` : r;
1144
- }
1145
- function vr(e) {
1146
- if (e.valueType !== "date" || e.operation !== "between" && e.operation !== "not between")
1147
- return;
1148
- const t = Y(e.relativeMeta);
1149
- return t && Oe(t).printsByName ? t : void 0;
1150
- }
1151
- function _r(e, t) {
1152
- if (t !== "label") return vr(e);
1153
- if (!(e.valueType !== "date" || e.operation !== "between" && e.operation !== "not between"))
1154
- return Y(e.relativeMeta);
1155
- }
1156
- function Ie(e, t = {}) {
1157
- const { name: r, operation: n, values: o, valueType: c } = e, s = t.label ?? He(r), l = _r(e, t.relativeDates);
1158
- if (l) {
1159
- const p = yt(l).label;
1160
- if (p)
1161
- return n === "between" ? `${s}: ${p}` : `${s} not in ${p}`;
1162
- }
1163
- if (!o || o.length === 0)
1164
- return n === "is null" ? `${s} is empty` : n === "is not null" ? `${s} is not empty` : "";
1165
- const f = Y(e.relativeMeta), h = e.temporalPrecision === "minute" || !!(f && Oe(f).subDay), d = (p) => {
1166
- if (c === "date" && p) {
1167
- const x = {
1168
- year: "numeric",
1169
- month: "short",
1170
- day: "numeric",
1171
- ...h ? {
1172
- hour: "numeric",
1173
- minute: "2-digit"
1174
- } : {}
1175
- };
1176
- if (typeof p == "string" && Cr.test(p)) {
1177
- const [a, m, y] = p.split("-").map(Number);
1178
- return new Intl.DateTimeFormat(void 0, {
1179
- year: "numeric",
1180
- month: "short",
1181
- day: "numeric",
1182
- timeZone: "UTC"
1183
- }).format(new Date(Date.UTC(a, m - 1, y)));
1184
- }
1185
- if (typeof p == "string" && Et(p) === "wall_datetime") {
1186
- const [a, m, y, b, v] = p.split(/[-T :.]/).map(Number);
1187
- return new Intl.DateTimeFormat(void 0, {
1188
- ...x,
1189
- timeZone: "UTC"
1190
- }).format(new Date(Date.UTC(a, m - 1, y, b, v)));
1191
- }
1192
- const u = new Date(p);
1193
- if (!isNaN(u.getTime()))
1194
- try {
1195
- return new Intl.DateTimeFormat(void 0, {
1196
- ...x,
1197
- ...t.timezone ? { timeZone: t.timezone } : {}
1198
- }).format(u);
1199
- } catch {
1200
- return h ? u.toLocaleString(void 0, x) : u.toLocaleDateString(void 0, x);
1201
- }
1202
- }
1203
- return String(p);
1204
- };
1205
- switch (n) {
1206
- case "=":
1207
- return `${s}: ${d(o[0])}`;
1208
- case "!=":
1209
- return `${s} ≠ ${d(o[0])}`;
1210
- case ">":
1211
- return `${s} > ${d(o[0])}`;
1212
- case "<":
1213
- return `${s} < ${d(o[0])}`;
1214
- case ">=":
1215
- return `${s} ≥ ${d(o[0])}`;
1216
- case "<=":
1217
- return `${s} ≤ ${d(o[0])}`;
1218
- case "between":
1219
- case "not between": {
1220
- const p = `${d(o[0])} - ${d(o[1])}`;
1221
- return n === "between" ? `${s}: ${p}` : `${s} not in ${p}`;
1222
- }
1223
- case "in":
1224
- return o.length === 1 ? `${s}: ${d(o[0])}` : `${s}: ${se(o, d)}`;
1225
- case "not in":
1226
- return `${s} not in (${se(o, d)})`;
1227
- case "like":
1228
- return `${s} contains "${o[0]}"`;
1229
- case "not like":
1230
- return `${s} doesn't contain "${o[0]}"`;
1231
- default:
1232
- return `${s}: ${se(o, d)}`;
1233
- }
1234
- }
1235
- function sn(e, t = {}) {
1236
- if (!e || e.length === 0)
1237
- return "";
1238
- const r = /* @__PURE__ */ new Map();
1239
- e.forEach((o) => {
1240
- const c = r.get(o.name) || [];
1241
- c.push(o), r.set(o.name, c);
1242
- });
1243
- const n = [];
1244
- return r.forEach((o, c) => {
1245
- if (o.length === 1) {
1246
- const s = Ie(o[0], t);
1247
- s && n.push(s);
1248
- } else {
1249
- const s = He(c), l = o.map((f) => Ie(f, t).replace(`${s}: `, "").replace(`${s} `, "")).filter(Boolean);
1250
- l.length > 0 && n.push(`${s}: ${l.join(" and ")}`);
1251
- }
1252
- }), n.join(" | ");
1253
- }
1254
- function cn(e) {
1255
- return ((e == null ? void 0 : e.filterValues) ?? []).filter(xr).map(Tr);
1256
- }
1257
- function xr(e) {
1258
- return !!e && typeof e == "object" && typeof e.name == "string" && Array.isArray(e.values);
1259
- }
1260
- function Tr(e) {
1261
- if (!("relativeMeta" in e) || e.relativeMeta === void 0) return e;
1262
- const { relativeMeta: t, ...r } = e, n = Y(t);
1263
- return n ? { ...r, relativeMeta: n } : r;
1264
- }
1265
- const Er = /* @__PURE__ */ new Set([
1266
- "day",
1267
- "week",
1268
- "month",
1269
- "quarter",
1270
- "year"
1271
- ]);
1272
- function $r(e, t) {
1273
- try {
1274
- const r = A(
1275
- U(e),
1276
- t,
1277
- "yyyy-MM-dd"
1278
- ), [n, o, c] = r.split("-").map(Number), s = new Date(Date.UTC(n, o - 1, c));
1279
- return s.setUTCDate(s.getUTCDate() - 1), A(s, "UTC", "yyyy-MM-dd");
1280
- } catch {
1281
- return;
1282
- }
1283
- }
1284
- function ln(e, t, r, n = !1) {
1285
- const o = Me(e, t, r);
1286
- if (o.start === o.end) return o.end;
1287
- const c = n ? Me(e, t, r, !0) : o;
1288
- return `${c.start} – ${c.end}`;
1289
- }
1290
- function Me(e, t, r, n = !1) {
1291
- try {
1292
- if (r && Er.has(r)) {
1293
- const o = $r(e.end, t);
1294
- if (o) {
1295
- const c = n ? "MMM d" : "MMM d, yyyy";
1296
- return {
1297
- start: A(
1298
- U(e.start),
1299
- t,
1300
- c
1301
- ),
1302
- end: A(
1303
- U(`${o}T00:00:00Z`),
1304
- "UTC",
1305
- "MMM d, yyyy"
1306
- )
1307
- };
1308
- }
1309
- }
1310
- if (r === "second" || r === "minute" || r === "hour") {
1311
- const o = n ? "MMM d, h:mm a" : "MMM d, yyyy, h:mm a";
1312
- return {
1313
- start: A(U(e.start), t, o),
1314
- end: `before ${A(
1315
- U(e.end),
1316
- t,
1317
- o
1318
- )}`
1319
- };
1320
- }
1321
- } catch {
1322
- }
1323
- return { start: e.start, end: `before ${e.end}` };
1324
- }
1325
- export {
1326
- er as A,
1327
- Qr as B,
1328
- sr as C,
1329
- je as D,
1330
- en as E,
1331
- jt as F,
1332
- tn as G,
1333
- nn as H,
1334
- on as I,
1335
- an as J,
1336
- rn as K,
1337
- Pe as L,
1338
- jr as M,
1339
- vr as N,
1340
- Ie as O,
1341
- Ht as P,
1342
- sn as Q,
1343
- cn as R,
1344
- Me as S,
1345
- Or as a,
1346
- Kr as b,
1347
- Vr as c,
1348
- Br as d,
1349
- Ur as e,
1350
- ln as f,
1351
- Xr as g,
1352
- Gr as h,
1353
- qr as i,
1354
- Wt as j,
1355
- Wr as k,
1356
- zr as l,
1357
- qt as m,
1358
- Hr as n,
1359
- Kt as o,
1360
- Gt as p,
1361
- Bt as q,
1362
- Ce as r,
1363
- zt as s,
1364
- X as t,
1365
- Yr as u,
1366
- Zt as v,
1367
- Jt as w,
1368
- Qt as x,
1369
- Zr as y,
1370
- Jr as z
1371
- };