@everymatrix/loyalty-points-card 0.1.6 → 0.1.8

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