@everymatrix/cashier-step-up 0.6.4 → 0.6.5

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.
@@ -9,38 +9,38 @@ function Bt() {
9
9
  function _e(e) {
10
10
  e.forEach(Yt);
11
11
  }
12
- function vt(e) {
12
+ function wt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
15
  function Kt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Gn(e) {
18
+ function Ur(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function en(e, ...t) {
21
+ function er(e, ...t) {
22
22
  if (e == null) {
23
- for (const r of t)
24
- r(void 0);
23
+ for (const n of t)
24
+ n(void 0);
25
25
  return Y;
26
26
  }
27
- const n = e.subscribe(...t);
28
- return n.unsubscribe ? () => n.unsubscribe() : n;
27
+ const r = e.subscribe(...t);
28
+ return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Fn(e, t, n) {
31
- e.$$.on_destroy.push(en(t, n));
30
+ function Gr(e, t, r) {
31
+ e.$$.on_destroy.push(er(t, r));
32
32
  }
33
- function _(e, t) {
33
+ function y(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function jn(e, t, n) {
37
- const r = Vn(e);
38
- if (!r.getElementById(t)) {
39
- const i = H("style");
40
- i.id = t, i.textContent = n, $n(r, i);
36
+ function Fr(e, t, r) {
37
+ const n = jr(e);
38
+ if (!n.getElementById(t)) {
39
+ const i = O("style");
40
+ i.id = t, i.textContent = r, Vr(n, i);
41
41
  }
42
42
  }
43
- function Vn(e) {
43
+ function jr(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,27 +50,27 @@ function Vn(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function $n(e, t) {
54
- return _(
53
+ function Vr(e, t) {
54
+ return y(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function B(e, t, n) {
61
- e.insertBefore(t, n || null);
60
+ function C(e, t, r) {
61
+ e.insertBefore(t, r || null);
62
62
  }
63
- function A(e) {
63
+ function H(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function zn(e, t) {
67
- for (let n = 0; n < e.length; n += 1)
68
- e[n] && e[n].d(t);
66
+ function $r(e, t) {
67
+ for (let r = 0; r < e.length; r += 1)
68
+ e[r] && e[r].d(t);
69
69
  }
70
- function H(e) {
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,118 +79,118 @@ function k(e) {
79
79
  function G() {
80
80
  return k(" ");
81
81
  }
82
- function Xn() {
82
+ function zr() {
83
83
  return k("");
84
84
  }
85
- function he(e, t, n, r) {
86
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
85
+ function ce(e, t, r, n) {
86
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
87
87
  }
88
- function p(e, t, n) {
89
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
88
+ function p(e, t, r) {
89
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
90
90
  }
91
- function Wn(e) {
91
+ function Xr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
94
  function F(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function ie(e, t, n) {
99
- e.classList.toggle(t, !!n);
98
+ function ie(e, t, r) {
99
+ e.classList.toggle(t, !!r);
100
100
  }
101
- function Zn(e) {
101
+ function Wr(e) {
102
102
  const t = {};
103
103
  return e.childNodes.forEach(
104
104
  /** @param {Element} node */
105
- (n) => {
106
- t[n.slot || "default"] = !0;
105
+ (r) => {
106
+ t[r.slot || "default"] = !0;
107
107
  }
108
108
  ), t;
109
109
  }
110
- let Re;
111
- function Ne(e) {
112
- Re = e;
110
+ let ke;
111
+ function Re(e) {
112
+ ke = e;
113
113
  }
114
- function qn() {
115
- if (!Re)
114
+ function Zr() {
115
+ if (!ke)
116
116
  throw new Error("Function called outside component initialization");
117
- return Re;
117
+ return ke;
118
118
  }
119
- function Qn(e) {
120
- qn().$$.on_mount.push(e);
119
+ function qr(e) {
120
+ Zr().$$.on_mount.push(e);
121
121
  }
122
- const Se = [], Xe = [];
123
- let Te = [];
124
- const Pt = [], Jn = /* @__PURE__ */ Promise.resolve();
125
- let ht = !1;
126
- function Yn() {
127
- ht || (ht = !0, Jn.then(oe));
122
+ const Te = [], We = [];
123
+ let Oe = [];
124
+ const Pt = [], Qr = /* @__PURE__ */ Promise.resolve();
125
+ let ft = !1;
126
+ function Jr() {
127
+ ft || (ft = !0, Qr.then(oe));
128
128
  }
129
- function ct(e) {
130
- Te.push(e);
129
+ function pt(e) {
130
+ Oe.push(e);
131
131
  }
132
- const rt = /* @__PURE__ */ new Set();
133
- let xe = 0;
132
+ const ot = /* @__PURE__ */ new Set();
133
+ let we = 0;
134
134
  function oe() {
135
- if (xe !== 0)
135
+ if (we !== 0)
136
136
  return;
137
- const e = Re;
137
+ const e = ke;
138
138
  do {
139
139
  try {
140
- for (; xe < Se.length; ) {
141
- const t = Se[xe];
142
- xe++, Ne(t), Kn(t.$$);
140
+ for (; we < Te.length; ) {
141
+ const t = Te[we];
142
+ we++, Re(t), Yr(t.$$);
143
143
  }
144
144
  } catch (t) {
145
- throw Se.length = 0, xe = 0, t;
145
+ throw Te.length = 0, we = 0, t;
146
146
  }
147
- for (Ne(null), Se.length = 0, xe = 0; Xe.length; )
148
- Xe.pop()();
149
- for (let t = 0; t < Te.length; t += 1) {
150
- const n = Te[t];
151
- rt.has(n) || (rt.add(n), n());
147
+ for (Re(null), Te.length = 0, we = 0; We.length; )
148
+ We.pop()();
149
+ for (let t = 0; t < Oe.length; t += 1) {
150
+ const r = Oe[t];
151
+ ot.has(r) || (ot.add(r), r());
152
152
  }
153
- Te.length = 0;
154
- } while (Se.length);
153
+ Oe.length = 0;
154
+ } while (Te.length);
155
155
  for (; Pt.length; )
156
156
  Pt.pop()();
157
- ht = !1, rt.clear(), Ne(e);
157
+ ft = !1, ot.clear(), Re(e);
158
158
  }
159
- function Kn(e) {
159
+ function Yr(e) {
160
160
  if (e.fragment !== null) {
161
161
  e.update(), _e(e.before_update);
162
162
  const t = e.dirty;
163
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ct);
163
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pt);
164
164
  }
165
165
  }
166
- function er(e) {
167
- const t = [], n = [];
168
- Te.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Te = t;
166
+ function Kr(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;
169
169
  }
170
- const tr = /* @__PURE__ */ new Set();
171
- function nr(e, t) {
172
- e && e.i && (tr.delete(e), e.i(t));
170
+ const en = /* @__PURE__ */ new Set();
171
+ function tn(e, t) {
172
+ e && e.i && (en.delete(e), e.i(t));
173
173
  }
174
174
  function Mt(e) {
175
175
  return e?.length !== void 0 ? e : Array.from(e);
176
176
  }
177
- function rr(e, t, n) {
178
- const { fragment: r, after_update: i } = e.$$;
179
- r && r.m(t, n), ct(() => {
180
- const o = e.$$.on_mount.map(Yt).filter(vt);
177
+ function rn(e, t, r) {
178
+ const { fragment: n, after_update: i } = e.$$;
179
+ n && n.m(t, r), pt(() => {
180
+ const o = e.$$.on_mount.map(Yt).filter(wt);
181
181
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
182
- }), i.forEach(ct);
182
+ }), i.forEach(pt);
183
183
  }
184
- function ir(e, t) {
185
- const n = e.$$;
186
- n.fragment !== null && (er(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
+ function nn(e, t) {
185
+ const r = e.$$;
186
+ r.fragment !== null && (Kr(r.after_update), _e(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
187
187
  }
188
- function or(e, t) {
189
- e.$$.dirty[0] === -1 && (Se.push(e), Yn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
188
+ function on(e, t) {
189
+ e.$$.dirty[0] === -1 && (Te.push(e), Jr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
190
  }
191
- function sr(e, t, n, r, i, o, a = null, s = [-1]) {
192
- const u = Re;
193
- Ne(e);
191
+ function sn(e, t, r, n, i, o, a = null, s = [-1]) {
192
+ const u = ke;
193
+ Re(e);
194
194
  const l = e.$$ = {
195
195
  fragment: null,
196
196
  ctx: [],
@@ -214,21 +214,21 @@ function sr(e, t, n, r, i, o, a = null, s = [-1]) {
214
214
  };
215
215
  a && a(l.root);
216
216
  let h = !1;
217
- if (l.ctx = n ? n(e, t.props || {}, (c, m, ...y) => {
218
- const d = y.length ? y[0] : m;
219
- return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && or(e, c)), m;
220
- }) : [], l.update(), h = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
217
+ if (l.ctx = r ? r(e, t.props || {}, (c, m, ..._) => {
218
+ const d = _.length ? _[0] : m;
219
+ return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && on(e, c)), m;
220
+ }) : [], l.update(), h = !0, _e(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
221
221
  if (t.hydrate) {
222
- const c = Wn(t.target);
223
- l.fragment && l.fragment.l(c), c.forEach(A);
222
+ const c = Xr(t.target);
223
+ l.fragment && l.fragment.l(c), c.forEach(H);
224
224
  } else
225
225
  l.fragment && l.fragment.c();
226
- t.intro && nr(e.$$.fragment), rr(e, t.target, t.anchor), oe();
226
+ t.intro && tn(e.$$.fragment), rn(e, t.target, t.anchor), oe();
227
227
  }
228
- Ne(u);
228
+ Re(u);
229
229
  }
230
- let tn;
231
- typeof HTMLElement == "function" && (tn = class extends HTMLElement {
230
+ let tr;
231
+ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
232
232
  /** The Svelte component constructor */
233
233
  $$ctor;
234
234
  /** Slots */
@@ -247,20 +247,20 @@ typeof HTMLElement == "function" && (tn = 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, n) {
251
- super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
250
+ constructor(e, t, r) {
251
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
252
252
  }
253
- addEventListener(e, t, n) {
253
+ addEventListener(e, t, r) {
254
254
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
255
- const r = this.$$c.$on(e, t);
256
- this.$$l_u.set(t, r);
255
+ const n = this.$$c.$on(e, t);
256
+ this.$$l_u.set(t, n);
257
257
  }
258
- super.addEventListener(e, t, n);
258
+ super.addEventListener(e, t, r);
259
259
  }
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));
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));
264
264
  }
265
265
  }
266
266
  async connectedCallback() {
@@ -270,29 +270,29 @@ typeof HTMLElement == "function" && (tn = class extends HTMLElement {
270
270
  let o;
271
271
  return {
272
272
  c: function() {
273
- o = H("slot"), i !== "default" && p(o, "name", i);
273
+ o = O("slot"), i !== "default" && p(o, "name", i);
274
274
  },
275
275
  /**
276
276
  * @param {HTMLElement} target
277
277
  * @param {HTMLElement} [anchor]
278
278
  */
279
279
  m: function(u, l) {
280
- B(u, o, l);
280
+ C(u, o, l);
281
281
  },
282
282
  d: function(u) {
283
- u && A(o);
283
+ u && H(o);
284
284
  }
285
285
  };
286
286
  };
287
287
  };
288
288
  if (await Promise.resolve(), !this.$$cn || this.$$c)
289
289
  return;
290
- const t = {}, n = Zn(this);
290
+ const t = {}, r = Wr(this);
291
291
  for (const i of this.$$s)
292
- i in n && (t[i] = [e(i)]);
292
+ i in r && (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] = Ve(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" && (tn = class extends HTMLElement {
306
306
  }
307
307
  }
308
308
  });
309
- const r = () => {
309
+ const n = () => {
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 = Ve(
313
+ const o = $e(
314
314
  i,
315
315
  this.$$d[i],
316
316
  this.$$p_d,
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (tn = class extends HTMLElement {
320
320
  }
321
321
  this.$$r = !1;
322
322
  };
323
- this.$$c.$$.after_update.push(r), r();
323
+ this.$$c.$$.after_update.push(n), n();
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" && (tn = 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, n) {
335
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ve(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
334
+ attributeChangedCallback(e, t, r) {
335
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = $e(e, r, 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" && (tn = class extends HTMLElement {
345
345
  ) || e;
346
346
  }
347
347
  });
348
- function Ve(e, t, n, r) {
349
- const i = n[e]?.type;
350
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
348
+ function $e(e, t, r, n) {
349
+ const i = r[e]?.type;
350
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
351
351
  return t;
352
- if (r === "toAttribute")
352
+ if (n === "toAttribute")
353
353
  switch (i) {
354
354
  case "Object":
355
355
  case "Array":
@@ -374,10 +374,10 @@ function Ve(e, t, n, r) {
374
374
  return t;
375
375
  }
376
376
  }
377
- function ar(e, t, n, r, i, o) {
378
- let a = class extends tn {
377
+ function an(e, t, r, n, i, o) {
378
+ let a = class extends tr {
379
379
  constructor() {
380
- super(e, n, i), this.$$p_d = t;
380
+ super(e, r, i), this.$$p_d = t;
381
381
  }
382
382
  static get observedAttributes() {
383
383
  return Object.keys(t).map(
@@ -391,10 +391,10 @@ function ar(e, t, n, r, 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 = Ve(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
- }), r.forEach((s) => {
397
+ }), n.forEach((s) => {
398
398
  Object.defineProperty(a.prototype, s, {
399
399
  get() {
400
400
  return this.$$c?.[s];
@@ -403,7 +403,7 @@ function ar(e, t, n, r, i, o) {
403
403
  }), e.element = /** @type {any} */
404
404
  a, a;
405
405
  }
406
- class lr {
406
+ class ln {
407
407
  /**
408
408
  * ### PRIVATE API
409
409
  *
@@ -422,7 +422,7 @@ class lr {
422
422
  $$set = void 0;
423
423
  /** @returns {void} */
424
424
  $destroy() {
425
- ir(this, 1), this.$destroy = Y;
425
+ nn(this, 1), this.$destroy = Y;
426
426
  }
427
427
  /**
428
428
  * @template {Extract<keyof Events, string>} K
@@ -430,13 +430,13 @@ class lr {
430
430
  * @param {((e: Events[K]) => void) | null | undefined} callback
431
431
  * @returns {() => void}
432
432
  */
433
- $on(t, n) {
434
- if (!vt(n))
433
+ $on(t, r) {
434
+ if (!wt(r))
435
435
  return Y;
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);
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);
440
440
  };
441
441
  }
442
442
  /**
@@ -444,54 +444,54 @@ class lr {
444
444
  * @returns {void}
445
445
  */
446
446
  $set(t) {
447
- this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
447
+ this.$$set && !Ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
448
  }
449
449
  }
450
- const ur = "4";
451
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
452
- function hr(e, t) {
450
+ const un = "4";
451
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(un);
452
+ function hn(e, t) {
453
453
  if (e) {
454
- const n = document.createElement("style");
455
- n.innerHTML = t, e.appendChild(n);
454
+ const r = document.createElement("style");
455
+ r.innerHTML = t, e.appendChild(r);
456
456
  }
457
457
  }
458
- function cr(e, t) {
458
+ function cn(e, t) {
459
459
  if (!e || !t)
460
460
  return;
461
- const n = new URL(t);
462
- fetch(n.href).then((r) => r.text()).then((r) => {
461
+ const r = new URL(t);
462
+ fetch(r.href).then((n) => n.text()).then((n) => {
463
463
  const i = document.createElement("style");
464
- i.innerHTML = r, e && e.appendChild(i);
465
- }).catch((r) => {
466
- console.error("There was an error while trying to load client styling from URL", r);
464
+ i.innerHTML = n, e && e.appendChild(i);
465
+ }).catch((n) => {
466
+ console.error("There was an error while trying to load client styling from URL", n);
467
467
  });
468
468
  }
469
- function fr(e, t, n) {
469
+ function fn(e, t, r) {
470
470
  if (window.emMessageBus) {
471
- const r = document.createElement("style");
471
+ const n = document.createElement("style");
472
472
  window.emMessageBus.subscribe(t, (i) => {
473
- r.innerHTML = i, e && e.appendChild(r);
473
+ n.innerHTML = i, e && e.appendChild(n);
474
474
  });
475
475
  }
476
476
  }
477
- const we = [];
478
- function pr(e, t) {
477
+ const Se = [];
478
+ function pn(e, t) {
479
479
  return {
480
- subscribe: qe(e, t).subscribe
480
+ subscribe: Je(e, t).subscribe
481
481
  };
482
482
  }
483
- function qe(e, t = Y) {
484
- let n;
485
- const r = /* @__PURE__ */ new Set();
483
+ function Je(e, t = Y) {
484
+ let r;
485
+ const n = /* @__PURE__ */ new Set();
486
486
  function i(s) {
487
- if (Kt(e, s) && (e = s, n)) {
488
- const u = !we.length;
489
- for (const l of r)
490
- l[1](), we.push(l, e);
487
+ if (Kt(e, s) && (e = s, r)) {
488
+ const u = !Se.length;
489
+ for (const l of n)
490
+ l[1](), Se.push(l, e);
491
491
  if (u) {
492
- for (let l = 0; l < we.length; l += 2)
493
- we[l][0](we[l + 1]);
494
- we.length = 0;
492
+ for (let l = 0; l < Se.length; l += 2)
493
+ Se[l][0](Se[l + 1]);
494
+ Se.length = 0;
495
495
  }
496
496
  }
497
497
  }
@@ -500,18 +500,18 @@ function qe(e, t = Y) {
500
500
  }
501
501
  function a(s, u = Y) {
502
502
  const l = [s, u];
503
- return r.add(l), r.size === 1 && (n = t(i, o) || Y), s(e), () => {
504
- r.delete(l), r.size === 0 && n && (n(), n = null);
503
+ return n.add(l), n.size === 1 && (r = t(i, o) || Y), s(e), () => {
504
+ n.delete(l), n.size === 0 && r && (r(), r = null);
505
505
  };
506
506
  }
507
507
  return { set: i, update: o, subscribe: a };
508
508
  }
509
- function Be(e, t, n) {
510
- const r = !Array.isArray(e), i = r ? [e] : e;
509
+ function Pe(e, t, r) {
510
+ const n = !Array.isArray(e), i = n ? [e] : e;
511
511
  if (!i.every(Boolean))
512
512
  throw new Error("derived() expects stores as input, got a falsy value");
513
513
  const o = t.length < 2;
514
- return pr(n, (a, s) => {
514
+ return pn(r, (a, s) => {
515
515
  let u = !1;
516
516
  const l = [];
517
517
  let h = 0, c = Y;
@@ -519,10 +519,10 @@ function Be(e, t, n) {
519
519
  if (h)
520
520
  return;
521
521
  c();
522
- const d = t(r ? l[0] : l, a, s);
523
- o ? a(d) : c = vt(d) ? d : Y;
524
- }, y = i.map(
525
- (d, g) => en(
522
+ const d = t(n ? l[0] : l, a, s);
523
+ o ? a(d) : c = wt(d) ? d : Y;
524
+ }, _ = i.map(
525
+ (d, g) => er(
526
526
  d,
527
527
  (E) => {
528
528
  l[g] = E, h &= ~(1 << g), u && m();
@@ -533,246 +533,240 @@ function Be(e, t, n) {
533
533
  )
534
534
  );
535
535
  return u = !0, m(), function() {
536
- _e(y), c(), u = !1;
536
+ _e(_), c(), u = !1;
537
537
  };
538
538
  });
539
539
  }
540
- function mr(e) {
540
+ function mn(e) {
541
541
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
542
542
  }
543
- var dr = function(t) {
544
- return gr(t) && !br(t);
543
+ var dn = function(t) {
544
+ return gn(t) && !bn(t);
545
545
  };
546
- function gr(e) {
546
+ function gn(e) {
547
547
  return !!e && typeof e == "object";
548
548
  }
549
- function br(e) {
549
+ function bn(e) {
550
550
  var t = Object.prototype.toString.call(e);
551
- return t === "[object RegExp]" || t === "[object Date]" || Er(e);
551
+ return t === "[object RegExp]" || t === "[object Date]" || En(e);
552
552
  }
553
- var _r = typeof Symbol == "function" && Symbol.for, yr = _r ? Symbol.for("react.element") : 60103;
554
- function Er(e) {
555
- return e.$$typeof === yr;
553
+ var yn = typeof Symbol == "function" && Symbol.for, _n = yn ? Symbol.for("react.element") : 60103;
554
+ function En(e) {
555
+ return e.$$typeof === _n;
556
556
  }
557
- function vr(e) {
557
+ function vn(e) {
558
558
  return Array.isArray(e) ? [] : {};
559
559
  }
560
- function ke(e, t) {
561
- return t.clone !== !1 && t.isMergeableObject(e) ? He(vr(e), e, t) : e;
560
+ function De(e, t) {
561
+ return t.clone !== !1 && t.isMergeableObject(e) ? He(vn(e), e, t) : e;
562
562
  }
563
- function xr(e, t, n) {
564
- return e.concat(t).map(function(r) {
565
- return ke(r, n);
563
+ function xn(e, t, r) {
564
+ return e.concat(t).map(function(n) {
565
+ return De(n, r);
566
566
  });
567
567
  }
568
- function wr(e, t) {
568
+ function wn(e, t) {
569
569
  if (!t.customMerge)
570
570
  return He;
571
- var n = t.customMerge(e);
572
- return typeof n == "function" ? n : He;
571
+ var r = t.customMerge(e);
572
+ return typeof r == "function" ? r : He;
573
573
  }
574
- function Sr(e) {
574
+ function Sn(e) {
575
575
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
576
576
  return Object.propertyIsEnumerable.call(e, t);
577
577
  }) : [];
578
578
  }
579
579
  function It(e) {
580
- return Object.keys(e).concat(Sr(e));
580
+ return Object.keys(e).concat(Sn(e));
581
581
  }
582
- function nn(e, t) {
582
+ function rr(e, t) {
583
583
  try {
584
584
  return t in e;
585
585
  } catch {
586
586
  return !1;
587
587
  }
588
588
  }
589
- function Tr(e, t) {
590
- return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
589
+ function Tn(e, t) {
590
+ return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
591
591
  }
592
- function Hr(e, t, n) {
593
- var r = {};
594
- return n.isMergeableObject(e) && It(e).forEach(function(i) {
595
- r[i] = ke(e[i], n);
592
+ function On(e, t, r) {
593
+ var n = {};
594
+ return r.isMergeableObject(e) && It(e).forEach(function(i) {
595
+ n[i] = De(e[i], r);
596
596
  }), It(t).forEach(function(i) {
597
- Tr(e, i) || (nn(e, i) && n.isMergeableObject(t[i]) ? r[i] = wr(i, n)(e[i], t[i], n) : r[i] = ke(t[i], n));
598
- }), r;
597
+ Tn(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = wn(i, r)(e[i], t[i], r) : n[i] = De(t[i], r));
598
+ }), n;
599
599
  }
600
- function He(e, t, n) {
601
- n = n || {}, n.arrayMerge = n.arrayMerge || xr, n.isMergeableObject = n.isMergeableObject || dr, n.cloneUnlessOtherwiseSpecified = ke;
602
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
603
- return o ? r ? n.arrayMerge(e, t, n) : Hr(e, t, n) : ke(t, n);
600
+ function He(e, t, r) {
601
+ r = r || {}, r.arrayMerge = r.arrayMerge || xn, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = De;
602
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
603
+ return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : De(t, r);
604
604
  }
605
- He.all = function(t, n) {
605
+ He.all = function(t, r) {
606
606
  if (!Array.isArray(t))
607
607
  throw new Error("first argument should be an array");
608
- return t.reduce(function(r, i) {
609
- return He(r, i, n);
608
+ return t.reduce(function(n, i) {
609
+ return He(n, i, r);
610
610
  }, {});
611
611
  };
612
- var Or = He, Ar = Or;
613
- const Cr = /* @__PURE__ */ mr(Ar);
614
- /*! *****************************************************************************
615
- Copyright (c) Microsoft Corporation.
616
-
617
- Permission to use, copy, modify, and/or distribute this software for any
618
- purpose with or without fee is hereby granted.
619
-
620
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
621
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
622
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
623
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
624
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
625
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
626
- PERFORMANCE OF THIS SOFTWARE.
627
- ***************************************************************************** */
628
- var ft = function(e, t) {
629
- return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
630
- n.__proto__ = r;
631
- } || function(n, r) {
632
- for (var i in r)
633
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
634
- }, ft(e, t);
612
+ var Hn = He, An = Hn;
613
+ const Cn = /* @__PURE__ */ mn(An);
614
+ var mt = function(e, t) {
615
+ return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
616
+ r.__proto__ = n;
617
+ } || function(r, n) {
618
+ for (var i in n)
619
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
620
+ }, mt(e, t);
635
621
  };
636
- function Qe(e, t) {
622
+ function Ye(e, t) {
637
623
  if (typeof t != "function" && t !== null)
638
624
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
639
- ft(e, t);
640
- function n() {
625
+ mt(e, t);
626
+ function r() {
641
627
  this.constructor = e;
642
628
  }
643
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
644
- }
645
- var O = function() {
646
- return O = Object.assign || function(t) {
647
- for (var n, r = 1, i = arguments.length; r < i; r++) {
648
- n = arguments[r];
649
- for (var o in n)
650
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
629
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
630
+ }
631
+ var se = function() {
632
+ return se = Object.assign || function(t) {
633
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
634
+ r = arguments[n];
635
+ for (var o in r)
636
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
651
637
  }
652
638
  return t;
653
- }, O.apply(this, arguments);
639
+ }, se.apply(this, arguments);
654
640
  };
655
- function Br(e, t) {
656
- var n = {};
657
- for (var r in e)
658
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
641
+ function Bn(e, t) {
642
+ var r = {};
643
+ for (var n in e)
644
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
659
645
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
660
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
661
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
662
- return n;
646
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
647
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
648
+ return r;
663
649
  }
664
- function it(e, t, n) {
665
- if (arguments.length === 2)
666
- for (var r = 0, i = t.length, o; r < i; r++)
667
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
668
- return e.concat(o || t);
650
+ function st(e, t, r) {
651
+ if (r || arguments.length === 2)
652
+ for (var n = 0, i = t.length, o; n < i; n++)
653
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
654
+ return e.concat(o || Array.prototype.slice.call(t));
669
655
  }
670
- function ot(e, t) {
671
- var n = t && t.cache ? t.cache : Rr, r = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Mr;
656
+ function at(e, t) {
657
+ var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Nn, i = t && t.strategy ? t.strategy : In;
672
658
  return i(e, {
673
- cache: n,
674
- serializer: r
659
+ cache: r,
660
+ serializer: n
675
661
  });
676
662
  }
677
- function Pr(e) {
663
+ function Pn(e) {
678
664
  return e == null || typeof e == "number" || typeof e == "boolean";
679
665
  }
680
- function rn(e, t, n, r) {
681
- var i = Pr(r) ? r : n(r), o = t.get(i);
682
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
683
- }
684
- function on(e, t, n) {
685
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
686
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
666
+ function Mn(e, t, r, n) {
667
+ var i = Pn(n) ? n : r(n), o = t.get(i);
668
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
687
669
  }
688
- function xt(e, t, n, r, i) {
689
- return n.bind(t, e, r, i);
670
+ function nr(e, t, r) {
671
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
672
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
690
673
  }
691
- function Mr(e, t) {
692
- var n = e.length === 1 ? rn : on;
693
- return xt(e, this, n, t.cache.create(), t.serializer);
674
+ function ir(e, t, r, n, i) {
675
+ return r.bind(t, e, n, i);
694
676
  }
695
- function Ir(e, t) {
696
- return xt(e, this, on, t.cache.create(), t.serializer);
677
+ function In(e, t) {
678
+ var r = e.length === 1 ? Mn : nr;
679
+ return ir(e, this, r, t.cache.create(), t.serializer);
697
680
  }
698
- function Lr(e, t) {
699
- return xt(e, this, rn, t.cache.create(), t.serializer);
681
+ function Ln(e, t) {
682
+ return ir(e, this, nr, t.cache.create(), t.serializer);
700
683
  }
701
- var Nr = function() {
684
+ var Nn = function() {
702
685
  return JSON.stringify(arguments);
703
- };
704
- function wt() {
705
- this.cache = /* @__PURE__ */ Object.create(null);
706
- }
707
- wt.prototype.get = function(e) {
708
- return this.cache[e];
709
- };
710
- wt.prototype.set = function(e, t) {
711
- this.cache[e] = t;
712
- };
713
- var Rr = {
686
+ }, Rn = (
687
+ /** @class */
688
+ function() {
689
+ function e() {
690
+ this.cache = /* @__PURE__ */ Object.create(null);
691
+ }
692
+ return e.prototype.get = function(t) {
693
+ return this.cache[t];
694
+ }, e.prototype.set = function(t, r) {
695
+ this.cache[t] = r;
696
+ }, e;
697
+ }()
698
+ ), kn = {
714
699
  create: function() {
715
- return new wt();
700
+ return new Rn();
716
701
  }
717
- }, st = {
718
- variadic: Ir,
719
- monadic: Lr
720
- }, w;
702
+ }, lt = {
703
+ variadic: Ln
704
+ }, Ze = function() {
705
+ return Ze = Object.assign || function(t) {
706
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
707
+ r = arguments[n];
708
+ for (var o in r)
709
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
710
+ }
711
+ return t;
712
+ }, Ze.apply(this, arguments);
713
+ };
714
+ var w;
721
715
  (function(e) {
722
716
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
723
717
  })(w || (w = {}));
724
- var L;
718
+ var I;
725
719
  (function(e) {
726
720
  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";
727
- })(L || (L = {}));
728
- var Oe;
721
+ })(I || (I = {}));
722
+ var Ae;
729
723
  (function(e) {
730
724
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
731
- })(Oe || (Oe = {}));
725
+ })(Ae || (Ae = {}));
732
726
  function Lt(e) {
733
- return e.type === L.literal;
727
+ return e.type === I.literal;
734
728
  }
735
- function kr(e) {
736
- return e.type === L.argument;
729
+ function Dn(e) {
730
+ return e.type === I.argument;
737
731
  }
738
- function sn(e) {
739
- return e.type === L.number;
732
+ function or(e) {
733
+ return e.type === I.number;
740
734
  }
741
- function an(e) {
742
- return e.type === L.date;
735
+ function sr(e) {
736
+ return e.type === I.date;
743
737
  }
744
- function ln(e) {
745
- return e.type === L.time;
738
+ function ar(e) {
739
+ return e.type === I.time;
746
740
  }
747
- function un(e) {
748
- return e.type === L.select;
741
+ function lr(e) {
742
+ return e.type === I.select;
749
743
  }
750
- function hn(e) {
751
- return e.type === L.plural;
744
+ function ur(e) {
745
+ return e.type === I.plural;
752
746
  }
753
- function Dr(e) {
754
- return e.type === L.pound;
747
+ function Un(e) {
748
+ return e.type === I.pound;
755
749
  }
756
- function cn(e) {
757
- return e.type === L.tag;
750
+ function hr(e) {
751
+ return e.type === I.tag;
758
752
  }
759
- function fn(e) {
760
- return !!(e && typeof e == "object" && e.type === Oe.number);
753
+ function cr(e) {
754
+ return !!(e && typeof e == "object" && e.type === Ae.number);
761
755
  }
762
- function pt(e) {
763
- return !!(e && typeof e == "object" && e.type === Oe.dateTime);
756
+ function dt(e) {
757
+ return !!(e && typeof e == "object" && e.type === Ae.dateTime);
764
758
  }
765
- var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ur = /(?:[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;
766
- function Gr(e) {
759
+ var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
760
+ function Fn(e) {
767
761
  var t = {};
768
- return e.replace(Ur, function(n) {
769
- var r = n.length;
770
- switch (n[0]) {
762
+ return e.replace(Gn, function(r) {
763
+ var n = r.length;
764
+ switch (r[0]) {
771
765
  case "G":
772
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
766
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
773
767
  break;
774
768
  case "y":
775
- t.year = r === 2 ? "2-digit" : "numeric";
769
+ t.year = n === 2 ? "2-digit" : "numeric";
776
770
  break;
777
771
  case "Y":
778
772
  case "u":
@@ -784,30 +778,30 @@ function Gr(e) {
784
778
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
785
779
  case "M":
786
780
  case "L":
787
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
781
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
788
782
  break;
789
783
  case "w":
790
784
  case "W":
791
785
  throw new RangeError("`w/W` (week) patterns are not supported");
792
786
  case "d":
793
- t.day = ["numeric", "2-digit"][r - 1];
787
+ t.day = ["numeric", "2-digit"][n - 1];
794
788
  break;
795
789
  case "D":
796
790
  case "F":
797
791
  case "g":
798
792
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
799
793
  case "E":
800
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
794
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
801
795
  break;
802
796
  case "e":
803
- if (r < 4)
797
+ if (n < 4)
804
798
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
805
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
799
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
806
800
  break;
807
801
  case "c":
808
- if (r < 4)
802
+ if (n < 4)
809
803
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
810
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
804
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
811
805
  break;
812
806
  case "a":
813
807
  t.hour12 = !0;
@@ -816,32 +810,32 @@ function Gr(e) {
816
810
  case "B":
817
811
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
818
812
  case "h":
819
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
813
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
820
814
  break;
821
815
  case "H":
822
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
816
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
823
817
  break;
824
818
  case "K":
825
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
819
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
826
820
  break;
827
821
  case "k":
828
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
822
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
829
823
  break;
830
824
  case "j":
831
825
  case "J":
832
826
  case "C":
833
827
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
834
828
  case "m":
835
- t.minute = ["numeric", "2-digit"][r - 1];
829
+ t.minute = ["numeric", "2-digit"][n - 1];
836
830
  break;
837
831
  case "s":
838
- t.second = ["numeric", "2-digit"][r - 1];
832
+ t.second = ["numeric", "2-digit"][n - 1];
839
833
  break;
840
834
  case "S":
841
835
  case "A":
842
836
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
843
837
  case "z":
844
- t.timeZoneName = r < 4 ? "short" : "long";
838
+ t.timeZoneName = n < 4 ? "short" : "long";
845
839
  break;
846
840
  case "Z":
847
841
  case "O":
@@ -854,14 +848,24 @@ function Gr(e) {
854
848
  return "";
855
849
  }), t;
856
850
  }
857
- var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
- function jr(e) {
851
+ var R = function() {
852
+ return R = Object.assign || function(t) {
853
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
854
+ r = arguments[n];
855
+ for (var o in r)
856
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
857
+ }
858
+ return t;
859
+ }, R.apply(this, arguments);
860
+ };
861
+ var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
862
+ function Vn(e) {
859
863
  if (e.length === 0)
860
864
  throw new Error("Number skeleton cannot be empty");
861
- for (var t = e.split(Fr).filter(function(m) {
865
+ for (var t = e.split(jn).filter(function(m) {
862
866
  return m.length > 0;
863
- }), n = [], r = 0, i = t; r < i.length; r++) {
864
- var o = i[r], a = o.split("/");
867
+ }), r = [], n = 0, i = t; n < i.length; n++) {
868
+ var o = i[n], a = o.split("/");
865
869
  if (a.length === 0)
866
870
  throw new Error("Invalid number skeleton");
867
871
  for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
@@ -869,21 +873,21 @@ function jr(e) {
869
873
  if (c.length === 0)
870
874
  throw new Error("Invalid number skeleton");
871
875
  }
872
- n.push({ stem: s, options: u });
876
+ r.push({ stem: s, options: u });
873
877
  }
874
- return n;
878
+ return r;
875
879
  }
876
- function Vr(e) {
880
+ function $n(e) {
877
881
  return e.replace(/^(.*?)-/, "");
878
882
  }
879
- var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, $r = /(\*)(0+)|(#+)(0+)|(0+)/g, dn = /^(0+)$/;
883
+ var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, zn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
880
884
  function Rt(e) {
881
885
  var t = {};
882
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(n, r, i) {
883
- 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)), "";
886
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
887
+ 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)), "";
884
888
  }), t;
885
889
  }
886
- function gn(e) {
890
+ function dr(e) {
887
891
  switch (e) {
888
892
  case "sign-auto":
889
893
  return {
@@ -923,27 +927,27 @@ function gn(e) {
923
927
  };
924
928
  }
925
929
  }
926
- function zr(e) {
930
+ function Xn(e) {
927
931
  var t;
928
932
  if (e[0] === "E" && e[1] === "E" ? (t = {
929
933
  notation: "engineering"
930
934
  }, e = e.slice(2)) : e[0] === "E" && (t = {
931
935
  notation: "scientific"
932
936
  }, e = e.slice(1)), t) {
933
- var n = e.slice(0, 2);
934
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !dn.test(e))
937
+ var r = e.slice(0, 2);
938
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
935
939
  throw new Error("Malformed concise eng/scientific notation");
936
940
  t.minimumIntegerDigits = e.length;
937
941
  }
938
942
  return t;
939
943
  }
940
944
  function kt(e) {
941
- var t = {}, n = gn(e);
942
- return n || t;
945
+ var t = {}, r = dr(e);
946
+ return r || t;
943
947
  }
944
- function Xr(e) {
945
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
946
- var i = r[n];
948
+ function Wn(e) {
949
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
950
+ var i = n[r];
947
951
  switch (i.stem) {
948
952
  case "percent":
949
953
  case "%":
@@ -965,7 +969,7 @@ function Xr(e) {
965
969
  continue;
966
970
  case "measure-unit":
967
971
  case "unit":
968
- t.style = "unit", t.unit = Vr(i.options[0]);
972
+ t.style = "unit", t.unit = $n(i.options[0]);
969
973
  continue;
970
974
  case "compact-short":
971
975
  case "K":
@@ -976,13 +980,13 @@ function Xr(e) {
976
980
  t.notation = "compact", t.compactDisplay = "long";
977
981
  continue;
978
982
  case "scientific":
979
- t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
980
- return O(O({}, u), kt(l));
983
+ t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
984
+ return R(R({}, u), kt(l));
981
985
  }, {}));
982
986
  continue;
983
987
  case "engineering":
984
- t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
985
- return O(O({}, u), kt(l));
988
+ t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
989
+ return R(R({}, u), kt(l));
986
990
  }, {}));
987
991
  continue;
988
992
  case "notation-simple":
@@ -1027,45 +1031,45 @@ function Xr(e) {
1027
1031
  case "integer-width":
1028
1032
  if (i.options.length > 1)
1029
1033
  throw new RangeError("integer-width stems only accept a single optional option");
1030
- i.options[0].replace($r, function(u, l, h, c, m, y) {
1034
+ i.options[0].replace(zn, function(u, l, h, c, m, _) {
1031
1035
  if (l)
1032
1036
  t.minimumIntegerDigits = h.length;
1033
1037
  else {
1034
1038
  if (c && m)
1035
1039
  throw new Error("We currently do not support maximum integer digits");
1036
- if (y)
1040
+ if (_)
1037
1041
  throw new Error("We currently do not support exact integer digits");
1038
1042
  }
1039
1043
  return "";
1040
1044
  });
1041
1045
  continue;
1042
1046
  }
1043
- if (dn.test(i.stem)) {
1047
+ if (mr.test(i.stem)) {
1044
1048
  t.minimumIntegerDigits = i.stem.length;
1045
1049
  continue;
1046
1050
  }
1047
1051
  if (Nt.test(i.stem)) {
1048
1052
  if (i.options.length > 1)
1049
1053
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1050
- i.stem.replace(Nt, function(u, l, h, c, m, y) {
1051
- return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1054
+ i.stem.replace(Nt, function(u, l, h, c, m, _) {
1055
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1052
1056
  });
1053
1057
  var o = i.options[0];
1054
- o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), Rt(o)));
1058
+ o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Rt(o)));
1055
1059
  continue;
1056
1060
  }
1057
- if (mn.test(i.stem)) {
1058
- t = O(O({}, t), Rt(i.stem));
1061
+ if (pr.test(i.stem)) {
1062
+ t = R(R({}, t), Rt(i.stem));
1059
1063
  continue;
1060
1064
  }
1061
- var a = gn(i.stem);
1062
- a && (t = O(O({}, t), a));
1063
- var s = zr(i.stem);
1064
- s && (t = O(O({}, t), s));
1065
+ var a = dr(i.stem);
1066
+ a && (t = R(R({}, t), a));
1067
+ var s = Xn(i.stem);
1068
+ s && (t = R(R({}, t), s));
1065
1069
  }
1066
1070
  return t;
1067
1071
  }
1068
- var je = {
1072
+ var Ve = {
1069
1073
  "001": [
1070
1074
  "H",
1071
1075
  "h"
@@ -2480,23 +2484,23 @@ var je = {
2480
2484
  "h"
2481
2485
  ]
2482
2486
  };
2483
- function Wr(e, t) {
2484
- for (var n = "", r = 0; r < e.length; r++) {
2485
- var i = e.charAt(r);
2487
+ function Zn(e, t) {
2488
+ for (var r = "", n = 0; n < e.length; n++) {
2489
+ var i = e.charAt(n);
2486
2490
  if (i === "j") {
2487
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2488
- o++, r++;
2489
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Zr(t);
2491
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2492
+ o++, n++;
2493
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = qn(t);
2490
2494
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2491
- n += u;
2495
+ r += u;
2492
2496
  for (; a-- > 0; )
2493
- n = l + n;
2497
+ r = l + r;
2494
2498
  } else
2495
- i === "J" ? n += "H" : n += i;
2499
+ i === "J" ? r += "H" : r += i;
2496
2500
  }
2497
- return n;
2501
+ return r;
2498
2502
  }
2499
- function Zr(e) {
2503
+ function qn(e) {
2500
2504
  var t = e.hourCycle;
2501
2505
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2502
2506
  e.hourCycles && // @ts-ignore
@@ -2513,73 +2517,73 @@ function Zr(e) {
2513
2517
  default:
2514
2518
  throw new Error("Invalid hourCycle");
2515
2519
  }
2516
- var n = e.language, r;
2517
- n !== "root" && (r = e.maximize().region);
2518
- var i = je[r || ""] || je[n || ""] || je["".concat(n, "-001")] || je["001"];
2520
+ var r = e.language, n;
2521
+ r !== "root" && (n = e.maximize().region);
2522
+ var i = Ve[n || ""] || Ve[r || ""] || Ve["".concat(r, "-001")] || Ve["001"];
2519
2523
  return i[0];
2520
2524
  }
2521
- var at, qr = new RegExp("^".concat(pn.source, "*")), Qr = new RegExp("".concat(pn.source, "*$"));
2525
+ var ut, Qn = new RegExp("^".concat(fr.source, "*")), Jn = new RegExp("".concat(fr.source, "*$"));
2522
2526
  function T(e, t) {
2523
2527
  return { start: e, end: t };
2524
2528
  }
2525
- var Jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, ei = !!String.prototype.codePointAt, ti = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ri = !!Number.isSafeInteger, ii = ri ? Number.isSafeInteger : function(e) {
2529
+ var Yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, oi = ii ? Number.isSafeInteger : function(e) {
2526
2530
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2527
- }, mt = !0;
2531
+ }, gt = !0;
2528
2532
  try {
2529
- var oi = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
- mt = ((at = oi.exec("a")) === null || at === void 0 ? void 0 : at[0]) === "a";
2533
+ var si = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2534
+ gt = ((ut = si.exec("a")) === null || ut === void 0 ? void 0 : ut[0]) === "a";
2531
2535
  } catch {
2532
- mt = !1;
2536
+ gt = !1;
2533
2537
  }
2534
- var Dt = Jr ? (
2538
+ var Dt = Yn ? (
2535
2539
  // Native
2536
- function(t, n, r) {
2537
- return t.startsWith(n, r);
2540
+ function(t, r, n) {
2541
+ return t.startsWith(r, n);
2538
2542
  }
2539
2543
  ) : (
2540
2544
  // For IE11
2541
- function(t, n, r) {
2542
- return t.slice(r, r + n.length) === n;
2545
+ function(t, r, n) {
2546
+ return t.slice(n, n + r.length) === r;
2543
2547
  }
2544
- ), dt = Yr ? String.fromCodePoint : (
2548
+ ), bt = Kn ? String.fromCodePoint : (
2545
2549
  // IE11
2546
2550
  function() {
2547
- for (var t = [], n = 0; n < arguments.length; n++)
2548
- t[n] = arguments[n];
2549
- for (var r = "", i = t.length, o = 0, a; i > o; ) {
2551
+ for (var t = [], r = 0; r < arguments.length; r++)
2552
+ t[r] = arguments[r];
2553
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
2550
2554
  if (a = t[o++], a > 1114111)
2551
2555
  throw RangeError(a + " is not a valid code point");
2552
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2556
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2553
2557
  }
2554
- return r;
2558
+ return n;
2555
2559
  }
2556
2560
  ), Ut = (
2557
2561
  // native
2558
- Kr ? Object.fromEntries : (
2562
+ ei ? Object.fromEntries : (
2559
2563
  // Ponyfill
2560
2564
  function(t) {
2561
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2562
- var o = i[r], a = o[0], s = o[1];
2563
- n[a] = s;
2565
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
2566
+ var o = i[n], a = o[0], s = o[1];
2567
+ r[a] = s;
2564
2568
  }
2565
- return n;
2569
+ return r;
2566
2570
  }
2567
2571
  )
2568
- ), bn = ei ? (
2572
+ ), gr = ti ? (
2569
2573
  // Native
2570
- function(t, n) {
2571
- return t.codePointAt(n);
2574
+ function(t, r) {
2575
+ return t.codePointAt(r);
2572
2576
  }
2573
2577
  ) : (
2574
2578
  // IE 11
2575
- function(t, n) {
2576
- var r = t.length;
2577
- if (!(n < 0 || n >= r)) {
2578
- var i = t.charCodeAt(n), o;
2579
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2579
+ function(t, r) {
2580
+ var n = t.length;
2581
+ if (!(r < 0 || r >= n)) {
2582
+ var i = t.charCodeAt(r), o;
2583
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2580
2584
  }
2581
2585
  }
2582
- ), si = ti ? (
2586
+ ), ai = ri ? (
2583
2587
  // Native
2584
2588
  function(t) {
2585
2589
  return t.trimStart();
@@ -2587,9 +2591,9 @@ var Dt = Jr ? (
2587
2591
  ) : (
2588
2592
  // Ponyfill
2589
2593
  function(t) {
2590
- return t.replace(qr, "");
2594
+ return t.replace(Qn, "");
2591
2595
  }
2592
- ), ai = ni ? (
2596
+ ), li = ni ? (
2593
2597
  // Native
2594
2598
  function(t) {
2595
2599
  return t.trimEnd();
@@ -2597,69 +2601,69 @@ var Dt = Jr ? (
2597
2601
  ) : (
2598
2602
  // Ponyfill
2599
2603
  function(t) {
2600
- return t.replace(Qr, "");
2604
+ return t.replace(Jn, "");
2601
2605
  }
2602
2606
  );
2603
- function _n(e, t) {
2607
+ function br(e, t) {
2604
2608
  return new RegExp(e, t);
2605
2609
  }
2606
- var gt;
2607
- if (mt) {
2608
- var Gt = _n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2609
- gt = function(t, n) {
2610
- var r;
2611
- Gt.lastIndex = n;
2610
+ var yt;
2611
+ if (gt) {
2612
+ var Gt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2613
+ yt = function(t, r) {
2614
+ var n;
2615
+ Gt.lastIndex = r;
2612
2616
  var i = Gt.exec(t);
2613
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2617
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
2614
2618
  };
2615
2619
  } else
2616
- gt = function(t, n) {
2617
- for (var r = []; ; ) {
2618
- var i = bn(t, n);
2619
- if (i === void 0 || yn(i) || ci(i))
2620
+ yt = function(t, r) {
2621
+ for (var n = []; ; ) {
2622
+ var i = gr(t, r);
2623
+ if (i === void 0 || yr(i) || fi(i))
2620
2624
  break;
2621
- r.push(i), n += i >= 65536 ? 2 : 1;
2625
+ n.push(i), r += i >= 65536 ? 2 : 1;
2622
2626
  }
2623
- return dt.apply(void 0, r);
2627
+ return bt.apply(void 0, n);
2624
2628
  };
2625
- var li = (
2629
+ var ui = (
2626
2630
  /** @class */
2627
2631
  function() {
2628
- function e(t, n) {
2629
- 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;
2632
+ function e(t, r) {
2633
+ 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;
2630
2634
  }
2631
2635
  return e.prototype.parse = function() {
2632
2636
  if (this.offset() !== 0)
2633
2637
  throw Error("parser can only be used once");
2634
2638
  return this.parseMessage(0, "", !1);
2635
- }, e.prototype.parseMessage = function(t, n, r) {
2639
+ }, e.prototype.parseMessage = function(t, r, n) {
2636
2640
  for (var i = []; !this.isEOF(); ) {
2637
2641
  var o = this.char();
2638
2642
  if (o === 123) {
2639
- var a = this.parseArgument(t, r);
2643
+ var a = this.parseArgument(t, n);
2640
2644
  if (a.err)
2641
2645
  return a;
2642
2646
  i.push(a.val);
2643
2647
  } else {
2644
2648
  if (o === 125 && t > 0)
2645
2649
  break;
2646
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
2650
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
2647
2651
  var s = this.clonePosition();
2648
2652
  this.bump(), i.push({
2649
- type: L.pound,
2653
+ type: I.pound,
2650
2654
  location: T(s, this.clonePosition())
2651
2655
  });
2652
2656
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2653
- if (r)
2657
+ if (n)
2654
2658
  break;
2655
2659
  return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2656
- } else if (o === 60 && !this.ignoreTag && bt(this.peek() || 0)) {
2657
- var a = this.parseTag(t, n);
2660
+ } else if (o === 60 && !this.ignoreTag && _t(this.peek() || 0)) {
2661
+ var a = this.parseTag(t, r);
2658
2662
  if (a.err)
2659
2663
  return a;
2660
2664
  i.push(a.val);
2661
2665
  } else {
2662
- var a = this.parseLiteral(t, n);
2666
+ var a = this.parseLiteral(t, r);
2663
2667
  if (a.err)
2664
2668
  return a;
2665
2669
  i.push(a.val);
@@ -2667,54 +2671,54 @@ var li = (
2667
2671
  }
2668
2672
  }
2669
2673
  return { val: i, err: null };
2670
- }, e.prototype.parseTag = function(t, n) {
2671
- var r = this.clonePosition();
2674
+ }, e.prototype.parseTag = function(t, r) {
2675
+ var n = this.clonePosition();
2672
2676
  this.bump();
2673
2677
  var i = this.parseTagName();
2674
2678
  if (this.bumpSpace(), this.bumpIf("/>"))
2675
2679
  return {
2676
2680
  val: {
2677
- type: L.literal,
2681
+ type: I.literal,
2678
2682
  value: "<".concat(i, "/>"),
2679
- location: T(r, this.clonePosition())
2683
+ location: T(n, this.clonePosition())
2680
2684
  },
2681
2685
  err: null
2682
2686
  };
2683
2687
  if (this.bumpIf(">")) {
2684
- var o = this.parseMessage(t + 1, n, !0);
2688
+ var o = this.parseMessage(t + 1, r, !0);
2685
2689
  if (o.err)
2686
2690
  return o;
2687
2691
  var a = o.val, s = this.clonePosition();
2688
2692
  if (this.bumpIf("</")) {
2689
- if (this.isEOF() || !bt(this.char()))
2693
+ if (this.isEOF() || !_t(this.char()))
2690
2694
  return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
2691
2695
  var u = this.clonePosition(), l = this.parseTagName();
2692
2696
  return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2693
2697
  val: {
2694
- type: L.tag,
2698
+ type: I.tag,
2695
2699
  value: i,
2696
2700
  children: a,
2697
- location: T(r, this.clonePosition())
2701
+ location: T(n, this.clonePosition())
2698
2702
  },
2699
2703
  err: null
2700
2704
  } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2701
2705
  } else
2702
- return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2706
+ return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
2703
2707
  } else
2704
- return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2708
+ return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
2705
2709
  }, e.prototype.parseTagName = function() {
2706
2710
  var t = this.offset();
2707
- for (this.bump(); !this.isEOF() && hi(this.char()); )
2711
+ for (this.bump(); !this.isEOF() && ci(this.char()); )
2708
2712
  this.bump();
2709
2713
  return this.message.slice(t, this.offset());
2710
- }, e.prototype.parseLiteral = function(t, n) {
2711
- for (var r = this.clonePosition(), i = ""; ; ) {
2712
- var o = this.tryParseQuote(n);
2714
+ }, e.prototype.parseLiteral = function(t, r) {
2715
+ for (var n = this.clonePosition(), i = ""; ; ) {
2716
+ var o = this.tryParseQuote(r);
2713
2717
  if (o) {
2714
2718
  i += o;
2715
2719
  continue;
2716
2720
  }
2717
- var a = this.tryParseUnquoted(t, n);
2721
+ var a = this.tryParseUnquoted(t, r);
2718
2722
  if (a) {
2719
2723
  i += a;
2720
2724
  continue;
@@ -2726,14 +2730,14 @@ var li = (
2726
2730
  }
2727
2731
  break;
2728
2732
  }
2729
- var u = T(r, this.clonePosition());
2733
+ var u = T(n, this.clonePosition());
2730
2734
  return {
2731
- val: { type: L.literal, value: i, location: u },
2735
+ val: { type: I.literal, value: i, location: u },
2732
2736
  err: null
2733
2737
  };
2734
2738
  }, e.prototype.tryParseLeftAngleBracket = function() {
2735
2739
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2736
- !ui(this.peek() || 0)) ? (this.bump(), "<") : null;
2740
+ !hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2737
2741
  }, e.prototype.tryParseQuote = function(t) {
2738
2742
  if (this.isEOF() || this.char() !== 39)
2739
2743
  return null;
@@ -2753,59 +2757,59 @@ var li = (
2753
2757
  return null;
2754
2758
  }
2755
2759
  this.bump();
2756
- var n = [this.char()];
2760
+ var r = [this.char()];
2757
2761
  for (this.bump(); !this.isEOF(); ) {
2758
- var r = this.char();
2759
- if (r === 39)
2762
+ var n = this.char();
2763
+ if (n === 39)
2760
2764
  if (this.peek() === 39)
2761
- n.push(39), this.bump();
2765
+ r.push(39), this.bump();
2762
2766
  else {
2763
2767
  this.bump();
2764
2768
  break;
2765
2769
  }
2766
2770
  else
2767
- n.push(r);
2771
+ r.push(n);
2768
2772
  this.bump();
2769
2773
  }
2770
- return dt.apply(void 0, n);
2771
- }, e.prototype.tryParseUnquoted = function(t, n) {
2774
+ return bt.apply(void 0, r);
2775
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2772
2776
  if (this.isEOF())
2773
2777
  return null;
2774
- var r = this.char();
2775
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), dt(r));
2776
- }, e.prototype.parseArgument = function(t, n) {
2777
- var r = this.clonePosition();
2778
+ var n = this.char();
2779
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), bt(n));
2780
+ }, e.prototype.parseArgument = function(t, r) {
2781
+ var n = this.clonePosition();
2778
2782
  if (this.bump(), this.bumpSpace(), this.isEOF())
2779
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2783
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2780
2784
  if (this.char() === 125)
2781
- return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2785
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
2782
2786
  var i = this.parseIdentifierIfPossible().value;
2783
2787
  if (!i)
2784
- return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2788
+ return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2785
2789
  if (this.bumpSpace(), this.isEOF())
2786
- return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2790
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
2787
2791
  switch (this.char()) {
2788
2792
  case 125:
2789
2793
  return this.bump(), {
2790
2794
  val: {
2791
- type: L.argument,
2795
+ type: I.argument,
2792
2796
  // value does not include the opening and closing braces.
2793
2797
  value: i,
2794
- location: T(r, this.clonePosition())
2798
+ location: T(n, this.clonePosition())
2795
2799
  },
2796
2800
  err: null
2797
2801
  };
2798
2802
  case 44:
2799
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2803
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2800
2804
  default:
2801
- return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2805
+ return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
2802
2806
  }
2803
2807
  }, e.prototype.parseIdentifierIfPossible = function() {
2804
- var t = this.clonePosition(), n = this.offset(), r = gt(this.message, n), i = n + r.length;
2808
+ var t = this.clonePosition(), r = this.offset(), n = yt(this.message, r), i = r + n.length;
2805
2809
  this.bumpTo(i);
2806
2810
  var o = this.clonePosition(), a = T(t, o);
2807
- return { value: r, location: a };
2808
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2811
+ return { value: n, location: a };
2812
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2809
2813
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2810
2814
  switch (s) {
2811
2815
  case "":
@@ -2820,45 +2824,45 @@ var li = (
2820
2824
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2821
2825
  if (c.err)
2822
2826
  return c;
2823
- var m = ai(c.val);
2827
+ var m = li(c.val);
2824
2828
  if (m.length === 0)
2825
2829
  return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2826
- var y = T(h, this.clonePosition());
2827
- l = { style: m, styleLocation: y };
2830
+ var _ = T(h, this.clonePosition());
2831
+ l = { style: m, styleLocation: _ };
2828
2832
  }
2829
2833
  var d = this.tryParseArgumentClose(i);
2830
2834
  if (d.err)
2831
2835
  return d;
2832
2836
  var g = T(i, this.clonePosition());
2833
2837
  if (l && Dt(l?.style, "::", 0)) {
2834
- var E = si(l.style.slice(2));
2838
+ var E = ai(l.style.slice(2));
2835
2839
  if (s === "number") {
2836
2840
  var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
2837
2841
  return c.err ? c : {
2838
- val: { type: L.number, value: r, location: g, style: c.val },
2842
+ val: { type: I.number, value: n, location: g, style: c.val },
2839
2843
  err: null
2840
2844
  };
2841
2845
  } else {
2842
2846
  if (E.length === 0)
2843
2847
  return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2844
2848
  var S = E;
2845
- this.locale && (S = Wr(E, this.locale));
2849
+ this.locale && (S = Zn(E, this.locale));
2846
2850
  var m = {
2847
- type: Oe.dateTime,
2851
+ type: Ae.dateTime,
2848
2852
  pattern: S,
2849
2853
  location: l.styleLocation,
2850
- parsedOptions: this.shouldParseSkeletons ? Gr(S) : {}
2851
- }, M = s === "date" ? L.date : L.time;
2854
+ parsedOptions: this.shouldParseSkeletons ? Fn(S) : {}
2855
+ }, P = s === "date" ? I.date : I.time;
2852
2856
  return {
2853
- val: { type: M, value: r, location: g, style: m },
2857
+ val: { type: P, value: n, location: g, style: m },
2854
2858
  err: null
2855
2859
  };
2856
2860
  }
2857
2861
  }
2858
2862
  return {
2859
2863
  val: {
2860
- type: s === "number" ? L.number : s === "date" ? L.date : L.time,
2861
- value: r,
2864
+ type: s === "number" ? I.number : s === "date" ? I.date : I.time,
2865
+ value: n,
2862
2866
  location: g,
2863
2867
  style: (o = l?.style) !== null && o !== void 0 ? o : null
2864
2868
  },
@@ -2868,11 +2872,11 @@ var li = (
2868
2872
  case "plural":
2869
2873
  case "selectordinal":
2870
2874
  case "select": {
2871
- var N = this.clonePosition();
2875
+ var L = this.clonePosition();
2872
2876
  if (this.bumpSpace(), !this.bumpIf(","))
2873
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(N, O({}, N)));
2877
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(L, Ze({}, L)));
2874
2878
  this.bumpSpace();
2875
- var D = this.parseIdentifierIfPossible(), I = 0;
2879
+ var D = this.parseIdentifierIfPossible(), M = 0;
2876
2880
  if (s !== "select" && D.value === "offset") {
2877
2881
  if (!this.bumpIf(":"))
2878
2882
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
@@ -2880,29 +2884,29 @@ var li = (
2880
2884
  var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2881
2885
  if (c.err)
2882
2886
  return c;
2883
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), I = c.val;
2887
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
2884
2888
  }
2885
- var R = this.tryParsePluralOrSelectOptions(t, s, n, D);
2886
- if (R.err)
2887
- return R;
2889
+ var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
2890
+ if (N.err)
2891
+ return N;
2888
2892
  var d = this.tryParseArgumentClose(i);
2889
2893
  if (d.err)
2890
2894
  return d;
2891
2895
  var K = T(i, this.clonePosition());
2892
2896
  return s === "select" ? {
2893
2897
  val: {
2894
- type: L.select,
2895
- value: r,
2896
- options: Ut(R.val),
2898
+ type: I.select,
2899
+ value: n,
2900
+ options: Ut(N.val),
2897
2901
  location: K
2898
2902
  },
2899
2903
  err: null
2900
2904
  } : {
2901
2905
  val: {
2902
- type: L.plural,
2903
- value: r,
2904
- options: Ut(R.val),
2905
- offset: I,
2906
+ type: I.plural,
2907
+ value: n,
2908
+ options: Ut(N.val),
2909
+ offset: M,
2906
2910
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2907
2911
  location: K
2908
2912
  },
@@ -2915,9 +2919,9 @@ var li = (
2915
2919
  }, e.prototype.tryParseArgumentClose = function(t) {
2916
2920
  return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2917
2921
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2918
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2919
- var r = this.char();
2920
- switch (r) {
2922
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2923
+ var n = this.char();
2924
+ switch (n) {
2921
2925
  case 39: {
2922
2926
  this.bump();
2923
2927
  var i = this.clonePosition();
@@ -2935,7 +2939,7 @@ var li = (
2935
2939
  t -= 1;
2936
2940
  else
2937
2941
  return {
2938
- val: this.message.slice(n.offset, this.offset()),
2942
+ val: this.message.slice(r.offset, this.offset()),
2939
2943
  err: null
2940
2944
  };
2941
2945
  break;
@@ -2946,30 +2950,30 @@ var li = (
2946
2950
  }
2947
2951
  }
2948
2952
  return {
2949
- val: this.message.slice(n.offset, this.offset()),
2953
+ val: this.message.slice(r.offset, this.offset()),
2950
2954
  err: null
2951
2955
  };
2952
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2953
- var r = [];
2956
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2957
+ var n = [];
2954
2958
  try {
2955
- r = jr(t);
2959
+ n = Vn(t);
2956
2960
  } catch {
2957
- return this.error(w.INVALID_NUMBER_SKELETON, n);
2961
+ return this.error(w.INVALID_NUMBER_SKELETON, r);
2958
2962
  }
2959
2963
  return {
2960
2964
  val: {
2961
- type: Oe.number,
2962
- tokens: r,
2963
- location: n,
2964
- parsedOptions: this.shouldParseSkeletons ? Xr(r) : {}
2965
+ type: Ae.number,
2966
+ tokens: n,
2967
+ location: r,
2968
+ parsedOptions: this.shouldParseSkeletons ? Wn(n) : {}
2965
2969
  },
2966
2970
  err: null
2967
2971
  };
2968
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2972
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2969
2973
  for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2970
2974
  if (l.length === 0) {
2971
2975
  var c = this.clonePosition();
2972
- if (n !== "select" && this.bumpIf("=")) {
2976
+ if (r !== "select" && this.bumpIf("=")) {
2973
2977
  var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
2974
2978
  if (m.err)
2975
2979
  return m;
@@ -2978,29 +2982,29 @@ var li = (
2978
2982
  break;
2979
2983
  }
2980
2984
  if (u.has(l))
2981
- return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2985
+ return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2982
2986
  l === "other" && (a = !0), this.bumpSpace();
2983
- var y = this.clonePosition();
2987
+ var _ = this.clonePosition();
2984
2988
  if (!this.bumpIf("{"))
2985
- return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2986
- var d = this.parseMessage(t + 1, n, r);
2989
+ return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2990
+ var d = this.parseMessage(t + 1, r, n);
2987
2991
  if (d.err)
2988
2992
  return d;
2989
- var g = this.tryParseArgumentClose(y);
2993
+ var g = this.tryParseArgumentClose(_);
2990
2994
  if (g.err)
2991
2995
  return g;
2992
2996
  s.push([
2993
2997
  l,
2994
2998
  {
2995
2999
  value: d.val,
2996
- location: T(y, this.clonePosition())
3000
+ location: T(_, this.clonePosition())
2997
3001
  }
2998
3002
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
2999
3003
  }
3000
- 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 };
3001
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3002
- var r = 1, i = this.clonePosition();
3003
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3004
+ 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 };
3005
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3006
+ var n = 1, i = this.clonePosition();
3007
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3004
3008
  for (var o = !1, a = 0; !this.isEOF(); ) {
3005
3009
  var s = this.char();
3006
3010
  if (s >= 48 && s <= 57)
@@ -3009,7 +3013,7 @@ var li = (
3009
3013
  break;
3010
3014
  }
3011
3015
  var u = T(i, this.clonePosition());
3012
- return o ? (a *= r, ii(a) ? { val: a, err: null } : this.error(n, u)) : this.error(t, u);
3016
+ return o ? (a *= n, oi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
3013
3017
  }, e.prototype.offset = function() {
3014
3018
  return this.position.offset;
3015
3019
  }, e.prototype.isEOF = function() {
@@ -3024,17 +3028,17 @@ var li = (
3024
3028
  var t = this.position.offset;
3025
3029
  if (t >= this.message.length)
3026
3030
  throw Error("out of bound");
3027
- var n = bn(this.message, t);
3028
- if (n === void 0)
3031
+ var r = gr(this.message, t);
3032
+ if (r === void 0)
3029
3033
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3030
- return n;
3031
- }, e.prototype.error = function(t, n) {
3034
+ return r;
3035
+ }, e.prototype.error = function(t, r) {
3032
3036
  return {
3033
3037
  val: null,
3034
3038
  err: {
3035
3039
  kind: t,
3036
3040
  message: this.message,
3037
- location: n
3041
+ location: r
3038
3042
  }
3039
3043
  };
3040
3044
  }, e.prototype.bump = function() {
@@ -3044,81 +3048,81 @@ var li = (
3044
3048
  }
3045
3049
  }, e.prototype.bumpIf = function(t) {
3046
3050
  if (Dt(this.message, t, this.offset())) {
3047
- for (var n = 0; n < t.length; n++)
3051
+ for (var r = 0; r < t.length; r++)
3048
3052
  this.bump();
3049
3053
  return !0;
3050
3054
  }
3051
3055
  return !1;
3052
3056
  }, e.prototype.bumpUntil = function(t) {
3053
- var n = this.offset(), r = this.message.indexOf(t, n);
3054
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3057
+ var r = this.offset(), n = this.message.indexOf(t, r);
3058
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3055
3059
  }, e.prototype.bumpTo = function(t) {
3056
3060
  if (this.offset() > t)
3057
3061
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3058
3062
  for (t = Math.min(t, this.message.length); ; ) {
3059
- var n = this.offset();
3060
- if (n === t)
3063
+ var r = this.offset();
3064
+ if (r === t)
3061
3065
  break;
3062
- if (n > t)
3066
+ if (r > t)
3063
3067
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3064
3068
  if (this.bump(), this.isEOF())
3065
3069
  break;
3066
3070
  }
3067
3071
  }, e.prototype.bumpSpace = function() {
3068
- for (; !this.isEOF() && yn(this.char()); )
3072
+ for (; !this.isEOF() && yr(this.char()); )
3069
3073
  this.bump();
3070
3074
  }, e.prototype.peek = function() {
3071
3075
  if (this.isEOF())
3072
3076
  return null;
3073
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3074
- return r ?? null;
3077
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3078
+ return n ?? null;
3075
3079
  }, e;
3076
3080
  }()
3077
3081
  );
3078
- function bt(e) {
3082
+ function _t(e) {
3079
3083
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3080
3084
  }
3081
- function ui(e) {
3082
- return bt(e) || e === 47;
3083
- }
3084
3085
  function hi(e) {
3086
+ return _t(e) || e === 47;
3087
+ }
3088
+ function ci(e) {
3085
3089
  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;
3086
3090
  }
3087
- function yn(e) {
3091
+ function yr(e) {
3088
3092
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3089
3093
  }
3090
- function ci(e) {
3094
+ function fi(e) {
3091
3095
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3092
3096
  }
3093
- function _t(e) {
3097
+ function Et(e) {
3094
3098
  e.forEach(function(t) {
3095
- if (delete t.location, un(t) || hn(t))
3096
- for (var n in t.options)
3097
- delete t.options[n].location, _t(t.options[n].value);
3099
+ if (delete t.location, lr(t) || ur(t))
3100
+ for (var r in t.options)
3101
+ delete t.options[r].location, Et(t.options[r].value);
3098
3102
  else
3099
- sn(t) && fn(t.style) || (an(t) || ln(t)) && pt(t.style) ? delete t.style.location : cn(t) && _t(t.children);
3103
+ or(t) && cr(t.style) || (sr(t) || ar(t)) && dt(t.style) ? delete t.style.location : hr(t) && Et(t.children);
3100
3104
  });
3101
3105
  }
3102
- function fi(e, t) {
3103
- t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
- var n = new li(e, t).parse();
3105
- if (n.err) {
3106
- var r = SyntaxError(w[n.err.kind]);
3107
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3106
+ function pi(e, t) {
3107
+ t === void 0 && (t = {}), t = Ze({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3108
+ var r = new ui(e, t).parse();
3109
+ if (r.err) {
3110
+ var n = SyntaxError(w[r.err.kind]);
3111
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3108
3112
  }
3109
- return t?.captureLocation || _t(n.val), n.val;
3113
+ return t?.captureLocation || Et(r.val), r.val;
3110
3114
  }
3111
- var Ae;
3115
+ var Ce;
3112
3116
  (function(e) {
3113
3117
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3114
- })(Ae || (Ae = {}));
3115
- var Je = (
3118
+ })(Ce || (Ce = {}));
3119
+ var Ke = (
3116
3120
  /** @class */
3117
3121
  function(e) {
3118
- Qe(t, e);
3119
- function t(n, r, i) {
3120
- var o = e.call(this, n) || this;
3121
- return o.code = r, o.originalMessage = i, o;
3122
+ Ye(t, e);
3123
+ function t(r, n, i) {
3124
+ var o = e.call(this, r) || this;
3125
+ return o.code = n, o.originalMessage = i, o;
3122
3126
  }
3123
3127
  return t.prototype.toString = function() {
3124
3128
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3127,44 +3131,44 @@ var Je = (
3127
3131
  ), Ft = (
3128
3132
  /** @class */
3129
3133
  function(e) {
3130
- Qe(t, e);
3131
- function t(n, r, i, o) {
3132
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ae.INVALID_VALUE, o) || this;
3134
+ Ye(t, e);
3135
+ function t(r, n, i, o) {
3136
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ce.INVALID_VALUE, o) || this;
3133
3137
  }
3134
3138
  return t;
3135
- }(Je)
3136
- ), pi = (
3139
+ }(Ke)
3140
+ ), mi = (
3137
3141
  /** @class */
3138
3142
  function(e) {
3139
- Qe(t, e);
3140
- function t(n, r, i) {
3141
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ae.INVALID_VALUE, i) || this;
3143
+ Ye(t, e);
3144
+ function t(r, n, i) {
3145
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ce.INVALID_VALUE, i) || this;
3142
3146
  }
3143
3147
  return t;
3144
- }(Je)
3145
- ), mi = (
3148
+ }(Ke)
3149
+ ), di = (
3146
3150
  /** @class */
3147
3151
  function(e) {
3148
- Qe(t, e);
3149
- function t(n, r) {
3150
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ae.MISSING_VALUE, r) || this;
3152
+ Ye(t, e);
3153
+ function t(r, n) {
3154
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ce.MISSING_VALUE, n) || this;
3151
3155
  }
3152
3156
  return t;
3153
- }(Je)
3157
+ }(Ke)
3154
3158
  ), Z;
3155
3159
  (function(e) {
3156
3160
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3157
3161
  })(Z || (Z = {}));
3158
- function di(e) {
3159
- return e.length < 2 ? e : e.reduce(function(t, n) {
3160
- var r = t[t.length - 1];
3161
- return !r || r.type !== Z.literal || n.type !== Z.literal ? t.push(n) : r.value += n.value, t;
3162
+ function gi(e) {
3163
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3164
+ var n = t[t.length - 1];
3165
+ return !n || n.type !== Z.literal || r.type !== Z.literal ? t.push(r) : n.value += r.value, t;
3162
3166
  }, []);
3163
3167
  }
3164
- function gi(e) {
3168
+ function bi(e) {
3165
3169
  return typeof e == "function";
3166
3170
  }
3167
- function $e(e, t, n, r, i, o, a) {
3171
+ function ze(e, t, r, n, i, o, a) {
3168
3172
  if (e.length === 1 && Lt(e[0]))
3169
3173
  return [
3170
3174
  {
@@ -3181,148 +3185,148 @@ function $e(e, t, n, r, i, o, a) {
3181
3185
  });
3182
3186
  continue;
3183
3187
  }
3184
- if (Dr(h)) {
3188
+ if (Un(h)) {
3185
3189
  typeof o == "number" && s.push({
3186
3190
  type: Z.literal,
3187
- value: n.getNumberFormat(t).format(o)
3191
+ value: r.getNumberFormat(t).format(o)
3188
3192
  });
3189
3193
  continue;
3190
3194
  }
3191
3195
  var c = h.value;
3192
3196
  if (!(i && c in i))
3193
- throw new mi(c, a);
3197
+ throw new di(c, a);
3194
3198
  var m = i[c];
3195
- if (kr(h)) {
3199
+ if (Dn(h)) {
3196
3200
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3197
3201
  type: typeof m == "string" ? Z.literal : Z.object,
3198
3202
  value: m
3199
3203
  });
3200
3204
  continue;
3201
3205
  }
3202
- if (an(h)) {
3203
- var y = typeof h.style == "string" ? r.date[h.style] : pt(h.style) ? h.style.parsedOptions : void 0;
3206
+ if (sr(h)) {
3207
+ var _ = typeof h.style == "string" ? n.date[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
3204
3208
  s.push({
3205
3209
  type: Z.literal,
3206
- value: n.getDateTimeFormat(t, y).format(m)
3210
+ value: r.getDateTimeFormat(t, _).format(m)
3207
3211
  });
3208
3212
  continue;
3209
3213
  }
3210
- if (ln(h)) {
3211
- var y = typeof h.style == "string" ? r.time[h.style] : pt(h.style) ? h.style.parsedOptions : r.time.medium;
3214
+ if (ar(h)) {
3215
+ var _ = typeof h.style == "string" ? n.time[h.style] : dt(h.style) ? h.style.parsedOptions : n.time.medium;
3212
3216
  s.push({
3213
3217
  type: Z.literal,
3214
- value: n.getDateTimeFormat(t, y).format(m)
3218
+ value: r.getDateTimeFormat(t, _).format(m)
3215
3219
  });
3216
3220
  continue;
3217
3221
  }
3218
- if (sn(h)) {
3219
- var y = typeof h.style == "string" ? r.number[h.style] : fn(h.style) ? h.style.parsedOptions : void 0;
3220
- y && y.scale && (m = m * (y.scale || 1)), s.push({
3222
+ if (or(h)) {
3223
+ var _ = typeof h.style == "string" ? n.number[h.style] : cr(h.style) ? h.style.parsedOptions : void 0;
3224
+ _ && _.scale && (m = m * (_.scale || 1)), s.push({
3221
3225
  type: Z.literal,
3222
- value: n.getNumberFormat(t, y).format(m)
3226
+ value: r.getNumberFormat(t, _).format(m)
3223
3227
  });
3224
3228
  continue;
3225
3229
  }
3226
- if (cn(h)) {
3230
+ if (hr(h)) {
3227
3231
  var d = h.children, g = h.value, E = i[g];
3228
- if (!gi(E))
3229
- throw new pi(g, "function", a);
3230
- var S = $e(d, t, n, r, i, o), M = E(S.map(function(I) {
3231
- return I.value;
3232
+ if (!bi(E))
3233
+ throw new mi(g, "function", a);
3234
+ var S = ze(d, t, r, n, i, o), P = E(S.map(function(M) {
3235
+ return M.value;
3232
3236
  }));
3233
- Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(I) {
3237
+ Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
3234
3238
  return {
3235
- type: typeof I == "string" ? Z.literal : Z.object,
3236
- value: I
3239
+ type: typeof M == "string" ? Z.literal : Z.object,
3240
+ value: M
3237
3241
  };
3238
3242
  }));
3239
3243
  }
3240
- if (un(h)) {
3241
- var N = h.options[m] || h.options.other;
3242
- if (!N)
3244
+ if (lr(h)) {
3245
+ var L = h.options[m] || h.options.other;
3246
+ if (!L)
3243
3247
  throw new Ft(h.value, m, Object.keys(h.options), a);
3244
- s.push.apply(s, $e(N.value, t, n, r, i));
3248
+ s.push.apply(s, ze(L.value, t, r, n, i));
3245
3249
  continue;
3246
3250
  }
3247
- if (hn(h)) {
3248
- var N = h.options["=".concat(m)];
3249
- if (!N) {
3251
+ if (ur(h)) {
3252
+ var L = h.options["=".concat(m)];
3253
+ if (!L) {
3250
3254
  if (!Intl.PluralRules)
3251
- throw new Je(`Intl.PluralRules is not available in this environment.
3255
+ throw new Ke(`Intl.PluralRules is not available in this environment.
3252
3256
  Try polyfilling it using "@formatjs/intl-pluralrules"
3253
- `, Ae.MISSING_INTL_API, a);
3254
- var D = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3255
- N = h.options[D] || h.options.other;
3257
+ `, Ce.MISSING_INTL_API, a);
3258
+ var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3259
+ L = h.options[D] || h.options.other;
3256
3260
  }
3257
- if (!N)
3261
+ if (!L)
3258
3262
  throw new Ft(h.value, m, Object.keys(h.options), a);
3259
- s.push.apply(s, $e(N.value, t, n, r, i, m - (h.offset || 0)));
3263
+ s.push.apply(s, ze(L.value, t, r, n, i, m - (h.offset || 0)));
3260
3264
  continue;
3261
3265
  }
3262
3266
  }
3263
- return di(s);
3267
+ return gi(s);
3264
3268
  }
3265
- function bi(e, t) {
3266
- return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3267
- return n[r] = O(O({}, e[r]), t[r] || {}), n;
3269
+ function yi(e, t) {
3270
+ return t ? se(se(se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3271
+ return r[n] = se(se({}, e[n]), t[n] || {}), r;
3268
3272
  }, {})) : e;
3269
3273
  }
3270
3274
  function _i(e, t) {
3271
- return t ? Object.keys(e).reduce(function(n, r) {
3272
- return n[r] = bi(e[r], t[r]), n;
3273
- }, O({}, e)) : e;
3275
+ return t ? Object.keys(e).reduce(function(r, n) {
3276
+ return r[n] = yi(e[n], t[n]), r;
3277
+ }, se({}, e)) : e;
3274
3278
  }
3275
- function lt(e) {
3279
+ function ht(e) {
3276
3280
  return {
3277
3281
  create: function() {
3278
3282
  return {
3279
3283
  get: function(t) {
3280
3284
  return e[t];
3281
3285
  },
3282
- set: function(t, n) {
3283
- e[t] = n;
3286
+ set: function(t, r) {
3287
+ e[t] = r;
3284
3288
  }
3285
3289
  };
3286
3290
  }
3287
3291
  };
3288
3292
  }
3289
- function yi(e) {
3293
+ function Ei(e) {
3290
3294
  return e === void 0 && (e = {
3291
3295
  number: {},
3292
3296
  dateTime: {},
3293
3297
  pluralRules: {}
3294
3298
  }), {
3295
- getNumberFormat: ot(function() {
3296
- for (var t, n = [], r = 0; r < arguments.length; r++)
3297
- n[r] = arguments[r];
3298
- return new ((t = Intl.NumberFormat).bind.apply(t, it([void 0], n, !1)))();
3299
+ getNumberFormat: at(function() {
3300
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3301
+ r[n] = arguments[n];
3302
+ return new ((t = Intl.NumberFormat).bind.apply(t, st([void 0], r, !1)))();
3299
3303
  }, {
3300
- cache: lt(e.number),
3301
- strategy: st.variadic
3304
+ cache: ht(e.number),
3305
+ strategy: lt.variadic
3302
3306
  }),
3303
- getDateTimeFormat: ot(function() {
3304
- for (var t, n = [], r = 0; r < arguments.length; r++)
3305
- n[r] = arguments[r];
3306
- return new ((t = Intl.DateTimeFormat).bind.apply(t, it([void 0], n, !1)))();
3307
+ getDateTimeFormat: at(function() {
3308
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3309
+ r[n] = arguments[n];
3310
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, st([void 0], r, !1)))();
3307
3311
  }, {
3308
- cache: lt(e.dateTime),
3309
- strategy: st.variadic
3312
+ cache: ht(e.dateTime),
3313
+ strategy: lt.variadic
3310
3314
  }),
3311
- getPluralRules: ot(function() {
3312
- for (var t, n = [], r = 0; r < arguments.length; r++)
3313
- n[r] = arguments[r];
3314
- return new ((t = Intl.PluralRules).bind.apply(t, it([void 0], n, !1)))();
3315
+ getPluralRules: at(function() {
3316
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3317
+ r[n] = arguments[n];
3318
+ return new ((t = Intl.PluralRules).bind.apply(t, st([void 0], r, !1)))();
3315
3319
  }, {
3316
- cache: lt(e.pluralRules),
3317
- strategy: st.variadic
3320
+ cache: ht(e.pluralRules),
3321
+ strategy: lt.variadic
3318
3322
  })
3319
3323
  };
3320
3324
  }
3321
- var Ei = (
3325
+ var vi = (
3322
3326
  /** @class */
3323
3327
  function() {
3324
- function e(t, n, r, i) {
3325
- n === void 0 && (n = e.defaultLocale);
3328
+ function e(t, r, n, i) {
3329
+ r === void 0 && (r = e.defaultLocale);
3326
3330
  var o = this;
3327
3331
  if (this.formatterCache = {
3328
3332
  number: {},
@@ -3337,7 +3341,7 @@ var Ei = (
3337
3341
  }, []);
3338
3342
  return h.length <= 1 ? h[0] || "" : h;
3339
3343
  }, this.formatToParts = function(u) {
3340
- return $e(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3344
+ return ze(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3341
3345
  }, this.resolvedOptions = function() {
3342
3346
  var u;
3343
3347
  return {
@@ -3345,18 +3349,18 @@ var Ei = (
3345
3349
  };
3346
3350
  }, this.getAst = function() {
3347
3351
  return o.ast;
3348
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3352
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3349
3353
  if (this.message = t, !e.__parse)
3350
3354
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3351
3355
  var a = i || {};
3352
3356
  a.formatters;
3353
- var s = Br(a, ["formatters"]);
3354
- this.ast = e.__parse(t, O(O({}, s), { locale: this.resolvedLocale }));
3357
+ var s = Bn(a, ["formatters"]);
3358
+ this.ast = e.__parse(t, se(se({}, s), { locale: this.resolvedLocale }));
3355
3359
  } else
3356
3360
  this.ast = t;
3357
3361
  if (!Array.isArray(this.ast))
3358
3362
  throw new TypeError("A message must be provided as a String or AST.");
3359
- this.formats = _i(e.formats, r), this.formatters = i && i.formatters || yi(this.formatterCache);
3363
+ this.formats = _i(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
3360
3364
  }
3361
3365
  return Object.defineProperty(e, "defaultLocale", {
3362
3366
  get: function() {
@@ -3366,10 +3370,10 @@ var Ei = (
3366
3370
  configurable: !0
3367
3371
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3368
3372
  if (!(typeof Intl.Locale > "u")) {
3369
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3370
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3373
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3374
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3371
3375
  }
3372
- }, e.__parse = fi, e.formats = {
3376
+ }, e.__parse = pi, e.formats = {
3373
3377
  number: {
3374
3378
  integer: {
3375
3379
  maximumFractionDigits: 0
@@ -3430,113 +3434,113 @@ var Ei = (
3430
3434
  }, e;
3431
3435
  }()
3432
3436
  );
3433
- function vi(e, t) {
3437
+ function xi(e, t) {
3434
3438
  if (t == null)
3435
3439
  return;
3436
3440
  if (t in e)
3437
3441
  return e[t];
3438
- const n = t.split(".");
3439
- let r = e;
3440
- for (let i = 0; i < n.length; i++)
3441
- if (typeof r == "object") {
3442
+ const r = t.split(".");
3443
+ let n = e;
3444
+ for (let i = 0; i < r.length; i++)
3445
+ if (typeof n == "object") {
3442
3446
  if (i > 0) {
3443
- const o = n.slice(i, n.length).join(".");
3444
- if (o in r) {
3445
- r = r[o];
3447
+ const o = r.slice(i, r.length).join(".");
3448
+ if (o in n) {
3449
+ n = n[o];
3446
3450
  break;
3447
3451
  }
3448
3452
  }
3449
- r = r[n[i]];
3453
+ n = n[r[i]];
3450
3454
  } else
3451
- r = void 0;
3452
- return r;
3455
+ n = void 0;
3456
+ return n;
3453
3457
  }
3454
- const ce = {}, xi = (e, t, n) => n && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = n), n), En = (e, t) => {
3458
+ const fe = {}, wi = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), _r = (e, t) => {
3455
3459
  if (t == null)
3456
3460
  return;
3457
- if (t in ce && e in ce[t])
3458
- return ce[t][e];
3459
- const n = Ye(t);
3460
- for (let r = 0; r < n.length; r++) {
3461
- const i = n[r], o = Si(i, e);
3461
+ if (t in fe && e in fe[t])
3462
+ return fe[t][e];
3463
+ const r = et(t);
3464
+ for (let n = 0; n < r.length; n++) {
3465
+ const i = r[n], o = Ti(i, e);
3462
3466
  if (o)
3463
- return xi(e, t, o);
3467
+ return wi(e, t, o);
3464
3468
  }
3465
3469
  };
3466
3470
  let St;
3467
- const Ue = qe({});
3468
- function wi(e) {
3471
+ const Ge = Je({});
3472
+ function Si(e) {
3469
3473
  return St[e] || null;
3470
3474
  }
3471
- function vn(e) {
3475
+ function Er(e) {
3472
3476
  return e in St;
3473
3477
  }
3474
- function Si(e, t) {
3475
- if (!vn(e))
3478
+ function Ti(e, t) {
3479
+ if (!Er(e))
3476
3480
  return null;
3477
- const n = wi(e);
3478
- return vi(n, t);
3481
+ const r = Si(e);
3482
+ return xi(r, t);
3479
3483
  }
3480
- function Ti(e) {
3484
+ function Oi(e) {
3481
3485
  if (e == null)
3482
3486
  return;
3483
- const t = Ye(e);
3484
- for (let n = 0; n < t.length; n++) {
3485
- const r = t[n];
3486
- if (vn(r))
3487
- return r;
3487
+ const t = et(e);
3488
+ for (let r = 0; r < t.length; r++) {
3489
+ const n = t[r];
3490
+ if (Er(n))
3491
+ return n;
3488
3492
  }
3489
3493
  }
3490
- function xn(e, ...t) {
3491
- delete ce[e], Ue.update((n) => (n[e] = Cr.all([n[e] || {}, ...t]), n));
3494
+ function vr(e, ...t) {
3495
+ delete fe[e], Ge.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
3492
3496
  }
3493
- Be(
3494
- [Ue],
3497
+ Pe(
3498
+ [Ge],
3495
3499
  ([e]) => Object.keys(e)
3496
3500
  );
3497
- Ue.subscribe((e) => St = e);
3498
- const ze = {};
3501
+ Ge.subscribe((e) => St = e);
3502
+ const Xe = {};
3499
3503
  function Hi(e, t) {
3500
- ze[e].delete(t), ze[e].size === 0 && delete ze[e];
3504
+ Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
3501
3505
  }
3502
- function wn(e) {
3503
- return ze[e];
3506
+ function xr(e) {
3507
+ return Xe[e];
3504
3508
  }
3505
- function Oi(e) {
3506
- return Ye(e).map((t) => {
3507
- const n = wn(t);
3508
- return [t, n ? [...n] : []];
3509
+ function Ai(e) {
3510
+ return et(e).map((t) => {
3511
+ const r = xr(t);
3512
+ return [t, r ? [...r] : []];
3509
3513
  }).filter(([, t]) => t.length > 0);
3510
3514
  }
3511
- function yt(e) {
3512
- return e == null ? !1 : Ye(e).some(
3515
+ function vt(e) {
3516
+ return e == null ? !1 : et(e).some(
3513
3517
  (t) => {
3514
- var n;
3515
- return (n = wn(t)) == null ? void 0 : n.size;
3518
+ var r;
3519
+ return (r = xr(t)) == null ? void 0 : r.size;
3516
3520
  }
3517
3521
  );
3518
3522
  }
3519
- function Ai(e, t) {
3523
+ function Ci(e, t) {
3520
3524
  return Promise.all(
3521
- t.map((r) => (Hi(e, r), r().then((i) => i.default || i)))
3522
- ).then((r) => xn(e, ...r));
3523
- }
3524
- const Le = {};
3525
- function Sn(e) {
3526
- if (!yt(e))
3527
- return e in Le ? Le[e] : Promise.resolve();
3528
- const t = Oi(e);
3529
- return Le[e] = Promise.all(
3525
+ t.map((n) => (Hi(e, n), n().then((i) => i.default || i)))
3526
+ ).then((n) => vr(e, ...n));
3527
+ }
3528
+ const Ne = {};
3529
+ function wr(e) {
3530
+ if (!vt(e))
3531
+ return e in Ne ? Ne[e] : Promise.resolve();
3532
+ const t = Ai(e);
3533
+ return Ne[e] = Promise.all(
3530
3534
  t.map(
3531
- ([n, r]) => Ai(n, r)
3535
+ ([r, n]) => Ci(r, n)
3532
3536
  )
3533
3537
  ).then(() => {
3534
- if (yt(e))
3535
- return Sn(e);
3536
- delete Le[e];
3537
- }), Le[e];
3538
+ if (vt(e))
3539
+ return wr(e);
3540
+ delete Ne[e];
3541
+ }), Ne[e];
3538
3542
  }
3539
- const Ci = {
3543
+ const Bi = {
3540
3544
  number: {
3541
3545
  scientific: { notation: "scientific" },
3542
3546
  engineering: { notation: "engineering" },
@@ -3565,150 +3569,150 @@ const Ci = {
3565
3569
  timeZoneName: "short"
3566
3570
  }
3567
3571
  }
3568
- }, Bi = {
3572
+ }, Pi = {
3569
3573
  fallbackLocale: null,
3570
3574
  loadingDelay: 200,
3571
- formats: Ci,
3575
+ formats: Bi,
3572
3576
  warnOnMissingMessages: !0,
3573
3577
  handleMissingMessage: void 0,
3574
3578
  ignoreTag: !0
3575
- }, Pi = Bi;
3576
- function Ce() {
3577
- return Pi;
3578
- }
3579
- const ut = qe(!1);
3580
- var Mi = Object.defineProperty, Ii = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Vt = (e, t, n) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ki = (e, t) => {
3581
- for (var n in t || (t = {}))
3582
- Ni.call(t, n) && Vt(e, n, t[n]);
3579
+ }, Mi = Pi;
3580
+ function Be() {
3581
+ return Mi;
3582
+ }
3583
+ const ct = Je(!1);
3584
+ var Ii = Object.defineProperty, Li = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Di = (e, t) => {
3585
+ for (var r in t || (t = {}))
3586
+ Ri.call(t, r) && Vt(e, r, t[r]);
3583
3587
  if (jt)
3584
- for (var n of jt(t))
3585
- Ri.call(t, n) && Vt(e, n, t[n]);
3588
+ for (var r of jt(t))
3589
+ ki.call(t, r) && Vt(e, r, t[r]);
3586
3590
  return e;
3587
- }, Di = (e, t) => Ii(e, Li(t));
3588
- let Et;
3589
- const We = qe(null);
3591
+ }, Ui = (e, t) => Li(e, Ni(t));
3592
+ let xt;
3593
+ const qe = Je(null);
3590
3594
  function $t(e) {
3591
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3595
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3592
3596
  }
3593
- function Ye(e, t = Ce().fallbackLocale) {
3594
- const n = $t(e);
3595
- return t ? [.../* @__PURE__ */ new Set([...n, ...$t(t)])] : n;
3597
+ function et(e, t = Be().fallbackLocale) {
3598
+ const r = $t(e);
3599
+ return t ? [.../* @__PURE__ */ new Set([...r, ...$t(t)])] : r;
3596
3600
  }
3597
- function ye() {
3598
- return Et ?? void 0;
3601
+ function Ee() {
3602
+ return xt ?? void 0;
3599
3603
  }
3600
- We.subscribe((e) => {
3601
- Et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3604
+ qe.subscribe((e) => {
3605
+ xt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3602
3606
  });
3603
- const Ui = (e) => {
3604
- if (e && Ti(e) && yt(e)) {
3605
- const { loadingDelay: t } = Ce();
3606
- let n;
3607
- return typeof window < "u" && ye() != null && t ? n = window.setTimeout(
3608
- () => ut.set(!0),
3607
+ const Gi = (e) => {
3608
+ if (e && Oi(e) && vt(e)) {
3609
+ const { loadingDelay: t } = Be();
3610
+ let r;
3611
+ return typeof window < "u" && Ee() != null && t ? r = window.setTimeout(
3612
+ () => ct.set(!0),
3609
3613
  t
3610
- ) : ut.set(!0), Sn(e).then(() => {
3611
- We.set(e);
3614
+ ) : ct.set(!0), wr(e).then(() => {
3615
+ qe.set(e);
3612
3616
  }).finally(() => {
3613
- clearTimeout(n), ut.set(!1);
3617
+ clearTimeout(r), ct.set(!1);
3614
3618
  });
3615
3619
  }
3616
- return We.set(e);
3617
- }, Pe = Di(ki({}, We), {
3618
- set: Ui
3619
- }), Ke = (e) => {
3620
+ return qe.set(e);
3621
+ }, Me = Ui(Di({}, qe), {
3622
+ set: Gi
3623
+ }), tt = (e) => {
3620
3624
  const t = /* @__PURE__ */ Object.create(null);
3621
- return (r) => {
3622
- const i = JSON.stringify(r);
3623
- return i in t ? t[i] : t[i] = e(r);
3625
+ return (n) => {
3626
+ const i = JSON.stringify(n);
3627
+ return i in t ? t[i] : t[i] = e(n);
3624
3628
  };
3625
3629
  };
3626
- var Gi = Object.defineProperty, Ze = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, zt = (e, t, n) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tt = (e, t) => {
3627
- for (var n in t || (t = {}))
3628
- Tn.call(t, n) && zt(e, n, t[n]);
3629
- if (Ze)
3630
- for (var n of Ze(t))
3631
- Hn.call(t, n) && zt(e, n, t[n]);
3630
+ var Fi = Object.defineProperty, Qe = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
3631
+ for (var r in t || (t = {}))
3632
+ Sr.call(t, r) && zt(e, r, t[r]);
3633
+ if (Qe)
3634
+ for (var r of Qe(t))
3635
+ Tr.call(t, r) && zt(e, r, t[r]);
3632
3636
  return e;
3633
- }, Me = (e, t) => {
3634
- var n = {};
3635
- for (var r in e)
3636
- Tn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3637
- if (e != null && Ze)
3638
- for (var r of Ze(e))
3639
- t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
3640
- return n;
3637
+ }, Ie = (e, t) => {
3638
+ var r = {};
3639
+ for (var n in e)
3640
+ Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3641
+ if (e != null && Qe)
3642
+ for (var n of Qe(e))
3643
+ t.indexOf(n) < 0 && Tr.call(e, n) && (r[n] = e[n]);
3644
+ return r;
3641
3645
  };
3642
- const De = (e, t) => {
3643
- const { formats: n } = Ce();
3644
- if (e in n && t in n[e])
3645
- return n[e][t];
3646
+ const Ue = (e, t) => {
3647
+ const { formats: r } = Be();
3648
+ if (e in r && t in r[e])
3649
+ return r[e][t];
3646
3650
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3647
- }, Fi = Ke(
3651
+ }, ji = tt(
3648
3652
  (e) => {
3649
- var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3650
- if (n == null)
3653
+ var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3654
+ if (r == null)
3651
3655
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3652
- return r && (i = De("number", r)), new Intl.NumberFormat(n, i);
3656
+ return n && (i = Ue("number", n)), new Intl.NumberFormat(r, i);
3653
3657
  }
3654
- ), ji = Ke(
3658
+ ), Vi = tt(
3655
3659
  (e) => {
3656
- var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3657
- if (n == null)
3660
+ var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3661
+ if (r == null)
3658
3662
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3659
- return r ? i = De("date", r) : Object.keys(i).length === 0 && (i = De("date", "short")), new Intl.DateTimeFormat(n, i);
3663
+ return n ? i = Ue("date", n) : Object.keys(i).length === 0 && (i = Ue("date", "short")), new Intl.DateTimeFormat(r, i);
3660
3664
  }
3661
- ), Vi = Ke(
3665
+ ), $i = tt(
3662
3666
  (e) => {
3663
- var t = e, { locale: n, format: r } = t, i = Me(t, ["locale", "format"]);
3664
- if (n == null)
3667
+ var t = e, { locale: r, format: n } = t, i = Ie(t, ["locale", "format"]);
3668
+ if (r == null)
3665
3669
  throw new Error(
3666
3670
  '[svelte-i18n] A "locale" must be set to format time values'
3667
3671
  );
3668
- return r ? i = De("time", r) : Object.keys(i).length === 0 && (i = De("time", "short")), new Intl.DateTimeFormat(n, i);
3672
+ return n ? i = Ue("time", n) : Object.keys(i).length === 0 && (i = Ue("time", "short")), new Intl.DateTimeFormat(r, i);
3669
3673
  }
3670
- ), $i = (e = {}) => {
3674
+ ), zi = (e = {}) => {
3671
3675
  var t = e, {
3672
- locale: n = ye()
3673
- } = t, r = Me(t, [
3676
+ locale: r = Ee()
3677
+ } = t, n = Ie(t, [
3674
3678
  "locale"
3675
3679
  ]);
3676
- return Fi(Tt({ locale: n }, r));
3677
- }, zi = (e = {}) => {
3680
+ return ji(Tt({ locale: r }, n));
3681
+ }, Xi = (e = {}) => {
3678
3682
  var t = e, {
3679
- locale: n = ye()
3680
- } = t, r = Me(t, [
3683
+ locale: r = Ee()
3684
+ } = t, n = Ie(t, [
3681
3685
  "locale"
3682
3686
  ]);
3683
- return ji(Tt({ locale: n }, r));
3684
- }, Xi = (e = {}) => {
3687
+ return Vi(Tt({ locale: r }, n));
3688
+ }, Wi = (e = {}) => {
3685
3689
  var t = e, {
3686
- locale: n = ye()
3687
- } = t, r = Me(t, [
3690
+ locale: r = Ee()
3691
+ } = t, n = Ie(t, [
3688
3692
  "locale"
3689
3693
  ]);
3690
- return Vi(Tt({ locale: n }, r));
3691
- }, Wi = Ke(
3694
+ return $i(Tt({ locale: r }, n));
3695
+ }, Zi = tt(
3692
3696
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3693
- (e, t = ye()) => new Ei(e, t, Ce().formats, {
3694
- ignoreTag: Ce().ignoreTag
3697
+ (e, t = Ee()) => new vi(e, t, Be().formats, {
3698
+ ignoreTag: Be().ignoreTag
3695
3699
  })
3696
- ), Zi = (e, t = {}) => {
3697
- var n, r, i, o;
3700
+ ), qi = (e, t = {}) => {
3701
+ var r, n, i, o;
3698
3702
  let a = t;
3699
3703
  typeof e == "object" && (a = e, e = a.id);
3700
3704
  const {
3701
3705
  values: s,
3702
- locale: u = ye(),
3706
+ locale: u = Ee(),
3703
3707
  default: l
3704
3708
  } = a;
3705
3709
  if (u == null)
3706
3710
  throw new Error(
3707
3711
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3708
3712
  );
3709
- let h = En(e, u);
3713
+ let h = _r(e, u);
3710
3714
  if (!h)
3711
- h = (o = (i = (r = (n = Ce()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3715
+ 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;
3712
3716
  else if (typeof h != "string")
3713
3717
  return console.warn(
3714
3718
  `[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.`
@@ -3717,7 +3721,7 @@ const De = (e, t) => {
3717
3721
  return h;
3718
3722
  let c = h;
3719
3723
  try {
3720
- c = Wi(h, u).format(s);
3724
+ c = Zi(h, u).format(s);
3721
3725
  } catch (m) {
3722
3726
  m instanceof Error && console.warn(
3723
3727
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3725,16 +3729,16 @@ const De = (e, t) => {
3725
3729
  );
3726
3730
  }
3727
3731
  return c;
3728
- }, qi = (e, t) => Xi(t).format(e), Qi = (e, t) => zi(t).format(e), Ji = (e, t) => $i(t).format(e), Yi = (e, t = ye()) => En(e, t), Ki = Be([Pe, Ue], () => Zi);
3729
- Be([Pe], () => qi);
3730
- Be([Pe], () => Qi);
3731
- Be([Pe], () => Ji);
3732
- Be([Pe, Ue], () => Yi);
3732
+ }, Qi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t = Ee()) => _r(e, t), eo = Pe([Me, Ge], () => qi);
3733
+ Pe([Me], () => Qi);
3734
+ Pe([Me], () => Ji);
3735
+ Pe([Me], () => Yi);
3736
+ Pe([Me, Ge], () => Ki);
3733
3737
  function Xt(e, t) {
3734
- xn(e, t);
3738
+ vr(e, t);
3735
3739
  }
3736
- function eo(e) {
3737
- Pe.set(e);
3740
+ function to(e) {
3741
+ Me.set(e);
3738
3742
  }
3739
3743
  const Wt = {
3740
3744
  en: {
@@ -3784,66 +3788,66 @@ const Wt = {
3784
3788
  waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
3785
3789
  }
3786
3790
  };
3787
- function to(e) {
3788
- jn(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}}');
3791
+ function ro(e) {
3792
+ Fr(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}}');
3789
3793
  }
3790
- function Zt(e, t, n) {
3791
- const r = e.slice();
3792
- return r[69] = t[n], r[70] = t, r[71] = n, r;
3794
+ function Zt(e, t, r) {
3795
+ const n = e.slice();
3796
+ return n[69] = t[r], n[70] = t, n[71] = r, n;
3793
3797
  }
3794
3798
  function no(e) {
3795
- let t, n, r, i, o, a, s, u, l, h, c, m, y, d, g, E, S, M = (
3799
+ let t, r, n, i, o, a, s, u, l, h, c, m, _, d, g, E, S, P = (
3796
3800
  /*$_*/
3797
3801
  e[19]("channelSMS") + ""
3798
- ), N, D, I, R, K, q, se, fe, ae, P, U, W, pe, me, de = (
3802
+ ), L, D, M, N, K, q, ae, pe, le, B, U, W, me, de, ge = (
3799
3803
  /*$_*/
3800
3804
  e[19]("channelEmail") + ""
3801
- ), Q, ee, $, le, te, ge, Ee;
3802
- function be(b, C) {
3805
+ ), Q, ee, $, ue, te, be, ve;
3806
+ function ye(b, A) {
3803
3807
  return (
3804
3808
  /*showResendOtp*/
3805
- b[9] ? so : (
3809
+ b[9] ? ao : (
3806
3810
  /*showOtpInput*/
3807
- b[12] ? io : oo
3811
+ b[12] ? oo : so
3808
3812
  )
3809
3813
  );
3810
3814
  }
3811
- let ve = be(e), J = ve(e), j = (
3815
+ let xe = ye(e), J = xe(e), j = (
3812
3816
  /*selectedChannel*/
3813
3817
  e[0] && Qt(e)
3814
3818
  );
3815
- function Ge(b, C) {
3819
+ function Fe(b, A) {
3816
3820
  if (
3817
3821
  /*isLoading*/
3818
3822
  b[3] && /*showOtpInput*/
3819
3823
  b[12]
3820
3824
  )
3821
- return fo;
3825
+ return po;
3822
3826
  if (
3823
3827
  /*showOtpInput*/
3824
3828
  b[12] && /*config*/
3825
3829
  b[4]
3826
3830
  )
3827
- return co;
3831
+ return fo;
3828
3832
  }
3829
- let ue = Ge(e), V = ue && ue(e);
3830
- function Fe(b, C) {
3833
+ let he = Fe(e), V = he && he(e);
3834
+ function je(b, A) {
3831
3835
  if (
3832
3836
  /*showResendOtp*/
3833
3837
  b[9]
3834
3838
  )
3835
- return mo;
3839
+ return go;
3836
3840
  if (
3837
3841
  /*showOtpInput*/
3838
3842
  b[12] && /*config*/
3839
3843
  b[4]
3840
3844
  )
3841
- return po;
3845
+ return mo;
3842
3846
  }
3843
- let ne = Fe(e), z = ne && ne(e);
3847
+ let re = je(e), z = re && re(e);
3844
3848
  return {
3845
3849
  c() {
3846
- t = H("div"), J.c(), n = G(), r = H("div"), i = H("label"), o = H("div"), a = G(), s = H("input"), l = G(), h = H("div"), c = re("svg"), m = re("path"), y = re("circle"), d = re("circle"), g = re("circle"), E = G(), S = H("span"), N = k(M), D = G(), I = H("label"), R = H("div"), K = G(), q = H("input"), fe = G(), ae = H("div"), P = re("svg"), U = re("rect"), W = re("path"), pe = G(), me = H("span"), Q = k(de), ee = G(), j && j.c(), $ = G(), V && V.c(), le = G(), te = H("div"), z && z.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ie(
3850
+ t = O("div"), J.c(), r = G(), n = O("div"), i = O("label"), o = O("div"), a = G(), s = O("input"), l = G(), h = O("div"), c = ne("svg"), m = ne("path"), _ = ne("circle"), d = ne("circle"), g = ne("circle"), E = G(), S = O("span"), L = k(P), D = G(), M = O("label"), N = O("div"), K = G(), q = O("input"), pe = G(), le = O("div"), B = ne("svg"), U = ne("rect"), W = ne("path"), me = G(), de = O("span"), Q = k(ge), ee = G(), j && j.c(), $ = G(), V && V.c(), ue = G(), te = O("div"), z && z.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ie(
3847
3851
  o,
3848
3852
  "checked",
3849
3853
  /*selectedChannel*/
@@ -3852,138 +3856,138 @@ function no(e) {
3852
3856
  ), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
3853
3857
  e[20].SMS, s.checked = u = /*selectedChannel*/
3854
3858
  e[0] === /*channels*/
3855
- e[20].SMS, p(m, "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(d, "cx", "12"), p(d, "cy", "11"), p(d, "r", "0.5"), p(d, "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"), ie(
3859
+ e[20].SMS, p(m, "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(d, "cx", "12"), p(d, "cy", "11"), p(d, "r", "0.5"), p(d, "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"), ie(
3856
3860
  i,
3857
3861
  "selected",
3858
3862
  /*selectedChannel*/
3859
3863
  e[0] === /*channels*/
3860
3864
  e[20].SMS
3861
- ), p(R, "class", "RadioIndicator"), ie(
3862
- R,
3865
+ ), p(N, "class", "RadioIndicator"), ie(
3866
+ N,
3863
3867
  "checked",
3864
3868
  /*selectedChannel*/
3865
3869
  e[0] === /*channels*/
3866
3870
  e[20].EMAIL
3867
3871
  ), p(q, "type", "radio"), p(q, "name", "channel"), q.value = /*channels*/
3868
- e[20].EMAIL, q.checked = se = /*selectedChannel*/
3872
+ e[20].EMAIL, q.checked = ae = /*selectedChannel*/
3869
3873
  e[0] === /*channels*/
3870
- 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(P, "xmlns", "http://www.w3.org/2000/svg"), p(P, "width", "24"), p(P, "height", "24"), p(P, "viewBox", "0 0 24 24"), p(P, "fill", "none"), p(P, "stroke", "currentColor"), p(P, "stroke-width", "2"), p(P, "stroke-linecap", "round"), p(P, "stroke-linejoin", "round"), p(ae, "class", "ChannelContent"), p(I, "class", "ChannelCheckbox"), ie(
3871
- I,
3874
+ 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(le, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), ie(
3875
+ M,
3872
3876
  "selected",
3873
3877
  /*selectedChannel*/
3874
3878
  e[0] === /*channels*/
3875
3879
  e[20].EMAIL
3876
- ), p(r, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
3880
+ ), p(n, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
3877
3881
  },
3878
- m(b, C) {
3879
- B(b, t, C), J.m(t, null), B(b, n, C), B(b, r, C), _(r, i), _(i, o), _(i, a), _(i, s), _(i, l), _(i, h), _(h, c), _(c, m), _(c, y), _(c, d), _(c, g), _(h, E), _(h, S), _(S, N), _(r, D), _(r, I), _(I, R), _(I, K), _(I, q), _(I, fe), _(I, ae), _(ae, P), _(P, U), _(P, W), _(ae, pe), _(ae, me), _(me, Q), B(b, ee, C), j && j.m(b, C), B(b, $, C), V && V.m(b, C), B(b, le, C), B(b, te, C), z && z.m(te, null), ge || (Ee = [
3880
- he(
3882
+ m(b, A) {
3883
+ C(b, t, A), J.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, m), y(c, _), y(c, d), y(c, g), y(h, E), y(h, S), y(S, L), y(n, D), y(n, M), y(M, N), y(M, K), y(M, q), y(M, pe), y(M, le), y(le, B), y(B, U), y(B, W), y(le, me), y(le, de), y(de, Q), C(b, ee, A), j && j.m(b, A), C(b, $, A), V && V.m(b, A), C(b, ue, A), C(b, te, A), z && z.m(te, null), be || (ve = [
3884
+ ce(
3881
3885
  s,
3882
3886
  "change",
3883
3887
  /*change_handler*/
3884
3888
  e[39]
3885
3889
  ),
3886
- he(
3890
+ ce(
3887
3891
  q,
3888
3892
  "change",
3889
3893
  /*change_handler_1*/
3890
3894
  e[40]
3891
3895
  )
3892
- ], ge = !0);
3896
+ ], be = !0);
3893
3897
  },
3894
- p(b, C) {
3895
- ve === (ve = be(b)) && J ? J.p(b, C) : (J.d(1), J = ve(b), J && (J.c(), J.m(t, null))), C[0] & /*selectedChannel, channels*/
3898
+ p(b, A) {
3899
+ xe === (xe = ye(b)) && J ? J.p(b, A) : (J.d(1), J = xe(b), J && (J.c(), J.m(t, null))), A[0] & /*selectedChannel, channels*/
3896
3900
  1048577 && ie(
3897
3901
  o,
3898
3902
  "checked",
3899
3903
  /*selectedChannel*/
3900
3904
  b[0] === /*channels*/
3901
3905
  b[20].SMS
3902
- ), C[0] & /*selectedChannel*/
3906
+ ), A[0] & /*selectedChannel*/
3903
3907
  1 && u !== (u = /*selectedChannel*/
3904
3908
  b[0] === /*channels*/
3905
- b[20].SMS) && (s.checked = u), C[0] & /*$_*/
3906
- 524288 && M !== (M = /*$_*/
3907
- b[19]("channelSMS") + "") && F(N, M), C[0] & /*selectedChannel, channels*/
3909
+ b[20].SMS) && (s.checked = u), A[0] & /*$_*/
3910
+ 524288 && P !== (P = /*$_*/
3911
+ b[19]("channelSMS") + "") && F(L, P), A[0] & /*selectedChannel, channels*/
3908
3912
  1048577 && ie(
3909
3913
  i,
3910
3914
  "selected",
3911
3915
  /*selectedChannel*/
3912
3916
  b[0] === /*channels*/
3913
3917
  b[20].SMS
3914
- ), C[0] & /*selectedChannel, channels*/
3918
+ ), A[0] & /*selectedChannel, channels*/
3915
3919
  1048577 && ie(
3916
- R,
3920
+ N,
3917
3921
  "checked",
3918
3922
  /*selectedChannel*/
3919
3923
  b[0] === /*channels*/
3920
3924
  b[20].EMAIL
3921
- ), C[0] & /*selectedChannel*/
3922
- 1 && se !== (se = /*selectedChannel*/
3925
+ ), A[0] & /*selectedChannel*/
3926
+ 1 && ae !== (ae = /*selectedChannel*/
3923
3927
  b[0] === /*channels*/
3924
- b[20].EMAIL) && (q.checked = se), C[0] & /*$_*/
3925
- 524288 && de !== (de = /*$_*/
3926
- b[19]("channelEmail") + "") && F(Q, de), C[0] & /*selectedChannel, channels*/
3928
+ b[20].EMAIL) && (q.checked = ae), A[0] & /*$_*/
3929
+ 524288 && ge !== (ge = /*$_*/
3930
+ b[19]("channelEmail") + "") && F(Q, ge), A[0] & /*selectedChannel, channels*/
3927
3931
  1048577 && ie(
3928
- I,
3932
+ M,
3929
3933
  "selected",
3930
3934
  /*selectedChannel*/
3931
3935
  b[0] === /*channels*/
3932
3936
  b[20].EMAIL
3933
3937
  ), /*selectedChannel*/
3934
- b[0] ? j ? j.p(b, C) : (j = Qt(b), j.c(), j.m($.parentNode, $)) : j && (j.d(1), j = null), ue === (ue = Ge(b)) && V ? V.p(b, C) : (V && V.d(1), V = ue && ue(b), V && (V.c(), V.m(le.parentNode, le))), ne === (ne = Fe(b)) && z ? z.p(b, C) : (z && z.d(1), z = ne && ne(b), z && (z.c(), z.m(te, null)));
3938
+ b[0] ? j ? j.p(b, A) : (j = Qt(b), j.c(), j.m($.parentNode, $)) : j && (j.d(1), j = null), he === (he = Fe(b)) && V ? V.p(b, A) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m(ue.parentNode, ue))), re === (re = je(b)) && z ? z.p(b, A) : (z && z.d(1), z = re && re(b), z && (z.c(), z.m(te, null)));
3935
3939
  },
3936
3940
  d(b) {
3937
- b && (A(t), A(n), A(r), A(ee), A($), A(le), A(te)), J.d(), j && j.d(b), V && V.d(b), z && z.d(), ge = !1, _e(Ee);
3941
+ b && (H(t), H(r), H(n), H(ee), H($), H(ue), H(te)), J.d(), j && j.d(b), V && V.d(b), z && z.d(), be = !1, _e(ve);
3938
3942
  }
3939
3943
  };
3940
3944
  }
3941
- function ro(e) {
3942
- let t, n, r, i, o, a, s = (
3945
+ function io(e) {
3946
+ let t, r, n, i, o, a, s = (
3943
3947
  /*$_*/
3944
3948
  e[19]("errorHeader") + ""
3945
- ), u, l, h, c, m, y, d = (
3949
+ ), u, l, h, c, m, _, d = (
3946
3950
  /*$_*/
3947
3951
  e[19]("close") + ""
3948
3952
  ), g, E, S;
3949
3953
  return {
3950
3954
  c() {
3951
- t = H("div"), n = H("div"), r = re("svg"), i = re("path"), o = G(), a = H("h2"), u = k(s), l = G(), h = H("p"), c = k(
3955
+ t = O("div"), r = O("div"), n = ne("svg"), i = ne("path"), o = G(), a = O("h2"), u = k(s), l = G(), h = O("p"), c = k(
3952
3956
  /*errorMessage*/
3953
3957
  e[8]
3954
- ), m = G(), y = H("button"), g = k(d), 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");
3958
+ ), m = G(), _ = O("button"), g = k(d), 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");
3955
3959
  },
3956
- m(M, N) {
3957
- B(M, t, N), _(t, n), _(n, r), _(r, i), _(n, o), _(n, a), _(a, u), _(t, l), _(t, h), _(h, c), _(t, m), _(t, y), _(y, g), E || (S = he(
3958
- y,
3960
+ m(P, L) {
3961
+ C(P, t, L), 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, m), y(t, _), y(_, g), E || (S = ce(
3962
+ _,
3959
3963
  "click",
3960
3964
  /*manualClosePopup*/
3961
3965
  e[28]
3962
3966
  ), E = !0);
3963
3967
  },
3964
- p(M, N) {
3965
- N[0] & /*$_*/
3968
+ p(P, L) {
3969
+ L[0] & /*$_*/
3966
3970
  524288 && s !== (s = /*$_*/
3967
- M[19]("errorHeader") + "") && F(u, s), N[0] & /*errorMessage*/
3971
+ P[19]("errorHeader") + "") && F(u, s), L[0] & /*errorMessage*/
3968
3972
  256 && F(
3969
3973
  c,
3970
3974
  /*errorMessage*/
3971
- M[8]
3972
- ), N[0] & /*$_*/
3975
+ P[8]
3976
+ ), L[0] & /*$_*/
3973
3977
  524288 && d !== (d = /*$_*/
3974
- M[19]("close") + "") && F(g, d);
3978
+ P[19]("close") + "") && F(g, d);
3975
3979
  },
3976
- d(M) {
3977
- M && A(t), E = !1, S();
3980
+ d(P) {
3981
+ P && H(t), E = !1, S();
3978
3982
  }
3979
3983
  };
3980
3984
  }
3981
- function io(e) {
3982
- let t, n, r, i;
3985
+ function oo(e) {
3986
+ let t, r, n, i;
3983
3987
  function o(l, h) {
3984
3988
  return (
3985
3989
  /*isLastWarning*/
3986
- l[10] ? lo : ao
3990
+ l[10] ? uo : lo
3987
3991
  );
3988
3992
  }
3989
3993
  let a = o(e), s = a(e), u = (
@@ -3992,214 +3996,214 @@ function io(e) {
3992
3996
  );
3993
3997
  return {
3994
3998
  c() {
3995
- t = H("p"), s.c(), r = G(), u && u.c(), i = Xn(), p(t, "class", n = /*isLastWarning*/
3999
+ t = O("p"), s.c(), n = G(), u && u.c(), i = zr(), p(t, "class", r = /*isLastWarning*/
3996
4000
  e[10] ? "LastWarningMessage" : "");
3997
4001
  },
3998
4002
  m(l, h) {
3999
- B(l, t, h), s.m(t, null), B(l, r, h), u && u.m(l, h), B(l, i, h);
4003
+ C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
4000
4004
  },
4001
4005
  p(l, h) {
4002
4006
  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*/
4003
- 1024 && n !== (n = /*isLastWarning*/
4004
- l[10] ? "LastWarningMessage" : "") && p(t, "class", n), /*hasErrors*/
4007
+ 1024 && r !== (r = /*isLastWarning*/
4008
+ l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
4005
4009
  l[6] ? u ? u.p(l, h) : (u = qt(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
4006
4010
  },
4007
4011
  d(l) {
4008
- l && (A(t), A(r), A(i)), s.d(), u && u.d(l);
4012
+ l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
4009
4013
  }
4010
4014
  };
4011
4015
  }
4012
- function oo(e) {
4013
- let t, n = (
4016
+ function so(e) {
4017
+ let t, r = (
4014
4018
  /*$_*/
4015
4019
  (e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
4016
- ), r;
4020
+ ), n;
4017
4021
  return {
4018
4022
  c() {
4019
- t = H("p"), r = k(n);
4023
+ t = O("p"), n = k(r);
4020
4024
  },
4021
4025
  m(i, o) {
4022
- B(i, t, o), _(t, r);
4026
+ C(i, t, o), y(t, n);
4023
4027
  },
4024
4028
  p(i, o) {
4025
4029
  o[0] & /*$_*/
4026
- 524288 && n !== (n = /*$_*/
4027
- (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && F(r, n);
4030
+ 524288 && r !== (r = /*$_*/
4031
+ (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && F(n, r);
4028
4032
  },
4029
4033
  d(i) {
4030
- i && A(t);
4034
+ i && H(t);
4031
4035
  }
4032
4036
  };
4033
4037
  }
4034
- function so(e) {
4035
- let t, n = (
4038
+ function ao(e) {
4039
+ let t, r = (
4036
4040
  /*$_*/
4037
4041
  e[19]("otpExpiredMessage") + ""
4038
- ), r;
4042
+ ), n;
4039
4043
  return {
4040
4044
  c() {
4041
- t = H("p"), r = k(n), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4045
+ t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
4042
4046
  },
4043
4047
  m(i, o) {
4044
- B(i, t, o), _(t, r);
4048
+ C(i, t, o), y(t, n);
4045
4049
  },
4046
4050
  p(i, o) {
4047
4051
  o[0] & /*$_*/
4048
- 524288 && n !== (n = /*$_*/
4049
- i[19]("otpExpiredMessage") + "") && F(r, n);
4052
+ 524288 && r !== (r = /*$_*/
4053
+ i[19]("otpExpiredMessage") + "") && F(n, r);
4050
4054
  },
4051
4055
  d(i) {
4052
- i && A(t);
4056
+ i && H(t);
4053
4057
  }
4054
4058
  };
4055
4059
  }
4056
- function ao(e) {
4060
+ function lo(e) {
4057
4061
  let t = (
4058
4062
  /*$_*/
4059
4063
  e[19]("popupMessage") + ""
4060
- ), n;
4064
+ ), r;
4061
4065
  return {
4062
4066
  c() {
4063
- n = k(t);
4067
+ r = k(t);
4064
4068
  },
4065
- m(r, i) {
4066
- B(r, n, i);
4069
+ m(n, i) {
4070
+ C(n, r, i);
4067
4071
  },
4068
- p(r, i) {
4072
+ p(n, i) {
4069
4073
  i[0] & /*$_*/
4070
4074
  524288 && t !== (t = /*$_*/
4071
- r[19]("popupMessage") + "") && F(n, t);
4075
+ n[19]("popupMessage") + "") && F(r, t);
4072
4076
  },
4073
- d(r) {
4074
- r && A(n);
4077
+ d(n) {
4078
+ n && H(r);
4075
4079
  }
4076
4080
  };
4077
4081
  }
4078
- function lo(e) {
4082
+ function uo(e) {
4079
4083
  let t = (
4080
4084
  /*$_*/
4081
4085
  e[19]("popupMessageLastWarning") + ""
4082
- ), n;
4086
+ ), r;
4083
4087
  return {
4084
4088
  c() {
4085
- n = k(t);
4089
+ r = k(t);
4086
4090
  },
4087
- m(r, i) {
4088
- B(r, n, i);
4091
+ m(n, i) {
4092
+ C(n, r, i);
4089
4093
  },
4090
- p(r, i) {
4094
+ p(n, i) {
4091
4095
  i[0] & /*$_*/
4092
4096
  524288 && t !== (t = /*$_*/
4093
- r[19]("popupMessageLastWarning") + "") && F(n, t);
4097
+ n[19]("popupMessageLastWarning") + "") && F(r, t);
4094
4098
  },
4095
- d(r) {
4096
- r && A(n);
4099
+ d(n) {
4100
+ n && H(r);
4097
4101
  }
4098
4102
  };
4099
4103
  }
4100
4104
  function qt(e) {
4101
- let t, n;
4105
+ let t, r;
4102
4106
  return {
4103
4107
  c() {
4104
- t = H("p"), n = k(
4108
+ t = O("p"), r = k(
4105
4109
  /*errorMessage*/
4106
4110
  e[8]
4107
4111
  ), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
4108
4112
  },
4109
- m(r, i) {
4110
- B(r, t, i), _(t, n);
4113
+ m(n, i) {
4114
+ C(n, t, i), y(t, r);
4111
4115
  },
4112
- p(r, i) {
4116
+ p(n, i) {
4113
4117
  i[0] & /*errorMessage*/
4114
4118
  256 && F(
4115
- n,
4119
+ r,
4116
4120
  /*errorMessage*/
4117
- r[8]
4121
+ n[8]
4118
4122
  );
4119
4123
  },
4120
- d(r) {
4121
- r && A(t);
4124
+ d(n) {
4125
+ n && H(t);
4122
4126
  }
4123
4127
  };
4124
4128
  }
4125
4129
  function Qt(e) {
4126
- let t, n, r, i;
4130
+ let t, r, n, i;
4127
4131
  function o(u, l) {
4128
4132
  return (
4129
4133
  /*currentChannelTimer*/
4130
- u[17] > 0 ? ho : uo
4134
+ u[17] > 0 ? co : ho
4131
4135
  );
4132
4136
  }
4133
4137
  let a = o(e), s = a(e);
4134
4138
  return {
4135
4139
  c() {
4136
- t = H("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = n = !/*canSubmitChannel*/
4140
+ t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
4137
4141
  e[18], ie(t, "disabled", !/*canSubmitChannel*/
4138
4142
  e[18] || /*waitingForConfig*/
4139
4143
  e[16]);
4140
4144
  },
4141
4145
  m(u, l) {
4142
- B(u, t, l), s.m(t, null), r || (i = he(
4146
+ C(u, t, l), s.m(t, null), n || (i = ce(
4143
4147
  t,
4144
4148
  "click",
4145
4149
  /*handleChannelSubmit*/
4146
4150
  e[22]
4147
- ), r = !0);
4151
+ ), n = !0);
4148
4152
  },
4149
4153
  p(u, l) {
4150
4154
  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*/
4151
- 262144 && n !== (n = !/*canSubmitChannel*/
4152
- u[18]) && (t.disabled = n), l[0] & /*canSubmitChannel, waitingForConfig*/
4155
+ 262144 && r !== (r = !/*canSubmitChannel*/
4156
+ u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
4153
4157
  327680 && ie(t, "disabled", !/*canSubmitChannel*/
4154
4158
  u[18] || /*waitingForConfig*/
4155
4159
  u[16]);
4156
4160
  },
4157
4161
  d(u) {
4158
- u && A(t), s.d(), r = !1, i();
4162
+ u && H(t), s.d(), n = !1, i();
4159
4163
  }
4160
4164
  };
4161
4165
  }
4162
- function uo(e) {
4166
+ function ho(e) {
4163
4167
  let t = (
4164
4168
  /*$_*/
4165
4169
  e[19]("sendCode") + ""
4166
- ), n;
4170
+ ), r;
4167
4171
  return {
4168
4172
  c() {
4169
- n = k(t);
4173
+ r = k(t);
4170
4174
  },
4171
- m(r, i) {
4172
- B(r, n, i);
4175
+ m(n, i) {
4176
+ C(n, r, i);
4173
4177
  },
4174
- p(r, i) {
4178
+ p(n, i) {
4175
4179
  i[0] & /*$_*/
4176
4180
  524288 && t !== (t = /*$_*/
4177
- r[19]("sendCode") + "") && F(n, t);
4181
+ n[19]("sendCode") + "") && F(r, t);
4178
4182
  },
4179
- d(r) {
4180
- r && A(n);
4183
+ d(n) {
4184
+ n && H(r);
4181
4185
  }
4182
4186
  };
4183
4187
  }
4184
- function ho(e) {
4188
+ function co(e) {
4185
4189
  let t = (
4186
4190
  /*$_*/
4187
4191
  e[19]("waitSeconds") + ""
4188
- ), n, r, i, o;
4192
+ ), r, n, i, o;
4189
4193
  return {
4190
4194
  c() {
4191
- n = k(t), r = k(" ("), i = k(
4195
+ r = k(t), n = k(" ("), i = k(
4192
4196
  /*currentChannelTimer*/
4193
4197
  e[17]
4194
4198
  ), o = k("s)");
4195
4199
  },
4196
4200
  m(a, s) {
4197
- B(a, n, s), B(a, r, s), B(a, i, s), B(a, o, s);
4201
+ C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
4198
4202
  },
4199
4203
  p(a, s) {
4200
4204
  s[0] & /*$_*/
4201
4205
  524288 && t !== (t = /*$_*/
4202
- a[19]("waitSeconds") + "") && F(n, t), s[0] & /*currentChannelTimer*/
4206
+ a[19]("waitSeconds") + "") && F(r, t), s[0] & /*currentChannelTimer*/
4203
4207
  131072 && F(
4204
4208
  i,
4205
4209
  /*currentChannelTimer*/
@@ -4207,12 +4211,12 @@ function ho(e) {
4207
4211
  );
4208
4212
  },
4209
4213
  d(a) {
4210
- a && (A(n), A(r), A(i), A(o));
4214
+ a && (H(r), H(n), H(i), H(o));
4211
4215
  }
4212
4216
  };
4213
4217
  }
4214
- function co(e) {
4215
- let t, n, r = (
4218
+ function fo(e) {
4219
+ let t, r, n = (
4216
4220
  /*$_*/
4217
4221
  e[19]("timeRemaining") + ""
4218
4222
  ), i, o, a = (
@@ -4224,28 +4228,28 @@ function co(e) {
4224
4228
  ), s, u, l = (
4225
4229
  /*$_*/
4226
4230
  e[19]("minutes") + ""
4227
- ), h, c, m, y = Mt(
4231
+ ), h, c, m, _ = Mt(
4228
4232
  /*otp*/
4229
4233
  e[2]
4230
4234
  ), d = [];
4231
- for (let g = 0; g < y.length; g += 1)
4232
- d[g] = Jt(Zt(e, y, g));
4235
+ for (let g = 0; g < _.length; g += 1)
4236
+ d[g] = Jt(Zt(e, _, g));
4233
4237
  return {
4234
4238
  c() {
4235
- t = H("div"), n = H("div"), i = k(r), o = G(), s = k(a), u = G(), h = k(l), c = G(), m = H("div");
4239
+ t = O("div"), r = O("div"), i = k(n), o = G(), s = k(a), u = G(), h = k(l), c = G(), m = O("div");
4236
4240
  for (let g = 0; g < d.length; g += 1)
4237
4241
  d[g].c();
4238
- p(n, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4242
+ p(r, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
4239
4243
  },
4240
4244
  m(g, E) {
4241
- B(g, t, E), _(t, n), _(n, i), _(n, o), _(n, s), _(n, u), _(n, h), _(t, c), _(t, m);
4245
+ 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, m);
4242
4246
  for (let S = 0; S < d.length; S += 1)
4243
4247
  d[S] && d[S].m(m, null);
4244
4248
  },
4245
4249
  p(g, E) {
4246
4250
  if (E[0] & /*$_*/
4247
- 524288 && r !== (r = /*$_*/
4248
- g[19]("timeRemaining") + "") && F(i, r), E[0] & /*timeLeft*/
4251
+ 524288 && n !== (n = /*$_*/
4252
+ g[19]("timeRemaining") + "") && F(i, n), E[0] & /*timeLeft*/
4249
4253
  32 && a !== (a = /*formatTime*/
4250
4254
  g[23](
4251
4255
  /*timeLeft*/
@@ -4254,42 +4258,42 @@ function co(e) {
4254
4258
  524288 && l !== (l = /*$_*/
4255
4259
  g[19]("minutes") + "") && F(h, l), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
4256
4260
  117458964) {
4257
- y = Mt(
4261
+ _ = Mt(
4258
4262
  /*otp*/
4259
4263
  g[2]
4260
4264
  );
4261
4265
  let S;
4262
- for (S = 0; S < y.length; S += 1) {
4263
- const M = Zt(g, y, S);
4264
- d[S] ? d[S].p(M, E) : (d[S] = Jt(M), d[S].c(), d[S].m(m, null));
4266
+ for (S = 0; S < _.length; S += 1) {
4267
+ const P = Zt(g, _, S);
4268
+ d[S] ? d[S].p(P, E) : (d[S] = Jt(P), d[S].c(), d[S].m(m, null));
4265
4269
  }
4266
4270
  for (; S < d.length; S += 1)
4267
4271
  d[S].d(1);
4268
- d.length = y.length;
4272
+ d.length = _.length;
4269
4273
  }
4270
4274
  },
4271
4275
  d(g) {
4272
- g && A(t), zn(d, g);
4276
+ g && H(t), $r(d, g);
4273
4277
  }
4274
4278
  };
4275
4279
  }
4276
- function fo(e) {
4280
+ function po(e) {
4277
4281
  let t;
4278
4282
  return {
4279
4283
  c() {
4280
- t = H("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4284
+ t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
4281
4285
  },
4282
- m(n, r) {
4283
- B(n, t, r);
4286
+ m(r, n) {
4287
+ C(r, t, n);
4284
4288
  },
4285
4289
  p: Y,
4286
- d(n) {
4287
- n && A(t);
4290
+ d(r) {
4291
+ r && H(t);
4288
4292
  }
4289
4293
  };
4290
4294
  }
4291
4295
  function Jt(e) {
4292
- let t, n, r, i = (
4296
+ let t, r, n, i = (
4293
4297
  /*index*/
4294
4298
  e[71]
4295
4299
  ), o, a;
@@ -4322,19 +4326,19 @@ function Jt(e) {
4322
4326
  }
4323
4327
  return {
4324
4328
  c() {
4325
- t = H("input"), p(t, "id", `otp-input-${/*index*/
4326
- e[71]}`), p(t, "type", "text"), p(t, "class", n = `otp-box ${/*config*/
4329
+ t = O("input"), p(t, "id", `otp-input-${/*index*/
4330
+ e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
4327
4331
  e[4].inputLength % 2 === 0 && /*index*/
4328
4332
  e[71] === /*config*/
4329
- e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = r = /*char*/
4333
+ e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
4330
4334
  e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
4331
4335
  e[11], p(t, "autocomplete", "off");
4332
4336
  },
4333
4337
  m(c, m) {
4334
- B(c, t, m), s(), o || (a = [
4335
- he(t, "input", l),
4336
- he(t, "keydown", h),
4337
- he(
4338
+ C(c, t, m), s(), o || (a = [
4339
+ ce(t, "input", l),
4340
+ ce(t, "keydown", h),
4341
+ ce(
4338
4342
  t,
4339
4343
  "paste",
4340
4344
  /*handleOnPasteOtp*/
@@ -4344,37 +4348,37 @@ function Jt(e) {
4344
4348
  },
4345
4349
  p(c, m) {
4346
4350
  e = c, m[0] & /*config*/
4347
- 16 && n !== (n = `otp-box ${/*config*/
4351
+ 16 && r !== (r = `otp-box ${/*config*/
4348
4352
  e[4].inputLength % 2 === 0 && /*index*/
4349
4353
  e[71] === /*config*/
4350
- e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", n), m[0] & /*otp*/
4351
- 4 && r !== (r = /*char*/
4352
- e[69]) && t.value !== r && (t.value = r), m[0] & /*inputDisabled*/
4354
+ e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), m[0] & /*otp*/
4355
+ 4 && n !== (n = /*char*/
4356
+ e[69]) && t.value !== n && (t.value = n), m[0] & /*inputDisabled*/
4353
4357
  2048 && (t.disabled = /*inputDisabled*/
4354
4358
  e[11]), i !== /*index*/
4355
4359
  e[71] && (u(), i = /*index*/
4356
4360
  e[71], s());
4357
4361
  },
4358
4362
  d(c) {
4359
- c && A(t), u(), o = !1, _e(a);
4363
+ c && H(t), u(), o = !1, _e(a);
4360
4364
  }
4361
4365
  };
4362
4366
  }
4363
- function po(e) {
4364
- let t, n = (
4367
+ function mo(e) {
4368
+ let t, r = (
4365
4369
  /*$_*/
4366
4370
  e[19]("submit") + ""
4367
- ), r, i, o, a;
4371
+ ), n, i, o, a;
4368
4372
  return {
4369
4373
  c() {
4370
- t = H("button"), r = k(n), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4374
+ t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
4371
4375
  e[2].join("").length !== /*config*/
4372
4376
  e[4].inputLength || /*isSubmitting*/
4373
4377
  e[13] || /*maxAttempts*/
4374
4378
  e[15];
4375
4379
  },
4376
4380
  m(s, u) {
4377
- B(s, t, u), _(t, r), o || (a = he(
4381
+ C(s, t, u), y(t, n), o || (a = ce(
4378
4382
  t,
4379
4383
  "click",
4380
4384
  /*submitOtp*/
@@ -4383,8 +4387,8 @@ function po(e) {
4383
4387
  },
4384
4388
  p(s, u) {
4385
4389
  u[0] & /*$_*/
4386
- 524288 && n !== (n = /*$_*/
4387
- s[19]("submit") + "") && F(r, n), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4390
+ 524288 && r !== (r = /*$_*/
4391
+ s[19]("submit") + "") && F(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
4388
4392
  40980 && i !== (i = /*otp*/
4389
4393
  s[2].join("").length !== /*config*/
4390
4394
  s[4].inputLength || /*isSubmitting*/
@@ -4392,21 +4396,21 @@ function po(e) {
4392
4396
  s[15]) && (t.disabled = i);
4393
4397
  },
4394
4398
  d(s) {
4395
- s && A(t), o = !1, a();
4399
+ s && H(t), o = !1, a();
4396
4400
  }
4397
4401
  };
4398
4402
  }
4399
- function mo(e) {
4400
- let t, n = (
4403
+ function go(e) {
4404
+ let t, r = (
4401
4405
  /*$_*/
4402
4406
  e[19]("resendOtp") + ""
4403
- ), r, i, o;
4407
+ ), n, i, o;
4404
4408
  return {
4405
4409
  c() {
4406
- t = H("button"), r = k(n), p(t, "class", "OtpButton");
4410
+ t = O("button"), n = k(r), p(t, "class", "OtpButton");
4407
4411
  },
4408
4412
  m(a, s) {
4409
- B(a, t, s), _(t, r), i || (o = he(
4413
+ C(a, t, s), y(t, n), i || (o = ce(
4410
4414
  t,
4411
4415
  "click",
4412
4416
  /*handleResendOtp*/
@@ -4415,45 +4419,45 @@ function mo(e) {
4415
4419
  },
4416
4420
  p(a, s) {
4417
4421
  s[0] & /*$_*/
4418
- 524288 && n !== (n = /*$_*/
4419
- a[19]("resendOtp") + "") && F(r, n);
4422
+ 524288 && r !== (r = /*$_*/
4423
+ a[19]("resendOtp") + "") && F(n, r);
4420
4424
  },
4421
4425
  d(a) {
4422
- a && A(t), i = !1, o();
4426
+ a && H(t), i = !1, o();
4423
4427
  }
4424
4428
  };
4425
4429
  }
4426
- function go(e) {
4430
+ function bo(e) {
4427
4431
  let t;
4428
- function n(o, a) {
4432
+ function r(o, a) {
4429
4433
  return (
4430
4434
  /*hasConfigErrors*/
4431
- o[7] ? ro : no
4435
+ o[7] ? io : no
4432
4436
  );
4433
4437
  }
4434
- let r = n(e), i = r(e);
4438
+ let n = r(e), i = n(e);
4435
4439
  return {
4436
4440
  c() {
4437
- t = H("div"), i.c(), p(t, "class", "OtpContent");
4441
+ t = O("div"), i.c(), p(t, "class", "OtpContent");
4438
4442
  },
4439
4443
  m(o, a) {
4440
- B(o, t, a), i.m(t, null), e[44](t);
4444
+ C(o, t, a), i.m(t, null), e[44](t);
4441
4445
  },
4442
4446
  p(o, a) {
4443
- r === (r = n(o)) && i ? i.p(o, a) : (i.d(1), i = r(o), i && (i.c(), i.m(t, null)));
4447
+ n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4444
4448
  },
4445
4449
  i: Y,
4446
4450
  o: Y,
4447
4451
  d(o) {
4448
- o && A(t), i.d(), e[44](null);
4452
+ o && H(t), i.d(), e[44](null);
4449
4453
  }
4450
4454
  };
4451
4455
  }
4452
- function bo(e, t, n) {
4453
- let r, i, o;
4454
- Fn(e, Ki, (f) => n(19, o = f));
4455
- let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: y } = t, d = [], g = !0, E = null, S = 0, M = "", N = "", D = !1, I = !1, R = "", K = "", q = "", se = !1, fe = !1, ae = !1, P = "", U = {}, W = null, pe = !1, me = !1, de = "", Q, ee = [], $ = null, le = 0, te = !1, ge = !1;
4456
- const Ee = { SMS: "sms", EMAIL: "email" }, be = {
4456
+ function yo(e, t, r) {
4457
+ let n, i, o;
4458
+ Gr(e, eo, (f) => r(19, o = f));
4459
+ let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: _ } = t, d = [], g = !0, E = null, S = 0, P = "", L = "", D = !1, M = !1, N = "", K = "", q = "", ae = !1, pe = !1, le = !1, B = "", U = {}, W = null, me = !1, de = !1, ge = "", Q, ee = [], $ = null, ue = 0, te = !1, be = !1;
4460
+ const ve = { SMS: "sms", EMAIL: "email" }, ye = {
4457
4461
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
4458
4462
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
4459
4463
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
@@ -4461,8 +4465,8 @@ function bo(e, t, n) {
4461
4465
  Object.keys(Wt).forEach((f) => {
4462
4466
  Xt(f, Wt[f]);
4463
4467
  });
4464
- const ve = () => {
4465
- eo(l);
4468
+ const xe = () => {
4469
+ to(l);
4466
4470
  }, J = () => {
4467
4471
  fetch(m).then((f) => f.json()).then((f) => {
4468
4472
  Object.keys(f).forEach((v) => {
@@ -4473,98 +4477,98 @@ function bo(e, t, n) {
4473
4477
  });
4474
4478
  }, j = async (f) => {
4475
4479
  if (f.detail?.["x-step-up-required"]) {
4476
- if (n(7, I = !1), n(6, D = !1), n(8, R = ""), K = f.detail["x-step-up-token"], q = f.detail.flow, !K || !q) {
4477
- n(3, g = !1), n(7, I = !0), n(8, R = o("configError"));
4480
+ if (r(7, M = !1), r(6, D = !1), r(8, N = ""), K = f.detail["x-step-up-token"], q = f.detail.flow, !K || !q) {
4481
+ r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
4478
4482
  return;
4479
4483
  }
4480
- n(12, pe = !1), n(3, g = !1);
4484
+ r(12, me = !1), r(3, g = !1);
4481
4485
  }
4482
- }, Ge = () => {
4483
- $ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), n(6, D = !1), n(7, I = !1), n(8, R = ""), n(10, fe = !1), n(2, d = []), n(4, E = null), n(3, g = !0), n(0, P = ""), n(12, pe = !1), n(38, U = {});
4484
- }, ue = () => {
4485
- Ge();
4486
+ }, Fe = () => {
4487
+ $ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, d = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, me = !1), r(38, U = {});
4488
+ }, he = () => {
4489
+ Fe();
4486
4490
  }, V = () => new Promise((f, v) => {
4487
4491
  const x = new URL(`${h}/api/pam/v1/mfa/challenge/${K}`), X = new Headers();
4488
- X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), n(16, ge = !0);
4489
- const nt = {
4492
+ X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), r(16, be = !0);
4493
+ const it = {
4490
4494
  method: "PATCH",
4491
4495
  headers: X,
4492
4496
  body: JSON.stringify({
4493
- channel: P,
4494
- templateId: y
4497
+ channel: B,
4498
+ templateId: _
4495
4499
  })
4496
4500
  };
4497
- fetch(x, nt).then((Ct) => Ct.json()).then(() => {
4498
- n(15, te = !1), b(), C(), f();
4501
+ fetch(x, it).then((Ct) => Ct.json()).then(() => {
4502
+ r(15, te = !1), b(), A(), f();
4499
4503
  }).catch((Ct) => {
4500
4504
  v();
4501
4505
  });
4502
- }), Fe = () => {
4506
+ }), je = () => {
4503
4507
  W && clearInterval(W), W = setInterval(
4504
4508
  () => {
4505
4509
  const f = { ...U };
4506
4510
  let v = !1;
4507
4511
  Object.keys(f).forEach((x) => {
4508
4512
  f[x] > 0 && (f[x]--, v = !0);
4509
- }), n(38, U = f), !v && W && (clearInterval(W), W = null);
4513
+ }), r(38, U = f), !v && W && (clearInterval(W), W = null);
4510
4514
  },
4511
4515
  1e3
4512
4516
  );
4513
- }, ne = (f) => {
4514
- n(0, P = f);
4517
+ }, re = (f) => {
4518
+ r(0, B = f);
4515
4519
  }, z = async () => {
4516
- if (!(!P || U[P] && U[P] > 0)) {
4517
- n(3, g = !0), y && y.startsWith("2fa-") && n(30, y = `2fa-${P}`);
4520
+ if (!(!B || U[B] && U[B] > 0)) {
4521
+ r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
4518
4522
  try {
4519
- await V(), await tt(), n(38, U = {
4523
+ await V(), await nt(), r(38, U = {
4520
4524
  ...U,
4521
- [P]: 30
4522
- }), Fe(), n(12, pe = !0), b(), C();
4525
+ [B]: 30
4526
+ }), je(), r(12, me = !0), b(), A();
4523
4527
  } catch (f) {
4524
- console.error("Error submitting channel:", f), n(6, D = !0), n(8, R = o("submissionError"));
4528
+ console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
4525
4529
  } finally {
4526
- n(3, g = !1);
4530
+ r(3, g = !1);
4527
4531
  }
4528
4532
  }
4529
4533
  }, b = () => {
4530
- const f = new Date(M), v = new Date(N), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
4531
- le = f.getTime() - X;
4532
- const Ie = Date.now(), nt = Math.max(0, Math.floor((le - Ie) / 1e3));
4533
- n(5, S = nt);
4534
- }, C = () => {
4534
+ const f = new Date(P), v = new Date(L), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
4535
+ ue = f.getTime() - X;
4536
+ const Le = Date.now(), it = Math.max(0, Math.floor((ue - Le) / 1e3));
4537
+ r(5, S = it);
4538
+ }, A = () => {
4535
4539
  $ && clearInterval($), $ = setInterval(
4536
4540
  () => {
4537
- const f = Date.now(), v = Math.max(0, Math.floor((le - f) / 1e3));
4538
- n(5, S = v), n(11, ae = v <= 0), v <= 0 && (clearInterval($), $ = null, n(9, se = !0), n(6, D = !1), n(10, fe = !1));
4541
+ const f = Date.now(), v = Math.max(0, Math.floor((ue - f) / 1e3));
4542
+ r(5, S = v), r(11, le = v <= 0), v <= 0 && (clearInterval($), $ = null, r(9, ae = !0), r(6, D = !1), r(10, pe = !1));
4539
4543
  },
4540
4544
  1e3
4541
4545
  );
4542
- }, On = (f) => {
4546
+ }, Or = (f) => {
4543
4547
  const v = Math.floor(f / 60), x = f % 60;
4544
4548
  return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
4545
- }, et = (f, v) => {
4549
+ }, rt = (f, v) => {
4546
4550
  const x = [...d];
4547
- x[f] = v.toUpperCase(), n(2, d = x), x.join("") !== de && n(13, me = !1);
4548
- }, An = (f) => {
4551
+ x[f] = v.toUpperCase(), r(2, d = x), x.join("") !== ge && r(13, de = !1);
4552
+ }, Hr = (f) => {
4549
4553
  f.preventDefault();
4550
4554
  const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
4551
- n(2, d = [...x, ...Array(E.inputLength - x.length).fill("")]), ee[x.length]?.focus(), x.length === E.inputLength && At();
4552
- }, Ht = (f, v) => {
4553
- const x = f.target, X = x.value;
4554
- /^[a-z0-9]$/i.test(X) && (et(v, X), ee[v + 1]?.focus()), x.value = "";
4555
+ r(2, d = [...x, ...Array(E.inputLength - x.length).fill("")]), ee[x.length]?.focus(), x.length === E.inputLength && At();
4555
4556
  }, Ot = (f, v) => {
4557
+ const x = f.target, X = x.value;
4558
+ /^[a-z0-9]$/i.test(X) && (rt(v, X), ee[v + 1]?.focus()), x.value = "";
4559
+ }, Ht = (f, v) => {
4556
4560
  const x = f.key, X = f.ctrlKey || f.metaKey;
4557
4561
  if (/^[a-z0-9]$/i.test(x)) {
4558
4562
  if (X && x.toLowerCase() === "v")
4559
4563
  return;
4560
- f.preventDefault(), et(v, x), ee[v + 1]?.focus();
4564
+ f.preventDefault(), rt(v, x), ee[v + 1]?.focus();
4561
4565
  } else
4562
- x === "Backspace" && (f.preventDefault(), d[v] !== "" && et(v, ""), ee[v - 1]?.focus());
4563
- }, Cn = () => {
4564
- q == "stateful" && (V(), n(9, se = !1));
4566
+ x === "Backspace" && (f.preventDefault(), d[v] !== "" && rt(v, ""), ee[v - 1]?.focus());
4567
+ }, Ar = () => {
4568
+ q == "stateful" && (V(), r(9, ae = !1));
4565
4569
  const f = new CustomEvent("otpResendRequested");
4566
4570
  window.dispatchEvent(f);
4567
- }, Bn = (f) => {
4571
+ }, Cr = (f) => {
4568
4572
  window.dispatchEvent(new CustomEvent(
4569
4573
  "otpSubmitted",
4570
4574
  {
@@ -4575,19 +4579,19 @@ function bo(e, t, n) {
4575
4579
  }
4576
4580
  }
4577
4581
  ));
4578
- }, Pn = async (f) => {
4582
+ }, Br = async (f) => {
4579
4583
  const v = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/validate`, h);
4580
4584
  v.searchParams.append("input", f);
4581
4585
  try {
4582
4586
  const x = await fetch(v.href, { method: "POST" });
4583
4587
  if (x.status === 200) {
4584
- Mn();
4588
+ Pr();
4585
4589
  return;
4586
4590
  }
4587
4591
  const X = await x.json();
4588
4592
  throw new Error(X.message);
4589
4593
  } catch (x) {
4590
- if (await tt(), x.message === be.INTERNAL_SERVER_ERROR) {
4594
+ if (await nt(), x.message === ye.INTERNAL_SERVER_ERROR) {
4591
4595
  if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
4592
4596
  window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
4593
4597
  {
@@ -4601,14 +4605,14 @@ function bo(e, t, n) {
4601
4605
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
4602
4606
  return;
4603
4607
  }
4604
- n(6, D = !0), n(8, R = o("invalidOtp")), tt();
4608
+ r(6, D = !0), r(8, N = o("invalidOtp")), nt();
4605
4609
  return;
4606
4610
  }
4607
- x.message === be.MAX_INVALIDATE && (n(6, D = !0), n(8, R = o("invalidOtp"))), x.details === be.MAX_ATTEMPTS_EXCEEDED && n(15, te = !0), console.error("OTP submission failed:", x), n(6, D = !0), n(8, R = o("submissionError"));
4611
+ x.message === ye.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === ye.MAX_ATTEMPTS_EXCEEDED && r(15, te = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
4608
4612
  } finally {
4609
- n(3, g = !1);
4613
+ r(3, g = !1);
4610
4614
  }
4611
- }, Mn = () => {
4615
+ }, Pr = () => {
4612
4616
  window.dispatchEvent(new CustomEvent(
4613
4617
  "otpSuccess",
4614
4618
  {
@@ -4617,95 +4621,95 @@ function bo(e, t, n) {
4617
4621
  }
4618
4622
  }
4619
4623
  ));
4620
- }, In = () => {
4624
+ }, Mr = () => {
4621
4625
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4622
4626
  }, At = async () => {
4623
4627
  if (d.join("").length !== E.inputLength) {
4624
- n(6, D = !0), n(8, R = o("invalidOtp"));
4628
+ r(6, D = !0), r(8, N = o("invalidOtp"));
4625
4629
  return;
4626
4630
  }
4627
4631
  const f = d.join("");
4628
- n(13, me = !0), de = f, n(3, g = !0), n(6, D = !1), n(8, R = ""), q === "stateless" && Bn(f), q === "stateful" && await Pn(f);
4629
- }, tt = async () => {
4632
+ r(13, de = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" && Cr(f), q === "stateful" && await Br(f);
4633
+ }, nt = async () => {
4630
4634
  if (h)
4631
4635
  try {
4632
- n(3, g = !0);
4636
+ r(3, g = !0);
4633
4637
  const f = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/config`, h), v = await fetch(f.href), x = await v.json();
4634
4638
  if (v.ok)
4635
- n(4, E = x), n(2, d = Array(E.inputLength).fill("")), n(9, se = !1), M = E.expirationTime, N = E.serverTime, E.numberOfValidateAttempts !== 0 && (n(6, D = !0), n(8, R = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && n(10, fe = !0), n(3, g = !1), b(), C(), n(16, ge = !1);
4636
- else if (x && x.details === be.MAX_ATTEMPTS_EXCEEDED)
4639
+ r(4, E = x), r(2, d = Array(E.inputLength).fill("")), r(9, ae = !1), P = E.expirationTime, L = 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), b(), A(), r(16, be = !1);
4640
+ else if (x && x.details === ye.MAX_ATTEMPTS_EXCEEDED)
4637
4641
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
4638
4642
  else {
4639
4643
  const X = x && x.message || `Failed to load config. Status: ${v.status}`;
4640
4644
  throw new Error(X);
4641
4645
  }
4642
4646
  } catch (f) {
4643
- n(3, g = !1), n(7, I = !0), n(8, R = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
4647
+ 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);
4644
4648
  }
4645
4649
  };
4646
- Qn(() => (window.addEventListener("stepUpAuthRequired", j, !1), window.addEventListener("closePopup", ue, !1), () => {
4647
- window.removeEventListener("stepUpAuthRequired", j), window.removeEventListener("closePopup", ue, !1), $ && clearInterval($), W && clearInterval(W);
4650
+ qr(() => (window.addEventListener("stepUpAuthRequired", j, !1), window.addEventListener("closePopup", he, !1), () => {
4651
+ window.removeEventListener("stepUpAuthRequired", j), window.removeEventListener("closePopup", he, !1), $ && clearInterval($), W && clearInterval(W);
4648
4652
  }));
4649
- const Ln = () => ne(Ee.SMS), Nn = () => ne(Ee.EMAIL);
4650
- function Rn(f, v) {
4651
- Xe[f ? "unshift" : "push"](() => {
4652
- ee[v] = f, n(14, ee);
4653
+ const Ir = () => re(ve.SMS), Lr = () => re(ve.EMAIL);
4654
+ function Nr(f, v) {
4655
+ We[f ? "unshift" : "push"](() => {
4656
+ ee[v] = f, r(14, ee);
4653
4657
  });
4654
4658
  }
4655
- const kn = (f, v) => Ht(v, f), Dn = (f, v) => Ot(v, f);
4656
- function Un(f) {
4657
- Xe[f ? "unshift" : "push"](() => {
4658
- Q = f, n(1, Q);
4659
+ const Rr = (f, v) => Ot(v, f), kr = (f, v) => Ht(v, f);
4660
+ function Dr(f) {
4661
+ We[f ? "unshift" : "push"](() => {
4662
+ Q = f, r(1, Q);
4659
4663
  });
4660
4664
  }
4661
4665
  return e.$$set = (f) => {
4662
- "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, m = f.translationurl), "templateid" in f && n(30, y = f.templateid);
4666
+ "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, m = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
4663
4667
  }, e.$$.update = () => {
4664
4668
  e.$$.dirty[0] & /*customStylingContainer*/
4665
4669
  2 | e.$$.dirty[1] & /*clientstyling*/
4666
- 1 && a && Q && hr(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4670
+ 1 && a && Q && hn(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
4667
4671
  2 | e.$$.dirty[1] & /*clientstylingurl*/
4668
- 2 && s && Q && cr(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4672
+ 2 && s && Q && cn(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
4669
4673
  2 | e.$$.dirty[1] & /*mbsource*/
4670
- 4 && u && Q && fr(Q, `${u}.Style`), e.$$.dirty[1] & /*lang*/
4671
- 8 && l && ve(), e.$$.dirty[1] & /*lang, translationurl*/
4674
+ 4 && u && Q && fn(Q, `${u}.Style`), e.$$.dirty[1] & /*lang*/
4675
+ 8 && l && xe(), e.$$.dirty[1] & /*lang, translationurl*/
4672
4676
  72 && l && m && J(), e.$$.dirty[0] & /*selectedChannel*/
4673
4677
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4674
- 128 && n(18, r = P && (!U[P] || U[P] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4678
+ 128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
4675
4679
  1 | e.$$.dirty[1] & /*channelSubmitTimers*/
4676
- 128 && n(17, i = P && U[P] || 0);
4680
+ 128 && r(17, i = B && U[B] || 0);
4677
4681
  }, [
4678
- P,
4682
+ B,
4679
4683
  Q,
4680
4684
  d,
4681
4685
  g,
4682
4686
  E,
4683
4687
  S,
4684
4688
  D,
4685
- I,
4686
- R,
4687
- se,
4688
- fe,
4689
+ M,
4690
+ N,
4689
4691
  ae,
4690
4692
  pe,
4693
+ le,
4691
4694
  me,
4695
+ de,
4692
4696
  ee,
4693
4697
  te,
4694
- ge,
4698
+ be,
4695
4699
  i,
4696
- r,
4700
+ n,
4697
4701
  o,
4698
- Ee,
4699
- ne,
4702
+ ve,
4703
+ re,
4700
4704
  z,
4701
- On,
4702
- An,
4703
- Ht,
4705
+ Or,
4706
+ Hr,
4704
4707
  Ot,
4705
- Cn,
4706
- In,
4708
+ Ht,
4709
+ Ar,
4710
+ Mr,
4707
4711
  At,
4708
- y,
4712
+ _,
4709
4713
  a,
4710
4714
  s,
4711
4715
  u,
@@ -4714,21 +4718,21 @@ function bo(e, t, n) {
4714
4718
  c,
4715
4719
  m,
4716
4720
  U,
4717
- Ln,
4718
- Nn,
4719
- Rn,
4720
- kn,
4721
- Dn,
4722
- Un
4721
+ Ir,
4722
+ Lr,
4723
+ Nr,
4724
+ Rr,
4725
+ kr,
4726
+ Dr
4723
4727
  ];
4724
4728
  }
4725
- class _o extends lr {
4729
+ class _o extends ln {
4726
4730
  constructor(t) {
4727
- super(), sr(
4731
+ super(), sn(
4728
4732
  this,
4729
4733
  t,
4734
+ yo,
4730
4735
  bo,
4731
- go,
4732
4736
  Kt,
4733
4737
  {
4734
4738
  clientstyling: 31,
@@ -4740,7 +4744,7 @@ class _o extends lr {
4740
4744
  translationurl: 37,
4741
4745
  templateid: 30
4742
4746
  },
4743
- to,
4747
+ ro,
4744
4748
  [-1, -1, -1]
4745
4749
  );
4746
4750
  }
@@ -4793,7 +4797,7 @@ class _o extends lr {
4793
4797
  this.$$set({ templateid: t }), oe();
4794
4798
  }
4795
4799
  }
4796
- ar(_o, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4800
+ an(_o, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
4797
4801
  export {
4798
4802
  _o as C
4799
4803
  };