@everymatrix/loyalty-points-card 0.1.6 → 0.1.7

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