@everymatrix/cashier-step-up 0.14.35 → 0.14.37

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,46 +1,46 @@
1
1
  function K() {
2
2
  }
3
- function er(e) {
3
+ function en(e) {
4
4
  return e();
5
5
  }
6
- function Mt() {
6
+ function Pt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ye(e) {
10
- e.forEach(er);
9
+ function ve(e) {
10
+ e.forEach(en);
11
11
  }
12
12
  function Tt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function tr(e, t) {
15
+ function tn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Fr(e) {
18
+ function jn(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function rr(e, ...t) {
21
+ function nn(e, ...t) {
22
22
  if (e == null) {
23
- for (const n of t)
24
- n(void 0);
23
+ for (const r of t)
24
+ r(void 0);
25
25
  return K;
26
26
  }
27
- const r = e.subscribe(...t);
28
- return r.unsubscribe ? () => r.unsubscribe() : r;
27
+ const n = e.subscribe(...t);
28
+ return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function jr(e, t, r) {
31
- e.$$.on_destroy.push(rr(t, r));
30
+ function Vn(e, t, n) {
31
+ e.$$.on_destroy.push(nn(t, n));
32
32
  }
33
- function y(e, t) {
33
+ function v(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Vr(e, t, r) {
37
- const n = $r(e);
38
- if (!n.getElementById(t)) {
36
+ function zn(e, t, n) {
37
+ const r = $n(e);
38
+ if (!r.getElementById(t)) {
39
39
  const i = O("style");
40
- i.id = t, i.textContent = r, zr(n, i);
40
+ i.id = t, i.textContent = n, Xn(r, i);
41
41
  }
42
42
  }
43
- function $r(e) {
43
+ function $n(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,27 +50,27 @@ function $r(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function zr(e, t) {
54
- return y(
53
+ function Xn(e, t) {
54
+ return v(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function C(e, t, r) {
61
- e.insertBefore(t, r || null);
60
+ function A(e, t, n) {
61
+ e.insertBefore(t, n || null);
62
62
  }
63
63
  function H(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Xr(e, t) {
67
- for (let r = 0; r < e.length; r += 1)
68
- e[r] && e[r].d(t);
66
+ function Wn(e, t) {
67
+ for (let n = 0; n < e.length; n += 1)
68
+ e[n] && e[n].d(t);
69
69
  }
70
70
  function O(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function re(e) {
73
+ function ne(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
76
  function k(e) {
@@ -79,31 +79,31 @@ function k(e) {
79
79
  function F() {
80
80
  return k(" ");
81
81
  }
82
- function Wr() {
82
+ function Zn() {
83
83
  return k("");
84
84
  }
85
- function ue(e, t, r, n) {
86
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
+ function ue(e, t, n, r) {
86
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function p(e, t, r) {
89
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
+ function p(e, t, n) {
89
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function Zr(e) {
91
+ function qn(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
94
  function j(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function ne(e, t, r) {
99
- e.classList.toggle(t, !!r);
98
+ function re(e, t, n) {
99
+ e.classList.toggle(t, !!n);
100
100
  }
101
- function qr(e) {
101
+ function Qn(e) {
102
102
  const t = {};
103
103
  return e.childNodes.forEach(
104
104
  /** @param {Element} node */
105
- (r) => {
106
- t[r.slot || "default"] = !0;
105
+ (n) => {
106
+ t[n.slot || "default"] = !0;
107
107
  }
108
108
  ), t;
109
109
  }
@@ -111,20 +111,20 @@ let Ge;
111
111
  function Ue(e) {
112
112
  Ge = e;
113
113
  }
114
- function Qr() {
114
+ function Jn() {
115
115
  if (!Ge)
116
116
  throw new Error("Function called outside component initialization");
117
117
  return Ge;
118
118
  }
119
- function Jr(e) {
120
- Qr().$$.on_mount.push(e);
119
+ function Yn(e) {
120
+ Jn().$$.on_mount.push(e);
121
121
  }
122
122
  const Se = [], Ze = [];
123
123
  let Oe = [];
124
- const Lt = [], Yr = /* @__PURE__ */ Promise.resolve();
124
+ const Lt = [], Kn = /* @__PURE__ */ Promise.resolve();
125
125
  let dt = !1;
126
- function Kr() {
127
- dt || (dt = !0, Yr.then(ie));
126
+ function er() {
127
+ dt || (dt = !0, Kn.then(ie));
128
128
  }
129
129
  function mt(e) {
130
130
  Oe.push(e);
@@ -139,7 +139,7 @@ function ie() {
139
139
  try {
140
140
  for (; xe < Se.length; ) {
141
141
  const t = Se[xe];
142
- xe++, Ue(t), en(t.$$);
142
+ xe++, Ue(t), tr(t.$$);
143
143
  }
144
144
  } catch (t) {
145
145
  throw Se.length = 0, xe = 0, t;
@@ -147,8 +147,8 @@ function ie() {
147
147
  for (Ue(null), Se.length = 0, xe = 0; Ze.length; )
148
148
  Ze.pop()();
149
149
  for (let t = 0; t < Oe.length; t += 1) {
150
- const r = Oe[t];
151
- at.has(r) || (at.add(r), r());
150
+ const n = Oe[t];
151
+ at.has(n) || (at.add(n), n());
152
152
  }
153
153
  Oe.length = 0;
154
154
  } while (Se.length);
@@ -156,39 +156,39 @@ function ie() {
156
156
  Lt.pop()();
157
157
  dt = !1, at.clear(), Ue(e);
158
158
  }
159
- function en(e) {
159
+ function tr(e) {
160
160
  if (e.fragment !== null) {
161
- e.update(), ye(e.before_update);
161
+ e.update(), ve(e.before_update);
162
162
  const t = e.dirty;
163
163
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(mt);
164
164
  }
165
165
  }
166
- function tn(e) {
167
- const t = [], r = [];
168
- Oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Oe = t;
166
+ function nr(e) {
167
+ const t = [], n = [];
168
+ Oe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Oe = t;
169
169
  }
170
- const rn = /* @__PURE__ */ new Set();
171
- function nn(e, t) {
172
- e && e.i && (rn.delete(e), e.i(t));
170
+ const rr = /* @__PURE__ */ new Set();
171
+ function ir(e, t) {
172
+ e && e.i && (rr.delete(e), e.i(t));
173
173
  }
174
174
  function It(e) {
175
175
  return e?.length !== void 0 ? e : Array.from(e);
176
176
  }
177
- function on(e, t, r) {
178
- const { fragment: n, after_update: i } = e.$$;
179
- n && n.m(t, r), mt(() => {
180
- const o = e.$$.on_mount.map(er).filter(Tt);
181
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ye(o), e.$$.on_mount = [];
177
+ function or(e, t, n) {
178
+ const { fragment: r, after_update: i } = e.$$;
179
+ r && r.m(t, n), mt(() => {
180
+ const o = e.$$.on_mount.map(en).filter(Tt);
181
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ve(o), e.$$.on_mount = [];
182
182
  }), i.forEach(mt);
183
183
  }
184
- function sn(e, t) {
185
- const r = e.$$;
186
- r.fragment !== null && (tn(r.after_update), ye(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
184
+ function sr(e, t) {
185
+ const n = e.$$;
186
+ n.fragment !== null && (nr(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
187
187
  }
188
- function an(e, t) {
189
- e.$$.dirty[0] === -1 && (Se.push(e), Kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
188
+ function ar(e, t) {
189
+ e.$$.dirty[0] === -1 && (Se.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
190
  }
191
- function ln(e, t, r, n, i, o, a = null, s = [-1]) {
191
+ function lr(e, t, n, r, i, o, a = null, s = [-1]) {
192
192
  const u = Ge;
193
193
  Ue(e);
194
194
  const l = e.$$ = {
@@ -198,7 +198,7 @@ function ln(e, t, r, n, i, o, a = null, s = [-1]) {
198
198
  props: o,
199
199
  update: K,
200
200
  not_equal: i,
201
- bound: Mt(),
201
+ bound: Pt(),
202
202
  // lifecycle
203
203
  on_mount: [],
204
204
  on_destroy: [],
@@ -207,28 +207,28 @@ function ln(e, t, r, n, i, o, a = null, s = [-1]) {
207
207
  after_update: [],
208
208
  context: new Map(t.context || (u ? u.$$.context : [])),
209
209
  // everything else
210
- callbacks: Mt(),
210
+ callbacks: Pt(),
211
211
  dirty: s,
212
212
  skip_bound: !1,
213
213
  root: t.target || u.$$.root
214
214
  };
215
215
  a && a(l.root);
216
216
  let h = !1;
217
- if (l.ctx = r ? r(e, t.props || {}, (c, d, ..._) => {
218
- const m = _.length ? _[0] : d;
219
- return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && an(e, c)), d;
220
- }) : [], l.update(), h = !0, ye(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
217
+ if (l.ctx = n ? n(e, t.props || {}, (c, d, ...y) => {
218
+ const m = y.length ? y[0] : d;
219
+ return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && ar(e, c)), d;
220
+ }) : [], l.update(), h = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
221
221
  if (t.hydrate) {
222
- const c = Zr(t.target);
222
+ const c = qn(t.target);
223
223
  l.fragment && l.fragment.l(c), c.forEach(H);
224
224
  } else
225
225
  l.fragment && l.fragment.c();
226
- t.intro && nn(e.$$.fragment), on(e, t.target, t.anchor), ie();
226
+ t.intro && ir(e.$$.fragment), or(e, t.target, t.anchor), ie();
227
227
  }
228
228
  Ue(u);
229
229
  }
230
- let nr;
231
- typeof HTMLElement == "function" && (nr = class extends HTMLElement {
230
+ let rn;
231
+ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
232
232
  /** The Svelte component constructor */
233
233
  $$ctor;
234
234
  /** Slots */
@@ -247,20 +247,20 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
247
247
  $$l = {};
248
248
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
249
249
  $$l_u = /* @__PURE__ */ new Map();
250
- constructor(e, t, r) {
251
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
250
+ constructor(e, t, n) {
251
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
252
252
  }
253
- addEventListener(e, t, r) {
253
+ addEventListener(e, t, n) {
254
254
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
255
- const n = this.$$c.$on(e, t);
256
- this.$$l_u.set(t, n);
255
+ const r = this.$$c.$on(e, t);
256
+ this.$$l_u.set(t, r);
257
257
  }
258
- super.addEventListener(e, t, r);
258
+ super.addEventListener(e, t, n);
259
259
  }
260
- removeEventListener(e, t, r) {
261
- if (super.removeEventListener(e, t, r), this.$$c) {
262
- const n = this.$$l_u.get(t);
263
- n && (n(), this.$$l_u.delete(t));
260
+ removeEventListener(e, t, n) {
261
+ if (super.removeEventListener(e, t, n), this.$$c) {
262
+ const r = this.$$l_u.get(t);
263
+ r && (r(), this.$$l_u.delete(t));
264
264
  }
265
265
  }
266
266
  async connectedCallback() {
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
277
277
  * @param {HTMLElement} [anchor]
278
278
  */
279
279
  m: function(u, l) {
280
- C(u, o, l);
280
+ A(u, o, l);
281
281
  },
282
282
  d: function(u) {
283
283
  u && H(o);
@@ -287,12 +287,12 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
287
287
  };
288
288
  if (await Promise.resolve(), !this.$$cn || this.$$c)
289
289
  return;
290
- const t = {}, r = qr(this);
290
+ const t = {}, n = Qn(this);
291
291
  for (const i of this.$$s)
292
- i in r && (t[i] = [e(i)]);
292
+ i in n && (t[i] = [e(i)]);
293
293
  for (const i of this.attributes) {
294
294
  const o = this.$$g_p(i.name);
295
- o in this.$$d || (this.$$d[o] = ze(o, i.value, this.$$p_d, "toProp"));
295
+ o in this.$$d || (this.$$d[o] = $e(o, i.value, this.$$p_d, "toProp"));
296
296
  }
297
297
  for (const i in this.$$p_d)
298
298
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -306,11 +306,11 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
306
306
  }
307
307
  }
308
308
  });
309
- const n = () => {
309
+ const r = () => {
310
310
  this.$$r = !0;
311
311
  for (const i in this.$$p_d)
312
312
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
313
- const o = ze(
313
+ const o = $e(
314
314
  i,
315
315
  this.$$d[i],
316
316
  this.$$p_d,
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
320
320
  }
321
321
  this.$$r = !1;
322
322
  };
323
- this.$$c.$$.after_update.push(n), n();
323
+ this.$$c.$$.after_update.push(r), r();
324
324
  for (const i in this.$$l)
325
325
  for (const o of this.$$l[i]) {
326
326
  const a = this.$$c.$on(i, o);
@@ -331,8 +331,8 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
331
331
  }
332
332
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
333
333
  // and setting attributes through setAttribute etc, this is helpful
334
- attributeChangedCallback(e, t, r) {
335
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ze(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
334
+ attributeChangedCallback(e, t, n) {
335
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = $e(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
336
336
  }
337
337
  disconnectedCallback() {
338
338
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -345,11 +345,11 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
345
345
  ) || e;
346
346
  }
347
347
  });
348
- function ze(e, t, r, n) {
349
- const i = r[e]?.type;
350
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
348
+ function $e(e, t, n, r) {
349
+ const i = n[e]?.type;
350
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
351
351
  return t;
352
- if (n === "toAttribute")
352
+ if (r === "toAttribute")
353
353
  switch (i) {
354
354
  case "Object":
355
355
  case "Array":
@@ -374,10 +374,10 @@ function ze(e, t, r, n) {
374
374
  return t;
375
375
  }
376
376
  }
377
- function un(e, t, r, n, i, o) {
378
- let a = class extends nr {
377
+ function ur(e, t, n, r, i, o) {
378
+ let a = class extends rn {
379
379
  constructor() {
380
- super(e, r, i), this.$$p_d = t;
380
+ super(e, n, i), this.$$p_d = t;
381
381
  }
382
382
  static get observedAttributes() {
383
383
  return Object.keys(t).map(
@@ -391,10 +391,10 @@ function un(e, t, r, n, i, o) {
391
391
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
392
392
  },
393
393
  set(u) {
394
- u = ze(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
394
+ u = $e(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
395
395
  }
396
396
  });
397
- }), n.forEach((s) => {
397
+ }), r.forEach((s) => {
398
398
  Object.defineProperty(a.prototype, s, {
399
399
  get() {
400
400
  return this.$$c?.[s];
@@ -403,7 +403,7 @@ function un(e, t, r, n, i, o) {
403
403
  }), e.element = /** @type {any} */
404
404
  a, a;
405
405
  }
406
- class hn {
406
+ class hr {
407
407
  /**
408
408
  * ### PRIVATE API
409
409
  *
@@ -422,7 +422,7 @@ class hn {
422
422
  $$set = void 0;
423
423
  /** @returns {void} */
424
424
  $destroy() {
425
- sn(this, 1), this.$destroy = K;
425
+ sr(this, 1), this.$destroy = K;
426
426
  }
427
427
  /**
428
428
  * @template {Extract<keyof Events, string>} K
@@ -430,13 +430,13 @@ class hn {
430
430
  * @param {((e: Events[K]) => void) | null | undefined} callback
431
431
  * @returns {() => void}
432
432
  */
433
- $on(t, r) {
434
- if (!Tt(r))
433
+ $on(t, n) {
434
+ if (!Tt(n))
435
435
  return K;
436
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
- return n.push(r), () => {
438
- const i = n.indexOf(r);
439
- i !== -1 && n.splice(i, 1);
436
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
+ return r.push(n), () => {
438
+ const i = r.indexOf(n);
439
+ i !== -1 && r.splice(i, 1);
440
440
  };
441
441
  }
442
442
  /**
@@ -444,77 +444,77 @@ class hn {
444
444
  * @returns {void}
445
445
  */
446
446
  $set(t) {
447
- this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
447
+ this.$$set && !jn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
448
  }
449
449
  }
450
- const cn = "4";
451
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cn);
450
+ const cr = "4";
451
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
452
452
  const Te = "__WIDGET_GLOBAL_STYLE_CACHE__";
453
- function fn(e, t) {
453
+ function fr(e, t) {
454
454
  if (e) {
455
- const r = document.createElement("style");
456
- r.innerHTML = t, e.appendChild(r);
455
+ const n = document.createElement("style");
456
+ n.innerHTML = t, e.appendChild(n);
457
457
  }
458
458
  }
459
- function pn(e, t) {
459
+ function pr(e, t) {
460
460
  if (!e || !t)
461
461
  return;
462
- const r = new URL(t);
463
- fetch(r.href).then((n) => n.text()).then((n) => {
462
+ const n = new URL(t);
463
+ fetch(n.href).then((r) => r.text()).then((r) => {
464
464
  const i = document.createElement("style");
465
- i.innerHTML = n, e && e.appendChild(i);
466
- }).catch((n) => {
467
- console.error("There was an error while trying to load client styling from URL", n);
465
+ i.innerHTML = r, e && e.appendChild(i);
466
+ }).catch((r) => {
467
+ console.error("There was an error while trying to load client styling from URL", r);
468
468
  });
469
469
  }
470
- function dn(e, t, r, n = !1) {
470
+ function dr(e, t, n, r = !1) {
471
471
  if (!window.emMessageBus)
472
472
  return;
473
- if (!("adoptedStyleSheets" in Document.prototype) || !n)
474
- return r = mn(e, t), r;
475
- window[Te] || (window[Te] = {}), r = gn(e, t);
476
- const o = r.unsubscribe.bind(r), a = () => {
473
+ if (!("adoptedStyleSheets" in Document.prototype) || !r)
474
+ return n = mr(e, t), n;
475
+ window[Te] || (window[Te] = {}), n = gr(e, t);
476
+ const o = n.unsubscribe.bind(n), a = () => {
477
477
  if (window[Te][t]) {
478
478
  const s = window[Te][t];
479
479
  s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Te][t];
480
480
  }
481
481
  o();
482
482
  };
483
- return r.unsubscribe = a, r;
483
+ return n.unsubscribe = a, n;
484
484
  }
485
- function mn(e, t) {
486
- const r = document.createElement("style");
487
- return window.emMessageBus.subscribe(t, (n) => {
488
- e && (r.innerHTML = n, e.appendChild(r));
485
+ function mr(e, t) {
486
+ const n = document.createElement("style");
487
+ return window.emMessageBus.subscribe(t, (r) => {
488
+ e && (n.innerHTML = r, e.appendChild(n));
489
489
  });
490
490
  }
491
- function gn(e, t) {
492
- return window.emMessageBus.subscribe(t, (r) => {
491
+ function gr(e, t) {
492
+ return window.emMessageBus.subscribe(t, (n) => {
493
493
  if (!e)
494
494
  return;
495
- const n = e.getRootNode(), i = window[Te];
495
+ const r = e.getRootNode(), i = window[Te];
496
496
  let o = i[t] && i[t].sheet;
497
- o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
497
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(n), i[t] = {
498
498
  sheet: o,
499
499
  refCount: 1
500
500
  });
501
- const a = n.adoptedStyleSheets || [];
502
- a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
501
+ const a = r.adoptedStyleSheets || [];
502
+ a.includes(o) || (r.adoptedStyleSheets = [...a, o]);
503
503
  });
504
504
  }
505
505
  const we = [];
506
- function bn(e, t) {
506
+ function br(e, t) {
507
507
  return {
508
508
  subscribe: Ye(e, t).subscribe
509
509
  };
510
510
  }
511
511
  function Ye(e, t = K) {
512
- let r;
513
- const n = /* @__PURE__ */ new Set();
512
+ let n;
513
+ const r = /* @__PURE__ */ new Set();
514
514
  function i(s) {
515
- if (tr(e, s) && (e = s, r)) {
515
+ if (tn(e, s) && (e = s, n)) {
516
516
  const u = !we.length;
517
- for (const l of n)
517
+ for (const l of r)
518
518
  l[1](), we.push(l, e);
519
519
  if (u) {
520
520
  for (let l = 0; l < we.length; l += 2)
@@ -528,18 +528,18 @@ function Ye(e, t = K) {
528
528
  }
529
529
  function a(s, u = K) {
530
530
  const l = [s, u];
531
- return n.add(l), n.size === 1 && (r = t(i, o) || K), s(e), () => {
532
- n.delete(l), n.size === 0 && r && (r(), r = null);
531
+ return r.add(l), r.size === 1 && (n = t(i, o) || K), s(e), () => {
532
+ r.delete(l), r.size === 0 && n && (n(), n = null);
533
533
  };
534
534
  }
535
535
  return { set: i, update: o, subscribe: a };
536
536
  }
537
- function Pe(e, t, r) {
538
- const n = !Array.isArray(e), i = n ? [e] : e;
537
+ function Me(e, t, n) {
538
+ const r = !Array.isArray(e), i = r ? [e] : e;
539
539
  if (!i.every(Boolean))
540
540
  throw new Error("derived() expects stores as input, got a falsy value");
541
541
  const o = t.length < 2;
542
- return bn(r, (a, s) => {
542
+ return br(n, (a, s) => {
543
543
  let u = !1;
544
544
  const l = [];
545
545
  let h = 0, c = K;
@@ -547,10 +547,10 @@ function Pe(e, t, r) {
547
547
  if (h)
548
548
  return;
549
549
  c();
550
- const m = t(n ? l[0] : l, a, s);
550
+ const m = t(r ? l[0] : l, a, s);
551
551
  o ? a(m) : c = Tt(m) ? m : K;
552
- }, _ = i.map(
553
- (m, g) => rr(
552
+ }, y = i.map(
553
+ (m, g) => nn(
554
554
  m,
555
555
  (E) => {
556
556
  l[g] = E, h &= ~(1 << g), u && d();
@@ -561,157 +561,157 @@ function Pe(e, t, r) {
561
561
  )
562
562
  );
563
563
  return u = !0, d(), function() {
564
- ye(_), c(), u = !1;
564
+ ve(y), c(), u = !1;
565
565
  };
566
566
  });
567
567
  }
568
- function yn(e) {
568
+ function vr(e) {
569
569
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
570
570
  }
571
- var _n = function(t) {
572
- return En(t) && !vn(t);
571
+ var yr = function(t) {
572
+ return Er(t) && !_r(t);
573
573
  };
574
- function En(e) {
574
+ function Er(e) {
575
575
  return !!e && typeof e == "object";
576
576
  }
577
- function vn(e) {
577
+ function _r(e) {
578
578
  var t = Object.prototype.toString.call(e);
579
- return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
579
+ return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
580
580
  }
581
- var xn = typeof Symbol == "function" && Symbol.for, wn = xn ? Symbol.for("react.element") : 60103;
582
- function Sn(e) {
583
- return e.$$typeof === wn;
581
+ var xr = typeof Symbol == "function" && Symbol.for, wr = xr ? Symbol.for("react.element") : 60103;
582
+ function Sr(e) {
583
+ return e.$$typeof === wr;
584
584
  }
585
- function Tn(e) {
585
+ function Tr(e) {
586
586
  return Array.isArray(e) ? [] : {};
587
587
  }
588
588
  function Fe(e, t) {
589
- return t.clone !== !1 && t.isMergeableObject(e) ? He(Tn(e), e, t) : e;
589
+ return t.clone !== !1 && t.isMergeableObject(e) ? He(Tr(e), e, t) : e;
590
590
  }
591
- function On(e, t, r) {
592
- return e.concat(t).map(function(n) {
593
- return Fe(n, r);
591
+ function Or(e, t, n) {
592
+ return e.concat(t).map(function(r) {
593
+ return Fe(r, n);
594
594
  });
595
595
  }
596
- function Hn(e, t) {
596
+ function Hr(e, t) {
597
597
  if (!t.customMerge)
598
598
  return He;
599
- var r = t.customMerge(e);
600
- return typeof r == "function" ? r : He;
599
+ var n = t.customMerge(e);
600
+ return typeof n == "function" ? n : He;
601
601
  }
602
- function An(e) {
602
+ function Cr(e) {
603
603
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
604
604
  return Object.propertyIsEnumerable.call(e, t);
605
605
  }) : [];
606
606
  }
607
607
  function Nt(e) {
608
- return Object.keys(e).concat(An(e));
608
+ return Object.keys(e).concat(Cr(e));
609
609
  }
610
- function ir(e, t) {
610
+ function on(e, t) {
611
611
  try {
612
612
  return t in e;
613
613
  } catch {
614
614
  return !1;
615
615
  }
616
616
  }
617
- function Cn(e, t) {
618
- return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
617
+ function Ar(e, t) {
618
+ return on(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
619
619
  }
620
- function Bn(e, t, r) {
621
- var n = {};
622
- return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
623
- n[i] = Fe(e[i], r);
620
+ function Br(e, t, n) {
621
+ var r = {};
622
+ return n.isMergeableObject(e) && Nt(e).forEach(function(i) {
623
+ r[i] = Fe(e[i], n);
624
624
  }), Nt(t).forEach(function(i) {
625
- Cn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = Fe(t[i], r));
626
- }), n;
625
+ Ar(e, i) || (on(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hr(i, n)(e[i], t[i], n) : r[i] = Fe(t[i], n));
626
+ }), r;
627
627
  }
628
- function He(e, t, r) {
629
- r = r || {}, r.arrayMerge = r.arrayMerge || On, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = Fe;
630
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
631
- return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : Fe(t, r);
628
+ function He(e, t, n) {
629
+ n = n || {}, n.arrayMerge = n.arrayMerge || Or, n.isMergeableObject = n.isMergeableObject || yr, n.cloneUnlessOtherwiseSpecified = Fe;
630
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
631
+ return o ? r ? n.arrayMerge(e, t, n) : Br(e, t, n) : Fe(t, n);
632
632
  }
633
- He.all = function(t, r) {
633
+ He.all = function(t, n) {
634
634
  if (!Array.isArray(t))
635
635
  throw new Error("first argument should be an array");
636
- return t.reduce(function(n, i) {
637
- return He(n, i, r);
636
+ return t.reduce(function(r, i) {
637
+ return He(r, i, n);
638
638
  }, {});
639
639
  };
640
- var Pn = He, Mn = Pn;
641
- const Ln = /* @__PURE__ */ yn(Mn);
640
+ var Mr = He, Pr = Mr;
641
+ const Lr = /* @__PURE__ */ vr(Pr);
642
642
  var gt = function(e, t) {
643
- return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
644
- r.__proto__ = n;
645
- } || function(r, n) {
646
- for (var i in n)
647
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
643
+ return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
644
+ n.__proto__ = r;
645
+ } || function(n, r) {
646
+ for (var i in r)
647
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
648
648
  }, gt(e, t);
649
649
  };
650
650
  function Ke(e, t) {
651
651
  if (typeof t != "function" && t !== null)
652
652
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
653
653
  gt(e, t);
654
- function r() {
654
+ function n() {
655
655
  this.constructor = e;
656
656
  }
657
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
657
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
658
658
  }
659
659
  var oe = function() {
660
660
  return oe = Object.assign || function(t) {
661
- for (var r, n = 1, i = arguments.length; n < i; n++) {
662
- r = arguments[n];
663
- for (var o in r)
664
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
661
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
662
+ n = arguments[r];
663
+ for (var o in n)
664
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
665
665
  }
666
666
  return t;
667
667
  }, oe.apply(this, arguments);
668
668
  };
669
- function In(e, t) {
670
- var r = {};
671
- for (var n in e)
672
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
669
+ function Ir(e, t) {
670
+ var n = {};
671
+ for (var r in e)
672
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
673
673
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
674
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
675
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
676
- return r;
674
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
675
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
676
+ return n;
677
677
  }
678
- function lt(e, t, r) {
679
- if (r || arguments.length === 2)
680
- for (var n = 0, i = t.length, o; n < i; n++)
681
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
678
+ function lt(e, t, n) {
679
+ if (n || arguments.length === 2)
680
+ for (var r = 0, i = t.length, o; r < i; r++)
681
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
682
682
  return e.concat(o || Array.prototype.slice.call(t));
683
683
  }
684
684
  function ut(e, t) {
685
- var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : Un, i = t && t.strategy ? t.strategy : kn;
685
+ var n = t && t.cache ? t.cache : Fr, r = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : kr;
686
686
  return i(e, {
687
- cache: r,
688
- serializer: n
687
+ cache: n,
688
+ serializer: r
689
689
  });
690
690
  }
691
- function Nn(e) {
691
+ function Nr(e) {
692
692
  return e == null || typeof e == "number" || typeof e == "boolean";
693
693
  }
694
- function Rn(e, t, r, n) {
695
- var i = Nn(n) ? n : r(n), o = t.get(i);
696
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
694
+ function Rr(e, t, n, r) {
695
+ var i = Nr(r) ? r : n(r), o = t.get(i);
696
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
697
697
  }
698
- function or(e, t, r) {
699
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
700
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
698
+ function sn(e, t, n) {
699
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
700
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
701
701
  }
702
- function sr(e, t, r, n, i) {
703
- return r.bind(t, e, n, i);
702
+ function an(e, t, n, r, i) {
703
+ return n.bind(t, e, r, i);
704
704
  }
705
- function kn(e, t) {
706
- var r = e.length === 1 ? Rn : or;
707
- return sr(e, this, r, t.cache.create(), t.serializer);
705
+ function kr(e, t) {
706
+ var n = e.length === 1 ? Rr : sn;
707
+ return an(e, this, n, t.cache.create(), t.serializer);
708
708
  }
709
- function Dn(e, t) {
710
- return sr(e, this, or, t.cache.create(), t.serializer);
709
+ function Dr(e, t) {
710
+ return an(e, this, sn, t.cache.create(), t.serializer);
711
711
  }
712
- var Un = function() {
712
+ var Ur = function() {
713
713
  return JSON.stringify(arguments);
714
- }, Gn = (
714
+ }, Gr = (
715
715
  /** @class */
716
716
  function() {
717
717
  function e() {
@@ -719,22 +719,22 @@ var Un = function() {
719
719
  }
720
720
  return e.prototype.get = function(t) {
721
721
  return this.cache[t];
722
- }, e.prototype.set = function(t, r) {
723
- this.cache[t] = r;
722
+ }, e.prototype.set = function(t, n) {
723
+ this.cache[t] = n;
724
724
  }, e;
725
725
  }()
726
- ), Fn = {
726
+ ), Fr = {
727
727
  create: function() {
728
- return new Gn();
728
+ return new Gr();
729
729
  }
730
730
  }, ht = {
731
- variadic: Dn
731
+ variadic: Dr
732
732
  }, qe = function() {
733
733
  return qe = Object.assign || function(t) {
734
- for (var r, n = 1, i = arguments.length; n < i; n++) {
735
- r = arguments[n];
736
- for (var o in r)
737
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
734
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
735
+ n = arguments[r];
736
+ for (var o in n)
737
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
738
738
  }
739
739
  return t;
740
740
  }, qe.apply(this, arguments);
@@ -747,54 +747,54 @@ var L;
747
747
  (function(e) {
748
748
  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";
749
749
  })(L || (L = {}));
750
- var Ae;
750
+ var Ce;
751
751
  (function(e) {
752
752
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
753
- })(Ae || (Ae = {}));
753
+ })(Ce || (Ce = {}));
754
754
  function Rt(e) {
755
755
  return e.type === L.literal;
756
756
  }
757
- function jn(e) {
757
+ function jr(e) {
758
758
  return e.type === L.argument;
759
759
  }
760
- function ar(e) {
760
+ function ln(e) {
761
761
  return e.type === L.number;
762
762
  }
763
- function lr(e) {
763
+ function un(e) {
764
764
  return e.type === L.date;
765
765
  }
766
- function ur(e) {
766
+ function hn(e) {
767
767
  return e.type === L.time;
768
768
  }
769
- function hr(e) {
769
+ function cn(e) {
770
770
  return e.type === L.select;
771
771
  }
772
- function cr(e) {
772
+ function fn(e) {
773
773
  return e.type === L.plural;
774
774
  }
775
- function Vn(e) {
775
+ function Vr(e) {
776
776
  return e.type === L.pound;
777
777
  }
778
- function fr(e) {
778
+ function pn(e) {
779
779
  return e.type === L.tag;
780
780
  }
781
- function pr(e) {
782
- return !!(e && typeof e == "object" && e.type === Ae.number);
781
+ function dn(e) {
782
+ return !!(e && typeof e == "object" && e.type === Ce.number);
783
783
  }
784
784
  function bt(e) {
785
- return !!(e && typeof e == "object" && e.type === Ae.dateTime);
785
+ return !!(e && typeof e == "object" && e.type === Ce.dateTime);
786
786
  }
787
- var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[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;
788
- function zn(e) {
787
+ var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[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;
788
+ function $r(e) {
789
789
  var t = {};
790
- return e.replace($n, function(r) {
791
- var n = r.length;
792
- switch (r[0]) {
790
+ return e.replace(zr, function(n) {
791
+ var r = n.length;
792
+ switch (n[0]) {
793
793
  case "G":
794
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
794
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
795
795
  break;
796
796
  case "y":
797
- t.year = n === 2 ? "2-digit" : "numeric";
797
+ t.year = r === 2 ? "2-digit" : "numeric";
798
798
  break;
799
799
  case "Y":
800
800
  case "u":
@@ -806,30 +806,30 @@ function zn(e) {
806
806
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
807
807
  case "M":
808
808
  case "L":
809
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
809
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
810
810
  break;
811
811
  case "w":
812
812
  case "W":
813
813
  throw new RangeError("`w/W` (week) patterns are not supported");
814
814
  case "d":
815
- t.day = ["numeric", "2-digit"][n - 1];
815
+ t.day = ["numeric", "2-digit"][r - 1];
816
816
  break;
817
817
  case "D":
818
818
  case "F":
819
819
  case "g":
820
820
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
821
821
  case "E":
822
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
822
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
823
823
  break;
824
824
  case "e":
825
- if (n < 4)
825
+ if (r < 4)
826
826
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
827
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
827
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
828
828
  break;
829
829
  case "c":
830
- if (n < 4)
830
+ if (r < 4)
831
831
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
832
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
832
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
833
833
  break;
834
834
  case "a":
835
835
  t.hour12 = !0;
@@ -838,32 +838,32 @@ function zn(e) {
838
838
  case "B":
839
839
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
840
840
  case "h":
841
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
841
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
842
842
  break;
843
843
  case "H":
844
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
844
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
845
845
  break;
846
846
  case "K":
847
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
847
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
848
848
  break;
849
849
  case "k":
850
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
850
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
851
851
  break;
852
852
  case "j":
853
853
  case "J":
854
854
  case "C":
855
855
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
856
856
  case "m":
857
- t.minute = ["numeric", "2-digit"][n - 1];
857
+ t.minute = ["numeric", "2-digit"][r - 1];
858
858
  break;
859
859
  case "s":
860
- t.second = ["numeric", "2-digit"][n - 1];
860
+ t.second = ["numeric", "2-digit"][r - 1];
861
861
  break;
862
862
  case "S":
863
863
  case "A":
864
864
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
865
865
  case "z":
866
- t.timeZoneName = n < 4 ? "short" : "long";
866
+ t.timeZoneName = r < 4 ? "short" : "long";
867
867
  break;
868
868
  case "Z":
869
869
  case "O":
@@ -878,22 +878,22 @@ function zn(e) {
878
878
  }
879
879
  var R = function() {
880
880
  return R = Object.assign || function(t) {
881
- for (var r, n = 1, i = arguments.length; n < i; n++) {
882
- r = arguments[n];
883
- for (var o in r)
884
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
881
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
882
+ n = arguments[r];
883
+ for (var o in n)
884
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
885
885
  }
886
886
  return t;
887
887
  }, R.apply(this, arguments);
888
888
  };
889
- var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
890
- function Wn(e) {
889
+ var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
890
+ function Wr(e) {
891
891
  if (e.length === 0)
892
892
  throw new Error("Number skeleton cannot be empty");
893
- for (var t = e.split(Xn).filter(function(d) {
893
+ for (var t = e.split(Xr).filter(function(d) {
894
894
  return d.length > 0;
895
- }), r = [], n = 0, i = t; n < i.length; n++) {
896
- var o = i[n], a = o.split("/");
895
+ }), n = [], r = 0, i = t; r < i.length; r++) {
896
+ var o = i[r], a = o.split("/");
897
897
  if (a.length === 0)
898
898
  throw new Error("Invalid number skeleton");
899
899
  for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
@@ -901,21 +901,21 @@ function Wn(e) {
901
901
  if (c.length === 0)
902
902
  throw new Error("Invalid number skeleton");
903
903
  }
904
- r.push({ stem: s, options: u });
904
+ n.push({ stem: s, options: u });
905
905
  }
906
- return r;
906
+ return n;
907
907
  }
908
- function Zn(e) {
908
+ function Zr(e) {
909
909
  return e.replace(/^(.*?)-/, "");
910
910
  }
911
- var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, qn = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
911
+ var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gn = /^(@+)?(\+|#+)?[rs]?$/g, qr = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
912
912
  function Dt(e) {
913
913
  var t = {};
914
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
915
- 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)), "";
914
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gn, function(n, r, i) {
915
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
916
916
  }), t;
917
917
  }
918
- function br(e) {
918
+ function vn(e) {
919
919
  switch (e) {
920
920
  case "sign-auto":
921
921
  return {
@@ -955,27 +955,27 @@ function br(e) {
955
955
  };
956
956
  }
957
957
  }
958
- function Qn(e) {
958
+ function Qr(e) {
959
959
  var t;
960
960
  if (e[0] === "E" && e[1] === "E" ? (t = {
961
961
  notation: "engineering"
962
962
  }, e = e.slice(2)) : e[0] === "E" && (t = {
963
963
  notation: "scientific"
964
964
  }, e = e.slice(1)), t) {
965
- var r = e.slice(0, 2);
966
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
965
+ var n = e.slice(0, 2);
966
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
967
967
  throw new Error("Malformed concise eng/scientific notation");
968
968
  t.minimumIntegerDigits = e.length;
969
969
  }
970
970
  return t;
971
971
  }
972
972
  function Ut(e) {
973
- var t = {}, r = br(e);
974
- return r || t;
973
+ var t = {}, n = vn(e);
974
+ return n || t;
975
975
  }
976
- function Jn(e) {
977
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
978
- var i = n[r];
976
+ function Jr(e) {
977
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
978
+ var i = r[n];
979
979
  switch (i.stem) {
980
980
  case "percent":
981
981
  case "%":
@@ -997,7 +997,7 @@ function Jn(e) {
997
997
  continue;
998
998
  case "measure-unit":
999
999
  case "unit":
1000
- t.style = "unit", t.unit = Zn(i.options[0]);
1000
+ t.style = "unit", t.unit = Zr(i.options[0]);
1001
1001
  continue;
1002
1002
  case "compact-short":
1003
1003
  case "K":
@@ -1059,45 +1059,45 @@ function Jn(e) {
1059
1059
  case "integer-width":
1060
1060
  if (i.options.length > 1)
1061
1061
  throw new RangeError("integer-width stems only accept a single optional option");
1062
- i.options[0].replace(qn, function(u, l, h, c, d, _) {
1062
+ i.options[0].replace(qr, function(u, l, h, c, d, y) {
1063
1063
  if (l)
1064
1064
  t.minimumIntegerDigits = h.length;
1065
1065
  else {
1066
1066
  if (c && d)
1067
1067
  throw new Error("We currently do not support maximum integer digits");
1068
- if (_)
1068
+ if (y)
1069
1069
  throw new Error("We currently do not support exact integer digits");
1070
1070
  }
1071
1071
  return "";
1072
1072
  });
1073
1073
  continue;
1074
1074
  }
1075
- if (gr.test(i.stem)) {
1075
+ if (bn.test(i.stem)) {
1076
1076
  t.minimumIntegerDigits = i.stem.length;
1077
1077
  continue;
1078
1078
  }
1079
1079
  if (kt.test(i.stem)) {
1080
1080
  if (i.options.length > 1)
1081
1081
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1082
- i.stem.replace(kt, function(u, l, h, c, d, _) {
1083
- return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && _ ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1082
+ i.stem.replace(kt, function(u, l, h, c, d, y) {
1083
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1084
1084
  });
1085
1085
  var o = i.options[0];
1086
1086
  o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Dt(o)));
1087
1087
  continue;
1088
1088
  }
1089
- if (mr.test(i.stem)) {
1089
+ if (gn.test(i.stem)) {
1090
1090
  t = R(R({}, t), Dt(i.stem));
1091
1091
  continue;
1092
1092
  }
1093
- var a = br(i.stem);
1093
+ var a = vn(i.stem);
1094
1094
  a && (t = R(R({}, t), a));
1095
- var s = Qn(i.stem);
1095
+ var s = Qr(i.stem);
1096
1096
  s && (t = R(R({}, t), s));
1097
1097
  }
1098
1098
  return t;
1099
1099
  }
1100
- var $e = {
1100
+ var ze = {
1101
1101
  "001": [
1102
1102
  "H",
1103
1103
  "h"
@@ -2512,23 +2512,23 @@ var $e = {
2512
2512
  "h"
2513
2513
  ]
2514
2514
  };
2515
- function Yn(e, t) {
2516
- for (var r = "", n = 0; n < e.length; n++) {
2517
- var i = e.charAt(n);
2515
+ function Yr(e, t) {
2516
+ for (var n = "", r = 0; r < e.length; r++) {
2517
+ var i = e.charAt(r);
2518
2518
  if (i === "j") {
2519
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2520
- o++, n++;
2521
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Kn(t);
2519
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2520
+ o++, r++;
2521
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Kr(t);
2522
2522
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2523
- r += u;
2523
+ n += u;
2524
2524
  for (; a-- > 0; )
2525
- r = l + r;
2525
+ n = l + n;
2526
2526
  } else
2527
- i === "J" ? r += "H" : r += i;
2527
+ i === "J" ? n += "H" : n += i;
2528
2528
  }
2529
- return r;
2529
+ return n;
2530
2530
  }
2531
- function Kn(e) {
2531
+ function Kr(e) {
2532
2532
  var t = e.hourCycle;
2533
2533
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2534
2534
  e.hourCycles && // @ts-ignore
@@ -2545,70 +2545,70 @@ function Kn(e) {
2545
2545
  default:
2546
2546
  throw new Error("Invalid hourCycle");
2547
2547
  }
2548
- var r = e.language, n;
2549
- r !== "root" && (n = e.maximize().region);
2550
- var i = $e[n || ""] || $e[r || ""] || $e["".concat(r, "-001")] || $e["001"];
2548
+ var n = e.language, r;
2549
+ n !== "root" && (r = e.maximize().region);
2550
+ var i = ze[r || ""] || ze[n || ""] || ze["".concat(n, "-001")] || ze["001"];
2551
2551
  return i[0];
2552
2552
  }
2553
- var ct, ei = new RegExp("^".concat(dr.source, "*")), ti = new RegExp("".concat(dr.source, "*$"));
2553
+ var ct, ei = new RegExp("^".concat(mn.source, "*")), ti = new RegExp("".concat(mn.source, "*$"));
2554
2554
  function T(e, t) {
2555
2555
  return { start: e, end: t };
2556
2556
  }
2557
- var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
2557
+ var ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), ri = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
2558
2558
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2559
- }, yt = !0;
2559
+ }, vt = !0;
2560
2560
  try {
2561
- var hi = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2562
- yt = ((ct = hi.exec("a")) === null || ct === void 0 ? void 0 : ct[0]) === "a";
2561
+ var hi = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2562
+ vt = ((ct = hi.exec("a")) === null || ct === void 0 ? void 0 : ct[0]) === "a";
2563
2563
  } catch {
2564
- yt = !1;
2564
+ vt = !1;
2565
2565
  }
2566
- var Gt = ri ? (
2566
+ var Gt = ni ? (
2567
2567
  // Native
2568
- function(t, r, n) {
2569
- return t.startsWith(r, n);
2568
+ function(t, n, r) {
2569
+ return t.startsWith(n, r);
2570
2570
  }
2571
2571
  ) : (
2572
2572
  // For IE11
2573
- function(t, r, n) {
2574
- return t.slice(n, n + r.length) === r;
2573
+ function(t, n, r) {
2574
+ return t.slice(r, r + n.length) === n;
2575
2575
  }
2576
- ), _t = ni ? String.fromCodePoint : (
2576
+ ), yt = ri ? String.fromCodePoint : (
2577
2577
  // IE11
2578
2578
  function() {
2579
- for (var t = [], r = 0; r < arguments.length; r++)
2580
- t[r] = arguments[r];
2581
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2579
+ for (var t = [], n = 0; n < arguments.length; n++)
2580
+ t[n] = arguments[n];
2581
+ for (var r = "", i = t.length, o = 0, a; i > o; ) {
2582
2582
  if (a = t[o++], a > 1114111)
2583
2583
  throw RangeError(a + " is not a valid code point");
2584
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2584
+ r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2585
2585
  }
2586
- return n;
2586
+ return r;
2587
2587
  }
2588
2588
  ), Ft = (
2589
2589
  // native
2590
2590
  ii ? Object.fromEntries : (
2591
2591
  // Ponyfill
2592
2592
  function(t) {
2593
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2594
- var o = i[n], a = o[0], s = o[1];
2595
- r[a] = s;
2593
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2594
+ var o = i[r], a = o[0], s = o[1];
2595
+ n[a] = s;
2596
2596
  }
2597
- return r;
2597
+ return n;
2598
2598
  }
2599
2599
  )
2600
- ), yr = oi ? (
2600
+ ), yn = oi ? (
2601
2601
  // Native
2602
- function(t, r) {
2603
- return t.codePointAt(r);
2602
+ function(t, n) {
2603
+ return t.codePointAt(n);
2604
2604
  }
2605
2605
  ) : (
2606
2606
  // IE 11
2607
- function(t, r) {
2608
- var n = t.length;
2609
- if (!(r < 0 || r >= n)) {
2610
- var i = t.charCodeAt(r), o;
2611
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2607
+ function(t, n) {
2608
+ var r = t.length;
2609
+ if (!(n < 0 || n >= r)) {
2610
+ var i = t.charCodeAt(n), o;
2611
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2612
2612
  }
2613
2613
  }
2614
2614
  ), ci = si ? (
@@ -2632,66 +2632,66 @@ var Gt = ri ? (
2632
2632
  return t.replace(ti, "");
2633
2633
  }
2634
2634
  );
2635
- function _r(e, t) {
2635
+ function En(e, t) {
2636
2636
  return new RegExp(e, t);
2637
2637
  }
2638
2638
  var Et;
2639
- if (yt) {
2640
- var jt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2641
- Et = function(t, r) {
2642
- var n;
2643
- jt.lastIndex = r;
2639
+ if (vt) {
2640
+ var jt = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2641
+ Et = function(t, n) {
2642
+ var r;
2643
+ jt.lastIndex = n;
2644
2644
  var i = jt.exec(t);
2645
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2645
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2646
2646
  };
2647
2647
  } else
2648
- Et = function(t, r) {
2649
- for (var n = []; ; ) {
2650
- var i = yr(t, r);
2651
- if (i === void 0 || Er(i) || gi(i))
2648
+ Et = function(t, n) {
2649
+ for (var r = []; ; ) {
2650
+ var i = yn(t, n);
2651
+ if (i === void 0 || _n(i) || gi(i))
2652
2652
  break;
2653
- n.push(i), r += i >= 65536 ? 2 : 1;
2653
+ r.push(i), n += i >= 65536 ? 2 : 1;
2654
2654
  }
2655
- return _t.apply(void 0, n);
2655
+ return yt.apply(void 0, r);
2656
2656
  };
2657
2657
  var pi = (
2658
2658
  /** @class */
2659
2659
  function() {
2660
- function e(t, r) {
2661
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2660
+ function e(t, n) {
2661
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2662
2662
  }
2663
2663
  return e.prototype.parse = function() {
2664
2664
  if (this.offset() !== 0)
2665
2665
  throw Error("parser can only be used once");
2666
2666
  return this.parseMessage(0, "", !1);
2667
- }, e.prototype.parseMessage = function(t, r, n) {
2667
+ }, e.prototype.parseMessage = function(t, n, r) {
2668
2668
  for (var i = []; !this.isEOF(); ) {
2669
2669
  var o = this.char();
2670
2670
  if (o === 123) {
2671
- var a = this.parseArgument(t, n);
2671
+ var a = this.parseArgument(t, r);
2672
2672
  if (a.err)
2673
2673
  return a;
2674
2674
  i.push(a.val);
2675
2675
  } else {
2676
2676
  if (o === 125 && t > 0)
2677
2677
  break;
2678
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2678
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2679
2679
  var s = this.clonePosition();
2680
2680
  this.bump(), i.push({
2681
2681
  type: L.pound,
2682
2682
  location: T(s, this.clonePosition())
2683
2683
  });
2684
2684
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2685
- if (n)
2685
+ if (r)
2686
2686
  break;
2687
2687
  return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2688
- } else if (o === 60 && !this.ignoreTag && vt(this.peek() || 0)) {
2689
- var a = this.parseTag(t, r);
2688
+ } else if (o === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
2689
+ var a = this.parseTag(t, n);
2690
2690
  if (a.err)
2691
2691
  return a;
2692
2692
  i.push(a.val);
2693
2693
  } else {
2694
- var a = this.parseLiteral(t, r);
2694
+ var a = this.parseLiteral(t, n);
2695
2695
  if (a.err)
2696
2696
  return a;
2697
2697
  i.push(a.val);
@@ -2699,8 +2699,8 @@ var pi = (
2699
2699
  }
2700
2700
  }
2701
2701
  return { val: i, err: null };
2702
- }, e.prototype.parseTag = function(t, r) {
2703
- var n = this.clonePosition();
2702
+ }, e.prototype.parseTag = function(t, n) {
2703
+ var r = this.clonePosition();
2704
2704
  this.bump();
2705
2705
  var i = this.parseTagName();
2706
2706
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -2708,17 +2708,17 @@ var pi = (
2708
2708
  val: {
2709
2709
  type: L.literal,
2710
2710
  value: "<".concat(i, "/>"),
2711
- location: T(n, this.clonePosition())
2711
+ location: T(r, this.clonePosition())
2712
2712
  },
2713
2713
  err: null
2714
2714
  };
2715
2715
  if (this.bumpIf(">")) {
2716
- var o = this.parseMessage(t + 1, r, !0);
2716
+ var o = this.parseMessage(t + 1, n, !0);
2717
2717
  if (o.err)
2718
2718
  return o;
2719
2719
  var a = o.val, s = this.clonePosition();
2720
2720
  if (this.bumpIf("</")) {
2721
- if (this.isEOF() || !vt(this.char()))
2721
+ if (this.isEOF() || !_t(this.char()))
2722
2722
  return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
2723
2723
  var u = this.clonePosition(), l = this.parseTagName();
2724
2724
  return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -2726,27 +2726,27 @@ var pi = (
2726
2726
  type: L.tag,
2727
2727
  value: i,
2728
2728
  children: a,
2729
- location: T(n, this.clonePosition())
2729
+ location: T(r, this.clonePosition())
2730
2730
  },
2731
2731
  err: null
2732
2732
  } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2733
2733
  } else
2734
- return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
2734
+ return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2735
2735
  } else
2736
- return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
2736
+ return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2737
2737
  }, e.prototype.parseTagName = function() {
2738
2738
  var t = this.offset();
2739
2739
  for (this.bump(); !this.isEOF() && mi(this.char()); )
2740
2740
  this.bump();
2741
2741
  return this.message.slice(t, this.offset());
2742
- }, e.prototype.parseLiteral = function(t, r) {
2743
- for (var n = this.clonePosition(), i = ""; ; ) {
2744
- var o = this.tryParseQuote(r);
2742
+ }, e.prototype.parseLiteral = function(t, n) {
2743
+ for (var r = this.clonePosition(), i = ""; ; ) {
2744
+ var o = this.tryParseQuote(n);
2745
2745
  if (o) {
2746
2746
  i += o;
2747
2747
  continue;
2748
2748
  }
2749
- var a = this.tryParseUnquoted(t, r);
2749
+ var a = this.tryParseUnquoted(t, n);
2750
2750
  if (a) {
2751
2751
  i += a;
2752
2752
  continue;
@@ -2758,7 +2758,7 @@ var pi = (
2758
2758
  }
2759
2759
  break;
2760
2760
  }
2761
- var u = T(n, this.clonePosition());
2761
+ var u = T(r, this.clonePosition());
2762
2762
  return {
2763
2763
  val: { type: L.literal, value: i, location: u },
2764
2764
  err: null
@@ -2785,37 +2785,37 @@ var pi = (
2785
2785
  return null;
2786
2786
  }
2787
2787
  this.bump();
2788
- var r = [this.char()];
2788
+ var n = [this.char()];
2789
2789
  for (this.bump(); !this.isEOF(); ) {
2790
- var n = this.char();
2791
- if (n === 39)
2790
+ var r = this.char();
2791
+ if (r === 39)
2792
2792
  if (this.peek() === 39)
2793
- r.push(39), this.bump();
2793
+ n.push(39), this.bump();
2794
2794
  else {
2795
2795
  this.bump();
2796
2796
  break;
2797
2797
  }
2798
2798
  else
2799
- r.push(n);
2799
+ n.push(r);
2800
2800
  this.bump();
2801
2801
  }
2802
- return _t.apply(void 0, r);
2803
- }, e.prototype.tryParseUnquoted = function(t, r) {
2802
+ return yt.apply(void 0, n);
2803
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2804
2804
  if (this.isEOF())
2805
2805
  return null;
2806
- var n = this.char();
2807
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), _t(n));
2808
- }, e.prototype.parseArgument = function(t, r) {
2809
- var n = this.clonePosition();
2806
+ var r = this.char();
2807
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), yt(r));
2808
+ }, e.prototype.parseArgument = function(t, n) {
2809
+ var r = this.clonePosition();
2810
2810
  if (this.bump(), this.bumpSpace(), this.isEOF())
2811
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2811
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2812
2812
  if (this.char() === 125)
2813
- return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
2813
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2814
2814
  var i = this.parseIdentifierIfPossible().value;
2815
2815
  if (!i)
2816
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2816
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2817
2817
  if (this.bumpSpace(), this.isEOF())
2818
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2818
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2819
2819
  switch (this.char()) {
2820
2820
  case 125:
2821
2821
  return this.bump(), {
@@ -2823,21 +2823,21 @@ var pi = (
2823
2823
  type: L.argument,
2824
2824
  // value does not include the opening and closing braces.
2825
2825
  value: i,
2826
- location: T(n, this.clonePosition())
2826
+ location: T(r, this.clonePosition())
2827
2827
  },
2828
2828
  err: null
2829
2829
  };
2830
2830
  case 44:
2831
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2831
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2832
2832
  default:
2833
- return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2833
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2834
2834
  }
2835
2835
  }, e.prototype.parseIdentifierIfPossible = function() {
2836
- var t = this.clonePosition(), r = this.offset(), n = Et(this.message, r), i = r + n.length;
2836
+ var t = this.clonePosition(), n = this.offset(), r = Et(this.message, n), i = n + r.length;
2837
2837
  this.bumpTo(i);
2838
2838
  var o = this.clonePosition(), a = T(t, o);
2839
- return { value: n, location: a };
2840
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2839
+ return { value: r, location: a };
2840
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2841
2841
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2842
2842
  switch (s) {
2843
2843
  case "":
@@ -2855,8 +2855,8 @@ var pi = (
2855
2855
  var d = fi(c.val);
2856
2856
  if (d.length === 0)
2857
2857
  return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2858
- var _ = T(h, this.clonePosition());
2859
- l = { style: d, styleLocation: _ };
2858
+ var y = T(h, this.clonePosition());
2859
+ l = { style: d, styleLocation: y };
2860
2860
  }
2861
2861
  var m = this.tryParseArgumentClose(i);
2862
2862
  if (m.err)
@@ -2867,22 +2867,22 @@ var pi = (
2867
2867
  if (s === "number") {
2868
2868
  var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
2869
2869
  return c.err ? c : {
2870
- val: { type: L.number, value: n, location: g, style: c.val },
2870
+ val: { type: L.number, value: r, location: g, style: c.val },
2871
2871
  err: null
2872
2872
  };
2873
2873
  } else {
2874
2874
  if (E.length === 0)
2875
2875
  return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2876
2876
  var S = E;
2877
- this.locale && (S = Yn(E, this.locale));
2877
+ this.locale && (S = Yr(E, this.locale));
2878
2878
  var d = {
2879
- type: Ae.dateTime,
2879
+ type: Ce.dateTime,
2880
2880
  pattern: S,
2881
2881
  location: l.styleLocation,
2882
- parsedOptions: this.shouldParseSkeletons ? zn(S) : {}
2883
- }, P = s === "date" ? L.date : L.time;
2882
+ parsedOptions: this.shouldParseSkeletons ? $r(S) : {}
2883
+ }, M = s === "date" ? L.date : L.time;
2884
2884
  return {
2885
- val: { type: P, value: n, location: g, style: d },
2885
+ val: { type: M, value: r, location: g, style: d },
2886
2886
  err: null
2887
2887
  };
2888
2888
  }
@@ -2890,7 +2890,7 @@ var pi = (
2890
2890
  return {
2891
2891
  val: {
2892
2892
  type: s === "number" ? L.number : s === "date" ? L.date : L.time,
2893
- value: n,
2893
+ value: r,
2894
2894
  location: g,
2895
2895
  style: (o = l?.style) !== null && o !== void 0 ? o : null
2896
2896
  },
@@ -2904,7 +2904,7 @@ var pi = (
2904
2904
  if (this.bumpSpace(), !this.bumpIf(","))
2905
2905
  return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(I, qe({}, I)));
2906
2906
  this.bumpSpace();
2907
- var D = this.parseIdentifierIfPossible(), M = 0;
2907
+ var D = this.parseIdentifierIfPossible(), P = 0;
2908
2908
  if (s !== "select" && D.value === "offset") {
2909
2909
  if (!this.bumpIf(":"))
2910
2910
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
@@ -2912,9 +2912,9 @@ var pi = (
2912
2912
  var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2913
2913
  if (c.err)
2914
2914
  return c;
2915
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
2915
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), P = c.val;
2916
2916
  }
2917
- var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
2917
+ var N = this.tryParsePluralOrSelectOptions(t, s, n, D);
2918
2918
  if (N.err)
2919
2919
  return N;
2920
2920
  var m = this.tryParseArgumentClose(i);
@@ -2924,7 +2924,7 @@ var pi = (
2924
2924
  return s === "select" ? {
2925
2925
  val: {
2926
2926
  type: L.select,
2927
- value: n,
2927
+ value: r,
2928
2928
  options: Ft(N.val),
2929
2929
  location: ee
2930
2930
  },
@@ -2932,9 +2932,9 @@ var pi = (
2932
2932
  } : {
2933
2933
  val: {
2934
2934
  type: L.plural,
2935
- value: n,
2935
+ value: r,
2936
2936
  options: Ft(N.val),
2937
- offset: M,
2937
+ offset: P,
2938
2938
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2939
2939
  location: ee
2940
2940
  },
@@ -2947,9 +2947,9 @@ var pi = (
2947
2947
  }, e.prototype.tryParseArgumentClose = function(t) {
2948
2948
  return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2949
2949
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2950
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2951
- var n = this.char();
2952
- switch (n) {
2950
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2951
+ var r = this.char();
2952
+ switch (r) {
2953
2953
  case 39: {
2954
2954
  this.bump();
2955
2955
  var i = this.clonePosition();
@@ -2967,7 +2967,7 @@ var pi = (
2967
2967
  t -= 1;
2968
2968
  else
2969
2969
  return {
2970
- val: this.message.slice(r.offset, this.offset()),
2970
+ val: this.message.slice(n.offset, this.offset()),
2971
2971
  err: null
2972
2972
  };
2973
2973
  break;
@@ -2978,30 +2978,30 @@ var pi = (
2978
2978
  }
2979
2979
  }
2980
2980
  return {
2981
- val: this.message.slice(r.offset, this.offset()),
2981
+ val: this.message.slice(n.offset, this.offset()),
2982
2982
  err: null
2983
2983
  };
2984
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2985
- var n = [];
2984
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2985
+ var r = [];
2986
2986
  try {
2987
- n = Wn(t);
2987
+ r = Wr(t);
2988
2988
  } catch {
2989
- return this.error(w.INVALID_NUMBER_SKELETON, r);
2989
+ return this.error(w.INVALID_NUMBER_SKELETON, n);
2990
2990
  }
2991
2991
  return {
2992
2992
  val: {
2993
- type: Ae.number,
2994
- tokens: n,
2995
- location: r,
2996
- parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
2993
+ type: Ce.number,
2994
+ tokens: r,
2995
+ location: n,
2996
+ parsedOptions: this.shouldParseSkeletons ? Jr(r) : {}
2997
2997
  },
2998
2998
  err: null
2999
2999
  };
3000
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3000
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3001
3001
  for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
3002
3002
  if (l.length === 0) {
3003
3003
  var c = this.clonePosition();
3004
- if (r !== "select" && this.bumpIf("=")) {
3004
+ if (n !== "select" && this.bumpIf("=")) {
3005
3005
  var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
3006
3006
  if (d.err)
3007
3007
  return d;
@@ -3010,29 +3010,29 @@ var pi = (
3010
3010
  break;
3011
3011
  }
3012
3012
  if (u.has(l))
3013
- return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3013
+ return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3014
3014
  l === "other" && (a = !0), this.bumpSpace();
3015
- var _ = this.clonePosition();
3015
+ var y = this.clonePosition();
3016
3016
  if (!this.bumpIf("{"))
3017
- return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3018
- var m = this.parseMessage(t + 1, r, n);
3017
+ return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3018
+ var m = this.parseMessage(t + 1, n, r);
3019
3019
  if (m.err)
3020
3020
  return m;
3021
- var g = this.tryParseArgumentClose(_);
3021
+ var g = this.tryParseArgumentClose(y);
3022
3022
  if (g.err)
3023
3023
  return g;
3024
3024
  s.push([
3025
3025
  l,
3026
3026
  {
3027
3027
  value: m.val,
3028
- location: T(_, this.clonePosition())
3028
+ location: T(y, this.clonePosition())
3029
3029
  }
3030
3030
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
3031
3031
  }
3032
- return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3033
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3034
- var n = 1, i = this.clonePosition();
3035
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3032
+ return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3033
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3034
+ var r = 1, i = this.clonePosition();
3035
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3036
3036
  for (var o = !1, a = 0; !this.isEOF(); ) {
3037
3037
  var s = this.char();
3038
3038
  if (s >= 48 && s <= 57)
@@ -3041,7 +3041,7 @@ var pi = (
3041
3041
  break;
3042
3042
  }
3043
3043
  var u = T(i, this.clonePosition());
3044
- return o ? (a *= n, ui(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3044
+ return o ? (a *= r, ui(a) ? { val: a, err: null } : this.error(n, u)) : this.error(t, u);
3045
3045
  }, e.prototype.offset = function() {
3046
3046
  return this.position.offset;
3047
3047
  }, e.prototype.isEOF = function() {
@@ -3056,17 +3056,17 @@ var pi = (
3056
3056
  var t = this.position.offset;
3057
3057
  if (t >= this.message.length)
3058
3058
  throw Error("out of bound");
3059
- var r = yr(this.message, t);
3060
- if (r === void 0)
3059
+ var n = yn(this.message, t);
3060
+ if (n === void 0)
3061
3061
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3062
- return r;
3063
- }, e.prototype.error = function(t, r) {
3062
+ return n;
3063
+ }, e.prototype.error = function(t, n) {
3064
3064
  return {
3065
3065
  val: null,
3066
3066
  err: {
3067
3067
  kind: t,
3068
3068
  message: this.message,
3069
- location: r
3069
+ location: n
3070
3070
  }
3071
3071
  };
3072
3072
  }, e.prototype.bump = function() {
@@ -3076,47 +3076,47 @@ var pi = (
3076
3076
  }
3077
3077
  }, e.prototype.bumpIf = function(t) {
3078
3078
  if (Gt(this.message, t, this.offset())) {
3079
- for (var r = 0; r < t.length; r++)
3079
+ for (var n = 0; n < t.length; n++)
3080
3080
  this.bump();
3081
3081
  return !0;
3082
3082
  }
3083
3083
  return !1;
3084
3084
  }, e.prototype.bumpUntil = function(t) {
3085
- var r = this.offset(), n = this.message.indexOf(t, r);
3086
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3085
+ var n = this.offset(), r = this.message.indexOf(t, n);
3086
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3087
3087
  }, e.prototype.bumpTo = function(t) {
3088
3088
  if (this.offset() > t)
3089
3089
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3090
3090
  for (t = Math.min(t, this.message.length); ; ) {
3091
- var r = this.offset();
3092
- if (r === t)
3091
+ var n = this.offset();
3092
+ if (n === t)
3093
3093
  break;
3094
- if (r > t)
3094
+ if (n > t)
3095
3095
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3096
3096
  if (this.bump(), this.isEOF())
3097
3097
  break;
3098
3098
  }
3099
3099
  }, e.prototype.bumpSpace = function() {
3100
- for (; !this.isEOF() && Er(this.char()); )
3100
+ for (; !this.isEOF() && _n(this.char()); )
3101
3101
  this.bump();
3102
3102
  }, e.prototype.peek = function() {
3103
3103
  if (this.isEOF())
3104
3104
  return null;
3105
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3106
- return n ?? null;
3105
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3106
+ return r ?? null;
3107
3107
  }, e;
3108
3108
  }()
3109
3109
  );
3110
- function vt(e) {
3110
+ function _t(e) {
3111
3111
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3112
3112
  }
3113
3113
  function di(e) {
3114
- return vt(e) || e === 47;
3114
+ return _t(e) || e === 47;
3115
3115
  }
3116
3116
  function mi(e) {
3117
3117
  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;
3118
3118
  }
3119
- function Er(e) {
3119
+ function _n(e) {
3120
3120
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3121
3121
  }
3122
3122
  function gi(e) {
@@ -3124,33 +3124,33 @@ function gi(e) {
3124
3124
  }
3125
3125
  function xt(e) {
3126
3126
  e.forEach(function(t) {
3127
- if (delete t.location, hr(t) || cr(t))
3128
- for (var r in t.options)
3129
- delete t.options[r].location, xt(t.options[r].value);
3127
+ if (delete t.location, cn(t) || fn(t))
3128
+ for (var n in t.options)
3129
+ delete t.options[n].location, xt(t.options[n].value);
3130
3130
  else
3131
- ar(t) && pr(t.style) || (lr(t) || ur(t)) && bt(t.style) ? delete t.style.location : fr(t) && xt(t.children);
3131
+ ln(t) && dn(t.style) || (un(t) || hn(t)) && bt(t.style) ? delete t.style.location : pn(t) && xt(t.children);
3132
3132
  });
3133
3133
  }
3134
3134
  function bi(e, t) {
3135
3135
  t === void 0 && (t = {}), t = qe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3136
- var r = new pi(e, t).parse();
3137
- if (r.err) {
3138
- var n = SyntaxError(w[r.err.kind]);
3139
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3136
+ var n = new pi(e, t).parse();
3137
+ if (n.err) {
3138
+ var r = SyntaxError(w[n.err.kind]);
3139
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3140
3140
  }
3141
- return t?.captureLocation || xt(r.val), r.val;
3141
+ return t?.captureLocation || xt(n.val), n.val;
3142
3142
  }
3143
- var Ce;
3143
+ var Ae;
3144
3144
  (function(e) {
3145
3145
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3146
- })(Ce || (Ce = {}));
3146
+ })(Ae || (Ae = {}));
3147
3147
  var et = (
3148
3148
  /** @class */
3149
3149
  function(e) {
3150
3150
  Ke(t, e);
3151
- function t(r, n, i) {
3152
- var o = e.call(this, r) || this;
3153
- return o.code = n, o.originalMessage = i, o;
3151
+ function t(n, r, i) {
3152
+ var o = e.call(this, n) || this;
3153
+ return o.code = r, o.originalMessage = i, o;
3154
3154
  }
3155
3155
  return t.prototype.toString = function() {
3156
3156
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3160,26 +3160,26 @@ var et = (
3160
3160
  /** @class */
3161
3161
  function(e) {
3162
3162
  Ke(t, e);
3163
- function t(r, n, i, o) {
3164
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ce.INVALID_VALUE, o) || this;
3163
+ function t(n, r, i, o) {
3164
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ae.INVALID_VALUE, o) || this;
3165
3165
  }
3166
3166
  return t;
3167
3167
  }(et)
3168
- ), yi = (
3168
+ ), vi = (
3169
3169
  /** @class */
3170
3170
  function(e) {
3171
3171
  Ke(t, e);
3172
- function t(r, n, i) {
3173
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ce.INVALID_VALUE, i) || this;
3172
+ function t(n, r, i) {
3173
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ae.INVALID_VALUE, i) || this;
3174
3174
  }
3175
3175
  return t;
3176
3176
  }(et)
3177
- ), _i = (
3177
+ ), yi = (
3178
3178
  /** @class */
3179
3179
  function(e) {
3180
3180
  Ke(t, e);
3181
- function t(r, n) {
3182
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ce.MISSING_VALUE, n) || this;
3181
+ function t(n, r) {
3182
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ae.MISSING_VALUE, r) || this;
3183
3183
  }
3184
3184
  return t;
3185
3185
  }(et)
@@ -3188,15 +3188,15 @@ var et = (
3188
3188
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3189
3189
  })(Z || (Z = {}));
3190
3190
  function Ei(e) {
3191
- return e.length < 2 ? e : e.reduce(function(t, r) {
3192
- var n = t[t.length - 1];
3193
- return !n || n.type !== Z.literal || r.type !== Z.literal ? t.push(r) : n.value += r.value, t;
3191
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3192
+ var r = t[t.length - 1];
3193
+ return !r || r.type !== Z.literal || n.type !== Z.literal ? t.push(n) : r.value += n.value, t;
3194
3194
  }, []);
3195
3195
  }
3196
- function vi(e) {
3196
+ function _i(e) {
3197
3197
  return typeof e == "function";
3198
3198
  }
3199
- function Xe(e, t, r, n, i, o, a) {
3199
+ function Xe(e, t, n, r, i, o, a) {
3200
3200
  if (e.length === 1 && Rt(e[0]))
3201
3201
  return [
3202
3202
  {
@@ -3213,95 +3213,95 @@ function Xe(e, t, r, n, i, o, a) {
3213
3213
  });
3214
3214
  continue;
3215
3215
  }
3216
- if (Vn(h)) {
3216
+ if (Vr(h)) {
3217
3217
  typeof o == "number" && s.push({
3218
3218
  type: Z.literal,
3219
- value: r.getNumberFormat(t).format(o)
3219
+ value: n.getNumberFormat(t).format(o)
3220
3220
  });
3221
3221
  continue;
3222
3222
  }
3223
3223
  var c = h.value;
3224
3224
  if (!(i && c in i))
3225
- throw new _i(c, a);
3225
+ throw new yi(c, a);
3226
3226
  var d = i[c];
3227
- if (jn(h)) {
3227
+ if (jr(h)) {
3228
3228
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3229
3229
  type: typeof d == "string" ? Z.literal : Z.object,
3230
3230
  value: d
3231
3231
  });
3232
3232
  continue;
3233
3233
  }
3234
- if (lr(h)) {
3235
- var _ = typeof h.style == "string" ? n.date[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
3234
+ if (un(h)) {
3235
+ var y = typeof h.style == "string" ? r.date[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
3236
3236
  s.push({
3237
3237
  type: Z.literal,
3238
- value: r.getDateTimeFormat(t, _).format(d)
3238
+ value: n.getDateTimeFormat(t, y).format(d)
3239
3239
  });
3240
3240
  continue;
3241
3241
  }
3242
- if (ur(h)) {
3243
- var _ = typeof h.style == "string" ? n.time[h.style] : bt(h.style) ? h.style.parsedOptions : n.time.medium;
3242
+ if (hn(h)) {
3243
+ var y = typeof h.style == "string" ? r.time[h.style] : bt(h.style) ? h.style.parsedOptions : r.time.medium;
3244
3244
  s.push({
3245
3245
  type: Z.literal,
3246
- value: r.getDateTimeFormat(t, _).format(d)
3246
+ value: n.getDateTimeFormat(t, y).format(d)
3247
3247
  });
3248
3248
  continue;
3249
3249
  }
3250
- if (ar(h)) {
3251
- var _ = typeof h.style == "string" ? n.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
3252
- _ && _.scale && (d = d * (_.scale || 1)), s.push({
3250
+ if (ln(h)) {
3251
+ var y = typeof h.style == "string" ? r.number[h.style] : dn(h.style) ? h.style.parsedOptions : void 0;
3252
+ y && y.scale && (d = d * (y.scale || 1)), s.push({
3253
3253
  type: Z.literal,
3254
- value: r.getNumberFormat(t, _).format(d)
3254
+ value: n.getNumberFormat(t, y).format(d)
3255
3255
  });
3256
3256
  continue;
3257
3257
  }
3258
- if (fr(h)) {
3258
+ if (pn(h)) {
3259
3259
  var m = h.children, g = h.value, E = i[g];
3260
- if (!vi(E))
3261
- throw new yi(g, "function", a);
3262
- var S = Xe(m, t, r, n, i, o), P = E(S.map(function(M) {
3263
- return M.value;
3260
+ if (!_i(E))
3261
+ throw new vi(g, "function", a);
3262
+ var S = Xe(m, t, n, r, i, o), M = E(S.map(function(P) {
3263
+ return P.value;
3264
3264
  }));
3265
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
3265
+ Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(P) {
3266
3266
  return {
3267
- type: typeof M == "string" ? Z.literal : Z.object,
3268
- value: M
3267
+ type: typeof P == "string" ? Z.literal : Z.object,
3268
+ value: P
3269
3269
  };
3270
3270
  }));
3271
3271
  }
3272
- if (hr(h)) {
3272
+ if (cn(h)) {
3273
3273
  var I = h.options[d] || h.options.other;
3274
3274
  if (!I)
3275
3275
  throw new Vt(h.value, d, Object.keys(h.options), a);
3276
- s.push.apply(s, Xe(I.value, t, r, n, i));
3276
+ s.push.apply(s, Xe(I.value, t, n, r, i));
3277
3277
  continue;
3278
3278
  }
3279
- if (cr(h)) {
3279
+ if (fn(h)) {
3280
3280
  var I = h.options["=".concat(d)];
3281
3281
  if (!I) {
3282
3282
  if (!Intl.PluralRules)
3283
3283
  throw new et(`Intl.PluralRules is not available in this environment.
3284
3284
  Try polyfilling it using "@formatjs/intl-pluralrules"
3285
- `, Ce.MISSING_INTL_API, a);
3286
- var D = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3285
+ `, Ae.MISSING_INTL_API, a);
3286
+ var D = n.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3287
3287
  I = h.options[D] || h.options.other;
3288
3288
  }
3289
3289
  if (!I)
3290
3290
  throw new Vt(h.value, d, Object.keys(h.options), a);
3291
- s.push.apply(s, Xe(I.value, t, r, n, i, d - (h.offset || 0)));
3291
+ s.push.apply(s, Xe(I.value, t, n, r, i, d - (h.offset || 0)));
3292
3292
  continue;
3293
3293
  }
3294
3294
  }
3295
3295
  return Ei(s);
3296
3296
  }
3297
3297
  function xi(e, t) {
3298
- return t ? oe(oe(oe({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3299
- return r[n] = oe(oe({}, e[n]), t[n] || {}), r;
3298
+ return t ? oe(oe(oe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3299
+ return n[r] = oe(oe({}, e[r]), t[r] || {}), n;
3300
3300
  }, {})) : e;
3301
3301
  }
3302
3302
  function wi(e, t) {
3303
- return t ? Object.keys(e).reduce(function(r, n) {
3304
- return r[n] = xi(e[n], t[n]), r;
3303
+ return t ? Object.keys(e).reduce(function(n, r) {
3304
+ return n[r] = xi(e[r], t[r]), n;
3305
3305
  }, oe({}, e)) : e;
3306
3306
  }
3307
3307
  function ft(e) {
@@ -3311,8 +3311,8 @@ function ft(e) {
3311
3311
  get: function(t) {
3312
3312
  return e[t];
3313
3313
  },
3314
- set: function(t, r) {
3315
- e[t] = r;
3314
+ set: function(t, n) {
3315
+ e[t] = n;
3316
3316
  }
3317
3317
  };
3318
3318
  }
@@ -3325,25 +3325,25 @@ function Si(e) {
3325
3325
  pluralRules: {}
3326
3326
  }), {
3327
3327
  getNumberFormat: ut(function() {
3328
- for (var t, r = [], n = 0; n < arguments.length; n++)
3329
- r[n] = arguments[n];
3330
- return new ((t = Intl.NumberFormat).bind.apply(t, lt([void 0], r, !1)))();
3328
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3329
+ n[r] = arguments[r];
3330
+ return new ((t = Intl.NumberFormat).bind.apply(t, lt([void 0], n, !1)))();
3331
3331
  }, {
3332
3332
  cache: ft(e.number),
3333
3333
  strategy: ht.variadic
3334
3334
  }),
3335
3335
  getDateTimeFormat: ut(function() {
3336
- for (var t, r = [], n = 0; n < arguments.length; n++)
3337
- r[n] = arguments[n];
3338
- return new ((t = Intl.DateTimeFormat).bind.apply(t, lt([void 0], r, !1)))();
3336
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3337
+ n[r] = arguments[r];
3338
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, lt([void 0], n, !1)))();
3339
3339
  }, {
3340
3340
  cache: ft(e.dateTime),
3341
3341
  strategy: ht.variadic
3342
3342
  }),
3343
3343
  getPluralRules: ut(function() {
3344
- for (var t, r = [], n = 0; n < arguments.length; n++)
3345
- r[n] = arguments[n];
3346
- return new ((t = Intl.PluralRules).bind.apply(t, lt([void 0], r, !1)))();
3344
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3345
+ n[r] = arguments[r];
3346
+ return new ((t = Intl.PluralRules).bind.apply(t, lt([void 0], n, !1)))();
3347
3347
  }, {
3348
3348
  cache: ft(e.pluralRules),
3349
3349
  strategy: ht.variadic
@@ -3353,8 +3353,8 @@ function Si(e) {
3353
3353
  var Ti = (
3354
3354
  /** @class */
3355
3355
  function() {
3356
- function e(t, r, n, i) {
3357
- r === void 0 && (r = e.defaultLocale);
3356
+ function e(t, n, r, i) {
3357
+ n === void 0 && (n = e.defaultLocale);
3358
3358
  var o = this;
3359
3359
  if (this.formatterCache = {
3360
3360
  number: {},
@@ -3377,18 +3377,18 @@ var Ti = (
3377
3377
  };
3378
3378
  }, this.getAst = function() {
3379
3379
  return o.ast;
3380
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3380
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3381
3381
  if (this.message = t, !e.__parse)
3382
3382
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3383
3383
  var a = i || {};
3384
3384
  a.formatters;
3385
- var s = In(a, ["formatters"]);
3385
+ var s = Ir(a, ["formatters"]);
3386
3386
  this.ast = e.__parse(t, oe(oe({}, s), { locale: this.resolvedLocale }));
3387
3387
  } else
3388
3388
  this.ast = t;
3389
3389
  if (!Array.isArray(this.ast))
3390
3390
  throw new TypeError("A message must be provided as a String or AST.");
3391
- this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
3391
+ this.formats = wi(e.formats, r), this.formatters = i && i.formatters || Si(this.formatterCache);
3392
3392
  }
3393
3393
  return Object.defineProperty(e, "defaultLocale", {
3394
3394
  get: function() {
@@ -3398,8 +3398,8 @@ var Ti = (
3398
3398
  configurable: !0
3399
3399
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3400
3400
  if (!(typeof Intl.Locale > "u")) {
3401
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3402
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3401
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3402
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3403
3403
  }
3404
3404
  }, e.__parse = bi, e.formats = {
3405
3405
  number: {
@@ -3467,104 +3467,104 @@ function Oi(e, t) {
3467
3467
  return;
3468
3468
  if (t in e)
3469
3469
  return e[t];
3470
- const r = t.split(".");
3471
- let n = e;
3472
- for (let i = 0; i < r.length; i++)
3473
- if (typeof n == "object") {
3470
+ const n = t.split(".");
3471
+ let r = e;
3472
+ for (let i = 0; i < n.length; i++)
3473
+ if (typeof r == "object") {
3474
3474
  if (i > 0) {
3475
- const o = r.slice(i, r.length).join(".");
3476
- if (o in n) {
3477
- n = n[o];
3475
+ const o = n.slice(i, n.length).join(".");
3476
+ if (o in r) {
3477
+ r = r[o];
3478
3478
  break;
3479
3479
  }
3480
3480
  }
3481
- n = n[r[i]];
3481
+ r = r[n[i]];
3482
3482
  } else
3483
- n = void 0;
3484
- return n;
3483
+ r = void 0;
3484
+ return r;
3485
3485
  }
3486
- const fe = {}, Hi = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), vr = (e, t) => {
3486
+ const fe = {}, Hi = (e, t, n) => n && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = n), n), xn = (e, t) => {
3487
3487
  if (t == null)
3488
3488
  return;
3489
3489
  if (t in fe && e in fe[t])
3490
3490
  return fe[t][e];
3491
- const r = tt(t);
3492
- for (let n = 0; n < r.length; n++) {
3493
- const i = r[n], o = Ci(i, e);
3491
+ const n = tt(t);
3492
+ for (let r = 0; r < n.length; r++) {
3493
+ const i = n[r], o = Ai(i, e);
3494
3494
  if (o)
3495
3495
  return Hi(e, t, o);
3496
3496
  }
3497
3497
  };
3498
3498
  let Ot;
3499
3499
  const Ve = Ye({});
3500
- function Ai(e) {
3500
+ function Ci(e) {
3501
3501
  return Ot[e] || null;
3502
3502
  }
3503
- function xr(e) {
3503
+ function wn(e) {
3504
3504
  return e in Ot;
3505
3505
  }
3506
- function Ci(e, t) {
3507
- if (!xr(e))
3506
+ function Ai(e, t) {
3507
+ if (!wn(e))
3508
3508
  return null;
3509
- const r = Ai(e);
3510
- return Oi(r, t);
3509
+ const n = Ci(e);
3510
+ return Oi(n, t);
3511
3511
  }
3512
3512
  function Bi(e) {
3513
3513
  if (e == null)
3514
3514
  return;
3515
3515
  const t = tt(e);
3516
- for (let r = 0; r < t.length; r++) {
3517
- const n = t[r];
3518
- if (xr(n))
3519
- return n;
3516
+ for (let n = 0; n < t.length; n++) {
3517
+ const r = t[n];
3518
+ if (wn(r))
3519
+ return r;
3520
3520
  }
3521
3521
  }
3522
- function wr(e, ...t) {
3523
- delete fe[e], Ve.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
3522
+ function Sn(e, ...t) {
3523
+ delete fe[e], Ve.update((n) => (n[e] = Lr.all([n[e] || {}, ...t]), n));
3524
3524
  }
3525
- Pe(
3525
+ Me(
3526
3526
  [Ve],
3527
3527
  ([e]) => Object.keys(e)
3528
3528
  );
3529
3529
  Ve.subscribe((e) => Ot = e);
3530
3530
  const We = {};
3531
- function Pi(e, t) {
3531
+ function Mi(e, t) {
3532
3532
  We[e].delete(t), We[e].size === 0 && delete We[e];
3533
3533
  }
3534
- function Sr(e) {
3534
+ function Tn(e) {
3535
3535
  return We[e];
3536
3536
  }
3537
- function Mi(e) {
3537
+ function Pi(e) {
3538
3538
  return tt(e).map((t) => {
3539
- const r = Sr(t);
3540
- return [t, r ? [...r] : []];
3539
+ const n = Tn(t);
3540
+ return [t, n ? [...n] : []];
3541
3541
  }).filter(([, t]) => t.length > 0);
3542
3542
  }
3543
3543
  function wt(e) {
3544
3544
  return e == null ? !1 : tt(e).some(
3545
3545
  (t) => {
3546
- var r;
3547
- return (r = Sr(t)) == null ? void 0 : r.size;
3546
+ var n;
3547
+ return (n = Tn(t)) == null ? void 0 : n.size;
3548
3548
  }
3549
3549
  );
3550
3550
  }
3551
3551
  function Li(e, t) {
3552
3552
  return Promise.all(
3553
- t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
3554
- ).then((n) => wr(e, ...n));
3553
+ t.map((r) => (Mi(e, r), r().then((i) => i.default || i)))
3554
+ ).then((r) => Sn(e, ...r));
3555
3555
  }
3556
3556
  const De = {};
3557
- function Tr(e) {
3557
+ function On(e) {
3558
3558
  if (!wt(e))
3559
3559
  return e in De ? De[e] : Promise.resolve();
3560
- const t = Mi(e);
3560
+ const t = Pi(e);
3561
3561
  return De[e] = Promise.all(
3562
3562
  t.map(
3563
- ([r, n]) => Li(r, n)
3563
+ ([n, r]) => Li(n, r)
3564
3564
  )
3565
3565
  ).then(() => {
3566
3566
  if (wt(e))
3567
- return Tr(e);
3567
+ return On(e);
3568
3568
  delete De[e];
3569
3569
  }), De[e];
3570
3570
  }
@@ -3609,138 +3609,138 @@ function Be() {
3609
3609
  return Ri;
3610
3610
  }
3611
3611
  const pt = Ye(!1);
3612
- var ki = Object.defineProperty, Di = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ji = (e, t) => {
3613
- for (var r in t || (t = {}))
3614
- Gi.call(t, r) && zt(e, r, t[r]);
3615
- if ($t)
3616
- for (var r of $t(t))
3617
- Fi.call(t, r) && zt(e, r, t[r]);
3612
+ var ki = Object.defineProperty, Di = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ji = (e, t) => {
3613
+ for (var n in t || (t = {}))
3614
+ Gi.call(t, n) && $t(e, n, t[n]);
3615
+ if (zt)
3616
+ for (var n of zt(t))
3617
+ Fi.call(t, n) && $t(e, n, t[n]);
3618
3618
  return e;
3619
3619
  }, Vi = (e, t) => Di(e, Ui(t));
3620
3620
  let St;
3621
3621
  const Qe = Ye(null);
3622
3622
  function Xt(e) {
3623
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3623
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3624
3624
  }
3625
3625
  function tt(e, t = Be().fallbackLocale) {
3626
- const r = Xt(e);
3627
- return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
3626
+ const n = Xt(e);
3627
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Xt(t)])] : n;
3628
3628
  }
3629
- function _e() {
3629
+ function ye() {
3630
3630
  return St ?? void 0;
3631
3631
  }
3632
3632
  Qe.subscribe((e) => {
3633
3633
  St = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3634
3634
  });
3635
- const $i = (e) => {
3635
+ const zi = (e) => {
3636
3636
  if (e && Bi(e) && wt(e)) {
3637
3637
  const { loadingDelay: t } = Be();
3638
- let r;
3639
- return typeof window < "u" && _e() != null && t ? r = window.setTimeout(
3638
+ let n;
3639
+ return typeof window < "u" && ye() != null && t ? n = window.setTimeout(
3640
3640
  () => pt.set(!0),
3641
3641
  t
3642
- ) : pt.set(!0), Tr(e).then(() => {
3642
+ ) : pt.set(!0), On(e).then(() => {
3643
3643
  Qe.set(e);
3644
3644
  }).finally(() => {
3645
- clearTimeout(r), pt.set(!1);
3645
+ clearTimeout(n), pt.set(!1);
3646
3646
  });
3647
3647
  }
3648
3648
  return Qe.set(e);
3649
- }, Me = Vi(ji({}, Qe), {
3650
- set: $i
3651
- }), rt = (e) => {
3649
+ }, Pe = Vi(ji({}, Qe), {
3650
+ set: zi
3651
+ }), nt = (e) => {
3652
3652
  const t = /* @__PURE__ */ Object.create(null);
3653
- return (n) => {
3654
- const i = JSON.stringify(n);
3655
- return i in t ? t[i] : t[i] = e(n);
3653
+ return (r) => {
3654
+ const i = JSON.stringify(r);
3655
+ return i in t ? t[i] : t[i] = e(r);
3656
3656
  };
3657
3657
  };
3658
- var zi = Object.defineProperty, Je = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t) => {
3659
- for (var r in t || (t = {}))
3660
- Or.call(t, r) && Wt(e, r, t[r]);
3658
+ var $i = Object.defineProperty, Je = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, Wt = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t) => {
3659
+ for (var n in t || (t = {}))
3660
+ Hn.call(t, n) && Wt(e, n, t[n]);
3661
3661
  if (Je)
3662
- for (var r of Je(t))
3663
- Hr.call(t, r) && Wt(e, r, t[r]);
3662
+ for (var n of Je(t))
3663
+ Cn.call(t, n) && Wt(e, n, t[n]);
3664
3664
  return e;
3665
3665
  }, Le = (e, t) => {
3666
- var r = {};
3667
- for (var n in e)
3668
- Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3666
+ var n = {};
3667
+ for (var r in e)
3668
+ Hn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3669
3669
  if (e != null && Je)
3670
- for (var n of Je(e))
3671
- t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
3672
- return r;
3670
+ for (var r of Je(e))
3671
+ t.indexOf(r) < 0 && Cn.call(e, r) && (n[r] = e[r]);
3672
+ return n;
3673
3673
  };
3674
3674
  const je = (e, t) => {
3675
- const { formats: r } = Be();
3676
- if (e in r && t in r[e])
3677
- return r[e][t];
3675
+ const { formats: n } = Be();
3676
+ if (e in n && t in n[e])
3677
+ return n[e][t];
3678
3678
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3679
- }, Xi = rt(
3679
+ }, Xi = nt(
3680
3680
  (e) => {
3681
- var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3682
- if (r == null)
3681
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3682
+ if (n == null)
3683
3683
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3684
- return n && (i = je("number", n)), new Intl.NumberFormat(r, i);
3684
+ return r && (i = je("number", r)), new Intl.NumberFormat(n, i);
3685
3685
  }
3686
- ), Wi = rt(
3686
+ ), Wi = nt(
3687
3687
  (e) => {
3688
- var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3689
- if (r == null)
3688
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3689
+ if (n == null)
3690
3690
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3691
- return n ? i = je("date", n) : Object.keys(i).length === 0 && (i = je("date", "short")), new Intl.DateTimeFormat(r, i);
3691
+ return r ? i = je("date", r) : Object.keys(i).length === 0 && (i = je("date", "short")), new Intl.DateTimeFormat(n, i);
3692
3692
  }
3693
- ), Zi = rt(
3693
+ ), Zi = nt(
3694
3694
  (e) => {
3695
- var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
3696
- if (r == null)
3695
+ var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
3696
+ if (n == null)
3697
3697
  throw new Error(
3698
3698
  '[svelte-i18n] A "locale" must be set to format time values'
3699
3699
  );
3700
- return n ? i = je("time", n) : Object.keys(i).length === 0 && (i = je("time", "short")), new Intl.DateTimeFormat(r, i);
3700
+ return r ? i = je("time", r) : Object.keys(i).length === 0 && (i = je("time", "short")), new Intl.DateTimeFormat(n, i);
3701
3701
  }
3702
3702
  ), qi = (e = {}) => {
3703
3703
  var t = e, {
3704
- locale: r = _e()
3705
- } = t, n = Le(t, [
3704
+ locale: n = ye()
3705
+ } = t, r = Le(t, [
3706
3706
  "locale"
3707
3707
  ]);
3708
- return Xi(Ht({ locale: r }, n));
3708
+ return Xi(Ht({ locale: n }, r));
3709
3709
  }, Qi = (e = {}) => {
3710
3710
  var t = e, {
3711
- locale: r = _e()
3712
- } = t, n = Le(t, [
3711
+ locale: n = ye()
3712
+ } = t, r = Le(t, [
3713
3713
  "locale"
3714
3714
  ]);
3715
- return Wi(Ht({ locale: r }, n));
3715
+ return Wi(Ht({ locale: n }, r));
3716
3716
  }, Ji = (e = {}) => {
3717
3717
  var t = e, {
3718
- locale: r = _e()
3719
- } = t, n = Le(t, [
3718
+ locale: n = ye()
3719
+ } = t, r = Le(t, [
3720
3720
  "locale"
3721
3721
  ]);
3722
- return Zi(Ht({ locale: r }, n));
3723
- }, Yi = rt(
3722
+ return Zi(Ht({ locale: n }, r));
3723
+ }, Yi = nt(
3724
3724
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3725
- (e, t = _e()) => new Ti(e, t, Be().formats, {
3725
+ (e, t = ye()) => new Ti(e, t, Be().formats, {
3726
3726
  ignoreTag: Be().ignoreTag
3727
3727
  })
3728
3728
  ), Ki = (e, t = {}) => {
3729
- var r, n, i, o;
3729
+ var n, r, i, o;
3730
3730
  let a = t;
3731
3731
  typeof e == "object" && (a = e, e = a.id);
3732
3732
  const {
3733
3733
  values: s,
3734
- locale: u = _e(),
3734
+ locale: u = ye(),
3735
3735
  default: l
3736
3736
  } = a;
3737
3737
  if (u == null)
3738
3738
  throw new Error(
3739
3739
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3740
3740
  );
3741
- let h = vr(e, u);
3741
+ let h = xn(e, u);
3742
3742
  if (!h)
3743
- h = (o = (i = (n = (r = Be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3743
+ h = (o = (i = (r = (n = Be()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3744
3744
  else if (typeof h != "string")
3745
3745
  return console.warn(
3746
3746
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3757,16 +3757,16 @@ const je = (e, t) => {
3757
3757
  );
3758
3758
  }
3759
3759
  return c;
3760
- }, eo = (e, t) => Ji(t).format(e), to = (e, t) => Qi(t).format(e), ro = (e, t) => qi(t).format(e), no = (e, t = _e()) => vr(e, t), io = Pe([Me, Ve], () => Ki);
3761
- Pe([Me], () => eo);
3762
- Pe([Me], () => to);
3763
- Pe([Me], () => ro);
3764
- Pe([Me, Ve], () => no);
3760
+ }, eo = (e, t) => Ji(t).format(e), to = (e, t) => Qi(t).format(e), no = (e, t) => qi(t).format(e), ro = (e, t = ye()) => xn(e, t), io = Me([Pe, Ve], () => Ki);
3761
+ Me([Pe], () => eo);
3762
+ Me([Pe], () => to);
3763
+ Me([Pe], () => no);
3764
+ Me([Pe, Ve], () => ro);
3765
3765
  function Zt(e, t) {
3766
- wr(e, t);
3766
+ Sn(e, t);
3767
3767
  }
3768
3768
  function oo(e) {
3769
- Me.set(e);
3769
+ Pe.set(e);
3770
3770
  }
3771
3771
  const qt = {
3772
3772
  en: {
@@ -3817,7 +3817,7 @@ const qt = {
3817
3817
  },
3818
3818
  fr: {
3819
3819
  otpTitle: "La vérification par code est requise",
3820
- popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin deffectuer la mise à jour.",
3820
+ popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",
3821
3821
  popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
3822
3822
  minutes: "minutes",
3823
3823
  errorHeader: "Erreur",
@@ -3826,9 +3826,9 @@ const qt = {
3826
3826
  resendOtp: "Renvoyer le code OTP",
3827
3827
  submit: "Valider",
3828
3828
  close: "Fermer",
3829
- invalidOtp: "Le code que vous avez saisi nest pas valide. Veuillez réessayer.",
3829
+ invalidOtp: "Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",
3830
3830
  accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
3831
- submissionError: "Une erreur sest produite. Veuillez réessayer.",
3831
+ submissionError: "Une erreur s'est produite. Veuillez réessayer.",
3832
3832
  otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
3833
3833
  timeRemaining: "Le code expire dans :",
3834
3834
  selectChannelTitle: "Sélectionner la méthode de vérification",
@@ -3837,24 +3837,93 @@ const qt = {
3837
3837
  channelEmail: "E-mail",
3838
3838
  sendCode: "Envoyer le code",
3839
3839
  waitSeconds: "Veuillez patienter avant de renvoyer le code :"
3840
+ },
3841
+ da: {
3842
+ otpTitle: "Kodebekræftelse er påkrævet",
3843
+ popupMessage: "Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",
3844
+ popupMessageLastWarning: "Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",
3845
+ minutes: "minutter",
3846
+ errorHeader: "Fejl",
3847
+ configError: "Kan ikke indlæse OTP-data. Prøv venligst igen senere.",
3848
+ otpHeading: "Indtast OTP",
3849
+ resendOtp: "Send OTP igen",
3850
+ submit: "Indsend",
3851
+ close: "Luk",
3852
+ invalidOtp: "Koden du har sendt er ikke gyldig. Prøv venligst igen.",
3853
+ accountBlocked: "For mange forsøg på OTP. Din konto er blevet blokeret i en time.",
3854
+ submissionError: "Noget gik galt. Prøv venligst igen.",
3855
+ otpExpiredMessage: "Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",
3856
+ timeRemaining: "Koden udløber om:",
3857
+ selectChannelTitle: "Vælg bekræftelsesmetode",
3858
+ selectChannelMessage: "Vælg, hvordan du gerne vil modtage din bekræftelseskode",
3859
+ channelSMS: "SMS",
3860
+ channelEmail: "E-mail",
3861
+ sendCode: "Send kode",
3862
+ waitSeconds: "Vent venligst før genafsendelse:"
3863
+ },
3864
+ de: {
3865
+ otpTitle: "Code-Verifizierung ist erforderlich",
3866
+ popupMessage: "Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",
3867
+ popupMessageLastWarning: "Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",
3868
+ minutes: "Minuten",
3869
+ errorHeader: "Fehler",
3870
+ configError: "OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",
3871
+ otpHeading: "OTP eingeben",
3872
+ resendOtp: "OTP erneut senden",
3873
+ submit: "Absenden",
3874
+ close: "Schließen",
3875
+ invalidOtp: "Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",
3876
+ accountBlocked: "Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",
3877
+ submissionError: "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
3878
+ otpExpiredMessage: "Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",
3879
+ timeRemaining: "Code läuft ab in:",
3880
+ selectChannelTitle: "Verifizierungsmethode auswählen",
3881
+ selectChannelMessage: "Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",
3882
+ channelSMS: "SMS",
3883
+ channelEmail: "E-Mail",
3884
+ sendCode: "Code senden",
3885
+ waitSeconds: "Bitte warten Sie, bevor Sie erneut senden:"
3886
+ },
3887
+ nl: {
3888
+ otpTitle: "Codeverificatie is vereist",
3889
+ popupMessage: "Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",
3890
+ popupMessageLastWarning: "Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",
3891
+ minutes: "minuten",
3892
+ errorHeader: "Fout",
3893
+ configError: "Kan OTP-gegevens niet laden. Probeer het later opnieuw.",
3894
+ otpHeading: "OTP invoeren",
3895
+ resendOtp: "OTP opnieuw verzenden",
3896
+ submit: "Verzenden",
3897
+ close: "Sluiten",
3898
+ invalidOtp: "De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",
3899
+ accountBlocked: "Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",
3900
+ submissionError: "Er is iets misgegaan. Probeer het opnieuw.",
3901
+ otpExpiredMessage: "De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",
3902
+ timeRemaining: "Code verloopt over:",
3903
+ selectChannelTitle: "Verificatiemethode selecteren",
3904
+ selectChannelMessage: "Kies hoe u uw verificatiecode wilt ontvangen",
3905
+ channelSMS: "SMS",
3906
+ channelEmail: "E-mail",
3907
+ sendCode: "Code verzenden",
3908
+ waitSeconds: "Wacht even voordat u opnieuw verzendt:"
3840
3909
  }
3841
3910
  };
3842
3911
  function so(e) {
3843
- Vr(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
3912
+ zn(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
3844
3913
  }
3845
- function Qt(e, t, r) {
3846
- const n = e.slice();
3847
- return n[69] = t[r], n[70] = t, n[71] = r, n;
3914
+ function Qt(e, t, n) {
3915
+ const r = e.slice();
3916
+ return r[69] = t[n], r[70] = t, r[71] = n, r;
3848
3917
  }
3849
3918
  function ao(e) {
3850
- let t, r, n, i, o, a, s, u, l, h, c, d, _, m, g, E, S, P = (
3919
+ let t, n, r, i, o, a, s, u, l, h, c, d, y, m, g, E, S, M = (
3851
3920
  /*$_*/
3852
3921
  e[19]("channelSMS") + ""
3853
- ), I, D, M, N, ee, q, se, pe, ae, B, U, W, de, me, ge = (
3922
+ ), I, D, P, N, ee, q, se, pe, ae, B, U, W, de, me, ge = (
3854
3923
  /*$_*/
3855
3924
  e[19]("channelEmail") + ""
3856
- ), Q, Ie, J, $, te, be, Ee;
3857
- function ve(b, A) {
3925
+ ), Q, Ie, J, z, te, be, Ee;
3926
+ function _e(b, C) {
3858
3927
  return (
3859
3928
  /*showResendOtp*/
3860
3929
  b[9] ? co : (
@@ -3863,17 +3932,17 @@ function ao(e) {
3863
3932
  )
3864
3933
  );
3865
3934
  }
3866
- let le = ve(e), Y = le(e), z = (
3935
+ let le = _e(e), Y = le(e), $ = (
3867
3936
  /*selectedChannel*/
3868
3937
  e[0] && Yt(e)
3869
3938
  );
3870
- function Ne(b, A) {
3939
+ function Ne(b, C) {
3871
3940
  if (
3872
3941
  /*isLoading*/
3873
3942
  b[3] && /*showOtpInput*/
3874
3943
  b[12]
3875
3944
  )
3876
- return yo;
3945
+ return vo;
3877
3946
  if (
3878
3947
  /*showOtpInput*/
3879
3948
  b[12] && /*config*/
@@ -3882,7 +3951,7 @@ function ao(e) {
3882
3951
  return bo;
3883
3952
  }
3884
3953
  let he = Ne(e), V = he && he(e);
3885
- function Re(b, A) {
3954
+ function Re(b, C) {
3886
3955
  if (
3887
3956
  /*showResendOtp*/
3888
3957
  b[9]
@@ -3893,12 +3962,12 @@ function ao(e) {
3893
3962
  b[12] && /*config*/
3894
3963
  b[4]
3895
3964
  )
3896
- return _o;
3965
+ return yo;
3897
3966
  }
3898
3967
  let ce = Re(e), G = ce && ce(e);
3899
3968
  return {
3900
3969
  c() {
3901
- t = O("div"), Y.c(), r = F(), n = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), c = re("svg"), d = re("path"), _ = re("circle"), m = re("circle"), g = re("circle"), E = F(), S = O("span"), I = k(P), D = F(), M = O("label"), N = O("div"), ee = F(), q = O("input"), pe = F(), ae = O("div"), B = re("svg"), U = re("rect"), W = re("path"), de = F(), me = O("span"), Q = k(ge), Ie = F(), z && z.c(), J = F(), V && V.c(), $ = F(), te = O("div"), G && G.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ne(
3970
+ t = O("div"), Y.c(), n = F(), r = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), c = ne("svg"), d = ne("path"), y = ne("circle"), m = ne("circle"), g = ne("circle"), E = F(), S = O("span"), I = k(M), D = F(), P = O("label"), N = O("div"), ee = F(), q = O("input"), pe = F(), ae = O("div"), B = ne("svg"), U = ne("rect"), W = ne("path"), de = F(), me = O("span"), Q = k(ge), Ie = F(), $ && $.c(), J = F(), V && V.c(), z = F(), te = O("div"), G && G.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), re(
3902
3971
  o,
3903
3972
  "checked",
3904
3973
  /*selectedChannel*/
@@ -3907,13 +3976,13 @@ function ao(e) {
3907
3976
  ), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
3908
3977
  e[20].SMS, s.checked = u = /*selectedChannel*/
3909
3978
  e[0] === /*channels*/
3910
- e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(_, "cx", "9"), p(_, "cy", "11"), p(_, "r", "0.5"), p(_, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), ne(
3979
+ e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(y, "cx", "9"), p(y, "cy", "11"), p(y, "r", "0.5"), p(y, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), re(
3911
3980
  i,
3912
3981
  "selected",
3913
3982
  /*selectedChannel*/
3914
3983
  e[0] === /*channels*/
3915
3984
  e[20].SMS
3916
- ), p(N, "class", "RadioIndicator"), ne(
3985
+ ), p(N, "class", "RadioIndicator"), re(
3917
3986
  N,
3918
3987
  "checked",
3919
3988
  /*selectedChannel*/
@@ -3922,16 +3991,16 @@ function ao(e) {
3922
3991
  ), p(q, "type", "radio"), p(q, "name", "channel"), q.value = /*channels*/
3923
3992
  e[20].EMAIL, q.checked = se = /*selectedChannel*/
3924
3993
  e[0] === /*channels*/
3925
- e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(ae, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), ne(
3926
- M,
3994
+ e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(ae, "class", "ChannelContent"), p(P, "class", "ChannelCheckbox"), re(
3995
+ P,
3927
3996
  "selected",
3928
3997
  /*selectedChannel*/
3929
3998
  e[0] === /*channels*/
3930
3999
  e[20].EMAIL
3931
- ), p(n, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
4000
+ ), p(r, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
3932
4001
  },
3933
- m(b, A) {
3934
- C(b, t, A), Y.m(t, null), C(b, r, A), C(b, n, A), y(n, i), y(i, o), y(i, a), y(i, s), y(i, l), y(i, h), y(h, c), y(c, d), y(c, _), y(c, m), y(c, g), y(h, E), y(h, S), y(S, I), y(n, D), y(n, M), y(M, N), y(M, ee), y(M, q), y(M, pe), y(M, ae), y(ae, B), y(B, U), y(B, W), y(ae, de), y(ae, me), y(me, Q), C(b, Ie, A), z && z.m(b, A), C(b, J, A), V && V.m(b, A), C(b, $, A), C(b, te, A), G && G.m(te, null), be || (Ee = [
4002
+ m(b, C) {
4003
+ A(b, t, C), Y.m(t, null), A(b, n, C), A(b, r, C), v(r, i), v(i, o), v(i, a), v(i, s), v(i, l), v(i, h), v(h, c), v(c, d), v(c, y), v(c, m), v(c, g), v(h, E), v(h, S), v(S, I), v(r, D), v(r, P), v(P, N), v(P, ee), v(P, q), v(P, pe), v(P, ae), v(ae, B), v(B, U), v(B, W), v(ae, de), v(ae, me), v(me, Q), A(b, Ie, C), $ && $.m(b, C), A(b, J, C), V && V.m(b, C), A(b, z, C), A(b, te, C), G && G.m(te, null), be || (Ee = [
3935
4004
  ue(
3936
4005
  s,
3937
4006
  "change",
@@ -3946,95 +4015,95 @@ function ao(e) {
3946
4015
  )
3947
4016
  ], be = !0);
3948
4017
  },
3949
- p(b, A) {
3950
- le === (le = ve(b)) && Y ? Y.p(b, A) : (Y.d(1), Y = le(b), Y && (Y.c(), Y.m(t, null))), A[0] & /*selectedChannel, channels*/
3951
- 1048577 && ne(
4018
+ p(b, C) {
4019
+ le === (le = _e(b)) && Y ? Y.p(b, C) : (Y.d(1), Y = le(b), Y && (Y.c(), Y.m(t, null))), C[0] & /*selectedChannel, channels*/
4020
+ 1048577 && re(
3952
4021
  o,
3953
4022
  "checked",
3954
4023
  /*selectedChannel*/
3955
4024
  b[0] === /*channels*/
3956
4025
  b[20].SMS
3957
- ), A[0] & /*selectedChannel*/
4026
+ ), C[0] & /*selectedChannel*/
3958
4027
  1 && u !== (u = /*selectedChannel*/
3959
4028
  b[0] === /*channels*/
3960
- b[20].SMS) && (s.checked = u), A[0] & /*$_*/
3961
- 524288 && P !== (P = /*$_*/
3962
- b[19]("channelSMS") + "") && j(I, P), A[0] & /*selectedChannel, channels*/
3963
- 1048577 && ne(
4029
+ b[20].SMS) && (s.checked = u), C[0] & /*$_*/
4030
+ 524288 && M !== (M = /*$_*/
4031
+ b[19]("channelSMS") + "") && j(I, M), C[0] & /*selectedChannel, channels*/
4032
+ 1048577 && re(
3964
4033
  i,
3965
4034
  "selected",
3966
4035
  /*selectedChannel*/
3967
4036
  b[0] === /*channels*/
3968
4037
  b[20].SMS
3969
- ), A[0] & /*selectedChannel, channels*/
3970
- 1048577 && ne(
4038
+ ), C[0] & /*selectedChannel, channels*/
4039
+ 1048577 && re(
3971
4040
  N,
3972
4041
  "checked",
3973
4042
  /*selectedChannel*/
3974
4043
  b[0] === /*channels*/
3975
4044
  b[20].EMAIL
3976
- ), A[0] & /*selectedChannel*/
4045
+ ), C[0] & /*selectedChannel*/
3977
4046
  1 && se !== (se = /*selectedChannel*/
3978
4047
  b[0] === /*channels*/
3979
- b[20].EMAIL) && (q.checked = se), A[0] & /*$_*/
4048
+ b[20].EMAIL) && (q.checked = se), C[0] & /*$_*/
3980
4049
  524288 && ge !== (ge = /*$_*/
3981
- b[19]("channelEmail") + "") && j(Q, ge), A[0] & /*selectedChannel, channels*/
3982
- 1048577 && ne(
3983
- M,
4050
+ b[19]("channelEmail") + "") && j(Q, ge), C[0] & /*selectedChannel, channels*/
4051
+ 1048577 && re(
4052
+ P,
3984
4053
  "selected",
3985
4054
  /*selectedChannel*/
3986
4055
  b[0] === /*channels*/
3987
4056
  b[20].EMAIL
3988
4057
  ), /*selectedChannel*/
3989
- b[0] ? z ? z.p(b, A) : (z = Yt(b), z.c(), z.m(J.parentNode, J)) : z && (z.d(1), z = null), he === (he = Ne(b)) && V ? V.p(b, A) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m($.parentNode, $))), ce === (ce = Re(b)) && G ? G.p(b, A) : (G && G.d(1), G = ce && ce(b), G && (G.c(), G.m(te, null)));
4058
+ b[0] ? $ ? $.p(b, C) : ($ = Yt(b), $.c(), $.m(J.parentNode, J)) : $ && ($.d(1), $ = null), he === (he = Ne(b)) && V ? V.p(b, C) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m(z.parentNode, z))), ce === (ce = Re(b)) && G ? G.p(b, C) : (G && G.d(1), G = ce && ce(b), G && (G.c(), G.m(te, null)));
3990
4059
  },
3991
4060
  d(b) {
3992
- b && (H(t), H(r), H(n), H(Ie), H(J), H($), H(te)), Y.d(), z && z.d(b), V && V.d(b), G && G.d(), be = !1, ye(Ee);
4061
+ b && (H(t), H(n), H(r), H(Ie), H(J), H(z), H(te)), Y.d(), $ && $.d(b), V && V.d(b), G && G.d(), be = !1, ve(Ee);
3993
4062
  }
3994
4063
  };
3995
4064
  }
3996
4065
  function lo(e) {
3997
- let t, r, n, i, o, a, s = (
4066
+ let t, n, r, i, o, a, s = (
3998
4067
  /*$_*/
3999
4068
  e[19]("errorHeader") + ""
4000
- ), u, l, h, c, d, _, m = (
4069
+ ), u, l, h, c, d, y, m = (
4001
4070
  /*$_*/
4002
4071
  e[19]("close") + ""
4003
4072
  ), g, E, S;
4004
4073
  return {
4005
4074
  c() {
4006
- t = O("div"), r = O("div"), n = re("svg"), i = re("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), c = k(
4075
+ t = O("div"), n = O("div"), r = ne("svg"), i = ne("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), c = k(
4007
4076
  /*errorMessage*/
4008
4077
  e[8]
4009
- ), d = F(), _ = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(n, "xmlns", "http://www.w3.org/2000/svg"), p(n, "viewBox", "0 0 512 512"), p(r, "class", "OtpErrorHeader"), p(_, "class", "OtpButton error"), p(t, "class", "OtpError");
4078
+ ), d = F(), y = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(r, "xmlns", "http://www.w3.org/2000/svg"), p(r, "viewBox", "0 0 512 512"), p(n, "class", "OtpErrorHeader"), p(y, "class", "OtpButton error"), p(t, "class", "OtpError");
4010
4079
  },
4011
- m(P, I) {
4012
- C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, d), y(t, _), y(_, g), E || (S = ue(
4013
- _,
4080
+ m(M, I) {
4081
+ A(M, t, I), v(t, n), v(n, r), v(r, i), v(n, o), v(n, a), v(a, u), v(t, l), v(t, h), v(h, c), v(t, d), v(t, y), v(y, g), E || (S = ue(
4082
+ y,
4014
4083
  "click",
4015
4084
  /*manualClosePopup*/
4016
4085
  e[28]
4017
4086
  ), E = !0);
4018
4087
  },
4019
- p(P, I) {
4088
+ p(M, I) {
4020
4089
  I[0] & /*$_*/
4021
4090
  524288 && s !== (s = /*$_*/
4022
- P[19]("errorHeader") + "") && j(u, s), I[0] & /*errorMessage*/
4091
+ M[19]("errorHeader") + "") && j(u, s), I[0] & /*errorMessage*/
4023
4092
  256 && j(
4024
4093
  c,
4025
4094
  /*errorMessage*/
4026
- P[8]
4095
+ M[8]
4027
4096
  ), I[0] & /*$_*/
4028
4097
  524288 && m !== (m = /*$_*/
4029
- P[19]("close") + "") && j(g, m);
4098
+ M[19]("close") + "") && j(g, m);
4030
4099
  },
4031
- d(P) {
4032
- P && H(t), E = !1, S();
4100
+ d(M) {
4101
+ M && H(t), E = !1, S();
4033
4102
  }
4034
4103
  };
4035
4104
  }
4036
4105
  function uo(e) {
4037
- let t, r, n, i;
4106
+ let t, n, r, i;
4038
4107
  function o(l, h) {
4039
4108
  return (
4040
4109
  /*isLastWarning*/
@@ -4047,39 +4116,39 @@ function uo(e) {
4047
4116
  );
4048
4117
  return {
4049
4118
  c() {
4050
- t = O("p"), s.c(), n = F(), u && u.c(), i = Wr(), p(t, "class", r = /*isLastWarning*/
4119
+ t = O("p"), s.c(), r = F(), u && u.c(), i = Zn(), p(t, "class", n = /*isLastWarning*/
4051
4120
  e[10] ? "LastWarningMessage" : "");
4052
4121
  },
4053
4122
  m(l, h) {
4054
- C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
4123
+ A(l, t, h), s.m(t, null), A(l, r, h), u && u.m(l, h), A(l, i, h);
4055
4124
  },
4056
4125
  p(l, h) {
4057
4126
  a === (a = o(l)) && s ? s.p(l, h) : (s.d(1), s = a(l), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
4058
- 1024 && r !== (r = /*isLastWarning*/
4059
- l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
4127
+ 1024 && n !== (n = /*isLastWarning*/
4128
+ l[10] ? "LastWarningMessage" : "") && p(t, "class", n), /*hasErrors*/
4060
4129
  l[6] ? u ? u.p(l, h) : (u = Jt(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
4061
4130
  },
4062
4131
  d(l) {
4063
- l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
4132
+ l && (H(t), H(r), H(i)), s.d(), u && u.d(l);
4064
4133
  }
4065
4134
  };
4066
4135
  }
4067
4136
  function ho(e) {
4068
- let t, r = (
4137
+ let t, n = (
4069
4138
  /*$_*/
4070
4139
  (e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
4071
- ), n;
4140
+ ), r;
4072
4141
  return {
4073
4142
  c() {
4074
- t = O("p"), n = k(r);
4143
+ t = O("p"), r = k(n);
4075
4144
  },
4076
4145
  m(i, o) {
4077
- C(i, t, o), y(t, n);
4146
+ A(i, t, o), v(t, r);
4078
4147
  },
4079
4148
  p(i, o) {
4080
4149
  o[0] & /*$_*/
4081
- 524288 && r !== (r = /*$_*/
4082
- (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(n, r);
4150
+ 524288 && n !== (n = /*$_*/
4151
+ (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(r, n);
4083
4152
  },
4084
4153
  d(i) {
4085
4154
  i && H(t);
@@ -4087,21 +4156,21 @@ function ho(e) {
4087
4156
  };
4088
4157
  }
4089
4158
  function co(e) {
4090
- let t, r = (
4159
+ let t, n = (
4091
4160
  /*$_*/
4092
4161
  e[19]("otpExpiredMessage") + ""
4093
- ), n;
4162
+ ), r;
4094
4163
  return {
4095
4164
  c() {
4096
- t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4165
+ t = O("p"), r = k(n), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4097
4166
  },
4098
4167
  m(i, o) {
4099
- C(i, t, o), y(t, n);
4168
+ A(i, t, o), v(t, r);
4100
4169
  },
4101
4170
  p(i, o) {
4102
4171
  o[0] & /*$_*/
4103
- 524288 && r !== (r = /*$_*/
4104
- i[19]("otpExpiredMessage") + "") && j(n, r);
4172
+ 524288 && n !== (n = /*$_*/
4173
+ i[19]("otpExpiredMessage") + "") && j(r, n);
4105
4174
  },
4106
4175
  d(i) {
4107
4176
  i && H(t);
@@ -4112,21 +4181,21 @@ function fo(e) {
4112
4181
  let t = (
4113
4182
  /*$_*/
4114
4183
  e[19]("popupMessage") + ""
4115
- ), r;
4184
+ ), n;
4116
4185
  return {
4117
4186
  c() {
4118
- r = k(t);
4187
+ n = k(t);
4119
4188
  },
4120
- m(n, i) {
4121
- C(n, r, i);
4189
+ m(r, i) {
4190
+ A(r, n, i);
4122
4191
  },
4123
- p(n, i) {
4192
+ p(r, i) {
4124
4193
  i[0] & /*$_*/
4125
4194
  524288 && t !== (t = /*$_*/
4126
- n[19]("popupMessage") + "") && j(r, t);
4195
+ r[19]("popupMessage") + "") && j(n, t);
4127
4196
  },
4128
- d(n) {
4129
- n && H(r);
4197
+ d(r) {
4198
+ r && H(n);
4130
4199
  }
4131
4200
  };
4132
4201
  }
@@ -4134,51 +4203,51 @@ function po(e) {
4134
4203
  let t = (
4135
4204
  /*$_*/
4136
4205
  e[19]("popupMessageLastWarning") + ""
4137
- ), r;
4206
+ ), n;
4138
4207
  return {
4139
4208
  c() {
4140
- r = k(t);
4209
+ n = k(t);
4141
4210
  },
4142
- m(n, i) {
4143
- C(n, r, i);
4211
+ m(r, i) {
4212
+ A(r, n, i);
4144
4213
  },
4145
- p(n, i) {
4214
+ p(r, i) {
4146
4215
  i[0] & /*$_*/
4147
4216
  524288 && t !== (t = /*$_*/
4148
- n[19]("popupMessageLastWarning") + "") && j(r, t);
4217
+ r[19]("popupMessageLastWarning") + "") && j(n, t);
4149
4218
  },
4150
- d(n) {
4151
- n && H(r);
4219
+ d(r) {
4220
+ r && H(n);
4152
4221
  }
4153
4222
  };
4154
4223
  }
4155
4224
  function Jt(e) {
4156
- let t, r;
4225
+ let t, n;
4157
4226
  return {
4158
4227
  c() {
4159
- t = O("p"), r = k(
4228
+ t = O("p"), n = k(
4160
4229
  /*errorMessage*/
4161
4230
  e[8]
4162
4231
  ), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
4163
4232
  },
4164
- m(n, i) {
4165
- C(n, t, i), y(t, r);
4233
+ m(r, i) {
4234
+ A(r, t, i), v(t, n);
4166
4235
  },
4167
- p(n, i) {
4236
+ p(r, i) {
4168
4237
  i[0] & /*errorMessage*/
4169
4238
  256 && j(
4170
- r,
4239
+ n,
4171
4240
  /*errorMessage*/
4172
- n[8]
4241
+ r[8]
4173
4242
  );
4174
4243
  },
4175
- d(n) {
4176
- n && H(t);
4244
+ d(r) {
4245
+ r && H(t);
4177
4246
  }
4178
4247
  };
4179
4248
  }
4180
4249
  function Yt(e) {
4181
- let t, r, n, i;
4250
+ let t, n, r, i;
4182
4251
  function o(u, l) {
4183
4252
  return (
4184
4253
  /*currentChannelTimer*/
@@ -4188,29 +4257,29 @@ function Yt(e) {
4188
4257
  let a = o(e), s = a(e);
4189
4258
  return {
4190
4259
  c() {
4191
- t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
4192
- e[18], ne(t, "disabled", !/*canSubmitChannel*/
4260
+ t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = n = !/*canSubmitChannel*/
4261
+ e[18], re(t, "disabled", !/*canSubmitChannel*/
4193
4262
  e[18] || /*waitingForConfig*/
4194
4263
  e[16]);
4195
4264
  },
4196
4265
  m(u, l) {
4197
- C(u, t, l), s.m(t, null), n || (i = ue(
4266
+ A(u, t, l), s.m(t, null), r || (i = ue(
4198
4267
  t,
4199
4268
  "click",
4200
4269
  /*handleChannelSubmit*/
4201
4270
  e[22]
4202
- ), n = !0);
4271
+ ), r = !0);
4203
4272
  },
4204
4273
  p(u, l) {
4205
4274
  a === (a = o(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), l[0] & /*canSubmitChannel*/
4206
- 262144 && r !== (r = !/*canSubmitChannel*/
4207
- u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
4208
- 327680 && ne(t, "disabled", !/*canSubmitChannel*/
4275
+ 262144 && n !== (n = !/*canSubmitChannel*/
4276
+ u[18]) && (t.disabled = n), l[0] & /*canSubmitChannel, waitingForConfig*/
4277
+ 327680 && re(t, "disabled", !/*canSubmitChannel*/
4209
4278
  u[18] || /*waitingForConfig*/
4210
4279
  u[16]);
4211
4280
  },
4212
4281
  d(u) {
4213
- u && H(t), s.d(), n = !1, i();
4282
+ u && H(t), s.d(), r = !1, i();
4214
4283
  }
4215
4284
  };
4216
4285
  }
@@ -4218,21 +4287,21 @@ function mo(e) {
4218
4287
  let t = (
4219
4288
  /*$_*/
4220
4289
  e[19]("sendCode") + ""
4221
- ), r;
4290
+ ), n;
4222
4291
  return {
4223
4292
  c() {
4224
- r = k(t);
4293
+ n = k(t);
4225
4294
  },
4226
- m(n, i) {
4227
- C(n, r, i);
4295
+ m(r, i) {
4296
+ A(r, n, i);
4228
4297
  },
4229
- p(n, i) {
4298
+ p(r, i) {
4230
4299
  i[0] & /*$_*/
4231
4300
  524288 && t !== (t = /*$_*/
4232
- n[19]("sendCode") + "") && j(r, t);
4301
+ r[19]("sendCode") + "") && j(n, t);
4233
4302
  },
4234
- d(n) {
4235
- n && H(r);
4303
+ d(r) {
4304
+ r && H(n);
4236
4305
  }
4237
4306
  };
4238
4307
  }
@@ -4240,21 +4309,21 @@ function go(e) {
4240
4309
  let t = (
4241
4310
  /*$_*/
4242
4311
  e[19]("waitSeconds") + ""
4243
- ), r, n, i, o;
4312
+ ), n, r, i, o;
4244
4313
  return {
4245
4314
  c() {
4246
- r = k(t), n = k(" ("), i = k(
4315
+ n = k(t), r = k(" ("), i = k(
4247
4316
  /*currentChannelTimer*/
4248
4317
  e[17]
4249
4318
  ), o = k("s)");
4250
4319
  },
4251
4320
  m(a, s) {
4252
- C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
4321
+ A(a, n, s), A(a, r, s), A(a, i, s), A(a, o, s);
4253
4322
  },
4254
4323
  p(a, s) {
4255
4324
  s[0] & /*$_*/
4256
4325
  524288 && t !== (t = /*$_*/
4257
- a[19]("waitSeconds") + "") && j(r, t), s[0] & /*currentChannelTimer*/
4326
+ a[19]("waitSeconds") + "") && j(n, t), s[0] & /*currentChannelTimer*/
4258
4327
  131072 && j(
4259
4328
  i,
4260
4329
  /*currentChannelTimer*/
@@ -4262,12 +4331,12 @@ function go(e) {
4262
4331
  );
4263
4332
  },
4264
4333
  d(a) {
4265
- a && (H(r), H(n), H(i), H(o));
4334
+ a && (H(n), H(r), H(i), H(o));
4266
4335
  }
4267
4336
  };
4268
4337
  }
4269
4338
  function bo(e) {
4270
- let t, r, n = (
4339
+ let t, n, r = (
4271
4340
  /*$_*/
4272
4341
  e[19]("timeRemaining") + ""
4273
4342
  ), i, o, a = (
@@ -4279,28 +4348,28 @@ function bo(e) {
4279
4348
  ), s, u, l = (
4280
4349
  /*$_*/
4281
4350
  e[19]("minutes") + ""
4282
- ), h, c, d, _ = It(
4351
+ ), h, c, d, y = It(
4283
4352
  /*otp*/
4284
4353
  e[2]
4285
4354
  ), m = [];
4286
- for (let g = 0; g < _.length; g += 1)
4287
- m[g] = Kt(Qt(e, _, g));
4355
+ for (let g = 0; g < y.length; g += 1)
4356
+ m[g] = Kt(Qt(e, y, g));
4288
4357
  return {
4289
4358
  c() {
4290
- t = O("div"), r = O("div"), i = k(n), o = F(), s = k(a), u = F(), h = k(l), c = F(), d = O("div");
4359
+ t = O("div"), n = O("div"), i = k(r), o = F(), s = k(a), u = F(), h = k(l), c = F(), d = O("div");
4291
4360
  for (let g = 0; g < m.length; g += 1)
4292
4361
  m[g].c();
4293
- p(r, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4362
+ p(n, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4294
4363
  },
4295
4364
  m(g, E) {
4296
- C(g, t, E), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, d);
4365
+ A(g, t, E), v(t, n), v(n, i), v(n, o), v(n, s), v(n, u), v(n, h), v(t, c), v(t, d);
4297
4366
  for (let S = 0; S < m.length; S += 1)
4298
4367
  m[S] && m[S].m(d, null);
4299
4368
  },
4300
4369
  p(g, E) {
4301
4370
  if (E[0] & /*$_*/
4302
- 524288 && n !== (n = /*$_*/
4303
- g[19]("timeRemaining") + "") && j(i, n), E[0] & /*timeLeft*/
4371
+ 524288 && r !== (r = /*$_*/
4372
+ g[19]("timeRemaining") + "") && j(i, r), E[0] & /*timeLeft*/
4304
4373
  32 && a !== (a = /*formatTime*/
4305
4374
  g[23](
4306
4375
  /*timeLeft*/
@@ -4309,42 +4378,42 @@ function bo(e) {
4309
4378
  524288 && l !== (l = /*$_*/
4310
4379
  g[19]("minutes") + "") && j(h, l), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
4311
4380
  117458964) {
4312
- _ = It(
4381
+ y = It(
4313
4382
  /*otp*/
4314
4383
  g[2]
4315
4384
  );
4316
4385
  let S;
4317
- for (S = 0; S < _.length; S += 1) {
4318
- const P = Qt(g, _, S);
4319
- m[S] ? m[S].p(P, E) : (m[S] = Kt(P), m[S].c(), m[S].m(d, null));
4386
+ for (S = 0; S < y.length; S += 1) {
4387
+ const M = Qt(g, y, S);
4388
+ m[S] ? m[S].p(M, E) : (m[S] = Kt(M), m[S].c(), m[S].m(d, null));
4320
4389
  }
4321
4390
  for (; S < m.length; S += 1)
4322
4391
  m[S].d(1);
4323
- m.length = _.length;
4392
+ m.length = y.length;
4324
4393
  }
4325
4394
  },
4326
4395
  d(g) {
4327
- g && H(t), Xr(m, g);
4396
+ g && H(t), Wn(m, g);
4328
4397
  }
4329
4398
  };
4330
4399
  }
4331
- function yo(e) {
4400
+ function vo(e) {
4332
4401
  let t;
4333
4402
  return {
4334
4403
  c() {
4335
4404
  t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4336
4405
  },
4337
- m(r, n) {
4338
- C(r, t, n);
4406
+ m(n, r) {
4407
+ A(n, t, r);
4339
4408
  },
4340
4409
  p: K,
4341
- d(r) {
4342
- r && H(t);
4410
+ d(n) {
4411
+ n && H(t);
4343
4412
  }
4344
4413
  };
4345
4414
  }
4346
4415
  function Kt(e) {
4347
- let t, r, n, i = (
4416
+ let t, n, r, i = (
4348
4417
  /*index*/
4349
4418
  e[71]
4350
4419
  ), o, a;
@@ -4378,15 +4447,15 @@ function Kt(e) {
4378
4447
  return {
4379
4448
  c() {
4380
4449
  t = O("input"), p(t, "id", `otp-input-${/*index*/
4381
- e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
4450
+ e[71]}`), p(t, "type", "text"), p(t, "class", n = `otp-box ${/*config*/
4382
4451
  e[4].inputLength % 2 === 0 && /*index*/
4383
4452
  e[71] === /*config*/
4384
- e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
4453
+ e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = r = /*char*/
4385
4454
  e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
4386
4455
  e[11], p(t, "autocomplete", "off");
4387
4456
  },
4388
4457
  m(c, d) {
4389
- C(c, t, d), s(), o || (a = [
4458
+ A(c, t, d), s(), o || (a = [
4390
4459
  ue(t, "input", l),
4391
4460
  ue(t, "keydown", h),
4392
4461
  ue(
@@ -4399,37 +4468,37 @@ function Kt(e) {
4399
4468
  },
4400
4469
  p(c, d) {
4401
4470
  e = c, d[0] & /*config*/
4402
- 16 && r !== (r = `otp-box ${/*config*/
4471
+ 16 && n !== (n = `otp-box ${/*config*/
4403
4472
  e[4].inputLength % 2 === 0 && /*index*/
4404
4473
  e[71] === /*config*/
4405
- e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), d[0] & /*otp*/
4406
- 4 && n !== (n = /*char*/
4407
- e[69]) && t.value !== n && (t.value = n), d[0] & /*inputDisabled*/
4474
+ e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", n), d[0] & /*otp*/
4475
+ 4 && r !== (r = /*char*/
4476
+ e[69]) && t.value !== r && (t.value = r), d[0] & /*inputDisabled*/
4408
4477
  2048 && (t.disabled = /*inputDisabled*/
4409
4478
  e[11]), i !== /*index*/
4410
4479
  e[71] && (u(), i = /*index*/
4411
4480
  e[71], s());
4412
4481
  },
4413
4482
  d(c) {
4414
- c && H(t), u(), o = !1, ye(a);
4483
+ c && H(t), u(), o = !1, ve(a);
4415
4484
  }
4416
4485
  };
4417
4486
  }
4418
- function _o(e) {
4419
- let t, r = (
4487
+ function yo(e) {
4488
+ let t, n = (
4420
4489
  /*$_*/
4421
4490
  e[19]("submit") + ""
4422
- ), n, i, o, a;
4491
+ ), r, i, o, a;
4423
4492
  return {
4424
4493
  c() {
4425
- t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4494
+ t = O("button"), r = k(n), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4426
4495
  e[2].join("").length !== /*config*/
4427
4496
  e[4].inputLength || /*isSubmitting*/
4428
4497
  e[13] || /*maxAttempts*/
4429
4498
  e[15];
4430
4499
  },
4431
4500
  m(s, u) {
4432
- C(s, t, u), y(t, n), o || (a = ue(
4501
+ A(s, t, u), v(t, r), o || (a = ue(
4433
4502
  t,
4434
4503
  "click",
4435
4504
  /*submitOtp*/
@@ -4438,8 +4507,8 @@ function _o(e) {
4438
4507
  },
4439
4508
  p(s, u) {
4440
4509
  u[0] & /*$_*/
4441
- 524288 && r !== (r = /*$_*/
4442
- s[19]("submit") + "") && j(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4510
+ 524288 && n !== (n = /*$_*/
4511
+ s[19]("submit") + "") && j(r, n), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4443
4512
  40980 && i !== (i = /*otp*/
4444
4513
  s[2].join("").length !== /*config*/
4445
4514
  s[4].inputLength || /*isSubmitting*/
@@ -4452,16 +4521,16 @@ function _o(e) {
4452
4521
  };
4453
4522
  }
4454
4523
  function Eo(e) {
4455
- let t, r = (
4524
+ let t, n = (
4456
4525
  /*$_*/
4457
4526
  e[19]("resendOtp") + ""
4458
- ), n, i, o;
4527
+ ), r, i, o;
4459
4528
  return {
4460
4529
  c() {
4461
- t = O("button"), n = k(r), p(t, "class", "OtpButton");
4530
+ t = O("button"), r = k(n), p(t, "class", "OtpButton");
4462
4531
  },
4463
4532
  m(a, s) {
4464
- C(a, t, s), y(t, n), i || (o = ue(
4533
+ A(a, t, s), v(t, r), i || (o = ue(
4465
4534
  t,
4466
4535
  "click",
4467
4536
  /*handleResendOtp*/
@@ -4470,32 +4539,32 @@ function Eo(e) {
4470
4539
  },
4471
4540
  p(a, s) {
4472
4541
  s[0] & /*$_*/
4473
- 524288 && r !== (r = /*$_*/
4474
- a[19]("resendOtp") + "") && j(n, r);
4542
+ 524288 && n !== (n = /*$_*/
4543
+ a[19]("resendOtp") + "") && j(r, n);
4475
4544
  },
4476
4545
  d(a) {
4477
4546
  a && H(t), i = !1, o();
4478
4547
  }
4479
4548
  };
4480
4549
  }
4481
- function vo(e) {
4550
+ function _o(e) {
4482
4551
  let t;
4483
- function r(o, a) {
4552
+ function n(o, a) {
4484
4553
  return (
4485
4554
  /*hasConfigErrors*/
4486
4555
  o[7] ? lo : ao
4487
4556
  );
4488
4557
  }
4489
- let n = r(e), i = n(e);
4558
+ let r = n(e), i = r(e);
4490
4559
  return {
4491
4560
  c() {
4492
4561
  t = O("div"), i.c(), p(t, "class", "OtpContent");
4493
4562
  },
4494
4563
  m(o, a) {
4495
- C(o, t, a), i.m(t, null), e[44](t);
4564
+ A(o, t, a), i.m(t, null), e[44](t);
4496
4565
  },
4497
4566
  p(o, a) {
4498
- n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4567
+ r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
4499
4568
  },
4500
4569
  i: K,
4501
4570
  o: K,
@@ -4504,11 +4573,11 @@ function vo(e) {
4504
4573
  }
4505
4574
  };
4506
4575
  }
4507
- function xo(e, t, r) {
4508
- let n, i, o;
4509
- jr(e, io, (f) => r(19, o = f));
4510
- let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: _ } = t, m = [], g = !0, E = null, S = 0, P = "", I = "", D = !1, M = !1, N = "", ee = "", q = "", se = !1, pe = !1, ae = !1, B = "", U = {}, W = null, de = !1, me = !1, ge = "", Q, Ie, J = [], $ = null, te = 0, be = !1, Ee = !1;
4511
- const ve = { SMS: "sms", EMAIL: "email" }, le = {
4576
+ function xo(e, t, n) {
4577
+ let r, i, o;
4578
+ Vn(e, io, (f) => n(19, o = f));
4579
+ let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: y } = t, m = [], g = !0, E = null, S = 0, M = "", I = "", D = !1, P = !1, N = "", ee = "", q = "", se = !1, pe = !1, ae = !1, B = "", U = {}, W = null, de = !1, me = !1, ge = "", Q, Ie, J = [], z = null, te = 0, be = !1, Ee = !1;
4580
+ const _e = { SMS: "sms", EMAIL: "email" }, le = {
4512
4581
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
4513
4582
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
4514
4583
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
@@ -4518,108 +4587,108 @@ function xo(e, t, r) {
4518
4587
  });
4519
4588
  const Y = () => {
4520
4589
  oo(l);
4521
- }, z = () => {
4590
+ }, $ = () => {
4522
4591
  fetch(d).then((f) => f.json()).then((f) => {
4523
- Object.keys(f).forEach((v) => {
4524
- Zt(v, f[v]);
4592
+ Object.keys(f).forEach((_) => {
4593
+ Zt(_, f[_]);
4525
4594
  });
4526
4595
  }).catch((f) => {
4527
4596
  console.log(f);
4528
4597
  });
4529
4598
  }, Ne = async (f) => {
4530
4599
  if (f.detail?.["x-step-up-required"]) {
4531
- if (r(7, M = !1), r(6, D = !1), r(8, N = ""), ee = f.detail["x-step-up-token"], q = f.detail.flow, !ee || !q) {
4532
- r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
4600
+ if (n(7, P = !1), n(6, D = !1), n(8, N = ""), ee = f.detail["x-step-up-token"], q = f.detail.flow, !ee || !q) {
4601
+ n(3, g = !1), n(7, P = !0), n(8, N = o("configError"));
4533
4602
  return;
4534
4603
  }
4535
- r(12, de = !1), r(3, g = !1);
4604
+ n(12, de = !1), n(3, g = !1);
4536
4605
  }
4537
4606
  }, he = () => {
4538
- $ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, m = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, de = !1), r(38, U = {});
4607
+ z && (clearInterval(z), z = null), W && (clearInterval(W), W = null), n(6, D = !1), n(7, P = !1), n(8, N = ""), n(10, pe = !1), n(2, m = []), n(4, E = null), n(3, g = !0), n(0, B = ""), n(12, de = !1), n(38, U = {});
4539
4608
  }, V = () => {
4540
4609
  he();
4541
- }, Re = () => new Promise((f, v) => {
4610
+ }, Re = () => new Promise((f, _) => {
4542
4611
  const x = new URL(`${h}/api/pam/v1/mfa/challenge/${ee}`), X = new Headers();
4543
- X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), r(16, Ee = !0);
4612
+ X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), n(16, Ee = !0);
4544
4613
  const st = {
4545
4614
  method: "PATCH",
4546
4615
  headers: X,
4547
4616
  body: JSON.stringify({
4548
4617
  channel: B,
4549
- templateId: _
4618
+ templateId: y
4550
4619
  })
4551
4620
  };
4552
- fetch(x, st).then((Pt) => Pt.json()).then(() => {
4553
- r(15, be = !1), A(), nt(), f();
4554
- }).catch((Pt) => {
4555
- v();
4621
+ fetch(x, st).then((Mt) => Mt.json()).then(() => {
4622
+ n(15, be = !1), C(), rt(), f();
4623
+ }).catch((Mt) => {
4624
+ _();
4556
4625
  });
4557
4626
  }), ce = () => {
4558
4627
  W && clearInterval(W), W = setInterval(
4559
4628
  () => {
4560
4629
  const f = { ...U };
4561
- let v = !1;
4630
+ let _ = !1;
4562
4631
  Object.keys(f).forEach((x) => {
4563
- f[x] > 0 && (f[x]--, v = !0);
4564
- }), r(38, U = f), !v && W && (clearInterval(W), W = null);
4632
+ f[x] > 0 && (f[x]--, _ = !0);
4633
+ }), n(38, U = f), !_ && W && (clearInterval(W), W = null);
4565
4634
  },
4566
4635
  1e3
4567
4636
  );
4568
4637
  }, G = (f) => {
4569
- r(0, B = f);
4638
+ n(0, B = f);
4570
4639
  }, b = async () => {
4571
4640
  if (!(!B || U[B] && U[B] > 0)) {
4572
- r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
4641
+ n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${B}`);
4573
4642
  try {
4574
- await Re(), await ot(), r(38, U = {
4643
+ await Re(), await ot(), n(38, U = {
4575
4644
  ...U,
4576
4645
  [B]: 30
4577
- }), ce(), r(12, de = !0), A(), nt();
4646
+ }), ce(), n(12, de = !0), C(), rt();
4578
4647
  } catch (f) {
4579
- console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
4648
+ console.error("Error submitting channel:", f), n(6, D = !0), n(8, N = o("submissionError"));
4580
4649
  } finally {
4581
- r(3, g = !1);
4650
+ n(3, g = !1);
4582
4651
  }
4583
4652
  }
4584
- }, A = () => {
4585
- const f = new Date(P), v = new Date(I), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
4653
+ }, C = () => {
4654
+ const f = new Date(M), _ = new Date(I), x = /* @__PURE__ */ new Date(), X = _.getTime() - x.getTime();
4586
4655
  te = f.getTime() - X;
4587
4656
  const ke = Date.now(), st = Math.max(0, Math.floor((te - ke) / 1e3));
4588
- r(5, S = st);
4589
- }, nt = () => {
4590
- $ && clearInterval($), $ = setInterval(
4657
+ n(5, S = st);
4658
+ }, rt = () => {
4659
+ z && clearInterval(z), z = setInterval(
4591
4660
  () => {
4592
- const f = Date.now(), v = Math.max(0, Math.floor((te - f) / 1e3));
4593
- r(5, S = v), r(11, ae = v <= 0), v <= 0 && (clearInterval($), $ = null, r(9, se = !0), r(6, D = !1), r(10, pe = !1));
4661
+ const f = Date.now(), _ = Math.max(0, Math.floor((te - f) / 1e3));
4662
+ n(5, S = _), n(11, ae = _ <= 0), _ <= 0 && (clearInterval(z), z = null, n(9, se = !0), n(6, D = !1), n(10, pe = !1));
4594
4663
  },
4595
4664
  1e3
4596
4665
  );
4597
- }, Ar = (f) => {
4598
- const v = Math.floor(f / 60), x = f % 60;
4599
- return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
4600
- }, it = (f, v) => {
4666
+ }, An = (f) => {
4667
+ const _ = Math.floor(f / 60), x = f % 60;
4668
+ return `${_.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
4669
+ }, it = (f, _) => {
4601
4670
  const x = [...m];
4602
- x[f] = v.toUpperCase(), r(2, m = x), x.join("") !== ge && r(13, me = !1);
4603
- }, Cr = (f) => {
4671
+ x[f] = _.toUpperCase(), n(2, m = x), x.join("") !== ge && n(13, me = !1);
4672
+ }, Bn = (f) => {
4604
4673
  f.preventDefault();
4605
4674
  const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
4606
- r(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]), J[x.length]?.focus(), x.length === E.inputLength && Bt();
4607
- }, At = (f, v) => {
4675
+ n(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]), J[x.length]?.focus(), x.length === E.inputLength && Bt();
4676
+ }, Ct = (f, _) => {
4608
4677
  const x = f.target, X = x.value;
4609
- /^[a-z0-9]$/i.test(X) && (it(v, X), J[v + 1]?.focus()), x.value = "";
4610
- }, Ct = (f, v) => {
4678
+ /^[a-z0-9]$/i.test(X) && (it(_, X), J[_ + 1]?.focus()), x.value = "";
4679
+ }, At = (f, _) => {
4611
4680
  const x = f.key, X = f.ctrlKey || f.metaKey;
4612
4681
  if (/^[a-z0-9]$/i.test(x)) {
4613
4682
  if (X && x.toLowerCase() === "v")
4614
4683
  return;
4615
- f.preventDefault(), it(v, x), J[v + 1]?.focus();
4684
+ f.preventDefault(), it(_, x), J[_ + 1]?.focus();
4616
4685
  } else
4617
- x === "Backspace" && (f.preventDefault(), m[v] !== "" && it(v, ""), J[v - 1]?.focus());
4618
- }, Br = () => {
4619
- q == "stateful" && (Re(), r(9, se = !1));
4686
+ x === "Backspace" && (f.preventDefault(), m[_] !== "" && it(_, ""), J[_ - 1]?.focus());
4687
+ }, Mn = () => {
4688
+ q == "stateful" && (Re(), n(9, se = !1));
4620
4689
  const f = new CustomEvent("otpResendRequested");
4621
4690
  window.dispatchEvent(f);
4622
- }, Pr = (f) => {
4691
+ }, Pn = (f) => {
4623
4692
  window.dispatchEvent(new CustomEvent(
4624
4693
  "otpSubmitted",
4625
4694
  {
@@ -4630,13 +4699,13 @@ function xo(e, t, r) {
4630
4699
  }
4631
4700
  }
4632
4701
  ));
4633
- }, Mr = async (f) => {
4634
- const v = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/validate`, h);
4635
- v.searchParams.append("input", f);
4702
+ }, Ln = async (f) => {
4703
+ const _ = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/validate`, h);
4704
+ _.searchParams.append("input", f);
4636
4705
  try {
4637
- const x = await fetch(v.href, { method: "POST" });
4706
+ const x = await fetch(_.href, { method: "POST" });
4638
4707
  if (x.status === 200) {
4639
- Lr();
4708
+ In();
4640
4709
  return;
4641
4710
  }
4642
4711
  const X = await x.json();
@@ -4656,14 +4725,14 @@ function xo(e, t, r) {
4656
4725
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
4657
4726
  return;
4658
4727
  }
4659
- r(6, D = !0), r(8, N = o("invalidOtp")), ot();
4728
+ n(6, D = !0), n(8, N = o("invalidOtp")), ot();
4660
4729
  return;
4661
4730
  }
4662
- x.message === le.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === le.MAX_ATTEMPTS_EXCEEDED && r(15, be = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
4731
+ x.message === le.MAX_INVALIDATE && (n(6, D = !0), n(8, N = o("invalidOtp"))), x.details === le.MAX_ATTEMPTS_EXCEEDED && n(15, be = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, N = o("submissionError"));
4663
4732
  } finally {
4664
- r(3, g = !1);
4733
+ n(3, g = !1);
4665
4734
  }
4666
- }, Lr = () => {
4735
+ }, In = () => {
4667
4736
  window.dispatchEvent(new CustomEvent(
4668
4737
  "otpSuccess",
4669
4738
  {
@@ -4672,63 +4741,63 @@ function xo(e, t, r) {
4672
4741
  }
4673
4742
  }
4674
4743
  ));
4675
- }, Ir = () => {
4744
+ }, Nn = () => {
4676
4745
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4677
4746
  }, Bt = async () => {
4678
4747
  if (m.join("").length !== E.inputLength) {
4679
- r(6, D = !0), r(8, N = o("invalidOtp"));
4748
+ n(6, D = !0), n(8, N = o("invalidOtp"));
4680
4749
  return;
4681
4750
  }
4682
4751
  const f = m.join("");
4683
- r(13, me = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" && Pr(f), q === "stateful" && await Mr(f);
4752
+ n(13, me = !0), ge = f, n(3, g = !0), n(6, D = !1), n(8, N = ""), q === "stateless" && Pn(f), q === "stateful" && await Ln(f);
4684
4753
  }, ot = async () => {
4685
4754
  if (h)
4686
4755
  try {
4687
- r(3, g = !0);
4688
- const f = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/config`, h), v = await fetch(f.href), x = await v.json();
4689
- if (v.ok)
4690
- r(4, E = x), r(2, m = Array(E.inputLength).fill("")), r(9, se = !1), P = E.expirationTime, I = E.serverTime, E.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && r(10, pe = !0), r(3, g = !1), A(), nt(), r(16, Ee = !1);
4756
+ n(3, g = !0);
4757
+ const f = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/config`, h), _ = await fetch(f.href), x = await _.json();
4758
+ if (_.ok)
4759
+ n(4, E = x), n(2, m = Array(E.inputLength).fill("")), n(9, se = !1), M = E.expirationTime, I = E.serverTime, E.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && n(10, pe = !0), n(3, g = !1), C(), rt(), n(16, Ee = !1);
4691
4760
  else if (x && x.details === le.MAX_ATTEMPTS_EXCEEDED)
4692
4761
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4693
4762
  else {
4694
- const X = x && x.message || `Failed to load config. Status: ${v.status}`;
4763
+ const X = x && x.message || `Failed to load config. Status: ${_.status}`;
4695
4764
  throw new Error(X);
4696
4765
  }
4697
4766
  } catch (f) {
4698
- r(3, g = !1), r(7, M = !0), r(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4767
+ n(3, g = !1), n(7, P = !0), n(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4699
4768
  }
4700
4769
  };
4701
- Jr(() => (window.addEventListener("stepUpAuthRequired", Ne, !1), window.addEventListener("closePopup", V, !1), () => {
4702
- window.removeEventListener("stepUpAuthRequired", Ne), window.removeEventListener("closePopup", V, !1), $ && clearInterval($), W && clearInterval(W);
4770
+ Yn(() => (window.addEventListener("stepUpAuthRequired", Ne, !1), window.addEventListener("closePopup", V, !1), () => {
4771
+ window.removeEventListener("stepUpAuthRequired", Ne), window.removeEventListener("closePopup", V, !1), z && clearInterval(z), W && clearInterval(W);
4703
4772
  }));
4704
- const Nr = () => G(ve.SMS), Rr = () => G(ve.EMAIL);
4705
- function kr(f, v) {
4773
+ const Rn = () => G(_e.SMS), kn = () => G(_e.EMAIL);
4774
+ function Dn(f, _) {
4706
4775
  Ze[f ? "unshift" : "push"](() => {
4707
- J[v] = f, r(14, J);
4776
+ J[_] = f, n(14, J);
4708
4777
  });
4709
4778
  }
4710
- const Dr = (f, v) => At(v, f), Ur = (f, v) => Ct(v, f);
4711
- function Gr(f) {
4779
+ const Un = (f, _) => Ct(_, f), Gn = (f, _) => At(_, f);
4780
+ function Fn(f) {
4712
4781
  Ze[f ? "unshift" : "push"](() => {
4713
- Q = f, r(1, Q);
4782
+ Q = f, n(1, Q);
4714
4783
  });
4715
4784
  }
4716
4785
  return e.$$set = (f) => {
4717
- "clientstyling" in f && r(31, a = f.clientstyling), "clientstylingurl" in f && r(32, s = f.clientstylingurl), "mbsource" in f && r(33, u = f.mbsource), "lang" in f && r(34, l = f.lang), "endpoint" in f && r(35, h = f.endpoint), "session" in f && r(36, c = f.session), "translationurl" in f && r(37, d = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
4786
+ "clientstyling" in f && n(31, a = f.clientstyling), "clientstylingurl" in f && n(32, s = f.clientstylingurl), "mbsource" in f && n(33, u = f.mbsource), "lang" in f && n(34, l = f.lang), "endpoint" in f && n(35, h = f.endpoint), "session" in f && n(36, c = f.session), "translationurl" in f && n(37, d = f.translationurl), "templateid" in f && n(30, y = f.templateid);
4718
4787
  }, e.$$.update = () => {
4719
4788
  e.$$.dirty[0] & /*customStylingContainer*/
4720
4789
  2 | e.$$.dirty[1] & /*clientstyling*/
4721
- 1 && a && Q && fn(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4790
+ 1 && a && Q && fr(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4722
4791
  2 | e.$$.dirty[1] & /*clientstylingurl*/
4723
- 2 && s && Q && pn(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4792
+ 2 && s && Q && pr(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4724
4793
  2 | e.$$.dirty[1] & /*mbsource*/
4725
- 4 && u && Q && dn(Q, `${u}.Style`, Ie), e.$$.dirty[1] & /*lang*/
4794
+ 4 && u && Q && dr(Q, `${u}.Style`, Ie), e.$$.dirty[1] & /*lang*/
4726
4795
  8 && l && Y(), e.$$.dirty[1] & /*lang, translationurl*/
4727
- 72 && l && d && z(), e.$$.dirty[0] & /*selectedChannel*/
4796
+ 72 && l && d && $(), e.$$.dirty[0] & /*selectedChannel*/
4728
4797
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4729
- 128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4798
+ 128 && n(18, r = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4730
4799
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4731
- 128 && r(17, i = B && U[B] || 0);
4800
+ 128 && n(17, i = B && U[B] || 0);
4732
4801
  }, [
4733
4802
  B,
4734
4803
  Q,
@@ -4737,7 +4806,7 @@ function xo(e, t, r) {
4737
4806
  E,
4738
4807
  S,
4739
4808
  D,
4740
- M,
4809
+ P,
4741
4810
  N,
4742
4811
  se,
4743
4812
  pe,
@@ -4748,19 +4817,19 @@ function xo(e, t, r) {
4748
4817
  be,
4749
4818
  Ee,
4750
4819
  i,
4751
- n,
4820
+ r,
4752
4821
  o,
4753
- ve,
4822
+ _e,
4754
4823
  G,
4755
4824
  b,
4756
- Ar,
4757
- Cr,
4758
- At,
4825
+ An,
4826
+ Bn,
4759
4827
  Ct,
4760
- Br,
4761
- Ir,
4828
+ At,
4829
+ Mn,
4830
+ Nn,
4762
4831
  Bt,
4763
- _,
4832
+ y,
4764
4833
  a,
4765
4834
  s,
4766
4835
  u,
@@ -4769,22 +4838,22 @@ function xo(e, t, r) {
4769
4838
  c,
4770
4839
  d,
4771
4840
  U,
4772
- Nr,
4773
- Rr,
4774
- kr,
4775
- Dr,
4776
- Ur,
4777
- Gr
4841
+ Rn,
4842
+ kn,
4843
+ Dn,
4844
+ Un,
4845
+ Gn,
4846
+ Fn
4778
4847
  ];
4779
4848
  }
4780
- class wo extends hn {
4849
+ class wo extends hr {
4781
4850
  constructor(t) {
4782
- super(), ln(
4851
+ super(), lr(
4783
4852
  this,
4784
4853
  t,
4785
4854
  xo,
4786
- vo,
4787
- tr,
4855
+ _o,
4856
+ tn,
4788
4857
  {
4789
4858
  clientstyling: 31,
4790
4859
  clientstylingurl: 32,
@@ -4848,7 +4917,7 @@ class wo extends hn {
4848
4917
  this.$$set({ templateid: t }), ie();
4849
4918
  }
4850
4919
  }
4851
- un(wo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4920
+ ur(wo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4852
4921
  export {
4853
4922
  wo as C
4854
4923
  };