@everymatrix/loyalty-points-card 0.1.4 → 0.1.6

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