react-semaphor 0.1.558 → 0.1.560
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.
- package/dist/analytics-protocol/index.js +368 -358
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CHLxsPfX.js +630 -0
- package/dist/chunks/{assistant-chat-BCWoP6Rf.js → assistant-chat-Bu2fFm_I.js} +206 -207
- package/dist/chunks/{bookmark-state-PjQpxbG7.js → bookmark-state-BFY9oNmr.js} +3 -3
- package/dist/chunks/{braces-D5Ucy7q1.js → braces-Da41xfUd.js} +1 -1
- package/dist/chunks/{comparison-window-caption-Dc7BaCMz.js → comparison-window-caption-4FNkMrzE.js} +213 -213
- package/dist/chunks/{context-DVy4HOU0.js → context-BgPDzLHZ.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-B-DLRGrV.js → custom-visual-inputs-Dz-enUNR.js} +1 -1
- package/dist/chunks/{dashboard-wK6Bai4V.js → dashboard-_MeBuy67.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Coqghdn6.js → dashboard-briefing-launcher-CEi4Pr_v.js} +1152 -1166
- package/dist/chunks/{dashboard-controls-BYWSM2RM.js → dashboard-controls-Bi7fyG-4.js} +98 -98
- package/dist/chunks/{dashboard-json-pPTB5gj0.js → dashboard-json-B1mU_OMa.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-PY_7Xm55.js → document-dashboard-inputs-CkWfDB8c.js} +64 -64
- package/dist/chunks/{edit-dashboard-visual-BODxuUeq.js → edit-dashboard-visual-0CJN31Y3.js} +8274 -8514
- package/dist/chunks/filter-reach-copy-BF4w4kI2.js +3738 -0
- package/dist/chunks/{filter-value-text-CUBpotVN.js → filter-value-text-CRC-K_l_.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-BsFqnnbA.js → global-date-filter-utils-D8365uPH.js} +4088 -3416
- package/dist/chunks/{index-DP_wQl0v.js → index-DtHidOPV.js} +579 -604
- package/dist/chunks/{layout-grid-CkoXmv0L.js → layout-grid-BvsH4RY2.js} +1 -1
- package/dist/chunks/{list-filter-B4i25kuc.js → list-filter-Dg0otx5E.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-4GTUDheD.js → matrix-analytical-definition-CM18W8w6.js} +41 -41
- package/dist/chunks/{matrix-card-fS_4O7zA.js → matrix-card-HPskLaPy.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Dj7HaAHC.js → matrix-member-presentation-Bbrfrke4.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-CpgLZ7E5.js → matrix-operation-contract-WPv4R-H_.js} +130 -130
- package/dist/chunks/{metric-comparison-C8LY7GG5.js → metric-comparison-ljMKYZKa.js} +2 -2
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-Ccn1zaxl.js} +1 -1
- package/dist/chunks/{palette-stlpjVk4.js → palette-Bsh376zO.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DMk-mKhG.js → pivot-result-contract-expectations-Bl5suy4-.js} +602 -696
- package/dist/chunks/{pivot-result-identity-CrQ54Xbj.js → pivot-result-identity-vS9TSh4f.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-BI2z2LlB.js → raw-temporal-presentation-BHm7s-hz.js} +230 -274
- package/dist/chunks/{report-preferences-dialog-Dc-YyVwf.js → report-preferences-dialog-BV8L0SeS.js} +55 -55
- package/dist/chunks/{report-runtime-context-CohdtiMg.js → report-runtime-context-BZQh9ywy.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-BZYI1hB0.js → resolve-dashboard-input-context-CAMiWvyR.js} +2021 -2239
- package/dist/chunks/{save-C1dgxgAu.js → save-B5EAsgQF.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CIBoMq46.js → saved-dashboard-context-n2Wn11cV.js} +57 -57
- package/dist/chunks/{selection-reducer-_d6aKJnj.js → selection-reducer-D0YnaAD9.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ERTLU7B4.js → semaphor-ready-indicator-XLBLOJ2V.js} +38446 -39176
- package/dist/chunks/{shelf-drop-preview-context-fEnx6iL_.js → shelf-drop-preview-context-DHMa54a-.js} +570 -570
- package/dist/chunks/source-entity-resolution-dUG5VWRm.js +607 -0
- package/dist/chunks/{switch-BqUan2mN.js → switch-ByxH4M7t.js} +3 -3
- package/dist/chunks/{table-export-sheet-CTCTA_bd.js → table-export-sheet-C_GdeTYU.js} +1 -1
- package/dist/chunks/{table-settings-DF1gdVQR.js → table-settings-Imz0FgWi.js} +8 -8
- package/dist/chunks/{temporal-input-presentation-DoSniQj1.js → temporal-input-presentation-uvNK_tM0.js} +1109 -820
- package/dist/chunks/{token-types-DFyLflLY.js → token-types-CQtXUVMy.js} +1 -1
- package/dist/chunks/{upload-DcoyjkRV.js → upload-wbR-NVzq.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-xhb9YFg-.js → use-create-flow-overlay-state-CEBaLOKC.js} +6 -6
- package/dist/chunks/validators-CXTneCA4.js +3453 -0
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-B1n_WjW3.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2207 -1496
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +181 -176
- package/dist/index.js +22 -22
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +6 -6
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +39 -9
- package/dist/types/lib/stores/table-actions.d.ts +9 -3
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +13 -44
- package/dist/types/lib/utils/card-config-utils.d.ts +9 -1
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +159 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/source-capabilities.d.ts +21 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +24 -24
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -1
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +15 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +1 -1
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-BvJH9JO-.js +0 -3411
- package/dist/chunks/source-entity-resolution-DXW1HpKf.js +0 -816
- package/dist/chunks/validators-hmfNNQz8.js +0 -3595
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
package/dist/chunks/{comparison-window-caption-Dc7BaCMz.js → comparison-window-caption-4FNkMrzE.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Ke = Object.defineProperty;
|
|
2
2
|
var Ve = (e, t, r) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ae = (e, t, r) => Ve(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { h as
|
|
7
|
-
import {
|
|
8
|
-
import "./matrix-operation-contract-
|
|
9
|
-
import "./analytics-base-schemas-
|
|
4
|
+
import { ag as Ue, i as je, l as N, o as Be, ah as Ee, c as ze, p as Xe, a8 as He, a as Ge, b as V, T as se, a3 as qe, S as We, a4 as Ye, a5 as Ze, P as ie, K as Je, N as Qe, U as et, a7 as tt, ai as R } from "./temporal-input-presentation-uvNK_tM0.js";
|
|
5
|
+
import { j as Se, m as J, n as Fe, o as rt, q as ke, f as le, d as nt, k as ot, s as L } from "./pivot-result-contract-expectations-Bl5suy4-.js";
|
|
6
|
+
import { h as X, e as at, p as st, k as it } from "./export-file-format-C-tJsxsf.js";
|
|
7
|
+
import { aW as O, aj as lt, t as B, aV as ct, v as Q, u as ut } from "./validators-CXTneCA4.js";
|
|
8
|
+
import "./matrix-operation-contract-WPv4R-H_.js";
|
|
9
|
+
import "./analytics-base-schemas-CHLxsPfX.js";
|
|
10
10
|
import "zod";
|
|
11
|
-
import { PDF_SAFETY_LIMIT_EXCEEDED as Me, getUtf8ByteLength as
|
|
12
|
-
import { c as
|
|
13
|
-
import { v as
|
|
14
|
-
function
|
|
11
|
+
import { PDF_SAFETY_LIMIT_EXCEEDED as Me, getUtf8ByteLength as mt, FAST_PDF_POLICY as dt } from "../pdf-export-policy/index.js";
|
|
12
|
+
import { c as ft, b as ce } from "./pivot-result-identity-vS9TSh4f.js";
|
|
13
|
+
import { v as pt, g as yt } from "./zoned-wall-clock-B1n_WjW3.js";
|
|
14
|
+
function ht(e, t, r) {
|
|
15
15
|
const n = {
|
|
16
16
|
...t,
|
|
17
17
|
locale: t.locale ?? r
|
|
@@ -25,12 +25,12 @@ function yt(e, t, r) {
|
|
|
25
25
|
})}${l ?? ""}`;
|
|
26
26
|
}
|
|
27
27
|
function W(e, t, r) {
|
|
28
|
-
return e === null ? { value: e, text: null } : !t || !
|
|
28
|
+
return e === null ? { value: e, text: null } : !t || !je(t) && t.type !== "duration" ? {
|
|
29
29
|
value: e,
|
|
30
30
|
text: N(e, { type: "number", locale: r })
|
|
31
31
|
} : t.type === "duration" ? {
|
|
32
32
|
value: e,
|
|
33
|
-
text:
|
|
33
|
+
text: Be(e, {
|
|
34
34
|
inputUnit: t.inputUnit,
|
|
35
35
|
outputStyle: t.outputStyle,
|
|
36
36
|
largestUnit: t.largestUnit,
|
|
@@ -40,7 +40,7 @@ function W(e, t, r) {
|
|
|
40
40
|
suffix: t.suffix,
|
|
41
41
|
negativeInParentheses: t.negativeStyle === "parentheses"
|
|
42
42
|
})
|
|
43
|
-
} : { value: e, text:
|
|
43
|
+
} : { value: e, text: ht(e, t, r) };
|
|
44
44
|
}
|
|
45
45
|
function ue(e, t, r, n) {
|
|
46
46
|
return e === null ? { value: e, text: null } : n === "percent" ? {
|
|
@@ -69,7 +69,7 @@ function me(e, t) {
|
|
|
69
69
|
throw new RangeError("Comparison precision must be an integer from 0 to 6.");
|
|
70
70
|
return e;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function vr(e, t) {
|
|
73
73
|
const r = {
|
|
74
74
|
mode: t.displayMode,
|
|
75
75
|
current: W(
|
|
@@ -85,7 +85,7 @@ function wr(e, t) {
|
|
|
85
85
|
};
|
|
86
86
|
return (t.displayMode === "difference" || t.displayMode === "both") && (r.difference = W(
|
|
87
87
|
e.delta,
|
|
88
|
-
t.metricFormat,
|
|
88
|
+
Ue(t.metricFormat),
|
|
89
89
|
t.locale
|
|
90
90
|
)), (t.displayMode === "percent_change" || t.displayMode === "both") && (r.percentChange = ue(
|
|
91
91
|
e.percentChange,
|
|
@@ -100,18 +100,18 @@ function wr(e, t) {
|
|
|
100
100
|
)), r;
|
|
101
101
|
}
|
|
102
102
|
const bt = /* @__PURE__ */ new Set(["second", "minute", "hour", "day", "month"]);
|
|
103
|
-
function
|
|
103
|
+
function gt(e) {
|
|
104
104
|
const { presentation: t } = e;
|
|
105
105
|
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" ? bt.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";
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function wt(e) {
|
|
108
108
|
const t = (o, l) => Number.isInteger(o) ? Math.min(20, Math.max(0, o)) : l, r = t(e.minimumFractionDigits, 0), n = Math.max(r, t(e.maximumFractionDigits, 2));
|
|
109
109
|
return n === 0 ? "" : `.${"0".repeat(n)}`;
|
|
110
110
|
}
|
|
111
111
|
function Y(e) {
|
|
112
112
|
return `"${e.replace(/"/g, "")}"`;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function vt(e) {
|
|
115
115
|
let t;
|
|
116
116
|
try {
|
|
117
117
|
t = new Intl.NumberFormat(e.locale ?? "en-US", {
|
|
@@ -129,25 +129,25 @@ function wt(e) {
|
|
|
129
129
|
text: o(n + 1, r) + t[r].value
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const t =
|
|
132
|
+
function Ct(e) {
|
|
133
|
+
const t = wt(e);
|
|
134
134
|
let r;
|
|
135
135
|
if (e.type === "scientific")
|
|
136
136
|
r = `0${t}E+00`;
|
|
137
137
|
else {
|
|
138
138
|
const n = `${e.useGrouping === !1 ? "0" : "#,##0"}${t}`;
|
|
139
139
|
if (e.type === "currency") {
|
|
140
|
-
const o =
|
|
140
|
+
const o = vt(e);
|
|
141
141
|
r = o ? o.side === "before" ? `${Y(o.text)}${n}` : `${n}${Y(o.text)}` : n;
|
|
142
142
|
} else e.type === "percent" ? r = e.percentValueMode === "whole" ? `${n}${Y("%")}` : `${n}%` : r = n;
|
|
143
143
|
}
|
|
144
144
|
return e.negativeStyle === "parentheses" ? `${r};(${r})` : r;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function xt(e, t) {
|
|
147
147
|
if (!e.formattedValues) return;
|
|
148
148
|
const { presentation: r } = e;
|
|
149
149
|
if (t === "number" || t === "by_value")
|
|
150
|
-
return (r == null ? void 0 : r.kind) !== "measure" || r.format.type === "duration" ? void 0 :
|
|
150
|
+
return (r == null ? void 0 : r.kind) !== "measure" || r.format.type === "duration" ? void 0 : Ct(r.format);
|
|
151
151
|
if (t === "date") {
|
|
152
152
|
if ((r == null ? void 0 : r.kind) === "temporal_bucket")
|
|
153
153
|
return r.grain === "day" ? "yyyy-mm-dd" : r.grain === "month" ? "mmm yyyy" : "yyyy-mm-dd hh:mm";
|
|
@@ -156,7 +156,7 @@ function Ct(e, t) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function de(e) {
|
|
159
|
-
const t =
|
|
159
|
+
const t = gt(e), r = xt(e, t);
|
|
160
160
|
return Object.freeze({
|
|
161
161
|
key: e.key,
|
|
162
162
|
label: e.label,
|
|
@@ -164,18 +164,18 @@ function de(e) {
|
|
|
164
164
|
...r === void 0 ? {} : { numberFormat: r }
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const Tt = 15, Et = /^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
|
|
168
168
|
function Ie(e) {
|
|
169
|
-
return
|
|
169
|
+
return Et.test(e) ? e : void 0;
|
|
170
170
|
}
|
|
171
171
|
function fe(e) {
|
|
172
172
|
const r = e.replace(/^-/, "").replace(/[eE].*$/, "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "");
|
|
173
|
-
if (r.length >
|
|
173
|
+
if (r.length > Tt) return !1;
|
|
174
174
|
const n = Number(e);
|
|
175
175
|
return Number.isFinite(n) && (n !== 0 || r.length === 0);
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
177
|
+
const St = Date.UTC(1900, 2, 1), Ft = Date.UTC(1e4, 0, 1), kt = Date.UTC(1899, 11, 30), Mt = 864e5;
|
|
178
|
+
function It(e) {
|
|
179
179
|
const t = Date.UTC(
|
|
180
180
|
e.year,
|
|
181
181
|
e.month - 1,
|
|
@@ -184,8 +184,8 @@ function Mt(e) {
|
|
|
184
184
|
e.minute,
|
|
185
185
|
e.second
|
|
186
186
|
);
|
|
187
|
-
if (!(e.year < 1900 || !Number.isFinite(t)) && !(t <
|
|
188
|
-
return (t -
|
|
187
|
+
if (!(e.year < 1900 || !Number.isFinite(t)) && !(t < St || t >= Ft))
|
|
188
|
+
return (t - kt) / Mt;
|
|
189
189
|
}
|
|
190
190
|
function pe(e, t, r) {
|
|
191
191
|
if (typeof e == "number")
|
|
@@ -205,7 +205,7 @@ function U(e) {
|
|
|
205
205
|
case "text":
|
|
206
206
|
return o;
|
|
207
207
|
case "date": {
|
|
208
|
-
const l = e.wallClock ?
|
|
208
|
+
const l = e.wallClock ? It(e.wallClock) : void 0;
|
|
209
209
|
return l === void 0 ? o : { kind: "date", text: r, serial: l };
|
|
210
210
|
}
|
|
211
211
|
case "number":
|
|
@@ -216,21 +216,21 @@ function U(e) {
|
|
|
216
216
|
return typeof t == "boolean" ? { kind: "boolean", text: r, value: t } : pe(t, r, !1) ?? o;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Cr(e) {
|
|
220
220
|
return e.kind === "empty" ? "" : e.text;
|
|
221
221
|
}
|
|
222
|
-
const $e = 1e4,
|
|
223
|
-
function
|
|
222
|
+
const $e = 1e4, $t = 1e6, xr = 5e6, Tr = 1024 ** 3, Er = 1024 ** 3;
|
|
223
|
+
function Sr(e) {
|
|
224
224
|
return e > $e;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return e.cardType === "matrixTable" ? "try-direct" : e.loadedRowCount === null || e.loadedRowCount <= $e ? "direct" : e.loadedRowCount <=
|
|
226
|
+
function Fr(e) {
|
|
227
|
+
return e.cardType === "matrixTable" ? "try-direct" : e.loadedRowCount === null || e.loadedRowCount <= $e ? "direct" : e.loadedRowCount <= $t ? "background" : "blocked";
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const kr = {
|
|
230
230
|
rowLabels: "tabular",
|
|
231
231
|
subtotals: "after"
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function Mr(e, t) {
|
|
234
234
|
const r = t.rowLabels === "outline" ? { kind: "compact" } : e.layout.kind === "tabular" ? e.layout : { kind: "tabular", repeatLabels: !1 }, n = e.totals.rows;
|
|
235
235
|
return {
|
|
236
236
|
...e,
|
|
@@ -249,13 +249,13 @@ function kr(e, t) {
|
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
function
|
|
252
|
+
const Lt = 2;
|
|
253
|
+
function Pt(e) {
|
|
254
254
|
return typeof e == "number" ? Number.isInteger(e) : O(e) ? !e.value.includes(".") : !0;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Dt(e, t, r) {
|
|
257
257
|
const n = e.descriptors.measures.filter(
|
|
258
|
-
(s) => r.measureFormats[s.id] === void 0 && s.semanticFormat === void 0 &&
|
|
258
|
+
(s) => r.measureFormats[s.id] === void 0 && s.semanticFormat === void 0 && lt(s.column.dataType) === "number"
|
|
259
259
|
);
|
|
260
260
|
if (n.length === 0) return r;
|
|
261
261
|
const o = /* @__PURE__ */ new Set();
|
|
@@ -263,7 +263,7 @@ function Pt(e, t, r) {
|
|
|
263
263
|
if (!(s.kind !== "measure" || o.has(s.measureId)))
|
|
264
264
|
for (const f of t) {
|
|
265
265
|
const d = f.values[c];
|
|
266
|
-
if ((d == null ? void 0 : d.kind) === "value" && !
|
|
266
|
+
if ((d == null ? void 0 : d.kind) === "value" && !Pt(d.value)) {
|
|
267
267
|
o.add(s.measureId);
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
@@ -271,7 +271,7 @@ function Pt(e, t, r) {
|
|
|
271
271
|
});
|
|
272
272
|
const l = { ...r.measureFormats };
|
|
273
273
|
for (const { id: s } of n) {
|
|
274
|
-
const c = o.has(s) ?
|
|
274
|
+
const c = o.has(s) ? Lt : 0;
|
|
275
275
|
l[s] = {
|
|
276
276
|
type: "number",
|
|
277
277
|
minimumFractionDigits: c,
|
|
@@ -284,24 +284,24 @@ function Pt(e, t, r) {
|
|
|
284
284
|
function j(e) {
|
|
285
285
|
return B(e.slice(0, -1));
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function _t(e, t) {
|
|
288
288
|
return t.length > e.length && B(t.slice(0, e.length)) === B(e);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function At(e) {
|
|
291
291
|
return e.map((t, r) => {
|
|
292
292
|
if (r === 0 || t.kind !== "layout") return !1;
|
|
293
293
|
const n = e[r - 1];
|
|
294
294
|
if (n.kind !== "layout") return !1;
|
|
295
|
-
if (t.role !== "member" ||
|
|
295
|
+
if (t.role !== "member" || _t(n.rowPath, t.rowPath)) return !0;
|
|
296
296
|
const o = e[r - 2];
|
|
297
297
|
return n.role === "member" && (!o || o.kind !== "layout" || o.role !== "member" || j(o.rowPath) !== j(n.rowPath)) && t.rowPath.length === n.rowPath.length && j(t.rowPath) === j(n.rowPath);
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const Rt = "pdf-group-continuation";
|
|
301
301
|
function Le(e, t, r) {
|
|
302
|
-
return !(r != null && r.hasTextAffixes) && t.kind === "value" && (typeof t.value == "number" || O(t.value)) ? e :
|
|
302
|
+
return !(r != null && r.hasTextAffixes) && t.kind === "value" && (typeof t.value == "number" || O(t.value)) ? e : X(e);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Nt(e, t, r) {
|
|
305
305
|
const n = Se(e.descriptors, t.presentation, r), o = e.columns.map((u) => {
|
|
306
306
|
var a;
|
|
307
307
|
return u.kind === "measure" && ((a = n.measureSemantics.get(u.measureId)) == null ? void 0 : a.isNumeric) === !0;
|
|
@@ -312,7 +312,7 @@ function Rt(e, t, r) {
|
|
|
312
312
|
}), f = Math.min(t.spec.columns.length, Math.max(
|
|
313
313
|
0,
|
|
314
314
|
...e.columns.map((u) => u.kind === "measure" ? u.columnPath.length + (u.role !== "member" ? 1 : 0) : 0)
|
|
315
|
-
)), d = Array.from({ length: f + 1 }, (u, a) => e.columns.map((m) => a === f ? m.label : m.kind !== "measure" ? "" : a < m.columnPath.length ? l(m.columnPath[a]) : a === m.columnPath.length && m.role !== "member" ? s(m.columnPath, m.role, "columns") : "")),
|
|
315
|
+
)), d = Array.from({ length: f + 1 }, (u, a) => e.columns.map((m) => a === f ? m.label : m.kind !== "measure" ? "" : a < m.columnPath.length ? l(m.columnPath[a]) : a === m.columnPath.length && m.role !== "member" ? s(m.columnPath, m.role, "columns") : "")), b = (u, a) => rt({
|
|
316
316
|
path: u.rowPath,
|
|
317
317
|
role: u.kind === "layout" ? u.role : "member",
|
|
318
318
|
levelCount: Math.max(1, t.spec.rows.length),
|
|
@@ -321,22 +321,22 @@ function Rt(e, t, r) {
|
|
|
321
321
|
}), w = (u, a) => {
|
|
322
322
|
if (u.kind !== "layout") throw new Error("Layout presentation requires layout rows.");
|
|
323
323
|
if (u.values.length !== e.columns.length) throw new Error("Matrix row does not match its frozen layout.");
|
|
324
|
-
const m =
|
|
325
|
-
return e.columns.map((
|
|
326
|
-
if (
|
|
324
|
+
const m = b(u, a);
|
|
325
|
+
return e.columns.map((h, p) => {
|
|
326
|
+
if (h.kind === "hierarchy")
|
|
327
327
|
return `${" ".repeat(Math.max(0, u.rowPath.length - 1))}${s(u.rowPath, u.role, "rows")}`;
|
|
328
|
-
if (
|
|
329
|
-
const v = t.spec.rows.findIndex((F) => F.id ===
|
|
328
|
+
if (h.kind === "level") {
|
|
329
|
+
const v = t.spec.rows.findIndex((F) => F.id === h.levelId), C = m[v];
|
|
330
330
|
return C != null && C.visible ? C.total ? s(u.rowPath, u.role, "rows") : J(C.path, n.levels) : "";
|
|
331
331
|
}
|
|
332
|
-
const T = u.values[p], g = n.measures.get(
|
|
332
|
+
const T = u.values[p], g = n.measures.get(h.measureId);
|
|
333
333
|
if (T.kind === "value" && !g)
|
|
334
334
|
throw new Error("Matrix value is missing its measure descriptor.");
|
|
335
335
|
return ke(T, g, t.presentation.absence);
|
|
336
336
|
});
|
|
337
|
-
}, x = (u, a) => w(u, a).map((m,
|
|
338
|
-
const p = e.columns[
|
|
339
|
-
return p.kind === "measure" ? Le(m, u.values[
|
|
337
|
+
}, x = (u, a) => w(u, a).map((m, h) => {
|
|
338
|
+
const p = e.columns[h];
|
|
339
|
+
return p.kind === "measure" ? Le(m, u.values[h], n.measureSemantics.get(p.measureId)) : X(m);
|
|
340
340
|
});
|
|
341
341
|
return {
|
|
342
342
|
headers: c,
|
|
@@ -355,12 +355,12 @@ function Rt(e, t, r) {
|
|
|
355
355
|
continuedColumns: (u, a) => {
|
|
356
356
|
const m = (p) => (p == null ? void 0 : p.kind) === "layout" && p.role === "member";
|
|
357
357
|
if (!m(u) || !m(a)) return [];
|
|
358
|
-
const
|
|
358
|
+
const h = b(u, a);
|
|
359
359
|
return e.columns.flatMap((p, T) => {
|
|
360
360
|
var v;
|
|
361
361
|
if (p.kind !== "level") return [];
|
|
362
362
|
const g = t.spec.rows.findIndex((C) => C.id === p.levelId);
|
|
363
|
-
return g < u.rowPath.length && ((v =
|
|
363
|
+
return g < u.rowPath.length && ((v = h[g]) == null ? void 0 : v.visible) === !1 ? [T] : [];
|
|
364
364
|
});
|
|
365
365
|
},
|
|
366
366
|
csvRow: (u) => x(u),
|
|
@@ -371,19 +371,19 @@ function Rt(e, t, r) {
|
|
|
371
371
|
* formatter state or an earlier worker. Without it, the first row prints
|
|
372
372
|
* its labels.
|
|
373
373
|
*/
|
|
374
|
-
csvRows: (u, a) => u.map((m,
|
|
374
|
+
csvRows: (u, a) => u.map((m, h) => x(m, h ? u[h - 1] : a ?? void 0))
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return e.columns.map((t) =>
|
|
377
|
+
function Ir(e) {
|
|
378
|
+
return e.columns.map((t) => X(t.label));
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function $r(e, t, r) {
|
|
381
|
+
return Ot(e, t, r).map((n, o) => {
|
|
382
382
|
const l = t.columns[o];
|
|
383
|
-
return l.kind === "measure" ? Le(n, e.values[o], r.measureSemantics.get(l.measureId)) :
|
|
383
|
+
return l.kind === "measure" ? Le(n, e.values[o], r.measureSemantics.get(l.measureId)) : X(n);
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ot(e, t, r) {
|
|
387
387
|
if (e.kind !== "flat") throw new Error("Flat Matrix CSV requires flat rows.");
|
|
388
388
|
if (e.values.length !== t.columns.length) throw new Error("Matrix row does not match its frozen layout.");
|
|
389
389
|
const n = [...e.rowPath, ...e.columnPath];
|
|
@@ -398,8 +398,8 @@ function Nt(e, t, r) {
|
|
|
398
398
|
return J([s], r.levels);
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
const t =
|
|
401
|
+
function Kt(e) {
|
|
402
|
+
const t = Nt(e.layout, e.request, e.report), r = e.layout.columns.map((s, c) => ({
|
|
403
403
|
index: c,
|
|
404
404
|
columnId: `matrix:${c}`,
|
|
405
405
|
label: t.headers[c],
|
|
@@ -444,7 +444,7 @@ function Ot(e) {
|
|
|
444
444
|
subtotalLevel: String(s.rowPath.length),
|
|
445
445
|
// A tabular layout prints each label once unless it repeats them; the
|
|
446
446
|
// blank cell continues its group, so a grid draws no rule above it.
|
|
447
|
-
cells: t.row(s, e.rows[c - 1]).map((d,
|
|
447
|
+
cells: t.row(s, e.rows[c - 1]).map((d, b) => f.has(b) ? { ...n(d, b, !1), className: Rt } : n(d, b, !1))
|
|
448
448
|
};
|
|
449
449
|
}),
|
|
450
450
|
grandTotal: null,
|
|
@@ -461,10 +461,10 @@ function Ot(e) {
|
|
|
461
461
|
}
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
const { levels: n } = Se(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, l = [], s = [], c = e.columns.map((d,
|
|
464
|
+
function Vt(e, t, r) {
|
|
465
|
+
const { levels: n } = Se(e.descriptors, t.presentation, r), o = t.spec.columns.length > 0, l = [], s = [], c = e.columns.map((d, b) => {
|
|
466
466
|
if (d.kind !== "measure") return null;
|
|
467
|
-
const w = o ? `${d.role}:${B(d.columnPath)}` : `measure:${
|
|
467
|
+
const w = o ? `${d.role}:${B(d.columnPath)}` : `measure:${b}`;
|
|
468
468
|
let x = l.indexOf(w);
|
|
469
469
|
return x < 0 && (x = l.push(w) - 1, s.push(o ? Fe(d.columnPath, d.role, t.presentation.totals.columns, n) : d.label)), x;
|
|
470
470
|
}), f = t.spec.columns[t.spec.columns.length - 1];
|
|
@@ -475,18 +475,18 @@ function Kt(e, t, r) {
|
|
|
475
475
|
groupLevelLabel: f ? Ee(f, t.presentation) : "Measures"
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Lr(e) {
|
|
479
479
|
const { layout: t, rows: r, report: n } = e, o = {
|
|
480
480
|
...e.request,
|
|
481
|
-
presentation:
|
|
482
|
-
}, l =
|
|
481
|
+
presentation: Dt(t, r, e.request.presentation)
|
|
482
|
+
}, l = Kt({ layout: t, rows: r, request: o, report: n }), s = At(r), c = Vt(t, o, n), f = {
|
|
483
483
|
...l,
|
|
484
|
-
rows: l.rows.map((d,
|
|
484
|
+
rows: l.rows.map((d, b) => ({ ...d, keepWithPrevious: s[b] })),
|
|
485
485
|
metadata: { ...l.metadata, ...c }
|
|
486
486
|
};
|
|
487
487
|
return { request: o, table: f, ...c };
|
|
488
488
|
}
|
|
489
|
-
class
|
|
489
|
+
class Ut extends Error {
|
|
490
490
|
constructor() {
|
|
491
491
|
super(...arguments);
|
|
492
492
|
ae(this, "code", Me);
|
|
@@ -500,7 +500,7 @@ function ye(e) {
|
|
|
500
500
|
if (typeof o == "string" && o.trim())
|
|
501
501
|
return o.trim();
|
|
502
502
|
}
|
|
503
|
-
async function
|
|
503
|
+
async function jt(e) {
|
|
504
504
|
const t = `PDF request failed: ${e.status} ${e.statusText}`.trim(), r = e.headers.get("content-type") || "";
|
|
505
505
|
try {
|
|
506
506
|
if (r.includes("application/json")) {
|
|
@@ -523,9 +523,9 @@ async function Ut(e) {
|
|
|
523
523
|
return { message: t };
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
|
-
async function
|
|
526
|
+
async function Pr(e) {
|
|
527
527
|
if (!e.token) throw new Error("Missing auth token for PDF export");
|
|
528
|
-
if (
|
|
528
|
+
if (mt(e.serializedPayload) > dt.maxRequestBytes)
|
|
529
529
|
throw new Error("Fast-path PDF request exceeds the structured body limit");
|
|
530
530
|
const t = await (e.fetchImpl ?? fetch)(e.url, {
|
|
531
531
|
method: "POST",
|
|
@@ -534,8 +534,8 @@ async function Lr(e) {
|
|
|
534
534
|
signal: e.signal
|
|
535
535
|
});
|
|
536
536
|
if (!t.ok) {
|
|
537
|
-
const n = await
|
|
538
|
-
throw n.code === Me ? new
|
|
537
|
+
const n = await jt(t);
|
|
538
|
+
throw n.code === Me ? new Ut(n.message) : new Error(n.message);
|
|
539
539
|
}
|
|
540
540
|
const r = await t.json();
|
|
541
541
|
if (r != null && r.error) throw new Error(r.error);
|
|
@@ -543,13 +543,13 @@ async function Lr(e) {
|
|
|
543
543
|
throw new Error("Fast-path PDF response missing download URL");
|
|
544
544
|
return r;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function Bt(e, t) {
|
|
547
547
|
return e.dashboardId === t.dashboardId && e.cardId === t.cardId && e.attachmentIndex === void 0;
|
|
548
548
|
}
|
|
549
549
|
function Pe(e) {
|
|
550
550
|
return new Map(
|
|
551
551
|
e.presentationExecutionSnapshot.resolvedFormats.flatMap(
|
|
552
|
-
(t) => t.format.type === "raw_temporal" && t.target.kind === "column" &&
|
|
552
|
+
(t) => t.format.type === "raw_temporal" && t.target.kind === "column" && Bt(t.scope, e.scope) ? [[t.target.columnKey, t.format]] : []
|
|
553
553
|
)
|
|
554
554
|
);
|
|
555
555
|
}
|
|
@@ -557,10 +557,10 @@ function De(e) {
|
|
|
557
557
|
const t = e == null ? void 0 : e.sql, r = e == null ? void 0 : e.python;
|
|
558
558
|
return (e == null ? void 0 : e.resultOwner) === "freeform" && typeof t == "string" && !!t.trim() && (typeof r != "string" || !r.trim());
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Dr(e) {
|
|
561
561
|
return e.formatting.useFormattedValues !== !1 && De(e.queryPayload) && Pe(e.formatting).size > 0;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function zt(e, t) {
|
|
564
564
|
return e.map((r, n) => {
|
|
565
565
|
if (!Object.prototype.hasOwnProperty.call(r, t) || r[t] === void 0)
|
|
566
566
|
throw new Error(
|
|
@@ -570,7 +570,7 @@ function Bt(e, t) {
|
|
|
570
570
|
return o === null || typeof o == "string" ? o : String(o);
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Xt(e) {
|
|
574
574
|
if (e.formatting.useFormattedValues === !1)
|
|
575
575
|
return {
|
|
576
576
|
activatedColumnKeys: /* @__PURE__ */ new Set(),
|
|
@@ -587,24 +587,24 @@ function zt(e) {
|
|
|
587
587
|
), l = De(e.queryPayload), s = /* @__PURE__ */ new Map();
|
|
588
588
|
for (const [c, f] of t) {
|
|
589
589
|
const d = o.get(c);
|
|
590
|
-
let
|
|
590
|
+
let b;
|
|
591
591
|
if (d != null && d.rawTemporal)
|
|
592
|
-
|
|
592
|
+
b = pt(d, {
|
|
593
593
|
metadataRequired: !0
|
|
594
594
|
}), r.add(c);
|
|
595
595
|
else if (l) {
|
|
596
596
|
r.add(c);
|
|
597
|
-
const w =
|
|
597
|
+
const w = ze({
|
|
598
598
|
columnKey: c,
|
|
599
|
-
values:
|
|
599
|
+
values: zt(e.records, c)
|
|
600
600
|
});
|
|
601
|
-
s.set(c, w), w.status === "classified" && (
|
|
601
|
+
s.set(c, w), w.status === "classified" && (b = w.metadata);
|
|
602
602
|
} else
|
|
603
603
|
continue;
|
|
604
|
-
|
|
605
|
-
metadata:
|
|
604
|
+
b && n.set(c, {
|
|
605
|
+
metadata: b,
|
|
606
606
|
format: f,
|
|
607
|
-
formatValue:
|
|
607
|
+
formatValue: Xe({ metadata: b, format: f })
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
return {
|
|
@@ -630,18 +630,18 @@ function Ht(e) {
|
|
|
630
630
|
const r = t.formatValue(e.value);
|
|
631
631
|
return r.ok && r.wallClock ? { text: r.text, wallClock: r.wallClock } : { text: r.text };
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function he(e, t) {
|
|
634
634
|
const r = e.byColumnKey.get(t);
|
|
635
635
|
return r ? r.metadata.valueKind === "date" : void 0;
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const Gt = /* @__PURE__ */ new Set(["string", "number", "boolean", "date", "datetime"]), qt = /^\d{4}-\d{2}-\d{2}|^\d{2}\/\d{2}\/\d{4}/, Wt = /^\d{4}-\d{2}-\d{2}$/, _e = "MM/dd/yyyy";
|
|
638
638
|
function z(e) {
|
|
639
639
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
640
640
|
}
|
|
641
641
|
function A(e) {
|
|
642
642
|
return e.key || e.field || void 0;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function be(e) {
|
|
645
645
|
return e == null ? "" : typeof e == "string" ? e : O(e) ? e.value : e instanceof Date ? e.toISOString() : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
646
646
|
}
|
|
647
647
|
function ge(e, t) {
|
|
@@ -656,32 +656,32 @@ function we(e) {
|
|
|
656
656
|
function ve(e, t) {
|
|
657
657
|
return e && e !== "auto" ? e : t;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Yt(e) {
|
|
660
660
|
return !/[HhKkmsSa]/.test(e.replace(/'[^']*'/g, ""));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Zt(e) {
|
|
663
663
|
if (typeof e == "number") return Number.isFinite(e) ? e : null;
|
|
664
664
|
if (typeof e != "string" || !e.trim()) return null;
|
|
665
665
|
const t = Number(e);
|
|
666
666
|
return Number.isFinite(t) ? t : null;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Jt(e) {
|
|
669
669
|
const t = Ie(e);
|
|
670
670
|
if (t !== void 0)
|
|
671
671
|
try {
|
|
672
|
-
return
|
|
672
|
+
return ct(t, /[.eE]/.test(t) ? "decimal" : "integer");
|
|
673
673
|
} catch {
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Qt(e) {
|
|
678
678
|
return e.calendar.fiscalCalendar && (e.granularity === "quarter" || e.granularity === "year") ? "fiscal" : e.granularity;
|
|
679
679
|
}
|
|
680
|
-
function
|
|
681
|
-
const { formatting: t, queryPayload: r } = e, n = t.useFormattedValues, o = t.scope, l = (a) =>
|
|
680
|
+
function _r(e) {
|
|
681
|
+
const { formatting: t, queryPayload: r } = e, n = t.useFormattedValues, o = t.scope, l = (a) => Ge({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } }), s = (a) => We({ snapshot: t.presentationExecutionSnapshot, scope: o, target: { kind: "column", columnKey: a } });
|
|
682
682
|
function c(a) {
|
|
683
|
-
var
|
|
684
|
-
if ((
|
|
683
|
+
var h;
|
|
684
|
+
if ((h = t.visibleColumns) != null && h.length) return t.visibleColumns;
|
|
685
685
|
const m = a.columns.map(A).filter((p) => !!p);
|
|
686
686
|
return m.length > 0 ? m : a.records[0] ? Object.keys(a.records[0]) : [];
|
|
687
687
|
}
|
|
@@ -689,10 +689,10 @@ function Dr(e) {
|
|
|
689
689
|
return t.columnLabels && Object.prototype.hasOwnProperty.call(t.columnLabels, a) && t.columnLabels[a] || void 0 || d(m) || (m == null ? void 0 : m.label) || (m == null ? void 0 : m.headerName) || a;
|
|
690
690
|
}
|
|
691
691
|
function d(a, m) {
|
|
692
|
-
const
|
|
693
|
-
if (!
|
|
694
|
-
const p = ce({ identity:
|
|
695
|
-
return
|
|
692
|
+
const h = a == null ? void 0 : a.pivotIdentity;
|
|
693
|
+
if (!h || !h.members || h.members.length === 0) return;
|
|
694
|
+
const p = ce({ identity: h, columnKey: (a == null ? void 0 : a.key) || (a == null ? void 0 : a.field) || "" });
|
|
695
|
+
return ot({
|
|
696
696
|
members: p,
|
|
697
697
|
metricLabel: (a == null ? void 0 : a.label) || (a == null ? void 0 : a.headerName),
|
|
698
698
|
mode: n ? "formatted" : "canonical",
|
|
@@ -704,12 +704,12 @@ function Dr(e) {
|
|
|
704
704
|
scope: o,
|
|
705
705
|
target: { kind: "field", fieldId: T, role: "pivotby" }
|
|
706
706
|
});
|
|
707
|
-
return v ?
|
|
707
|
+
return v ? b(g.temporalBucket, v) : void 0;
|
|
708
708
|
}
|
|
709
709
|
}).flattenedLabel;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
711
|
+
function b(a, m) {
|
|
712
|
+
return qe({
|
|
713
713
|
metadata: a,
|
|
714
714
|
cardFormat: m,
|
|
715
715
|
locale: m.locale,
|
|
@@ -717,10 +717,10 @@ function Dr(e) {
|
|
|
717
717
|
}).format;
|
|
718
718
|
}
|
|
719
719
|
function w(a, m) {
|
|
720
|
-
const { records:
|
|
720
|
+
const { records: h, columns: p } = a, T = z(r.cardConfig) ? r.cardConfig : void 0, g = T == null ? void 0 : T.pivotByColumns, v = Array.isArray(g) ? g.flatMap(
|
|
721
721
|
(i) => z(i) && typeof i.id == "string" && i.id ? [i.id] : []
|
|
722
722
|
) : [];
|
|
723
|
-
|
|
723
|
+
ft(
|
|
724
724
|
p.map((i) => ({ key: A(i) || "<unknown>", pivotIdentity: i.pivotIdentity })),
|
|
725
725
|
{ expectedPivotFieldIds: v }
|
|
726
726
|
);
|
|
@@ -729,12 +729,12 @@ function Dr(e) {
|
|
|
729
729
|
const y = A(i);
|
|
730
730
|
return y ? [[y, i]] : [];
|
|
731
731
|
})
|
|
732
|
-
), Re = new Map(a.resultColumns.map((i) => [i.key, i.dataType])), I =
|
|
733
|
-
records:
|
|
732
|
+
), Re = new Map(a.resultColumns.map((i) => [i.key, i.dataType])), I = Xt({
|
|
733
|
+
records: h,
|
|
734
734
|
columns: p,
|
|
735
735
|
formatting: t,
|
|
736
736
|
queryPayload: r
|
|
737
|
-
}),
|
|
737
|
+
}), H = new Map(
|
|
738
738
|
p.flatMap((i) => {
|
|
739
739
|
const y = A(i);
|
|
740
740
|
return y && i.temporalBucket ? [[y, i.temporalBucket]] : [];
|
|
@@ -745,15 +745,15 @@ function Dr(e) {
|
|
|
745
745
|
snapshot: t.presentationExecutionSnapshot,
|
|
746
746
|
scope: o,
|
|
747
747
|
target: { kind: "column", columnKey: i }
|
|
748
|
-
}), E =
|
|
748
|
+
}), E = H.get(i);
|
|
749
749
|
if (n) {
|
|
750
750
|
if (y && !E) throw new Error(`Missing temporal bucket metadata for column "${i}"`);
|
|
751
751
|
if (E && !y) throw new Error(`Missing resolved temporal presentation for column "${i}"`);
|
|
752
752
|
}
|
|
753
|
-
y && E && te.set(i,
|
|
753
|
+
y && E && te.set(i, b(E, y));
|
|
754
754
|
}
|
|
755
755
|
const G = C.map((i) => {
|
|
756
|
-
const y = Re.get(i), E = y &&
|
|
756
|
+
const y = Re.get(i), E = y && Gt.has(y) ? y : "unknown", S = n ? x(i, I, H) : void 0, M = f(i, F.get(i)), P = n && I.activatedColumnKeys.has(i) && he(I, i) === void 0;
|
|
757
757
|
return {
|
|
758
758
|
key: i,
|
|
759
759
|
label: M,
|
|
@@ -764,18 +764,18 @@ function Dr(e) {
|
|
|
764
764
|
};
|
|
765
765
|
});
|
|
766
766
|
function Ne(i, y, E, S) {
|
|
767
|
-
if (!n) return { text:
|
|
767
|
+
if (!n) return { text: be(i), value: i };
|
|
768
768
|
const M = Ht({ value: i, columnKey: y, rowIndex: E, resolution: I });
|
|
769
769
|
if (M !== void 0) return { text: M.text, value: i, ...M.wallClock ? { wallClock: M.wallClock } : {} };
|
|
770
|
-
const P =
|
|
770
|
+
const P = H.get(y);
|
|
771
771
|
if (P) {
|
|
772
772
|
const k = te.get(y);
|
|
773
773
|
if (!k) throw new Error(`Missing resolved temporal presentation for column "${y}"`);
|
|
774
774
|
if (i != null && typeof i != "string")
|
|
775
775
|
throw new Error(`Canonical temporal column "${y}" must contain a string or null`);
|
|
776
|
-
const D = i ?? null, _ =
|
|
776
|
+
const D = i ?? null, _ = Ye(D, P);
|
|
777
777
|
return {
|
|
778
|
-
text:
|
|
778
|
+
text: Ze({ value: D, metadata: P, format: k }),
|
|
779
779
|
value: i,
|
|
780
780
|
..._ ? { wallClock: _ } : {}
|
|
781
781
|
};
|
|
@@ -798,8 +798,8 @@ function Dr(e) {
|
|
|
798
798
|
if (O(i))
|
|
799
799
|
return { text: $ ? V(i, $) : i.value, value: i };
|
|
800
800
|
const K = ge(t, y);
|
|
801
|
-
if (K && (i instanceof Date || typeof i == "string" &&
|
|
802
|
-
const k = i instanceof Date ? i.toISOString() : i, D = typeof i == "string" &&
|
|
801
|
+
if (K && (i instanceof Date || typeof i == "string" && qt.test(i))) {
|
|
802
|
+
const k = i instanceof Date ? i.toISOString() : i, D = typeof i == "string" && Wt.test(i), _ = D ? "UTC" : ve(K.timezone, t.timezone), ne = D ? "UTC" : K.sourceTimezone || "auto", oe = nt(k, _, ne);
|
|
803
803
|
return {
|
|
804
804
|
text: le(k, we(K), _, ne),
|
|
805
805
|
value: i,
|
|
@@ -807,12 +807,12 @@ function Dr(e) {
|
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
809
|
if (typeof i == "string" && $ && S.dataType === "number") {
|
|
810
|
-
const k =
|
|
810
|
+
const k = Jt(i);
|
|
811
811
|
if (k) return { text: V(k, $), value: i };
|
|
812
812
|
}
|
|
813
|
-
return { text:
|
|
813
|
+
return { text: be(i), value: i };
|
|
814
814
|
}
|
|
815
|
-
const Oe =
|
|
815
|
+
const Oe = h.map(
|
|
816
816
|
(i, y) => G.map((E) => {
|
|
817
817
|
const S = Ne(i[E.key], E.key, y, E);
|
|
818
818
|
return U({ value: S.value, text: S.text, column: E.xlsx, wallClock: S.wallClock });
|
|
@@ -830,16 +830,16 @@ function Dr(e) {
|
|
|
830
830
|
...I.sqlChunkEvidence ? { rawTemporalClassification: I.sqlChunkEvidence } : {}
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function x(a, m,
|
|
833
|
+
function x(a, m, h) {
|
|
834
834
|
if (m.activatedColumnKeys.has(a)) {
|
|
835
|
-
const v =
|
|
835
|
+
const v = he(m, a);
|
|
836
836
|
return v === void 0 ? { kind: "text" } : { kind: "datetime", dateOnly: v };
|
|
837
837
|
}
|
|
838
|
-
const p =
|
|
839
|
-
if (p) return { kind: "temporal_bucket", grain:
|
|
838
|
+
const p = h.get(a);
|
|
839
|
+
if (p) return { kind: "temporal_bucket", grain: Qt(p) };
|
|
840
840
|
if (s(a)) return { kind: "text" };
|
|
841
841
|
const T = ge(t, a);
|
|
842
|
-
if (T) return { kind: "datetime", dateOnly:
|
|
842
|
+
if (T) return { kind: "datetime", dateOnly: Yt(we(T)) };
|
|
843
843
|
const g = l(a);
|
|
844
844
|
return g ? { kind: "measure", format: g } : void 0;
|
|
845
845
|
}
|
|
@@ -856,13 +856,13 @@ function Dr(e) {
|
|
|
856
856
|
});
|
|
857
857
|
if (g == null) return { kind: "empty" };
|
|
858
858
|
if (!n) return U({ value: g, text: String(g), column: C });
|
|
859
|
-
const F = v ?
|
|
859
|
+
const F = v ? Zt(g) : null;
|
|
860
860
|
return U(v && F !== null ? { value: F, text: V(F, v), column: C } : { value: g, text: String(g), column: C });
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
return { format: w, totals: u };
|
|
864
864
|
}
|
|
865
|
-
const
|
|
865
|
+
const er = /* @__PURE__ */ new Set([
|
|
866
866
|
"scope",
|
|
867
867
|
"useFormattedValues",
|
|
868
868
|
"timezone",
|
|
@@ -887,7 +887,7 @@ function Ce(e, t) {
|
|
|
887
887
|
return e;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Ar(e) {
|
|
891
891
|
if (!ee(e))
|
|
892
892
|
throw new Error("formatting must be an object");
|
|
893
893
|
const t = ["reportContext", "resolvedFormats"].find(
|
|
@@ -897,23 +897,23 @@ function _r(e) {
|
|
|
897
897
|
throw new ie(
|
|
898
898
|
`formatting.${t} is retired; formatting.presentationExecutionSnapshot is authoritative.`
|
|
899
899
|
);
|
|
900
|
-
const r = Object.keys(e).find((a) => !
|
|
900
|
+
const r = Object.keys(e).find((a) => !er.has(a));
|
|
901
901
|
if (r)
|
|
902
902
|
throw new Error(`formatting contains unknown property "${r}"`);
|
|
903
903
|
const n = typeof e.timezone == "string" ? e.timezone.trim() : "";
|
|
904
904
|
if (!n)
|
|
905
905
|
throw new Error("formatting.timezone must be a non-empty string");
|
|
906
|
-
const o =
|
|
906
|
+
const o = at(e.delimiter);
|
|
907
907
|
if (!o)
|
|
908
908
|
throw new Error("formatting.delimiter must be a comma, semicolon or tab");
|
|
909
|
-
const l =
|
|
909
|
+
const l = st(e.csvEncoding);
|
|
910
910
|
if (!l)
|
|
911
911
|
throw new Error("formatting.csvEncoding must be 'utf-8-bom' or 'utf-8'");
|
|
912
912
|
if (typeof e.includeHeaders != "boolean")
|
|
913
913
|
throw new Error("formatting.includeHeaders must be a boolean");
|
|
914
914
|
if (e.useFormattedValues !== void 0 && typeof e.useFormattedValues != "boolean")
|
|
915
915
|
throw new Error("formatting.useFormattedValues must be a boolean");
|
|
916
|
-
const s = e.fileFormat === void 0 ? void 0 :
|
|
916
|
+
const s = e.fileFormat === void 0 ? void 0 : it(e.fileFormat);
|
|
917
917
|
if (e.fileFormat !== void 0 && !s)
|
|
918
918
|
throw new Error("formatting.fileFormat must be 'csv' or 'xlsx'");
|
|
919
919
|
if (e.title !== void 0 && typeof e.title != "string")
|
|
@@ -924,21 +924,21 @@ function _r(e) {
|
|
|
924
924
|
const f = Ce(e.columnLabels, "columnLabels");
|
|
925
925
|
if (f && Object.values(f).some((a) => typeof a != "string"))
|
|
926
926
|
throw new Error("formatting.columnLabels values must be strings");
|
|
927
|
-
const d = Ce(e.columnSettings, "columnSettings"),
|
|
928
|
-
if (
|
|
927
|
+
const d = Ce(e.columnSettings, "columnSettings"), b = e.tableTotalsLabelColumnKey === void 0 ? void 0 : typeof e.tableTotalsLabelColumnKey == "string" && e.tableTotalsLabelColumnKey.trim() ? e.tableTotalsLabelColumnKey : null;
|
|
928
|
+
if (b === null)
|
|
929
929
|
throw new Error("formatting.tableTotalsLabelColumnKey must be a non-empty string");
|
|
930
|
-
if (
|
|
930
|
+
if (b && !(c != null && c.includes(b)))
|
|
931
931
|
throw new Error("formatting.tableTotalsLabelColumnKey must identify a visible column");
|
|
932
|
-
const w =
|
|
932
|
+
const w = Je(e.scope, "formatting.scope");
|
|
933
933
|
if (!w.cardId || w.attachmentIndex !== void 0)
|
|
934
934
|
throw new Error("formatting.scope must identify exactly one dashboard card");
|
|
935
|
-
const x = e.useFormattedValues !== !1, u =
|
|
935
|
+
const x = e.useFormattedValues !== !1, u = Qe(e.presentationExecutionSnapshot);
|
|
936
936
|
if (n !== u.reportContext.calendar.tz)
|
|
937
937
|
throw new Error(
|
|
938
938
|
"formatting.timezone must equal presentationExecutionSnapshot.reportContext.calendar.tz"
|
|
939
939
|
);
|
|
940
940
|
try {
|
|
941
|
-
|
|
941
|
+
et({
|
|
942
942
|
snapshot: u,
|
|
943
943
|
expectedScope: { dashboardId: w.dashboardId, cardId: w.cardId },
|
|
944
944
|
visibleColumns: c,
|
|
@@ -960,12 +960,12 @@ function _r(e) {
|
|
|
960
960
|
...d ? { columnSettings: d } : {},
|
|
961
961
|
...c ? { visibleColumns: c } : {},
|
|
962
962
|
...f ? { columnLabels: f } : {},
|
|
963
|
-
...
|
|
963
|
+
...b ? { tableTotalsLabelColumnKey: b } : {},
|
|
964
964
|
...s ? { fileFormat: s } : {},
|
|
965
965
|
...typeof e.title == "string" ? { title: e.title } : {}
|
|
966
966
|
};
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Rr(e) {
|
|
969
969
|
const t = e.formatOptions, r = (n) => ee(n) ? n : void 0;
|
|
970
970
|
return {
|
|
971
971
|
scope: { dashboardId: e.dashboardId, cardId: e.cardId },
|
|
@@ -983,7 +983,7 @@ function Ar(e) {
|
|
|
983
983
|
...typeof e.title == "string" ? { title: e.title } : {}
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
|
-
const
|
|
986
|
+
const tr = /^\d{4}-\d{2}-\d{2}$/;
|
|
987
987
|
function Ae(e) {
|
|
988
988
|
const t = e.split(".");
|
|
989
989
|
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(" ");
|
|
@@ -993,22 +993,22 @@ function Z(e, t) {
|
|
|
993
993
|
const r = e.slice(0, xe).map(t).join(", "), n = e.length - xe;
|
|
994
994
|
return n > 0 ? `${r}, and ${n} more` : r;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function rr(e) {
|
|
997
997
|
if (e.valueType !== "date" || e.operation !== "between" && e.operation !== "not between")
|
|
998
998
|
return;
|
|
999
999
|
const t = Q(e.relativeMeta);
|
|
1000
1000
|
if (t)
|
|
1001
|
-
return
|
|
1001
|
+
return ut(t) || t.unit === "quarter" || t.unit === "year" ? t : void 0;
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
if (t !== "label") return
|
|
1003
|
+
function nr(e, t) {
|
|
1004
|
+
if (t !== "label") return rr(e);
|
|
1005
1005
|
if (!(e.valueType !== "date" || e.operation !== "between" && e.operation !== "not between"))
|
|
1006
1006
|
return Q(e.relativeMeta);
|
|
1007
1007
|
}
|
|
1008
1008
|
function Te(e, t = {}) {
|
|
1009
|
-
const { name: r, operation: n, values: o, valueType: l } = e, s = t.label ?? Ae(r), c =
|
|
1009
|
+
const { name: r, operation: n, values: o, valueType: l } = e, s = t.label ?? Ae(r), c = nr(e, t.relativeDates);
|
|
1010
1010
|
if (c) {
|
|
1011
|
-
const d =
|
|
1011
|
+
const d = yt(c);
|
|
1012
1012
|
if (d)
|
|
1013
1013
|
return n === "between" ? `${s}: ${d}` : `${s} not in ${d}`;
|
|
1014
1014
|
}
|
|
@@ -1016,16 +1016,16 @@ function Te(e, t = {}) {
|
|
|
1016
1016
|
return n === "is null" ? `${s} is empty` : n === "is not null" ? `${s} is not empty` : "";
|
|
1017
1017
|
const f = (d) => {
|
|
1018
1018
|
if (l === "date" && d) {
|
|
1019
|
-
const
|
|
1019
|
+
const b = e.temporalPrecision === "minute", w = {
|
|
1020
1020
|
year: "numeric",
|
|
1021
1021
|
month: "short",
|
|
1022
1022
|
day: "numeric",
|
|
1023
|
-
...
|
|
1023
|
+
...b ? {
|
|
1024
1024
|
hour: "numeric",
|
|
1025
1025
|
minute: "2-digit"
|
|
1026
1026
|
} : {}
|
|
1027
1027
|
};
|
|
1028
|
-
if (typeof d == "string" &&
|
|
1028
|
+
if (typeof d == "string" && tr.test(d)) {
|
|
1029
1029
|
const [u, a, m] = d.split("-").map(Number);
|
|
1030
1030
|
return new Intl.DateTimeFormat(void 0, {
|
|
1031
1031
|
year: "numeric",
|
|
@@ -1034,12 +1034,12 @@ function Te(e, t = {}) {
|
|
|
1034
1034
|
timeZone: "UTC"
|
|
1035
1035
|
}).format(new Date(Date.UTC(u, a - 1, m)));
|
|
1036
1036
|
}
|
|
1037
|
-
if (typeof d == "string" &&
|
|
1038
|
-
const [u, a, m,
|
|
1037
|
+
if (typeof d == "string" && tt(d) === "wall_datetime") {
|
|
1038
|
+
const [u, a, m, h, p] = d.split(/[-T :.]/).map(Number);
|
|
1039
1039
|
return new Intl.DateTimeFormat(void 0, {
|
|
1040
1040
|
...w,
|
|
1041
1041
|
timeZone: "UTC"
|
|
1042
|
-
}).format(new Date(Date.UTC(u, a - 1, m,
|
|
1042
|
+
}).format(new Date(Date.UTC(u, a - 1, m, h, p)));
|
|
1043
1043
|
}
|
|
1044
1044
|
const x = new Date(d);
|
|
1045
1045
|
if (!isNaN(x.getTime()))
|
|
@@ -1049,7 +1049,7 @@ function Te(e, t = {}) {
|
|
|
1049
1049
|
...t.timezone ? { timeZone: t.timezone } : {}
|
|
1050
1050
|
}).format(x);
|
|
1051
1051
|
} catch {
|
|
1052
|
-
return
|
|
1052
|
+
return b ? x.toLocaleString(void 0, w) : x.toLocaleDateString(void 0, w);
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
return String(d);
|
|
@@ -1084,7 +1084,7 @@ function Te(e, t = {}) {
|
|
|
1084
1084
|
return `${s}: ${Z(o, f)}`;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Nr(e, t = {}) {
|
|
1088
1088
|
if (!e || e.length === 0)
|
|
1089
1089
|
return "";
|
|
1090
1090
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -1103,25 +1103,25 @@ function Rr(e, t = {}) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
}), n.join(" | ");
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return ((e == null ? void 0 : e.filterValues) ?? []).filter(
|
|
1106
|
+
function Or(e) {
|
|
1107
|
+
return ((e == null ? void 0 : e.filterValues) ?? []).filter(or).map(ar);
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function or(e) {
|
|
1110
1110
|
return !!e && typeof e == "object" && typeof e.name == "string" && Array.isArray(e.values);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function ar(e) {
|
|
1113
1113
|
if (!("relativeMeta" in e) || e.relativeMeta === void 0) return e;
|
|
1114
1114
|
const { relativeMeta: t, ...r } = e, n = Q(t);
|
|
1115
1115
|
return n ? { ...r, relativeMeta: n } : r;
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const sr = /* @__PURE__ */ new Set([
|
|
1118
1118
|
"day",
|
|
1119
1119
|
"week",
|
|
1120
1120
|
"month",
|
|
1121
1121
|
"quarter",
|
|
1122
1122
|
"year"
|
|
1123
1123
|
]);
|
|
1124
|
-
function
|
|
1124
|
+
function ir(e, t) {
|
|
1125
1125
|
try {
|
|
1126
1126
|
const r = L(
|
|
1127
1127
|
R(e),
|
|
@@ -1133,8 +1133,8 @@ function sr(e, t) {
|
|
|
1133
1133
|
return;
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
const o =
|
|
1136
|
+
function Kr(e, t, r, n = !1) {
|
|
1137
|
+
const o = lr(
|
|
1138
1138
|
e,
|
|
1139
1139
|
t,
|
|
1140
1140
|
r,
|
|
@@ -1142,10 +1142,10 @@ function Or(e, t, r, n = !1) {
|
|
|
1142
1142
|
);
|
|
1143
1143
|
return `${o.start} - ${o.end}`;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function lr(e, t, r, n = !1) {
|
|
1146
1146
|
try {
|
|
1147
|
-
if (r &&
|
|
1148
|
-
const o =
|
|
1147
|
+
if (r && sr.has(r)) {
|
|
1148
|
+
const o = ir(e.end, t);
|
|
1149
1149
|
if (o) {
|
|
1150
1150
|
const l = n ? "MMM d" : "MMM d, yyyy";
|
|
1151
1151
|
return {
|
|
@@ -1178,41 +1178,41 @@ function ir(e, t, r, n = !1) {
|
|
|
1178
1178
|
return { start: e.start, end: `before ${e.end}` };
|
|
1179
1179
|
}
|
|
1180
1180
|
export {
|
|
1181
|
-
|
|
1181
|
+
Dr as A,
|
|
1182
1182
|
xe as B,
|
|
1183
|
-
|
|
1183
|
+
rr as C,
|
|
1184
1184
|
$e as D,
|
|
1185
1185
|
Te as E,
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1186
|
+
$t as F,
|
|
1187
|
+
Nr as G,
|
|
1188
|
+
Or as H,
|
|
1189
|
+
lr as I,
|
|
1190
|
+
xr as M,
|
|
1191
|
+
Rt as P,
|
|
1192
|
+
vr as a,
|
|
1193
|
+
Tr as b,
|
|
1194
|
+
Er as c,
|
|
1195
|
+
Sr as d,
|
|
1196
|
+
Cr as e,
|
|
1197
|
+
Kr as f,
|
|
1198
|
+
Fr as g,
|
|
1199
|
+
Ir as h,
|
|
1200
|
+
$r as i,
|
|
1201
|
+
Kt as j,
|
|
1202
|
+
Lr as k,
|
|
1203
|
+
kr as l,
|
|
1204
|
+
Ot as m,
|
|
1205
|
+
Mr as n,
|
|
1206
|
+
Lt as o,
|
|
1207
|
+
Nt as p,
|
|
1208
|
+
Dt as q,
|
|
1209
1209
|
de as r,
|
|
1210
|
-
|
|
1210
|
+
At as s,
|
|
1211
1211
|
U as t,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1212
|
+
Ut as u,
|
|
1213
|
+
jt as v,
|
|
1214
|
+
Pr as w,
|
|
1215
|
+
_r as x,
|
|
1216
|
+
Ar as y,
|
|
1217
|
+
Rr as z
|
|
1218
1218
|
};
|