@everymatrix/loyalty-points-card 0.1.6 → 0.1.8
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-B0sTfuOS.cjs +21 -0
- package/components/LoyaltyPointsCard-BXP4Zc4w.js +5960 -0
- package/components/{LoyaltyPointsCard-COfsvr7r.js → LoyaltyPointsCard-oERfKJkU.js} +1505 -1326
- package/es2015/loyalty-points-card.cjs +1 -0
- package/es2015/loyalty-points-card.js +16 -0
- package/package.json +9 -18
- package/components/LoyaltyPointsCard-kmDehZfu.cjs +0 -5
- package/svelte/loyalty-points-card.js +0 -4753
- package/wc/loyalty-points-card.cjs +0 -1
- package/wc/loyalty-points-card.js +0 -14
|
@@ -1,125 +1,130 @@
|
|
|
1
|
-
const
|
|
2
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
1
|
+
const ci = "5";
|
|
2
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ci);
|
|
3
|
+
const di = 2, Gr = "[", ir = "[!", kr = "]", Ie = {}, N = Symbol(), kt = !1;
|
|
4
|
+
var pi = Array.isArray, vi = Array.prototype.indexOf, _i = Array.from, _t = Object.keys, Je = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, mi = Object.prototype, bi = Array.prototype, gi = Object.getPrototypeOf, br = Object.isExtensible;
|
|
5
|
+
const de = () => {
|
|
6
6
|
};
|
|
7
7
|
function jr(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++)
|
|
9
9
|
e[t]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Vr() {
|
|
12
12
|
var e, t, r = new Promise((n, i) => {
|
|
13
13
|
e = n, t = i;
|
|
14
14
|
});
|
|
15
15
|
return { promise: r, resolve: e, reject: t };
|
|
16
16
|
}
|
|
17
|
-
const O = 2,
|
|
17
|
+
const O = 2, mt = 4, St = 8, Xr = 1 << 24, ue = 16, le = 32, me = 64, sr = 128, X = 512, I = 1024, C = 2048, fe = 4096, K = 8192, ie = 16384, Ht = 32768, Re = 65536, gr = 1 << 17, Wr = 1 << 18, Se = 1 << 19, yi = 1 << 20, we = 32768, jt = 1 << 21, or = 1 << 22, pe = 1 << 23, Ct = Symbol("$state"), Ei = Symbol("legacy props"), Pe = new class extends Error {
|
|
18
18
|
name = "StaleReactionError";
|
|
19
19
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
20
|
-
}(),
|
|
21
|
-
function
|
|
20
|
+
}(), ar = 3, it = 8;
|
|
21
|
+
function xi() {
|
|
22
22
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function wi(e) {
|
|
25
25
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ti() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Si(e) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Hi() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ai() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
41
|
-
}
|
|
42
|
-
function Ti() {
|
|
39
|
+
function Bi() {
|
|
43
40
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
44
41
|
}
|
|
45
|
-
function
|
|
42
|
+
function Pi() {
|
|
46
43
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
47
44
|
}
|
|
48
|
-
function
|
|
45
|
+
function Ni() {
|
|
49
46
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
50
47
|
}
|
|
51
|
-
function
|
|
48
|
+
function Oi() {
|
|
52
49
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
53
50
|
}
|
|
54
|
-
function
|
|
51
|
+
function At(e) {
|
|
55
52
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
56
53
|
}
|
|
57
|
-
function
|
|
54
|
+
function Li() {
|
|
58
55
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
59
56
|
}
|
|
60
|
-
let
|
|
61
|
-
function
|
|
62
|
-
|
|
57
|
+
let A = !1;
|
|
58
|
+
function Ne(e) {
|
|
59
|
+
A = e;
|
|
63
60
|
}
|
|
64
|
-
let
|
|
65
|
-
function
|
|
61
|
+
let E;
|
|
62
|
+
function Y(e) {
|
|
66
63
|
if (e === null)
|
|
67
|
-
throw
|
|
68
|
-
return
|
|
64
|
+
throw At(), Ie;
|
|
65
|
+
return E = e;
|
|
69
66
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
67
|
+
function ur() {
|
|
68
|
+
return Y(/* @__PURE__ */ he(E));
|
|
72
69
|
}
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
-
if (/* @__PURE__ */
|
|
76
|
-
throw
|
|
77
|
-
|
|
70
|
+
function Xe(e) {
|
|
71
|
+
if (A) {
|
|
72
|
+
if (/* @__PURE__ */ he(E) !== null)
|
|
73
|
+
throw At(), Ie;
|
|
74
|
+
E = e;
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
|
-
function
|
|
81
|
-
if (
|
|
82
|
-
for (var t = e, r =
|
|
77
|
+
function Ii(e = 1) {
|
|
78
|
+
if (A) {
|
|
79
|
+
for (var t = e, r = E; t--; )
|
|
83
80
|
r = /** @type {TemplateNode} */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
81
|
+
/* @__PURE__ */ he(r);
|
|
82
|
+
E = r;
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
|
-
function
|
|
89
|
-
for (var t = 0, r =
|
|
90
|
-
if (r.nodeType ===
|
|
85
|
+
function zr(e = !0) {
|
|
86
|
+
for (var t = 0, r = E; ; ) {
|
|
87
|
+
if (r.nodeType === it) {
|
|
91
88
|
var n = (
|
|
92
89
|
/** @type {Comment} */
|
|
93
90
|
r.data
|
|
94
91
|
);
|
|
95
|
-
if (n ===
|
|
92
|
+
if (n === kr) {
|
|
96
93
|
if (t === 0) return r;
|
|
97
94
|
t -= 1;
|
|
98
|
-
} else (n ===
|
|
95
|
+
} else (n === Gr || n === ir) && (t += 1);
|
|
99
96
|
}
|
|
100
97
|
var i = (
|
|
101
98
|
/** @type {TemplateNode} */
|
|
102
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ he(r)
|
|
103
100
|
);
|
|
104
101
|
e && r.remove(), r = i;
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
|
-
function
|
|
104
|
+
function Ri(e) {
|
|
105
|
+
if (!e || e.nodeType !== it)
|
|
106
|
+
throw At(), Ie;
|
|
107
|
+
return (
|
|
108
|
+
/** @type {Comment} */
|
|
109
|
+
e.data
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function qr(e) {
|
|
108
113
|
return e === this.v;
|
|
109
114
|
}
|
|
110
|
-
function
|
|
115
|
+
function Zr(e, t) {
|
|
111
116
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
112
117
|
}
|
|
113
|
-
function
|
|
114
|
-
return !
|
|
118
|
+
function Ci(e) {
|
|
119
|
+
return !Zr(e, this.v);
|
|
115
120
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
121
|
+
let Mi = !1, W = null;
|
|
122
|
+
function Ce(e) {
|
|
123
|
+
W = e;
|
|
119
124
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
p:
|
|
125
|
+
function Yr(e, t = !1, r) {
|
|
126
|
+
W = {
|
|
127
|
+
p: W,
|
|
123
128
|
i: !1,
|
|
124
129
|
c: null,
|
|
125
130
|
e: null,
|
|
@@ -128,55 +133,55 @@ function sr(e, t = !1, r) {
|
|
|
128
133
|
l: null
|
|
129
134
|
};
|
|
130
135
|
}
|
|
131
|
-
function
|
|
136
|
+
function Qr(e) {
|
|
132
137
|
var t = (
|
|
133
138
|
/** @type {ComponentContext} */
|
|
134
|
-
|
|
139
|
+
W
|
|
135
140
|
), r = t.e;
|
|
136
141
|
if (r !== null) {
|
|
137
142
|
t.e = null;
|
|
138
143
|
for (var n of r)
|
|
139
144
|
mn(n);
|
|
140
145
|
}
|
|
141
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
146
|
+
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
|
|
142
147
|
{};
|
|
143
148
|
}
|
|
144
149
|
function Jr() {
|
|
145
150
|
return !0;
|
|
146
151
|
}
|
|
147
|
-
let
|
|
152
|
+
let ge = [];
|
|
148
153
|
function Kr() {
|
|
149
|
-
var e =
|
|
150
|
-
|
|
154
|
+
var e = ge;
|
|
155
|
+
ge = [], jr(e);
|
|
151
156
|
}
|
|
152
|
-
function
|
|
153
|
-
if (
|
|
154
|
-
var t =
|
|
157
|
+
function lr(e) {
|
|
158
|
+
if (ge.length === 0 && !Ze) {
|
|
159
|
+
var t = ge;
|
|
155
160
|
queueMicrotask(() => {
|
|
156
|
-
t ===
|
|
161
|
+
t === ge && Kr();
|
|
157
162
|
});
|
|
158
163
|
}
|
|
159
|
-
|
|
164
|
+
ge.push(e);
|
|
160
165
|
}
|
|
161
|
-
function
|
|
162
|
-
for (;
|
|
166
|
+
function $i() {
|
|
167
|
+
for (; ge.length > 0; )
|
|
163
168
|
Kr();
|
|
164
169
|
}
|
|
165
170
|
function en(e) {
|
|
166
171
|
var t = g;
|
|
167
172
|
if (t === null)
|
|
168
|
-
return m.f |=
|
|
169
|
-
if (t.f &
|
|
170
|
-
|
|
173
|
+
return m.f |= pe, e;
|
|
174
|
+
if (t.f & Ht)
|
|
175
|
+
Me(e, t);
|
|
171
176
|
else {
|
|
172
|
-
if (!(t.f &
|
|
177
|
+
if (!(t.f & sr))
|
|
173
178
|
throw e;
|
|
174
179
|
t.b.error(e);
|
|
175
180
|
}
|
|
176
181
|
}
|
|
177
|
-
function
|
|
182
|
+
function Me(e, t) {
|
|
178
183
|
for (; t !== null; ) {
|
|
179
|
-
if (t.f &
|
|
184
|
+
if (t.f & sr)
|
|
180
185
|
try {
|
|
181
186
|
t.b.error(e);
|
|
182
187
|
return;
|
|
@@ -187,12 +192,12 @@ function Ie(e, t) {
|
|
|
187
192
|
}
|
|
188
193
|
throw e;
|
|
189
194
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
e.f = e.f &
|
|
195
|
+
const Di = -7169;
|
|
196
|
+
function P(e, t) {
|
|
197
|
+
e.f = e.f & Di | t;
|
|
193
198
|
}
|
|
194
|
-
function
|
|
195
|
-
e.f &
|
|
199
|
+
function fr(e) {
|
|
200
|
+
e.f & X || e.deps === null ? P(e, I) : P(e, fe);
|
|
196
201
|
}
|
|
197
202
|
function tn(e) {
|
|
198
203
|
if (e !== null)
|
|
@@ -203,10 +208,10 @@ function tn(e) {
|
|
|
203
208
|
));
|
|
204
209
|
}
|
|
205
210
|
function rn(e, t, r) {
|
|
206
|
-
e.f &
|
|
211
|
+
e.f & C ? t.add(e) : e.f & fe && r.add(e), tn(e.deps), P(e, I);
|
|
207
212
|
}
|
|
208
|
-
const
|
|
209
|
-
let S = null, z = null,
|
|
213
|
+
const at = /* @__PURE__ */ new Set();
|
|
214
|
+
let S = null, z = null, V = [], Bt = null, Vt = !1, Ze = !1;
|
|
210
215
|
class q {
|
|
211
216
|
committed = !1;
|
|
212
217
|
/**
|
|
@@ -235,27 +240,27 @@ class q {
|
|
|
235
240
|
/**
|
|
236
241
|
* The number of async effects that are currently in flight
|
|
237
242
|
*/
|
|
238
|
-
#
|
|
243
|
+
#r = 0;
|
|
239
244
|
/**
|
|
240
245
|
* The number of async effects that are currently in flight, _not_ inside a pending boundary
|
|
241
246
|
*/
|
|
242
|
-
#
|
|
247
|
+
#s = 0;
|
|
243
248
|
/**
|
|
244
249
|
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
245
250
|
* TODO replace with Promise.withResolvers once supported widely enough
|
|
246
251
|
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
247
252
|
*/
|
|
248
|
-
#
|
|
253
|
+
#o = null;
|
|
249
254
|
/**
|
|
250
255
|
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
251
256
|
* @type {Set<Effect>}
|
|
252
257
|
*/
|
|
253
|
-
#
|
|
258
|
+
#i = /* @__PURE__ */ new Set();
|
|
254
259
|
/**
|
|
255
260
|
* Deferred effects that are MAYBE_DIRTY
|
|
256
261
|
* @type {Set<Effect>}
|
|
257
262
|
*/
|
|
258
|
-
#
|
|
263
|
+
#n = /* @__PURE__ */ new Set();
|
|
259
264
|
/**
|
|
260
265
|
* A set of branches that still exist, but will be destroyed when this batch
|
|
261
266
|
* is committed — we skip over these during `process`
|
|
@@ -264,18 +269,18 @@ class q {
|
|
|
264
269
|
skipped_effects = /* @__PURE__ */ new Set();
|
|
265
270
|
is_fork = !1;
|
|
266
271
|
is_deferred() {
|
|
267
|
-
return this.is_fork || this.#
|
|
272
|
+
return this.is_fork || this.#s > 0;
|
|
268
273
|
}
|
|
269
274
|
/**
|
|
270
275
|
*
|
|
271
276
|
* @param {Effect[]} root_effects
|
|
272
277
|
*/
|
|
273
278
|
process(t) {
|
|
274
|
-
|
|
279
|
+
V = [], this.apply();
|
|
275
280
|
var r = [], n = [];
|
|
276
281
|
for (const i of t)
|
|
277
|
-
this.#
|
|
278
|
-
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null,
|
|
282
|
+
this.#a(i, r, n);
|
|
283
|
+
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null, yr(n), yr(r), this.#o?.resolve()), z = null;
|
|
279
284
|
}
|
|
280
285
|
/**
|
|
281
286
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -284,12 +289,12 @@ class q {
|
|
|
284
289
|
* @param {Effect[]} effects
|
|
285
290
|
* @param {Effect[]} render_effects
|
|
286
291
|
*/
|
|
287
|
-
#
|
|
288
|
-
t.f ^=
|
|
292
|
+
#a(t, r, n) {
|
|
293
|
+
t.f ^= I;
|
|
289
294
|
for (var i = t.first, s = null; i !== null; ) {
|
|
290
|
-
var o = i.f, a = (o & (
|
|
291
|
-
if (!
|
|
292
|
-
a ? i.f ^=
|
|
295
|
+
var o = i.f, a = (o & (le | me)) !== 0, u = a && (o & I) !== 0, l = u || (o & K) !== 0 || this.skipped_effects.has(i);
|
|
296
|
+
if (!l && i.fn !== null) {
|
|
297
|
+
a ? i.f ^= I : s !== null && o & (mt | St | Xr) ? s.b.defer_effect(i) : o & mt ? r.push(i) : ot(i) && (o & ue && this.#i.add(i), et(i));
|
|
293
298
|
var f = i.first;
|
|
294
299
|
if (f !== null) {
|
|
295
300
|
i = f;
|
|
@@ -306,7 +311,7 @@ class q {
|
|
|
306
311
|
*/
|
|
307
312
|
#u(t) {
|
|
308
313
|
for (var r = 0; r < t.length; r += 1)
|
|
309
|
-
rn(t[r], this.#
|
|
314
|
+
rn(t[r], this.#i, this.#n);
|
|
310
315
|
}
|
|
311
316
|
/**
|
|
312
317
|
* Associate a change to a given source with the current
|
|
@@ -315,7 +320,7 @@ class q {
|
|
|
315
320
|
* @param {any} value
|
|
316
321
|
*/
|
|
317
322
|
capture(t, r) {
|
|
318
|
-
r !==
|
|
323
|
+
r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & pe || (this.current.set(t, t.v), z?.set(t, t.v));
|
|
319
324
|
}
|
|
320
325
|
activate() {
|
|
321
326
|
S = this, this.apply();
|
|
@@ -324,10 +329,10 @@ class q {
|
|
|
324
329
|
S === this && (S = null, z = null);
|
|
325
330
|
}
|
|
326
331
|
flush() {
|
|
327
|
-
if (this.activate(),
|
|
332
|
+
if (this.activate(), V.length > 0) {
|
|
328
333
|
if (nn(), S !== null && S !== this)
|
|
329
334
|
return;
|
|
330
|
-
} else this.#
|
|
335
|
+
} else this.#r === 0 && this.process([]);
|
|
331
336
|
this.deactivate();
|
|
332
337
|
}
|
|
333
338
|
discard() {
|
|
@@ -335,26 +340,26 @@ class q {
|
|
|
335
340
|
this.#t.clear();
|
|
336
341
|
}
|
|
337
342
|
#l() {
|
|
338
|
-
if (this.#
|
|
343
|
+
if (this.#s === 0) {
|
|
339
344
|
for (const t of this.#e) t();
|
|
340
345
|
this.#e.clear();
|
|
341
346
|
}
|
|
342
|
-
this.#
|
|
347
|
+
this.#r === 0 && this.#f();
|
|
343
348
|
}
|
|
344
349
|
#f() {
|
|
345
|
-
if (
|
|
350
|
+
if (at.size > 1) {
|
|
346
351
|
this.previous.clear();
|
|
347
352
|
var t = z, r = !0;
|
|
348
|
-
for (const i of
|
|
353
|
+
for (const i of at) {
|
|
349
354
|
if (i === this) {
|
|
350
355
|
r = !1;
|
|
351
356
|
continue;
|
|
352
357
|
}
|
|
353
358
|
const s = [];
|
|
354
|
-
for (const [a,
|
|
359
|
+
for (const [a, u] of this.current) {
|
|
355
360
|
if (i.current.has(a))
|
|
356
|
-
if (r &&
|
|
357
|
-
i.current.set(a,
|
|
361
|
+
if (r && u !== i.current.get(a))
|
|
362
|
+
i.current.set(a, u);
|
|
358
363
|
else
|
|
359
364
|
continue;
|
|
360
365
|
s.push(a);
|
|
@@ -363,43 +368,43 @@ class q {
|
|
|
363
368
|
continue;
|
|
364
369
|
const o = [...i.current.keys()].filter((a) => !this.current.has(a));
|
|
365
370
|
if (o.length > 0) {
|
|
366
|
-
var n =
|
|
367
|
-
|
|
368
|
-
const a = /* @__PURE__ */ new Set(),
|
|
369
|
-
for (const
|
|
370
|
-
sn(
|
|
371
|
-
if (
|
|
371
|
+
var n = V;
|
|
372
|
+
V = [];
|
|
373
|
+
const a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
374
|
+
for (const l of s)
|
|
375
|
+
sn(l, o, a, u);
|
|
376
|
+
if (V.length > 0) {
|
|
372
377
|
S = i, i.apply();
|
|
373
|
-
for (const
|
|
374
|
-
i.#
|
|
378
|
+
for (const l of V)
|
|
379
|
+
i.#a(l, [], []);
|
|
375
380
|
i.deactivate();
|
|
376
381
|
}
|
|
377
|
-
|
|
382
|
+
V = n;
|
|
378
383
|
}
|
|
379
384
|
}
|
|
380
385
|
S = null, z = t;
|
|
381
386
|
}
|
|
382
|
-
this.committed = !0,
|
|
387
|
+
this.committed = !0, at.delete(this);
|
|
383
388
|
}
|
|
384
389
|
/**
|
|
385
390
|
*
|
|
386
391
|
* @param {boolean} blocking
|
|
387
392
|
*/
|
|
388
393
|
increment(t) {
|
|
389
|
-
this.#
|
|
394
|
+
this.#r += 1, t && (this.#s += 1);
|
|
390
395
|
}
|
|
391
396
|
/**
|
|
392
397
|
*
|
|
393
398
|
* @param {boolean} blocking
|
|
394
399
|
*/
|
|
395
400
|
decrement(t) {
|
|
396
|
-
this.#
|
|
401
|
+
this.#r -= 1, t && (this.#s -= 1), this.revive();
|
|
397
402
|
}
|
|
398
403
|
revive() {
|
|
404
|
+
for (const t of this.#i)
|
|
405
|
+
this.#n.delete(t), P(t, C), oe(t);
|
|
399
406
|
for (const t of this.#n)
|
|
400
|
-
|
|
401
|
-
for (const t of this.#r)
|
|
402
|
-
N(t, ie), ce(t);
|
|
407
|
+
P(t, fe), oe(t);
|
|
403
408
|
this.flush();
|
|
404
409
|
}
|
|
405
410
|
/** @param {() => void} fn */
|
|
@@ -411,12 +416,12 @@ class q {
|
|
|
411
416
|
this.#t.add(t);
|
|
412
417
|
}
|
|
413
418
|
settled() {
|
|
414
|
-
return (this.#
|
|
419
|
+
return (this.#o ??= Vr()).promise;
|
|
415
420
|
}
|
|
416
421
|
static ensure() {
|
|
417
422
|
if (S === null) {
|
|
418
423
|
const t = S = new q();
|
|
419
|
-
|
|
424
|
+
at.add(S), Ze || q.enqueue(() => {
|
|
420
425
|
S === t && t.flush();
|
|
421
426
|
});
|
|
422
427
|
}
|
|
@@ -424,73 +429,73 @@ class q {
|
|
|
424
429
|
}
|
|
425
430
|
/** @param {() => void} task */
|
|
426
431
|
static enqueue(t) {
|
|
427
|
-
|
|
432
|
+
lr(t);
|
|
428
433
|
}
|
|
429
434
|
apply() {
|
|
430
435
|
}
|
|
431
436
|
}
|
|
432
437
|
function Oe(e) {
|
|
433
|
-
var t =
|
|
434
|
-
|
|
438
|
+
var t = Ze;
|
|
439
|
+
Ze = !0;
|
|
435
440
|
try {
|
|
436
441
|
for (var r; ; ) {
|
|
437
|
-
if (
|
|
438
|
-
return
|
|
442
|
+
if ($i(), V.length === 0 && (S?.flush(), V.length === 0))
|
|
443
|
+
return Bt = null, /** @type {T} */
|
|
439
444
|
r;
|
|
440
445
|
nn();
|
|
441
446
|
}
|
|
442
447
|
} finally {
|
|
443
|
-
|
|
448
|
+
Ze = t;
|
|
444
449
|
}
|
|
445
450
|
}
|
|
446
451
|
function nn() {
|
|
447
452
|
var e = Ee;
|
|
448
|
-
|
|
453
|
+
Vt = !0;
|
|
449
454
|
var t = null;
|
|
450
455
|
try {
|
|
451
456
|
var r = 0;
|
|
452
|
-
for (
|
|
457
|
+
for (yt(!0); V.length > 0; ) {
|
|
453
458
|
var n = q.ensure();
|
|
454
459
|
if (r++ > 1e3) {
|
|
455
460
|
var i, s;
|
|
456
|
-
|
|
461
|
+
Fi();
|
|
457
462
|
}
|
|
458
|
-
n.process(
|
|
463
|
+
n.process(V), ve.clear();
|
|
459
464
|
}
|
|
460
465
|
} finally {
|
|
461
|
-
|
|
466
|
+
Vt = !1, yt(e), Bt = null;
|
|
462
467
|
}
|
|
463
468
|
}
|
|
464
|
-
function
|
|
469
|
+
function Fi() {
|
|
465
470
|
try {
|
|
466
|
-
|
|
471
|
+
Hi();
|
|
467
472
|
} catch (e) {
|
|
468
|
-
|
|
473
|
+
Me(e, Bt);
|
|
469
474
|
}
|
|
470
475
|
}
|
|
471
|
-
let
|
|
472
|
-
function
|
|
476
|
+
let re = null;
|
|
477
|
+
function yr(e) {
|
|
473
478
|
var t = e.length;
|
|
474
479
|
if (t !== 0) {
|
|
475
480
|
for (var r = 0; r < t; ) {
|
|
476
481
|
var n = e[r++];
|
|
477
|
-
if (!(n.f & (
|
|
478
|
-
|
|
479
|
-
for (const i of
|
|
480
|
-
if (i.f & (
|
|
482
|
+
if (!(n.f & (ie | K)) && ot(n) && (re = /* @__PURE__ */ new Set(), et(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? xn(n) : n.fn = null), re?.size > 0)) {
|
|
483
|
+
ve.clear();
|
|
484
|
+
for (const i of re) {
|
|
485
|
+
if (i.f & (ie | K)) continue;
|
|
481
486
|
const s = [i];
|
|
482
487
|
let o = i.parent;
|
|
483
488
|
for (; o !== null; )
|
|
484
|
-
|
|
489
|
+
re.has(o) && (re.delete(o), s.push(o)), o = o.parent;
|
|
485
490
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
486
|
-
const
|
|
487
|
-
|
|
491
|
+
const u = s[a];
|
|
492
|
+
u.f & (ie | K) || et(u);
|
|
488
493
|
}
|
|
489
494
|
}
|
|
490
|
-
|
|
495
|
+
re.clear();
|
|
491
496
|
}
|
|
492
497
|
}
|
|
493
|
-
|
|
498
|
+
re = null;
|
|
494
499
|
}
|
|
495
500
|
}
|
|
496
501
|
function sn(e, t, r, n) {
|
|
@@ -503,7 +508,7 @@ function sn(e, t, r, n) {
|
|
|
503
508
|
t,
|
|
504
509
|
r,
|
|
505
510
|
n
|
|
506
|
-
) : s & (
|
|
511
|
+
) : s & (or | ue) && !(s & C) && on(i, t, n) && (P(i, C), oe(
|
|
507
512
|
/** @type {Effect} */
|
|
508
513
|
i
|
|
509
514
|
));
|
|
@@ -530,53 +535,53 @@ function on(e, t, r) {
|
|
|
530
535
|
}
|
|
531
536
|
return r.set(e, !1), !1;
|
|
532
537
|
}
|
|
533
|
-
function
|
|
534
|
-
for (var t =
|
|
538
|
+
function oe(e) {
|
|
539
|
+
for (var t = Bt = e; t.parent !== null; ) {
|
|
535
540
|
t = t.parent;
|
|
536
541
|
var r = t.f;
|
|
537
|
-
if (
|
|
542
|
+
if (Vt && t === g && r & ue && !(r & Wr))
|
|
538
543
|
return;
|
|
539
|
-
if (r & (
|
|
540
|
-
if (!(r &
|
|
541
|
-
t.f ^=
|
|
544
|
+
if (r & (me | le)) {
|
|
545
|
+
if (!(r & I)) return;
|
|
546
|
+
t.f ^= I;
|
|
542
547
|
}
|
|
543
548
|
}
|
|
544
|
-
|
|
549
|
+
V.push(t);
|
|
545
550
|
}
|
|
546
|
-
function
|
|
547
|
-
let t = 0, r =
|
|
551
|
+
function Ui(e) {
|
|
552
|
+
let t = 0, r = st(0), n;
|
|
548
553
|
return () => {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
554
|
+
dr() && (y(r), bn(() => (t === 0 && (n = In(() => e(() => Ye(r)))), t += 1, () => {
|
|
555
|
+
lr(() => {
|
|
556
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Ye(r));
|
|
552
557
|
});
|
|
553
558
|
})));
|
|
554
559
|
};
|
|
555
560
|
}
|
|
556
|
-
var
|
|
557
|
-
function
|
|
558
|
-
new
|
|
561
|
+
var Gi = Re | Se | sr;
|
|
562
|
+
function ki(e, t, r) {
|
|
563
|
+
new ji(e, t, r);
|
|
559
564
|
}
|
|
560
|
-
class
|
|
565
|
+
class ji {
|
|
561
566
|
/** @type {Boundary | null} */
|
|
562
567
|
parent;
|
|
563
568
|
is_pending = !1;
|
|
564
569
|
/** @type {TemplateNode} */
|
|
565
570
|
#e;
|
|
566
571
|
/** @type {TemplateNode | null} */
|
|
567
|
-
#t =
|
|
572
|
+
#t = A ? E : null;
|
|
568
573
|
/** @type {BoundaryProps} */
|
|
569
|
-
#
|
|
574
|
+
#r;
|
|
570
575
|
/** @type {((anchor: Node) => void)} */
|
|
571
|
-
#a;
|
|
572
|
-
/** @type {Effect} */
|
|
573
576
|
#s;
|
|
577
|
+
/** @type {Effect} */
|
|
578
|
+
#o;
|
|
574
579
|
/** @type {Effect | null} */
|
|
575
|
-
#
|
|
580
|
+
#i = null;
|
|
576
581
|
/** @type {Effect | null} */
|
|
577
|
-
#
|
|
582
|
+
#n = null;
|
|
578
583
|
/** @type {Effect | null} */
|
|
579
|
-
#
|
|
584
|
+
#a = null;
|
|
580
585
|
/** @type {DocumentFragment | null} */
|
|
581
586
|
#u = null;
|
|
582
587
|
/** @type {TemplateNode | null} */
|
|
@@ -596,7 +601,7 @@ class Di {
|
|
|
596
601
|
* @type {Source<number> | null}
|
|
597
602
|
*/
|
|
598
603
|
#c = null;
|
|
599
|
-
#y =
|
|
604
|
+
#y = Ui(() => (this.#c = st(this.#f), () => {
|
|
600
605
|
this.#c = null;
|
|
601
606
|
}));
|
|
602
607
|
/**
|
|
@@ -605,17 +610,17 @@ class Di {
|
|
|
605
610
|
* @param {((anchor: Node) => void)} children
|
|
606
611
|
*/
|
|
607
612
|
constructor(t, r, n) {
|
|
608
|
-
this.#e = t, this.#
|
|
609
|
-
g.b, this.is_pending = !!this.#
|
|
610
|
-
if (g.b = this,
|
|
613
|
+
this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
|
|
614
|
+
g.b, this.is_pending = !!this.#r.pending, this.#o = gn(() => {
|
|
615
|
+
if (g.b = this, A) {
|
|
611
616
|
const s = this.#t;
|
|
612
|
-
|
|
613
|
-
s.nodeType ===
|
|
614
|
-
s.data ===
|
|
617
|
+
ur(), /** @type {Comment} */
|
|
618
|
+
s.nodeType === it && /** @type {Comment} */
|
|
619
|
+
s.data === ir ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
|
|
615
620
|
} else {
|
|
616
621
|
var i = this.#b();
|
|
617
622
|
try {
|
|
618
|
-
this.#
|
|
623
|
+
this.#i = ne(() => n(i));
|
|
619
624
|
} catch (s) {
|
|
620
625
|
this.error(s);
|
|
621
626
|
}
|
|
@@ -624,31 +629,31 @@ class Di {
|
|
|
624
629
|
return () => {
|
|
625
630
|
this.#l?.remove();
|
|
626
631
|
};
|
|
627
|
-
},
|
|
632
|
+
}, Gi), A && (this.#e = E);
|
|
628
633
|
}
|
|
629
634
|
#E() {
|
|
630
635
|
try {
|
|
631
|
-
this.#
|
|
636
|
+
this.#i = ne(() => this.#s(this.#e));
|
|
632
637
|
} catch (t) {
|
|
633
638
|
this.error(t);
|
|
634
639
|
}
|
|
635
640
|
}
|
|
636
641
|
#x() {
|
|
637
|
-
const t = this.#
|
|
638
|
-
t && (this.#
|
|
642
|
+
const t = this.#r.pending;
|
|
643
|
+
t && (this.#n = ne(() => t(this.#e)), q.enqueue(() => {
|
|
639
644
|
var r = this.#b();
|
|
640
|
-
this.#
|
|
645
|
+
this.#i = this.#_(() => (q.ensure(), ne(() => this.#s(r)))), this.#h > 0 ? this.#m() : (Qe(
|
|
641
646
|
/** @type {Effect} */
|
|
642
|
-
this.#
|
|
647
|
+
this.#n,
|
|
643
648
|
() => {
|
|
644
|
-
this.#
|
|
649
|
+
this.#n = null;
|
|
645
650
|
}
|
|
646
651
|
), this.is_pending = !1);
|
|
647
652
|
}));
|
|
648
653
|
}
|
|
649
654
|
#b() {
|
|
650
655
|
var t = this.#e;
|
|
651
|
-
return this.is_pending && (this.#l =
|
|
656
|
+
return this.is_pending && (this.#l = ae(), this.#e.before(this.#l), t = this.#l), t;
|
|
652
657
|
}
|
|
653
658
|
/**
|
|
654
659
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
@@ -665,31 +670,31 @@ class Di {
|
|
|
665
670
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
666
671
|
}
|
|
667
672
|
has_pending_snippet() {
|
|
668
|
-
return !!this.#
|
|
673
|
+
return !!this.#r.pending;
|
|
669
674
|
}
|
|
670
675
|
/**
|
|
671
676
|
* @param {() => Effect | null} fn
|
|
672
677
|
*/
|
|
673
678
|
#_(t) {
|
|
674
|
-
var r = g, n = m, i =
|
|
675
|
-
|
|
679
|
+
var r = g, n = m, i = W;
|
|
680
|
+
ee(this.#o), D(this.#o), Ce(this.#o.ctx);
|
|
676
681
|
try {
|
|
677
682
|
return t();
|
|
678
683
|
} catch (s) {
|
|
679
684
|
return en(s), null;
|
|
680
685
|
} finally {
|
|
681
|
-
|
|
686
|
+
ee(r), D(n), Ce(i);
|
|
682
687
|
}
|
|
683
688
|
}
|
|
684
689
|
#m() {
|
|
685
690
|
const t = (
|
|
686
691
|
/** @type {(anchor: Node) => void} */
|
|
687
|
-
this.#
|
|
692
|
+
this.#r.pending
|
|
688
693
|
);
|
|
689
|
-
this.#
|
|
694
|
+
this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
|
|
690
695
|
/** @type {TemplateNode} */
|
|
691
696
|
this.#l
|
|
692
|
-
),
|
|
697
|
+
), Sn(this.#i, this.#u)), this.#n === null && (this.#n = ne(() => t(this.#e)));
|
|
693
698
|
}
|
|
694
699
|
/**
|
|
695
700
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -704,11 +709,11 @@ class Di {
|
|
|
704
709
|
if (this.#h += t, this.#h === 0) {
|
|
705
710
|
this.is_pending = !1;
|
|
706
711
|
for (const r of this.#p)
|
|
707
|
-
|
|
712
|
+
P(r, C), oe(r);
|
|
708
713
|
for (const r of this.#v)
|
|
709
|
-
|
|
710
|
-
this.#p.clear(), this.#v.clear(), this.#
|
|
711
|
-
this.#
|
|
714
|
+
P(r, fe), oe(r);
|
|
715
|
+
this.#p.clear(), this.#v.clear(), this.#n && Qe(this.#n, () => {
|
|
716
|
+
this.#n = null;
|
|
712
717
|
}), this.#u && (this.#e.before(this.#u), this.#u = null);
|
|
713
718
|
}
|
|
714
719
|
}
|
|
@@ -719,58 +724,58 @@ class Di {
|
|
|
719
724
|
* @param {1 | -1} d
|
|
720
725
|
*/
|
|
721
726
|
update_pending_count(t) {
|
|
722
|
-
this.#g(t), this.#f += t, this.#c &&
|
|
727
|
+
this.#g(t), this.#f += t, this.#c && gt(this.#c, this.#f);
|
|
723
728
|
}
|
|
724
729
|
get_effect_pending() {
|
|
725
|
-
return this.#y(),
|
|
730
|
+
return this.#y(), y(
|
|
726
731
|
/** @type {Source<number>} */
|
|
727
732
|
this.#c
|
|
728
733
|
);
|
|
729
734
|
}
|
|
730
735
|
/** @param {unknown} error */
|
|
731
736
|
error(t) {
|
|
732
|
-
var r = this.#
|
|
733
|
-
let n = this.#
|
|
737
|
+
var r = this.#r.onerror;
|
|
738
|
+
let n = this.#r.failed;
|
|
734
739
|
if (this.#d || !r && !n)
|
|
735
740
|
throw t;
|
|
736
|
-
this.#
|
|
741
|
+
this.#i && (F(this.#i), this.#i = null), this.#n && (F(this.#n), this.#n = null), this.#a && (F(this.#a), this.#a = null), A && (Y(
|
|
737
742
|
/** @type {TemplateNode} */
|
|
738
743
|
this.#t
|
|
739
|
-
),
|
|
744
|
+
), Ii(), Y(zr()));
|
|
740
745
|
var i = !1, s = !1;
|
|
741
746
|
const o = () => {
|
|
742
747
|
if (i) {
|
|
743
|
-
|
|
748
|
+
Li();
|
|
744
749
|
return;
|
|
745
750
|
}
|
|
746
|
-
i = !0, s &&
|
|
747
|
-
this.#
|
|
748
|
-
}), this.is_pending = this.has_pending_snippet(), this.#
|
|
751
|
+
i = !0, s && Oi(), q.ensure(), this.#f = 0, this.#a !== null && Qe(this.#a, () => {
|
|
752
|
+
this.#a = null;
|
|
753
|
+
}), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ne(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
|
|
749
754
|
};
|
|
750
755
|
var a = m;
|
|
751
756
|
try {
|
|
752
|
-
|
|
753
|
-
} catch (
|
|
754
|
-
|
|
757
|
+
D(null), s = !0, r?.(t, o), s = !1;
|
|
758
|
+
} catch (u) {
|
|
759
|
+
Me(u, this.#o && this.#o.parent);
|
|
755
760
|
} finally {
|
|
756
|
-
|
|
761
|
+
D(a);
|
|
757
762
|
}
|
|
758
|
-
n &&
|
|
759
|
-
this.#
|
|
763
|
+
n && lr(() => {
|
|
764
|
+
this.#a = this.#_(() => {
|
|
760
765
|
q.ensure(), this.#d = !0;
|
|
761
766
|
try {
|
|
762
|
-
return
|
|
767
|
+
return ne(() => {
|
|
763
768
|
n(
|
|
764
769
|
this.#e,
|
|
765
770
|
() => t,
|
|
766
771
|
() => o
|
|
767
772
|
);
|
|
768
773
|
});
|
|
769
|
-
} catch (
|
|
770
|
-
return
|
|
771
|
-
|
|
774
|
+
} catch (u) {
|
|
775
|
+
return Me(
|
|
776
|
+
u,
|
|
772
777
|
/** @type {Effect} */
|
|
773
|
-
this.#
|
|
778
|
+
this.#o.parent
|
|
774
779
|
), null;
|
|
775
780
|
} finally {
|
|
776
781
|
this.#d = !1;
|
|
@@ -779,8 +784,8 @@ class Di {
|
|
|
779
784
|
});
|
|
780
785
|
}
|
|
781
786
|
}
|
|
782
|
-
function
|
|
783
|
-
const i =
|
|
787
|
+
function Vi(e, t, r, n) {
|
|
788
|
+
const i = hr;
|
|
784
789
|
if (r.length === 0 && e.length === 0) {
|
|
785
790
|
n(t.map(i));
|
|
786
791
|
return;
|
|
@@ -788,56 +793,56 @@ function Ui(e, t, r, n) {
|
|
|
788
793
|
var s = S, o = (
|
|
789
794
|
/** @type {Effect} */
|
|
790
795
|
g
|
|
791
|
-
), a =
|
|
792
|
-
function
|
|
793
|
-
Promise.all(r.map((
|
|
796
|
+
), a = Xi();
|
|
797
|
+
function u() {
|
|
798
|
+
Promise.all(r.map((l) => /* @__PURE__ */ Wi(l))).then((l) => {
|
|
794
799
|
a();
|
|
795
800
|
try {
|
|
796
|
-
n([...t.map(i), ...
|
|
801
|
+
n([...t.map(i), ...l]);
|
|
797
802
|
} catch (f) {
|
|
798
|
-
o.f &
|
|
803
|
+
o.f & ie || Me(f, o);
|
|
799
804
|
}
|
|
800
|
-
s?.deactivate(),
|
|
801
|
-
}).catch((
|
|
802
|
-
|
|
805
|
+
s?.deactivate(), bt();
|
|
806
|
+
}).catch((l) => {
|
|
807
|
+
Me(l, o);
|
|
803
808
|
});
|
|
804
809
|
}
|
|
805
810
|
e.length > 0 ? Promise.all(e).then(() => {
|
|
806
811
|
a();
|
|
807
812
|
try {
|
|
808
|
-
return
|
|
813
|
+
return u();
|
|
809
814
|
} finally {
|
|
810
|
-
s?.deactivate(),
|
|
815
|
+
s?.deactivate(), bt();
|
|
811
816
|
}
|
|
812
|
-
}) :
|
|
817
|
+
}) : u();
|
|
813
818
|
}
|
|
814
|
-
function
|
|
815
|
-
var e = g, t = m, r =
|
|
819
|
+
function Xi() {
|
|
820
|
+
var e = g, t = m, r = W, n = S;
|
|
816
821
|
return function(s = !0) {
|
|
817
|
-
|
|
822
|
+
ee(e), D(t), Ce(r), s && n?.activate();
|
|
818
823
|
};
|
|
819
824
|
}
|
|
820
|
-
function
|
|
821
|
-
|
|
825
|
+
function bt() {
|
|
826
|
+
ee(null), D(null), Ce(null);
|
|
822
827
|
}
|
|
823
828
|
// @__NO_SIDE_EFFECTS__
|
|
824
|
-
function
|
|
825
|
-
var t = O |
|
|
829
|
+
function hr(e) {
|
|
830
|
+
var t = O | C, r = m !== null && m.f & O ? (
|
|
826
831
|
/** @type {Derived} */
|
|
827
832
|
m
|
|
828
833
|
) : null;
|
|
829
834
|
return g !== null && (g.f |= Se), {
|
|
830
|
-
ctx:
|
|
835
|
+
ctx: W,
|
|
831
836
|
deps: null,
|
|
832
837
|
effects: null,
|
|
833
|
-
equals:
|
|
838
|
+
equals: qr,
|
|
834
839
|
f: t,
|
|
835
840
|
fn: e,
|
|
836
841
|
reactions: null,
|
|
837
842
|
rv: 0,
|
|
838
843
|
v: (
|
|
839
844
|
/** @type {V} */
|
|
840
|
-
|
|
845
|
+
N
|
|
841
846
|
),
|
|
842
847
|
wv: 0,
|
|
843
848
|
parent: r ?? g,
|
|
@@ -845,12 +850,12 @@ function St(e) {
|
|
|
845
850
|
};
|
|
846
851
|
}
|
|
847
852
|
// @__NO_SIDE_EFFECTS__
|
|
848
|
-
function
|
|
853
|
+
function Wi(e, t, r) {
|
|
849
854
|
let n = (
|
|
850
855
|
/** @type {Effect | null} */
|
|
851
856
|
g
|
|
852
857
|
);
|
|
853
|
-
n === null &&
|
|
858
|
+
n === null && xi();
|
|
854
859
|
var i = (
|
|
855
860
|
/** @type {Boundary} */
|
|
856
861
|
n.b
|
|
@@ -858,19 +863,19 @@ function Fi(e, t, r) {
|
|
|
858
863
|
/** @type {Promise<V>} */
|
|
859
864
|
/** @type {unknown} */
|
|
860
865
|
void 0
|
|
861
|
-
), o =
|
|
866
|
+
), o = st(
|
|
862
867
|
/** @type {V} */
|
|
863
|
-
|
|
864
|
-
), a = !m,
|
|
865
|
-
return
|
|
866
|
-
var
|
|
867
|
-
s =
|
|
868
|
+
N
|
|
869
|
+
), a = !m, u = /* @__PURE__ */ new Map();
|
|
870
|
+
return is(() => {
|
|
871
|
+
var l = Vr();
|
|
872
|
+
s = l.promise;
|
|
868
873
|
try {
|
|
869
|
-
Promise.resolve(e()).then(
|
|
870
|
-
f === S && f.committed && f.deactivate(),
|
|
874
|
+
Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
|
|
875
|
+
f === S && f.committed && f.deactivate(), bt();
|
|
871
876
|
});
|
|
872
877
|
} catch (d) {
|
|
873
|
-
|
|
878
|
+
l.reject(d), bt();
|
|
874
879
|
}
|
|
875
880
|
var f = (
|
|
876
881
|
/** @type {Batch} */
|
|
@@ -878,28 +883,28 @@ function Fi(e, t, r) {
|
|
|
878
883
|
);
|
|
879
884
|
if (a) {
|
|
880
885
|
var c = i.is_rendered();
|
|
881
|
-
i.update_pending_count(1), f.increment(c),
|
|
886
|
+
i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Pe), u.delete(f), u.set(f, l);
|
|
882
887
|
}
|
|
883
888
|
const h = (d, p = void 0) => {
|
|
884
889
|
if (f.activate(), p)
|
|
885
|
-
p !==
|
|
890
|
+
p !== Pe && (o.f |= pe, gt(o, p));
|
|
886
891
|
else {
|
|
887
|
-
o.f &
|
|
888
|
-
for (const [v,
|
|
889
|
-
if (
|
|
890
|
-
|
|
892
|
+
o.f & pe && (o.f ^= pe), gt(o, d);
|
|
893
|
+
for (const [v, H] of u) {
|
|
894
|
+
if (u.delete(v), v === f) break;
|
|
895
|
+
H.reject(Pe);
|
|
891
896
|
}
|
|
892
897
|
}
|
|
893
898
|
a && (i.update_pending_count(-1), f.decrement(c));
|
|
894
899
|
};
|
|
895
|
-
|
|
900
|
+
l.promise.then(h, (d) => h(null, d || "unknown"));
|
|
896
901
|
}), _n(() => {
|
|
897
|
-
for (const
|
|
898
|
-
|
|
899
|
-
}), new Promise((
|
|
902
|
+
for (const l of u.values())
|
|
903
|
+
l.reject(Pe);
|
|
904
|
+
}), new Promise((l) => {
|
|
900
905
|
function f(c) {
|
|
901
906
|
function h() {
|
|
902
|
-
c === s ?
|
|
907
|
+
c === s ? l(o) : f(s);
|
|
903
908
|
}
|
|
904
909
|
c.then(h, h);
|
|
905
910
|
}
|
|
@@ -907,30 +912,25 @@ function Fi(e, t, r) {
|
|
|
907
912
|
});
|
|
908
913
|
}
|
|
909
914
|
// @__NO_SIDE_EFFECTS__
|
|
910
|
-
function
|
|
911
|
-
const t = /* @__PURE__ */
|
|
912
|
-
return
|
|
913
|
-
}
|
|
914
|
-
// @__NO_SIDE_EFFECTS__
|
|
915
|
-
function ji(e) {
|
|
916
|
-
const t = /* @__PURE__ */ St(e);
|
|
917
|
-
return t.equals = Qr, t;
|
|
915
|
+
function ut(e) {
|
|
916
|
+
const t = /* @__PURE__ */ hr(e);
|
|
917
|
+
return Hn(t), t;
|
|
918
918
|
}
|
|
919
919
|
function an(e) {
|
|
920
920
|
var t = e.effects;
|
|
921
921
|
if (t !== null) {
|
|
922
922
|
e.effects = null;
|
|
923
923
|
for (var r = 0; r < t.length; r += 1)
|
|
924
|
-
|
|
924
|
+
F(
|
|
925
925
|
/** @type {Effect} */
|
|
926
926
|
t[r]
|
|
927
927
|
);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function zi(e) {
|
|
931
931
|
for (var t = e.parent; t !== null; ) {
|
|
932
932
|
if (!(t.f & O))
|
|
933
|
-
return t.f &
|
|
933
|
+
return t.f & ie ? null : (
|
|
934
934
|
/** @type {Effect} */
|
|
935
935
|
t
|
|
936
936
|
);
|
|
@@ -938,169 +938,169 @@ function ki(e) {
|
|
|
938
938
|
}
|
|
939
939
|
return null;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function cr(e) {
|
|
942
942
|
var t, r = g;
|
|
943
|
-
|
|
943
|
+
ee(zi(e));
|
|
944
944
|
try {
|
|
945
|
-
e.f &= ~we, an(e), t =
|
|
945
|
+
e.f &= ~we, an(e), t = Nn(e);
|
|
946
946
|
} finally {
|
|
947
|
-
|
|
947
|
+
ee(r);
|
|
948
948
|
}
|
|
949
949
|
return t;
|
|
950
950
|
}
|
|
951
951
|
function un(e) {
|
|
952
|
-
var t =
|
|
953
|
-
if (!e.equals(t) && (e.wv =
|
|
954
|
-
|
|
952
|
+
var t = cr(e);
|
|
953
|
+
if (!e.equals(t) && (e.wv = Bn(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
954
|
+
P(e, I);
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
_e || (z !== null ? (dr() || S?.is_fork) && z.set(e, t) : fr(e));
|
|
958
958
|
}
|
|
959
|
-
let
|
|
960
|
-
const
|
|
959
|
+
let Xt = /* @__PURE__ */ new Set();
|
|
960
|
+
const ve = /* @__PURE__ */ new Map();
|
|
961
961
|
let ln = !1;
|
|
962
|
-
function
|
|
962
|
+
function st(e, t) {
|
|
963
963
|
var r = {
|
|
964
964
|
f: 0,
|
|
965
965
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
966
966
|
v: e,
|
|
967
967
|
reactions: null,
|
|
968
|
-
equals:
|
|
968
|
+
equals: qr,
|
|
969
969
|
rv: 0,
|
|
970
970
|
wv: 0
|
|
971
971
|
};
|
|
972
972
|
return r;
|
|
973
973
|
}
|
|
974
974
|
// @__NO_SIDE_EFFECTS__
|
|
975
|
-
function
|
|
976
|
-
const r =
|
|
977
|
-
return
|
|
975
|
+
function M(e, t) {
|
|
976
|
+
const r = st(e);
|
|
977
|
+
return Hn(r), r;
|
|
978
978
|
}
|
|
979
979
|
// @__NO_SIDE_EFFECTS__
|
|
980
980
|
function fn(e, t = !1, r = !0) {
|
|
981
|
-
const n =
|
|
982
|
-
return t || (n.equals =
|
|
981
|
+
const n = st(e);
|
|
982
|
+
return t || (n.equals = Ci), n;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function B(e, t, r = !1) {
|
|
985
985
|
m !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
986
986
|
// to ensure we error if state is set inside an inspect effect
|
|
987
|
-
(!Z || m.f &
|
|
988
|
-
let n = r ?
|
|
989
|
-
return
|
|
987
|
+
(!Z || m.f & gr) && Jr() && m.f & (O | ue | or | gr) && !se?.includes(e) && Ni();
|
|
988
|
+
let n = r ? qe(t) : t;
|
|
989
|
+
return gt(e, n);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function gt(e, t) {
|
|
992
992
|
if (!e.equals(t)) {
|
|
993
993
|
var r = e.v;
|
|
994
|
-
|
|
994
|
+
_e ? ve.set(e, t) : ve.set(e, r), e.v = t;
|
|
995
995
|
var n = q.ensure();
|
|
996
996
|
if (n.capture(e, r), e.f & O) {
|
|
997
997
|
const i = (
|
|
998
998
|
/** @type {Derived} */
|
|
999
999
|
e
|
|
1000
1000
|
);
|
|
1001
|
-
e.f &
|
|
1001
|
+
e.f & C && cr(i), fr(i);
|
|
1002
1002
|
}
|
|
1003
|
-
e.wv =
|
|
1003
|
+
e.wv = Bn(), hn(e, C), g !== null && g.f & I && !(g.f & (le | me)) && (j === null ? ls([e]) : j.push(e)), !n.is_fork && Xt.size > 0 && !ln && qi();
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function qi() {
|
|
1008
1008
|
ln = !1;
|
|
1009
1009
|
var e = Ee;
|
|
1010
|
-
|
|
1011
|
-
const t = Array.from(
|
|
1010
|
+
yt(!0);
|
|
1011
|
+
const t = Array.from(Xt);
|
|
1012
1012
|
try {
|
|
1013
1013
|
for (const r of t)
|
|
1014
|
-
r.f &
|
|
1014
|
+
r.f & I && P(r, fe), ot(r) && et(r);
|
|
1015
1015
|
} finally {
|
|
1016
|
-
|
|
1016
|
+
yt(e);
|
|
1017
1017
|
}
|
|
1018
|
-
|
|
1018
|
+
Xt.clear();
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1020
|
+
function Ye(e) {
|
|
1021
|
+
B(e, e.v + 1);
|
|
1022
1022
|
}
|
|
1023
1023
|
function hn(e, t) {
|
|
1024
1024
|
var r = e.reactions;
|
|
1025
1025
|
if (r !== null)
|
|
1026
1026
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
1027
|
-
var s = r[i], o = s.f, a = (o &
|
|
1028
|
-
if (a &&
|
|
1029
|
-
var
|
|
1027
|
+
var s = r[i], o = s.f, a = (o & C) === 0;
|
|
1028
|
+
if (a && P(s, t), o & O) {
|
|
1029
|
+
var u = (
|
|
1030
1030
|
/** @type {Derived} */
|
|
1031
1031
|
s
|
|
1032
1032
|
);
|
|
1033
|
-
z?.delete(
|
|
1034
|
-
} else a && (o &
|
|
1033
|
+
z?.delete(u), o & we || (o & X && (s.f |= we), hn(u, fe));
|
|
1034
|
+
} else a && (o & ue && re !== null && re.add(
|
|
1035
1035
|
/** @type {Effect} */
|
|
1036
1036
|
s
|
|
1037
|
-
),
|
|
1037
|
+
), oe(
|
|
1038
1038
|
/** @type {Effect} */
|
|
1039
1039
|
s
|
|
1040
1040
|
));
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (typeof e != "object" || e === null ||
|
|
1043
|
+
function qe(e) {
|
|
1044
|
+
if (typeof e != "object" || e === null || Ct in e)
|
|
1045
1045
|
return e;
|
|
1046
|
-
const t =
|
|
1047
|
-
if (t !==
|
|
1046
|
+
const t = gi(e);
|
|
1047
|
+
if (t !== mi && t !== bi)
|
|
1048
1048
|
return e;
|
|
1049
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1049
|
+
var r = /* @__PURE__ */ new Map(), n = pi(e), i = /* @__PURE__ */ M(0), s = xe, o = (a) => {
|
|
1050
1050
|
if (xe === s)
|
|
1051
1051
|
return a();
|
|
1052
|
-
var
|
|
1053
|
-
|
|
1052
|
+
var u = m, l = xe;
|
|
1053
|
+
D(null), Tr(s);
|
|
1054
1054
|
var f = a();
|
|
1055
|
-
return
|
|
1055
|
+
return D(u), Tr(l), f;
|
|
1056
1056
|
};
|
|
1057
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1057
|
+
return n && r.set("length", /* @__PURE__ */ M(
|
|
1058
1058
|
/** @type {any[]} */
|
|
1059
1059
|
e.length
|
|
1060
1060
|
)), new Proxy(
|
|
1061
1061
|
/** @type {any} */
|
|
1062
1062
|
e,
|
|
1063
1063
|
{
|
|
1064
|
-
defineProperty(a,
|
|
1065
|
-
(!("value" in
|
|
1066
|
-
var f = r.get(
|
|
1064
|
+
defineProperty(a, u, l) {
|
|
1065
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Bi();
|
|
1066
|
+
var f = r.get(u);
|
|
1067
1067
|
return f === void 0 ? f = o(() => {
|
|
1068
|
-
var c = /* @__PURE__ */
|
|
1069
|
-
return r.set(
|
|
1070
|
-
}) :
|
|
1068
|
+
var c = /* @__PURE__ */ M(l.value);
|
|
1069
|
+
return r.set(u, c), c;
|
|
1070
|
+
}) : B(f, l.value, !0), !0;
|
|
1071
1071
|
},
|
|
1072
|
-
deleteProperty(a,
|
|
1073
|
-
var
|
|
1074
|
-
if (
|
|
1075
|
-
if (
|
|
1076
|
-
const f = o(() => /* @__PURE__ */
|
|
1077
|
-
r.set(
|
|
1072
|
+
deleteProperty(a, u) {
|
|
1073
|
+
var l = r.get(u);
|
|
1074
|
+
if (l === void 0) {
|
|
1075
|
+
if (u in a) {
|
|
1076
|
+
const f = o(() => /* @__PURE__ */ M(N));
|
|
1077
|
+
r.set(u, f), Ye(i);
|
|
1078
1078
|
}
|
|
1079
1079
|
} else
|
|
1080
|
-
|
|
1080
|
+
B(l, N), Ye(i);
|
|
1081
1081
|
return !0;
|
|
1082
1082
|
},
|
|
1083
|
-
get(a,
|
|
1084
|
-
if (
|
|
1083
|
+
get(a, u, l) {
|
|
1084
|
+
if (u === Ct)
|
|
1085
1085
|
return e;
|
|
1086
|
-
var f = r.get(
|
|
1087
|
-
if (f === void 0 && (!c ||
|
|
1088
|
-
var d =
|
|
1086
|
+
var f = r.get(u), c = u in a;
|
|
1087
|
+
if (f === void 0 && (!c || Le(a, u)?.writable) && (f = o(() => {
|
|
1088
|
+
var d = qe(c ? a[u] : N), p = /* @__PURE__ */ M(d);
|
|
1089
1089
|
return p;
|
|
1090
|
-
}), r.set(
|
|
1091
|
-
var h =
|
|
1092
|
-
return h ===
|
|
1090
|
+
}), r.set(u, f)), f !== void 0) {
|
|
1091
|
+
var h = y(f);
|
|
1092
|
+
return h === N ? void 0 : h;
|
|
1093
1093
|
}
|
|
1094
|
-
return Reflect.get(a,
|
|
1094
|
+
return Reflect.get(a, u, l);
|
|
1095
1095
|
},
|
|
1096
|
-
getOwnPropertyDescriptor(a,
|
|
1097
|
-
var
|
|
1098
|
-
if (
|
|
1099
|
-
var f = r.get(
|
|
1100
|
-
f && (
|
|
1101
|
-
} else if (
|
|
1102
|
-
var c = r.get(
|
|
1103
|
-
if (c !== void 0 && h !==
|
|
1096
|
+
getOwnPropertyDescriptor(a, u) {
|
|
1097
|
+
var l = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1098
|
+
if (l && "value" in l) {
|
|
1099
|
+
var f = r.get(u);
|
|
1100
|
+
f && (l.value = y(f));
|
|
1101
|
+
} else if (l === void 0) {
|
|
1102
|
+
var c = r.get(u), h = c?.v;
|
|
1103
|
+
if (c !== void 0 && h !== N)
|
|
1104
1104
|
return {
|
|
1105
1105
|
enumerable: !0,
|
|
1106
1106
|
configurable: !0,
|
|
@@ -1108,144 +1108,158 @@ function Ne(e) {
|
|
|
1108
1108
|
writable: !0
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
return
|
|
1111
|
+
return l;
|
|
1112
1112
|
},
|
|
1113
|
-
has(a,
|
|
1114
|
-
if (
|
|
1113
|
+
has(a, u) {
|
|
1114
|
+
if (u === Ct)
|
|
1115
1115
|
return !0;
|
|
1116
|
-
var
|
|
1117
|
-
if (
|
|
1118
|
-
|
|
1119
|
-
var h = f ?
|
|
1116
|
+
var l = r.get(u), f = l !== void 0 && l.v !== N || Reflect.has(a, u);
|
|
1117
|
+
if (l !== void 0 || g !== null && (!f || Le(a, u)?.writable)) {
|
|
1118
|
+
l === void 0 && (l = o(() => {
|
|
1119
|
+
var h = f ? qe(a[u]) : N, d = /* @__PURE__ */ M(h);
|
|
1120
1120
|
return d;
|
|
1121
|
-
}), r.set(
|
|
1122
|
-
var c =
|
|
1123
|
-
if (c ===
|
|
1121
|
+
}), r.set(u, l));
|
|
1122
|
+
var c = y(l);
|
|
1123
|
+
if (c === N)
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
return f;
|
|
1127
1127
|
},
|
|
1128
|
-
set(a,
|
|
1129
|
-
var c = r.get(
|
|
1130
|
-
if (n &&
|
|
1131
|
-
for (var d =
|
|
1128
|
+
set(a, u, l, f) {
|
|
1129
|
+
var c = r.get(u), h = u in a;
|
|
1130
|
+
if (n && u === "length")
|
|
1131
|
+
for (var d = l; d < /** @type {Source<number>} */
|
|
1132
1132
|
c.v; d += 1) {
|
|
1133
1133
|
var p = r.get(d + "");
|
|
1134
|
-
p !== void 0 ?
|
|
1134
|
+
p !== void 0 ? B(p, N) : d in a && (p = o(() => /* @__PURE__ */ M(N)), r.set(d + "", p));
|
|
1135
1135
|
}
|
|
1136
1136
|
if (c === void 0)
|
|
1137
|
-
(!h ||
|
|
1137
|
+
(!h || Le(a, u)?.writable) && (c = o(() => /* @__PURE__ */ M(void 0)), B(c, qe(l)), r.set(u, c));
|
|
1138
1138
|
else {
|
|
1139
|
-
h = c.v !==
|
|
1140
|
-
var v = o(() =>
|
|
1141
|
-
|
|
1139
|
+
h = c.v !== N;
|
|
1140
|
+
var v = o(() => qe(l));
|
|
1141
|
+
B(c, v);
|
|
1142
1142
|
}
|
|
1143
|
-
var
|
|
1144
|
-
if (
|
|
1145
|
-
if (n && typeof
|
|
1146
|
-
var
|
|
1143
|
+
var H = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1144
|
+
if (H?.set && H.set.call(f, l), !h) {
|
|
1145
|
+
if (n && typeof u == "string") {
|
|
1146
|
+
var Q = (
|
|
1147
1147
|
/** @type {Source<number>} */
|
|
1148
1148
|
r.get("length")
|
|
1149
|
-
),
|
|
1150
|
-
Number.isInteger(
|
|
1149
|
+
), G = Number(u);
|
|
1150
|
+
Number.isInteger(G) && G >= Q.v && B(Q, G + 1);
|
|
1151
1151
|
}
|
|
1152
|
-
|
|
1152
|
+
Ye(i);
|
|
1153
1153
|
}
|
|
1154
1154
|
return !0;
|
|
1155
1155
|
},
|
|
1156
1156
|
ownKeys(a) {
|
|
1157
|
-
|
|
1158
|
-
var
|
|
1157
|
+
y(i);
|
|
1158
|
+
var u = Reflect.ownKeys(a).filter((c) => {
|
|
1159
1159
|
var h = r.get(c);
|
|
1160
|
-
return h === void 0 || h.v !==
|
|
1160
|
+
return h === void 0 || h.v !== N;
|
|
1161
1161
|
});
|
|
1162
|
-
for (var [
|
|
1163
|
-
f.v !==
|
|
1164
|
-
return
|
|
1162
|
+
for (var [l, f] of r)
|
|
1163
|
+
f.v !== N && !(l in a) && u.push(l);
|
|
1164
|
+
return u;
|
|
1165
1165
|
},
|
|
1166
1166
|
setPrototypeOf() {
|
|
1167
|
-
|
|
1167
|
+
Pi();
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1172
|
+
var Er, cn, dn, pn;
|
|
1173
|
+
function Wt() {
|
|
1174
|
+
if (Er === void 0) {
|
|
1175
|
+
Er = window, cn = /Firefox/.test(navigator.userAgent);
|
|
1176
1176
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1177
|
-
dn =
|
|
1177
|
+
dn = Le(t, "firstChild").get, pn = Le(t, "nextSibling").get, br(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), br(r) && (r.__t = void 0);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function ae(e = "") {
|
|
1181
1181
|
return document.createTextNode(e);
|
|
1182
1182
|
}
|
|
1183
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1184
|
-
function
|
|
1184
|
+
function Ke(e) {
|
|
1185
1185
|
return (
|
|
1186
1186
|
/** @type {TemplateNode | null} */
|
|
1187
1187
|
dn.call(e)
|
|
1188
1188
|
);
|
|
1189
1189
|
}
|
|
1190
1190
|
// @__NO_SIDE_EFFECTS__
|
|
1191
|
-
function
|
|
1191
|
+
function he(e) {
|
|
1192
1192
|
return (
|
|
1193
1193
|
/** @type {TemplateNode | null} */
|
|
1194
1194
|
pn.call(e)
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
if (!
|
|
1199
|
-
return /* @__PURE__ */
|
|
1200
|
-
var r = /* @__PURE__ */
|
|
1197
|
+
function We(e, t) {
|
|
1198
|
+
if (!A)
|
|
1199
|
+
return /* @__PURE__ */ Ke(e);
|
|
1200
|
+
var r = /* @__PURE__ */ Ke(E);
|
|
1201
1201
|
if (r === null)
|
|
1202
|
-
r =
|
|
1203
|
-
else if (t && r.nodeType !==
|
|
1204
|
-
var n =
|
|
1205
|
-
return r?.before(n),
|
|
1202
|
+
r = E.appendChild(ae());
|
|
1203
|
+
else if (t && r.nodeType !== ar) {
|
|
1204
|
+
var n = ae();
|
|
1205
|
+
return r?.before(n), Y(n), n;
|
|
1206
|
+
}
|
|
1207
|
+
return Y(r), r;
|
|
1208
|
+
}
|
|
1209
|
+
function Zi(e, t = !1) {
|
|
1210
|
+
if (!A) {
|
|
1211
|
+
var r = /* @__PURE__ */ Ke(e);
|
|
1212
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
|
|
1213
|
+
}
|
|
1214
|
+
if (t && E?.nodeType !== ar) {
|
|
1215
|
+
var n = ae();
|
|
1216
|
+
return E?.before(n), Y(n), n;
|
|
1206
1217
|
}
|
|
1207
|
-
return
|
|
1218
|
+
return E;
|
|
1208
1219
|
}
|
|
1209
|
-
function
|
|
1210
|
-
let n =
|
|
1220
|
+
function Yi(e, t = 1, r = !1) {
|
|
1221
|
+
let n = A ? E : e;
|
|
1211
1222
|
for (var i; t--; )
|
|
1212
1223
|
i = n, n = /** @type {TemplateNode} */
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
if (!
|
|
1224
|
+
/* @__PURE__ */ he(n);
|
|
1225
|
+
if (!A)
|
|
1215
1226
|
return n;
|
|
1216
|
-
if (r && n?.nodeType !==
|
|
1217
|
-
var s =
|
|
1218
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1227
|
+
if (r && n?.nodeType !== ar) {
|
|
1228
|
+
var s = ae();
|
|
1229
|
+
return n === null ? i?.after(s) : n.before(s), Y(s), s;
|
|
1219
1230
|
}
|
|
1220
|
-
return
|
|
1231
|
+
return Y(n), n;
|
|
1221
1232
|
}
|
|
1222
|
-
function
|
|
1233
|
+
function Qi(e) {
|
|
1223
1234
|
e.textContent = "";
|
|
1224
1235
|
}
|
|
1236
|
+
function Ji() {
|
|
1237
|
+
return !1;
|
|
1238
|
+
}
|
|
1225
1239
|
function vn(e) {
|
|
1226
1240
|
var t = m, r = g;
|
|
1227
|
-
|
|
1241
|
+
D(null), ee(null);
|
|
1228
1242
|
try {
|
|
1229
1243
|
return e();
|
|
1230
1244
|
} finally {
|
|
1231
|
-
|
|
1245
|
+
D(t), ee(r);
|
|
1232
1246
|
}
|
|
1233
1247
|
}
|
|
1234
|
-
function
|
|
1235
|
-
g === null && (m === null &&
|
|
1248
|
+
function Ki(e) {
|
|
1249
|
+
g === null && (m === null && Si(), Ti()), _e && wi();
|
|
1236
1250
|
}
|
|
1237
|
-
function
|
|
1251
|
+
function es(e, t) {
|
|
1238
1252
|
var r = t.last;
|
|
1239
1253
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1240
1254
|
}
|
|
1241
|
-
function
|
|
1255
|
+
function te(e, t, r) {
|
|
1242
1256
|
var n = g;
|
|
1243
|
-
n !== null && n.f &
|
|
1257
|
+
n !== null && n.f & K && (e |= K);
|
|
1244
1258
|
var i = {
|
|
1245
|
-
ctx:
|
|
1259
|
+
ctx: W,
|
|
1246
1260
|
deps: null,
|
|
1247
1261
|
nodes: null,
|
|
1248
|
-
f: e |
|
|
1262
|
+
f: e | C | X,
|
|
1249
1263
|
first: null,
|
|
1250
1264
|
fn: t,
|
|
1251
1265
|
last: null,
|
|
@@ -1259,14 +1273,14 @@ function se(e, t, r) {
|
|
|
1259
1273
|
};
|
|
1260
1274
|
if (r)
|
|
1261
1275
|
try {
|
|
1262
|
-
|
|
1276
|
+
et(i), i.f |= Ht;
|
|
1263
1277
|
} catch (a) {
|
|
1264
|
-
throw
|
|
1278
|
+
throw F(i), a;
|
|
1265
1279
|
}
|
|
1266
|
-
else t !== null &&
|
|
1280
|
+
else t !== null && oe(i);
|
|
1267
1281
|
var s = i;
|
|
1268
1282
|
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1269
|
-
!(s.f & Se) && (s = s.first, e &
|
|
1283
|
+
!(s.f & Se) && (s = s.first, e & ue && e & Re && s !== null && (s.f |= Re)), s !== null && (s.parent = n, n !== null && es(s, n), m !== null && m.f & O && !(e & me))) {
|
|
1270
1284
|
var o = (
|
|
1271
1285
|
/** @type {Derived} */
|
|
1272
1286
|
m
|
|
@@ -1275,124 +1289,127 @@ function se(e, t, r) {
|
|
|
1275
1289
|
}
|
|
1276
1290
|
return i;
|
|
1277
1291
|
}
|
|
1278
|
-
function
|
|
1292
|
+
function dr() {
|
|
1279
1293
|
return m !== null && !Z;
|
|
1280
1294
|
}
|
|
1281
1295
|
function _n(e) {
|
|
1282
|
-
const t =
|
|
1283
|
-
return
|
|
1296
|
+
const t = te(St, null, !1);
|
|
1297
|
+
return P(t, I), t.teardown = e, t;
|
|
1284
1298
|
}
|
|
1285
|
-
function
|
|
1286
|
-
|
|
1299
|
+
function xr(e) {
|
|
1300
|
+
Ki();
|
|
1287
1301
|
var t = (
|
|
1288
1302
|
/** @type {Effect} */
|
|
1289
1303
|
g.f
|
|
1290
|
-
), r = !m && (t &
|
|
1304
|
+
), r = !m && (t & le) !== 0 && (t & Ht) === 0;
|
|
1291
1305
|
if (r) {
|
|
1292
1306
|
var n = (
|
|
1293
1307
|
/** @type {ComponentContext} */
|
|
1294
|
-
|
|
1308
|
+
W
|
|
1295
1309
|
);
|
|
1296
1310
|
(n.e ??= []).push(e);
|
|
1297
1311
|
} else
|
|
1298
1312
|
return mn(e);
|
|
1299
1313
|
}
|
|
1300
1314
|
function mn(e) {
|
|
1301
|
-
return
|
|
1315
|
+
return te(mt | yi, e, !1);
|
|
1302
1316
|
}
|
|
1303
|
-
function
|
|
1317
|
+
function ts(e) {
|
|
1304
1318
|
q.ensure();
|
|
1305
|
-
const t =
|
|
1319
|
+
const t = te(me | Se, e, !0);
|
|
1306
1320
|
return () => {
|
|
1307
|
-
|
|
1321
|
+
F(t);
|
|
1308
1322
|
};
|
|
1309
1323
|
}
|
|
1310
|
-
function
|
|
1324
|
+
function rs(e) {
|
|
1311
1325
|
q.ensure();
|
|
1312
|
-
const t =
|
|
1326
|
+
const t = te(me | Se, e, !0);
|
|
1313
1327
|
return (r = {}) => new Promise((n) => {
|
|
1314
|
-
r.outro ?
|
|
1315
|
-
|
|
1316
|
-
}) : (
|
|
1328
|
+
r.outro ? Qe(t, () => {
|
|
1329
|
+
F(t), n(void 0);
|
|
1330
|
+
}) : (F(t), n(void 0));
|
|
1317
1331
|
});
|
|
1318
1332
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1333
|
+
function ns(e) {
|
|
1334
|
+
return te(mt, e, !1);
|
|
1335
|
+
}
|
|
1336
|
+
function is(e) {
|
|
1337
|
+
return te(or | Se, e, !0);
|
|
1321
1338
|
}
|
|
1322
1339
|
function bn(e, t = 0) {
|
|
1323
|
-
return
|
|
1340
|
+
return te(St | t, e, !0);
|
|
1324
1341
|
}
|
|
1325
|
-
function
|
|
1326
|
-
|
|
1327
|
-
|
|
1342
|
+
function ss(e, t = [], r = [], n = []) {
|
|
1343
|
+
Vi(n, t, r, (i) => {
|
|
1344
|
+
te(St, () => e(...i.map(y)), !0);
|
|
1328
1345
|
});
|
|
1329
1346
|
}
|
|
1330
|
-
function
|
|
1331
|
-
var r =
|
|
1347
|
+
function gn(e, t = 0) {
|
|
1348
|
+
var r = te(ue | t, e, !0);
|
|
1332
1349
|
return r;
|
|
1333
1350
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return
|
|
1351
|
+
function ne(e) {
|
|
1352
|
+
return te(le | Se, e, !0);
|
|
1336
1353
|
}
|
|
1337
|
-
function
|
|
1354
|
+
function yn(e) {
|
|
1338
1355
|
var t = e.teardown;
|
|
1339
1356
|
if (t !== null) {
|
|
1340
|
-
const r =
|
|
1341
|
-
|
|
1357
|
+
const r = _e, n = m;
|
|
1358
|
+
wr(!0), D(null);
|
|
1342
1359
|
try {
|
|
1343
1360
|
t.call(null);
|
|
1344
1361
|
} finally {
|
|
1345
|
-
|
|
1362
|
+
wr(r), D(n);
|
|
1346
1363
|
}
|
|
1347
1364
|
}
|
|
1348
1365
|
}
|
|
1349
|
-
function
|
|
1366
|
+
function En(e, t = !1) {
|
|
1350
1367
|
var r = e.first;
|
|
1351
1368
|
for (e.first = e.last = null; r !== null; ) {
|
|
1352
1369
|
const i = r.ac;
|
|
1353
1370
|
i !== null && vn(() => {
|
|
1354
|
-
i.abort(
|
|
1371
|
+
i.abort(Pe);
|
|
1355
1372
|
});
|
|
1356
1373
|
var n = r.next;
|
|
1357
|
-
r.f &
|
|
1374
|
+
r.f & me ? r.parent = null : F(r, t), r = n;
|
|
1358
1375
|
}
|
|
1359
1376
|
}
|
|
1360
|
-
function
|
|
1377
|
+
function os(e) {
|
|
1361
1378
|
for (var t = e.first; t !== null; ) {
|
|
1362
1379
|
var r = t.next;
|
|
1363
|
-
t.f &
|
|
1380
|
+
t.f & le || F(t), t = r;
|
|
1364
1381
|
}
|
|
1365
1382
|
}
|
|
1366
|
-
function
|
|
1383
|
+
function F(e, t = !0) {
|
|
1367
1384
|
var r = !1;
|
|
1368
|
-
(t || e.f &
|
|
1385
|
+
(t || e.f & Wr) && e.nodes !== null && e.nodes.end !== null && (as(
|
|
1369
1386
|
e.nodes.start,
|
|
1370
1387
|
/** @type {TemplateNode} */
|
|
1371
1388
|
e.nodes.end
|
|
1372
|
-
), r = !0),
|
|
1389
|
+
), r = !0), En(e, t && !r), Et(e, 0), P(e, ie);
|
|
1373
1390
|
var n = e.nodes && e.nodes.t;
|
|
1374
1391
|
if (n !== null)
|
|
1375
1392
|
for (const s of n)
|
|
1376
1393
|
s.stop();
|
|
1377
|
-
|
|
1394
|
+
yn(e);
|
|
1378
1395
|
var i = e.parent;
|
|
1379
|
-
i !== null && i.first !== null &&
|
|
1396
|
+
i !== null && i.first !== null && xn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1380
1397
|
}
|
|
1381
|
-
function
|
|
1398
|
+
function as(e, t) {
|
|
1382
1399
|
for (; e !== null; ) {
|
|
1383
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1400
|
+
var r = e === t ? null : /* @__PURE__ */ he(e);
|
|
1384
1401
|
e.remove(), e = r;
|
|
1385
1402
|
}
|
|
1386
1403
|
}
|
|
1387
|
-
function
|
|
1404
|
+
function xn(e) {
|
|
1388
1405
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1389
1406
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1390
1407
|
}
|
|
1391
|
-
function
|
|
1408
|
+
function Qe(e, t, r = !0) {
|
|
1392
1409
|
var n = [];
|
|
1393
|
-
|
|
1410
|
+
wn(e, n, !0);
|
|
1394
1411
|
var i = () => {
|
|
1395
|
-
r &&
|
|
1412
|
+
r && F(e), t && t();
|
|
1396
1413
|
}, s = n.length;
|
|
1397
1414
|
if (s > 0) {
|
|
1398
1415
|
var o = () => --s || i();
|
|
@@ -1401,71 +1418,87 @@ function at(e, t, r = !0) {
|
|
|
1401
1418
|
} else
|
|
1402
1419
|
i();
|
|
1403
1420
|
}
|
|
1404
|
-
function
|
|
1405
|
-
if (!(e.f &
|
|
1406
|
-
e.f ^=
|
|
1421
|
+
function wn(e, t, r) {
|
|
1422
|
+
if (!(e.f & K)) {
|
|
1423
|
+
e.f ^= K;
|
|
1407
1424
|
var n = e.nodes && e.nodes.t;
|
|
1408
1425
|
if (n !== null)
|
|
1409
1426
|
for (const a of n)
|
|
1410
1427
|
(a.is_global || r) && t.push(a);
|
|
1411
1428
|
for (var i = e.first; i !== null; ) {
|
|
1412
|
-
var s = i.next, o = (i.f &
|
|
1429
|
+
var s = i.next, o = (i.f & Re) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1413
1430
|
// it means the parent block effect was pruned. In that case,
|
|
1414
1431
|
// transparency information was transferred to the branch effect.
|
|
1415
|
-
(i.f &
|
|
1416
|
-
|
|
1432
|
+
(i.f & le) !== 0 && (e.f & ue) !== 0;
|
|
1433
|
+
wn(i, t, o ? r : !1), i = s;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
function us(e) {
|
|
1438
|
+
Tn(e, !0);
|
|
1439
|
+
}
|
|
1440
|
+
function Tn(e, t) {
|
|
1441
|
+
if (e.f & K) {
|
|
1442
|
+
e.f ^= K, e.f & I || (P(e, C), oe(e));
|
|
1443
|
+
for (var r = e.first; r !== null; ) {
|
|
1444
|
+
var n = r.next, i = (r.f & Re) !== 0 || (r.f & le) !== 0;
|
|
1445
|
+
Tn(r, i ? t : !1), r = n;
|
|
1417
1446
|
}
|
|
1447
|
+
var s = e.nodes && e.nodes.t;
|
|
1448
|
+
if (s !== null)
|
|
1449
|
+
for (const o of s)
|
|
1450
|
+
(o.is_global || t) && o.in();
|
|
1418
1451
|
}
|
|
1419
1452
|
}
|
|
1420
|
-
function
|
|
1453
|
+
function Sn(e, t) {
|
|
1421
1454
|
if (e.nodes)
|
|
1422
1455
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1423
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1456
|
+
var i = r === n ? null : /* @__PURE__ */ he(r);
|
|
1424
1457
|
t.append(r), r = i;
|
|
1425
1458
|
}
|
|
1426
1459
|
}
|
|
1427
1460
|
let Ee = !1;
|
|
1428
|
-
function
|
|
1461
|
+
function yt(e) {
|
|
1429
1462
|
Ee = e;
|
|
1430
1463
|
}
|
|
1431
|
-
let
|
|
1432
|
-
function
|
|
1433
|
-
|
|
1464
|
+
let _e = !1;
|
|
1465
|
+
function wr(e) {
|
|
1466
|
+
_e = e;
|
|
1434
1467
|
}
|
|
1435
1468
|
let m = null, Z = !1;
|
|
1436
|
-
function
|
|
1469
|
+
function D(e) {
|
|
1437
1470
|
m = e;
|
|
1438
1471
|
}
|
|
1439
1472
|
let g = null;
|
|
1440
|
-
function
|
|
1473
|
+
function ee(e) {
|
|
1441
1474
|
g = e;
|
|
1442
1475
|
}
|
|
1443
|
-
let
|
|
1444
|
-
function
|
|
1445
|
-
m !== null && (
|
|
1476
|
+
let se = null;
|
|
1477
|
+
function Hn(e) {
|
|
1478
|
+
m !== null && (se === null ? se = [e] : se.push(e));
|
|
1446
1479
|
}
|
|
1447
|
-
let
|
|
1448
|
-
function
|
|
1480
|
+
let $ = null, U = 0, j = null;
|
|
1481
|
+
function ls(e) {
|
|
1449
1482
|
j = e;
|
|
1450
1483
|
}
|
|
1451
|
-
let
|
|
1452
|
-
function
|
|
1484
|
+
let An = 1, ye = 0, xe = ye;
|
|
1485
|
+
function Tr(e) {
|
|
1453
1486
|
xe = e;
|
|
1454
1487
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return ++
|
|
1488
|
+
function Bn() {
|
|
1489
|
+
return ++An;
|
|
1457
1490
|
}
|
|
1458
|
-
function
|
|
1491
|
+
function ot(e) {
|
|
1459
1492
|
var t = e.f;
|
|
1460
|
-
if (t &
|
|
1493
|
+
if (t & C)
|
|
1461
1494
|
return !0;
|
|
1462
|
-
if (t & O && (e.f &= ~we), t &
|
|
1495
|
+
if (t & O && (e.f &= ~we), t & fe) {
|
|
1463
1496
|
for (var r = (
|
|
1464
1497
|
/** @type {Value[]} */
|
|
1465
1498
|
e.deps
|
|
1466
1499
|
), n = r.length, i = 0; i < n; i++) {
|
|
1467
1500
|
var s = r[i];
|
|
1468
|
-
if (
|
|
1501
|
+
if (ot(
|
|
1469
1502
|
/** @type {Derived} */
|
|
1470
1503
|
s
|
|
1471
1504
|
) && un(
|
|
@@ -1474,80 +1507,80 @@ function Ke(e) {
|
|
|
1474
1507
|
), s.wv > e.wv)
|
|
1475
1508
|
return !0;
|
|
1476
1509
|
}
|
|
1477
|
-
t &
|
|
1510
|
+
t & X && // During time traveling we don't want to reset the status so that
|
|
1478
1511
|
// traversal of the graph in the other batches still happens
|
|
1479
|
-
z === null &&
|
|
1512
|
+
z === null && P(e, I);
|
|
1480
1513
|
}
|
|
1481
1514
|
return !1;
|
|
1482
1515
|
}
|
|
1483
|
-
function
|
|
1516
|
+
function Pn(e, t, r = !0) {
|
|
1484
1517
|
var n = e.reactions;
|
|
1485
|
-
if (n !== null && !
|
|
1518
|
+
if (n !== null && !se?.includes(e))
|
|
1486
1519
|
for (var i = 0; i < n.length; i++) {
|
|
1487
1520
|
var s = n[i];
|
|
1488
|
-
s.f & O ?
|
|
1521
|
+
s.f & O ? Pn(
|
|
1489
1522
|
/** @type {Derived} */
|
|
1490
1523
|
s,
|
|
1491
1524
|
t,
|
|
1492
1525
|
!1
|
|
1493
|
-
) : t === s && (r ?
|
|
1526
|
+
) : t === s && (r ? P(s, C) : s.f & I && P(s, fe), oe(
|
|
1494
1527
|
/** @type {Effect} */
|
|
1495
1528
|
s
|
|
1496
1529
|
));
|
|
1497
1530
|
}
|
|
1498
1531
|
}
|
|
1499
|
-
function
|
|
1500
|
-
var t =
|
|
1501
|
-
|
|
1502
|
-
null,
|
|
1503
|
-
e.ac.abort(
|
|
1532
|
+
function Nn(e) {
|
|
1533
|
+
var t = $, r = U, n = j, i = m, s = se, o = W, a = Z, u = xe, l = e.f;
|
|
1534
|
+
$ = /** @type {null | Value[]} */
|
|
1535
|
+
null, U = 0, j = null, m = l & (le | me) ? null : e, se = null, Ce(e.ctx), Z = !1, xe = ++ye, e.ac !== null && (vn(() => {
|
|
1536
|
+
e.ac.abort(Pe);
|
|
1504
1537
|
}), e.ac = null);
|
|
1505
1538
|
try {
|
|
1506
|
-
e.f |=
|
|
1539
|
+
e.f |= jt;
|
|
1507
1540
|
var f = (
|
|
1508
1541
|
/** @type {Function} */
|
|
1509
1542
|
e.fn
|
|
1510
1543
|
), c = f(), h = e.deps;
|
|
1511
|
-
if (
|
|
1544
|
+
if ($ !== null) {
|
|
1512
1545
|
var d;
|
|
1513
|
-
if (
|
|
1514
|
-
for (h.length =
|
|
1515
|
-
h[
|
|
1546
|
+
if (Et(e, U), h !== null && U > 0)
|
|
1547
|
+
for (h.length = U + $.length, d = 0; d < $.length; d++)
|
|
1548
|
+
h[U + d] = $[d];
|
|
1516
1549
|
else
|
|
1517
|
-
e.deps = h =
|
|
1518
|
-
if (
|
|
1519
|
-
for (d =
|
|
1550
|
+
e.deps = h = $;
|
|
1551
|
+
if (dr() && e.f & X)
|
|
1552
|
+
for (d = U; d < h.length; d++)
|
|
1520
1553
|
(h[d].reactions ??= []).push(e);
|
|
1521
|
-
} else h !== null &&
|
|
1522
|
-
if (Jr() && j !== null && !Z && h !== null && !(e.f & (O |
|
|
1554
|
+
} else h !== null && U < h.length && (Et(e, U), h.length = U);
|
|
1555
|
+
if (Jr() && j !== null && !Z && h !== null && !(e.f & (O | fe | C)))
|
|
1523
1556
|
for (d = 0; d < /** @type {Source[]} */
|
|
1524
1557
|
j.length; d++)
|
|
1525
|
-
|
|
1558
|
+
Pn(
|
|
1526
1559
|
j[d],
|
|
1527
1560
|
/** @type {Effect} */
|
|
1528
1561
|
e
|
|
1529
1562
|
);
|
|
1530
1563
|
if (i !== null && i !== e) {
|
|
1531
|
-
if (
|
|
1564
|
+
if (ye++, i.deps !== null)
|
|
1532
1565
|
for (let p = 0; p < r; p += 1)
|
|
1533
|
-
i.deps[p].rv =
|
|
1566
|
+
i.deps[p].rv = ye;
|
|
1534
1567
|
if (t !== null)
|
|
1535
1568
|
for (const p of t)
|
|
1536
|
-
p.rv =
|
|
1569
|
+
p.rv = ye;
|
|
1537
1570
|
j !== null && (n === null ? n = j : n.push(.../** @type {Source[]} */
|
|
1538
1571
|
j));
|
|
1539
1572
|
}
|
|
1540
|
-
return e.f &
|
|
1573
|
+
return e.f & pe && (e.f ^= pe), c;
|
|
1541
1574
|
} catch (p) {
|
|
1542
1575
|
return en(p);
|
|
1543
1576
|
} finally {
|
|
1544
|
-
e.f ^=
|
|
1577
|
+
e.f ^= jt, $ = t, U = r, j = n, m = i, se = s, Ce(o), Z = a, xe = u;
|
|
1545
1578
|
}
|
|
1546
1579
|
}
|
|
1547
|
-
function
|
|
1580
|
+
function fs(e, t) {
|
|
1548
1581
|
let r = t.reactions;
|
|
1549
1582
|
if (r !== null) {
|
|
1550
|
-
var n =
|
|
1583
|
+
var n = vi.call(r, e);
|
|
1551
1584
|
if (n !== -1) {
|
|
1552
1585
|
var i = r.length - 1;
|
|
1553
1586
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1556,48 +1589,48 @@ function is(e, t) {
|
|
|
1556
1589
|
if (r === null && t.f & O && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1557
1590
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1558
1591
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1559
|
-
(
|
|
1592
|
+
($ === null || !$.includes(t))) {
|
|
1560
1593
|
var s = (
|
|
1561
1594
|
/** @type {Derived} */
|
|
1562
1595
|
t
|
|
1563
1596
|
);
|
|
1564
|
-
s.f &
|
|
1597
|
+
s.f & X && (s.f ^= X, s.f &= ~we), fr(s), an(s), Et(s, 0);
|
|
1565
1598
|
}
|
|
1566
1599
|
}
|
|
1567
|
-
function
|
|
1600
|
+
function Et(e, t) {
|
|
1568
1601
|
var r = e.deps;
|
|
1569
1602
|
if (r !== null)
|
|
1570
1603
|
for (var n = t; n < r.length; n++)
|
|
1571
|
-
|
|
1604
|
+
fs(e, r[n]);
|
|
1572
1605
|
}
|
|
1573
|
-
function
|
|
1606
|
+
function et(e) {
|
|
1574
1607
|
var t = e.f;
|
|
1575
|
-
if (!(t &
|
|
1576
|
-
|
|
1608
|
+
if (!(t & ie)) {
|
|
1609
|
+
P(e, I);
|
|
1577
1610
|
var r = g, n = Ee;
|
|
1578
1611
|
g = e, Ee = !0;
|
|
1579
1612
|
try {
|
|
1580
|
-
t & (
|
|
1581
|
-
var i =
|
|
1582
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1613
|
+
t & (ue | Xr) ? os(e) : En(e), yn(e);
|
|
1614
|
+
var i = Nn(e);
|
|
1615
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = An;
|
|
1583
1616
|
var s;
|
|
1584
|
-
|
|
1617
|
+
kt && Mi && e.f & C && e.deps;
|
|
1585
1618
|
} finally {
|
|
1586
1619
|
Ee = n, g = r;
|
|
1587
1620
|
}
|
|
1588
1621
|
}
|
|
1589
1622
|
}
|
|
1590
|
-
async function
|
|
1623
|
+
async function hs() {
|
|
1591
1624
|
await Promise.resolve(), Oe();
|
|
1592
1625
|
}
|
|
1593
|
-
function
|
|
1626
|
+
function y(e) {
|
|
1594
1627
|
var t = e.f, r = (t & O) !== 0;
|
|
1595
1628
|
if (m !== null && !Z) {
|
|
1596
|
-
var n = g !== null && (g.f &
|
|
1597
|
-
if (!n && !
|
|
1629
|
+
var n = g !== null && (g.f & ie) !== 0;
|
|
1630
|
+
if (!n && !se?.includes(e)) {
|
|
1598
1631
|
var i = m.deps;
|
|
1599
|
-
if (m.f &
|
|
1600
|
-
e.rv <
|
|
1632
|
+
if (m.f & jt)
|
|
1633
|
+
e.rv < ye && (e.rv = ye, $ === null && i !== null && i[U] === e ? U++ : $ === null ? $ = [e] : $.push(e));
|
|
1601
1634
|
else {
|
|
1602
1635
|
(m.deps ??= []).push(e);
|
|
1603
1636
|
var s = e.reactions;
|
|
@@ -1605,48 +1638,48 @@ function E(e) {
|
|
|
1605
1638
|
}
|
|
1606
1639
|
}
|
|
1607
1640
|
}
|
|
1608
|
-
if (
|
|
1609
|
-
return
|
|
1641
|
+
if (_e && ve.has(e))
|
|
1642
|
+
return ve.get(e);
|
|
1610
1643
|
if (r) {
|
|
1611
1644
|
var o = (
|
|
1612
1645
|
/** @type {Derived} */
|
|
1613
1646
|
e
|
|
1614
1647
|
);
|
|
1615
|
-
if (
|
|
1648
|
+
if (_e) {
|
|
1616
1649
|
var a = o.v;
|
|
1617
|
-
return (!(o.f &
|
|
1650
|
+
return (!(o.f & I) && o.reactions !== null || Ln(o)) && (a = cr(o)), ve.set(o, a), a;
|
|
1618
1651
|
}
|
|
1619
|
-
var
|
|
1620
|
-
|
|
1652
|
+
var u = (o.f & X) === 0 && !Z && m !== null && (Ee || (m.f & X) !== 0), l = o.deps === null;
|
|
1653
|
+
ot(o) && (u && (o.f |= X), un(o)), u && !l && On(o);
|
|
1621
1654
|
}
|
|
1622
1655
|
if (z?.has(e))
|
|
1623
1656
|
return z.get(e);
|
|
1624
|
-
if (e.f &
|
|
1657
|
+
if (e.f & pe)
|
|
1625
1658
|
throw e.v;
|
|
1626
1659
|
return e.v;
|
|
1627
1660
|
}
|
|
1628
|
-
function
|
|
1661
|
+
function On(e) {
|
|
1629
1662
|
if (e.deps !== null) {
|
|
1630
|
-
e.f |=
|
|
1663
|
+
e.f |= X;
|
|
1631
1664
|
for (const t of e.deps)
|
|
1632
|
-
(t.reactions ??= []).push(e), t.f & O && !(t.f &
|
|
1665
|
+
(t.reactions ??= []).push(e), t.f & O && !(t.f & X) && On(
|
|
1633
1666
|
/** @type {Derived} */
|
|
1634
1667
|
t
|
|
1635
1668
|
);
|
|
1636
1669
|
}
|
|
1637
1670
|
}
|
|
1638
|
-
function
|
|
1639
|
-
if (e.v ===
|
|
1671
|
+
function Ln(e) {
|
|
1672
|
+
if (e.v === N) return !0;
|
|
1640
1673
|
if (e.deps === null) return !1;
|
|
1641
1674
|
for (const t of e.deps)
|
|
1642
|
-
if (
|
|
1675
|
+
if (ve.has(t) || t.f & O && Ln(
|
|
1643
1676
|
/** @type {Derived} */
|
|
1644
1677
|
t
|
|
1645
1678
|
))
|
|
1646
1679
|
return !0;
|
|
1647
1680
|
return !1;
|
|
1648
1681
|
}
|
|
1649
|
-
function
|
|
1682
|
+
function In(e) {
|
|
1650
1683
|
var t = Z;
|
|
1651
1684
|
try {
|
|
1652
1685
|
return Z = !0, e();
|
|
@@ -1654,9 +1687,9 @@ function hr(e) {
|
|
|
1654
1687
|
Z = t;
|
|
1655
1688
|
}
|
|
1656
1689
|
}
|
|
1657
|
-
const
|
|
1658
|
-
let
|
|
1659
|
-
function
|
|
1690
|
+
const cs = /* @__PURE__ */ new Set(), Sr = /* @__PURE__ */ new Set();
|
|
1691
|
+
let Hr = null;
|
|
1692
|
+
function lt(e) {
|
|
1660
1693
|
var t = this, r = (
|
|
1661
1694
|
/** @type {Node} */
|
|
1662
1695
|
t.ownerDocument
|
|
@@ -1664,30 +1697,30 @@ function nt(e) {
|
|
|
1664
1697
|
/** @type {null | Element} */
|
|
1665
1698
|
i[0] || e.target
|
|
1666
1699
|
);
|
|
1667
|
-
|
|
1668
|
-
var o = 0, a =
|
|
1700
|
+
Hr = e;
|
|
1701
|
+
var o = 0, a = Hr === e && e.__root;
|
|
1669
1702
|
if (a) {
|
|
1670
|
-
var
|
|
1671
|
-
if (
|
|
1703
|
+
var u = i.indexOf(a);
|
|
1704
|
+
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1672
1705
|
window)) {
|
|
1673
1706
|
e.__root = t;
|
|
1674
1707
|
return;
|
|
1675
1708
|
}
|
|
1676
|
-
var
|
|
1677
|
-
if (
|
|
1709
|
+
var l = i.indexOf(t);
|
|
1710
|
+
if (l === -1)
|
|
1678
1711
|
return;
|
|
1679
|
-
|
|
1712
|
+
u <= l && (o = u);
|
|
1680
1713
|
}
|
|
1681
1714
|
if (s = /** @type {Element} */
|
|
1682
1715
|
i[o] || e.target, s !== t) {
|
|
1683
|
-
|
|
1716
|
+
Je(e, "currentTarget", {
|
|
1684
1717
|
configurable: !0,
|
|
1685
1718
|
get() {
|
|
1686
1719
|
return s || r;
|
|
1687
1720
|
}
|
|
1688
1721
|
});
|
|
1689
1722
|
var f = m, c = g;
|
|
1690
|
-
|
|
1723
|
+
D(null), ee(null);
|
|
1691
1724
|
try {
|
|
1692
1725
|
for (var h, d = []; s !== null; ) {
|
|
1693
1726
|
var p = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
@@ -1698,30 +1731,30 @@ function nt(e) {
|
|
|
1698
1731
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1699
1732
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1700
1733
|
e.target === s) && v.call(s, e);
|
|
1701
|
-
} catch (
|
|
1702
|
-
h ? d.push(
|
|
1734
|
+
} catch (H) {
|
|
1735
|
+
h ? d.push(H) : h = H;
|
|
1703
1736
|
}
|
|
1704
1737
|
if (e.cancelBubble || p === t || p === null)
|
|
1705
1738
|
break;
|
|
1706
1739
|
s = p;
|
|
1707
1740
|
}
|
|
1708
1741
|
if (h) {
|
|
1709
|
-
for (let
|
|
1742
|
+
for (let H of d)
|
|
1710
1743
|
queueMicrotask(() => {
|
|
1711
|
-
throw
|
|
1744
|
+
throw H;
|
|
1712
1745
|
});
|
|
1713
1746
|
throw h;
|
|
1714
1747
|
}
|
|
1715
1748
|
} finally {
|
|
1716
|
-
e.__root = t, delete e.currentTarget,
|
|
1749
|
+
e.__root = t, delete e.currentTarget, D(f), ee(c);
|
|
1717
1750
|
}
|
|
1718
1751
|
}
|
|
1719
1752
|
}
|
|
1720
|
-
function
|
|
1753
|
+
function ds(e) {
|
|
1721
1754
|
var t = document.createElement("template");
|
|
1722
1755
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1723
1756
|
}
|
|
1724
|
-
function
|
|
1757
|
+
function tt(e, t) {
|
|
1725
1758
|
var r = (
|
|
1726
1759
|
/** @type {Effect} */
|
|
1727
1760
|
g
|
|
@@ -1729,27 +1762,33 @@ function Vt(e, t) {
|
|
|
1729
1762
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1730
1763
|
}
|
|
1731
1764
|
// @__NO_SIDE_EFFECTS__
|
|
1732
|
-
function
|
|
1733
|
-
var r = (t &
|
|
1765
|
+
function Rn(e, t) {
|
|
1766
|
+
var r = (t & di) !== 0, n, i = !e.startsWith("<!>");
|
|
1734
1767
|
return () => {
|
|
1735
|
-
if (
|
|
1736
|
-
return
|
|
1737
|
-
n === void 0 && (n =
|
|
1738
|
-
/* @__PURE__ */
|
|
1768
|
+
if (A)
|
|
1769
|
+
return tt(E, null), E;
|
|
1770
|
+
n === void 0 && (n = ds(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1771
|
+
/* @__PURE__ */ Ke(n));
|
|
1739
1772
|
var s = (
|
|
1740
1773
|
/** @type {TemplateNode} */
|
|
1741
1774
|
r || cn ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1742
1775
|
);
|
|
1743
|
-
return
|
|
1776
|
+
return tt(s, s), s;
|
|
1744
1777
|
};
|
|
1745
1778
|
}
|
|
1746
|
-
function
|
|
1747
|
-
if (
|
|
1779
|
+
function ps() {
|
|
1780
|
+
if (A)
|
|
1781
|
+
return tt(E, null), E;
|
|
1782
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ae();
|
|
1783
|
+
return e.append(t, r), tt(t, r), e;
|
|
1784
|
+
}
|
|
1785
|
+
function ct(e, t) {
|
|
1786
|
+
if (A) {
|
|
1748
1787
|
var r = (
|
|
1749
1788
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1750
1789
|
g
|
|
1751
1790
|
);
|
|
1752
|
-
(!(r.f &
|
|
1791
|
+
(!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = E), ur();
|
|
1753
1792
|
return;
|
|
1754
1793
|
}
|
|
1755
1794
|
e !== null && e.before(
|
|
@@ -1757,61 +1796,61 @@ function On(e, t) {
|
|
|
1757
1796
|
t
|
|
1758
1797
|
);
|
|
1759
1798
|
}
|
|
1760
|
-
const
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1799
|
+
const vs = ["touchstart", "touchmove"];
|
|
1800
|
+
function _s(e) {
|
|
1801
|
+
return vs.includes(e);
|
|
1763
1802
|
}
|
|
1764
|
-
function
|
|
1803
|
+
function Ar(e, t) {
|
|
1765
1804
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1766
1805
|
r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
|
|
1767
1806
|
}
|
|
1768
|
-
function
|
|
1769
|
-
return
|
|
1807
|
+
function Cn(e, t) {
|
|
1808
|
+
return Mn(e, t);
|
|
1770
1809
|
}
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1773
|
-
const r = t.target, n =
|
|
1810
|
+
function ms(e, t) {
|
|
1811
|
+
Wt(), t.intro = t.intro ?? !1;
|
|
1812
|
+
const r = t.target, n = A, i = E;
|
|
1774
1813
|
try {
|
|
1775
|
-
for (var s = /* @__PURE__ */
|
|
1776
|
-
s.data !==
|
|
1777
|
-
s = /* @__PURE__ */
|
|
1814
|
+
for (var s = /* @__PURE__ */ Ke(r); s && (s.nodeType !== it || /** @type {Comment} */
|
|
1815
|
+
s.data !== Gr); )
|
|
1816
|
+
s = /* @__PURE__ */ he(s);
|
|
1778
1817
|
if (!s)
|
|
1779
|
-
throw
|
|
1780
|
-
|
|
1818
|
+
throw Ie;
|
|
1819
|
+
Ne(!0), Y(
|
|
1781
1820
|
/** @type {Comment} */
|
|
1782
1821
|
s
|
|
1783
1822
|
);
|
|
1784
|
-
const o =
|
|
1785
|
-
return
|
|
1823
|
+
const o = Mn(e, { ...t, anchor: s });
|
|
1824
|
+
return Ne(!1), /** @type {Exports} */
|
|
1786
1825
|
o;
|
|
1787
1826
|
} catch (o) {
|
|
1788
1827
|
if (o instanceof Error && o.message.split(`
|
|
1789
1828
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1790
1829
|
throw o;
|
|
1791
|
-
return o !==
|
|
1830
|
+
return o !== Ie && console.warn("Failed to hydrate: ", o), t.recover === !1 && Ai(), Wt(), Qi(r), Ne(!1), Cn(e, t);
|
|
1792
1831
|
} finally {
|
|
1793
|
-
|
|
1832
|
+
Ne(n), Y(i);
|
|
1794
1833
|
}
|
|
1795
1834
|
}
|
|
1796
1835
|
const Ae = /* @__PURE__ */ new Map();
|
|
1797
|
-
function
|
|
1798
|
-
|
|
1799
|
-
var a = /* @__PURE__ */ new Set(),
|
|
1836
|
+
function Mn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
|
|
1837
|
+
Wt();
|
|
1838
|
+
var a = /* @__PURE__ */ new Set(), u = (c) => {
|
|
1800
1839
|
for (var h = 0; h < c.length; h++) {
|
|
1801
1840
|
var d = c[h];
|
|
1802
1841
|
if (!a.has(d)) {
|
|
1803
1842
|
a.add(d);
|
|
1804
|
-
var p =
|
|
1805
|
-
t.addEventListener(d,
|
|
1843
|
+
var p = _s(d);
|
|
1844
|
+
t.addEventListener(d, lt, { passive: p });
|
|
1806
1845
|
var v = Ae.get(d);
|
|
1807
|
-
v === void 0 ? (document.addEventListener(d,
|
|
1846
|
+
v === void 0 ? (document.addEventListener(d, lt, { passive: p }), Ae.set(d, 1)) : Ae.set(d, v + 1);
|
|
1808
1847
|
}
|
|
1809
1848
|
}
|
|
1810
1849
|
};
|
|
1811
|
-
|
|
1812
|
-
var
|
|
1813
|
-
var c = r ?? t.appendChild(
|
|
1814
|
-
return
|
|
1850
|
+
u(_i(cs)), Sr.add(u);
|
|
1851
|
+
var l = void 0, f = rs(() => {
|
|
1852
|
+
var c = r ?? t.appendChild(ae());
|
|
1853
|
+
return ki(
|
|
1815
1854
|
/** @type {TemplateNode} */
|
|
1816
1855
|
c,
|
|
1817
1856
|
{
|
|
@@ -1820,45 +1859,205 @@ function Ln(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1820
1859
|
},
|
|
1821
1860
|
(h) => {
|
|
1822
1861
|
if (s) {
|
|
1823
|
-
|
|
1862
|
+
Yr({});
|
|
1824
1863
|
var d = (
|
|
1825
1864
|
/** @type {ComponentContext} */
|
|
1826
|
-
|
|
1865
|
+
W
|
|
1827
1866
|
);
|
|
1828
1867
|
d.c = s;
|
|
1829
1868
|
}
|
|
1830
|
-
if (i && (n.$$events = i),
|
|
1869
|
+
if (i && (n.$$events = i), A && tt(
|
|
1831
1870
|
/** @type {TemplateNode} */
|
|
1832
1871
|
h,
|
|
1833
1872
|
null
|
|
1834
|
-
),
|
|
1835
|
-
|
|
1836
|
-
throw
|
|
1837
|
-
s &&
|
|
1873
|
+
), l = e(h, n) || {}, A && (g.nodes.end = E, E === null || E.nodeType !== it || /** @type {Comment} */
|
|
1874
|
+
E.data !== kr))
|
|
1875
|
+
throw At(), Ie;
|
|
1876
|
+
s && Qr();
|
|
1838
1877
|
}
|
|
1839
1878
|
), () => {
|
|
1840
1879
|
for (var h of a) {
|
|
1841
|
-
t.removeEventListener(h,
|
|
1880
|
+
t.removeEventListener(h, lt);
|
|
1842
1881
|
var d = (
|
|
1843
1882
|
/** @type {number} */
|
|
1844
1883
|
Ae.get(h)
|
|
1845
1884
|
);
|
|
1846
|
-
--d === 0 ? (document.removeEventListener(h,
|
|
1885
|
+
--d === 0 ? (document.removeEventListener(h, lt), Ae.delete(h)) : Ae.set(h, d);
|
|
1847
1886
|
}
|
|
1848
|
-
|
|
1887
|
+
Sr.delete(u), c !== r && c.parentNode?.removeChild(c);
|
|
1849
1888
|
};
|
|
1850
1889
|
});
|
|
1851
|
-
return
|
|
1890
|
+
return zt.set(l, f), l;
|
|
1852
1891
|
}
|
|
1853
|
-
let
|
|
1854
|
-
function
|
|
1855
|
-
const r =
|
|
1856
|
-
return r ? (
|
|
1892
|
+
let zt = /* @__PURE__ */ new WeakMap();
|
|
1893
|
+
function bs(e, t) {
|
|
1894
|
+
const r = zt.get(e);
|
|
1895
|
+
return r ? (zt.delete(e), r(t)) : Promise.resolve();
|
|
1857
1896
|
}
|
|
1858
|
-
|
|
1897
|
+
class gs {
|
|
1898
|
+
/** @type {TemplateNode} */
|
|
1899
|
+
anchor;
|
|
1900
|
+
/** @type {Map<Batch, Key>} */
|
|
1901
|
+
#e = /* @__PURE__ */ new Map();
|
|
1902
|
+
/**
|
|
1903
|
+
* Map of keys to effects that are currently rendered in the DOM.
|
|
1904
|
+
* These effects are visible and actively part of the document tree.
|
|
1905
|
+
* Example:
|
|
1906
|
+
* ```
|
|
1907
|
+
* {#if condition}
|
|
1908
|
+
* foo
|
|
1909
|
+
* {:else}
|
|
1910
|
+
* bar
|
|
1911
|
+
* {/if}
|
|
1912
|
+
* ```
|
|
1913
|
+
* Can result in the entries `true->Effect` and `false->Effect`
|
|
1914
|
+
* @type {Map<Key, Effect>}
|
|
1915
|
+
*/
|
|
1916
|
+
#t = /* @__PURE__ */ new Map();
|
|
1917
|
+
/**
|
|
1918
|
+
* Similar to #onscreen with respect to the keys, but contains branches that are not yet
|
|
1919
|
+
* in the DOM, because their insertion is deferred.
|
|
1920
|
+
* @type {Map<Key, Branch>}
|
|
1921
|
+
*/
|
|
1922
|
+
#r = /* @__PURE__ */ new Map();
|
|
1923
|
+
/**
|
|
1924
|
+
* Keys of effects that are currently outroing
|
|
1925
|
+
* @type {Set<Key>}
|
|
1926
|
+
*/
|
|
1927
|
+
#s = /* @__PURE__ */ new Set();
|
|
1928
|
+
/**
|
|
1929
|
+
* Whether to pause (i.e. outro) on change, or destroy immediately.
|
|
1930
|
+
* This is necessary for `<svelte:element>`
|
|
1931
|
+
*/
|
|
1932
|
+
#o = !0;
|
|
1933
|
+
/**
|
|
1934
|
+
* @param {TemplateNode} anchor
|
|
1935
|
+
* @param {boolean} transition
|
|
1936
|
+
*/
|
|
1937
|
+
constructor(t, r = !0) {
|
|
1938
|
+
this.anchor = t, this.#o = r;
|
|
1939
|
+
}
|
|
1940
|
+
#i = () => {
|
|
1941
|
+
var t = (
|
|
1942
|
+
/** @type {Batch} */
|
|
1943
|
+
S
|
|
1944
|
+
);
|
|
1945
|
+
if (this.#e.has(t)) {
|
|
1946
|
+
var r = (
|
|
1947
|
+
/** @type {Key} */
|
|
1948
|
+
this.#e.get(t)
|
|
1949
|
+
), n = this.#t.get(r);
|
|
1950
|
+
if (n)
|
|
1951
|
+
us(n), this.#s.delete(r);
|
|
1952
|
+
else {
|
|
1953
|
+
var i = this.#r.get(r);
|
|
1954
|
+
i && (this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
1955
|
+
}
|
|
1956
|
+
for (const [s, o] of this.#e) {
|
|
1957
|
+
if (this.#e.delete(s), s === t)
|
|
1958
|
+
break;
|
|
1959
|
+
const a = this.#r.get(o);
|
|
1960
|
+
a && (F(a.effect), this.#r.delete(o));
|
|
1961
|
+
}
|
|
1962
|
+
for (const [s, o] of this.#t) {
|
|
1963
|
+
if (s === r || this.#s.has(s)) continue;
|
|
1964
|
+
const a = () => {
|
|
1965
|
+
if (Array.from(this.#e.values()).includes(s)) {
|
|
1966
|
+
var l = document.createDocumentFragment();
|
|
1967
|
+
Sn(o, l), l.append(ae()), this.#r.set(s, { effect: o, fragment: l });
|
|
1968
|
+
} else
|
|
1969
|
+
F(o);
|
|
1970
|
+
this.#s.delete(s), this.#t.delete(s);
|
|
1971
|
+
};
|
|
1972
|
+
this.#o || !n ? (this.#s.add(s), Qe(o, a, !1)) : a();
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
};
|
|
1976
|
+
/**
|
|
1977
|
+
* @param {Batch} batch
|
|
1978
|
+
*/
|
|
1979
|
+
#n = (t) => {
|
|
1980
|
+
this.#e.delete(t);
|
|
1981
|
+
const r = Array.from(this.#e.values());
|
|
1982
|
+
for (const [n, i] of this.#r)
|
|
1983
|
+
r.includes(n) || (F(i.effect), this.#r.delete(n));
|
|
1984
|
+
};
|
|
1985
|
+
/**
|
|
1986
|
+
*
|
|
1987
|
+
* @param {any} key
|
|
1988
|
+
* @param {null | ((target: TemplateNode) => void)} fn
|
|
1989
|
+
*/
|
|
1990
|
+
ensure(t, r) {
|
|
1991
|
+
var n = (
|
|
1992
|
+
/** @type {Batch} */
|
|
1993
|
+
S
|
|
1994
|
+
), i = Ji();
|
|
1995
|
+
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
1996
|
+
if (i) {
|
|
1997
|
+
var s = document.createDocumentFragment(), o = ae();
|
|
1998
|
+
s.append(o), this.#r.set(t, {
|
|
1999
|
+
effect: ne(() => r(o)),
|
|
2000
|
+
fragment: s
|
|
2001
|
+
});
|
|
2002
|
+
} else
|
|
2003
|
+
this.#t.set(
|
|
2004
|
+
t,
|
|
2005
|
+
ne(() => r(this.anchor))
|
|
2006
|
+
);
|
|
2007
|
+
if (this.#e.set(n, t), i) {
|
|
2008
|
+
for (const [a, u] of this.#t)
|
|
2009
|
+
a === t ? n.skipped_effects.delete(u) : n.skipped_effects.add(u);
|
|
2010
|
+
for (const [a, u] of this.#r)
|
|
2011
|
+
a === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
|
|
2012
|
+
n.oncommit(this.#i), n.ondiscard(this.#n);
|
|
2013
|
+
} else
|
|
2014
|
+
A && (this.anchor = E), this.#i();
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
function ys(e, t, r = !1) {
|
|
2018
|
+
A && ur();
|
|
2019
|
+
var n = new gs(e), i = r ? Re : 0;
|
|
2020
|
+
function s(o, a) {
|
|
2021
|
+
if (A) {
|
|
2022
|
+
const l = Ri(e) === ir;
|
|
2023
|
+
if (o === l) {
|
|
2024
|
+
var u = zr();
|
|
2025
|
+
Y(u), n.anchor = u, Ne(!1), n.ensure(o, a), Ne(!0);
|
|
2026
|
+
return;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
n.ensure(o, a);
|
|
2030
|
+
}
|
|
2031
|
+
gn(() => {
|
|
2032
|
+
var o = !1;
|
|
2033
|
+
t((a, u = !0) => {
|
|
2034
|
+
o = !0, s(u, a);
|
|
2035
|
+
}), o || s(!1, null);
|
|
2036
|
+
}, i);
|
|
2037
|
+
}
|
|
2038
|
+
function Es(e, t) {
|
|
2039
|
+
ns(() => {
|
|
2040
|
+
var r = e.getRootNode(), n = (
|
|
2041
|
+
/** @type {ShadowRoot} */
|
|
2042
|
+
r.host ? (
|
|
2043
|
+
/** @type {ShadowRoot} */
|
|
2044
|
+
r
|
|
2045
|
+
) : (
|
|
2046
|
+
/** @type {Document} */
|
|
2047
|
+
r.head ?? /** @type {Document} */
|
|
2048
|
+
r.ownerDocument.head
|
|
2049
|
+
)
|
|
2050
|
+
);
|
|
2051
|
+
if (!n.querySelector("#" + t.hash)) {
|
|
2052
|
+
const i = document.createElement("style");
|
|
2053
|
+
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2054
|
+
}
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
function pr(e, t, r) {
|
|
1859
2058
|
if (e == null)
|
|
1860
|
-
return t(void 0), r && r(void 0),
|
|
1861
|
-
const n =
|
|
2059
|
+
return t(void 0), r && r(void 0), de;
|
|
2060
|
+
const n = In(
|
|
1862
2061
|
() => e.subscribe(
|
|
1863
2062
|
t,
|
|
1864
2063
|
// @ts-expect-error
|
|
@@ -1867,24 +2066,24 @@ function cr(e, t, r) {
|
|
|
1867
2066
|
);
|
|
1868
2067
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
1869
2068
|
}
|
|
1870
|
-
const
|
|
1871
|
-
function
|
|
2069
|
+
const Be = [];
|
|
2070
|
+
function xs(e, t) {
|
|
1872
2071
|
return {
|
|
1873
|
-
subscribe:
|
|
2072
|
+
subscribe: Pt(e, t).subscribe
|
|
1874
2073
|
};
|
|
1875
2074
|
}
|
|
1876
|
-
function
|
|
2075
|
+
function Pt(e, t = de) {
|
|
1877
2076
|
let r = null;
|
|
1878
2077
|
const n = /* @__PURE__ */ new Set();
|
|
1879
2078
|
function i(a) {
|
|
1880
|
-
if (
|
|
1881
|
-
const
|
|
1882
|
-
for (const
|
|
1883
|
-
|
|
1884
|
-
if (
|
|
1885
|
-
for (let
|
|
1886
|
-
|
|
1887
|
-
|
|
2079
|
+
if (Zr(e, a) && (e = a, r)) {
|
|
2080
|
+
const u = !Be.length;
|
|
2081
|
+
for (const l of n)
|
|
2082
|
+
l[1](), Be.push(l, e);
|
|
2083
|
+
if (u) {
|
|
2084
|
+
for (let l = 0; l < Be.length; l += 2)
|
|
2085
|
+
Be[l][0](Be[l + 1]);
|
|
2086
|
+
Be.length = 0;
|
|
1888
2087
|
}
|
|
1889
2088
|
}
|
|
1890
2089
|
}
|
|
@@ -1894,77 +2093,77 @@ function Ht(e, t = ue) {
|
|
|
1894
2093
|
e
|
|
1895
2094
|
));
|
|
1896
2095
|
}
|
|
1897
|
-
function o(a,
|
|
1898
|
-
const
|
|
1899
|
-
return n.add(
|
|
2096
|
+
function o(a, u = de) {
|
|
2097
|
+
const l = [a, u];
|
|
2098
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || de), a(
|
|
1900
2099
|
/** @type {T} */
|
|
1901
2100
|
e
|
|
1902
2101
|
), () => {
|
|
1903
|
-
n.delete(
|
|
2102
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1904
2103
|
};
|
|
1905
2104
|
}
|
|
1906
2105
|
return { set: i, update: s, subscribe: o };
|
|
1907
2106
|
}
|
|
1908
|
-
function
|
|
2107
|
+
function Ge(e, t, r) {
|
|
1909
2108
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1910
2109
|
if (!i.every(Boolean))
|
|
1911
2110
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1912
2111
|
const s = t.length < 2;
|
|
1913
|
-
return
|
|
1914
|
-
let
|
|
1915
|
-
const
|
|
1916
|
-
let f = 0, c =
|
|
2112
|
+
return xs(r, (o, a) => {
|
|
2113
|
+
let u = !1;
|
|
2114
|
+
const l = [];
|
|
2115
|
+
let f = 0, c = de;
|
|
1917
2116
|
const h = () => {
|
|
1918
2117
|
if (f)
|
|
1919
2118
|
return;
|
|
1920
2119
|
c();
|
|
1921
|
-
const p = t(n ?
|
|
1922
|
-
s ? o(p) : c = typeof p == "function" ? p :
|
|
2120
|
+
const p = t(n ? l[0] : l, o, a);
|
|
2121
|
+
s ? o(p) : c = typeof p == "function" ? p : de;
|
|
1923
2122
|
}, d = i.map(
|
|
1924
|
-
(p, v) =>
|
|
2123
|
+
(p, v) => pr(
|
|
1925
2124
|
p,
|
|
1926
|
-
(
|
|
1927
|
-
|
|
2125
|
+
(H) => {
|
|
2126
|
+
l[v] = H, f &= ~(1 << v), u && h();
|
|
1928
2127
|
},
|
|
1929
2128
|
() => {
|
|
1930
2129
|
f |= 1 << v;
|
|
1931
2130
|
}
|
|
1932
2131
|
)
|
|
1933
2132
|
);
|
|
1934
|
-
return
|
|
1935
|
-
jr(d), c(),
|
|
2133
|
+
return u = !0, h(), function() {
|
|
2134
|
+
jr(d), c(), u = !1;
|
|
1936
2135
|
};
|
|
1937
2136
|
});
|
|
1938
2137
|
}
|
|
1939
|
-
function
|
|
2138
|
+
function ws(e) {
|
|
1940
2139
|
let t;
|
|
1941
|
-
return
|
|
2140
|
+
return pr(e, (r) => t = r)(), t;
|
|
1942
2141
|
}
|
|
1943
|
-
let
|
|
1944
|
-
function
|
|
2142
|
+
let qt = Symbol();
|
|
2143
|
+
function Ts(e, t, r) {
|
|
1945
2144
|
const n = r[t] ??= {
|
|
1946
2145
|
store: null,
|
|
1947
2146
|
source: /* @__PURE__ */ fn(void 0),
|
|
1948
|
-
unsubscribe:
|
|
2147
|
+
unsubscribe: de
|
|
1949
2148
|
};
|
|
1950
|
-
if (n.store !== e && !(
|
|
2149
|
+
if (n.store !== e && !(qt in r))
|
|
1951
2150
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
1952
|
-
n.source.v = void 0, n.unsubscribe =
|
|
2151
|
+
n.source.v = void 0, n.unsubscribe = de;
|
|
1953
2152
|
else {
|
|
1954
2153
|
var i = !0;
|
|
1955
|
-
n.unsubscribe =
|
|
1956
|
-
i ? n.source.v = s :
|
|
2154
|
+
n.unsubscribe = pr(e, (s) => {
|
|
2155
|
+
i ? n.source.v = s : B(n.source, s);
|
|
1957
2156
|
}), i = !1;
|
|
1958
2157
|
}
|
|
1959
|
-
return e &&
|
|
2158
|
+
return e && qt in r ? ws(e) : y(n.source);
|
|
1960
2159
|
}
|
|
1961
|
-
function
|
|
2160
|
+
function Ss() {
|
|
1962
2161
|
const e = {};
|
|
1963
2162
|
function t() {
|
|
1964
2163
|
_n(() => {
|
|
1965
2164
|
for (var r in e)
|
|
1966
2165
|
e[r].unsubscribe();
|
|
1967
|
-
|
|
2166
|
+
Je(e, qt, {
|
|
1968
2167
|
enumerable: !1,
|
|
1969
2168
|
value: !0
|
|
1970
2169
|
});
|
|
@@ -1972,74 +2171,41 @@ function _s() {
|
|
|
1972
2171
|
}
|
|
1973
2172
|
return [e, t];
|
|
1974
2173
|
}
|
|
1975
|
-
function
|
|
1976
|
-
var
|
|
1977
|
-
try {
|
|
1978
|
-
return it = !1, [e(), it];
|
|
1979
|
-
} finally {
|
|
1980
|
-
it = t;
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
function oe(e, t, r, n) {
|
|
1984
|
-
var i = (r & ai) !== 0, s = (r & ui) !== 0, o = (
|
|
1985
|
-
/** @type {V} */
|
|
1986
|
-
n
|
|
1987
|
-
), a = !0, l = () => (a && (a = !1, o = s ? hr(
|
|
1988
|
-
/** @type {() => V} */
|
|
1989
|
-
n
|
|
1990
|
-
) : (
|
|
2174
|
+
function ft(e, t, r, n) {
|
|
2175
|
+
var i = (
|
|
1991
2176
|
/** @type {V} */
|
|
1992
2177
|
n
|
|
1993
|
-
)
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
/** @type {V} */
|
|
2001
|
-
e[t]
|
|
2002
|
-
)) : c = /** @type {V} */
|
|
2003
|
-
e[t], c === void 0 && n !== void 0 && (c = l(), u && (wi(), u(c)));
|
|
2004
|
-
var d;
|
|
2005
|
-
if (d = () => {
|
|
2006
|
-
var x = (
|
|
2178
|
+
), s = !0, o = () => (s && (s = !1, i = /** @type {V} */
|
|
2179
|
+
n), i), a;
|
|
2180
|
+
a = /** @type {V} */
|
|
2181
|
+
e[t], a === void 0 && n !== void 0 && (a = o());
|
|
2182
|
+
var u;
|
|
2183
|
+
u = () => {
|
|
2184
|
+
var h = (
|
|
2007
2185
|
/** @type {V} */
|
|
2008
2186
|
e[t]
|
|
2009
2187
|
);
|
|
2010
|
-
return
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
if (u) {
|
|
2014
|
-
var p = e.$$legacy;
|
|
2015
|
-
return (
|
|
2016
|
-
/** @type {() => V} */
|
|
2017
|
-
function(x, P) {
|
|
2018
|
-
return arguments.length > 0 ? ((!P || p || h) && u(P ? d() : x), x) : d();
|
|
2019
|
-
}
|
|
2020
|
-
);
|
|
2021
|
-
}
|
|
2022
|
-
var v = !1, y = (r & si ? St : ji)(() => (v = !1, d()));
|
|
2023
|
-
i && E(y);
|
|
2024
|
-
var F = (
|
|
2188
|
+
return h === void 0 ? o() : (s = !0, h);
|
|
2189
|
+
};
|
|
2190
|
+
var l = !1, f = /* @__PURE__ */ hr(() => (l = !1, u())), c = (
|
|
2025
2191
|
/** @type {Effect} */
|
|
2026
2192
|
g
|
|
2027
2193
|
);
|
|
2028
2194
|
return (
|
|
2029
2195
|
/** @type {() => V} */
|
|
2030
|
-
function(
|
|
2196
|
+
function(h, d) {
|
|
2031
2197
|
if (arguments.length > 0) {
|
|
2032
|
-
const
|
|
2033
|
-
return
|
|
2198
|
+
const p = d ? y(f) : h;
|
|
2199
|
+
return B(f, p), l = !0, i !== void 0 && (i = p), h;
|
|
2034
2200
|
}
|
|
2035
|
-
return
|
|
2201
|
+
return _e && l || c.f & ie ? f.v : y(f);
|
|
2036
2202
|
}
|
|
2037
2203
|
);
|
|
2038
2204
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return new
|
|
2205
|
+
function Hs(e) {
|
|
2206
|
+
return new As(e);
|
|
2041
2207
|
}
|
|
2042
|
-
class
|
|
2208
|
+
class As {
|
|
2043
2209
|
/** @type {any} */
|
|
2044
2210
|
#e;
|
|
2045
2211
|
/** @type {Record<string, any>} */
|
|
@@ -2058,17 +2224,17 @@ class gs {
|
|
|
2058
2224
|
{ ...t.props || {}, $$events: {} },
|
|
2059
2225
|
{
|
|
2060
2226
|
get(s, o) {
|
|
2061
|
-
return
|
|
2227
|
+
return y(r.get(o) ?? n(o, Reflect.get(s, o)));
|
|
2062
2228
|
},
|
|
2063
2229
|
has(s, o) {
|
|
2064
|
-
return o ===
|
|
2230
|
+
return o === Ei ? !0 : (y(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
|
|
2065
2231
|
},
|
|
2066
2232
|
set(s, o, a) {
|
|
2067
|
-
return
|
|
2233
|
+
return B(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
|
|
2068
2234
|
}
|
|
2069
2235
|
}
|
|
2070
2236
|
);
|
|
2071
|
-
this.#t = (t.hydrate ?
|
|
2237
|
+
this.#t = (t.hydrate ? ms : Cn)(t.component, {
|
|
2072
2238
|
target: t.target,
|
|
2073
2239
|
anchor: t.anchor,
|
|
2074
2240
|
props: i,
|
|
@@ -2077,7 +2243,7 @@ class gs {
|
|
|
2077
2243
|
recover: t.recover
|
|
2078
2244
|
}), (!t?.props?.$$host || t.sync === !1) && Oe(), this.#e = i.$$events;
|
|
2079
2245
|
for (const s of Object.keys(this.#t))
|
|
2080
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2246
|
+
s === "$set" || s === "$destroy" || s === "$on" || Je(this, s, {
|
|
2081
2247
|
get() {
|
|
2082
2248
|
return this.#t[s];
|
|
2083
2249
|
},
|
|
@@ -2091,7 +2257,7 @@ class gs {
|
|
|
2091
2257
|
(s) => {
|
|
2092
2258
|
Object.assign(i, s);
|
|
2093
2259
|
}, this.#t.$destroy = () => {
|
|
2094
|
-
|
|
2260
|
+
bs(this.#t);
|
|
2095
2261
|
};
|
|
2096
2262
|
}
|
|
2097
2263
|
/** @param {Record<string, any>} props */
|
|
@@ -2117,8 +2283,8 @@ class gs {
|
|
|
2117
2283
|
this.#t.$destroy();
|
|
2118
2284
|
}
|
|
2119
2285
|
}
|
|
2120
|
-
let
|
|
2121
|
-
typeof HTMLElement == "function" && (
|
|
2286
|
+
let $n;
|
|
2287
|
+
typeof HTMLElement == "function" && ($n = class extends HTMLElement {
|
|
2122
2288
|
/** The Svelte component constructor */
|
|
2123
2289
|
$$ctor;
|
|
2124
2290
|
/** Slots */
|
|
@@ -2175,21 +2341,21 @@ typeof HTMLElement == "function" && (In = class extends HTMLElement {
|
|
|
2175
2341
|
let e = function(n) {
|
|
2176
2342
|
return (i) => {
|
|
2177
2343
|
const s = document.createElement("slot");
|
|
2178
|
-
n !== "default" && (s.name = n),
|
|
2344
|
+
n !== "default" && (s.name = n), ct(i, s);
|
|
2179
2345
|
};
|
|
2180
2346
|
};
|
|
2181
2347
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2182
2348
|
return;
|
|
2183
|
-
const t = {}, r =
|
|
2349
|
+
const t = {}, r = Bs(this);
|
|
2184
2350
|
for (const n of this.$$s)
|
|
2185
2351
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2186
2352
|
for (const n of this.attributes) {
|
|
2187
2353
|
const i = this.$$g_p(n.name);
|
|
2188
|
-
i in this.$$d || (this.$$d[i] =
|
|
2354
|
+
i in this.$$d || (this.$$d[i] = dt(i, n.value, this.$$p_d, "toProp"));
|
|
2189
2355
|
}
|
|
2190
2356
|
for (const n in this.$$p_d)
|
|
2191
2357
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2192
|
-
this.$$c =
|
|
2358
|
+
this.$$c = Hs({
|
|
2193
2359
|
component: this.$$ctor,
|
|
2194
2360
|
target: this.shadowRoot || this,
|
|
2195
2361
|
props: {
|
|
@@ -2197,13 +2363,13 @@ typeof HTMLElement == "function" && (In = class extends HTMLElement {
|
|
|
2197
2363
|
$$slots: t,
|
|
2198
2364
|
$$host: this
|
|
2199
2365
|
}
|
|
2200
|
-
}), this.$$me =
|
|
2366
|
+
}), this.$$me = ts(() => {
|
|
2201
2367
|
bn(() => {
|
|
2202
2368
|
this.$$r = !0;
|
|
2203
|
-
for (const n of
|
|
2369
|
+
for (const n of _t(this.$$c)) {
|
|
2204
2370
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2205
2371
|
this.$$d[n] = this.$$c[n];
|
|
2206
|
-
const i =
|
|
2372
|
+
const i = dt(
|
|
2207
2373
|
n,
|
|
2208
2374
|
this.$$d[n],
|
|
2209
2375
|
this.$$p_d,
|
|
@@ -2230,7 +2396,7 @@ typeof HTMLElement == "function" && (In = class extends HTMLElement {
|
|
|
2230
2396
|
* @param {string} newValue
|
|
2231
2397
|
*/
|
|
2232
2398
|
attributeChangedCallback(e, t, r) {
|
|
2233
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2399
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2234
2400
|
}
|
|
2235
2401
|
disconnectedCallback() {
|
|
2236
2402
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2241,12 +2407,12 @@ typeof HTMLElement == "function" && (In = class extends HTMLElement {
|
|
|
2241
2407
|
* @param {string} attribute_name
|
|
2242
2408
|
*/
|
|
2243
2409
|
$$g_p(e) {
|
|
2244
|
-
return
|
|
2410
|
+
return _t(this.$$p_d).find(
|
|
2245
2411
|
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
2246
2412
|
) || e;
|
|
2247
2413
|
}
|
|
2248
2414
|
});
|
|
2249
|
-
function
|
|
2415
|
+
function dt(e, t, r, n) {
|
|
2250
2416
|
const i = r[e]?.type;
|
|
2251
2417
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
2252
2418
|
return t;
|
|
@@ -2275,7 +2441,7 @@ function ut(e, t, r, n) {
|
|
|
2275
2441
|
return t;
|
|
2276
2442
|
}
|
|
2277
2443
|
}
|
|
2278
|
-
function
|
|
2444
|
+
function Bs(e) {
|
|
2279
2445
|
const t = {};
|
|
2280
2446
|
return e.childNodes.forEach((r) => {
|
|
2281
2447
|
t[
|
|
@@ -2284,33 +2450,33 @@ function ys(e) {
|
|
|
2284
2450
|
] = !0;
|
|
2285
2451
|
}), t;
|
|
2286
2452
|
}
|
|
2287
|
-
function
|
|
2288
|
-
let o = class extends
|
|
2453
|
+
function Ps(e, t, r, n, i, s) {
|
|
2454
|
+
let o = class extends $n {
|
|
2289
2455
|
constructor() {
|
|
2290
2456
|
super(e, r, i), this.$$p_d = t;
|
|
2291
2457
|
}
|
|
2292
2458
|
static get observedAttributes() {
|
|
2293
|
-
return
|
|
2459
|
+
return _t(t).map(
|
|
2294
2460
|
(a) => (t[a].attribute || a).toLowerCase()
|
|
2295
2461
|
);
|
|
2296
2462
|
}
|
|
2297
2463
|
};
|
|
2298
|
-
return
|
|
2299
|
-
|
|
2464
|
+
return _t(t).forEach((a) => {
|
|
2465
|
+
Je(o.prototype, a, {
|
|
2300
2466
|
get() {
|
|
2301
2467
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2302
2468
|
},
|
|
2303
|
-
set(
|
|
2304
|
-
|
|
2305
|
-
var
|
|
2306
|
-
if (
|
|
2307
|
-
var f =
|
|
2308
|
-
f ?
|
|
2469
|
+
set(u) {
|
|
2470
|
+
u = dt(a, u, t), this.$$d[a] = u;
|
|
2471
|
+
var l = this.$$c;
|
|
2472
|
+
if (l) {
|
|
2473
|
+
var f = Le(l, a)?.get;
|
|
2474
|
+
f ? l[a] = u : l.$set({ [a]: u });
|
|
2309
2475
|
}
|
|
2310
2476
|
}
|
|
2311
2477
|
});
|
|
2312
2478
|
}), n.forEach((a) => {
|
|
2313
|
-
|
|
2479
|
+
Je(o.prototype, a, {
|
|
2314
2480
|
get() {
|
|
2315
2481
|
return this.$$c?.[a];
|
|
2316
2482
|
}
|
|
@@ -2318,188 +2484,185 @@ function Es(e, t, r, n, i, s) {
|
|
|
2318
2484
|
}), e.element = /** @type {any} */
|
|
2319
2485
|
o, o;
|
|
2320
2486
|
}
|
|
2321
|
-
class
|
|
2487
|
+
class Ns extends Error {
|
|
2322
2488
|
constructor(t, r) {
|
|
2323
2489
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2324
2490
|
}
|
|
2325
2491
|
}
|
|
2326
|
-
const
|
|
2492
|
+
const Os = async (e) => {
|
|
2327
2493
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2328
2494
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2329
2495
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2330
2496
|
if (!i.success)
|
|
2331
|
-
throw new
|
|
2497
|
+
throw new Ns(i.errorCode, i.errorMessage);
|
|
2332
2498
|
return i.data;
|
|
2333
|
-
},
|
|
2499
|
+
}, Ls = async (e) => {
|
|
2334
2500
|
const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
|
|
2335
2501
|
return (await (await fetch(t.href, { method: "GET" })).json()).data;
|
|
2336
|
-
},
|
|
2502
|
+
}, Is = (e, t) => {
|
|
2337
2503
|
const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
|
|
2338
2504
|
let n = 0;
|
|
2339
2505
|
return r.forEach((i, s) => {
|
|
2340
2506
|
t > i.firstEntryPoints && (n = s);
|
|
2341
2507
|
}), n;
|
|
2342
|
-
},
|
|
2343
|
-
|
|
2344
|
-
}, As = (e) => {
|
|
2345
|
-
let t = /* @__PURE__ */ C(void 0), r = /* @__PURE__ */ C(void 0), n = /* @__PURE__ */ C(void 0), i = /* @__PURE__ */ C(void 0), s = /* @__PURE__ */ C(!1), o = /* @__PURE__ */ C(void 0);
|
|
2508
|
+
}, Rs = (e) => {
|
|
2509
|
+
let t = /* @__PURE__ */ M(void 0), r = /* @__PURE__ */ M(void 0), n = /* @__PURE__ */ M(void 0), i = /* @__PURE__ */ M(void 0), s = /* @__PURE__ */ M(!1), o = /* @__PURE__ */ M(void 0);
|
|
2346
2510
|
const a = async () => {
|
|
2347
|
-
const { apiEndpoint:
|
|
2348
|
-
if (!(!
|
|
2349
|
-
|
|
2511
|
+
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: c, onLevelLoaded: h } = e();
|
|
2512
|
+
if (!(!u || !l)) {
|
|
2513
|
+
B(s, !0), B(o, void 0);
|
|
2350
2514
|
try {
|
|
2351
2515
|
const d = [
|
|
2352
|
-
|
|
2353
|
-
Hs(p.level?.loyaltyPoints);
|
|
2516
|
+
Os({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
2354
2517
|
const v = p.level;
|
|
2355
|
-
v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0,
|
|
2518
|
+
v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0, B(t, v, !0), B(n, p.loyaltyWallet?.total, !0), B(i, p.spendableWallet?.total, !0), h?.({ elevateLevel: v }), h?.({
|
|
2356
2519
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
2357
2520
|
loyaltyWalletTotal: p.loyaltyWallet?.total
|
|
2358
2521
|
});
|
|
2359
2522
|
})
|
|
2360
2523
|
];
|
|
2361
|
-
c && d.push(
|
|
2362
|
-
|
|
2363
|
-
})), await Promise.all(d), await
|
|
2364
|
-
calculatedLevelFlag:
|
|
2524
|
+
c && d.push(Ls({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
2525
|
+
B(r, p, !0);
|
|
2526
|
+
})), await Promise.all(d), await hs(), y(r) && y(t) && h?.({
|
|
2527
|
+
calculatedLevelFlag: Is(y(r), y(t).loyaltyPoints ?? 0)
|
|
2365
2528
|
});
|
|
2366
2529
|
} catch (d) {
|
|
2367
|
-
|
|
2530
|
+
B(o, d, !0), console.error("Failed to load elevate info:", d);
|
|
2368
2531
|
} finally {
|
|
2369
|
-
|
|
2532
|
+
B(s, !1);
|
|
2370
2533
|
}
|
|
2371
2534
|
}
|
|
2372
2535
|
};
|
|
2373
|
-
return
|
|
2374
|
-
const { apiEndpoint:
|
|
2536
|
+
return xr(() => {
|
|
2537
|
+
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: c } = e();
|
|
2375
2538
|
a();
|
|
2376
|
-
}),
|
|
2377
|
-
const
|
|
2539
|
+
}), xr(() => {
|
|
2540
|
+
const u = () => {
|
|
2378
2541
|
a();
|
|
2379
2542
|
};
|
|
2380
|
-
return window.addEventListener("redeemRewardButton",
|
|
2543
|
+
return window.addEventListener("redeemRewardButton", u), () => window.removeEventListener("redeemRewardButton", u);
|
|
2381
2544
|
}), {
|
|
2382
2545
|
get playerElevateLevel() {
|
|
2383
|
-
return
|
|
2546
|
+
return y(t);
|
|
2384
2547
|
},
|
|
2385
2548
|
get levels() {
|
|
2386
|
-
return
|
|
2549
|
+
return y(r);
|
|
2387
2550
|
},
|
|
2388
2551
|
get loyaltyWalletTotal() {
|
|
2389
|
-
return
|
|
2552
|
+
return y(n);
|
|
2390
2553
|
},
|
|
2391
2554
|
get spendableWalletTotal() {
|
|
2392
|
-
return
|
|
2555
|
+
return y(i);
|
|
2393
2556
|
},
|
|
2394
2557
|
get loading() {
|
|
2395
|
-
return
|
|
2558
|
+
return y(s);
|
|
2396
2559
|
},
|
|
2397
2560
|
get error() {
|
|
2398
|
-
return
|
|
2561
|
+
return y(o);
|
|
2399
2562
|
},
|
|
2400
2563
|
reload: a
|
|
2401
2564
|
};
|
|
2402
2565
|
};
|
|
2403
|
-
function
|
|
2566
|
+
function Cs(e) {
|
|
2404
2567
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2405
2568
|
}
|
|
2406
|
-
var
|
|
2407
|
-
return
|
|
2569
|
+
var Ms = function(t) {
|
|
2570
|
+
return $s(t) && !Ds(t);
|
|
2408
2571
|
};
|
|
2409
|
-
function
|
|
2572
|
+
function $s(e) {
|
|
2410
2573
|
return !!e && typeof e == "object";
|
|
2411
2574
|
}
|
|
2412
|
-
function
|
|
2575
|
+
function Ds(e) {
|
|
2413
2576
|
var t = Object.prototype.toString.call(e);
|
|
2414
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
2577
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gs(e);
|
|
2415
2578
|
}
|
|
2416
|
-
var
|
|
2417
|
-
function
|
|
2418
|
-
return e.$$typeof ===
|
|
2579
|
+
var Fs = typeof Symbol == "function" && Symbol.for, Us = Fs ? Symbol.for("react.element") : 60103;
|
|
2580
|
+
function Gs(e) {
|
|
2581
|
+
return e.$$typeof === Us;
|
|
2419
2582
|
}
|
|
2420
|
-
function
|
|
2583
|
+
function ks(e) {
|
|
2421
2584
|
return Array.isArray(e) ? [] : {};
|
|
2422
2585
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
2586
|
+
function rt(e, t) {
|
|
2587
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(ks(e), e, t) : e;
|
|
2425
2588
|
}
|
|
2426
|
-
function
|
|
2589
|
+
function js(e, t, r) {
|
|
2427
2590
|
return e.concat(t).map(function(n) {
|
|
2428
|
-
return
|
|
2591
|
+
return rt(n, r);
|
|
2429
2592
|
});
|
|
2430
2593
|
}
|
|
2431
|
-
function
|
|
2594
|
+
function Vs(e, t) {
|
|
2432
2595
|
if (!t.customMerge)
|
|
2433
|
-
return
|
|
2596
|
+
return $e;
|
|
2434
2597
|
var r = t.customMerge(e);
|
|
2435
|
-
return typeof r == "function" ? r :
|
|
2598
|
+
return typeof r == "function" ? r : $e;
|
|
2436
2599
|
}
|
|
2437
|
-
function
|
|
2600
|
+
function Xs(e) {
|
|
2438
2601
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
2439
2602
|
return Object.propertyIsEnumerable.call(e, t);
|
|
2440
2603
|
}) : [];
|
|
2441
2604
|
}
|
|
2442
|
-
function
|
|
2443
|
-
return Object.keys(e).concat(
|
|
2605
|
+
function Br(e) {
|
|
2606
|
+
return Object.keys(e).concat(Xs(e));
|
|
2444
2607
|
}
|
|
2445
|
-
function
|
|
2608
|
+
function Dn(e, t) {
|
|
2446
2609
|
try {
|
|
2447
2610
|
return t in e;
|
|
2448
2611
|
} catch {
|
|
2449
2612
|
return !1;
|
|
2450
2613
|
}
|
|
2451
2614
|
}
|
|
2452
|
-
function
|
|
2453
|
-
return
|
|
2615
|
+
function Ws(e, t) {
|
|
2616
|
+
return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
2454
2617
|
}
|
|
2455
|
-
function
|
|
2618
|
+
function zs(e, t, r) {
|
|
2456
2619
|
var n = {};
|
|
2457
|
-
return r.isMergeableObject(e) &&
|
|
2458
|
-
n[i] =
|
|
2459
|
-
}),
|
|
2460
|
-
|
|
2620
|
+
return r.isMergeableObject(e) && Br(e).forEach(function(i) {
|
|
2621
|
+
n[i] = rt(e[i], r);
|
|
2622
|
+
}), Br(t).forEach(function(i) {
|
|
2623
|
+
Ws(e, i) || (Dn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vs(i, r)(e[i], t[i], r) : n[i] = rt(t[i], r));
|
|
2461
2624
|
}), n;
|
|
2462
2625
|
}
|
|
2463
|
-
function
|
|
2464
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
2626
|
+
function $e(e, t, r) {
|
|
2627
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || js, r.isMergeableObject = r.isMergeableObject || Ms, r.cloneUnlessOtherwiseSpecified = rt;
|
|
2465
2628
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
2466
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
2629
|
+
return s ? n ? r.arrayMerge(e, t, r) : zs(e, t, r) : rt(t, r);
|
|
2467
2630
|
}
|
|
2468
|
-
|
|
2631
|
+
$e.all = function(t, r) {
|
|
2469
2632
|
if (!Array.isArray(t))
|
|
2470
2633
|
throw new Error("first argument should be an array");
|
|
2471
2634
|
return t.reduce(function(n, i) {
|
|
2472
|
-
return
|
|
2635
|
+
return $e(n, i, r);
|
|
2473
2636
|
}, {});
|
|
2474
2637
|
};
|
|
2475
|
-
var
|
|
2476
|
-
const
|
|
2477
|
-
var
|
|
2478
|
-
return
|
|
2638
|
+
var qs = $e, Zs = qs;
|
|
2639
|
+
const Ys = /* @__PURE__ */ Cs(Zs);
|
|
2640
|
+
var Zt = function(e, t) {
|
|
2641
|
+
return Zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
2479
2642
|
r.__proto__ = n;
|
|
2480
2643
|
} || function(r, n) {
|
|
2481
2644
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
2482
|
-
},
|
|
2645
|
+
}, Zt(e, t);
|
|
2483
2646
|
};
|
|
2484
|
-
function
|
|
2647
|
+
function Nt(e, t) {
|
|
2485
2648
|
if (typeof t != "function" && t !== null)
|
|
2486
2649
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
2487
|
-
|
|
2650
|
+
Zt(e, t);
|
|
2488
2651
|
function r() {
|
|
2489
2652
|
this.constructor = e;
|
|
2490
2653
|
}
|
|
2491
2654
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
2492
2655
|
}
|
|
2493
|
-
var
|
|
2494
|
-
return
|
|
2656
|
+
var J = function() {
|
|
2657
|
+
return J = Object.assign || function(t) {
|
|
2495
2658
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2496
2659
|
r = arguments[n];
|
|
2497
2660
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2498
2661
|
}
|
|
2499
2662
|
return t;
|
|
2500
|
-
},
|
|
2663
|
+
}, J.apply(this, arguments);
|
|
2501
2664
|
};
|
|
2502
|
-
function
|
|
2665
|
+
function Qs(e, t) {
|
|
2503
2666
|
var r = {};
|
|
2504
2667
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2505
2668
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2507,42 +2670,42 @@ function Vs(e, t) {
|
|
|
2507
2670
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
2508
2671
|
return r;
|
|
2509
2672
|
}
|
|
2510
|
-
function
|
|
2673
|
+
function Mt(e, t, r) {
|
|
2511
2674
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
2512
2675
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
2513
2676
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2514
2677
|
}
|
|
2515
|
-
function
|
|
2516
|
-
var r = t && t.cache ? t.cache :
|
|
2678
|
+
function $t(e, t) {
|
|
2679
|
+
var r = t && t.cache ? t.cache : io, n = t && t.serializer ? t.serializer : ro, i = t && t.strategy ? t.strategy : eo;
|
|
2517
2680
|
return i(e, {
|
|
2518
2681
|
cache: r,
|
|
2519
2682
|
serializer: n
|
|
2520
2683
|
});
|
|
2521
2684
|
}
|
|
2522
|
-
function
|
|
2685
|
+
function Js(e) {
|
|
2523
2686
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
2524
2687
|
}
|
|
2525
|
-
function
|
|
2526
|
-
var i =
|
|
2688
|
+
function Ks(e, t, r, n) {
|
|
2689
|
+
var i = Js(n) ? n : r(n), s = t.get(i);
|
|
2527
2690
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
2528
2691
|
}
|
|
2529
|
-
function
|
|
2692
|
+
function Fn(e, t, r) {
|
|
2530
2693
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
2531
2694
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
2532
2695
|
}
|
|
2533
|
-
function
|
|
2696
|
+
function Un(e, t, r, n, i) {
|
|
2534
2697
|
return r.bind(t, e, n, i);
|
|
2535
2698
|
}
|
|
2536
|
-
function
|
|
2537
|
-
var r = e.length === 1 ?
|
|
2538
|
-
return
|
|
2699
|
+
function eo(e, t) {
|
|
2700
|
+
var r = e.length === 1 ? Ks : Fn;
|
|
2701
|
+
return Un(e, this, r, t.cache.create(), t.serializer);
|
|
2539
2702
|
}
|
|
2540
|
-
function
|
|
2541
|
-
return
|
|
2703
|
+
function to(e, t) {
|
|
2704
|
+
return Un(e, this, Fn, t.cache.create(), t.serializer);
|
|
2542
2705
|
}
|
|
2543
|
-
var
|
|
2706
|
+
var ro = function() {
|
|
2544
2707
|
return JSON.stringify(arguments);
|
|
2545
|
-
},
|
|
2708
|
+
}, no = (
|
|
2546
2709
|
/** @class */
|
|
2547
2710
|
function() {
|
|
2548
2711
|
function e() {
|
|
@@ -2554,70 +2717,70 @@ var Zs = function() {
|
|
|
2554
2717
|
this.cache[t] = r;
|
|
2555
2718
|
}, e;
|
|
2556
2719
|
}()
|
|
2557
|
-
),
|
|
2720
|
+
), io = {
|
|
2558
2721
|
create: function() {
|
|
2559
|
-
return new
|
|
2722
|
+
return new no();
|
|
2560
2723
|
}
|
|
2561
|
-
},
|
|
2562
|
-
variadic:
|
|
2563
|
-
},
|
|
2564
|
-
return
|
|
2724
|
+
}, Dt = {
|
|
2725
|
+
variadic: to
|
|
2726
|
+
}, xt = function() {
|
|
2727
|
+
return xt = Object.assign || function(t) {
|
|
2565
2728
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2566
2729
|
r = arguments[n];
|
|
2567
2730
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2568
2731
|
}
|
|
2569
2732
|
return t;
|
|
2570
|
-
},
|
|
2733
|
+
}, xt.apply(this, arguments);
|
|
2571
2734
|
};
|
|
2572
2735
|
var _;
|
|
2573
2736
|
(function(e) {
|
|
2574
2737
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
2575
2738
|
})(_ || (_ = {}));
|
|
2576
|
-
var
|
|
2739
|
+
var x;
|
|
2577
2740
|
(function(e) {
|
|
2578
2741
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
2579
|
-
})(
|
|
2580
|
-
var
|
|
2742
|
+
})(x || (x = {}));
|
|
2743
|
+
var De;
|
|
2581
2744
|
(function(e) {
|
|
2582
2745
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
2583
|
-
})(
|
|
2584
|
-
function
|
|
2585
|
-
return e.type ===
|
|
2746
|
+
})(De || (De = {}));
|
|
2747
|
+
function Pr(e) {
|
|
2748
|
+
return e.type === x.literal;
|
|
2586
2749
|
}
|
|
2587
|
-
function
|
|
2588
|
-
return e.type ===
|
|
2750
|
+
function so(e) {
|
|
2751
|
+
return e.type === x.argument;
|
|
2589
2752
|
}
|
|
2590
|
-
function
|
|
2591
|
-
return e.type ===
|
|
2753
|
+
function Gn(e) {
|
|
2754
|
+
return e.type === x.number;
|
|
2592
2755
|
}
|
|
2593
|
-
function
|
|
2594
|
-
return e.type ===
|
|
2756
|
+
function kn(e) {
|
|
2757
|
+
return e.type === x.date;
|
|
2595
2758
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return e.type ===
|
|
2759
|
+
function jn(e) {
|
|
2760
|
+
return e.type === x.time;
|
|
2598
2761
|
}
|
|
2599
|
-
function
|
|
2600
|
-
return e.type ===
|
|
2762
|
+
function Vn(e) {
|
|
2763
|
+
return e.type === x.select;
|
|
2601
2764
|
}
|
|
2602
|
-
function
|
|
2603
|
-
return e.type ===
|
|
2765
|
+
function Xn(e) {
|
|
2766
|
+
return e.type === x.plural;
|
|
2604
2767
|
}
|
|
2605
|
-
function
|
|
2606
|
-
return e.type ===
|
|
2768
|
+
function oo(e) {
|
|
2769
|
+
return e.type === x.pound;
|
|
2607
2770
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return e.type ===
|
|
2771
|
+
function Wn(e) {
|
|
2772
|
+
return e.type === x.tag;
|
|
2610
2773
|
}
|
|
2611
|
-
function
|
|
2612
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
2774
|
+
function zn(e) {
|
|
2775
|
+
return !!(e && typeof e == "object" && e.type === De.number);
|
|
2613
2776
|
}
|
|
2614
|
-
function
|
|
2615
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
2777
|
+
function Yt(e) {
|
|
2778
|
+
return !!(e && typeof e == "object" && e.type === De.dateTime);
|
|
2616
2779
|
}
|
|
2617
|
-
var
|
|
2618
|
-
function
|
|
2780
|
+
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ao = /(?:[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;
|
|
2781
|
+
function uo(e) {
|
|
2619
2782
|
var t = {};
|
|
2620
|
-
return e.replace(
|
|
2783
|
+
return e.replace(ao, function(r) {
|
|
2621
2784
|
var n = r.length;
|
|
2622
2785
|
switch (r[0]) {
|
|
2623
2786
|
case "G":
|
|
@@ -2715,36 +2878,36 @@ var T = function() {
|
|
|
2715
2878
|
return t;
|
|
2716
2879
|
}, T.apply(this, arguments);
|
|
2717
2880
|
};
|
|
2718
|
-
var
|
|
2719
|
-
function
|
|
2881
|
+
var lo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2882
|
+
function fo(e) {
|
|
2720
2883
|
if (e.length === 0)
|
|
2721
2884
|
throw new Error("Number skeleton cannot be empty");
|
|
2722
|
-
for (var t = e.split(
|
|
2885
|
+
for (var t = e.split(lo).filter(function(h) {
|
|
2723
2886
|
return h.length > 0;
|
|
2724
2887
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
2725
2888
|
var s = i[n], o = s.split("/");
|
|
2726
2889
|
if (o.length === 0)
|
|
2727
2890
|
throw new Error("Invalid number skeleton");
|
|
2728
|
-
for (var a = o[0],
|
|
2729
|
-
var c = f[
|
|
2891
|
+
for (var a = o[0], u = o.slice(1), l = 0, f = u; l < f.length; l++) {
|
|
2892
|
+
var c = f[l];
|
|
2730
2893
|
if (c.length === 0)
|
|
2731
2894
|
throw new Error("Invalid number skeleton");
|
|
2732
2895
|
}
|
|
2733
|
-
r.push({ stem: a, options:
|
|
2896
|
+
r.push({ stem: a, options: u });
|
|
2734
2897
|
}
|
|
2735
2898
|
return r;
|
|
2736
2899
|
}
|
|
2737
|
-
function
|
|
2900
|
+
function ho(e) {
|
|
2738
2901
|
return e.replace(/^(.*?)-/, "");
|
|
2739
2902
|
}
|
|
2740
|
-
var
|
|
2741
|
-
function
|
|
2903
|
+
var Nr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, co = /(\*)(0+)|(#+)(0+)|(0+)/g, Yn = /^(0+)$/;
|
|
2904
|
+
function Or(e) {
|
|
2742
2905
|
var t = {};
|
|
2743
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
2906
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(r, n, i) {
|
|
2744
2907
|
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)), "";
|
|
2745
2908
|
}), t;
|
|
2746
2909
|
}
|
|
2747
|
-
function
|
|
2910
|
+
function Qn(e) {
|
|
2748
2911
|
switch (e) {
|
|
2749
2912
|
case "sign-auto":
|
|
2750
2913
|
return {
|
|
@@ -2784,7 +2947,7 @@ function zn(e) {
|
|
|
2784
2947
|
};
|
|
2785
2948
|
}
|
|
2786
2949
|
}
|
|
2787
|
-
function
|
|
2950
|
+
function po(e) {
|
|
2788
2951
|
var t;
|
|
2789
2952
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
2790
2953
|
notation: "engineering"
|
|
@@ -2792,17 +2955,17 @@ function oo(e) {
|
|
|
2792
2955
|
notation: "scientific"
|
|
2793
2956
|
}, e = e.slice(1)), t) {
|
|
2794
2957
|
var r = e.slice(0, 2);
|
|
2795
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
2958
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yn.test(e))
|
|
2796
2959
|
throw new Error("Malformed concise eng/scientific notation");
|
|
2797
2960
|
t.minimumIntegerDigits = e.length;
|
|
2798
2961
|
}
|
|
2799
2962
|
return t;
|
|
2800
2963
|
}
|
|
2801
|
-
function
|
|
2802
|
-
var t = {}, r =
|
|
2964
|
+
function Lr(e) {
|
|
2965
|
+
var t = {}, r = Qn(e);
|
|
2803
2966
|
return r || t;
|
|
2804
2967
|
}
|
|
2805
|
-
function
|
|
2968
|
+
function vo(e) {
|
|
2806
2969
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
2807
2970
|
var i = n[r];
|
|
2808
2971
|
switch (i.stem) {
|
|
@@ -2826,7 +2989,7 @@ function ao(e) {
|
|
|
2826
2989
|
continue;
|
|
2827
2990
|
case "measure-unit":
|
|
2828
2991
|
case "unit":
|
|
2829
|
-
t.style = "unit", t.unit =
|
|
2992
|
+
t.style = "unit", t.unit = ho(i.options[0]);
|
|
2830
2993
|
continue;
|
|
2831
2994
|
case "compact-short":
|
|
2832
2995
|
case "K":
|
|
@@ -2837,13 +3000,13 @@ function ao(e) {
|
|
|
2837
3000
|
t.notation = "compact", t.compactDisplay = "long";
|
|
2838
3001
|
continue;
|
|
2839
3002
|
case "scientific":
|
|
2840
|
-
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
2841
|
-
return T(T({},
|
|
3003
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3004
|
+
return T(T({}, u), Lr(l));
|
|
2842
3005
|
}, {}));
|
|
2843
3006
|
continue;
|
|
2844
3007
|
case "engineering":
|
|
2845
|
-
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
2846
|
-
return T(T({},
|
|
3008
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3009
|
+
return T(T({}, u), Lr(l));
|
|
2847
3010
|
}, {}));
|
|
2848
3011
|
continue;
|
|
2849
3012
|
case "notation-simple":
|
|
@@ -2888,8 +3051,8 @@ function ao(e) {
|
|
|
2888
3051
|
case "integer-width":
|
|
2889
3052
|
if (i.options.length > 1)
|
|
2890
3053
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
2891
|
-
i.options[0].replace(
|
|
2892
|
-
if (
|
|
3054
|
+
i.options[0].replace(co, function(u, l, f, c, h, d) {
|
|
3055
|
+
if (l)
|
|
2893
3056
|
t.minimumIntegerDigits = f.length;
|
|
2894
3057
|
else {
|
|
2895
3058
|
if (c && h)
|
|
@@ -2901,32 +3064,32 @@ function ao(e) {
|
|
|
2901
3064
|
});
|
|
2902
3065
|
continue;
|
|
2903
3066
|
}
|
|
2904
|
-
if (
|
|
3067
|
+
if (Yn.test(i.stem)) {
|
|
2905
3068
|
t.minimumIntegerDigits = i.stem.length;
|
|
2906
3069
|
continue;
|
|
2907
3070
|
}
|
|
2908
|
-
if (
|
|
3071
|
+
if (Nr.test(i.stem)) {
|
|
2909
3072
|
if (i.options.length > 1)
|
|
2910
3073
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
2911
|
-
i.stem.replace(
|
|
2912
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
3074
|
+
i.stem.replace(Nr, function(u, l, f, c, h, d) {
|
|
3075
|
+
return f === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
2913
3076
|
});
|
|
2914
3077
|
var s = i.options[0];
|
|
2915
|
-
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t),
|
|
3078
|
+
s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), Or(s)));
|
|
2916
3079
|
continue;
|
|
2917
3080
|
}
|
|
2918
|
-
if (
|
|
2919
|
-
t = T(T({}, t),
|
|
3081
|
+
if (Zn.test(i.stem)) {
|
|
3082
|
+
t = T(T({}, t), Or(i.stem));
|
|
2920
3083
|
continue;
|
|
2921
3084
|
}
|
|
2922
|
-
var o =
|
|
3085
|
+
var o = Qn(i.stem);
|
|
2923
3086
|
o && (t = T(T({}, t), o));
|
|
2924
|
-
var a =
|
|
3087
|
+
var a = po(i.stem);
|
|
2925
3088
|
a && (t = T(T({}, t), a));
|
|
2926
3089
|
}
|
|
2927
3090
|
return t;
|
|
2928
3091
|
}
|
|
2929
|
-
var
|
|
3092
|
+
var ht = {
|
|
2930
3093
|
"001": [
|
|
2931
3094
|
"H",
|
|
2932
3095
|
"h"
|
|
@@ -4341,22 +4504,22 @@ var st = {
|
|
|
4341
4504
|
"h"
|
|
4342
4505
|
]
|
|
4343
4506
|
};
|
|
4344
|
-
function
|
|
4507
|
+
function _o(e, t) {
|
|
4345
4508
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
4346
4509
|
var i = e.charAt(n);
|
|
4347
4510
|
if (i === "j") {
|
|
4348
4511
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
4349
4512
|
s++, n++;
|
|
4350
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1),
|
|
4351
|
-
for ((
|
|
4352
|
-
r +=
|
|
4513
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = mo(t);
|
|
4514
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
4515
|
+
r += u;
|
|
4353
4516
|
for (; o-- > 0; )
|
|
4354
|
-
r =
|
|
4517
|
+
r = l + r;
|
|
4355
4518
|
} else i === "J" ? r += "H" : r += i;
|
|
4356
4519
|
}
|
|
4357
4520
|
return r;
|
|
4358
4521
|
}
|
|
4359
|
-
function
|
|
4522
|
+
function mo(e) {
|
|
4360
4523
|
var t = e.hourCycle;
|
|
4361
4524
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
4362
4525
|
e.hourCycles && // @ts-ignore
|
|
@@ -4375,23 +4538,23 @@ function lo(e) {
|
|
|
4375
4538
|
}
|
|
4376
4539
|
var r = e.language, n;
|
|
4377
4540
|
r !== "root" && (n = e.maximize().region);
|
|
4378
|
-
var i =
|
|
4541
|
+
var i = ht[n || ""] || ht[r || ""] || ht["".concat(r, "-001")] || ht["001"];
|
|
4379
4542
|
return i[0];
|
|
4380
4543
|
}
|
|
4381
|
-
var
|
|
4544
|
+
var Ft, bo = new RegExp("^".concat(qn.source, "*")), go = new RegExp("".concat(qn.source, "*$"));
|
|
4382
4545
|
function b(e, t) {
|
|
4383
4546
|
return { start: e, end: t };
|
|
4384
4547
|
}
|
|
4385
|
-
var
|
|
4548
|
+
var yo = !!String.prototype.startsWith && "_a".startsWith("a", 1), Eo = !!String.fromCodePoint, xo = !!Object.fromEntries, wo = !!String.prototype.codePointAt, To = !!String.prototype.trimStart, So = !!String.prototype.trimEnd, Ho = !!Number.isSafeInteger, Ao = Ho ? Number.isSafeInteger : function(e) {
|
|
4386
4549
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
4387
|
-
},
|
|
4550
|
+
}, Qt = !0;
|
|
4388
4551
|
try {
|
|
4389
|
-
var
|
|
4390
|
-
|
|
4552
|
+
var Bo = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4553
|
+
Qt = ((Ft = Bo.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
4391
4554
|
} catch {
|
|
4392
|
-
|
|
4555
|
+
Qt = !1;
|
|
4393
4556
|
}
|
|
4394
|
-
var
|
|
4557
|
+
var Ir = yo ? (
|
|
4395
4558
|
// Native
|
|
4396
4559
|
function(t, r, n) {
|
|
4397
4560
|
return t.startsWith(r, n);
|
|
@@ -4401,7 +4564,7 @@ var Nr = co ? (
|
|
|
4401
4564
|
function(t, r, n) {
|
|
4402
4565
|
return t.slice(n, n + r.length) === r;
|
|
4403
4566
|
}
|
|
4404
|
-
),
|
|
4567
|
+
), Jt = Eo ? String.fromCodePoint : (
|
|
4405
4568
|
// IE11
|
|
4406
4569
|
function() {
|
|
4407
4570
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -4413,9 +4576,9 @@ var Nr = co ? (
|
|
|
4413
4576
|
}
|
|
4414
4577
|
return n;
|
|
4415
4578
|
}
|
|
4416
|
-
),
|
|
4579
|
+
), Rr = (
|
|
4417
4580
|
// native
|
|
4418
|
-
|
|
4581
|
+
xo ? Object.fromEntries : (
|
|
4419
4582
|
// Ponyfill
|
|
4420
4583
|
function(t) {
|
|
4421
4584
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -4425,7 +4588,7 @@ var Nr = co ? (
|
|
|
4425
4588
|
return r;
|
|
4426
4589
|
}
|
|
4427
4590
|
)
|
|
4428
|
-
),
|
|
4591
|
+
), Jn = wo ? (
|
|
4429
4592
|
// Native
|
|
4430
4593
|
function(t, r) {
|
|
4431
4594
|
return t.codePointAt(r);
|
|
@@ -4439,7 +4602,7 @@ var Nr = co ? (
|
|
|
4439
4602
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
4440
4603
|
}
|
|
4441
4604
|
}
|
|
4442
|
-
),
|
|
4605
|
+
), Po = To ? (
|
|
4443
4606
|
// Native
|
|
4444
4607
|
function(t) {
|
|
4445
4608
|
return t.trimStart();
|
|
@@ -4447,9 +4610,9 @@ var Nr = co ? (
|
|
|
4447
4610
|
) : (
|
|
4448
4611
|
// Ponyfill
|
|
4449
4612
|
function(t) {
|
|
4450
|
-
return t.replace(
|
|
4613
|
+
return t.replace(bo, "");
|
|
4451
4614
|
}
|
|
4452
|
-
),
|
|
4615
|
+
), No = So ? (
|
|
4453
4616
|
// Native
|
|
4454
4617
|
function(t) {
|
|
4455
4618
|
return t.trimEnd();
|
|
@@ -4457,32 +4620,32 @@ var Nr = co ? (
|
|
|
4457
4620
|
) : (
|
|
4458
4621
|
// Ponyfill
|
|
4459
4622
|
function(t) {
|
|
4460
|
-
return t.replace(
|
|
4623
|
+
return t.replace(go, "");
|
|
4461
4624
|
}
|
|
4462
4625
|
);
|
|
4463
|
-
function
|
|
4626
|
+
function Kn(e, t) {
|
|
4464
4627
|
return new RegExp(e, t);
|
|
4465
4628
|
}
|
|
4466
|
-
var
|
|
4467
|
-
if (
|
|
4468
|
-
var
|
|
4469
|
-
|
|
4629
|
+
var Kt;
|
|
4630
|
+
if (Qt) {
|
|
4631
|
+
var Cr = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4632
|
+
Kt = function(t, r) {
|
|
4470
4633
|
var n;
|
|
4471
|
-
|
|
4472
|
-
var i =
|
|
4634
|
+
Cr.lastIndex = r;
|
|
4635
|
+
var i = Cr.exec(t);
|
|
4473
4636
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
4474
4637
|
};
|
|
4475
4638
|
} else
|
|
4476
|
-
|
|
4639
|
+
Kt = function(t, r) {
|
|
4477
4640
|
for (var n = []; ; ) {
|
|
4478
|
-
var i =
|
|
4479
|
-
if (i === void 0 ||
|
|
4641
|
+
var i = Jn(t, r);
|
|
4642
|
+
if (i === void 0 || ei(i) || Ro(i))
|
|
4480
4643
|
break;
|
|
4481
4644
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
4482
4645
|
}
|
|
4483
|
-
return
|
|
4646
|
+
return Jt.apply(void 0, n);
|
|
4484
4647
|
};
|
|
4485
|
-
var
|
|
4648
|
+
var Oo = (
|
|
4486
4649
|
/** @class */
|
|
4487
4650
|
function() {
|
|
4488
4651
|
function e(t, r) {
|
|
@@ -4506,14 +4669,14 @@ var To = (
|
|
|
4506
4669
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
4507
4670
|
var a = this.clonePosition();
|
|
4508
4671
|
this.bump(), i.push({
|
|
4509
|
-
type:
|
|
4672
|
+
type: x.pound,
|
|
4510
4673
|
location: b(a, this.clonePosition())
|
|
4511
4674
|
});
|
|
4512
4675
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
4513
4676
|
if (n)
|
|
4514
4677
|
break;
|
|
4515
4678
|
return this.error(_.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
4516
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
4679
|
+
} else if (s === 60 && !this.ignoreTag && er(this.peek() || 0)) {
|
|
4517
4680
|
var o = this.parseTag(t, r);
|
|
4518
4681
|
if (o.err)
|
|
4519
4682
|
return o;
|
|
@@ -4534,7 +4697,7 @@ var To = (
|
|
|
4534
4697
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
4535
4698
|
return {
|
|
4536
4699
|
val: {
|
|
4537
|
-
type:
|
|
4700
|
+
type: x.literal,
|
|
4538
4701
|
value: "<".concat(i, "/>"),
|
|
4539
4702
|
location: b(n, this.clonePosition())
|
|
4540
4703
|
},
|
|
@@ -4546,12 +4709,12 @@ var To = (
|
|
|
4546
4709
|
return s;
|
|
4547
4710
|
var o = s.val, a = this.clonePosition();
|
|
4548
4711
|
if (this.bumpIf("</")) {
|
|
4549
|
-
if (this.isEOF() || !
|
|
4712
|
+
if (this.isEOF() || !er(this.char()))
|
|
4550
4713
|
return this.error(_.INVALID_TAG, b(a, this.clonePosition()));
|
|
4551
|
-
var
|
|
4552
|
-
return i !==
|
|
4714
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
4715
|
+
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, b(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
4553
4716
|
val: {
|
|
4554
|
-
type:
|
|
4717
|
+
type: x.tag,
|
|
4555
4718
|
value: i,
|
|
4556
4719
|
children: o,
|
|
4557
4720
|
location: b(n, this.clonePosition())
|
|
@@ -4564,7 +4727,7 @@ var To = (
|
|
|
4564
4727
|
return this.error(_.INVALID_TAG, b(n, this.clonePosition()));
|
|
4565
4728
|
}, e.prototype.parseTagName = function() {
|
|
4566
4729
|
var t = this.offset();
|
|
4567
|
-
for (this.bump(); !this.isEOF() &&
|
|
4730
|
+
for (this.bump(); !this.isEOF() && Io(this.char()); )
|
|
4568
4731
|
this.bump();
|
|
4569
4732
|
return this.message.slice(t, this.offset());
|
|
4570
4733
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -4586,14 +4749,14 @@ var To = (
|
|
|
4586
4749
|
}
|
|
4587
4750
|
break;
|
|
4588
4751
|
}
|
|
4589
|
-
var
|
|
4752
|
+
var u = b(n, this.clonePosition());
|
|
4590
4753
|
return {
|
|
4591
|
-
val: { type:
|
|
4754
|
+
val: { type: x.literal, value: i, location: u },
|
|
4592
4755
|
err: null
|
|
4593
4756
|
};
|
|
4594
4757
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
4595
4758
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
4596
|
-
!
|
|
4759
|
+
!Lo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
4597
4760
|
}, e.prototype.tryParseQuote = function(t) {
|
|
4598
4761
|
if (this.isEOF() || this.char() !== 39)
|
|
4599
4762
|
return null;
|
|
@@ -4627,12 +4790,12 @@ var To = (
|
|
|
4627
4790
|
r.push(n);
|
|
4628
4791
|
this.bump();
|
|
4629
4792
|
}
|
|
4630
|
-
return
|
|
4793
|
+
return Jt.apply(void 0, r);
|
|
4631
4794
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
4632
4795
|
if (this.isEOF())
|
|
4633
4796
|
return null;
|
|
4634
4797
|
var n = this.char();
|
|
4635
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
4798
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Jt(n));
|
|
4636
4799
|
}, e.prototype.parseArgument = function(t, r) {
|
|
4637
4800
|
var n = this.clonePosition();
|
|
4638
4801
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -4648,7 +4811,7 @@ var To = (
|
|
|
4648
4811
|
case 125:
|
|
4649
4812
|
return this.bump(), {
|
|
4650
4813
|
val: {
|
|
4651
|
-
type:
|
|
4814
|
+
type: x.argument,
|
|
4652
4815
|
// value does not include the opening and closing braces.
|
|
4653
4816
|
value: i,
|
|
4654
4817
|
location: b(n, this.clonePosition())
|
|
@@ -4661,66 +4824,66 @@ var To = (
|
|
|
4661
4824
|
return this.error(_.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
4662
4825
|
}
|
|
4663
4826
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
4664
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
4827
|
+
var t = this.clonePosition(), r = this.offset(), n = Kt(this.message, r), i = r + n.length;
|
|
4665
4828
|
this.bumpTo(i);
|
|
4666
4829
|
var s = this.clonePosition(), o = b(t, s);
|
|
4667
4830
|
return { value: n, location: o };
|
|
4668
4831
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
4669
|
-
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
4832
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
4670
4833
|
switch (a) {
|
|
4671
4834
|
case "":
|
|
4672
|
-
return this.error(_.EXPECT_ARGUMENT_TYPE, b(o,
|
|
4835
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, b(o, u));
|
|
4673
4836
|
case "number":
|
|
4674
4837
|
case "date":
|
|
4675
4838
|
case "time": {
|
|
4676
4839
|
this.bumpSpace();
|
|
4677
|
-
var
|
|
4840
|
+
var l = null;
|
|
4678
4841
|
if (this.bumpIf(",")) {
|
|
4679
4842
|
this.bumpSpace();
|
|
4680
4843
|
var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
4681
4844
|
if (c.err)
|
|
4682
4845
|
return c;
|
|
4683
|
-
var h =
|
|
4846
|
+
var h = No(c.val);
|
|
4684
4847
|
if (h.length === 0)
|
|
4685
4848
|
return this.error(_.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
4686
4849
|
var d = b(f, this.clonePosition());
|
|
4687
|
-
|
|
4850
|
+
l = { style: h, styleLocation: d };
|
|
4688
4851
|
}
|
|
4689
4852
|
var p = this.tryParseArgumentClose(i);
|
|
4690
4853
|
if (p.err)
|
|
4691
4854
|
return p;
|
|
4692
4855
|
var v = b(i, this.clonePosition());
|
|
4693
|
-
if (
|
|
4694
|
-
var
|
|
4856
|
+
if (l && Ir(l?.style, "::", 0)) {
|
|
4857
|
+
var H = Po(l.style.slice(2));
|
|
4695
4858
|
if (a === "number") {
|
|
4696
|
-
var c = this.parseNumberSkeletonFromString(
|
|
4859
|
+
var c = this.parseNumberSkeletonFromString(H, l.styleLocation);
|
|
4697
4860
|
return c.err ? c : {
|
|
4698
|
-
val: { type:
|
|
4861
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
|
4699
4862
|
err: null
|
|
4700
4863
|
};
|
|
4701
4864
|
} else {
|
|
4702
|
-
if (
|
|
4865
|
+
if (H.length === 0)
|
|
4703
4866
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
|
|
4704
|
-
var
|
|
4705
|
-
this.locale && (
|
|
4867
|
+
var Q = H;
|
|
4868
|
+
this.locale && (Q = _o(H, this.locale));
|
|
4706
4869
|
var h = {
|
|
4707
|
-
type:
|
|
4708
|
-
pattern:
|
|
4709
|
-
location:
|
|
4710
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4711
|
-
},
|
|
4870
|
+
type: De.dateTime,
|
|
4871
|
+
pattern: Q,
|
|
4872
|
+
location: l.styleLocation,
|
|
4873
|
+
parsedOptions: this.shouldParseSkeletons ? uo(Q) : {}
|
|
4874
|
+
}, G = a === "date" ? x.date : x.time;
|
|
4712
4875
|
return {
|
|
4713
|
-
val: { type:
|
|
4876
|
+
val: { type: G, value: n, location: v, style: h },
|
|
4714
4877
|
err: null
|
|
4715
4878
|
};
|
|
4716
4879
|
}
|
|
4717
4880
|
}
|
|
4718
4881
|
return {
|
|
4719
4882
|
val: {
|
|
4720
|
-
type: a === "number" ?
|
|
4883
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
4721
4884
|
value: n,
|
|
4722
4885
|
location: v,
|
|
4723
|
-
style: (s =
|
|
4886
|
+
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
4724
4887
|
},
|
|
4725
4888
|
err: null
|
|
4726
4889
|
};
|
|
@@ -4728,49 +4891,49 @@ var To = (
|
|
|
4728
4891
|
case "plural":
|
|
4729
4892
|
case "selectordinal":
|
|
4730
4893
|
case "select": {
|
|
4731
|
-
var
|
|
4894
|
+
var k = this.clonePosition();
|
|
4732
4895
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
4733
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
4896
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(k, xt({}, k)));
|
|
4734
4897
|
this.bumpSpace();
|
|
4735
|
-
var
|
|
4736
|
-
if (a !== "select" &&
|
|
4898
|
+
var w = this.parseIdentifierIfPossible(), L = 0;
|
|
4899
|
+
if (a !== "select" && w.value === "offset") {
|
|
4737
4900
|
if (!this.bumpIf(":"))
|
|
4738
4901
|
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
4739
4902
|
this.bumpSpace();
|
|
4740
4903
|
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
4741
4904
|
if (c.err)
|
|
4742
4905
|
return c;
|
|
4743
|
-
this.bumpSpace(),
|
|
4906
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = c.val;
|
|
4744
4907
|
}
|
|
4745
|
-
var
|
|
4746
|
-
if (
|
|
4747
|
-
return
|
|
4908
|
+
var be = this.tryParsePluralOrSelectOptions(t, a, r, w);
|
|
4909
|
+
if (be.err)
|
|
4910
|
+
return be;
|
|
4748
4911
|
var p = this.tryParseArgumentClose(i);
|
|
4749
4912
|
if (p.err)
|
|
4750
4913
|
return p;
|
|
4751
|
-
var
|
|
4914
|
+
var Ve = b(i, this.clonePosition());
|
|
4752
4915
|
return a === "select" ? {
|
|
4753
4916
|
val: {
|
|
4754
|
-
type:
|
|
4917
|
+
type: x.select,
|
|
4755
4918
|
value: n,
|
|
4756
|
-
options:
|
|
4757
|
-
location:
|
|
4919
|
+
options: Rr(be.val),
|
|
4920
|
+
location: Ve
|
|
4758
4921
|
},
|
|
4759
4922
|
err: null
|
|
4760
4923
|
} : {
|
|
4761
4924
|
val: {
|
|
4762
|
-
type:
|
|
4925
|
+
type: x.plural,
|
|
4763
4926
|
value: n,
|
|
4764
|
-
options:
|
|
4765
|
-
offset:
|
|
4927
|
+
options: Rr(be.val),
|
|
4928
|
+
offset: L,
|
|
4766
4929
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
4767
|
-
location:
|
|
4930
|
+
location: Ve
|
|
4768
4931
|
},
|
|
4769
4932
|
err: null
|
|
4770
4933
|
};
|
|
4771
4934
|
}
|
|
4772
4935
|
default:
|
|
4773
|
-
return this.error(_.INVALID_ARGUMENT_TYPE, b(o,
|
|
4936
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, b(o, u));
|
|
4774
4937
|
}
|
|
4775
4938
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
4776
4939
|
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -4812,34 +4975,34 @@ var To = (
|
|
|
4812
4975
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
4813
4976
|
var n = [];
|
|
4814
4977
|
try {
|
|
4815
|
-
n =
|
|
4978
|
+
n = fo(t);
|
|
4816
4979
|
} catch {
|
|
4817
4980
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
4818
4981
|
}
|
|
4819
4982
|
return {
|
|
4820
4983
|
val: {
|
|
4821
|
-
type:
|
|
4984
|
+
type: De.number,
|
|
4822
4985
|
tokens: n,
|
|
4823
4986
|
location: r,
|
|
4824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4987
|
+
parsedOptions: this.shouldParseSkeletons ? vo(n) : {}
|
|
4825
4988
|
},
|
|
4826
4989
|
err: null
|
|
4827
4990
|
};
|
|
4828
4991
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
4829
|
-
for (var s, o = !1, a = [],
|
|
4830
|
-
if (
|
|
4992
|
+
for (var s, o = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
4993
|
+
if (l.length === 0) {
|
|
4831
4994
|
var c = this.clonePosition();
|
|
4832
4995
|
if (r !== "select" && this.bumpIf("=")) {
|
|
4833
4996
|
var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
4834
4997
|
if (h.err)
|
|
4835
4998
|
return h;
|
|
4836
|
-
f = b(c, this.clonePosition()),
|
|
4999
|
+
f = b(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
4837
5000
|
} else
|
|
4838
5001
|
break;
|
|
4839
5002
|
}
|
|
4840
|
-
if (
|
|
5003
|
+
if (u.has(l))
|
|
4841
5004
|
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
4842
|
-
|
|
5005
|
+
l === "other" && (o = !0), this.bumpSpace();
|
|
4843
5006
|
var d = this.clonePosition();
|
|
4844
5007
|
if (!this.bumpIf("{"))
|
|
4845
5008
|
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -4850,12 +5013,12 @@ var To = (
|
|
|
4850
5013
|
if (v.err)
|
|
4851
5014
|
return v;
|
|
4852
5015
|
a.push([
|
|
4853
|
-
|
|
5016
|
+
l,
|
|
4854
5017
|
{
|
|
4855
5018
|
value: p.val,
|
|
4856
5019
|
location: b(d, this.clonePosition())
|
|
4857
5020
|
}
|
|
4858
|
-
]),
|
|
5021
|
+
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
4859
5022
|
}
|
|
4860
5023
|
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
4861
5024
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -4868,8 +5031,8 @@ var To = (
|
|
|
4868
5031
|
else
|
|
4869
5032
|
break;
|
|
4870
5033
|
}
|
|
4871
|
-
var
|
|
4872
|
-
return s ? (o *= n,
|
|
5034
|
+
var u = b(i, this.clonePosition());
|
|
5035
|
+
return s ? (o *= n, Ao(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
4873
5036
|
}, e.prototype.offset = function() {
|
|
4874
5037
|
return this.position.offset;
|
|
4875
5038
|
}, e.prototype.isEOF = function() {
|
|
@@ -4884,7 +5047,7 @@ var To = (
|
|
|
4884
5047
|
var t = this.position.offset;
|
|
4885
5048
|
if (t >= this.message.length)
|
|
4886
5049
|
throw Error("out of bound");
|
|
4887
|
-
var r =
|
|
5050
|
+
var r = Jn(this.message, t);
|
|
4888
5051
|
if (r === void 0)
|
|
4889
5052
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
4890
5053
|
return r;
|
|
@@ -4903,7 +5066,7 @@ var To = (
|
|
|
4903
5066
|
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);
|
|
4904
5067
|
}
|
|
4905
5068
|
}, e.prototype.bumpIf = function(t) {
|
|
4906
|
-
if (
|
|
5069
|
+
if (Ir(this.message, t, this.offset())) {
|
|
4907
5070
|
for (var r = 0; r < t.length; r++)
|
|
4908
5071
|
this.bump();
|
|
4909
5072
|
return !0;
|
|
@@ -4925,7 +5088,7 @@ var To = (
|
|
|
4925
5088
|
break;
|
|
4926
5089
|
}
|
|
4927
5090
|
}, e.prototype.bumpSpace = function() {
|
|
4928
|
-
for (; !this.isEOF() &&
|
|
5091
|
+
for (; !this.isEOF() && ei(this.char()); )
|
|
4929
5092
|
this.bump();
|
|
4930
5093
|
}, e.prototype.peek = function() {
|
|
4931
5094
|
if (this.isEOF())
|
|
@@ -4935,46 +5098,46 @@ var To = (
|
|
|
4935
5098
|
}, e;
|
|
4936
5099
|
}()
|
|
4937
5100
|
);
|
|
4938
|
-
function
|
|
5101
|
+
function er(e) {
|
|
4939
5102
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
4940
5103
|
}
|
|
4941
|
-
function
|
|
4942
|
-
return
|
|
5104
|
+
function Lo(e) {
|
|
5105
|
+
return er(e) || e === 47;
|
|
4943
5106
|
}
|
|
4944
|
-
function
|
|
5107
|
+
function Io(e) {
|
|
4945
5108
|
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;
|
|
4946
5109
|
}
|
|
4947
|
-
function
|
|
5110
|
+
function ei(e) {
|
|
4948
5111
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
4949
5112
|
}
|
|
4950
|
-
function
|
|
5113
|
+
function Ro(e) {
|
|
4951
5114
|
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;
|
|
4952
5115
|
}
|
|
4953
|
-
function
|
|
5116
|
+
function tr(e) {
|
|
4954
5117
|
e.forEach(function(t) {
|
|
4955
|
-
if (delete t.location,
|
|
5118
|
+
if (delete t.location, Vn(t) || Xn(t))
|
|
4956
5119
|
for (var r in t.options)
|
|
4957
|
-
delete t.options[r].location,
|
|
4958
|
-
else
|
|
5120
|
+
delete t.options[r].location, tr(t.options[r].value);
|
|
5121
|
+
else Gn(t) && zn(t.style) || (kn(t) || jn(t)) && Yt(t.style) ? delete t.style.location : Wn(t) && tr(t.children);
|
|
4959
5122
|
});
|
|
4960
5123
|
}
|
|
4961
|
-
function
|
|
4962
|
-
t === void 0 && (t = {}), t =
|
|
4963
|
-
var r = new
|
|
5124
|
+
function Co(e, t) {
|
|
5125
|
+
t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5126
|
+
var r = new Oo(e, t).parse();
|
|
4964
5127
|
if (r.err) {
|
|
4965
5128
|
var n = SyntaxError(_[r.err.kind]);
|
|
4966
5129
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
4967
5130
|
}
|
|
4968
|
-
return t?.captureLocation ||
|
|
5131
|
+
return t?.captureLocation || tr(r.val), r.val;
|
|
4969
5132
|
}
|
|
4970
|
-
var
|
|
5133
|
+
var Fe;
|
|
4971
5134
|
(function(e) {
|
|
4972
5135
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
4973
|
-
})(
|
|
4974
|
-
var
|
|
5136
|
+
})(Fe || (Fe = {}));
|
|
5137
|
+
var Ot = (
|
|
4975
5138
|
/** @class */
|
|
4976
5139
|
function(e) {
|
|
4977
|
-
|
|
5140
|
+
Nt(t, e);
|
|
4978
5141
|
function t(r, n, i) {
|
|
4979
5142
|
var s = e.call(this, r) || this;
|
|
4980
5143
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -4983,155 +5146,155 @@ var Pt = (
|
|
|
4983
5146
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
4984
5147
|
}, t;
|
|
4985
5148
|
}(Error)
|
|
4986
|
-
),
|
|
5149
|
+
), Mr = (
|
|
4987
5150
|
/** @class */
|
|
4988
5151
|
function(e) {
|
|
4989
|
-
|
|
5152
|
+
Nt(t, e);
|
|
4990
5153
|
function t(r, n, i, s) {
|
|
4991
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5154
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, s) || this;
|
|
4992
5155
|
}
|
|
4993
5156
|
return t;
|
|
4994
|
-
}(
|
|
4995
|
-
),
|
|
5157
|
+
}(Ot)
|
|
5158
|
+
), Mo = (
|
|
4996
5159
|
/** @class */
|
|
4997
5160
|
function(e) {
|
|
4998
|
-
|
|
5161
|
+
Nt(t, e);
|
|
4999
5162
|
function t(r, n, i) {
|
|
5000
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5163
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Fe.INVALID_VALUE, i) || this;
|
|
5001
5164
|
}
|
|
5002
5165
|
return t;
|
|
5003
|
-
}(
|
|
5004
|
-
),
|
|
5166
|
+
}(Ot)
|
|
5167
|
+
), $o = (
|
|
5005
5168
|
/** @class */
|
|
5006
5169
|
function(e) {
|
|
5007
|
-
|
|
5170
|
+
Nt(t, e);
|
|
5008
5171
|
function t(r, n) {
|
|
5009
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5172
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Fe.MISSING_VALUE, n) || this;
|
|
5010
5173
|
}
|
|
5011
5174
|
return t;
|
|
5012
|
-
}(
|
|
5013
|
-
),
|
|
5175
|
+
}(Ot)
|
|
5176
|
+
), R;
|
|
5014
5177
|
(function(e) {
|
|
5015
5178
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5016
|
-
})(
|
|
5017
|
-
function
|
|
5179
|
+
})(R || (R = {}));
|
|
5180
|
+
function Do(e) {
|
|
5018
5181
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5019
5182
|
var n = t[t.length - 1];
|
|
5020
|
-
return !n || n.type !==
|
|
5183
|
+
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
5021
5184
|
}, []);
|
|
5022
5185
|
}
|
|
5023
|
-
function
|
|
5186
|
+
function Fo(e) {
|
|
5024
5187
|
return typeof e == "function";
|
|
5025
5188
|
}
|
|
5026
|
-
function
|
|
5027
|
-
if (e.length === 1 &&
|
|
5189
|
+
function pt(e, t, r, n, i, s, o) {
|
|
5190
|
+
if (e.length === 1 && Pr(e[0]))
|
|
5028
5191
|
return [
|
|
5029
5192
|
{
|
|
5030
|
-
type:
|
|
5193
|
+
type: R.literal,
|
|
5031
5194
|
value: e[0].value
|
|
5032
5195
|
}
|
|
5033
5196
|
];
|
|
5034
|
-
for (var a = [],
|
|
5035
|
-
var f = u
|
|
5036
|
-
if (
|
|
5197
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
5198
|
+
var f = l[u];
|
|
5199
|
+
if (Pr(f)) {
|
|
5037
5200
|
a.push({
|
|
5038
|
-
type:
|
|
5201
|
+
type: R.literal,
|
|
5039
5202
|
value: f.value
|
|
5040
5203
|
});
|
|
5041
5204
|
continue;
|
|
5042
5205
|
}
|
|
5043
|
-
if (
|
|
5206
|
+
if (oo(f)) {
|
|
5044
5207
|
typeof s == "number" && a.push({
|
|
5045
|
-
type:
|
|
5208
|
+
type: R.literal,
|
|
5046
5209
|
value: r.getNumberFormat(t).format(s)
|
|
5047
5210
|
});
|
|
5048
5211
|
continue;
|
|
5049
5212
|
}
|
|
5050
5213
|
var c = f.value;
|
|
5051
5214
|
if (!(i && c in i))
|
|
5052
|
-
throw new
|
|
5215
|
+
throw new $o(c, o);
|
|
5053
5216
|
var h = i[c];
|
|
5054
|
-
if (
|
|
5217
|
+
if (so(f)) {
|
|
5055
5218
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
5056
|
-
type: typeof h == "string" ?
|
|
5219
|
+
type: typeof h == "string" ? R.literal : R.object,
|
|
5057
5220
|
value: h
|
|
5058
5221
|
});
|
|
5059
5222
|
continue;
|
|
5060
5223
|
}
|
|
5061
|
-
if (
|
|
5062
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5224
|
+
if (kn(f)) {
|
|
5225
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Yt(f.style) ? f.style.parsedOptions : void 0;
|
|
5063
5226
|
a.push({
|
|
5064
|
-
type:
|
|
5227
|
+
type: R.literal,
|
|
5065
5228
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5066
5229
|
});
|
|
5067
5230
|
continue;
|
|
5068
5231
|
}
|
|
5069
|
-
if (
|
|
5070
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5232
|
+
if (jn(f)) {
|
|
5233
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Yt(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5071
5234
|
a.push({
|
|
5072
|
-
type:
|
|
5235
|
+
type: R.literal,
|
|
5073
5236
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5074
5237
|
});
|
|
5075
5238
|
continue;
|
|
5076
5239
|
}
|
|
5077
|
-
if (
|
|
5078
|
-
var d = typeof f.style == "string" ? n.number[f.style] :
|
|
5240
|
+
if (Gn(f)) {
|
|
5241
|
+
var d = typeof f.style == "string" ? n.number[f.style] : zn(f.style) ? f.style.parsedOptions : void 0;
|
|
5079
5242
|
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
5080
|
-
type:
|
|
5243
|
+
type: R.literal,
|
|
5081
5244
|
value: r.getNumberFormat(t, d).format(h)
|
|
5082
5245
|
});
|
|
5083
5246
|
continue;
|
|
5084
5247
|
}
|
|
5085
|
-
if (
|
|
5086
|
-
var p = f.children, v = f.value,
|
|
5087
|
-
if (!
|
|
5088
|
-
throw new
|
|
5089
|
-
var
|
|
5090
|
-
return
|
|
5248
|
+
if (Wn(f)) {
|
|
5249
|
+
var p = f.children, v = f.value, H = i[v];
|
|
5250
|
+
if (!Fo(H))
|
|
5251
|
+
throw new Mo(v, "function", o);
|
|
5252
|
+
var Q = pt(p, t, r, n, i, s), G = H(Q.map(function(L) {
|
|
5253
|
+
return L.value;
|
|
5091
5254
|
}));
|
|
5092
|
-
Array.isArray(
|
|
5255
|
+
Array.isArray(G) || (G = [G]), a.push.apply(a, G.map(function(L) {
|
|
5093
5256
|
return {
|
|
5094
|
-
type: typeof
|
|
5095
|
-
value:
|
|
5257
|
+
type: typeof L == "string" ? R.literal : R.object,
|
|
5258
|
+
value: L
|
|
5096
5259
|
};
|
|
5097
5260
|
}));
|
|
5098
5261
|
}
|
|
5099
|
-
if (
|
|
5100
|
-
var
|
|
5101
|
-
if (!
|
|
5102
|
-
throw new
|
|
5103
|
-
a.push.apply(a,
|
|
5262
|
+
if (Vn(f)) {
|
|
5263
|
+
var k = f.options[h] || f.options.other;
|
|
5264
|
+
if (!k)
|
|
5265
|
+
throw new Mr(f.value, h, Object.keys(f.options), o);
|
|
5266
|
+
a.push.apply(a, pt(k.value, t, r, n, i));
|
|
5104
5267
|
continue;
|
|
5105
5268
|
}
|
|
5106
|
-
if (
|
|
5107
|
-
var
|
|
5108
|
-
if (!
|
|
5269
|
+
if (Xn(f)) {
|
|
5270
|
+
var k = f.options["=".concat(h)];
|
|
5271
|
+
if (!k) {
|
|
5109
5272
|
if (!Intl.PluralRules)
|
|
5110
|
-
throw new
|
|
5273
|
+
throw new Ot(`Intl.PluralRules is not available in this environment.
|
|
5111
5274
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5112
|
-
`,
|
|
5113
|
-
var
|
|
5114
|
-
|
|
5275
|
+
`, Fe.MISSING_INTL_API, o);
|
|
5276
|
+
var w = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
|
|
5277
|
+
k = f.options[w] || f.options.other;
|
|
5115
5278
|
}
|
|
5116
|
-
if (!
|
|
5117
|
-
throw new
|
|
5118
|
-
a.push.apply(a,
|
|
5279
|
+
if (!k)
|
|
5280
|
+
throw new Mr(f.value, h, Object.keys(f.options), o);
|
|
5281
|
+
a.push.apply(a, pt(k.value, t, r, n, i, h - (f.offset || 0)));
|
|
5119
5282
|
continue;
|
|
5120
5283
|
}
|
|
5121
5284
|
}
|
|
5122
|
-
return
|
|
5285
|
+
return Do(a);
|
|
5123
5286
|
}
|
|
5124
|
-
function
|
|
5125
|
-
return t ?
|
|
5126
|
-
return r[n] =
|
|
5287
|
+
function Uo(e, t) {
|
|
5288
|
+
return t ? J(J(J({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5289
|
+
return r[n] = J(J({}, e[n]), t[n] || {}), r;
|
|
5127
5290
|
}, {})) : e;
|
|
5128
5291
|
}
|
|
5129
|
-
function
|
|
5292
|
+
function Go(e, t) {
|
|
5130
5293
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5131
|
-
return r[n] =
|
|
5132
|
-
},
|
|
5294
|
+
return r[n] = Uo(e[n], t[n]), r;
|
|
5295
|
+
}, J({}, e)) : e;
|
|
5133
5296
|
}
|
|
5134
|
-
function
|
|
5297
|
+
function Ut(e) {
|
|
5135
5298
|
return {
|
|
5136
5299
|
create: function() {
|
|
5137
5300
|
return {
|
|
@@ -5145,39 +5308,39 @@ function Mt(e) {
|
|
|
5145
5308
|
}
|
|
5146
5309
|
};
|
|
5147
5310
|
}
|
|
5148
|
-
function
|
|
5311
|
+
function ko(e) {
|
|
5149
5312
|
return e === void 0 && (e = {
|
|
5150
5313
|
number: {},
|
|
5151
5314
|
dateTime: {},
|
|
5152
5315
|
pluralRules: {}
|
|
5153
5316
|
}), {
|
|
5154
|
-
getNumberFormat:
|
|
5317
|
+
getNumberFormat: $t(function() {
|
|
5155
5318
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5156
5319
|
r[n] = arguments[n];
|
|
5157
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
5320
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5158
5321
|
}, {
|
|
5159
|
-
cache:
|
|
5160
|
-
strategy:
|
|
5322
|
+
cache: Ut(e.number),
|
|
5323
|
+
strategy: Dt.variadic
|
|
5161
5324
|
}),
|
|
5162
|
-
getDateTimeFormat:
|
|
5325
|
+
getDateTimeFormat: $t(function() {
|
|
5163
5326
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5164
5327
|
r[n] = arguments[n];
|
|
5165
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
5328
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5166
5329
|
}, {
|
|
5167
|
-
cache:
|
|
5168
|
-
strategy:
|
|
5330
|
+
cache: Ut(e.dateTime),
|
|
5331
|
+
strategy: Dt.variadic
|
|
5169
5332
|
}),
|
|
5170
|
-
getPluralRules:
|
|
5333
|
+
getPluralRules: $t(function() {
|
|
5171
5334
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5172
5335
|
r[n] = arguments[n];
|
|
5173
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
5336
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], r, !1)))();
|
|
5174
5337
|
}, {
|
|
5175
|
-
cache:
|
|
5176
|
-
strategy:
|
|
5338
|
+
cache: Ut(e.pluralRules),
|
|
5339
|
+
strategy: Dt.variadic
|
|
5177
5340
|
})
|
|
5178
5341
|
};
|
|
5179
5342
|
}
|
|
5180
|
-
var
|
|
5343
|
+
var jo = (
|
|
5181
5344
|
/** @class */
|
|
5182
5345
|
function() {
|
|
5183
5346
|
function e(t, r, n, i) {
|
|
@@ -5187,20 +5350,20 @@ var Mo = (
|
|
|
5187
5350
|
number: {},
|
|
5188
5351
|
dateTime: {},
|
|
5189
5352
|
pluralRules: {}
|
|
5190
|
-
}, this.format = function(
|
|
5191
|
-
var
|
|
5192
|
-
if (
|
|
5193
|
-
return
|
|
5194
|
-
var f =
|
|
5195
|
-
return !c.length || h.type !==
|
|
5353
|
+
}, this.format = function(u) {
|
|
5354
|
+
var l = s.formatToParts(u);
|
|
5355
|
+
if (l.length === 1)
|
|
5356
|
+
return l[0].value;
|
|
5357
|
+
var f = l.reduce(function(c, h) {
|
|
5358
|
+
return !c.length || h.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
|
|
5196
5359
|
}, []);
|
|
5197
5360
|
return f.length <= 1 ? f[0] || "" : f;
|
|
5198
|
-
}, this.formatToParts = function(
|
|
5199
|
-
return
|
|
5361
|
+
}, this.formatToParts = function(u) {
|
|
5362
|
+
return pt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
5200
5363
|
}, this.resolvedOptions = function() {
|
|
5201
|
-
var
|
|
5364
|
+
var u;
|
|
5202
5365
|
return {
|
|
5203
|
-
locale: ((
|
|
5366
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
5204
5367
|
};
|
|
5205
5368
|
}, this.getAst = function() {
|
|
5206
5369
|
return s.ast;
|
|
@@ -5209,13 +5372,13 @@ var Mo = (
|
|
|
5209
5372
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
5210
5373
|
var o = i || {};
|
|
5211
5374
|
o.formatters;
|
|
5212
|
-
var a =
|
|
5213
|
-
this.ast = e.__parse(t,
|
|
5375
|
+
var a = Qs(o, ["formatters"]);
|
|
5376
|
+
this.ast = e.__parse(t, J(J({}, a), { locale: this.resolvedLocale }));
|
|
5214
5377
|
} else
|
|
5215
5378
|
this.ast = t;
|
|
5216
5379
|
if (!Array.isArray(this.ast))
|
|
5217
5380
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
5218
|
-
this.formats =
|
|
5381
|
+
this.formats = Go(e.formats, n), this.formatters = i && i.formatters || ko(this.formatterCache);
|
|
5219
5382
|
}
|
|
5220
5383
|
return Object.defineProperty(e, "defaultLocale", {
|
|
5221
5384
|
get: function() {
|
|
@@ -5228,7 +5391,7 @@ var Mo = (
|
|
|
5228
5391
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
5229
5392
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
5230
5393
|
}
|
|
5231
|
-
}, e.__parse =
|
|
5394
|
+
}, e.__parse = Co, e.formats = {
|
|
5232
5395
|
number: {
|
|
5233
5396
|
integer: {
|
|
5234
5397
|
maximumFractionDigits: 0
|
|
@@ -5289,7 +5452,7 @@ var Mo = (
|
|
|
5289
5452
|
}, e;
|
|
5290
5453
|
}()
|
|
5291
5454
|
);
|
|
5292
|
-
function
|
|
5455
|
+
function Vo(e, t) {
|
|
5293
5456
|
if (t == null)
|
|
5294
5457
|
return;
|
|
5295
5458
|
if (t in e)
|
|
@@ -5310,92 +5473,92 @@ function $o(e, t) {
|
|
|
5310
5473
|
n = void 0;
|
|
5311
5474
|
return n;
|
|
5312
5475
|
}
|
|
5313
|
-
const
|
|
5476
|
+
const ce = {}, Xo = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), ti = (e, t) => {
|
|
5314
5477
|
if (t == null)
|
|
5315
5478
|
return;
|
|
5316
|
-
if (t in
|
|
5317
|
-
return
|
|
5318
|
-
const r =
|
|
5479
|
+
if (t in ce && e in ce[t])
|
|
5480
|
+
return ce[t][e];
|
|
5481
|
+
const r = Lt(t);
|
|
5319
5482
|
for (let n = 0; n < r.length; n++) {
|
|
5320
|
-
const i = r[n], s =
|
|
5483
|
+
const i = r[n], s = zo(i, e);
|
|
5321
5484
|
if (s)
|
|
5322
|
-
return
|
|
5485
|
+
return Xo(e, t, s);
|
|
5323
5486
|
}
|
|
5324
5487
|
};
|
|
5325
|
-
let
|
|
5326
|
-
const
|
|
5327
|
-
function
|
|
5328
|
-
return
|
|
5488
|
+
let vr;
|
|
5489
|
+
const ke = Pt({});
|
|
5490
|
+
function Wo(e) {
|
|
5491
|
+
return vr[e] || null;
|
|
5329
5492
|
}
|
|
5330
|
-
function
|
|
5331
|
-
return e in
|
|
5493
|
+
function ri(e) {
|
|
5494
|
+
return e in vr;
|
|
5332
5495
|
}
|
|
5333
|
-
function
|
|
5334
|
-
if (!
|
|
5496
|
+
function zo(e, t) {
|
|
5497
|
+
if (!ri(e))
|
|
5335
5498
|
return null;
|
|
5336
|
-
const r =
|
|
5337
|
-
return
|
|
5499
|
+
const r = Wo(e);
|
|
5500
|
+
return Vo(r, t);
|
|
5338
5501
|
}
|
|
5339
|
-
function
|
|
5502
|
+
function qo(e) {
|
|
5340
5503
|
if (e == null)
|
|
5341
5504
|
return;
|
|
5342
|
-
const t =
|
|
5505
|
+
const t = Lt(e);
|
|
5343
5506
|
for (let r = 0; r < t.length; r++) {
|
|
5344
5507
|
const n = t[r];
|
|
5345
|
-
if (
|
|
5508
|
+
if (ri(n))
|
|
5346
5509
|
return n;
|
|
5347
5510
|
}
|
|
5348
5511
|
}
|
|
5349
|
-
function
|
|
5350
|
-
delete
|
|
5512
|
+
function ni(e, ...t) {
|
|
5513
|
+
delete ce[e], ke.update((r) => (r[e] = Ys.all([r[e] || {}, ...t]), r));
|
|
5351
5514
|
}
|
|
5352
|
-
|
|
5353
|
-
[
|
|
5515
|
+
Ge(
|
|
5516
|
+
[ke],
|
|
5354
5517
|
([e]) => Object.keys(e)
|
|
5355
5518
|
);
|
|
5356
|
-
|
|
5357
|
-
const
|
|
5358
|
-
function
|
|
5359
|
-
|
|
5519
|
+
ke.subscribe((e) => vr = e);
|
|
5520
|
+
const vt = {};
|
|
5521
|
+
function Zo(e, t) {
|
|
5522
|
+
vt[e].delete(t), vt[e].size === 0 && delete vt[e];
|
|
5360
5523
|
}
|
|
5361
|
-
function
|
|
5362
|
-
return
|
|
5524
|
+
function ii(e) {
|
|
5525
|
+
return vt[e];
|
|
5363
5526
|
}
|
|
5364
|
-
function
|
|
5365
|
-
return
|
|
5366
|
-
const r =
|
|
5527
|
+
function Yo(e) {
|
|
5528
|
+
return Lt(e).map((t) => {
|
|
5529
|
+
const r = ii(t);
|
|
5367
5530
|
return [t, r ? [...r] : []];
|
|
5368
5531
|
}).filter(([, t]) => t.length > 0);
|
|
5369
5532
|
}
|
|
5370
|
-
function
|
|
5371
|
-
return e == null ? !1 :
|
|
5533
|
+
function rr(e) {
|
|
5534
|
+
return e == null ? !1 : Lt(e).some(
|
|
5372
5535
|
(t) => {
|
|
5373
5536
|
var r;
|
|
5374
|
-
return (r =
|
|
5537
|
+
return (r = ii(t)) == null ? void 0 : r.size;
|
|
5375
5538
|
}
|
|
5376
5539
|
);
|
|
5377
5540
|
}
|
|
5378
|
-
function
|
|
5541
|
+
function Qo(e, t) {
|
|
5379
5542
|
return Promise.all(
|
|
5380
|
-
t.map((n) => (
|
|
5381
|
-
).then((n) =>
|
|
5382
|
-
}
|
|
5383
|
-
const
|
|
5384
|
-
function
|
|
5385
|
-
if (!
|
|
5386
|
-
return e in
|
|
5387
|
-
const t =
|
|
5388
|
-
return
|
|
5543
|
+
t.map((n) => (Zo(e, n), n().then((i) => i.default || i)))
|
|
5544
|
+
).then((n) => ni(e, ...n));
|
|
5545
|
+
}
|
|
5546
|
+
const ze = {};
|
|
5547
|
+
function si(e) {
|
|
5548
|
+
if (!rr(e))
|
|
5549
|
+
return e in ze ? ze[e] : Promise.resolve();
|
|
5550
|
+
const t = Yo(e);
|
|
5551
|
+
return ze[e] = Promise.all(
|
|
5389
5552
|
t.map(
|
|
5390
|
-
([r, n]) =>
|
|
5553
|
+
([r, n]) => Qo(r, n)
|
|
5391
5554
|
)
|
|
5392
5555
|
).then(() => {
|
|
5393
|
-
if (
|
|
5394
|
-
return
|
|
5395
|
-
delete
|
|
5396
|
-
}),
|
|
5556
|
+
if (rr(e))
|
|
5557
|
+
return si(e);
|
|
5558
|
+
delete ze[e];
|
|
5559
|
+
}), ze[e];
|
|
5397
5560
|
}
|
|
5398
|
-
const
|
|
5561
|
+
const Jo = {
|
|
5399
5562
|
number: {
|
|
5400
5563
|
scientific: { notation: "scientific" },
|
|
5401
5564
|
engineering: { notation: "engineering" },
|
|
@@ -5424,150 +5587,150 @@ const Xo = {
|
|
|
5424
5587
|
timeZoneName: "short"
|
|
5425
5588
|
}
|
|
5426
5589
|
}
|
|
5427
|
-
},
|
|
5590
|
+
}, Ko = {
|
|
5428
5591
|
fallbackLocale: null,
|
|
5429
5592
|
loadingDelay: 200,
|
|
5430
|
-
formats:
|
|
5593
|
+
formats: Jo,
|
|
5431
5594
|
warnOnMissingMessages: !0,
|
|
5432
5595
|
handleMissingMessage: void 0,
|
|
5433
5596
|
ignoreTag: !0
|
|
5434
|
-
},
|
|
5435
|
-
function
|
|
5436
|
-
return
|
|
5597
|
+
}, ea = Ko;
|
|
5598
|
+
function Ue() {
|
|
5599
|
+
return ea;
|
|
5437
5600
|
}
|
|
5438
|
-
const
|
|
5439
|
-
var
|
|
5601
|
+
const Gt = Pt(!1);
|
|
5602
|
+
var ta = Object.defineProperty, ra = Object.defineProperties, na = Object.getOwnPropertyDescriptors, $r = Object.getOwnPropertySymbols, ia = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Dr = (e, t, r) => t in e ? ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oa = (e, t) => {
|
|
5440
5603
|
for (var r in t || (t = {}))
|
|
5441
|
-
|
|
5442
|
-
if (
|
|
5443
|
-
for (var r of
|
|
5444
|
-
|
|
5604
|
+
ia.call(t, r) && Dr(e, r, t[r]);
|
|
5605
|
+
if ($r)
|
|
5606
|
+
for (var r of $r(t))
|
|
5607
|
+
sa.call(t, r) && Dr(e, r, t[r]);
|
|
5445
5608
|
return e;
|
|
5446
|
-
},
|
|
5447
|
-
let
|
|
5448
|
-
const
|
|
5449
|
-
function
|
|
5609
|
+
}, aa = (e, t) => ra(e, na(t));
|
|
5610
|
+
let nr;
|
|
5611
|
+
const wt = Pt(null);
|
|
5612
|
+
function Fr(e) {
|
|
5450
5613
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
5451
5614
|
}
|
|
5452
|
-
function
|
|
5453
|
-
const r =
|
|
5454
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
5615
|
+
function Lt(e, t = Ue().fallbackLocale) {
|
|
5616
|
+
const r = Fr(e);
|
|
5617
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Fr(t)])] : r;
|
|
5455
5618
|
}
|
|
5456
5619
|
function He() {
|
|
5457
|
-
return
|
|
5620
|
+
return nr ?? void 0;
|
|
5458
5621
|
}
|
|
5459
|
-
|
|
5460
|
-
|
|
5622
|
+
wt.subscribe((e) => {
|
|
5623
|
+
nr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
5461
5624
|
});
|
|
5462
|
-
const
|
|
5463
|
-
if (e &&
|
|
5464
|
-
const { loadingDelay: t } =
|
|
5625
|
+
const ua = (e) => {
|
|
5626
|
+
if (e && qo(e) && rr(e)) {
|
|
5627
|
+
const { loadingDelay: t } = Ue();
|
|
5465
5628
|
let r;
|
|
5466
5629
|
return typeof window < "u" && He() != null && t ? r = window.setTimeout(
|
|
5467
|
-
() =>
|
|
5630
|
+
() => Gt.set(!0),
|
|
5468
5631
|
t
|
|
5469
|
-
) :
|
|
5470
|
-
|
|
5632
|
+
) : Gt.set(!0), si(e).then(() => {
|
|
5633
|
+
wt.set(e);
|
|
5471
5634
|
}).finally(() => {
|
|
5472
|
-
clearTimeout(r),
|
|
5635
|
+
clearTimeout(r), Gt.set(!1);
|
|
5473
5636
|
});
|
|
5474
5637
|
}
|
|
5475
|
-
return
|
|
5476
|
-
}, Te =
|
|
5477
|
-
set:
|
|
5478
|
-
}),
|
|
5638
|
+
return wt.set(e);
|
|
5639
|
+
}, Te = aa(oa({}, wt), {
|
|
5640
|
+
set: ua
|
|
5641
|
+
}), It = (e) => {
|
|
5479
5642
|
const t = /* @__PURE__ */ Object.create(null);
|
|
5480
5643
|
return (n) => {
|
|
5481
5644
|
const i = JSON.stringify(n);
|
|
5482
5645
|
return i in t ? t[i] : t[i] = e(n);
|
|
5483
5646
|
};
|
|
5484
5647
|
};
|
|
5485
|
-
var
|
|
5648
|
+
var la = Object.defineProperty, Tt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, Ur = (e, t, r) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _r = (e, t) => {
|
|
5486
5649
|
for (var r in t || (t = {}))
|
|
5487
|
-
|
|
5488
|
-
if (
|
|
5489
|
-
for (var r of
|
|
5490
|
-
|
|
5650
|
+
oi.call(t, r) && Ur(e, r, t[r]);
|
|
5651
|
+
if (Tt)
|
|
5652
|
+
for (var r of Tt(t))
|
|
5653
|
+
ai.call(t, r) && Ur(e, r, t[r]);
|
|
5491
5654
|
return e;
|
|
5492
|
-
},
|
|
5655
|
+
}, je = (e, t) => {
|
|
5493
5656
|
var r = {};
|
|
5494
5657
|
for (var n in e)
|
|
5495
|
-
|
|
5496
|
-
if (e != null &&
|
|
5497
|
-
for (var n of
|
|
5498
|
-
t.indexOf(n) < 0 &&
|
|
5658
|
+
oi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
5659
|
+
if (e != null && Tt)
|
|
5660
|
+
for (var n of Tt(e))
|
|
5661
|
+
t.indexOf(n) < 0 && ai.call(e, n) && (r[n] = e[n]);
|
|
5499
5662
|
return r;
|
|
5500
5663
|
};
|
|
5501
|
-
const
|
|
5502
|
-
const { formats: r } =
|
|
5664
|
+
const nt = (e, t) => {
|
|
5665
|
+
const { formats: r } = Ue();
|
|
5503
5666
|
if (e in r && t in r[e])
|
|
5504
5667
|
return r[e][t];
|
|
5505
5668
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
5506
|
-
},
|
|
5669
|
+
}, fa = It(
|
|
5507
5670
|
(e) => {
|
|
5508
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5671
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5509
5672
|
if (r == null)
|
|
5510
5673
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
5511
|
-
return n && (i =
|
|
5674
|
+
return n && (i = nt("number", n)), new Intl.NumberFormat(r, i);
|
|
5512
5675
|
}
|
|
5513
|
-
),
|
|
5676
|
+
), ha = It(
|
|
5514
5677
|
(e) => {
|
|
5515
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5678
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5516
5679
|
if (r == null)
|
|
5517
5680
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
5518
|
-
return n ? i =
|
|
5681
|
+
return n ? i = nt("date", n) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
5519
5682
|
}
|
|
5520
|
-
),
|
|
5683
|
+
), ca = It(
|
|
5521
5684
|
(e) => {
|
|
5522
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5685
|
+
var t = e, { locale: r, format: n } = t, i = je(t, ["locale", "format"]);
|
|
5523
5686
|
if (r == null)
|
|
5524
5687
|
throw new Error(
|
|
5525
5688
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
5526
5689
|
);
|
|
5527
|
-
return n ? i =
|
|
5690
|
+
return n ? i = nt("time", n) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
5528
5691
|
}
|
|
5529
|
-
),
|
|
5692
|
+
), da = (e = {}) => {
|
|
5530
5693
|
var t = e, {
|
|
5531
5694
|
locale: r = He()
|
|
5532
|
-
} = t, n =
|
|
5695
|
+
} = t, n = je(t, [
|
|
5533
5696
|
"locale"
|
|
5534
5697
|
]);
|
|
5535
|
-
return
|
|
5536
|
-
},
|
|
5698
|
+
return fa(_r({ locale: r }, n));
|
|
5699
|
+
}, pa = (e = {}) => {
|
|
5537
5700
|
var t = e, {
|
|
5538
5701
|
locale: r = He()
|
|
5539
|
-
} = t, n =
|
|
5702
|
+
} = t, n = je(t, [
|
|
5540
5703
|
"locale"
|
|
5541
5704
|
]);
|
|
5542
|
-
return
|
|
5543
|
-
},
|
|
5705
|
+
return ha(_r({ locale: r }, n));
|
|
5706
|
+
}, va = (e = {}) => {
|
|
5544
5707
|
var t = e, {
|
|
5545
5708
|
locale: r = He()
|
|
5546
|
-
} = t, n =
|
|
5709
|
+
} = t, n = je(t, [
|
|
5547
5710
|
"locale"
|
|
5548
5711
|
]);
|
|
5549
|
-
return
|
|
5550
|
-
},
|
|
5712
|
+
return ca(_r({ locale: r }, n));
|
|
5713
|
+
}, _a = It(
|
|
5551
5714
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5552
|
-
(e, t = He()) => new
|
|
5553
|
-
ignoreTag:
|
|
5715
|
+
(e, t = He()) => new jo(e, t, Ue().formats, {
|
|
5716
|
+
ignoreTag: Ue().ignoreTag
|
|
5554
5717
|
})
|
|
5555
|
-
),
|
|
5718
|
+
), ma = (e, t = {}) => {
|
|
5556
5719
|
var r, n, i, s;
|
|
5557
5720
|
let o = t;
|
|
5558
5721
|
typeof e == "object" && (o = e, e = o.id);
|
|
5559
5722
|
const {
|
|
5560
5723
|
values: a,
|
|
5561
|
-
locale:
|
|
5562
|
-
default:
|
|
5724
|
+
locale: u = He(),
|
|
5725
|
+
default: l
|
|
5563
5726
|
} = o;
|
|
5564
|
-
if (
|
|
5727
|
+
if (u == null)
|
|
5565
5728
|
throw new Error(
|
|
5566
5729
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
5567
5730
|
);
|
|
5568
|
-
let f =
|
|
5731
|
+
let f = ti(e, u);
|
|
5569
5732
|
if (!f)
|
|
5570
|
-
f = (s = (i = (n = (r =
|
|
5733
|
+
f = (s = (i = (n = (r = Ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
5571
5734
|
else if (typeof f != "string")
|
|
5572
5735
|
return console.warn(
|
|
5573
5736
|
`[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.`
|
|
@@ -5576,7 +5739,7 @@ const Qe = (e, t) => {
|
|
|
5576
5739
|
return f;
|
|
5577
5740
|
let c = f;
|
|
5578
5741
|
try {
|
|
5579
|
-
c =
|
|
5742
|
+
c = _a(f, u).format(a);
|
|
5580
5743
|
} catch (h) {
|
|
5581
5744
|
h instanceof Error && console.warn(
|
|
5582
5745
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -5584,20 +5747,20 @@ const Qe = (e, t) => {
|
|
|
5584
5747
|
);
|
|
5585
5748
|
}
|
|
5586
5749
|
return c;
|
|
5587
|
-
},
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
function
|
|
5750
|
+
}, ba = (e, t) => va(t).format(e), ga = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), Ea = (e, t = He()) => ti(e, t), xa = Ge([Te, ke], () => ma);
|
|
5751
|
+
Ge([Te], () => ba);
|
|
5752
|
+
Ge([Te], () => ga);
|
|
5753
|
+
Ge([Te], () => ya);
|
|
5754
|
+
Ge([Te, ke], () => Ea);
|
|
5755
|
+
function wa({ withLocale: e, translations: t }) {
|
|
5593
5756
|
Te.subscribe((r) => {
|
|
5594
|
-
r == null && (
|
|
5757
|
+
r == null && (ke.set(t), Te.set(e));
|
|
5595
5758
|
});
|
|
5596
5759
|
}
|
|
5597
|
-
function
|
|
5598
|
-
|
|
5760
|
+
function Ta(e, t) {
|
|
5761
|
+
ni(e, t);
|
|
5599
5762
|
}
|
|
5600
|
-
const
|
|
5763
|
+
const Sa = {
|
|
5601
5764
|
en: {
|
|
5602
5765
|
tokens: "Tokens",
|
|
5603
5766
|
tokenBalance: "Token Balance",
|
|
@@ -5609,78 +5772,94 @@ const ba = {
|
|
|
5609
5772
|
requestRakeback: "Rakeback Talebi"
|
|
5610
5773
|
}
|
|
5611
5774
|
};
|
|
5612
|
-
var
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5775
|
+
var Ha = /* @__PURE__ */ Rn('<div class="loyalty-points svelte-x3lw9i"><div class="loyalty-points__content svelte-x3lw9i"><div class="loyalty-points__value svelte-x3lw9i"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-x3lw9i"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-x3lw9i"></span></div></div></div>'), Aa = /* @__PURE__ */ Rn('<div class="loyalty-points svelte-x3lw9i"><div class="loyalty-points__content svelte-x3lw9i"><div class="loyalty-points__value svelte-x3lw9i"><span class="loyalty-points__amount svelte-x3lw9i"> </span> <span class="loyalty-points__description svelte-x3lw9i"> </span></div></div></div>');
|
|
5776
|
+
const Ba = {
|
|
5777
|
+
hash: "svelte-x3lw9i",
|
|
5778
|
+
code: `.loyalty-points.svelte-x3lw9i {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-x3lw9i {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-x3lw9i {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-x3lw9i {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-x3lw9i {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__skeleton.svelte-x3lw9i {display:block;border-radius:6px;background:linear-gradient(
|
|
5779
|
+
90deg,
|
|
5780
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
5781
|
+
color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
|
|
5782
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
|
|
5783
|
+
);background-size:200% 100%;
|
|
5784
|
+
animation: svelte-x3lw9i-shimmer 3s linear infinite;}.loyalty-points__skeleton--amount.svelte-x3lw9i {width:120px;height:22px;}.loyalty-points__skeleton--description.svelte-x3lw9i {width:90px;height:20px;}
|
|
5785
|
+
|
|
5786
|
+
@keyframes svelte-x3lw9i-shimmer {
|
|
5787
|
+
0% {
|
|
5788
|
+
background-position: 200% 0;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
100% {
|
|
5792
|
+
background-position: -200% 0;
|
|
5793
|
+
}
|
|
5794
|
+
}`
|
|
5795
|
+
};
|
|
5796
|
+
function Pa(e, t) {
|
|
5797
|
+
Yr(t, !0), Es(e, Ba);
|
|
5798
|
+
const r = () => Ts(xa, "$_", n), [n, i] = Ss(), s = ft(t, "apiEndpoint", 7, ""), o = ft(t, "userSession", 7, ""), a = ft(t, "locale", 7, ""), u = ft(t, "onLevelLoaded", 7, (w) => {
|
|
5616
5799
|
});
|
|
5617
|
-
|
|
5618
|
-
|
|
5800
|
+
wa({ withLocale: a(), translations: {} }), Object.entries(Sa).forEach(([w, L]) => {
|
|
5801
|
+
Ta(w, L);
|
|
5619
5802
|
});
|
|
5620
|
-
const
|
|
5803
|
+
const l = Rs(() => ({
|
|
5621
5804
|
apiEndpoint: s(),
|
|
5622
5805
|
userSession: o(),
|
|
5623
5806
|
locale: a(),
|
|
5624
5807
|
loadLevels: !1,
|
|
5625
|
-
onLevelLoaded:
|
|
5626
|
-
})), f = /* @__PURE__ */
|
|
5627
|
-
var
|
|
5628
|
-
Fe(y);
|
|
5629
|
-
var x = Xi(y, 2), P = je(x, !0);
|
|
5630
|
-
Fe(x), Fe(v), Fe(p), Fe(d), Ji(
|
|
5631
|
-
(U, W) => {
|
|
5632
|
-
Sr(F, `${E(h) ?? ""}
|
|
5633
|
-
${U ?? ""}`), Sr(P, W);
|
|
5634
|
-
},
|
|
5635
|
-
[() => r()("tokens"), () => r()("tokenBalance")]
|
|
5636
|
-
), On(e, d), or(), i();
|
|
5637
|
-
}
|
|
5638
|
-
function Ea(e, t) {
|
|
5639
|
-
sr(t, !0);
|
|
5640
|
-
const r = oe(t, "apiEndpoint", 7), n = oe(t, "userSession", 7), i = oe(t, "locale", 7), s = oe(t, "onLevelLoaded", 7);
|
|
5641
|
-
var o = {
|
|
5808
|
+
onLevelLoaded: u()
|
|
5809
|
+
})), f = /* @__PURE__ */ ut(() => l.spendableWalletTotal), c = /* @__PURE__ */ ut(() => y(f)?.points ?? 0), h = /* @__PURE__ */ ut(() => y(c).toLocaleString()), d = /* @__PURE__ */ ut(() => l.loading && y(f) === void 0);
|
|
5810
|
+
var p = {
|
|
5642
5811
|
get apiEndpoint() {
|
|
5643
|
-
return
|
|
5812
|
+
return s();
|
|
5644
5813
|
},
|
|
5645
|
-
set apiEndpoint(
|
|
5646
|
-
|
|
5814
|
+
set apiEndpoint(w = "") {
|
|
5815
|
+
s(w), Oe();
|
|
5647
5816
|
},
|
|
5648
5817
|
get userSession() {
|
|
5649
|
-
return
|
|
5818
|
+
return o();
|
|
5650
5819
|
},
|
|
5651
|
-
set userSession(
|
|
5652
|
-
|
|
5820
|
+
set userSession(w = "") {
|
|
5821
|
+
o(w), Oe();
|
|
5653
5822
|
},
|
|
5654
5823
|
get locale() {
|
|
5655
|
-
return
|
|
5824
|
+
return a();
|
|
5656
5825
|
},
|
|
5657
|
-
set locale(
|
|
5658
|
-
|
|
5826
|
+
set locale(w = "") {
|
|
5827
|
+
a(w), Oe();
|
|
5659
5828
|
},
|
|
5660
5829
|
get onLevelLoaded() {
|
|
5661
|
-
return
|
|
5830
|
+
return u();
|
|
5662
5831
|
},
|
|
5663
|
-
set onLevelLoaded(
|
|
5664
|
-
|
|
5832
|
+
set onLevelLoaded(w = (L) => {
|
|
5833
|
+
}) {
|
|
5834
|
+
u(w), Oe();
|
|
5665
5835
|
}
|
|
5666
|
-
};
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5836
|
+
}, v = ps(), H = Zi(v);
|
|
5837
|
+
{
|
|
5838
|
+
var Q = (w) => {
|
|
5839
|
+
var L = Ha();
|
|
5840
|
+
ct(w, L);
|
|
5841
|
+
}, G = (w) => {
|
|
5842
|
+
var L = Aa(), be = We(L), Ve = We(be), Rt = We(Ve), ui = We(Rt);
|
|
5843
|
+
Xe(Rt);
|
|
5844
|
+
var mr = Yi(Rt, 2), li = We(mr, !0);
|
|
5845
|
+
Xe(mr), Xe(Ve), Xe(be), Xe(L), ss(
|
|
5846
|
+
(fi, hi) => {
|
|
5847
|
+
Ar(ui, `${y(h) ?? ""}
|
|
5848
|
+
${fi ?? ""}`), Ar(li, hi);
|
|
5849
|
+
},
|
|
5850
|
+
[() => r()("tokens"), () => r()("tokenBalance")]
|
|
5851
|
+
), ct(w, L);
|
|
5852
|
+
};
|
|
5853
|
+
ys(H, (w) => {
|
|
5854
|
+
y(d) ? w(Q) : w(G, !1);
|
|
5855
|
+
});
|
|
5856
|
+
}
|
|
5857
|
+
ct(e, v);
|
|
5858
|
+
var k = Qr(p);
|
|
5859
|
+
return i(), k;
|
|
5681
5860
|
}
|
|
5682
|
-
customElements.define("loyalty-points-card",
|
|
5683
|
-
|
|
5861
|
+
customElements.define("loyalty-points-card", Ps(
|
|
5862
|
+
Pa,
|
|
5684
5863
|
{
|
|
5685
5864
|
apiEndpoint: {},
|
|
5686
5865
|
userSession: {},
|
|
@@ -5692,5 +5871,5 @@ customElements.define("loyalty-points-card", Es(
|
|
|
5692
5871
|
!1
|
|
5693
5872
|
));
|
|
5694
5873
|
export {
|
|
5695
|
-
|
|
5874
|
+
Pa as L
|
|
5696
5875
|
};
|