react-semaphor 0.1.561 → 0.1.562
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 +452 -429
- 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-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
- package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-R_yT8xH4.js} +104 -104
- package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
- package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
- package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
- package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
- package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
- package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-Bp1y5oun.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-S5FB3aUW.js} +155 -154
- package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-CfC_6Ztn.js} +970 -968
- package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-gYZT7ZQY.js} +5 -5
- package/dist/chunks/dates-DFY7Gfss.js +91 -0
- package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-u7OI_g8Q.js} +4636 -4681
- package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
- package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
- package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
- package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
- package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
- package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
- package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
- package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
- package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
- package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
- package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
- package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-C4RAR8u5.js} +68 -63
- package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
- package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
- package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
- package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-Cfuafnem.js} +37067 -38400
- package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BR2GEYog.js} +81 -82
- package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
- package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
- package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
- package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
- package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-DyzhWvRJ.js} +6 -6
- package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2278 -3030
- package/dist/data-app-sdk/index.js +43 -43
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +22 -22
- package/dist/format-utils/index.js +215 -209
- package/dist/index.js +225 -224
- 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/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/surfboard/filter/types.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
- package/dist/types/lib/print/print-inputs.d.ts +2 -1
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/lib/types/explorer-types.d.ts +7 -1
- package/dist/types/lib/types/interaction-types.d.ts +3 -1
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
- package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
- package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
- package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
- package/dist/types/shared/format-utils/document-print.d.ts +82 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
- package/dist/types/shared/temporal/index.d.ts +1 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
- package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
- package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
- package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
- package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
- package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
- package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
- package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var $ = (e, t, n) =>
|
|
1
|
+
var En = Object.defineProperty;
|
|
2
|
+
var Cn = (e, t, n) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var $ = (e, t, n) => Cn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { z as w } from "zod";
|
|
5
5
|
import { E as Rt, l as Lt } from "./export-file-format-C-tJsxsf.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./matrix-operation-contract-
|
|
8
|
-
import { k as
|
|
9
|
-
import { b as
|
|
10
|
-
import { canonicalizeSupportedLocale as X, canonicalizeSupportedCurrencyCode as
|
|
11
|
-
import { p as
|
|
6
|
+
import { b0 as Wt, a_ as Pn, aV as Yn, t as nt, H as zn, a3 as Un, b1 as An, l as Rn, a8 as Ln, a0 as q, o as Wn } from "./validators-BIM0FE31.js";
|
|
7
|
+
import "./matrix-operation-contract-DsLdFdSa.js";
|
|
8
|
+
import { k as jn, i as fe } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
9
|
+
import { b as Hn } from "./report-runtime-context-BITkNSDa.js";
|
|
10
|
+
import { canonicalizeSupportedLocale as X, canonicalizeSupportedCurrencyCode as Ue, DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as qn } from "../value-format-preferences/index.js";
|
|
11
|
+
import { p as Zn, a as Kn, c as Vn, e as Bn } from "./raw-temporal-value-Bqz8wc7L.js";
|
|
12
12
|
function G(e) {
|
|
13
13
|
if (!e || typeof e != "object") return !1;
|
|
14
14
|
const t = e.type;
|
|
15
15
|
return t === "number" || t === "currency" || t === "percent" || t === "scientific";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Ts(e) {
|
|
18
18
|
return G(e) || !!e && typeof e == "object" && e.type === "duration";
|
|
19
19
|
}
|
|
20
20
|
const jt = [
|
|
@@ -23,61 +23,61 @@ const jt = [
|
|
|
23
23
|
"minute",
|
|
24
24
|
"second",
|
|
25
25
|
"millisecond"
|
|
26
|
-
],
|
|
26
|
+
], Ae = {
|
|
27
27
|
day: 864e5,
|
|
28
28
|
hour: 36e5,
|
|
29
29
|
minute: 6e4,
|
|
30
30
|
second: 1e3,
|
|
31
31
|
millisecond: 1
|
|
32
|
-
},
|
|
32
|
+
}, Xn = {
|
|
33
33
|
day: "d",
|
|
34
34
|
hour: "hr",
|
|
35
35
|
minute: "min",
|
|
36
36
|
second: "s",
|
|
37
37
|
millisecond: "ms"
|
|
38
|
-
},
|
|
38
|
+
}, Gn = {
|
|
39
39
|
day: ["day", "days"],
|
|
40
40
|
hour: ["hour", "hours"],
|
|
41
41
|
minute: ["minute", "minutes"],
|
|
42
42
|
second: ["second", "seconds"],
|
|
43
43
|
millisecond: ["millisecond", "milliseconds"]
|
|
44
44
|
};
|
|
45
|
-
function
|
|
45
|
+
function Qn(e) {
|
|
46
46
|
return e === "day" || e === "hour" || e === "minute" || e === "second" || e === "millisecond";
|
|
47
47
|
}
|
|
48
48
|
function Ht(e, t) {
|
|
49
|
-
return
|
|
49
|
+
return Qn(e) ? e : t;
|
|
50
50
|
}
|
|
51
51
|
function rt(e, t) {
|
|
52
52
|
return jt.indexOf(Ht(e, t));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Jn(e, t) {
|
|
55
55
|
const n = rt(e, "day"), r = rt(t, "second"), a = Math.min(n, r), i = Math.max(n, r);
|
|
56
56
|
return jt.slice(a, i + 1);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return e *
|
|
58
|
+
function er(e, t) {
|
|
59
|
+
return e * Ae[Ht(t, "second")];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const n =
|
|
61
|
+
function tr(e, t) {
|
|
62
|
+
const n = Jn(t.largestUnit, t.smallestUnit), r = n[n.length - 1], a = Ae[r];
|
|
63
63
|
let i = Math.round(e / a) * a;
|
|
64
64
|
return n.map((o) => {
|
|
65
|
-
const s =
|
|
65
|
+
const s = Ae[o], c = Math.floor(i / s);
|
|
66
66
|
return i -= c * s, { unit: o, value: c };
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function nr(e, t) {
|
|
70
70
|
const n = e.filter((i) => i.value !== 0), r = n.length > 0 ? n : [e[e.length - 1]], a = typeof t == "number" && Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : r.length;
|
|
71
|
-
return r.slice(0, a).map((i) => `${i.value}${
|
|
71
|
+
return r.slice(0, a).map((i) => `${i.value}${Xn[i.unit]}`).join(" ");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function rr(e, t) {
|
|
74
74
|
const n = e.filter((i) => i.value !== 0), r = n.length > 0 ? n : [e[e.length - 1]], a = typeof t == "number" && Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : r.length;
|
|
75
75
|
return r.slice(0, a).map((i) => {
|
|
76
|
-
const [o, s] =
|
|
76
|
+
const [o, s] = Gn[i.unit];
|
|
77
77
|
return `${i.value} ${i.value === 1 ? o : s}`;
|
|
78
78
|
}).join(" ");
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ar(e) {
|
|
81
81
|
const t = e.some(
|
|
82
82
|
(c) => c.unit === "day" && c.value !== 0
|
|
83
83
|
), n = e.some((c) => c.unit === "millisecond"), r = e.findIndex((c) => c.value !== 0), a = Math.max(0, e.length - 2), i = t ? 0 : r === -1 ? a : Math.min(r, a), o = r === -1 ? e.slice(a) : e.slice(i);
|
|
@@ -86,7 +86,7 @@ function ir(e) {
|
|
|
86
86
|
const s = o.map((c, u) => c.unit === "millisecond" ? String(c.value).padStart(3, "0") : u === 0 ? String(c.value) : String(c.value).padStart(2, "0")).join(":");
|
|
87
87
|
return n ? s.replace(/:(\d{3})$/, ".$1") : s;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ir(e, t, n) {
|
|
90
90
|
const r = `${n.prefix || ""}${e}${n.suffix || ""}`;
|
|
91
91
|
return t ? n.negativeInParentheses ? `(${r})` : `-${r}` : r;
|
|
92
92
|
}
|
|
@@ -96,8 +96,8 @@ function qt(e, t = {}) {
|
|
|
96
96
|
const n = typeof e == "number" ? e : typeof e == "string" && e.trim() ? Number(e) : NaN;
|
|
97
97
|
if (!Number.isFinite(n))
|
|
98
98
|
return "";
|
|
99
|
-
const r = t.inputUnit || "second", a = t.outputStyle === "digital" || t.outputStyle === "long" ? t.outputStyle : "compact", i = n < 0, o = Math.abs(
|
|
100
|
-
return
|
|
99
|
+
const r = t.inputUnit || "second", a = t.outputStyle === "digital" || t.outputStyle === "long" ? t.outputStyle : "compact", i = n < 0, o = Math.abs(er(n, r)), s = tr(o, t), c = a === "digital" ? ar(s) : a === "long" ? rr(s, t.maxUnits) : nr(s, t.maxUnits);
|
|
100
|
+
return ir(c, i, t);
|
|
101
101
|
}
|
|
102
102
|
function Zt(e, t) {
|
|
103
103
|
return qt(
|
|
@@ -119,7 +119,7 @@ function it(e, t) {
|
|
|
119
119
|
const n = e.format;
|
|
120
120
|
return n(t);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function or(e, t) {
|
|
123
123
|
if (at ?? (at = it(
|
|
124
124
|
new Intl.NumberFormat("en-US", { useGrouping: !1, maximumFractionDigits: 6 }),
|
|
125
125
|
"9007199254740993.000009"
|
|
@@ -136,7 +136,7 @@ function Q(e) {
|
|
|
136
136
|
function Z(e) {
|
|
137
137
|
return typeof e == "number" ? Math.abs(e) : Q(e) ? { ...e, value: e.value.slice(1) } : e;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function sr(e) {
|
|
140
140
|
return typeof e == "number" ? e === 0 : /^-?0*(\.0*)?$/.test(e.value);
|
|
141
141
|
}
|
|
142
142
|
function Kt(e, t) {
|
|
@@ -153,8 +153,8 @@ function de(e, t) {
|
|
|
153
153
|
value: Wt(e.value, `1e-${t}`)
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return typeof e == "number" ? t.format(e) :
|
|
156
|
+
function U(e, t) {
|
|
157
|
+
return typeof e == "number" ? t.format(e) : or(e.value, t);
|
|
158
158
|
}
|
|
159
159
|
function ot(e) {
|
|
160
160
|
if (!e) return !1;
|
|
@@ -162,7 +162,7 @@ function ot(e) {
|
|
|
162
162
|
return t === "en-in" || t.startsWith("en-in-");
|
|
163
163
|
}
|
|
164
164
|
function st(e, t) {
|
|
165
|
-
const n = Z(e), r = (a) => typeof n == "number" ? n >= a :
|
|
165
|
+
const n = Z(e), r = (a) => typeof n == "number" ? n >= a : Pn(n.value, String(a)) >= 0;
|
|
166
166
|
return r(1e12) ? { power: 12, suffix: "T" } : r(1e9) ? { power: 9, suffix: "B" } : ot(t) && r(1e7) ? { power: 7, suffix: "Cr" } : r(1e6) ? { power: 6, suffix: "M" } : ot(t) && r(1e5) ? { power: 5, suffix: "L" } : r(1e3) ? { power: 3, suffix: "K" } : { power: 0, suffix: "" };
|
|
167
167
|
}
|
|
168
168
|
function Re(e, t) {
|
|
@@ -179,7 +179,7 @@ function _(e, t = {}) {
|
|
|
179
179
|
let r = te.get(n);
|
|
180
180
|
return r || (r = new Intl.NumberFormat(e, t), te.size >= Vt && te.clear(), te.set(n, r)), r;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function cr(e) {
|
|
183
183
|
let t = ne.get(e);
|
|
184
184
|
if (t === void 0) {
|
|
185
185
|
try {
|
|
@@ -192,7 +192,7 @@ function ur(e) {
|
|
|
192
192
|
return t;
|
|
193
193
|
}
|
|
194
194
|
function R(e) {
|
|
195
|
-
return e &&
|
|
195
|
+
return e && cr(e) ? e : "en-US";
|
|
196
196
|
}
|
|
197
197
|
function qe(e, t) {
|
|
198
198
|
if (e == null || Number.isNaN(e))
|
|
@@ -202,14 +202,14 @@ function qe(e, t) {
|
|
|
202
202
|
if (t != null && t.multiplyBy && (r = Kt(r, t.multiplyBy)), t != null && t.useSuffix) {
|
|
203
203
|
const { power: i, suffix: o } = Re(r, n);
|
|
204
204
|
r = de(r, i);
|
|
205
|
-
const s =
|
|
205
|
+
const s = U(r, _(n, {
|
|
206
206
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
207
207
|
maximumFractionDigits: (t == null ? void 0 : t.maximumFractionDigits) ?? 2,
|
|
208
208
|
useGrouping: (t == null ? void 0 : t.useGrouping) ?? !0
|
|
209
209
|
}));
|
|
210
210
|
return `${(t == null ? void 0 : t.prefix) ?? ""}${s}${o}${(t == null ? void 0 : t.suffix) ?? ""}`;
|
|
211
211
|
}
|
|
212
|
-
const a =
|
|
212
|
+
const a = U(r, _(n, {
|
|
213
213
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
214
214
|
maximumFractionDigits: (t == null ? void 0 : t.maximumFractionDigits) ?? 2,
|
|
215
215
|
useGrouping: (t == null ? void 0 : t.useGrouping) ?? !0
|
|
@@ -226,7 +226,7 @@ function Bt(e, t) {
|
|
|
226
226
|
const n = R(t == null ? void 0 : t.locale), r = (t == null ? void 0 : t.currency) || "USD", a = Q(e), i = !!(t != null && t.negativeInParentheses && a), o = i ? Z(e) : e;
|
|
227
227
|
try {
|
|
228
228
|
if (t != null && t.useSuffix) {
|
|
229
|
-
const { power: c, suffix: u } = Re(o, n), l = de(o, c), m = `${
|
|
229
|
+
const { power: c, suffix: u } = Re(o, n), l = de(o, c), m = `${U(l, _(n, {
|
|
230
230
|
style: "currency",
|
|
231
231
|
currency: r,
|
|
232
232
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
@@ -235,7 +235,7 @@ function Bt(e, t) {
|
|
|
235
235
|
}))}${u}`;
|
|
236
236
|
return i ? `(${m})` : m;
|
|
237
237
|
}
|
|
238
|
-
const s =
|
|
238
|
+
const s = U(o, _(n, {
|
|
239
239
|
style: "currency",
|
|
240
240
|
currency: r,
|
|
241
241
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
@@ -260,7 +260,7 @@ function Xt(e, t) {
|
|
|
260
260
|
if (e == null || Number.isNaN(e))
|
|
261
261
|
return "";
|
|
262
262
|
const n = R(t == null ? void 0 : t.locale), a = (t == null ? void 0 : t.alreadyPercent) ?? (t == null ? void 0 : t.percentValueMode) === "whole" ? de(e, 2) : e;
|
|
263
|
-
return
|
|
263
|
+
return U(a, _(n, {
|
|
264
264
|
style: "percent",
|
|
265
265
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
266
266
|
maximumFractionDigits: (t == null ? void 0 : t.maximumFractionDigits) ?? 2,
|
|
@@ -271,17 +271,17 @@ function Gt(e, t) {
|
|
|
271
271
|
if (e == null || Number.isNaN(e))
|
|
272
272
|
return "";
|
|
273
273
|
const n = R(t == null ? void 0 : t.locale);
|
|
274
|
-
return
|
|
274
|
+
return U(e, _(n, {
|
|
275
275
|
notation: "scientific",
|
|
276
276
|
minimumFractionDigits: (t == null ? void 0 : t.minimumFractionDigits) ?? 0,
|
|
277
277
|
maximumFractionDigits: (t == null ? void 0 : t.maximumFractionDigits) ?? 2
|
|
278
278
|
}));
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
const n = t ?? "auto", r = n === "never" ? Z(e) : e, a = !Q(r) && (n === "always" || n === "exceptZero" && !
|
|
280
|
+
function ur(e, t) {
|
|
281
|
+
const n = t ?? "auto", r = n === "never" ? Z(e) : e, a = !Q(r) && (n === "always" || n === "exceptZero" && !sr(r));
|
|
282
282
|
return { value: r, plus: a };
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Ds(e) {
|
|
285
285
|
if (!e || !("signDisplay" in e)) return e;
|
|
286
286
|
const { signDisplay: t, ...n } = e;
|
|
287
287
|
return n;
|
|
@@ -289,7 +289,7 @@ function _s(e) {
|
|
|
289
289
|
function Ze(e, t) {
|
|
290
290
|
if (e == null || Number.isNaN(e))
|
|
291
291
|
return "";
|
|
292
|
-
const n = t.scale === void 0 ? e : Kt(e, t.scale), r =
|
|
292
|
+
const n = t.scale === void 0 ? e : Kt(e, t.scale), r = ur(n, t.signDisplay), a = r.value, i = r.plus ? "+" : "", o = t.negativeStyle === "parentheses" && Q(a), s = o ? Z(a) : a, c = {
|
|
293
293
|
style: t.type === "number" ? "decimal" : t.type,
|
|
294
294
|
locale: t.locale,
|
|
295
295
|
currency: t.currency,
|
|
@@ -317,10 +317,10 @@ function Ze(e, t) {
|
|
|
317
317
|
const l = `${t.prefix ?? ""}${i}${u}${t.suffix ?? ""}`;
|
|
318
318
|
return o ? `(${l})` : l;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function xs(e, t) {
|
|
321
321
|
return t.type === "duration" ? e == null ? "" : Zt(e, t) : Ze(e, t);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function lr(e, t, n = "en-US") {
|
|
324
324
|
if (e == null || typeof e == "number" && isNaN(e))
|
|
325
325
|
return "";
|
|
326
326
|
if ((t == null ? void 0 : t.style) === "duration")
|
|
@@ -349,7 +349,7 @@ function mr(e, t, n = "en-US") {
|
|
|
349
349
|
suffix: t == null ? void 0 : t.suffix
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function bs(e, t, n) {
|
|
353
353
|
const r = {
|
|
354
354
|
style: t === "currency" ? "currency" : t === "percent" ? "percent" : "decimal",
|
|
355
355
|
locale: n == null ? void 0 : n.locale,
|
|
@@ -380,10 +380,10 @@ function p(e) {
|
|
|
380
380
|
function N(e, t) {
|
|
381
381
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
382
382
|
}
|
|
383
|
-
const Qt = 6048e5,
|
|
384
|
-
let
|
|
383
|
+
const Qt = 6048e5, mr = 864e5, Jt = 6e4, en = 36e5, vs = 525600, re = 43200, ct = 1440;
|
|
384
|
+
let fr = {};
|
|
385
385
|
function L() {
|
|
386
|
-
return
|
|
386
|
+
return fr;
|
|
387
387
|
}
|
|
388
388
|
function K(e, t) {
|
|
389
389
|
var s, c, u, l;
|
|
@@ -419,11 +419,11 @@ function ge(e) {
|
|
|
419
419
|
);
|
|
420
420
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function dr(e, t) {
|
|
423
423
|
const n = ut(e), r = ut(t), a = +n - ge(n), i = +r - ge(r);
|
|
424
|
-
return Math.round((a - i) /
|
|
424
|
+
return Math.round((a - i) / mr);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function hr(e) {
|
|
427
427
|
const t = tn(e), n = N(e, 0);
|
|
428
428
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), he(n);
|
|
429
429
|
}
|
|
@@ -431,46 +431,46 @@ function se(e, t) {
|
|
|
431
431
|
const n = p(e), r = p(t), a = n.getTime() - r.getTime();
|
|
432
432
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function gr(e) {
|
|
435
435
|
return N(e, Date.now());
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function yr(e) {
|
|
438
438
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
if (!
|
|
440
|
+
function pr(e) {
|
|
441
|
+
if (!yr(e) && typeof e != "number")
|
|
442
442
|
return !1;
|
|
443
443
|
const t = p(e);
|
|
444
444
|
return !isNaN(Number(t));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function wr(e, t) {
|
|
447
447
|
const n = p(e), r = p(t), a = n.getFullYear() - r.getFullYear(), i = n.getMonth() - r.getMonth();
|
|
448
448
|
return a * 12 + i;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Tr(e) {
|
|
451
451
|
return (t) => {
|
|
452
452
|
const r = (e ? Math[e] : Math.trunc)(t);
|
|
453
453
|
return r === 0 ? 0 : r;
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Dr(e, t) {
|
|
457
457
|
return +p(e) - +p(t);
|
|
458
458
|
}
|
|
459
459
|
function xr(e) {
|
|
460
460
|
const t = p(e);
|
|
461
461
|
return t.setHours(23, 59, 59, 999), t;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function br(e) {
|
|
464
464
|
const t = p(e), n = t.getMonth();
|
|
465
465
|
return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function vr(e) {
|
|
468
468
|
const t = p(e);
|
|
469
|
-
return +xr(t) == +
|
|
469
|
+
return +xr(t) == +br(t);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Sr(e, t) {
|
|
472
472
|
const n = p(e), r = p(t), a = se(n, r), i = Math.abs(
|
|
473
|
-
|
|
473
|
+
wr(n, r)
|
|
474
474
|
);
|
|
475
475
|
let o;
|
|
476
476
|
if (i < 1)
|
|
@@ -478,19 +478,19 @@ function Mr(e, t) {
|
|
|
478
478
|
else {
|
|
479
479
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
|
|
480
480
|
let s = se(n, r) === -a;
|
|
481
|
-
|
|
481
|
+
vr(p(e)) && i === 1 && se(e, r) === 1 && (s = !1), o = a * (i - Number(s));
|
|
482
482
|
}
|
|
483
483
|
return o === 0 ? 0 : o;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
const r =
|
|
487
|
-
return
|
|
485
|
+
function Mr(e, t, n) {
|
|
486
|
+
const r = Dr(e, t) / 1e3;
|
|
487
|
+
return Tr(n == null ? void 0 : n.roundingMethod)(r);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function kr(e) {
|
|
490
490
|
const t = p(e), n = N(e, 0);
|
|
491
491
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const _r = {
|
|
494
494
|
lessThanXSeconds: {
|
|
495
495
|
one: "less than a second",
|
|
496
496
|
other: "less than {{count}} seconds"
|
|
@@ -552,9 +552,9 @@ const Nr = {
|
|
|
552
552
|
one: "almost 1 year",
|
|
553
553
|
other: "almost {{count}} years"
|
|
554
554
|
}
|
|
555
|
-
},
|
|
555
|
+
}, Nr = (e, t, n) => {
|
|
556
556
|
let r;
|
|
557
|
-
const a =
|
|
557
|
+
const a = _r[e];
|
|
558
558
|
return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
559
559
|
};
|
|
560
560
|
function ke(e) {
|
|
@@ -563,12 +563,12 @@ function ke(e) {
|
|
|
563
563
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
const
|
|
566
|
+
const $r = {
|
|
567
567
|
full: "EEEE, MMMM do, y",
|
|
568
568
|
long: "MMMM do, y",
|
|
569
569
|
medium: "MMM d, y",
|
|
570
570
|
short: "MM/dd/yyyy"
|
|
571
|
-
},
|
|
571
|
+
}, Or = {
|
|
572
572
|
full: "h:mm:ss a zzzz",
|
|
573
573
|
long: "h:mm:ss a z",
|
|
574
574
|
medium: "h:mm:ss a",
|
|
@@ -578,27 +578,27 @@ const Or = {
|
|
|
578
578
|
long: "{{date}} 'at' {{time}}",
|
|
579
579
|
medium: "{{date}}, {{time}}",
|
|
580
580
|
short: "{{date}}, {{time}}"
|
|
581
|
-
},
|
|
581
|
+
}, Ir = {
|
|
582
582
|
date: ke({
|
|
583
|
-
formats:
|
|
583
|
+
formats: $r,
|
|
584
584
|
defaultWidth: "full"
|
|
585
585
|
}),
|
|
586
586
|
time: ke({
|
|
587
|
-
formats:
|
|
587
|
+
formats: Or,
|
|
588
588
|
defaultWidth: "full"
|
|
589
589
|
}),
|
|
590
590
|
dateTime: ke({
|
|
591
591
|
formats: Fr,
|
|
592
592
|
defaultWidth: "full"
|
|
593
593
|
})
|
|
594
|
-
},
|
|
594
|
+
}, Er = {
|
|
595
595
|
lastWeek: "'last' eeee 'at' p",
|
|
596
596
|
yesterday: "'yesterday at' p",
|
|
597
597
|
today: "'today at' p",
|
|
598
598
|
tomorrow: "'tomorrow at' p",
|
|
599
599
|
nextWeek: "eeee 'at' p",
|
|
600
600
|
other: "P"
|
|
601
|
-
},
|
|
601
|
+
}, Cr = (e, t, n, r) => Er[e];
|
|
602
602
|
function W(e) {
|
|
603
603
|
return (t, n) => {
|
|
604
604
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -614,15 +614,15 @@ function W(e) {
|
|
|
614
614
|
return a[i];
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const Pr = {
|
|
618
618
|
narrow: ["B", "A"],
|
|
619
619
|
abbreviated: ["BC", "AD"],
|
|
620
620
|
wide: ["Before Christ", "Anno Domini"]
|
|
621
|
-
},
|
|
621
|
+
}, Yr = {
|
|
622
622
|
narrow: ["1", "2", "3", "4"],
|
|
623
623
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
624
624
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
625
|
-
},
|
|
625
|
+
}, zr = {
|
|
626
626
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
627
627
|
abbreviated: [
|
|
628
628
|
"Jan",
|
|
@@ -665,7 +665,7 @@ const Yr = {
|
|
|
665
665
|
"Friday",
|
|
666
666
|
"Saturday"
|
|
667
667
|
]
|
|
668
|
-
},
|
|
668
|
+
}, Ar = {
|
|
669
669
|
narrow: {
|
|
670
670
|
am: "a",
|
|
671
671
|
pm: "p",
|
|
@@ -696,7 +696,7 @@ const Yr = {
|
|
|
696
696
|
evening: "evening",
|
|
697
697
|
night: "night"
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Rr = {
|
|
700
700
|
narrow: {
|
|
701
701
|
am: "a",
|
|
702
702
|
pm: "p",
|
|
@@ -727,7 +727,7 @@ const Yr = {
|
|
|
727
727
|
evening: "in the evening",
|
|
728
728
|
night: "at night"
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, Lr = (e, t) => {
|
|
731
731
|
const n = Number(e), r = n % 100;
|
|
732
732
|
if (r > 20 || r < 10)
|
|
733
733
|
switch (r % 10) {
|
|
@@ -739,19 +739,19 @@ const Yr = {
|
|
|
739
739
|
return n + "rd";
|
|
740
740
|
}
|
|
741
741
|
return n + "th";
|
|
742
|
-
},
|
|
743
|
-
ordinalNumber:
|
|
742
|
+
}, Wr = {
|
|
743
|
+
ordinalNumber: Lr,
|
|
744
744
|
era: W({
|
|
745
|
-
values:
|
|
745
|
+
values: Pr,
|
|
746
746
|
defaultWidth: "wide"
|
|
747
747
|
}),
|
|
748
748
|
quarter: W({
|
|
749
|
-
values:
|
|
749
|
+
values: Yr,
|
|
750
750
|
defaultWidth: "wide",
|
|
751
751
|
argumentCallback: (e) => e - 1
|
|
752
752
|
}),
|
|
753
753
|
month: W({
|
|
754
|
-
values:
|
|
754
|
+
values: zr,
|
|
755
755
|
defaultWidth: "wide"
|
|
756
756
|
}),
|
|
757
757
|
day: W({
|
|
@@ -759,9 +759,9 @@ const Yr = {
|
|
|
759
759
|
defaultWidth: "wide"
|
|
760
760
|
}),
|
|
761
761
|
dayPeriod: W({
|
|
762
|
-
values:
|
|
762
|
+
values: Ar,
|
|
763
763
|
defaultWidth: "wide",
|
|
764
|
-
formattingValues:
|
|
764
|
+
formattingValues: Rr,
|
|
765
765
|
defaultFormattingWidth: "wide"
|
|
766
766
|
})
|
|
767
767
|
};
|
|
@@ -770,9 +770,9 @@ function j(e) {
|
|
|
770
770
|
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
|
|
771
771
|
if (!i)
|
|
772
772
|
return null;
|
|
773
|
-
const o = i[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
773
|
+
const o = i[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Hr(s, (f) => f.test(o)) : (
|
|
774
774
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
775
|
-
|
|
775
|
+
jr(s, (f) => f.test(o))
|
|
776
776
|
);
|
|
777
777
|
let u;
|
|
778
778
|
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
@@ -783,17 +783,17 @@ function j(e) {
|
|
|
783
783
|
return { value: u, rest: l };
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function jr(e, t) {
|
|
787
787
|
for (const n in e)
|
|
788
788
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
789
789
|
return n;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Hr(e, t) {
|
|
792
792
|
for (let n = 0; n < e.length; n++)
|
|
793
793
|
if (t(e[n]))
|
|
794
794
|
return n;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function qr(e) {
|
|
797
797
|
return (t, n = {}) => {
|
|
798
798
|
const r = t.match(e.matchPattern);
|
|
799
799
|
if (!r) return null;
|
|
@@ -805,23 +805,23 @@ function Zr(e) {
|
|
|
805
805
|
return { value: o, rest: s };
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const Zr = /^(\d+)(th|st|nd|rd)?/i, Kr = /\d+/i, Vr = {
|
|
809
809
|
narrow: /^(b|a)/i,
|
|
810
810
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
811
811
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
812
|
-
},
|
|
812
|
+
}, Br = {
|
|
813
813
|
any: [/^b/i, /^(a|c)/i]
|
|
814
|
-
},
|
|
814
|
+
}, Xr = {
|
|
815
815
|
narrow: /^[1234]/i,
|
|
816
816
|
abbreviated: /^q[1234]/i,
|
|
817
817
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
818
|
-
},
|
|
818
|
+
}, Gr = {
|
|
819
819
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
820
|
-
},
|
|
820
|
+
}, Qr = {
|
|
821
821
|
narrow: /^[jfmasond]/i,
|
|
822
822
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
823
823
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
824
|
-
},
|
|
824
|
+
}, Jr = {
|
|
825
825
|
narrow: [
|
|
826
826
|
/^j/i,
|
|
827
827
|
/^f/i,
|
|
@@ -850,18 +850,18 @@ const Kr = /^(\d+)(th|st|nd|rd)?/i, Vr = /\d+/i, Br = {
|
|
|
850
850
|
/^n/i,
|
|
851
851
|
/^d/i
|
|
852
852
|
]
|
|
853
|
-
},
|
|
853
|
+
}, ea = {
|
|
854
854
|
narrow: /^[smtwf]/i,
|
|
855
855
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
856
856
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
857
857
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
858
|
-
},
|
|
858
|
+
}, ta = {
|
|
859
859
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
860
860
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
861
|
-
},
|
|
861
|
+
}, na = {
|
|
862
862
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
863
863
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
864
|
-
},
|
|
864
|
+
}, ra = {
|
|
865
865
|
any: {
|
|
866
866
|
am: /^a/i,
|
|
867
867
|
pm: /^p/i,
|
|
@@ -872,61 +872,61 @@ const Kr = /^(\d+)(th|st|nd|rd)?/i, Vr = /\d+/i, Br = {
|
|
|
872
872
|
evening: /evening/i,
|
|
873
873
|
night: /night/i
|
|
874
874
|
}
|
|
875
|
-
},
|
|
876
|
-
ordinalNumber:
|
|
877
|
-
matchPattern:
|
|
878
|
-
parsePattern:
|
|
875
|
+
}, aa = {
|
|
876
|
+
ordinalNumber: qr({
|
|
877
|
+
matchPattern: Zr,
|
|
878
|
+
parsePattern: Kr,
|
|
879
879
|
valueCallback: (e) => parseInt(e, 10)
|
|
880
880
|
}),
|
|
881
881
|
era: j({
|
|
882
|
-
matchPatterns:
|
|
882
|
+
matchPatterns: Vr,
|
|
883
883
|
defaultMatchWidth: "wide",
|
|
884
|
-
parsePatterns:
|
|
884
|
+
parsePatterns: Br,
|
|
885
885
|
defaultParseWidth: "any"
|
|
886
886
|
}),
|
|
887
887
|
quarter: j({
|
|
888
|
-
matchPatterns:
|
|
888
|
+
matchPatterns: Xr,
|
|
889
889
|
defaultMatchWidth: "wide",
|
|
890
|
-
parsePatterns:
|
|
890
|
+
parsePatterns: Gr,
|
|
891
891
|
defaultParseWidth: "any",
|
|
892
892
|
valueCallback: (e) => e + 1
|
|
893
893
|
}),
|
|
894
894
|
month: j({
|
|
895
|
-
matchPatterns:
|
|
895
|
+
matchPatterns: Qr,
|
|
896
896
|
defaultMatchWidth: "wide",
|
|
897
|
-
parsePatterns:
|
|
897
|
+
parsePatterns: Jr,
|
|
898
898
|
defaultParseWidth: "any"
|
|
899
899
|
}),
|
|
900
900
|
day: j({
|
|
901
|
-
matchPatterns:
|
|
901
|
+
matchPatterns: ea,
|
|
902
902
|
defaultMatchWidth: "wide",
|
|
903
|
-
parsePatterns:
|
|
903
|
+
parsePatterns: ta,
|
|
904
904
|
defaultParseWidth: "any"
|
|
905
905
|
}),
|
|
906
906
|
dayPeriod: j({
|
|
907
|
-
matchPatterns:
|
|
907
|
+
matchPatterns: na,
|
|
908
908
|
defaultMatchWidth: "any",
|
|
909
|
-
parsePatterns:
|
|
909
|
+
parsePatterns: ra,
|
|
910
910
|
defaultParseWidth: "any"
|
|
911
911
|
})
|
|
912
912
|
}, nn = {
|
|
913
913
|
code: "en-US",
|
|
914
|
-
formatDistance:
|
|
915
|
-
formatLong:
|
|
916
|
-
formatRelative:
|
|
917
|
-
localize:
|
|
918
|
-
match:
|
|
914
|
+
formatDistance: Nr,
|
|
915
|
+
formatLong: Ir,
|
|
916
|
+
formatRelative: Cr,
|
|
917
|
+
localize: Wr,
|
|
918
|
+
match: aa,
|
|
919
919
|
options: {
|
|
920
920
|
weekStartsOn: 0,
|
|
921
921
|
firstWeekContainsDate: 1
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
|
-
function
|
|
924
|
+
function ia(e) {
|
|
925
925
|
const t = p(e);
|
|
926
|
-
return
|
|
926
|
+
return dr(t, kr(t)) + 1;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
const t = p(e), n = +he(t) - +
|
|
928
|
+
function oa(e) {
|
|
929
|
+
const t = p(e), n = +he(t) - +hr(t);
|
|
930
930
|
return Math.round(n / Qt) + 1;
|
|
931
931
|
}
|
|
932
932
|
function rn(e, t) {
|
|
@@ -938,13 +938,13 @@ function rn(e, t) {
|
|
|
938
938
|
const u = K(c, t);
|
|
939
939
|
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function sa(e, t) {
|
|
942
942
|
var s, c, u, l;
|
|
943
943
|
const n = L(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = rn(e, t), i = N(e, 0);
|
|
944
944
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), K(i, t);
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
const n = p(e), r = +K(n, t) - +
|
|
946
|
+
function ca(e, t) {
|
|
947
|
+
const n = p(e), r = +K(n, t) - +sa(n, t);
|
|
948
948
|
return Math.round(r / Qt) + 1;
|
|
949
949
|
}
|
|
950
950
|
function y(e, t) {
|
|
@@ -1170,12 +1170,12 @@ const k = {
|
|
|
1170
1170
|
},
|
|
1171
1171
|
// Local week of year
|
|
1172
1172
|
w: function(e, t, n, r) {
|
|
1173
|
-
const a =
|
|
1173
|
+
const a = ca(e, r);
|
|
1174
1174
|
return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : y(a, t.length);
|
|
1175
1175
|
},
|
|
1176
1176
|
// ISO week of year
|
|
1177
1177
|
I: function(e, t, n) {
|
|
1178
|
-
const r =
|
|
1178
|
+
const r = oa(e);
|
|
1179
1179
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : y(r, t.length);
|
|
1180
1180
|
},
|
|
1181
1181
|
// Day of the month
|
|
@@ -1184,7 +1184,7 @@ const k = {
|
|
|
1184
1184
|
},
|
|
1185
1185
|
// Day of year
|
|
1186
1186
|
D: function(e, t, n) {
|
|
1187
|
-
const r =
|
|
1187
|
+
const r = ia(e);
|
|
1188
1188
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : y(r, t.length);
|
|
1189
1189
|
},
|
|
1190
1190
|
// Day of week
|
|
@@ -1441,11 +1441,11 @@ const k = {
|
|
|
1441
1441
|
return ft(r);
|
|
1442
1442
|
case "XXXX":
|
|
1443
1443
|
case "XX":
|
|
1444
|
-
return
|
|
1444
|
+
return F(r);
|
|
1445
1445
|
case "XXXXX":
|
|
1446
1446
|
case "XXX":
|
|
1447
1447
|
default:
|
|
1448
|
-
return
|
|
1448
|
+
return F(r, ":");
|
|
1449
1449
|
}
|
|
1450
1450
|
},
|
|
1451
1451
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1456,11 +1456,11 @@ const k = {
|
|
|
1456
1456
|
return ft(r);
|
|
1457
1457
|
case "xxxx":
|
|
1458
1458
|
case "xx":
|
|
1459
|
-
return
|
|
1459
|
+
return F(r);
|
|
1460
1460
|
case "xxxxx":
|
|
1461
1461
|
case "xxx":
|
|
1462
1462
|
default:
|
|
1463
|
-
return
|
|
1463
|
+
return F(r, ":");
|
|
1464
1464
|
}
|
|
1465
1465
|
},
|
|
1466
1466
|
// Timezone (GMT)
|
|
@@ -1473,7 +1473,7 @@ const k = {
|
|
|
1473
1473
|
return "GMT" + mt(r, ":");
|
|
1474
1474
|
case "OOOO":
|
|
1475
1475
|
default:
|
|
1476
|
-
return "GMT" +
|
|
1476
|
+
return "GMT" + F(r, ":");
|
|
1477
1477
|
}
|
|
1478
1478
|
},
|
|
1479
1479
|
// Timezone (specific non-location)
|
|
@@ -1486,7 +1486,7 @@ const k = {
|
|
|
1486
1486
|
return "GMT" + mt(r, ":");
|
|
1487
1487
|
case "zzzz":
|
|
1488
1488
|
default:
|
|
1489
|
-
return "GMT" +
|
|
1489
|
+
return "GMT" + F(r, ":");
|
|
1490
1490
|
}
|
|
1491
1491
|
},
|
|
1492
1492
|
// Seconds timestamp
|
|
@@ -1505,9 +1505,9 @@ function mt(e, t = "") {
|
|
|
1505
1505
|
return i === 0 ? n + String(a) : n + String(a) + t + y(i, 2);
|
|
1506
1506
|
}
|
|
1507
1507
|
function ft(e, t) {
|
|
1508
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + y(Math.abs(e) / 60, 2) :
|
|
1508
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + y(Math.abs(e) / 60, 2) : F(e, t);
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function F(e, t = "") {
|
|
1511
1511
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = y(Math.trunc(r / 60), 2), i = y(r % 60, 2);
|
|
1512
1512
|
return n + a + t + i;
|
|
1513
1513
|
}
|
|
@@ -1535,7 +1535,7 @@ const dt = (e, t) => {
|
|
|
1535
1535
|
default:
|
|
1536
1536
|
return t.time({ width: "full" });
|
|
1537
1537
|
}
|
|
1538
|
-
},
|
|
1538
|
+
}, ua = (e, t) => {
|
|
1539
1539
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1540
1540
|
if (!a)
|
|
1541
1541
|
return dt(e, t);
|
|
@@ -1556,48 +1556,48 @@ const dt = (e, t) => {
|
|
|
1556
1556
|
break;
|
|
1557
1557
|
}
|
|
1558
1558
|
return i.replace("{{date}}", dt(r, t)).replace("{{time}}", an(a, t));
|
|
1559
|
-
},
|
|
1559
|
+
}, la = {
|
|
1560
1560
|
p: an,
|
|
1561
|
-
P:
|
|
1562
|
-
},
|
|
1561
|
+
P: ua
|
|
1562
|
+
}, ma = /^D+$/, fa = /^Y+$/, da = ["D", "DD", "YY", "YYYY"];
|
|
1563
|
+
function ha(e) {
|
|
1564
|
+
return ma.test(e);
|
|
1565
|
+
}
|
|
1563
1566
|
function ga(e) {
|
|
1564
1567
|
return fa.test(e);
|
|
1565
1568
|
}
|
|
1566
|
-
function ya(e) {
|
|
1567
|
-
|
|
1569
|
+
function ya(e, t, n) {
|
|
1570
|
+
const r = pa(e, t, n);
|
|
1571
|
+
if (console.warn(r), da.includes(e)) throw new RangeError(r);
|
|
1568
1572
|
}
|
|
1569
1573
|
function pa(e, t, n) {
|
|
1570
|
-
const r = wa(e, t, n);
|
|
1571
|
-
if (console.warn(r), ha.includes(e)) throw new RangeError(r);
|
|
1572
|
-
}
|
|
1573
|
-
function wa(e, t, n) {
|
|
1574
1574
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1575
1575
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1576
1576
|
}
|
|
1577
|
-
const
|
|
1577
|
+
const wa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ta = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Da = /^'([^]*?)'?$/, xa = /''/g, ba = /[a-zA-Z]/;
|
|
1578
1578
|
function Ke(e, t, n) {
|
|
1579
1579
|
var l, f, m, h, d, S, et, tt;
|
|
1580
1580
|
const r = L(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? nn, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((S = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : S.weekStartsOn) ?? r.weekStartsOn ?? ((tt = (et = r.locale) == null ? void 0 : et.options) == null ? void 0 : tt.weekStartsOn) ?? 0, s = p(e);
|
|
1581
|
-
if (!
|
|
1581
|
+
if (!pr(s))
|
|
1582
1582
|
throw new RangeError("Invalid time value");
|
|
1583
|
-
let c = t.match(
|
|
1584
|
-
const
|
|
1585
|
-
if (
|
|
1586
|
-
const Me =
|
|
1583
|
+
let c = t.match(Ta).map((v) => {
|
|
1584
|
+
const b = v[0];
|
|
1585
|
+
if (b === "p" || b === "P") {
|
|
1586
|
+
const Me = la[b];
|
|
1587
1587
|
return Me(v, a.formatLong);
|
|
1588
1588
|
}
|
|
1589
1589
|
return v;
|
|
1590
|
-
}).join("").match(
|
|
1590
|
+
}).join("").match(wa).map((v) => {
|
|
1591
1591
|
if (v === "''")
|
|
1592
1592
|
return { isToken: !1, value: "'" };
|
|
1593
|
-
const
|
|
1594
|
-
if (
|
|
1595
|
-
return { isToken: !1, value:
|
|
1596
|
-
if (lt[
|
|
1593
|
+
const b = v[0];
|
|
1594
|
+
if (b === "'")
|
|
1595
|
+
return { isToken: !1, value: va(v) };
|
|
1596
|
+
if (lt[b])
|
|
1597
1597
|
return { isToken: !0, value: v };
|
|
1598
|
-
if (
|
|
1598
|
+
if (b.match(ba))
|
|
1599
1599
|
throw new RangeError(
|
|
1600
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1600
|
+
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1601
1601
|
);
|
|
1602
1602
|
return { isToken: !1, value: v };
|
|
1603
1603
|
});
|
|
@@ -1609,17 +1609,17 @@ function Ke(e, t, n) {
|
|
|
1609
1609
|
};
|
|
1610
1610
|
return c.map((v) => {
|
|
1611
1611
|
if (!v.isToken) return v.value;
|
|
1612
|
-
const
|
|
1613
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1614
|
-
const Me = lt[
|
|
1615
|
-
return Me(s,
|
|
1612
|
+
const b = v.value;
|
|
1613
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && ga(b) || !(n != null && n.useAdditionalDayOfYearTokens) && ha(b)) && ya(b, t, String(e));
|
|
1614
|
+
const Me = lt[b[0]];
|
|
1615
|
+
return Me(s, b, a.localize, u);
|
|
1616
1616
|
}).join("");
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const t = e.match(
|
|
1618
|
+
function va(e) {
|
|
1619
|
+
const t = e.match(Da);
|
|
1620
1620
|
return t ? t[1].replace(xa, "'") : e;
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function Sa(e, t, n) {
|
|
1623
1623
|
const r = L(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? nn, i = 2520, o = se(e, t);
|
|
1624
1624
|
if (isNaN(o))
|
|
1625
1625
|
throw new RangeError("Invalid time value");
|
|
@@ -1629,7 +1629,7 @@ function Ma(e, t, n) {
|
|
|
1629
1629
|
});
|
|
1630
1630
|
let c, u;
|
|
1631
1631
|
o > 0 ? (c = p(t), u = p(e)) : (c = p(e), u = p(t));
|
|
1632
|
-
const l =
|
|
1632
|
+
const l = Mr(u, c), f = (ge(u) - ge(c)) / 1e3, m = Math.round((l - f) / 60);
|
|
1633
1633
|
let h;
|
|
1634
1634
|
if (m < 2)
|
|
1635
1635
|
return n != null && n.includeSeconds ? l < 5 ? a.formatDistance("lessThanXSeconds", 5, s) : l < 10 ? a.formatDistance("lessThanXSeconds", 10, s) : l < 20 ? a.formatDistance("lessThanXSeconds", 20, s) : l < 40 ? a.formatDistance("halfAMinute", 0, s) : l < 60 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", 1, s) : m === 0 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", m, s);
|
|
@@ -1649,7 +1649,7 @@ function Ma(e, t, n) {
|
|
|
1649
1649
|
} else if (m < re * 2)
|
|
1650
1650
|
return h = Math.round(m / re), a.formatDistance("aboutXMonths", h, s);
|
|
1651
1651
|
}
|
|
1652
|
-
if (h =
|
|
1652
|
+
if (h = Sr(u, c), h < 12) {
|
|
1653
1653
|
const d = Math.round(m / re);
|
|
1654
1654
|
return a.formatDistance("xMonths", d, s);
|
|
1655
1655
|
} else {
|
|
@@ -1657,27 +1657,27 @@ function Ma(e, t, n) {
|
|
|
1657
1657
|
return d < 3 ? a.formatDistance("aboutXYears", S, s) : d < 9 ? a.formatDistance("overXYears", S, s) : a.formatDistance("almostXYears", S + 1, s);
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1660
|
+
function Ma(e, t) {
|
|
1661
|
+
return Sa(e, gr(e), t);
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function ka() {
|
|
1664
1664
|
return Object.assign({}, L());
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
const r =
|
|
1666
|
+
function Ss(e, t) {
|
|
1667
|
+
const r = Oa(e);
|
|
1668
1668
|
let a;
|
|
1669
1669
|
if (r.date) {
|
|
1670
1670
|
const c = Fa(r.date, 2);
|
|
1671
|
-
a =
|
|
1671
|
+
a = Ia(c.restDateString, c.year);
|
|
1672
1672
|
}
|
|
1673
1673
|
if (!a || isNaN(a.getTime()))
|
|
1674
1674
|
return /* @__PURE__ */ new Date(NaN);
|
|
1675
1675
|
const i = a.getTime();
|
|
1676
1676
|
let o = 0, s;
|
|
1677
|
-
if (r.time && (o =
|
|
1677
|
+
if (r.time && (o = Ea(r.time), isNaN(o)))
|
|
1678
1678
|
return /* @__PURE__ */ new Date(NaN);
|
|
1679
1679
|
if (r.timezone) {
|
|
1680
|
-
if (s =
|
|
1680
|
+
if (s = Ca(r.timezone), isNaN(s))
|
|
1681
1681
|
return /* @__PURE__ */ new Date(NaN);
|
|
1682
1682
|
} else {
|
|
1683
1683
|
const c = new Date(i + o), u = /* @__PURE__ */ new Date(0);
|
|
@@ -1698,8 +1698,8 @@ const ae = {
|
|
|
1698
1698
|
dateTimeDelimiter: /[T ]/,
|
|
1699
1699
|
timeZoneDelimiter: /[Z ]/i,
|
|
1700
1700
|
timezone: /([Z+-].*)$/
|
|
1701
|
-
},
|
|
1702
|
-
function
|
|
1701
|
+
}, _a = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Na = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, $a = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1702
|
+
function Oa(e) {
|
|
1703
1703
|
const t = {}, n = e.split(ae.dateTimeDelimiter);
|
|
1704
1704
|
let r;
|
|
1705
1705
|
if (n.length > 2)
|
|
@@ -1724,87 +1724,87 @@ function Fa(e, t) {
|
|
|
1724
1724
|
restDateString: e.slice((r[1] || r[2]).length)
|
|
1725
1725
|
};
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function Ia(e, t) {
|
|
1728
1728
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1729
|
-
const n = e.match(
|
|
1729
|
+
const n = e.match(_a);
|
|
1730
1730
|
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
1731
1731
|
const r = !!n[4], a = H(n[1]), i = H(n[2]) - 1, o = H(n[3]), s = H(n[4]), c = H(n[5]) - 1;
|
|
1732
1732
|
if (r)
|
|
1733
|
-
return
|
|
1733
|
+
return Aa(t, s, c) ? Pa(t, s, c) : /* @__PURE__ */ new Date(NaN);
|
|
1734
1734
|
{
|
|
1735
1735
|
const u = /* @__PURE__ */ new Date(0);
|
|
1736
|
-
return !
|
|
1736
|
+
return !za(t, i, o) || !Ua(t, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, i, Math.max(a, o)), u);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
function H(e) {
|
|
1740
1740
|
return e ? parseInt(e) : 1;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const t = e.match(
|
|
1742
|
+
function Ea(e) {
|
|
1743
|
+
const t = e.match(Na);
|
|
1744
1744
|
if (!t) return NaN;
|
|
1745
1745
|
const n = _e(t[1]), r = _e(t[2]), a = _e(t[3]);
|
|
1746
|
-
return
|
|
1746
|
+
return Ra(n, r, a) ? n * en + r * Jt + a * 1e3 : NaN;
|
|
1747
1747
|
}
|
|
1748
1748
|
function _e(e) {
|
|
1749
1749
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function Ca(e) {
|
|
1752
1752
|
if (e === "Z") return 0;
|
|
1753
|
-
const t = e.match(
|
|
1753
|
+
const t = e.match($a);
|
|
1754
1754
|
if (!t) return 0;
|
|
1755
1755
|
const n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), a = t[3] && parseInt(t[3]) || 0;
|
|
1756
|
-
return
|
|
1756
|
+
return La(r, a) ? n * (r * en + a * Jt) : NaN;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Pa(e, t, n) {
|
|
1759
1759
|
const r = /* @__PURE__ */ new Date(0);
|
|
1760
1760
|
r.setUTCFullYear(e, 0, 4);
|
|
1761
1761
|
const a = r.getUTCDay() || 7, i = (t - 1) * 7 + n + 1 - a;
|
|
1762
1762
|
return r.setUTCDate(r.getUTCDate() + i), r;
|
|
1763
1763
|
}
|
|
1764
|
-
const
|
|
1764
|
+
const Ya = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1765
1765
|
function on(e) {
|
|
1766
1766
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
return t >= 0 && t <= 11 && n >= 1 && n <= (
|
|
1768
|
+
function za(e, t, n) {
|
|
1769
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (Ya[t] || (on(e) ? 29 : 28));
|
|
1770
1770
|
}
|
|
1771
1771
|
function Ua(e, t) {
|
|
1772
1772
|
return t >= 1 && t <= (on(e) ? 366 : 365);
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function Aa(e, t, n) {
|
|
1775
1775
|
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function Ra(e, t, n) {
|
|
1778
1778
|
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function La(e, t) {
|
|
1781
1781
|
return t >= 0 && t <= 59;
|
|
1782
1782
|
}
|
|
1783
1783
|
function ht(e, t, n) {
|
|
1784
|
-
const r =
|
|
1785
|
-
return "formatToParts" in a ?
|
|
1784
|
+
const r = ka(), a = Ha(e, n.timeZone, n.locale ?? r.locale);
|
|
1785
|
+
return "formatToParts" in a ? Wa(a, t) : ja(a, t);
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function Wa(e, t) {
|
|
1788
1788
|
const n = e.formatToParts(t);
|
|
1789
1789
|
for (let r = n.length - 1; r >= 0; --r)
|
|
1790
1790
|
if (n[r].type === "timeZoneName")
|
|
1791
1791
|
return n[r].value;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function ja(e, t) {
|
|
1794
1794
|
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
1795
1795
|
return r ? r[0].substr(1) : "";
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Ha(e, t, n) {
|
|
1798
1798
|
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
1799
1799
|
timeZone: t,
|
|
1800
1800
|
timeZoneName: e
|
|
1801
1801
|
});
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
const n =
|
|
1805
|
-
return "formatToParts" in n ?
|
|
1803
|
+
function qa(e, t) {
|
|
1804
|
+
const n = Xa(t);
|
|
1805
|
+
return "formatToParts" in n ? Ka(n, e) : Va(n, e);
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1807
|
+
const Za = {
|
|
1808
1808
|
year: 0,
|
|
1809
1809
|
month: 1,
|
|
1810
1810
|
day: 2,
|
|
@@ -1812,11 +1812,11 @@ const Ka = {
|
|
|
1812
1812
|
minute: 4,
|
|
1813
1813
|
second: 5
|
|
1814
1814
|
};
|
|
1815
|
-
function
|
|
1815
|
+
function Ka(e, t) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
const n = e.formatToParts(t), r = [];
|
|
1818
1818
|
for (let a = 0; a < n.length; a++) {
|
|
1819
|
-
const i =
|
|
1819
|
+
const i = Za[n[a].type];
|
|
1820
1820
|
i !== void 0 && (r[i] = parseInt(n[a].value, 10));
|
|
1821
1821
|
}
|
|
1822
1822
|
return r;
|
|
@@ -1826,7 +1826,7 @@ function Va(e, t) {
|
|
|
1826
1826
|
throw n;
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function Va(e, t) {
|
|
1830
1830
|
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
1831
1831
|
return [
|
|
1832
1832
|
parseInt(r[3], 10),
|
|
@@ -1846,9 +1846,9 @@ const Ne = {}, gt = new Intl.DateTimeFormat("en-US", {
|
|
|
1846
1846
|
hour: "2-digit",
|
|
1847
1847
|
minute: "2-digit",
|
|
1848
1848
|
second: "2-digit"
|
|
1849
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
1850
|
-
function
|
|
1851
|
-
return Ne[e] || (Ne[e] =
|
|
1849
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Ba = gt === "06/25/2014, 00:00:00" || gt === "06/25/2014 00:00:00";
|
|
1850
|
+
function Xa(e) {
|
|
1851
|
+
return Ne[e] || (Ne[e] = Ba ? new Intl.DateTimeFormat("en-US", {
|
|
1852
1852
|
hourCycle: "h23",
|
|
1853
1853
|
timeZone: e,
|
|
1854
1854
|
year: "numeric",
|
|
@@ -1872,12 +1872,12 @@ function Ve(e, t, n, r, a, i, o) {
|
|
|
1872
1872
|
const s = /* @__PURE__ */ new Date(0);
|
|
1873
1873
|
return s.setUTCFullYear(e, t, n), s.setUTCHours(r, a, i, o), s;
|
|
1874
1874
|
}
|
|
1875
|
-
const yt = 36e5,
|
|
1875
|
+
const yt = 36e5, Ga = 6e4, $e = {
|
|
1876
1876
|
timezoneZ: /^(Z)$/,
|
|
1877
1877
|
timezoneHH: /^([+-]\d{2})$/,
|
|
1878
1878
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
1879
1879
|
};
|
|
1880
|
-
function
|
|
1880
|
+
function xe(e, t, n) {
|
|
1881
1881
|
if (!e)
|
|
1882
1882
|
return 0;
|
|
1883
1883
|
let r = $e.timezoneZ.exec(e);
|
|
@@ -1889,25 +1889,25 @@ function be(e, t, n) {
|
|
|
1889
1889
|
if (r = $e.timezoneHHMM.exec(e), r) {
|
|
1890
1890
|
a = parseInt(r[2], 10);
|
|
1891
1891
|
const o = parseInt(r[3], 10);
|
|
1892
|
-
return pt(a, o) ? (i = Math.abs(a) * yt + o *
|
|
1892
|
+
return pt(a, o) ? (i = Math.abs(a) * yt + o * Ga, r[1] === "+" ? -i : i) : NaN;
|
|
1893
1893
|
}
|
|
1894
|
-
if (
|
|
1894
|
+
if (ei(e)) {
|
|
1895
1895
|
t = new Date(t || Date.now());
|
|
1896
|
-
const o = n ? t :
|
|
1897
|
-
return -(n ? s :
|
|
1896
|
+
const o = n ? t : Qa(t), s = Le(o, e);
|
|
1897
|
+
return -(n ? s : Ja(t, s, e));
|
|
1898
1898
|
}
|
|
1899
1899
|
return NaN;
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function Qa(e) {
|
|
1902
1902
|
return Ve(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
1903
1903
|
}
|
|
1904
1904
|
function Le(e, t) {
|
|
1905
|
-
const n =
|
|
1905
|
+
const n = qa(e, t), r = Ve(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
1906
1906
|
let a = e.getTime();
|
|
1907
1907
|
const i = a % 1e3;
|
|
1908
1908
|
return a -= i >= 0 ? i : 1e3 + i, r - a;
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function Ja(e, t, n) {
|
|
1911
1911
|
let a = e.getTime() - t;
|
|
1912
1912
|
const i = Le(new Date(a), n);
|
|
1913
1913
|
if (t === i)
|
|
@@ -1920,7 +1920,7 @@ function pt(e, t) {
|
|
|
1920
1920
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
1921
1921
|
}
|
|
1922
1922
|
const wt = {};
|
|
1923
|
-
function
|
|
1923
|
+
function ei(e) {
|
|
1924
1924
|
if (wt[e])
|
|
1925
1925
|
return !0;
|
|
1926
1926
|
try {
|
|
@@ -1929,7 +1929,7 @@ function ti(e) {
|
|
|
1929
1929
|
return !1;
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
|
-
const
|
|
1932
|
+
const ti = 60 * 1e3, ni = {
|
|
1933
1933
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1934
1934
|
X: function(e, t, n) {
|
|
1935
1935
|
const r = Oe(n.timeZone, e);
|
|
@@ -1969,7 +1969,7 @@ const ni = 60 * 1e3, ri = {
|
|
|
1969
1969
|
case "O":
|
|
1970
1970
|
case "OO":
|
|
1971
1971
|
case "OOO":
|
|
1972
|
-
return "GMT" +
|
|
1972
|
+
return "GMT" + ri(r, ":");
|
|
1973
1973
|
case "OOOO":
|
|
1974
1974
|
default:
|
|
1975
1975
|
return "GMT" + C(r, ":");
|
|
@@ -1989,7 +1989,7 @@ const ni = 60 * 1e3, ri = {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
};
|
|
1991
1991
|
function Oe(e, t) {
|
|
1992
|
-
const n = e ?
|
|
1992
|
+
const n = e ? xe(e, t, !0) / ti : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
1993
1993
|
if (Number.isNaN(n))
|
|
1994
1994
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
1995
1995
|
return n;
|
|
@@ -2008,7 +2008,7 @@ function C(e, t = "") {
|
|
|
2008
2008
|
function Tt(e, t) {
|
|
2009
2009
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + ye(Math.abs(e) / 60, 2) : C(e, t);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function ri(e, t = "") {
|
|
2012
2012
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), i = r % 60;
|
|
2013
2013
|
return i === 0 ? n + String(a) : n + String(a) + t + ye(i, 2);
|
|
2014
2014
|
}
|
|
@@ -2016,7 +2016,7 @@ function Dt(e) {
|
|
|
2016
2016
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2017
2017
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2018
2018
|
}
|
|
2019
|
-
const sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
2019
|
+
const sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Fe = 36e5, xt = 6e4, ai = 2, x = {
|
|
2020
2020
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2021
2021
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2022
2022
|
// year tokens
|
|
@@ -2055,7 +2055,7 @@ function pe(e, t = {}) {
|
|
|
2055
2055
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2056
2056
|
if (e === null)
|
|
2057
2057
|
return /* @__PURE__ */ new Date(NaN);
|
|
2058
|
-
const n = t.additionalDigits == null ?
|
|
2058
|
+
const n = t.additionalDigits == null ? ai : Number(t.additionalDigits);
|
|
2059
2059
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
2060
2060
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2061
2061
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2064,16 +2064,16 @@ function pe(e, t = {}) {
|
|
|
2064
2064
|
return new Date(e);
|
|
2065
2065
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2066
2066
|
return /* @__PURE__ */ new Date(NaN);
|
|
2067
|
-
const r =
|
|
2067
|
+
const r = ii(e), { year: a, restDateString: i } = oi(r.date, n), o = si(i, a);
|
|
2068
2068
|
if (o === null || isNaN(o.getTime()))
|
|
2069
2069
|
return /* @__PURE__ */ new Date(NaN);
|
|
2070
2070
|
if (o) {
|
|
2071
2071
|
const s = o.getTime();
|
|
2072
2072
|
let c = 0, u;
|
|
2073
|
-
if (r.time && (c =
|
|
2073
|
+
if (r.time && (c = ci(r.time), c === null || isNaN(c)))
|
|
2074
2074
|
return /* @__PURE__ */ new Date(NaN);
|
|
2075
2075
|
if (r.timeZone || t.timeZone) {
|
|
2076
|
-
if (u =
|
|
2076
|
+
if (u = xe(r.timeZone || t.timeZone, new Date(s + c)), isNaN(u))
|
|
2077
2077
|
return /* @__PURE__ */ new Date(NaN);
|
|
2078
2078
|
} else
|
|
2079
2079
|
u = Dt(new Date(s + c)), u = Dt(new Date(s + c + u));
|
|
@@ -2081,19 +2081,19 @@ function pe(e, t = {}) {
|
|
|
2081
2081
|
} else
|
|
2082
2082
|
return /* @__PURE__ */ new Date(NaN);
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function ii(e) {
|
|
2085
2085
|
const t = {};
|
|
2086
|
-
let n =
|
|
2087
|
-
if (n ? (t.date = n[1], r = n[3]) : (n =
|
|
2088
|
-
const a =
|
|
2086
|
+
let n = x.dateTimePattern.exec(e), r;
|
|
2087
|
+
if (n ? (t.date = n[1], r = n[3]) : (n = x.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
2088
|
+
const a = x.timeZone.exec(r);
|
|
2089
2089
|
a ? (t.time = r.replace(a[1], ""), t.timeZone = a[1].trim()) : t.time = r;
|
|
2090
2090
|
}
|
|
2091
2091
|
return t;
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function oi(e, t) {
|
|
2094
2094
|
if (e) {
|
|
2095
|
-
const n =
|
|
2096
|
-
let a =
|
|
2095
|
+
const n = x.YYY[t], r = x.YYYYY[t];
|
|
2096
|
+
let a = x.YYYY.exec(e) || r.exec(e);
|
|
2097
2097
|
if (a) {
|
|
2098
2098
|
const i = a[1];
|
|
2099
2099
|
return {
|
|
@@ -2101,7 +2101,7 @@ function si(e, t) {
|
|
|
2101
2101
|
restDateString: e.slice(i.length)
|
|
2102
2102
|
};
|
|
2103
2103
|
}
|
|
2104
|
-
if (a =
|
|
2104
|
+
if (a = x.YY.exec(e) || n.exec(e), a) {
|
|
2105
2105
|
const i = a[1];
|
|
2106
2106
|
return {
|
|
2107
2107
|
year: parseInt(i, 10) * 100,
|
|
@@ -2113,55 +2113,55 @@ function si(e, t) {
|
|
|
2113
2113
|
year: null
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function si(e, t) {
|
|
2117
2117
|
if (t === null)
|
|
2118
2118
|
return null;
|
|
2119
2119
|
let n, r, a;
|
|
2120
2120
|
if (!e || !e.length)
|
|
2121
2121
|
return n = /* @__PURE__ */ new Date(0), n.setUTCFullYear(t), n;
|
|
2122
|
-
let i =
|
|
2122
|
+
let i = x.MM.exec(e);
|
|
2123
2123
|
if (i)
|
|
2124
2124
|
return n = /* @__PURE__ */ new Date(0), r = parseInt(i[1], 10) - 1, vt(t, r) ? (n.setUTCFullYear(t, r), n) : /* @__PURE__ */ new Date(NaN);
|
|
2125
|
-
if (i =
|
|
2125
|
+
if (i = x.DDD.exec(e), i) {
|
|
2126
2126
|
n = /* @__PURE__ */ new Date(0);
|
|
2127
2127
|
const o = parseInt(i[1], 10);
|
|
2128
|
-
return
|
|
2128
|
+
return mi(t, o) ? (n.setUTCFullYear(t, 0, o), n) : /* @__PURE__ */ new Date(NaN);
|
|
2129
2129
|
}
|
|
2130
|
-
if (i =
|
|
2130
|
+
if (i = x.MMDD.exec(e), i) {
|
|
2131
2131
|
n = /* @__PURE__ */ new Date(0), r = parseInt(i[1], 10) - 1;
|
|
2132
2132
|
const o = parseInt(i[2], 10);
|
|
2133
2133
|
return vt(t, r, o) ? (n.setUTCFullYear(t, r, o), n) : /* @__PURE__ */ new Date(NaN);
|
|
2134
2134
|
}
|
|
2135
|
-
if (i =
|
|
2136
|
-
return a = parseInt(i[1], 10) - 1, St(a) ?
|
|
2137
|
-
if (i =
|
|
2135
|
+
if (i = x.Www.exec(e), i)
|
|
2136
|
+
return a = parseInt(i[1], 10) - 1, St(a) ? bt(t, a) : /* @__PURE__ */ new Date(NaN);
|
|
2137
|
+
if (i = x.WwwD.exec(e), i) {
|
|
2138
2138
|
a = parseInt(i[1], 10) - 1;
|
|
2139
2139
|
const o = parseInt(i[2], 10) - 1;
|
|
2140
|
-
return St(a, o) ?
|
|
2140
|
+
return St(a, o) ? bt(t, a, o) : /* @__PURE__ */ new Date(NaN);
|
|
2141
2141
|
}
|
|
2142
2142
|
return null;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
let t, n, r =
|
|
2144
|
+
function ci(e) {
|
|
2145
|
+
let t, n, r = x.HH.exec(e);
|
|
2146
2146
|
if (r)
|
|
2147
|
-
return t = parseFloat(r[1].replace(",", ".")),
|
|
2148
|
-
if (r =
|
|
2149
|
-
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")),
|
|
2150
|
-
if (r =
|
|
2147
|
+
return t = parseFloat(r[1].replace(",", ".")), Ie(t) ? t % 24 * Fe : NaN;
|
|
2148
|
+
if (r = x.HHMM.exec(e), r)
|
|
2149
|
+
return t = parseInt(r[1], 10), n = parseFloat(r[2].replace(",", ".")), Ie(t, n) ? t % 24 * Fe + n * xt : NaN;
|
|
2150
|
+
if (r = x.HHMMSS.exec(e), r) {
|
|
2151
2151
|
t = parseInt(r[1], 10), n = parseInt(r[2], 10);
|
|
2152
2152
|
const a = parseFloat(r[3].replace(",", "."));
|
|
2153
|
-
return
|
|
2153
|
+
return Ie(t, n, a) ? t % 24 * Fe + n * xt + a * 1e3 : NaN;
|
|
2154
2154
|
}
|
|
2155
2155
|
return null;
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function bt(e, t, n) {
|
|
2158
2158
|
t = t || 0, n = n || 0;
|
|
2159
2159
|
const r = /* @__PURE__ */ new Date(0);
|
|
2160
2160
|
r.setUTCFullYear(e, 0, 4);
|
|
2161
2161
|
const a = r.getUTCDay() || 7, i = t * 7 + n + 1 - a;
|
|
2162
2162
|
return r.setUTCDate(r.getUTCDate() + i), r;
|
|
2163
2163
|
}
|
|
2164
|
-
const
|
|
2164
|
+
const ui = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], li = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2165
2165
|
function cn(e) {
|
|
2166
2166
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2167
2167
|
}
|
|
@@ -2172,12 +2172,12 @@ function vt(e, t, n) {
|
|
|
2172
2172
|
if (n < 1)
|
|
2173
2173
|
return !1;
|
|
2174
2174
|
const r = cn(e);
|
|
2175
|
-
if (r && n >
|
|
2175
|
+
if (r && n > li[t] || !r && n > ui[t])
|
|
2176
2176
|
return !1;
|
|
2177
2177
|
}
|
|
2178
2178
|
return !0;
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2180
|
+
function mi(e, t) {
|
|
2181
2181
|
if (t < 1)
|
|
2182
2182
|
return !1;
|
|
2183
2183
|
const n = cn(e);
|
|
@@ -2186,27 +2186,27 @@ function fi(e, t) {
|
|
|
2186
2186
|
function St(e, t) {
|
|
2187
2187
|
return !(e < 0 || e > 52 || t != null && (t < 0 || t > 6));
|
|
2188
2188
|
}
|
|
2189
|
-
function
|
|
2189
|
+
function Ie(e, t, n) {
|
|
2190
2190
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2191
2191
|
}
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2192
|
+
const fi = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2193
|
+
function di(e, t, n = {}) {
|
|
2194
2194
|
t = String(t);
|
|
2195
|
-
const r = t.match(
|
|
2195
|
+
const r = t.match(fi);
|
|
2196
2196
|
if (r) {
|
|
2197
2197
|
const a = pe(n.originalDate || e, n);
|
|
2198
2198
|
t = r.reduce(function(i, o) {
|
|
2199
2199
|
if (o[0] === "'")
|
|
2200
2200
|
return i;
|
|
2201
|
-
const s = i.indexOf(o), c = i[s - 1] === "'", u = i.replace(o, "'" +
|
|
2201
|
+
const s = i.indexOf(o), c = i[s - 1] === "'", u = i.replace(o, "'" + ni[o[0]](a, o, n) + "'");
|
|
2202
2202
|
return c ? u.substring(0, s - 1) + u.substring(s + 1) : u;
|
|
2203
2203
|
}, t);
|
|
2204
2204
|
}
|
|
2205
2205
|
return Ke(e, t, n);
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function hi(e, t, n) {
|
|
2208
2208
|
e = pe(e, n);
|
|
2209
|
-
const r =
|
|
2209
|
+
const r = xe(t, e, !0), a = new Date(e.getTime() - r), i = /* @__PURE__ */ new Date(0);
|
|
2210
2210
|
return i.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), i.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), i;
|
|
2211
2211
|
}
|
|
2212
2212
|
function un(e, t, n, r) {
|
|
@@ -2214,19 +2214,19 @@ function un(e, t, n, r) {
|
|
|
2214
2214
|
...r,
|
|
2215
2215
|
timeZone: t,
|
|
2216
2216
|
originalDate: e
|
|
2217
|
-
}, hi(
|
|
2217
|
+
}, di(hi(e, t, { timeZone: r.timeZone }), n, r);
|
|
2218
2218
|
}
|
|
2219
2219
|
function J(e, t, n) {
|
|
2220
2220
|
if (typeof e == "string" && !e.match(sn))
|
|
2221
2221
|
return pe(e, { ...n, timeZone: t });
|
|
2222
2222
|
e = pe(e, n);
|
|
2223
|
-
const r = Ve(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a =
|
|
2223
|
+
const r = Ve(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a = xe(t, new Date(r));
|
|
2224
2224
|
return new Date(r + a);
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function Ms(e, t) {
|
|
2227
2227
|
return e && e !== "auto" ? e : t;
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function ks(e, t = /* @__PURE__ */ new Date()) {
|
|
2230
2230
|
try {
|
|
2231
2231
|
const n = {
|
|
2232
2232
|
timeZone: e,
|
|
@@ -2237,7 +2237,7 @@ function Es(e, t = /* @__PURE__ */ new Date()) {
|
|
|
2237
2237
|
return e;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function _s(e) {
|
|
2241
2241
|
try {
|
|
2242
2242
|
const t = {
|
|
2243
2243
|
timeZone: e,
|
|
@@ -2264,20 +2264,20 @@ function Be(e, t = "auto") {
|
|
|
2264
2264
|
return new Date(e);
|
|
2265
2265
|
} else return t === "UTC" ? n ? new Date(e) : r ? new Date(e) : /* @__PURE__ */ new Date(e + "Z") : n || r || a ? new Date(e) : J(e, t);
|
|
2266
2266
|
}
|
|
2267
|
-
const
|
|
2267
|
+
const gi = "MM/dd/yyyy", yi = (e, t, n, r = "auto") => {
|
|
2268
2268
|
if (!e)
|
|
2269
2269
|
return "";
|
|
2270
2270
|
try {
|
|
2271
2271
|
const a = Be(e, r);
|
|
2272
2272
|
if (isNaN(a.getTime()))
|
|
2273
2273
|
return e;
|
|
2274
|
-
const o = (t && t.trim() ? t :
|
|
2274
|
+
const o = (t && t.trim() ? t : gi).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
|
|
2275
2275
|
return n && n !== "auto" ? un(a, n, o) : Ke(a, o);
|
|
2276
2276
|
} catch (a) {
|
|
2277
2277
|
return console.error("Date formatting error:", a), e;
|
|
2278
2278
|
}
|
|
2279
2279
|
};
|
|
2280
|
-
function
|
|
2280
|
+
function Ns(e, t, n = "auto") {
|
|
2281
2281
|
if (e)
|
|
2282
2282
|
try {
|
|
2283
2283
|
const r = Be(e, n);
|
|
@@ -2288,25 +2288,25 @@ function Ps(e, t, n = "auto") {
|
|
|
2288
2288
|
return;
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
|
-
const
|
|
2291
|
+
const pi = (e, t = "auto") => {
|
|
2292
2292
|
if (!e)
|
|
2293
2293
|
return "";
|
|
2294
2294
|
try {
|
|
2295
2295
|
const n = Be(e, t);
|
|
2296
|
-
return isNaN(n.getTime()) ? e :
|
|
2296
|
+
return isNaN(n.getTime()) ? e : Ma(n, { addSuffix: !0 });
|
|
2297
2297
|
} catch (n) {
|
|
2298
2298
|
return console.error("Relative time formatting error:", n), e;
|
|
2299
2299
|
}
|
|
2300
2300
|
};
|
|
2301
|
-
function
|
|
2301
|
+
function wi(e, t, n, r) {
|
|
2302
2302
|
const a = e instanceof Date ? e.toISOString() : String(e), i = (r == null ? void 0 : r.browserTimezone) || n, o = (r == null ? void 0 : r.isSqlCard) ?? !1;
|
|
2303
2303
|
if (t != null && t.useRelativeTime)
|
|
2304
|
-
return
|
|
2304
|
+
return pi(
|
|
2305
2305
|
a,
|
|
2306
2306
|
(t == null ? void 0 : t.sourceTimezone) || "auto"
|
|
2307
2307
|
);
|
|
2308
2308
|
const s = t != null && t.useCustomFormat && (t != null && t.customFormat) ? t.customFormat : (t == null ? void 0 : t.format) || "MM/dd/yyyy";
|
|
2309
|
-
return
|
|
2309
|
+
return yi(
|
|
2310
2310
|
a,
|
|
2311
2311
|
s,
|
|
2312
2312
|
t != null && t.timezone && (t == null ? void 0 : t.timezone) !== "auto" ? t.timezone : o ? i : n,
|
|
@@ -2317,18 +2317,18 @@ function ln(e, t, n) {
|
|
|
2317
2317
|
var o, s;
|
|
2318
2318
|
if (e == null)
|
|
2319
2319
|
return e === null ? ((o = n.absence) == null ? void 0 : o.nullText) ?? "" : ((s = n.absence) == null ? void 0 : s.emptyText) ?? "";
|
|
2320
|
-
const r =
|
|
2320
|
+
const r = Yn(e) ? e : void 0, a = r ? r.value : e, i = r ?? (typeof e == "number" ? e : void 0);
|
|
2321
2321
|
if (!n.useFormattedValues || !t)
|
|
2322
2322
|
return String(a);
|
|
2323
2323
|
switch (t.type) {
|
|
2324
2324
|
case "number":
|
|
2325
|
-
return i !== void 0 ?
|
|
2325
|
+
return i !== void 0 ? lr(
|
|
2326
2326
|
i,
|
|
2327
2327
|
t.numberFormat,
|
|
2328
2328
|
n.locale
|
|
2329
2329
|
) : String(a);
|
|
2330
2330
|
case "date":
|
|
2331
|
-
return
|
|
2331
|
+
return wi(
|
|
2332
2332
|
a,
|
|
2333
2333
|
t.dateFormat,
|
|
2334
2334
|
n.timezone,
|
|
@@ -2347,7 +2347,7 @@ function ln(e, t, n) {
|
|
|
2347
2347
|
return String(a);
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function $s(e, t) {
|
|
2351
2351
|
return t.visibleColumns.map((n) => {
|
|
2352
2352
|
const r = e[n], a = t.columnSettings[n];
|
|
2353
2353
|
return ln(r, a, {
|
|
@@ -2357,18 +2357,18 @@ function Ys(e, t) {
|
|
|
2357
2357
|
});
|
|
2358
2358
|
});
|
|
2359
2359
|
}
|
|
2360
|
-
const
|
|
2360
|
+
const Ti = 5 * 1024 * 1024, Os = 64 * 1024 * 1024, we = w.number().int().positive().max(Number.MAX_SAFE_INTEGER), ce = w.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), Te = ce.refine((e) => e > 0), Di = (e) => !!e && e !== "." && e !== ".." && !e.includes("/") && !e.includes("\\");
|
|
2361
2361
|
function P(e, t) {
|
|
2362
2362
|
const n = t.split("/");
|
|
2363
|
-
if (n.length !== 5 || n[0] !== "exports" || n[1] !== e || n[2] !== "attempts" || !n.every(
|
|
2363
|
+
if (n.length !== 5 || n[0] !== "exports" || n[1] !== e || n[2] !== "attempts" || !n.every(Di))
|
|
2364
2364
|
throw new Error("Invalid Matrix export artifact namespace.");
|
|
2365
2365
|
return { attemptId: n[3], filename: n[4] };
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function Fs(e, t, n) {
|
|
2368
2368
|
const r = `exports/${e}/attempts/${t}/${n}`;
|
|
2369
2369
|
return P(e, r), r;
|
|
2370
2370
|
}
|
|
2371
|
-
const
|
|
2371
|
+
const Is = w.object({
|
|
2372
2372
|
acquisition: w.literal("continuation"),
|
|
2373
2373
|
jobId: w.string().min(1),
|
|
2374
2374
|
sequence: Te,
|
|
@@ -2376,24 +2376,24 @@ const Us = w.object({
|
|
|
2376
2376
|
}), xi = [
|
|
2377
2377
|
"application/json",
|
|
2378
2378
|
...Rt.map((e) => Lt(e).partContentType)
|
|
2379
|
-
],
|
|
2379
|
+
], bi = w.object({
|
|
2380
2380
|
key: w.string(),
|
|
2381
2381
|
content: w.string(),
|
|
2382
2382
|
contentType: w.enum(xi),
|
|
2383
2383
|
encoding: w.literal("gzip-base64").optional()
|
|
2384
2384
|
// Transport-only compression: JSON (layout, sheet layout) and Excel rows. CSV travels as it always has.
|
|
2385
|
-
}).refine((e) => !e.encoding || e.contentType === "application/json" || e.contentType === Lt("xlsx").partContentType, "Unsupported Matrix artifact encoding."),
|
|
2386
|
-
w.object({ kind: w.literal("work"), sequence: Te, checkpointKey: w.string(), objects: w.array(
|
|
2385
|
+
}).refine((e) => !e.encoding || e.contentType === "application/json" || e.contentType === Lt("xlsx").partContentType, "Unsupported Matrix artifact encoding."), vi = w.discriminatedUnion("kind", [
|
|
2386
|
+
w.object({ kind: w.literal("work"), sequence: Te, checkpointKey: w.string(), objects: w.array(bi).min(2).max(4), deadlineAt: we }),
|
|
2387
2387
|
w.object({ kind: w.literal("committed"), sequence: Te, done: w.boolean(), deadlineAt: we })
|
|
2388
2388
|
]);
|
|
2389
|
-
function
|
|
2389
|
+
function Si(e) {
|
|
2390
2390
|
const t = JSON.stringify(e);
|
|
2391
|
-
if (t === void 0 || new TextEncoder().encode(t).byteLength >
|
|
2391
|
+
if (t === void 0 || new TextEncoder().encode(t).byteLength > Ti)
|
|
2392
2392
|
throw new RangeError("Matrix export batch exceeds its transport byte limit.");
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2395
|
-
const n =
|
|
2396
|
-
if (
|
|
2394
|
+
function Es(e, t) {
|
|
2395
|
+
const n = vi.parse(e);
|
|
2396
|
+
if (Si(e), n.deadlineAt !== t.deadlineAt) throw new Error("Matrix deadline does not match the job.");
|
|
2397
2397
|
if (n.sequence !== t.sequence + (n.kind === "committed" ? 1 : 0))
|
|
2398
2398
|
throw new Error("Invalid Matrix batch sequence.");
|
|
2399
2399
|
if (n.kind === "work") {
|
|
@@ -2403,7 +2403,7 @@ function Rs(e, t) {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
return n;
|
|
2405
2405
|
}
|
|
2406
|
-
const
|
|
2406
|
+
const Mi = w.object({
|
|
2407
2407
|
acquisition: w.literal("continuation"),
|
|
2408
2408
|
deadlineAt: we,
|
|
2409
2409
|
chunks: w.array(w.object({ chunkNumber: Te, dataKey: w.string() })).min(1),
|
|
@@ -2416,15 +2416,15 @@ const ki = w.object({
|
|
|
2416
2416
|
/** Excel only: the sheet layout the layout batch stored, which compaction wraps the rows in. */
|
|
2417
2417
|
sheetKey: w.string().min(1).optional()
|
|
2418
2418
|
}).refine((e) => e.fileKey === void 0 == (e.fileSize === void 0), "Incomplete published Matrix artifact.").refine((e) => e.format === "xlsx" == (e.sheetKey !== void 0), "An Excel Matrix manifest names its sheet layout, and only it does.");
|
|
2419
|
-
function
|
|
2420
|
-
const r =
|
|
2419
|
+
function Cs(e, t, n) {
|
|
2420
|
+
const r = Mi.parse(e);
|
|
2421
2421
|
if (r.deadlineAt !== n) throw new Error("Matrix deadline does not match the job.");
|
|
2422
2422
|
return r.chunks.forEach((a, i) => {
|
|
2423
2423
|
if (a.chunkNumber !== i + 1) throw new Error("Invalid committed Matrix chunk order.");
|
|
2424
2424
|
P(t, a.dataKey);
|
|
2425
2425
|
}), r.fileKey !== void 0 && P(t, r.fileKey), r.sheetKey !== void 0 && P(t, r.sheetKey), r;
|
|
2426
2426
|
}
|
|
2427
|
-
const
|
|
2427
|
+
const ki = "en-US", Mt = [
|
|
2428
2428
|
"compact",
|
|
2429
2429
|
"maximumFractionDigits",
|
|
2430
2430
|
"minimumFractionDigits",
|
|
@@ -2432,7 +2432,7 @@ const _i = "en-US", Mt = [
|
|
|
2432
2432
|
"type",
|
|
2433
2433
|
"useGrouping"
|
|
2434
2434
|
];
|
|
2435
|
-
function
|
|
2435
|
+
function _i(e) {
|
|
2436
2436
|
if (e.type !== "currency" || Object.prototype.hasOwnProperty.call(e, "currency") || Object.prototype.hasOwnProperty.call(e, "locale"))
|
|
2437
2437
|
return !1;
|
|
2438
2438
|
const t = Object.keys(e).sort();
|
|
@@ -2451,10 +2451,10 @@ function ue(e) {
|
|
|
2451
2451
|
if (!(typeof e != "number" || !Number.isFinite(e)))
|
|
2452
2452
|
return Math.max(0, Math.min(10, Math.trunc(e)));
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function Ni(e) {
|
|
2455
2455
|
return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function $i(e, t, n) {
|
|
2458
2458
|
const r = ue(t.minimumFractionDigits), a = ue(t.maximumFractionDigits);
|
|
2459
2459
|
if (typeof r == "number" || typeof a == "number") {
|
|
2460
2460
|
const s = r ?? 0, c = a ?? Math.max(s, 2);
|
|
@@ -2471,18 +2471,18 @@ function Oi(e, t, n) {
|
|
|
2471
2471
|
};
|
|
2472
2472
|
if (n != null && n.preserveOmittedProperties)
|
|
2473
2473
|
return {};
|
|
2474
|
-
const o =
|
|
2474
|
+
const o = Ni(e);
|
|
2475
2475
|
return {
|
|
2476
2476
|
minimumFractionDigits: o,
|
|
2477
2477
|
maximumFractionDigits: o
|
|
2478
2478
|
};
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function Oi(e, t) {
|
|
2481
2481
|
if (!(typeof t != "string" || e === "percent" && t === "%"))
|
|
2482
2482
|
return t;
|
|
2483
2483
|
}
|
|
2484
2484
|
function _t(e) {
|
|
2485
|
-
const t = kt(e.locale), n = kt(e.currency), r =
|
|
2485
|
+
const t = kt(e.locale), n = kt(e.currency), r = Oi(e.type, e.suffix);
|
|
2486
2486
|
return {
|
|
2487
2487
|
...e,
|
|
2488
2488
|
...t !== e.locale ? { locale: t } : {},
|
|
@@ -2494,7 +2494,7 @@ function O(e, t, n) {
|
|
|
2494
2494
|
const r = { ...t, type: e };
|
|
2495
2495
|
if ((n == null ? void 0 : n.numericInput) === "canonical" && G(r))
|
|
2496
2496
|
return _t(r);
|
|
2497
|
-
const a =
|
|
2497
|
+
const a = $i(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, o = {
|
|
2498
2498
|
type: e,
|
|
2499
2499
|
locale: t.locale,
|
|
2500
2500
|
minimumFractionDigits: a.minimumFractionDigits,
|
|
@@ -2512,7 +2512,7 @@ function O(e, t, n) {
|
|
|
2512
2512
|
function Nt(e) {
|
|
2513
2513
|
return {
|
|
2514
2514
|
type: "date",
|
|
2515
|
-
locale: e.locale ||
|
|
2515
|
+
locale: e.locale || ki,
|
|
2516
2516
|
pattern: e.pattern,
|
|
2517
2517
|
// A stored pattern's token set and a preset carry to every reader (column formats ledger P5-45).
|
|
2518
2518
|
...e.dialect ? { dialect: e.dialect } : {},
|
|
@@ -2575,7 +2575,7 @@ function Fi(e, t) {
|
|
|
2575
2575
|
) : void 0;
|
|
2576
2576
|
}
|
|
2577
2577
|
if ("type" in e && e.type === "temporal_bucket") {
|
|
2578
|
-
const r =
|
|
2578
|
+
const r = jn.safeParse(e);
|
|
2579
2579
|
return r.success ? r.data : void 0;
|
|
2580
2580
|
}
|
|
2581
2581
|
const n = e;
|
|
@@ -2599,7 +2599,7 @@ function Fi(e, t) {
|
|
|
2599
2599
|
n,
|
|
2600
2600
|
t
|
|
2601
2601
|
);
|
|
2602
|
-
return
|
|
2602
|
+
return _i(n) ? { ...r, currency: "USD" } : r;
|
|
2603
2603
|
}
|
|
2604
2604
|
if (n.type === "date")
|
|
2605
2605
|
return Nt(n);
|
|
@@ -2608,8 +2608,8 @@ function Fi(e, t) {
|
|
|
2608
2608
|
if (n.type === "string")
|
|
2609
2609
|
return Ot(n);
|
|
2610
2610
|
}
|
|
2611
|
-
const
|
|
2612
|
-
function
|
|
2611
|
+
const Ii = Object.freeze({ source: "automatic" });
|
|
2612
|
+
function Ei(e, t) {
|
|
2613
2613
|
var r, a;
|
|
2614
2614
|
const n = e.preferences;
|
|
2615
2615
|
switch (t) {
|
|
@@ -2622,7 +2622,7 @@ function Ci(e, t) {
|
|
|
2622
2622
|
return;
|
|
2623
2623
|
}
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Ft(e, t) {
|
|
2626
2626
|
const n = e.config;
|
|
2627
2627
|
if (n)
|
|
2628
2628
|
return [
|
|
@@ -2632,11 +2632,11 @@ function It(e, t) {
|
|
|
2632
2632
|
...n.pivotByColumns ?? []
|
|
2633
2633
|
].find((r) => r.id === t);
|
|
2634
2634
|
}
|
|
2635
|
-
function
|
|
2636
|
-
if (t.kind === "field") return
|
|
2637
|
-
if (t.kind === "pivot") return
|
|
2635
|
+
function Ci(e, t) {
|
|
2636
|
+
if (t.kind === "field") return Ft(e, t.fieldId);
|
|
2637
|
+
if (t.kind === "pivot") return Ft(e, t.metricId);
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function Pi(e, t, n) {
|
|
2640
2640
|
var r, a, i, o, s, c, u, l, f;
|
|
2641
2641
|
switch (t.kind) {
|
|
2642
2642
|
case "field":
|
|
@@ -2652,23 +2652,23 @@ function Yi(e, t, n) {
|
|
|
2652
2652
|
return (f = (l = e.config) == null ? void 0 : l.matrix) == null ? void 0 : f.presentation.levelFormats[t.levelId];
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
|
-
function
|
|
2655
|
+
function Yi(e) {
|
|
2656
2656
|
if (!e) return;
|
|
2657
2657
|
if (e.format && e.formatOrigin !== "override") return e.format;
|
|
2658
2658
|
const t = e.semanticTemporalPresentation;
|
|
2659
2659
|
return t && t.granularity === e.granularity ? t.format : void 0;
|
|
2660
2660
|
}
|
|
2661
2661
|
function Xe(e) {
|
|
2662
|
-
return e.surface ? { format: e.surface, source: "surface" } : e.override ? { format: e.override, source: "override" } : e.model ? { format: e.model, source: "model" } : e.snapshot ? { format: e.snapshot, source: "snapshot" } :
|
|
2662
|
+
return e.surface ? { format: e.surface, source: "surface" } : e.override ? { format: e.override, source: "override" } : e.model ? { format: e.model, source: "model" } : e.snapshot ? { format: e.snapshot, source: "snapshot" } : Ii;
|
|
2663
2663
|
}
|
|
2664
|
-
function
|
|
2664
|
+
function zi(e) {
|
|
2665
2665
|
var o;
|
|
2666
|
-
const { card: t, column: n, surface: r } = e, a =
|
|
2666
|
+
const { card: t, column: n, surface: r } = e, a = Ci(t, n), i = n.kind === "field" ? n.fieldId : n.kind === "pivot" ? n.metricId : void 0;
|
|
2667
2667
|
return Xe({
|
|
2668
|
-
surface: r ?
|
|
2669
|
-
override:
|
|
2668
|
+
surface: r ? Ei(t, r) : void 0,
|
|
2669
|
+
override: Pi(t, n, a),
|
|
2670
2670
|
model: (i !== void 0 ? (o = e.modelFormats) == null ? void 0 : o[i] : void 0) ?? e.catalogFormat,
|
|
2671
|
-
snapshot:
|
|
2671
|
+
snapshot: Yi(a)
|
|
2672
2672
|
});
|
|
2673
2673
|
}
|
|
2674
2674
|
function Ui(e, t) {
|
|
@@ -2677,24 +2677,24 @@ function Ui(e, t) {
|
|
|
2677
2677
|
) : r;
|
|
2678
2678
|
return JSON.stringify(n(e)) === JSON.stringify(n(t));
|
|
2679
2679
|
}
|
|
2680
|
-
const
|
|
2681
|
-
function
|
|
2680
|
+
const Ai = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns"], It = /* @__PURE__ */ new WeakMap();
|
|
2681
|
+
function Ps(e, t) {
|
|
2682
2682
|
const n = t == null ? void 0 : t.modelFormats;
|
|
2683
2683
|
if (!e || !n || Object.keys(n).length === 0) return e;
|
|
2684
|
-
let r =
|
|
2685
|
-
if (r ||
|
|
2686
|
-
const a =
|
|
2684
|
+
let r = It.get(e);
|
|
2685
|
+
if (r || It.set(e, r = /* @__PURE__ */ new WeakMap()), r.has(n)) return r.get(n);
|
|
2686
|
+
const a = Ri(e, n);
|
|
2687
2687
|
return r.set(n, a), a;
|
|
2688
2688
|
}
|
|
2689
|
-
function
|
|
2689
|
+
function Ri(e, t) {
|
|
2690
2690
|
const n = { config: e };
|
|
2691
2691
|
let r;
|
|
2692
|
-
for (const a of
|
|
2692
|
+
for (const a of Ai) {
|
|
2693
2693
|
const i = e[a];
|
|
2694
2694
|
if (!(i != null && i.length)) continue;
|
|
2695
2695
|
let o = !1;
|
|
2696
2696
|
const s = i.map((c) => {
|
|
2697
|
-
const u =
|
|
2697
|
+
const u = zi({ card: n, column: { kind: "field", fieldId: c.id }, modelFormats: t });
|
|
2698
2698
|
return u.source !== "model" || Ui(u.format, c.format) ? c : (o = !0, { ...c, format: u.format });
|
|
2699
2699
|
});
|
|
2700
2700
|
o && ((r ?? (r = { ...e }))[a] = s);
|
|
@@ -2712,7 +2712,7 @@ function T(e) {
|
|
|
2712
2712
|
) ? t.constructor : void 0;
|
|
2713
2713
|
return typeof n == "function" && Function.prototype.toString.call(n) === Function.prototype.toString.call(Object);
|
|
2714
2714
|
}
|
|
2715
|
-
const
|
|
2715
|
+
const Li = [
|
|
2716
2716
|
"type",
|
|
2717
2717
|
"locale",
|
|
2718
2718
|
"minimumFractionDigits",
|
|
@@ -2727,13 +2727,13 @@ const Wi = [
|
|
|
2727
2727
|
"percentValueMode",
|
|
2728
2728
|
"signDisplay"
|
|
2729
2729
|
];
|
|
2730
|
-
function
|
|
2730
|
+
function Wi(e) {
|
|
2731
2731
|
if (!T(e))
|
|
2732
2732
|
return {
|
|
2733
2733
|
ok: !1,
|
|
2734
2734
|
issues: [{ path: "$", message: "Numeric format must be an object." }]
|
|
2735
2735
|
};
|
|
2736
|
-
const t = [], n = new Set(
|
|
2736
|
+
const t = [], n = new Set(Li);
|
|
2737
2737
|
Object.keys(e).filter((i) => !n.has(i)).forEach(
|
|
2738
2738
|
(i) => t.push({ path: i, message: `Unknown property "${i}".` })
|
|
2739
2739
|
), e.type !== "number" && e.type !== "currency" && e.type !== "percent" && e.type !== "scientific" && t.push({
|
|
@@ -2742,7 +2742,7 @@ function ji(e) {
|
|
|
2742
2742
|
});
|
|
2743
2743
|
const r = e.locale === void 0 ? void 0 : X(e.locale);
|
|
2744
2744
|
e.locale !== void 0 && !r && t.push({ path: "locale", message: "Expected a supported BCP 47 locale." });
|
|
2745
|
-
const a = e.currency === void 0 ? void 0 :
|
|
2745
|
+
const a = e.currency === void 0 ? void 0 : Ue(e.currency);
|
|
2746
2746
|
e.currency !== void 0 && !a && t.push({
|
|
2747
2747
|
path: "currency",
|
|
2748
2748
|
message: "Expected a supported ISO 4217 currency code."
|
|
@@ -2796,8 +2796,8 @@ function ji(e) {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
};
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2800
|
-
const t =
|
|
2799
|
+
function ji(e) {
|
|
2800
|
+
const t = Wi(e);
|
|
2801
2801
|
if (!t.ok)
|
|
2802
2802
|
return t;
|
|
2803
2803
|
const n = [];
|
|
@@ -2815,7 +2815,7 @@ function Hi(e) {
|
|
|
2815
2815
|
message: "Resolved currency formats require an explicit currency."
|
|
2816
2816
|
}), n.length > 0 ? { ok: !1, issues: n } : t;
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2818
|
+
function Ys(e) {
|
|
2819
2819
|
var r;
|
|
2820
2820
|
const t = /* @__PURE__ */ new Set();
|
|
2821
2821
|
if (e.snapshot.resolvedFormats.forEach((a, i) => {
|
|
@@ -2852,7 +2852,7 @@ function js(e) {
|
|
|
2852
2852
|
`resolvedFormats is missing visible export column "${n}"`
|
|
2853
2853
|
);
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function Hi(e, t) {
|
|
2856
2856
|
const n = new Intl.NumberFormat(e, {
|
|
2857
2857
|
style: "currency",
|
|
2858
2858
|
currency: t
|
|
@@ -2862,7 +2862,7 @@ function qi(e, t) {
|
|
|
2862
2862
|
maximumFractionDigits: n.maximumFractionDigits
|
|
2863
2863
|
};
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function qi(e) {
|
|
2866
2866
|
if (e.minimumFractionDigits !== void 0 || e.maximumFractionDigits !== void 0) {
|
|
2867
2867
|
const n = e.minimumFractionDigits ?? 0;
|
|
2868
2868
|
return {
|
|
@@ -2876,15 +2876,15 @@ function Zi(e) {
|
|
|
2876
2876
|
maximumFractionDigits: t
|
|
2877
2877
|
};
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
2880
|
-
const r = X(e.locale) ?? t.locale, a = e.type === "number" || e.type === "currency" ?
|
|
2879
|
+
function Zi(e, t, n) {
|
|
2880
|
+
const r = X(e.locale) ?? t.locale, a = e.type === "number" || e.type === "currency" ? Ue(n) : void 0;
|
|
2881
2881
|
if (!(e.type === "currency" || a !== void 0))
|
|
2882
2882
|
return {
|
|
2883
2883
|
...e,
|
|
2884
2884
|
locale: r,
|
|
2885
|
-
...
|
|
2885
|
+
...qi(e)
|
|
2886
2886
|
};
|
|
2887
|
-
const o = a ??
|
|
2887
|
+
const o = a ?? Ue(e.currency) ?? t.defaultCurrency, s = Hi(
|
|
2888
2888
|
r,
|
|
2889
2889
|
o
|
|
2890
2890
|
), c = s.minimumFractionDigits ?? 0, u = s.maximumFractionDigits ?? c, l = e.minimumFractionDigits ?? Math.min(
|
|
@@ -2903,7 +2903,7 @@ function Ki(e, t, n) {
|
|
|
2903
2903
|
maximumFractionDigits: f
|
|
2904
2904
|
};
|
|
2905
2905
|
}
|
|
2906
|
-
const
|
|
2906
|
+
const Ki = [
|
|
2907
2907
|
"YYYY",
|
|
2908
2908
|
"MMMM",
|
|
2909
2909
|
"MMM",
|
|
@@ -2913,7 +2913,7 @@ const Vi = [
|
|
|
2913
2913
|
"HH",
|
|
2914
2914
|
"mm",
|
|
2915
2915
|
"ss"
|
|
2916
|
-
],
|
|
2916
|
+
], Vi = /* @__PURE__ */ new Set([" ", "-", "/", ":", ".", ",", "T"]), ie = [
|
|
2917
2917
|
"day",
|
|
2918
2918
|
"week",
|
|
2919
2919
|
"month",
|
|
@@ -2931,11 +2931,11 @@ const Vi = [
|
|
|
2931
2931
|
numeric: ie,
|
|
2932
2932
|
iso: ie
|
|
2933
2933
|
};
|
|
2934
|
-
function
|
|
2934
|
+
function Bi(e) {
|
|
2935
2935
|
return typeof e == "string" && Object.prototype.hasOwnProperty.call(mn, e);
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
2937
|
+
function Xi(e, t) {
|
|
2938
|
+
return Ki.find(
|
|
2939
2939
|
(n) => e.startsWith(n, t)
|
|
2940
2940
|
);
|
|
2941
2941
|
}
|
|
@@ -2950,7 +2950,7 @@ function ee(e) {
|
|
|
2950
2950
|
const t = [];
|
|
2951
2951
|
let n = 0, r = !1;
|
|
2952
2952
|
for (; n < e.length; ) {
|
|
2953
|
-
const i =
|
|
2953
|
+
const i = Xi(e, n);
|
|
2954
2954
|
if (i) {
|
|
2955
2955
|
if (r)
|
|
2956
2956
|
return {
|
|
@@ -2962,7 +2962,7 @@ function ee(e) {
|
|
|
2962
2962
|
continue;
|
|
2963
2963
|
}
|
|
2964
2964
|
const o = e[n];
|
|
2965
|
-
if (!
|
|
2965
|
+
if (!Vi.has(o))
|
|
2966
2966
|
return {
|
|
2967
2967
|
ok: !1,
|
|
2968
2968
|
code: "invalid_temporal_bucket_pattern",
|
|
@@ -2983,7 +2983,7 @@ function ee(e) {
|
|
|
2983
2983
|
message: "Temporal bucket patterns cannot end with a separator."
|
|
2984
2984
|
} : { ok: !0, segments: t };
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2986
|
+
function Gi(e) {
|
|
2987
2987
|
return e.flatMap(
|
|
2988
2988
|
(t) => t.kind === "token" ? [t.value] : []
|
|
2989
2989
|
);
|
|
@@ -2994,11 +2994,11 @@ function Et(e, t) {
|
|
|
2994
2994
|
function oe(e, t) {
|
|
2995
2995
|
return e.some((n) => t.includes(n));
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function Qi(e) {
|
|
2998
2998
|
return new Set(e).size !== e.length;
|
|
2999
2999
|
}
|
|
3000
|
-
function
|
|
3001
|
-
if (
|
|
3000
|
+
function Ji(e, t) {
|
|
3001
|
+
if (Qi(e)) return !1;
|
|
3002
3002
|
const n = ["YYYY", "YY"], r = ["MMMM", "MMM", "MM"], a = ["HH", "mm", "ss"], i = Et(e, n), o = Et(e, r), s = e.includes("DD"), c = oe(e, a);
|
|
3003
3003
|
switch (t) {
|
|
3004
3004
|
case "second":
|
|
@@ -3030,8 +3030,8 @@ function fn(e, t) {
|
|
|
3030
3030
|
};
|
|
3031
3031
|
}
|
|
3032
3032
|
const n = ee(e.presentation.pattern);
|
|
3033
|
-
return n.ok ?
|
|
3034
|
-
|
|
3033
|
+
return n.ok ? Ji(
|
|
3034
|
+
Gi(n.segments),
|
|
3035
3035
|
t
|
|
3036
3036
|
) ? { ok: !0, segments: n.segments } : {
|
|
3037
3037
|
ok: !1,
|
|
@@ -3039,21 +3039,21 @@ function fn(e, t) {
|
|
|
3039
3039
|
message: `Pattern ${e.presentation.pattern} is not compatible with ${t} granularity.`
|
|
3040
3040
|
} : n;
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function zs(e, t) {
|
|
3043
3043
|
if (!(!e || !t))
|
|
3044
3044
|
return fn(e, t).ok ? e : void 0;
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3046
|
+
function eo(e) {
|
|
3047
3047
|
return e.preset ? { mode: "preset", preset: e.preset } : e.pattern ? { mode: "pattern", dialect: e.dialect ?? "semaphor_tokens", pattern: e.pattern } : { mode: "auto" };
|
|
3048
3048
|
}
|
|
3049
|
-
class
|
|
3049
|
+
class A extends Error {
|
|
3050
3050
|
constructor(n, r) {
|
|
3051
3051
|
super(r);
|
|
3052
3052
|
$(this, "code");
|
|
3053
3053
|
this.name = "RawTemporalFormatContractError", this.code = n;
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
const
|
|
3056
|
+
const to = [
|
|
3057
3057
|
"SSSSSSSSS",
|
|
3058
3058
|
"SSSSSSSS",
|
|
3059
3059
|
"SSSSSSS",
|
|
@@ -3063,7 +3063,7 @@ const no = [
|
|
|
3063
3063
|
"SSS",
|
|
3064
3064
|
"SS",
|
|
3065
3065
|
"S"
|
|
3066
|
-
],
|
|
3066
|
+
], no = [
|
|
3067
3067
|
"yyyy",
|
|
3068
3068
|
"MMMM",
|
|
3069
3069
|
"LLLL",
|
|
@@ -3085,7 +3085,7 @@ const no = [
|
|
|
3085
3085
|
"m",
|
|
3086
3086
|
"s",
|
|
3087
3087
|
"a"
|
|
3088
|
-
],
|
|
3088
|
+
], ro = /* @__PURE__ */ new Set([
|
|
3089
3089
|
"HH",
|
|
3090
3090
|
"H",
|
|
3091
3091
|
"hh",
|
|
@@ -3095,18 +3095,18 @@ const no = [
|
|
|
3095
3095
|
"ss",
|
|
3096
3096
|
"s",
|
|
3097
3097
|
"a",
|
|
3098
|
-
...
|
|
3099
|
-
]),
|
|
3098
|
+
...to
|
|
3099
|
+
]), ao = /* @__PURE__ */ new Set(["zzz", "XXX"]), Ce = /* @__PURE__ */ new Set(["short", "medium", "long"]);
|
|
3100
3100
|
function M(e, t) {
|
|
3101
3101
|
return Object.keys(e).length === t.length && t.every((r) => r in e);
|
|
3102
3102
|
}
|
|
3103
3103
|
function g(e) {
|
|
3104
|
-
throw new
|
|
3104
|
+
throw new A(
|
|
3105
3105
|
"invalid_raw_temporal_format",
|
|
3106
3106
|
e
|
|
3107
3107
|
);
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3109
|
+
function dn(e) {
|
|
3110
3110
|
if (!e || e.trim() !== e || e.length > 256)
|
|
3111
3111
|
return g(
|
|
3112
3112
|
"date_fns patterns must be non-empty, trimmed, and at most 256 characters."
|
|
@@ -3153,7 +3153,7 @@ function yn(e) {
|
|
|
3153
3153
|
}), r = o;
|
|
3154
3154
|
continue;
|
|
3155
3155
|
}
|
|
3156
|
-
const a =
|
|
3156
|
+
const a = no.find(
|
|
3157
3157
|
(o) => e.startsWith(o, r)
|
|
3158
3158
|
);
|
|
3159
3159
|
if (a) {
|
|
@@ -3169,15 +3169,15 @@ function yn(e) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
return t.some((a) => a.kind === "token") ? t : g("date_fns patterns must contain at least one token.");
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function hn(e, t) {
|
|
3173
3173
|
if (e === "semaphor_tokens") {
|
|
3174
3174
|
const n = ee(t);
|
|
3175
3175
|
n.ok || g(n.message);
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
|
-
|
|
3178
|
+
dn(t);
|
|
3179
3179
|
}
|
|
3180
|
-
function
|
|
3180
|
+
function io(e) {
|
|
3181
3181
|
return !T(e) || !M(e, ["dateStyle", "dateTime"]) ? g("Automatic raw temporal styles are incomplete.") : Ce.has(e.dateStyle) ? !T(e.dateTime) || !M(e.dateTime, ["dateStyle", "timeStyle"]) || !Ce.has(e.dateTime.dateStyle) || !Ce.has(e.dateTime.timeStyle) ? g(
|
|
3182
3182
|
"Automatic dateTime styles are incomplete or invalid."
|
|
3183
3183
|
) : {
|
|
@@ -3204,11 +3204,11 @@ function Ge(e) {
|
|
|
3204
3204
|
...e.sourceTimezone ? { sourceTimezone: e.sourceTimezone } : {},
|
|
3205
3205
|
presentation: {
|
|
3206
3206
|
mode: "auto",
|
|
3207
|
-
styles:
|
|
3207
|
+
styles: io(e.presentation.styles)
|
|
3208
3208
|
}
|
|
3209
3209
|
} : g(
|
|
3210
3210
|
"Automatic raw temporal presentation has unknown fields."
|
|
3211
|
-
) : e.presentation.mode === "preset" ? !M(e.presentation, ["mode", "preset"]) || !
|
|
3211
|
+
) : e.presentation.mode === "preset" ? !M(e.presentation, ["mode", "preset"]) || !Tn(e.presentation.preset) ? g("Preset raw temporal presentation has an invalid shape.") : {
|
|
3212
3212
|
type: "raw_temporal",
|
|
3213
3213
|
locale: r,
|
|
3214
3214
|
calendarTimezone: e.calendarTimezone,
|
|
@@ -3216,7 +3216,7 @@ function Ge(e) {
|
|
|
3216
3216
|
presentation: { mode: "preset", preset: e.presentation.preset }
|
|
3217
3217
|
} : e.presentation.mode !== "pattern" || !M(e.presentation, ["mode", "dialect", "pattern"]) || e.presentation.dialect !== "semaphor_tokens" && e.presentation.dialect !== "date_fns" || typeof e.presentation.pattern != "string" ? g(
|
|
3218
3218
|
"Pattern raw temporal presentation has an invalid shape."
|
|
3219
|
-
) : (
|
|
3219
|
+
) : (hn(e.presentation.dialect, e.presentation.pattern), {
|
|
3220
3220
|
type: "raw_temporal",
|
|
3221
3221
|
locale: r,
|
|
3222
3222
|
calendarTimezone: e.calendarTimezone,
|
|
@@ -3228,7 +3228,7 @@ function Ge(e) {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
}) : g("Raw temporal presentation must be an object.") : g("Raw temporal locale is invalid or unsupported.");
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function gn(e) {
|
|
3232
3232
|
var s, c, u;
|
|
3233
3233
|
if (e.format) {
|
|
3234
3234
|
if (!T(e.format))
|
|
@@ -3249,14 +3249,14 @@ function wn(e) {
|
|
|
3249
3249
|
"Automatic authored raw temporal format has unknown fields."
|
|
3250
3250
|
);
|
|
3251
3251
|
} else if (f.mode === "preset") {
|
|
3252
|
-
if (!M(f, ["mode", "preset"]) || !
|
|
3252
|
+
if (!M(f, ["mode", "preset"]) || !Tn(f.preset))
|
|
3253
3253
|
return g("Authored raw temporal preset has an invalid shape.");
|
|
3254
3254
|
} else {
|
|
3255
3255
|
if (f.mode !== "pattern" || !M(f, ["mode", "dialect", "pattern"]) || f.dialect !== "semaphor_tokens" && f.dialect !== "date_fns" || typeof f.pattern != "string")
|
|
3256
3256
|
return g(
|
|
3257
3257
|
"Authored raw temporal pattern has an invalid shape."
|
|
3258
3258
|
);
|
|
3259
|
-
|
|
3259
|
+
hn(f.dialect, f.pattern);
|
|
3260
3260
|
}
|
|
3261
3261
|
}
|
|
3262
3262
|
const t = (s = e.format) == null ? void 0 : s.timezone, n = (c = e.format) == null ? void 0 : c.sourceTimezone, r = t && t !== "auto" ? t : e.calendar.tz, a = n && n !== "auto" ? n === "local" ? Intl.DateTimeFormat().resolvedOptions().timeZone : n : void 0;
|
|
@@ -3277,24 +3277,19 @@ function wn(e) {
|
|
|
3277
3277
|
};
|
|
3278
3278
|
return Ge(o);
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3281
|
-
if (dn.test(e)) return "date";
|
|
3282
|
-
if (gn.test(e)) return "instant";
|
|
3283
|
-
if (hn.test(e)) return "wall_datetime";
|
|
3284
|
-
}
|
|
3285
|
-
function qs(e) {
|
|
3280
|
+
function Us(e) {
|
|
3286
3281
|
const t = /* @__PURE__ */ new Set();
|
|
3287
3282
|
let n = !1;
|
|
3288
3283
|
for (const r of e.values) {
|
|
3289
3284
|
if (r === null) continue;
|
|
3290
3285
|
n = !0;
|
|
3291
|
-
const a =
|
|
3286
|
+
const a = Vn(r);
|
|
3292
3287
|
a && t.add(a);
|
|
3293
3288
|
}
|
|
3294
3289
|
if (!n) return { status: "empty" };
|
|
3295
3290
|
if (t.size === 0) return { status: "invalid_only" };
|
|
3296
3291
|
if (t.size > 1)
|
|
3297
|
-
throw new
|
|
3292
|
+
throw new A(
|
|
3298
3293
|
"mixed_sql_temporal_semantics",
|
|
3299
3294
|
`Declared SQL temporal column "${e.columnKey}" mixes date, wall-datetime, or instant semantics. Normalize it to one kind.`
|
|
3300
3295
|
);
|
|
@@ -3306,7 +3301,7 @@ function qs(e) {
|
|
|
3306
3301
|
}
|
|
3307
3302
|
};
|
|
3308
3303
|
}
|
|
3309
|
-
function
|
|
3304
|
+
function As(e) {
|
|
3310
3305
|
return {
|
|
3311
3306
|
version: 1,
|
|
3312
3307
|
columns: Object.fromEntries(
|
|
@@ -3317,9 +3312,9 @@ function Zs(e) {
|
|
|
3317
3312
|
)
|
|
3318
3313
|
};
|
|
3319
3314
|
}
|
|
3320
|
-
function
|
|
3315
|
+
function oo(e) {
|
|
3321
3316
|
if (!T(e) || e.version !== 1 || !T(e.columns) || Object.keys(e).some((r) => r !== "version" && r !== "columns"))
|
|
3322
|
-
throw new
|
|
3317
|
+
throw new A(
|
|
3323
3318
|
"invalid_raw_temporal_format",
|
|
3324
3319
|
"Raw temporal chunk classification evidence is malformed."
|
|
3325
3320
|
);
|
|
@@ -3332,7 +3327,7 @@ function co(e) {
|
|
|
3332
3327
|
]);
|
|
3333
3328
|
for (const [r, a] of Object.entries(e.columns)) {
|
|
3334
3329
|
if (!r.trim() || !n.has(a))
|
|
3335
|
-
throw new
|
|
3330
|
+
throw new A(
|
|
3336
3331
|
"invalid_raw_temporal_format",
|
|
3337
3332
|
"Raw temporal chunk classification evidence contains an invalid column or status."
|
|
3338
3333
|
);
|
|
@@ -3340,13 +3335,13 @@ function co(e) {
|
|
|
3340
3335
|
}
|
|
3341
3336
|
return { version: 1, columns: t };
|
|
3342
3337
|
}
|
|
3343
|
-
function
|
|
3338
|
+
function Rs(e) {
|
|
3344
3339
|
if (e.length === 0) return;
|
|
3345
|
-
const t = e.map(
|
|
3340
|
+
const t = e.map(oo), n = Object.keys(t[0].columns).sort();
|
|
3346
3341
|
for (let r = 1; r < t.length; r += 1) {
|
|
3347
3342
|
const a = Object.keys(t[r].columns).sort();
|
|
3348
3343
|
if (a.length !== n.length || a.some((i, o) => i !== n[o]))
|
|
3349
|
-
throw new
|
|
3344
|
+
throw new A(
|
|
3350
3345
|
"invalid_raw_temporal_format",
|
|
3351
3346
|
"Raw temporal chunk classification evidence has inconsistent columns."
|
|
3352
3347
|
);
|
|
@@ -3357,47 +3352,11 @@ function Ks(e) {
|
|
|
3357
3352
|
(i) => i !== "empty" && i !== "invalid_only"
|
|
3358
3353
|
)
|
|
3359
3354
|
).size > 1)
|
|
3360
|
-
throw new
|
|
3355
|
+
throw new A(
|
|
3361
3356
|
"mixed_sql_temporal_semantics",
|
|
3362
3357
|
`Declared SQL temporal column "${r}" has inconsistent semantics across export chunks. Normalize it to one kind.`
|
|
3363
3358
|
);
|
|
3364
3359
|
}
|
|
3365
|
-
function uo(e) {
|
|
3366
|
-
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
3367
|
-
}
|
|
3368
|
-
function lo(e, t) {
|
|
3369
|
-
return t === 2 ? uo(e) ? 29 : 28 : [4, 6, 9, 11].includes(t) ? 30 : 31;
|
|
3370
|
-
}
|
|
3371
|
-
function mo(e) {
|
|
3372
|
-
return e.year >= 1 && e.year <= 9999 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= lo(e.year, e.month) && e.hour >= 0 && e.hour <= 23 && e.minute >= 0 && e.minute <= 59 && e.second >= 0 && e.second <= 59;
|
|
3373
|
-
}
|
|
3374
|
-
function fo(e) {
|
|
3375
|
-
return {
|
|
3376
|
-
year: Number(e[1]),
|
|
3377
|
-
month: Number(e[2]),
|
|
3378
|
-
day: Number(e[3]),
|
|
3379
|
-
hour: Number(e[4] ?? 0),
|
|
3380
|
-
minute: Number(e[5] ?? 0),
|
|
3381
|
-
second: Number(e[6] ?? 0),
|
|
3382
|
-
fraction: e[7] ?? ""
|
|
3383
|
-
};
|
|
3384
|
-
}
|
|
3385
|
-
function ho(e, t) {
|
|
3386
|
-
const n = t === "date" ? e.match(dn) : t === "wall_datetime" ? e.match(hn) : e.match(gn);
|
|
3387
|
-
if (!n) return { status: "invalid_shape" };
|
|
3388
|
-
const r = fo(n);
|
|
3389
|
-
if (!mo(r)) return { status: "out_of_range" };
|
|
3390
|
-
if (t === "instant") {
|
|
3391
|
-
const a = n[8];
|
|
3392
|
-
if (a && a !== "Z") {
|
|
3393
|
-
const [o, s] = a.slice(1).split(":").map(Number);
|
|
3394
|
-
if (o > 23 || s > 59) return { status: "out_of_range" };
|
|
3395
|
-
}
|
|
3396
|
-
const i = new Date(e.replace(" ", "T"));
|
|
3397
|
-
return Number.isNaN(i.getTime()) ? { status: "out_of_range" } : { status: "valid", fields: r, instant: i };
|
|
3398
|
-
}
|
|
3399
|
-
return { status: "valid", fields: r };
|
|
3400
|
-
}
|
|
3401
3360
|
function We(e) {
|
|
3402
3361
|
const t = /* @__PURE__ */ new Date(0);
|
|
3403
3362
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, 0), t;
|
|
@@ -3409,7 +3368,7 @@ function Qe(e, t) {
|
|
|
3409
3368
|
t
|
|
3410
3369
|
);
|
|
3411
3370
|
}
|
|
3412
|
-
function
|
|
3371
|
+
function yn(e, t) {
|
|
3413
3372
|
const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
3414
3373
|
let a, i, o, s;
|
|
3415
3374
|
return {
|
|
@@ -3494,7 +3453,7 @@ function Tn(e, t) {
|
|
|
3494
3453
|
}
|
|
3495
3454
|
};
|
|
3496
3455
|
}
|
|
3497
|
-
function
|
|
3456
|
+
function so(e, t, n, r, a) {
|
|
3498
3457
|
if (/^S{1,9}$/.test(e)) {
|
|
3499
3458
|
const i = t.fraction.padEnd(e.length, "0").slice(0, e.length);
|
|
3500
3459
|
return r.number(Number(i), e.length);
|
|
@@ -3555,32 +3514,32 @@ function go(e, t, n, r, a) {
|
|
|
3555
3514
|
);
|
|
3556
3515
|
}
|
|
3557
3516
|
}
|
|
3558
|
-
function
|
|
3517
|
+
function co(e, t, n, r) {
|
|
3559
3518
|
const a = We(t);
|
|
3560
3519
|
return e.map(
|
|
3561
|
-
(i) => i.kind === "literal" ? i.value :
|
|
3520
|
+
(i) => i.kind === "literal" ? i.value : so(i.value, t, a, n, r)
|
|
3562
3521
|
).join("");
|
|
3563
3522
|
}
|
|
3564
|
-
function
|
|
3565
|
-
const r = t === "date_fns" ?
|
|
3523
|
+
function pn(e, t, n) {
|
|
3524
|
+
const r = t === "date_fns" ? dn(n) : (() => {
|
|
3566
3525
|
const i = ee(n);
|
|
3567
3526
|
return i.ok ? i.segments : g(i.message);
|
|
3568
3527
|
})(), a = r.filter((i) => i.kind === "token").map((i) => i.value);
|
|
3569
|
-
return e === "date" && a.some((i) =>
|
|
3528
|
+
return e === "date" && a.some((i) => ro.has(i)) ? g("Date patterns cannot contain time tokens.") : e !== "instant" && a.some((i) => ao.has(i)) ? g("Timezone pattern tokens require an instant value.") : r;
|
|
3570
3529
|
}
|
|
3571
|
-
function
|
|
3572
|
-
|
|
3530
|
+
function uo(e) {
|
|
3531
|
+
pn(
|
|
3573
3532
|
e.valueKind ?? "instant",
|
|
3574
3533
|
e.dialect,
|
|
3575
3534
|
e.pattern
|
|
3576
3535
|
);
|
|
3577
3536
|
}
|
|
3578
|
-
function
|
|
3579
|
-
const a =
|
|
3537
|
+
function lo(e, t, n, r) {
|
|
3538
|
+
const a = pn(
|
|
3580
3539
|
e.valueKind,
|
|
3581
3540
|
n,
|
|
3582
3541
|
r
|
|
3583
|
-
), i =
|
|
3542
|
+
), i = yn(t.locale, t.calendarTimezone);
|
|
3584
3543
|
return (o) => {
|
|
3585
3544
|
const s = e.valueKind === "wall_datetime" && t.sourceTimezone ? Qe(o.fields, t.sourceTimezone) : void 0, c = e.valueKind === "instant" ? {
|
|
3586
3545
|
...i.instantFields(o.instant),
|
|
@@ -3589,11 +3548,11 @@ function wo(e, t, n, r) {
|
|
|
3589
3548
|
...i.instantFields(s),
|
|
3590
3549
|
fraction: o.fields.fraction
|
|
3591
3550
|
} : o.fields;
|
|
3592
|
-
return
|
|
3551
|
+
return co(a, c, i, o.instant ?? s);
|
|
3593
3552
|
};
|
|
3594
3553
|
}
|
|
3595
|
-
function
|
|
3596
|
-
const n =
|
|
3554
|
+
function wn(e, t) {
|
|
3555
|
+
const n = yn(t.locale, t.calendarTimezone);
|
|
3597
3556
|
return (r) => {
|
|
3598
3557
|
const a = e.valueKind === "instant" ? n.instantFields(r.instant) : e.valueKind === "wall_datetime" && t.sourceTimezone ? n.instantFields(Qe(r.fields, t.sourceTimezone)) : r.fields;
|
|
3599
3558
|
return {
|
|
@@ -3606,12 +3565,12 @@ function bn(e, t) {
|
|
|
3606
3565
|
};
|
|
3607
3566
|
};
|
|
3608
3567
|
}
|
|
3609
|
-
const
|
|
3610
|
-
function
|
|
3611
|
-
return typeof e == "string" &&
|
|
3568
|
+
const mo = /* @__PURE__ */ new Set(["short", "long", "numeric", "iso"]);
|
|
3569
|
+
function Tn(e) {
|
|
3570
|
+
return typeof e == "string" && mo.has(e);
|
|
3612
3571
|
}
|
|
3613
|
-
function
|
|
3614
|
-
const r =
|
|
3572
|
+
function fo(e, t, n) {
|
|
3573
|
+
const r = wn(e, t), a = e.valueKind !== "date", i = (s, c = 2) => String(s).padStart(c, "0");
|
|
3615
3574
|
if (n === "iso")
|
|
3616
3575
|
return (s) => {
|
|
3617
3576
|
const c = r(s), u = `${i(c.year, 4)}-${i(c.month)}-${i(c.day)}`;
|
|
@@ -3630,7 +3589,7 @@ function Do(e, t, n) {
|
|
|
3630
3589
|
return u.setUTCFullYear(c.year, c.month - 1, c.day), u.setUTCHours(c.hour, c.minute, c.second, 0), o.format(u);
|
|
3631
3590
|
};
|
|
3632
3591
|
}
|
|
3633
|
-
function
|
|
3592
|
+
function ho(e, t) {
|
|
3634
3593
|
const n = t.presentation.mode === "auto" ? t.presentation.styles : g("Automatic raw temporal formatting requires styles.");
|
|
3635
3594
|
if (e.valueKind === "date") {
|
|
3636
3595
|
const o = new Intl.DateTimeFormat(t.locale, {
|
|
@@ -3658,17 +3617,17 @@ function Ct(e, t, n) {
|
|
|
3658
3617
|
}
|
|
3659
3618
|
};
|
|
3660
3619
|
}
|
|
3661
|
-
function
|
|
3662
|
-
const t =
|
|
3620
|
+
function Dn(e) {
|
|
3621
|
+
const t = Zn(e.metadata), n = Ge(e.format), r = n.presentation.mode === "auto" ? ho(t, n) : n.presentation.mode === "preset" ? fo(t, n, n.presentation.preset) : lo(
|
|
3663
3622
|
t,
|
|
3664
3623
|
n,
|
|
3665
3624
|
n.presentation.dialect,
|
|
3666
3625
|
n.presentation.pattern
|
|
3667
|
-
), a =
|
|
3626
|
+
), a = wn(t, n);
|
|
3668
3627
|
return (i) => {
|
|
3669
3628
|
if (i === null)
|
|
3670
3629
|
return { ok: !0, text: "", status: "empty" };
|
|
3671
|
-
const o =
|
|
3630
|
+
const o = Kn(i, t.valueKind);
|
|
3672
3631
|
return o.status === "invalid_shape" ? Ct(i, t, "invalid_raw_temporal_value") : o.status === "out_of_range" ? Ct(i, t, "out_of_range_raw_temporal_value") : {
|
|
3673
3632
|
ok: !0,
|
|
3674
3633
|
text: r(o),
|
|
@@ -3677,17 +3636,17 @@ function vn(e) {
|
|
|
3677
3636
|
};
|
|
3678
3637
|
};
|
|
3679
3638
|
}
|
|
3680
|
-
function
|
|
3681
|
-
return
|
|
3639
|
+
function go(e) {
|
|
3640
|
+
return Dn({
|
|
3682
3641
|
metadata: e.metadata,
|
|
3683
3642
|
format: e.format
|
|
3684
3643
|
})(e.value);
|
|
3685
3644
|
}
|
|
3686
|
-
function
|
|
3687
|
-
const t =
|
|
3688
|
-
return { format: t, formatValue:
|
|
3645
|
+
function yo(e) {
|
|
3646
|
+
const t = gn({ format: e.authored, preferences: e.preferences, calendar: e.calendar });
|
|
3647
|
+
return { format: t, formatValue: Dn({ metadata: e.metadata, format: t }) };
|
|
3689
3648
|
}
|
|
3690
|
-
const
|
|
3649
|
+
const po = {
|
|
3691
3650
|
dateStyle: "short",
|
|
3692
3651
|
dateTime: { dateStyle: "short", timeStyle: "short" }
|
|
3693
3652
|
};
|
|
@@ -3698,7 +3657,7 @@ class le extends Error {
|
|
|
3698
3657
|
this.name = "TemporalBucketContractError", this.code = n;
|
|
3699
3658
|
}
|
|
3700
3659
|
}
|
|
3701
|
-
const
|
|
3660
|
+
const wo = [
|
|
3702
3661
|
"Jan",
|
|
3703
3662
|
"Feb",
|
|
3704
3663
|
"Mar",
|
|
@@ -3711,7 +3670,7 @@ const Mo = [
|
|
|
3711
3670
|
"Oct",
|
|
3712
3671
|
"Nov",
|
|
3713
3672
|
"Dec"
|
|
3714
|
-
],
|
|
3673
|
+
], To = [
|
|
3715
3674
|
"January",
|
|
3716
3675
|
"February",
|
|
3717
3676
|
"March",
|
|
@@ -3731,25 +3690,25 @@ function Pe(e) {
|
|
|
3731
3690
|
error: { code: "invalid_temporal_bucket_value", message: e }
|
|
3732
3691
|
};
|
|
3733
3692
|
}
|
|
3734
|
-
function
|
|
3693
|
+
function Do(e) {
|
|
3735
3694
|
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
3736
3695
|
}
|
|
3737
|
-
function
|
|
3738
|
-
return t === 2 ?
|
|
3696
|
+
function xo(e, t) {
|
|
3697
|
+
return t === 2 ? Do(e) ? 29 : 28 : [4, 6, 9, 11].includes(t) ? 30 : 31;
|
|
3739
3698
|
}
|
|
3740
|
-
function
|
|
3699
|
+
function bo(e, t, n) {
|
|
3741
3700
|
const r = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4], a = t < 3 ? e - 1 : e;
|
|
3742
3701
|
return (a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + r[t - 1] + n) % 7;
|
|
3743
3702
|
}
|
|
3744
|
-
function
|
|
3703
|
+
function be(e) {
|
|
3745
3704
|
var t;
|
|
3746
3705
|
return (t = e.calendar.fiscalCalendar) == null ? void 0 : t.yearStartMonth;
|
|
3747
3706
|
}
|
|
3748
|
-
function
|
|
3707
|
+
function vo(e, t) {
|
|
3749
3708
|
return (e - t + 12) % 12 % 3 === 0;
|
|
3750
3709
|
}
|
|
3751
|
-
function
|
|
3752
|
-
const { granularity: n } = t, r =
|
|
3710
|
+
function So(e, t) {
|
|
3711
|
+
const { granularity: n } = t, r = be(t) ?? 1;
|
|
3753
3712
|
switch (n) {
|
|
3754
3713
|
case "second":
|
|
3755
3714
|
return !0;
|
|
@@ -3760,16 +3719,16 @@ function Io(e, t) {
|
|
|
3760
3719
|
case "day":
|
|
3761
3720
|
return !0;
|
|
3762
3721
|
case "week":
|
|
3763
|
-
return
|
|
3722
|
+
return bo(e.year, e.month, e.day) === t.calendar.weekStart;
|
|
3764
3723
|
case "month":
|
|
3765
3724
|
return e.day === 1;
|
|
3766
3725
|
case "quarter":
|
|
3767
|
-
return e.day === 1 &&
|
|
3726
|
+
return e.day === 1 && vo(e.month, r);
|
|
3768
3727
|
case "year":
|
|
3769
3728
|
return e.day === 1 && e.month === r;
|
|
3770
3729
|
}
|
|
3771
3730
|
}
|
|
3772
|
-
function
|
|
3731
|
+
function xn(e, t) {
|
|
3773
3732
|
if (e === null) return { ok: !0, value: null };
|
|
3774
3733
|
const n = t.granularity === "second" || t.granularity === "minute" || t.granularity === "hour", r = n ? /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})$/.exec(e) : /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
3775
3734
|
if (!r)
|
|
@@ -3784,17 +3743,17 @@ function Sn(e, t) {
|
|
|
3784
3743
|
minute: n ? Number(r[5]) : 0,
|
|
3785
3744
|
second: n ? Number(r[6]) : 0
|
|
3786
3745
|
};
|
|
3787
|
-
return a.year < 1 || a.month < 1 || a.month > 12 || a.day < 1 || a.day >
|
|
3746
|
+
return a.year < 1 || a.month < 1 || a.month > 12 || a.day < 1 || a.day > xo(a.year, a.month) || a.hour > 23 || a.minute > 59 || a.second > 59 ? Pe(`Invalid canonical ${t.granularity} bucket value ${e}.`) : So(a, t) ? { ok: !0, value: a } : Pe(
|
|
3788
3747
|
`Canonical value ${e} is not aligned to ${t.granularity} granularity and its governed Calendar.`
|
|
3789
3748
|
);
|
|
3790
3749
|
}
|
|
3791
|
-
function
|
|
3750
|
+
function Ls(e) {
|
|
3792
3751
|
const { granularity: t, calendar: n } = e, r = (o, s) => new Intl.DateTimeFormat("en-US", { ...o, timeZone: "UTC" }).format(s), a = [`by ${t} in the ${n.tz} calendar`];
|
|
3793
3752
|
t === "week" && a.push(`weeks starting on ${r({ weekday: "long" }, new Date(Date.UTC(2023, 0, 1 + n.weekStart)))}`);
|
|
3794
|
-
const i =
|
|
3753
|
+
const i = be(e);
|
|
3795
3754
|
return i && (t === "quarter" || t === "year") && a.push(`the fiscal year starting in ${r({ month: "long" }, new Date(Date.UTC(2e3, i - 1, 1)))}`), `${a.join(", ")}; each value is a bucket's start`;
|
|
3796
3755
|
}
|
|
3797
|
-
function
|
|
3756
|
+
function bn(e) {
|
|
3798
3757
|
if (!T(e))
|
|
3799
3758
|
return {
|
|
3800
3759
|
ok: !1,
|
|
@@ -3815,7 +3774,7 @@ function Mn(e) {
|
|
|
3815
3774
|
message: `Unknown property "${c}".`
|
|
3816
3775
|
});
|
|
3817
3776
|
if (o === "preset")
|
|
3818
|
-
|
|
3777
|
+
Bi(r.preset) || t.push({ path: "presentation.preset", message: "Expected a supported preset." });
|
|
3819
3778
|
else if (o === "pattern")
|
|
3820
3779
|
if (typeof r.pattern != "string" || !r.pattern)
|
|
3821
3780
|
t.push({ path: "presentation.pattern", message: "Expected a non-empty pattern." });
|
|
@@ -3881,18 +3840,18 @@ function Mn(e) {
|
|
|
3881
3840
|
}
|
|
3882
3841
|
};
|
|
3883
3842
|
}
|
|
3884
|
-
function
|
|
3843
|
+
function Mo(e, t) {
|
|
3885
3844
|
const n = !!t.calendar.fiscalCalendar;
|
|
3886
|
-
return e === "fiscal_quarter_short" || e === "fiscal_year" ? n : e === "quarter_short" || e === "quarter_long" ||
|
|
3845
|
+
return e === "fiscal_quarter_short" || e === "fiscal_year" ? n : e === "quarter_short" || e === "quarter_long" || _n(e) && (t.granularity === "quarter" || t.granularity === "year") ? !n : !0;
|
|
3887
3846
|
}
|
|
3888
|
-
function
|
|
3889
|
-
return fn(e, t.granularity).ok ? e.presentation.mode === "preset" ?
|
|
3847
|
+
function vn(e, t) {
|
|
3848
|
+
return fn(e, t.granularity).ok ? e.presentation.mode === "preset" ? Mo(e.presentation.preset, t) : !(e.presentation.mode === "pattern" && t.calendar.fiscalCalendar && (t.granularity === "quarter" || t.granularity === "year")) : !1;
|
|
3890
3849
|
}
|
|
3891
3850
|
function Pt(e, t) {
|
|
3892
3851
|
if (!(!e || e.presentation.mode === "auto"))
|
|
3893
|
-
return
|
|
3852
|
+
return vn(e, t) ? { type: "temporal_bucket", presentation: e.presentation } : void 0;
|
|
3894
3853
|
}
|
|
3895
|
-
function
|
|
3854
|
+
function Sn(e) {
|
|
3896
3855
|
var a;
|
|
3897
3856
|
const t = X(e.locale);
|
|
3898
3857
|
if (!t)
|
|
@@ -3910,7 +3869,7 @@ function _n(e) {
|
|
|
3910
3869
|
locale: t,
|
|
3911
3870
|
presentation: {
|
|
3912
3871
|
mode: "auto",
|
|
3913
|
-
styles: e.styles ??
|
|
3872
|
+
styles: e.styles ?? po
|
|
3914
3873
|
}
|
|
3915
3874
|
},
|
|
3916
3875
|
source: "automatic"
|
|
@@ -3921,7 +3880,7 @@ function D(e, t = 2) {
|
|
|
3921
3880
|
}
|
|
3922
3881
|
function V(e, t, n) {
|
|
3923
3882
|
if (t === "en-US")
|
|
3924
|
-
return (n === "short" ?
|
|
3883
|
+
return (n === "short" ? wo : To)[e - 1];
|
|
3925
3884
|
const r = new Date(Date.UTC(2e3, e - 1, 15));
|
|
3926
3885
|
return new Intl.DateTimeFormat(t, {
|
|
3927
3886
|
calendar: "gregory",
|
|
@@ -3929,7 +3888,7 @@ function V(e, t, n) {
|
|
|
3929
3888
|
timeZone: "UTC"
|
|
3930
3889
|
}).format(r);
|
|
3931
3890
|
}
|
|
3932
|
-
function
|
|
3891
|
+
function ko(e, t, n) {
|
|
3933
3892
|
return t.map((r) => {
|
|
3934
3893
|
if (r.kind === "literal") return r.value;
|
|
3935
3894
|
switch (r.value) {
|
|
@@ -3972,7 +3931,7 @@ function zt(e, t, n) {
|
|
|
3972
3931
|
timeZone: "UTC"
|
|
3973
3932
|
}).format(B(e));
|
|
3974
3933
|
}
|
|
3975
|
-
function
|
|
3934
|
+
function _o(e, t, n) {
|
|
3976
3935
|
return Y(t, {
|
|
3977
3936
|
calendar: "gregory",
|
|
3978
3937
|
dateStyle: n.dateStyle,
|
|
@@ -3982,7 +3941,7 @@ function Co(e, t, n) {
|
|
|
3982
3941
|
timeZone: "UTC"
|
|
3983
3942
|
}).format(B(e));
|
|
3984
3943
|
}
|
|
3985
|
-
function
|
|
3944
|
+
function No(e, t, n) {
|
|
3986
3945
|
var a;
|
|
3987
3946
|
if (n === "short") {
|
|
3988
3947
|
const i = B(e), o = Y(t, {
|
|
@@ -4007,16 +3966,16 @@ function Po(e, t, n) {
|
|
|
4007
3966
|
year: "numeric"
|
|
4008
3967
|
}).format(B(e));
|
|
4009
3968
|
}
|
|
4010
|
-
function
|
|
3969
|
+
function Mn(e, t) {
|
|
4011
3970
|
return Math.floor((e.month - t + 12) % 12 / 3) + 1;
|
|
4012
3971
|
}
|
|
4013
|
-
function
|
|
3972
|
+
function Ut(e, t) {
|
|
4014
3973
|
return t === 1 || e.month < t ? e.year : e.year + 1;
|
|
4015
3974
|
}
|
|
4016
|
-
function
|
|
3975
|
+
function kn(e) {
|
|
4017
3976
|
return e === 1 ? "1st" : e === 2 ? "2nd" : e === 3 ? "3rd" : `${e}th`;
|
|
4018
3977
|
}
|
|
4019
|
-
function
|
|
3978
|
+
function _n(e) {
|
|
4020
3979
|
return e === "short" || e === "long" || e === "numeric" || e === "iso";
|
|
4021
3980
|
}
|
|
4022
3981
|
function Ye(e, t, n) {
|
|
@@ -4028,15 +3987,15 @@ function Ye(e, t, n) {
|
|
|
4028
3987
|
timeZone: "UTC"
|
|
4029
3988
|
}).format(B(e));
|
|
4030
3989
|
}
|
|
4031
|
-
function
|
|
4032
|
-
const a =
|
|
3990
|
+
function $o(e, t, n, r) {
|
|
3991
|
+
const a = Mn(e, 1);
|
|
4033
3992
|
switch (r) {
|
|
4034
3993
|
case "week":
|
|
4035
3994
|
return t === "numeric" || t === "iso" ? Ye(e, t, n) : `Week of ${Ye(e, t, n)}`;
|
|
4036
3995
|
case "month":
|
|
4037
3996
|
return t === "iso" ? `${D(e.year, 4)}-${D(e.month)}` : t === "numeric" ? `${D(e.month)}/${D(e.year, 4)}` : `${V(e.month, n, t === "long" ? "long" : "short")} ${e.year}`;
|
|
4038
3997
|
case "quarter":
|
|
4039
|
-
return t === "iso" ? `${D(e.year, 4)}-Q${a}` : t === "long" ? `${
|
|
3998
|
+
return t === "iso" ? `${D(e.year, 4)}-Q${a}` : t === "long" ? `${kn(a)} Quarter ${e.year}` : `Q${a} ${e.year}`;
|
|
4040
3999
|
case "year":
|
|
4041
4000
|
return String(e.year);
|
|
4042
4001
|
default:
|
|
@@ -4044,9 +4003,9 @@ function Yo(e, t, n, r) {
|
|
|
4044
4003
|
}
|
|
4045
4004
|
}
|
|
4046
4005
|
function je(e, t, n, r) {
|
|
4047
|
-
if (
|
|
4048
|
-
return
|
|
4049
|
-
const a =
|
|
4006
|
+
if (_n(t))
|
|
4007
|
+
return $o(e, t, n, r.granularity);
|
|
4008
|
+
const a = be(r) ?? 1, i = Mn(e, a);
|
|
4050
4009
|
switch (t) {
|
|
4051
4010
|
case "week_of_short":
|
|
4052
4011
|
return `Week of ${V(e.month, n, "short")} ${e.day}, ${e.year}`;
|
|
@@ -4055,26 +4014,26 @@ function je(e, t, n, r) {
|
|
|
4055
4014
|
case "quarter_short":
|
|
4056
4015
|
return `Q${i} ${e.year}`;
|
|
4057
4016
|
case "quarter_long":
|
|
4058
|
-
return `${
|
|
4017
|
+
return `${kn(i)} Quarter ${e.year}`;
|
|
4059
4018
|
case "fiscal_quarter_short":
|
|
4060
|
-
return `Q${i} FY${
|
|
4019
|
+
return `Q${i} FY${Ut(e, a)}`;
|
|
4061
4020
|
case "fiscal_year":
|
|
4062
|
-
return `FY${
|
|
4021
|
+
return `FY${Ut(e, a)}`;
|
|
4063
4022
|
}
|
|
4064
4023
|
}
|
|
4065
|
-
function
|
|
4066
|
-
const a =
|
|
4024
|
+
function Oo(e, t, n, r) {
|
|
4025
|
+
const a = be(t);
|
|
4067
4026
|
switch (t.granularity) {
|
|
4068
4027
|
case "second":
|
|
4069
4028
|
case "minute":
|
|
4070
4029
|
case "hour":
|
|
4071
|
-
return
|
|
4030
|
+
return _o(e, n, r.dateTime);
|
|
4072
4031
|
case "day":
|
|
4073
4032
|
return zt(e, n, r.dateStyle);
|
|
4074
4033
|
case "week":
|
|
4075
4034
|
return `Week of ${zt(e, n, r.dateStyle)}`;
|
|
4076
4035
|
case "month":
|
|
4077
|
-
return
|
|
4036
|
+
return No(e, n, r.dateStyle);
|
|
4078
4037
|
case "quarter":
|
|
4079
4038
|
return je(
|
|
4080
4039
|
e,
|
|
@@ -4086,22 +4045,22 @@ function zo(e, t, n, r) {
|
|
|
4086
4045
|
return a ? je(e, "fiscal_year", n, t) : String(e.year);
|
|
4087
4046
|
}
|
|
4088
4047
|
}
|
|
4089
|
-
function
|
|
4048
|
+
function Ws(e, t) {
|
|
4090
4049
|
if (t.granularity !== "second" && t.granularity !== "minute" && t.granularity !== "hour" && t.granularity !== "day" && t.granularity !== "month")
|
|
4091
4050
|
return;
|
|
4092
|
-
const n =
|
|
4051
|
+
const n = xn(e, t);
|
|
4093
4052
|
if (!n.ok || n.value === null) return;
|
|
4094
4053
|
const { year: r, month: a, day: i, hour: o, minute: s, second: c } = n.value;
|
|
4095
4054
|
return { year: r, month: a, day: i, hour: o, minute: s, second: c };
|
|
4096
4055
|
}
|
|
4097
|
-
function
|
|
4098
|
-
const t =
|
|
4099
|
-
if (!t.ok || !
|
|
4056
|
+
function Nn(e) {
|
|
4057
|
+
const t = bn(e.format);
|
|
4058
|
+
if (!t.ok || !vn(t.value, e.metadata))
|
|
4100
4059
|
throw new le(
|
|
4101
4060
|
"invalid_temporal_bucket_format",
|
|
4102
4061
|
"Resolved temporal bucket format is invalid or inapplicable to its metadata."
|
|
4103
4062
|
);
|
|
4104
|
-
const n =
|
|
4063
|
+
const n = xn(e.value, e.metadata);
|
|
4105
4064
|
if (!n.ok)
|
|
4106
4065
|
throw new le(
|
|
4107
4066
|
n.error.code,
|
|
@@ -4110,7 +4069,7 @@ function In(e) {
|
|
|
4110
4069
|
if (n.value === null) return "(Blank)";
|
|
4111
4070
|
const { presentation: r, locale: a } = t.value;
|
|
4112
4071
|
if (r.mode === "auto")
|
|
4113
|
-
return
|
|
4072
|
+
return Oo(
|
|
4114
4073
|
n.value,
|
|
4115
4074
|
e.metadata,
|
|
4116
4075
|
a,
|
|
@@ -4129,9 +4088,9 @@ function In(e) {
|
|
|
4129
4088
|
"invalid_temporal_bucket_format",
|
|
4130
4089
|
i.message
|
|
4131
4090
|
);
|
|
4132
|
-
return
|
|
4091
|
+
return ko(n.value, i.segments, a);
|
|
4133
4092
|
}
|
|
4134
|
-
function
|
|
4093
|
+
function Fo(e, t) {
|
|
4135
4094
|
var a;
|
|
4136
4095
|
const n = e[e.length - 1];
|
|
4137
4096
|
if (!n) return "";
|
|
@@ -4139,18 +4098,18 @@ function Ao(e, t) {
|
|
|
4139
4098
|
const r = n.member.value;
|
|
4140
4099
|
return r === null ? "(Blank)" : ((a = t == null ? void 0 : t.get(n.levelId)) == null ? void 0 : a(r)) ?? (typeof r == "object" ? r.value : String(r));
|
|
4141
4100
|
}
|
|
4142
|
-
function
|
|
4143
|
-
return e === "grand_total" ? n ?? "Grand Total" : e === "subtotal" ? (n == null ? void 0 : n.split(
|
|
4101
|
+
function Io(e, t, n) {
|
|
4102
|
+
return e === "grand_total" ? n ?? "Grand Total" : e === "subtotal" ? (n == null ? void 0 : n.split(Un).join(t)) ?? `${t} Total` : t;
|
|
4144
4103
|
}
|
|
4145
|
-
function
|
|
4104
|
+
function js(e, t, n, r) {
|
|
4146
4105
|
var o;
|
|
4147
4106
|
const a = e[e.length - 1], i = t === "grand_total" ? n.grand.label : a ? (o = n.levels[a.levelId]) == null ? void 0 : o.label : void 0;
|
|
4148
|
-
return
|
|
4107
|
+
return Io(t, Fo(e, r), i);
|
|
4149
4108
|
}
|
|
4150
|
-
function
|
|
4109
|
+
function Hs(e, t, n) {
|
|
4151
4110
|
return e.kind === "value" ? (t == null ? void 0 : t(e.value)) ?? "" : e.kind === "null" ? n.nullText : n.emptyText;
|
|
4152
4111
|
}
|
|
4153
|
-
function
|
|
4112
|
+
function qs(e) {
|
|
4154
4113
|
const { path: t, previousPath: n, role: r, repeatLabels: a, levelCount: i } = e;
|
|
4155
4114
|
return Array.from({ length: i }, (o, s) => {
|
|
4156
4115
|
const c = t.slice(0, s + 1), u = r === "grand_total" ? s === 0 : r === "subtotal" && s === t.length - 1, l = n && n.length > s && nt(n.slice(0, s + 1)) === nt(c);
|
|
@@ -4161,20 +4120,20 @@ function Qs(e) {
|
|
|
4161
4120
|
};
|
|
4162
4121
|
});
|
|
4163
4122
|
}
|
|
4164
|
-
function
|
|
4165
|
-
return (e == null ? void 0 : e.type) === "date" ? { type: "raw_temporal", timezone: e.timezone, sourceTimezone: e.sourceTimezone, presentation:
|
|
4123
|
+
function Eo(e) {
|
|
4124
|
+
return (e == null ? void 0 : e.type) === "date" ? { type: "raw_temporal", timezone: e.timezone, sourceTimezone: e.sourceTimezone, presentation: eo(e) } : void 0;
|
|
4166
4125
|
}
|
|
4167
|
-
function
|
|
4126
|
+
function Co(e, t) {
|
|
4168
4127
|
return Fi(Xe({ override: e, model: t }).format, {
|
|
4169
4128
|
preserveOmittedProperties: !0,
|
|
4170
4129
|
numericInput: "canonical"
|
|
4171
4130
|
});
|
|
4172
4131
|
}
|
|
4173
|
-
function
|
|
4132
|
+
function Zs(e, t, n) {
|
|
4174
4133
|
const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
4175
|
-
const c = (s === "levels" ? t.levelFormats : t.measureFormats)[o.id], u = o.semanticFormat, l =
|
|
4134
|
+
const c = (s === "levels" ? t.levelFormats : t.measureFormats)[o.id], u = o.semanticFormat, l = Co(c, u);
|
|
4176
4135
|
s === "measures" && r.set(o.id, {
|
|
4177
|
-
isNumeric:
|
|
4136
|
+
isNumeric: zn(o.column.dataType) === "number",
|
|
4178
4137
|
// Use normalized affixes: a redundant percent suffix is already removed.
|
|
4179
4138
|
hasTextAffixes: !!l && !!("prefix" in l && l.prefix || "suffix" in l && l.suffix)
|
|
4180
4139
|
});
|
|
@@ -4185,18 +4144,18 @@ function Js(e, t, n) {
|
|
|
4185
4144
|
absence: t.absence
|
|
4186
4145
|
});
|
|
4187
4146
|
if (o.column.temporalBucket) {
|
|
4188
|
-
const m = o.column.temporalBucket, h =
|
|
4147
|
+
const m = o.column.temporalBucket, h = Sn({
|
|
4189
4148
|
metadata: m,
|
|
4190
4149
|
cardFormat: (c == null ? void 0 : c.type) === "temporal_bucket" ? c : void 0,
|
|
4191
4150
|
semanticFormat: (u == null ? void 0 : u.type) === "temporal_bucket" ? { granularity: m.granularity, format: u } : void 0,
|
|
4192
4151
|
locale: n.valueFormat.locale,
|
|
4193
4152
|
styles: { dateStyle: n.valueFormat.dateStyle, dateTime: n.valueFormat.dateTime }
|
|
4194
4153
|
});
|
|
4195
|
-
return (d) => typeof d == "string" ?
|
|
4154
|
+
return (d) => typeof d == "string" ? Nn({ value: d, metadata: m, format: h.format }) : f(d);
|
|
4196
4155
|
}
|
|
4197
4156
|
if (o.column.rawTemporal) {
|
|
4198
|
-
const m = Xe({ override: c, model: u }).format, { formatValue: h } =
|
|
4199
|
-
authored:
|
|
4157
|
+
const m = Xe({ override: c, model: u }).format, { formatValue: h } = yo({
|
|
4158
|
+
authored: Eo(m),
|
|
4200
4159
|
metadata: o.column.rawTemporal,
|
|
4201
4160
|
preferences: n.valueFormat,
|
|
4202
4161
|
calendar: n.calendar
|
|
@@ -4208,7 +4167,7 @@ function Js(e, t, n) {
|
|
|
4208
4167
|
};
|
|
4209
4168
|
}
|
|
4210
4169
|
if (G(l)) {
|
|
4211
|
-
const m =
|
|
4170
|
+
const m = Zi(l, n.valueFormat);
|
|
4212
4171
|
return s === "measures" && a.set(o.id, m), (h) => typeof h == "number" || typeof h == "object" && h !== null ? Ze(h, m) : f(h);
|
|
4213
4172
|
}
|
|
4214
4173
|
return (l == null ? void 0 : l.type) === "duration" && s === "measures" && a.set(o.id, l), (l == null ? void 0 : l.type) === "duration" ? (m) => typeof m == "number" || typeof m == "string" || typeof m == "object" && m !== null ? qt(
|
|
@@ -4228,17 +4187,17 @@ function Js(e, t, n) {
|
|
|
4228
4187
|
absence: t.absence
|
|
4229
4188
|
};
|
|
4230
4189
|
}
|
|
4231
|
-
function
|
|
4190
|
+
function Ks(e, t) {
|
|
4232
4191
|
return t.levelLabels[e.id] ?? e.field.label ?? e.field.name;
|
|
4233
4192
|
}
|
|
4234
|
-
function
|
|
4193
|
+
function Vs(e, t) {
|
|
4235
4194
|
return t.measureLabels[e.id] ?? (e.kind === "aggregate" ? e.field.label ?? e.field.name : e.definition.label);
|
|
4236
4195
|
}
|
|
4237
|
-
function
|
|
4238
|
-
return
|
|
4196
|
+
function Bs(e) {
|
|
4197
|
+
return Wn.parse(Po(e));
|
|
4239
4198
|
}
|
|
4240
|
-
function
|
|
4241
|
-
const t =
|
|
4199
|
+
function Po(e) {
|
|
4200
|
+
const t = An.parse(e), n = (r) => ({
|
|
4242
4201
|
grand: { visible: !0, position: "after" },
|
|
4243
4202
|
levels: Object.fromEntries(
|
|
4244
4203
|
r.map((a) => [
|
|
@@ -4247,7 +4206,7 @@ function Wo(e) {
|
|
|
4247
4206
|
])
|
|
4248
4207
|
)
|
|
4249
4208
|
});
|
|
4250
|
-
return
|
|
4209
|
+
return Rn.parse({
|
|
4251
4210
|
version: 1,
|
|
4252
4211
|
spec: t,
|
|
4253
4212
|
presentation: {
|
|
@@ -4265,14 +4224,14 @@ function Wo(e) {
|
|
|
4265
4224
|
}
|
|
4266
4225
|
});
|
|
4267
4226
|
}
|
|
4268
|
-
function
|
|
4227
|
+
function Yo(e, t) {
|
|
4269
4228
|
const n = new Map(e.map((r) => [q(r), r]));
|
|
4270
4229
|
for (const r of t ?? []) n.set(q(r), r);
|
|
4271
4230
|
return [...n.values()];
|
|
4272
4231
|
}
|
|
4273
|
-
function
|
|
4274
|
-
const { spec: t, presentation: n, defaults: r, session: a } =
|
|
4275
|
-
|
|
4232
|
+
function Xs(e) {
|
|
4233
|
+
const { spec: t, presentation: n, defaults: r, session: a } = Ln.parse(e), i = new Map(
|
|
4234
|
+
Yo(t.sorts, a == null ? void 0 : a.sorts).map((s) => [q(s), s])
|
|
4276
4235
|
);
|
|
4277
4236
|
for (const s of ["rows", "columns"])
|
|
4278
4237
|
for (const c of t[s]) {
|
|
@@ -4306,7 +4265,7 @@ function rc(e) {
|
|
|
4306
4265
|
}
|
|
4307
4266
|
};
|
|
4308
4267
|
}
|
|
4309
|
-
class
|
|
4268
|
+
class At extends Error {
|
|
4310
4269
|
constructor(n) {
|
|
4311
4270
|
super(
|
|
4312
4271
|
`invalid_presentation_execution_snapshot: ${n} Resave this report before running it again.`
|
|
@@ -4316,7 +4275,7 @@ class Ut extends Error {
|
|
|
4316
4275
|
this.name = "PresentationExecutionSnapshotError";
|
|
4317
4276
|
}
|
|
4318
4277
|
}
|
|
4319
|
-
class
|
|
4278
|
+
class Gs extends Error {
|
|
4320
4279
|
constructor(n) {
|
|
4321
4280
|
super(
|
|
4322
4281
|
`missing_resolved_raw_temporal_format: Column "${n}" has no captured presentation. Resave this report before running it again.`
|
|
@@ -4326,15 +4285,15 @@ class ac extends Error {
|
|
|
4326
4285
|
this.name = "MissingResolvedRawTemporalFormatError";
|
|
4327
4286
|
}
|
|
4328
4287
|
}
|
|
4329
|
-
function
|
|
4288
|
+
function I(e, t, n) {
|
|
4330
4289
|
const r = new Set(t), a = Object.keys(e).find((i) => !r.has(i));
|
|
4331
4290
|
if (a)
|
|
4332
4291
|
throw new Error(`${n} contains unknown property "${a}"`);
|
|
4333
4292
|
}
|
|
4334
|
-
function
|
|
4293
|
+
function zo(e, t = "scope") {
|
|
4335
4294
|
if (!T(e))
|
|
4336
4295
|
throw new Error(`${t} must be an object`);
|
|
4337
|
-
|
|
4296
|
+
I(
|
|
4338
4297
|
e,
|
|
4339
4298
|
["dashboardId", "cardId", "attachmentIndex"],
|
|
4340
4299
|
t
|
|
@@ -4358,7 +4317,7 @@ function Ho(e, t = "scope") {
|
|
|
4358
4317
|
}
|
|
4359
4318
|
function z(e, t, n, r) {
|
|
4360
4319
|
if (e.kind !== t) return;
|
|
4361
|
-
|
|
4320
|
+
I(e, ["kind", n], r);
|
|
4362
4321
|
const a = e[n];
|
|
4363
4322
|
if (typeof a != "string" || !a.trim())
|
|
4364
4323
|
throw new Error(`${r}.${n} is required`);
|
|
@@ -4380,7 +4339,7 @@ function ze(e, t) {
|
|
|
4380
4339
|
if (a) return { kind: "matrix_measure", measureId: a };
|
|
4381
4340
|
throw new Error(`${t} is not a valid numeric presentation target`);
|
|
4382
4341
|
}
|
|
4383
|
-
const
|
|
4342
|
+
const Uo = [
|
|
4384
4343
|
"type",
|
|
4385
4344
|
"inputUnit",
|
|
4386
4345
|
"outputStyle",
|
|
@@ -4391,12 +4350,12 @@ const qo = [
|
|
|
4391
4350
|
"suffix",
|
|
4392
4351
|
"negativeStyle"
|
|
4393
4352
|
];
|
|
4394
|
-
function
|
|
4353
|
+
function Ao(e) {
|
|
4395
4354
|
return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
|
|
4396
4355
|
}
|
|
4397
|
-
const
|
|
4398
|
-
function
|
|
4399
|
-
if (
|
|
4356
|
+
const Ro = ["type", "locale", "pattern", "timezone", "sourceTimezone"];
|
|
4357
|
+
function Lo(e, t) {
|
|
4358
|
+
if (I(e, Ro, t), typeof e.locale != "string" || !e.locale.trim())
|
|
4400
4359
|
throw new Error(`${t}.locale must be a non-empty string`);
|
|
4401
4360
|
for (const n of ["pattern", "timezone", "sourceTimezone"])
|
|
4402
4361
|
if (e[n] !== void 0 && typeof e[n] != "string")
|
|
@@ -4409,10 +4368,10 @@ function Vo(e, t) {
|
|
|
4409
4368
|
...typeof e.sourceTimezone == "string" ? { sourceTimezone: e.sourceTimezone } : {}
|
|
4410
4369
|
};
|
|
4411
4370
|
}
|
|
4412
|
-
function
|
|
4413
|
-
|
|
4371
|
+
function Wo(e, t) {
|
|
4372
|
+
I(e, Uo, t);
|
|
4414
4373
|
for (const i of ["inputUnit", "largestUnit", "smallestUnit"])
|
|
4415
|
-
if (e[i] !== void 0 && !
|
|
4374
|
+
if (e[i] !== void 0 && !Ao(e[i]))
|
|
4416
4375
|
throw new Error(`${t}.${i} must be a duration unit`);
|
|
4417
4376
|
const n = e.outputStyle;
|
|
4418
4377
|
if (n !== void 0 && n !== "compact" && n !== "digital" && n !== "long")
|
|
@@ -4438,11 +4397,11 @@ function Bo(e, t) {
|
|
|
4438
4397
|
...a !== void 0 ? { negativeStyle: a } : {}
|
|
4439
4398
|
};
|
|
4440
4399
|
}
|
|
4441
|
-
function
|
|
4400
|
+
function jo(e, t) {
|
|
4442
4401
|
if (!T(e))
|
|
4443
4402
|
throw new Error(`${t} must be an object`);
|
|
4444
4403
|
if (e.kind === "field") {
|
|
4445
|
-
|
|
4404
|
+
I(e, ["kind", "fieldId", "role"], t);
|
|
4446
4405
|
const a = typeof e.fieldId == "string" ? e.fieldId.trim() : "";
|
|
4447
4406
|
if (!a)
|
|
4448
4407
|
throw new Error(`${t}.fieldId is required`);
|
|
@@ -4466,7 +4425,7 @@ function Xo(e, t) {
|
|
|
4466
4425
|
if (r) return { kind: "matrix_axis", axisInstanceId: r };
|
|
4467
4426
|
throw new Error(`${t} is not a valid temporal bucket presentation target`);
|
|
4468
4427
|
}
|
|
4469
|
-
function
|
|
4428
|
+
function Ho(e, t) {
|
|
4470
4429
|
if (!T(e))
|
|
4471
4430
|
throw new Error(`${t} must be an object`);
|
|
4472
4431
|
const n = z(e, "column", "columnKey", t);
|
|
@@ -4474,7 +4433,7 @@ function Go(e, t) {
|
|
|
4474
4433
|
throw new Error(`${t} must identify a column`);
|
|
4475
4434
|
return { kind: "column", columnKey: n };
|
|
4476
4435
|
}
|
|
4477
|
-
function
|
|
4436
|
+
function qo(e) {
|
|
4478
4437
|
return [
|
|
4479
4438
|
e.dashboardId,
|
|
4480
4439
|
e.cardId ?? null,
|
|
@@ -4502,7 +4461,7 @@ function Se(e, t) {
|
|
|
4502
4461
|
const n = De(e), r = De(t);
|
|
4503
4462
|
return n.length === r.length && n.every((a, i) => a === r[i]);
|
|
4504
4463
|
}
|
|
4505
|
-
function
|
|
4464
|
+
function Zo(e) {
|
|
4506
4465
|
if (!Array.isArray(e))
|
|
4507
4466
|
throw new Error("resolvedFormats must be an array");
|
|
4508
4467
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -4511,21 +4470,21 @@ function Jo(e) {
|
|
|
4511
4470
|
const a = `resolvedFormats.${r}`;
|
|
4512
4471
|
if (!T(n))
|
|
4513
4472
|
throw new Error(`${a} must be an object`);
|
|
4514
|
-
|
|
4515
|
-
const i =
|
|
4473
|
+
I(n, ["scope", "target", "format"], a);
|
|
4474
|
+
const i = zo(n.scope, `${a}.scope`);
|
|
4516
4475
|
if (!T(n.format))
|
|
4517
4476
|
throw new Error(`${a}.format must be an object`);
|
|
4518
4477
|
let o;
|
|
4519
4478
|
switch (n.format.type) {
|
|
4520
4479
|
case "temporal_bucket": {
|
|
4521
|
-
const l =
|
|
4480
|
+
const l = bn(n.format);
|
|
4522
4481
|
if (!l.ok)
|
|
4523
4482
|
throw new Error(
|
|
4524
4483
|
`${a}.format is invalid: ${((c = l.issues[0]) == null ? void 0 : c.message) ?? "invalid value"}`
|
|
4525
4484
|
);
|
|
4526
4485
|
o = {
|
|
4527
4486
|
scope: i,
|
|
4528
|
-
target:
|
|
4487
|
+
target: jo(n.target, `${a}.target`),
|
|
4529
4488
|
format: l.value
|
|
4530
4489
|
};
|
|
4531
4490
|
break;
|
|
@@ -4533,7 +4492,7 @@ function Jo(e) {
|
|
|
4533
4492
|
case "raw_temporal":
|
|
4534
4493
|
o = {
|
|
4535
4494
|
scope: i,
|
|
4536
|
-
target:
|
|
4495
|
+
target: Ho(n.target, `${a}.target`),
|
|
4537
4496
|
format: Ge(n.format)
|
|
4538
4497
|
};
|
|
4539
4498
|
break;
|
|
@@ -4541,7 +4500,7 @@ function Jo(e) {
|
|
|
4541
4500
|
case "currency":
|
|
4542
4501
|
case "percent":
|
|
4543
4502
|
case "scientific": {
|
|
4544
|
-
const l =
|
|
4503
|
+
const l = ji(n.format);
|
|
4545
4504
|
if (!l.ok)
|
|
4546
4505
|
throw new Error(
|
|
4547
4506
|
`${a}.format is invalid: ${((u = l.issues[0]) == null ? void 0 : u.message) ?? "invalid value"}`
|
|
@@ -4560,7 +4519,7 @@ function Jo(e) {
|
|
|
4560
4519
|
o = {
|
|
4561
4520
|
scope: i,
|
|
4562
4521
|
target: l,
|
|
4563
|
-
format:
|
|
4522
|
+
format: Lo(n.format, `${a}.format`)
|
|
4564
4523
|
};
|
|
4565
4524
|
break;
|
|
4566
4525
|
}
|
|
@@ -4568,7 +4527,7 @@ function Jo(e) {
|
|
|
4568
4527
|
o = {
|
|
4569
4528
|
scope: i,
|
|
4570
4529
|
target: ze(n.target, `${a}.target`),
|
|
4571
|
-
format:
|
|
4530
|
+
format: Wo(
|
|
4572
4531
|
n.format,
|
|
4573
4532
|
`${a}.format`
|
|
4574
4533
|
)
|
|
@@ -4578,7 +4537,7 @@ function Jo(e) {
|
|
|
4578
4537
|
throw new Error(`${a}.format.type is unsupported`);
|
|
4579
4538
|
}
|
|
4580
4539
|
const s = JSON.stringify([
|
|
4581
|
-
...
|
|
4540
|
+
...qo(o.scope),
|
|
4582
4541
|
...De(o.target)
|
|
4583
4542
|
]);
|
|
4584
4543
|
if (t.has(s))
|
|
@@ -4588,17 +4547,17 @@ function Jo(e) {
|
|
|
4588
4547
|
return t.add(s), o;
|
|
4589
4548
|
});
|
|
4590
4549
|
}
|
|
4591
|
-
function
|
|
4550
|
+
function Ko(e) {
|
|
4592
4551
|
try {
|
|
4593
4552
|
if (!T(e))
|
|
4594
4553
|
throw new Error("presentation execution snapshot must be an object");
|
|
4595
|
-
if (
|
|
4554
|
+
if (I(
|
|
4596
4555
|
e,
|
|
4597
4556
|
["version", "reportContext", "resolvedFormats"],
|
|
4598
4557
|
"presentation execution snapshot"
|
|
4599
4558
|
), e.version !== 1)
|
|
4600
4559
|
throw new Error("presentation execution snapshot version must be 1");
|
|
4601
|
-
const t =
|
|
4560
|
+
const t = Hn(e.reportContext);
|
|
4602
4561
|
if (!t.ok) {
|
|
4603
4562
|
const n = t.issues[0];
|
|
4604
4563
|
throw new Error(
|
|
@@ -4608,50 +4567,50 @@ function es(e) {
|
|
|
4608
4567
|
return {
|
|
4609
4568
|
version: 1,
|
|
4610
4569
|
reportContext: t.value,
|
|
4611
|
-
resolvedFormats:
|
|
4570
|
+
resolvedFormats: Zo(e.resolvedFormats)
|
|
4612
4571
|
};
|
|
4613
4572
|
} catch (t) {
|
|
4614
|
-
throw t instanceof
|
|
4573
|
+
throw t instanceof At ? t : new At(
|
|
4615
4574
|
t instanceof Error ? t.message : "Snapshot is invalid."
|
|
4616
4575
|
);
|
|
4617
4576
|
}
|
|
4618
4577
|
}
|
|
4619
|
-
function
|
|
4620
|
-
return
|
|
4578
|
+
function Qs(e) {
|
|
4579
|
+
return Ko({
|
|
4621
4580
|
version: 1,
|
|
4622
4581
|
reportContext: e.reportContext,
|
|
4623
4582
|
resolvedFormats: [...e.resolvedFormats]
|
|
4624
4583
|
});
|
|
4625
4584
|
}
|
|
4626
|
-
function
|
|
4627
|
-
const t =
|
|
4585
|
+
function Js(e) {
|
|
4586
|
+
const t = Vo(e);
|
|
4628
4587
|
return G(t) ? t : void 0;
|
|
4629
4588
|
}
|
|
4630
|
-
function
|
|
4589
|
+
function Vo(e) {
|
|
4631
4590
|
const t = e.snapshot.resolvedFormats.find(
|
|
4632
4591
|
(n) => n.format.type !== "temporal_bucket" && n.format.type !== "raw_temporal" && n.format.type !== "date" && ve(n.scope, e.scope) && Se(n.target, e.target)
|
|
4633
4592
|
);
|
|
4634
4593
|
return t == null ? void 0 : t.format;
|
|
4635
4594
|
}
|
|
4636
|
-
function
|
|
4595
|
+
function ec(e) {
|
|
4637
4596
|
const t = e.snapshot.resolvedFormats.find(
|
|
4638
4597
|
(n) => n.format.type === "date" && ve(n.scope, e.scope) && Se(n.target, e.target)
|
|
4639
4598
|
);
|
|
4640
4599
|
return t == null ? void 0 : t.format;
|
|
4641
4600
|
}
|
|
4642
|
-
function
|
|
4601
|
+
function tc(e) {
|
|
4643
4602
|
const t = e.snapshot.resolvedFormats.find(
|
|
4644
4603
|
(n) => n.format.type === "raw_temporal" && ve(n.scope, e.scope) && Se(n.target, e.target)
|
|
4645
4604
|
);
|
|
4646
4605
|
return t == null ? void 0 : t.format;
|
|
4647
4606
|
}
|
|
4648
|
-
function
|
|
4607
|
+
function nc(e) {
|
|
4649
4608
|
const t = e.snapshot.resolvedFormats.find(
|
|
4650
4609
|
(n) => n.format.type === "temporal_bucket" && ve(n.scope, e.scope) && Se(n.target, e.target)
|
|
4651
4610
|
);
|
|
4652
4611
|
return t == null ? void 0 : t.format;
|
|
4653
4612
|
}
|
|
4654
|
-
function
|
|
4613
|
+
function rc(e) {
|
|
4655
4614
|
var a;
|
|
4656
4615
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
4657
4616
|
if (e.snapshot.resolvedFormats.forEach((i, o) => {
|
|
@@ -4692,36 +4651,36 @@ function lc(e) {
|
|
|
4692
4651
|
`resolvedFormats is missing visible export column "${r}"`
|
|
4693
4652
|
);
|
|
4694
4653
|
}
|
|
4695
|
-
const
|
|
4696
|
-
function
|
|
4654
|
+
const Bo = /* @__PURE__ */ new Set(["short", "medium", "long"]), Xo = /^(\d{4})-(\d{2})-(\d{2})$/, Go = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/, Qo = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/, Je = " – ";
|
|
4655
|
+
function ac(e) {
|
|
4697
4656
|
if (!T(e)) return;
|
|
4698
4657
|
const t = Object.keys(e);
|
|
4699
4658
|
if (e.mode === "period_label" && t.length === 1)
|
|
4700
4659
|
return { mode: "period_label" };
|
|
4701
|
-
if (e.mode === "style" && t.length === 2 && typeof e.dateStyle == "string" &&
|
|
4660
|
+
if (e.mode === "style" && t.length === 2 && typeof e.dateStyle == "string" && Bo.has(e.dateStyle))
|
|
4702
4661
|
return { mode: "style", dateStyle: e.dateStyle };
|
|
4703
|
-
if (e.mode === "pattern" && t.length === 3 && e.dialect === "semaphor_tokens" && typeof e.pattern == "string" &&
|
|
4662
|
+
if (e.mode === "pattern" && t.length === 3 && e.dialect === "semaphor_tokens" && typeof e.pattern == "string" && Jo(e.pattern) === null)
|
|
4704
4663
|
return {
|
|
4705
4664
|
mode: "pattern",
|
|
4706
4665
|
dialect: "semaphor_tokens",
|
|
4707
4666
|
pattern: e.pattern
|
|
4708
4667
|
};
|
|
4709
4668
|
}
|
|
4710
|
-
function
|
|
4669
|
+
function Jo(e) {
|
|
4711
4670
|
try {
|
|
4712
|
-
return
|
|
4671
|
+
return uo({ dialect: "semaphor_tokens", pattern: e }), null;
|
|
4713
4672
|
} catch (t) {
|
|
4714
4673
|
return t instanceof Error ? t.message : "The pattern is invalid.";
|
|
4715
4674
|
}
|
|
4716
4675
|
}
|
|
4717
|
-
function
|
|
4676
|
+
function ic(e) {
|
|
4718
4677
|
const { value: t, part: n, presentation: r, preferences: a, calendar: i } = e;
|
|
4719
4678
|
if ((r == null ? void 0 : r.mode) === "period_label" && t.periodLabel && n === "range")
|
|
4720
4679
|
return { ok: !0, text: t.periodLabel };
|
|
4721
4680
|
const [o, s] = t.bounds, u = s === void 0 || n === "start" ? [{ raw: o, role: "start" }] : n === "end" ? [{ raw: s, role: "end" }] : [
|
|
4722
4681
|
{ raw: o, role: "start" },
|
|
4723
4682
|
{ raw: s, role: "end" }
|
|
4724
|
-
], l = u.map(({ raw: d }) =>
|
|
4683
|
+
], l = u.map(({ raw: d }) => rs(d, i.tz));
|
|
4725
4684
|
if (l.some((d) => d === null))
|
|
4726
4685
|
return {
|
|
4727
4686
|
ok: !1,
|
|
@@ -4732,35 +4691,35 @@ function fc(e) {
|
|
|
4732
4691
|
}
|
|
4733
4692
|
};
|
|
4734
4693
|
const f = t.precision === "day" ? l.map(
|
|
4735
|
-
(d, S) =>
|
|
4694
|
+
(d, S) => is(d, u[S].role, i.tz)
|
|
4736
4695
|
) : [], m = f.length > 0 && f.every((d) => d !== null) ? f : null;
|
|
4737
|
-
return { ok: !0, text: m ?
|
|
4738
|
-
l.map((d) =>
|
|
4696
|
+
return { ok: !0, text: m ? es(m, r, a, i) : ts(
|
|
4697
|
+
l.map((d) => as(d, i.tz)),
|
|
4739
4698
|
r,
|
|
4740
4699
|
a,
|
|
4741
4700
|
i
|
|
4742
4701
|
) };
|
|
4743
4702
|
}
|
|
4744
|
-
function
|
|
4703
|
+
function es(e, t, n, r) {
|
|
4745
4704
|
const [a, i = a] = e;
|
|
4746
4705
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4747
|
-
return
|
|
4706
|
+
return Fn(
|
|
4748
4707
|
e.map(
|
|
4749
|
-
(c) =>
|
|
4708
|
+
(c) => On(He(c), "date", t.pattern, n, r)
|
|
4750
4709
|
)
|
|
4751
4710
|
);
|
|
4752
4711
|
const o = (t == null ? void 0 : t.mode) === "style" ? t.dateStyle : n.dateStyle;
|
|
4753
4712
|
if (!t || t.mode === "period_label") {
|
|
4754
|
-
const c =
|
|
4713
|
+
const c = os(a, i, r);
|
|
4755
4714
|
if (c)
|
|
4756
|
-
return
|
|
4715
|
+
return Nn({
|
|
4757
4716
|
value: He(a),
|
|
4758
4717
|
metadata: {
|
|
4759
4718
|
kind: "temporal_bucket",
|
|
4760
4719
|
granularity: c,
|
|
4761
4720
|
calendar: { tz: r.tz, weekStart: r.weekStart ?? 1 }
|
|
4762
4721
|
},
|
|
4763
|
-
format:
|
|
4722
|
+
format: Sn({
|
|
4764
4723
|
metadata: {
|
|
4765
4724
|
kind: "temporal_bucket",
|
|
4766
4725
|
granularity: c,
|
|
@@ -4776,13 +4735,13 @@ function ss(e, t, n, r) {
|
|
|
4776
4735
|
timeZone: "UTC",
|
|
4777
4736
|
dateStyle: o
|
|
4778
4737
|
});
|
|
4779
|
-
return
|
|
4738
|
+
return cs(a, i) ? s.format(me(a)) : $n(s, me(a), me(i));
|
|
4780
4739
|
}
|
|
4781
|
-
function
|
|
4740
|
+
function ts(e, t, n, r) {
|
|
4782
4741
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4783
|
-
return
|
|
4742
|
+
return Fn(
|
|
4784
4743
|
e.map(
|
|
4785
|
-
(s) =>
|
|
4744
|
+
(s) => On(
|
|
4786
4745
|
s.toISOString(),
|
|
4787
4746
|
"instant",
|
|
4788
4747
|
t.pattern,
|
|
@@ -4797,14 +4756,14 @@ function cs(e, t, n, r) {
|
|
|
4797
4756
|
dateStyle: (t == null ? void 0 : t.mode) === "style" ? t.dateStyle : n.dateTime.dateStyle,
|
|
4798
4757
|
timeStyle: n.dateTime.timeStyle
|
|
4799
4758
|
}), [i, o] = e;
|
|
4800
|
-
return o && o.getTime() !== i.getTime() ?
|
|
4759
|
+
return o && o.getTime() !== i.getTime() ? $n(a, i, o) : a.format(i);
|
|
4801
4760
|
}
|
|
4802
|
-
function
|
|
4761
|
+
function $n(e, t, n) {
|
|
4803
4762
|
const r = e;
|
|
4804
4763
|
return typeof r.formatRange == "function" ? r.formatRange(t, n) : `${e.format(t)}${Je}${e.format(n)}`;
|
|
4805
4764
|
}
|
|
4806
|
-
function
|
|
4807
|
-
const i =
|
|
4765
|
+
function On(e, t, n, r, a) {
|
|
4766
|
+
const i = gn({
|
|
4808
4767
|
format: {
|
|
4809
4768
|
type: "raw_temporal",
|
|
4810
4769
|
presentation: { mode: "pattern", dialect: "semaphor_tokens", pattern: n }
|
|
@@ -4812,47 +4771,47 @@ function En(e, t, n, r, a) {
|
|
|
4812
4771
|
// Temporal formatting reads no currency.
|
|
4813
4772
|
preferences: {
|
|
4814
4773
|
...r,
|
|
4815
|
-
defaultCurrency:
|
|
4774
|
+
defaultCurrency: qn.defaultCurrency
|
|
4816
4775
|
},
|
|
4817
4776
|
calendar: { tz: a.tz }
|
|
4818
|
-
}), o = t === "date" &&
|
|
4819
|
-
return
|
|
4777
|
+
}), o = t === "date" && ns(n) ? "instant" : t;
|
|
4778
|
+
return go({
|
|
4820
4779
|
value: o === t ? e : J(`${e}T00:00:00`, a.tz).toISOString(),
|
|
4821
4780
|
metadata: { kind: "raw_temporal", valueKind: o },
|
|
4822
4781
|
format: i
|
|
4823
4782
|
}).text;
|
|
4824
4783
|
}
|
|
4825
|
-
function
|
|
4784
|
+
function ns(e) {
|
|
4826
4785
|
return /HH|mm|ss/.test(e);
|
|
4827
4786
|
}
|
|
4828
|
-
function
|
|
4787
|
+
function Fn(e) {
|
|
4829
4788
|
return e[1] === void 0 || e[0] === e[1] ? e[0] : e.join(Je);
|
|
4830
4789
|
}
|
|
4831
|
-
function
|
|
4832
|
-
const n =
|
|
4790
|
+
function rs(e, t) {
|
|
4791
|
+
const n = Xo.exec(e);
|
|
4833
4792
|
if (n) {
|
|
4834
4793
|
const a = {
|
|
4835
4794
|
year: Number(n[1]),
|
|
4836
4795
|
month: Number(n[2]),
|
|
4837
4796
|
day: Number(n[3])
|
|
4838
4797
|
};
|
|
4839
|
-
return
|
|
4798
|
+
return us(a) ? { kind: "date", date: a } : null;
|
|
4840
4799
|
}
|
|
4841
|
-
const r =
|
|
4800
|
+
const r = Qo.test(e) ? new Date(e.replace(" ", "T")) : Go.test(e) ? J(e.replace(" ", "T"), t) : null;
|
|
4842
4801
|
return r && !Number.isNaN(r.getTime()) ? { kind: "instant", instant: r } : null;
|
|
4843
4802
|
}
|
|
4844
|
-
function
|
|
4803
|
+
function as(e, t) {
|
|
4845
4804
|
return e.kind === "instant" ? e.instant : J(`${He(e.date)}T00:00:00`, t);
|
|
4846
4805
|
}
|
|
4847
|
-
function
|
|
4806
|
+
function is(e, t, n) {
|
|
4848
4807
|
if (e.kind === "date") return e.date;
|
|
4849
|
-
const r =
|
|
4850
|
-
if (r.hour === 0 && r.minute === 0 && r.second === 0 && e.instant.getUTCMilliseconds() === 0) return t === "start" ? a :
|
|
4808
|
+
const r = Bn(e.instant, n), a = { year: r.year, month: r.month, day: r.day };
|
|
4809
|
+
if (r.hour === 0 && r.minute === 0 && r.second === 0 && e.instant.getUTCMilliseconds() === 0) return t === "start" ? a : ss(a, -1);
|
|
4851
4810
|
const o = r.hour === 23 && r.minute === 59 && r.second === 59;
|
|
4852
4811
|
return t === "end" && o ? a : null;
|
|
4853
4812
|
}
|
|
4854
|
-
function
|
|
4855
|
-
return n.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !==
|
|
4813
|
+
function os(e, t, n) {
|
|
4814
|
+
return n.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !== In(t.year, t.month) ? null : e.month === t.month ? "month" : e.month % 3 === 1 && t.month === e.month + 2 ? "quarter" : e.month === 1 && t.month === 12 ? "year" : null;
|
|
4856
4815
|
}
|
|
4857
4816
|
function He(e) {
|
|
4858
4817
|
return `${String(e.year).padStart(4, "0")}-${String(e.month).padStart(2, "0")}-${String(e.day).padStart(2, "0")}`;
|
|
@@ -4861,7 +4820,7 @@ function me(e) {
|
|
|
4861
4820
|
const t = /* @__PURE__ */ new Date(0);
|
|
4862
4821
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(0, 0, 0, 0), t;
|
|
4863
4822
|
}
|
|
4864
|
-
function
|
|
4823
|
+
function ss(e, t) {
|
|
4865
4824
|
const n = me(e);
|
|
4866
4825
|
return n.setUTCDate(n.getUTCDate() + t), {
|
|
4867
4826
|
year: n.getUTCFullYear(),
|
|
@@ -4869,134 +4828,133 @@ function hs(e, t) {
|
|
|
4869
4828
|
day: n.getUTCDate()
|
|
4870
4829
|
};
|
|
4871
4830
|
}
|
|
4872
|
-
function
|
|
4831
|
+
function cs(e, t) {
|
|
4873
4832
|
return e.year === t.year && e.month === t.month && e.day === t.day;
|
|
4874
4833
|
}
|
|
4875
|
-
function
|
|
4834
|
+
function In(e, t) {
|
|
4876
4835
|
return new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
4877
4836
|
}
|
|
4878
|
-
function
|
|
4879
|
-
return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <=
|
|
4837
|
+
function us(e) {
|
|
4838
|
+
return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= In(e.year, e.month);
|
|
4880
4839
|
}
|
|
4881
4840
|
export {
|
|
4882
|
-
|
|
4883
|
-
|
|
4841
|
+
rc as $,
|
|
4842
|
+
Os as A,
|
|
4884
4843
|
we as B,
|
|
4885
4844
|
P as C,
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4845
|
+
Fs as D,
|
|
4846
|
+
Is as E,
|
|
4847
|
+
vi as F,
|
|
4848
|
+
Si as G,
|
|
4849
|
+
Es as H,
|
|
4850
|
+
Mi as I,
|
|
4851
|
+
Cs as J,
|
|
4852
|
+
Zs as K,
|
|
4853
|
+
Wi as L,
|
|
4854
|
+
Ti as M,
|
|
4855
|
+
ji as N,
|
|
4856
|
+
Ys as O,
|
|
4857
|
+
Hi as P,
|
|
4858
|
+
Zi as Q,
|
|
4859
|
+
At as R,
|
|
4860
|
+
Gs as S,
|
|
4861
|
+
zo as T,
|
|
4862
|
+
Zo as U,
|
|
4863
|
+
Ko as V,
|
|
4864
|
+
Qs as W,
|
|
4865
|
+
Js as X,
|
|
4866
|
+
ec as Y,
|
|
4867
|
+
tc as Z,
|
|
4868
|
+
nc as _,
|
|
4869
|
+
xs as a,
|
|
4870
|
+
Io as a$,
|
|
4871
|
+
Ki as a0,
|
|
4872
|
+
Bi as a1,
|
|
4914
4873
|
ee as a2,
|
|
4915
4874
|
fn as a3,
|
|
4916
|
-
|
|
4917
|
-
|
|
4875
|
+
zs as a4,
|
|
4876
|
+
po as a5,
|
|
4918
4877
|
le as a6,
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4878
|
+
xn as a7,
|
|
4879
|
+
Ls as a8,
|
|
4880
|
+
bn as a9,
|
|
4881
|
+
Fo as aA,
|
|
4882
|
+
js as aB,
|
|
4883
|
+
qs as aC,
|
|
4884
|
+
Hs as aD,
|
|
4885
|
+
un as aE,
|
|
4886
|
+
Ss as aF,
|
|
4887
|
+
Ke as aG,
|
|
4888
|
+
Sa as aH,
|
|
4889
|
+
ki as aI,
|
|
4890
|
+
ur as aJ,
|
|
4891
|
+
L as aK,
|
|
4892
|
+
nn as aL,
|
|
4893
|
+
se as aM,
|
|
4894
|
+
p as aN,
|
|
4895
|
+
Tr as aO,
|
|
4896
|
+
ge as aP,
|
|
4897
|
+
ct as aQ,
|
|
4898
|
+
re as aR,
|
|
4899
|
+
vs as aS,
|
|
4900
|
+
Jt as aT,
|
|
4901
|
+
gr as aU,
|
|
4902
|
+
Co as aV,
|
|
4903
|
+
$t as aW,
|
|
4904
|
+
O as aX,
|
|
4905
|
+
Nt as aY,
|
|
4906
|
+
kt as aZ,
|
|
4907
|
+
Eo as a_,
|
|
4908
|
+
Sn as aa,
|
|
4909
|
+
Ws as ab,
|
|
4910
|
+
Nn as ac,
|
|
4911
|
+
eo as ad,
|
|
4912
|
+
A as ae,
|
|
4954
4913
|
Ge as af,
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4914
|
+
gn as ag,
|
|
4915
|
+
Us as ah,
|
|
4916
|
+
As as ai,
|
|
4917
|
+
oo as aj,
|
|
4918
|
+
Rs as ak,
|
|
4919
|
+
uo as al,
|
|
4920
|
+
Dn as am,
|
|
4921
|
+
go as an,
|
|
4922
|
+
yo as ao,
|
|
4923
|
+
ac as ap,
|
|
4924
|
+
Jo as aq,
|
|
4925
|
+
ic as ar,
|
|
4926
|
+
Xs as as,
|
|
4927
|
+
_i as at,
|
|
4928
|
+
Ks as au,
|
|
4929
|
+
Vs as av,
|
|
4930
|
+
Bs as aw,
|
|
4931
|
+
Po as ax,
|
|
4932
|
+
Yo as ay,
|
|
4933
|
+
Ds as az,
|
|
4975
4934
|
Fi as b,
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
ks as c,
|
|
4935
|
+
J as b0,
|
|
4936
|
+
Ts as c,
|
|
4979
4937
|
qe as d,
|
|
4980
4938
|
Bt as e,
|
|
4981
|
-
|
|
4939
|
+
Vo as f,
|
|
4982
4940
|
Xt as g,
|
|
4983
4941
|
Gt as h,
|
|
4984
4942
|
G as i,
|
|
4985
4943
|
Ze as j,
|
|
4986
|
-
|
|
4987
|
-
|
|
4944
|
+
lr as k,
|
|
4945
|
+
bs as l,
|
|
4988
4946
|
qt as m,
|
|
4989
4947
|
Zt as n,
|
|
4990
|
-
|
|
4948
|
+
yi as o,
|
|
4991
4949
|
Xe as p,
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4950
|
+
pi as q,
|
|
4951
|
+
zi as r,
|
|
4952
|
+
Ns as s,
|
|
4953
|
+
Ms as t,
|
|
4954
|
+
ks as u,
|
|
4955
|
+
_s as v,
|
|
4956
|
+
Ps as w,
|
|
4999
4957
|
Be as x,
|
|
5000
4958
|
ln as y,
|
|
5001
|
-
|
|
4959
|
+
$s as z
|
|
5002
4960
|
};
|