@everymatrix/loyalty-points-card 0.1.16 → 0.1.18
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/components/{LoyaltyPointsCard-aItd3hzZ.js → LoyaltyPointsCard-BnbuH5YP.js} +979 -995
- package/components/LoyaltyPointsCard-CgZc4lig.cjs +21 -0
- package/components/LoyaltyPointsCard-Dmq7anau.cjs +21 -0
- package/components/{LoyaltyPointsCard-QXKwjCr1.js → LoyaltyPointsCard-Pg-xVAIv.js} +1055 -1071
- package/es2015/loyalty-points-card.cjs +1 -1
- package/es2015/loyalty-points-card.js +2 -2
- package/esnext/loyalty-points-card.cjs +1 -1
- package/esnext/loyalty-points-card.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPointsCard-CNpASNAN.cjs +0 -21
- package/components/LoyaltyPointsCard-CjM-WZgD.cjs +0 -21
|
@@ -3,63 +3,63 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
3
3
|
}, get() {
|
|
4
4
|
}, whenDefined() {
|
|
5
5
|
} });
|
|
6
|
-
const
|
|
7
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
8
|
-
const
|
|
9
|
-
var
|
|
6
|
+
const ts = "5";
|
|
7
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ts);
|
|
8
|
+
const rs = 2, Mn = "[", Nn = "[!", sn = "[?", In = "]", ut = {}, j = Symbol("uninitialized"), Rn = !1;
|
|
9
|
+
var ns = Array.isArray, is = Array.prototype.indexOf, Yt = Array.prototype.includes, ss = Array.from, zt = Object.keys, Ot = Object.defineProperty, at = Object.getOwnPropertyDescriptor, as = Object.prototype, os = Array.prototype, us = Object.getPrototypeOf, an = Object.isExtensible;
|
|
10
10
|
const $e = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Cn(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Dn() {
|
|
17
17
|
var e, t, r = new Promise((n, i) => {
|
|
18
18
|
e = n, t = i;
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const z = 2, lt = 4, ir = 8,
|
|
22
|
+
const z = 2, lt = 4, ir = 8, kn = 1 << 24, de = 16, me = 32, we = 64, Hr = 128, le = 512, V = 1024, F = 2048, _e = 4096, fe = 8192, he = 16384, Ye = 32768, on = 1 << 25, ft = 65536, qt = 1 << 17, ls = 1 << 18, ze = 1 << 19, fs = 1 << 20, We = 65536, Zt = 1 << 21, ot = 1 << 22, Re = 1 << 23, pr = Symbol("$state"), hs = Symbol("legacy props"), cs = Symbol("attributes"), ds = Symbol("class"), ps = Symbol("style"), Ar = Symbol("text"), It = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
|
-
}(), sr = 3,
|
|
26
|
-
function
|
|
25
|
+
}(), sr = 3, ar = 8;
|
|
26
|
+
function vs() {
|
|
27
27
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _s(e) {
|
|
30
30
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ms() {
|
|
33
33
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function gs(e) {
|
|
36
36
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function bs() {
|
|
39
39
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ys() {
|
|
42
42
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Es() {
|
|
45
45
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function xs() {
|
|
48
48
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ws() {
|
|
51
51
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ts() {
|
|
54
54
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ss() {
|
|
57
57
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function or(e) {
|
|
60
60
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Hs() {
|
|
63
63
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
64
64
|
}
|
|
65
65
|
let U = !1;
|
|
@@ -69,69 +69,69 @@ function it(e) {
|
|
|
69
69
|
let L;
|
|
70
70
|
function ge(e) {
|
|
71
71
|
if (e === null)
|
|
72
|
-
throw
|
|
72
|
+
throw or(), ut;
|
|
73
73
|
return L = e;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return ge(/* @__PURE__ */
|
|
75
|
+
function Gr() {
|
|
76
|
+
return ge(/* @__PURE__ */ Le(L));
|
|
77
77
|
}
|
|
78
78
|
function Ke(e) {
|
|
79
79
|
if (U) {
|
|
80
|
-
if (/* @__PURE__ */
|
|
81
|
-
throw
|
|
80
|
+
if (/* @__PURE__ */ Le(L) !== null)
|
|
81
|
+
throw or(), ut;
|
|
82
82
|
L = e;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function As(e = 1) {
|
|
86
86
|
if (U) {
|
|
87
87
|
for (var t = e, r = L; t--; )
|
|
88
88
|
r = /** @type {TemplateNode} */
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ Le(r);
|
|
90
90
|
L = r;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Fn(e = !0) {
|
|
94
94
|
for (var t = 0, r = L; ; ) {
|
|
95
|
-
if (r.nodeType ===
|
|
95
|
+
if (r.nodeType === ar) {
|
|
96
96
|
var n = (
|
|
97
97
|
/** @type {Comment} */
|
|
98
98
|
r.data
|
|
99
99
|
);
|
|
100
|
-
if (n ===
|
|
100
|
+
if (n === In) {
|
|
101
101
|
if (t === 0) return r;
|
|
102
102
|
t -= 1;
|
|
103
|
-
} else (n ===
|
|
103
|
+
} else (n === Mn || n === Nn || // "[1", "[2", etc. for if blocks
|
|
104
104
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
105
105
|
}
|
|
106
106
|
var i = (
|
|
107
107
|
/** @type {TemplateNode} */
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ Le(r)
|
|
109
109
|
);
|
|
110
110
|
e && r.remove(), r = i;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
if (!e || e.nodeType !==
|
|
115
|
-
throw
|
|
113
|
+
function $s(e) {
|
|
114
|
+
if (!e || e.nodeType !== ar)
|
|
115
|
+
throw or(), ut;
|
|
116
116
|
return (
|
|
117
117
|
/** @type {Comment} */
|
|
118
118
|
e.data
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Un(e) {
|
|
122
122
|
return e === this.v;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Gn(e, t) {
|
|
125
125
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return !
|
|
127
|
+
function Os(e) {
|
|
128
|
+
return !Gn(e, this.v);
|
|
129
129
|
}
|
|
130
|
-
let
|
|
130
|
+
let Bs = !1, ne = null;
|
|
131
131
|
function ht(e) {
|
|
132
132
|
ne = e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function jr(e, t = !1, r) {
|
|
135
135
|
ne = {
|
|
136
136
|
p: ne,
|
|
137
137
|
i: !1,
|
|
@@ -146,7 +146,7 @@ function Ur(e, t = !1, r) {
|
|
|
146
146
|
l: null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Vr(e) {
|
|
150
150
|
var t = (
|
|
151
151
|
/** @type {ComponentContext} */
|
|
152
152
|
ne
|
|
@@ -159,28 +159,28 @@ function Gr(e) {
|
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, ne = t.p, e ?? /** @type {T} */
|
|
160
160
|
{};
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function jn() {
|
|
163
163
|
return !0;
|
|
164
164
|
}
|
|
165
|
-
let
|
|
166
|
-
function
|
|
167
|
-
var e =
|
|
168
|
-
|
|
165
|
+
let Ue = [];
|
|
166
|
+
function Vn() {
|
|
167
|
+
var e = Ue;
|
|
168
|
+
Ue = [], Cn(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
172
|
-
var t =
|
|
170
|
+
function Ge(e) {
|
|
171
|
+
if (Ue.length === 0 && !Ht) {
|
|
172
|
+
var t = Ue;
|
|
173
173
|
queueMicrotask(() => {
|
|
174
|
-
t ===
|
|
174
|
+
t === Ue && Vn();
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
Ue.push(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
for (;
|
|
181
|
-
|
|
179
|
+
function Ls() {
|
|
180
|
+
for (; Ue.length > 0; )
|
|
181
|
+
Vn();
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Wn(e) {
|
|
184
184
|
var t = w;
|
|
185
185
|
if (t === null)
|
|
186
186
|
return S.f |= Re, e;
|
|
@@ -191,7 +191,7 @@ function Vn(e) {
|
|
|
191
191
|
function Ne(e, t) {
|
|
192
192
|
if (!(t !== null && t.f & he)) {
|
|
193
193
|
for (; t !== null; ) {
|
|
194
|
-
if (t.f &
|
|
194
|
+
if (t.f & Hr) {
|
|
195
195
|
if (!(t.f & Ye))
|
|
196
196
|
throw e;
|
|
197
197
|
try {
|
|
@@ -206,28 +206,28 @@ function Ne(e, t) {
|
|
|
206
206
|
throw e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Ps = -7169;
|
|
210
210
|
function R(e, t) {
|
|
211
|
-
e.f = e.f &
|
|
211
|
+
e.f = e.f & Ps | t;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Wr(e) {
|
|
214
214
|
e.f & le || e.deps === null ? R(e, V) : R(e, _e);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Xn(e) {
|
|
217
217
|
if (e !== null)
|
|
218
218
|
for (const t of e)
|
|
219
|
-
!(t.f & z) || !(t.f & We) || (t.f ^= We,
|
|
219
|
+
!(t.f & z) || !(t.f & We) || (t.f ^= We, Xn(
|
|
220
220
|
/** @type {Derived} */
|
|
221
221
|
t.deps
|
|
222
222
|
));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
e.f & F ? t.add(e) : e.f & _e && r.add(e),
|
|
224
|
+
function Yn(e, t, r) {
|
|
225
|
+
e.f & F ? t.add(e) : e.f & _e && r.add(e), Xn(e.deps), R(e, V);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Xr(e, t, r) {
|
|
228
228
|
if (e == null)
|
|
229
229
|
return t(void 0), r && r(void 0), $e;
|
|
230
|
-
const n =
|
|
230
|
+
const n = xi(
|
|
231
231
|
() => e.subscribe(
|
|
232
232
|
t,
|
|
233
233
|
// @ts-expect-error
|
|
@@ -237,7 +237,7 @@ function Vr(e, t, r) {
|
|
|
237
237
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
238
238
|
}
|
|
239
239
|
const et = [];
|
|
240
|
-
function
|
|
240
|
+
function Ms(e, t) {
|
|
241
241
|
return {
|
|
242
242
|
subscribe: ur(e, t).subscribe
|
|
243
243
|
};
|
|
@@ -245,8 +245,8 @@ function Ps(e, t) {
|
|
|
245
245
|
function ur(e, t = $e) {
|
|
246
246
|
let r = null;
|
|
247
247
|
const n = /* @__PURE__ */ new Set();
|
|
248
|
-
function i(
|
|
249
|
-
if (
|
|
248
|
+
function i(o) {
|
|
249
|
+
if (Gn(e, o) && (e = o, r)) {
|
|
250
250
|
const u = !et.length;
|
|
251
251
|
for (const l of n)
|
|
252
252
|
l[1](), et.push(l, e);
|
|
@@ -257,29 +257,29 @@ function ur(e, t = $e) {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function s(
|
|
261
|
-
i(
|
|
260
|
+
function s(o) {
|
|
261
|
+
i(o(
|
|
262
262
|
/** @type {T} */
|
|
263
263
|
e
|
|
264
264
|
));
|
|
265
265
|
}
|
|
266
|
-
function o
|
|
267
|
-
const l = [
|
|
268
|
-
return n.add(l), n.size === 1 && (r = t(i, s) || $e),
|
|
266
|
+
function a(o, u = $e) {
|
|
267
|
+
const l = [o, u];
|
|
268
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || $e), o(
|
|
269
269
|
/** @type {T} */
|
|
270
270
|
e
|
|
271
271
|
), () => {
|
|
272
272
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
return { set: i, update: s, subscribe:
|
|
275
|
+
return { set: i, update: s, subscribe: a };
|
|
276
276
|
}
|
|
277
277
|
function mt(e, t, r) {
|
|
278
278
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
279
279
|
if (!i.every(Boolean))
|
|
280
280
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
281
281
|
const s = t.length < 2;
|
|
282
|
-
return
|
|
282
|
+
return Ms(r, (a, o) => {
|
|
283
283
|
let u = !1;
|
|
284
284
|
const l = [];
|
|
285
285
|
let f = 0, h = $e;
|
|
@@ -287,10 +287,10 @@ function mt(e, t, r) {
|
|
|
287
287
|
if (f)
|
|
288
288
|
return;
|
|
289
289
|
h();
|
|
290
|
-
const p = t(n ? l[0] : l,
|
|
291
|
-
s ?
|
|
290
|
+
const p = t(n ? l[0] : l, a, o);
|
|
291
|
+
s ? a(p) : h = typeof p == "function" ? p : $e;
|
|
292
292
|
}, d = i.map(
|
|
293
|
-
(p, b) =>
|
|
293
|
+
(p, b) => Xr(
|
|
294
294
|
p,
|
|
295
295
|
(N) => {
|
|
296
296
|
l[b] = N, f &= ~(1 << b), u && c();
|
|
@@ -301,39 +301,39 @@ function mt(e, t, r) {
|
|
|
301
301
|
)
|
|
302
302
|
);
|
|
303
303
|
return u = !0, c(), function() {
|
|
304
|
-
|
|
304
|
+
Cn(d), h(), u = !1;
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function Ns(e) {
|
|
309
309
|
let t;
|
|
310
|
-
return
|
|
310
|
+
return Xr(e, (r) => t = r)(), t;
|
|
311
311
|
}
|
|
312
|
-
let
|
|
313
|
-
function
|
|
312
|
+
let $r = Symbol("unmounted");
|
|
313
|
+
function Is(e, t, r) {
|
|
314
314
|
const n = r[t] ??= {
|
|
315
315
|
store: null,
|
|
316
|
-
source: /* @__PURE__ */
|
|
316
|
+
source: /* @__PURE__ */ ti(void 0),
|
|
317
317
|
unsubscribe: $e
|
|
318
318
|
};
|
|
319
|
-
if (n.store !== e && !(
|
|
319
|
+
if (n.store !== e && !($r in r))
|
|
320
320
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
321
321
|
n.source.v = void 0, n.unsubscribe = $e;
|
|
322
322
|
else {
|
|
323
323
|
var i = !0;
|
|
324
|
-
n.unsubscribe =
|
|
324
|
+
n.unsubscribe = Xr(e, (s) => {
|
|
325
325
|
i ? n.source.v = s : Y(n.source, s);
|
|
326
326
|
}), i = !1;
|
|
327
327
|
}
|
|
328
|
-
return e &&
|
|
328
|
+
return e && $r in r ? Ns(e) : A(n.source);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Rs() {
|
|
331
331
|
const e = {};
|
|
332
332
|
function t() {
|
|
333
|
-
|
|
333
|
+
ai(() => {
|
|
334
334
|
for (var r in e)
|
|
335
335
|
e[r].unsubscribe();
|
|
336
|
-
Ot(e,
|
|
336
|
+
Ot(e, $r, {
|
|
337
337
|
enumerable: !1,
|
|
338
338
|
value: !0
|
|
339
339
|
});
|
|
@@ -343,28 +343,28 @@ function Is() {
|
|
|
343
343
|
}
|
|
344
344
|
function lr(e) {
|
|
345
345
|
var t = S, r = w;
|
|
346
|
-
ce(null),
|
|
346
|
+
ce(null), Te(null);
|
|
347
347
|
try {
|
|
348
348
|
return e();
|
|
349
349
|
} finally {
|
|
350
|
-
ce(t),
|
|
350
|
+
ce(t), Te(r);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Cs(e) {
|
|
354
354
|
let t = 0, r = Rt(0), n;
|
|
355
355
|
return () => {
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
Kr() && (A(r), ui(() => (t === 0 && (n = xi(() => e(() => At(r)))), t += 1, () => {
|
|
357
|
+
Ge(() => {
|
|
358
358
|
t -= 1, t === 0 && (n?.(), n = void 0, At(r));
|
|
359
359
|
});
|
|
360
360
|
})));
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
var
|
|
364
|
-
function
|
|
365
|
-
new
|
|
363
|
+
var Ds = ft | ze;
|
|
364
|
+
function ks(e, t, r, n) {
|
|
365
|
+
new Fs(e, t, r, n);
|
|
366
366
|
}
|
|
367
|
-
class
|
|
367
|
+
class Fs {
|
|
368
368
|
/** @type {Boundary | null} */
|
|
369
369
|
parent;
|
|
370
370
|
is_pending = !1;
|
|
@@ -385,11 +385,11 @@ class ks {
|
|
|
385
385
|
/** @type {Effect} */
|
|
386
386
|
#i;
|
|
387
387
|
/** @type {Effect | null} */
|
|
388
|
-
#
|
|
388
|
+
#a = null;
|
|
389
389
|
/** @type {Effect | null} */
|
|
390
390
|
#n = null;
|
|
391
391
|
/** @type {Effect | null} */
|
|
392
|
-
#
|
|
392
|
+
#o = null;
|
|
393
393
|
/** @type {DocumentFragment | null} */
|
|
394
394
|
#s = null;
|
|
395
395
|
#v = 0;
|
|
@@ -407,7 +407,7 @@ class ks {
|
|
|
407
407
|
* @type {Source<number> | null}
|
|
408
408
|
*/
|
|
409
409
|
#h = null;
|
|
410
|
-
#g =
|
|
410
|
+
#g = Cs(() => (this.#h = Rt(this.#v), () => {
|
|
411
411
|
this.#h = null;
|
|
412
412
|
}));
|
|
413
413
|
/**
|
|
@@ -418,31 +418,31 @@ class ks {
|
|
|
418
418
|
*/
|
|
419
419
|
constructor(t, r, n, i) {
|
|
420
420
|
this.#e = t, this.#r = r, this.#u = (s) => {
|
|
421
|
-
var
|
|
421
|
+
var a = (
|
|
422
422
|
/** @type {Effect} */
|
|
423
423
|
w
|
|
424
424
|
);
|
|
425
|
-
|
|
425
|
+
a.b = this, a.f |= Hr, n(s);
|
|
426
426
|
}, this.parent = /** @type {Effect} */
|
|
427
|
-
w.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i =
|
|
427
|
+
w.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = li(() => {
|
|
428
428
|
if (U) {
|
|
429
429
|
const s = (
|
|
430
430
|
/** @type {Comment} */
|
|
431
431
|
this.#t
|
|
432
432
|
);
|
|
433
|
-
|
|
434
|
-
const
|
|
435
|
-
if (s.data.startsWith(
|
|
436
|
-
const u = JSON.parse(s.data.slice(
|
|
433
|
+
Gr();
|
|
434
|
+
const a = s.data === Nn;
|
|
435
|
+
if (s.data.startsWith(sn)) {
|
|
436
|
+
const u = JSON.parse(s.data.slice(sn.length));
|
|
437
437
|
this.#b(u);
|
|
438
|
-
} else
|
|
438
|
+
} else a ? this.#x() : this.#m();
|
|
439
439
|
} else
|
|
440
440
|
this.#d();
|
|
441
|
-
},
|
|
441
|
+
}, Ds), U && (this.#e = L);
|
|
442
442
|
}
|
|
443
443
|
#m() {
|
|
444
444
|
try {
|
|
445
|
-
this.#
|
|
445
|
+
this.#a = Me(() => this.#u(this.#e));
|
|
446
446
|
} catch (t) {
|
|
447
447
|
this.error(t);
|
|
448
448
|
}
|
|
@@ -452,7 +452,7 @@ class ks {
|
|
|
452
452
|
*/
|
|
453
453
|
#b(t) {
|
|
454
454
|
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#y(t);
|
|
455
|
-
|
|
455
|
+
Ge(i), r && (this.#o = Me(() => {
|
|
456
456
|
r(
|
|
457
457
|
this.#e,
|
|
458
458
|
() => t,
|
|
@@ -470,11 +470,11 @@ class ks {
|
|
|
470
470
|
var r = !1, n = !1;
|
|
471
471
|
const i = () => {
|
|
472
472
|
if (r) {
|
|
473
|
-
|
|
473
|
+
Hs();
|
|
474
474
|
return;
|
|
475
475
|
}
|
|
476
|
-
r = !0, n &&
|
|
477
|
-
this.#
|
|
476
|
+
r = !0, n && Ts(), this.#o !== null && $t(this.#o, () => {
|
|
477
|
+
this.#o = null;
|
|
478
478
|
}), this.#p(() => {
|
|
479
479
|
this.#d();
|
|
480
480
|
});
|
|
@@ -482,16 +482,16 @@ class ks {
|
|
|
482
482
|
return { reset: i, invoke_onerror: () => {
|
|
483
483
|
try {
|
|
484
484
|
n = !0, this.#r.onerror?.(t, i), n = !1;
|
|
485
|
-
} catch (
|
|
486
|
-
Ne(
|
|
485
|
+
} catch (a) {
|
|
486
|
+
Ne(a, this.#i && this.#i.parent);
|
|
487
487
|
}
|
|
488
488
|
} };
|
|
489
489
|
}
|
|
490
490
|
#x() {
|
|
491
491
|
const t = this.#r.pending;
|
|
492
|
-
t && (this.is_pending = !0, this.#n =
|
|
493
|
-
var r = this.#s = document.createDocumentFragment(), n =
|
|
494
|
-
r.append(n), this.#
|
|
492
|
+
t && (this.is_pending = !0, this.#n = Me(() => t(this.#e)), Ge(() => {
|
|
493
|
+
var r = this.#s = document.createDocumentFragment(), n = Ce();
|
|
494
|
+
r.append(n), this.#a = this.#p(() => Me(() => this.#u(n))), this.#l === 0 && (this.#e.before(r), this.#s = null, $t(
|
|
495
495
|
/** @type {Effect} */
|
|
496
496
|
this.#n,
|
|
497
497
|
() => {
|
|
@@ -505,16 +505,16 @@ class ks {
|
|
|
505
505
|
}
|
|
506
506
|
#d() {
|
|
507
507
|
try {
|
|
508
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#
|
|
508
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#a = Me(() => {
|
|
509
509
|
this.#u(this.#e);
|
|
510
510
|
}), this.#l > 0) {
|
|
511
511
|
var t = this.#s = document.createDocumentFragment();
|
|
512
|
-
|
|
512
|
+
pi(this.#a, t);
|
|
513
513
|
const r = (
|
|
514
514
|
/** @type {(anchor: Node) => void} */
|
|
515
515
|
this.#r.pending
|
|
516
516
|
);
|
|
517
|
-
this.#n =
|
|
517
|
+
this.#n = Me(() => r(this.#e));
|
|
518
518
|
} else
|
|
519
519
|
this.#E(
|
|
520
520
|
/** @type {Batch} */
|
|
@@ -535,7 +535,7 @@ class ks {
|
|
|
535
535
|
* @param {Effect} effect
|
|
536
536
|
*/
|
|
537
537
|
defer_effect(t) {
|
|
538
|
-
|
|
538
|
+
Yn(t, this.#c, this.#_);
|
|
539
539
|
}
|
|
540
540
|
/**
|
|
541
541
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -553,13 +553,13 @@ class ks {
|
|
|
553
553
|
*/
|
|
554
554
|
#p(t) {
|
|
555
555
|
var r = w, n = S, i = ne;
|
|
556
|
-
|
|
556
|
+
Te(this.#i), ce(this.#i), ht(this.#i.ctx);
|
|
557
557
|
try {
|
|
558
558
|
return Oe.ensure(), t();
|
|
559
559
|
} catch (s) {
|
|
560
|
-
return
|
|
560
|
+
return Wn(s), null;
|
|
561
561
|
} finally {
|
|
562
|
-
|
|
562
|
+
Te(r), ce(n), ht(i);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
/**
|
|
@@ -585,7 +585,7 @@ class ks {
|
|
|
585
585
|
* @param {Batch} batch
|
|
586
586
|
*/
|
|
587
587
|
update_pending_count(t, r) {
|
|
588
|
-
this.#w(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0,
|
|
588
|
+
this.#w(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0, Ge(() => {
|
|
589
589
|
this.#f = !1, this.#h && Kt(this.#h, this.#v);
|
|
590
590
|
}));
|
|
591
591
|
}
|
|
@@ -599,7 +599,7 @@ class ks {
|
|
|
599
599
|
error(t) {
|
|
600
600
|
if (!this.#r.onerror && !this.#r.failed)
|
|
601
601
|
throw t;
|
|
602
|
-
O?.is_fork ? (this.#
|
|
602
|
+
O?.is_fork ? (this.#a && O.skip_effect(this.#a), this.#n && O.skip_effect(this.#n), this.#o && O.skip_effect(this.#o), O.oncommit(() => {
|
|
603
603
|
this.#T(t);
|
|
604
604
|
})) : this.#T(t);
|
|
605
605
|
}
|
|
@@ -607,36 +607,36 @@ class ks {
|
|
|
607
607
|
* @param {unknown} error
|
|
608
608
|
*/
|
|
609
609
|
#T(t) {
|
|
610
|
-
this.#
|
|
610
|
+
this.#a && (ie(this.#a), this.#a = null), this.#n && (ie(this.#n), this.#n = null), this.#o && (ie(this.#o), this.#o = null), U && (ge(
|
|
611
611
|
/** @type {TemplateNode} */
|
|
612
612
|
this.#t
|
|
613
|
-
),
|
|
613
|
+
), As(), ge(Fn()));
|
|
614
614
|
let r = this.#r.failed;
|
|
615
615
|
const n = (i) => {
|
|
616
|
-
const { reset: s, invoke_onerror:
|
|
617
|
-
|
|
616
|
+
const { reset: s, invoke_onerror: a } = this.#y(i);
|
|
617
|
+
a(), r && (this.#o = this.#p(() => {
|
|
618
618
|
try {
|
|
619
|
-
return
|
|
620
|
-
var
|
|
619
|
+
return Me(() => {
|
|
620
|
+
var o = (
|
|
621
621
|
/** @type {Effect} */
|
|
622
622
|
w
|
|
623
623
|
);
|
|
624
|
-
|
|
624
|
+
o.b = this, o.f |= Hr, r(
|
|
625
625
|
this.#e,
|
|
626
626
|
() => i,
|
|
627
627
|
() => s
|
|
628
628
|
);
|
|
629
629
|
});
|
|
630
|
-
} catch (
|
|
630
|
+
} catch (o) {
|
|
631
631
|
return Ne(
|
|
632
|
-
|
|
632
|
+
o,
|
|
633
633
|
/** @type {Effect} */
|
|
634
634
|
this.#i.parent
|
|
635
635
|
), null;
|
|
636
636
|
}
|
|
637
637
|
}));
|
|
638
638
|
};
|
|
639
|
-
|
|
639
|
+
Ge(() => {
|
|
640
640
|
var i;
|
|
641
641
|
try {
|
|
642
642
|
i = this.transform_error(t);
|
|
@@ -653,41 +653,41 @@ class ks {
|
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
const i =
|
|
658
|
-
var s = e.filter((d) => !d.settled),
|
|
656
|
+
function Us(e, t, r, n) {
|
|
657
|
+
const i = Yr;
|
|
658
|
+
var s = e.filter((d) => !d.settled), a = t.map(i);
|
|
659
659
|
if (r.length === 0 && s.length === 0) {
|
|
660
|
-
n(
|
|
660
|
+
n(a);
|
|
661
661
|
return;
|
|
662
662
|
}
|
|
663
|
-
var
|
|
663
|
+
var o = (
|
|
664
664
|
/** @type {Effect} */
|
|
665
665
|
w
|
|
666
|
-
), u =
|
|
666
|
+
), u = Gs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
667
667
|
function f(d) {
|
|
668
|
-
if (!(
|
|
668
|
+
if (!(o.f & he)) {
|
|
669
669
|
u();
|
|
670
670
|
try {
|
|
671
|
-
n([...
|
|
671
|
+
n([...a, ...d]);
|
|
672
672
|
} catch (p) {
|
|
673
|
-
Ne(p,
|
|
673
|
+
Ne(p, o);
|
|
674
674
|
}
|
|
675
675
|
Jt();
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
|
-
var h =
|
|
678
|
+
var h = zn();
|
|
679
679
|
if (r.length === 0) {
|
|
680
680
|
l.then(() => f([])).finally(h);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
683
|
function c() {
|
|
684
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
684
|
+
Promise.all(r.map((d) => /* @__PURE__ */ js(d))).then(f).catch((d) => Ne(d, o)).finally(h);
|
|
685
685
|
}
|
|
686
686
|
l ? l.then(() => {
|
|
687
687
|
u(), c(), Jt();
|
|
688
688
|
}) : c();
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Gs() {
|
|
691
691
|
var e = (
|
|
692
692
|
/** @type {Effect} */
|
|
693
693
|
w
|
|
@@ -696,13 +696,13 @@ function Us() {
|
|
|
696
696
|
O
|
|
697
697
|
);
|
|
698
698
|
return function(s = !0) {
|
|
699
|
-
|
|
699
|
+
Te(e), ce(t), ht(r), s && !(e.f & he) && (n?.activate(), n?.apply());
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
function Jt(e = !0) {
|
|
703
|
-
|
|
703
|
+
Te(null), ce(null), ht(null), e && O?.deactivate();
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function zn() {
|
|
706
706
|
var e = (
|
|
707
707
|
/** @type {Effect} */
|
|
708
708
|
w
|
|
@@ -715,13 +715,13 @@ function Yn() {
|
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
717
|
// @__NO_SIDE_EFFECTS__
|
|
718
|
-
function
|
|
718
|
+
function Yr(e) {
|
|
719
719
|
var t = z | F;
|
|
720
720
|
return w !== null && (w.f |= ze), {
|
|
721
721
|
ctx: ne,
|
|
722
722
|
deps: null,
|
|
723
723
|
effects: null,
|
|
724
|
-
equals:
|
|
724
|
+
equals: Un,
|
|
725
725
|
f: t,
|
|
726
726
|
fn: e,
|
|
727
727
|
reactions: null,
|
|
@@ -737,12 +737,12 @@ function Wr(e) {
|
|
|
737
737
|
}
|
|
738
738
|
const wt = Symbol("obsolete");
|
|
739
739
|
// @__NO_SIDE_EFFECTS__
|
|
740
|
-
function
|
|
740
|
+
function js(e, t, r) {
|
|
741
741
|
let n = (
|
|
742
742
|
/** @type {Effect | null} */
|
|
743
743
|
w
|
|
744
744
|
);
|
|
745
|
-
n === null &&
|
|
745
|
+
n === null && vs();
|
|
746
746
|
var i = (
|
|
747
747
|
/** @type {Promise<V>} */
|
|
748
748
|
/** @type {unknown} */
|
|
@@ -750,12 +750,12 @@ function Gs(e, t, r) {
|
|
|
750
750
|
), s = Rt(
|
|
751
751
|
/** @type {V} */
|
|
752
752
|
j
|
|
753
|
-
),
|
|
754
|
-
return
|
|
753
|
+
), a = !S, o = /* @__PURE__ */ new Set();
|
|
754
|
+
return ra(() => {
|
|
755
755
|
var u = (
|
|
756
756
|
/** @type {Effect} */
|
|
757
757
|
w
|
|
758
|
-
), l =
|
|
758
|
+
), l = Dn();
|
|
759
759
|
i = l.promise;
|
|
760
760
|
try {
|
|
761
761
|
Promise.resolve(e()).then(l.resolve, (d) => {
|
|
@@ -768,25 +768,25 @@ function Gs(e, t, r) {
|
|
|
768
768
|
/** @type {Batch} */
|
|
769
769
|
O
|
|
770
770
|
);
|
|
771
|
-
if (
|
|
771
|
+
if (a) {
|
|
772
772
|
if (u.f & Ye)
|
|
773
|
-
var h =
|
|
773
|
+
var h = zn();
|
|
774
774
|
if (
|
|
775
775
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
776
776
|
n.b?.is_rendered()
|
|
777
777
|
)
|
|
778
778
|
f.async_deriveds.get(u)?.reject(wt);
|
|
779
779
|
else
|
|
780
|
-
for (const d of
|
|
780
|
+
for (const d of o.values())
|
|
781
781
|
d.reject(wt);
|
|
782
|
-
|
|
782
|
+
o.add(l), f.async_deriveds.set(u, l);
|
|
783
783
|
}
|
|
784
784
|
const c = (d, p = void 0) => {
|
|
785
|
-
h?.(),
|
|
785
|
+
h?.(), o.delete(l), p !== wt && (f.activate(), p ? (s.f |= Re, Kt(s, p)) : (s.f & Re && (s.f ^= Re), Kt(s, d)), f.deactivate());
|
|
786
786
|
};
|
|
787
787
|
l.promise.then(c, (d) => c(null, d || "unknown"));
|
|
788
|
-
}),
|
|
789
|
-
for (const u of
|
|
788
|
+
}), ai(() => {
|
|
789
|
+
for (const u of o)
|
|
790
790
|
u.reject(wt);
|
|
791
791
|
}), new Promise((u) => {
|
|
792
792
|
function l(f) {
|
|
@@ -800,10 +800,10 @@ function Gs(e, t, r) {
|
|
|
800
800
|
}
|
|
801
801
|
// @__NO_SIDE_EFFECTS__
|
|
802
802
|
function tt(e) {
|
|
803
|
-
const t = /* @__PURE__ */
|
|
804
|
-
return
|
|
803
|
+
const t = /* @__PURE__ */ Yr(e);
|
|
804
|
+
return vi(t), t;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Vs(e) {
|
|
807
807
|
var t = e.effects;
|
|
808
808
|
if (t !== null) {
|
|
809
809
|
e.effects = null;
|
|
@@ -814,44 +814,44 @@ function js(e) {
|
|
|
814
814
|
);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function zr(e) {
|
|
818
818
|
var t, r = w, n = e.parent;
|
|
819
|
-
if (!
|
|
819
|
+
if (!Be && n !== null && e.v !== j && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
820
820
|
n.f & (he | fe))
|
|
821
|
-
return
|
|
822
|
-
|
|
821
|
+
return Ss(), e.v;
|
|
822
|
+
Te(n);
|
|
823
823
|
try {
|
|
824
|
-
e.f &= ~We,
|
|
824
|
+
e.f &= ~We, Vs(e), t = bi(e);
|
|
825
825
|
} finally {
|
|
826
|
-
|
|
826
|
+
Te(r);
|
|
827
827
|
}
|
|
828
828
|
return t;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
var t =
|
|
832
|
-
if (!e.equals(t) && (e.wv =
|
|
830
|
+
function qn(e) {
|
|
831
|
+
var t = zr(e);
|
|
832
|
+
if (!e.equals(t) && (e.wv = mi(), (!O?.is_fork || e.deps === null) && (O !== null ? (O.capture(e, t, !0), Or?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
833
833
|
R(e, V);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
|
|
836
|
+
Be || (pe !== null ? (Kr() || O?.is_fork) && pe.set(e, t) : Wr(e));
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Ws(e) {
|
|
839
839
|
if (e.effects !== null)
|
|
840
840
|
for (const t of e.effects)
|
|
841
841
|
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && lr(() => {
|
|
842
842
|
t.ac.abort(It), t.ac = null;
|
|
843
|
-
}), t.fn !== null && (t.teardown = $e), Lt(t, 0),
|
|
843
|
+
}), t.fn !== null && (t.teardown = $e), Lt(t, 0), en(t));
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Zn(e) {
|
|
846
846
|
if (e.effects !== null)
|
|
847
847
|
for (const t of e.effects)
|
|
848
848
|
t.teardown && t.fn !== null && ct(t);
|
|
849
849
|
}
|
|
850
|
-
let vr = null, rt = null, O = null,
|
|
851
|
-
var
|
|
852
|
-
let
|
|
850
|
+
let vr = null, rt = null, O = null, Or = null, pe = null, Br = null, Ht = !1, _r = !1, st = null, Gt = null;
|
|
851
|
+
var un = 0;
|
|
852
|
+
let Xs = 1;
|
|
853
853
|
class Oe {
|
|
854
|
-
id =
|
|
854
|
+
id = Xs++;
|
|
855
855
|
/** True as soon as `#process` was called */
|
|
856
856
|
#e = !1;
|
|
857
857
|
linked = !0;
|
|
@@ -888,7 +888,7 @@ class Oe {
|
|
|
888
888
|
/**
|
|
889
889
|
* The number of async effects that are currently in flight
|
|
890
890
|
*/
|
|
891
|
-
#
|
|
891
|
+
#a = 0;
|
|
892
892
|
/**
|
|
893
893
|
* Async effects that are currently in flight, _not_ inside a pending boundary
|
|
894
894
|
* @type {Map<Effect, number>}
|
|
@@ -899,7 +899,7 @@ class Oe {
|
|
|
899
899
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
900
900
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
901
901
|
*/
|
|
902
|
-
#
|
|
902
|
+
#o = null;
|
|
903
903
|
/**
|
|
904
904
|
* The root effects that need to be flushed
|
|
905
905
|
* @type {Effect[]}
|
|
@@ -978,7 +978,7 @@ class Oe {
|
|
|
978
978
|
this.#_.add(t);
|
|
979
979
|
}
|
|
980
980
|
#m() {
|
|
981
|
-
this.#e = !0,
|
|
981
|
+
this.#e = !0, un++ > 1e3 && (this.#p(), Ys());
|
|
982
982
|
for (const u of this.#l)
|
|
983
983
|
this.#f.delete(u), R(u, F), this.schedule(u);
|
|
984
984
|
for (const u of this.#f)
|
|
@@ -990,7 +990,7 @@ class Oe {
|
|
|
990
990
|
try {
|
|
991
991
|
this.#b(u, r, n);
|
|
992
992
|
} catch (l) {
|
|
993
|
-
throw
|
|
993
|
+
throw Kn(u), this.#g() || this.discard(), l;
|
|
994
994
|
}
|
|
995
995
|
if (O = null, i.length > 0) {
|
|
996
996
|
var s = Oe.ensure();
|
|
@@ -1000,31 +1000,31 @@ class Oe {
|
|
|
1000
1000
|
if (st = null, Gt = null, this.#g()) {
|
|
1001
1001
|
this.#d(n), this.#d(r);
|
|
1002
1002
|
for (const [u, l] of this.#c)
|
|
1003
|
-
|
|
1003
|
+
Qn(u, l);
|
|
1004
1004
|
i.length > 0 && /** @type {unknown} */
|
|
1005
1005
|
O.#m();
|
|
1006
1006
|
return;
|
|
1007
1007
|
}
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
this.#d(n), this.#d(r),
|
|
1008
|
+
const a = this.#y();
|
|
1009
|
+
if (a) {
|
|
1010
|
+
this.#d(n), this.#d(r), a.#x(this);
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
1013
|
this.#l.clear(), this.#f.clear();
|
|
1014
1014
|
for (const u of this.#u) u(this);
|
|
1015
|
-
this.#u.clear(),
|
|
1016
|
-
var
|
|
1015
|
+
this.#u.clear(), Or = this, ln(n), ln(r), Or = null, this.#o?.resolve();
|
|
1016
|
+
var o = (
|
|
1017
1017
|
/** @type {Batch | null} */
|
|
1018
1018
|
/** @type {unknown} */
|
|
1019
1019
|
O
|
|
1020
1020
|
);
|
|
1021
|
-
if (this.#
|
|
1022
|
-
if (
|
|
1023
|
-
const u =
|
|
1021
|
+
if (this.#a === 0 && (this.#s.length === 0 || o !== null) && this.#p(), this.#s.length > 0)
|
|
1022
|
+
if (o !== null) {
|
|
1023
|
+
const u = o;
|
|
1024
1024
|
u.#s.push(...this.#s.filter((l) => !u.#s.includes(l)));
|
|
1025
1025
|
} else
|
|
1026
|
-
|
|
1027
|
-
|
|
1026
|
+
o = this;
|
|
1027
|
+
o !== null && (Ee.clear(), o.#m());
|
|
1028
1028
|
}
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -1036,9 +1036,9 @@ class Oe {
|
|
|
1036
1036
|
#b(t, r, n) {
|
|
1037
1037
|
t.f ^= V;
|
|
1038
1038
|
for (var i = t.first; i !== null; ) {
|
|
1039
|
-
var s = i.f,
|
|
1039
|
+
var s = i.f, a = (s & (me | we)) !== 0, o = a && (s & V) !== 0, u = o || (s & fe) !== 0 || this.#c.has(i);
|
|
1040
1040
|
if (!u && i.fn !== null) {
|
|
1041
|
-
|
|
1041
|
+
a ? i.f ^= V : s & lt ? r.push(i) : Ct(i) && (s & de && this.#f.add(i), ct(i));
|
|
1042
1042
|
var l = i.first;
|
|
1043
1043
|
if (l !== null) {
|
|
1044
1044
|
i = l;
|
|
@@ -1080,19 +1080,19 @@ class Oe {
|
|
|
1080
1080
|
const r = (n) => {
|
|
1081
1081
|
var i = n.reactions;
|
|
1082
1082
|
if (i !== null && !(n.f & z && !(n.f & (F | _e))))
|
|
1083
|
-
for (const
|
|
1084
|
-
var s =
|
|
1083
|
+
for (const o of i) {
|
|
1084
|
+
var s = o.f;
|
|
1085
1085
|
if (s & z)
|
|
1086
1086
|
r(
|
|
1087
1087
|
/** @type {Derived} */
|
|
1088
|
-
|
|
1088
|
+
o
|
|
1089
1089
|
);
|
|
1090
1090
|
else {
|
|
1091
|
-
var
|
|
1091
|
+
var a = (
|
|
1092
1092
|
/** @type {Effect} */
|
|
1093
|
-
|
|
1093
|
+
o
|
|
1094
1094
|
);
|
|
1095
|
-
s & (
|
|
1095
|
+
s & (ot | de) && !this.async_deriveds.has(a) && (this.#f.delete(a), R(a, F), this.schedule(a));
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
};
|
|
@@ -1105,7 +1105,7 @@ class Oe {
|
|
|
1105
1105
|
*/
|
|
1106
1106
|
#d(t) {
|
|
1107
1107
|
for (var r = 0; r < t.length; r += 1)
|
|
1108
|
-
|
|
1108
|
+
Yn(t[r], this.#l, this.#f);
|
|
1109
1109
|
}
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Associate a change to a given source with the current
|
|
@@ -1127,7 +1127,7 @@ class Oe {
|
|
|
1127
1127
|
try {
|
|
1128
1128
|
_r = !0, O = this, this.#m();
|
|
1129
1129
|
} finally {
|
|
1130
|
-
|
|
1130
|
+
un = 0, Br = null, st = null, Gt = null, _r = !1, O = null, pe = null, Ee.clear();
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
discard() {
|
|
@@ -1135,7 +1135,7 @@ class Oe {
|
|
|
1135
1135
|
this.#i.clear();
|
|
1136
1136
|
for (const t of this.async_deriveds.values())
|
|
1137
1137
|
t.reject(wt);
|
|
1138
|
-
this.#p(), this.#
|
|
1138
|
+
this.#p(), this.#o?.resolve();
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
1141
|
* @param {Effect} effect
|
|
@@ -1176,20 +1176,20 @@ class Oe {
|
|
|
1176
1176
|
if (t)
|
|
1177
1177
|
for (const c of this.#_)
|
|
1178
1178
|
h.unskip_effect(c, (d) => {
|
|
1179
|
-
d.f & (de |
|
|
1179
|
+
d.f & (de | ot) ? h.schedule(d) : h.#d([d]);
|
|
1180
1180
|
});
|
|
1181
1181
|
h.activate();
|
|
1182
|
-
var
|
|
1182
|
+
var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
1183
1183
|
for (var u of r)
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
Jn(u, s, a, o);
|
|
1185
|
+
o = /* @__PURE__ */ new Map();
|
|
1186
1186
|
var l = [...h.current].filter(([c, d]) => {
|
|
1187
1187
|
const p = this.current.get(c);
|
|
1188
1188
|
return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
|
|
1189
1189
|
}).map(([c]) => c);
|
|
1190
1190
|
if (l.length > 0)
|
|
1191
1191
|
for (const c of this.#v)
|
|
1192
|
-
!(c.f & (he | fe | qt)) &&
|
|
1192
|
+
!(c.f & (he | fe | qt)) && qr(c, l, o) && (c.f & (ot | de) ? (R(c, F), h.schedule(c)) : h.#l.add(c));
|
|
1193
1193
|
if (h.#s.length > 0 && !h.#h) {
|
|
1194
1194
|
h.apply();
|
|
1195
1195
|
for (var f of h.#s)
|
|
@@ -1206,7 +1206,7 @@ class Oe {
|
|
|
1206
1206
|
* @param {Effect} effect
|
|
1207
1207
|
*/
|
|
1208
1208
|
increment(t, r) {
|
|
1209
|
-
if (this.#
|
|
1209
|
+
if (this.#a += 1, t) {
|
|
1210
1210
|
let n = this.#n.get(r) ?? 0;
|
|
1211
1211
|
this.#n.set(r, n + 1);
|
|
1212
1212
|
}
|
|
@@ -1216,11 +1216,11 @@ class Oe {
|
|
|
1216
1216
|
* @param {Effect} effect
|
|
1217
1217
|
*/
|
|
1218
1218
|
decrement(t, r) {
|
|
1219
|
-
if (this.#
|
|
1219
|
+
if (this.#a -= 1, t) {
|
|
1220
1220
|
let n = this.#n.get(r) ?? 0;
|
|
1221
1221
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
1222
1222
|
}
|
|
1223
|
-
this.#h || (this.#h = !0,
|
|
1223
|
+
this.#h || (this.#h = !0, Ge(() => {
|
|
1224
1224
|
this.#h = !1, this.linked && this.flush();
|
|
1225
1225
|
}));
|
|
1226
1226
|
}
|
|
@@ -1244,12 +1244,12 @@ class Oe {
|
|
|
1244
1244
|
this.#i.add(t);
|
|
1245
1245
|
}
|
|
1246
1246
|
settled() {
|
|
1247
|
-
return (this.#
|
|
1247
|
+
return (this.#o ??= Dn()).promise;
|
|
1248
1248
|
}
|
|
1249
1249
|
static ensure() {
|
|
1250
1250
|
if (O === null) {
|
|
1251
1251
|
const t = O = new Oe();
|
|
1252
|
-
!_r && !Ht &&
|
|
1252
|
+
!_r && !Ht && Ge(() => {
|
|
1253
1253
|
t.#e || t.flush();
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
@@ -1266,7 +1266,7 @@ class Oe {
|
|
|
1266
1266
|
* @param {Effect} effect
|
|
1267
1267
|
*/
|
|
1268
1268
|
schedule(t) {
|
|
1269
|
-
if (
|
|
1269
|
+
if (Br = t, t.b?.is_pending && t.f & (lt | ir | kn) && !(t.f & Ye)) {
|
|
1270
1270
|
t.b.defer_effect(t);
|
|
1271
1271
|
return;
|
|
1272
1272
|
}
|
|
@@ -1275,7 +1275,7 @@ class Oe {
|
|
|
1275
1275
|
var n = r.f;
|
|
1276
1276
|
if (st !== null && r === w && (S === null || !(S.f & z)))
|
|
1277
1277
|
return;
|
|
1278
|
-
if (n & (
|
|
1278
|
+
if (n & (we | me)) {
|
|
1279
1279
|
if (!(n & V))
|
|
1280
1280
|
return;
|
|
1281
1281
|
r.f ^= V;
|
|
@@ -1295,7 +1295,7 @@ function ue(e) {
|
|
|
1295
1295
|
Ht = !0;
|
|
1296
1296
|
try {
|
|
1297
1297
|
for (var r; ; ) {
|
|
1298
|
-
if (
|
|
1298
|
+
if (Ls(), O === null)
|
|
1299
1299
|
return (
|
|
1300
1300
|
/** @type {T} */
|
|
1301
1301
|
r
|
|
@@ -1306,62 +1306,62 @@ function ue(e) {
|
|
|
1306
1306
|
Ht = t;
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Ys() {
|
|
1310
1310
|
try {
|
|
1311
|
-
|
|
1311
|
+
bs();
|
|
1312
1312
|
} catch (e) {
|
|
1313
|
-
Ne(e,
|
|
1313
|
+
Ne(e, Br);
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
|
-
let
|
|
1317
|
-
function
|
|
1316
|
+
let Ae = null;
|
|
1317
|
+
function ln(e) {
|
|
1318
1318
|
var t = e.length;
|
|
1319
1319
|
if (t !== 0) {
|
|
1320
1320
|
for (var r = 0; r < t; ) {
|
|
1321
1321
|
var n = e[r++];
|
|
1322
|
-
if (!(n.f & (he | fe)) && Ct(n) && (
|
|
1323
|
-
|
|
1324
|
-
for (const i of
|
|
1322
|
+
if (!(n.f & (he | fe)) && Ct(n) && (Ae = /* @__PURE__ */ new Set(), ct(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && hi(n), Ae?.size > 0)) {
|
|
1323
|
+
Ee.clear();
|
|
1324
|
+
for (const i of Ae) {
|
|
1325
1325
|
if (i.f & (he | fe)) continue;
|
|
1326
1326
|
const s = [i];
|
|
1327
|
-
let
|
|
1328
|
-
for (;
|
|
1329
|
-
|
|
1330
|
-
for (let
|
|
1331
|
-
const u = s[
|
|
1327
|
+
let a = i.parent;
|
|
1328
|
+
for (; a !== null; )
|
|
1329
|
+
Ae.has(a) && (Ae.delete(a), s.push(a)), a = a.parent;
|
|
1330
|
+
for (let o = s.length - 1; o >= 0; o--) {
|
|
1331
|
+
const u = s[o];
|
|
1332
1332
|
u.f & (he | fe) || ct(u);
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
|
-
|
|
1335
|
+
Ae.clear();
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
|
|
1338
|
+
Ae = null;
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Jn(e, t, r, n) {
|
|
1342
1342
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1343
1343
|
for (const i of e.reactions) {
|
|
1344
1344
|
const s = i.f;
|
|
1345
|
-
s & z ?
|
|
1345
|
+
s & z ? Jn(
|
|
1346
1346
|
/** @type {Derived} */
|
|
1347
1347
|
i,
|
|
1348
1348
|
t,
|
|
1349
1349
|
r,
|
|
1350
1350
|
n
|
|
1351
|
-
) : s & (
|
|
1351
|
+
) : s & (ot | de) && !(s & F) && qr(i, t, n) && (R(i, F), Zr(
|
|
1352
1352
|
/** @type {Effect} */
|
|
1353
1353
|
i
|
|
1354
1354
|
));
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function qr(e, t, r) {
|
|
1358
1358
|
const n = r.get(e);
|
|
1359
1359
|
if (n !== void 0) return n;
|
|
1360
1360
|
if (e.deps !== null)
|
|
1361
1361
|
for (const i of e.deps) {
|
|
1362
1362
|
if (Yt.call(t, i))
|
|
1363
1363
|
return !0;
|
|
1364
|
-
if (i.f & z &&
|
|
1364
|
+
if (i.f & z && qr(
|
|
1365
1365
|
/** @type {Derived} */
|
|
1366
1366
|
i,
|
|
1367
1367
|
t,
|
|
@@ -1375,31 +1375,31 @@ function Yr(e, t, r) {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
return r.set(e, !1), !1;
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Zr(e) {
|
|
1379
1379
|
O.schedule(e);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Qn(e, t) {
|
|
1382
1382
|
if (!(e.f & me && e.f & V)) {
|
|
1383
1383
|
e.f & F ? t.d.push(e) : e.f & _e && t.m.push(e), R(e, V);
|
|
1384
1384
|
for (var r = e.first; r !== null; )
|
|
1385
|
-
|
|
1385
|
+
Qn(r, t), r = r.next;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function Kn(e) {
|
|
1389
1389
|
R(e, V);
|
|
1390
1390
|
for (var t = e.first; t !== null; )
|
|
1391
|
-
|
|
1391
|
+
Kn(t), t = t.next;
|
|
1392
1392
|
}
|
|
1393
1393
|
let Qt = /* @__PURE__ */ new Set();
|
|
1394
|
-
const
|
|
1395
|
-
let
|
|
1394
|
+
const Ee = /* @__PURE__ */ new Map();
|
|
1395
|
+
let ei = !1;
|
|
1396
1396
|
function Rt(e, t) {
|
|
1397
1397
|
var r = {
|
|
1398
1398
|
f: 0,
|
|
1399
1399
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1400
1400
|
v: e,
|
|
1401
1401
|
reactions: null,
|
|
1402
|
-
equals:
|
|
1402
|
+
equals: Un,
|
|
1403
1403
|
rv: 0,
|
|
1404
1404
|
wv: 0
|
|
1405
1405
|
};
|
|
@@ -1408,37 +1408,37 @@ function Rt(e, t) {
|
|
|
1408
1408
|
// @__NO_SIDE_EFFECTS__
|
|
1409
1409
|
function te(e, t) {
|
|
1410
1410
|
const r = Rt(e);
|
|
1411
|
-
return
|
|
1411
|
+
return vi(r), r;
|
|
1412
1412
|
}
|
|
1413
1413
|
// @__NO_SIDE_EFFECTS__
|
|
1414
|
-
function
|
|
1414
|
+
function ti(e, t = !1, r = !0) {
|
|
1415
1415
|
const n = Rt(e);
|
|
1416
|
-
return t || (n.equals =
|
|
1416
|
+
return t || (n.equals = Os), n;
|
|
1417
1417
|
}
|
|
1418
1418
|
function Y(e, t, r = !1) {
|
|
1419
1419
|
S !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1420
1420
|
// to ensure we error if state is set inside an inspect effect
|
|
1421
|
-
(!ve || S.f & qt) &&
|
|
1421
|
+
(!ve || S.f & qt) && jn() && S.f & (z | de | ot | qt) && (xe === null || !xe.has(e)) && ws();
|
|
1422
1422
|
let n = r ? Tt(t) : t;
|
|
1423
1423
|
return Kt(e, n, Gt);
|
|
1424
1424
|
}
|
|
1425
1425
|
function Kt(e, t, r = null) {
|
|
1426
1426
|
if (!e.equals(t)) {
|
|
1427
|
-
|
|
1427
|
+
Be ? Ee.set(e, t) : Ee.has(e) || Ee.set(e, e.v);
|
|
1428
1428
|
var n = Oe.ensure();
|
|
1429
1429
|
if (n.capture(e, t), e.f & z) {
|
|
1430
1430
|
const i = (
|
|
1431
1431
|
/** @type {Derived} */
|
|
1432
1432
|
e
|
|
1433
1433
|
);
|
|
1434
|
-
e.f & F &&
|
|
1434
|
+
e.f & F && zr(i), pe === null && Wr(i);
|
|
1435
1435
|
}
|
|
1436
|
-
e.wv =
|
|
1436
|
+
e.wv = mi(), ri(e, F, r), w !== null && w.f & V && !(w.f & (me | we)) && (oe === null ? sa([e]) : oe.push(e)), !n.is_fork && Qt.size > 0 && !ei && zs();
|
|
1437
1437
|
}
|
|
1438
1438
|
return t;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1441
|
-
|
|
1440
|
+
function zs() {
|
|
1441
|
+
ei = !1;
|
|
1442
1442
|
for (const e of Qt) {
|
|
1443
1443
|
e.f & V && R(e, _e);
|
|
1444
1444
|
let t;
|
|
@@ -1454,44 +1454,44 @@ function Ys() {
|
|
|
1454
1454
|
function At(e) {
|
|
1455
1455
|
Y(e, e.v + 1);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function ri(e, t, r) {
|
|
1458
1458
|
var n = e.reactions;
|
|
1459
1459
|
if (n !== null)
|
|
1460
1460
|
for (var i = n.length, s = 0; s < i; s++) {
|
|
1461
|
-
var
|
|
1462
|
-
if (u && R(
|
|
1461
|
+
var a = n[s], o = a.f, u = (o & F) === 0;
|
|
1462
|
+
if (u && R(a, t), o & qt)
|
|
1463
1463
|
Qt.add(
|
|
1464
1464
|
/** @type {Effect} */
|
|
1465
|
-
|
|
1465
|
+
a
|
|
1466
1466
|
);
|
|
1467
|
-
else if (
|
|
1467
|
+
else if (o & z) {
|
|
1468
1468
|
var l = (
|
|
1469
1469
|
/** @type {Derived} */
|
|
1470
|
-
|
|
1470
|
+
a
|
|
1471
1471
|
);
|
|
1472
|
-
pe?.delete(l),
|
|
1472
|
+
pe?.delete(l), o & We || (o & le && (w === null || !(w.f & Zt)) && (a.f |= We), ri(l, _e, r));
|
|
1473
1473
|
} else if (u) {
|
|
1474
1474
|
var f = (
|
|
1475
1475
|
/** @type {Effect} */
|
|
1476
|
-
|
|
1476
|
+
a
|
|
1477
1477
|
);
|
|
1478
|
-
|
|
1478
|
+
o & de && Ae !== null && Ae.add(f), r !== null ? r.push(f) : Zr(f);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
function Tt(e) {
|
|
1483
1483
|
if (typeof e != "object" || e === null || pr in e)
|
|
1484
1484
|
return e;
|
|
1485
|
-
const t =
|
|
1486
|
-
if (t !==
|
|
1485
|
+
const t = us(e);
|
|
1486
|
+
if (t !== as && t !== os)
|
|
1487
1487
|
return e;
|
|
1488
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1488
|
+
var r = /* @__PURE__ */ new Map(), n = ns(e), i = /* @__PURE__ */ te(0), s = Ve, a = (o) => {
|
|
1489
1489
|
if (Ve === s)
|
|
1490
|
-
return
|
|
1490
|
+
return o();
|
|
1491
1491
|
var u = S, l = Ve;
|
|
1492
|
-
ce(null),
|
|
1493
|
-
var f =
|
|
1494
|
-
return ce(u),
|
|
1492
|
+
ce(null), _n(s);
|
|
1493
|
+
var f = o();
|
|
1494
|
+
return ce(u), _n(l), f;
|
|
1495
1495
|
};
|
|
1496
1496
|
return n && r.set("length", /* @__PURE__ */ te(
|
|
1497
1497
|
/** @type {any[]} */
|
|
@@ -1500,40 +1500,40 @@ function Tt(e) {
|
|
|
1500
1500
|
/** @type {any} */
|
|
1501
1501
|
e,
|
|
1502
1502
|
{
|
|
1503
|
-
defineProperty(
|
|
1504
|
-
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) &&
|
|
1503
|
+
defineProperty(o, u, l) {
|
|
1504
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Es();
|
|
1505
1505
|
var f = r.get(u);
|
|
1506
|
-
return f === void 0 ?
|
|
1506
|
+
return f === void 0 ? a(() => {
|
|
1507
1507
|
var h = /* @__PURE__ */ te(l.value);
|
|
1508
1508
|
return r.set(u, h), h;
|
|
1509
1509
|
}) : Y(f, l.value, !0), !0;
|
|
1510
1510
|
},
|
|
1511
|
-
deleteProperty(
|
|
1511
|
+
deleteProperty(o, u) {
|
|
1512
1512
|
var l = r.get(u);
|
|
1513
1513
|
if (l === void 0) {
|
|
1514
|
-
if (u in
|
|
1515
|
-
const f =
|
|
1514
|
+
if (u in o) {
|
|
1515
|
+
const f = a(() => /* @__PURE__ */ te(j));
|
|
1516
1516
|
r.set(u, f), At(i);
|
|
1517
1517
|
}
|
|
1518
1518
|
} else
|
|
1519
1519
|
Y(l, j), At(i);
|
|
1520
1520
|
return !0;
|
|
1521
1521
|
},
|
|
1522
|
-
get(
|
|
1522
|
+
get(o, u, l) {
|
|
1523
1523
|
if (u === pr)
|
|
1524
1524
|
return e;
|
|
1525
|
-
var f = r.get(u), h = u in
|
|
1526
|
-
if (f === void 0 && (!h ||
|
|
1527
|
-
var d = Tt(h ?
|
|
1525
|
+
var f = r.get(u), h = u in o;
|
|
1526
|
+
if (f === void 0 && (!h || at(o, u)?.writable) && (f = a(() => {
|
|
1527
|
+
var d = Tt(h ? o[u] : j), p = /* @__PURE__ */ te(d);
|
|
1528
1528
|
return p;
|
|
1529
1529
|
}), r.set(u, f)), f !== void 0) {
|
|
1530
1530
|
var c = A(f);
|
|
1531
1531
|
return c === j ? void 0 : c;
|
|
1532
1532
|
}
|
|
1533
|
-
return Reflect.get(
|
|
1533
|
+
return Reflect.get(o, u, l);
|
|
1534
1534
|
},
|
|
1535
|
-
getOwnPropertyDescriptor(
|
|
1536
|
-
var l = Reflect.getOwnPropertyDescriptor(
|
|
1535
|
+
getOwnPropertyDescriptor(o, u) {
|
|
1536
|
+
var l = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1537
1537
|
if (l && "value" in l) {
|
|
1538
1538
|
var f = r.get(u);
|
|
1539
1539
|
f && (l.value = A(f));
|
|
@@ -1549,13 +1549,13 @@ function Tt(e) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return l;
|
|
1551
1551
|
},
|
|
1552
|
-
has(
|
|
1552
|
+
has(o, u) {
|
|
1553
1553
|
if (u === pr)
|
|
1554
1554
|
return !0;
|
|
1555
|
-
var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(
|
|
1556
|
-
if (l !== void 0 || w !== null && (!f ||
|
|
1557
|
-
l === void 0 && (l =
|
|
1558
|
-
var c = f ? Tt(
|
|
1555
|
+
var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(o, u);
|
|
1556
|
+
if (l !== void 0 || w !== null && (!f || at(o, u)?.writable)) {
|
|
1557
|
+
l === void 0 && (l = a(() => {
|
|
1558
|
+
var c = f ? Tt(o[u]) : j, d = /* @__PURE__ */ te(c);
|
|
1559
1559
|
return d;
|
|
1560
1560
|
}), r.set(u, l));
|
|
1561
1561
|
var h = A(l);
|
|
@@ -1564,22 +1564,22 @@ function Tt(e) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
return f;
|
|
1566
1566
|
},
|
|
1567
|
-
set(
|
|
1568
|
-
var h = r.get(u), c = u in
|
|
1567
|
+
set(o, u, l, f) {
|
|
1568
|
+
var h = r.get(u), c = u in o;
|
|
1569
1569
|
if (n && u === "length")
|
|
1570
1570
|
for (var d = l; d < /** @type {Source<number>} */
|
|
1571
1571
|
h.v; d += 1) {
|
|
1572
1572
|
var p = r.get(d + "");
|
|
1573
|
-
p !== void 0 ? Y(p, j) : d in
|
|
1573
|
+
p !== void 0 ? Y(p, j) : d in o && (p = a(() => /* @__PURE__ */ te(j)), r.set(d + "", p));
|
|
1574
1574
|
}
|
|
1575
1575
|
if (h === void 0)
|
|
1576
|
-
(!c ||
|
|
1576
|
+
(!c || at(o, u)?.writable) && (h = a(() => /* @__PURE__ */ te(void 0)), Y(h, Tt(l)), r.set(u, h));
|
|
1577
1577
|
else {
|
|
1578
1578
|
c = h.v !== j;
|
|
1579
|
-
var b =
|
|
1579
|
+
var b = a(() => Tt(l));
|
|
1580
1580
|
Y(h, b);
|
|
1581
1581
|
}
|
|
1582
|
-
var N = Reflect.getOwnPropertyDescriptor(
|
|
1582
|
+
var N = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1583
1583
|
if (N?.set && N.set.call(f, l), !c) {
|
|
1584
1584
|
if (n && typeof u == "string") {
|
|
1585
1585
|
var G = (
|
|
@@ -1592,45 +1592,45 @@ function Tt(e) {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return !0;
|
|
1594
1594
|
},
|
|
1595
|
-
ownKeys(
|
|
1595
|
+
ownKeys(o) {
|
|
1596
1596
|
A(i);
|
|
1597
|
-
var u = Reflect.ownKeys(
|
|
1597
|
+
var u = Reflect.ownKeys(o).filter((h) => {
|
|
1598
1598
|
var c = r.get(h);
|
|
1599
1599
|
return c === void 0 || c.v !== j;
|
|
1600
1600
|
});
|
|
1601
1601
|
for (var [l, f] of r)
|
|
1602
|
-
f.v !== j && !(l in
|
|
1602
|
+
f.v !== j && !(l in o) && u.push(l);
|
|
1603
1603
|
return u;
|
|
1604
1604
|
},
|
|
1605
1605
|
setPrototypeOf() {
|
|
1606
|
-
|
|
1606
|
+
xs();
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
);
|
|
1610
1610
|
}
|
|
1611
|
-
var
|
|
1612
|
-
function
|
|
1613
|
-
if (
|
|
1614
|
-
|
|
1611
|
+
var fn, ni, ii, si;
|
|
1612
|
+
function Lr() {
|
|
1613
|
+
if (fn === void 0) {
|
|
1614
|
+
fn = window, ni = /Firefox/.test(navigator.userAgent);
|
|
1615
1615
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1616
|
-
|
|
1616
|
+
ii = at(t, "firstChild").get, si = at(t, "nextSibling").get, an(e) && (e[ds] = void 0, e[cs] = null, e[ps] = void 0, e.__e = void 0), an(r) && (r[Ar] = void 0);
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Ce(e = "") {
|
|
1620
1620
|
return document.createTextNode(e);
|
|
1621
1621
|
}
|
|
1622
1622
|
// @__NO_SIDE_EFFECTS__
|
|
1623
1623
|
function Bt(e) {
|
|
1624
1624
|
return (
|
|
1625
1625
|
/** @type {TemplateNode | null} */
|
|
1626
|
-
|
|
1626
|
+
ii.call(e)
|
|
1627
1627
|
);
|
|
1628
1628
|
}
|
|
1629
1629
|
// @__NO_SIDE_EFFECTS__
|
|
1630
|
-
function
|
|
1630
|
+
function Le(e) {
|
|
1631
1631
|
return (
|
|
1632
1632
|
/** @type {TemplateNode | null} */
|
|
1633
|
-
|
|
1633
|
+
si.call(e)
|
|
1634
1634
|
);
|
|
1635
1635
|
}
|
|
1636
1636
|
function nt(e, t) {
|
|
@@ -1638,65 +1638,62 @@ function nt(e, t) {
|
|
|
1638
1638
|
return /* @__PURE__ */ Bt(e);
|
|
1639
1639
|
var r = /* @__PURE__ */ Bt(L);
|
|
1640
1640
|
if (r === null)
|
|
1641
|
-
r = L.appendChild(
|
|
1641
|
+
r = L.appendChild(Ce());
|
|
1642
1642
|
else if (t && r.nodeType !== sr) {
|
|
1643
|
-
var n =
|
|
1643
|
+
var n = Ce();
|
|
1644
1644
|
return r?.before(n), ge(n), n;
|
|
1645
1645
|
}
|
|
1646
|
-
return t &&
|
|
1646
|
+
return t && Qr(
|
|
1647
1647
|
/** @type {Text} */
|
|
1648
1648
|
r
|
|
1649
1649
|
), ge(r), r;
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function qs(e, t = !1) {
|
|
1652
1652
|
if (!U) {
|
|
1653
1653
|
var r = /* @__PURE__ */ Bt(e);
|
|
1654
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1654
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Le(r) : r;
|
|
1655
1655
|
}
|
|
1656
1656
|
if (t) {
|
|
1657
1657
|
if (L?.nodeType !== sr) {
|
|
1658
|
-
var n =
|
|
1658
|
+
var n = Ce();
|
|
1659
1659
|
return L?.before(n), ge(n), n;
|
|
1660
1660
|
}
|
|
1661
|
-
|
|
1661
|
+
Qr(
|
|
1662
1662
|
/** @type {Text} */
|
|
1663
1663
|
L
|
|
1664
1664
|
);
|
|
1665
1665
|
}
|
|
1666
1666
|
return L;
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function hn(e, t = 1, r = !1) {
|
|
1669
1669
|
let n = U ? L : e;
|
|
1670
1670
|
for (var i; t--; )
|
|
1671
1671
|
i = n, n = /** @type {TemplateNode} */
|
|
1672
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ Le(n);
|
|
1673
1673
|
if (!U)
|
|
1674
1674
|
return n;
|
|
1675
1675
|
if (r) {
|
|
1676
1676
|
if (n?.nodeType !== sr) {
|
|
1677
|
-
var s =
|
|
1677
|
+
var s = Ce();
|
|
1678
1678
|
return n === null ? i?.after(s) : n.before(s), ge(s), s;
|
|
1679
1679
|
}
|
|
1680
|
-
|
|
1680
|
+
Qr(
|
|
1681
1681
|
/** @type {Text} */
|
|
1682
1682
|
n
|
|
1683
1683
|
);
|
|
1684
1684
|
}
|
|
1685
1685
|
return ge(n), n;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Zs(e) {
|
|
1688
1688
|
e.textContent = "";
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
return !1;
|
|
1692
|
-
}
|
|
1693
|
-
function qr(e, t, r) {
|
|
1690
|
+
function Jr(e, t, r) {
|
|
1694
1691
|
return (
|
|
1695
1692
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1696
1693
|
document.createElement(e)
|
|
1697
1694
|
);
|
|
1698
1695
|
}
|
|
1699
|
-
function
|
|
1696
|
+
function Qr(e) {
|
|
1700
1697
|
if (
|
|
1701
1698
|
/** @type {string} */
|
|
1702
1699
|
e.nodeValue.length < 65536
|
|
@@ -1708,13 +1705,13 @@ function Zr(e) {
|
|
|
1708
1705
|
t.nodeValue, t = e.nextSibling;
|
|
1709
1706
|
}
|
|
1710
1707
|
function Js(e) {
|
|
1711
|
-
w === null && (S === null &&
|
|
1708
|
+
w === null && (S === null && gs(), ms()), Be && _s();
|
|
1712
1709
|
}
|
|
1713
1710
|
function Qs(e, t) {
|
|
1714
1711
|
var r = t.last;
|
|
1715
1712
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1716
1713
|
}
|
|
1717
|
-
function
|
|
1714
|
+
function Se(e, t) {
|
|
1718
1715
|
var r = w;
|
|
1719
1716
|
r !== null && r.f & fe && (e |= fe);
|
|
1720
1717
|
var n = {
|
|
@@ -1740,13 +1737,13 @@ function Te(e, t) {
|
|
|
1740
1737
|
else if (t !== null) {
|
|
1741
1738
|
try {
|
|
1742
1739
|
ct(n);
|
|
1743
|
-
} catch (
|
|
1744
|
-
throw ie(n),
|
|
1740
|
+
} catch (a) {
|
|
1741
|
+
throw ie(n), a;
|
|
1745
1742
|
}
|
|
1746
1743
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1747
1744
|
!(i.f & ze) && (i = i.first, e & de && e & ft && i !== null && (i.f |= ft));
|
|
1748
1745
|
}
|
|
1749
|
-
if (i !== null && (i.parent = r, r !== null && Qs(i, r), S !== null && S.f & z && !(e &
|
|
1746
|
+
if (i !== null && (i.parent = r, r !== null && Qs(i, r), S !== null && S.f & z && !(e & we))) {
|
|
1750
1747
|
var s = (
|
|
1751
1748
|
/** @type {Derived} */
|
|
1752
1749
|
S
|
|
@@ -1755,14 +1752,14 @@ function Te(e, t) {
|
|
|
1755
1752
|
}
|
|
1756
1753
|
return n;
|
|
1757
1754
|
}
|
|
1758
|
-
function
|
|
1755
|
+
function Kr() {
|
|
1759
1756
|
return S !== null && !ve;
|
|
1760
1757
|
}
|
|
1761
|
-
function
|
|
1762
|
-
const t =
|
|
1758
|
+
function ai(e) {
|
|
1759
|
+
const t = Se(ir, null);
|
|
1763
1760
|
return R(t, V), t.teardown = e, t;
|
|
1764
1761
|
}
|
|
1765
|
-
function
|
|
1762
|
+
function cn(e) {
|
|
1766
1763
|
Js();
|
|
1767
1764
|
var t = (
|
|
1768
1765
|
/** @type {Effect} */
|
|
@@ -1778,60 +1775,60 @@ function fn(e) {
|
|
|
1778
1775
|
return oi(e);
|
|
1779
1776
|
}
|
|
1780
1777
|
function oi(e) {
|
|
1781
|
-
return
|
|
1778
|
+
return Se(lt | fs, e);
|
|
1782
1779
|
}
|
|
1783
1780
|
function Ks(e) {
|
|
1784
1781
|
Oe.ensure();
|
|
1785
|
-
const t =
|
|
1782
|
+
const t = Se(we | ze, e);
|
|
1786
1783
|
return () => {
|
|
1787
1784
|
ie(t);
|
|
1788
1785
|
};
|
|
1789
1786
|
}
|
|
1790
|
-
function
|
|
1787
|
+
function ea(e) {
|
|
1791
1788
|
Oe.ensure();
|
|
1792
|
-
const t =
|
|
1789
|
+
const t = Se(we | ze, e);
|
|
1793
1790
|
return (r = {}) => new Promise((n) => {
|
|
1794
1791
|
r.outro ? $t(t, () => {
|
|
1795
1792
|
ie(t), n(void 0);
|
|
1796
1793
|
}) : (ie(t), n(void 0));
|
|
1797
1794
|
});
|
|
1798
1795
|
}
|
|
1799
|
-
function
|
|
1800
|
-
return
|
|
1796
|
+
function ta(e) {
|
|
1797
|
+
return Se(lt, e);
|
|
1801
1798
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1799
|
+
function ra(e) {
|
|
1800
|
+
return Se(ot | ze, e);
|
|
1804
1801
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1802
|
+
function ui(e, t = 0) {
|
|
1803
|
+
return Se(ir | t, e);
|
|
1807
1804
|
}
|
|
1808
|
-
function
|
|
1809
|
-
|
|
1810
|
-
|
|
1805
|
+
function dn(e, t = [], r = [], n = []) {
|
|
1806
|
+
Us(n, t, r, (i) => {
|
|
1807
|
+
Se(ir, () => {
|
|
1811
1808
|
e(...i.map(A));
|
|
1812
1809
|
});
|
|
1813
1810
|
});
|
|
1814
1811
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var r =
|
|
1812
|
+
function li(e, t = 0) {
|
|
1813
|
+
var r = Se(de | t, e);
|
|
1817
1814
|
return r;
|
|
1818
1815
|
}
|
|
1819
|
-
function
|
|
1820
|
-
return
|
|
1816
|
+
function Me(e) {
|
|
1817
|
+
return Se(me | ze, e);
|
|
1821
1818
|
}
|
|
1822
|
-
function
|
|
1819
|
+
function fi(e) {
|
|
1823
1820
|
var t = e.teardown;
|
|
1824
1821
|
if (t !== null) {
|
|
1825
|
-
const r =
|
|
1826
|
-
|
|
1822
|
+
const r = Be, n = S;
|
|
1823
|
+
vn(!0), ce(null);
|
|
1827
1824
|
try {
|
|
1828
1825
|
t.call(null);
|
|
1829
1826
|
} finally {
|
|
1830
|
-
|
|
1827
|
+
vn(r), ce(n);
|
|
1831
1828
|
}
|
|
1832
1829
|
}
|
|
1833
1830
|
}
|
|
1834
|
-
function
|
|
1831
|
+
function en(e, t = !1) {
|
|
1835
1832
|
var r = e.first;
|
|
1836
1833
|
for (e.first = e.last = null; r !== null; ) {
|
|
1837
1834
|
const i = r.ac;
|
|
@@ -1839,10 +1836,10 @@ function Qr(e, t = !1) {
|
|
|
1839
1836
|
i.abort(It);
|
|
1840
1837
|
});
|
|
1841
1838
|
var n = r.next;
|
|
1842
|
-
r.f &
|
|
1839
|
+
r.f & we ? r.parent = null : ie(r, t), r = n;
|
|
1843
1840
|
}
|
|
1844
1841
|
}
|
|
1845
|
-
function
|
|
1842
|
+
function na(e) {
|
|
1846
1843
|
for (var t = e.first; t !== null; ) {
|
|
1847
1844
|
var r = t.next;
|
|
1848
1845
|
t.f & me || ie(t), t = r;
|
|
@@ -1850,111 +1847,111 @@ function no(e) {
|
|
|
1850
1847
|
}
|
|
1851
1848
|
function ie(e, t = !0) {
|
|
1852
1849
|
var r = !1;
|
|
1853
|
-
(t || e.f &
|
|
1850
|
+
(t || e.f & ls) && e.nodes !== null && e.nodes.end !== null && (ia(
|
|
1854
1851
|
e.nodes.start,
|
|
1855
1852
|
/** @type {TemplateNode} */
|
|
1856
1853
|
e.nodes.end
|
|
1857
|
-
), r = !0), e.f |=
|
|
1854
|
+
), r = !0), e.f |= on, en(e, t && !r), Lt(e, 0);
|
|
1858
1855
|
var n = e.nodes && e.nodes.t;
|
|
1859
1856
|
if (n !== null)
|
|
1860
1857
|
for (const s of n)
|
|
1861
1858
|
s.stop();
|
|
1862
|
-
|
|
1859
|
+
fi(e), e.f ^= on, e.f |= he;
|
|
1863
1860
|
var i = e.parent;
|
|
1864
|
-
i !== null && i.first !== null &&
|
|
1861
|
+
i !== null && i.first !== null && hi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1865
1862
|
}
|
|
1866
|
-
function
|
|
1863
|
+
function ia(e, t) {
|
|
1867
1864
|
for (; e !== null; ) {
|
|
1868
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1865
|
+
var r = e === t ? null : /* @__PURE__ */ Le(e);
|
|
1869
1866
|
e.remove(), e = r;
|
|
1870
1867
|
}
|
|
1871
1868
|
}
|
|
1872
|
-
function
|
|
1869
|
+
function hi(e) {
|
|
1873
1870
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1874
1871
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1875
1872
|
}
|
|
1876
1873
|
function $t(e, t, r = !0) {
|
|
1877
1874
|
var n = [];
|
|
1878
|
-
|
|
1875
|
+
ci(e, n, !0);
|
|
1879
1876
|
var i = () => {
|
|
1880
1877
|
r && ie(e), t && t();
|
|
1881
1878
|
}, s = n.length;
|
|
1882
1879
|
if (s > 0) {
|
|
1883
|
-
var
|
|
1884
|
-
for (var
|
|
1885
|
-
|
|
1880
|
+
var a = () => --s || i();
|
|
1881
|
+
for (var o of n)
|
|
1882
|
+
o.out(a);
|
|
1886
1883
|
} else
|
|
1887
1884
|
i();
|
|
1888
1885
|
}
|
|
1889
|
-
function
|
|
1886
|
+
function ci(e, t, r) {
|
|
1890
1887
|
if (!(e.f & fe)) {
|
|
1891
1888
|
e.f ^= fe;
|
|
1892
1889
|
var n = e.nodes && e.nodes.t;
|
|
1893
1890
|
if (n !== null)
|
|
1894
|
-
for (const
|
|
1895
|
-
(
|
|
1891
|
+
for (const o of n)
|
|
1892
|
+
(o.is_global || r) && t.push(o);
|
|
1896
1893
|
for (var i = e.first; i !== null; ) {
|
|
1897
1894
|
var s = i.next;
|
|
1898
|
-
if (!(i.f &
|
|
1899
|
-
var
|
|
1895
|
+
if (!(i.f & we)) {
|
|
1896
|
+
var a = (i.f & ft) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1900
1897
|
// it means the parent block effect was pruned. In that case,
|
|
1901
1898
|
// transparency information was transferred to the branch effect.
|
|
1902
1899
|
(i.f & me) !== 0 && (e.f & de) !== 0;
|
|
1903
|
-
|
|
1900
|
+
ci(i, t, a ? r : !1);
|
|
1904
1901
|
}
|
|
1905
1902
|
i = s;
|
|
1906
1903
|
}
|
|
1907
1904
|
}
|
|
1908
1905
|
}
|
|
1909
|
-
function
|
|
1910
|
-
|
|
1906
|
+
function pn(e) {
|
|
1907
|
+
di(e, !0);
|
|
1911
1908
|
}
|
|
1912
|
-
function
|
|
1909
|
+
function di(e, t) {
|
|
1913
1910
|
if (e.f & fe) {
|
|
1914
1911
|
e.f ^= fe, e.f & V || (R(e, F), Oe.ensure().schedule(e));
|
|
1915
1912
|
for (var r = e.first; r !== null; ) {
|
|
1916
1913
|
var n = r.next, i = (r.f & ft) !== 0 || (r.f & me) !== 0;
|
|
1917
|
-
|
|
1914
|
+
di(r, i ? t : !1), r = n;
|
|
1918
1915
|
}
|
|
1919
1916
|
var s = e.nodes && e.nodes.t;
|
|
1920
1917
|
if (s !== null)
|
|
1921
|
-
for (const
|
|
1922
|
-
(
|
|
1918
|
+
for (const a of s)
|
|
1919
|
+
(a.is_global || t) && a.in();
|
|
1923
1920
|
}
|
|
1924
1921
|
}
|
|
1925
|
-
function
|
|
1922
|
+
function pi(e, t) {
|
|
1926
1923
|
if (e.nodes)
|
|
1927
1924
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1928
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1925
|
+
var i = r === n ? null : /* @__PURE__ */ Le(r);
|
|
1929
1926
|
t.append(r), r = i;
|
|
1930
1927
|
}
|
|
1931
1928
|
}
|
|
1932
|
-
let jt = !1,
|
|
1933
|
-
function
|
|
1934
|
-
|
|
1929
|
+
let jt = !1, Be = !1;
|
|
1930
|
+
function vn(e) {
|
|
1931
|
+
Be = e;
|
|
1935
1932
|
}
|
|
1936
1933
|
let S = null, ve = !1;
|
|
1937
1934
|
function ce(e) {
|
|
1938
1935
|
S = e;
|
|
1939
1936
|
}
|
|
1940
1937
|
let w = null;
|
|
1941
|
-
function
|
|
1938
|
+
function Te(e) {
|
|
1942
1939
|
w = e;
|
|
1943
1940
|
}
|
|
1944
|
-
let
|
|
1945
|
-
function
|
|
1946
|
-
S !== null && (
|
|
1941
|
+
let xe = null;
|
|
1942
|
+
function vi(e) {
|
|
1943
|
+
S !== null && (xe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1947
1944
|
}
|
|
1948
|
-
let re = null, se = 0,
|
|
1949
|
-
function
|
|
1950
|
-
|
|
1945
|
+
let re = null, se = 0, oe = null;
|
|
1946
|
+
function sa(e) {
|
|
1947
|
+
oe = e;
|
|
1951
1948
|
}
|
|
1952
|
-
let
|
|
1953
|
-
function
|
|
1949
|
+
let _i = 1, je = 0, Ve = je;
|
|
1950
|
+
function _n(e) {
|
|
1954
1951
|
Ve = e;
|
|
1955
1952
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return ++
|
|
1953
|
+
function mi() {
|
|
1954
|
+
return ++_i;
|
|
1958
1955
|
}
|
|
1959
1956
|
function Ct(e) {
|
|
1960
1957
|
var t = e.f;
|
|
@@ -1969,7 +1966,7 @@ function Ct(e) {
|
|
|
1969
1966
|
if (Ct(
|
|
1970
1967
|
/** @type {Derived} */
|
|
1971
1968
|
s
|
|
1972
|
-
) &&
|
|
1969
|
+
) && qn(
|
|
1973
1970
|
/** @type {Derived} */
|
|
1974
1971
|
s
|
|
1975
1972
|
), s.wv > e.wv)
|
|
@@ -1981,26 +1978,26 @@ function Ct(e) {
|
|
|
1981
1978
|
}
|
|
1982
1979
|
return !1;
|
|
1983
1980
|
}
|
|
1984
|
-
function
|
|
1981
|
+
function gi(e, t, r = !0) {
|
|
1985
1982
|
var n = e.reactions;
|
|
1986
|
-
if (n !== null && !(
|
|
1983
|
+
if (n !== null && !(xe !== null && xe.has(e)))
|
|
1987
1984
|
for (var i = 0; i < n.length; i++) {
|
|
1988
1985
|
var s = n[i];
|
|
1989
|
-
s.f & z ?
|
|
1986
|
+
s.f & z ? gi(
|
|
1990
1987
|
/** @type {Derived} */
|
|
1991
1988
|
s,
|
|
1992
1989
|
t,
|
|
1993
1990
|
!1
|
|
1994
|
-
) : t === s && (r ? R(s, F) : s.f & V && R(s, _e),
|
|
1991
|
+
) : t === s && (r ? R(s, F) : s.f & V && R(s, _e), Zr(
|
|
1995
1992
|
/** @type {Effect} */
|
|
1996
1993
|
s
|
|
1997
1994
|
));
|
|
1998
1995
|
}
|
|
1999
1996
|
}
|
|
2000
|
-
function
|
|
2001
|
-
var t = re, r = se, n =
|
|
1997
|
+
function bi(e) {
|
|
1998
|
+
var t = re, r = se, n = oe, i = S, s = xe, a = ne, o = ve, u = Ve, l = e.f;
|
|
2002
1999
|
re = /** @type {null | Value[]} */
|
|
2003
|
-
null, se = 0,
|
|
2000
|
+
null, se = 0, oe = null, S = l & (me | we) ? null : e, xe = null, ht(e.ctx), ve = !1, Ve = ++je, e.ac !== null && (lr(() => {
|
|
2004
2001
|
e.ac.abort(It);
|
|
2005
2002
|
}), e.ac = null);
|
|
2006
2003
|
try {
|
|
@@ -2018,39 +2015,39 @@ function gi(e) {
|
|
|
2018
2015
|
c[se + p] = re[p];
|
|
2019
2016
|
else
|
|
2020
2017
|
e.deps = c = re;
|
|
2021
|
-
if (
|
|
2018
|
+
if (Kr() && e.f & le)
|
|
2022
2019
|
for (p = se; p < c.length; p++)
|
|
2023
2020
|
(c[p].reactions ??= []).push(e);
|
|
2024
2021
|
} else !d && c !== null && se < c.length && (Lt(e, se), c.length = se);
|
|
2025
|
-
if (
|
|
2022
|
+
if (jn() && oe !== null && !ve && c !== null && !(e.f & (z | _e | F)))
|
|
2026
2023
|
for (p = 0; p < /** @type {Source[]} */
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2024
|
+
oe.length; p++)
|
|
2025
|
+
gi(
|
|
2026
|
+
oe[p],
|
|
2030
2027
|
/** @type {Effect} */
|
|
2031
2028
|
e
|
|
2032
2029
|
);
|
|
2033
2030
|
if (i !== null && i !== e) {
|
|
2034
|
-
if (
|
|
2031
|
+
if (je++, i.deps !== null)
|
|
2035
2032
|
for (let b = 0; b < r; b += 1)
|
|
2036
|
-
i.deps[b].rv =
|
|
2033
|
+
i.deps[b].rv = je;
|
|
2037
2034
|
if (t !== null)
|
|
2038
2035
|
for (const b of t)
|
|
2039
|
-
b.rv =
|
|
2040
|
-
|
|
2041
|
-
|
|
2036
|
+
b.rv = je;
|
|
2037
|
+
oe !== null && (n === null ? n = oe : n.push(.../** @type {Source[]} */
|
|
2038
|
+
oe));
|
|
2042
2039
|
}
|
|
2043
2040
|
return e.f & Re && (e.f ^= Re), h;
|
|
2044
2041
|
} catch (b) {
|
|
2045
|
-
return
|
|
2042
|
+
return Wn(b);
|
|
2046
2043
|
} finally {
|
|
2047
|
-
e.f ^= Zt, re = t, se = r,
|
|
2044
|
+
e.f ^= Zt, re = t, se = r, oe = n, S = i, xe = s, ht(a), ve = o, Ve = u;
|
|
2048
2045
|
}
|
|
2049
2046
|
}
|
|
2050
|
-
function
|
|
2047
|
+
function aa(e, t) {
|
|
2051
2048
|
let r = t.reactions;
|
|
2052
2049
|
if (r !== null) {
|
|
2053
|
-
var n =
|
|
2050
|
+
var n = is.call(r, e);
|
|
2054
2051
|
if (n !== -1) {
|
|
2055
2052
|
var i = r.length - 1;
|
|
2056
2053
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -2064,45 +2061,45 @@ function oo(e, t) {
|
|
|
2064
2061
|
/** @type {Derived} */
|
|
2065
2062
|
t
|
|
2066
2063
|
);
|
|
2067
|
-
s.f & le && (s.f ^= le, s.f &= ~We), s.v !== j &&
|
|
2064
|
+
s.f & le && (s.f ^= le, s.f &= ~We), s.v !== j && Wr(s), s.ac !== null && lr(() => {
|
|
2068
2065
|
s.ac.abort(It), s.ac = null, R(s, F);
|
|
2069
|
-
}),
|
|
2066
|
+
}), Ws(s), Lt(s, 0);
|
|
2070
2067
|
}
|
|
2071
2068
|
}
|
|
2072
2069
|
function Lt(e, t) {
|
|
2073
2070
|
var r = e.deps;
|
|
2074
2071
|
if (r !== null)
|
|
2075
2072
|
for (var n = t; n < r.length; n++)
|
|
2076
|
-
|
|
2073
|
+
aa(e, r[n]);
|
|
2077
2074
|
}
|
|
2078
2075
|
function ct(e) {
|
|
2079
2076
|
var t = e.f;
|
|
2080
2077
|
if (!(t & he)) {
|
|
2081
2078
|
R(e, V);
|
|
2082
2079
|
var r = w, n = jt;
|
|
2083
|
-
w = e, jt = (t & (me |
|
|
2080
|
+
w = e, jt = (t & (me | we)) === 0;
|
|
2084
2081
|
try {
|
|
2085
|
-
t & (de |
|
|
2086
|
-
var i =
|
|
2087
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
2082
|
+
t & (de | kn) ? na(e) : en(e), fi(e);
|
|
2083
|
+
var i = bi(e);
|
|
2084
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = _i;
|
|
2088
2085
|
var s;
|
|
2089
|
-
|
|
2086
|
+
Rn && Bs && e.f & F && e.deps;
|
|
2090
2087
|
} finally {
|
|
2091
2088
|
jt = n, w = r;
|
|
2092
2089
|
}
|
|
2093
2090
|
}
|
|
2094
2091
|
}
|
|
2095
|
-
async function
|
|
2092
|
+
async function oa() {
|
|
2096
2093
|
await Promise.resolve(), ue();
|
|
2097
2094
|
}
|
|
2098
2095
|
function A(e) {
|
|
2099
2096
|
var t = e.f, r = (t & z) !== 0;
|
|
2100
2097
|
if (S !== null && !ve) {
|
|
2101
2098
|
var n = w !== null && (w.f & he) !== 0;
|
|
2102
|
-
if (!n && (
|
|
2099
|
+
if (!n && (xe === null || !xe.has(e))) {
|
|
2103
2100
|
var i = S.deps;
|
|
2104
2101
|
if (S.f & Zt)
|
|
2105
|
-
e.rv <
|
|
2102
|
+
e.rv < je && (e.rv = je, re === null && i !== null && i[se] === e ? se++ : re === null ? re = [e] : re.push(e));
|
|
2106
2103
|
else {
|
|
2107
2104
|
S.deps ??= [], Yt.call(S.deps, e) || S.deps.push(e);
|
|
2108
2105
|
var s = e.reactions;
|
|
@@ -2110,19 +2107,19 @@ function A(e) {
|
|
|
2110
2107
|
}
|
|
2111
2108
|
}
|
|
2112
2109
|
}
|
|
2113
|
-
if (
|
|
2114
|
-
return
|
|
2110
|
+
if (Be && Ee.has(e))
|
|
2111
|
+
return Ee.get(e);
|
|
2115
2112
|
if (r) {
|
|
2116
|
-
var
|
|
2113
|
+
var a = (
|
|
2117
2114
|
/** @type {Derived} */
|
|
2118
2115
|
e
|
|
2119
2116
|
);
|
|
2120
|
-
if (
|
|
2121
|
-
var
|
|
2122
|
-
return (!(
|
|
2117
|
+
if (Be) {
|
|
2118
|
+
var o = a.v;
|
|
2119
|
+
return (!(a.f & V) && a.reactions !== null || Ei(a)) && (o = zr(a)), Ee.set(a, o), o;
|
|
2123
2120
|
}
|
|
2124
|
-
var u = (
|
|
2125
|
-
Ct(
|
|
2121
|
+
var u = (a.f & le) === 0 && !ve && S !== null && (jt || (S.f & le) !== 0), l = (a.f & Ye) === 0;
|
|
2122
|
+
Ct(a) && (u && (a.f |= le), qn(a)), u && !l && (Zn(a), yi(a));
|
|
2126
2123
|
}
|
|
2127
2124
|
if (pe?.has(e))
|
|
2128
2125
|
return pe.get(e);
|
|
@@ -2130,29 +2127,29 @@ function A(e) {
|
|
|
2130
2127
|
throw e.v;
|
|
2131
2128
|
return e.v;
|
|
2132
2129
|
}
|
|
2133
|
-
function
|
|
2130
|
+
function yi(e) {
|
|
2134
2131
|
if (e.f |= le, e.deps !== null)
|
|
2135
2132
|
for (const t of e.deps)
|
|
2136
|
-
(t.reactions ??= []).push(e), t.f & z && !(t.f & le) && (
|
|
2133
|
+
(t.reactions ??= []).push(e), t.f & z && !(t.f & le) && (Zn(
|
|
2137
2134
|
/** @type {Derived} */
|
|
2138
2135
|
t
|
|
2139
|
-
),
|
|
2136
|
+
), yi(
|
|
2140
2137
|
/** @type {Derived} */
|
|
2141
2138
|
t
|
|
2142
2139
|
));
|
|
2143
2140
|
}
|
|
2144
|
-
function
|
|
2141
|
+
function Ei(e) {
|
|
2145
2142
|
if (e.v === j) return !0;
|
|
2146
2143
|
if (e.deps === null) return !1;
|
|
2147
2144
|
for (const t of e.deps)
|
|
2148
|
-
if (
|
|
2145
|
+
if (Ee.has(t) || t.f & z && Ei(
|
|
2149
2146
|
/** @type {Derived} */
|
|
2150
2147
|
t
|
|
2151
2148
|
))
|
|
2152
2149
|
return !0;
|
|
2153
2150
|
return !1;
|
|
2154
2151
|
}
|
|
2155
|
-
function
|
|
2152
|
+
function xi(e) {
|
|
2156
2153
|
var t = ve;
|
|
2157
2154
|
try {
|
|
2158
2155
|
return ve = !0, e();
|
|
@@ -2160,9 +2157,9 @@ function Ei(e) {
|
|
|
2160
2157
|
ve = t;
|
|
2161
2158
|
}
|
|
2162
2159
|
}
|
|
2163
|
-
const kt = Symbol("events"),
|
|
2164
|
-
let
|
|
2165
|
-
function
|
|
2160
|
+
const kt = Symbol("events"), ua = /* @__PURE__ */ new Set(), mn = /* @__PURE__ */ new Set();
|
|
2161
|
+
let mr = null, gr = !1;
|
|
2162
|
+
function gn(e) {
|
|
2166
2163
|
var t = this, r = (
|
|
2167
2164
|
/** @type {Node} */
|
|
2168
2165
|
t.ownerDocument
|
|
@@ -2170,10 +2167,12 @@ function mn(e) {
|
|
|
2170
2167
|
/** @type {null | Element} */
|
|
2171
2168
|
i[0] || e.target
|
|
2172
2169
|
);
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2170
|
+
mr = e, gr || (gr = !0, setTimeout(() => {
|
|
2171
|
+
gr = !1, mr = null;
|
|
2172
|
+
}));
|
|
2173
|
+
var a = 0, o = mr === e && e[kt];
|
|
2174
|
+
if (o) {
|
|
2175
|
+
var u = i.indexOf(o);
|
|
2177
2176
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
2178
2177
|
window)) {
|
|
2179
2178
|
e[kt] = t;
|
|
@@ -2182,10 +2181,10 @@ function mn(e) {
|
|
|
2182
2181
|
var l = i.indexOf(t);
|
|
2183
2182
|
if (l === -1)
|
|
2184
2183
|
return;
|
|
2185
|
-
u <= l && (
|
|
2184
|
+
u <= l && (a = u);
|
|
2186
2185
|
}
|
|
2187
2186
|
if (s = /** @type {Element} */
|
|
2188
|
-
i[
|
|
2187
|
+
i[a] || e.target, s !== t) {
|
|
2189
2188
|
Ot(e, "currentTarget", {
|
|
2190
2189
|
configurable: !0,
|
|
2191
2190
|
get() {
|
|
@@ -2193,7 +2192,7 @@ function mn(e) {
|
|
|
2193
2192
|
}
|
|
2194
2193
|
});
|
|
2195
2194
|
var f = S, h = w;
|
|
2196
|
-
ce(null),
|
|
2195
|
+
ce(null), Te(null);
|
|
2197
2196
|
try {
|
|
2198
2197
|
for (var c, d = []; s !== null && s !== t; ) {
|
|
2199
2198
|
try {
|
|
@@ -2206,9 +2205,9 @@ function mn(e) {
|
|
|
2206
2205
|
c ? d.push(b) : c = b;
|
|
2207
2206
|
}
|
|
2208
2207
|
if (e.cancelBubble) break;
|
|
2209
|
-
|
|
2208
|
+
a++, s = a < i.length ? (
|
|
2210
2209
|
/** @type {Element} */
|
|
2211
|
-
i[
|
|
2210
|
+
i[a]
|
|
2212
2211
|
) : null;
|
|
2213
2212
|
}
|
|
2214
2213
|
if (c) {
|
|
@@ -2219,26 +2218,26 @@ function mn(e) {
|
|
|
2219
2218
|
throw c;
|
|
2220
2219
|
}
|
|
2221
2220
|
} finally {
|
|
2222
|
-
e[kt] = t, delete e.currentTarget, ce(f),
|
|
2221
|
+
e[kt] = t, delete e.currentTarget, ce(f), Te(h);
|
|
2223
2222
|
}
|
|
2224
2223
|
}
|
|
2225
2224
|
}
|
|
2226
|
-
const
|
|
2225
|
+
const la = (
|
|
2227
2226
|
// We gotta write it like this because after downleveling the pure comment may end up in the wrong location
|
|
2228
2227
|
globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
|
|
2229
2228
|
/** @param {string} html */
|
|
2230
2229
|
createHTML: (e) => e
|
|
2231
2230
|
})
|
|
2232
2231
|
);
|
|
2233
|
-
function
|
|
2232
|
+
function fa(e) {
|
|
2234
2233
|
return (
|
|
2235
2234
|
/** @type {string} */
|
|
2236
|
-
|
|
2235
|
+
la?.createHTML(e) ?? e
|
|
2237
2236
|
);
|
|
2238
2237
|
}
|
|
2239
|
-
function
|
|
2240
|
-
var t =
|
|
2241
|
-
return t.innerHTML =
|
|
2238
|
+
function ha(e) {
|
|
2239
|
+
var t = Jr("template");
|
|
2240
|
+
return t.innerHTML = fa(e.replaceAll("<!>", "<!---->")), t.content;
|
|
2242
2241
|
}
|
|
2243
2242
|
function Pt(e, t) {
|
|
2244
2243
|
var r = (
|
|
@@ -2248,24 +2247,24 @@ function Pt(e, t) {
|
|
|
2248
2247
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
2249
2248
|
}
|
|
2250
2249
|
// @__NO_SIDE_EFFECTS__
|
|
2251
|
-
function
|
|
2252
|
-
var r = (t &
|
|
2250
|
+
function tn(e, t) {
|
|
2251
|
+
var r = (t & rs) !== 0, n, i = !e.startsWith("<!>");
|
|
2253
2252
|
return () => {
|
|
2254
2253
|
if (U)
|
|
2255
2254
|
return Pt(L, null), L;
|
|
2256
|
-
n === void 0 && (n =
|
|
2255
|
+
n === void 0 && (n = ha(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
2257
2256
|
/* @__PURE__ */ Bt(n));
|
|
2258
2257
|
var s = (
|
|
2259
2258
|
/** @type {TemplateNode} */
|
|
2260
|
-
r ||
|
|
2259
|
+
r || ni ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
2261
2260
|
);
|
|
2262
2261
|
return Pt(s, s), s;
|
|
2263
2262
|
};
|
|
2264
2263
|
}
|
|
2265
|
-
function
|
|
2264
|
+
function ca() {
|
|
2266
2265
|
if (U)
|
|
2267
2266
|
return Pt(L, null), L;
|
|
2268
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
2267
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = Ce();
|
|
2269
2268
|
return e.append(t, r), Pt(t, r), e;
|
|
2270
2269
|
}
|
|
2271
2270
|
function St(e, t) {
|
|
@@ -2274,7 +2273,7 @@ function St(e, t) {
|
|
|
2274
2273
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
2275
2274
|
w
|
|
2276
2275
|
);
|
|
2277
|
-
(!(r.f & Ye) || r.nodes.end === null) && (r.nodes.end = L),
|
|
2276
|
+
(!(r.f & Ye) || r.nodes.end === null) && (r.nodes.end = L), Gr();
|
|
2278
2277
|
return;
|
|
2279
2278
|
}
|
|
2280
2279
|
e !== null && e.before(
|
|
@@ -2282,49 +2281,49 @@ function St(e, t) {
|
|
|
2282
2281
|
t
|
|
2283
2282
|
);
|
|
2284
2283
|
}
|
|
2285
|
-
const
|
|
2286
|
-
function
|
|
2287
|
-
return
|
|
2284
|
+
const da = ["touchstart", "touchmove"];
|
|
2285
|
+
function pa(e) {
|
|
2286
|
+
return da.includes(e);
|
|
2288
2287
|
}
|
|
2289
|
-
function
|
|
2288
|
+
function br(e, t) {
|
|
2290
2289
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2291
2290
|
r !== /** @type {any} */
|
|
2292
|
-
(e[
|
|
2291
|
+
(e[Ar] ??= e.nodeValue) && (e[Ar] = r, e.nodeValue = `${r}`);
|
|
2293
2292
|
}
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
2293
|
+
function wi(e, t) {
|
|
2294
|
+
return Ti(e, t);
|
|
2296
2295
|
}
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2296
|
+
function va(e, t) {
|
|
2297
|
+
Lr(), t.intro = t.intro ?? !1;
|
|
2299
2298
|
const r = t.target, n = U, i = L;
|
|
2300
2299
|
try {
|
|
2301
|
-
for (var s = /* @__PURE__ */ Bt(r); s && (s.nodeType !==
|
|
2302
|
-
s.data !==
|
|
2303
|
-
s = /* @__PURE__ */
|
|
2300
|
+
for (var s = /* @__PURE__ */ Bt(r); s && (s.nodeType !== ar || /** @type {Comment} */
|
|
2301
|
+
s.data !== Mn); )
|
|
2302
|
+
s = /* @__PURE__ */ Le(s);
|
|
2304
2303
|
if (!s)
|
|
2305
2304
|
throw ut;
|
|
2306
2305
|
it(!0), ge(
|
|
2307
2306
|
/** @type {Comment} */
|
|
2308
2307
|
s
|
|
2309
2308
|
);
|
|
2310
|
-
const
|
|
2309
|
+
const a = Ti(e, { ...t, anchor: s });
|
|
2311
2310
|
return it(!1), /** @type {Exports} */
|
|
2312
|
-
|
|
2313
|
-
} catch (
|
|
2314
|
-
if (
|
|
2315
|
-
`).some((
|
|
2316
|
-
throw
|
|
2317
|
-
return
|
|
2311
|
+
a;
|
|
2312
|
+
} catch (a) {
|
|
2313
|
+
if (a instanceof Error && a.message.split(`
|
|
2314
|
+
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
2315
|
+
throw a;
|
|
2316
|
+
return a !== ut && console.warn("Failed to hydrate: ", a), t.recover === !1 && ys(), Lr(), Zs(r), it(!1), wi(e, t);
|
|
2318
2317
|
} finally {
|
|
2319
2318
|
it(n), ge(i);
|
|
2320
2319
|
}
|
|
2321
2320
|
}
|
|
2322
2321
|
const Ft = /* @__PURE__ */ new Map();
|
|
2323
|
-
function
|
|
2324
|
-
|
|
2325
|
-
var u = void 0, l =
|
|
2326
|
-
var f = r ?? t.appendChild(
|
|
2327
|
-
|
|
2322
|
+
function Ti(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: o }) {
|
|
2323
|
+
Lr();
|
|
2324
|
+
var u = void 0, l = ea(() => {
|
|
2325
|
+
var f = r ?? t.appendChild(Ce());
|
|
2326
|
+
ks(
|
|
2328
2327
|
/** @type {TemplateNode} */
|
|
2329
2328
|
f,
|
|
2330
2329
|
{
|
|
@@ -2332,7 +2331,7 @@ function wi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2332
2331
|
}
|
|
2333
2332
|
},
|
|
2334
2333
|
(d) => {
|
|
2335
|
-
|
|
2334
|
+
jr({});
|
|
2336
2335
|
var p = (
|
|
2337
2336
|
/** @type {ComponentContext} */
|
|
2338
2337
|
ne
|
|
@@ -2341,29 +2340,29 @@ function wi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2341
2340
|
/** @type {TemplateNode} */
|
|
2342
2341
|
d,
|
|
2343
2342
|
null
|
|
2344
|
-
), u = e(d, n) || {}, U && (w.nodes.end = L, L === null || L.nodeType !==
|
|
2345
|
-
L.data !==
|
|
2346
|
-
throw
|
|
2347
|
-
|
|
2343
|
+
), u = e(d, n) || {}, U && (w.nodes.end = L, L === null || L.nodeType !== ar || /** @type {Comment} */
|
|
2344
|
+
L.data !== In))
|
|
2345
|
+
throw or(), ut;
|
|
2346
|
+
Vr();
|
|
2348
2347
|
},
|
|
2349
|
-
|
|
2348
|
+
o
|
|
2350
2349
|
);
|
|
2351
2350
|
var h = /* @__PURE__ */ new Set(), c = (d) => {
|
|
2352
2351
|
for (var p = 0; p < d.length; p++) {
|
|
2353
2352
|
var b = d[p];
|
|
2354
2353
|
if (!h.has(b)) {
|
|
2355
2354
|
h.add(b);
|
|
2356
|
-
var N =
|
|
2355
|
+
var N = pa(b);
|
|
2357
2356
|
for (const k of [t, document]) {
|
|
2358
2357
|
var G = Ft.get(k);
|
|
2359
2358
|
G === void 0 && (G = /* @__PURE__ */ new Map(), Ft.set(k, G));
|
|
2360
2359
|
var W = G.get(b);
|
|
2361
|
-
W === void 0 ? (k.addEventListener(b,
|
|
2360
|
+
W === void 0 ? (k.addEventListener(b, gn, { passive: N }), G.set(b, 1)) : G.set(b, W + 1);
|
|
2362
2361
|
}
|
|
2363
2362
|
}
|
|
2364
2363
|
}
|
|
2365
2364
|
};
|
|
2366
|
-
return c(
|
|
2365
|
+
return c(ss(ua)), mn.add(c), () => {
|
|
2367
2366
|
for (var d of h)
|
|
2368
2367
|
for (const N of [t, document]) {
|
|
2369
2368
|
var p = (
|
|
@@ -2373,19 +2372,19 @@ function wi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2373
2372
|
/** @type {number} */
|
|
2374
2373
|
p.get(d)
|
|
2375
2374
|
);
|
|
2376
|
-
--b == 0 ? (N.removeEventListener(d,
|
|
2375
|
+
--b == 0 ? (N.removeEventListener(d, gn), p.delete(d), p.size === 0 && Ft.delete(N)) : p.set(d, b);
|
|
2377
2376
|
}
|
|
2378
|
-
|
|
2377
|
+
mn.delete(c), f !== r && f.parentNode?.removeChild(f);
|
|
2379
2378
|
};
|
|
2380
2379
|
});
|
|
2381
|
-
return
|
|
2380
|
+
return Pr.set(u, l), u;
|
|
2382
2381
|
}
|
|
2383
|
-
let
|
|
2384
|
-
function
|
|
2385
|
-
const r =
|
|
2386
|
-
return r ? (
|
|
2382
|
+
let Pr = /* @__PURE__ */ new WeakMap();
|
|
2383
|
+
function _a(e, t) {
|
|
2384
|
+
const r = Pr.get(e);
|
|
2385
|
+
return r ? (Pr.delete(e), r(t)) : Promise.resolve();
|
|
2387
2386
|
}
|
|
2388
|
-
class
|
|
2387
|
+
class ma {
|
|
2389
2388
|
/** @type {TemplateNode} */
|
|
2390
2389
|
anchor;
|
|
2391
2390
|
/** @type {Map<Batch, Key>} */
|
|
@@ -2431,35 +2430,35 @@ class go {
|
|
|
2431
2430
|
/**
|
|
2432
2431
|
* @param {Batch} batch
|
|
2433
2432
|
*/
|
|
2434
|
-
#
|
|
2433
|
+
#a = (t) => {
|
|
2435
2434
|
if (this.#e.has(t)) {
|
|
2436
2435
|
var r = (
|
|
2437
2436
|
/** @type {Key} */
|
|
2438
2437
|
this.#e.get(t)
|
|
2439
2438
|
), n = this.#t.get(r);
|
|
2440
2439
|
if (n)
|
|
2441
|
-
|
|
2440
|
+
pn(n), this.#u.delete(r);
|
|
2442
2441
|
else {
|
|
2443
2442
|
var i = this.#r.get(r);
|
|
2444
|
-
i && (
|
|
2443
|
+
i && (pn(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
2445
2444
|
}
|
|
2446
|
-
for (const [s,
|
|
2445
|
+
for (const [s, a] of this.#e) {
|
|
2447
2446
|
if (this.#e.delete(s), s === t)
|
|
2448
2447
|
break;
|
|
2449
|
-
const
|
|
2450
|
-
|
|
2448
|
+
const o = this.#r.get(a);
|
|
2449
|
+
o && (ie(o.effect), this.#r.delete(a));
|
|
2451
2450
|
}
|
|
2452
|
-
for (const [s,
|
|
2451
|
+
for (const [s, a] of this.#t) {
|
|
2453
2452
|
if (s === r || this.#u.has(s)) continue;
|
|
2454
|
-
const
|
|
2453
|
+
const o = () => {
|
|
2455
2454
|
if (Array.from(this.#e.values()).includes(s)) {
|
|
2456
2455
|
var l = document.createDocumentFragment();
|
|
2457
|
-
|
|
2456
|
+
pi(a, l), l.append(Ce()), this.#r.set(s, { effect: a, fragment: l });
|
|
2458
2457
|
} else
|
|
2459
|
-
ie(
|
|
2458
|
+
ie(a);
|
|
2460
2459
|
this.#u.delete(s), this.#t.delete(s);
|
|
2461
2460
|
};
|
|
2462
|
-
this.#i || !n ? (this.#u.add(s), $t(
|
|
2461
|
+
this.#i || !n ? (this.#u.add(s), $t(a, o, !1)) : o();
|
|
2463
2462
|
}
|
|
2464
2463
|
}
|
|
2465
2464
|
};
|
|
@@ -2481,56 +2480,41 @@ class go {
|
|
|
2481
2480
|
var n = (
|
|
2482
2481
|
/** @type {Batch} */
|
|
2483
2482
|
O
|
|
2484
|
-
)
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
effect: Ae(() => r(o)),
|
|
2490
|
-
fragment: s
|
|
2491
|
-
});
|
|
2492
|
-
} else
|
|
2493
|
-
this.#t.set(
|
|
2494
|
-
t,
|
|
2495
|
-
Ae(() => r(this.anchor))
|
|
2496
|
-
);
|
|
2497
|
-
if (this.#e.set(n, t), i) {
|
|
2498
|
-
for (const [a, u] of this.#t)
|
|
2499
|
-
a === t ? n.unskip_effect(u) : n.skip_effect(u);
|
|
2500
|
-
for (const [a, u] of this.#r)
|
|
2501
|
-
a === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
|
|
2502
|
-
n.oncommit(this.#o), n.ondiscard(this.#n);
|
|
2503
|
-
} else
|
|
2504
|
-
U && (this.anchor = L), this.#o(n);
|
|
2483
|
+
);
|
|
2484
|
+
r && !this.#t.has(t) && !this.#r.has(t) && this.#t.set(
|
|
2485
|
+
t,
|
|
2486
|
+
Me(() => r(this.anchor))
|
|
2487
|
+
), this.#e.set(n, t), U && (this.anchor = L), this.#a(n);
|
|
2505
2488
|
}
|
|
2506
2489
|
}
|
|
2507
|
-
function
|
|
2490
|
+
function bn(e, t, r = !1) {
|
|
2508
2491
|
var n;
|
|
2509
|
-
U && (n = L,
|
|
2510
|
-
var i = new
|
|
2511
|
-
function o
|
|
2492
|
+
U && (n = L, Gr());
|
|
2493
|
+
var i = new ma(e), s = r ? ft : 0;
|
|
2494
|
+
function a(o, u) {
|
|
2512
2495
|
if (U) {
|
|
2513
|
-
var l =
|
|
2496
|
+
var l = $s(
|
|
2514
2497
|
/** @type {TemplateNode} */
|
|
2515
2498
|
n
|
|
2516
2499
|
);
|
|
2517
|
-
if (
|
|
2518
|
-
var f =
|
|
2519
|
-
ge(f), i.anchor = f, it(!1), i.ensure(
|
|
2500
|
+
if (o !== parseInt(l.substring(1))) {
|
|
2501
|
+
var f = Fn();
|
|
2502
|
+
ge(f), i.anchor = f, it(!1), i.ensure(o, u), it(!0);
|
|
2520
2503
|
return;
|
|
2521
2504
|
}
|
|
2522
2505
|
}
|
|
2523
|
-
i.ensure(
|
|
2506
|
+
i.ensure(o, u);
|
|
2524
2507
|
}
|
|
2525
|
-
|
|
2526
|
-
var
|
|
2508
|
+
li(() => {
|
|
2509
|
+
var o = !1;
|
|
2527
2510
|
t((u, l = 0) => {
|
|
2528
|
-
|
|
2529
|
-
}),
|
|
2511
|
+
o = !0, a(l, u);
|
|
2512
|
+
}), o || a(-1, null);
|
|
2530
2513
|
}, s);
|
|
2531
2514
|
}
|
|
2532
|
-
function
|
|
2533
|
-
|
|
2515
|
+
function ga(e, t) {
|
|
2516
|
+
ta(() => {
|
|
2517
|
+
e = w?.parent?.nodes?.start ?? e;
|
|
2534
2518
|
var r = e.getRootNode(), n = (
|
|
2535
2519
|
/** @type {ShadowRoot} */
|
|
2536
2520
|
r.host ? (
|
|
@@ -2543,7 +2527,7 @@ function bo(e, t) {
|
|
|
2543
2527
|
)
|
|
2544
2528
|
);
|
|
2545
2529
|
if (!n.querySelector("#" + t.hash)) {
|
|
2546
|
-
const i =
|
|
2530
|
+
const i = Jr("style");
|
|
2547
2531
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2548
2532
|
}
|
|
2549
2533
|
});
|
|
@@ -2552,19 +2536,19 @@ function be(e, t, r, n) {
|
|
|
2552
2536
|
var i = (
|
|
2553
2537
|
/** @type {V} */
|
|
2554
2538
|
n
|
|
2555
|
-
), s = !0,
|
|
2556
|
-
n), i),
|
|
2557
|
-
|
|
2558
|
-
e[t],
|
|
2539
|
+
), s = !0, a = () => (s && (s = !1, i = /** @type {V} */
|
|
2540
|
+
n), i), o;
|
|
2541
|
+
o = /** @type {V} */
|
|
2542
|
+
e[t], o === void 0 && n !== void 0 && (o = a());
|
|
2559
2543
|
var u;
|
|
2560
2544
|
u = () => {
|
|
2561
2545
|
var c = (
|
|
2562
2546
|
/** @type {V} */
|
|
2563
2547
|
e[t]
|
|
2564
2548
|
);
|
|
2565
|
-
return c === void 0 ?
|
|
2549
|
+
return c === void 0 ? a() : (s = !0, c);
|
|
2566
2550
|
};
|
|
2567
|
-
var l = !1, f = /* @__PURE__ */
|
|
2551
|
+
var l = !1, f = /* @__PURE__ */ Yr(() => (l = !1, u())), h = (
|
|
2568
2552
|
/** @type {Effect} */
|
|
2569
2553
|
w
|
|
2570
2554
|
);
|
|
@@ -2575,14 +2559,14 @@ function be(e, t, r, n) {
|
|
|
2575
2559
|
const p = d ? A(f) : c;
|
|
2576
2560
|
return Y(f, p), l = !0, i !== void 0 && (i = p), c;
|
|
2577
2561
|
}
|
|
2578
|
-
return
|
|
2562
|
+
return Be && l || h.f & he ? f.v : A(f);
|
|
2579
2563
|
}
|
|
2580
2564
|
);
|
|
2581
2565
|
}
|
|
2582
|
-
function
|
|
2583
|
-
return new
|
|
2566
|
+
function ba(e) {
|
|
2567
|
+
return new ya(e);
|
|
2584
2568
|
}
|
|
2585
|
-
class
|
|
2569
|
+
class ya {
|
|
2586
2570
|
/** @type {any} */
|
|
2587
2571
|
#e;
|
|
2588
2572
|
/** @type {Record<string, any>} */
|
|
@@ -2593,25 +2577,25 @@ class Eo {
|
|
|
2593
2577
|
* }} options
|
|
2594
2578
|
*/
|
|
2595
2579
|
constructor(t) {
|
|
2596
|
-
var r = /* @__PURE__ */ new Map(), n = (s,
|
|
2597
|
-
var
|
|
2598
|
-
return r.set(s,
|
|
2580
|
+
var r = /* @__PURE__ */ new Map(), n = (s, a) => {
|
|
2581
|
+
var o = /* @__PURE__ */ ti(a, !1, !1);
|
|
2582
|
+
return r.set(s, o), o;
|
|
2599
2583
|
};
|
|
2600
2584
|
const i = new Proxy(
|
|
2601
2585
|
{ ...t.props || {}, $$events: {} },
|
|
2602
2586
|
{
|
|
2603
|
-
get(s,
|
|
2604
|
-
return A(r.get(
|
|
2587
|
+
get(s, a) {
|
|
2588
|
+
return A(r.get(a) ?? n(a, Reflect.get(s, a)));
|
|
2605
2589
|
},
|
|
2606
|
-
has(s,
|
|
2607
|
-
return
|
|
2590
|
+
has(s, a) {
|
|
2591
|
+
return a === hs ? !0 : (A(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2608
2592
|
},
|
|
2609
|
-
set(s,
|
|
2610
|
-
return Y(r.get(
|
|
2593
|
+
set(s, a, o) {
|
|
2594
|
+
return Y(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
|
|
2611
2595
|
}
|
|
2612
2596
|
}
|
|
2613
2597
|
);
|
|
2614
|
-
this.#t = (t.hydrate ?
|
|
2598
|
+
this.#t = (t.hydrate ? va : wi)(t.component, {
|
|
2615
2599
|
target: t.target,
|
|
2616
2600
|
anchor: t.anchor,
|
|
2617
2601
|
props: i,
|
|
@@ -2626,8 +2610,8 @@ class Eo {
|
|
|
2626
2610
|
return this.#t[s];
|
|
2627
2611
|
},
|
|
2628
2612
|
/** @param {any} value */
|
|
2629
|
-
set(
|
|
2630
|
-
this.#t[s] =
|
|
2613
|
+
set(a) {
|
|
2614
|
+
this.#t[s] = a;
|
|
2631
2615
|
},
|
|
2632
2616
|
enumerable: !0
|
|
2633
2617
|
});
|
|
@@ -2635,7 +2619,7 @@ class Eo {
|
|
|
2635
2619
|
(s) => {
|
|
2636
2620
|
Object.assign(i, s);
|
|
2637
2621
|
}, this.#t.$destroy = () => {
|
|
2638
|
-
|
|
2622
|
+
_a(this.#t);
|
|
2639
2623
|
};
|
|
2640
2624
|
}
|
|
2641
2625
|
/** @param {Record<string, any>} props */
|
|
@@ -2661,8 +2645,8 @@ class Eo {
|
|
|
2661
2645
|
this.#t.$destroy();
|
|
2662
2646
|
}
|
|
2663
2647
|
}
|
|
2664
|
-
let
|
|
2665
|
-
typeof HTMLElement == "function" && (
|
|
2648
|
+
let Si;
|
|
2649
|
+
typeof HTMLElement == "function" && (Si = class extends HTMLElement {
|
|
2666
2650
|
/** The Svelte component constructor */
|
|
2667
2651
|
$$ctor;
|
|
2668
2652
|
/** Slots */
|
|
@@ -2720,13 +2704,13 @@ typeof HTMLElement == "function" && (Ti = class extends HTMLElement {
|
|
|
2720
2704
|
if (this.$$cn = !0, !this.$$c) {
|
|
2721
2705
|
let e = function(n) {
|
|
2722
2706
|
return (i) => {
|
|
2723
|
-
const s =
|
|
2707
|
+
const s = Jr("slot");
|
|
2724
2708
|
n !== "default" && (s.name = n), St(i, s);
|
|
2725
2709
|
};
|
|
2726
2710
|
};
|
|
2727
2711
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2728
2712
|
return;
|
|
2729
|
-
const t = {}, r =
|
|
2713
|
+
const t = {}, r = Ea(this);
|
|
2730
2714
|
for (const n of this.$$s)
|
|
2731
2715
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2732
2716
|
for (const n of this.attributes) {
|
|
@@ -2735,7 +2719,7 @@ typeof HTMLElement == "function" && (Ti = class extends HTMLElement {
|
|
|
2735
2719
|
}
|
|
2736
2720
|
for (const n in this.$$p_d)
|
|
2737
2721
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2738
|
-
this.$$c =
|
|
2722
|
+
this.$$c = ba({
|
|
2739
2723
|
component: this.$$ctor,
|
|
2740
2724
|
target: this.$$shadowRoot || this,
|
|
2741
2725
|
props: {
|
|
@@ -2744,7 +2728,7 @@ typeof HTMLElement == "function" && (Ti = class extends HTMLElement {
|
|
|
2744
2728
|
$$host: this
|
|
2745
2729
|
}
|
|
2746
2730
|
}), this.$$me = Ks(() => {
|
|
2747
|
-
|
|
2731
|
+
ui(() => {
|
|
2748
2732
|
this.$$r = !0;
|
|
2749
2733
|
for (const n of zt(this.$$c)) {
|
|
2750
2734
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -2821,7 +2805,7 @@ function Vt(e, t, r, n) {
|
|
|
2821
2805
|
return t;
|
|
2822
2806
|
}
|
|
2823
2807
|
}
|
|
2824
|
-
function
|
|
2808
|
+
function Ea(e) {
|
|
2825
2809
|
const t = {};
|
|
2826
2810
|
return e.childNodes.forEach((r) => {
|
|
2827
2811
|
t[
|
|
@@ -2830,78 +2814,78 @@ function xo(e) {
|
|
|
2830
2814
|
] = !0;
|
|
2831
2815
|
}), t;
|
|
2832
2816
|
}
|
|
2833
|
-
function
|
|
2834
|
-
let
|
|
2817
|
+
function Hi(e, t, r, n, i, s) {
|
|
2818
|
+
let a = class extends Si {
|
|
2835
2819
|
constructor() {
|
|
2836
2820
|
super(e, r, i), this.$$p_d = t;
|
|
2837
2821
|
}
|
|
2838
2822
|
static get observedAttributes() {
|
|
2839
2823
|
return zt(t).map(
|
|
2840
|
-
(
|
|
2824
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
2841
2825
|
);
|
|
2842
2826
|
}
|
|
2843
2827
|
};
|
|
2844
|
-
return zt(t).forEach((
|
|
2845
|
-
Ot(
|
|
2828
|
+
return zt(t).forEach((o) => {
|
|
2829
|
+
Ot(a.prototype, o, {
|
|
2846
2830
|
get() {
|
|
2847
|
-
return this.$$c &&
|
|
2831
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2848
2832
|
},
|
|
2849
2833
|
set(u) {
|
|
2850
|
-
u = Vt(
|
|
2834
|
+
u = Vt(o, u, t), this.$$d[o] = u;
|
|
2851
2835
|
var l = this.$$c;
|
|
2852
2836
|
if (l) {
|
|
2853
|
-
var f =
|
|
2854
|
-
f ? l[
|
|
2837
|
+
var f = at(l, o)?.get;
|
|
2838
|
+
f ? l[o] = u : l.$set({ [o]: u });
|
|
2855
2839
|
}
|
|
2856
2840
|
}
|
|
2857
2841
|
});
|
|
2858
|
-
}), n.forEach((
|
|
2859
|
-
Ot(
|
|
2842
|
+
}), n.forEach((o) => {
|
|
2843
|
+
Ot(a.prototype, o, {
|
|
2860
2844
|
get() {
|
|
2861
|
-
return this.$$c?.[
|
|
2845
|
+
return this.$$c?.[o];
|
|
2862
2846
|
}
|
|
2863
2847
|
});
|
|
2864
2848
|
}), e.element = /** @type {any} */
|
|
2865
|
-
|
|
2849
|
+
a, a;
|
|
2866
2850
|
}
|
|
2867
|
-
class
|
|
2851
|
+
class xa extends Error {
|
|
2868
2852
|
constructor(t, r) {
|
|
2869
2853
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2870
2854
|
}
|
|
2871
2855
|
}
|
|
2872
|
-
const
|
|
2856
|
+
const wa = async (e) => {
|
|
2873
2857
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2874
2858
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2875
2859
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2876
2860
|
if (!i.success)
|
|
2877
|
-
throw new
|
|
2861
|
+
throw new xa(i.errorCode, i.errorMessage);
|
|
2878
2862
|
return i.data;
|
|
2879
|
-
},
|
|
2863
|
+
}, Ta = async (e) => {
|
|
2880
2864
|
const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
|
|
2881
2865
|
return (await (await fetch(t.href, { method: "GET" })).json()).data;
|
|
2882
|
-
}, er = "DD/MM/YYYY HH:mm:ss",
|
|
2866
|
+
}, er = "DD/MM/YYYY HH:mm:ss", Sa = (e, t) => {
|
|
2883
2867
|
const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
|
|
2884
2868
|
let n = 0;
|
|
2885
2869
|
return r.forEach((i, s) => {
|
|
2886
2870
|
t > i.firstEntryPoints && (n = s);
|
|
2887
2871
|
}), n;
|
|
2888
2872
|
};
|
|
2889
|
-
var
|
|
2890
|
-
function
|
|
2873
|
+
var Ha = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2874
|
+
function Ai(e) {
|
|
2891
2875
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2892
2876
|
}
|
|
2893
|
-
var
|
|
2877
|
+
var $i = { exports: {} };
|
|
2894
2878
|
(function(e, t) {
|
|
2895
2879
|
(function(r, n) {
|
|
2896
2880
|
e.exports = n();
|
|
2897
|
-
})(
|
|
2898
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond",
|
|
2881
|
+
})(Ha, function() {
|
|
2882
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, W = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
|
|
2899
2883
|
var m = ["th", "st", "nd", "rd"], v = y % 100;
|
|
2900
2884
|
return "[" + y + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
|
|
2901
2885
|
} }, k = function(y, m, v) {
|
|
2902
2886
|
var g = String(y);
|
|
2903
2887
|
return !g || g.length >= m ? y : "" + Array(m + 1 - g.length).join(v) + y;
|
|
2904
|
-
},
|
|
2888
|
+
}, He = { s: k, z: function(y) {
|
|
2905
2889
|
var m = -y.utcOffset(), v = Math.abs(m), g = Math.floor(v / 60), _ = v % 60;
|
|
2906
2890
|
return (m <= 0 ? "+" : "-") + k(g, 2, "0") + ":" + k(_, 2, "0");
|
|
2907
2891
|
}, m: function y(m, v) {
|
|
@@ -2911,14 +2895,14 @@ var Ai = { exports: {} };
|
|
|
2911
2895
|
}, a: function(y) {
|
|
2912
2896
|
return y < 0 ? Math.ceil(y) || 0 : Math.floor(y);
|
|
2913
2897
|
}, p: function(y) {
|
|
2914
|
-
return { M: h, y: d, w: f, d: l, D: p, h: u, m:
|
|
2898
|
+
return { M: h, y: d, w: f, d: l, D: p, h: u, m: o, s: a, ms: s, Q: c }[y] || String(y || "").toLowerCase().replace(/s$/, "");
|
|
2915
2899
|
}, u: function(y) {
|
|
2916
2900
|
return y === void 0;
|
|
2917
2901
|
} }, Z = "en", Q = {};
|
|
2918
2902
|
Q[Z] = W;
|
|
2919
2903
|
var B = "$isDayjsObject", K = function(y) {
|
|
2920
2904
|
return y instanceof Ze || !(!y || !y[B]);
|
|
2921
|
-
},
|
|
2905
|
+
}, De = function y(m, v, g) {
|
|
2922
2906
|
var _;
|
|
2923
2907
|
if (!m) return Z;
|
|
2924
2908
|
if (typeof m == "string") {
|
|
@@ -2935,13 +2919,13 @@ var Ai = { exports: {} };
|
|
|
2935
2919
|
if (K(y)) return y.clone();
|
|
2936
2920
|
var v = typeof m == "object" ? m : {};
|
|
2937
2921
|
return v.date = y, v.args = arguments, new Ze(v);
|
|
2938
|
-
}, $ =
|
|
2939
|
-
$.l =
|
|
2922
|
+
}, $ = He;
|
|
2923
|
+
$.l = De, $.i = K, $.w = function(y, m) {
|
|
2940
2924
|
return C(y, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
|
|
2941
2925
|
};
|
|
2942
2926
|
var Ze = function() {
|
|
2943
2927
|
function y(v) {
|
|
2944
|
-
this.$L =
|
|
2928
|
+
this.$L = De(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[B] = !0;
|
|
2945
2929
|
}
|
|
2946
2930
|
var m = y.prototype;
|
|
2947
2931
|
return m.parse = function(v) {
|
|
@@ -2980,28 +2964,28 @@ var Ai = { exports: {} };
|
|
|
2980
2964
|
}, m.valueOf = function() {
|
|
2981
2965
|
return this.$d.getTime();
|
|
2982
2966
|
}, m.startOf = function(v, g) {
|
|
2983
|
-
var _ = this, E = !!$.u(g) || g, x = $.p(v), P = function(
|
|
2984
|
-
var
|
|
2985
|
-
return E ?
|
|
2986
|
-
}, D = function(
|
|
2987
|
-
return $.w(_.toDate()[
|
|
2988
|
-
}, X = this.$W, q = this.$M,
|
|
2967
|
+
var _ = this, E = !!$.u(g) || g, x = $.p(v), P = function(Fe, ee) {
|
|
2968
|
+
var Pe = $.w(_.$u ? Date.UTC(_.$y, ee, Fe) : new Date(_.$y, ee, Fe), _);
|
|
2969
|
+
return E ? Pe : Pe.endOf(l);
|
|
2970
|
+
}, D = function(Fe, ee) {
|
|
2971
|
+
return $.w(_.toDate()[Fe].apply(_.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), _);
|
|
2972
|
+
}, X = this.$W, q = this.$M, ae = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
|
|
2989
2973
|
switch (x) {
|
|
2990
2974
|
case d:
|
|
2991
2975
|
return E ? P(1, 0) : P(31, 11);
|
|
2992
2976
|
case h:
|
|
2993
2977
|
return E ? P(1, q) : P(0, q + 1);
|
|
2994
2978
|
case f:
|
|
2995
|
-
var
|
|
2996
|
-
return P(E ?
|
|
2979
|
+
var ke = this.$locale().weekStart || 0, yt = (X < ke ? X + 7 : X) - ke;
|
|
2980
|
+
return P(E ? ae - yt : ae + (6 - yt), q);
|
|
2997
2981
|
case l:
|
|
2998
2982
|
case p:
|
|
2999
2983
|
return D(Qe + "Hours", 0);
|
|
3000
2984
|
case u:
|
|
3001
2985
|
return D(Qe + "Minutes", 1);
|
|
3002
|
-
case a:
|
|
3003
|
-
return D(Qe + "Seconds", 2);
|
|
3004
2986
|
case o:
|
|
2987
|
+
return D(Qe + "Seconds", 2);
|
|
2988
|
+
case a:
|
|
3005
2989
|
return D(Qe + "Milliseconds", 3);
|
|
3006
2990
|
default:
|
|
3007
2991
|
return this.clone();
|
|
@@ -3009,7 +2993,7 @@ var Ai = { exports: {} };
|
|
|
3009
2993
|
}, m.endOf = function(v) {
|
|
3010
2994
|
return this.startOf(v, !1);
|
|
3011
2995
|
}, m.$set = function(v, g) {
|
|
3012
|
-
var _, E = $.p(v), x = "set" + (this.$u ? "UTC" : ""), P = (_ = {}, _[l] = x + "Date", _[p] = x + "Date", _[h] = x + "Month", _[d] = x + "FullYear", _[u] = x + "Hours", _[
|
|
2996
|
+
var _, E = $.p(v), x = "set" + (this.$u ? "UTC" : ""), P = (_ = {}, _[l] = x + "Date", _[p] = x + "Date", _[h] = x + "Month", _[d] = x + "FullYear", _[u] = x + "Hours", _[o] = x + "Minutes", _[a] = x + "Seconds", _[s] = x + "Milliseconds", _)[E], D = E === l ? this.$D + (g - this.$W) : g;
|
|
3013
2997
|
if (E === h || E === d) {
|
|
3014
2998
|
var X = this.clone().set(p, 1);
|
|
3015
2999
|
X.$d[P](D), X.init(), this.$d = X.set(p, Math.min(this.$D, X.daysInMonth())).$d;
|
|
@@ -3023,30 +3007,30 @@ var Ai = { exports: {} };
|
|
|
3023
3007
|
var _, E = this;
|
|
3024
3008
|
v = Number(v);
|
|
3025
3009
|
var x = $.p(g), P = function(q) {
|
|
3026
|
-
var
|
|
3027
|
-
return $.w(
|
|
3010
|
+
var ae = C(E);
|
|
3011
|
+
return $.w(ae.date(ae.date() + Math.round(q * v)), E);
|
|
3028
3012
|
};
|
|
3029
3013
|
if (x === h) return this.set(h, this.$M + v);
|
|
3030
3014
|
if (x === d) return this.set(d, this.$y + v);
|
|
3031
3015
|
if (x === l) return P(1);
|
|
3032
3016
|
if (x === f) return P(7);
|
|
3033
|
-
var D = (_ = {}, _[
|
|
3017
|
+
var D = (_ = {}, _[o] = n, _[u] = i, _[a] = r, _)[x] || 1, X = this.$d.getTime() + v * D;
|
|
3034
3018
|
return $.w(X, this);
|
|
3035
3019
|
}, m.subtract = function(v, g) {
|
|
3036
3020
|
return this.add(-1 * v, g);
|
|
3037
3021
|
}, m.format = function(v) {
|
|
3038
3022
|
var g = this, _ = this.$locale();
|
|
3039
3023
|
if (!this.isValid()) return _.invalidDate || b;
|
|
3040
|
-
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = $.z(this), P = this.$H, D = this.$m, X = this.$M, q = _.weekdays,
|
|
3041
|
-
return ee && (ee[
|
|
3024
|
+
var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = $.z(this), P = this.$H, D = this.$m, X = this.$M, q = _.weekdays, ae = _.months, Qe = _.meridiem, ke = function(ee, Pe, Et, Dt) {
|
|
3025
|
+
return ee && (ee[Pe] || ee(g, E)) || Et[Pe].slice(0, Dt);
|
|
3042
3026
|
}, yt = function(ee) {
|
|
3043
3027
|
return $.s(P % 12 || 12, ee, "0");
|
|
3044
|
-
},
|
|
3028
|
+
}, Fe = Qe || function(ee, Pe, Et) {
|
|
3045
3029
|
var Dt = ee < 12 ? "AM" : "PM";
|
|
3046
3030
|
return Et ? Dt.toLowerCase() : Dt;
|
|
3047
3031
|
};
|
|
3048
|
-
return E.replace(G, function(ee,
|
|
3049
|
-
return
|
|
3032
|
+
return E.replace(G, function(ee, Pe) {
|
|
3033
|
+
return Pe || function(Et) {
|
|
3050
3034
|
switch (Et) {
|
|
3051
3035
|
case "YY":
|
|
3052
3036
|
return String(g.$y).slice(-2);
|
|
@@ -3057,9 +3041,9 @@ var Ai = { exports: {} };
|
|
|
3057
3041
|
case "MM":
|
|
3058
3042
|
return $.s(X + 1, 2, "0");
|
|
3059
3043
|
case "MMM":
|
|
3060
|
-
return
|
|
3044
|
+
return ke(_.monthsShort, X, ae, 3);
|
|
3061
3045
|
case "MMMM":
|
|
3062
|
-
return
|
|
3046
|
+
return ke(ae, X);
|
|
3063
3047
|
case "D":
|
|
3064
3048
|
return g.$D;
|
|
3065
3049
|
case "DD":
|
|
@@ -3067,9 +3051,9 @@ var Ai = { exports: {} };
|
|
|
3067
3051
|
case "d":
|
|
3068
3052
|
return String(g.$W);
|
|
3069
3053
|
case "dd":
|
|
3070
|
-
return
|
|
3054
|
+
return ke(_.weekdaysMin, g.$W, q, 2);
|
|
3071
3055
|
case "ddd":
|
|
3072
|
-
return
|
|
3056
|
+
return ke(_.weekdaysShort, g.$W, q, 3);
|
|
3073
3057
|
case "dddd":
|
|
3074
3058
|
return q[g.$W];
|
|
3075
3059
|
case "H":
|
|
@@ -3081,9 +3065,9 @@ var Ai = { exports: {} };
|
|
|
3081
3065
|
case "hh":
|
|
3082
3066
|
return yt(2);
|
|
3083
3067
|
case "a":
|
|
3084
|
-
return
|
|
3068
|
+
return Fe(P, D, !0);
|
|
3085
3069
|
case "A":
|
|
3086
|
-
return
|
|
3070
|
+
return Fe(P, D, !1);
|
|
3087
3071
|
case "m":
|
|
3088
3072
|
return String(D);
|
|
3089
3073
|
case "mm":
|
|
@@ -3103,18 +3087,18 @@ var Ai = { exports: {} };
|
|
|
3103
3087
|
}, m.utcOffset = function() {
|
|
3104
3088
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3105
3089
|
}, m.diff = function(v, g, _) {
|
|
3106
|
-
var E, x = this, P = $.p(g), D = C(v), X = (D.utcOffset() - this.utcOffset()) * n, q = this - D,
|
|
3090
|
+
var E, x = this, P = $.p(g), D = C(v), X = (D.utcOffset() - this.utcOffset()) * n, q = this - D, ae = function() {
|
|
3107
3091
|
return $.m(x, D);
|
|
3108
3092
|
};
|
|
3109
3093
|
switch (P) {
|
|
3110
3094
|
case d:
|
|
3111
|
-
E =
|
|
3095
|
+
E = ae() / 12;
|
|
3112
3096
|
break;
|
|
3113
3097
|
case h:
|
|
3114
|
-
E =
|
|
3098
|
+
E = ae();
|
|
3115
3099
|
break;
|
|
3116
3100
|
case c:
|
|
3117
|
-
E =
|
|
3101
|
+
E = ae() / 3;
|
|
3118
3102
|
break;
|
|
3119
3103
|
case f:
|
|
3120
3104
|
E = (q - X) / 6048e5;
|
|
@@ -3125,10 +3109,10 @@ var Ai = { exports: {} };
|
|
|
3125
3109
|
case u:
|
|
3126
3110
|
E = q / i;
|
|
3127
3111
|
break;
|
|
3128
|
-
case
|
|
3112
|
+
case o:
|
|
3129
3113
|
E = q / n;
|
|
3130
3114
|
break;
|
|
3131
|
-
case
|
|
3115
|
+
case a:
|
|
3132
3116
|
E = q / r;
|
|
3133
3117
|
break;
|
|
3134
3118
|
default:
|
|
@@ -3141,7 +3125,7 @@ var Ai = { exports: {} };
|
|
|
3141
3125
|
return Q[this.$L];
|
|
3142
3126
|
}, m.locale = function(v, g) {
|
|
3143
3127
|
if (!v) return this.$L;
|
|
3144
|
-
var _ = this.clone(), E =
|
|
3128
|
+
var _ = this.clone(), E = De(v, g, !0);
|
|
3145
3129
|
return E && (_.$L = E), _;
|
|
3146
3130
|
}, m.clone = function() {
|
|
3147
3131
|
return $.w(this.$d, this);
|
|
@@ -3155,83 +3139,83 @@ var Ai = { exports: {} };
|
|
|
3155
3139
|
return this.$d.toUTCString();
|
|
3156
3140
|
}, y;
|
|
3157
3141
|
}(), Je = Ze.prototype;
|
|
3158
|
-
return C.prototype = Je, [["$ms", s], ["$s",
|
|
3142
|
+
return C.prototype = Je, [["$ms", s], ["$s", a], ["$m", o], ["$H", u], ["$W", l], ["$M", h], ["$y", d], ["$D", p]].forEach(function(y) {
|
|
3159
3143
|
Je[y[1]] = function(m) {
|
|
3160
3144
|
return this.$g(m, y[0], y[1]);
|
|
3161
3145
|
};
|
|
3162
3146
|
}), C.extend = function(y, m) {
|
|
3163
3147
|
return y.$i || (y(m, Ze, C), y.$i = !0), C;
|
|
3164
|
-
}, C.locale =
|
|
3148
|
+
}, C.locale = De, C.isDayjs = K, C.unix = function(y) {
|
|
3165
3149
|
return C(1e3 * y);
|
|
3166
3150
|
}, C.en = Q[Z], C.Ls = Q, C.p = {}, C;
|
|
3167
3151
|
});
|
|
3168
|
-
})(
|
|
3169
|
-
var
|
|
3170
|
-
const
|
|
3171
|
-
const r =
|
|
3152
|
+
})($i);
|
|
3153
|
+
var Aa = $i.exports;
|
|
3154
|
+
const $a = /* @__PURE__ */ Ai(Aa), Oa = (e, t = "DD/MM/YYYY") => {
|
|
3155
|
+
const r = $a(e);
|
|
3172
3156
|
return r.isValid() ? r.format(t) : "";
|
|
3173
3157
|
};
|
|
3174
|
-
var
|
|
3175
|
-
return
|
|
3158
|
+
var Ba = function(t) {
|
|
3159
|
+
return La(t) && !Pa(t);
|
|
3176
3160
|
};
|
|
3177
|
-
function
|
|
3161
|
+
function La(e) {
|
|
3178
3162
|
return !!e && typeof e == "object";
|
|
3179
3163
|
}
|
|
3180
|
-
function
|
|
3164
|
+
function Pa(e) {
|
|
3181
3165
|
var t = Object.prototype.toString.call(e);
|
|
3182
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
3166
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ia(e);
|
|
3183
3167
|
}
|
|
3184
|
-
var
|
|
3185
|
-
function
|
|
3186
|
-
return e.$$typeof ===
|
|
3168
|
+
var Ma = typeof Symbol == "function" && Symbol.for, Na = Ma ? Symbol.for("react.element") : 60103;
|
|
3169
|
+
function Ia(e) {
|
|
3170
|
+
return e.$$typeof === Na;
|
|
3187
3171
|
}
|
|
3188
|
-
function
|
|
3172
|
+
function Ra(e) {
|
|
3189
3173
|
return Array.isArray(e) ? [] : {};
|
|
3190
3174
|
}
|
|
3191
3175
|
function Mt(e, t) {
|
|
3192
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? dt(
|
|
3176
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? dt(Ra(e), e, t) : e;
|
|
3193
3177
|
}
|
|
3194
|
-
function
|
|
3178
|
+
function Ca(e, t, r) {
|
|
3195
3179
|
return e.concat(t).map(function(n) {
|
|
3196
3180
|
return Mt(n, r);
|
|
3197
3181
|
});
|
|
3198
3182
|
}
|
|
3199
|
-
function
|
|
3183
|
+
function Da(e, t) {
|
|
3200
3184
|
if (!t.customMerge)
|
|
3201
3185
|
return dt;
|
|
3202
3186
|
var r = t.customMerge(e);
|
|
3203
3187
|
return typeof r == "function" ? r : dt;
|
|
3204
3188
|
}
|
|
3205
|
-
function
|
|
3189
|
+
function ka(e) {
|
|
3206
3190
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3207
3191
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3208
3192
|
}) : [];
|
|
3209
3193
|
}
|
|
3210
|
-
function
|
|
3211
|
-
return Object.keys(e).concat(
|
|
3194
|
+
function yn(e) {
|
|
3195
|
+
return Object.keys(e).concat(ka(e));
|
|
3212
3196
|
}
|
|
3213
|
-
function
|
|
3197
|
+
function Oi(e, t) {
|
|
3214
3198
|
try {
|
|
3215
3199
|
return t in e;
|
|
3216
3200
|
} catch {
|
|
3217
3201
|
return !1;
|
|
3218
3202
|
}
|
|
3219
3203
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3204
|
+
function Fa(e, t) {
|
|
3205
|
+
return Oi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
3222
3206
|
}
|
|
3223
|
-
function
|
|
3207
|
+
function Ua(e, t, r) {
|
|
3224
3208
|
var n = {};
|
|
3225
|
-
return r.isMergeableObject(e) &&
|
|
3209
|
+
return r.isMergeableObject(e) && yn(e).forEach(function(i) {
|
|
3226
3210
|
n[i] = Mt(e[i], r);
|
|
3227
|
-
}),
|
|
3228
|
-
|
|
3211
|
+
}), yn(t).forEach(function(i) {
|
|
3212
|
+
Fa(e, i) || (Oi(e, i) && r.isMergeableObject(t[i]) ? n[i] = Da(i, r)(e[i], t[i], r) : n[i] = Mt(t[i], r));
|
|
3229
3213
|
}), n;
|
|
3230
3214
|
}
|
|
3231
3215
|
function dt(e, t, r) {
|
|
3232
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
3216
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ca, r.isMergeableObject = r.isMergeableObject || Ba, r.cloneUnlessOtherwiseSpecified = Mt;
|
|
3233
3217
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3234
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
3218
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ua(e, t, r) : Mt(t, r);
|
|
3235
3219
|
}
|
|
3236
3220
|
dt.all = function(t, r) {
|
|
3237
3221
|
if (!Array.isArray(t))
|
|
@@ -3240,19 +3224,19 @@ dt.all = function(t, r) {
|
|
|
3240
3224
|
return dt(n, i, r);
|
|
3241
3225
|
}, {});
|
|
3242
3226
|
};
|
|
3243
|
-
var
|
|
3244
|
-
const
|
|
3245
|
-
var
|
|
3246
|
-
return
|
|
3227
|
+
var Ga = dt, ja = Ga;
|
|
3228
|
+
const Va = /* @__PURE__ */ Ai(ja);
|
|
3229
|
+
var Mr = function(e, t) {
|
|
3230
|
+
return Mr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3247
3231
|
r.__proto__ = n;
|
|
3248
3232
|
} || function(r, n) {
|
|
3249
3233
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3250
|
-
},
|
|
3234
|
+
}, Mr(e, t);
|
|
3251
3235
|
};
|
|
3252
3236
|
function fr(e, t) {
|
|
3253
3237
|
if (typeof t != "function" && t !== null)
|
|
3254
3238
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3255
|
-
|
|
3239
|
+
Mr(e, t);
|
|
3256
3240
|
function r() {
|
|
3257
3241
|
this.constructor = e;
|
|
3258
3242
|
}
|
|
@@ -3267,7 +3251,7 @@ var ye = function() {
|
|
|
3267
3251
|
return t;
|
|
3268
3252
|
}, ye.apply(this, arguments);
|
|
3269
3253
|
};
|
|
3270
|
-
function
|
|
3254
|
+
function Wa(e, t) {
|
|
3271
3255
|
var r = {};
|
|
3272
3256
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3273
3257
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3275,42 +3259,42 @@ function Xo(e, t) {
|
|
|
3275
3259
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
3276
3260
|
return r;
|
|
3277
3261
|
}
|
|
3278
|
-
function
|
|
3262
|
+
function yr(e, t, r) {
|
|
3279
3263
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
3280
3264
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
3281
3265
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3282
3266
|
}
|
|
3283
|
-
function
|
|
3284
|
-
var r = t && t.cache ? t.cache :
|
|
3267
|
+
function Er(e, t) {
|
|
3268
|
+
var r = t && t.cache ? t.cache : Qa, n = t && t.serializer ? t.serializer : Za, i = t && t.strategy ? t.strategy : za;
|
|
3285
3269
|
return i(e, {
|
|
3286
3270
|
cache: r,
|
|
3287
3271
|
serializer: n
|
|
3288
3272
|
});
|
|
3289
3273
|
}
|
|
3290
|
-
function
|
|
3274
|
+
function Xa(e) {
|
|
3291
3275
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
3292
3276
|
}
|
|
3293
|
-
function
|
|
3294
|
-
var i =
|
|
3277
|
+
function Ya(e, t, r, n) {
|
|
3278
|
+
var i = Xa(n) ? n : r(n), s = t.get(i);
|
|
3295
3279
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
3296
3280
|
}
|
|
3297
|
-
function
|
|
3281
|
+
function Bi(e, t, r) {
|
|
3298
3282
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
3299
3283
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
3300
3284
|
}
|
|
3301
|
-
function
|
|
3285
|
+
function Li(e, t, r, n, i) {
|
|
3302
3286
|
return r.bind(t, e, n, i);
|
|
3303
3287
|
}
|
|
3304
|
-
function
|
|
3305
|
-
var r = e.length === 1 ?
|
|
3306
|
-
return
|
|
3288
|
+
function za(e, t) {
|
|
3289
|
+
var r = e.length === 1 ? Ya : Bi;
|
|
3290
|
+
return Li(e, this, r, t.cache.create(), t.serializer);
|
|
3307
3291
|
}
|
|
3308
|
-
function
|
|
3309
|
-
return
|
|
3292
|
+
function qa(e, t) {
|
|
3293
|
+
return Li(e, this, Bi, t.cache.create(), t.serializer);
|
|
3310
3294
|
}
|
|
3311
|
-
var
|
|
3295
|
+
var Za = function() {
|
|
3312
3296
|
return JSON.stringify(arguments);
|
|
3313
|
-
},
|
|
3297
|
+
}, Ja = (
|
|
3314
3298
|
/** @class */
|
|
3315
3299
|
function() {
|
|
3316
3300
|
function e() {
|
|
@@ -3322,12 +3306,12 @@ var Jo = function() {
|
|
|
3322
3306
|
this.cache[t] = r;
|
|
3323
3307
|
}, e;
|
|
3324
3308
|
}()
|
|
3325
|
-
),
|
|
3309
|
+
), Qa = {
|
|
3326
3310
|
create: function() {
|
|
3327
|
-
return new
|
|
3311
|
+
return new Ja();
|
|
3328
3312
|
}
|
|
3329
|
-
},
|
|
3330
|
-
variadic:
|
|
3313
|
+
}, xr = {
|
|
3314
|
+
variadic: qa
|
|
3331
3315
|
}, tr = function() {
|
|
3332
3316
|
return tr = Object.assign || function(t) {
|
|
3333
3317
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -3349,43 +3333,43 @@ var pt;
|
|
|
3349
3333
|
(function(e) {
|
|
3350
3334
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3351
3335
|
})(pt || (pt = {}));
|
|
3352
|
-
function
|
|
3336
|
+
function En(e) {
|
|
3353
3337
|
return e.type === M.literal;
|
|
3354
3338
|
}
|
|
3355
|
-
function
|
|
3339
|
+
function Ka(e) {
|
|
3356
3340
|
return e.type === M.argument;
|
|
3357
3341
|
}
|
|
3358
|
-
function
|
|
3342
|
+
function Pi(e) {
|
|
3359
3343
|
return e.type === M.number;
|
|
3360
3344
|
}
|
|
3361
|
-
function
|
|
3345
|
+
function Mi(e) {
|
|
3362
3346
|
return e.type === M.date;
|
|
3363
3347
|
}
|
|
3364
|
-
function
|
|
3348
|
+
function Ni(e) {
|
|
3365
3349
|
return e.type === M.time;
|
|
3366
3350
|
}
|
|
3367
|
-
function
|
|
3351
|
+
function Ii(e) {
|
|
3368
3352
|
return e.type === M.select;
|
|
3369
3353
|
}
|
|
3370
|
-
function
|
|
3354
|
+
function Ri(e) {
|
|
3371
3355
|
return e.type === M.plural;
|
|
3372
3356
|
}
|
|
3373
|
-
function
|
|
3357
|
+
function eo(e) {
|
|
3374
3358
|
return e.type === M.pound;
|
|
3375
3359
|
}
|
|
3376
|
-
function
|
|
3360
|
+
function Ci(e) {
|
|
3377
3361
|
return e.type === M.tag;
|
|
3378
3362
|
}
|
|
3379
|
-
function
|
|
3363
|
+
function Di(e) {
|
|
3380
3364
|
return !!(e && typeof e == "object" && e.type === pt.number);
|
|
3381
3365
|
}
|
|
3382
|
-
function
|
|
3366
|
+
function Nr(e) {
|
|
3383
3367
|
return !!(e && typeof e == "object" && e.type === pt.dateTime);
|
|
3384
3368
|
}
|
|
3385
|
-
var
|
|
3386
|
-
function
|
|
3369
|
+
var ki = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, to = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
3370
|
+
function ro(e) {
|
|
3387
3371
|
var t = {};
|
|
3388
|
-
return e.replace(
|
|
3372
|
+
return e.replace(to, function(r) {
|
|
3389
3373
|
var n = r.length;
|
|
3390
3374
|
switch (r[0]) {
|
|
3391
3375
|
case "G":
|
|
@@ -3483,36 +3467,36 @@ var I = function() {
|
|
|
3483
3467
|
return t;
|
|
3484
3468
|
}, I.apply(this, arguments);
|
|
3485
3469
|
};
|
|
3486
|
-
var
|
|
3487
|
-
function
|
|
3470
|
+
var no = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
3471
|
+
function io(e) {
|
|
3488
3472
|
if (e.length === 0)
|
|
3489
3473
|
throw new Error("Number skeleton cannot be empty");
|
|
3490
|
-
for (var t = e.split(
|
|
3474
|
+
for (var t = e.split(no).filter(function(c) {
|
|
3491
3475
|
return c.length > 0;
|
|
3492
3476
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
3493
|
-
var s = i[n],
|
|
3494
|
-
if (
|
|
3477
|
+
var s = i[n], a = s.split("/");
|
|
3478
|
+
if (a.length === 0)
|
|
3495
3479
|
throw new Error("Invalid number skeleton");
|
|
3496
|
-
for (var
|
|
3480
|
+
for (var o = a[0], u = a.slice(1), l = 0, f = u; l < f.length; l++) {
|
|
3497
3481
|
var h = f[l];
|
|
3498
3482
|
if (h.length === 0)
|
|
3499
3483
|
throw new Error("Invalid number skeleton");
|
|
3500
3484
|
}
|
|
3501
|
-
r.push({ stem:
|
|
3485
|
+
r.push({ stem: o, options: u });
|
|
3502
3486
|
}
|
|
3503
3487
|
return r;
|
|
3504
3488
|
}
|
|
3505
|
-
function
|
|
3489
|
+
function so(e) {
|
|
3506
3490
|
return e.replace(/^(.*?)-/, "");
|
|
3507
3491
|
}
|
|
3508
|
-
var
|
|
3509
|
-
function
|
|
3492
|
+
var xn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Fi = /^(@+)?(\+|#+)?[rs]?$/g, ao = /(\*)(0+)|(#+)(0+)|(0+)/g, Ui = /^(0+)$/;
|
|
3493
|
+
function wn(e) {
|
|
3510
3494
|
var t = {};
|
|
3511
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
3495
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Fi, function(r, n, i) {
|
|
3512
3496
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
3513
3497
|
}), t;
|
|
3514
3498
|
}
|
|
3515
|
-
function
|
|
3499
|
+
function Gi(e) {
|
|
3516
3500
|
switch (e) {
|
|
3517
3501
|
case "sign-auto":
|
|
3518
3502
|
return {
|
|
@@ -3552,7 +3536,7 @@ function Ui(e) {
|
|
|
3552
3536
|
};
|
|
3553
3537
|
}
|
|
3554
3538
|
}
|
|
3555
|
-
function
|
|
3539
|
+
function oo(e) {
|
|
3556
3540
|
var t;
|
|
3557
3541
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
3558
3542
|
notation: "engineering"
|
|
@@ -3560,17 +3544,17 @@ function ua(e) {
|
|
|
3560
3544
|
notation: "scientific"
|
|
3561
3545
|
}, e = e.slice(1)), t) {
|
|
3562
3546
|
var r = e.slice(0, 2);
|
|
3563
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
3547
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ui.test(e))
|
|
3564
3548
|
throw new Error("Malformed concise eng/scientific notation");
|
|
3565
3549
|
t.minimumIntegerDigits = e.length;
|
|
3566
3550
|
}
|
|
3567
3551
|
return t;
|
|
3568
3552
|
}
|
|
3569
|
-
function
|
|
3570
|
-
var t = {}, r =
|
|
3553
|
+
function Tn(e) {
|
|
3554
|
+
var t = {}, r = Gi(e);
|
|
3571
3555
|
return r || t;
|
|
3572
3556
|
}
|
|
3573
|
-
function
|
|
3557
|
+
function uo(e) {
|
|
3574
3558
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
3575
3559
|
var i = n[r];
|
|
3576
3560
|
switch (i.stem) {
|
|
@@ -3594,7 +3578,7 @@ function la(e) {
|
|
|
3594
3578
|
continue;
|
|
3595
3579
|
case "measure-unit":
|
|
3596
3580
|
case "unit":
|
|
3597
|
-
t.style = "unit", t.unit =
|
|
3581
|
+
t.style = "unit", t.unit = so(i.options[0]);
|
|
3598
3582
|
continue;
|
|
3599
3583
|
case "compact-short":
|
|
3600
3584
|
case "K":
|
|
@@ -3606,12 +3590,12 @@ function la(e) {
|
|
|
3606
3590
|
continue;
|
|
3607
3591
|
case "scientific":
|
|
3608
3592
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3609
|
-
return I(I({}, u),
|
|
3593
|
+
return I(I({}, u), Tn(l));
|
|
3610
3594
|
}, {}));
|
|
3611
3595
|
continue;
|
|
3612
3596
|
case "engineering":
|
|
3613
3597
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3614
|
-
return I(I({}, u),
|
|
3598
|
+
return I(I({}, u), Tn(l));
|
|
3615
3599
|
}, {}));
|
|
3616
3600
|
continue;
|
|
3617
3601
|
case "notation-simple":
|
|
@@ -3656,7 +3640,7 @@ function la(e) {
|
|
|
3656
3640
|
case "integer-width":
|
|
3657
3641
|
if (i.options.length > 1)
|
|
3658
3642
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
3659
|
-
i.options[0].replace(
|
|
3643
|
+
i.options[0].replace(ao, function(u, l, f, h, c, d) {
|
|
3660
3644
|
if (l)
|
|
3661
3645
|
t.minimumIntegerDigits = f.length;
|
|
3662
3646
|
else {
|
|
@@ -3669,28 +3653,28 @@ function la(e) {
|
|
|
3669
3653
|
});
|
|
3670
3654
|
continue;
|
|
3671
3655
|
}
|
|
3672
|
-
if (
|
|
3656
|
+
if (Ui.test(i.stem)) {
|
|
3673
3657
|
t.minimumIntegerDigits = i.stem.length;
|
|
3674
3658
|
continue;
|
|
3675
3659
|
}
|
|
3676
|
-
if (
|
|
3660
|
+
if (xn.test(i.stem)) {
|
|
3677
3661
|
if (i.options.length > 1)
|
|
3678
3662
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
3679
|
-
i.stem.replace(
|
|
3663
|
+
i.stem.replace(xn, function(u, l, f, h, c, d) {
|
|
3680
3664
|
return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
3681
3665
|
});
|
|
3682
3666
|
var s = i.options[0];
|
|
3683
|
-
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t),
|
|
3667
|
+
s === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = I(I({}, t), wn(s)));
|
|
3684
3668
|
continue;
|
|
3685
3669
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
t = I(I({}, t),
|
|
3670
|
+
if (Fi.test(i.stem)) {
|
|
3671
|
+
t = I(I({}, t), wn(i.stem));
|
|
3688
3672
|
continue;
|
|
3689
3673
|
}
|
|
3690
|
-
var
|
|
3691
|
-
o && (t = I(I({}, t), o));
|
|
3692
|
-
var a = ua(i.stem);
|
|
3674
|
+
var a = Gi(i.stem);
|
|
3693
3675
|
a && (t = I(I({}, t), a));
|
|
3676
|
+
var o = oo(i.stem);
|
|
3677
|
+
o && (t = I(I({}, t), o));
|
|
3694
3678
|
}
|
|
3695
3679
|
return t;
|
|
3696
3680
|
}
|
|
@@ -5109,22 +5093,22 @@ var Ut = {
|
|
|
5109
5093
|
"h"
|
|
5110
5094
|
]
|
|
5111
5095
|
};
|
|
5112
|
-
function
|
|
5096
|
+
function lo(e, t) {
|
|
5113
5097
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
5114
5098
|
var i = e.charAt(n);
|
|
5115
5099
|
if (i === "j") {
|
|
5116
5100
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
5117
5101
|
s++, n++;
|
|
5118
|
-
var
|
|
5119
|
-
for ((l == "H" || l == "k") && (
|
|
5102
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = fo(t);
|
|
5103
|
+
for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
|
|
5120
5104
|
r += u;
|
|
5121
|
-
for (;
|
|
5105
|
+
for (; a-- > 0; )
|
|
5122
5106
|
r = l + r;
|
|
5123
5107
|
} else i === "J" ? r += "H" : r += i;
|
|
5124
5108
|
}
|
|
5125
5109
|
return r;
|
|
5126
5110
|
}
|
|
5127
|
-
function
|
|
5111
|
+
function fo(e) {
|
|
5128
5112
|
var t = e.hourCycle;
|
|
5129
5113
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
5130
5114
|
e.hourCycles && // @ts-ignore
|
|
@@ -5146,20 +5130,20 @@ function ha(e) {
|
|
|
5146
5130
|
var i = Ut[n || ""] || Ut[r || ""] || Ut["".concat(r, "-001")] || Ut["001"];
|
|
5147
5131
|
return i[0];
|
|
5148
5132
|
}
|
|
5149
|
-
var
|
|
5133
|
+
var wr, ho = new RegExp("^".concat(ki.source, "*")), co = new RegExp("".concat(ki.source, "*$"));
|
|
5150
5134
|
function H(e, t) {
|
|
5151
5135
|
return { start: e, end: t };
|
|
5152
5136
|
}
|
|
5153
|
-
var
|
|
5137
|
+
var po = !!String.prototype.startsWith && "_a".startsWith("a", 1), vo = !!String.fromCodePoint, _o = !!Object.fromEntries, mo = !!String.prototype.codePointAt, go = !!String.prototype.trimStart, bo = !!String.prototype.trimEnd, yo = !!Number.isSafeInteger, Eo = yo ? Number.isSafeInteger : function(e) {
|
|
5154
5138
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5155
|
-
},
|
|
5139
|
+
}, Ir = !0;
|
|
5156
5140
|
try {
|
|
5157
|
-
var
|
|
5158
|
-
|
|
5141
|
+
var xo = Vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5142
|
+
Ir = ((wr = xo.exec("a")) === null || wr === void 0 ? void 0 : wr[0]) === "a";
|
|
5159
5143
|
} catch {
|
|
5160
|
-
|
|
5144
|
+
Ir = !1;
|
|
5161
5145
|
}
|
|
5162
|
-
var
|
|
5146
|
+
var Sn = po ? (
|
|
5163
5147
|
// Native
|
|
5164
5148
|
function(t, r, n) {
|
|
5165
5149
|
return t.startsWith(r, n);
|
|
@@ -5169,31 +5153,31 @@ var Tn = pa ? (
|
|
|
5169
5153
|
function(t, r, n) {
|
|
5170
5154
|
return t.slice(n, n + r.length) === r;
|
|
5171
5155
|
}
|
|
5172
|
-
),
|
|
5156
|
+
), Rr = vo ? String.fromCodePoint : (
|
|
5173
5157
|
// IE11
|
|
5174
5158
|
function() {
|
|
5175
5159
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
5176
5160
|
t[r] = arguments[r];
|
|
5177
|
-
for (var n = "", i = t.length, s = 0,
|
|
5178
|
-
if (
|
|
5179
|
-
throw RangeError(
|
|
5180
|
-
n +=
|
|
5161
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
5162
|
+
if (a = t[s++], a > 1114111)
|
|
5163
|
+
throw RangeError(a + " is not a valid code point");
|
|
5164
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
5181
5165
|
}
|
|
5182
5166
|
return n;
|
|
5183
5167
|
}
|
|
5184
|
-
),
|
|
5168
|
+
), Hn = (
|
|
5185
5169
|
// native
|
|
5186
|
-
|
|
5170
|
+
_o ? Object.fromEntries : (
|
|
5187
5171
|
// Ponyfill
|
|
5188
5172
|
function(t) {
|
|
5189
5173
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
5190
|
-
var s = i[n],
|
|
5191
|
-
r[
|
|
5174
|
+
var s = i[n], a = s[0], o = s[1];
|
|
5175
|
+
r[a] = o;
|
|
5192
5176
|
}
|
|
5193
5177
|
return r;
|
|
5194
5178
|
}
|
|
5195
5179
|
)
|
|
5196
|
-
),
|
|
5180
|
+
), ji = mo ? (
|
|
5197
5181
|
// Native
|
|
5198
5182
|
function(t, r) {
|
|
5199
5183
|
return t.codePointAt(r);
|
|
@@ -5207,7 +5191,7 @@ var Tn = pa ? (
|
|
|
5207
5191
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
5208
5192
|
}
|
|
5209
5193
|
}
|
|
5210
|
-
),
|
|
5194
|
+
), wo = go ? (
|
|
5211
5195
|
// Native
|
|
5212
5196
|
function(t) {
|
|
5213
5197
|
return t.trimStart();
|
|
@@ -5215,9 +5199,9 @@ var Tn = pa ? (
|
|
|
5215
5199
|
) : (
|
|
5216
5200
|
// Ponyfill
|
|
5217
5201
|
function(t) {
|
|
5218
|
-
return t.replace(
|
|
5202
|
+
return t.replace(ho, "");
|
|
5219
5203
|
}
|
|
5220
|
-
),
|
|
5204
|
+
), To = bo ? (
|
|
5221
5205
|
// Native
|
|
5222
5206
|
function(t) {
|
|
5223
5207
|
return t.trimEnd();
|
|
@@ -5225,32 +5209,32 @@ var Tn = pa ? (
|
|
|
5225
5209
|
) : (
|
|
5226
5210
|
// Ponyfill
|
|
5227
5211
|
function(t) {
|
|
5228
|
-
return t.replace(
|
|
5212
|
+
return t.replace(co, "");
|
|
5229
5213
|
}
|
|
5230
5214
|
);
|
|
5231
|
-
function
|
|
5215
|
+
function Vi(e, t) {
|
|
5232
5216
|
return new RegExp(e, t);
|
|
5233
5217
|
}
|
|
5234
|
-
var
|
|
5235
|
-
if (
|
|
5236
|
-
var
|
|
5237
|
-
|
|
5218
|
+
var Cr;
|
|
5219
|
+
if (Ir) {
|
|
5220
|
+
var An = Vi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5221
|
+
Cr = function(t, r) {
|
|
5238
5222
|
var n;
|
|
5239
|
-
|
|
5240
|
-
var i =
|
|
5223
|
+
An.lastIndex = r;
|
|
5224
|
+
var i = An.exec(t);
|
|
5241
5225
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5242
5226
|
};
|
|
5243
5227
|
} else
|
|
5244
|
-
|
|
5228
|
+
Cr = function(t, r) {
|
|
5245
5229
|
for (var n = []; ; ) {
|
|
5246
|
-
var i =
|
|
5247
|
-
if (i === void 0 ||
|
|
5230
|
+
var i = ji(t, r);
|
|
5231
|
+
if (i === void 0 || Wi(i) || $o(i))
|
|
5248
5232
|
break;
|
|
5249
5233
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5250
5234
|
}
|
|
5251
|
-
return
|
|
5235
|
+
return Rr.apply(void 0, n);
|
|
5252
5236
|
};
|
|
5253
|
-
var
|
|
5237
|
+
var So = (
|
|
5254
5238
|
/** @class */
|
|
5255
5239
|
function() {
|
|
5256
5240
|
function e(t, r) {
|
|
@@ -5264,33 +5248,33 @@ var Sa = (
|
|
|
5264
5248
|
for (var i = []; !this.isEOF(); ) {
|
|
5265
5249
|
var s = this.char();
|
|
5266
5250
|
if (s === 123) {
|
|
5267
|
-
var
|
|
5268
|
-
if (
|
|
5269
|
-
return
|
|
5270
|
-
i.push(
|
|
5251
|
+
var a = this.parseArgument(t, n);
|
|
5252
|
+
if (a.err)
|
|
5253
|
+
return a;
|
|
5254
|
+
i.push(a.val);
|
|
5271
5255
|
} else {
|
|
5272
5256
|
if (s === 125 && t > 0)
|
|
5273
5257
|
break;
|
|
5274
5258
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
5275
|
-
var
|
|
5259
|
+
var o = this.clonePosition();
|
|
5276
5260
|
this.bump(), i.push({
|
|
5277
5261
|
type: M.pound,
|
|
5278
|
-
location: H(
|
|
5262
|
+
location: H(o, this.clonePosition())
|
|
5279
5263
|
});
|
|
5280
5264
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5281
5265
|
if (n)
|
|
5282
5266
|
break;
|
|
5283
5267
|
return this.error(T.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
5284
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5285
|
-
var
|
|
5286
|
-
if (
|
|
5287
|
-
return
|
|
5288
|
-
i.push(
|
|
5268
|
+
} else if (s === 60 && !this.ignoreTag && Dr(this.peek() || 0)) {
|
|
5269
|
+
var a = this.parseTag(t, r);
|
|
5270
|
+
if (a.err)
|
|
5271
|
+
return a;
|
|
5272
|
+
i.push(a.val);
|
|
5289
5273
|
} else {
|
|
5290
|
-
var
|
|
5291
|
-
if (
|
|
5292
|
-
return
|
|
5293
|
-
i.push(
|
|
5274
|
+
var a = this.parseLiteral(t, r);
|
|
5275
|
+
if (a.err)
|
|
5276
|
+
return a;
|
|
5277
|
+
i.push(a.val);
|
|
5294
5278
|
}
|
|
5295
5279
|
}
|
|
5296
5280
|
}
|
|
@@ -5312,27 +5296,27 @@ var Sa = (
|
|
|
5312
5296
|
var s = this.parseMessage(t + 1, r, !0);
|
|
5313
5297
|
if (s.err)
|
|
5314
5298
|
return s;
|
|
5315
|
-
var
|
|
5299
|
+
var a = s.val, o = this.clonePosition();
|
|
5316
5300
|
if (this.bumpIf("</")) {
|
|
5317
|
-
if (this.isEOF() || !
|
|
5318
|
-
return this.error(T.INVALID_TAG, H(
|
|
5301
|
+
if (this.isEOF() || !Dr(this.char()))
|
|
5302
|
+
return this.error(T.INVALID_TAG, H(o, this.clonePosition()));
|
|
5319
5303
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5320
5304
|
return i !== l ? this.error(T.UNMATCHED_CLOSING_TAG, H(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5321
5305
|
val: {
|
|
5322
5306
|
type: M.tag,
|
|
5323
5307
|
value: i,
|
|
5324
|
-
children:
|
|
5308
|
+
children: a,
|
|
5325
5309
|
location: H(n, this.clonePosition())
|
|
5326
5310
|
},
|
|
5327
5311
|
err: null
|
|
5328
|
-
} : this.error(T.INVALID_TAG, H(
|
|
5312
|
+
} : this.error(T.INVALID_TAG, H(o, this.clonePosition())));
|
|
5329
5313
|
} else
|
|
5330
5314
|
return this.error(T.UNCLOSED_TAG, H(n, this.clonePosition()));
|
|
5331
5315
|
} else
|
|
5332
5316
|
return this.error(T.INVALID_TAG, H(n, this.clonePosition()));
|
|
5333
5317
|
}, e.prototype.parseTagName = function() {
|
|
5334
5318
|
var t = this.offset();
|
|
5335
|
-
for (this.bump(); !this.isEOF() &&
|
|
5319
|
+
for (this.bump(); !this.isEOF() && Ao(this.char()); )
|
|
5336
5320
|
this.bump();
|
|
5337
5321
|
return this.message.slice(t, this.offset());
|
|
5338
5322
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -5342,16 +5326,16 @@ var Sa = (
|
|
|
5342
5326
|
i += s;
|
|
5343
5327
|
continue;
|
|
5344
5328
|
}
|
|
5345
|
-
var
|
|
5346
|
-
if (o) {
|
|
5347
|
-
i += o;
|
|
5348
|
-
continue;
|
|
5349
|
-
}
|
|
5350
|
-
var a = this.tryParseLeftAngleBracket();
|
|
5329
|
+
var a = this.tryParseUnquoted(t, r);
|
|
5351
5330
|
if (a) {
|
|
5352
5331
|
i += a;
|
|
5353
5332
|
continue;
|
|
5354
5333
|
}
|
|
5334
|
+
var o = this.tryParseLeftAngleBracket();
|
|
5335
|
+
if (o) {
|
|
5336
|
+
i += o;
|
|
5337
|
+
continue;
|
|
5338
|
+
}
|
|
5355
5339
|
break;
|
|
5356
5340
|
}
|
|
5357
5341
|
var u = H(n, this.clonePosition());
|
|
@@ -5361,7 +5345,7 @@ var Sa = (
|
|
|
5361
5345
|
};
|
|
5362
5346
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
5363
5347
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
5364
|
-
!
|
|
5348
|
+
!Ho(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
5365
5349
|
}, e.prototype.tryParseQuote = function(t) {
|
|
5366
5350
|
if (this.isEOF() || this.char() !== 39)
|
|
5367
5351
|
return null;
|
|
@@ -5395,12 +5379,12 @@ var Sa = (
|
|
|
5395
5379
|
r.push(n);
|
|
5396
5380
|
this.bump();
|
|
5397
5381
|
}
|
|
5398
|
-
return
|
|
5382
|
+
return Rr.apply(void 0, r);
|
|
5399
5383
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5400
5384
|
if (this.isEOF())
|
|
5401
5385
|
return null;
|
|
5402
5386
|
var n = this.char();
|
|
5403
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5387
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Rr(n));
|
|
5404
5388
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5405
5389
|
var n = this.clonePosition();
|
|
5406
5390
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -5429,15 +5413,15 @@ var Sa = (
|
|
|
5429
5413
|
return this.error(T.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
|
|
5430
5414
|
}
|
|
5431
5415
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5432
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5416
|
+
var t = this.clonePosition(), r = this.offset(), n = Cr(this.message, r), i = r + n.length;
|
|
5433
5417
|
this.bumpTo(i);
|
|
5434
|
-
var s = this.clonePosition(),
|
|
5435
|
-
return { value: n, location:
|
|
5418
|
+
var s = this.clonePosition(), a = H(t, s);
|
|
5419
|
+
return { value: n, location: a };
|
|
5436
5420
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
5437
|
-
var s,
|
|
5438
|
-
switch (
|
|
5421
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
5422
|
+
switch (o) {
|
|
5439
5423
|
case "":
|
|
5440
|
-
return this.error(T.EXPECT_ARGUMENT_TYPE, H(
|
|
5424
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, H(a, u));
|
|
5441
5425
|
case "number":
|
|
5442
5426
|
case "date":
|
|
5443
5427
|
case "time": {
|
|
@@ -5448,7 +5432,7 @@ var Sa = (
|
|
|
5448
5432
|
var f = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
5449
5433
|
if (h.err)
|
|
5450
5434
|
return h;
|
|
5451
|
-
var c =
|
|
5435
|
+
var c = To(h.val);
|
|
5452
5436
|
if (c.length === 0)
|
|
5453
5437
|
return this.error(T.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
5454
5438
|
var d = H(f, this.clonePosition());
|
|
@@ -5458,9 +5442,9 @@ var Sa = (
|
|
|
5458
5442
|
if (p.err)
|
|
5459
5443
|
return p;
|
|
5460
5444
|
var b = H(i, this.clonePosition());
|
|
5461
|
-
if (l &&
|
|
5462
|
-
var N =
|
|
5463
|
-
if (
|
|
5445
|
+
if (l && Sn(l?.style, "::", 0)) {
|
|
5446
|
+
var N = wo(l.style.slice(2));
|
|
5447
|
+
if (o === "number") {
|
|
5464
5448
|
var h = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
5465
5449
|
return h.err ? h : {
|
|
5466
5450
|
val: { type: M.number, value: n, location: b, style: h.val },
|
|
@@ -5470,13 +5454,13 @@ var Sa = (
|
|
|
5470
5454
|
if (N.length === 0)
|
|
5471
5455
|
return this.error(T.EXPECT_DATE_TIME_SKELETON, b);
|
|
5472
5456
|
var G = N;
|
|
5473
|
-
this.locale && (G =
|
|
5457
|
+
this.locale && (G = lo(N, this.locale));
|
|
5474
5458
|
var c = {
|
|
5475
5459
|
type: pt.dateTime,
|
|
5476
5460
|
pattern: G,
|
|
5477
5461
|
location: l.styleLocation,
|
|
5478
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5479
|
-
}, W =
|
|
5462
|
+
parsedOptions: this.shouldParseSkeletons ? ro(G) : {}
|
|
5463
|
+
}, W = o === "date" ? M.date : M.time;
|
|
5480
5464
|
return {
|
|
5481
5465
|
val: { type: W, value: n, location: b, style: c },
|
|
5482
5466
|
err: null
|
|
@@ -5485,7 +5469,7 @@ var Sa = (
|
|
|
5485
5469
|
}
|
|
5486
5470
|
return {
|
|
5487
5471
|
val: {
|
|
5488
|
-
type:
|
|
5472
|
+
type: o === "number" ? M.number : o === "date" ? M.date : M.time,
|
|
5489
5473
|
value: n,
|
|
5490
5474
|
location: b,
|
|
5491
5475
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
@@ -5500,28 +5484,28 @@ var Sa = (
|
|
|
5500
5484
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5501
5485
|
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, H(k, tr({}, k)));
|
|
5502
5486
|
this.bumpSpace();
|
|
5503
|
-
var
|
|
5504
|
-
if (
|
|
5487
|
+
var He = this.parseIdentifierIfPossible(), Z = 0;
|
|
5488
|
+
if (o !== "select" && He.value === "offset") {
|
|
5505
5489
|
if (!this.bumpIf(":"))
|
|
5506
5490
|
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
5507
5491
|
this.bumpSpace();
|
|
5508
5492
|
var h = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5509
5493
|
if (h.err)
|
|
5510
5494
|
return h;
|
|
5511
|
-
this.bumpSpace(),
|
|
5495
|
+
this.bumpSpace(), He = this.parseIdentifierIfPossible(), Z = h.val;
|
|
5512
5496
|
}
|
|
5513
|
-
var Q = this.tryParsePluralOrSelectOptions(t,
|
|
5497
|
+
var Q = this.tryParsePluralOrSelectOptions(t, o, r, He);
|
|
5514
5498
|
if (Q.err)
|
|
5515
5499
|
return Q;
|
|
5516
5500
|
var p = this.tryParseArgumentClose(i);
|
|
5517
5501
|
if (p.err)
|
|
5518
5502
|
return p;
|
|
5519
5503
|
var B = H(i, this.clonePosition());
|
|
5520
|
-
return
|
|
5504
|
+
return o === "select" ? {
|
|
5521
5505
|
val: {
|
|
5522
5506
|
type: M.select,
|
|
5523
5507
|
value: n,
|
|
5524
|
-
options:
|
|
5508
|
+
options: Hn(Q.val),
|
|
5525
5509
|
location: B
|
|
5526
5510
|
},
|
|
5527
5511
|
err: null
|
|
@@ -5529,16 +5513,16 @@ var Sa = (
|
|
|
5529
5513
|
val: {
|
|
5530
5514
|
type: M.plural,
|
|
5531
5515
|
value: n,
|
|
5532
|
-
options:
|
|
5516
|
+
options: Hn(Q.val),
|
|
5533
5517
|
offset: Z,
|
|
5534
|
-
pluralType:
|
|
5518
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
5535
5519
|
location: B
|
|
5536
5520
|
},
|
|
5537
5521
|
err: null
|
|
5538
5522
|
};
|
|
5539
5523
|
}
|
|
5540
5524
|
default:
|
|
5541
|
-
return this.error(T.INVALID_ARGUMENT_TYPE, H(
|
|
5525
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, H(a, u));
|
|
5542
5526
|
}
|
|
5543
5527
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5544
5528
|
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -5580,7 +5564,7 @@ var Sa = (
|
|
|
5580
5564
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
5581
5565
|
var n = [];
|
|
5582
5566
|
try {
|
|
5583
|
-
n =
|
|
5567
|
+
n = io(t);
|
|
5584
5568
|
} catch {
|
|
5585
5569
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
5586
5570
|
}
|
|
@@ -5589,12 +5573,12 @@ var Sa = (
|
|
|
5589
5573
|
type: pt.number,
|
|
5590
5574
|
tokens: n,
|
|
5591
5575
|
location: r,
|
|
5592
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
5576
|
+
parsedOptions: this.shouldParseSkeletons ? uo(n) : {}
|
|
5593
5577
|
},
|
|
5594
5578
|
err: null
|
|
5595
5579
|
};
|
|
5596
5580
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
5597
|
-
for (var s,
|
|
5581
|
+
for (var s, a = !1, o = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
5598
5582
|
if (l.length === 0) {
|
|
5599
5583
|
var h = this.clonePosition();
|
|
5600
5584
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -5607,7 +5591,7 @@ var Sa = (
|
|
|
5607
5591
|
}
|
|
5608
5592
|
if (u.has(l))
|
|
5609
5593
|
return this.error(r === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
5610
|
-
l === "other" && (
|
|
5594
|
+
l === "other" && (a = !0), this.bumpSpace();
|
|
5611
5595
|
var d = this.clonePosition();
|
|
5612
5596
|
if (!this.bumpIf("{"))
|
|
5613
5597
|
return this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
@@ -5617,7 +5601,7 @@ var Sa = (
|
|
|
5617
5601
|
var b = this.tryParseArgumentClose(d);
|
|
5618
5602
|
if (b.err)
|
|
5619
5603
|
return b;
|
|
5620
|
-
|
|
5604
|
+
o.push([
|
|
5621
5605
|
l,
|
|
5622
5606
|
{
|
|
5623
5607
|
value: p.val,
|
|
@@ -5625,19 +5609,19 @@ var Sa = (
|
|
|
5625
5609
|
}
|
|
5626
5610
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
5627
5611
|
}
|
|
5628
|
-
return
|
|
5612
|
+
return o.length === 0 ? this.error(r === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(T.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
5629
5613
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
5630
5614
|
var n = 1, i = this.clonePosition();
|
|
5631
5615
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
5632
|
-
for (var s = !1,
|
|
5633
|
-
var
|
|
5634
|
-
if (
|
|
5635
|
-
s = !0,
|
|
5616
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
5617
|
+
var o = this.char();
|
|
5618
|
+
if (o >= 48 && o <= 57)
|
|
5619
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
5636
5620
|
else
|
|
5637
5621
|
break;
|
|
5638
5622
|
}
|
|
5639
5623
|
var u = H(i, this.clonePosition());
|
|
5640
|
-
return s ? (
|
|
5624
|
+
return s ? (a *= n, Eo(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
5641
5625
|
}, e.prototype.offset = function() {
|
|
5642
5626
|
return this.position.offset;
|
|
5643
5627
|
}, e.prototype.isEOF = function() {
|
|
@@ -5652,7 +5636,7 @@ var Sa = (
|
|
|
5652
5636
|
var t = this.position.offset;
|
|
5653
5637
|
if (t >= this.message.length)
|
|
5654
5638
|
throw Error("out of bound");
|
|
5655
|
-
var r =
|
|
5639
|
+
var r = ji(this.message, t);
|
|
5656
5640
|
if (r === void 0)
|
|
5657
5641
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
5658
5642
|
return r;
|
|
@@ -5671,7 +5655,7 @@ var Sa = (
|
|
|
5671
5655
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
5672
5656
|
}
|
|
5673
5657
|
}, e.prototype.bumpIf = function(t) {
|
|
5674
|
-
if (
|
|
5658
|
+
if (Sn(this.message, t, this.offset())) {
|
|
5675
5659
|
for (var r = 0; r < t.length; r++)
|
|
5676
5660
|
this.bump();
|
|
5677
5661
|
return !0;
|
|
@@ -5693,7 +5677,7 @@ var Sa = (
|
|
|
5693
5677
|
break;
|
|
5694
5678
|
}
|
|
5695
5679
|
}, e.prototype.bumpSpace = function() {
|
|
5696
|
-
for (; !this.isEOF() &&
|
|
5680
|
+
for (; !this.isEOF() && Wi(this.char()); )
|
|
5697
5681
|
this.bump();
|
|
5698
5682
|
}, e.prototype.peek = function() {
|
|
5699
5683
|
if (this.isEOF())
|
|
@@ -5703,37 +5687,37 @@ var Sa = (
|
|
|
5703
5687
|
}, e;
|
|
5704
5688
|
}()
|
|
5705
5689
|
);
|
|
5706
|
-
function
|
|
5690
|
+
function Dr(e) {
|
|
5707
5691
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5708
5692
|
}
|
|
5709
|
-
function
|
|
5710
|
-
return
|
|
5693
|
+
function Ho(e) {
|
|
5694
|
+
return Dr(e) || e === 47;
|
|
5711
5695
|
}
|
|
5712
|
-
function
|
|
5696
|
+
function Ao(e) {
|
|
5713
5697
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
5714
5698
|
}
|
|
5715
|
-
function
|
|
5699
|
+
function Wi(e) {
|
|
5716
5700
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
5717
5701
|
}
|
|
5718
|
-
function $
|
|
5702
|
+
function $o(e) {
|
|
5719
5703
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
5720
5704
|
}
|
|
5721
|
-
function
|
|
5705
|
+
function kr(e) {
|
|
5722
5706
|
e.forEach(function(t) {
|
|
5723
|
-
if (delete t.location,
|
|
5707
|
+
if (delete t.location, Ii(t) || Ri(t))
|
|
5724
5708
|
for (var r in t.options)
|
|
5725
|
-
delete t.options[r].location,
|
|
5726
|
-
else
|
|
5709
|
+
delete t.options[r].location, kr(t.options[r].value);
|
|
5710
|
+
else Pi(t) && Di(t.style) || (Mi(t) || Ni(t)) && Nr(t.style) ? delete t.style.location : Ci(t) && kr(t.children);
|
|
5727
5711
|
});
|
|
5728
5712
|
}
|
|
5729
|
-
function
|
|
5713
|
+
function Oo(e, t) {
|
|
5730
5714
|
t === void 0 && (t = {}), t = tr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5731
|
-
var r = new
|
|
5715
|
+
var r = new So(e, t).parse();
|
|
5732
5716
|
if (r.err) {
|
|
5733
5717
|
var n = SyntaxError(T[r.err.kind]);
|
|
5734
5718
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5735
5719
|
}
|
|
5736
|
-
return t?.captureLocation ||
|
|
5720
|
+
return t?.captureLocation || kr(r.val), r.val;
|
|
5737
5721
|
}
|
|
5738
5722
|
var vt;
|
|
5739
5723
|
(function(e) {
|
|
@@ -5751,7 +5735,7 @@ var hr = (
|
|
|
5751
5735
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
5752
5736
|
}, t;
|
|
5753
5737
|
}(Error)
|
|
5754
|
-
),
|
|
5738
|
+
), $n = (
|
|
5755
5739
|
/** @class */
|
|
5756
5740
|
function(e) {
|
|
5757
5741
|
fr(t, e);
|
|
@@ -5760,7 +5744,7 @@ var hr = (
|
|
|
5760
5744
|
}
|
|
5761
5745
|
return t;
|
|
5762
5746
|
}(hr)
|
|
5763
|
-
),
|
|
5747
|
+
), Bo = (
|
|
5764
5748
|
/** @class */
|
|
5765
5749
|
function(e) {
|
|
5766
5750
|
fr(t, e);
|
|
@@ -5769,7 +5753,7 @@ var hr = (
|
|
|
5769
5753
|
}
|
|
5770
5754
|
return t;
|
|
5771
5755
|
}(hr)
|
|
5772
|
-
),
|
|
5756
|
+
), Lo = (
|
|
5773
5757
|
/** @class */
|
|
5774
5758
|
function(e) {
|
|
5775
5759
|
fr(t, e);
|
|
@@ -5782,34 +5766,34 @@ var hr = (
|
|
|
5782
5766
|
(function(e) {
|
|
5783
5767
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5784
5768
|
})(J || (J = {}));
|
|
5785
|
-
function
|
|
5769
|
+
function Po(e) {
|
|
5786
5770
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5787
5771
|
var n = t[t.length - 1];
|
|
5788
5772
|
return !n || n.type !== J.literal || r.type !== J.literal ? t.push(r) : n.value += r.value, t;
|
|
5789
5773
|
}, []);
|
|
5790
5774
|
}
|
|
5791
|
-
function
|
|
5775
|
+
function Mo(e) {
|
|
5792
5776
|
return typeof e == "function";
|
|
5793
5777
|
}
|
|
5794
|
-
function Wt(e, t, r, n, i, s,
|
|
5795
|
-
if (e.length === 1 &&
|
|
5778
|
+
function Wt(e, t, r, n, i, s, a) {
|
|
5779
|
+
if (e.length === 1 && En(e[0]))
|
|
5796
5780
|
return [
|
|
5797
5781
|
{
|
|
5798
5782
|
type: J.literal,
|
|
5799
5783
|
value: e[0].value
|
|
5800
5784
|
}
|
|
5801
5785
|
];
|
|
5802
|
-
for (var
|
|
5786
|
+
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
5803
5787
|
var f = l[u];
|
|
5804
|
-
if (
|
|
5805
|
-
|
|
5788
|
+
if (En(f)) {
|
|
5789
|
+
o.push({
|
|
5806
5790
|
type: J.literal,
|
|
5807
5791
|
value: f.value
|
|
5808
5792
|
});
|
|
5809
5793
|
continue;
|
|
5810
5794
|
}
|
|
5811
|
-
if (
|
|
5812
|
-
typeof s == "number" &&
|
|
5795
|
+
if (eo(f)) {
|
|
5796
|
+
typeof s == "number" && o.push({
|
|
5813
5797
|
type: J.literal,
|
|
5814
5798
|
value: r.getNumberFormat(t).format(s)
|
|
5815
5799
|
});
|
|
@@ -5817,89 +5801,89 @@ function Wt(e, t, r, n, i, s, o) {
|
|
|
5817
5801
|
}
|
|
5818
5802
|
var h = f.value;
|
|
5819
5803
|
if (!(i && h in i))
|
|
5820
|
-
throw new
|
|
5804
|
+
throw new Lo(h, a);
|
|
5821
5805
|
var c = i[h];
|
|
5822
|
-
if (
|
|
5823
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
5806
|
+
if (Ka(f)) {
|
|
5807
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
5824
5808
|
type: typeof c == "string" ? J.literal : J.object,
|
|
5825
5809
|
value: c
|
|
5826
5810
|
});
|
|
5827
5811
|
continue;
|
|
5828
5812
|
}
|
|
5829
|
-
if (
|
|
5830
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5831
|
-
|
|
5813
|
+
if (Mi(f)) {
|
|
5814
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Nr(f.style) ? f.style.parsedOptions : void 0;
|
|
5815
|
+
o.push({
|
|
5832
5816
|
type: J.literal,
|
|
5833
5817
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
5834
5818
|
});
|
|
5835
5819
|
continue;
|
|
5836
5820
|
}
|
|
5837
|
-
if (
|
|
5838
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5839
|
-
|
|
5821
|
+
if (Ni(f)) {
|
|
5822
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Nr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5823
|
+
o.push({
|
|
5840
5824
|
type: J.literal,
|
|
5841
5825
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
5842
5826
|
});
|
|
5843
5827
|
continue;
|
|
5844
5828
|
}
|
|
5845
|
-
if (
|
|
5846
|
-
var d = typeof f.style == "string" ? n.number[f.style] :
|
|
5847
|
-
d && d.scale && (c = c * (d.scale || 1)),
|
|
5829
|
+
if (Pi(f)) {
|
|
5830
|
+
var d = typeof f.style == "string" ? n.number[f.style] : Di(f.style) ? f.style.parsedOptions : void 0;
|
|
5831
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
5848
5832
|
type: J.literal,
|
|
5849
5833
|
value: r.getNumberFormat(t, d).format(c)
|
|
5850
5834
|
});
|
|
5851
5835
|
continue;
|
|
5852
5836
|
}
|
|
5853
|
-
if (
|
|
5837
|
+
if (Ci(f)) {
|
|
5854
5838
|
var p = f.children, b = f.value, N = i[b];
|
|
5855
|
-
if (!
|
|
5856
|
-
throw new
|
|
5839
|
+
if (!Mo(N))
|
|
5840
|
+
throw new Bo(b, "function", a);
|
|
5857
5841
|
var G = Wt(p, t, r, n, i, s), W = N(G.map(function(Z) {
|
|
5858
5842
|
return Z.value;
|
|
5859
5843
|
}));
|
|
5860
|
-
Array.isArray(W) || (W = [W]),
|
|
5844
|
+
Array.isArray(W) || (W = [W]), o.push.apply(o, W.map(function(Z) {
|
|
5861
5845
|
return {
|
|
5862
5846
|
type: typeof Z == "string" ? J.literal : J.object,
|
|
5863
5847
|
value: Z
|
|
5864
5848
|
};
|
|
5865
5849
|
}));
|
|
5866
5850
|
}
|
|
5867
|
-
if (
|
|
5851
|
+
if (Ii(f)) {
|
|
5868
5852
|
var k = f.options[c] || f.options.other;
|
|
5869
5853
|
if (!k)
|
|
5870
|
-
throw new
|
|
5871
|
-
|
|
5854
|
+
throw new $n(f.value, c, Object.keys(f.options), a);
|
|
5855
|
+
o.push.apply(o, Wt(k.value, t, r, n, i));
|
|
5872
5856
|
continue;
|
|
5873
5857
|
}
|
|
5874
|
-
if (
|
|
5858
|
+
if (Ri(f)) {
|
|
5875
5859
|
var k = f.options["=".concat(c)];
|
|
5876
5860
|
if (!k) {
|
|
5877
5861
|
if (!Intl.PluralRules)
|
|
5878
5862
|
throw new hr(`Intl.PluralRules is not available in this environment.
|
|
5879
5863
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5880
|
-
`, vt.MISSING_INTL_API,
|
|
5881
|
-
var
|
|
5882
|
-
k = f.options[
|
|
5864
|
+
`, vt.MISSING_INTL_API, a);
|
|
5865
|
+
var He = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
|
|
5866
|
+
k = f.options[He] || f.options.other;
|
|
5883
5867
|
}
|
|
5884
5868
|
if (!k)
|
|
5885
|
-
throw new
|
|
5886
|
-
|
|
5869
|
+
throw new $n(f.value, c, Object.keys(f.options), a);
|
|
5870
|
+
o.push.apply(o, Wt(k.value, t, r, n, i, c - (f.offset || 0)));
|
|
5887
5871
|
continue;
|
|
5888
5872
|
}
|
|
5889
5873
|
}
|
|
5890
|
-
return
|
|
5874
|
+
return Po(o);
|
|
5891
5875
|
}
|
|
5892
|
-
function
|
|
5876
|
+
function No(e, t) {
|
|
5893
5877
|
return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5894
5878
|
return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
|
|
5895
5879
|
}, {})) : e;
|
|
5896
5880
|
}
|
|
5897
|
-
function
|
|
5881
|
+
function Io(e, t) {
|
|
5898
5882
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5899
|
-
return r[n] =
|
|
5883
|
+
return r[n] = No(e[n], t[n]), r;
|
|
5900
5884
|
}, ye({}, e)) : e;
|
|
5901
5885
|
}
|
|
5902
|
-
function
|
|
5886
|
+
function Tr(e) {
|
|
5903
5887
|
return {
|
|
5904
5888
|
create: function() {
|
|
5905
5889
|
return {
|
|
@@ -5913,39 +5897,39 @@ function xr(e) {
|
|
|
5913
5897
|
}
|
|
5914
5898
|
};
|
|
5915
5899
|
}
|
|
5916
|
-
function
|
|
5900
|
+
function Ro(e) {
|
|
5917
5901
|
return e === void 0 && (e = {
|
|
5918
5902
|
number: {},
|
|
5919
5903
|
dateTime: {},
|
|
5920
5904
|
pluralRules: {}
|
|
5921
5905
|
}), {
|
|
5922
|
-
getNumberFormat:
|
|
5906
|
+
getNumberFormat: Er(function() {
|
|
5923
5907
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5924
5908
|
r[n] = arguments[n];
|
|
5925
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
5909
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, yr([void 0], r, !1)))();
|
|
5926
5910
|
}, {
|
|
5927
|
-
cache:
|
|
5928
|
-
strategy:
|
|
5911
|
+
cache: Tr(e.number),
|
|
5912
|
+
strategy: xr.variadic
|
|
5929
5913
|
}),
|
|
5930
|
-
getDateTimeFormat:
|
|
5914
|
+
getDateTimeFormat: Er(function() {
|
|
5931
5915
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5932
5916
|
r[n] = arguments[n];
|
|
5933
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
5917
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, yr([void 0], r, !1)))();
|
|
5934
5918
|
}, {
|
|
5935
|
-
cache:
|
|
5936
|
-
strategy:
|
|
5919
|
+
cache: Tr(e.dateTime),
|
|
5920
|
+
strategy: xr.variadic
|
|
5937
5921
|
}),
|
|
5938
|
-
getPluralRules:
|
|
5922
|
+
getPluralRules: Er(function() {
|
|
5939
5923
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5940
5924
|
r[n] = arguments[n];
|
|
5941
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
5925
|
+
return new ((t = Intl.PluralRules).bind.apply(t, yr([void 0], r, !1)))();
|
|
5942
5926
|
}, {
|
|
5943
|
-
cache:
|
|
5944
|
-
strategy:
|
|
5927
|
+
cache: Tr(e.pluralRules),
|
|
5928
|
+
strategy: xr.variadic
|
|
5945
5929
|
})
|
|
5946
5930
|
};
|
|
5947
5931
|
}
|
|
5948
|
-
var
|
|
5932
|
+
var Co = (
|
|
5949
5933
|
/** @class */
|
|
5950
5934
|
function() {
|
|
5951
5935
|
function e(t, r, n, i) {
|
|
@@ -5975,15 +5959,15 @@ var Ca = (
|
|
|
5975
5959
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
5976
5960
|
if (this.message = t, !e.__parse)
|
|
5977
5961
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
5978
|
-
var
|
|
5979
|
-
|
|
5980
|
-
var
|
|
5981
|
-
this.ast = e.__parse(t, ye(ye({},
|
|
5962
|
+
var a = i || {};
|
|
5963
|
+
a.formatters;
|
|
5964
|
+
var o = Wa(a, ["formatters"]);
|
|
5965
|
+
this.ast = e.__parse(t, ye(ye({}, o), { locale: this.resolvedLocale }));
|
|
5982
5966
|
} else
|
|
5983
5967
|
this.ast = t;
|
|
5984
5968
|
if (!Array.isArray(this.ast))
|
|
5985
5969
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
5986
|
-
this.formats =
|
|
5970
|
+
this.formats = Io(e.formats, n), this.formatters = i && i.formatters || Ro(this.formatterCache);
|
|
5987
5971
|
}
|
|
5988
5972
|
return Object.defineProperty(e, "defaultLocale", {
|
|
5989
5973
|
get: function() {
|
|
@@ -5996,7 +5980,7 @@ var Ca = (
|
|
|
5996
5980
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
5997
5981
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
5998
5982
|
}
|
|
5999
|
-
}, e.__parse =
|
|
5983
|
+
}, e.__parse = Oo, e.formats = {
|
|
6000
5984
|
number: {
|
|
6001
5985
|
integer: {
|
|
6002
5986
|
maximumFractionDigits: 0
|
|
@@ -6057,7 +6041,7 @@ var Ca = (
|
|
|
6057
6041
|
}, e;
|
|
6058
6042
|
}()
|
|
6059
6043
|
);
|
|
6060
|
-
function
|
|
6044
|
+
function Do(e, t) {
|
|
6061
6045
|
if (t == null)
|
|
6062
6046
|
return;
|
|
6063
6047
|
if (t in e)
|
|
@@ -6078,92 +6062,92 @@ function Da(e, t) {
|
|
|
6078
6062
|
n = void 0;
|
|
6079
6063
|
return n;
|
|
6080
6064
|
}
|
|
6081
|
-
const Ie = {},
|
|
6065
|
+
const Ie = {}, ko = (e, t, r) => r && (t in Ie || (Ie[t] = {}), e in Ie[t] || (Ie[t][e] = r), r), Xi = (e, t) => {
|
|
6082
6066
|
if (t == null)
|
|
6083
6067
|
return;
|
|
6084
6068
|
if (t in Ie && e in Ie[t])
|
|
6085
6069
|
return Ie[t][e];
|
|
6086
6070
|
const r = cr(t);
|
|
6087
6071
|
for (let n = 0; n < r.length; n++) {
|
|
6088
|
-
const i = r[n], s =
|
|
6072
|
+
const i = r[n], s = Uo(i, e);
|
|
6089
6073
|
if (s)
|
|
6090
|
-
return
|
|
6074
|
+
return ko(e, t, s);
|
|
6091
6075
|
}
|
|
6092
6076
|
};
|
|
6093
|
-
let
|
|
6077
|
+
let rn;
|
|
6094
6078
|
const gt = ur({});
|
|
6095
|
-
function
|
|
6096
|
-
return
|
|
6079
|
+
function Fo(e) {
|
|
6080
|
+
return rn[e] || null;
|
|
6097
6081
|
}
|
|
6098
|
-
function
|
|
6099
|
-
return e in
|
|
6082
|
+
function Yi(e) {
|
|
6083
|
+
return e in rn;
|
|
6100
6084
|
}
|
|
6101
|
-
function
|
|
6102
|
-
if (!
|
|
6085
|
+
function Uo(e, t) {
|
|
6086
|
+
if (!Yi(e))
|
|
6103
6087
|
return null;
|
|
6104
|
-
const r =
|
|
6105
|
-
return
|
|
6088
|
+
const r = Fo(e);
|
|
6089
|
+
return Do(r, t);
|
|
6106
6090
|
}
|
|
6107
|
-
function
|
|
6091
|
+
function Go(e) {
|
|
6108
6092
|
if (e == null)
|
|
6109
6093
|
return;
|
|
6110
6094
|
const t = cr(e);
|
|
6111
6095
|
for (let r = 0; r < t.length; r++) {
|
|
6112
6096
|
const n = t[r];
|
|
6113
|
-
if (
|
|
6097
|
+
if (Yi(n))
|
|
6114
6098
|
return n;
|
|
6115
6099
|
}
|
|
6116
6100
|
}
|
|
6117
|
-
function
|
|
6118
|
-
delete Ie[e], gt.update((r) => (r[e] =
|
|
6101
|
+
function zi(e, ...t) {
|
|
6102
|
+
delete Ie[e], gt.update((r) => (r[e] = Va.all([r[e] || {}, ...t]), r));
|
|
6119
6103
|
}
|
|
6120
6104
|
mt(
|
|
6121
6105
|
[gt],
|
|
6122
6106
|
([e]) => Object.keys(e)
|
|
6123
6107
|
);
|
|
6124
|
-
gt.subscribe((e) =>
|
|
6108
|
+
gt.subscribe((e) => rn = e);
|
|
6125
6109
|
const Xt = {};
|
|
6126
|
-
function
|
|
6110
|
+
function jo(e, t) {
|
|
6127
6111
|
Xt[e].delete(t), Xt[e].size === 0 && delete Xt[e];
|
|
6128
6112
|
}
|
|
6129
|
-
function
|
|
6113
|
+
function qi(e) {
|
|
6130
6114
|
return Xt[e];
|
|
6131
6115
|
}
|
|
6132
|
-
function
|
|
6116
|
+
function Vo(e) {
|
|
6133
6117
|
return cr(e).map((t) => {
|
|
6134
|
-
const r =
|
|
6118
|
+
const r = qi(t);
|
|
6135
6119
|
return [t, r ? [...r] : []];
|
|
6136
6120
|
}).filter(([, t]) => t.length > 0);
|
|
6137
6121
|
}
|
|
6138
|
-
function
|
|
6122
|
+
function Fr(e) {
|
|
6139
6123
|
return e == null ? !1 : cr(e).some(
|
|
6140
6124
|
(t) => {
|
|
6141
6125
|
var r;
|
|
6142
|
-
return (r =
|
|
6126
|
+
return (r = qi(t)) == null ? void 0 : r.size;
|
|
6143
6127
|
}
|
|
6144
6128
|
);
|
|
6145
6129
|
}
|
|
6146
|
-
function
|
|
6130
|
+
function Wo(e, t) {
|
|
6147
6131
|
return Promise.all(
|
|
6148
|
-
t.map((n) => (
|
|
6149
|
-
).then((n) =>
|
|
6132
|
+
t.map((n) => (jo(e, n), n().then((i) => i.default || i)))
|
|
6133
|
+
).then((n) => zi(e, ...n));
|
|
6150
6134
|
}
|
|
6151
6135
|
const xt = {};
|
|
6152
|
-
function
|
|
6153
|
-
if (!
|
|
6136
|
+
function Zi(e) {
|
|
6137
|
+
if (!Fr(e))
|
|
6154
6138
|
return e in xt ? xt[e] : Promise.resolve();
|
|
6155
|
-
const t =
|
|
6139
|
+
const t = Vo(e);
|
|
6156
6140
|
return xt[e] = Promise.all(
|
|
6157
6141
|
t.map(
|
|
6158
|
-
([r, n]) =>
|
|
6142
|
+
([r, n]) => Wo(r, n)
|
|
6159
6143
|
)
|
|
6160
6144
|
).then(() => {
|
|
6161
|
-
if (
|
|
6162
|
-
return
|
|
6145
|
+
if (Fr(e))
|
|
6146
|
+
return Zi(e);
|
|
6163
6147
|
delete xt[e];
|
|
6164
6148
|
}), xt[e];
|
|
6165
6149
|
}
|
|
6166
|
-
const
|
|
6150
|
+
const Xo = {
|
|
6167
6151
|
number: {
|
|
6168
6152
|
scientific: { notation: "scientific" },
|
|
6169
6153
|
engineering: { notation: "engineering" },
|
|
@@ -6192,52 +6176,52 @@ const Xa = {
|
|
|
6192
6176
|
timeZoneName: "short"
|
|
6193
6177
|
}
|
|
6194
6178
|
}
|
|
6195
|
-
},
|
|
6179
|
+
}, Yo = {
|
|
6196
6180
|
fallbackLocale: null,
|
|
6197
6181
|
loadingDelay: 200,
|
|
6198
|
-
formats:
|
|
6182
|
+
formats: Xo,
|
|
6199
6183
|
warnOnMissingMessages: !0,
|
|
6200
6184
|
handleMissingMessage: void 0,
|
|
6201
6185
|
ignoreTag: !0
|
|
6202
|
-
},
|
|
6186
|
+
}, zo = Yo;
|
|
6203
6187
|
function _t() {
|
|
6204
|
-
return
|
|
6188
|
+
return zo;
|
|
6205
6189
|
}
|
|
6206
|
-
const
|
|
6207
|
-
var
|
|
6190
|
+
const Sr = ur(!1);
|
|
6191
|
+
var qo = Object.defineProperty, Zo = Object.defineProperties, Jo = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, Qo = Object.prototype.hasOwnProperty, Ko = Object.prototype.propertyIsEnumerable, Bn = (e, t, r) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, eu = (e, t) => {
|
|
6208
6192
|
for (var r in t || (t = {}))
|
|
6209
|
-
|
|
6210
|
-
if (
|
|
6211
|
-
for (var r of
|
|
6212
|
-
|
|
6193
|
+
Qo.call(t, r) && Bn(e, r, t[r]);
|
|
6194
|
+
if (On)
|
|
6195
|
+
for (var r of On(t))
|
|
6196
|
+
Ko.call(t, r) && Bn(e, r, t[r]);
|
|
6213
6197
|
return e;
|
|
6214
|
-
}, tu = (e, t) =>
|
|
6215
|
-
let
|
|
6198
|
+
}, tu = (e, t) => Zo(e, Jo(t));
|
|
6199
|
+
let Ur;
|
|
6216
6200
|
const rr = ur(null);
|
|
6217
|
-
function
|
|
6201
|
+
function Ln(e) {
|
|
6218
6202
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6219
6203
|
}
|
|
6220
6204
|
function cr(e, t = _t().fallbackLocale) {
|
|
6221
|
-
const r =
|
|
6222
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6205
|
+
const r = Ln(e);
|
|
6206
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ln(t)])] : r;
|
|
6223
6207
|
}
|
|
6224
6208
|
function qe() {
|
|
6225
|
-
return
|
|
6209
|
+
return Ur ?? void 0;
|
|
6226
6210
|
}
|
|
6227
6211
|
rr.subscribe((e) => {
|
|
6228
|
-
|
|
6212
|
+
Ur = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6229
6213
|
});
|
|
6230
6214
|
const ru = (e) => {
|
|
6231
|
-
if (e &&
|
|
6215
|
+
if (e && Go(e) && Fr(e)) {
|
|
6232
6216
|
const { loadingDelay: t } = _t();
|
|
6233
6217
|
let r;
|
|
6234
6218
|
return typeof window < "u" && qe() != null && t ? r = window.setTimeout(
|
|
6235
|
-
() =>
|
|
6219
|
+
() => Sr.set(!0),
|
|
6236
6220
|
t
|
|
6237
|
-
) :
|
|
6221
|
+
) : Sr.set(!0), Zi(e).then(() => {
|
|
6238
6222
|
rr.set(e);
|
|
6239
6223
|
}).finally(() => {
|
|
6240
|
-
clearTimeout(r),
|
|
6224
|
+
clearTimeout(r), Sr.set(!1);
|
|
6241
6225
|
});
|
|
6242
6226
|
}
|
|
6243
6227
|
return rr.set(e);
|
|
@@ -6250,20 +6234,20 @@ const ru = (e) => {
|
|
|
6250
6234
|
return i in t ? t[i] : t[i] = e(n);
|
|
6251
6235
|
};
|
|
6252
6236
|
};
|
|
6253
|
-
var nu = Object.defineProperty, nr = Object.getOwnPropertySymbols,
|
|
6237
|
+
var nu = Object.defineProperty, nr = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Pn = (e, t, r) => t in e ? nu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nn = (e, t) => {
|
|
6254
6238
|
for (var r in t || (t = {}))
|
|
6255
|
-
|
|
6239
|
+
Ji.call(t, r) && Pn(e, r, t[r]);
|
|
6256
6240
|
if (nr)
|
|
6257
6241
|
for (var r of nr(t))
|
|
6258
|
-
|
|
6242
|
+
Qi.call(t, r) && Pn(e, r, t[r]);
|
|
6259
6243
|
return e;
|
|
6260
6244
|
}, bt = (e, t) => {
|
|
6261
6245
|
var r = {};
|
|
6262
6246
|
for (var n in e)
|
|
6263
|
-
|
|
6247
|
+
Ji.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
6264
6248
|
if (e != null && nr)
|
|
6265
6249
|
for (var n of nr(e))
|
|
6266
|
-
t.indexOf(n) < 0 &&
|
|
6250
|
+
t.indexOf(n) < 0 && Qi.call(e, n) && (r[n] = e[n]);
|
|
6267
6251
|
return r;
|
|
6268
6252
|
};
|
|
6269
6253
|
const Nt = (e, t) => {
|
|
@@ -6285,7 +6269,7 @@ const Nt = (e, t) => {
|
|
|
6285
6269
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6286
6270
|
return n ? i = Nt("date", n) : Object.keys(i).length === 0 && (i = Nt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6287
6271
|
}
|
|
6288
|
-
),
|
|
6272
|
+
), au = dr(
|
|
6289
6273
|
(e) => {
|
|
6290
6274
|
var t = e, { locale: r, format: n } = t, i = bt(t, ["locale", "format"]);
|
|
6291
6275
|
if (r == null)
|
|
@@ -6294,57 +6278,57 @@ const Nt = (e, t) => {
|
|
|
6294
6278
|
);
|
|
6295
6279
|
return n ? i = Nt("time", n) : Object.keys(i).length === 0 && (i = Nt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
6296
6280
|
}
|
|
6297
|
-
),
|
|
6281
|
+
), ou = (e = {}) => {
|
|
6298
6282
|
var t = e, {
|
|
6299
6283
|
locale: r = qe()
|
|
6300
6284
|
} = t, n = bt(t, [
|
|
6301
6285
|
"locale"
|
|
6302
6286
|
]);
|
|
6303
|
-
return iu(
|
|
6287
|
+
return iu(nn({ locale: r }, n));
|
|
6304
6288
|
}, uu = (e = {}) => {
|
|
6305
6289
|
var t = e, {
|
|
6306
6290
|
locale: r = qe()
|
|
6307
6291
|
} = t, n = bt(t, [
|
|
6308
6292
|
"locale"
|
|
6309
6293
|
]);
|
|
6310
|
-
return su(
|
|
6294
|
+
return su(nn({ locale: r }, n));
|
|
6311
6295
|
}, lu = (e = {}) => {
|
|
6312
6296
|
var t = e, {
|
|
6313
6297
|
locale: r = qe()
|
|
6314
6298
|
} = t, n = bt(t, [
|
|
6315
6299
|
"locale"
|
|
6316
6300
|
]);
|
|
6317
|
-
return
|
|
6301
|
+
return au(nn({ locale: r }, n));
|
|
6318
6302
|
}, fu = dr(
|
|
6319
6303
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6320
|
-
(e, t = qe()) => new
|
|
6304
|
+
(e, t = qe()) => new Co(e, t, _t().formats, {
|
|
6321
6305
|
ignoreTag: _t().ignoreTag
|
|
6322
6306
|
})
|
|
6323
6307
|
), hu = (e, t = {}) => {
|
|
6324
6308
|
var r, n, i, s;
|
|
6325
|
-
let
|
|
6326
|
-
typeof e == "object" && (
|
|
6309
|
+
let a = t;
|
|
6310
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
6327
6311
|
const {
|
|
6328
|
-
values:
|
|
6312
|
+
values: o,
|
|
6329
6313
|
locale: u = qe(),
|
|
6330
6314
|
default: l
|
|
6331
|
-
} =
|
|
6315
|
+
} = a;
|
|
6332
6316
|
if (u == null)
|
|
6333
6317
|
throw new Error(
|
|
6334
6318
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
6335
6319
|
);
|
|
6336
|
-
let f =
|
|
6320
|
+
let f = Xi(e, u);
|
|
6337
6321
|
if (!f)
|
|
6338
6322
|
f = (s = (i = (n = (r = _t()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6339
6323
|
else if (typeof f != "string")
|
|
6340
6324
|
return console.warn(
|
|
6341
6325
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
6342
6326
|
), f;
|
|
6343
|
-
if (!
|
|
6327
|
+
if (!o)
|
|
6344
6328
|
return f;
|
|
6345
6329
|
let h = f;
|
|
6346
6330
|
try {
|
|
6347
|
-
h = fu(f, u).format(
|
|
6331
|
+
h = fu(f, u).format(o);
|
|
6348
6332
|
} catch (c) {
|
|
6349
6333
|
c instanceof Error && console.warn(
|
|
6350
6334
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -6352,7 +6336,7 @@ const Nt = (e, t) => {
|
|
|
6352
6336
|
);
|
|
6353
6337
|
}
|
|
6354
6338
|
return h;
|
|
6355
|
-
}, cu = (e, t) => lu(t).format(e), du = (e, t) => uu(t).format(e), pu = (e, t) =>
|
|
6339
|
+
}, cu = (e, t) => lu(t).format(e), du = (e, t) => uu(t).format(e), pu = (e, t) => ou(t).format(e), vu = (e, t = qe()) => Xi(e, t), _u = mt([Xe, gt], () => hu);
|
|
6356
6340
|
mt([Xe], () => cu);
|
|
6357
6341
|
mt([Xe], () => du);
|
|
6358
6342
|
mt([Xe], () => pu);
|
|
@@ -6363,17 +6347,17 @@ function mu({ withLocale: e, translations: t }) {
|
|
|
6363
6347
|
});
|
|
6364
6348
|
}
|
|
6365
6349
|
function gu(e, t) {
|
|
6366
|
-
|
|
6350
|
+
zi(e, t);
|
|
6367
6351
|
}
|
|
6368
6352
|
const bu = (e) => {
|
|
6369
|
-
let t = /* @__PURE__ */ te(void 0), r = /* @__PURE__ */ te(void 0), n = /* @__PURE__ */ te(void 0), i = /* @__PURE__ */ te(void 0), s = /* @__PURE__ */ te(!1),
|
|
6370
|
-
const
|
|
6353
|
+
let t = /* @__PURE__ */ te(void 0), r = /* @__PURE__ */ te(void 0), n = /* @__PURE__ */ te(void 0), i = /* @__PURE__ */ te(void 0), s = /* @__PURE__ */ te(!1), a = /* @__PURE__ */ te(void 0);
|
|
6354
|
+
const o = async () => {
|
|
6371
6355
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h, onLevelLoaded: c } = e();
|
|
6372
6356
|
if (!(!u || !l)) {
|
|
6373
|
-
Y(s, !0), Y(
|
|
6357
|
+
Y(s, !0), Y(a, void 0);
|
|
6374
6358
|
try {
|
|
6375
6359
|
const d = [
|
|
6376
|
-
|
|
6360
|
+
wa({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6377
6361
|
const b = p.level;
|
|
6378
6362
|
b.name = b.presentation?.displayName || b.name, b.spendablePoints = p.spendableWallet?.total.points || 0, Y(t, b, !0), Y(n, p.loyaltyWallet?.total, !0), Y(i, p.spendableWallet?.total, !0), c?.({ elevateLevel: b }), c?.({
|
|
6379
6363
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
@@ -6381,24 +6365,24 @@ const bu = (e) => {
|
|
|
6381
6365
|
});
|
|
6382
6366
|
})
|
|
6383
6367
|
];
|
|
6384
|
-
h && d.push(
|
|
6368
|
+
h && d.push(Ta({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6385
6369
|
Y(r, p, !0);
|
|
6386
|
-
})), await Promise.all(d), await
|
|
6387
|
-
calculatedLevelFlag:
|
|
6370
|
+
})), await Promise.all(d), await oa(), A(r) && A(t) && c?.({
|
|
6371
|
+
calculatedLevelFlag: Sa(A(r), A(t).loyaltyPoints ?? 0)
|
|
6388
6372
|
});
|
|
6389
6373
|
} catch (d) {
|
|
6390
|
-
Y(
|
|
6374
|
+
Y(a, d, !0), console.error("Failed to load elevate info:", d);
|
|
6391
6375
|
} finally {
|
|
6392
6376
|
Y(s, !1);
|
|
6393
6377
|
}
|
|
6394
6378
|
}
|
|
6395
6379
|
};
|
|
6396
|
-
return
|
|
6380
|
+
return cn(() => {
|
|
6397
6381
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h } = e();
|
|
6398
|
-
|
|
6399
|
-
}),
|
|
6382
|
+
o();
|
|
6383
|
+
}), cn(() => {
|
|
6400
6384
|
const u = () => {
|
|
6401
|
-
|
|
6385
|
+
o();
|
|
6402
6386
|
};
|
|
6403
6387
|
return window.addEventListener("redeemRewardButton", u), () => window.removeEventListener("redeemRewardButton", u);
|
|
6404
6388
|
}), {
|
|
@@ -6418,9 +6402,9 @@ const bu = (e) => {
|
|
|
6418
6402
|
return A(s);
|
|
6419
6403
|
},
|
|
6420
6404
|
get error() {
|
|
6421
|
-
return A(
|
|
6405
|
+
return A(a);
|
|
6422
6406
|
},
|
|
6423
|
-
reload:
|
|
6407
|
+
reload: o
|
|
6424
6408
|
};
|
|
6425
6409
|
}, yu = {
|
|
6426
6410
|
en: {
|
|
@@ -6466,7 +6450,7 @@ const bu = (e) => {
|
|
|
6466
6450
|
pointsToExpire: "{points} token lejár ekkor: {date}"
|
|
6467
6451
|
}
|
|
6468
6452
|
};
|
|
6469
|
-
var Eu = /* @__PURE__ */
|
|
6453
|
+
var Eu = /* @__PURE__ */ tn('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'), xu = /* @__PURE__ */ tn('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'), wu = /* @__PURE__ */ tn('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');
|
|
6470
6454
|
const Tu = {
|
|
6471
6455
|
hash: "svelte-1hsy08w",
|
|
6472
6456
|
code: `.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;background:linear-gradient(
|
|
@@ -6487,20 +6471,20 @@ const Tu = {
|
|
|
6487
6471
|
}
|
|
6488
6472
|
}`
|
|
6489
6473
|
};
|
|
6490
|
-
function
|
|
6491
|
-
|
|
6492
|
-
const r = () =>
|
|
6474
|
+
function Ki(e, t) {
|
|
6475
|
+
jr(t, !0), ga(e, Tu);
|
|
6476
|
+
const r = () => Is(_u, "$_", n), [n, i] = Rs(), s = be(t, "apiEndpoint", 7, ""), a = be(t, "userSession", 7, ""), o = be(t, "locale", 7, ""), u = be(t, "dateFormat", 7, er), l = be(t, "onLevelLoaded", 7, (B) => {
|
|
6493
6477
|
});
|
|
6494
|
-
mu({ withLocale:
|
|
6478
|
+
mu({ withLocale: o(), translations: {} }), Object.entries(yu).forEach(([B, K]) => {
|
|
6495
6479
|
gu(B, K);
|
|
6496
6480
|
});
|
|
6497
6481
|
const f = bu(() => ({
|
|
6498
6482
|
apiEndpoint: s(),
|
|
6499
|
-
userSession:
|
|
6500
|
-
locale:
|
|
6483
|
+
userSession: a(),
|
|
6484
|
+
locale: o(),
|
|
6501
6485
|
loadLevels: !1,
|
|
6502
6486
|
onLevelLoaded: l()
|
|
6503
|
-
})), h = /* @__PURE__ */ tt(() => f.spendableWalletTotal), c = /* @__PURE__ */ tt(() => A(h)?.points ?? 0), d = /* @__PURE__ */ tt(() => A(c).toLocaleString()), p = /* @__PURE__ */ tt(() => f.loading && A(h) === void 0), b = /* @__PURE__ */ tt(() => [...A(h)?.aboutToExpire ?? []].filter((B) => B.points > 0).sort((B, K) => new Date(B.expireTime).getTime() - new Date(K.expireTime).getTime())[0]), N = /* @__PURE__ */ tt(() => A(b) ?
|
|
6487
|
+
})), h = /* @__PURE__ */ tt(() => f.spendableWalletTotal), c = /* @__PURE__ */ tt(() => A(h)?.points ?? 0), d = /* @__PURE__ */ tt(() => A(c).toLocaleString()), p = /* @__PURE__ */ tt(() => f.loading && A(h) === void 0), b = /* @__PURE__ */ tt(() => [...A(h)?.aboutToExpire ?? []].filter((B) => B.points > 0).sort((B, K) => new Date(B.expireTime).getTime() - new Date(K.expireTime).getTime())[0]), N = /* @__PURE__ */ tt(() => A(b) ? Oa(A(b).expireTime, u()) : "");
|
|
6504
6488
|
var G = {
|
|
6505
6489
|
get apiEndpoint() {
|
|
6506
6490
|
return s();
|
|
@@ -6509,16 +6493,16 @@ function Qi(e, t) {
|
|
|
6509
6493
|
s(B), ue();
|
|
6510
6494
|
},
|
|
6511
6495
|
get userSession() {
|
|
6512
|
-
return
|
|
6496
|
+
return a();
|
|
6513
6497
|
},
|
|
6514
6498
|
set userSession(B = "") {
|
|
6515
|
-
|
|
6499
|
+
a(B), ue();
|
|
6516
6500
|
},
|
|
6517
6501
|
get locale() {
|
|
6518
|
-
return
|
|
6502
|
+
return o();
|
|
6519
6503
|
},
|
|
6520
6504
|
set locale(B = "") {
|
|
6521
|
-
|
|
6505
|
+
o(B), ue();
|
|
6522
6506
|
},
|
|
6523
6507
|
get dateFormat() {
|
|
6524
6508
|
return u();
|
|
@@ -6533,21 +6517,21 @@ function Qi(e, t) {
|
|
|
6533
6517
|
}) {
|
|
6534
6518
|
l(B), ue();
|
|
6535
6519
|
}
|
|
6536
|
-
}, W =
|
|
6520
|
+
}, W = ca(), k = qs(W);
|
|
6537
6521
|
{
|
|
6538
|
-
var
|
|
6522
|
+
var He = (B) => {
|
|
6539
6523
|
var K = Eu();
|
|
6540
6524
|
St(B, K);
|
|
6541
6525
|
}, Z = (B) => {
|
|
6542
|
-
var K = wu(),
|
|
6526
|
+
var K = wu(), De = nt(K), C = nt(De), $ = nt(C), Ze = nt($);
|
|
6543
6527
|
Ke($);
|
|
6544
|
-
var Je =
|
|
6528
|
+
var Je = hn($, 2), y = nt(Je, !0);
|
|
6545
6529
|
Ke(Je);
|
|
6546
|
-
var m =
|
|
6530
|
+
var m = hn(Je, 2);
|
|
6547
6531
|
{
|
|
6548
6532
|
var v = (g) => {
|
|
6549
6533
|
var _ = xu(), E = nt(_, !0);
|
|
6550
|
-
Ke(_),
|
|
6534
|
+
Ke(_), dn((x) => br(E, x), [
|
|
6551
6535
|
() => r()("pointsToExpire", {
|
|
6552
6536
|
values: {
|
|
6553
6537
|
points: A(b).points.toLocaleString(),
|
|
@@ -6556,28 +6540,28 @@ function Qi(e, t) {
|
|
|
6556
6540
|
})
|
|
6557
6541
|
]), St(g, _);
|
|
6558
6542
|
};
|
|
6559
|
-
|
|
6543
|
+
bn(m, (g) => {
|
|
6560
6544
|
A(b) && g(v);
|
|
6561
6545
|
});
|
|
6562
6546
|
}
|
|
6563
|
-
Ke(C), Ke(
|
|
6547
|
+
Ke(C), Ke(De), Ke(K), dn(
|
|
6564
6548
|
(g, _) => {
|
|
6565
|
-
|
|
6566
|
-
${g ?? ""}`),
|
|
6549
|
+
br(Ze, `${A(d) ?? ""}
|
|
6550
|
+
${g ?? ""}`), br(y, _);
|
|
6567
6551
|
},
|
|
6568
6552
|
[() => r()("tokens"), () => r()("tokenBalance")]
|
|
6569
6553
|
), St(B, K);
|
|
6570
6554
|
};
|
|
6571
|
-
|
|
6572
|
-
A(p) ? B(
|
|
6555
|
+
bn(k, (B) => {
|
|
6556
|
+
A(p) ? B(He) : B(Z, -1);
|
|
6573
6557
|
});
|
|
6574
6558
|
}
|
|
6575
6559
|
St(e, W);
|
|
6576
|
-
var Q =
|
|
6560
|
+
var Q = Vr(G);
|
|
6577
6561
|
return i(), Q;
|
|
6578
6562
|
}
|
|
6579
|
-
|
|
6580
|
-
|
|
6563
|
+
Hi(
|
|
6564
|
+
Ki,
|
|
6581
6565
|
{
|
|
6582
6566
|
apiEndpoint: {},
|
|
6583
6567
|
userSession: {},
|
|
@@ -6589,10 +6573,10 @@ Si(
|
|
|
6589
6573
|
[],
|
|
6590
6574
|
{ mode: "open" }
|
|
6591
6575
|
);
|
|
6592
|
-
function
|
|
6593
|
-
|
|
6594
|
-
let r = be(t, "apiEndpoint", 7, ""), n = be(t, "userSession", 7, ""), i = be(t, "locale", 7, ""), s = be(t, "dateFormat", 7, er),
|
|
6595
|
-
var
|
|
6576
|
+
function es(e, t) {
|
|
6577
|
+
jr(t, !0);
|
|
6578
|
+
let r = be(t, "apiEndpoint", 7, ""), n = be(t, "userSession", 7, ""), i = be(t, "locale", 7, ""), s = be(t, "dateFormat", 7, er), a = be(t, "onLevelLoaded");
|
|
6579
|
+
var o = {
|
|
6596
6580
|
get apiEndpoint() {
|
|
6597
6581
|
return r();
|
|
6598
6582
|
},
|
|
@@ -6618,13 +6602,13 @@ function Ki(e, t) {
|
|
|
6618
6602
|
s(u), ue();
|
|
6619
6603
|
},
|
|
6620
6604
|
get onLevelLoaded() {
|
|
6621
|
-
return
|
|
6605
|
+
return a();
|
|
6622
6606
|
},
|
|
6623
6607
|
set onLevelLoaded(u) {
|
|
6624
|
-
|
|
6608
|
+
a(u), ue();
|
|
6625
6609
|
}
|
|
6626
6610
|
};
|
|
6627
|
-
return
|
|
6611
|
+
return Ki(e, {
|
|
6628
6612
|
get apiEndpoint() {
|
|
6629
6613
|
return r();
|
|
6630
6614
|
},
|
|
@@ -6638,12 +6622,12 @@ function Ki(e, t) {
|
|
|
6638
6622
|
return s();
|
|
6639
6623
|
},
|
|
6640
6624
|
get onLevelLoaded() {
|
|
6641
|
-
return
|
|
6625
|
+
return a();
|
|
6642
6626
|
}
|
|
6643
|
-
}),
|
|
6627
|
+
}), Vr(o);
|
|
6644
6628
|
}
|
|
6645
|
-
customElements.define("loyalty-points-card",
|
|
6646
|
-
|
|
6629
|
+
customElements.define("loyalty-points-card", Hi(
|
|
6630
|
+
es,
|
|
6647
6631
|
{
|
|
6648
6632
|
apiEndpoint: {},
|
|
6649
6633
|
userSession: {},
|
|
@@ -6656,9 +6640,9 @@ customElements.define("loyalty-points-card", Si(
|
|
|
6656
6640
|
));
|
|
6657
6641
|
const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6658
6642
|
__proto__: null,
|
|
6659
|
-
default:
|
|
6643
|
+
default: es
|
|
6660
6644
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6661
6645
|
export {
|
|
6662
|
-
|
|
6646
|
+
Ki as L,
|
|
6663
6647
|
Hu as a
|
|
6664
6648
|
};
|