@everymatrix/general-player-forgot-password-sms-form 1.85.5 → 1.85.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,25 @@
1
1
  function ae() {
2
2
  }
3
3
  const yt = (e) => e;
4
- function Nr(e) {
4
+ function Ir(e) {
5
5
  return e();
6
6
  }
7
- function Kt() {
7
+ function er() {
8
8
  return /* @__PURE__ */ Object.create(null);
9
9
  }
10
10
  function he(e) {
11
- e.forEach(Nr);
11
+ e.forEach(Ir);
12
12
  }
13
13
  function $e(e) {
14
14
  return typeof e == "function";
15
15
  }
16
- function Ir(e, t) {
16
+ function Br(e, t) {
17
17
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
18
18
  }
19
19
  function Tn(e) {
20
20
  return Object.keys(e).length === 0;
21
21
  }
22
- function Br(e, ...t) {
22
+ function Mr(e, ...t) {
23
23
  if (e == null) {
24
24
  for (const n of t)
25
25
  n(void 0);
@@ -28,10 +28,10 @@ function Br(e, ...t) {
28
28
  const r = e.subscribe(...t);
29
29
  return r.unsubscribe ? () => r.unsubscribe() : r;
30
30
  }
31
- function Cn(e, t, r) {
32
- e.$$.on_destroy.push(Br(t, r));
31
+ function Rn(e, t, r) {
32
+ e.$$.on_destroy.push(Mr(t, r));
33
33
  }
34
- function Rn(e) {
34
+ function Ln(e) {
35
35
  const t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
36
36
  return t ? [parseFloat(t[1]), t[2] || "px"] : [
37
37
  /** @type {number} */
@@ -39,17 +39,17 @@ function Rn(e) {
39
39
  "px"
40
40
  ];
41
41
  }
42
- const Mr = typeof window < "u";
43
- let Gt = Mr ? () => window.performance.now() : () => Date.now(), $t = Mr ? (e) => requestAnimationFrame(e) : ae;
42
+ const Or = typeof window < "u";
43
+ let $t = Or ? () => window.performance.now() : () => Date.now(), Vt = Or ? (e) => requestAnimationFrame(e) : ae;
44
44
  const ke = /* @__PURE__ */ new Set();
45
- function Or(e) {
45
+ function kr(e) {
46
46
  ke.forEach((t) => {
47
47
  t.c(e) || (ke.delete(t), t.f());
48
- }), ke.size !== 0 && $t(Or);
48
+ }), ke.size !== 0 && Vt(kr);
49
49
  }
50
- function Vt(e) {
50
+ function qt(e) {
51
51
  let t;
52
- return ke.size === 0 && $t(Or), {
52
+ return ke.size === 0 && Vt(kr), {
53
53
  promise: new Promise((r) => {
54
54
  ke.add(t = { c: e, f: r });
55
55
  }),
@@ -61,14 +61,14 @@ function Vt(e) {
61
61
  function m(e, t) {
62
62
  e.appendChild(t);
63
63
  }
64
- function Ln(e, t, r) {
65
- const n = qt(e);
64
+ function Hn(e, t, r) {
65
+ const n = Xt(e);
66
66
  if (!n.getElementById(t)) {
67
67
  const i = P("style");
68
- i.id = t, i.textContent = r, kr(n, i);
68
+ i.id = t, i.textContent = r, Ur(n, i);
69
69
  }
70
70
  }
71
- function qt(e) {
71
+ function Xt(e) {
72
72
  if (!e)
73
73
  return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -78,11 +78,11 @@ function qt(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function Hn(e) {
81
+ function An(e) {
82
82
  const t = P("style");
83
- return t.textContent = "/* empty */", kr(qt(e), t), t.sheet;
83
+ return t.textContent = "/* empty */", Ur(Xt(e), t), t.sheet;
84
84
  }
85
- function kr(e, t) {
85
+ function Ur(e, t) {
86
86
  return m(
87
87
  /** @type {Document} */
88
88
  e.head || e,
@@ -92,10 +92,10 @@ function kr(e, t) {
92
92
  function te(e, t, r) {
93
93
  e.insertBefore(t, r || null);
94
94
  }
95
- function Z(e) {
95
+ function Y(e) {
96
96
  e.parentNode && e.parentNode.removeChild(e);
97
97
  }
98
- function An(e, t) {
98
+ function Nn(e, t) {
99
99
  for (let r = 0; r < e.length; r += 1)
100
100
  e[r] && e[r].d(t);
101
101
  }
@@ -118,10 +118,10 @@ function He(e, t, r) {
118
118
  const n = t.toLowerCase();
119
119
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : h(e, t, r);
120
120
  }
121
- function Nn(e) {
121
+ function In(e) {
122
122
  return Array.from(e.childNodes);
123
123
  }
124
- function X(e, t) {
124
+ function W(e, t) {
125
125
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
126
126
  t);
127
127
  }
@@ -131,10 +131,10 @@ function dt(e, t) {
131
131
  function it(e, t, r) {
132
132
  e.classList.toggle(t, !!r);
133
133
  }
134
- function In(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
134
+ function Bn(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
135
135
  return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
136
136
  }
137
- function Bn(e) {
137
+ function Mn(e) {
138
138
  const t = {};
139
139
  return e.childNodes.forEach(
140
140
  /** @param {Element} node */
@@ -145,28 +145,28 @@ function Bn(e) {
145
145
  }
146
146
  const ct = /* @__PURE__ */ new Map();
147
147
  let ft = 0;
148
- function Mn(e) {
148
+ function On(e) {
149
149
  let t = 5381, r = e.length;
150
150
  for (; r--; )
151
151
  t = (t << 5) - t ^ e.charCodeAt(r);
152
152
  return t >>> 0;
153
153
  }
154
- function On(e, t) {
155
- const r = { stylesheet: Hn(t), rules: {} };
154
+ function kn(e, t) {
155
+ const r = { stylesheet: An(t), rules: {} };
156
156
  return ct.set(e, r), r;
157
157
  }
158
158
  function ht(e, t, r, n, i, o, s, a = 0) {
159
159
  const d = 16.666 / n;
160
- let l = `{
160
+ let u = `{
161
161
  `;
162
162
  for (let _ = 0; _ <= 1; _ += d) {
163
163
  const S = t + (r - t) * o(_);
164
- l += _ * 100 + `%{${s(S, 1 - S)}}
164
+ u += _ * 100 + `%{${s(S, 1 - S)}}
165
165
  `;
166
166
  }
167
- const u = l + `100% {${s(r, 1 - r)}}
168
- }`, c = `__svelte_${Mn(u)}_${a}`, f = qt(e), { stylesheet: g, rules: b } = ct.get(f) || On(f, e);
169
- b[c] || (b[c] = !0, g.insertRule(`@keyframes ${c} ${u}`, g.cssRules.length));
167
+ const l = u + `100% {${s(r, 1 - r)}}
168
+ }`, c = `__svelte_${On(l)}_${a}`, f = Xt(e), { stylesheet: g, rules: b } = ct.get(f) || kn(f, e);
169
+ b[c] || (b[c] = !0, g.insertRule(`@keyframes ${c} ${l}`, g.cssRules.length));
170
170
  const y = e.style.animation || "";
171
171
  return e.style.animation = `${y ? `${y}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, ft += 1, c;
172
172
  }
@@ -175,13 +175,13 @@ function pt(e, t) {
175
175
  t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
176
176
  // remove all Svelte animations
177
177
  ), i = r.length - n.length;
178
- i && (e.style.animation = n.join(", "), ft -= i, ft || kn());
178
+ i && (e.style.animation = n.join(", "), ft -= i, ft || Un());
179
179
  }
180
- function kn() {
181
- $t(() => {
180
+ function Un() {
181
+ Vt(() => {
182
182
  ft || (ct.forEach((e) => {
183
183
  const { ownerNode: t } = e.stylesheet;
184
- t && Z(t);
184
+ t && Y(t);
185
185
  }), ct.clear());
186
186
  });
187
187
  }
@@ -189,25 +189,25 @@ let Ke;
189
189
  function Qe(e) {
190
190
  Ke = e;
191
191
  }
192
- function Un() {
192
+ function Dn() {
193
193
  if (!Ke)
194
194
  throw new Error("Function called outside component initialization");
195
195
  return Ke;
196
196
  }
197
- function Dn(e) {
198
- Un().$$.on_mount.push(e);
197
+ function Fn(e) {
198
+ Dn().$$.on_mount.push(e);
199
199
  }
200
200
  const Oe = [], mt = [];
201
201
  let Ue = [];
202
- const er = [], Fn = /* @__PURE__ */ Promise.resolve();
203
- let It = !1;
204
- function jn() {
205
- It || (It = !0, Fn.then(oe));
202
+ const tr = [], jn = /* @__PURE__ */ Promise.resolve();
203
+ let Bt = !1;
204
+ function zn() {
205
+ Bt || (Bt = !0, jn.then(oe));
206
206
  }
207
207
  function de(e) {
208
208
  Ue.push(e);
209
209
  }
210
- const St = /* @__PURE__ */ new Set();
210
+ const Ct = /* @__PURE__ */ new Set();
211
211
  let Be = 0;
212
212
  function oe() {
213
213
  if (Be !== 0)
@@ -217,7 +217,7 @@ function oe() {
217
217
  try {
218
218
  for (; Be < Oe.length; ) {
219
219
  const t = Oe[Be];
220
- Be++, Qe(t), zn(t.$$);
220
+ Be++, Qe(t), Gn(t.$$);
221
221
  }
222
222
  } catch (t) {
223
223
  throw Oe.length = 0, Be = 0, t;
@@ -226,33 +226,33 @@ function oe() {
226
226
  mt.pop()();
227
227
  for (let t = 0; t < Ue.length; t += 1) {
228
228
  const r = Ue[t];
229
- St.has(r) || (St.add(r), r());
229
+ Ct.has(r) || (Ct.add(r), r());
230
230
  }
231
231
  Ue.length = 0;
232
232
  } while (Oe.length);
233
- for (; er.length; )
234
- er.pop()();
235
- It = !1, St.clear(), Qe(e);
233
+ for (; tr.length; )
234
+ tr.pop()();
235
+ Bt = !1, Ct.clear(), Qe(e);
236
236
  }
237
- function zn(e) {
237
+ function Gn(e) {
238
238
  if (e.fragment !== null) {
239
239
  e.update(), he(e.before_update);
240
240
  const t = e.dirty;
241
241
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(de);
242
242
  }
243
243
  }
244
- function Gn(e) {
244
+ function $n(e) {
245
245
  const t = [], r = [];
246
246
  Ue.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ue = t;
247
247
  }
248
248
  let Ye;
249
- function Xt() {
249
+ function Wt() {
250
250
  return Ye || (Ye = Promise.resolve(), Ye.then(() => {
251
251
  Ye = null;
252
252
  })), Ye;
253
253
  }
254
254
  function Ae(e, t, r) {
255
- e.dispatchEvent(In(`${t ? "intro" : "outro"}${r}`));
255
+ e.dispatchEvent(Bn(`${t ? "intro" : "outro"}${r}`));
256
256
  }
257
257
  const st = /* @__PURE__ */ new Set();
258
258
  let we;
@@ -280,27 +280,27 @@ function De(e, t, r, n) {
280
280
  } else
281
281
  n && n();
282
282
  }
283
- const Wt = { duration: 0 };
284
- function $n(e, t, r) {
283
+ const Zt = { duration: 0 };
284
+ function Vn(e, t, r) {
285
285
  const n = { direction: "in" };
286
286
  let i = t(e, r, n), o = !1, s, a, d = 0;
287
- function l() {
287
+ function u() {
288
288
  s && pt(e, s);
289
289
  }
290
- function u() {
290
+ function l() {
291
291
  const {
292
292
  delay: f = 0,
293
293
  duration: g = 300,
294
294
  easing: b = yt,
295
295
  tick: y = ae,
296
296
  css: _
297
- } = i || Wt;
297
+ } = i || Zt;
298
298
  _ && (s = ht(e, 0, 1, g, f, b, _, d++)), y(0, 1);
299
- const S = Gt() + f, x = S + g;
300
- a && a.abort(), o = !0, de(() => Ae(e, !0, "start")), a = Vt((w) => {
299
+ const S = $t() + f, x = S + g;
300
+ a && a.abort(), o = !0, de(() => Ae(e, !0, "start")), a = qt((w) => {
301
301
  if (o) {
302
302
  if (w >= x)
303
- return y(1, 0), Ae(e, !0, "end"), l(), o = !1;
303
+ return y(1, 0), Ae(e, !0, "end"), u(), o = !1;
304
304
  if (w >= S) {
305
305
  const H = b((w - S) / g);
306
306
  y(H, 1 - H);
@@ -312,34 +312,34 @@ function $n(e, t, r) {
312
312
  let c = !1;
313
313
  return {
314
314
  start() {
315
- c || (c = !0, pt(e), $e(i) ? (i = i(n), Xt().then(u)) : u());
315
+ c || (c = !0, pt(e), $e(i) ? (i = i(n), Wt().then(l)) : l());
316
316
  },
317
317
  invalidate() {
318
318
  c = !1;
319
319
  },
320
320
  end() {
321
- o && (l(), o = !1);
321
+ o && (u(), o = !1);
322
322
  }
323
323
  };
324
324
  }
325
- function Vn(e, t, r) {
325
+ function qn(e, t, r) {
326
326
  const n = { direction: "out" };
327
327
  let i = t(e, r, n), o = !0, s;
328
328
  const a = we;
329
329
  a.r += 1;
330
330
  let d;
331
- function l() {
331
+ function u() {
332
332
  const {
333
- delay: u = 0,
333
+ delay: l = 0,
334
334
  duration: c = 300,
335
335
  easing: f = yt,
336
336
  tick: g = ae,
337
337
  css: b
338
- } = i || Wt;
339
- b && (s = ht(e, 1, 0, c, u, f, b));
340
- const y = Gt() + u, _ = y + c;
338
+ } = i || Zt;
339
+ b && (s = ht(e, 1, 0, c, l, f, b));
340
+ const y = $t() + l, _ = y + c;
341
341
  de(() => Ae(e, !1, "start")), "inert" in e && (d = /** @type {HTMLElement} */
342
- e.inert, e.inert = !0), Vt((S) => {
342
+ e.inert, e.inert = !0), qt((S) => {
343
343
  if (o) {
344
344
  if (S >= _)
345
345
  return g(0, 1), Ae(e, !1, "end"), --a.r || he(a.c), !1;
@@ -351,18 +351,18 @@ function Vn(e, t, r) {
351
351
  return o;
352
352
  });
353
353
  }
354
- return $e(i) ? Xt().then(() => {
355
- i = i(n), l();
356
- }) : l(), {
357
- end(u) {
358
- u && "inert" in e && (e.inert = d), u && i.tick && i.tick(1, 0), o && (s && pt(e, s), o = !1);
354
+ return $e(i) ? Wt().then(() => {
355
+ i = i(n), u();
356
+ }) : u(), {
357
+ end(l) {
358
+ l && "inert" in e && (e.inert = d), l && i.tick && i.tick(1, 0), o && (s && pt(e, s), o = !1);
359
359
  }
360
360
  };
361
361
  }
362
362
  function _e(e, t, r, n) {
363
- let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, d = null, l = null, u;
363
+ let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, d = null, u = null, l;
364
364
  function c() {
365
- l && pt(e, l);
365
+ u && pt(e, u);
366
366
  }
367
367
  function f(b, y) {
368
368
  const _ = (
@@ -386,13 +386,13 @@ function _e(e, t, r, n) {
386
386
  easing: S = yt,
387
387
  tick: x = ae,
388
388
  css: w
389
- } = o || Wt, H = {
390
- start: Gt() + y,
389
+ } = o || Zt, H = {
390
+ start: $t() + y,
391
391
  b
392
392
  };
393
- b || (H.group = we, we.r += 1), "inert" in e && (b ? u !== void 0 && (e.inert = u) : (u = /** @type {HTMLElement} */
394
- e.inert, e.inert = !0)), a || d ? d = H : (w && (c(), l = ht(e, s, b, _, y, S, w)), b && x(0, 1), a = f(H, _), de(() => Ae(e, b, "start")), Vt((T) => {
395
- if (d && T > d.start && (a = f(d, _), d = null, Ae(e, a.b, "start"), w && (c(), l = ht(
393
+ b || (H.group = we, we.r += 1), "inert" in e && (b ? l !== void 0 && (e.inert = l) : (l = /** @type {HTMLElement} */
394
+ e.inert, e.inert = !0)), a || d ? d = H : (w && (c(), u = ht(e, s, b, _, y, S, w)), b && x(0, 1), a = f(H, _), de(() => Ae(e, b, "start")), qt((C) => {
395
+ if (d && C > d.start && (a = f(d, _), d = null, Ae(e, a.b, "start"), w && (c(), u = ht(
396
396
  e,
397
397
  s,
398
398
  a.b,
@@ -401,11 +401,11 @@ function _e(e, t, r, n) {
401
401
  S,
402
402
  o.css
403
403
  ))), a) {
404
- if (T >= a.end)
404
+ if (C >= a.end)
405
405
  x(s = a.b, 1 - s), Ae(e, a.b, "end"), d || (a.b ? c() : --a.group.r || he(a.group.c)), a = null;
406
- else if (T >= a.start) {
407
- const D = T - a.start;
408
- s = a.a + a.d * S(D / a.duration), x(s, 1 - s);
406
+ else if (C >= a.start) {
407
+ const F = C - a.start;
408
+ s = a.a + a.d * S(F / a.duration), x(s, 1 - s);
409
409
  }
410
410
  }
411
411
  return !!(a || d);
@@ -413,7 +413,7 @@ function _e(e, t, r, n) {
413
413
  }
414
414
  return {
415
415
  run(b) {
416
- $e(o) ? Xt().then(() => {
416
+ $e(o) ? Wt().then(() => {
417
417
  o = o({ direction: b ? "in" : "out" }), g(b);
418
418
  }) : g(b);
419
419
  },
@@ -422,34 +422,34 @@ function _e(e, t, r, n) {
422
422
  }
423
423
  };
424
424
  }
425
- function tr(e) {
425
+ function rr(e) {
426
426
  return e?.length !== void 0 ? e : Array.from(e);
427
427
  }
428
- function qn(e, t, r) {
428
+ function Xn(e, t, r) {
429
429
  const { fragment: n, after_update: i } = e.$$;
430
430
  n && n.m(t, r), de(() => {
431
- const o = e.$$.on_mount.map(Nr).filter($e);
431
+ const o = e.$$.on_mount.map(Ir).filter($e);
432
432
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
433
433
  }), i.forEach(de);
434
434
  }
435
- function Xn(e, t) {
435
+ function Wn(e, t) {
436
436
  const r = e.$$;
437
- r.fragment !== null && (Gn(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
437
+ r.fragment !== null && ($n(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
438
438
  }
439
- function Wn(e, t) {
440
- e.$$.dirty[0] === -1 && (Oe.push(e), jn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
439
+ function Zn(e, t) {
440
+ e.$$.dirty[0] === -1 && (Oe.push(e), zn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
441
441
  }
442
- function Zn(e, t, r, n, i, o, s = null, a = [-1]) {
442
+ function Yn(e, t, r, n, i, o, s = null, a = [-1]) {
443
443
  const d = Ke;
444
444
  Qe(e);
445
- const l = e.$$ = {
445
+ const u = e.$$ = {
446
446
  fragment: null,
447
447
  ctx: [],
448
448
  // state
449
449
  props: o,
450
450
  update: ae,
451
451
  not_equal: i,
452
- bound: Kt(),
452
+ bound: er(),
453
453
  // lifecycle
454
454
  on_mount: [],
455
455
  on_destroy: [],
@@ -458,28 +458,28 @@ function Zn(e, t, r, n, i, o, s = null, a = [-1]) {
458
458
  after_update: [],
459
459
  context: new Map(t.context || (d ? d.$$.context : [])),
460
460
  // everything else
461
- callbacks: Kt(),
461
+ callbacks: er(),
462
462
  dirty: a,
463
463
  skip_bound: !1,
464
464
  root: t.target || d.$$.root
465
465
  };
466
- s && s(l.root);
467
- let u = !1;
468
- if (l.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
466
+ s && s(u.root);
467
+ let l = !1;
468
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
469
469
  const b = g.length ? g[0] : f;
470
- return l.ctx && i(l.ctx[c], l.ctx[c] = b) && (!l.skip_bound && l.bound[c] && l.bound[c](b), u && Wn(e, c)), f;
471
- }) : [], l.update(), u = !0, he(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
470
+ return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), l && Zn(e, c)), f;
471
+ }) : [], u.update(), l = !0, he(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
472
472
  if (t.hydrate) {
473
- const c = Nn(t.target);
474
- l.fragment && l.fragment.l(c), c.forEach(Z);
473
+ const c = In(t.target);
474
+ u.fragment && u.fragment.l(c), c.forEach(Y);
475
475
  } else
476
- l.fragment && l.fragment.c();
477
- t.intro && ue(e.$$.fragment), qn(e, t.target, t.anchor), oe();
476
+ u.fragment && u.fragment.c();
477
+ t.intro && ue(e.$$.fragment), Xn(e, t.target, t.anchor), oe();
478
478
  }
479
479
  Qe(d);
480
480
  }
481
- let Ur;
482
- typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
481
+ let Dr;
482
+ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
483
483
  /** The Svelte component constructor */
484
484
  $$ctor;
485
485
  /** Slots */
@@ -527,18 +527,18 @@ typeof HTMLElement == "function" && (Ur = class extends HTMLElement {
527
527
  * @param {HTMLElement} target
528
528
  * @param {HTMLElement} [anchor]
529
529
  */
530
- m: function(d, l) {
531
- te(d, o, l);
530
+ m: function(d, u) {
531
+ te(d, o, u);
532
532
  },
533
533
  d: function(d) {
534
- d && Z(o);
534
+ d && Y(o);
535
535
  }
536
536
  };
537
537
  };
538
538
  };
539
539
  if (await Promise.resolve(), !this.$$cn || this.$$c)
540
540
  return;
541
- const t = {}, r = Bn(this);
541
+ const t = {}, r = Mn(this);
542
542
  for (const i of this.$$s)
543
543
  i in r && (t[i] = [e(i)]);
544
544
  for (const i of this.attributes) {
@@ -625,8 +625,8 @@ function at(e, t, r, n) {
625
625
  return t;
626
626
  }
627
627
  }
628
- function Yn(e, t, r, n, i, o) {
629
- let s = class extends Ur {
628
+ function Jn(e, t, r, n, i, o) {
629
+ let s = class extends Dr {
630
630
  constructor() {
631
631
  super(e, r, i), this.$$p_d = t;
632
632
  }
@@ -654,7 +654,7 @@ function Yn(e, t, r, n, i, o) {
654
654
  }), e.element = /** @type {any} */
655
655
  s, s;
656
656
  }
657
- class Jn {
657
+ class Qn {
658
658
  /**
659
659
  * ### PRIVATE API
660
660
  *
@@ -673,7 +673,7 @@ class Jn {
673
673
  $$set = void 0;
674
674
  /** @returns {void} */
675
675
  $destroy() {
676
- Xn(this, 1), this.$destroy = ae;
676
+ Wn(this, 1), this.$destroy = ae;
677
677
  }
678
678
  /**
679
679
  * @template {Extract<keyof Events, string>} K
@@ -698,28 +698,28 @@ class Jn {
698
698
  this.$$set && !Tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
699
699
  }
700
700
  }
701
- const Qn = "4";
702
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qn);
703
- function Kn(e) {
701
+ const Kn = "4";
702
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kn);
703
+ function ei(e) {
704
704
  return e < 0.5 ? 4 * e * e * e : 0.5 * Math.pow(2 * e - 2, 3) + 1;
705
705
  }
706
- function ei(e) {
706
+ function ti(e) {
707
707
  const t = e - 1;
708
708
  return t * t * t + 1;
709
709
  }
710
710
  function Tt(e) {
711
711
  return --e * e * e * e * e + 1;
712
712
  }
713
- function Te(e, { delay: t = 0, duration: r = 400, easing: n = Kn, amount: i = 5, opacity: o = 0 } = {}) {
714
- const s = getComputedStyle(e), a = +s.opacity, d = s.filter === "none" ? "" : s.filter, l = a * (1 - o), [u, c] = Rn(i);
713
+ function Ce(e, { delay: t = 0, duration: r = 400, easing: n = ei, amount: i = 5, opacity: o = 0 } = {}) {
714
+ const s = getComputedStyle(e), a = +s.opacity, d = s.filter === "none" ? "" : s.filter, u = a * (1 - o), [l, c] = Ln(i);
715
715
  return {
716
716
  delay: t,
717
717
  duration: r,
718
718
  easing: n,
719
- css: (f, g) => `opacity: ${a - l * g}; filter: ${d} blur(${g * u}${c});`
719
+ css: (f, g) => `opacity: ${a - u * g}; filter: ${d} blur(${g * l}${c});`
720
720
  };
721
721
  }
722
- function rr(e, { delay: t = 0, duration: r = 400, easing: n = yt } = {}) {
722
+ function nr(e, { delay: t = 0, duration: r = 400, easing: n = yt } = {}) {
723
723
  const i = +getComputedStyle(e).opacity;
724
724
  return {
725
725
  delay: t,
@@ -728,20 +728,20 @@ function rr(e, { delay: t = 0, duration: r = 400, easing: n = yt } = {}) {
728
728
  css: (o) => `opacity: ${o * i}`
729
729
  };
730
730
  }
731
- function nr(e, { delay: t = 0, duration: r = 400, easing: n = ei, start: i = 0, opacity: o = 0 } = {}) {
732
- const s = getComputedStyle(e), a = +s.opacity, d = s.transform === "none" ? "" : s.transform, l = 1 - i, u = a * (1 - o);
731
+ function ir(e, { delay: t = 0, duration: r = 400, easing: n = ti, start: i = 0, opacity: o = 0 } = {}) {
732
+ const s = getComputedStyle(e), a = +s.opacity, d = s.transform === "none" ? "" : s.transform, u = 1 - i, l = a * (1 - o);
733
733
  return {
734
734
  delay: t,
735
735
  duration: r,
736
736
  easing: n,
737
737
  css: (c, f) => `
738
- transform: ${d} scale(${1 - l * f});
739
- opacity: ${a - u * f}
738
+ transform: ${d} scale(${1 - u * f});
739
+ opacity: ${a - l * f}
740
740
  `
741
741
  };
742
742
  }
743
743
  const Me = [];
744
- function ti(e, t) {
744
+ function ri(e, t) {
745
745
  return {
746
746
  subscribe: wt(e, t).subscribe
747
747
  };
@@ -750,13 +750,13 @@ function wt(e, t = ae) {
750
750
  let r;
751
751
  const n = /* @__PURE__ */ new Set();
752
752
  function i(a) {
753
- if (Ir(e, a) && (e = a, r)) {
753
+ if (Br(e, a) && (e = a, r)) {
754
754
  const d = !Me.length;
755
- for (const l of n)
756
- l[1](), Me.push(l, e);
755
+ for (const u of n)
756
+ u[1](), Me.push(u, e);
757
757
  if (d) {
758
- for (let l = 0; l < Me.length; l += 2)
759
- Me[l][0](Me[l + 1]);
758
+ for (let u = 0; u < Me.length; u += 2)
759
+ Me[u][0](Me[u + 1]);
760
760
  Me.length = 0;
761
761
  }
762
762
  }
@@ -765,9 +765,9 @@ function wt(e, t = ae) {
765
765
  i(a(e));
766
766
  }
767
767
  function s(a, d = ae) {
768
- const l = [a, d];
769
- return n.add(l), n.size === 1 && (r = t(i, o) || ae), a(e), () => {
770
- n.delete(l), n.size === 0 && r && (r(), r = null);
768
+ const u = [a, d];
769
+ return n.add(u), n.size === 1 && (r = t(i, o) || ae), a(e), () => {
770
+ n.delete(u), n.size === 0 && r && (r(), r = null);
771
771
  };
772
772
  }
773
773
  return { set: i, update: o, subscribe: s };
@@ -777,24 +777,24 @@ function Ve(e, t, r) {
777
777
  if (!i.every(Boolean))
778
778
  throw new Error("derived() expects stores as input, got a falsy value");
779
779
  const o = t.length < 2;
780
- return ti(r, (s, a) => {
780
+ return ri(r, (s, a) => {
781
781
  let d = !1;
782
- const l = [];
783
- let u = 0, c = ae;
782
+ const u = [];
783
+ let l = 0, c = ae;
784
784
  const f = () => {
785
- if (u)
785
+ if (l)
786
786
  return;
787
787
  c();
788
- const b = t(n ? l[0] : l, s, a);
788
+ const b = t(n ? u[0] : u, s, a);
789
789
  o ? s(b) : c = $e(b) ? b : ae;
790
790
  }, g = i.map(
791
- (b, y) => Br(
791
+ (b, y) => Mr(
792
792
  b,
793
793
  (_) => {
794
- l[y] = _, u &= ~(1 << y), d && f();
794
+ u[y] = _, l &= ~(1 << y), d && f();
795
795
  },
796
796
  () => {
797
- u |= 1 << y;
797
+ l |= 1 << y;
798
798
  }
799
799
  )
800
800
  );
@@ -803,70 +803,70 @@ function Ve(e, t, r) {
803
803
  };
804
804
  });
805
805
  }
806
- function ri(e) {
806
+ function ni(e) {
807
807
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
808
808
  }
809
- var ni = function(t) {
810
- return ii(t) && !oi(t);
809
+ var ii = function(t) {
810
+ return oi(t) && !si(t);
811
811
  };
812
- function ii(e) {
812
+ function oi(e) {
813
813
  return !!e && typeof e == "object";
814
814
  }
815
- function oi(e) {
815
+ function si(e) {
816
816
  var t = Object.prototype.toString.call(e);
817
- return t === "[object RegExp]" || t === "[object Date]" || li(e);
818
- }
819
- var si = typeof Symbol == "function" && Symbol.for, ai = si ? Symbol.for("react.element") : 60103;
820
- function li(e) {
821
- return e.$$typeof === ai;
817
+ return t === "[object RegExp]" || t === "[object Date]" || ui(e);
822
818
  }
819
+ var ai = typeof Symbol == "function" && Symbol.for, li = ai ? Symbol.for("react.element") : 60103;
823
820
  function ui(e) {
821
+ return e.$$typeof === li;
822
+ }
823
+ function di(e) {
824
824
  return Array.isArray(e) ? [] : {};
825
825
  }
826
826
  function rt(e, t) {
827
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(ui(e), e, t) : e;
827
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(di(e), e, t) : e;
828
828
  }
829
- function di(e, t, r) {
829
+ function ci(e, t, r) {
830
830
  return e.concat(t).map(function(n) {
831
831
  return rt(n, r);
832
832
  });
833
833
  }
834
- function ci(e, t) {
834
+ function fi(e, t) {
835
835
  if (!t.customMerge)
836
836
  return Fe;
837
837
  var r = t.customMerge(e);
838
838
  return typeof r == "function" ? r : Fe;
839
839
  }
840
- function fi(e) {
840
+ function hi(e) {
841
841
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
842
842
  return Object.propertyIsEnumerable.call(e, t);
843
843
  }) : [];
844
844
  }
845
- function ir(e) {
846
- return Object.keys(e).concat(fi(e));
845
+ function or(e) {
846
+ return Object.keys(e).concat(hi(e));
847
847
  }
848
- function Dr(e, t) {
848
+ function Fr(e, t) {
849
849
  try {
850
850
  return t in e;
851
851
  } catch {
852
852
  return !1;
853
853
  }
854
854
  }
855
- function hi(e, t) {
856
- return Dr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
855
+ function pi(e, t) {
856
+ return Fr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
857
857
  }
858
- function pi(e, t, r) {
858
+ function mi(e, t, r) {
859
859
  var n = {};
860
- return r.isMergeableObject(e) && ir(e).forEach(function(i) {
860
+ return r.isMergeableObject(e) && or(e).forEach(function(i) {
861
861
  n[i] = rt(e[i], r);
862
- }), ir(t).forEach(function(i) {
863
- hi(e, i) || (Dr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ci(i, r)(e[i], t[i], r) : n[i] = rt(t[i], r));
862
+ }), or(t).forEach(function(i) {
863
+ pi(e, i) || (Fr(e, i) && r.isMergeableObject(t[i]) ? n[i] = fi(i, r)(e[i], t[i], r) : n[i] = rt(t[i], r));
864
864
  }), n;
865
865
  }
866
866
  function Fe(e, t, r) {
867
- r = r || {}, r.arrayMerge = r.arrayMerge || di, r.isMergeableObject = r.isMergeableObject || ni, r.cloneUnlessOtherwiseSpecified = rt;
867
+ r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ii, r.cloneUnlessOtherwiseSpecified = rt;
868
868
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
869
- return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : rt(t, r);
869
+ return o ? n ? r.arrayMerge(e, t, r) : mi(e, t, r) : rt(t, r);
870
870
  }
871
871
  Fe.all = function(t, r) {
872
872
  if (!Array.isArray(t))
@@ -875,20 +875,20 @@ Fe.all = function(t, r) {
875
875
  return Fe(n, i, r);
876
876
  }, {});
877
877
  };
878
- var mi = Fe, bi = mi;
879
- const gi = /* @__PURE__ */ ri(bi);
880
- var Bt = function(e, t) {
881
- return Bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
878
+ var bi = Fe, gi = bi;
879
+ const vi = /* @__PURE__ */ ni(gi);
880
+ var Mt = function(e, t) {
881
+ return Mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
882
882
  r.__proto__ = n;
883
883
  } || function(r, n) {
884
884
  for (var i in n)
885
885
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
886
- }, Bt(e, t);
886
+ }, Mt(e, t);
887
887
  };
888
888
  function _t(e, t) {
889
889
  if (typeof t != "function" && t !== null)
890
890
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
891
- Bt(e, t);
891
+ Mt(e, t);
892
892
  function r() {
893
893
  this.constructor = e;
894
894
  }
@@ -904,7 +904,7 @@ var ye = function() {
904
904
  return t;
905
905
  }, ye.apply(this, arguments);
906
906
  };
907
- function vi(e, t) {
907
+ function yi(e, t) {
908
908
  var r = {};
909
909
  for (var n in e)
910
910
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -913,43 +913,43 @@ function vi(e, t) {
913
913
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
914
914
  return r;
915
915
  }
916
- function Ct(e, t, r) {
916
+ function Rt(e, t, r) {
917
917
  if (r || arguments.length === 2)
918
918
  for (var n = 0, i = t.length, o; n < i; n++)
919
919
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
920
920
  return e.concat(o || Array.prototype.slice.call(t));
921
921
  }
922
- function Rt(e, t) {
923
- var r = t && t.cache ? t.cache : Si, n = t && t.serializer ? t.serializer : xi, i = t && t.strategy ? t.strategy : _i;
922
+ function Lt(e, t) {
923
+ var r = t && t.cache ? t.cache : Ci, n = t && t.serializer ? t.serializer : Ei, i = t && t.strategy ? t.strategy : Pi;
924
924
  return i(e, {
925
925
  cache: r,
926
926
  serializer: n
927
927
  });
928
928
  }
929
- function yi(e) {
929
+ function wi(e) {
930
930
  return e == null || typeof e == "number" || typeof e == "boolean";
931
931
  }
932
- function wi(e, t, r, n) {
933
- var i = yi(n) ? n : r(n), o = t.get(i);
932
+ function _i(e, t, r, n) {
933
+ var i = wi(n) ? n : r(n), o = t.get(i);
934
934
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
935
935
  }
936
- function Fr(e, t, r) {
936
+ function jr(e, t, r) {
937
937
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
938
938
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
939
939
  }
940
- function jr(e, t, r, n, i) {
940
+ function zr(e, t, r, n, i) {
941
941
  return r.bind(t, e, n, i);
942
942
  }
943
- function _i(e, t) {
944
- var r = e.length === 1 ? wi : Fr;
945
- return jr(e, this, r, t.cache.create(), t.serializer);
946
- }
947
943
  function Pi(e, t) {
948
- return jr(e, this, Fr, t.cache.create(), t.serializer);
944
+ var r = e.length === 1 ? _i : jr;
945
+ return zr(e, this, r, t.cache.create(), t.serializer);
949
946
  }
950
- var xi = function() {
947
+ function xi(e, t) {
948
+ return zr(e, this, jr, t.cache.create(), t.serializer);
949
+ }
950
+ var Ei = function() {
951
951
  return JSON.stringify(arguments);
952
- }, Ei = (
952
+ }, Si = (
953
953
  /** @class */
954
954
  function() {
955
955
  function e() {
@@ -961,12 +961,12 @@ var xi = function() {
961
961
  this.cache[t] = r;
962
962
  }, e;
963
963
  }()
964
- ), Si = {
964
+ ), Ci = {
965
965
  create: function() {
966
- return new Ei();
966
+ return new Si();
967
967
  }
968
- }, Lt = {
969
- variadic: Pi
968
+ }, Ht = {
969
+ variadic: xi
970
970
  }, bt = function() {
971
971
  return bt = Object.assign || function(t) {
972
972
  for (var r, n = 1, i = arguments.length; n < i; n++) {
@@ -981,51 +981,51 @@ var A;
981
981
  (function(e) {
982
982
  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";
983
983
  })(A || (A = {}));
984
- var F;
984
+ var j;
985
985
  (function(e) {
986
986
  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";
987
- })(F || (F = {}));
987
+ })(j || (j = {}));
988
988
  var je;
989
989
  (function(e) {
990
990
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
991
991
  })(je || (je = {}));
992
- function or(e) {
993
- return e.type === F.literal;
992
+ function sr(e) {
993
+ return e.type === j.literal;
994
994
  }
995
995
  function Ti(e) {
996
- return e.type === F.argument;
997
- }
998
- function zr(e) {
999
- return e.type === F.number;
996
+ return e.type === j.argument;
1000
997
  }
1001
998
  function Gr(e) {
1002
- return e.type === F.date;
999
+ return e.type === j.number;
1003
1000
  }
1004
1001
  function $r(e) {
1005
- return e.type === F.time;
1002
+ return e.type === j.date;
1006
1003
  }
1007
1004
  function Vr(e) {
1008
- return e.type === F.select;
1005
+ return e.type === j.time;
1009
1006
  }
1010
1007
  function qr(e) {
1011
- return e.type === F.plural;
1012
- }
1013
- function Ci(e) {
1014
- return e.type === F.pound;
1008
+ return e.type === j.select;
1015
1009
  }
1016
1010
  function Xr(e) {
1017
- return e.type === F.tag;
1011
+ return e.type === j.plural;
1012
+ }
1013
+ function Ri(e) {
1014
+ return e.type === j.pound;
1018
1015
  }
1019
1016
  function Wr(e) {
1017
+ return e.type === j.tag;
1018
+ }
1019
+ function Zr(e) {
1020
1020
  return !!(e && typeof e == "object" && e.type === je.number);
1021
1021
  }
1022
- function Mt(e) {
1022
+ function Ot(e) {
1023
1023
  return !!(e && typeof e == "object" && e.type === je.dateTime);
1024
1024
  }
1025
- var Zr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ri = /(?:[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;
1026
- function Li(e) {
1025
+ var Yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Li = /(?:[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;
1026
+ function Hi(e) {
1027
1027
  var t = {};
1028
- return e.replace(Ri, function(r) {
1028
+ return e.replace(Li, function(r) {
1029
1029
  var n = r.length;
1030
1030
  switch (r[0]) {
1031
1031
  case "G":
@@ -1124,18 +1124,18 @@ var $ = function() {
1124
1124
  return t;
1125
1125
  }, $.apply(this, arguments);
1126
1126
  };
1127
- var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1128
- function Ai(e) {
1127
+ var Ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1128
+ function Ni(e) {
1129
1129
  if (e.length === 0)
1130
1130
  throw new Error("Number skeleton cannot be empty");
1131
- for (var t = e.split(Hi).filter(function(f) {
1131
+ for (var t = e.split(Ai).filter(function(f) {
1132
1132
  return f.length > 0;
1133
1133
  }), r = [], n = 0, i = t; n < i.length; n++) {
1134
1134
  var o = i[n], s = o.split("/");
1135
1135
  if (s.length === 0)
1136
1136
  throw new Error("Invalid number skeleton");
1137
- for (var a = s[0], d = s.slice(1), l = 0, u = d; l < u.length; l++) {
1138
- var c = u[l];
1137
+ for (var a = s[0], d = s.slice(1), u = 0, l = d; u < l.length; u++) {
1138
+ var c = l[u];
1139
1139
  if (c.length === 0)
1140
1140
  throw new Error("Invalid number skeleton");
1141
1141
  }
@@ -1143,17 +1143,17 @@ function Ai(e) {
1143
1143
  }
1144
1144
  return r;
1145
1145
  }
1146
- function Ni(e) {
1146
+ function Ii(e) {
1147
1147
  return e.replace(/^(.*?)-/, "");
1148
1148
  }
1149
- var sr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yr = /^(@+)?(\+|#+)?[rs]?$/g, Ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Jr = /^(0+)$/;
1150
- function ar(e) {
1149
+ var ar = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jr = /^(@+)?(\+|#+)?[rs]?$/g, Bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Qr = /^(0+)$/;
1150
+ function lr(e) {
1151
1151
  var t = {};
1152
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yr, function(r, n, i) {
1152
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jr, function(r, n, i) {
1153
1153
  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)), "";
1154
1154
  }), t;
1155
1155
  }
1156
- function Qr(e) {
1156
+ function Kr(e) {
1157
1157
  switch (e) {
1158
1158
  case "sign-auto":
1159
1159
  return {
@@ -1193,7 +1193,7 @@ function Qr(e) {
1193
1193
  };
1194
1194
  }
1195
1195
  }
1196
- function Bi(e) {
1196
+ function Mi(e) {
1197
1197
  var t;
1198
1198
  if (e[0] === "E" && e[1] === "E" ? (t = {
1199
1199
  notation: "engineering"
@@ -1201,17 +1201,17 @@ function Bi(e) {
1201
1201
  notation: "scientific"
1202
1202
  }, e = e.slice(1)), t) {
1203
1203
  var r = e.slice(0, 2);
1204
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jr.test(e))
1204
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qr.test(e))
1205
1205
  throw new Error("Malformed concise eng/scientific notation");
1206
1206
  t.minimumIntegerDigits = e.length;
1207
1207
  }
1208
1208
  return t;
1209
1209
  }
1210
- function lr(e) {
1211
- var t = {}, r = Qr(e);
1210
+ function ur(e) {
1211
+ var t = {}, r = Kr(e);
1212
1212
  return r || t;
1213
1213
  }
1214
- function Mi(e) {
1214
+ function Oi(e) {
1215
1215
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1216
1216
  var i = n[r];
1217
1217
  switch (i.stem) {
@@ -1235,7 +1235,7 @@ function Mi(e) {
1235
1235
  continue;
1236
1236
  case "measure-unit":
1237
1237
  case "unit":
1238
- t.style = "unit", t.unit = Ni(i.options[0]);
1238
+ t.style = "unit", t.unit = Ii(i.options[0]);
1239
1239
  continue;
1240
1240
  case "compact-short":
1241
1241
  case "K":
@@ -1246,13 +1246,13 @@ function Mi(e) {
1246
1246
  t.notation = "compact", t.compactDisplay = "long";
1247
1247
  continue;
1248
1248
  case "scientific":
1249
- t = $($($({}, t), { notation: "scientific" }), i.options.reduce(function(d, l) {
1250
- return $($({}, d), lr(l));
1249
+ t = $($($({}, t), { notation: "scientific" }), i.options.reduce(function(d, u) {
1250
+ return $($({}, d), ur(u));
1251
1251
  }, {}));
1252
1252
  continue;
1253
1253
  case "engineering":
1254
- t = $($($({}, t), { notation: "engineering" }), i.options.reduce(function(d, l) {
1255
- return $($({}, d), lr(l));
1254
+ t = $($($({}, t), { notation: "engineering" }), i.options.reduce(function(d, u) {
1255
+ return $($({}, d), ur(u));
1256
1256
  }, {}));
1257
1257
  continue;
1258
1258
  case "notation-simple":
@@ -1297,9 +1297,9 @@ function Mi(e) {
1297
1297
  case "integer-width":
1298
1298
  if (i.options.length > 1)
1299
1299
  throw new RangeError("integer-width stems only accept a single optional option");
1300
- i.options[0].replace(Ii, function(d, l, u, c, f, g) {
1301
- if (l)
1302
- t.minimumIntegerDigits = u.length;
1300
+ i.options[0].replace(Bi, function(d, u, l, c, f, g) {
1301
+ if (u)
1302
+ t.minimumIntegerDigits = l.length;
1303
1303
  else {
1304
1304
  if (c && f)
1305
1305
  throw new Error("We currently do not support maximum integer digits");
@@ -1310,27 +1310,27 @@ function Mi(e) {
1310
1310
  });
1311
1311
  continue;
1312
1312
  }
1313
- if (Jr.test(i.stem)) {
1313
+ if (Qr.test(i.stem)) {
1314
1314
  t.minimumIntegerDigits = i.stem.length;
1315
1315
  continue;
1316
1316
  }
1317
- if (sr.test(i.stem)) {
1317
+ if (ar.test(i.stem)) {
1318
1318
  if (i.options.length > 1)
1319
1319
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1320
- i.stem.replace(sr, function(d, l, u, c, f, g) {
1321
- return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1320
+ i.stem.replace(ar, function(d, u, l, c, f, g) {
1321
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1322
1322
  });
1323
1323
  var o = i.options[0];
1324
- o === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = $($({}, t), ar(o)));
1324
+ o === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = $($({}, t), lr(o)));
1325
1325
  continue;
1326
1326
  }
1327
- if (Yr.test(i.stem)) {
1328
- t = $($({}, t), ar(i.stem));
1327
+ if (Jr.test(i.stem)) {
1328
+ t = $($({}, t), lr(i.stem));
1329
1329
  continue;
1330
1330
  }
1331
- var s = Qr(i.stem);
1331
+ var s = Kr(i.stem);
1332
1332
  s && (t = $($({}, t), s));
1333
- var a = Bi(i.stem);
1333
+ var a = Mi(i.stem);
1334
1334
  a && (t = $($({}, t), a));
1335
1335
  }
1336
1336
  return t;
@@ -2750,23 +2750,23 @@ var ot = {
2750
2750
  "h"
2751
2751
  ]
2752
2752
  };
2753
- function Oi(e, t) {
2753
+ function ki(e, t) {
2754
2754
  for (var r = "", n = 0; n < e.length; n++) {
2755
2755
  var i = e.charAt(n);
2756
2756
  if (i === "j") {
2757
2757
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2758
2758
  o++, n++;
2759
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", l = ki(t);
2760
- for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2759
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", u = Ui(t);
2760
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2761
2761
  r += d;
2762
2762
  for (; s-- > 0; )
2763
- r = l + r;
2763
+ r = u + r;
2764
2764
  } else
2765
2765
  i === "J" ? r += "H" : r += i;
2766
2766
  }
2767
2767
  return r;
2768
2768
  }
2769
- function ki(e) {
2769
+ function Ui(e) {
2770
2770
  var t = e.hourCycle;
2771
2771
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2772
2772
  e.hourCycles && // @ts-ignore
@@ -2788,20 +2788,20 @@ function ki(e) {
2788
2788
  var i = ot[n || ""] || ot[r || ""] || ot["".concat(r, "-001")] || ot["001"];
2789
2789
  return i[0];
2790
2790
  }
2791
- var Ht, Ui = new RegExp("^".concat(Zr.source, "*")), Di = new RegExp("".concat(Zr.source, "*$"));
2791
+ var At, Di = new RegExp("^".concat(Yr.source, "*")), Fi = new RegExp("".concat(Yr.source, "*$"));
2792
2792
  function N(e, t) {
2793
2793
  return { start: e, end: t };
2794
2794
  }
2795
- var Fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ji = !!String.fromCodePoint, zi = !!Object.fromEntries, Gi = !!String.prototype.codePointAt, $i = !!String.prototype.trimStart, Vi = !!String.prototype.trimEnd, qi = !!Number.isSafeInteger, Xi = qi ? Number.isSafeInteger : function(e) {
2795
+ var ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), zi = !!String.fromCodePoint, Gi = !!Object.fromEntries, $i = !!String.prototype.codePointAt, Vi = !!String.prototype.trimStart, qi = !!String.prototype.trimEnd, Xi = !!Number.isSafeInteger, Wi = Xi ? Number.isSafeInteger : function(e) {
2796
2796
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2797
- }, Ot = !0;
2797
+ }, kt = !0;
2798
2798
  try {
2799
- var Wi = en("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2800
- Ot = ((Ht = Wi.exec("a")) === null || Ht === void 0 ? void 0 : Ht[0]) === "a";
2799
+ var Zi = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2800
+ kt = ((At = Zi.exec("a")) === null || At === void 0 ? void 0 : At[0]) === "a";
2801
2801
  } catch {
2802
- Ot = !1;
2802
+ kt = !1;
2803
2803
  }
2804
- var ur = Fi ? (
2804
+ var dr = ji ? (
2805
2805
  // Native
2806
2806
  function(t, r, n) {
2807
2807
  return t.startsWith(r, n);
@@ -2811,7 +2811,7 @@ var ur = Fi ? (
2811
2811
  function(t, r, n) {
2812
2812
  return t.slice(n, n + r.length) === r;
2813
2813
  }
2814
- ), kt = ji ? String.fromCodePoint : (
2814
+ ), Ut = zi ? String.fromCodePoint : (
2815
2815
  // IE11
2816
2816
  function() {
2817
2817
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2823,9 +2823,9 @@ var ur = Fi ? (
2823
2823
  }
2824
2824
  return n;
2825
2825
  }
2826
- ), dr = (
2826
+ ), cr = (
2827
2827
  // native
2828
- zi ? Object.fromEntries : (
2828
+ Gi ? Object.fromEntries : (
2829
2829
  // Ponyfill
2830
2830
  function(t) {
2831
2831
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2835,7 +2835,7 @@ var ur = Fi ? (
2835
2835
  return r;
2836
2836
  }
2837
2837
  )
2838
- ), Kr = Gi ? (
2838
+ ), en = $i ? (
2839
2839
  // Native
2840
2840
  function(t, r) {
2841
2841
  return t.codePointAt(r);
@@ -2849,7 +2849,7 @@ var ur = Fi ? (
2849
2849
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2850
2850
  }
2851
2851
  }
2852
- ), Zi = $i ? (
2852
+ ), Yi = Vi ? (
2853
2853
  // Native
2854
2854
  function(t) {
2855
2855
  return t.trimStart();
@@ -2857,9 +2857,9 @@ var ur = Fi ? (
2857
2857
  ) : (
2858
2858
  // Ponyfill
2859
2859
  function(t) {
2860
- return t.replace(Ui, "");
2860
+ return t.replace(Di, "");
2861
2861
  }
2862
- ), Yi = Vi ? (
2862
+ ), Ji = qi ? (
2863
2863
  // Native
2864
2864
  function(t) {
2865
2865
  return t.trimEnd();
@@ -2867,32 +2867,32 @@ var ur = Fi ? (
2867
2867
  ) : (
2868
2868
  // Ponyfill
2869
2869
  function(t) {
2870
- return t.replace(Di, "");
2870
+ return t.replace(Fi, "");
2871
2871
  }
2872
2872
  );
2873
- function en(e, t) {
2873
+ function tn(e, t) {
2874
2874
  return new RegExp(e, t);
2875
2875
  }
2876
- var Ut;
2877
- if (Ot) {
2878
- var cr = en("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2879
- Ut = function(t, r) {
2876
+ var Dt;
2877
+ if (kt) {
2878
+ var fr = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2879
+ Dt = function(t, r) {
2880
2880
  var n;
2881
- cr.lastIndex = r;
2882
- var i = cr.exec(t);
2881
+ fr.lastIndex = r;
2882
+ var i = fr.exec(t);
2883
2883
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2884
2884
  };
2885
2885
  } else
2886
- Ut = function(t, r) {
2886
+ Dt = function(t, r) {
2887
2887
  for (var n = []; ; ) {
2888
- var i = Kr(t, r);
2889
- if (i === void 0 || tn(i) || eo(i))
2888
+ var i = en(t, r);
2889
+ if (i === void 0 || rn(i) || to(i))
2890
2890
  break;
2891
2891
  n.push(i), r += i >= 65536 ? 2 : 1;
2892
2892
  }
2893
- return kt.apply(void 0, n);
2893
+ return Ut.apply(void 0, n);
2894
2894
  };
2895
- var Ji = (
2895
+ var Qi = (
2896
2896
  /** @class */
2897
2897
  function() {
2898
2898
  function e(t, r) {
@@ -2916,14 +2916,14 @@ var Ji = (
2916
2916
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2917
2917
  var a = this.clonePosition();
2918
2918
  this.bump(), i.push({
2919
- type: F.pound,
2919
+ type: j.pound,
2920
2920
  location: N(a, this.clonePosition())
2921
2921
  });
2922
2922
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2923
2923
  if (n)
2924
2924
  break;
2925
2925
  return this.error(A.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2926
- } else if (o === 60 && !this.ignoreTag && Dt(this.peek() || 0)) {
2926
+ } else if (o === 60 && !this.ignoreTag && Ft(this.peek() || 0)) {
2927
2927
  var s = this.parseTag(t, r);
2928
2928
  if (s.err)
2929
2929
  return s;
@@ -2944,7 +2944,7 @@ var Ji = (
2944
2944
  if (this.bumpSpace(), this.bumpIf("/>"))
2945
2945
  return {
2946
2946
  val: {
2947
- type: F.literal,
2947
+ type: j.literal,
2948
2948
  value: "<".concat(i, "/>"),
2949
2949
  location: N(n, this.clonePosition())
2950
2950
  },
@@ -2956,12 +2956,12 @@ var Ji = (
2956
2956
  return o;
2957
2957
  var s = o.val, a = this.clonePosition();
2958
2958
  if (this.bumpIf("</")) {
2959
- if (this.isEOF() || !Dt(this.char()))
2959
+ if (this.isEOF() || !Ft(this.char()))
2960
2960
  return this.error(A.INVALID_TAG, N(a, this.clonePosition()));
2961
- var d = this.clonePosition(), l = this.parseTagName();
2962
- return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, N(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2961
+ var d = this.clonePosition(), u = this.parseTagName();
2962
+ return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, N(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2963
2963
  val: {
2964
- type: F.tag,
2964
+ type: j.tag,
2965
2965
  value: i,
2966
2966
  children: s,
2967
2967
  location: N(n, this.clonePosition())
@@ -2974,7 +2974,7 @@ var Ji = (
2974
2974
  return this.error(A.INVALID_TAG, N(n, this.clonePosition()));
2975
2975
  }, e.prototype.parseTagName = function() {
2976
2976
  var t = this.offset();
2977
- for (this.bump(); !this.isEOF() && Ki(this.char()); )
2977
+ for (this.bump(); !this.isEOF() && eo(this.char()); )
2978
2978
  this.bump();
2979
2979
  return this.message.slice(t, this.offset());
2980
2980
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2998,12 +2998,12 @@ var Ji = (
2998
2998
  }
2999
2999
  var d = N(n, this.clonePosition());
3000
3000
  return {
3001
- val: { type: F.literal, value: i, location: d },
3001
+ val: { type: j.literal, value: i, location: d },
3002
3002
  err: null
3003
3003
  };
3004
3004
  }, e.prototype.tryParseLeftAngleBracket = function() {
3005
3005
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3006
- !Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
3006
+ !Ki(this.peek() || 0)) ? (this.bump(), "<") : null;
3007
3007
  }, e.prototype.tryParseQuote = function(t) {
3008
3008
  if (this.isEOF() || this.char() !== 39)
3009
3009
  return null;
@@ -3037,12 +3037,12 @@ var Ji = (
3037
3037
  r.push(n);
3038
3038
  this.bump();
3039
3039
  }
3040
- return kt.apply(void 0, r);
3040
+ return Ut.apply(void 0, r);
3041
3041
  }, e.prototype.tryParseUnquoted = function(t, r) {
3042
3042
  if (this.isEOF())
3043
3043
  return null;
3044
3044
  var n = this.char();
3045
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), kt(n));
3045
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ut(n));
3046
3046
  }, e.prototype.parseArgument = function(t, r) {
3047
3047
  var n = this.clonePosition();
3048
3048
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3058,7 +3058,7 @@ var Ji = (
3058
3058
  case 125:
3059
3059
  return this.bump(), {
3060
3060
  val: {
3061
- type: F.argument,
3061
+ type: j.argument,
3062
3062
  // value does not include the opening and closing braces.
3063
3063
  value: i,
3064
3064
  location: N(n, this.clonePosition())
@@ -3071,7 +3071,7 @@ var Ji = (
3071
3071
  return this.error(A.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
3072
3072
  }
3073
3073
  }, e.prototype.parseIdentifierIfPossible = function() {
3074
- var t = this.clonePosition(), r = this.offset(), n = Ut(this.message, r), i = r + n.length;
3074
+ var t = this.clonePosition(), r = this.offset(), n = Dt(this.message, r), i = r + n.length;
3075
3075
  this.bumpTo(i);
3076
3076
  var o = this.clonePosition(), s = N(t, o);
3077
3077
  return { value: n, location: s };
@@ -3084,41 +3084,41 @@ var Ji = (
3084
3084
  case "date":
3085
3085
  case "time": {
3086
3086
  this.bumpSpace();
3087
- var l = null;
3087
+ var u = null;
3088
3088
  if (this.bumpIf(",")) {
3089
3089
  this.bumpSpace();
3090
- var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3090
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3091
3091
  if (c.err)
3092
3092
  return c;
3093
- var f = Yi(c.val);
3093
+ var f = Ji(c.val);
3094
3094
  if (f.length === 0)
3095
3095
  return this.error(A.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
3096
- var g = N(u, this.clonePosition());
3097
- l = { style: f, styleLocation: g };
3096
+ var g = N(l, this.clonePosition());
3097
+ u = { style: f, styleLocation: g };
3098
3098
  }
3099
3099
  var b = this.tryParseArgumentClose(i);
3100
3100
  if (b.err)
3101
3101
  return b;
3102
3102
  var y = N(i, this.clonePosition());
3103
- if (l && ur(l?.style, "::", 0)) {
3104
- var _ = Zi(l.style.slice(2));
3103
+ if (u && dr(u?.style, "::", 0)) {
3104
+ var _ = Yi(u.style.slice(2));
3105
3105
  if (a === "number") {
3106
- var c = this.parseNumberSkeletonFromString(_, l.styleLocation);
3106
+ var c = this.parseNumberSkeletonFromString(_, u.styleLocation);
3107
3107
  return c.err ? c : {
3108
- val: { type: F.number, value: n, location: y, style: c.val },
3108
+ val: { type: j.number, value: n, location: y, style: c.val },
3109
3109
  err: null
3110
3110
  };
3111
3111
  } else {
3112
3112
  if (_.length === 0)
3113
3113
  return this.error(A.EXPECT_DATE_TIME_SKELETON, y);
3114
3114
  var S = _;
3115
- this.locale && (S = Oi(_, this.locale));
3115
+ this.locale && (S = ki(_, this.locale));
3116
3116
  var f = {
3117
3117
  type: je.dateTime,
3118
3118
  pattern: S,
3119
- location: l.styleLocation,
3120
- parsedOptions: this.shouldParseSkeletons ? Li(S) : {}
3121
- }, x = a === "date" ? F.date : F.time;
3119
+ location: u.styleLocation,
3120
+ parsedOptions: this.shouldParseSkeletons ? Hi(S) : {}
3121
+ }, x = a === "date" ? j.date : j.time;
3122
3122
  return {
3123
3123
  val: { type: x, value: n, location: y, style: f },
3124
3124
  err: null
@@ -3127,10 +3127,10 @@ var Ji = (
3127
3127
  }
3128
3128
  return {
3129
3129
  val: {
3130
- type: a === "number" ? F.number : a === "date" ? F.date : F.time,
3130
+ type: a === "number" ? j.number : a === "date" ? j.date : j.time,
3131
3131
  value: n,
3132
3132
  location: y,
3133
- style: (o = l?.style) !== null && o !== void 0 ? o : null
3133
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
3134
3134
  },
3135
3135
  err: null
3136
3136
  };
@@ -3142,7 +3142,7 @@ var Ji = (
3142
3142
  if (this.bumpSpace(), !this.bumpIf(","))
3143
3143
  return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(w, bt({}, w)));
3144
3144
  this.bumpSpace();
3145
- var H = this.parseIdentifierIfPossible(), T = 0;
3145
+ var H = this.parseIdentifierIfPossible(), C = 0;
3146
3146
  if (a !== "select" && H.value === "offset") {
3147
3147
  if (!this.bumpIf(":"))
3148
3148
  return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
@@ -3150,31 +3150,31 @@ var Ji = (
3150
3150
  var c = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3151
3151
  if (c.err)
3152
3152
  return c;
3153
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), T = c.val;
3153
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = c.val;
3154
3154
  }
3155
- var D = this.tryParsePluralOrSelectOptions(t, a, r, H);
3156
- if (D.err)
3157
- return D;
3155
+ var F = this.tryParsePluralOrSelectOptions(t, a, r, H);
3156
+ if (F.err)
3157
+ return F;
3158
3158
  var b = this.tryParseArgumentClose(i);
3159
3159
  if (b.err)
3160
3160
  return b;
3161
- var C = N(i, this.clonePosition());
3161
+ var T = N(i, this.clonePosition());
3162
3162
  return a === "select" ? {
3163
3163
  val: {
3164
- type: F.select,
3164
+ type: j.select,
3165
3165
  value: n,
3166
- options: dr(D.val),
3167
- location: C
3166
+ options: cr(F.val),
3167
+ location: T
3168
3168
  },
3169
3169
  err: null
3170
3170
  } : {
3171
3171
  val: {
3172
- type: F.plural,
3172
+ type: j.plural,
3173
3173
  value: n,
3174
- options: dr(D.val),
3175
- offset: T,
3174
+ options: cr(F.val),
3175
+ offset: C,
3176
3176
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3177
- location: C
3177
+ location: T
3178
3178
  },
3179
3179
  err: null
3180
3180
  };
@@ -3222,7 +3222,7 @@ var Ji = (
3222
3222
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3223
3223
  var n = [];
3224
3224
  try {
3225
- n = Ai(t);
3225
+ n = Ni(t);
3226
3226
  } catch {
3227
3227
  return this.error(A.INVALID_NUMBER_SKELETON, r);
3228
3228
  }
@@ -3231,25 +3231,25 @@ var Ji = (
3231
3231
  type: je.number,
3232
3232
  tokens: n,
3233
3233
  location: r,
3234
- parsedOptions: this.shouldParseSkeletons ? Mi(n) : {}
3234
+ parsedOptions: this.shouldParseSkeletons ? Oi(n) : {}
3235
3235
  },
3236
3236
  err: null
3237
3237
  };
3238
3238
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3239
- for (var o, s = !1, a = [], d = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
3240
- if (l.length === 0) {
3239
+ for (var o, s = !1, a = [], d = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3240
+ if (u.length === 0) {
3241
3241
  var c = this.clonePosition();
3242
3242
  if (r !== "select" && this.bumpIf("=")) {
3243
3243
  var f = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3244
3244
  if (f.err)
3245
3245
  return f;
3246
- u = N(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
3246
+ l = N(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3247
3247
  } else
3248
3248
  break;
3249
3249
  }
3250
- if (d.has(l))
3251
- return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3252
- l === "other" && (s = !0), this.bumpSpace();
3250
+ if (d.has(u))
3251
+ return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3252
+ u === "other" && (s = !0), this.bumpSpace();
3253
3253
  var g = this.clonePosition();
3254
3254
  if (!this.bumpIf("{"))
3255
3255
  return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
@@ -3260,12 +3260,12 @@ var Ji = (
3260
3260
  if (y.err)
3261
3261
  return y;
3262
3262
  a.push([
3263
- l,
3263
+ u,
3264
3264
  {
3265
3265
  value: b.val,
3266
3266
  location: N(g, this.clonePosition())
3267
3267
  }
3268
- ]), d.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3268
+ ]), d.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3269
3269
  }
3270
3270
  return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(A.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3271
3271
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3279,7 +3279,7 @@ var Ji = (
3279
3279
  break;
3280
3280
  }
3281
3281
  var d = N(i, this.clonePosition());
3282
- return o ? (s *= n, Xi(s) ? { val: s, err: null } : this.error(r, d)) : this.error(t, d);
3282
+ return o ? (s *= n, Wi(s) ? { val: s, err: null } : this.error(r, d)) : this.error(t, d);
3283
3283
  }, e.prototype.offset = function() {
3284
3284
  return this.position.offset;
3285
3285
  }, e.prototype.isEOF = function() {
@@ -3294,7 +3294,7 @@ var Ji = (
3294
3294
  var t = this.position.offset;
3295
3295
  if (t >= this.message.length)
3296
3296
  throw Error("out of bound");
3297
- var r = Kr(this.message, t);
3297
+ var r = en(this.message, t);
3298
3298
  if (r === void 0)
3299
3299
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3300
3300
  return r;
@@ -3313,7 +3313,7 @@ var Ji = (
3313
3313
  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);
3314
3314
  }
3315
3315
  }, e.prototype.bumpIf = function(t) {
3316
- if (ur(this.message, t, this.offset())) {
3316
+ if (dr(this.message, t, this.offset())) {
3317
3317
  for (var r = 0; r < t.length; r++)
3318
3318
  this.bump();
3319
3319
  return !0;
@@ -3335,7 +3335,7 @@ var Ji = (
3335
3335
  break;
3336
3336
  }
3337
3337
  }, e.prototype.bumpSpace = function() {
3338
- for (; !this.isEOF() && tn(this.char()); )
3338
+ for (; !this.isEOF() && rn(this.char()); )
3339
3339
  this.bump();
3340
3340
  }, e.prototype.peek = function() {
3341
3341
  if (this.isEOF())
@@ -3345,38 +3345,38 @@ var Ji = (
3345
3345
  }, e;
3346
3346
  }()
3347
3347
  );
3348
- function Dt(e) {
3348
+ function Ft(e) {
3349
3349
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3350
3350
  }
3351
- function Qi(e) {
3352
- return Dt(e) || e === 47;
3353
- }
3354
3351
  function Ki(e) {
3352
+ return Ft(e) || e === 47;
3353
+ }
3354
+ function eo(e) {
3355
3355
  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;
3356
3356
  }
3357
- function tn(e) {
3357
+ function rn(e) {
3358
3358
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3359
3359
  }
3360
- function eo(e) {
3360
+ function to(e) {
3361
3361
  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;
3362
3362
  }
3363
- function Ft(e) {
3363
+ function jt(e) {
3364
3364
  e.forEach(function(t) {
3365
- if (delete t.location, Vr(t) || qr(t))
3365
+ if (delete t.location, qr(t) || Xr(t))
3366
3366
  for (var r in t.options)
3367
- delete t.options[r].location, Ft(t.options[r].value);
3367
+ delete t.options[r].location, jt(t.options[r].value);
3368
3368
  else
3369
- zr(t) && Wr(t.style) || (Gr(t) || $r(t)) && Mt(t.style) ? delete t.style.location : Xr(t) && Ft(t.children);
3369
+ Gr(t) && Zr(t.style) || ($r(t) || Vr(t)) && Ot(t.style) ? delete t.style.location : Wr(t) && jt(t.children);
3370
3370
  });
3371
3371
  }
3372
- function to(e, t) {
3372
+ function ro(e, t) {
3373
3373
  t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3374
- var r = new Ji(e, t).parse();
3374
+ var r = new Qi(e, t).parse();
3375
3375
  if (r.err) {
3376
3376
  var n = SyntaxError(A[r.err.kind]);
3377
3377
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3378
3378
  }
3379
- return t?.captureLocation || Ft(r.val), r.val;
3379
+ return t?.captureLocation || jt(r.val), r.val;
3380
3380
  }
3381
3381
  var ze;
3382
3382
  (function(e) {
@@ -3394,7 +3394,7 @@ var Pt = (
3394
3394
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3395
3395
  }, t;
3396
3396
  }(Error)
3397
- ), fr = (
3397
+ ), hr = (
3398
3398
  /** @class */
3399
3399
  function(e) {
3400
3400
  _t(t, e);
@@ -3403,7 +3403,7 @@ var Pt = (
3403
3403
  }
3404
3404
  return t;
3405
3405
  }(Pt)
3406
- ), ro = (
3406
+ ), no = (
3407
3407
  /** @class */
3408
3408
  function(e) {
3409
3409
  _t(t, e);
@@ -3412,7 +3412,7 @@ var Pt = (
3412
3412
  }
3413
3413
  return t;
3414
3414
  }(Pt)
3415
- ), no = (
3415
+ ), io = (
3416
3416
  /** @class */
3417
3417
  function(e) {
3418
3418
  _t(t, e);
@@ -3425,124 +3425,124 @@ var Pt = (
3425
3425
  (function(e) {
3426
3426
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3427
3427
  })(ie || (ie = {}));
3428
- function io(e) {
3428
+ function oo(e) {
3429
3429
  return e.length < 2 ? e : e.reduce(function(t, r) {
3430
3430
  var n = t[t.length - 1];
3431
3431
  return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
3432
3432
  }, []);
3433
3433
  }
3434
- function oo(e) {
3434
+ function so(e) {
3435
3435
  return typeof e == "function";
3436
3436
  }
3437
3437
  function lt(e, t, r, n, i, o, s) {
3438
- if (e.length === 1 && or(e[0]))
3438
+ if (e.length === 1 && sr(e[0]))
3439
3439
  return [
3440
3440
  {
3441
3441
  type: ie.literal,
3442
3442
  value: e[0].value
3443
3443
  }
3444
3444
  ];
3445
- for (var a = [], d = 0, l = e; d < l.length; d++) {
3446
- var u = l[d];
3447
- if (or(u)) {
3445
+ for (var a = [], d = 0, u = e; d < u.length; d++) {
3446
+ var l = u[d];
3447
+ if (sr(l)) {
3448
3448
  a.push({
3449
3449
  type: ie.literal,
3450
- value: u.value
3450
+ value: l.value
3451
3451
  });
3452
3452
  continue;
3453
3453
  }
3454
- if (Ci(u)) {
3454
+ if (Ri(l)) {
3455
3455
  typeof o == "number" && a.push({
3456
3456
  type: ie.literal,
3457
3457
  value: r.getNumberFormat(t).format(o)
3458
3458
  });
3459
3459
  continue;
3460
3460
  }
3461
- var c = u.value;
3461
+ var c = l.value;
3462
3462
  if (!(i && c in i))
3463
- throw new no(c, s);
3463
+ throw new io(c, s);
3464
3464
  var f = i[c];
3465
- if (Ti(u)) {
3465
+ if (Ti(l)) {
3466
3466
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3467
3467
  type: typeof f == "string" ? ie.literal : ie.object,
3468
3468
  value: f
3469
3469
  });
3470
3470
  continue;
3471
3471
  }
3472
- if (Gr(u)) {
3473
- var g = typeof u.style == "string" ? n.date[u.style] : Mt(u.style) ? u.style.parsedOptions : void 0;
3472
+ if ($r(l)) {
3473
+ var g = typeof l.style == "string" ? n.date[l.style] : Ot(l.style) ? l.style.parsedOptions : void 0;
3474
3474
  a.push({
3475
3475
  type: ie.literal,
3476
3476
  value: r.getDateTimeFormat(t, g).format(f)
3477
3477
  });
3478
3478
  continue;
3479
3479
  }
3480
- if ($r(u)) {
3481
- var g = typeof u.style == "string" ? n.time[u.style] : Mt(u.style) ? u.style.parsedOptions : n.time.medium;
3480
+ if (Vr(l)) {
3481
+ var g = typeof l.style == "string" ? n.time[l.style] : Ot(l.style) ? l.style.parsedOptions : n.time.medium;
3482
3482
  a.push({
3483
3483
  type: ie.literal,
3484
3484
  value: r.getDateTimeFormat(t, g).format(f)
3485
3485
  });
3486
3486
  continue;
3487
3487
  }
3488
- if (zr(u)) {
3489
- var g = typeof u.style == "string" ? n.number[u.style] : Wr(u.style) ? u.style.parsedOptions : void 0;
3488
+ if (Gr(l)) {
3489
+ var g = typeof l.style == "string" ? n.number[l.style] : Zr(l.style) ? l.style.parsedOptions : void 0;
3490
3490
  g && g.scale && (f = f * (g.scale || 1)), a.push({
3491
3491
  type: ie.literal,
3492
3492
  value: r.getNumberFormat(t, g).format(f)
3493
3493
  });
3494
3494
  continue;
3495
3495
  }
3496
- if (Xr(u)) {
3497
- var b = u.children, y = u.value, _ = i[y];
3498
- if (!oo(_))
3499
- throw new ro(y, "function", s);
3500
- var S = lt(b, t, r, n, i, o), x = _(S.map(function(T) {
3501
- return T.value;
3496
+ if (Wr(l)) {
3497
+ var b = l.children, y = l.value, _ = i[y];
3498
+ if (!so(_))
3499
+ throw new no(y, "function", s);
3500
+ var S = lt(b, t, r, n, i, o), x = _(S.map(function(C) {
3501
+ return C.value;
3502
3502
  }));
3503
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(T) {
3503
+ Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(C) {
3504
3504
  return {
3505
- type: typeof T == "string" ? ie.literal : ie.object,
3506
- value: T
3505
+ type: typeof C == "string" ? ie.literal : ie.object,
3506
+ value: C
3507
3507
  };
3508
3508
  }));
3509
3509
  }
3510
- if (Vr(u)) {
3511
- var w = u.options[f] || u.options.other;
3510
+ if (qr(l)) {
3511
+ var w = l.options[f] || l.options.other;
3512
3512
  if (!w)
3513
- throw new fr(u.value, f, Object.keys(u.options), s);
3513
+ throw new hr(l.value, f, Object.keys(l.options), s);
3514
3514
  a.push.apply(a, lt(w.value, t, r, n, i));
3515
3515
  continue;
3516
3516
  }
3517
- if (qr(u)) {
3518
- var w = u.options["=".concat(f)];
3517
+ if (Xr(l)) {
3518
+ var w = l.options["=".concat(f)];
3519
3519
  if (!w) {
3520
3520
  if (!Intl.PluralRules)
3521
3521
  throw new Pt(`Intl.PluralRules is not available in this environment.
3522
3522
  Try polyfilling it using "@formatjs/intl-pluralrules"
3523
3523
  `, ze.MISSING_INTL_API, s);
3524
- var H = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3525
- w = u.options[H] || u.options.other;
3524
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3525
+ w = l.options[H] || l.options.other;
3526
3526
  }
3527
3527
  if (!w)
3528
- throw new fr(u.value, f, Object.keys(u.options), s);
3529
- a.push.apply(a, lt(w.value, t, r, n, i, f - (u.offset || 0)));
3528
+ throw new hr(l.value, f, Object.keys(l.options), s);
3529
+ a.push.apply(a, lt(w.value, t, r, n, i, f - (l.offset || 0)));
3530
3530
  continue;
3531
3531
  }
3532
3532
  }
3533
- return io(a);
3533
+ return oo(a);
3534
3534
  }
3535
- function so(e, t) {
3535
+ function ao(e, t) {
3536
3536
  return t ? ye(ye(ye({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3537
3537
  return r[n] = ye(ye({}, e[n]), t[n] || {}), r;
3538
3538
  }, {})) : e;
3539
3539
  }
3540
- function ao(e, t) {
3540
+ function lo(e, t) {
3541
3541
  return t ? Object.keys(e).reduce(function(r, n) {
3542
- return r[n] = so(e[n], t[n]), r;
3542
+ return r[n] = ao(e[n], t[n]), r;
3543
3543
  }, ye({}, e)) : e;
3544
3544
  }
3545
- function At(e) {
3545
+ function Nt(e) {
3546
3546
  return {
3547
3547
  create: function() {
3548
3548
  return {
@@ -3556,39 +3556,39 @@ function At(e) {
3556
3556
  }
3557
3557
  };
3558
3558
  }
3559
- function lo(e) {
3559
+ function uo(e) {
3560
3560
  return e === void 0 && (e = {
3561
3561
  number: {},
3562
3562
  dateTime: {},
3563
3563
  pluralRules: {}
3564
3564
  }), {
3565
- getNumberFormat: Rt(function() {
3565
+ getNumberFormat: Lt(function() {
3566
3566
  for (var t, r = [], n = 0; n < arguments.length; n++)
3567
3567
  r[n] = arguments[n];
3568
- return new ((t = Intl.NumberFormat).bind.apply(t, Ct([void 0], r, !1)))();
3568
+ return new ((t = Intl.NumberFormat).bind.apply(t, Rt([void 0], r, !1)))();
3569
3569
  }, {
3570
- cache: At(e.number),
3571
- strategy: Lt.variadic
3570
+ cache: Nt(e.number),
3571
+ strategy: Ht.variadic
3572
3572
  }),
3573
- getDateTimeFormat: Rt(function() {
3573
+ getDateTimeFormat: Lt(function() {
3574
3574
  for (var t, r = [], n = 0; n < arguments.length; n++)
3575
3575
  r[n] = arguments[n];
3576
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ct([void 0], r, !1)))();
3576
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Rt([void 0], r, !1)))();
3577
3577
  }, {
3578
- cache: At(e.dateTime),
3579
- strategy: Lt.variadic
3578
+ cache: Nt(e.dateTime),
3579
+ strategy: Ht.variadic
3580
3580
  }),
3581
- getPluralRules: Rt(function() {
3581
+ getPluralRules: Lt(function() {
3582
3582
  for (var t, r = [], n = 0; n < arguments.length; n++)
3583
3583
  r[n] = arguments[n];
3584
- return new ((t = Intl.PluralRules).bind.apply(t, Ct([void 0], r, !1)))();
3584
+ return new ((t = Intl.PluralRules).bind.apply(t, Rt([void 0], r, !1)))();
3585
3585
  }, {
3586
- cache: At(e.pluralRules),
3587
- strategy: Lt.variadic
3586
+ cache: Nt(e.pluralRules),
3587
+ strategy: Ht.variadic
3588
3588
  })
3589
3589
  };
3590
3590
  }
3591
- var uo = (
3591
+ var co = (
3592
3592
  /** @class */
3593
3593
  function() {
3594
3594
  function e(t, r, n, i) {
@@ -3599,13 +3599,13 @@ var uo = (
3599
3599
  dateTime: {},
3600
3600
  pluralRules: {}
3601
3601
  }, this.format = function(d) {
3602
- var l = o.formatToParts(d);
3603
- if (l.length === 1)
3604
- return l[0].value;
3605
- var u = l.reduce(function(c, f) {
3602
+ var u = o.formatToParts(d);
3603
+ if (u.length === 1)
3604
+ return u[0].value;
3605
+ var l = u.reduce(function(c, f) {
3606
3606
  return !c.length || f.type !== ie.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3607
3607
  }, []);
3608
- return u.length <= 1 ? u[0] || "" : u;
3608
+ return l.length <= 1 ? l[0] || "" : l;
3609
3609
  }, this.formatToParts = function(d) {
3610
3610
  return lt(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
3611
3611
  }, this.resolvedOptions = function() {
@@ -3620,13 +3620,13 @@ var uo = (
3620
3620
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3621
3621
  var s = i || {};
3622
3622
  s.formatters;
3623
- var a = vi(s, ["formatters"]);
3623
+ var a = yi(s, ["formatters"]);
3624
3624
  this.ast = e.__parse(t, ye(ye({}, a), { locale: this.resolvedLocale }));
3625
3625
  } else
3626
3626
  this.ast = t;
3627
3627
  if (!Array.isArray(this.ast))
3628
3628
  throw new TypeError("A message must be provided as a String or AST.");
3629
- this.formats = ao(e.formats, n), this.formatters = i && i.formatters || lo(this.formatterCache);
3629
+ this.formats = lo(e.formats, n), this.formatters = i && i.formatters || uo(this.formatterCache);
3630
3630
  }
3631
3631
  return Object.defineProperty(e, "defaultLocale", {
3632
3632
  get: function() {
@@ -3639,7 +3639,7 @@ var uo = (
3639
3639
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3640
3640
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3641
3641
  }
3642
- }, e.__parse = to, e.formats = {
3642
+ }, e.__parse = ro, e.formats = {
3643
3643
  number: {
3644
3644
  integer: {
3645
3645
  maximumFractionDigits: 0
@@ -3700,7 +3700,7 @@ var uo = (
3700
3700
  }, e;
3701
3701
  }()
3702
3702
  );
3703
- function co(e, t) {
3703
+ function fo(e, t) {
3704
3704
  if (t == null)
3705
3705
  return;
3706
3706
  if (t in e)
@@ -3721,92 +3721,92 @@ function co(e, t) {
3721
3721
  n = void 0;
3722
3722
  return n;
3723
3723
  }
3724
- const Ee = {}, fo = (e, t, r) => r && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = r), r), rn = (e, t) => {
3724
+ const Ee = {}, ho = (e, t, r) => r && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = r), r), nn = (e, t) => {
3725
3725
  if (t == null)
3726
3726
  return;
3727
3727
  if (t in Ee && e in Ee[t])
3728
3728
  return Ee[t][e];
3729
3729
  const r = xt(t);
3730
3730
  for (let n = 0; n < r.length; n++) {
3731
- const i = r[n], o = po(i, e);
3731
+ const i = r[n], o = mo(i, e);
3732
3732
  if (o)
3733
- return fo(e, t, o);
3733
+ return ho(e, t, o);
3734
3734
  }
3735
3735
  };
3736
- let Zt;
3736
+ let Yt;
3737
3737
  const qe = wt({});
3738
- function ho(e) {
3739
- return Zt[e] || null;
3738
+ function po(e) {
3739
+ return Yt[e] || null;
3740
3740
  }
3741
- function nn(e) {
3742
- return e in Zt;
3741
+ function on(e) {
3742
+ return e in Yt;
3743
3743
  }
3744
- function po(e, t) {
3745
- if (!nn(e))
3744
+ function mo(e, t) {
3745
+ if (!on(e))
3746
3746
  return null;
3747
- const r = ho(e);
3748
- return co(r, t);
3747
+ const r = po(e);
3748
+ return fo(r, t);
3749
3749
  }
3750
- function mo(e) {
3750
+ function bo(e) {
3751
3751
  if (e == null)
3752
3752
  return;
3753
3753
  const t = xt(e);
3754
3754
  for (let r = 0; r < t.length; r++) {
3755
3755
  const n = t[r];
3756
- if (nn(n))
3756
+ if (on(n))
3757
3757
  return n;
3758
3758
  }
3759
3759
  }
3760
- function on(e, ...t) {
3761
- delete Ee[e], qe.update((r) => (r[e] = gi.all([r[e] || {}, ...t]), r));
3760
+ function sn(e, ...t) {
3761
+ delete Ee[e], qe.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
3762
3762
  }
3763
3763
  Ve(
3764
3764
  [qe],
3765
3765
  ([e]) => Object.keys(e)
3766
3766
  );
3767
- qe.subscribe((e) => Zt = e);
3767
+ qe.subscribe((e) => Yt = e);
3768
3768
  const ut = {};
3769
- function bo(e, t) {
3769
+ function go(e, t) {
3770
3770
  ut[e].delete(t), ut[e].size === 0 && delete ut[e];
3771
3771
  }
3772
- function sn(e) {
3772
+ function an(e) {
3773
3773
  return ut[e];
3774
3774
  }
3775
- function go(e) {
3775
+ function vo(e) {
3776
3776
  return xt(e).map((t) => {
3777
- const r = sn(t);
3777
+ const r = an(t);
3778
3778
  return [t, r ? [...r] : []];
3779
3779
  }).filter(([, t]) => t.length > 0);
3780
3780
  }
3781
- function jt(e) {
3781
+ function zt(e) {
3782
3782
  return e == null ? !1 : xt(e).some(
3783
3783
  (t) => {
3784
3784
  var r;
3785
- return (r = sn(t)) == null ? void 0 : r.size;
3785
+ return (r = an(t)) == null ? void 0 : r.size;
3786
3786
  }
3787
3787
  );
3788
3788
  }
3789
- function vo(e, t) {
3789
+ function yo(e, t) {
3790
3790
  return Promise.all(
3791
- t.map((n) => (bo(e, n), n().then((i) => i.default || i)))
3792
- ).then((n) => on(e, ...n));
3791
+ t.map((n) => (go(e, n), n().then((i) => i.default || i)))
3792
+ ).then((n) => sn(e, ...n));
3793
3793
  }
3794
3794
  const Je = {};
3795
- function an(e) {
3796
- if (!jt(e))
3795
+ function ln(e) {
3796
+ if (!zt(e))
3797
3797
  return e in Je ? Je[e] : Promise.resolve();
3798
- const t = go(e);
3798
+ const t = vo(e);
3799
3799
  return Je[e] = Promise.all(
3800
3800
  t.map(
3801
- ([r, n]) => vo(r, n)
3801
+ ([r, n]) => yo(r, n)
3802
3802
  )
3803
3803
  ).then(() => {
3804
- if (jt(e))
3805
- return an(e);
3804
+ if (zt(e))
3805
+ return ln(e);
3806
3806
  delete Je[e];
3807
3807
  }), Je[e];
3808
3808
  }
3809
- const yo = {
3809
+ const wo = {
3810
3810
  number: {
3811
3811
  scientific: { notation: "scientific" },
3812
3812
  engineering: { notation: "engineering" },
@@ -3835,57 +3835,57 @@ const yo = {
3835
3835
  timeZoneName: "short"
3836
3836
  }
3837
3837
  }
3838
- }, wo = {
3838
+ }, _o = {
3839
3839
  fallbackLocale: null,
3840
3840
  loadingDelay: 200,
3841
- formats: yo,
3841
+ formats: wo,
3842
3842
  warnOnMissingMessages: !0,
3843
3843
  handleMissingMessage: void 0,
3844
3844
  ignoreTag: !0
3845
- }, _o = wo;
3845
+ }, Po = _o;
3846
3846
  function Ge() {
3847
- return _o;
3847
+ return Po;
3848
3848
  }
3849
- const Nt = wt(!1);
3850
- var Po = Object.defineProperty, xo = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, hr = Object.getOwnPropertySymbols, So = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, pr = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Co = (e, t) => {
3849
+ const It = wt(!1);
3850
+ var xo = Object.defineProperty, Eo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, Co = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ro = (e, t) => {
3851
3851
  for (var r in t || (t = {}))
3852
- So.call(t, r) && pr(e, r, t[r]);
3853
- if (hr)
3854
- for (var r of hr(t))
3855
- To.call(t, r) && pr(e, r, t[r]);
3852
+ Co.call(t, r) && mr(e, r, t[r]);
3853
+ if (pr)
3854
+ for (var r of pr(t))
3855
+ To.call(t, r) && mr(e, r, t[r]);
3856
3856
  return e;
3857
- }, Ro = (e, t) => xo(e, Eo(t));
3858
- let zt;
3857
+ }, Lo = (e, t) => Eo(e, So(t));
3858
+ let Gt;
3859
3859
  const gt = wt(null);
3860
- function mr(e) {
3860
+ function br(e) {
3861
3861
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3862
3862
  }
3863
3863
  function xt(e, t = Ge().fallbackLocale) {
3864
- const r = mr(e);
3865
- return t ? [.../* @__PURE__ */ new Set([...r, ...mr(t)])] : r;
3864
+ const r = br(e);
3865
+ return t ? [.../* @__PURE__ */ new Set([...r, ...br(t)])] : r;
3866
3866
  }
3867
3867
  function Ne() {
3868
- return zt ?? void 0;
3868
+ return Gt ?? void 0;
3869
3869
  }
3870
3870
  gt.subscribe((e) => {
3871
- zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3871
+ Gt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3872
3872
  });
3873
- const Lo = (e) => {
3874
- if (e && mo(e) && jt(e)) {
3873
+ const Ho = (e) => {
3874
+ if (e && bo(e) && zt(e)) {
3875
3875
  const { loadingDelay: t } = Ge();
3876
3876
  let r;
3877
3877
  return typeof window < "u" && Ne() != null && t ? r = window.setTimeout(
3878
- () => Nt.set(!0),
3878
+ () => It.set(!0),
3879
3879
  t
3880
- ) : Nt.set(!0), an(e).then(() => {
3880
+ ) : It.set(!0), ln(e).then(() => {
3881
3881
  gt.set(e);
3882
3882
  }).finally(() => {
3883
- clearTimeout(r), Nt.set(!1);
3883
+ clearTimeout(r), It.set(!1);
3884
3884
  });
3885
3885
  }
3886
3886
  return gt.set(e);
3887
- }, Ce = Ro(Co({}, gt), {
3888
- set: Lo
3887
+ }, Te = Lo(Ro({}, gt), {
3888
+ set: Ho
3889
3889
  }), Et = (e) => {
3890
3890
  const t = /* @__PURE__ */ Object.create(null);
3891
3891
  return (n) => {
@@ -3893,20 +3893,20 @@ const Lo = (e) => {
3893
3893
  return i in t ? t[i] : t[i] = e(n);
3894
3894
  };
3895
3895
  };
3896
- var Ho = Object.defineProperty, vt = Object.getOwnPropertySymbols, ln = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable, br = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yt = (e, t) => {
3896
+ var Ao = Object.defineProperty, vt = Object.getOwnPropertySymbols, un = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jt = (e, t) => {
3897
3897
  for (var r in t || (t = {}))
3898
- ln.call(t, r) && br(e, r, t[r]);
3898
+ un.call(t, r) && gr(e, r, t[r]);
3899
3899
  if (vt)
3900
3900
  for (var r of vt(t))
3901
- un.call(t, r) && br(e, r, t[r]);
3901
+ dn.call(t, r) && gr(e, r, t[r]);
3902
3902
  return e;
3903
3903
  }, Xe = (e, t) => {
3904
3904
  var r = {};
3905
3905
  for (var n in e)
3906
- ln.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3906
+ un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3907
3907
  if (e != null && vt)
3908
3908
  for (var n of vt(e))
3909
- t.indexOf(n) < 0 && un.call(e, n) && (r[n] = e[n]);
3909
+ t.indexOf(n) < 0 && dn.call(e, n) && (r[n] = e[n]);
3910
3910
  return r;
3911
3911
  };
3912
3912
  const nt = (e, t) => {
@@ -3914,21 +3914,21 @@ const nt = (e, t) => {
3914
3914
  if (e in r && t in r[e])
3915
3915
  return r[e][t];
3916
3916
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3917
- }, Ao = Et(
3917
+ }, No = Et(
3918
3918
  (e) => {
3919
3919
  var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
3920
3920
  if (r == null)
3921
3921
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3922
3922
  return n && (i = nt("number", n)), new Intl.NumberFormat(r, i);
3923
3923
  }
3924
- ), No = Et(
3924
+ ), Io = Et(
3925
3925
  (e) => {
3926
3926
  var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
3927
3927
  if (r == null)
3928
3928
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3929
3929
  return n ? i = nt("date", n) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(r, i);
3930
3930
  }
3931
- ), Io = Et(
3931
+ ), Bo = Et(
3932
3932
  (e) => {
3933
3933
  var t = e, { locale: r, format: n } = t, i = Xe(t, ["locale", "format"]);
3934
3934
  if (r == null)
@@ -3937,57 +3937,57 @@ const nt = (e, t) => {
3937
3937
  );
3938
3938
  return n ? i = nt("time", n) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(r, i);
3939
3939
  }
3940
- ), Bo = (e = {}) => {
3940
+ ), Mo = (e = {}) => {
3941
3941
  var t = e, {
3942
3942
  locale: r = Ne()
3943
3943
  } = t, n = Xe(t, [
3944
3944
  "locale"
3945
3945
  ]);
3946
- return Ao(Yt({ locale: r }, n));
3947
- }, Mo = (e = {}) => {
3946
+ return No(Jt({ locale: r }, n));
3947
+ }, Oo = (e = {}) => {
3948
3948
  var t = e, {
3949
3949
  locale: r = Ne()
3950
3950
  } = t, n = Xe(t, [
3951
3951
  "locale"
3952
3952
  ]);
3953
- return No(Yt({ locale: r }, n));
3954
- }, Oo = (e = {}) => {
3953
+ return Io(Jt({ locale: r }, n));
3954
+ }, ko = (e = {}) => {
3955
3955
  var t = e, {
3956
3956
  locale: r = Ne()
3957
3957
  } = t, n = Xe(t, [
3958
3958
  "locale"
3959
3959
  ]);
3960
- return Io(Yt({ locale: r }, n));
3961
- }, ko = Et(
3960
+ return Bo(Jt({ locale: r }, n));
3961
+ }, Uo = Et(
3962
3962
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3963
- (e, t = Ne()) => new uo(e, t, Ge().formats, {
3963
+ (e, t = Ne()) => new co(e, t, Ge().formats, {
3964
3964
  ignoreTag: Ge().ignoreTag
3965
3965
  })
3966
- ), Uo = (e, t = {}) => {
3966
+ ), Do = (e, t = {}) => {
3967
3967
  var r, n, i, o;
3968
3968
  let s = t;
3969
3969
  typeof e == "object" && (s = e, e = s.id);
3970
3970
  const {
3971
3971
  values: a,
3972
3972
  locale: d = Ne(),
3973
- default: l
3973
+ default: u
3974
3974
  } = s;
3975
3975
  if (d == null)
3976
3976
  throw new Error(
3977
3977
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3978
3978
  );
3979
- let u = rn(e, d);
3980
- if (!u)
3981
- u = (o = (i = (n = (r = Ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: d, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3982
- else if (typeof u != "string")
3979
+ let l = nn(e, d);
3980
+ if (!l)
3981
+ l = (o = (i = (n = (r = Ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: d, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3982
+ else if (typeof l != "string")
3983
3983
  return console.warn(
3984
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3985
- ), u;
3984
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3985
+ ), l;
3986
3986
  if (!a)
3987
- return u;
3988
- let c = u;
3987
+ return l;
3988
+ let c = l;
3989
3989
  try {
3990
- c = ko(u, d).format(a);
3990
+ c = Uo(l, d).format(a);
3991
3991
  } catch (f) {
3992
3992
  f instanceof Error && console.warn(
3993
3993
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3995,29 +3995,29 @@ const nt = (e, t) => {
3995
3995
  );
3996
3996
  }
3997
3997
  return c;
3998
- }, Do = (e, t) => Oo(t).format(e), Fo = (e, t) => Mo(t).format(e), jo = (e, t) => Bo(t).format(e), zo = (e, t = Ne()) => rn(e, t), Go = Ve([Ce, qe], () => Uo);
3999
- Ve([Ce], () => Do);
4000
- Ve([Ce], () => Fo);
4001
- Ve([Ce], () => jo);
4002
- Ve([Ce, qe], () => zo);
4003
- function $o({ withLocale: e, translations: t }) {
4004
- Ce.subscribe((r) => {
4005
- r == null && (qe.set(t), Ce.set(e));
3998
+ }, Fo = (e, t) => ko(t).format(e), jo = (e, t) => Oo(t).format(e), zo = (e, t) => Mo(t).format(e), Go = (e, t = Ne()) => nn(e, t), $o = Ve([Te, qe], () => Do);
3999
+ Ve([Te], () => Fo);
4000
+ Ve([Te], () => jo);
4001
+ Ve([Te], () => zo);
4002
+ Ve([Te, qe], () => Go);
4003
+ function Vo({ withLocale: e, translations: t }) {
4004
+ Te.subscribe((r) => {
4005
+ r == null && (qe.set(t), Te.set(e));
4006
4006
  });
4007
4007
  }
4008
- function gr(e, t) {
4009
- on(e, t);
4008
+ function vr(e, t) {
4009
+ sn(e, t);
4010
4010
  }
4011
- function Vo(e) {
4012
- Ce.set(e);
4011
+ function qo(e) {
4012
+ Te.set(e);
4013
4013
  }
4014
- function qo(e, t) {
4014
+ function Xo(e, t) {
4015
4015
  if (e) {
4016
4016
  const r = document.createElement("style");
4017
4017
  r.innerHTML = t, e.appendChild(r);
4018
4018
  }
4019
4019
  }
4020
- function Xo(e, t) {
4020
+ function Wo(e, t) {
4021
4021
  const r = new URL(t);
4022
4022
  fetch(r.href).then((n) => n.text()).then((n) => {
4023
4023
  const i = document.createElement("style");
@@ -4026,7 +4026,7 @@ function Xo(e, t) {
4026
4026
  console.error("There was an error while trying to load client styling from URL", n);
4027
4027
  });
4028
4028
  }
4029
- function Wo(e, t, r) {
4029
+ function Zo(e, t, r) {
4030
4030
  if (window.emMessageBus) {
4031
4031
  const n = document.createElement("style");
4032
4032
  window.emMessageBus.subscribe(t, (i) => {
@@ -4034,7 +4034,7 @@ function Wo(e, t, r) {
4034
4034
  });
4035
4035
  }
4036
4036
  }
4037
- const vr = {
4037
+ const yr = {
4038
4038
  en: {
4039
4039
  resetTitle: "Reset your password",
4040
4040
  resetSubtitle: "Follow the steps below to securely reset your password.",
@@ -4441,94 +4441,94 @@ const vr = {
4441
4441
  couldNotUpdatePassword: "Could not update password. Please try again."
4442
4442
  }
4443
4443
  };
4444
- class yr extends Error {
4444
+ class wr extends Error {
4445
4445
  constructor(t, r, n) {
4446
4446
  super(r), this.status = t, this.payload = n;
4447
4447
  }
4448
4448
  }
4449
- function Jt(e) {
4449
+ function Qt(e) {
4450
4450
  return `reset_attempts_${e}`;
4451
4451
  }
4452
- function wr(e, t) {
4452
+ function _r(e, t) {
4453
4453
  try {
4454
- localStorage.setItem(Jt(e), String(t));
4454
+ localStorage.setItem(Qt(e), String(t));
4455
4455
  } catch {
4456
4456
  }
4457
4457
  }
4458
- function Zo(e) {
4458
+ function Yo(e) {
4459
4459
  try {
4460
- const t = localStorage.getItem(Jt(e));
4460
+ const t = localStorage.getItem(Qt(e));
4461
4461
  return t != null ? Math.max(0, parseInt(t, 10)) : null;
4462
4462
  } catch {
4463
4463
  return null;
4464
4464
  }
4465
4465
  }
4466
- function Yo(e) {
4466
+ function Jo(e) {
4467
4467
  try {
4468
- localStorage.removeItem(Jt(e));
4468
+ localStorage.removeItem(Qt(e));
4469
4469
  } catch {
4470
4470
  }
4471
4471
  }
4472
- function Jo(e) {
4473
- Ln(e, "svelte-1nua6jd", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.ResetPwdOverlay{position:fixed;inset:0;background:rgba(17, 24, 39, 0.6);display:grid;place-items:center;z-index:100}.ResetPwdCard{position:relative;width:min(92vw, 520px);background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8));color:var(--emw--color-typography-contrast);border-radius:var(--emw--border-radius-large, 16px);padding:20px;box-shadow:0 10px 30px rgba(0, 0, 0, 0.2)}.ResetPwdClose{position:absolute;top:10px;right:10px;width:20px;height:20px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background 120ms ease-in-out, filter 120ms ease-in-out}.ResetPwdClose:hover{background:rgba(0, 0, 0, 0.04);filter:brightness(1.02)}.ResetPwdClose:active{filter:brightness(0.98)}.ResetPwdTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semi-bold, 600);padding:0;margin:0 0 10px 0}.ResetPwdSub{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-weight:var(--emw--font-weight-light, 300);font-size:var(--emw--font-size-medium, 16px);padding:0;margin-bottom:10px}.ResetPwdStepTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-medium, 1rem);font-weight:var(--emw--font-weight-semi-bold, 700);padding:0;margin:0 0 5px 0}.ResetPwdHelp{font-size:var(--emw--font-size-medium, 14px);color:#4b5563;margin-bottom:20px}.ResetPwdRow{display:flex;gap:12px;align-items:flex-end;margin-bottom:8px;flex-wrap:wrap}.ResetPwdField{display:flex;flex-direction:column;min-width:0;position:relative}.ResetPwdFieldPrefix{flex:0 1 100px}.ResetPwdFieldPhone{flex:1 1 160px}vaadin-combo-box{width:100%;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-small, 6px);font-size:var(--emw--font-size-medium, 16px);background:transparent;color:inherit}vaadin-combo-box input{width:100%;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}vaadin-combo-box-overlay{z-index:101}.ResetPwdFieldCode{flex:1 1 100%}.ResetPwdFieldMeta{flex:1 1 auto;min-width:200px}.ResetPwdMetaRow{display:flex;gap:12px;justify-content:space-between;margin-bottom:4px;flex-wrap:wrap}.ResetPwdMeta{font-size:var(--emw--font-size-xtra-small, 10px);color:#4b5563}.ResetPwdLabel{display:block;font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPwdInput{width:100%;background:transparent;color:inherit;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:6px 12px;box-sizing:border-box;font-size:var(--emw--font-size-medium, 14px);line-height:18px}.ResetPwdInput::placeholder{color:#4b5563}.ResetPwdInput:focus{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPwdInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdCodeGroup{display:flex;gap:12px}.ResetPwdCodeInput{width:32px;height:32px;text-align:center;font-size:var(--emw--font-size-medium, 16px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-medium, 10px);background:transparent;color:inherit}.ResetPwdCodeInput:focus{outline:none;border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));box-shadow:0 0 0 2px rgba(17, 24, 39, 0.08)}.ResetPwdCodeInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdErrors{margin-top:8px;margin-bottom:8px}.ResetPwdError{color:var(--emw--color-error, #b91c1c);font-size:var(--emw--font-size-xtra-small, 9px)}.ResetPwdError+.ResetPwdError{margin-top:4px}.ResetPwdHint{color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:8px 12px;border-radius:var(--emw--border-radius-medium, 10px);font-size:var(--emw--font-size-xtra-small, 9px);margin-top:4px}.ResetPwdButton{width:100%;margin-top:20px;font-family:var(--emw--button-typography, inherit);background:var(--emw--color-primary, #000000);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));border:none;border-radius:var(--emw--button-border-radius, 6px);padding:10px;font-size:var(--emw--font-size-small, 14px);cursor:pointer;transition:filter 120ms ease-in-out}.ResetPwdButton:hover{filter:brightness(1.02)}.ResetPwdButton:active{filter:brightness(0.98)}.ResetPwdButton:disabled{opacity:0.6;cursor:not-allowed}.ResetPwdLink{color:var(--emw--color-typography-contrast);cursor:pointer;background:transparent;text-decoration:underline;border:none;padding:8px 0;font-size:var(--emw--font-size-xtra-small, 10px)}.ResetPwdLink[disabled],.ResetPwdLink[aria-disabled=true]{opacity:0.6;cursor:not-allowed;text-decoration:none}@media(min-width: 768px){.ResetPwdFieldPrefix{flex:0 1 140px}.ResetPwdFieldPhone{flex:1 1 200px}.ResetPwdCodeInput{width:48px;height:48px}}@media(prefers-reduced-motion: reduce){.ResetPwdOverlay,.ResetPwdCard{transition:none !important;animation:none !important}}");
4472
+ function Qo(e) {
4473
+ Hn(e, "svelte-1nua6jd", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.ResetPwdOverlay{position:fixed;inset:0;background:rgba(17, 24, 39, 0.6);display:grid;place-items:center;z-index:100}.ResetPwdCard{position:relative;width:min(92vw, 520px);background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8));color:var(--emw--color-typography-contrast);border-radius:var(--emw--border-radius-large, 16px);padding:20px;box-shadow:0 10px 30px rgba(0, 0, 0, 0.2)}.ResetPwdClose{position:absolute;top:10px;right:10px;width:20px;height:20px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background 120ms ease-in-out, filter 120ms ease-in-out}.ResetPwdClose:hover{background:rgba(0, 0, 0, 0.04);filter:brightness(1.02)}.ResetPwdClose:active{filter:brightness(0.98)}.ResetPwdTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semi-bold, 600);padding:0;margin:0 0 10px 0}.ResetPwdSub{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-weight:var(--emw--font-weight-light, 300);font-size:var(--emw--font-size-medium, 16px);padding:0;margin-bottom:10px}.ResetPwdStepTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-medium, 1rem);font-weight:var(--emw--font-weight-semi-bold, 700);padding:0;margin:0 0 5px 0}.ResetPwdHelp{font-size:var(--emw--font-size-medium, 14px);color:#4b5563;margin-bottom:20px}.ResetPwdRow{display:flex;gap:12px;align-items:flex-end;margin-bottom:8px;flex-wrap:wrap}.ResetPwdField{display:flex;flex-direction:column;min-width:0;position:relative}.ResetPwdFieldPrefix{flex:0 1 100px}.ResetPwdFieldPhone{flex:1 1 160px}vaadin-combo-box{width:100%;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-small, 6px);font-size:var(--emw--font-size-medium, 16px);background:transparent;color:inherit}vaadin-combo-box input{width:100%;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}vaadin-combo-box-overlay{z-index:101}.ResetPwdFieldCode{flex:1 1 100%}.ResetPwdFieldMeta{flex:1 1 auto;min-width:200px}.ResetPwdMetaRow{display:flex;gap:12px;justify-content:space-between;margin-bottom:4px;flex-wrap:wrap}.ResetPwdMeta{font-size:var(--emw--font-size-xtra-small, 10px);color:#4b5563}.ResetPwdLabel{display:block;font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPwdInput{width:100%;background:transparent;color:inherit;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:6px 12px;box-sizing:border-box;font-size:var(--emw--font-size-medium, 14px);line-height:18px}.ResetPwdInput::placeholder{color:#4b5563}.ResetPwdInput:focus{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPwdInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdCodeGroup{display:flex;gap:12px}.ResetPwdCodeInput{width:32px;height:32px;text-align:center;font-size:var(--emw--font-size-medium, 16px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-medium, 10px);background:transparent;color:inherit}.ResetPwdCodeInput:focus{outline:none;border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));box-shadow:0 0 0 2px rgba(17, 24, 39, 0.08)}.ResetPwdCodeInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdErrors{margin-top:8px;margin-bottom:8px}.ResetPwdError{color:var(--emw--color-error, #b91c1c);font-size:var(--emw--font-size-xtra-small, 9px)}.ResetPwdError+.ResetPwdError{margin-top:4px}.ResetPwdHint{color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:8px 12px;border-radius:var(--emw--border-radius-medium, 10px);font-size:var(--emw--font-size-xtra-small, 9px);margin-top:4px}.ResetPwdButton{width:100%;margin-top:20px;font-family:var(--emw--button-typography, inherit);background:var(--emw--color-primary, #000000);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));border:none;border-radius:var(--emw--button-border-radius, 6px);padding:10px;font-size:var(--emw--font-size-small, 14px);cursor:pointer;transition:filter 120ms ease-in-out}.ResetPwdButton:hover{filter:brightness(1.02)}.ResetPwdButton:active{filter:brightness(0.98)}.ResetPwdButton:disabled{opacity:0.6;cursor:not-allowed}.ResetPwdLink{color:var(--emw--color-typography-contrast);cursor:pointer;background:transparent;text-decoration:underline;border:none;padding:8px 0;font-size:var(--emw--font-size-xtra-small, 10px)}.ResetPwdLink[disabled],.ResetPwdLink[aria-disabled=true]{opacity:0.6;cursor:not-allowed;text-decoration:none}@media(min-width: 768px){.ResetPwdFieldPrefix{flex:0 1 140px}.ResetPwdFieldPhone{flex:1 1 200px}.ResetPwdCodeInput{width:48px;height:48px}}@media(prefers-reduced-motion: reduce){.ResetPwdOverlay,.ResetPwdCard{transition:none !important;animation:none !important}}");
4474
4474
  }
4475
- function _r(e, t, r) {
4475
+ function Pr(e, t, r) {
4476
4476
  const n = e.slice();
4477
- return n[71] = t[r], n[72] = t, n[73] = r, n;
4477
+ return n[72] = t[r], n[73] = t, n[74] = r, n;
4478
4478
  }
4479
- function Pr(e) {
4480
- let t, r, n, i, o, s, a, d, l = (
4479
+ function xr(e) {
4480
+ let t, r, n, i, o, s, a, d, u = (
4481
4481
  /*$_*/
4482
4482
  e[10]("resetTitle") + ""
4483
- ), u, c, f, g = (
4483
+ ), l, c, f, g = (
4484
4484
  /*$_*/
4485
4485
  e[10]("resetSubtitle") + ""
4486
- ), b, y, _, S, x, w, H, T, D, C = (
4486
+ ), b, y, _, S, x, w, H, C, F, T = (
4487
4487
  /*step*/
4488
- e[2] === "phone" && xr(e)
4488
+ e[2] === "phone" && Er(e)
4489
4489
  ), L = (
4490
4490
  /*step*/
4491
4491
  e[2] === "code" && Tr(e)
4492
4492
  );
4493
4493
  return {
4494
4494
  c() {
4495
- t = P("div"), r = P("div"), n = P("button"), i = M("×"), a = V(), d = P("h2"), u = M(l), c = V(), f = P("p"), b = M(g), y = V(), C && C.c(), _ = V(), L && L.c(), h(n, "class", "ResetPwdClose"), h(n, "type", "button"), h(n, "aria-label", o = /*$_*/
4495
+ t = P("div"), r = P("div"), n = P("button"), i = M("×"), a = V(), d = P("h2"), l = M(u), c = V(), f = P("p"), b = M(g), y = V(), T && T.c(), _ = V(), L && L.c(), h(n, "class", "ResetPwdClose"), h(n, "type", "button"), h(n, "aria-label", o = /*$_*/
4496
4496
  e[10]("close")), h(n, "title", s = /*$_*/
4497
4497
  e[10]("close")), h(d, "id", "ResetPwdTitle"), h(d, "class", "ResetPwdTitle"), h(f, "class", "ResetPwdSub"), h(r, "class", "ResetPwdCard"), h(t, "class", "ResetPwdOverlay"), h(t, "role", "dialog"), h(t, "aria-modal", "true"), h(t, "aria-labelledby", "ResetPwdTitle");
4498
4498
  },
4499
- m(B, W) {
4500
- te(B, t, W), m(t, r), m(r, n), m(n, i), m(r, a), m(r, d), m(d, u), m(r, c), m(r, f), m(f, b), m(r, y), C && C.m(r, null), m(r, _), L && L.m(r, null), H = !0, T || (D = Se(
4499
+ m(B, Z) {
4500
+ te(B, t, Z), m(t, r), m(r, n), m(n, i), m(r, a), m(r, d), m(d, l), m(r, c), m(r, f), m(f, b), m(r, y), T && T.m(r, null), m(r, _), L && L.m(r, null), H = !0, C || (F = Se(
4501
4501
  n,
4502
4502
  "click",
4503
4503
  /*closeModal*/
4504
4504
  e[25]
4505
- ), T = !0);
4505
+ ), C = !0);
4506
4506
  },
4507
- p(B, W) {
4508
- e = B, (!H || W[0] & /*$_*/
4507
+ p(B, Z) {
4508
+ e = B, (!H || Z[0] & /*$_*/
4509
4509
  1024 && o !== (o = /*$_*/
4510
- e[10]("close"))) && h(n, "aria-label", o), (!H || W[0] & /*$_*/
4510
+ e[10]("close"))) && h(n, "aria-label", o), (!H || Z[0] & /*$_*/
4511
4511
  1024 && s !== (s = /*$_*/
4512
- e[10]("close"))) && h(n, "title", s), (!H || W[0] & /*$_*/
4513
- 1024) && l !== (l = /*$_*/
4514
- e[10]("resetTitle") + "") && X(u, l), (!H || W[0] & /*$_*/
4512
+ e[10]("close"))) && h(n, "title", s), (!H || Z[0] & /*$_*/
4513
+ 1024) && u !== (u = /*$_*/
4514
+ e[10]("resetTitle") + "") && W(l, u), (!H || Z[0] & /*$_*/
4515
4515
  1024) && g !== (g = /*$_*/
4516
- e[10]("resetSubtitle") + "") && X(b, g), /*step*/
4517
- e[2] === "phone" ? C ? C.p(e, W) : (C = xr(e), C.c(), C.m(r, _)) : C && (C.d(1), C = null), /*step*/
4518
- e[2] === "code" ? L ? L.p(e, W) : (L = Tr(e), L.c(), L.m(r, null)) : L && (L.d(1), L = null);
4516
+ e[10]("resetSubtitle") + "") && W(b, g), /*step*/
4517
+ e[2] === "phone" ? T ? T.p(e, Z) : (T = Er(e), T.c(), T.m(r, _)) : T && (T.d(1), T = null), /*step*/
4518
+ e[2] === "code" ? L ? L.p(e, Z) : (L = Tr(e), L.c(), L.m(r, null)) : L && (L.d(1), L = null);
4519
4519
  },
4520
4520
  i(B) {
4521
4521
  H || (B && de(() => {
4522
- H && (x && x.end(1), S = $n(
4522
+ H && (x && x.end(1), S = Vn(
4523
4523
  r,
4524
- nr,
4524
+ ir,
4525
4525
  /*cardIn*/
4526
4526
  e[23]
4527
4527
  ), S.start());
4528
4528
  }), B && de(() => {
4529
4529
  H && (w || (w = _e(
4530
4530
  t,
4531
- rr,
4531
+ nr,
4532
4532
  /*overlayFade*/
4533
4533
  e[22],
4534
4534
  !0
@@ -4536,35 +4536,35 @@ function Pr(e) {
4536
4536
  }), H = !0);
4537
4537
  },
4538
4538
  o(B) {
4539
- S && S.invalidate(), B && (x = Vn(
4539
+ S && S.invalidate(), B && (x = qn(
4540
4540
  r,
4541
- nr,
4541
+ ir,
4542
4542
  /*cardOut*/
4543
4543
  e[24]
4544
4544
  )), B && (w || (w = _e(
4545
4545
  t,
4546
- rr,
4546
+ nr,
4547
4547
  /*overlayFade*/
4548
4548
  e[22],
4549
4549
  !1
4550
4550
  )), w.run(0)), H = !1;
4551
4551
  },
4552
4552
  d(B) {
4553
- B && Z(t), C && C.d(), L && L.d(), B && x && x.end(), B && w && w.end(), T = !1, D();
4553
+ B && Y(t), T && T.d(), L && L.d(), B && x && x.end(), B && w && w.end(), C = !1, F();
4554
4554
  }
4555
4555
  };
4556
4556
  }
4557
- function xr(e) {
4557
+ function Er(e) {
4558
4558
  let t, r, n = (
4559
4559
  /*$_*/
4560
4560
  e[10]("enterPhoneHelp") + ""
4561
- ), i, o, s, a, d, l = (
4561
+ ), i, o, s, a, d, u = (
4562
4562
  /*$_*/
4563
4563
  e[10]("countryCodeLabel") + ""
4564
- ), u, c, f, g, b, y = (
4564
+ ), l, c, f, g, b, y = (
4565
4565
  /*$_*/
4566
4566
  e[10]("phoneLabel") + ""
4567
- ), _, S, x, w, H, T, D, C, L, B = (
4567
+ ), _, S, x, w, H, C, F, T, L, B = (
4568
4568
  /*loading*/
4569
4569
  (e[11] ? (
4570
4570
  /*$_*/
@@ -4573,23 +4573,23 @@ function xr(e) {
4573
4573
  /*$_*/
4574
4574
  e[10]("requestCode")
4575
4575
  )) + ""
4576
- ), W, pe, Pe;
4576
+ ), Z, pe, Pe;
4577
4577
  function Re(I, R) {
4578
4578
  return (
4579
4579
  /*phoneprefixeditable*/
4580
- I[0] === "true" ? Ko : Qo
4580
+ I[0] === "true" ? es : Ko
4581
4581
  );
4582
4582
  }
4583
- let ce = Re(e), j = ce(e), O = (
4583
+ let ce = Re(e), z = ce(e), O = (
4584
4584
  /*phoneError*/
4585
- e[15] && Er(e)
4585
+ e[15] && Sr(e)
4586
4586
  ), U = (
4587
4587
  /*phoneInfo*/
4588
- e[16] && Sr(e)
4588
+ e[16] && Cr(e)
4589
4589
  );
4590
4590
  return {
4591
4591
  c() {
4592
- t = P("section"), r = P("p"), i = M(n), o = V(), s = P("div"), a = P("div"), d = P("label"), u = M(l), c = V(), j.c(), f = V(), g = P("div"), b = P("label"), _ = M(y), S = V(), x = P("input"), H = V(), T = P("div"), O && O.c(), D = V(), U && U.c(), C = V(), L = P("button"), W = M(B), h(r, "class", "ResetPwdHelp"), h(d, "class", "ResetPwdLabel"), h(d, "for", "ResetPwdPrefix"), h(a, "class", "ResetPwdField ResetPwdFieldPrefix"), it(
4592
+ t = P("section"), r = P("p"), i = M(n), o = V(), s = P("div"), a = P("div"), d = P("label"), l = M(u), c = V(), z.c(), f = V(), g = P("div"), b = P("label"), _ = M(y), S = V(), x = P("input"), H = V(), C = P("div"), O && O.c(), F = V(), U && U.c(), T = V(), L = P("button"), Z = M(B), h(r, "class", "ResetPwdHelp"), h(d, "class", "ResetPwdLabel"), h(d, "for", "ResetPwdPrefix"), h(a, "class", "ResetPwdField ResetPwdFieldPrefix"), it(
4593
4593
  a,
4594
4594
  "ResetPwdFieldFilled",
4595
4595
  /*mobilePrefix*/
@@ -4600,15 +4600,15 @@ function xr(e) {
4600
4600
  "ResetPwdFieldFilled",
4601
4601
  /*phone*/
4602
4602
  e[3]
4603
- ), h(s, "class", "ResetPwdRow"), h(s, "aria-describedby", "ResetPwdRowErrorsPhone"), h(T, "id", "ResetPwdRowErrorsPhone"), h(T, "class", "ResetPwdErrors"), h(T, "role", "alert"), h(T, "aria-live", "assertive"), h(L, "class", "ResetPwdButton"), h(L, "type", "button"), L.disabled = /*loading*/
4603
+ ), h(s, "class", "ResetPwdRow"), h(s, "aria-describedby", "ResetPwdRowErrorsPhone"), h(C, "id", "ResetPwdRowErrorsPhone"), h(C, "class", "ResetPwdErrors"), h(C, "role", "alert"), h(C, "aria-live", "assertive"), h(L, "class", "ResetPwdButton"), h(L, "type", "button"), L.disabled = /*loading*/
4604
4604
  e[11], h(t, "class", "ResetPwdSection ResetPwdSectionPhone");
4605
4605
  },
4606
4606
  m(I, R) {
4607
- te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, u), m(a, c), j.m(a, null), m(s, f), m(s, g), m(g, b), m(b, _), m(g, S), m(g, x), dt(
4607
+ te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, l), m(a, c), z.m(a, null), m(s, f), m(s, g), m(g, b), m(b, _), m(g, S), m(g, x), dt(
4608
4608
  x,
4609
4609
  /*phone*/
4610
4610
  e[3]
4611
- ), m(t, H), m(t, T), O && O.m(T, null), m(T, D), U && U.m(T, null), m(t, C), m(t, L), m(L, W), pe || (Pe = [
4611
+ ), m(t, H), m(t, C), O && O.m(C, null), m(C, F), U && U.m(C, null), m(t, T), m(t, L), m(L, Z), pe || (Pe = [
4612
4612
  Se(
4613
4613
  x,
4614
4614
  "input",
@@ -4626,9 +4626,9 @@ function xr(e) {
4626
4626
  p(I, R) {
4627
4627
  R[0] & /*$_*/
4628
4628
  1024 && n !== (n = /*$_*/
4629
- I[10]("enterPhoneHelp") + "") && X(i, n), R[0] & /*$_*/
4630
- 1024 && l !== (l = /*$_*/
4631
- I[10]("countryCodeLabel") + "") && X(u, l), ce === (ce = Re(I)) && j ? j.p(I, R) : (j.d(1), j = ce(I), j && (j.c(), j.m(a, null))), R[0] & /*mobilePrefix*/
4629
+ I[10]("enterPhoneHelp") + "") && W(i, n), R[0] & /*$_*/
4630
+ 1024 && u !== (u = /*$_*/
4631
+ I[10]("countryCodeLabel") + "") && W(l, u), ce === (ce = Re(I)) && z ? z.p(I, R) : (z.d(1), z = ce(I), z && (z.c(), z.m(a, null))), R[0] & /*mobilePrefix*/
4632
4632
  16384 && it(
4633
4633
  a,
4634
4634
  "ResetPwdFieldFilled",
@@ -4636,7 +4636,7 @@ function xr(e) {
4636
4636
  I[14]
4637
4637
  ), R[0] & /*$_*/
4638
4638
  1024 && y !== (y = /*$_*/
4639
- I[10]("phoneLabel") + "") && X(_, y), R[0] & /*phoneError*/
4639
+ I[10]("phoneLabel") + "") && W(_, y), R[0] & /*phoneError*/
4640
4640
  32768 && w !== (w = /*phoneError*/
4641
4641
  I[15] ? "true" : "false") && h(x, "aria-invalid", w), R[0] & /*phone*/
4642
4642
  8 && dt(
@@ -4651,11 +4651,11 @@ function xr(e) {
4651
4651
  I[3]
4652
4652
  ), /*phoneError*/
4653
4653
  I[15] ? O ? (O.p(I, R), R[0] & /*phoneError*/
4654
- 32768 && ue(O, 1)) : (O = Er(I), O.c(), ue(O, 1), O.m(T, D)) : O && (et(), De(O, 1, 1, () => {
4654
+ 32768 && ue(O, 1)) : (O = Sr(I), O.c(), ue(O, 1), O.m(C, F)) : O && (et(), De(O, 1, 1, () => {
4655
4655
  O = null;
4656
4656
  }), tt()), /*phoneInfo*/
4657
4657
  I[16] ? U ? (U.p(I, R), R[0] & /*phoneInfo*/
4658
- 65536 && ue(U, 1)) : (U = Sr(I), U.c(), ue(U, 1), U.m(T, null)) : U && (et(), De(U, 1, 1, () => {
4658
+ 65536 && ue(U, 1)) : (U = Cr(I), U.c(), ue(U, 1), U.m(C, null)) : U && (et(), De(U, 1, 1, () => {
4659
4659
  U = null;
4660
4660
  }), tt()), R[0] & /*loading, $_*/
4661
4661
  3072 && B !== (B = /*loading*/
@@ -4665,16 +4665,16 @@ function xr(e) {
4665
4665
  ) : (
4666
4666
  /*$_*/
4667
4667
  I[10]("requestCode")
4668
- )) + "") && X(W, B), R[0] & /*loading*/
4668
+ )) + "") && W(Z, B), R[0] & /*loading*/
4669
4669
  2048 && (L.disabled = /*loading*/
4670
4670
  I[11]);
4671
4671
  },
4672
4672
  d(I) {
4673
- I && Z(t), j.d(), O && O.d(), U && U.d(), pe = !1, he(Pe);
4673
+ I && Y(t), z.d(), O && O.d(), U && U.d(), pe = !1, he(Pe);
4674
4674
  }
4675
4675
  };
4676
4676
  }
4677
- function Qo(e) {
4677
+ function Ko(e) {
4678
4678
  let t, r, n, i;
4679
4679
  return {
4680
4680
  c() {
@@ -4705,11 +4705,11 @@ function Qo(e) {
4705
4705
  );
4706
4706
  },
4707
4707
  d(o) {
4708
- o && Z(t), n = !1, i();
4708
+ o && Y(t), n = !1, i();
4709
4709
  }
4710
4710
  };
4711
4711
  }
4712
- function Ko(e) {
4712
+ function es(e) {
4713
4713
  let t, r;
4714
4714
  return {
4715
4715
  c() {
@@ -4752,11 +4752,11 @@ function Ko(e) {
4752
4752
  n[10]("invalidPrefix")) && He(t, "errorMessage", r);
4753
4753
  },
4754
4754
  d(n) {
4755
- n && Z(t);
4755
+ n && Y(t);
4756
4756
  }
4757
4757
  };
4758
4758
  }
4759
- function Er(e) {
4759
+ function Sr(e) {
4760
4760
  let t, r, n, i;
4761
4761
  return {
4762
4762
  c() {
@@ -4770,7 +4770,7 @@ function Er(e) {
4770
4770
  },
4771
4771
  p(o, s) {
4772
4772
  (!i || s[0] & /*phoneError*/
4773
- 32768) && X(
4773
+ 32768) && W(
4774
4774
  r,
4775
4775
  /*phoneError*/
4776
4776
  o[15]
@@ -4778,18 +4778,18 @@ function Er(e) {
4778
4778
  },
4779
4779
  i(o) {
4780
4780
  i || (o && de(() => {
4781
- i && (n || (n = _e(t, Te, { amount: 5 }, !0)), n.run(1));
4781
+ i && (n || (n = _e(t, Ce, { amount: 5 }, !0)), n.run(1));
4782
4782
  }), i = !0);
4783
4783
  },
4784
4784
  o(o) {
4785
- o && (n || (n = _e(t, Te, { amount: 5 }, !1)), n.run(0)), i = !1;
4785
+ o && (n || (n = _e(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
4786
4786
  },
4787
4787
  d(o) {
4788
- o && Z(t), o && n && n.end();
4788
+ o && Y(t), o && n && n.end();
4789
4789
  }
4790
4790
  };
4791
4791
  }
4792
- function Sr(e) {
4792
+ function Cr(e) {
4793
4793
  let t, r, n, i;
4794
4794
  return {
4795
4795
  c() {
@@ -4803,7 +4803,7 @@ function Sr(e) {
4803
4803
  },
4804
4804
  p(o, s) {
4805
4805
  (!i || s[0] & /*phoneInfo*/
4806
- 65536) && X(
4806
+ 65536) && W(
4807
4807
  r,
4808
4808
  /*phoneInfo*/
4809
4809
  o[16]
@@ -4811,14 +4811,14 @@ function Sr(e) {
4811
4811
  },
4812
4812
  i(o) {
4813
4813
  i || (o && de(() => {
4814
- i && (n || (n = _e(t, Te, { amount: 5 }, !0)), n.run(1));
4814
+ i && (n || (n = _e(t, Ce, { amount: 5 }, !0)), n.run(1));
4815
4815
  }), i = !0);
4816
4816
  },
4817
4817
  o(o) {
4818
- o && (n || (n = _e(t, Te, { amount: 5 }, !1)), n.run(0)), i = !1;
4818
+ o && (n || (n = _e(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
4819
4819
  },
4820
4820
  d(o) {
4821
- o && Z(t), o && n && n.end();
4821
+ o && Y(t), o && n && n.end();
4822
4822
  }
4823
4823
  };
4824
4824
  }
@@ -4832,13 +4832,13 @@ function Tr(e) {
4832
4832
  /*codeLength*/
4833
4833
  e[26]
4834
4834
  )) + ""
4835
- ), d, l, u, c, f, g = (
4835
+ ), d, u, l, c, f, g = (
4836
4836
  /*$_*/
4837
4837
  e[10]("verificationCodeLabel") + ""
4838
- ), b, y, _, S, x, w, H, T, D, C, L, B, W, pe = (
4838
+ ), b, y, _, S, x, w, H, C, F, T, L, B, Z, pe = (
4839
4839
  /*$_*/
4840
4840
  e[10]("attemptsLeft") + ""
4841
- ), Pe, Re, ce, j, O, U, I, R, ne, ee, fe, me, Ie = (
4841
+ ), Pe, Re, ce, z, O, U, I, R, ne, q, fe, me, Ie = (
4842
4842
  /*loading*/
4843
4843
  (e[11] ? (
4844
4844
  /*$_*/
@@ -4847,58 +4847,58 @@ function Tr(e) {
4847
4847
  /*$_*/
4848
4848
  e[10]("submitCode")
4849
4849
  )) + ""
4850
- ), be, xe, ge, We, le = tr(Array(
4850
+ ), be, xe, ge, We, le = rr(Array(
4851
4851
  /*codeLength*/
4852
4852
  e[26]
4853
4853
  )), re = [];
4854
4854
  for (let v = 0; v < le.length; v += 1)
4855
- re[v] = Cr(_r(e, le, v));
4856
- let Y = (
4855
+ re[v] = Rr(Pr(e, le, v));
4856
+ let J = (
4857
4857
  /*codeError*/
4858
- e[17] && Rr(e)
4858
+ e[17] && Lr(e)
4859
4859
  ), k = (
4860
4860
  /*codeExpiredHint*/
4861
4861
  e[18] && /*remainingSeconds*/
4862
- e[9] === 0 && Lr(e)
4863
- ), q = (
4862
+ e[9] === 0 && Hr(e)
4863
+ ), X = (
4864
4864
  /*expiresAt*/
4865
- e[5] && Hr(e)
4865
+ e[5] && Ar(e)
4866
4866
  );
4867
- function J(v, z) {
4867
+ function Q(v, G) {
4868
4868
  return (
4869
4869
  /*canResendAt*/
4870
4870
  v[6] && /*now*/
4871
4871
  v[7] < /*canResendAt*/
4872
- v[6] ? ts : es
4872
+ v[6] ? rs : ts
4873
4873
  );
4874
4874
  }
4875
- let Le = J(e), se = Le(e);
4875
+ let Le = Q(e), se = Le(e);
4876
4876
  return {
4877
4877
  c() {
4878
- t = P("section"), r = P("h3"), i = M(n), o = V(), s = P("p"), d = M(a), l = V(), u = P("div"), c = P("div"), f = P("label"), b = M(g), y = V(), _ = P("div");
4878
+ t = P("section"), r = P("h3"), i = M(n), o = V(), s = P("p"), d = M(a), u = V(), l = P("div"), c = P("div"), f = P("label"), b = M(g), y = V(), _ = P("div");
4879
4879
  for (let v = 0; v < re.length; v += 1)
4880
4880
  re[v].c();
4881
- x = V(), w = P("div"), Y && Y.c(), H = V(), k && k.c(), T = V(), D = P("div"), C = P("div"), L = P("div"), B = P("span"), W = P("strong"), Pe = M(pe), Re = M(":"), ce = V(), j = P("span"), O = M(
4881
+ x = V(), w = P("div"), J && J.c(), H = V(), k && k.c(), C = V(), F = P("div"), T = P("div"), L = P("div"), B = P("span"), Z = P("strong"), Pe = M(pe), Re = M(":"), ce = V(), z = P("span"), O = M(
4882
4882
  /*attemptsRemaining*/
4883
4883
  e[4]
4884
- ), U = V(), q && q.c(), I = V(), R = P("button"), se.c(), fe = V(), me = P("button"), be = M(Ie), h(r, "id", "ResetPwdCodeTitle"), h(r, "class", "ResetPwdStepTitle"), h(s, "class", "ResetPwdHelp"), h(f, "class", "ResetPwdLabel"), h(f, "for", "ResetPwdCode"), h(_, "class", "ResetPwdCodeGroup"), h(_, "role", "group"), h(_, "aria-label", S = /*$_*/
4885
- e[10]("verificationCodeLabel")), h(c, "class", "ResetPwdField ResetPwdFieldCode"), h(u, "class", "ResetPwdRow"), h(u, "aria-describedby", "ResetPwdRowErrorsCode"), h(w, "id", "ResetPwdRowErrorsCode"), h(w, "class", "ResetPwdErrors"), h(w, "role", "alert"), h(w, "aria-live", "assertive"), h(j, "class", "ResetPwdAttempts"), h(B, "class", "ResetPwdMeta"), h(L, "class", "ResetPwdMetaRow"), h(R, "class", "ResetPwdLink"), h(R, "type", "button"), R.disabled = ne = /*loading*/
4884
+ ), U = V(), X && X.c(), I = V(), R = P("button"), se.c(), fe = V(), me = P("button"), be = M(Ie), h(r, "id", "ResetPwdCodeTitle"), h(r, "class", "ResetPwdStepTitle"), h(s, "class", "ResetPwdHelp"), h(f, "class", "ResetPwdLabel"), h(f, "for", "ResetPwdCode"), h(_, "class", "ResetPwdCodeGroup"), h(_, "role", "group"), h(_, "aria-label", S = /*$_*/
4885
+ e[10]("verificationCodeLabel")), h(c, "class", "ResetPwdField ResetPwdFieldCode"), h(l, "class", "ResetPwdRow"), h(l, "aria-describedby", "ResetPwdRowErrorsCode"), h(w, "id", "ResetPwdRowErrorsCode"), h(w, "class", "ResetPwdErrors"), h(w, "role", "alert"), h(w, "aria-live", "assertive"), h(z, "class", "ResetPwdAttempts"), h(B, "class", "ResetPwdMeta"), h(L, "class", "ResetPwdMetaRow"), h(R, "class", "ResetPwdLink"), h(R, "type", "button"), R.disabled = ne = /*loading*/
4886
4886
  e[11] || /*canResendAt*/
4887
4887
  e[6] && /*now*/
4888
4888
  e[7] < /*canResendAt*/
4889
- e[6], h(R, "aria-disabled", ee = /*loading*/
4889
+ e[6], h(R, "aria-disabled", q = /*loading*/
4890
4890
  e[11] || /*canResendAt*/
4891
4891
  e[6] && /*now*/
4892
4892
  e[7] < /*canResendAt*/
4893
- e[6]), h(C, "class", "ResetPwdField ResetPwdFieldMeta"), h(D, "class", "ResetPwdRow"), h(D, "aria-describedby", "ResetPwdRowErrorsCode"), h(me, "class", "ResetPwdButton"), h(me, "type", "button"), me.disabled = xe = /*loading*/
4893
+ e[6]), h(T, "class", "ResetPwdField ResetPwdFieldMeta"), h(F, "class", "ResetPwdRow"), h(F, "aria-describedby", "ResetPwdRowErrorsCode"), h(me, "class", "ResetPwdButton"), h(me, "type", "button"), me.disabled = xe = /*loading*/
4894
4894
  e[11] || /*disableSubmitCode*/
4895
4895
  e[20], h(t, "class", "ResetPwdSection ResetPwdSectionCode"), h(t, "aria-labelledby", "ResetPwdCodeTitle");
4896
4896
  },
4897
- m(v, z) {
4898
- te(v, t, z), m(t, r), m(r, i), m(t, o), m(t, s), m(s, d), m(t, l), m(t, u), m(u, c), m(c, f), m(f, b), m(c, y), m(c, _);
4899
- for (let Q = 0; Q < re.length; Q += 1)
4900
- re[Q] && re[Q].m(_, null);
4901
- m(t, x), m(t, w), Y && Y.m(w, null), m(w, H), k && k.m(w, null), m(t, T), m(t, D), m(D, C), m(C, L), m(L, B), m(B, W), m(W, Pe), m(W, Re), m(B, ce), m(B, j), m(j, O), m(L, U), q && q.m(L, null), m(C, I), m(C, R), se.m(R, null), m(t, fe), m(t, me), m(me, be), ge || (We = [
4897
+ m(v, G) {
4898
+ te(v, t, G), m(t, r), m(r, i), m(t, o), m(t, s), m(s, d), m(t, u), m(t, l), m(l, c), m(c, f), m(f, b), m(c, y), m(c, _);
4899
+ for (let K = 0; K < re.length; K += 1)
4900
+ re[K] && re[K].m(_, null);
4901
+ m(t, x), m(t, w), J && J.m(w, null), m(w, H), k && k.m(w, null), m(t, C), m(t, F), m(F, T), m(T, L), m(L, B), m(B, Z), m(Z, Pe), m(Z, Re), m(B, ce), m(B, z), m(z, O), m(L, U), X && X.m(L, null), m(T, I), m(T, R), se.m(R, null), m(t, fe), m(t, me), m(me, be), ge || (We = [
4902
4902
  Se(
4903
4903
  R,
4904
4904
  "click",
@@ -4913,61 +4913,61 @@ function Tr(e) {
4913
4913
  )
4914
4914
  ], ge = !0);
4915
4915
  },
4916
- p(v, z) {
4917
- if (z[0] & /*$_*/
4916
+ p(v, G) {
4917
+ if (G[0] & /*$_*/
4918
4918
  1024 && n !== (n = /*$_*/
4919
- v[10]("enterCodeTitle") + "") && X(i, n), z[0] & /*$_*/
4919
+ v[10]("enterCodeTitle") + "") && W(i, n), G[0] & /*$_*/
4920
4920
  1024 && a !== (a = /*$_*/
4921
4921
  v[10]("codeSubtitle").replace("{n}", String(
4922
4922
  /*codeLength*/
4923
4923
  v[26]
4924
- )) + "") && X(d, a), z[0] & /*$_*/
4924
+ )) + "") && W(d, a), G[0] & /*$_*/
4925
4925
  1024 && g !== (g = /*$_*/
4926
- v[10]("verificationCodeLabel") + "") && X(b, g), z[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
4926
+ v[10]("verificationCodeLabel") + "") && W(b, g), G[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
4927
4927
  403308800) {
4928
- le = tr(Array(
4928
+ le = rr(Array(
4929
4929
  /*codeLength*/
4930
4930
  v[26]
4931
4931
  ));
4932
- let Q;
4933
- for (Q = 0; Q < le.length; Q += 1) {
4934
- const Ze = _r(v, le, Q);
4935
- re[Q] ? re[Q].p(Ze, z) : (re[Q] = Cr(Ze), re[Q].c(), re[Q].m(_, null));
4932
+ let K;
4933
+ for (K = 0; K < le.length; K += 1) {
4934
+ const Ze = Pr(v, le, K);
4935
+ re[K] ? re[K].p(Ze, G) : (re[K] = Rr(Ze), re[K].c(), re[K].m(_, null));
4936
4936
  }
4937
- for (; Q < re.length; Q += 1)
4938
- re[Q].d(1);
4937
+ for (; K < re.length; K += 1)
4938
+ re[K].d(1);
4939
4939
  re.length = le.length;
4940
4940
  }
4941
- z[0] & /*$_*/
4941
+ G[0] & /*$_*/
4942
4942
  1024 && S !== (S = /*$_*/
4943
4943
  v[10]("verificationCodeLabel")) && h(_, "aria-label", S), /*codeError*/
4944
- v[17] ? Y ? (Y.p(v, z), z[0] & /*codeError*/
4945
- 131072 && ue(Y, 1)) : (Y = Rr(v), Y.c(), ue(Y, 1), Y.m(w, H)) : Y && (et(), De(Y, 1, 1, () => {
4946
- Y = null;
4944
+ v[17] ? J ? (J.p(v, G), G[0] & /*codeError*/
4945
+ 131072 && ue(J, 1)) : (J = Lr(v), J.c(), ue(J, 1), J.m(w, H)) : J && (et(), De(J, 1, 1, () => {
4946
+ J = null;
4947
4947
  }), tt()), /*codeExpiredHint*/
4948
4948
  v[18] && /*remainingSeconds*/
4949
- v[9] === 0 ? k ? (k.p(v, z), z[0] & /*codeExpiredHint, remainingSeconds*/
4950
- 262656 && ue(k, 1)) : (k = Lr(v), k.c(), ue(k, 1), k.m(w, null)) : k && (et(), De(k, 1, 1, () => {
4949
+ v[9] === 0 ? k ? (k.p(v, G), G[0] & /*codeExpiredHint, remainingSeconds*/
4950
+ 262656 && ue(k, 1)) : (k = Hr(v), k.c(), ue(k, 1), k.m(w, null)) : k && (et(), De(k, 1, 1, () => {
4951
4951
  k = null;
4952
- }), tt()), z[0] & /*$_*/
4952
+ }), tt()), G[0] & /*$_*/
4953
4953
  1024 && pe !== (pe = /*$_*/
4954
- v[10]("attemptsLeft") + "") && X(Pe, pe), z[0] & /*attemptsRemaining*/
4955
- 16 && X(
4954
+ v[10]("attemptsLeft") + "") && W(Pe, pe), G[0] & /*attemptsRemaining*/
4955
+ 16 && W(
4956
4956
  O,
4957
4957
  /*attemptsRemaining*/
4958
4958
  v[4]
4959
4959
  ), /*expiresAt*/
4960
- v[5] ? q ? q.p(v, z) : (q = Hr(v), q.c(), q.m(L, null)) : q && (q.d(1), q = null), Le === (Le = J(v)) && se ? se.p(v, z) : (se.d(1), se = Le(v), se && (se.c(), se.m(R, null))), z[0] & /*loading, canResendAt, now*/
4960
+ v[5] ? X ? X.p(v, G) : (X = Ar(v), X.c(), X.m(L, null)) : X && (X.d(1), X = null), Le === (Le = Q(v)) && se ? se.p(v, G) : (se.d(1), se = Le(v), se && (se.c(), se.m(R, null))), G[0] & /*loading, canResendAt, now*/
4961
4961
  2240 && ne !== (ne = /*loading*/
4962
4962
  v[11] || /*canResendAt*/
4963
4963
  v[6] && /*now*/
4964
4964
  v[7] < /*canResendAt*/
4965
- v[6]) && (R.disabled = ne), z[0] & /*loading, canResendAt, now*/
4966
- 2240 && ee !== (ee = /*loading*/
4965
+ v[6]) && (R.disabled = ne), G[0] & /*loading, canResendAt, now*/
4966
+ 2240 && q !== (q = /*loading*/
4967
4967
  v[11] || /*canResendAt*/
4968
4968
  v[6] && /*now*/
4969
4969
  v[7] < /*canResendAt*/
4970
- v[6]) && h(R, "aria-disabled", ee), z[0] & /*loading, $_*/
4970
+ v[6]) && h(R, "aria-disabled", q), G[0] & /*loading, $_*/
4971
4971
  3072 && Ie !== (Ie = /*loading*/
4972
4972
  (v[11] ? (
4973
4973
  /*$_*/
@@ -4975,20 +4975,20 @@ function Tr(e) {
4975
4975
  ) : (
4976
4976
  /*$_*/
4977
4977
  v[10]("submitCode")
4978
- )) + "") && X(be, Ie), z[0] & /*loading, disableSubmitCode*/
4978
+ )) + "") && W(be, Ie), G[0] & /*loading, disableSubmitCode*/
4979
4979
  1050624 && xe !== (xe = /*loading*/
4980
4980
  v[11] || /*disableSubmitCode*/
4981
4981
  v[20]) && (me.disabled = xe);
4982
4982
  },
4983
4983
  d(v) {
4984
- v && Z(t), An(re, v), Y && Y.d(), k && k.d(), q && q.d(), se.d(), ge = !1, he(We);
4984
+ v && Y(t), Nn(re, v), J && J.d(), k && k.d(), X && X.d(), se.d(), ge = !1, he(We);
4985
4985
  }
4986
4986
  };
4987
4987
  }
4988
- function Cr(e) {
4988
+ function Rr(e) {
4989
4989
  let t, r, n, i = (
4990
4990
  /*index*/
4991
- e[73]
4991
+ e[74]
4992
4992
  ), o, s;
4993
4993
  const a = () => (
4994
4994
  /*input_binding*/
@@ -4997,22 +4997,22 @@ function Cr(e) {
4997
4997
  /*input_binding*/
4998
4998
  e[50](null, i)
4999
4999
  );
5000
- function l(...c) {
5000
+ function u(...c) {
5001
5001
  return (
5002
5002
  /*input_handler*/
5003
5003
  e[51](
5004
5004
  /*index*/
5005
- e[73],
5005
+ e[74],
5006
5006
  ...c
5007
5007
  )
5008
5008
  );
5009
5009
  }
5010
- function u(...c) {
5010
+ function l(...c) {
5011
5011
  return (
5012
5012
  /*keydown_handler*/
5013
5013
  e[52](
5014
5014
  /*index*/
5015
- e[73],
5015
+ e[74],
5016
5016
  ...c
5017
5017
  )
5018
5018
  );
@@ -5022,14 +5022,14 @@ function Cr(e) {
5022
5022
  t = P("input"), h(t, "class", "ResetPwdCodeInput"), h(t, "type", "text"), h(t, "maxlength", "1"), t.value = r = /*codeDigits*/
5023
5023
  e[8][
5024
5024
  /*index*/
5025
- e[73]
5025
+ e[74]
5026
5026
  ], h(t, "inputmode", "numeric"), h(t, "pattern", "\\d*"), h(t, "autocomplete", "one-time-code"), h(t, "placeholder", "•"), h(t, "aria-invalid", n = /*codeError*/
5027
5027
  e[17] ? "true" : "false");
5028
5028
  },
5029
5029
  m(c, f) {
5030
5030
  te(c, t, f), a(), o || (s = [
5031
- Se(t, "input", l),
5032
- Se(t, "keydown", u)
5031
+ Se(t, "input", u),
5032
+ Se(t, "keydown", l)
5033
5033
  ], o = !0);
5034
5034
  },
5035
5035
  p(c, f) {
@@ -5037,19 +5037,19 @@ function Cr(e) {
5037
5037
  256 && r !== (r = /*codeDigits*/
5038
5038
  e[8][
5039
5039
  /*index*/
5040
- e[73]
5040
+ e[74]
5041
5041
  ]) && t.value !== r && (t.value = r), f[0] & /*codeError*/
5042
5042
  131072 && n !== (n = /*codeError*/
5043
5043
  e[17] ? "true" : "false") && h(t, "aria-invalid", n), i !== /*index*/
5044
- e[73] && (d(), i = /*index*/
5045
- e[73], a());
5044
+ e[74] && (d(), i = /*index*/
5045
+ e[74], a());
5046
5046
  },
5047
5047
  d(c) {
5048
- c && Z(t), d(), o = !1, he(s);
5048
+ c && Y(t), d(), o = !1, he(s);
5049
5049
  }
5050
5050
  };
5051
5051
  }
5052
- function Rr(e) {
5052
+ function Lr(e) {
5053
5053
  let t, r, n, i;
5054
5054
  return {
5055
5055
  c() {
@@ -5063,7 +5063,7 @@ function Rr(e) {
5063
5063
  },
5064
5064
  p(o, s) {
5065
5065
  (!i || s[0] & /*codeError*/
5066
- 131072) && X(
5066
+ 131072) && W(
5067
5067
  r,
5068
5068
  /*codeError*/
5069
5069
  o[17]
@@ -5071,18 +5071,18 @@ function Rr(e) {
5071
5071
  },
5072
5072
  i(o) {
5073
5073
  i || (o && de(() => {
5074
- i && (n || (n = _e(t, Te, { amount: 5 }, !0)), n.run(1));
5074
+ i && (n || (n = _e(t, Ce, { amount: 5 }, !0)), n.run(1));
5075
5075
  }), i = !0);
5076
5076
  },
5077
5077
  o(o) {
5078
- o && (n || (n = _e(t, Te, { amount: 5 }, !1)), n.run(0)), i = !1;
5078
+ o && (n || (n = _e(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
5079
5079
  },
5080
5080
  d(o) {
5081
- o && Z(t), o && n && n.end();
5081
+ o && Y(t), o && n && n.end();
5082
5082
  }
5083
5083
  };
5084
5084
  }
5085
- function Lr(e) {
5085
+ function Hr(e) {
5086
5086
  let t, r, n, i;
5087
5087
  return {
5088
5088
  c() {
@@ -5096,7 +5096,7 @@ function Lr(e) {
5096
5096
  },
5097
5097
  p(o, s) {
5098
5098
  (!i || s[0] & /*codeExpiredHint*/
5099
- 262144) && X(
5099
+ 262144) && W(
5100
5100
  r,
5101
5101
  /*codeExpiredHint*/
5102
5102
  o[18]
@@ -5104,48 +5104,48 @@ function Lr(e) {
5104
5104
  },
5105
5105
  i(o) {
5106
5106
  i || (o && de(() => {
5107
- i && (n || (n = _e(t, Te, { amount: 5 }, !0)), n.run(1));
5107
+ i && (n || (n = _e(t, Ce, { amount: 5 }, !0)), n.run(1));
5108
5108
  }), i = !0);
5109
5109
  },
5110
5110
  o(o) {
5111
- o && (n || (n = _e(t, Te, { amount: 5 }, !1)), n.run(0)), i = !1;
5111
+ o && (n || (n = _e(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
5112
5112
  },
5113
5113
  d(o) {
5114
- o && Z(t), o && n && n.end();
5114
+ o && Y(t), o && n && n.end();
5115
5115
  }
5116
5116
  };
5117
5117
  }
5118
- function Hr(e) {
5118
+ function Ar(e) {
5119
5119
  let t, r, n = (
5120
5120
  /*$_*/
5121
5121
  e[10]("expiresIn") + ""
5122
- ), i, o, s, a, d, l;
5122
+ ), i, o, s, a, d, u;
5123
5123
  return {
5124
5124
  c() {
5125
5125
  t = P("span"), r = P("strong"), i = M(n), o = M(":"), s = V(), a = P("span"), d = M(
5126
5126
  /*remainingSeconds*/
5127
5127
  e[9]
5128
- ), l = M("s"), h(a, "class", "ResetPwdExpires"), h(t, "class", "ResetPwdMeta");
5128
+ ), u = M("s"), h(a, "class", "ResetPwdExpires"), h(t, "class", "ResetPwdMeta");
5129
5129
  },
5130
- m(u, c) {
5131
- te(u, t, c), m(t, r), m(r, i), m(r, o), m(t, s), m(t, a), m(a, d), m(a, l);
5130
+ m(l, c) {
5131
+ te(l, t, c), m(t, r), m(r, i), m(r, o), m(t, s), m(t, a), m(a, d), m(a, u);
5132
5132
  },
5133
- p(u, c) {
5133
+ p(l, c) {
5134
5134
  c[0] & /*$_*/
5135
5135
  1024 && n !== (n = /*$_*/
5136
- u[10]("expiresIn") + "") && X(i, n), c[0] & /*remainingSeconds*/
5137
- 512 && X(
5136
+ l[10]("expiresIn") + "") && W(i, n), c[0] & /*remainingSeconds*/
5137
+ 512 && W(
5138
5138
  d,
5139
5139
  /*remainingSeconds*/
5140
- u[9]
5140
+ l[9]
5141
5141
  );
5142
5142
  },
5143
- d(u) {
5144
- u && Z(t);
5143
+ d(l) {
5144
+ l && Y(t);
5145
5145
  }
5146
5146
  };
5147
5147
  }
5148
- function es(e) {
5148
+ function ts(e) {
5149
5149
  let t = (
5150
5150
  /*$_*/
5151
5151
  e[10]("resendCode") + ""
@@ -5160,14 +5160,14 @@ function es(e) {
5160
5160
  p(n, i) {
5161
5161
  i[0] & /*$_*/
5162
5162
  1024 && t !== (t = /*$_*/
5163
- n[10]("resendCode") + "") && X(r, t);
5163
+ n[10]("resendCode") + "") && W(r, t);
5164
5164
  },
5165
5165
  d(n) {
5166
- n && Z(r);
5166
+ n && Y(r);
5167
5167
  }
5168
5168
  };
5169
5169
  }
5170
- function ts(e) {
5170
+ function rs(e) {
5171
5171
  let t = (
5172
5172
  /*$_*/
5173
5173
  e[10]("resendCode") + ""
@@ -5179,28 +5179,28 @@ function ts(e) {
5179
5179
  e[21]
5180
5180
  ), s = M("s"), a = M(")"), h(i, "class", "ResetPwdResend");
5181
5181
  },
5182
- m(d, l) {
5183
- te(d, r, l), te(d, n, l), te(d, i, l), m(i, o), m(i, s), te(d, a, l);
5182
+ m(d, u) {
5183
+ te(d, r, u), te(d, n, u), te(d, i, u), m(i, o), m(i, s), te(d, a, u);
5184
5184
  },
5185
- p(d, l) {
5186
- l[0] & /*$_*/
5185
+ p(d, u) {
5186
+ u[0] & /*$_*/
5187
5187
  1024 && t !== (t = /*$_*/
5188
- d[10]("resendCode") + "") && X(r, t), l[0] & /*resendSeconds*/
5189
- 2097152 && X(
5188
+ d[10]("resendCode") + "") && W(r, t), u[0] & /*resendSeconds*/
5189
+ 2097152 && W(
5190
5190
  o,
5191
5191
  /*resendSeconds*/
5192
5192
  d[21]
5193
5193
  );
5194
5194
  },
5195
5195
  d(d) {
5196
- d && (Z(r), Z(n), Z(i), Z(a));
5196
+ d && (Y(r), Y(n), Y(i), Y(a));
5197
5197
  }
5198
5198
  };
5199
5199
  }
5200
- function rs(e) {
5200
+ function ns(e) {
5201
5201
  let t, r = (
5202
5202
  /*isModalOpen*/
5203
- e[12] && Pr(e)
5203
+ e[12] && xr(e)
5204
5204
  );
5205
5205
  return {
5206
5206
  c() {
@@ -5212,7 +5212,7 @@ function rs(e) {
5212
5212
  p(n, i) {
5213
5213
  /*isModalOpen*/
5214
5214
  n[12] ? r ? (r.p(n, i), i[0] & /*isModalOpen*/
5215
- 4096 && ue(r, 1)) : (r = Pr(n), r.c(), ue(r, 1), r.m(t, null)) : r && (et(), De(r, 1, 1, () => {
5215
+ 4096 && ue(r, 1)) : (r = xr(n), r.c(), ue(r, 1), r.m(t, null)) : r && (et(), De(r, 1, 1, () => {
5216
5216
  r = null;
5217
5217
  }), tt());
5218
5218
  },
@@ -5223,18 +5223,18 @@ function rs(e) {
5223
5223
  De(r);
5224
5224
  },
5225
5225
  d(n) {
5226
- n && Z(t), r && r.d(), e[53](null);
5226
+ n && Y(t), r && r.d(), e[53](null);
5227
5227
  }
5228
5228
  };
5229
5229
  }
5230
- function ns(e) {
5230
+ function is(e) {
5231
5231
  try {
5232
5232
  return JSON.parse(e);
5233
5233
  } catch {
5234
5234
  return;
5235
5235
  }
5236
5236
  }
5237
- function Ar(e, t = "error") {
5237
+ function Nr(e, t = "error") {
5238
5238
  window.postMessage(
5239
5239
  {
5240
5240
  type: "WidgetNotification",
@@ -5243,10 +5243,10 @@ function Ar(e, t = "error") {
5243
5243
  window.location.href
5244
5244
  );
5245
5245
  }
5246
- function is(e, t, r) {
5247
- let n, i, o, s, a, d, l, u;
5248
- Cn(e, Go, (p) => r(10, u = p));
5249
- let { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: y = "" } = t, { phoneprefixeditable: _ = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: x = "5" } = t, { smscodettl: w = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: T = "" } = t, { lang: D = "en" } = t, C, L = "phone", B = !1, W = !0;
5246
+ function os(e, t, r) {
5247
+ let n, i, o, s, a, d, u, l;
5248
+ Rn(e, $o, (p) => r(10, l = p));
5249
+ let { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: y = "" } = t, { phoneprefixeditable: _ = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: x = "5" } = t, { smscodettl: w = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: C = "" } = t, { lang: F = "en" } = t, T, L = "phone", B = !1, Z = !0;
5250
5250
  const pe = { duration: 140, easing: Tt }, Pe = {
5251
5251
  duration: 220,
5252
5252
  start: 0.96,
@@ -5256,7 +5256,7 @@ function is(e, t, r) {
5256
5256
  start: 1,
5257
5257
  easing: Tt
5258
5258
  };
5259
- let ce = [], j = "", O = "", U = "", I = "", R = null, ne = "", ee = "", fe = /^[\d\.]+$/.test(x) ? Number(x) : 5, me = Number(/^[\d\.]+$/.test(w) ? w : 5) * 60 * 1e3, Ie = Number(/^[\d\.]+$/.test(H) ? H : 1) * 60 * 1e3, be = null, xe = "", ge = null, We = null, le = Date.now();
5259
+ let ce = [], z = "", O = "", U = "", I = "", R = null, ne = "", q = "", fe = /^[\d\.]+$/.test(x) ? Number(x) : 5, me = Number(/^[\d\.]+$/.test(w) ? w : 5) * 60 * 1e3, Ie = Number(/^[\d\.]+$/.test(H) ? H : 1) * 60 * 1e3, be = null, xe = "", ge = null, We = null, le = Date.now();
5260
5260
  setInterval(
5261
5261
  () => {
5262
5262
  r(7, le = Date.now());
@@ -5274,105 +5274,108 @@ function is(e, t, r) {
5274
5274
  );
5275
5275
  } catch {
5276
5276
  }
5277
- r(12, W = !1);
5277
+ r(12, Z = !1);
5278
5278
  }
5279
- function Y(p) {
5279
+ function J(p) {
5280
5280
  return y ? (typeof y == "string" ? new RegExp(y) : y).test(p.trim()) : !1;
5281
5281
  }
5282
- let k = Number(S), q = [], J = Array(Number(k)).fill("");
5282
+ let k = Number(S), X = [], Q = Array(Number(k)).fill("");
5283
5283
  function Le(p, E) {
5284
- const G = p.target.value.replace(/\D/g, "");
5285
- if (G.length === 1)
5286
- r(8, J[E] = G, J), v(E);
5287
- else if (G.length > 1) {
5288
- const ve = G.split("").slice(0, k - E);
5289
- ve.forEach((En, Sn) => {
5290
- r(8, J[E + Sn] = En, J);
5291
- }), Q(E + ve.length - 1);
5284
+ const D = p.target.value.replace(/\D/g, "");
5285
+ if (D.length === 1)
5286
+ r(8, Q[E] = D, Q), v(E);
5287
+ else if (D.length > 1) {
5288
+ const ve = D.split("").slice(0, k - E);
5289
+ ve.forEach((Sn, Cn) => {
5290
+ r(8, Q[E + Cn] = Sn, Q);
5291
+ }), K(E + ve.length - 1);
5292
5292
  }
5293
- ne = J.join("");
5293
+ ne = Q.join("");
5294
5294
  }
5295
5295
  function se(p, E) {
5296
- p.key === "Backspace" ? J[E] ? r(8, J[E] = "", J) : E > 0 && (z(E), r(8, J[E - 1] = "", J)) : !/\d/.test(p.key) && p.key !== "Tab" && p.key.length === 1 && p.preventDefault();
5296
+ p.key === "Backspace" ? Q[E] ? r(8, Q[E] = "", Q) : E > 0 && (G(E), r(8, Q[E - 1] = "", Q)) : !/\d/.test(p.key) && p.key !== "Tab" && p.key.length === 1 && p.preventDefault();
5297
5297
  }
5298
5298
  function v(p) {
5299
- p < k - 1 && q[p + 1]?.focus();
5299
+ p < k - 1 && X[p + 1]?.focus();
5300
5300
  }
5301
- function z(p) {
5302
- p > 0 && q[p - 1]?.focus();
5301
+ function G(p) {
5302
+ p > 0 && X[p - 1]?.focus();
5303
5303
  }
5304
- function Q(p) {
5305
- p >= 0 && p < k && q[p]?.focus();
5304
+ function K(p) {
5305
+ p >= 0 && p < k && X[p]?.focus();
5306
5306
  }
5307
5307
  async function Ze(p, E) {
5308
- const K = await fetch(p, {
5308
+ const ee = await fetch(p, {
5309
5309
  method: "POST",
5310
5310
  headers: { "Content-Type": "application/json" },
5311
5311
  body: void 0
5312
- }), G = await K.text(), ve = G ? ns(G) : void 0;
5313
- if (!K.ok)
5314
- throw new yr(K.status, ve?.error ?? K.statusText, ve);
5312
+ }), D = await ee.text(), ve = D ? is(D) : void 0;
5313
+ if (!ee.ok)
5314
+ throw new wr(ee.status, ve?.error ?? ee.statusText, ve);
5315
5315
  return ve ?? {};
5316
5316
  }
5317
- async function dn(p) {
5318
- const { mobileNumber: E, mobilePrefix: K } = p, G = new URLSearchParams({ mobileNumber: E });
5319
- K && G.set("mobilePrefix", K);
5320
- const ve = `${T}/v1/player/resetPasswordByMobilePhone?${G.toString()}`;
5317
+ async function cn(p) {
5318
+ const { mobileNumber: E, mobilePrefix: ee } = p, D = new URLSearchParams({ mobileNumber: E });
5319
+ ee && D.set("mobilePrefix", ee);
5320
+ const ve = `${C}/v1/player/resetPasswordByMobilePhone?${D.toString()}`;
5321
5321
  return await Ze(ve);
5322
5322
  }
5323
- async function cn(p) {
5324
- const { tokenId: E, validationCode: K } = p, G = new URLSearchParams({ tokenId: E, validationCode: K }), ve = `${T}/v1/player/resetPasswordByMobilePhone/validate?${G.toString()}`;
5323
+ async function fn(p) {
5324
+ const { tokenId: E, validationCode: ee } = p, D = new URLSearchParams({ tokenId: E, validationCode: ee }), ve = `${C}/v1/player/resetPasswordByMobilePhone/validate?${D.toString()}`;
5325
5325
  return await Ze(ve);
5326
5326
  }
5327
- async function fn() {
5328
- const p = new URL(`${T}/v1/player/operatorSupportedPhoneCodes`), E = await fetch(p.href);
5327
+ async function hn() {
5328
+ const p = new URL(`${C}/v1/player/operatorSupportedPhoneCodes`), E = await fetch(p.href);
5329
5329
  try {
5330
- return (await E.json()).phoneCodes.map((G) => ({ label: G, value: G }));
5330
+ return (await E.json()).phoneCodes.map((D) => ({ label: D, value: D }));
5331
5331
  } catch {
5332
5332
  return [];
5333
5333
  }
5334
5334
  }
5335
- function hn(p) {
5335
+ function pn(p) {
5336
5336
  const E = p.target.value;
5337
5337
  r(14, O = E);
5338
5338
  }
5339
- async function Qt() {
5340
- r(15, U = ""), r(16, I = ""), r(17, ee = ""), r(11, B = !0);
5339
+ async function Kt() {
5340
+ r(15, U = ""), r(16, I = ""), r(17, q = ""), r(11, B = !0);
5341
5341
  try {
5342
- if (!Y(j)) {
5343
- r(15, U = u("invalidPhone"));
5342
+ if (!J(z)) {
5343
+ r(15, U = l("invalidPhone"));
5344
5344
  return;
5345
5345
  }
5346
- const p = await dn({
5347
- mobileNumber: j.trim(),
5346
+ const p = await cn({
5347
+ mobileNumber: z.trim(),
5348
5348
  mobilePrefix: O?.trim() || void 0
5349
5349
  });
5350
5350
  if (p?.tokenId) {
5351
- R = p.tokenId, r(5, be = Date.now() + me), r(6, ge = Date.now() + Ie), r(18, xe = ""), ne = "", r(8, J = Array.from({ length: k }, () => ""));
5352
- const E = Zo(R);
5353
- r(4, fe = E ?? Number(x)), wr(R, fe), r(2, L = "code");
5351
+ R = p.tokenId, r(5, be = Date.now() + me), r(6, ge = Date.now() + Ie), r(18, xe = ""), ne = "", r(8, Q = Array.from({ length: k }, () => ""));
5352
+ const E = Yo(R);
5353
+ r(4, fe = E ?? Number(x)), _r(R, fe), r(2, L = "code");
5354
5354
  } else
5355
- r(16, I = u("genericIfRegistered"));
5355
+ r(16, I = l("genericIfRegistered"));
5356
5356
  } catch (p) {
5357
- const { message: E, thirdPartyResponse: { message: K } = {} } = p;
5358
- r(15, U = K || E), Ar(U);
5357
+ const { message: E, thirdPartyResponse: { message: ee } = {} } = p;
5358
+ r(15, U = ee || E), Nr(U);
5359
5359
  } finally {
5360
5360
  r(11, B = !1);
5361
5361
  }
5362
5362
  }
5363
- async function pn() {
5364
- r(17, ee = ""), r(11, B = !0);
5363
+ function St() {
5364
+ r(4, fe = Math.max(0, fe - 1)), _r(R, fe);
5365
+ }
5366
+ async function mn() {
5367
+ r(17, q = ""), r(11, B = !0);
5365
5368
  try {
5366
5369
  if (!ne || ne.trim().length !== k || !/^\d+$/.test(ne.trim())) {
5367
- r(17, ee = u("enterDigitsCode").replace("{n}", String(k)));
5370
+ r(17, q = l("enterDigitsCode").replace("{n}", String(k)));
5368
5371
  return;
5369
5372
  }
5370
5373
  if (!R) {
5371
- r(17, ee = u("invalidRequest"));
5374
+ r(17, q = l("invalidRequest"));
5372
5375
  return;
5373
5376
  }
5374
- const p = await cn({ tokenId: R, validationCode: ne.trim() });
5375
- We = p.hashKey.charAt(0) === "/" ? p.hashKey.slice(1) : p.hashKey, r(2, L = "password"), Yo(R), window.postMessage(
5377
+ const p = await fn({ tokenId: R, validationCode: ne.trim() });
5378
+ We = p.hashKey.charAt(0) === "/" ? p.hashKey.slice(1) : p.hashKey, r(2, L = "password"), Jo(R), window.postMessage(
5376
5379
  {
5377
5380
  type: "SwitchToResetPasswordScreen",
5378
5381
  key: We
@@ -5380,113 +5383,117 @@ function is(e, t, r) {
5380
5383
  window.location.href
5381
5384
  );
5382
5385
  } catch (p) {
5383
- if (r(17, ee = u("unableToVerify")), p instanceof yr) {
5384
- const E = p.payload, K = p.status, G = (E?.error || "").toLowerCase();
5385
- switch (K) {
5386
+ if (r(17, q = l("unableToVerify")), p instanceof wr) {
5387
+ const E = p.payload, ee = p.status, D = (E?.error || "").toLowerCase();
5388
+ switch (ee) {
5386
5389
  case 400: {
5387
- G.includes("invalid validation code") ? (r(4, fe = Math.max(0, fe - 1)), wr(R, fe), r(17, ee = fe > 0 ? u("incorrectCode") : u("tooManyAttempts"))) : G.includes("expired") ? (r(17, ee = u("codeExpired")), r(18, xe = u("codeExpired")), r(5, be = null)) : G.includes("not valid") || G.includes("invalid token") ? r(17, ee = u("invalidRequest")) : r(17, ee = u("unableToVerify"));
5390
+ D.includes("invalid validation code") ? (St(), r(17, q = fe > 0 ? l("incorrectCode") : l("tooManyAttempts"))) : D.includes("expired") ? (r(17, q = l("codeExpired")), r(18, xe = l("codeExpired")), r(5, be = null)) : D.includes("not valid") || D.includes("invalid token") ? r(17, q = l("invalidRequest")) : r(17, q = l("unableToVerify"));
5391
+ break;
5392
+ }
5393
+ case 424: {
5394
+ D.includes("input is not match") ? (St(), r(17, q = l("incorrectCode"))) : D.includes("validation max attempts exceeded") ? (St(), r(17, q = l("tooManyAttempts"))) : r(17, q = l("unableToVerify"));
5388
5395
  break;
5389
5396
  }
5390
5397
  case 404: {
5391
- r(17, ee = u("sessionNotFound"));
5398
+ r(17, q = l("sessionNotFound"));
5392
5399
  break;
5393
5400
  }
5394
5401
  default: {
5395
- r(17, ee = u("unableToVerify"));
5402
+ r(17, q = l("unableToVerify"));
5396
5403
  break;
5397
5404
  }
5398
5405
  }
5399
- Ar(ee);
5406
+ Nr(q);
5400
5407
  }
5401
5408
  } finally {
5402
5409
  r(11, B = !1);
5403
5410
  }
5404
5411
  }
5405
- async function mn() {
5406
- B || ge && le < ge || await Qt();
5412
+ async function bn() {
5413
+ B || ge && le < ge || await Kt();
5407
5414
  }
5408
- $o({ withLocale: "en", translations: {} });
5409
- const bn = async (p) => {
5415
+ Vo({ withLocale: "en", translations: {} });
5416
+ const gn = async (p) => {
5410
5417
  try {
5411
5418
  const E = await fetch(p);
5412
5419
  if (!E.ok)
5413
5420
  throw new Error(`Fetch failed with status ${E.status}`);
5414
- const K = await E.json();
5415
- for (const G in K)
5416
- gr(G, K[G]);
5421
+ const ee = await E.json();
5422
+ for (const D in ee)
5423
+ vr(D, ee[D]);
5417
5424
  } catch (E) {
5418
5425
  console.error("Error fetching translation", E);
5419
5426
  }
5420
5427
  };
5421
- Object.keys(vr).forEach((p) => {
5422
- gr(p, vr[p]);
5428
+ Object.keys(yr).forEach((p) => {
5429
+ vr(p, yr[p]);
5423
5430
  });
5424
- const gn = () => {
5425
- Vo(D);
5431
+ const vn = () => {
5432
+ qo(F);
5426
5433
  };
5427
- Dn(async () => (r(13, ce = await fn()), r(14, O = ce?.[0]?.value), ne && ne.length === k && r(8, J = ne.split("")), () => {
5434
+ Fn(async () => (r(13, ce = await hn()), r(14, O = ce?.[0]?.value), ne && ne.length === k && r(8, Q = ne.split("")), () => {
5428
5435
  }));
5429
- function vn() {
5436
+ function yn() {
5430
5437
  O = this.value, r(14, O);
5431
5438
  }
5432
- function yn() {
5433
- j = this.value, r(3, j);
5439
+ function wn() {
5440
+ z = this.value, r(3, z);
5434
5441
  }
5435
- function wn(p, E) {
5442
+ function _n(p, E) {
5436
5443
  mt[p ? "unshift" : "push"](() => {
5437
- q[E] = p, r(19, q);
5444
+ X[E] = p, r(19, X);
5438
5445
  });
5439
5446
  }
5440
- const _n = (p, E) => Le(E, p), Pn = (p, E) => se(E, p);
5441
- function xn(p) {
5447
+ const Pn = (p, E) => Le(E, p), xn = (p, E) => se(E, p);
5448
+ function En(p) {
5442
5449
  mt[p ? "unshift" : "push"](() => {
5443
- C = p, r(1, C);
5450
+ T = p, r(1, T);
5444
5451
  });
5445
5452
  }
5446
5453
  return e.$$set = (p) => {
5447
- "clientstyling" in p && r(33, c = p.clientstyling), "clientstylingurl" in p && r(34, f = p.clientstylingurl), "translationurl" in p && r(35, g = p.translationurl), "mbsource" in p && r(36, b = p.mbsource), "phoneregex" in p && r(37, y = p.phoneregex), "phoneprefixeditable" in p && r(0, _ = p.phoneprefixeditable), "smscodelength" in p && r(38, S = p.smscodelength), "smscodemaxattempts" in p && r(39, x = p.smscodemaxattempts), "smscodettl" in p && r(40, w = p.smscodettl), "resenddelay" in p && r(41, H = p.resenddelay), "endpoint" in p && r(42, T = p.endpoint), "lang" in p && r(43, D = p.lang);
5454
+ "clientstyling" in p && r(33, c = p.clientstyling), "clientstylingurl" in p && r(34, f = p.clientstylingurl), "translationurl" in p && r(35, g = p.translationurl), "mbsource" in p && r(36, b = p.mbsource), "phoneregex" in p && r(37, y = p.phoneregex), "phoneprefixeditable" in p && r(0, _ = p.phoneprefixeditable), "smscodelength" in p && r(38, S = p.smscodelength), "smscodemaxattempts" in p && r(39, x = p.smscodemaxattempts), "smscodettl" in p && r(40, w = p.smscodettl), "resenddelay" in p && r(41, H = p.resenddelay), "endpoint" in p && r(42, C = p.endpoint), "lang" in p && r(43, F = p.lang);
5448
5455
  }, e.$$.update = () => {
5449
5456
  e.$$.dirty[0] & /*customStylingContainer*/
5450
5457
  2 | e.$$.dirty[1] & /*clientstyling*/
5451
- 4 && c && C && qo(C, c), e.$$.dirty[0] & /*customStylingContainer*/
5458
+ 4 && c && T && Xo(T, c), e.$$.dirty[0] & /*customStylingContainer*/
5452
5459
  2 | e.$$.dirty[1] & /*clientstylingurl*/
5453
- 8 && f && C && Xo(C, f), e.$$.dirty[0] & /*customStylingContainer*/
5460
+ 8 && f && T && Wo(T, f), e.$$.dirty[0] & /*customStylingContainer*/
5454
5461
  2 | e.$$.dirty[1] & /*mbsource*/
5455
- 32 && b && C && Wo(C, `${b}.Style`), e.$$.dirty[1] & /*lang*/
5456
- 4096 && D && gn(), e.$$.dirty[1] & /*translationurl*/
5457
- 16 && g && bn(g), e.$$.dirty[0] & /*expiresAt, now*/
5462
+ 32 && b && T && Zo(T, `${b}.Style`), e.$$.dirty[1] & /*lang*/
5463
+ 4096 && F && vn(), e.$$.dirty[1] & /*translationurl*/
5464
+ 16 && g && gn(g), e.$$.dirty[0] & /*expiresAt, now*/
5458
5465
  160 && r(9, n = be ? Math.max(0, Math.ceil((be - le) / 1e3)) : 0), e.$$.dirty[0] & /*canResendAt, now*/
5459
5466
  192 && r(21, i = ge ? Math.max(0, Math.ceil((ge - le) / 1e3)) : 0), e.$$.dirty[0] & /*expiresAt, remainingSeconds*/
5460
5467
  544 && r(44, o = !!be && n === 0), e.$$.dirty[0] & /*step, phone, $_*/
5461
- 1036 && r(15, U = L === "phone" && j ? Y(j) ? "" : u("invalidPhone") : ""), e.$$.dirty[0] & /*codeDigits*/
5462
- 256 && r(46, s = J.join("")), e.$$.dirty[0] & /*codeDigits*/
5463
- 256 && r(47, a = J.every((p) => /^\d$/.test(p))), e.$$.dirty[1] & /*isCodeFilled, codeCombined*/
5468
+ 1036 && r(15, U = L === "phone" && z ? J(z) ? "" : l("invalidPhone") : ""), e.$$.dirty[0] & /*codeDigits*/
5469
+ 256 && r(46, s = Q.join("")), e.$$.dirty[0] & /*codeDigits*/
5470
+ 256 && r(47, a = Q.every((p) => /^\d$/.test(p))), e.$$.dirty[1] & /*isCodeFilled, codeCombined*/
5464
5471
  98304 && r(45, d = a && s.length === k), e.$$.dirty[0] & /*codeDigits*/
5465
- 256 && (ne = J.join("")), e.$$.dirty[0] & /*attemptsRemaining*/
5472
+ 256 && (ne = Q.join("")), e.$$.dirty[0] & /*attemptsRemaining*/
5466
5473
  16 | e.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
5467
- 24576 && r(20, l = !d || o || fe <= 0);
5474
+ 24576 && r(20, u = !d || o || fe <= 0);
5468
5475
  }, [
5469
5476
  _,
5470
- C,
5477
+ T,
5471
5478
  L,
5472
- j,
5479
+ z,
5473
5480
  fe,
5474
5481
  be,
5475
5482
  ge,
5476
5483
  le,
5477
- J,
5484
+ Q,
5478
5485
  n,
5479
- u,
5486
+ l,
5480
5487
  B,
5481
- W,
5488
+ Z,
5482
5489
  ce,
5483
5490
  O,
5484
5491
  U,
5485
5492
  I,
5486
- ee,
5487
- xe,
5488
5493
  q,
5489
- l,
5494
+ xe,
5495
+ X,
5496
+ u,
5490
5497
  i,
5491
5498
  pe,
5492
5499
  Pe,
@@ -5495,10 +5502,10 @@ function is(e, t, r) {
5495
5502
  k,
5496
5503
  Le,
5497
5504
  se,
5498
- hn,
5499
- Qt,
5500
5505
  pn,
5506
+ Kt,
5501
5507
  mn,
5508
+ bn,
5502
5509
  c,
5503
5510
  f,
5504
5511
  g,
@@ -5508,28 +5515,28 @@ function is(e, t, r) {
5508
5515
  x,
5509
5516
  w,
5510
5517
  H,
5511
- T,
5512
- D,
5518
+ C,
5519
+ F,
5513
5520
  o,
5514
5521
  d,
5515
5522
  s,
5516
5523
  a,
5517
- vn,
5518
5524
  yn,
5519
5525
  wn,
5520
5526
  _n,
5521
5527
  Pn,
5522
- xn
5528
+ xn,
5529
+ En
5523
5530
  ];
5524
5531
  }
5525
- class os extends Jn {
5532
+ class ss extends Qn {
5526
5533
  constructor(t) {
5527
- super(), Zn(
5534
+ super(), Yn(
5528
5535
  this,
5529
5536
  t,
5530
- is,
5531
- rs,
5532
- Ir,
5537
+ os,
5538
+ ns,
5539
+ Br,
5533
5540
  {
5534
5541
  clientstyling: 33,
5535
5542
  clientstylingurl: 34,
@@ -5544,7 +5551,7 @@ class os extends Jn {
5544
5551
  endpoint: 42,
5545
5552
  lang: 43
5546
5553
  },
5547
- Jo,
5554
+ Qo,
5548
5555
  [-1, -1, -1]
5549
5556
  );
5550
5557
  }
@@ -5621,7 +5628,7 @@ class os extends Jn {
5621
5628
  this.$$set({ lang: t }), oe();
5622
5629
  }
5623
5630
  }
5624
- Yn(os, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
5631
+ Jn(ss, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
5625
5632
  export {
5626
- os as G
5633
+ ss as G
5627
5634
  };