@knime/jsonforms 2.0.6 → 2.0.7
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/CHANGELOG.md +6 -0
- package/dist/{AnyOfTwinlist-DpQ8IIsj.js → AnyOfTwinlist-BWT2fbb3.js} +1 -1
- package/dist/{CheckboxControl-BuKizJs3.js → CheckboxControl-CHh4Bgui.js} +1 -1
- package/dist/{CheckboxesControl-B_Uq_ZAJ.js → CheckboxesControl-BSLiqKmU.js} +2 -2
- package/dist/{ColorControl-C-Ek6eUZ.js → ColorControl-DIxnkYuc.js} +1 -1
- package/dist/{ColorPreviewControl-DFazuNfi.js → ColorPreviewControl-Bp-o32Iw.js} +1 -1
- package/dist/{ComboBoxControl--ss3HRk6.js → ComboBoxControl-BKD1Jsqu.js} +4 -4
- package/dist/{DateControl-CpQlIDGG.js → DateControl-DZR6A9Pw.js} +5 -5
- package/dist/{DateTimeControl-DBnBOANd.js → DateTimeControl-DSbh8cnB.js} +17 -17
- package/dist/{DateTimeFormatPickerControl-C41ya__v.js → DateTimeFormatPickerControl-c0BcQqcJ.js} +1 -1
- package/dist/{DropdownControl-CJVeHgy6.js → DropdownControl-DTeKvwf9.js} +2 -2
- package/dist/{ExecutorCoresControl-CMy8gNUz.js → ExecutorCoresControl-CC1xmKP0.js} +1 -1
- package/dist/{ExecutorMemoryControl-DCFIlqtN.js → ExecutorMemoryControl-D6ikcST7.js} +1 -1
- package/dist/{FileUploadControl-BMuYfZth.js → FileUploadControl-4BM5Phum.js} +23 -23
- package/dist/{GridSelectionControl-B7HYdcOq.js → GridSelectionControl-DwIC38oW.js} +14 -14
- package/dist/{HorizontalLayout-BgFLIrFZ.js → HorizontalLayout-D2u6cL6b.js} +1 -1
- package/dist/{IntegerControl-NZMpoiWB.js → IntegerControl-D7LDiFl6.js} +1 -1
- package/dist/{IntervalControl-jO1PCriP.js → IntervalControl-Bc4F3Xdk.js} +4 -4
- package/dist/{LinkControl-BUhwvss6.js → LinkControl-MgE4MxMc.js} +1 -1
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-D3t0WrLt.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-3MI-jTRE.js} +3 -3
- package/dist/{ManualTwinlistControl-Dss7i29Z.js → ManualTwinlistControl-Bzf2L9k2.js} +3 -3
- package/dist/{MultiSelectListBoxControl-CR8k2XnN.js → MultiSelectListBoxControl-CakF5j00.js} +3 -3
- package/dist/{MultimodeTwinlistControl-CVLXJUku.js → MultimodeTwinlistControl-DGXJ2vlF.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DNkbXVA-.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DLvhRMy_.js} +3 -3
- package/dist/{NameFilter-BIpnMaYA.js → NameFilter-CMj57iqS.js} +1 -1
- package/dist/{NumberControl-BTK11xoU.js → NumberControl-DpNFQT59.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DimtsHUM.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B2q-rLS0.js} +4 -4
- package/dist/{OneOfDropdown-GQw_8PGk.js → OneOfDropdown-BhTw9UTy.js} +1 -1
- package/dist/{ProgressButtonControl-DIL9klrt.js → ProgressButtonControl-CaKbU4OR.js} +1 -1
- package/dist/{RadioButtonsWithDescriptionControl-dtTEWUOU.js → RadioButtonsWithDescriptionControl-Itxc-S8W.js} +1 -1
- package/dist/{RadioControl-DXT55XH9.js → RadioControl-DFBhxoqk.js} +1 -1
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BIAddwf1.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DsnqbPaE.js} +2 -2
- package/dist/{ResourceControlBase-D_DeU0M7.js → ResourceControlBase-CN3otJUN.js} +11 -11
- package/dist/{RichTextControl-DVqyBt2N.js → RichTextControl-B8axT3L6.js} +3659 -3383
- package/dist/{SectionHeading-BuHP9vWb.js → SectionHeading-PcQDEMw8.js} +1 -1
- package/dist/{SectionLayout-Dq_Q_onV.js → SectionLayout-Cb3CKEJv.js} +3 -3
- package/dist/{SettingsSubPanel-CrPyrGuw.js → SettingsSubPanel-DfDvzpv1.js} +1 -1
- package/dist/{SettingsSubPanelLayout-BHxJUUUp.js → SettingsSubPanelLayout-DcMYD3Dk.js} +6 -6
- package/dist/{SimpleButtonControl-BnEdNJwg.js → SimpleButtonControl-dk0t1B30.js} +4 -4
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-BFx3A36I.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_c79c6b71_lang-Bc77QOha.js} +14153 -14296
- package/dist/{SimpleTwinlistControl-CaJn0fzZ.js → SimpleTwinlistControl-2_YaUBF9.js} +2 -2
- package/dist/{SingleSelectControl-DIy8roLi.js → SingleSelectControl-Db8LSSdt.js} +2 -2
- package/dist/{SingleSelectListBoxControl-CFRxgjJG.js → SingleSelectListBoxControl-rqy5GGpS.js} +3 -3
- package/dist/{SortListControl-D4uy4D6o.js → SortListControl-CaXDWJG2.js} +1 -1
- package/dist/{StyledListItem-DeGphOSn.js → StyledListItem-B-tUDjVq.js} +1 -1
- package/dist/{TeamAndSpacesControl-DCtGaP89.js → TeamAndSpacesControl-Ba387g7f.js} +5 -5
- package/dist/{TeamResourceControl-CYVRfMUU.js → TeamResourceControl-_UStZOJ-.js} +1 -1
- package/dist/{TextAreaControl-Bl5z2I_O.js → TextAreaControl-Ddj1TNgo.js} +1 -1
- package/dist/{TextControl-Dh8XWsob.js → TextControl-BA1wf4s2.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bb6TniOt.js → TextControl.vue_vue_type_script_setup_true_lang-BxwFwEta.js} +2 -2
- package/dist/{TimeControl-ChMjQdLZ.js → TimeControl-CBx2TvoX.js} +9 -9
- package/dist/{TimeframesControl-fWDWqU_P.js → TimeframesControl-357aUYqM.js} +1 -1
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Rdgf6xB4.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-WGrxt-Wk.js} +2 -2
- package/dist/{TypedStringFilter-DkmPm7pw.js → TypedStringFilter-OSRWyFDV.js} +1 -1
- package/dist/{ValueSwitchControl-Szm78_yO.js → ValueSwitchControl-Bg6EYu6J.js} +1 -1
- package/dist/{VerticalLayout-CS4CM8gv.js → VerticalLayout-Nlilm29U.js} +2 -2
- package/dist/{VerticalLayoutBase-D3xzhzED.js → VerticalLayoutBase-BnIOp7PD.js} +1 -1
- package/dist/{ZonedDateTimeControl-DtHa5dcv.js → ZonedDateTimeControl-BNg5Vtlp.js} +15 -15
- package/dist/{_Uint8Array-D2PBFojq.js → _Uint8Array-CIVNqgab.js} +1 -1
- package/dist/index-_VUHzju5.js +3210 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{plainDateTimeUtils-CR0UhpkD.js → plainDateTimeUtils-BZSKqp9i.js} +1 -1
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +1 -2
- package/dist/testing.js +2 -2
- package/dist/{useBuiltinValidations-BDOuGAvI.js → useBuiltinValidations-BYaM-HJV.js} +1 -1
- package/dist/{usePossibleValues-C-Cj9NbP.js → usePossibleValues-daiVbHTd.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-C0vVgrlt.js → useUnknownValuesInTwinlist-aYfJYCBr.js} +1 -1
- package/package.json +6 -6
- package/dist/classApi-CHpAZrj3.js +0 -3328
|
@@ -0,0 +1,3210 @@
|
|
|
1
|
+
const Na = globalThis.Temporal, Ta = (n, t) => `Non-positive ${n}: ${t}`, Da = (n, t) => `Non-finite ${n}: ${t}`, Sa = (n) => `Cannot convert bigint to ${n}`, ba = "Invalid object", kr = (n, t, e, o) => Jt(n, t) + `; must be between ${e}-${o}`, Jt = (n, t) => `Invalid ${n}: ${t}`, Fa = 1e3, Oa = 1e6, Ca = 1e9, Pa = 6e10, Za = 36e11;
|
|
2
|
+
function Dn(n) {
|
|
3
|
+
return n === void 0 ? /* @__PURE__ */ Object.create(null) : zt(n);
|
|
4
|
+
}
|
|
5
|
+
function fi(n, t = "number") {
|
|
6
|
+
if (typeof n == "bigint")
|
|
7
|
+
throw new TypeError(Sa(t));
|
|
8
|
+
if (n = Number(n), !Number.isFinite(n))
|
|
9
|
+
throw new RangeError(Da(t, n));
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function J(n, t) {
|
|
13
|
+
return Math.trunc(fi(n, t)) || 0;
|
|
14
|
+
}
|
|
15
|
+
function Rr(n, t) {
|
|
16
|
+
return Ea(J(n, t), t);
|
|
17
|
+
}
|
|
18
|
+
function Ea(n, t = "number") {
|
|
19
|
+
if (n <= 0)
|
|
20
|
+
throw new RangeError(Ta(t, n));
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function wa(n, t, e) {
|
|
24
|
+
return Math.min(Math.max(n, t), e);
|
|
25
|
+
}
|
|
26
|
+
function No(n) {
|
|
27
|
+
return n !== null && (typeof n == "object" || typeof n == "function");
|
|
28
|
+
}
|
|
29
|
+
function zt(n) {
|
|
30
|
+
if (!No(n))
|
|
31
|
+
throw new TypeError(ba);
|
|
32
|
+
return n;
|
|
33
|
+
}
|
|
34
|
+
const Ce = Jt, Xt = (n) => `Missing ${n}`, li = (n) => "No valid fields: " + n.join(), Ba = "Invalid bag", mi = (n, t, e) => Jt(n, t) + "; must be " + Object.keys(e).join(), Ya = "Cannot use valueOf", ka = "Invalid calling context", Pe = (n) => "Missing year" + (n ? "/era/eraYear" : ""), nt = "Invalid leap month", Ra = (n) => Jt("Calendar", n), Aa = (n, t) => `Unknown calendar ${n}; might need ${t}`, hi = (n) => Jt("TimeZone", n), xn = "Out-of-bounds date", yi = (n) => `Cannot parse: ${n}`, Cn = (n) => `Invalid substring: ${n}`, To = wa, nn = No;
|
|
35
|
+
function h(n) {
|
|
36
|
+
throw new RangeError(n);
|
|
37
|
+
}
|
|
38
|
+
function S(n) {
|
|
39
|
+
throw new TypeError(n);
|
|
40
|
+
}
|
|
41
|
+
function so(n, t, e, o, r) {
|
|
42
|
+
return In(t, ((i, c) => {
|
|
43
|
+
const a = i[c];
|
|
44
|
+
return a === void 0 && S(Xt(c)), a;
|
|
45
|
+
})(n, t), e, o, r);
|
|
46
|
+
}
|
|
47
|
+
function In(n, t, e, o, r, i) {
|
|
48
|
+
const c = To(t, e, o);
|
|
49
|
+
return r && t !== c && h(((a, s, u, d, f) => f ? kr(a, f[s], f[u], f[d]) : kr(a, s, u, d))(n, t, e, o, i)), c;
|
|
50
|
+
}
|
|
51
|
+
function Mt(n, t = Map) {
|
|
52
|
+
const e = new t();
|
|
53
|
+
return (o, ...r) => {
|
|
54
|
+
if (e.has(o))
|
|
55
|
+
return e.get(o);
|
|
56
|
+
const i = n(o, ...r);
|
|
57
|
+
return e.set(o, i), i;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const xa = (n) => Do({
|
|
61
|
+
name: n
|
|
62
|
+
}, 1), Do = (n, t) => Dt((e) => ({
|
|
63
|
+
value: e,
|
|
64
|
+
configurable: 1,
|
|
65
|
+
writable: !t
|
|
66
|
+
}), n), So = (n) => ({
|
|
67
|
+
[Symbol.toStringTag]: {
|
|
68
|
+
value: n,
|
|
69
|
+
configurable: 1
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
function Dt(n, t) {
|
|
73
|
+
const e = {};
|
|
74
|
+
for (const o in t)
|
|
75
|
+
e[o] = n(t[o], o);
|
|
76
|
+
return e;
|
|
77
|
+
}
|
|
78
|
+
function Kt(n, t) {
|
|
79
|
+
const e = {};
|
|
80
|
+
for (const o of n)
|
|
81
|
+
e[o] = t;
|
|
82
|
+
return e;
|
|
83
|
+
}
|
|
84
|
+
function bo(n) {
|
|
85
|
+
const t = {};
|
|
86
|
+
for (const e of n)
|
|
87
|
+
t[e] = (o) => o[e];
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
function Mn(n, t, e = /* @__PURE__ */ Object.create(null)) {
|
|
91
|
+
for (const o of n)
|
|
92
|
+
e[o] = t[o];
|
|
93
|
+
return e;
|
|
94
|
+
}
|
|
95
|
+
function pi(n, t, e) {
|
|
96
|
+
for (const o of n)
|
|
97
|
+
if (t[o] !== e[o])
|
|
98
|
+
return 0;
|
|
99
|
+
return 1;
|
|
100
|
+
}
|
|
101
|
+
function ja(n, t, e) {
|
|
102
|
+
const o = {
|
|
103
|
+
...e
|
|
104
|
+
};
|
|
105
|
+
for (let r = 0; r < t; r++)
|
|
106
|
+
o[n[r]] = 0;
|
|
107
|
+
return o;
|
|
108
|
+
}
|
|
109
|
+
function Y(n, ...t) {
|
|
110
|
+
return (...e) => n(...t, ...e);
|
|
111
|
+
}
|
|
112
|
+
function Ar() {
|
|
113
|
+
}
|
|
114
|
+
function xr(n) {
|
|
115
|
+
return n[0].toUpperCase() + n.substring(1);
|
|
116
|
+
}
|
|
117
|
+
function k(...n) {
|
|
118
|
+
return [].concat(...n).sort();
|
|
119
|
+
}
|
|
120
|
+
function St(n) {
|
|
121
|
+
return new RegExp(`^${n}$`, "i");
|
|
122
|
+
}
|
|
123
|
+
function Fo(n) {
|
|
124
|
+
return parseInt(n.padEnd(9, "0"));
|
|
125
|
+
}
|
|
126
|
+
function Oo(n) {
|
|
127
|
+
return n && n !== "+" ? -1 : 1;
|
|
128
|
+
}
|
|
129
|
+
function vt(n) {
|
|
130
|
+
return n === void 0 ? 0 : parseInt(n);
|
|
131
|
+
}
|
|
132
|
+
function Me(n, t) {
|
|
133
|
+
return String(t).padStart(n, "0");
|
|
134
|
+
}
|
|
135
|
+
const dn = /* @__PURE__ */ Y(Me, 2);
|
|
136
|
+
function Pn(n, t) {
|
|
137
|
+
return Math.sign(n - t);
|
|
138
|
+
}
|
|
139
|
+
function P(n, t) {
|
|
140
|
+
return n < t ? -1 : n > t ? 1 : 0;
|
|
141
|
+
}
|
|
142
|
+
function gi(n, t) {
|
|
143
|
+
const e = n / t;
|
|
144
|
+
return n % t < 0n ? e - 1n : e;
|
|
145
|
+
}
|
|
146
|
+
function Co(n, t) {
|
|
147
|
+
const e = gi(n, t);
|
|
148
|
+
return [e, n - e * t];
|
|
149
|
+
}
|
|
150
|
+
function gn(n, t) {
|
|
151
|
+
return [Math.floor(n / t), Ze(n, t)];
|
|
152
|
+
}
|
|
153
|
+
function Ze(n, t) {
|
|
154
|
+
return (n % t + t) % t;
|
|
155
|
+
}
|
|
156
|
+
function bt(n, t) {
|
|
157
|
+
return Math.trunc(n / t) || 0;
|
|
158
|
+
}
|
|
159
|
+
function Po(n, t) {
|
|
160
|
+
return n % t || 0;
|
|
161
|
+
}
|
|
162
|
+
function vi(n, t = 1) {
|
|
163
|
+
return t * (0.5 + n / 5);
|
|
164
|
+
}
|
|
165
|
+
function ge(n) {
|
|
166
|
+
return Math.abs(n % 1) === 0.5;
|
|
167
|
+
}
|
|
168
|
+
const Ii = "iso8601", Ua = "gregory", La = {
|
|
169
|
+
bce: -1,
|
|
170
|
+
ce: 0
|
|
171
|
+
};
|
|
172
|
+
function Mi(n) {
|
|
173
|
+
const t = n.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
174
|
+
return t === "bc" || t === "b" ? "bce" : t === "ad" || t === "a" ? "ce" : t;
|
|
175
|
+
}
|
|
176
|
+
const fn = void 0, Wa = 0;
|
|
177
|
+
function Nn(n) {
|
|
178
|
+
return n === fn ? "iso8601" : n === 0 ? "gregory" : n.id;
|
|
179
|
+
}
|
|
180
|
+
const $a = /^M(\d{2})(L?)$/;
|
|
181
|
+
function Ni(n) {
|
|
182
|
+
const t = $a.exec(n);
|
|
183
|
+
return t || h(((e) => `Invalid monthCode: ${e}`)(n)), [parseInt(t[1]), !!t[2]];
|
|
184
|
+
}
|
|
185
|
+
function Ti(n, t) {
|
|
186
|
+
return "M" + dn(n) + (t ? "L" : "");
|
|
187
|
+
}
|
|
188
|
+
function uo(n, t, e) {
|
|
189
|
+
return n + (t || e && n >= e ? 1 : 0);
|
|
190
|
+
}
|
|
191
|
+
const fo = {
|
|
192
|
+
nanosecond: 0,
|
|
193
|
+
microsecond: 1,
|
|
194
|
+
millisecond: 2,
|
|
195
|
+
second: 3,
|
|
196
|
+
minute: 4,
|
|
197
|
+
hour: 5,
|
|
198
|
+
day: 6,
|
|
199
|
+
week: 7,
|
|
200
|
+
month: 8,
|
|
201
|
+
year: 9
|
|
202
|
+
}, Zo = /* @__PURE__ */ Object.keys(fo), Qt = Fa, ne = Oa, $n = Ca, te = Pa, ee = Za, wn = 864e11, ln = [1, Qt, ne, $n, te, ee, wn], qa = /* @__PURE__ */ BigInt(Qt), Ee = /* @__PURE__ */ BigInt(ne), et = /* @__PURE__ */ BigInt($n), _a = /* @__PURE__ */ BigInt(te), Ga = /* @__PURE__ */ BigInt(ee), O = /* @__PURE__ */ BigInt(wn);
|
|
203
|
+
function Di(n, t) {
|
|
204
|
+
const e = Number(n / O), o = Number(n % O);
|
|
205
|
+
return e * (wn / t) + (Math.trunc(o / t) + o % t / t);
|
|
206
|
+
}
|
|
207
|
+
const $ = /* @__PURE__ */ Zo.slice(0, 6), Eo = /* @__PURE__ */ bo($), we = ["year"], it = ["day"], wo = ["day", "month", "year"], Be = ["offset"], Bo = ["timeZone"], Ft = ["era", "eraYear"], Va = ["era", "eraYear", "year"], Si = ["month", "monthCode"], Ha = ["day", "month", "monthCode"], lo = /* @__PURE__ */ k($), Ja = /* @__PURE__ */ k(Ft, we), oe = /* @__PURE__ */ k(Si, we), bi = /* @__PURE__ */ k(Ft, oe), re = /* @__PURE__ */ k(["monthCode"], we), Fi = /* @__PURE__ */ k(Ft, re), Oi = /* @__PURE__ */ k(it, ["monthCode"]), ct = /* @__PURE__ */ k(it, oe), at = /* @__PURE__ */ k(it, Ft, oe), Ci = /* @__PURE__ */ k(ct, $), Pi = /* @__PURE__ */ k(at, $), za = /* @__PURE__ */ k(ct, $, Be), Xa = /* @__PURE__ */ k(at, $, Be), Zi = /* @__PURE__ */ k(ct, $, Be, Bo), Ei = /* @__PURE__ */ k(at, $, Be, Bo), Ka = /* @__PURE__ */ k(it, re), Qa = /* @__PURE__ */ k(it, Ft, re), mn = /* @__PURE__ */ Kt($, 0);
|
|
208
|
+
function Ye(n) {
|
|
209
|
+
return ke(n, 1), n;
|
|
210
|
+
}
|
|
211
|
+
const ns = {
|
|
212
|
+
hour: 23,
|
|
213
|
+
minute: 59,
|
|
214
|
+
second: 59
|
|
215
|
+
};
|
|
216
|
+
function ke(n, t) {
|
|
217
|
+
const e = {};
|
|
218
|
+
for (const o of $)
|
|
219
|
+
e[o] = In(o, n[o], 0, ns[o] || 999, t);
|
|
220
|
+
return e;
|
|
221
|
+
}
|
|
222
|
+
function K(n) {
|
|
223
|
+
return Yo(n) * $n + Bi(n);
|
|
224
|
+
}
|
|
225
|
+
function wi(n) {
|
|
226
|
+
return 1e3 * Yo(n) + n.millisecond;
|
|
227
|
+
}
|
|
228
|
+
function Yo(n) {
|
|
229
|
+
return 3600 * n.hour + 60 * n.minute + n.second;
|
|
230
|
+
}
|
|
231
|
+
function Bi(n) {
|
|
232
|
+
return n.millisecond * ne + n.microsecond * Qt + n.nanosecond;
|
|
233
|
+
}
|
|
234
|
+
function ko(n) {
|
|
235
|
+
const [t, e] = gn(n, wn);
|
|
236
|
+
return [Yi(e), t];
|
|
237
|
+
}
|
|
238
|
+
function Yi(n) {
|
|
239
|
+
const [t, e] = gn(n, ne), [o, r] = gn(e, Qt);
|
|
240
|
+
return ts(t, o, r);
|
|
241
|
+
}
|
|
242
|
+
function ts(n, t = 0, e = 0) {
|
|
243
|
+
const [o, r] = gn(n, 36e5), [i, c] = gn(r, 6e4), [a, s] = gn(c, 1e3);
|
|
244
|
+
return {
|
|
245
|
+
hour: o,
|
|
246
|
+
minute: i,
|
|
247
|
+
second: a,
|
|
248
|
+
millisecond: s,
|
|
249
|
+
microsecond: t,
|
|
250
|
+
nanosecond: e
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function jr(n) {
|
|
254
|
+
const [t, e] = Co(n, et);
|
|
255
|
+
return [Number(t), Number(e)];
|
|
256
|
+
}
|
|
257
|
+
function vn(n) {
|
|
258
|
+
return tt(n) + BigInt(K(n));
|
|
259
|
+
}
|
|
260
|
+
function es(n) {
|
|
261
|
+
return Re(n) + wi(n);
|
|
262
|
+
}
|
|
263
|
+
function tt(n) {
|
|
264
|
+
return BigInt(Tn(n)) * O;
|
|
265
|
+
}
|
|
266
|
+
function Re(n) {
|
|
267
|
+
return 864e5 * Tn(n);
|
|
268
|
+
}
|
|
269
|
+
function Tn(n) {
|
|
270
|
+
return Lt(n.year, n.month, n.day);
|
|
271
|
+
}
|
|
272
|
+
function Lt(n, t = 1, e = 1) {
|
|
273
|
+
const o = t - 1;
|
|
274
|
+
return n += Math.floor(o / 12), t = Ze(o, 12), Date.UTC(n % 400 - 400, t, 0) / 864e5 + 146097 * (bt(n, 400) + 1) + e;
|
|
275
|
+
}
|
|
276
|
+
function ie(n) {
|
|
277
|
+
const [t, e] = Co(n, O);
|
|
278
|
+
return {
|
|
279
|
+
...ki(Number(t)),
|
|
280
|
+
...Yi(Number(e))
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function ki(n) {
|
|
284
|
+
const t = new Date(864e5 * Ze(n, 146097));
|
|
285
|
+
return {
|
|
286
|
+
year: t.getUTCFullYear() + 400 * Math.floor(n / 146097),
|
|
287
|
+
month: t.getUTCMonth() + 1,
|
|
288
|
+
day: t.getUTCDate()
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const os = 1972;
|
|
292
|
+
function rs(n) {
|
|
293
|
+
return [n, 0];
|
|
294
|
+
}
|
|
295
|
+
function mo(n, t) {
|
|
296
|
+
if (!t)
|
|
297
|
+
return {
|
|
298
|
+
year: 1972,
|
|
299
|
+
month: n
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
function is(n, t, e) {
|
|
303
|
+
return {
|
|
304
|
+
year: n,
|
|
305
|
+
month: t,
|
|
306
|
+
day: e
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
function Ri(n, t) {
|
|
310
|
+
switch (t) {
|
|
311
|
+
case 2:
|
|
312
|
+
return Ae(n) ? 29 : 28;
|
|
313
|
+
case 4:
|
|
314
|
+
case 6:
|
|
315
|
+
case 9:
|
|
316
|
+
case 11:
|
|
317
|
+
return 30;
|
|
318
|
+
}
|
|
319
|
+
return 31;
|
|
320
|
+
}
|
|
321
|
+
function cs(n) {
|
|
322
|
+
return Ae(n) ? 366 : 365;
|
|
323
|
+
}
|
|
324
|
+
function Ae(n) {
|
|
325
|
+
return n % 4 == 0 && (n % 100 != 0 || n % 400 == 0);
|
|
326
|
+
}
|
|
327
|
+
function Ai(n, t, e) {
|
|
328
|
+
return n += bt(e, 12), (t += Po(e, 12)) < 1 ? (n--, t += 12) : t > 12 && (n++, t -= 12), {
|
|
329
|
+
year: n,
|
|
330
|
+
month: t
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function as(n, t, e, o) {
|
|
334
|
+
return 12 * (e - n) + o - t;
|
|
335
|
+
}
|
|
336
|
+
function Ro(n) {
|
|
337
|
+
return Ze(Lt(n.year, n.month, n.day) + 4, 7) || 7;
|
|
338
|
+
}
|
|
339
|
+
function xi(n) {
|
|
340
|
+
return Lt(n.year, n.month, n.day) - Lt(n.year) + 1;
|
|
341
|
+
}
|
|
342
|
+
function ji(n) {
|
|
343
|
+
let t = n.year, e = Math.floor((xi(n) - Ro(n) + 10) / 7), o = oo(t);
|
|
344
|
+
return e < 1 ? e = o = oo(--t) : e > o && (e = 1, o = oo(++t)), {
|
|
345
|
+
weekOfYear: e,
|
|
346
|
+
yearOfWeek: t,
|
|
347
|
+
Ie: o
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function oo(n) {
|
|
351
|
+
const t = Ro({
|
|
352
|
+
year: n,
|
|
353
|
+
month: 1,
|
|
354
|
+
day: 1
|
|
355
|
+
});
|
|
356
|
+
return t === 4 || t === 3 && Ae(n) ? 53 : 52;
|
|
357
|
+
}
|
|
358
|
+
function ss({ year: n }) {
|
|
359
|
+
return n < 1 ? {
|
|
360
|
+
era: "bce",
|
|
361
|
+
eraYear: 1 - n
|
|
362
|
+
} : {
|
|
363
|
+
era: "ce",
|
|
364
|
+
eraYear: n
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function xe(n) {
|
|
368
|
+
return qn(n), Ye(n);
|
|
369
|
+
}
|
|
370
|
+
function qn(n) {
|
|
371
|
+
return Ui(n, 1), n;
|
|
372
|
+
}
|
|
373
|
+
function Ur(n) {
|
|
374
|
+
return pi(wo, n, Ui(n));
|
|
375
|
+
}
|
|
376
|
+
function Ui(n, t) {
|
|
377
|
+
const { year: e } = n, o = so(n, "month", 1, 12, t);
|
|
378
|
+
return {
|
|
379
|
+
year: e,
|
|
380
|
+
month: o,
|
|
381
|
+
day: so(n, "day", 1, Ri(e, o), t)
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function F(n, t) {
|
|
385
|
+
return n ? n.ie(t) : t;
|
|
386
|
+
}
|
|
387
|
+
function ot(n, t, e) {
|
|
388
|
+
return n ? n.O(t, e) : rs(e);
|
|
389
|
+
}
|
|
390
|
+
function Ne(n, t) {
|
|
391
|
+
return n === 0 ? ss(t) : n ? n.h(t) : {};
|
|
392
|
+
}
|
|
393
|
+
function rt(n, t, e, o) {
|
|
394
|
+
return n ? n.je(t, e, o) : is(t, e, o);
|
|
395
|
+
}
|
|
396
|
+
function Wt(n, t) {
|
|
397
|
+
return n ? n.k(t) : 12;
|
|
398
|
+
}
|
|
399
|
+
function $t(n, t, e) {
|
|
400
|
+
return n ? n.p(t, e) : Ri(t, e);
|
|
401
|
+
}
|
|
402
|
+
function Ao(n, t) {
|
|
403
|
+
const { year: e, month: o } = F(n, t), [r, i] = ot(n, e, o);
|
|
404
|
+
return Ti(r, i);
|
|
405
|
+
}
|
|
406
|
+
function Li(n, t) {
|
|
407
|
+
const { year: e } = F(n, t);
|
|
408
|
+
return n ? n.u(e) : Ae(e);
|
|
409
|
+
}
|
|
410
|
+
function Wi(n, t) {
|
|
411
|
+
const { year: e } = F(n, t);
|
|
412
|
+
return Wt(n, e);
|
|
413
|
+
}
|
|
414
|
+
function $i(n, t) {
|
|
415
|
+
const { year: e, month: o } = F(n, t);
|
|
416
|
+
return $t(n, e, o);
|
|
417
|
+
}
|
|
418
|
+
function qi(n, t) {
|
|
419
|
+
const { year: e } = F(n, t);
|
|
420
|
+
return n ? n.j(e) : cs(e);
|
|
421
|
+
}
|
|
422
|
+
function us(n, t) {
|
|
423
|
+
if (!n)
|
|
424
|
+
return xi(t);
|
|
425
|
+
const { year: e } = F(n, t), o = rt(n, e, 1, 1);
|
|
426
|
+
return Tn(t) - Tn(o) + 1;
|
|
427
|
+
}
|
|
428
|
+
function ds(n, t) {
|
|
429
|
+
return n === fn ? ji(t).weekOfYear : void 0;
|
|
430
|
+
}
|
|
431
|
+
function fs(n, t) {
|
|
432
|
+
return n === fn ? ji(t).yearOfWeek : void 0;
|
|
433
|
+
}
|
|
434
|
+
const C = /* @__PURE__ */ Zo.map((n) => n + "s"), ls = /* @__PURE__ */ bo(C), _i = /* @__PURE__ */ k(C), ms = /* @__PURE__ */ C.slice(0, 6), Gi = /* @__PURE__ */ C.slice(6), hs = /* @__PURE__ */ Gi.slice(1), ys = /* @__PURE__ */ C.reduce((n, t, e) => (n[t] = e, n), {}), B = /* @__PURE__ */ Kt(C, 0), xo = /* @__PURE__ */ Kt(ms, 0), jo = /* @__PURE__ */ Y(ja, C);
|
|
435
|
+
function Vi(n, t) {
|
|
436
|
+
return t == null && h(Xt(n)), t;
|
|
437
|
+
}
|
|
438
|
+
const W = /* @__PURE__ */ Y(ps, "string");
|
|
439
|
+
function ps(n, t, e = n) {
|
|
440
|
+
return typeof t !== n && S(Ce(e, t)), t;
|
|
441
|
+
}
|
|
442
|
+
function gs(n, t = "number") {
|
|
443
|
+
return Number.isInteger(n) || h(((e, o) => `Non-integer ${e}: ${o}`)(t, n)), n || 0;
|
|
444
|
+
}
|
|
445
|
+
function Uo(n) {
|
|
446
|
+
return typeof n == "symbol" && S("Cannot convert Symbol to string"), String(n);
|
|
447
|
+
}
|
|
448
|
+
function Lo(n, t) {
|
|
449
|
+
return No(n) ? String(n) : W(n, t);
|
|
450
|
+
}
|
|
451
|
+
function Wo(n) {
|
|
452
|
+
return typeof n == "boolean" ? BigInt(n ? 1 : 0) : typeof n == "string" ? BigInt(n) : (typeof n != "bigint" && S(`Invalid bigint: ${n}`), n);
|
|
453
|
+
}
|
|
454
|
+
function $o(n, t) {
|
|
455
|
+
return gs(fi(n, t), t);
|
|
456
|
+
}
|
|
457
|
+
function je(n, t) {
|
|
458
|
+
return typeof n == "string" ? ((e, o) => {
|
|
459
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
460
|
+
return r[e] = o, r;
|
|
461
|
+
})(t, n) : zt(n);
|
|
462
|
+
}
|
|
463
|
+
const Zn = "smallestUnit", vs = {
|
|
464
|
+
constrain: 0,
|
|
465
|
+
reject: 1
|
|
466
|
+
}, Is = {
|
|
467
|
+
compatible: 0,
|
|
468
|
+
reject: 1,
|
|
469
|
+
earlier: 2,
|
|
470
|
+
later: 3
|
|
471
|
+
}, Ms = {
|
|
472
|
+
reject: 0,
|
|
473
|
+
use: 1,
|
|
474
|
+
prefer: 2,
|
|
475
|
+
ignore: 3
|
|
476
|
+
}, Ns = {
|
|
477
|
+
auto: 0,
|
|
478
|
+
never: 1,
|
|
479
|
+
critical: 2,
|
|
480
|
+
always: 3
|
|
481
|
+
}, Ts = {
|
|
482
|
+
auto: 0,
|
|
483
|
+
never: 1,
|
|
484
|
+
critical: 2
|
|
485
|
+
}, Ds = {
|
|
486
|
+
auto: 0,
|
|
487
|
+
never: 1
|
|
488
|
+
}, Ss = {
|
|
489
|
+
floor: 0,
|
|
490
|
+
halfFloor: 1,
|
|
491
|
+
ceil: 2,
|
|
492
|
+
halfCeil: 3,
|
|
493
|
+
trunc: 4,
|
|
494
|
+
halfTrunc: 5,
|
|
495
|
+
expand: 6,
|
|
496
|
+
halfExpand: 7,
|
|
497
|
+
halfEven: 8
|
|
498
|
+
}, bs = [Math.floor, (n) => ge(n) ? Math.floor(n) : Math.round(n), Math.ceil, (n) => ge(n) ? Math.ceil(n) : Math.round(n), Math.trunc, (n) => ge(n) ? Math.trunc(n) || 0 : Math.round(n), (n) => n < 0 ? Math.floor(n) : Math.ceil(n), (n) => Math.sign(n) * Math.round(Math.abs(n)) || 0, (n) => ge(n) ? (n = Math.trunc(n) || 0) + n % 2 : Math.round(n)], Fs = {
|
|
499
|
+
previous: -1,
|
|
500
|
+
next: 1
|
|
501
|
+
};
|
|
502
|
+
function qo(n) {
|
|
503
|
+
const t = n.roundingIncrement;
|
|
504
|
+
return t === void 0 ? 1 : J(t, "roundingIncrement");
|
|
505
|
+
}
|
|
506
|
+
function _o(n) {
|
|
507
|
+
let t = n.fractionalSecondDigits;
|
|
508
|
+
if (t !== void 0) {
|
|
509
|
+
if (typeof t != "number") {
|
|
510
|
+
if (Uo(t) === "auto")
|
|
511
|
+
return;
|
|
512
|
+
h(Ce("fractionalSecondDigits", t));
|
|
513
|
+
}
|
|
514
|
+
t = In("fractionalSecondDigits", Math.floor(t), 0, 9, 1);
|
|
515
|
+
}
|
|
516
|
+
return t;
|
|
517
|
+
}
|
|
518
|
+
function Go(n, t, e = 0, o) {
|
|
519
|
+
let r = t[n];
|
|
520
|
+
if (r === void 0)
|
|
521
|
+
return o ? e : void 0;
|
|
522
|
+
if (r = Uo(r), r === "auto")
|
|
523
|
+
return o ? e : null;
|
|
524
|
+
let i = fo[r];
|
|
525
|
+
return i === void 0 && (i = ys[r]), i === void 0 && h(mi(n, r, fo)), i;
|
|
526
|
+
}
|
|
527
|
+
function _n(n, t, e, o = 0) {
|
|
528
|
+
const r = e[n];
|
|
529
|
+
if (r === void 0)
|
|
530
|
+
return o;
|
|
531
|
+
const i = Uo(r), c = t[i];
|
|
532
|
+
return c === void 0 && h(mi(n, i, t)), c;
|
|
533
|
+
}
|
|
534
|
+
const Ot = /* @__PURE__ */ Y(Go, Zn), Hi = /* @__PURE__ */ Y(Go, "largestUnit"), Os = /* @__PURE__ */ Y(Go, "unit"), Ji = /* @__PURE__ */ Y(_n, "overflow", vs), zi = /* @__PURE__ */ Y(_n, "disambiguation", Is), Cs = /* @__PURE__ */ Y(_n, "offset", Ms), Vo = /* @__PURE__ */ Y(_n, "calendarName", Ns), Ps = /* @__PURE__ */ Y(_n, "timeZoneName", Ts), Zs = /* @__PURE__ */ Y(_n, "offset", Ds), Ct = /* @__PURE__ */ Y(_n, "roundingMode", Ss), Es = /* @__PURE__ */ Y(_n, "direction", Fs);
|
|
535
|
+
function Ho(n, t, e, o) {
|
|
536
|
+
const r = o ? wn : ln[t + 1];
|
|
537
|
+
if (r) {
|
|
538
|
+
const i = ln[t];
|
|
539
|
+
r % ((n = In("roundingIncrement", n, 1, r / i - (o ? 0 : 1), 1)) * i) && h(Ce("roundingIncrement", n));
|
|
540
|
+
} else
|
|
541
|
+
n = In("roundingIncrement", n, 1, e ? 10 ** 9 : 1, 1);
|
|
542
|
+
return n;
|
|
543
|
+
}
|
|
544
|
+
function Nt(n, t, e, o) {
|
|
545
|
+
return t != null && In(n, t, e, o, 1, Zo), t;
|
|
546
|
+
}
|
|
547
|
+
function Xi(n, t) {
|
|
548
|
+
t > n && h("smallestUnit > largestUnit");
|
|
549
|
+
}
|
|
550
|
+
function Pt(n, t, e, o = 9, r = 0, i = 4) {
|
|
551
|
+
t = Dn(t);
|
|
552
|
+
let c = Hi(t, r), a = qo(t), s = Ct(t, i), u = Ot(t, r, 1);
|
|
553
|
+
return c = Nt("largestUnit", c, r, o), u = Nt(Zn, u, r, o), c == null ? c = Math.max(e, u) : Xi(c, u), a = Ho(a, u, 1), n && (s = ((d) => d < 4 ? (d + 2) % 4 : d)(s)), [c, u, a, s];
|
|
554
|
+
}
|
|
555
|
+
function Ue(n, t = 6, e) {
|
|
556
|
+
let o = qo(n = je(n, Zn));
|
|
557
|
+
const r = Ct(n, 7);
|
|
558
|
+
let i = Ot(n);
|
|
559
|
+
return i = Vi(Zn, i), i = Nt(Zn, i, 0, t), o = Ho(o, i, void 0, e), [i, o, r];
|
|
560
|
+
}
|
|
561
|
+
function Z(n, t) {
|
|
562
|
+
return Mn(wo, n, Mn($, t));
|
|
563
|
+
}
|
|
564
|
+
function T(n) {
|
|
565
|
+
return n === void 0 ? 0 : Ji(zt(n));
|
|
566
|
+
}
|
|
567
|
+
function qt(n, t = 0) {
|
|
568
|
+
n = Dn(n);
|
|
569
|
+
const e = zi(n), o = Cs(n, t);
|
|
570
|
+
return [Ji(n), o, e];
|
|
571
|
+
}
|
|
572
|
+
const Ki = /* @__PURE__ */ BigInt(1e8) * O, Jo = /* @__PURE__ */ BigInt(-1e8) * O, Qi = Jo - O, nc = -3261848;
|
|
573
|
+
function zo(n) {
|
|
574
|
+
const t = 12 * n.year + n.month;
|
|
575
|
+
return (t < nc || t > 3309129) && h(xn), n;
|
|
576
|
+
}
|
|
577
|
+
function Q(n, t = 1) {
|
|
578
|
+
return tc(tt(n), t), n;
|
|
579
|
+
}
|
|
580
|
+
function Zt(n) {
|
|
581
|
+
const t = tt(n);
|
|
582
|
+
return tc(t), t !== Qi || K(n) || h(xn), n;
|
|
583
|
+
}
|
|
584
|
+
function tc(n, t = 1) {
|
|
585
|
+
(n < (t ? Qi : Jo) || n > Ki) && h(xn);
|
|
586
|
+
}
|
|
587
|
+
function Sn(n) {
|
|
588
|
+
return (n < Jo || n > Ki) && h(xn), n;
|
|
589
|
+
}
|
|
590
|
+
function Xo(n, t) {
|
|
591
|
+
return Sn(tt(n) + BigInt(K(n) - t));
|
|
592
|
+
}
|
|
593
|
+
function pn(n) {
|
|
594
|
+
return {
|
|
595
|
+
epochNanoseconds: n
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
function bn(n, t, e) {
|
|
599
|
+
return {
|
|
600
|
+
calendar: e,
|
|
601
|
+
timeZone: t,
|
|
602
|
+
epochNanoseconds: n
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
function On(n, t) {
|
|
606
|
+
return Mn($, n, b(n, t));
|
|
607
|
+
}
|
|
608
|
+
function b(n, t) {
|
|
609
|
+
return Mn(wo, n, {
|
|
610
|
+
calendar: t
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
function Et(n) {
|
|
614
|
+
return Mn($, n);
|
|
615
|
+
}
|
|
616
|
+
function x(n) {
|
|
617
|
+
return Mn(C, n, {
|
|
618
|
+
sign: Ve(n)
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
function Te(n) {
|
|
622
|
+
return t = n.epochNanoseconds, Number(gi(t, Ee));
|
|
623
|
+
var t;
|
|
624
|
+
}
|
|
625
|
+
function Le(n) {
|
|
626
|
+
return n.epochNanoseconds;
|
|
627
|
+
}
|
|
628
|
+
function ws(n, t, e) {
|
|
629
|
+
const o = Wn(t), [r, i] = ((u, d) => {
|
|
630
|
+
const f = d((u = je(u, "unit")).relativeTo);
|
|
631
|
+
let l = Os(u);
|
|
632
|
+
return l = Vi("unit", l), [l, f];
|
|
633
|
+
})(e, n);
|
|
634
|
+
if (!i && It(Math.max(r, o), i))
|
|
635
|
+
return Lr(t, r);
|
|
636
|
+
if (i || h("Missing relativeTo"), !t.sign && It(r, i))
|
|
637
|
+
return 0;
|
|
638
|
+
const c = Ge(i), a = c.G(c.i, t);
|
|
639
|
+
uc(c, a);
|
|
640
|
+
const s = c.re(c.i, a, r);
|
|
641
|
+
return It(r, i) ? Lr(s, r) : Bs(s, c.V(a), r, c);
|
|
642
|
+
}
|
|
643
|
+
function Bs(n, t, e, o) {
|
|
644
|
+
const r = Ve(n) || 1, i = Ko(jo(e, n), e, r, o, t), c = i.ae, a = i.de, s = Number(a - c), u = Number(t - c);
|
|
645
|
+
return i.ye[C[e]] + u / s * r;
|
|
646
|
+
}
|
|
647
|
+
function Lr(n, t) {
|
|
648
|
+
return Di(En(n), ln[t]);
|
|
649
|
+
}
|
|
650
|
+
function Ko(n, t, e, o, r) {
|
|
651
|
+
const i = C[t];
|
|
652
|
+
let c = n, a = 0, s = Wr(c, i, e, o);
|
|
653
|
+
return r && !((u, d, f, l) => l > 0 ? P(d, u) <= 0 && P(u, f) <= 0 : P(f, u) <= 0 && P(u, d) <= 0)(r, s.ae, s.de, Math.sign(e)) && (c = {
|
|
654
|
+
...n,
|
|
655
|
+
[i]: n[i] + e
|
|
656
|
+
}, a = 1, s = Wr(c, i, e, o)), {
|
|
657
|
+
...s,
|
|
658
|
+
ye: c,
|
|
659
|
+
He: a
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
function Wr(n, t, e, o) {
|
|
663
|
+
const r = {
|
|
664
|
+
...n,
|
|
665
|
+
[t]: n[t] + e
|
|
666
|
+
};
|
|
667
|
+
return {
|
|
668
|
+
ae: Vt(o, n),
|
|
669
|
+
de: Vt(o, r),
|
|
670
|
+
Ae: r
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
function ec(n, t, e) {
|
|
674
|
+
const o = e - t, r = n - t;
|
|
675
|
+
if (!r)
|
|
676
|
+
return 0;
|
|
677
|
+
const i = r < 0n ? -r : r, c = o < 0n ? -o : o, a = P(r, 0n) === P(o, 0n) ? 1 : -1;
|
|
678
|
+
return P(i, c) <= 0 ? i === c ? a : vi(P(2n * i, c), a) : Number(r) / Number(o);
|
|
679
|
+
}
|
|
680
|
+
function Ys(n, t, e, o) {
|
|
681
|
+
let { epochNanoseconds: r } = n;
|
|
682
|
+
const { timeZone: i, calendar: c } = n;
|
|
683
|
+
if (t === 0 && e === 1)
|
|
684
|
+
return {
|
|
685
|
+
epochNanoseconds: r,
|
|
686
|
+
timeZone: i,
|
|
687
|
+
calendar: c
|
|
688
|
+
};
|
|
689
|
+
if (t === 6) {
|
|
690
|
+
const a = Z(j(n), mn), s = Z(Gn(a, 1), mn), u = jn(i, a), d = jn(i, s);
|
|
691
|
+
r = er(ec(r, u, d), o) ? d : u;
|
|
692
|
+
} else {
|
|
693
|
+
const a = j(n), s = a.offsetNanoseconds;
|
|
694
|
+
r = wt(i, Qo(a, ce(t, e), o), s, 2, 0, 1);
|
|
695
|
+
}
|
|
696
|
+
return {
|
|
697
|
+
epochNanoseconds: r,
|
|
698
|
+
timeZone: i,
|
|
699
|
+
calendar: c
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
function ks(n) {
|
|
703
|
+
const { timeZone: t } = n, e = Z(j(n), mn), o = Z(Gn(e, 1), mn), r = jn(t, e);
|
|
704
|
+
return Di(jn(t, o) - r, ee);
|
|
705
|
+
}
|
|
706
|
+
function Rs(n) {
|
|
707
|
+
const { timeZone: t, calendar: e } = n;
|
|
708
|
+
return bn(jn(t, Z(j(n), mn)), t, e);
|
|
709
|
+
}
|
|
710
|
+
function Qo(n, t, e) {
|
|
711
|
+
const [o, r] = nr(n, t, e), i = Z(Gn(n, r), o);
|
|
712
|
+
return Zt(i), i;
|
|
713
|
+
}
|
|
714
|
+
function nr(n, t, e) {
|
|
715
|
+
return ko(Tt(K(n), t, e));
|
|
716
|
+
}
|
|
717
|
+
function De(n) {
|
|
718
|
+
return Tt(n, te, 7);
|
|
719
|
+
}
|
|
720
|
+
function ce(n, t) {
|
|
721
|
+
return ln[n] * t;
|
|
722
|
+
}
|
|
723
|
+
function We(n, t) {
|
|
724
|
+
return BigInt(ln[n]) * BigInt(t);
|
|
725
|
+
}
|
|
726
|
+
function As(n, t, e) {
|
|
727
|
+
const o = Math.min(Wn(n), 6);
|
|
728
|
+
return Ln(qe(En(n), BigInt(t), e), o);
|
|
729
|
+
}
|
|
730
|
+
function $e(n, t, e, o, r, i, c) {
|
|
731
|
+
if (o === 0 && r === 1)
|
|
732
|
+
return n;
|
|
733
|
+
const a = Ve(n) || 1, s = It(o, c.i) ? se(c.i) && o < 6 && e >= 6 ? js : xs : Us;
|
|
734
|
+
let [u, d, f] = s(a, n, t, e, o, r, i, c);
|
|
735
|
+
return f && o !== 7 && (u = ((l, m, p, y, g, v) => {
|
|
736
|
+
for (let I = y + 1; I <= p; I++) {
|
|
737
|
+
if (I === 7 && p !== 7)
|
|
738
|
+
continue;
|
|
739
|
+
const D = jo(I, l);
|
|
740
|
+
D[C[I]] += g;
|
|
741
|
+
const M = P(m, Vt(v, D));
|
|
742
|
+
if (M && M !== g)
|
|
743
|
+
break;
|
|
744
|
+
l = D;
|
|
745
|
+
}
|
|
746
|
+
return l;
|
|
747
|
+
})(u, d, e, Math.max(6, o), a, c)), u;
|
|
748
|
+
}
|
|
749
|
+
function qe(n, t, e) {
|
|
750
|
+
return oc(n, t, e, n / t % 2n);
|
|
751
|
+
}
|
|
752
|
+
function tr(n, t, e) {
|
|
753
|
+
const [o, r] = Co(n, O), i = o * O;
|
|
754
|
+
return i + oc(r, t, e, (i / t + r / t) % 2n);
|
|
755
|
+
}
|
|
756
|
+
function oc(n, t, e, o) {
|
|
757
|
+
const r = n / t, i = n % t;
|
|
758
|
+
let c = 0;
|
|
759
|
+
i && (c = vi(P(2n * (i < 0n ? -i : i), t), Math.sign(Number(i))));
|
|
760
|
+
const a = er(Number(o) + c, e);
|
|
761
|
+
return (r - o + BigInt(a)) * t;
|
|
762
|
+
}
|
|
763
|
+
function Tt(n, t, e) {
|
|
764
|
+
return er(n / t, e) * t;
|
|
765
|
+
}
|
|
766
|
+
function er(n, t) {
|
|
767
|
+
return bs[t](n);
|
|
768
|
+
}
|
|
769
|
+
function xs(n, t, e, o, r, i, c) {
|
|
770
|
+
const a = En(t), s = qe(a, We(r, i), c), u = s - a, d = Math.sign(Number(s / O) - Number(a / O)) === n, f = Ln(s, Math.min(o, 6));
|
|
771
|
+
return [{
|
|
772
|
+
...t,
|
|
773
|
+
...f
|
|
774
|
+
}, e + u, d];
|
|
775
|
+
}
|
|
776
|
+
function js(n, t, e, o, r, i, c, a) {
|
|
777
|
+
const s = Number(ut(t)), u = ce(r, i);
|
|
778
|
+
let d = Tt(s, u, c);
|
|
779
|
+
const f = Ko({
|
|
780
|
+
...t,
|
|
781
|
+
...xo
|
|
782
|
+
}, 6, n, a, e), l = f.ae, m = f.de, p = d - Number(m - l);
|
|
783
|
+
let y = 0;
|
|
784
|
+
p && Math.sign(p) !== n ? e = l + BigInt(d) : (y += n, d = Tt(p, u, c), e = m + BigInt(d));
|
|
785
|
+
const g = He(d);
|
|
786
|
+
return [{
|
|
787
|
+
...t,
|
|
788
|
+
...g,
|
|
789
|
+
days: t.days + y
|
|
790
|
+
}, e, !!y];
|
|
791
|
+
}
|
|
792
|
+
function Us(n, t, e, o, r, i, c, a) {
|
|
793
|
+
const s = C[r], u = jo(r, t);
|
|
794
|
+
r === 7 && (t = {
|
|
795
|
+
...t,
|
|
796
|
+
weeks: t.weeks + Math.trunc(t.days / 7)
|
|
797
|
+
});
|
|
798
|
+
const d = bt(t[s], i) * i;
|
|
799
|
+
u[s] = d;
|
|
800
|
+
const f = Ko(u, r, i * n, a, e), l = f.ae, m = f.de, p = ec(e, l, m), y = f.ye[s], g = f.Ae[s], v = Tt(y + p * n * i, i, c), I = v === g;
|
|
801
|
+
return u[s] = v, [u, I ? m : l, f.He || I];
|
|
802
|
+
}
|
|
803
|
+
function Ls(n, t) {
|
|
804
|
+
return n.timeZone.U(n.epochNanoseconds, ((e) => {
|
|
805
|
+
const o = je(e, "direction"), r = Es(o, 0);
|
|
806
|
+
return r || h(Ce("direction", r)), r;
|
|
807
|
+
})(t));
|
|
808
|
+
}
|
|
809
|
+
const j = /* @__PURE__ */ Mt(Ws, WeakMap);
|
|
810
|
+
function Ws(n) {
|
|
811
|
+
const { epochNanoseconds: t, timeZone: e } = n, o = e.C(t);
|
|
812
|
+
return {
|
|
813
|
+
...ie(t + BigInt(o)),
|
|
814
|
+
offsetNanoseconds: o
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function wt(n, t, e, o = 0, r = 0, i, c) {
|
|
818
|
+
if (e !== void 0 && o === 1 && (o === 1 || c))
|
|
819
|
+
return Xo(t, e);
|
|
820
|
+
o !== 2 && o !== 0 || Q(t, 0);
|
|
821
|
+
const a = n.R(t);
|
|
822
|
+
if (e !== void 0 && o !== 3) {
|
|
823
|
+
const s = ((u, d, f, l) => {
|
|
824
|
+
const m = vn(d);
|
|
825
|
+
l && (f = De(f));
|
|
826
|
+
for (const p of u) {
|
|
827
|
+
let y = Number(m - p);
|
|
828
|
+
if (l && (y = De(y)), y === f)
|
|
829
|
+
return p;
|
|
830
|
+
}
|
|
831
|
+
})(a, t, e, i);
|
|
832
|
+
if (s !== void 0)
|
|
833
|
+
return s;
|
|
834
|
+
o === 0 && h("Invalid TimeZone offset");
|
|
835
|
+
}
|
|
836
|
+
return c ? vn(t) : ae(n, t, r, a);
|
|
837
|
+
}
|
|
838
|
+
function ae(n, t, e = 0, o = n.R(t)) {
|
|
839
|
+
if (o.length === 1)
|
|
840
|
+
return o[0];
|
|
841
|
+
if (e === 1 && h("Ambiguous offset"), o.length)
|
|
842
|
+
return o[e === 3 ? 1 : 0];
|
|
843
|
+
const r = vn(t), i = ((a, s) => {
|
|
844
|
+
const u = a.C(s - O);
|
|
845
|
+
return ((d) => (d > wn && h("Out-of-bounds TimeZone gap"), d))(a.C(s + O) - u);
|
|
846
|
+
})(n, r), c = ie(r + BigInt(i * (e === 2 ? -1 : 1)));
|
|
847
|
+
return (o = n.R(c))[e === 2 ? 0 : o.length - 1];
|
|
848
|
+
}
|
|
849
|
+
function jn(n, t) {
|
|
850
|
+
const e = n.R(t);
|
|
851
|
+
if (e.length)
|
|
852
|
+
return e[0];
|
|
853
|
+
const o = vn(t) - O;
|
|
854
|
+
return n.U(o, 1);
|
|
855
|
+
}
|
|
856
|
+
function $r(n, t, e, o, r) {
|
|
857
|
+
const i = T(r);
|
|
858
|
+
o.sign && Wn(o) < 8 && h("Cannot use small units");
|
|
859
|
+
const c = Q(Gt(t, e));
|
|
860
|
+
return Gt(t, rc(t, c, n ? q(o) : o, i));
|
|
861
|
+
}
|
|
862
|
+
function qr(n, t) {
|
|
863
|
+
return Sn(n + (hc(e = t) && h("Cannot use large units"), ut(e)));
|
|
864
|
+
var e;
|
|
865
|
+
}
|
|
866
|
+
function Se(n, t, e) {
|
|
867
|
+
const { calendar: o, epochNanoseconds: r, timeZone: i } = n, c = ut(t);
|
|
868
|
+
let a = r;
|
|
869
|
+
if (hc(t)) {
|
|
870
|
+
const s = j(n);
|
|
871
|
+
a = ae(i, Z(_t(o, s, {
|
|
872
|
+
...t,
|
|
873
|
+
...xo
|
|
874
|
+
}, e), s)) + c;
|
|
875
|
+
} else
|
|
876
|
+
a += c, T(e);
|
|
877
|
+
return {
|
|
878
|
+
...n,
|
|
879
|
+
epochNanoseconds: Sn(a)
|
|
880
|
+
};
|
|
881
|
+
}
|
|
882
|
+
function be(n, t, e, o) {
|
|
883
|
+
const [r, i] = ho(t, e), c = Z(_t(n, t, {
|
|
884
|
+
...e,
|
|
885
|
+
...xo,
|
|
886
|
+
days: e.days + i
|
|
887
|
+
}, o), r);
|
|
888
|
+
return Zt(c), c;
|
|
889
|
+
}
|
|
890
|
+
function _t(n, t, e, o) {
|
|
891
|
+
if (e.years || e.months || e.weeks)
|
|
892
|
+
return rc(n, t, e, T(o));
|
|
893
|
+
T(o);
|
|
894
|
+
const r = e.days + Number(ut(e) / O);
|
|
895
|
+
return r ? Q(Gn(t, r)) : t;
|
|
896
|
+
}
|
|
897
|
+
function Gt(n, t) {
|
|
898
|
+
return Gn(t, 1 - F(n, t).day);
|
|
899
|
+
}
|
|
900
|
+
function ho(n, t) {
|
|
901
|
+
const e = ut(t), o = Number(e / O), r = Number(e % O), [i, c] = ko(K(n) + r);
|
|
902
|
+
return [i, o + c];
|
|
903
|
+
}
|
|
904
|
+
function Gn(n, t) {
|
|
905
|
+
return t ? ki(Tn(n) + t) : n;
|
|
906
|
+
}
|
|
907
|
+
function rc(n, t, e, o) {
|
|
908
|
+
let { years: r, months: i, weeks: c, days: a } = e, s;
|
|
909
|
+
if (a += Number(ut(e) / O), r || i)
|
|
910
|
+
s = yo(n, t, r, i, o);
|
|
911
|
+
else {
|
|
912
|
+
if (!c && !a)
|
|
913
|
+
return t;
|
|
914
|
+
s = t;
|
|
915
|
+
}
|
|
916
|
+
return (c || a) && (s = Gn(s, 7 * c + a)), Q(s);
|
|
917
|
+
}
|
|
918
|
+
function yo(n, t, e, o, r) {
|
|
919
|
+
const i = F(n, t);
|
|
920
|
+
let { year: c, month: a, day: s } = i;
|
|
921
|
+
if (e) {
|
|
922
|
+
const [u, d] = ot(n, c, a);
|
|
923
|
+
c += e, a = po(n, u, d, n ? n.q(c) : void 0, r), a = In("month", a, 1, Wt(n, c), r);
|
|
924
|
+
}
|
|
925
|
+
return o && ({ year: c, month: a } = n ? n.N(c, a, o) : Ai(c, a, o)), s = In("day", s, 1, $t(n, c, a), r), rt(n, c, a, s);
|
|
926
|
+
}
|
|
927
|
+
function po(n, t, e, o, r) {
|
|
928
|
+
if (e) {
|
|
929
|
+
const i = n ? n.m : void 0;
|
|
930
|
+
return o !== void 0 && (i < 0 || o === t + 1) ? o : (r === 1 && h(nt), i < 0 ? -i : t);
|
|
931
|
+
}
|
|
932
|
+
return uo(t, 0, o);
|
|
933
|
+
}
|
|
934
|
+
function Un(n, t) {
|
|
935
|
+
return Nn(n) !== Nn(t) && h("Mismatching Calendars"), n;
|
|
936
|
+
}
|
|
937
|
+
function $s(n, t) {
|
|
938
|
+
return n.o !== t.o && h("Mismatching TimeZones"), n;
|
|
939
|
+
}
|
|
940
|
+
function qs(n) {
|
|
941
|
+
return n.timeZone.id;
|
|
942
|
+
}
|
|
943
|
+
function _r(n, t, e, o) {
|
|
944
|
+
const [r, i, c, a] = Pt(n, o, 3, 5), s = _e(t.epochNanoseconds, e.epochNanoseconds, r, i, c, a);
|
|
945
|
+
return x(n ? q(s) : s);
|
|
946
|
+
}
|
|
947
|
+
function Gr(n, t, e, o, r) {
|
|
948
|
+
const [i, c, a, s] = Pt(n, r, 5), u = e.epochNanoseconds, d = o.epochNanoseconds;
|
|
949
|
+
let f;
|
|
950
|
+
return P(d, u) ? i < 6 ? f = _e(u, d, i, c, a, s) : (f = cc($s(e.timeZone, o.timeZone), t, e, o, i), f = $e(f, d, i, c, a, s, rr(e, Le, Se))) : f = B, x(n ? q(f) : f);
|
|
951
|
+
}
|
|
952
|
+
function Vr(n, t, e, o, r) {
|
|
953
|
+
const [i, c, a, s] = Pt(n, r, 6), u = vn(e), d = vn(o), f = P(d, u);
|
|
954
|
+
let l;
|
|
955
|
+
return f ? i <= 6 ? l = _e(u, d, i, c, a, s) : (l = ac(t, e, o, f, i), l = $e(l, d, i, c, a, s, rr(e, vn, Y(be, t)))) : l = B, x(n ? q(l) : l);
|
|
956
|
+
}
|
|
957
|
+
function Hr(n, t, e, o, r) {
|
|
958
|
+
const [i, c, a, s] = Pt(n, r, 6, 9, 6);
|
|
959
|
+
return ic(n, t, e, o, i, c, a, s);
|
|
960
|
+
}
|
|
961
|
+
function Jr(n, t, e, o, r) {
|
|
962
|
+
const [i, c, a, s] = Pt(n, r, 9, 9, 8), u = Gt(t, e), d = Gt(t, o);
|
|
963
|
+
return sc(u, d) ? ic(n, t, Q(u), Q(d), i, c, a, s, 8) : x(B);
|
|
964
|
+
}
|
|
965
|
+
function ic(n, t, e, o, r, i, c, a, s = 6) {
|
|
966
|
+
const u = tt(e), d = tt(o);
|
|
967
|
+
let f;
|
|
968
|
+
return P(d, u) ? r === 6 ? f = _e(u, d, r, i, c, a) : (f = or(t, e, o, r), i === s && c === 1 || (f = $e(f, d, r, i, c, a, rr(e, tt, Y(_t, t))))) : f = B, x(n ? q(f) : f);
|
|
969
|
+
}
|
|
970
|
+
function zr(n, t, e, o) {
|
|
971
|
+
const [r, i, c, a] = Pt(n, o, 5, 5), s = Tt(K(e) - K(t), ce(i, c), a), u = {
|
|
972
|
+
...B,
|
|
973
|
+
...He(s, r)
|
|
974
|
+
};
|
|
975
|
+
return x(n ? q(u) : u);
|
|
976
|
+
}
|
|
977
|
+
function cc(n, t, e, o, r) {
|
|
978
|
+
const i = P(o.epochNanoseconds, e.epochNanoseconds);
|
|
979
|
+
if (!i)
|
|
980
|
+
return B;
|
|
981
|
+
if (r < 6)
|
|
982
|
+
return {
|
|
983
|
+
...B,
|
|
984
|
+
...Ln(o.epochNanoseconds - e.epochNanoseconds, r)
|
|
985
|
+
};
|
|
986
|
+
if (!sc(j(e), j(o)))
|
|
987
|
+
return {
|
|
988
|
+
...B,
|
|
989
|
+
...Ln(o.epochNanoseconds - e.epochNanoseconds, 5)
|
|
990
|
+
};
|
|
991
|
+
const [c, a, s] = Gs(n, e, o, i);
|
|
992
|
+
return {
|
|
993
|
+
...r === 6 ? {
|
|
994
|
+
...B,
|
|
995
|
+
days: Ie(c, a)
|
|
996
|
+
} : or(t, c, a, r),
|
|
997
|
+
...He(s)
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
function _s(n, t, e, o) {
|
|
1001
|
+
const r = vn(t), i = vn(e), c = P(i, r);
|
|
1002
|
+
return c ? o <= 6 ? {
|
|
1003
|
+
...B,
|
|
1004
|
+
...Ln(i - r, o)
|
|
1005
|
+
} : ac(n, t, e, c, o) : B;
|
|
1006
|
+
}
|
|
1007
|
+
function ac(n, t, e, o, r) {
|
|
1008
|
+
let i = e, c = K(e) - K(t);
|
|
1009
|
+
return Math.sign(c) === -o && (i = Gn(e, -o), c += wn * o), {
|
|
1010
|
+
...or(n, t, i, r),
|
|
1011
|
+
...He(c)
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
function or(n, t, e, o) {
|
|
1015
|
+
if (o <= 7) {
|
|
1016
|
+
const y = Ie(t, e);
|
|
1017
|
+
return o === 7 ? {
|
|
1018
|
+
...B,
|
|
1019
|
+
weeks: bt(y, 7),
|
|
1020
|
+
days: Po(y, 7)
|
|
1021
|
+
} : {
|
|
1022
|
+
...B,
|
|
1023
|
+
days: y
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
const r = F(n, t), i = F(n, e);
|
|
1027
|
+
if (o === 8) {
|
|
1028
|
+
const { year: y, month: g, day: v } = r, { year: I, month: D, day: M } = i, an = Math.sign(Pn(I, y) || Pn(D, g) || Ie(t, e));
|
|
1029
|
+
let G = 0, sn = 0;
|
|
1030
|
+
if (an) {
|
|
1031
|
+
G = n ? n.ne(y, g, I, D) : as(y, g, I, D);
|
|
1032
|
+
let V = yo(n, t, 0, G, 0);
|
|
1033
|
+
an * Pn(v, M) > 0 && (G -= an, V = yo(n, t, 0, G, 0)), sn = Ie(V, e);
|
|
1034
|
+
}
|
|
1035
|
+
return {
|
|
1036
|
+
...B,
|
|
1037
|
+
months: G,
|
|
1038
|
+
days: sn
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
const { year: c, month: a, day: s } = r;
|
|
1042
|
+
let { year: u, month: d, day: f } = i, l = u - c, m = d - a, p = f - s;
|
|
1043
|
+
if (l || m) {
|
|
1044
|
+
const y = Math.sign(l || m);
|
|
1045
|
+
let g = $t(n, u, d), v = 0;
|
|
1046
|
+
if (Math.sign(f - s) === -y) {
|
|
1047
|
+
const I = g;
|
|
1048
|
+
({ year: u, month: d } = n ? n.N(u, d, -y) : Ai(u, d, -y)), l = u - c, m = d - a, g = $t(n, u, d), v = y < 0 ? -I : g;
|
|
1049
|
+
}
|
|
1050
|
+
if (p = f - Math.min(s, g) + v, l) {
|
|
1051
|
+
const [I, D] = ot(n, c, a), [M, an] = ot(n, u, d), G = n ? n.m : void 0;
|
|
1052
|
+
if (m = G !== void 0 && D && !an && (G < 0 ? y > 0 && M === -G : y < 0 && M === I) ? 0 : M - I || Number(an) - Number(D), Math.sign(m) === -y) {
|
|
1053
|
+
const sn = y < 0 && -Wt(n, u);
|
|
1054
|
+
u -= y, l = u - c, m = d - po(n, I, D, n ? n.q(u) : void 0, 0) + (sn || Wt(n, u));
|
|
1055
|
+
} else if (n) {
|
|
1056
|
+
const sn = po(n, I, D, n.q(u), 0);
|
|
1057
|
+
m = n.ne(u, sn, u, d);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
return {
|
|
1062
|
+
...B,
|
|
1063
|
+
years: l,
|
|
1064
|
+
months: m,
|
|
1065
|
+
days: p
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
function sc(n, t) {
|
|
1069
|
+
return Pn(n.year, t.year) || Pn(n.month, t.month) || Pn(n.day, t.day);
|
|
1070
|
+
}
|
|
1071
|
+
function Gs(n, t, e, o) {
|
|
1072
|
+
const r = j(t), i = j(e), c = e.epochNanoseconds;
|
|
1073
|
+
let a = 0;
|
|
1074
|
+
const s = K(i) - K(r);
|
|
1075
|
+
Math.sign(s) === -o && a++;
|
|
1076
|
+
const u = a + (o > 0 ? 1 : 0);
|
|
1077
|
+
for (; a <= u; a++) {
|
|
1078
|
+
const d = Gn(i, a * -o), f = ae(n, Z(d, r));
|
|
1079
|
+
if (P(c, f) !== -o)
|
|
1080
|
+
return [r, d, Number(c - f)];
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
function _e(n, t, e, o, r, i) {
|
|
1084
|
+
return {
|
|
1085
|
+
...B,
|
|
1086
|
+
...Ln(qe(t - n, We(o, r), i), e)
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
function Ie(n, t) {
|
|
1090
|
+
return Tn(t) - Tn(n);
|
|
1091
|
+
}
|
|
1092
|
+
function rr(n, t, e) {
|
|
1093
|
+
return {
|
|
1094
|
+
i: n,
|
|
1095
|
+
V: t,
|
|
1096
|
+
G: e
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
function Ge(n) {
|
|
1100
|
+
const { calendar: t } = n;
|
|
1101
|
+
if (se(n)) {
|
|
1102
|
+
const { timeZone: e } = n;
|
|
1103
|
+
return {
|
|
1104
|
+
i: n,
|
|
1105
|
+
V: Le,
|
|
1106
|
+
G: Se,
|
|
1107
|
+
re: Y(cc, e, t)
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
return {
|
|
1111
|
+
i: dc(n),
|
|
1112
|
+
V: vn,
|
|
1113
|
+
G: Y(be, t),
|
|
1114
|
+
re: Y(_s, t)
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
function Vt(n, t) {
|
|
1118
|
+
return n.V(n.G(n.i, t));
|
|
1119
|
+
}
|
|
1120
|
+
function se(n) {
|
|
1121
|
+
return "timeZone" in n;
|
|
1122
|
+
}
|
|
1123
|
+
function uc(n, t) {
|
|
1124
|
+
se(n.i) || (Xr(n.i), Xr(t));
|
|
1125
|
+
}
|
|
1126
|
+
function dc(n) {
|
|
1127
|
+
return Z(n, "hour" in n ? n : mn);
|
|
1128
|
+
}
|
|
1129
|
+
function Xr(n) {
|
|
1130
|
+
Zt(dc(n));
|
|
1131
|
+
}
|
|
1132
|
+
function It(n, t) {
|
|
1133
|
+
return n <= 6 - (t && se(t) ? 1 : 0);
|
|
1134
|
+
}
|
|
1135
|
+
function ir(n, t, e) {
|
|
1136
|
+
const o = {};
|
|
1137
|
+
for (let r = t; r >= 0; r--) {
|
|
1138
|
+
const i = ln[r];
|
|
1139
|
+
o[e[r]] = bt(n, i), n = Po(n, i);
|
|
1140
|
+
}
|
|
1141
|
+
return o;
|
|
1142
|
+
}
|
|
1143
|
+
const Vs = 2 ** 53;
|
|
1144
|
+
function Kr(n, t, e, o, r) {
|
|
1145
|
+
const i = n(Dn(r).relativeTo), c = Math.max(Wn(e), Wn(o));
|
|
1146
|
+
if (It(c, i))
|
|
1147
|
+
return Hs(t, e, o, c);
|
|
1148
|
+
i || h("Missing relativeTo"), t && (o = q(o));
|
|
1149
|
+
const a = Ge(i), s = a.G(a.i, e), u = a.G(s, o);
|
|
1150
|
+
return x(a.re(a.i, u, c));
|
|
1151
|
+
}
|
|
1152
|
+
function Hs(n, t, e, o) {
|
|
1153
|
+
return x(st(((r, i, c, a) => {
|
|
1154
|
+
const s = En(r) + En(i) * BigInt(a ? -1 : 1);
|
|
1155
|
+
return Number.isFinite(Number(s / O)) || h(xn), {
|
|
1156
|
+
...B,
|
|
1157
|
+
...Ln(s, c)
|
|
1158
|
+
};
|
|
1159
|
+
})(t, e, o, n)));
|
|
1160
|
+
}
|
|
1161
|
+
function Js(n, t, e) {
|
|
1162
|
+
const o = Wn(t), [r, i, c, a, s] = ((m, p, y) => {
|
|
1163
|
+
m = je(m, Zn);
|
|
1164
|
+
let g = Hi(m);
|
|
1165
|
+
const v = y(m.relativeTo);
|
|
1166
|
+
let I = qo(m);
|
|
1167
|
+
const D = Ct(m, 7);
|
|
1168
|
+
let M = Ot(m);
|
|
1169
|
+
return g === void 0 && M === void 0 && h("Required smallestUnit or largestUnit"), M == null && (M = 0), g == null && (g = Math.max(M, p)), Xi(g, M), I = Ho(I, M, 1), I > 1 && M > 5 && g !== M && h("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"), [g, M, I, D, v];
|
|
1170
|
+
})(e, o, n);
|
|
1171
|
+
if (!s && Math.max(o, r) <= 6)
|
|
1172
|
+
return x(st(((m, p, y, g, v) => {
|
|
1173
|
+
const I = qe(En(m), We(y, g), v);
|
|
1174
|
+
return {
|
|
1175
|
+
...B,
|
|
1176
|
+
...Ln(I, p)
|
|
1177
|
+
};
|
|
1178
|
+
})(t, r, i, c, a)));
|
|
1179
|
+
const u = s && se(s) && r >= 6 && i < 6;
|
|
1180
|
+
if (!t.sign && !u)
|
|
1181
|
+
return t;
|
|
1182
|
+
s || h("Missing relativeTo");
|
|
1183
|
+
const d = Ge(s), f = d.G(d.i, t);
|
|
1184
|
+
uc(d, f);
|
|
1185
|
+
let l = d.re(d.i, f, r);
|
|
1186
|
+
return l = $e(l, d.V(f), r, i, c, a, d), x(l);
|
|
1187
|
+
}
|
|
1188
|
+
function zs(n) {
|
|
1189
|
+
return n.sign === -1 ? fc(n) : n;
|
|
1190
|
+
}
|
|
1191
|
+
function fc(n) {
|
|
1192
|
+
return x(q(n));
|
|
1193
|
+
}
|
|
1194
|
+
function q(n) {
|
|
1195
|
+
const t = {};
|
|
1196
|
+
for (const e of C)
|
|
1197
|
+
t[e] = -1 * n[e] || 0;
|
|
1198
|
+
return t;
|
|
1199
|
+
}
|
|
1200
|
+
function Ve(n, t = C) {
|
|
1201
|
+
let e = 0;
|
|
1202
|
+
for (const o of t) {
|
|
1203
|
+
const r = Math.sign(n[o]);
|
|
1204
|
+
r && (e && e !== r && h("Cannot mix duration signs"), e = r);
|
|
1205
|
+
}
|
|
1206
|
+
return e;
|
|
1207
|
+
}
|
|
1208
|
+
function st(n) {
|
|
1209
|
+
for (const e of hs)
|
|
1210
|
+
In(e, n[e], -4294967295, 4294967295, 1);
|
|
1211
|
+
const t = En(n);
|
|
1212
|
+
return lc(Number(t / et)), n;
|
|
1213
|
+
}
|
|
1214
|
+
function lc(n) {
|
|
1215
|
+
Number.isSafeInteger(n) || h("Out-of-bounds duration");
|
|
1216
|
+
}
|
|
1217
|
+
function En(n) {
|
|
1218
|
+
return BigInt(n.days) * O + ut(n);
|
|
1219
|
+
}
|
|
1220
|
+
function ut(n) {
|
|
1221
|
+
return BigInt(n.hours) * Ga + BigInt(n.minutes) * _a + mc(n);
|
|
1222
|
+
}
|
|
1223
|
+
function mc(n) {
|
|
1224
|
+
return BigInt(n.seconds) * et + BigInt(n.milliseconds) * Ee + BigInt(n.microseconds) * qa + BigInt(n.nanoseconds);
|
|
1225
|
+
}
|
|
1226
|
+
function Ln(n, t = 6) {
|
|
1227
|
+
const e = Number(n / O), o = Number(n % O), r = ln[t], i = t <= 3 ? Number(n / BigInt(r)) : e * (wn / r) + bt(o, r);
|
|
1228
|
+
Number.isFinite(i) || h(xn), t <= 3 && Math.abs(i) / ($n / ln[t]) >= Vs && h(xn);
|
|
1229
|
+
const c = ir(o, t, C);
|
|
1230
|
+
return c[C[t]] = i, c;
|
|
1231
|
+
}
|
|
1232
|
+
function He(n, t = 5) {
|
|
1233
|
+
return ir(n, t, C);
|
|
1234
|
+
}
|
|
1235
|
+
function hc(n) {
|
|
1236
|
+
return !!Ve(n, Gi);
|
|
1237
|
+
}
|
|
1238
|
+
function Wn(n) {
|
|
1239
|
+
let t = 9;
|
|
1240
|
+
for (; t > 0 && !n[C[t]]; t--)
|
|
1241
|
+
;
|
|
1242
|
+
return t;
|
|
1243
|
+
}
|
|
1244
|
+
function yc(n, t) {
|
|
1245
|
+
return P(n.epochNanoseconds, t.epochNanoseconds);
|
|
1246
|
+
}
|
|
1247
|
+
function pc(n, t) {
|
|
1248
|
+
return P(n.epochNanoseconds, t.epochNanoseconds);
|
|
1249
|
+
}
|
|
1250
|
+
function Xs(n, t, e, o) {
|
|
1251
|
+
const r = n(Dn(o).relativeTo), i = Math.max(Wn(t), Wn(e));
|
|
1252
|
+
if (pi(C, t, e))
|
|
1253
|
+
return 0;
|
|
1254
|
+
if (It(i, r))
|
|
1255
|
+
return P(En(t), En(e));
|
|
1256
|
+
r || h("Missing relativeTo");
|
|
1257
|
+
const c = Ge(r);
|
|
1258
|
+
return P(Vt(c, t), Vt(c, e));
|
|
1259
|
+
}
|
|
1260
|
+
function gc(n, t) {
|
|
1261
|
+
return Bt(n, t) || cr(n, t);
|
|
1262
|
+
}
|
|
1263
|
+
function Bt(n, t) {
|
|
1264
|
+
return Pn(Tn(n), Tn(t));
|
|
1265
|
+
}
|
|
1266
|
+
function cr(n, t) {
|
|
1267
|
+
return Pn(K(n), K(t));
|
|
1268
|
+
}
|
|
1269
|
+
function Ks(n, t) {
|
|
1270
|
+
return !yc(n, t);
|
|
1271
|
+
}
|
|
1272
|
+
function Qs(n, t) {
|
|
1273
|
+
return !pc(n, t) && n.timeZone.o === t.timeZone.o && n.calendar === t.calendar;
|
|
1274
|
+
}
|
|
1275
|
+
function nu(n, t) {
|
|
1276
|
+
return !gc(n, t) && n.calendar === t.calendar;
|
|
1277
|
+
}
|
|
1278
|
+
function tu(n, t) {
|
|
1279
|
+
return !Bt(n, t) && n.calendar === t.calendar;
|
|
1280
|
+
}
|
|
1281
|
+
function eu(n, t) {
|
|
1282
|
+
return !Bt(n, t) && n.calendar === t.calendar;
|
|
1283
|
+
}
|
|
1284
|
+
function ou(n, t) {
|
|
1285
|
+
return !Bt(n, t) && n.calendar === t.calendar;
|
|
1286
|
+
}
|
|
1287
|
+
function ru(n, t) {
|
|
1288
|
+
return !cr(n, t);
|
|
1289
|
+
}
|
|
1290
|
+
function Yt(n) {
|
|
1291
|
+
return n === 0 ? La : n ? n.l : void 0;
|
|
1292
|
+
}
|
|
1293
|
+
function _(n, t, e = t) {
|
|
1294
|
+
return Yt(n) ? e : t;
|
|
1295
|
+
}
|
|
1296
|
+
function ar(n, t) {
|
|
1297
|
+
const e = n || void 0, o = Yt(n);
|
|
1298
|
+
let { era: r, eraYear: i, year: c } = t;
|
|
1299
|
+
if (c !== void 0 && (c = J(c, "year")), i !== void 0 && (i = J(i, "eraYear")), r !== void 0 || i !== void 0) {
|
|
1300
|
+
r !== void 0 && i !== void 0 || S("Mismatching era/eraYear"), o || h("Forbidden era/eraYear");
|
|
1301
|
+
const a = Mi(r), s = o[a];
|
|
1302
|
+
s === void 0 && h(((d) => `Invalid era: ${d}`)(r));
|
|
1303
|
+
const u = e?.te ? e.te(i, a, s) : iu(i, s);
|
|
1304
|
+
c !== void 0 && c !== u && h("Mismatching year/eraYear"), c = u;
|
|
1305
|
+
} else
|
|
1306
|
+
c === void 0 && S(Pe(o));
|
|
1307
|
+
return c;
|
|
1308
|
+
}
|
|
1309
|
+
function Fe(n, t, e, o, r) {
|
|
1310
|
+
let { month: i, monthCode: c } = t;
|
|
1311
|
+
if (c !== void 0) {
|
|
1312
|
+
const a = ((s, u, d, f, l = Ni(u)) => {
|
|
1313
|
+
const m = s ? s.q(d) : void 0, [p, y] = l;
|
|
1314
|
+
let g = uo(p, y, m);
|
|
1315
|
+
if (y) {
|
|
1316
|
+
const v = s ? s.m : void 0;
|
|
1317
|
+
v === void 0 && h(nt), v > 0 ? (g > v && h(nt), m !== g && (f === 1 && h(nt), g = uo(p, 0, m))) : (g !== -v && h(nt), m === void 0 && f === 1 && h(nt));
|
|
1318
|
+
}
|
|
1319
|
+
return g;
|
|
1320
|
+
})(n, c, e, o, r);
|
|
1321
|
+
i !== void 0 && i !== a && h("Mismatching month/monthCode"), i = a, o = 1;
|
|
1322
|
+
} else
|
|
1323
|
+
i === void 0 && S("Missing month/monthCode");
|
|
1324
|
+
return In("month", i, 1, Wt(n, e), o);
|
|
1325
|
+
}
|
|
1326
|
+
function go(n, t, e, o, r) {
|
|
1327
|
+
return so(t, "day", 1, $t(n, o, e), r);
|
|
1328
|
+
}
|
|
1329
|
+
function iu(n, t) {
|
|
1330
|
+
return (t + n) * (Math.sign(t) || 1) || 0;
|
|
1331
|
+
}
|
|
1332
|
+
function ue(n, t) {
|
|
1333
|
+
return ke(Mn($, {
|
|
1334
|
+
...mn,
|
|
1335
|
+
...n
|
|
1336
|
+
}), t);
|
|
1337
|
+
}
|
|
1338
|
+
const cu = /* @__PURE__ */ St("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
|
|
1339
|
+
function Je(n) {
|
|
1340
|
+
const t = sr(n);
|
|
1341
|
+
return t === void 0 && h(yi(n)), t;
|
|
1342
|
+
}
|
|
1343
|
+
function sr(n, t) {
|
|
1344
|
+
const e = cu.exec(n);
|
|
1345
|
+
if (e && ((o) => ((r) => {
|
|
1346
|
+
r[0] !== "T" && r[0] !== "t" || (r = r.slice(1));
|
|
1347
|
+
const i = r.search(/[.,]/), c = i < 0 ? r : r.slice(0, i), a = c.split(":");
|
|
1348
|
+
return a.length === 1 ? /^(?:\d{2}|\d{4}|\d{6})$/i.test(c) : (a.length === 2 || a.length === 3) && a.every((s) => s.length === 2 && /^\d{2}$/i.test(s));
|
|
1349
|
+
})(o.slice(1)))(e[0]))
|
|
1350
|
+
return ((o, r) => {
|
|
1351
|
+
const i = o[4] || o[5];
|
|
1352
|
+
return r && i && h(Cn(i)), a = (vt(o[2]) * ee + vt(o[3]) * te + vt(o[4]) * $n + Fo(o[5] || "")) * Oo(o[1]), Math.abs(a) >= wn && h("Out-of-bounds offset"), a;
|
|
1353
|
+
var a;
|
|
1354
|
+
})(e, t);
|
|
1355
|
+
}
|
|
1356
|
+
const cn = {
|
|
1357
|
+
era: Lo,
|
|
1358
|
+
month: Rr,
|
|
1359
|
+
monthCode(n, t = "monthCode") {
|
|
1360
|
+
return ((e, o) => {
|
|
1361
|
+
if (typeof e == "string")
|
|
1362
|
+
return e;
|
|
1363
|
+
if (e && typeof e == "object") {
|
|
1364
|
+
const r = e.toString;
|
|
1365
|
+
if (typeof r == "function")
|
|
1366
|
+
return W(r.call(e), o);
|
|
1367
|
+
}
|
|
1368
|
+
return W(e, o);
|
|
1369
|
+
})(n, t);
|
|
1370
|
+
},
|
|
1371
|
+
day: Rr
|
|
1372
|
+
}, ur = /* @__PURE__ */ Kt($, J), vc = /* @__PURE__ */ Kt(C, $o), au = {
|
|
1373
|
+
offset(n) {
|
|
1374
|
+
return Je(Lo(n));
|
|
1375
|
+
}
|
|
1376
|
+
}, dr = /* @__PURE__ */ Object.assign({}, cn, ur), fr = /* @__PURE__ */ Object.assign({}, dr, au);
|
|
1377
|
+
function E(n, t, e, o, r = !o) {
|
|
1378
|
+
const i = {};
|
|
1379
|
+
let c = 0;
|
|
1380
|
+
for (const a of t) {
|
|
1381
|
+
let s = n[a];
|
|
1382
|
+
if (s !== void 0) {
|
|
1383
|
+
c = 1;
|
|
1384
|
+
const u = e[a];
|
|
1385
|
+
u && (s = u(s, a)), i[a] = s;
|
|
1386
|
+
} else
|
|
1387
|
+
o && o.includes(a) && S(Xt(a));
|
|
1388
|
+
}
|
|
1389
|
+
return r && !c && S(li(t)), i;
|
|
1390
|
+
}
|
|
1391
|
+
function ze(n, t = mn, e) {
|
|
1392
|
+
const o = Z(n, t);
|
|
1393
|
+
return Zt(o), On(o, e);
|
|
1394
|
+
}
|
|
1395
|
+
function Ht(n, t, e) {
|
|
1396
|
+
return Ic(n, t, Mc(n, t), T(e));
|
|
1397
|
+
}
|
|
1398
|
+
function Xe(n, t, e) {
|
|
1399
|
+
const o = Mc(n, t), r = e();
|
|
1400
|
+
return [Ic(n, t, o, r[0]), ...r];
|
|
1401
|
+
}
|
|
1402
|
+
function Ic(n, t, e, o) {
|
|
1403
|
+
const r = e[1], i = Fe(n, t, r, o, e[0]);
|
|
1404
|
+
return b(Q(rt(n, r, i, go(n, t, i, r, o))), n);
|
|
1405
|
+
}
|
|
1406
|
+
function lr(n) {
|
|
1407
|
+
if (n.monthCode !== void 0)
|
|
1408
|
+
return Ni(n.monthCode);
|
|
1409
|
+
}
|
|
1410
|
+
function Mc(n, t) {
|
|
1411
|
+
const e = Yt(n);
|
|
1412
|
+
return t.year !== void 0 || t.era !== void 0 && t.eraYear !== void 0 || S(Pe(e)), t.monthCode === void 0 && t.month === void 0 && S("Missing month/monthCode"), t.day === void 0 && S(Xt("day")), [lr(t), ar(n, t)];
|
|
1413
|
+
}
|
|
1414
|
+
function mr(n, t, e) {
|
|
1415
|
+
const o = Yt(n);
|
|
1416
|
+
t.year !== void 0 || t.era !== void 0 && t.eraYear !== void 0 || S(Pe(o)), t.monthCode === void 0 && t.month === void 0 && S("Missing month/monthCode");
|
|
1417
|
+
const r = lr(t), i = ar(n, t);
|
|
1418
|
+
return b(zo(rt(n, i, Fe(n, t, i, T(e), r), 1)), n);
|
|
1419
|
+
}
|
|
1420
|
+
function hr(n, t, e) {
|
|
1421
|
+
const o = n === fn, r = Yt(n);
|
|
1422
|
+
t.day === void 0 && S(Xt("day")), o || t.month === void 0 || t.year !== void 0 || t.era !== void 0 && t.eraYear !== void 0 || S(Pe(r));
|
|
1423
|
+
const i = lr(t);
|
|
1424
|
+
let c = t.eraYear !== void 0 || t.year !== void 0 ? ar(n, t) : void 0;
|
|
1425
|
+
const a = T(e);
|
|
1426
|
+
let s, u, d;
|
|
1427
|
+
if (c === void 0 && o && (c = 1972), c !== void 0) {
|
|
1428
|
+
o || Q(rt(n, c, 1, 1));
|
|
1429
|
+
const p = Fe(n, t, c, a, i);
|
|
1430
|
+
s = go(n, t, p, c, a), [u, d] = ot(n, c, p);
|
|
1431
|
+
} else {
|
|
1432
|
+
t.monthCode === void 0 && S("Missing month/monthCode"), [u, d] = i;
|
|
1433
|
+
const p = n ? n.ge : 1972;
|
|
1434
|
+
if (p !== void 0)
|
|
1435
|
+
s = go(n, t, Fe(n, t, p, a, i), p, a);
|
|
1436
|
+
else {
|
|
1437
|
+
const y = a === 0 && n ? n.ke?.(u, d, t.day) : void 0;
|
|
1438
|
+
s = y !== void 0 ? y : t.day;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
d && ((n && n.Z?.[u]) ?? 1 / 0) < t.day && (a === 1 && h(nt), d = 0, s = To(t.day, 1, (n && n.X) ?? 1 / 0));
|
|
1442
|
+
let f = n ? n.v(u, !!d, s) : mo(u, !!d);
|
|
1443
|
+
for (; !f && a === 0 && s > 1; )
|
|
1444
|
+
s--, f = n ? n.v(u, !!d, s) : mo(u, !!d);
|
|
1445
|
+
f || h("Cannot guess year");
|
|
1446
|
+
const { year: l, month: m } = f;
|
|
1447
|
+
return b(Q(rt(n, l, m, s)), n);
|
|
1448
|
+
}
|
|
1449
|
+
const Bn = Intl.DateTimeFormat;
|
|
1450
|
+
function su(n, t) {
|
|
1451
|
+
t < -864e13 && h(xn);
|
|
1452
|
+
const e = n.formatToParts(t), o = {};
|
|
1453
|
+
for (const r of e)
|
|
1454
|
+
o[r.type] = r.value;
|
|
1455
|
+
return o;
|
|
1456
|
+
}
|
|
1457
|
+
const uu = {
|
|
1458
|
+
El_Aaiun: 17,
|
|
1459
|
+
Tucuman: 12,
|
|
1460
|
+
Tirane: 11,
|
|
1461
|
+
Riga: 10,
|
|
1462
|
+
Simferopol: 9,
|
|
1463
|
+
Vienna: 9,
|
|
1464
|
+
Tunis: 8,
|
|
1465
|
+
Boa_Vista: 6,
|
|
1466
|
+
Fortaleza: 6,
|
|
1467
|
+
Maceio: 6,
|
|
1468
|
+
Noronha: 6,
|
|
1469
|
+
Recife: 6,
|
|
1470
|
+
Gaza: 6,
|
|
1471
|
+
Hebron: 6,
|
|
1472
|
+
DeNoronha: 6
|
|
1473
|
+
}, ro = -388152e4;
|
|
1474
|
+
function Nc(n, t = 4) {
|
|
1475
|
+
const e = _o(n), o = Ct(n, 4), r = Ot(n);
|
|
1476
|
+
return [o, ...pr(Nt(Zn, r, 0, t), e)];
|
|
1477
|
+
}
|
|
1478
|
+
function yr(n) {
|
|
1479
|
+
return Vo(Dn(n));
|
|
1480
|
+
}
|
|
1481
|
+
function Tc(n, t) {
|
|
1482
|
+
return Nc(Dn(n), t);
|
|
1483
|
+
}
|
|
1484
|
+
function pr(n, t) {
|
|
1485
|
+
return n != null ? [ln[n], n < 4 ? 9 - 3 * n : -1] : [t === void 0 ? 1 : 10 ** (9 - t), t];
|
|
1486
|
+
}
|
|
1487
|
+
function Qr(n, t, e) {
|
|
1488
|
+
const [o, r, i, c] = ((s) => {
|
|
1489
|
+
const u = _o(s = Dn(s)), d = Ct(s, 4), f = Ot(s);
|
|
1490
|
+
return [s.timeZone, d, ...pr(Nt(Zn, f, 0, 4), u)];
|
|
1491
|
+
})(e), a = o !== void 0;
|
|
1492
|
+
return ((s, u, d, f, l, m) => {
|
|
1493
|
+
d = tr(d, BigInt(l), f);
|
|
1494
|
+
const p = u.C(d);
|
|
1495
|
+
return gr(ie(d + BigInt(p)), m) + (s ? Ke(De(p)) : "Z");
|
|
1496
|
+
})(a, X(a ? n(o) : "UTC"), t.epochNanoseconds, r, i, c);
|
|
1497
|
+
}
|
|
1498
|
+
function ni(n, t) {
|
|
1499
|
+
const e = ((o) => {
|
|
1500
|
+
o = Dn(o);
|
|
1501
|
+
const r = Vo(o), i = _o(o), c = Zs(o), a = Ct(o, 4), s = Ot(o);
|
|
1502
|
+
return [r, Ps(o), c, a, ...pr(Nt(Zn, s, 0, 4), i)];
|
|
1503
|
+
})(t);
|
|
1504
|
+
return ((o, r, i, c, a, s, u, d, f, l) => {
|
|
1505
|
+
c = tr(c, BigInt(f), d);
|
|
1506
|
+
const m = i.C(c);
|
|
1507
|
+
return gr(ie(c + BigInt(m)), l) + Ke(De(m), u) + lu(r, s) + vr(o, a);
|
|
1508
|
+
})(n.calendar, n.timeZone.id, n.timeZone, n.epochNanoseconds, ...e);
|
|
1509
|
+
}
|
|
1510
|
+
function ti(n, t) {
|
|
1511
|
+
const e = ((o) => (o = Dn(o), [Vo(o), ...Nc(o)]))(t);
|
|
1512
|
+
return ((o, r, i, c, a, s) => gr(Qo(r, a, c), s) + vr(o, i))(n.calendar, n, ...e);
|
|
1513
|
+
}
|
|
1514
|
+
function ei(n, t) {
|
|
1515
|
+
return e = n.calendar, o = n, r = yr(t), Oe(o) + vr(e, r);
|
|
1516
|
+
var e, o, r;
|
|
1517
|
+
}
|
|
1518
|
+
function oi(n, t) {
|
|
1519
|
+
return Dc(n.calendar, Sc, n, yr(t));
|
|
1520
|
+
}
|
|
1521
|
+
function ri(n, t) {
|
|
1522
|
+
return Dc(n.calendar, fu, n, yr(t));
|
|
1523
|
+
}
|
|
1524
|
+
function Dc(n, t, e, o) {
|
|
1525
|
+
const r = o > 1 || o === 0 && n !== fn;
|
|
1526
|
+
return o === 1 ? n === fn ? t(e) : Oe(e) : r ? Oe(e) + Fc(Nn(n), o === 2) : t(e);
|
|
1527
|
+
}
|
|
1528
|
+
function ii(n, t) {
|
|
1529
|
+
return ((e, o, r, i) => bc(nr(e, r, o)[0], i))(n, ...Tc(t));
|
|
1530
|
+
}
|
|
1531
|
+
function io(n, t) {
|
|
1532
|
+
const [e, o, r] = Tc(t, 3);
|
|
1533
|
+
return o > 1 && st(n = {
|
|
1534
|
+
...n,
|
|
1535
|
+
...As(n, o, e)
|
|
1536
|
+
}), du(n, r);
|
|
1537
|
+
}
|
|
1538
|
+
function du(n, t) {
|
|
1539
|
+
const { sign: e } = n, o = e === -1 ? q(n) : n, { hours: r, minutes: i } = o, c = mc(o), a = Number(c / et), s = Number(c % et);
|
|
1540
|
+
lc(a);
|
|
1541
|
+
const u = Ir(s, t), d = t >= 0 || !e || u;
|
|
1542
|
+
return (e < 0 ? "-" : "") + "P" + ci({
|
|
1543
|
+
Y: Qn(o.years),
|
|
1544
|
+
M: Qn(o.months),
|
|
1545
|
+
W: Qn(o.weeks),
|
|
1546
|
+
D: Qn(o.days)
|
|
1547
|
+
}) + (r || i || a || d ? "T" + ci({
|
|
1548
|
+
H: Qn(r),
|
|
1549
|
+
M: Qn(i),
|
|
1550
|
+
S: Qn(a, d) + u
|
|
1551
|
+
}) : "");
|
|
1552
|
+
}
|
|
1553
|
+
function ci(n) {
|
|
1554
|
+
const t = [];
|
|
1555
|
+
for (const e in n) {
|
|
1556
|
+
const o = n[e];
|
|
1557
|
+
o && t.push(o, e);
|
|
1558
|
+
}
|
|
1559
|
+
return t.join("");
|
|
1560
|
+
}
|
|
1561
|
+
function Qn(n, t) {
|
|
1562
|
+
if (!n && !t)
|
|
1563
|
+
return "";
|
|
1564
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
1565
|
+
return e.useGrouping = 0, n.toLocaleString("fullwide", e);
|
|
1566
|
+
}
|
|
1567
|
+
function gr(n, t) {
|
|
1568
|
+
return Oe(n) + "T" + bc(n, t);
|
|
1569
|
+
}
|
|
1570
|
+
function Oe(n) {
|
|
1571
|
+
return Sc(n) + "-" + dn(n.day);
|
|
1572
|
+
}
|
|
1573
|
+
function Sc(n) {
|
|
1574
|
+
const { year: t } = n;
|
|
1575
|
+
return (t < 0 || t > 9999 ? Oc(t) + Me(6, Math.abs(t)) : Me(4, t)) + "-" + dn(n.month);
|
|
1576
|
+
}
|
|
1577
|
+
function fu(n) {
|
|
1578
|
+
return dn(n.month) + "-" + dn(n.day);
|
|
1579
|
+
}
|
|
1580
|
+
function bc(n, t) {
|
|
1581
|
+
const e = [dn(n.hour), dn(n.minute)];
|
|
1582
|
+
return t !== -1 && e.push(dn(n.second) + ((o, r, i, c) => Ir(o * ne + r * Qt + i, c))(n.millisecond, n.microsecond, n.nanosecond, t)), e.join(":");
|
|
1583
|
+
}
|
|
1584
|
+
function Ke(n, t = 0) {
|
|
1585
|
+
if (t === 1)
|
|
1586
|
+
return "";
|
|
1587
|
+
const [e, o] = gn(Math.abs(n), ee), [r, i] = gn(o, te), [c, a] = gn(i, $n);
|
|
1588
|
+
return Oc(n) + dn(e) + ":" + dn(r) + (c || a ? ":" + dn(c) + Ir(a) : "");
|
|
1589
|
+
}
|
|
1590
|
+
function lu(n, t) {
|
|
1591
|
+
return t !== 1 ? "[" + (t === 2 ? "!" : "") + n + "]" : "";
|
|
1592
|
+
}
|
|
1593
|
+
function vr(n, t) {
|
|
1594
|
+
return t > 1 || t === 0 && n !== fn ? Fc(Nn(n), t === 2) : "";
|
|
1595
|
+
}
|
|
1596
|
+
function Fc(n, t) {
|
|
1597
|
+
return "[" + (t ? "!" : "") + "u-ca=" + n + "]";
|
|
1598
|
+
}
|
|
1599
|
+
const mu = /0+$/;
|
|
1600
|
+
function Ir(n, t) {
|
|
1601
|
+
let e = Me(9, n);
|
|
1602
|
+
return e = t === void 0 ? e.replace(mu, "") : e.slice(0, t), e ? "." + e : "";
|
|
1603
|
+
}
|
|
1604
|
+
function Oc(n) {
|
|
1605
|
+
return n < 0 ? "-" : "+";
|
|
1606
|
+
}
|
|
1607
|
+
const hu = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/, yu = /[^\w\/:+-]+/;
|
|
1608
|
+
function pu(n) {
|
|
1609
|
+
return Mr(W(n));
|
|
1610
|
+
}
|
|
1611
|
+
function Mr(n) {
|
|
1612
|
+
return Cc(n).id;
|
|
1613
|
+
}
|
|
1614
|
+
function Cc(n) {
|
|
1615
|
+
const t = n.toUpperCase(), e = ((r) => {
|
|
1616
|
+
const i = sr(r, 1);
|
|
1617
|
+
if (i !== void 0)
|
|
1618
|
+
return {
|
|
1619
|
+
id: Ke(i),
|
|
1620
|
+
_: i,
|
|
1621
|
+
o: i
|
|
1622
|
+
};
|
|
1623
|
+
})(t);
|
|
1624
|
+
if (e)
|
|
1625
|
+
return {
|
|
1626
|
+
kind: "fixed",
|
|
1627
|
+
...e
|
|
1628
|
+
};
|
|
1629
|
+
const o = t === "UTC" ? "UTC" : ((r) => (yu.test(r) && h(hi(r)), hu.test(r) && h("Forbidden ICU TimeZone"), r.toLowerCase().split("/").map((i, c) => (i.length <= 3 || /\d/.test(i)) && !/etc|yap/.test(i) ? i.toUpperCase() : i.replace(/baja|dumont|[a-z]+/g, (a, s) => a.length <= 2 && !c || a === "in" || a === "chat" ? a.toUpperCase() : a.length > 2 || !s ? xr(a).replace(/island|noronha|murdo|rivadavia|urville/, xr) : a)).join("/")))(n);
|
|
1630
|
+
return gu(o);
|
|
1631
|
+
}
|
|
1632
|
+
const gu = /* @__PURE__ */ Mt((n) => {
|
|
1633
|
+
if (n === "UTC")
|
|
1634
|
+
return {
|
|
1635
|
+
kind: "utc",
|
|
1636
|
+
id: n,
|
|
1637
|
+
o: n
|
|
1638
|
+
};
|
|
1639
|
+
const t = n.toUpperCase(), e = vu(t);
|
|
1640
|
+
return {
|
|
1641
|
+
kind: "named",
|
|
1642
|
+
id: n,
|
|
1643
|
+
format: e,
|
|
1644
|
+
o: e.resolvedOptions().timeZone
|
|
1645
|
+
};
|
|
1646
|
+
}), vu = /* @__PURE__ */ Mt((n) => new Bn("en-u-hc-h23", {
|
|
1647
|
+
calendar: "iso8601",
|
|
1648
|
+
timeZone: n,
|
|
1649
|
+
era: "short",
|
|
1650
|
+
year: "numeric",
|
|
1651
|
+
month: "numeric",
|
|
1652
|
+
day: "numeric",
|
|
1653
|
+
hour: "numeric",
|
|
1654
|
+
minute: "numeric",
|
|
1655
|
+
second: "numeric"
|
|
1656
|
+
}));
|
|
1657
|
+
function X(n) {
|
|
1658
|
+
const t = Cc(n);
|
|
1659
|
+
return Iu(t.id, t);
|
|
1660
|
+
}
|
|
1661
|
+
const Iu = /* @__PURE__ */ Mt((n, t) => t.kind === "named" ? new Nu(n, t.o, t.format) : new Mu(n, t.o, t.kind === "fixed" ? t._ : 0));
|
|
1662
|
+
class Mu {
|
|
1663
|
+
constructor(t, e, o) {
|
|
1664
|
+
this.id = t, this.o = e, this._ = o;
|
|
1665
|
+
}
|
|
1666
|
+
C() {
|
|
1667
|
+
return this._;
|
|
1668
|
+
}
|
|
1669
|
+
R(t) {
|
|
1670
|
+
return [Xo(t, this._)];
|
|
1671
|
+
}
|
|
1672
|
+
U() {
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
class Nu {
|
|
1676
|
+
constructor(t, e, o) {
|
|
1677
|
+
this.id = t, this.o = e, this.qe = ((r, i) => {
|
|
1678
|
+
const c = Mt(r), a = Mt(Tu), s = 86400 * i;
|
|
1679
|
+
function u(f) {
|
|
1680
|
+
const [l, m] = si(f, s), p = ve(l), y = ve(m), g = c(p), v = c(y);
|
|
1681
|
+
return g === v ? g : d(a(p, y), g, v, f);
|
|
1682
|
+
}
|
|
1683
|
+
function d(f, l, m, p) {
|
|
1684
|
+
let y, g;
|
|
1685
|
+
for (; (p === void 0 || (y = p < f[0] ? l : p >= f[1] ? m : void 0) === void 0) && (g = f[1] - f[0]); ) {
|
|
1686
|
+
const v = f[0] + Math.floor(g / 2);
|
|
1687
|
+
r(v) === m ? f[1] = v : f[0] = v + 1;
|
|
1688
|
+
}
|
|
1689
|
+
return y;
|
|
1690
|
+
}
|
|
1691
|
+
return {
|
|
1692
|
+
Ee(f) {
|
|
1693
|
+
const l = u(f - 86400), m = u(f + 86400), p = f - l, y = f - m;
|
|
1694
|
+
if (l === m)
|
|
1695
|
+
return [p];
|
|
1696
|
+
const g = u(p);
|
|
1697
|
+
return g === u(y) ? [f - g] : l > m ? [p, y] : [];
|
|
1698
|
+
},
|
|
1699
|
+
De: u,
|
|
1700
|
+
U: function f(l, m) {
|
|
1701
|
+
if (m > 0 && l >= 864e10)
|
|
1702
|
+
return;
|
|
1703
|
+
if (m < 0) {
|
|
1704
|
+
if (l <= ro)
|
|
1705
|
+
return;
|
|
1706
|
+
const M = ai() + 94867200;
|
|
1707
|
+
if (l > M)
|
|
1708
|
+
return f(M, -1);
|
|
1709
|
+
}
|
|
1710
|
+
const p = m > 0 ? Math.max(l, ro) : l;
|
|
1711
|
+
let [y, g] = si(p, s);
|
|
1712
|
+
const v = s * m, I = m > 0 ? Math.max(l, ai()) + 94867200 : ro, D = () => m < 0 ? g > I : y < I;
|
|
1713
|
+
for (; D(); ) {
|
|
1714
|
+
const M = ve(y), an = ve(g), G = c(M), sn = c(an);
|
|
1715
|
+
if (G !== sn) {
|
|
1716
|
+
const V = a(M, an);
|
|
1717
|
+
d(V, G, sn);
|
|
1718
|
+
const L = V[0];
|
|
1719
|
+
if ((Pn(L, l) || 1) === m)
|
|
1720
|
+
return L;
|
|
1721
|
+
}
|
|
1722
|
+
y += v, g += v;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
})(/* @__PURE__ */ ((r) => (i) => {
|
|
1727
|
+
const c = su(r, 1e3 * i);
|
|
1728
|
+
return 86400 * Lt(((a) => {
|
|
1729
|
+
const s = a.relatedYear;
|
|
1730
|
+
if (s !== void 0)
|
|
1731
|
+
return parseInt(s);
|
|
1732
|
+
const u = parseInt(a.year);
|
|
1733
|
+
return a.era !== void 0 && Mi(a.era) === "bce" ? 1 - u : u;
|
|
1734
|
+
})(c), parseInt(c.month), parseInt(c.day)) + 3600 * parseInt(c.hour) + 60 * parseInt(c.minute) + parseInt(c.second) - i;
|
|
1735
|
+
})(o), ((r) => {
|
|
1736
|
+
const i = r.split("/").pop();
|
|
1737
|
+
return uu[i] || 60;
|
|
1738
|
+
})(t));
|
|
1739
|
+
}
|
|
1740
|
+
C(t) {
|
|
1741
|
+
return this.qe.De(((e) => jr(e)[0])(t)) * $n;
|
|
1742
|
+
}
|
|
1743
|
+
R(t) {
|
|
1744
|
+
const e = 86400 * Tn(t) + Yo(t), o = Bi(t);
|
|
1745
|
+
return this.qe.Ee(e).map((r) => Sn(BigInt(r) * et + BigInt(o)));
|
|
1746
|
+
}
|
|
1747
|
+
U(t, e) {
|
|
1748
|
+
const [o, r] = jr(t), i = this.qe.U(o + (e > 0 || r ? 1 : 0), e);
|
|
1749
|
+
if (i !== void 0)
|
|
1750
|
+
return BigInt(i) * et;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
function ai() {
|
|
1754
|
+
return Math.floor(Date.now() / 1e3);
|
|
1755
|
+
}
|
|
1756
|
+
function Tu(n, t) {
|
|
1757
|
+
return [n, t];
|
|
1758
|
+
}
|
|
1759
|
+
function si(n, t) {
|
|
1760
|
+
const e = Math.floor(n / t) * t;
|
|
1761
|
+
return [e, e + t];
|
|
1762
|
+
}
|
|
1763
|
+
function ve(n) {
|
|
1764
|
+
return To(n, -1e10, 864e10);
|
|
1765
|
+
}
|
|
1766
|
+
function Du(n, t, e) {
|
|
1767
|
+
const o = E(e, _(t, Zi, Ei), fr, [], 0);
|
|
1768
|
+
if (o.timeZone !== void 0) {
|
|
1769
|
+
const r = Ht(t, o), i = ue(o), c = X(n(o.timeZone));
|
|
1770
|
+
return {
|
|
1771
|
+
epochNanoseconds: wt(c, Z(r, i), o.offset),
|
|
1772
|
+
timeZone: c,
|
|
1773
|
+
calendar: t
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
return Ht(t, o);
|
|
1777
|
+
}
|
|
1778
|
+
function Su(n, t, e, o) {
|
|
1779
|
+
const r = E(e, _(t, Zi, Ei), fr, Bo, 0), i = n(r.timeZone), [c, a, s, u] = Xe(t, r, () => qt(o)), d = ue(r, a), f = X(i);
|
|
1780
|
+
return bn(wt(f, Z(c, d), r.offset, s, u), f, t);
|
|
1781
|
+
}
|
|
1782
|
+
function bu(n, t, e) {
|
|
1783
|
+
const o = E(t, _(n, Ci, Pi), dr, [], 0), [r, i] = Xe(n, o, () => [T(e)]);
|
|
1784
|
+
return ze(r, ue(o, i), n);
|
|
1785
|
+
}
|
|
1786
|
+
function Fu(n, t, e, o = []) {
|
|
1787
|
+
return Ht(n, E(t, _(n, ct, at), cn, o), e);
|
|
1788
|
+
}
|
|
1789
|
+
function Ou(n, t, e, o) {
|
|
1790
|
+
return mr(n, E(t, _(n, oe, bi), cn, o), e);
|
|
1791
|
+
}
|
|
1792
|
+
function Cu(n, t, e, o) {
|
|
1793
|
+
const r = E(e, _(n, ct, at), cn, it, 0);
|
|
1794
|
+
return t && r.month !== void 0 && r.monthCode === void 0 && r.year === void 0 && (r.year = 1972), hr(n, r, o);
|
|
1795
|
+
}
|
|
1796
|
+
function Pu(n, t) {
|
|
1797
|
+
return ue(E(n, lo, ur, [], 1), T(t));
|
|
1798
|
+
}
|
|
1799
|
+
function Zu(n) {
|
|
1800
|
+
const t = E(n, _i, vc);
|
|
1801
|
+
return x(st({
|
|
1802
|
+
...B,
|
|
1803
|
+
...t
|
|
1804
|
+
}));
|
|
1805
|
+
}
|
|
1806
|
+
function on(n) {
|
|
1807
|
+
h(yi(n));
|
|
1808
|
+
}
|
|
1809
|
+
function Eu(n) {
|
|
1810
|
+
const t = Vn(n = Lo(n));
|
|
1811
|
+
let e;
|
|
1812
|
+
return t || on(n), t.F ? e = 0 : t.offset ? e = Je(t.offset) : on(n), t.timeZoneId && sr(t.timeZoneId, 1), xe(t), pn(Xo(t, e));
|
|
1813
|
+
}
|
|
1814
|
+
function wu(n, t) {
|
|
1815
|
+
const e = Vn(W(n));
|
|
1816
|
+
return e || on(n), e.timeZoneId ? Pc(e, t, void 0) : (e.F && on(n), vo(e, t));
|
|
1817
|
+
}
|
|
1818
|
+
function Bu(n, t, e) {
|
|
1819
|
+
const o = Vn(W(n));
|
|
1820
|
+
return o && o.timeZoneId || on(n), Pc(o, t, e);
|
|
1821
|
+
}
|
|
1822
|
+
function Yu(n, t) {
|
|
1823
|
+
const e = Vn(W(n));
|
|
1824
|
+
return e && !e.F || on(n), Zc(e, t);
|
|
1825
|
+
}
|
|
1826
|
+
function ku(n, t) {
|
|
1827
|
+
const e = Dr(Tr(W(n)), void 0, t);
|
|
1828
|
+
return b(e, e.calendar);
|
|
1829
|
+
}
|
|
1830
|
+
function Ru(n, t) {
|
|
1831
|
+
const e = br(W(n));
|
|
1832
|
+
if (e)
|
|
1833
|
+
return Nr(e), b(zo(qn(e)), t(e.calendarId));
|
|
1834
|
+
const o = Dr(Tr(n), Wu, t), { calendar: r } = o;
|
|
1835
|
+
return b(Gt(r, o), r);
|
|
1836
|
+
}
|
|
1837
|
+
function Nr(n) {
|
|
1838
|
+
n.calendarId !== "iso8601" && h(Cn(n.calendarId));
|
|
1839
|
+
}
|
|
1840
|
+
function Au(n, t) {
|
|
1841
|
+
const e = Fr(W(n));
|
|
1842
|
+
if (e)
|
|
1843
|
+
return Nr(e), b(qn(e), t(e.calendarId));
|
|
1844
|
+
const o = Dr(Tr(n), $u, t), { calendar: r } = o, { year: i, month: c, day: a } = F(r, o), [s, u] = ot(r, i, c), { year: d, month: f } = ((l, m, p, y) => {
|
|
1845
|
+
const g = l ? l.v(m, p, y) : mo(m, p);
|
|
1846
|
+
return g || h("Cannot guess year"), g;
|
|
1847
|
+
})(r, s, u, a);
|
|
1848
|
+
return b(Q(rt(r, d, f, a)), r);
|
|
1849
|
+
}
|
|
1850
|
+
function xu(n) {
|
|
1851
|
+
let t = ((o) => {
|
|
1852
|
+
const r = wc(o);
|
|
1853
|
+
return r ? (de(r[13]), Bc(r, 1)) : void 0;
|
|
1854
|
+
})(n = W(n)), e;
|
|
1855
|
+
return t || (t = Vn(n), t ? (t.fe || on(n), t.F && h(Cn("Z")), Nr(t)) : on(n)), (e = br(n)) && Ur(e) && on(n), (e = Fr(n)) && Ur(e) && on(n), Et(Ye(t));
|
|
1856
|
+
}
|
|
1857
|
+
function ju(n) {
|
|
1858
|
+
const t = ((e) => {
|
|
1859
|
+
const o = zu.exec(e);
|
|
1860
|
+
return o ? ((r) => {
|
|
1861
|
+
let i = 0, c = 0, a = 0, s = {
|
|
1862
|
+
years: u(r[2]),
|
|
1863
|
+
months: u(r[3]),
|
|
1864
|
+
weeks: u(r[4]),
|
|
1865
|
+
days: u(r[5]),
|
|
1866
|
+
hours: u(r[6], r[7], 5),
|
|
1867
|
+
minutes: u(r[8], r[9], 4),
|
|
1868
|
+
seconds: u(r[10], r[11], 3),
|
|
1869
|
+
...ir(a, 2, C)
|
|
1870
|
+
};
|
|
1871
|
+
return i || h(li(C)), Oo(r[1]) < 0 && (s = q(s)), s;
|
|
1872
|
+
function u(d, f, l) {
|
|
1873
|
+
let m = 0, p = 0;
|
|
1874
|
+
return l && ([m, a] = gn(a, ln[l])), d !== void 0 && (c && h(Cn(d)), p = ((y) => {
|
|
1875
|
+
const g = parseInt(y);
|
|
1876
|
+
return Number.isFinite(g) || h(Cn(y)), g;
|
|
1877
|
+
})(d), i = 1, f && (a = Fo(f) * (ln[l] / $n), c = 1)), m + p;
|
|
1878
|
+
}
|
|
1879
|
+
})(o) : void 0;
|
|
1880
|
+
})(W(n));
|
|
1881
|
+
return t || on(n), x(st(t));
|
|
1882
|
+
}
|
|
1883
|
+
function Uu(n) {
|
|
1884
|
+
const t = Vn(n) || br(n) || Fr(n);
|
|
1885
|
+
if (t)
|
|
1886
|
+
return t.calendarId;
|
|
1887
|
+
const e = wc(n);
|
|
1888
|
+
return e ? de(e[13]).calendarId : n;
|
|
1889
|
+
}
|
|
1890
|
+
function Lu(n) {
|
|
1891
|
+
const t = Vn(n);
|
|
1892
|
+
return t && (t.timeZoneId || t.F && "UTC" || t.offset) || n;
|
|
1893
|
+
}
|
|
1894
|
+
function Tr(n) {
|
|
1895
|
+
const t = Vn(n);
|
|
1896
|
+
return t && !t.F || on(n), t;
|
|
1897
|
+
}
|
|
1898
|
+
function Dr(n, t, e) {
|
|
1899
|
+
return t && n.calendarId === "iso8601" ? (qn(n), n.fe && Ye(n), vo(t(n), e)) : n.fe ? Zc(n, e) : vo(n, e);
|
|
1900
|
+
}
|
|
1901
|
+
function Wu(n) {
|
|
1902
|
+
const t = 12 * n.year + n.month === nc ? 20 : 1;
|
|
1903
|
+
return {
|
|
1904
|
+
...n,
|
|
1905
|
+
day: t
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
function $u(n) {
|
|
1909
|
+
return {
|
|
1910
|
+
...n,
|
|
1911
|
+
year: 1972
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
function Pc(n, t, e) {
|
|
1915
|
+
const o = X(Mr(n.timeZoneId));
|
|
1916
|
+
let r;
|
|
1917
|
+
if (xe(n), n.fe) {
|
|
1918
|
+
const c = n.offset ? Je(n.offset) : void 0, [, a, s] = qt(e);
|
|
1919
|
+
r = wt(o, n, c, a, s, !(o._ || n.offset === void 0 || (i = n.offset, i.replace(/\D/g, "").length > 4)), n.F);
|
|
1920
|
+
} else
|
|
1921
|
+
qt(e), r = jn(o, n);
|
|
1922
|
+
var i;
|
|
1923
|
+
return Sn(r), bn(r, o, t(n.calendarId));
|
|
1924
|
+
}
|
|
1925
|
+
function Zc(n, t) {
|
|
1926
|
+
return xe(n), Zt(n), {
|
|
1927
|
+
...Z(n, n),
|
|
1928
|
+
calendar: t(n.calendarId)
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
function vo(n, t) {
|
|
1932
|
+
return qn(n), Q(n), {
|
|
1933
|
+
calendar: t(n.calendarId),
|
|
1934
|
+
year: n.year,
|
|
1935
|
+
month: n.month,
|
|
1936
|
+
day: n.day
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
function Sr(n) {
|
|
1940
|
+
return `(\\d{2})(?:(:?)(\\d{2})(?:\\${n}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`;
|
|
1941
|
+
}
|
|
1942
|
+
function Ec(n) {
|
|
1943
|
+
return "([+-])" + Sr(n);
|
|
1944
|
+
}
|
|
1945
|
+
const qu = "(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]" + Sr(8) + "(Z|" + Ec(15) + ")?)?", _u = /* @__PURE__ */ St("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"), Gu = /* @__PURE__ */ St("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"), Vu = /* @__PURE__ */ St(qu + "((?:\\[(!?)([^\\]]*)\\]){0,9})"), Hu = /* @__PURE__ */ St("T?" + Sr(2) + `(${Ec(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`), Ju = /* @__PURE__ */ new RegExp("\\[(!?)([^\\]]*)\\]", "g"), zu = /* @__PURE__ */ St("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");
|
|
1946
|
+
function Vn(n) {
|
|
1947
|
+
const t = Vu.exec(n);
|
|
1948
|
+
return t ? ((e) => {
|
|
1949
|
+
const o = e[12], r = (o || "").toUpperCase() === "Z";
|
|
1950
|
+
return {
|
|
1951
|
+
year: Yc(e),
|
|
1952
|
+
month: parseInt(e[5]),
|
|
1953
|
+
day: parseInt(e[6]),
|
|
1954
|
+
...Bc(e, 7),
|
|
1955
|
+
...de(e[19]),
|
|
1956
|
+
fe: !!e[7],
|
|
1957
|
+
F: r,
|
|
1958
|
+
offset: r ? void 0 : o
|
|
1959
|
+
};
|
|
1960
|
+
})(t) : void 0;
|
|
1961
|
+
}
|
|
1962
|
+
function br(n) {
|
|
1963
|
+
const t = _u.exec(n);
|
|
1964
|
+
if (t)
|
|
1965
|
+
return ((e) => ({
|
|
1966
|
+
year: Yc(e),
|
|
1967
|
+
month: parseInt(e[4]),
|
|
1968
|
+
day: 1,
|
|
1969
|
+
...de(e[5])
|
|
1970
|
+
}))(t);
|
|
1971
|
+
}
|
|
1972
|
+
function Fr(n) {
|
|
1973
|
+
const t = Gu.exec(n);
|
|
1974
|
+
return t ? ((e) => ({
|
|
1975
|
+
year: 1972,
|
|
1976
|
+
month: parseInt(e[1]),
|
|
1977
|
+
day: parseInt(e[2]),
|
|
1978
|
+
...de(e[3])
|
|
1979
|
+
}))(t) : void 0;
|
|
1980
|
+
}
|
|
1981
|
+
function wc(n) {
|
|
1982
|
+
const t = Hu.exec(n);
|
|
1983
|
+
if (t)
|
|
1984
|
+
return t[6] && Je(t[6]), t;
|
|
1985
|
+
}
|
|
1986
|
+
function Bc(n, t) {
|
|
1987
|
+
const e = vt(n[t + 3]);
|
|
1988
|
+
return {
|
|
1989
|
+
...ko(Fo(n[t + 4] || ""))[0],
|
|
1990
|
+
hour: vt(n[t]),
|
|
1991
|
+
minute: vt(n[t + 2]),
|
|
1992
|
+
second: e === 60 ? 59 : e
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
function Yc(n) {
|
|
1996
|
+
const t = Oo(n[1]), e = parseInt(n[2] || n[3]);
|
|
1997
|
+
return t < 0 && !e && h(Cn(-0)), t * e;
|
|
1998
|
+
}
|
|
1999
|
+
function de(n) {
|
|
2000
|
+
let t, e;
|
|
2001
|
+
const o = [];
|
|
2002
|
+
return n.replace(Ju, (r, i, c) => {
|
|
2003
|
+
const a = !!i, [s, u] = c.split("=").reverse();
|
|
2004
|
+
return u ? u === "u-ca" ? (o.push(s.toLowerCase()), t || (t = a)) : (a || /[A-Z]/.test(u)) && h(Cn(r)) : (e && h(Cn(r)), e = s), "";
|
|
2005
|
+
}), o.length > 1 && t && h(Cn(n)), {
|
|
2006
|
+
timeZoneId: e,
|
|
2007
|
+
calendarId: o[0] || "iso8601"
|
|
2008
|
+
};
|
|
2009
|
+
}
|
|
2010
|
+
function kt(n, t, e) {
|
|
2011
|
+
const o = Object.assign(/* @__PURE__ */ Object.create(null), t);
|
|
2012
|
+
return co(o, e, Si), Yt(n) && (co(o, e, Va), n && n.le && co(o, e, Ha, Ft)), o;
|
|
2013
|
+
}
|
|
2014
|
+
function co(n, t, e, o) {
|
|
2015
|
+
let r = 0;
|
|
2016
|
+
const i = [];
|
|
2017
|
+
for (const c of e)
|
|
2018
|
+
t[c] !== void 0 ? r = 1 : i.push(c);
|
|
2019
|
+
if (Object.assign(n, t), r)
|
|
2020
|
+
for (const c of o || i)
|
|
2021
|
+
delete n[c];
|
|
2022
|
+
}
|
|
2023
|
+
function Xu(n, t, e) {
|
|
2024
|
+
const { calendar: o, timeZone: r } = n, i = _(o, za, Xa), c = j(n), { year: a, month: s, day: u } = F(o, c), d = {
|
|
2025
|
+
year: a,
|
|
2026
|
+
monthCode: fe(o, a, s),
|
|
2027
|
+
day: u,
|
|
2028
|
+
hour: c.hour,
|
|
2029
|
+
minute: c.minute,
|
|
2030
|
+
second: c.second,
|
|
2031
|
+
millisecond: c.millisecond,
|
|
2032
|
+
microsecond: c.microsecond,
|
|
2033
|
+
nanosecond: c.nanosecond,
|
|
2034
|
+
offset: c.offsetNanoseconds
|
|
2035
|
+
}, f = E(t, i, fr), l = kt(o, d, f), m = {
|
|
2036
|
+
...d,
|
|
2037
|
+
...f
|
|
2038
|
+
}, [p, y, g, v] = Xe(o, l, () => qt(e, 2));
|
|
2039
|
+
return bn(wt(r, Z(p, ke(m, y)), m.offset, g, v), r, o);
|
|
2040
|
+
}
|
|
2041
|
+
function Ku(n, t, e) {
|
|
2042
|
+
const { calendar: o } = n, r = _(o, Ci, Pi), { year: i, month: c, day: a } = F(o, n), s = {
|
|
2043
|
+
year: i,
|
|
2044
|
+
monthCode: fe(o, i, c),
|
|
2045
|
+
day: a,
|
|
2046
|
+
hour: n.hour,
|
|
2047
|
+
minute: n.minute,
|
|
2048
|
+
second: n.second,
|
|
2049
|
+
millisecond: n.millisecond,
|
|
2050
|
+
microsecond: n.microsecond,
|
|
2051
|
+
nanosecond: n.nanosecond
|
|
2052
|
+
}, u = E(t, r, dr), d = kt(o, s, u), f = {
|
|
2053
|
+
...s,
|
|
2054
|
+
...u
|
|
2055
|
+
}, [l, m] = Xe(o, d, () => [T(e)]);
|
|
2056
|
+
return ze(l, ke(f, m), o);
|
|
2057
|
+
}
|
|
2058
|
+
function Qu(n, t, e) {
|
|
2059
|
+
const { calendar: o } = n, r = _(o, ct, at), { year: i, month: c, day: a } = F(o, n);
|
|
2060
|
+
return Ht(o, kt(o, {
|
|
2061
|
+
year: i,
|
|
2062
|
+
monthCode: fe(o, i, c),
|
|
2063
|
+
day: a
|
|
2064
|
+
}, E(t, r, cn)), e);
|
|
2065
|
+
}
|
|
2066
|
+
function nd(n, t, e) {
|
|
2067
|
+
const { calendar: o } = n, r = _(o, oe, bi), { year: i, month: c } = F(o, n);
|
|
2068
|
+
return mr(o, kt(o, {
|
|
2069
|
+
year: i,
|
|
2070
|
+
monthCode: fe(o, i, c)
|
|
2071
|
+
}, E(t, r, cn)), e);
|
|
2072
|
+
}
|
|
2073
|
+
function td(n, t, e) {
|
|
2074
|
+
const { calendar: o } = n, r = _(o, ct, at), { year: i, month: c, day: a } = F(o, n);
|
|
2075
|
+
return hr(o, kt(o, {
|
|
2076
|
+
monthCode: fe(o, i, c),
|
|
2077
|
+
day: a
|
|
2078
|
+
}, E(t, r, cn)), e);
|
|
2079
|
+
}
|
|
2080
|
+
function ed(n, t, e) {
|
|
2081
|
+
return ((o, r, i) => ue({
|
|
2082
|
+
...Mn(lo, o),
|
|
2083
|
+
...E(r, lo, ur)
|
|
2084
|
+
}, T(i)))(n, t, e);
|
|
2085
|
+
}
|
|
2086
|
+
function od(n, t) {
|
|
2087
|
+
return x((e = n, o = t, st({
|
|
2088
|
+
...e,
|
|
2089
|
+
...E(o, _i, vc)
|
|
2090
|
+
})));
|
|
2091
|
+
var e, o;
|
|
2092
|
+
}
|
|
2093
|
+
function fe(n, t, e) {
|
|
2094
|
+
const [o, r] = ot(n, t, e);
|
|
2095
|
+
return Ti(o, r);
|
|
2096
|
+
}
|
|
2097
|
+
function rd(n, t, e) {
|
|
2098
|
+
return bn(n.epochNanoseconds, t, e);
|
|
2099
|
+
}
|
|
2100
|
+
function id(n) {
|
|
2101
|
+
return pn(n.epochNanoseconds);
|
|
2102
|
+
}
|
|
2103
|
+
function kc(n) {
|
|
2104
|
+
return On(j(n), n.calendar);
|
|
2105
|
+
}
|
|
2106
|
+
function Rc(n) {
|
|
2107
|
+
return b(j(n), n.calendar);
|
|
2108
|
+
}
|
|
2109
|
+
function Ac(n) {
|
|
2110
|
+
return Et(j(n));
|
|
2111
|
+
}
|
|
2112
|
+
function cd(n, t, e) {
|
|
2113
|
+
const o = ((r, i, c) => {
|
|
2114
|
+
const a = ((s) => zi(Dn(s)))(c);
|
|
2115
|
+
return ae(r, i, a);
|
|
2116
|
+
})(t, n, e);
|
|
2117
|
+
return bn(Sn(o), t, n.calendar);
|
|
2118
|
+
}
|
|
2119
|
+
function ad(n, t, e, o) {
|
|
2120
|
+
const r = n(o.timeZone), i = o.plainTime, c = i !== void 0 ? t(i) : void 0, a = X(r);
|
|
2121
|
+
let s;
|
|
2122
|
+
return s = c ? ae(a, Z(e, c)) : jn(a, Z(e, mn)), bn(s, a, e.calendar);
|
|
2123
|
+
}
|
|
2124
|
+
function sd(n, t, e) {
|
|
2125
|
+
return xc(n, Mn(_(n, re, Fi), t), E(zt(e), it, cn, []));
|
|
2126
|
+
}
|
|
2127
|
+
function ud(n, t, e) {
|
|
2128
|
+
const o = _(n, we, Ja);
|
|
2129
|
+
return xc(n, Mn(Oi, t), E(zt(e), o, cn, []));
|
|
2130
|
+
}
|
|
2131
|
+
function dd(n, t) {
|
|
2132
|
+
return hr(n, E(t, Oi, cn));
|
|
2133
|
+
}
|
|
2134
|
+
function fd(n, t, e) {
|
|
2135
|
+
return mr(n, E(t, _(n, re, Fi), cn), e);
|
|
2136
|
+
}
|
|
2137
|
+
function xc(n, t, e) {
|
|
2138
|
+
const o = _(n, Ka, Qa);
|
|
2139
|
+
let r = kt(n, t, e);
|
|
2140
|
+
return r = E(r, o, cn, []), Ht(n, r);
|
|
2141
|
+
}
|
|
2142
|
+
function ld(n) {
|
|
2143
|
+
return pn(Sn(BigInt($o(n)) * Ee));
|
|
2144
|
+
}
|
|
2145
|
+
function md(n) {
|
|
2146
|
+
return pn(Sn(Wo(n)));
|
|
2147
|
+
}
|
|
2148
|
+
function le(n) {
|
|
2149
|
+
return n.timeZone = "UTC", ["full", "long"].includes(n.timeStyle) && (n.timeStyle = "medium"), n;
|
|
2150
|
+
}
|
|
2151
|
+
function hd(n, t) {
|
|
2152
|
+
return n.timeZone !== void 0 && S("Cannot specify TimeZone"), n.timeZone = t, n;
|
|
2153
|
+
}
|
|
2154
|
+
function me(n, t, e) {
|
|
2155
|
+
const o = n.resolvedOptions().calendar;
|
|
2156
|
+
!e && t.calendar === fn || Nn(t.calendar) === o || h("Mismatching Calendars");
|
|
2157
|
+
}
|
|
2158
|
+
function dt(n, t, e, o, r) {
|
|
2159
|
+
const i = new Set(n), c = new Set(t), a = new Set(e);
|
|
2160
|
+
return (s, u) => {
|
|
2161
|
+
const d = ((M, an, G, sn) => {
|
|
2162
|
+
const V = {
|
|
2163
|
+
dateStyle: void 0,
|
|
2164
|
+
timeStyle: void 0,
|
|
2165
|
+
me: {},
|
|
2166
|
+
pe: {},
|
|
2167
|
+
xe: {},
|
|
2168
|
+
oe: 0,
|
|
2169
|
+
ue: 0
|
|
2170
|
+
};
|
|
2171
|
+
for (const L of Object.keys(M)) {
|
|
2172
|
+
const lt = M[L];
|
|
2173
|
+
lt === void 0 || sn.has(L) || (an.has(L) ? L === "dateStyle" ? V.dateStyle = lt : L === "timeStyle" ? V.timeStyle = lt : V.me[L] = lt : L === "era" ? V.pe[L] = lt : G.has(L) ? L === "dateStyle" || L === "timeStyle" ? V.ue = 1 : V.oe = 1 : V.xe[L] = lt);
|
|
2174
|
+
}
|
|
2175
|
+
return V;
|
|
2176
|
+
})(s, i, c, a), f = d.dateStyle !== void 0, l = d.timeStyle !== void 0, m = f || l, p = Object.keys(d.me).length > 0, y = d.oe || d.ue, g = p || f || l, v = Object.keys(d.pe).length > 0, I = p || v || d.oe;
|
|
2177
|
+
(!u && y || u && y && !g || m && I) && S("Invalid formatting options");
|
|
2178
|
+
const D = {};
|
|
2179
|
+
return m || g || Object.assign(D, o), Object.assign(D, d.me, d.pe, d.xe), f && (r ? Object.assign(D, r[d.dateStyle]) : D.dateStyle = d.dateStyle), l && (D.timeStyle = d.timeStyle), D;
|
|
2180
|
+
};
|
|
2181
|
+
}
|
|
2182
|
+
const jc = {
|
|
2183
|
+
year: "numeric",
|
|
2184
|
+
month: "numeric",
|
|
2185
|
+
day: "numeric"
|
|
2186
|
+
}, Uc = {
|
|
2187
|
+
hour: "numeric",
|
|
2188
|
+
minute: "numeric",
|
|
2189
|
+
second: "numeric"
|
|
2190
|
+
}, Or = /* @__PURE__ */ Object.assign({}, jc, Uc), yd = /* @__PURE__ */ Object.assign({}, Or, {
|
|
2191
|
+
timeZoneName: "short"
|
|
2192
|
+
}), pd = {
|
|
2193
|
+
year: "numeric",
|
|
2194
|
+
month: "numeric"
|
|
2195
|
+
}, gd = {
|
|
2196
|
+
month: "numeric",
|
|
2197
|
+
day: "numeric"
|
|
2198
|
+
}, Cr = ["weekday", "year", "month", "day", "dateStyle"], he = ["dayPeriod", "hour", "minute", "second", "fractionalSecondDigits", "timeStyle"], Pr = /* @__PURE__ */ Cr.concat(he), vd = /* @__PURE__ */ ["weekday", "day"].concat(he), Id = /* @__PURE__ */ ["weekday", "year"].concat(he), Md = /* @__PURE__ */ dt(Pr, [], [], Or), Nd = /* @__PURE__ */ dt(Pr, [], [], yd), Td = /* @__PURE__ */ dt(Pr, [], ["timeZoneName"], Or), Dd = /* @__PURE__ */ dt(Cr, he, ["timeZoneName"], jc), Sd = /* @__PURE__ */ dt(he, Cr, ["timeZoneName", "era"], Uc), bd = /* @__PURE__ */ dt(["year", "month", "dateStyle"], vd, ["timeZoneName"], pd, {
|
|
2199
|
+
full: {
|
|
2200
|
+
year: "numeric",
|
|
2201
|
+
month: "long"
|
|
2202
|
+
},
|
|
2203
|
+
long: {
|
|
2204
|
+
year: "numeric",
|
|
2205
|
+
month: "long"
|
|
2206
|
+
},
|
|
2207
|
+
medium: {
|
|
2208
|
+
year: "numeric",
|
|
2209
|
+
month: "short"
|
|
2210
|
+
},
|
|
2211
|
+
short: {
|
|
2212
|
+
year: "2-digit",
|
|
2213
|
+
month: "numeric"
|
|
2214
|
+
}
|
|
2215
|
+
}), Fd = /* @__PURE__ */ dt(["month", "day", "dateStyle"], Id, ["timeZoneName", "era"], gd, {
|
|
2216
|
+
full: {
|
|
2217
|
+
month: "long",
|
|
2218
|
+
day: "numeric"
|
|
2219
|
+
},
|
|
2220
|
+
long: {
|
|
2221
|
+
month: "long",
|
|
2222
|
+
day: "numeric"
|
|
2223
|
+
},
|
|
2224
|
+
medium: {
|
|
2225
|
+
month: "short",
|
|
2226
|
+
day: "numeric"
|
|
2227
|
+
},
|
|
2228
|
+
short: {
|
|
2229
|
+
month: "numeric",
|
|
2230
|
+
day: "numeric"
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
function Od(n, t) {
|
|
2234
|
+
const { timeZone: e } = n, o = j(n), { offsetNanoseconds: r } = o, i = t || mn;
|
|
2235
|
+
let c;
|
|
2236
|
+
return c = t ? wt(e, Z(o, i), r, 2) : jn(e, Z(o, i)), bn(c, e, n.calendar);
|
|
2237
|
+
}
|
|
2238
|
+
function ao(n) {
|
|
2239
|
+
const t = Io(), e = n.C(t);
|
|
2240
|
+
return ie(t + BigInt(e));
|
|
2241
|
+
}
|
|
2242
|
+
function Io() {
|
|
2243
|
+
return BigInt(Date.now()) * Ee;
|
|
2244
|
+
}
|
|
2245
|
+
function xt() {
|
|
2246
|
+
return new Bn().resolvedOptions().timeZone;
|
|
2247
|
+
}
|
|
2248
|
+
const Lc = "PlainYearMonth", Wc = "PlainMonthDay", $c = "PlainDate", qc = "PlainDateTime", _c = "PlainTime", Gc = "ZonedDateTime", Vc = "Instant", Hc = "Duration";
|
|
2249
|
+
function Hn(n, t, e, ...o) {
|
|
2250
|
+
Object.defineProperties(t, xa(n)), Object.defineProperties(t.prototype, So("Temporal." + n));
|
|
2251
|
+
for (const r of o)
|
|
2252
|
+
Cd(t.prototype, e, r);
|
|
2253
|
+
return t;
|
|
2254
|
+
}
|
|
2255
|
+
function Cd(n, t, e) {
|
|
2256
|
+
Object.defineProperties(n, Dt((o) => ({
|
|
2257
|
+
get() {
|
|
2258
|
+
return o(t(this));
|
|
2259
|
+
},
|
|
2260
|
+
configurable: 1
|
|
2261
|
+
}), e));
|
|
2262
|
+
}
|
|
2263
|
+
const Jn = Ar.name === "noop" ? (n) => {
|
|
2264
|
+
Object.defineProperty(n, "_str_", {
|
|
2265
|
+
value: n.toJSON()
|
|
2266
|
+
});
|
|
2267
|
+
} : Ar;
|
|
2268
|
+
function zn() {
|
|
2269
|
+
S(ka);
|
|
2270
|
+
}
|
|
2271
|
+
function Xn() {
|
|
2272
|
+
S(Ya);
|
|
2273
|
+
}
|
|
2274
|
+
const Pd = {
|
|
2275
|
+
era(n) {
|
|
2276
|
+
return Ne(n.calendar, n).era;
|
|
2277
|
+
},
|
|
2278
|
+
eraYear(n) {
|
|
2279
|
+
return Ne(n.calendar, n).eraYear;
|
|
2280
|
+
},
|
|
2281
|
+
year(n) {
|
|
2282
|
+
return F(n.calendar, n).year;
|
|
2283
|
+
},
|
|
2284
|
+
month(n) {
|
|
2285
|
+
return F(n.calendar, n).month;
|
|
2286
|
+
},
|
|
2287
|
+
monthCode(n) {
|
|
2288
|
+
return Ao(n.calendar, n);
|
|
2289
|
+
}
|
|
2290
|
+
}, Zr = {
|
|
2291
|
+
era(n) {
|
|
2292
|
+
return Ne(n.calendar, n).era;
|
|
2293
|
+
},
|
|
2294
|
+
eraYear(n) {
|
|
2295
|
+
return Ne(n.calendar, n).eraYear;
|
|
2296
|
+
},
|
|
2297
|
+
year(n) {
|
|
2298
|
+
return F(n.calendar, n).year;
|
|
2299
|
+
},
|
|
2300
|
+
month(n) {
|
|
2301
|
+
return F(n.calendar, n).month;
|
|
2302
|
+
},
|
|
2303
|
+
monthCode(n) {
|
|
2304
|
+
return Ao(n.calendar, n);
|
|
2305
|
+
},
|
|
2306
|
+
day(n) {
|
|
2307
|
+
return F(n.calendar, n).day;
|
|
2308
|
+
}
|
|
2309
|
+
}, Zd = {
|
|
2310
|
+
monthCode(n) {
|
|
2311
|
+
return Ao(n.calendar, n);
|
|
2312
|
+
},
|
|
2313
|
+
day(n) {
|
|
2314
|
+
return F(n.calendar, n).day;
|
|
2315
|
+
}
|
|
2316
|
+
}, Jc = {
|
|
2317
|
+
daysInMonth(n) {
|
|
2318
|
+
return $i(n.calendar, n);
|
|
2319
|
+
},
|
|
2320
|
+
daysInYear(n) {
|
|
2321
|
+
return qi(n.calendar, n);
|
|
2322
|
+
},
|
|
2323
|
+
monthsInYear(n) {
|
|
2324
|
+
return Wi(n.calendar, n);
|
|
2325
|
+
},
|
|
2326
|
+
inLeapYear(n) {
|
|
2327
|
+
return Li(n.calendar, n);
|
|
2328
|
+
}
|
|
2329
|
+
}, Qe = {
|
|
2330
|
+
dayOfWeek(n) {
|
|
2331
|
+
return Ro(n);
|
|
2332
|
+
},
|
|
2333
|
+
dayOfYear(n) {
|
|
2334
|
+
return us(n.calendar, n);
|
|
2335
|
+
},
|
|
2336
|
+
weekOfYear(n) {
|
|
2337
|
+
return ds(n.calendar, n);
|
|
2338
|
+
},
|
|
2339
|
+
yearOfWeek(n) {
|
|
2340
|
+
return fs(n.calendar, n);
|
|
2341
|
+
},
|
|
2342
|
+
daysInWeek() {
|
|
2343
|
+
return 7;
|
|
2344
|
+
},
|
|
2345
|
+
daysInMonth(n) {
|
|
2346
|
+
return $i(n.calendar, n);
|
|
2347
|
+
},
|
|
2348
|
+
daysInYear(n) {
|
|
2349
|
+
return qi(n.calendar, n);
|
|
2350
|
+
},
|
|
2351
|
+
monthsInYear(n) {
|
|
2352
|
+
return Wi(n.calendar, n);
|
|
2353
|
+
},
|
|
2354
|
+
inLeapYear(n) {
|
|
2355
|
+
return Li(n.calendar, n);
|
|
2356
|
+
}
|
|
2357
|
+
};
|
|
2358
|
+
function ui(n) {
|
|
2359
|
+
return bo(Object.keys(n));
|
|
2360
|
+
}
|
|
2361
|
+
ui(Jc), ui(Qe);
|
|
2362
|
+
function Kn(n) {
|
|
2363
|
+
const t = W(n).toLowerCase();
|
|
2364
|
+
return t === Ii ? fn : t === Ua ? Wa : void h(Aa(n, "temporal-polyfill/full"));
|
|
2365
|
+
}
|
|
2366
|
+
function ye(n = Ii) {
|
|
2367
|
+
return Kn(n);
|
|
2368
|
+
}
|
|
2369
|
+
const zc = /* @__PURE__ */ new WeakMap(), Xc = /* @__PURE__ */ Hn(Gc, class {
|
|
2370
|
+
constructor(n, t, e = void 0) {
|
|
2371
|
+
const o = Sn(Wo(n)), r = X(pu(t)), i = ye(e);
|
|
2372
|
+
Kc(this, bn(o, r, i));
|
|
2373
|
+
}
|
|
2374
|
+
static from(n, t = void 0) {
|
|
2375
|
+
return H(mt(n, t));
|
|
2376
|
+
}
|
|
2377
|
+
static compare(n, t) {
|
|
2378
|
+
return pc(mt(n), mt(t));
|
|
2379
|
+
}
|
|
2380
|
+
get calendarId() {
|
|
2381
|
+
return Nn(N(this).calendar);
|
|
2382
|
+
}
|
|
2383
|
+
get timeZoneId() {
|
|
2384
|
+
return N(this).timeZone.id;
|
|
2385
|
+
}
|
|
2386
|
+
get epochMilliseconds() {
|
|
2387
|
+
return Te(N(this));
|
|
2388
|
+
}
|
|
2389
|
+
get epochNanoseconds() {
|
|
2390
|
+
return Le(N(this));
|
|
2391
|
+
}
|
|
2392
|
+
get offset() {
|
|
2393
|
+
return Ke(j(N(this)).offsetNanoseconds);
|
|
2394
|
+
}
|
|
2395
|
+
get offsetNanoseconds() {
|
|
2396
|
+
return j(N(this)).offsetNanoseconds;
|
|
2397
|
+
}
|
|
2398
|
+
get hoursInDay() {
|
|
2399
|
+
return ks(N(this));
|
|
2400
|
+
}
|
|
2401
|
+
with(n, t = void 0) {
|
|
2402
|
+
return H(Xu(N(this), Rt(n), t));
|
|
2403
|
+
}
|
|
2404
|
+
withCalendar(n) {
|
|
2405
|
+
return H({
|
|
2406
|
+
...N(this),
|
|
2407
|
+
calendar: eo(n)
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
withTimeZone(n) {
|
|
2411
|
+
return H({
|
|
2412
|
+
...N(this),
|
|
2413
|
+
timeZone: X(rn(n))
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
withPlainTime(n = void 0) {
|
|
2417
|
+
return H(Od(N(this), Br(n)));
|
|
2418
|
+
}
|
|
2419
|
+
add(n, t = void 0) {
|
|
2420
|
+
const e = N(this);
|
|
2421
|
+
return H(Se(e, A(n), t));
|
|
2422
|
+
}
|
|
2423
|
+
subtract(n, t = void 0) {
|
|
2424
|
+
const e = N(this);
|
|
2425
|
+
return H(Se(e, q(A(n)), t));
|
|
2426
|
+
}
|
|
2427
|
+
until(n, t = void 0) {
|
|
2428
|
+
const e = N(this), o = mt(n), r = Un(e.calendar, o.calendar);
|
|
2429
|
+
return w(x(Gr(0, r, e, o, t)));
|
|
2430
|
+
}
|
|
2431
|
+
since(n, t = void 0) {
|
|
2432
|
+
const e = N(this), o = mt(n), r = Un(e.calendar, o.calendar);
|
|
2433
|
+
return w(x(Gr(1, r, e, o, t)));
|
|
2434
|
+
}
|
|
2435
|
+
round(n) {
|
|
2436
|
+
const t = N(this), [e, o, r] = Ue(n);
|
|
2437
|
+
return H(Ys(t, e, o, r));
|
|
2438
|
+
}
|
|
2439
|
+
startOfDay() {
|
|
2440
|
+
return H(Rs(N(this)));
|
|
2441
|
+
}
|
|
2442
|
+
equals(n) {
|
|
2443
|
+
return Qs(N(this), mt(n));
|
|
2444
|
+
}
|
|
2445
|
+
toInstant() {
|
|
2446
|
+
return kn(id(N(this)));
|
|
2447
|
+
}
|
|
2448
|
+
toPlainDateTime() {
|
|
2449
|
+
return hn(kc(N(this)));
|
|
2450
|
+
}
|
|
2451
|
+
toPlainDate() {
|
|
2452
|
+
return yn(Rc(N(this)));
|
|
2453
|
+
}
|
|
2454
|
+
toPlainTime() {
|
|
2455
|
+
return An(Ac(N(this)));
|
|
2456
|
+
}
|
|
2457
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2458
|
+
const e = N(this), o = new Bn(n, hd(Nd(t), qs(e)));
|
|
2459
|
+
return me(o, e), o.format(Te(e));
|
|
2460
|
+
}
|
|
2461
|
+
toString(n = void 0) {
|
|
2462
|
+
return ni(N(this), n);
|
|
2463
|
+
}
|
|
2464
|
+
toJSON() {
|
|
2465
|
+
return ni(N(this));
|
|
2466
|
+
}
|
|
2467
|
+
getTimeZoneTransition(n) {
|
|
2468
|
+
const t = N(this), e = Ls(t, n);
|
|
2469
|
+
return e ? H({
|
|
2470
|
+
...t,
|
|
2471
|
+
epochNanoseconds: e
|
|
2472
|
+
}) : null;
|
|
2473
|
+
}
|
|
2474
|
+
valueOf() {
|
|
2475
|
+
return Xn();
|
|
2476
|
+
}
|
|
2477
|
+
}, Ed, Zr, Qe, Eo);
|
|
2478
|
+
function H(n) {
|
|
2479
|
+
return Kc(Object.create(Xc.prototype), n);
|
|
2480
|
+
}
|
|
2481
|
+
function N(n) {
|
|
2482
|
+
return Fn(n) || zn();
|
|
2483
|
+
}
|
|
2484
|
+
function Ed(n) {
|
|
2485
|
+
const t = N(n);
|
|
2486
|
+
return {
|
|
2487
|
+
...j(t),
|
|
2488
|
+
calendar: t.calendar
|
|
2489
|
+
};
|
|
2490
|
+
}
|
|
2491
|
+
function Fn(n) {
|
|
2492
|
+
return zc.get(n);
|
|
2493
|
+
}
|
|
2494
|
+
function mt(n, t) {
|
|
2495
|
+
if (nn(n)) {
|
|
2496
|
+
const e = Fn(n);
|
|
2497
|
+
if (e)
|
|
2498
|
+
return qt(t), e;
|
|
2499
|
+
const o = pe(n);
|
|
2500
|
+
return Su(rn, o, n, t);
|
|
2501
|
+
}
|
|
2502
|
+
return Bu(n, Kn, t);
|
|
2503
|
+
}
|
|
2504
|
+
function Kc(n, t) {
|
|
2505
|
+
return zc.set(n, t), Jn(n), n;
|
|
2506
|
+
}
|
|
2507
|
+
function rn(n) {
|
|
2508
|
+
if (nn(n)) {
|
|
2509
|
+
const t = Fn(n);
|
|
2510
|
+
return t || S(hi(n)), t.timeZone.id;
|
|
2511
|
+
}
|
|
2512
|
+
return ((t) => Mr(Lu(W(t))))(n);
|
|
2513
|
+
}
|
|
2514
|
+
const Qc = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ Hn(Vc, class {
|
|
2515
|
+
constructor(n) {
|
|
2516
|
+
const t = Sn(Wo(n));
|
|
2517
|
+
ta(this, pn(t));
|
|
2518
|
+
}
|
|
2519
|
+
static from(n) {
|
|
2520
|
+
return kn(ht(n));
|
|
2521
|
+
}
|
|
2522
|
+
static fromEpochMilliseconds(n) {
|
|
2523
|
+
return kn(ld(n));
|
|
2524
|
+
}
|
|
2525
|
+
static fromEpochNanoseconds(n) {
|
|
2526
|
+
return kn(md(n));
|
|
2527
|
+
}
|
|
2528
|
+
static compare(n, t) {
|
|
2529
|
+
return yc(ht(n), ht(t));
|
|
2530
|
+
}
|
|
2531
|
+
get epochMilliseconds() {
|
|
2532
|
+
return Te(tn(this));
|
|
2533
|
+
}
|
|
2534
|
+
get epochNanoseconds() {
|
|
2535
|
+
return Le(tn(this));
|
|
2536
|
+
}
|
|
2537
|
+
add(n) {
|
|
2538
|
+
const t = tn(this);
|
|
2539
|
+
return kn(pn(qr(t.epochNanoseconds, A(n))));
|
|
2540
|
+
}
|
|
2541
|
+
subtract(n) {
|
|
2542
|
+
const t = tn(this);
|
|
2543
|
+
return kn(pn(qr(t.epochNanoseconds, q(A(n)))));
|
|
2544
|
+
}
|
|
2545
|
+
until(n, t = void 0) {
|
|
2546
|
+
return w(_r(0, tn(this), ht(n), t));
|
|
2547
|
+
}
|
|
2548
|
+
since(n, t = void 0) {
|
|
2549
|
+
return w(_r(1, tn(this), ht(n), t));
|
|
2550
|
+
}
|
|
2551
|
+
round(n) {
|
|
2552
|
+
const t = tn(this), [e, o, r] = Ue(n, 5, 1);
|
|
2553
|
+
return kn(pn(tr(t.epochNanoseconds, We(e, o), r)));
|
|
2554
|
+
}
|
|
2555
|
+
equals(n) {
|
|
2556
|
+
return Ks(tn(this), ht(n));
|
|
2557
|
+
}
|
|
2558
|
+
toZonedDateTimeISO(n) {
|
|
2559
|
+
return H(rd(tn(this), X(rn(n))));
|
|
2560
|
+
}
|
|
2561
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2562
|
+
const e = tn(this);
|
|
2563
|
+
return new Bn(n, Md(t)).format(Te(e));
|
|
2564
|
+
}
|
|
2565
|
+
toString(n = void 0) {
|
|
2566
|
+
return Qr(rn, tn(this), n);
|
|
2567
|
+
}
|
|
2568
|
+
toJSON() {
|
|
2569
|
+
return Qr(rn, tn(this));
|
|
2570
|
+
}
|
|
2571
|
+
valueOf() {
|
|
2572
|
+
return Xn();
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
function kn(n) {
|
|
2576
|
+
return ta(Object.create(na.prototype), n);
|
|
2577
|
+
}
|
|
2578
|
+
function tn(n) {
|
|
2579
|
+
return Er(n) || zn();
|
|
2580
|
+
}
|
|
2581
|
+
function Er(n) {
|
|
2582
|
+
return Qc.get(n);
|
|
2583
|
+
}
|
|
2584
|
+
function ht(n) {
|
|
2585
|
+
if (nn(n)) {
|
|
2586
|
+
const t = Er(n);
|
|
2587
|
+
if (t)
|
|
2588
|
+
return t;
|
|
2589
|
+
const e = Fn(n);
|
|
2590
|
+
if (e)
|
|
2591
|
+
return pn(e.epochNanoseconds);
|
|
2592
|
+
}
|
|
2593
|
+
return Eu(n);
|
|
2594
|
+
}
|
|
2595
|
+
function ta(n, t) {
|
|
2596
|
+
return Qc.set(n, t), Jn(n), n;
|
|
2597
|
+
}
|
|
2598
|
+
const ea = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ Hn(Wc, class {
|
|
2599
|
+
constructor(n, t, e = void 0, o) {
|
|
2600
|
+
const r = J(n), i = J(t), c = ye(e), a = J(o ?? os), s = Q(qn({
|
|
2601
|
+
year: a,
|
|
2602
|
+
month: r,
|
|
2603
|
+
day: i
|
|
2604
|
+
}));
|
|
2605
|
+
ra(this, b(s, c));
|
|
2606
|
+
}
|
|
2607
|
+
static from(n, t = void 0) {
|
|
2608
|
+
return Mo(di(n, t));
|
|
2609
|
+
}
|
|
2610
|
+
get calendarId() {
|
|
2611
|
+
return Nn(Yn(this).calendar);
|
|
2612
|
+
}
|
|
2613
|
+
with(n, t = void 0) {
|
|
2614
|
+
return Mo(td(Yn(this), Rt(n), t));
|
|
2615
|
+
}
|
|
2616
|
+
equals(n) {
|
|
2617
|
+
return ou(Yn(this), di(n));
|
|
2618
|
+
}
|
|
2619
|
+
toPlainDate(n) {
|
|
2620
|
+
const t = Yn(this);
|
|
2621
|
+
return yn(ud(t.calendar, this, n));
|
|
2622
|
+
}
|
|
2623
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2624
|
+
const e = Yn(this), o = new Bn(n, le(Fd(t)));
|
|
2625
|
+
return me(o, e, 1), o.format(Re(e));
|
|
2626
|
+
}
|
|
2627
|
+
toString(n = void 0) {
|
|
2628
|
+
return ri(Yn(this), n);
|
|
2629
|
+
}
|
|
2630
|
+
toJSON() {
|
|
2631
|
+
return ri(Yn(this));
|
|
2632
|
+
}
|
|
2633
|
+
valueOf() {
|
|
2634
|
+
return Xn();
|
|
2635
|
+
}
|
|
2636
|
+
}, Yn, Zd);
|
|
2637
|
+
function Mo(n) {
|
|
2638
|
+
return ra(Object.create(oa.prototype), n);
|
|
2639
|
+
}
|
|
2640
|
+
function Yn(n) {
|
|
2641
|
+
return no(n) || zn();
|
|
2642
|
+
}
|
|
2643
|
+
function no(n) {
|
|
2644
|
+
return ea.get(n);
|
|
2645
|
+
}
|
|
2646
|
+
function di(n, t) {
|
|
2647
|
+
if (nn(n)) {
|
|
2648
|
+
const o = no(n);
|
|
2649
|
+
if (o)
|
|
2650
|
+
return T(t), o;
|
|
2651
|
+
const r = ga(n);
|
|
2652
|
+
return Cu(r === void 0 ? fn : r, r === void 0, n, t);
|
|
2653
|
+
}
|
|
2654
|
+
const e = Au(n, Kn);
|
|
2655
|
+
return T(t), e;
|
|
2656
|
+
}
|
|
2657
|
+
function ra(n, t) {
|
|
2658
|
+
return ea.set(n, t), Jn(n), n;
|
|
2659
|
+
}
|
|
2660
|
+
const ia = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ Hn(Lc, class {
|
|
2661
|
+
constructor(n, t, e = void 0, o) {
|
|
2662
|
+
const r = J(n), i = J(t), c = ye(e), a = J(o ?? 1), s = zo(qn({
|
|
2663
|
+
year: r,
|
|
2664
|
+
month: i,
|
|
2665
|
+
day: a
|
|
2666
|
+
}));
|
|
2667
|
+
aa(this, b(s, c));
|
|
2668
|
+
}
|
|
2669
|
+
static from(n, t = void 0) {
|
|
2670
|
+
return Ut(yt(n, t));
|
|
2671
|
+
}
|
|
2672
|
+
static compare(n, t) {
|
|
2673
|
+
return Bt(yt(n), yt(t));
|
|
2674
|
+
}
|
|
2675
|
+
get calendarId() {
|
|
2676
|
+
return Nn(en(this).calendar);
|
|
2677
|
+
}
|
|
2678
|
+
with(n, t = void 0) {
|
|
2679
|
+
return Ut(nd(en(this), Rt(n), t));
|
|
2680
|
+
}
|
|
2681
|
+
add(n, t = void 0) {
|
|
2682
|
+
const e = en(this);
|
|
2683
|
+
return Ut(b($r(0, e.calendar, e, A(n), t), e.calendar));
|
|
2684
|
+
}
|
|
2685
|
+
subtract(n, t = void 0) {
|
|
2686
|
+
const e = en(this);
|
|
2687
|
+
return Ut(b($r(1, e.calendar, e, A(n), t), e.calendar));
|
|
2688
|
+
}
|
|
2689
|
+
until(n, t = void 0) {
|
|
2690
|
+
const e = en(this), o = yt(n), r = Un(e.calendar, o.calendar);
|
|
2691
|
+
return w(Jr(0, r, e, o, t));
|
|
2692
|
+
}
|
|
2693
|
+
since(n, t = void 0) {
|
|
2694
|
+
const e = en(this), o = yt(n), r = Un(e.calendar, o.calendar);
|
|
2695
|
+
return w(Jr(1, r, e, o, t));
|
|
2696
|
+
}
|
|
2697
|
+
equals(n) {
|
|
2698
|
+
return eu(en(this), yt(n));
|
|
2699
|
+
}
|
|
2700
|
+
toPlainDate(n) {
|
|
2701
|
+
const t = en(this);
|
|
2702
|
+
return yn(sd(t.calendar, this, n));
|
|
2703
|
+
}
|
|
2704
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2705
|
+
const e = en(this), o = new Bn(n, le(bd(t)));
|
|
2706
|
+
return me(o, e, 1), o.format(Re(e));
|
|
2707
|
+
}
|
|
2708
|
+
toString(n = void 0) {
|
|
2709
|
+
return oi(en(this), n);
|
|
2710
|
+
}
|
|
2711
|
+
toJSON() {
|
|
2712
|
+
return oi(en(this));
|
|
2713
|
+
}
|
|
2714
|
+
valueOf() {
|
|
2715
|
+
return Xn();
|
|
2716
|
+
}
|
|
2717
|
+
}, en, Pd, Jc);
|
|
2718
|
+
function Ut(n) {
|
|
2719
|
+
return aa(Object.create(ca.prototype), n);
|
|
2720
|
+
}
|
|
2721
|
+
function en(n) {
|
|
2722
|
+
return to(n) || zn();
|
|
2723
|
+
}
|
|
2724
|
+
function to(n) {
|
|
2725
|
+
return ia.get(n);
|
|
2726
|
+
}
|
|
2727
|
+
function yt(n, t) {
|
|
2728
|
+
if (nn(n)) {
|
|
2729
|
+
const o = to(n);
|
|
2730
|
+
if (o)
|
|
2731
|
+
return T(t), o;
|
|
2732
|
+
const r = pe(n);
|
|
2733
|
+
return Ou(r, n, t);
|
|
2734
|
+
}
|
|
2735
|
+
const e = Ru(n, Kn);
|
|
2736
|
+
return T(t), e;
|
|
2737
|
+
}
|
|
2738
|
+
function aa(n, t) {
|
|
2739
|
+
return ia.set(n, t), Jn(n), n;
|
|
2740
|
+
}
|
|
2741
|
+
function wd(n) {
|
|
2742
|
+
if (!nn(n))
|
|
2743
|
+
return;
|
|
2744
|
+
let t = Er(n);
|
|
2745
|
+
return t ? [Vc, t] : (t = Fn(n), t ? [Gc, t] : (t = ft(n), t ? [qc, t] : (t = At(n), t ? [$c, t] : (t = wr(n), t ? [_c, t] : (t = to(n), t ? [Lc, t] : (t = no(n), t ? [Wc, t] : (t = Yr(n), t ? [Hc, t] : void 0)))))));
|
|
2746
|
+
}
|
|
2747
|
+
function Rt(n) {
|
|
2748
|
+
return (wd(n) || n.calendar !== void 0 || n.timeZone !== void 0) && S(Ba), n;
|
|
2749
|
+
}
|
|
2750
|
+
const sa = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ Hn(_c, class {
|
|
2751
|
+
constructor(n = 0, t = 0, e = 0, o = 0, r = 0, i = 0) {
|
|
2752
|
+
const c = Ye(Dt(J, {
|
|
2753
|
+
hour: n,
|
|
2754
|
+
minute: t,
|
|
2755
|
+
second: e,
|
|
2756
|
+
millisecond: o,
|
|
2757
|
+
microsecond: r,
|
|
2758
|
+
nanosecond: i
|
|
2759
|
+
}));
|
|
2760
|
+
da(this, Et(c));
|
|
2761
|
+
}
|
|
2762
|
+
static from(n, t = void 0) {
|
|
2763
|
+
return An(Rn(n, t));
|
|
2764
|
+
}
|
|
2765
|
+
static compare(n, t) {
|
|
2766
|
+
return cr(Rn(n), Rn(t));
|
|
2767
|
+
}
|
|
2768
|
+
with(n, t = void 0) {
|
|
2769
|
+
return An(ed(un(this), Rt(n), t));
|
|
2770
|
+
}
|
|
2771
|
+
add(n) {
|
|
2772
|
+
const t = un(this);
|
|
2773
|
+
return An(ho(t, A(n))[0]);
|
|
2774
|
+
}
|
|
2775
|
+
subtract(n) {
|
|
2776
|
+
const t = un(this);
|
|
2777
|
+
return An(ho(t, q(A(n)))[0]);
|
|
2778
|
+
}
|
|
2779
|
+
until(n, t = void 0) {
|
|
2780
|
+
return w(zr(0, un(this), Rn(n), t));
|
|
2781
|
+
}
|
|
2782
|
+
since(n, t = void 0) {
|
|
2783
|
+
return w(zr(1, un(this), Rn(n), t));
|
|
2784
|
+
}
|
|
2785
|
+
round(n) {
|
|
2786
|
+
const t = un(this), [e, o, r] = Ue(n, 5);
|
|
2787
|
+
return An(nr(t, ce(e, o), r)[0]);
|
|
2788
|
+
}
|
|
2789
|
+
equals(n) {
|
|
2790
|
+
return ru(un(this), Rn(n));
|
|
2791
|
+
}
|
|
2792
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2793
|
+
const e = un(this);
|
|
2794
|
+
return new Bn(n, le(Sd(t))).format(wi(e));
|
|
2795
|
+
}
|
|
2796
|
+
toString(n = void 0) {
|
|
2797
|
+
return ii(un(this), n);
|
|
2798
|
+
}
|
|
2799
|
+
toJSON() {
|
|
2800
|
+
return ii(un(this));
|
|
2801
|
+
}
|
|
2802
|
+
valueOf() {
|
|
2803
|
+
return Xn();
|
|
2804
|
+
}
|
|
2805
|
+
}, un, Eo);
|
|
2806
|
+
function An(n) {
|
|
2807
|
+
return da(Object.create(ua.prototype), n);
|
|
2808
|
+
}
|
|
2809
|
+
function un(n) {
|
|
2810
|
+
return wr(n) || zn();
|
|
2811
|
+
}
|
|
2812
|
+
function wr(n) {
|
|
2813
|
+
return sa.get(n);
|
|
2814
|
+
}
|
|
2815
|
+
function Rn(n, t) {
|
|
2816
|
+
if (nn(n)) {
|
|
2817
|
+
const o = wr(n);
|
|
2818
|
+
if (o)
|
|
2819
|
+
return T(t), o;
|
|
2820
|
+
const r = ft(n);
|
|
2821
|
+
if (r)
|
|
2822
|
+
return T(t), Et(r);
|
|
2823
|
+
const i = Fn(n);
|
|
2824
|
+
return i ? (T(t), Ac(i)) : Pu(n, t);
|
|
2825
|
+
}
|
|
2826
|
+
const e = xu(n);
|
|
2827
|
+
return T(t), e;
|
|
2828
|
+
}
|
|
2829
|
+
function Br(n) {
|
|
2830
|
+
return n === void 0 ? void 0 : Rn(n);
|
|
2831
|
+
}
|
|
2832
|
+
function da(n, t) {
|
|
2833
|
+
return sa.set(n, t), Jn(n), n;
|
|
2834
|
+
}
|
|
2835
|
+
const fa = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ Hn(qc, class {
|
|
2836
|
+
constructor(n, t, e, o = 0, r = 0, i = 0, c = 0, a = 0, s = 0, u = void 0) {
|
|
2837
|
+
const d = Zt(xe(Dt(J, {
|
|
2838
|
+
year: n,
|
|
2839
|
+
month: t,
|
|
2840
|
+
day: e,
|
|
2841
|
+
hour: o,
|
|
2842
|
+
minute: r,
|
|
2843
|
+
second: i,
|
|
2844
|
+
millisecond: c,
|
|
2845
|
+
microsecond: a,
|
|
2846
|
+
nanosecond: s
|
|
2847
|
+
}))), f = ye(u);
|
|
2848
|
+
ma(this, On(d, f));
|
|
2849
|
+
}
|
|
2850
|
+
static from(n, t = void 0) {
|
|
2851
|
+
return hn(pt(n, t));
|
|
2852
|
+
}
|
|
2853
|
+
static compare(n, t) {
|
|
2854
|
+
const e = pt(n), o = pt(t);
|
|
2855
|
+
return gc(e, o);
|
|
2856
|
+
}
|
|
2857
|
+
get calendarId() {
|
|
2858
|
+
return Nn(R(this).calendar);
|
|
2859
|
+
}
|
|
2860
|
+
with(n, t = void 0) {
|
|
2861
|
+
return hn(Ku(R(this), Rt(n), t));
|
|
2862
|
+
}
|
|
2863
|
+
withCalendar(n) {
|
|
2864
|
+
const t = R(this);
|
|
2865
|
+
return hn(On(t, eo(n)));
|
|
2866
|
+
}
|
|
2867
|
+
withPlainTime(n = void 0) {
|
|
2868
|
+
const t = R(this);
|
|
2869
|
+
return hn(ze(t, Br(n), t.calendar));
|
|
2870
|
+
}
|
|
2871
|
+
add(n, t = void 0) {
|
|
2872
|
+
const e = R(this);
|
|
2873
|
+
return hn(On(be(e.calendar, e, A(n), t), e.calendar));
|
|
2874
|
+
}
|
|
2875
|
+
subtract(n, t = void 0) {
|
|
2876
|
+
const e = R(this);
|
|
2877
|
+
return hn(On(be(e.calendar, e, q(A(n)), t), e.calendar));
|
|
2878
|
+
}
|
|
2879
|
+
until(n, t = void 0) {
|
|
2880
|
+
const e = R(this), o = pt(n), r = Un(e.calendar, o.calendar);
|
|
2881
|
+
return w(Vr(0, r, e, o, t));
|
|
2882
|
+
}
|
|
2883
|
+
since(n, t = void 0) {
|
|
2884
|
+
const e = R(this), o = pt(n), r = Un(e.calendar, o.calendar);
|
|
2885
|
+
return w(Vr(1, r, e, o, t));
|
|
2886
|
+
}
|
|
2887
|
+
round(n) {
|
|
2888
|
+
const t = R(this), [e, o, r] = Ue(n);
|
|
2889
|
+
return hn(On(Qo(t, ce(e, o), r), t.calendar));
|
|
2890
|
+
}
|
|
2891
|
+
equals(n) {
|
|
2892
|
+
return nu(R(this), pt(n));
|
|
2893
|
+
}
|
|
2894
|
+
toZonedDateTime(n, t = void 0) {
|
|
2895
|
+
return H(cd(R(this), X(rn(n)), t));
|
|
2896
|
+
}
|
|
2897
|
+
toPlainDate() {
|
|
2898
|
+
const n = R(this);
|
|
2899
|
+
return yn(b(n, n.calendar));
|
|
2900
|
+
}
|
|
2901
|
+
toPlainTime() {
|
|
2902
|
+
return An(Et(R(this)));
|
|
2903
|
+
}
|
|
2904
|
+
toLocaleString(n = void 0, t = {}) {
|
|
2905
|
+
const e = R(this), o = new Bn(n, le(Td(t)));
|
|
2906
|
+
return me(o, e), o.format(es(e));
|
|
2907
|
+
}
|
|
2908
|
+
toString(n = void 0) {
|
|
2909
|
+
return ti(R(this), n);
|
|
2910
|
+
}
|
|
2911
|
+
toJSON() {
|
|
2912
|
+
return ti(R(this));
|
|
2913
|
+
}
|
|
2914
|
+
valueOf() {
|
|
2915
|
+
return Xn();
|
|
2916
|
+
}
|
|
2917
|
+
}, R, Zr, Qe, Eo);
|
|
2918
|
+
function hn(n) {
|
|
2919
|
+
return ma(Object.create(la.prototype), n);
|
|
2920
|
+
}
|
|
2921
|
+
function R(n) {
|
|
2922
|
+
return ft(n) || zn();
|
|
2923
|
+
}
|
|
2924
|
+
function ft(n) {
|
|
2925
|
+
return fa.get(n);
|
|
2926
|
+
}
|
|
2927
|
+
function pt(n, t) {
|
|
2928
|
+
if (nn(n)) {
|
|
2929
|
+
const o = ft(n);
|
|
2930
|
+
if (o)
|
|
2931
|
+
return T(t), o;
|
|
2932
|
+
const r = At(n);
|
|
2933
|
+
if (r)
|
|
2934
|
+
return T(t), On(Z(r, mn), r.calendar);
|
|
2935
|
+
const i = Fn(n);
|
|
2936
|
+
if (i)
|
|
2937
|
+
return T(t), kc(i);
|
|
2938
|
+
const c = pe(n);
|
|
2939
|
+
return bu(c, n, t);
|
|
2940
|
+
}
|
|
2941
|
+
const e = Yu(n, Kn);
|
|
2942
|
+
return T(t), e;
|
|
2943
|
+
}
|
|
2944
|
+
function ma(n, t) {
|
|
2945
|
+
return fa.set(n, t), Jn(n), n;
|
|
2946
|
+
}
|
|
2947
|
+
const ha = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ Hn($c, class {
|
|
2948
|
+
constructor(n, t, e, o = void 0) {
|
|
2949
|
+
const r = Q(qn(Dt(J, {
|
|
2950
|
+
year: n,
|
|
2951
|
+
month: t,
|
|
2952
|
+
day: e
|
|
2953
|
+
}))), i = ye(o);
|
|
2954
|
+
pa(this, b(r, i));
|
|
2955
|
+
}
|
|
2956
|
+
static from(n, t = void 0) {
|
|
2957
|
+
return yn(gt(n, t));
|
|
2958
|
+
}
|
|
2959
|
+
static compare(n, t) {
|
|
2960
|
+
return Bt(gt(n), gt(t));
|
|
2961
|
+
}
|
|
2962
|
+
get calendarId() {
|
|
2963
|
+
return Nn(U(this).calendar);
|
|
2964
|
+
}
|
|
2965
|
+
with(n, t = void 0) {
|
|
2966
|
+
const e = U(this);
|
|
2967
|
+
return yn(Qu(e, Rt(n), t));
|
|
2968
|
+
}
|
|
2969
|
+
withCalendar(n) {
|
|
2970
|
+
const t = U(this);
|
|
2971
|
+
return yn(b(t, eo(n)));
|
|
2972
|
+
}
|
|
2973
|
+
add(n, t = void 0) {
|
|
2974
|
+
const e = U(this);
|
|
2975
|
+
return yn(b(_t(e.calendar, e, A(n), t), e.calendar));
|
|
2976
|
+
}
|
|
2977
|
+
subtract(n, t = void 0) {
|
|
2978
|
+
const e = U(this);
|
|
2979
|
+
return yn(b(_t(e.calendar, e, q(A(n)), t), e.calendar));
|
|
2980
|
+
}
|
|
2981
|
+
until(n, t = void 0) {
|
|
2982
|
+
const e = U(this), o = gt(n), r = Un(e.calendar, o.calendar);
|
|
2983
|
+
return w(Hr(0, r, e, o, t));
|
|
2984
|
+
}
|
|
2985
|
+
since(n, t = void 0) {
|
|
2986
|
+
const e = U(this), o = gt(n), r = Un(e.calendar, o.calendar);
|
|
2987
|
+
return w(Hr(1, r, e, o, t));
|
|
2988
|
+
}
|
|
2989
|
+
equals(n) {
|
|
2990
|
+
return tu(U(this), gt(n));
|
|
2991
|
+
}
|
|
2992
|
+
toZonedDateTime(n) {
|
|
2993
|
+
const t = nn(n) ? {
|
|
2994
|
+
timeZone: n.timeZone,
|
|
2995
|
+
plainTime: n.plainTime
|
|
2996
|
+
} : {
|
|
2997
|
+
timeZone: n
|
|
2998
|
+
};
|
|
2999
|
+
return H(ad(rn, Rn, U(this), t));
|
|
3000
|
+
}
|
|
3001
|
+
toPlainDateTime(n = void 0) {
|
|
3002
|
+
const t = U(this);
|
|
3003
|
+
return hn(ze(t, Br(n), t.calendar));
|
|
3004
|
+
}
|
|
3005
|
+
toPlainYearMonth() {
|
|
3006
|
+
const n = U(this);
|
|
3007
|
+
return Ut(fd(n.calendar, this));
|
|
3008
|
+
}
|
|
3009
|
+
toPlainMonthDay() {
|
|
3010
|
+
const n = U(this);
|
|
3011
|
+
return Mo(dd(n.calendar, this));
|
|
3012
|
+
}
|
|
3013
|
+
toLocaleString(n = void 0, t = {}) {
|
|
3014
|
+
const e = U(this), o = new Bn(n, le(Dd(t)));
|
|
3015
|
+
return me(o, e), o.format(Re(e));
|
|
3016
|
+
}
|
|
3017
|
+
toString(n = void 0) {
|
|
3018
|
+
return ei(U(this), n);
|
|
3019
|
+
}
|
|
3020
|
+
toJSON() {
|
|
3021
|
+
return ei(U(this));
|
|
3022
|
+
}
|
|
3023
|
+
valueOf() {
|
|
3024
|
+
return Xn();
|
|
3025
|
+
}
|
|
3026
|
+
}, U, Zr, Qe);
|
|
3027
|
+
function yn(n) {
|
|
3028
|
+
return pa(Object.create(ya.prototype), n);
|
|
3029
|
+
}
|
|
3030
|
+
function U(n) {
|
|
3031
|
+
return At(n) || zn();
|
|
3032
|
+
}
|
|
3033
|
+
function At(n) {
|
|
3034
|
+
return ha.get(n);
|
|
3035
|
+
}
|
|
3036
|
+
function gt(n, t) {
|
|
3037
|
+
if (nn(n)) {
|
|
3038
|
+
const o = At(n);
|
|
3039
|
+
if (o)
|
|
3040
|
+
return T(t), o;
|
|
3041
|
+
const r = ft(n);
|
|
3042
|
+
if (r)
|
|
3043
|
+
return T(t), b(r, r.calendar);
|
|
3044
|
+
const i = Fn(n);
|
|
3045
|
+
if (i)
|
|
3046
|
+
return T(t), Rc(i);
|
|
3047
|
+
const c = pe(n);
|
|
3048
|
+
return Fu(c, n, t);
|
|
3049
|
+
}
|
|
3050
|
+
const e = ku(n, Kn);
|
|
3051
|
+
return T(t), e;
|
|
3052
|
+
}
|
|
3053
|
+
function pa(n, t) {
|
|
3054
|
+
return ha.set(n, t), Jn(n), n;
|
|
3055
|
+
}
|
|
3056
|
+
function pe(n) {
|
|
3057
|
+
const t = ga(n);
|
|
3058
|
+
return t === void 0 ? fn : t;
|
|
3059
|
+
}
|
|
3060
|
+
function ga(n) {
|
|
3061
|
+
const { calendar: t } = n;
|
|
3062
|
+
if (t !== void 0)
|
|
3063
|
+
return eo(t);
|
|
3064
|
+
}
|
|
3065
|
+
function eo(n) {
|
|
3066
|
+
if (nn(n)) {
|
|
3067
|
+
const t = At(n) || ft(n) || Fn(n) || no(n) || to(n);
|
|
3068
|
+
return t || S(Ra(n)), t.calendar;
|
|
3069
|
+
}
|
|
3070
|
+
return ((t) => Kn(Uu(W(t))))(n);
|
|
3071
|
+
}
|
|
3072
|
+
const va = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ Hn(Hc, class {
|
|
3073
|
+
constructor(n = 0, t = 0, e = 0, o = 0, r = 0, i = 0, c = 0, a = 0, s = 0, u = 0) {
|
|
3074
|
+
const d = st(Dt($o, {
|
|
3075
|
+
years: n,
|
|
3076
|
+
months: t,
|
|
3077
|
+
weeks: e,
|
|
3078
|
+
days: o,
|
|
3079
|
+
hours: r,
|
|
3080
|
+
minutes: i,
|
|
3081
|
+
seconds: c,
|
|
3082
|
+
milliseconds: a,
|
|
3083
|
+
microseconds: s,
|
|
3084
|
+
nanoseconds: u
|
|
3085
|
+
}));
|
|
3086
|
+
Ma(this, x(d));
|
|
3087
|
+
}
|
|
3088
|
+
static from(n) {
|
|
3089
|
+
return w(A(n));
|
|
3090
|
+
}
|
|
3091
|
+
static compare(n, t, e = void 0) {
|
|
3092
|
+
return Xs(jt, A(n), A(t), e);
|
|
3093
|
+
}
|
|
3094
|
+
get sign() {
|
|
3095
|
+
return z(this).sign;
|
|
3096
|
+
}
|
|
3097
|
+
get blank() {
|
|
3098
|
+
return !z(this).sign;
|
|
3099
|
+
}
|
|
3100
|
+
with(n) {
|
|
3101
|
+
return w(od(z(this), n));
|
|
3102
|
+
}
|
|
3103
|
+
negated() {
|
|
3104
|
+
return w(fc(z(this)));
|
|
3105
|
+
}
|
|
3106
|
+
abs() {
|
|
3107
|
+
return w(zs(z(this)));
|
|
3108
|
+
}
|
|
3109
|
+
add(n, t = void 0) {
|
|
3110
|
+
return w(Kr(jt, 0, z(this), A(n), t));
|
|
3111
|
+
}
|
|
3112
|
+
subtract(n, t = void 0) {
|
|
3113
|
+
return w(Kr(jt, 1, z(this), A(n), t));
|
|
3114
|
+
}
|
|
3115
|
+
round(n) {
|
|
3116
|
+
return w(Js(jt, z(this), n));
|
|
3117
|
+
}
|
|
3118
|
+
total(n) {
|
|
3119
|
+
return ws(jt, z(this), n);
|
|
3120
|
+
}
|
|
3121
|
+
toLocaleString(n = void 0, t) {
|
|
3122
|
+
const e = z(this);
|
|
3123
|
+
return Intl.DurationFormat ? new Intl.DurationFormat(n, t).format(e) : io(e, t);
|
|
3124
|
+
}
|
|
3125
|
+
toString(n = void 0) {
|
|
3126
|
+
return io(z(this), n);
|
|
3127
|
+
}
|
|
3128
|
+
toJSON() {
|
|
3129
|
+
return io(z(this));
|
|
3130
|
+
}
|
|
3131
|
+
valueOf() {
|
|
3132
|
+
return Xn();
|
|
3133
|
+
}
|
|
3134
|
+
}, z, ls);
|
|
3135
|
+
function w(n) {
|
|
3136
|
+
return Ma(Object.create(Ia.prototype), n);
|
|
3137
|
+
}
|
|
3138
|
+
function z(n) {
|
|
3139
|
+
return Yr(n) || zn();
|
|
3140
|
+
}
|
|
3141
|
+
function Yr(n) {
|
|
3142
|
+
return va.get(n);
|
|
3143
|
+
}
|
|
3144
|
+
function A(n) {
|
|
3145
|
+
return nn(n) ? Yr(n) || Zu(n) : ju(n);
|
|
3146
|
+
}
|
|
3147
|
+
function jt(n) {
|
|
3148
|
+
if (n !== void 0) {
|
|
3149
|
+
if (nn(n)) {
|
|
3150
|
+
const t = Fn(n);
|
|
3151
|
+
if (t)
|
|
3152
|
+
return t;
|
|
3153
|
+
const e = At(n);
|
|
3154
|
+
if (e)
|
|
3155
|
+
return e;
|
|
3156
|
+
const o = ft(n);
|
|
3157
|
+
if (o)
|
|
3158
|
+
return b(o, o.calendar);
|
|
3159
|
+
const r = pe(n);
|
|
3160
|
+
return Du(rn, r, n);
|
|
3161
|
+
}
|
|
3162
|
+
return wu(n, Kn);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
function Ma(n, t) {
|
|
3166
|
+
return va.set(n, t), Jn(n), n;
|
|
3167
|
+
}
|
|
3168
|
+
const Bd = /* @__PURE__ */ Object.defineProperties({}, {
|
|
3169
|
+
...So("Temporal.Now"),
|
|
3170
|
+
...Do({
|
|
3171
|
+
timeZoneId() {
|
|
3172
|
+
return xt();
|
|
3173
|
+
},
|
|
3174
|
+
instant() {
|
|
3175
|
+
return kn(pn(Io()));
|
|
3176
|
+
},
|
|
3177
|
+
zonedDateTimeISO(n = xt()) {
|
|
3178
|
+
const t = X(rn(n));
|
|
3179
|
+
return H(bn(Io(), t));
|
|
3180
|
+
},
|
|
3181
|
+
plainDateTimeISO(n = xt()) {
|
|
3182
|
+
const t = ao(X(rn(n)));
|
|
3183
|
+
return hn(On(t));
|
|
3184
|
+
},
|
|
3185
|
+
plainDateISO(n = xt()) {
|
|
3186
|
+
const t = ao(X(rn(n)));
|
|
3187
|
+
return yn(b(t));
|
|
3188
|
+
},
|
|
3189
|
+
plainTimeISO(n = xt()) {
|
|
3190
|
+
const t = ao(X(rn(n)));
|
|
3191
|
+
return An(Et(t));
|
|
3192
|
+
}
|
|
3193
|
+
})
|
|
3194
|
+
}), Yd = /* @__PURE__ */ Object.defineProperties({}, {
|
|
3195
|
+
...So("Temporal"),
|
|
3196
|
+
...Do({
|
|
3197
|
+
PlainYearMonth: ca,
|
|
3198
|
+
PlainMonthDay: oa,
|
|
3199
|
+
PlainDate: ya,
|
|
3200
|
+
PlainTime: ua,
|
|
3201
|
+
PlainDateTime: la,
|
|
3202
|
+
ZonedDateTime: Xc,
|
|
3203
|
+
Instant: na,
|
|
3204
|
+
Duration: Ia,
|
|
3205
|
+
Now: Bd
|
|
3206
|
+
})
|
|
3207
|
+
}), kd = Na || Yd;
|
|
3208
|
+
export {
|
|
3209
|
+
kd as T
|
|
3210
|
+
};
|