@everymatrix/cashier-error 1.77.20 → 1.77.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import "../stencil/ui-image-BY8ZO6br.js";
2
- function P() {
1
+ import "../stencil/ui-image-CHeV8e9p.js";
2
+ function O() {
3
3
  }
4
- function qt(e, t) {
4
+ function Yt(e, t) {
5
5
  for (const r in t)
6
6
  e[r] = t[r];
7
7
  return (
@@ -9,50 +9,50 @@ function qt(e, t) {
9
9
  e
10
10
  );
11
11
  }
12
- function Et(e) {
12
+ function xt(e) {
13
13
  return e();
14
14
  }
15
- function Je() {
15
+ function Qe() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
- function Z(e) {
19
- e.forEach(Et);
18
+ function J(e) {
19
+ e.forEach(xt);
20
20
  }
21
- function ze(e) {
21
+ function Xe(e) {
22
22
  return typeof e == "function";
23
23
  }
24
- function vt(e, t) {
24
+ function Tt(e, t) {
25
25
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
26
  }
27
- let ae;
28
- function qe(e, t) {
29
- return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
27
+ let ue;
28
+ function Ye(e, t) {
29
+ return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
30
30
  }
31
- function Qt(e) {
31
+ function Kt(e) {
32
32
  return Object.keys(e).length === 0;
33
33
  }
34
- function xt(e, ...t) {
34
+ function Ht(e, ...t) {
35
35
  if (e == null) {
36
36
  for (const n of t)
37
37
  n(void 0);
38
- return P;
38
+ return O;
39
39
  }
40
40
  const r = e.subscribe(...t);
41
41
  return r.unsubscribe ? () => r.unsubscribe() : r;
42
42
  }
43
- function Yt(e, t, r) {
44
- e.$$.on_destroy.push(xt(t, r));
43
+ function er(e, t, r) {
44
+ e.$$.on_destroy.push(Ht(t, r));
45
45
  }
46
- function he(e, t, r, n) {
46
+ function ce(e, t, r, n) {
47
47
  if (e) {
48
- const i = Tt(e, t, r, n);
48
+ const i = wt(e, t, r, n);
49
49
  return e[0](i);
50
50
  }
51
51
  }
52
- function Tt(e, t, r, n) {
53
- return e[1] && n ? qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
+ function wt(e, t, r, n) {
53
+ return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function ce(e, t, r, n) {
55
+ function fe(e, t, r, n) {
56
56
  if (e[2] && n) {
57
57
  const i = e[2](n(r));
58
58
  if (t.dirty === void 0)
@@ -67,13 +67,13 @@ function ce(e, t, r, n) {
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function fe(e, t, r, n, i, o) {
70
+ function me(e, t, r, n, i, o) {
71
71
  if (i) {
72
- const s = Tt(t, r, n, o);
72
+ const s = wt(t, r, n, o);
73
73
  e.p(s, i);
74
74
  }
75
75
  }
76
- function me(e) {
76
+ function de(e) {
77
77
  if (e.ctx.length > 32) {
78
78
  const t = [], r = e.ctx.length / 32;
79
79
  for (let n = 0; n < r; n++)
@@ -82,17 +82,17 @@ function me(e) {
82
82
  }
83
83
  return -1;
84
84
  }
85
- function A(e, t) {
85
+ function P(e, t) {
86
86
  e.appendChild(t);
87
87
  }
88
- function Kt(e, t, r) {
89
- const n = er(e);
88
+ function tr(e, t, r) {
89
+ const n = rr(e);
90
90
  if (!n.getElementById(t)) {
91
- const i = O("style");
92
- i.id = t, i.textContent = r, tr(n, i);
91
+ const i = I("style");
92
+ i.id = t, i.textContent = r, nr(n, i);
93
93
  }
94
94
  }
95
- function er(e) {
95
+ function rr(e) {
96
96
  if (!e)
97
97
  return document;
98
98
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -102,49 +102,49 @@ function er(e) {
102
102
  t
103
103
  ) : e.ownerDocument;
104
104
  }
105
- function tr(e, t) {
106
- return A(
105
+ function nr(e, t) {
106
+ return P(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function R(e, t, r) {
112
+ function D(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function N(e) {
115
+ function L(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
- function O(e) {
118
+ function I(e) {
119
119
  return document.createElement(e);
120
120
  }
121
- function ne(e) {
121
+ function ie(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
124
  function Be() {
125
- return ne(" ");
125
+ return ie(" ");
126
126
  }
127
- function rr() {
128
- return ne("");
127
+ function ir() {
128
+ return ie("");
129
129
  }
130
- function nr(e, t, r, n) {
130
+ function or(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function $(e, t, r) {
133
+ function R(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function ue(e, t, r) {
136
+ function le(e, t, r) {
137
137
  const n = t.toLowerCase();
138
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : $(e, t, r);
138
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
139
139
  }
140
- function ir(e) {
140
+ function sr(e) {
141
141
  return Array.from(e.childNodes);
142
142
  }
143
- function Ve(e, t) {
143
+ function We(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
147
- function or(e) {
147
+ function ar(e) {
148
148
  const t = {};
149
149
  return e.childNodes.forEach(
150
150
  /** @param {Element} node */
@@ -153,117 +153,117 @@ function or(e) {
153
153
  }
154
154
  ), t;
155
155
  }
156
- let ee;
157
- function K(e) {
158
- ee = e;
156
+ let te;
157
+ function ee(e) {
158
+ te = e;
159
159
  }
160
- function sr() {
161
- if (!ee)
160
+ function ur() {
161
+ if (!te)
162
162
  throw new Error("Function called outside component initialization");
163
- return ee;
163
+ return te;
164
164
  }
165
- function ar(e) {
166
- sr().$$.on_mount.push(e);
167
- }
168
- const k = [], Ne = [];
169
- let j = [];
170
- const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
171
- let Le = !1;
172
- function lr() {
173
- Le || (Le = !0, ur.then(S));
174
- }
175
- function Me(e) {
176
- j.push(e);
177
- }
178
- const we = /* @__PURE__ */ new Set();
179
- let U = 0;
180
- function S() {
181
- if (U !== 0)
165
+ function lr(e) {
166
+ ur().$$.on_mount.push(e);
167
+ }
168
+ const F = [], Me = [];
169
+ let z = [];
170
+ const Ke = [], hr = /* @__PURE__ */ Promise.resolve();
171
+ let $e = !1;
172
+ function cr() {
173
+ $e || ($e = !0, hr.then(B));
174
+ }
175
+ function Re(e) {
176
+ z.push(e);
177
+ }
178
+ const Ae = /* @__PURE__ */ new Set();
179
+ let G = 0;
180
+ function B() {
181
+ if (G !== 0)
182
182
  return;
183
- const e = ee;
183
+ const e = te;
184
184
  do {
185
185
  try {
186
- for (; U < k.length; ) {
187
- const t = k[U];
188
- U++, K(t), hr(t.$$);
186
+ for (; G < F.length; ) {
187
+ const t = F[G];
188
+ G++, ee(t), fr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
- throw k.length = 0, U = 0, t;
191
+ throw F.length = 0, G = 0, t;
192
192
  }
193
- for (K(null), k.length = 0, U = 0; Ne.length; )
194
- Ne.pop()();
195
- for (let t = 0; t < j.length; t += 1) {
196
- const r = j[t];
197
- we.has(r) || (we.add(r), r());
193
+ for (ee(null), F.length = 0, G = 0; Me.length; )
194
+ Me.pop()();
195
+ for (let t = 0; t < z.length; t += 1) {
196
+ const r = z[t];
197
+ Ae.has(r) || (Ae.add(r), r());
198
198
  }
199
- j.length = 0;
200
- } while (k.length);
201
- for (; Qe.length; )
202
- Qe.pop()();
203
- Le = !1, we.clear(), K(e);
199
+ z.length = 0;
200
+ } while (F.length);
201
+ for (; Ke.length; )
202
+ Ke.pop()();
203
+ $e = !1, Ae.clear(), ee(e);
204
204
  }
205
- function hr(e) {
205
+ function fr(e) {
206
206
  if (e.fragment !== null) {
207
- e.update(), Z(e.before_update);
207
+ e.update(), J(e.before_update);
208
208
  const t = e.dirty;
209
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
209
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
210
210
  }
211
211
  }
212
- function cr(e) {
212
+ function mr(e) {
213
213
  const t = [], r = [];
214
- j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
214
+ z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
215
215
  }
216
- const de = /* @__PURE__ */ new Set();
217
- let M;
218
- function fr() {
219
- M = {
216
+ const pe = /* @__PURE__ */ new Set();
217
+ let $;
218
+ function dr() {
219
+ $ = {
220
220
  r: 0,
221
221
  c: [],
222
- p: M
222
+ p: $
223
223
  // parent group
224
224
  };
225
225
  }
226
- function mr() {
227
- M.r || Z(M.c), M = M.p;
226
+ function pr() {
227
+ $.r || J($.c), $ = $.p;
228
228
  }
229
- function I(e, t) {
230
- e && e.i && (de.delete(e), e.i(t));
229
+ function C(e, t) {
230
+ e && e.i && (pe.delete(e), e.i(t));
231
231
  }
232
- function F(e, t, r, n) {
232
+ function j(e, t, r, n) {
233
233
  if (e && e.o) {
234
- if (de.has(e))
234
+ if (pe.has(e))
235
235
  return;
236
- de.add(e), M.c.push(() => {
237
- de.delete(e), n && (r && e.d(1), n());
236
+ pe.add(e), $.c.push(() => {
237
+ pe.delete(e), n && (r && e.d(1), n());
238
238
  }), e.o(t);
239
239
  } else
240
240
  n && n();
241
241
  }
242
- function dr(e, t, r) {
242
+ function br(e, t, r) {
243
243
  const { fragment: n, after_update: i } = e.$$;
244
- n && n.m(t, r), Me(() => {
245
- const o = e.$$.on_mount.map(Et).filter(ze);
246
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Z(o), e.$$.on_mount = [];
247
- }), i.forEach(Me);
244
+ n && n.m(t, r), Re(() => {
245
+ const o = e.$$.on_mount.map(xt).filter(Xe);
246
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
247
+ }), i.forEach(Re);
248
248
  }
249
- function br(e, t) {
249
+ function gr(e, t) {
250
250
  const r = e.$$;
251
- r.fragment !== null && (cr(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
251
+ r.fragment !== null && (mr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
252
252
  }
253
- function pr(e, t) {
254
- e.$$.dirty[0] === -1 && (k.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
253
+ function yr(e, t) {
254
+ e.$$.dirty[0] === -1 && (F.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
255
255
  }
256
- function gr(e, t, r, n, i, o, s = null, a = [-1]) {
257
- const h = ee;
258
- K(e);
256
+ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
257
+ const h = te;
258
+ ee(e);
259
259
  const u = e.$$ = {
260
260
  fragment: null,
261
261
  ctx: [],
262
262
  // state
263
263
  props: o,
264
- update: P,
264
+ update: O,
265
265
  not_equal: i,
266
- bound: Je(),
266
+ bound: Qe(),
267
267
  // lifecycle
268
268
  on_mount: [],
269
269
  on_destroy: [],
@@ -272,7 +272,7 @@ function gr(e, t, r, n, i, o, s = null, a = [-1]) {
272
272
  after_update: [],
273
273
  context: new Map(t.context || (h ? h.$$.context : [])),
274
274
  // everything else
275
- callbacks: Je(),
275
+ callbacks: Qe(),
276
276
  dirty: a,
277
277
  skip_bound: !1,
278
278
  root: t.target || h.$$.root
@@ -280,20 +280,20 @@ function gr(e, t, r, n, i, o, s = null, a = [-1]) {
280
280
  s && s(u.root);
281
281
  let l = !1;
282
282
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
283
- const b = y.length ? y[0] : c;
284
- return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), l && pr(e, f)), c;
285
- }) : [], u.update(), l = !0, Z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
283
+ const p = y.length ? y[0] : c;
284
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && yr(e, f)), c;
285
+ }) : [], u.update(), l = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
286
286
  if (t.hydrate) {
287
- const f = ir(t.target);
288
- u.fragment && u.fragment.l(f), f.forEach(N);
287
+ const f = sr(t.target);
288
+ u.fragment && u.fragment.l(f), f.forEach(L);
289
289
  } else
290
290
  u.fragment && u.fragment.c();
291
- t.intro && I(e.$$.fragment), dr(e, t.target, t.anchor), S();
291
+ t.intro && C(e.$$.fragment), br(e, t.target, t.anchor), B();
292
292
  }
293
- K(h);
293
+ ee(h);
294
294
  }
295
- let Ht;
296
- typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
295
+ let St;
296
+ typeof HTMLElement == "function" && (St = class extends HTMLElement {
297
297
  /** The Svelte component constructor */
298
298
  $$ctor;
299
299
  /** Slots */
@@ -335,24 +335,24 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
335
335
  let o;
336
336
  return {
337
337
  c: function() {
338
- o = O("slot"), i !== "default" && $(o, "name", i);
338
+ o = I("slot"), i !== "default" && R(o, "name", i);
339
339
  },
340
340
  /**
341
341
  * @param {HTMLElement} target
342
342
  * @param {HTMLElement} [anchor]
343
343
  */
344
344
  m: function(h, u) {
345
- R(h, o, u);
345
+ D(h, o, u);
346
346
  },
347
347
  d: function(h) {
348
- h && N(o);
348
+ h && L(o);
349
349
  }
350
350
  };
351
351
  };
352
352
  };
353
353
  if (await Promise.resolve(), !this.$$cn || this.$$c)
354
354
  return;
355
- const t = {}, r = or(this);
355
+ const t = {}, r = ar(this);
356
356
  for (const i of this.$$s)
357
357
  i in r && (t[i] = [e(i)]);
358
358
  for (const i of this.attributes) {
@@ -439,8 +439,8 @@ function be(e, t, r, n) {
439
439
  return t;
440
440
  }
441
441
  }
442
- function yr(e, t, r, n, i, o) {
443
- let s = class extends Ht {
442
+ function Er(e, t, r, n, i, o) {
443
+ let s = class extends St {
444
444
  constructor() {
445
445
  super(e, r, i), this.$$p_d = t;
446
446
  }
@@ -468,7 +468,7 @@ function yr(e, t, r, n, i, o) {
468
468
  }), e.element = /** @type {any} */
469
469
  s, s;
470
470
  }
471
- class _r {
471
+ class vr {
472
472
  /**
473
473
  * ### PRIVATE API
474
474
  *
@@ -487,7 +487,7 @@ class _r {
487
487
  $$set = void 0;
488
488
  /** @returns {void} */
489
489
  $destroy() {
490
- br(this, 1), this.$destroy = P;
490
+ gr(this, 1), this.$destroy = O;
491
491
  }
492
492
  /**
493
493
  * @template {Extract<keyof Events, string>} K
@@ -496,8 +496,8 @@ class _r {
496
496
  * @returns {() => void}
497
497
  */
498
498
  $on(t, r) {
499
- if (!ze(r))
500
- return P;
499
+ if (!Xe(r))
500
+ return O;
501
501
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
502
502
  return n.push(r), () => {
503
503
  const i = n.indexOf(r);
@@ -509,18 +509,18 @@ class _r {
509
509
  * @returns {void}
510
510
  */
511
511
  $set(t) {
512
- this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
512
+ this.$$set && !Kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
513
513
  }
514
514
  }
515
- const Er = "4";
516
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Er);
517
- function vr(e, t) {
515
+ const xr = "4";
516
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xr);
517
+ function Tr(e, t) {
518
518
  if (e) {
519
519
  const r = document.createElement("style");
520
520
  r.innerHTML = t, e.appendChild(r);
521
521
  }
522
522
  }
523
- function xr(e, t) {
523
+ function Hr(e, t) {
524
524
  const r = new URL(t);
525
525
  fetch(r.href).then((n) => n.text()).then((n) => {
526
526
  const i = document.createElement("style");
@@ -529,7 +529,7 @@ function xr(e, t) {
529
529
  console.error("There was an error while trying to load client styling from URL", n);
530
530
  });
531
531
  }
532
- function Tr(e, t, r) {
532
+ function wr(e, t, r) {
533
533
  if (window.emMessageBus) {
534
534
  const n = document.createElement("style");
535
535
  window.emMessageBus.subscribe(t, (i) => {
@@ -537,110 +537,110 @@ function Tr(e, t, r) {
537
537
  });
538
538
  }
539
539
  }
540
- const G = [];
541
- function Hr(e, t) {
540
+ const k = [];
541
+ function Sr(e, t) {
542
542
  return {
543
- subscribe: ve(e, t).subscribe
543
+ subscribe: Te(e, t).subscribe
544
544
  };
545
545
  }
546
- function ve(e, t = P) {
546
+ function Te(e, t = O) {
547
547
  let r;
548
548
  const n = /* @__PURE__ */ new Set();
549
549
  function i(a) {
550
- if (vt(e, a) && (e = a, r)) {
551
- const h = !G.length;
550
+ if (Tt(e, a) && (e = a, r)) {
551
+ const h = !k.length;
552
552
  for (const u of n)
553
- u[1](), G.push(u, e);
553
+ u[1](), k.push(u, e);
554
554
  if (h) {
555
- for (let u = 0; u < G.length; u += 2)
556
- G[u][0](G[u + 1]);
557
- G.length = 0;
555
+ for (let u = 0; u < k.length; u += 2)
556
+ k[u][0](k[u + 1]);
557
+ k.length = 0;
558
558
  }
559
559
  }
560
560
  }
561
561
  function o(a) {
562
562
  i(a(e));
563
563
  }
564
- function s(a, h = P) {
564
+ function s(a, h = O) {
565
565
  const u = [a, h];
566
- return n.add(u), n.size === 1 && (r = t(i, o) || P), a(e), () => {
566
+ return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
567
567
  n.delete(u), n.size === 0 && r && (r(), r = null);
568
568
  };
569
569
  }
570
570
  return { set: i, update: o, subscribe: s };
571
571
  }
572
- function J(e, t, r) {
572
+ function q(e, t, r) {
573
573
  const n = !Array.isArray(e), i = n ? [e] : e;
574
574
  if (!i.every(Boolean))
575
575
  throw new Error("derived() expects stores as input, got a falsy value");
576
576
  const o = t.length < 2;
577
- return Hr(r, (s, a) => {
577
+ return Sr(r, (s, a) => {
578
578
  let h = !1;
579
579
  const u = [];
580
- let l = 0, f = P;
580
+ let l = 0, f = O;
581
581
  const c = () => {
582
582
  if (l)
583
583
  return;
584
584
  f();
585
- const b = t(n ? u[0] : u, s, a);
586
- o ? s(b) : f = ze(b) ? b : P;
585
+ const p = t(n ? u[0] : u, s, a);
586
+ o ? s(p) : f = Xe(p) ? p : O;
587
587
  }, y = i.map(
588
- (b, v) => xt(
589
- b,
590
- (E) => {
591
- u[v] = E, l &= ~(1 << v), h && c();
588
+ (p, E) => Ht(
589
+ p,
590
+ (_) => {
591
+ u[E] = _, l &= ~(1 << E), h && c();
592
592
  },
593
593
  () => {
594
- l |= 1 << v;
594
+ l |= 1 << E;
595
595
  }
596
596
  )
597
597
  );
598
598
  return h = !0, c(), function() {
599
- Z(y), f(), h = !1;
599
+ J(y), f(), h = !1;
600
600
  };
601
601
  });
602
602
  }
603
603
  function Br(e) {
604
604
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
605
605
  }
606
- var wr = function(t) {
607
- return Sr(t) && !Ar(t);
606
+ var Ar = function(t) {
607
+ return Pr(t) && !Or(t);
608
608
  };
609
- function Sr(e) {
609
+ function Pr(e) {
610
610
  return !!e && typeof e == "object";
611
611
  }
612
- function Ar(e) {
612
+ function Or(e) {
613
613
  var t = Object.prototype.toString.call(e);
614
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
614
+ return t === "[object RegExp]" || t === "[object Date]" || Nr(e);
615
615
  }
616
- var Pr = typeof Symbol == "function" && Symbol.for, Or = Pr ? Symbol.for("react.element") : 60103;
617
- function Ir(e) {
618
- return e.$$typeof === Or;
616
+ var Ir = typeof Symbol == "function" && Symbol.for, Cr = Ir ? Symbol.for("react.element") : 60103;
617
+ function Nr(e) {
618
+ return e.$$typeof === Cr;
619
619
  }
620
- function Cr(e) {
620
+ function Lr(e) {
621
621
  return Array.isArray(e) ? [] : {};
622
622
  }
623
- function te(e, t) {
624
- return t.clone !== !1 && t.isMergeableObject(e) ? z(Cr(e), e, t) : e;
623
+ function re(e, t) {
624
+ return t.clone !== !1 && t.isMergeableObject(e) ? V(Lr(e), e, t) : e;
625
625
  }
626
- function Nr(e, t, r) {
626
+ function Mr(e, t, r) {
627
627
  return e.concat(t).map(function(n) {
628
- return te(n, r);
628
+ return re(n, r);
629
629
  });
630
630
  }
631
- function Lr(e, t) {
631
+ function $r(e, t) {
632
632
  if (!t.customMerge)
633
- return z;
633
+ return V;
634
634
  var r = t.customMerge(e);
635
- return typeof r == "function" ? r : z;
635
+ return typeof r == "function" ? r : V;
636
636
  }
637
- function Mr(e) {
637
+ function Rr(e) {
638
638
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
639
639
  return Object.propertyIsEnumerable.call(e, t);
640
640
  }) : [];
641
641
  }
642
- function Ye(e) {
643
- return Object.keys(e).concat(Mr(e));
642
+ function et(e) {
643
+ return Object.keys(e).concat(Rr(e));
644
644
  }
645
645
  function Bt(e, t) {
646
646
  try {
@@ -649,73 +649,59 @@ function Bt(e, t) {
649
649
  return !1;
650
650
  }
651
651
  }
652
- function $r(e, t) {
652
+ function Dr(e, t) {
653
653
  return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
654
654
  }
655
- function Rr(e, t, r) {
655
+ function Ur(e, t, r) {
656
656
  var n = {};
657
- return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
658
- n[i] = te(e[i], r);
659
- }), Ye(t).forEach(function(i) {
660
- $r(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
657
+ return r.isMergeableObject(e) && et(e).forEach(function(i) {
658
+ n[i] = re(e[i], r);
659
+ }), et(t).forEach(function(i) {
660
+ Dr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
661
661
  }), n;
662
662
  }
663
- function z(e, t, r) {
664
- r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = te;
663
+ function V(e, t, r) {
664
+ r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Ar, r.cloneUnlessOtherwiseSpecified = re;
665
665
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
666
- return o ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : te(t, r);
666
+ return o ? n ? r.arrayMerge(e, t, r) : Ur(e, t, r) : re(t, r);
667
667
  }
668
- z.all = function(t, r) {
668
+ V.all = function(t, r) {
669
669
  if (!Array.isArray(t))
670
670
  throw new Error("first argument should be an array");
671
671
  return t.reduce(function(n, i) {
672
- return z(n, i, r);
672
+ return V(n, i, r);
673
673
  }, {});
674
674
  };
675
- var Dr = z, Ur = Dr;
676
- const Gr = /* @__PURE__ */ Br(Ur);
677
- /*! *****************************************************************************
678
- Copyright (c) Microsoft Corporation.
679
-
680
- Permission to use, copy, modify, and/or distribute this software for any
681
- purpose with or without fee is hereby granted.
682
-
683
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
684
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
685
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
686
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
687
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
688
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
689
- PERFORMANCE OF THIS SOFTWARE.
690
- ***************************************************************************** */
691
- var $e = function(e, t) {
692
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
675
+ var Gr = V, kr = Gr;
676
+ const Fr = /* @__PURE__ */ Br(kr);
677
+ var De = function(e, t) {
678
+ return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
693
679
  r.__proto__ = n;
694
680
  } || function(r, n) {
695
681
  for (var i in n)
696
682
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
697
- }, $e(e, t);
683
+ }, De(e, t);
698
684
  };
699
- function xe(e, t) {
685
+ function He(e, t) {
700
686
  if (typeof t != "function" && t !== null)
701
687
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
702
- $e(e, t);
688
+ De(e, t);
703
689
  function r() {
704
690
  this.constructor = e;
705
691
  }
706
692
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
707
693
  }
708
- var _ = function() {
709
- return _ = Object.assign || function(t) {
694
+ var A = function() {
695
+ return A = Object.assign || function(t) {
710
696
  for (var r, n = 1, i = arguments.length; n < i; n++) {
711
697
  r = arguments[n];
712
698
  for (var o in r)
713
699
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
714
700
  }
715
701
  return t;
716
- }, _.apply(this, arguments);
702
+ }, A.apply(this, arguments);
717
703
  };
718
- function kr(e, t) {
704
+ function jr(e, t) {
719
705
  var r = {};
720
706
  for (var n in e)
721
707
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -724,43 +710,43 @@ function kr(e, t) {
724
710
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
725
711
  return r;
726
712
  }
727
- function Se(e, t, r) {
728
- if (arguments.length === 2)
713
+ function Pe(e, t, r) {
714
+ if (r || arguments.length === 2)
729
715
  for (var n = 0, i = t.length, o; n < i; n++)
730
716
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
731
- return e.concat(o || t);
717
+ return e.concat(o || Array.prototype.slice.call(t));
732
718
  }
733
- function Ae(e, t) {
734
- var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : zr;
719
+ function Oe(e, t) {
720
+ var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Xr;
735
721
  return i(e, {
736
722
  cache: r,
737
723
  serializer: n
738
724
  });
739
725
  }
740
- function Fr(e) {
726
+ function zr(e) {
741
727
  return e == null || typeof e == "number" || typeof e == "boolean";
742
728
  }
743
- function jr(e, t, r, n) {
744
- var i = Fr(n) ? n : r(n), o = t.get(i);
729
+ function Vr(e, t, r, n) {
730
+ var i = zr(n) ? n : r(n), o = t.get(i);
745
731
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
746
732
  }
747
- function wt(e, t, r) {
733
+ function At(e, t, r) {
748
734
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
749
735
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
750
736
  }
751
- function St(e, t, r, n, i) {
737
+ function Pt(e, t, r, n, i) {
752
738
  return r.bind(t, e, n, i);
753
739
  }
754
- function zr(e, t) {
755
- var r = e.length === 1 ? jr : wt;
756
- return St(e, this, r, t.cache.create(), t.serializer);
740
+ function Xr(e, t) {
741
+ var r = e.length === 1 ? Vr : At;
742
+ return Pt(e, this, r, t.cache.create(), t.serializer);
757
743
  }
758
- function Vr(e, t) {
759
- return St(e, this, wt, t.cache.create(), t.serializer);
744
+ function Wr(e, t) {
745
+ return Pt(e, this, At, t.cache.create(), t.serializer);
760
746
  }
761
- var Xr = function() {
747
+ var Zr = function() {
762
748
  return JSON.stringify(arguments);
763
- }, Wr = (
749
+ }, Jr = (
764
750
  /** @class */
765
751
  function() {
766
752
  function e() {
@@ -772,61 +758,71 @@ var Xr = function() {
772
758
  this.cache[t] = r;
773
759
  }, e;
774
760
  }()
775
- ), Zr = {
761
+ ), qr = {
776
762
  create: function() {
777
- return new Wr();
763
+ return new Jr();
778
764
  }
779
- }, Pe = {
780
- variadic: Vr
781
- }, p;
765
+ }, Ie = {
766
+ variadic: Wr
767
+ }, _e = function() {
768
+ return _e = Object.assign || function(t) {
769
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
770
+ r = arguments[n];
771
+ for (var o in r)
772
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
773
+ }
774
+ return t;
775
+ }, _e.apply(this, arguments);
776
+ };
777
+ var b;
782
778
  (function(e) {
783
779
  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";
784
- })(p || (p = {}));
785
- var T;
780
+ })(b || (b = {}));
781
+ var x;
786
782
  (function(e) {
787
783
  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";
788
- })(T || (T = {}));
789
- var V;
784
+ })(x || (x = {}));
785
+ var X;
790
786
  (function(e) {
791
787
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
792
- })(V || (V = {}));
793
- function Ke(e) {
794
- return e.type === T.literal;
795
- }
796
- function Jr(e) {
797
- return e.type === T.argument;
798
- }
799
- function At(e) {
800
- return e.type === T.number;
788
+ })(X || (X = {}));
789
+ function tt(e) {
790
+ return e.type === x.literal;
801
791
  }
802
- function Pt(e) {
803
- return e.type === T.date;
792
+ function Qr(e) {
793
+ return e.type === x.argument;
804
794
  }
805
795
  function Ot(e) {
806
- return e.type === T.time;
796
+ return e.type === x.number;
807
797
  }
808
798
  function It(e) {
809
- return e.type === T.select;
799
+ return e.type === x.date;
810
800
  }
811
801
  function Ct(e) {
812
- return e.type === T.plural;
813
- }
814
- function qr(e) {
815
- return e.type === T.pound;
802
+ return e.type === x.time;
816
803
  }
817
804
  function Nt(e) {
818
- return e.type === T.tag;
805
+ return e.type === x.select;
819
806
  }
820
807
  function Lt(e) {
821
- return !!(e && typeof e == "object" && e.type === V.number);
808
+ return e.type === x.plural;
822
809
  }
823
- function Re(e) {
824
- return !!(e && typeof e == "object" && e.type === V.dateTime);
825
- }
826
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
827
810
  function Yr(e) {
811
+ return e.type === x.pound;
812
+ }
813
+ function Mt(e) {
814
+ return e.type === x.tag;
815
+ }
816
+ function $t(e) {
817
+ return !!(e && typeof e == "object" && e.type === X.number);
818
+ }
819
+ function Ue(e) {
820
+ return !!(e && typeof e == "object" && e.type === X.dateTime);
821
+ }
822
+ var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
823
+ function en(e) {
828
824
  var t = {};
829
- return e.replace(Qr, function(r) {
825
+ return e.replace(Kr, function(r) {
830
826
  var n = r.length;
831
827
  switch (r[0]) {
832
828
  case "G":
@@ -915,11 +911,21 @@ function Yr(e) {
915
911
  return "";
916
912
  }), t;
917
913
  }
918
- var Kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
919
- function en(e) {
914
+ var T = function() {
915
+ return T = Object.assign || function(t) {
916
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
917
+ r = arguments[n];
918
+ for (var o in r)
919
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
920
+ }
921
+ return t;
922
+ }, T.apply(this, arguments);
923
+ };
924
+ var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
925
+ function rn(e) {
920
926
  if (e.length === 0)
921
927
  throw new Error("Number skeleton cannot be empty");
922
- for (var t = e.split(Kr).filter(function(c) {
928
+ for (var t = e.split(tn).filter(function(c) {
923
929
  return c.length > 0;
924
930
  }), r = [], n = 0, i = t; n < i.length; n++) {
925
931
  var o = i[n], s = o.split("/");
@@ -934,17 +940,17 @@ function en(e) {
934
940
  }
935
941
  return r;
936
942
  }
937
- function tn(e) {
943
+ function nn(e) {
938
944
  return e.replace(/^(.*?)-/, "");
939
945
  }
940
- var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, rn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
941
- function tt(e) {
946
+ var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
947
+ function nt(e) {
942
948
  var t = {};
943
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
949
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
944
950
  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)), "";
945
951
  }), t;
946
952
  }
947
- function Dt(e) {
953
+ function Gt(e) {
948
954
  switch (e) {
949
955
  case "sign-auto":
950
956
  return {
@@ -984,7 +990,7 @@ function Dt(e) {
984
990
  };
985
991
  }
986
992
  }
987
- function nn(e) {
993
+ function sn(e) {
988
994
  var t;
989
995
  if (e[0] === "E" && e[1] === "E" ? (t = {
990
996
  notation: "engineering"
@@ -992,17 +998,17 @@ function nn(e) {
992
998
  notation: "scientific"
993
999
  }, e = e.slice(1)), t) {
994
1000
  var r = e.slice(0, 2);
995
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
1001
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
996
1002
  throw new Error("Malformed concise eng/scientific notation");
997
1003
  t.minimumIntegerDigits = e.length;
998
1004
  }
999
1005
  return t;
1000
1006
  }
1001
- function rt(e) {
1002
- var t = {}, r = Dt(e);
1007
+ function it(e) {
1008
+ var t = {}, r = Gt(e);
1003
1009
  return r || t;
1004
1010
  }
1005
- function on(e) {
1011
+ function an(e) {
1006
1012
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1007
1013
  var i = n[r];
1008
1014
  switch (i.stem) {
@@ -1026,7 +1032,7 @@ function on(e) {
1026
1032
  continue;
1027
1033
  case "measure-unit":
1028
1034
  case "unit":
1029
- t.style = "unit", t.unit = tn(i.options[0]);
1035
+ t.style = "unit", t.unit = nn(i.options[0]);
1030
1036
  continue;
1031
1037
  case "compact-short":
1032
1038
  case "K":
@@ -1037,13 +1043,13 @@ function on(e) {
1037
1043
  t.notation = "compact", t.compactDisplay = "long";
1038
1044
  continue;
1039
1045
  case "scientific":
1040
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1041
- return _(_({}, h), rt(u));
1046
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1047
+ return T(T({}, h), it(u));
1042
1048
  }, {}));
1043
1049
  continue;
1044
1050
  case "engineering":
1045
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1046
- return _(_({}, h), rt(u));
1051
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1052
+ return T(T({}, h), it(u));
1047
1053
  }, {}));
1048
1054
  continue;
1049
1055
  case "notation-simple":
@@ -1088,7 +1094,7 @@ function on(e) {
1088
1094
  case "integer-width":
1089
1095
  if (i.options.length > 1)
1090
1096
  throw new RangeError("integer-width stems only accept a single optional option");
1091
- i.options[0].replace(rn, function(h, u, l, f, c, y) {
1097
+ i.options[0].replace(on, function(h, u, l, f, c, y) {
1092
1098
  if (u)
1093
1099
  t.minimumIntegerDigits = l.length;
1094
1100
  else {
@@ -1101,32 +1107,32 @@ function on(e) {
1101
1107
  });
1102
1108
  continue;
1103
1109
  }
1104
- if (Rt.test(i.stem)) {
1110
+ if (Ut.test(i.stem)) {
1105
1111
  t.minimumIntegerDigits = i.stem.length;
1106
1112
  continue;
1107
1113
  }
1108
- if (et.test(i.stem)) {
1114
+ if (rt.test(i.stem)) {
1109
1115
  if (i.options.length > 1)
1110
1116
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1111
- i.stem.replace(et, function(h, u, l, f, c, y) {
1117
+ i.stem.replace(rt, function(h, u, l, f, c, y) {
1112
1118
  return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1113
1119
  });
1114
1120
  var o = i.options[0];
1115
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), tt(o)));
1121
+ o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), nt(o)));
1116
1122
  continue;
1117
1123
  }
1118
- if ($t.test(i.stem)) {
1119
- t = _(_({}, t), tt(i.stem));
1124
+ if (Dt.test(i.stem)) {
1125
+ t = T(T({}, t), nt(i.stem));
1120
1126
  continue;
1121
1127
  }
1122
- var s = Dt(i.stem);
1123
- s && (t = _(_({}, t), s));
1124
- var a = nn(i.stem);
1125
- a && (t = _(_({}, t), a));
1128
+ var s = Gt(i.stem);
1129
+ s && (t = T(T({}, t), s));
1130
+ var a = sn(i.stem);
1131
+ a && (t = T(T({}, t), a));
1126
1132
  }
1127
1133
  return t;
1128
1134
  }
1129
- var le = {
1135
+ var he = {
1130
1136
  "001": [
1131
1137
  "H",
1132
1138
  "h"
@@ -2541,13 +2547,13 @@ var le = {
2541
2547
  "h"
2542
2548
  ]
2543
2549
  };
2544
- function sn(e, t) {
2550
+ function un(e, t) {
2545
2551
  for (var r = "", n = 0; n < e.length; n++) {
2546
2552
  var i = e.charAt(n);
2547
2553
  if (i === "j") {
2548
2554
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2549
2555
  o++, n++;
2550
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = an(t);
2556
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ln(t);
2551
2557
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2552
2558
  r += h;
2553
2559
  for (; s-- > 0; )
@@ -2557,7 +2563,7 @@ function sn(e, t) {
2557
2563
  }
2558
2564
  return r;
2559
2565
  }
2560
- function an(e) {
2566
+ function ln(e) {
2561
2567
  var t = e.hourCycle;
2562
2568
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2563
2569
  e.hourCycles && // @ts-ignore
@@ -2576,23 +2582,23 @@ function an(e) {
2576
2582
  }
2577
2583
  var r = e.language, n;
2578
2584
  r !== "root" && (n = e.maximize().region);
2579
- var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
2585
+ var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
2580
2586
  return i[0];
2581
2587
  }
2582
- var Oe, un = new RegExp("^".concat(Mt.source, "*")), ln = new RegExp("".concat(Mt.source, "*$"));
2588
+ var Ce, hn = new RegExp("^".concat(Rt.source, "*")), cn = new RegExp("".concat(Rt.source, "*$"));
2583
2589
  function g(e, t) {
2584
2590
  return { start: e, end: t };
2585
2591
  }
2586
- var hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), cn = !!String.fromCodePoint, fn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, gn = pn ? Number.isSafeInteger : function(e) {
2592
+ var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, gn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
2587
2593
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2588
- }, De = !0;
2594
+ }, Ge = !0;
2589
2595
  try {
2590
- var yn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2591
- De = ((Oe = yn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2596
+ var En = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2597
+ Ge = ((Ce = En.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2592
2598
  } catch {
2593
- De = !1;
2599
+ Ge = !1;
2594
2600
  }
2595
- var nt = hn ? (
2601
+ var ot = fn ? (
2596
2602
  // Native
2597
2603
  function(t, r, n) {
2598
2604
  return t.startsWith(r, n);
@@ -2602,7 +2608,7 @@ var nt = hn ? (
2602
2608
  function(t, r, n) {
2603
2609
  return t.slice(n, n + r.length) === r;
2604
2610
  }
2605
- ), Ue = cn ? String.fromCodePoint : (
2611
+ ), ke = mn ? String.fromCodePoint : (
2606
2612
  // IE11
2607
2613
  function() {
2608
2614
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2614,9 +2620,9 @@ var nt = hn ? (
2614
2620
  }
2615
2621
  return n;
2616
2622
  }
2617
- ), it = (
2623
+ ), st = (
2618
2624
  // native
2619
- fn ? Object.fromEntries : (
2625
+ dn ? Object.fromEntries : (
2620
2626
  // Ponyfill
2621
2627
  function(t) {
2622
2628
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2626,7 +2632,7 @@ var nt = hn ? (
2626
2632
  return r;
2627
2633
  }
2628
2634
  )
2629
- ), Ut = mn ? (
2635
+ ), kt = pn ? (
2630
2636
  // Native
2631
2637
  function(t, r) {
2632
2638
  return t.codePointAt(r);
@@ -2640,7 +2646,7 @@ var nt = hn ? (
2640
2646
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2641
2647
  }
2642
2648
  }
2643
- ), _n = dn ? (
2649
+ ), vn = bn ? (
2644
2650
  // Native
2645
2651
  function(t) {
2646
2652
  return t.trimStart();
@@ -2648,9 +2654,9 @@ var nt = hn ? (
2648
2654
  ) : (
2649
2655
  // Ponyfill
2650
2656
  function(t) {
2651
- return t.replace(un, "");
2657
+ return t.replace(hn, "");
2652
2658
  }
2653
- ), En = bn ? (
2659
+ ), xn = gn ? (
2654
2660
  // Native
2655
2661
  function(t) {
2656
2662
  return t.trimEnd();
@@ -2658,32 +2664,32 @@ var nt = hn ? (
2658
2664
  ) : (
2659
2665
  // Ponyfill
2660
2666
  function(t) {
2661
- return t.replace(ln, "");
2667
+ return t.replace(cn, "");
2662
2668
  }
2663
2669
  );
2664
- function Gt(e, t) {
2670
+ function Ft(e, t) {
2665
2671
  return new RegExp(e, t);
2666
2672
  }
2667
- var Ge;
2668
- if (De) {
2669
- var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2670
- Ge = function(t, r) {
2673
+ var Fe;
2674
+ if (Ge) {
2675
+ var at = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2676
+ Fe = function(t, r) {
2671
2677
  var n;
2672
- ot.lastIndex = r;
2673
- var i = ot.exec(t);
2678
+ at.lastIndex = r;
2679
+ var i = at.exec(t);
2674
2680
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2675
2681
  };
2676
2682
  } else
2677
- Ge = function(t, r) {
2683
+ Fe = function(t, r) {
2678
2684
  for (var n = []; ; ) {
2679
- var i = Ut(t, r);
2680
- if (i === void 0 || kt(i) || Hn(i))
2685
+ var i = kt(t, r);
2686
+ if (i === void 0 || jt(i) || Sn(i))
2681
2687
  break;
2682
2688
  n.push(i), r += i >= 65536 ? 2 : 1;
2683
2689
  }
2684
- return Ue.apply(void 0, n);
2690
+ return ke.apply(void 0, n);
2685
2691
  };
2686
- var vn = (
2692
+ var Tn = (
2687
2693
  /** @class */
2688
2694
  function() {
2689
2695
  function e(t, r) {
@@ -2707,14 +2713,14 @@ var vn = (
2707
2713
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2708
2714
  var a = this.clonePosition();
2709
2715
  this.bump(), i.push({
2710
- type: T.pound,
2716
+ type: x.pound,
2711
2717
  location: g(a, this.clonePosition())
2712
2718
  });
2713
2719
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2714
2720
  if (n)
2715
2721
  break;
2716
- return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2717
- } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2722
+ return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2723
+ } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2718
2724
  var s = this.parseTag(t, r);
2719
2725
  if (s.err)
2720
2726
  return s;
@@ -2735,7 +2741,7 @@ var vn = (
2735
2741
  if (this.bumpSpace(), this.bumpIf("/>"))
2736
2742
  return {
2737
2743
  val: {
2738
- type: T.literal,
2744
+ type: x.literal,
2739
2745
  value: "<".concat(i, "/>"),
2740
2746
  location: g(n, this.clonePosition())
2741
2747
  },
@@ -2747,25 +2753,25 @@ var vn = (
2747
2753
  return o;
2748
2754
  var s = o.val, a = this.clonePosition();
2749
2755
  if (this.bumpIf("</")) {
2750
- if (this.isEOF() || !ke(this.char()))
2751
- return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
2756
+ if (this.isEOF() || !je(this.char()))
2757
+ return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
2752
2758
  var h = this.clonePosition(), u = this.parseTagName();
2753
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2759
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2754
2760
  val: {
2755
- type: T.tag,
2761
+ type: x.tag,
2756
2762
  value: i,
2757
2763
  children: s,
2758
2764
  location: g(n, this.clonePosition())
2759
2765
  },
2760
2766
  err: null
2761
- } : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
2767
+ } : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
2762
2768
  } else
2763
- return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
2769
+ return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2764
2770
  } else
2765
- return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
2771
+ return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2766
2772
  }, e.prototype.parseTagName = function() {
2767
2773
  var t = this.offset();
2768
- for (this.bump(); !this.isEOF() && Tn(this.char()); )
2774
+ for (this.bump(); !this.isEOF() && wn(this.char()); )
2769
2775
  this.bump();
2770
2776
  return this.message.slice(t, this.offset());
2771
2777
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2789,12 +2795,12 @@ var vn = (
2789
2795
  }
2790
2796
  var h = g(n, this.clonePosition());
2791
2797
  return {
2792
- val: { type: T.literal, value: i, location: h },
2798
+ val: { type: x.literal, value: i, location: h },
2793
2799
  err: null
2794
2800
  };
2795
2801
  }, e.prototype.tryParseLeftAngleBracket = function() {
2796
2802
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2797
- !xn(this.peek() || 0)) ? (this.bump(), "<") : null;
2803
+ !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2798
2804
  }, e.prototype.tryParseQuote = function(t) {
2799
2805
  if (this.isEOF() || this.char() !== 39)
2800
2806
  return null;
@@ -2828,28 +2834,28 @@ var vn = (
2828
2834
  r.push(n);
2829
2835
  this.bump();
2830
2836
  }
2831
- return Ue.apply(void 0, r);
2837
+ return ke.apply(void 0, r);
2832
2838
  }, e.prototype.tryParseUnquoted = function(t, r) {
2833
2839
  if (this.isEOF())
2834
2840
  return null;
2835
2841
  var n = this.char();
2836
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
2842
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2837
2843
  }, e.prototype.parseArgument = function(t, r) {
2838
2844
  var n = this.clonePosition();
2839
2845
  if (this.bump(), this.bumpSpace(), this.isEOF())
2840
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2846
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2841
2847
  if (this.char() === 125)
2842
- return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2848
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2843
2849
  var i = this.parseIdentifierIfPossible().value;
2844
2850
  if (!i)
2845
- return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2851
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2846
2852
  if (this.bumpSpace(), this.isEOF())
2847
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2853
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2848
2854
  switch (this.char()) {
2849
2855
  case 125:
2850
2856
  return this.bump(), {
2851
2857
  val: {
2852
- type: T.argument,
2858
+ type: x.argument,
2853
2859
  // value does not include the opening and closing braces.
2854
2860
  value: i,
2855
2861
  location: g(n, this.clonePosition())
@@ -2857,12 +2863,12 @@ var vn = (
2857
2863
  err: null
2858
2864
  };
2859
2865
  case 44:
2860
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2866
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2861
2867
  default:
2862
- return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2868
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2863
2869
  }
2864
2870
  }, e.prototype.parseIdentifierIfPossible = function() {
2865
- var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2871
+ var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2866
2872
  this.bumpTo(i);
2867
2873
  var o = this.clonePosition(), s = g(t, o);
2868
2874
  return { value: n, location: s };
@@ -2870,7 +2876,7 @@ var vn = (
2870
2876
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2871
2877
  switch (a) {
2872
2878
  case "":
2873
- return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, h));
2879
+ return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, h));
2874
2880
  case "number":
2875
2881
  case "date":
2876
2882
  case "time": {
@@ -2881,46 +2887,46 @@ var vn = (
2881
2887
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2882
2888
  if (f.err)
2883
2889
  return f;
2884
- var c = En(f.val);
2890
+ var c = xn(f.val);
2885
2891
  if (c.length === 0)
2886
- return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2892
+ return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2887
2893
  var y = g(l, this.clonePosition());
2888
2894
  u = { style: c, styleLocation: y };
2889
2895
  }
2890
- var b = this.tryParseArgumentClose(i);
2891
- if (b.err)
2892
- return b;
2893
- var v = g(i, this.clonePosition());
2894
- if (u && nt(u?.style, "::", 0)) {
2895
- var E = _n(u.style.slice(2));
2896
+ var p = this.tryParseArgumentClose(i);
2897
+ if (p.err)
2898
+ return p;
2899
+ var E = g(i, this.clonePosition());
2900
+ if (u && ot(u?.style, "::", 0)) {
2901
+ var _ = vn(u.style.slice(2));
2896
2902
  if (a === "number") {
2897
- var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
2903
+ var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
2898
2904
  return f.err ? f : {
2899
- val: { type: T.number, value: n, location: v, style: f.val },
2905
+ val: { type: x.number, value: n, location: E, style: f.val },
2900
2906
  err: null
2901
2907
  };
2902
2908
  } else {
2903
- if (E.length === 0)
2904
- return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
2905
- var m = E;
2906
- this.locale && (m = sn(E, this.locale));
2909
+ if (_.length === 0)
2910
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2911
+ var m = _;
2912
+ this.locale && (m = un(_, this.locale));
2907
2913
  var c = {
2908
- type: V.dateTime,
2914
+ type: X.dateTime,
2909
2915
  pattern: m,
2910
2916
  location: u.styleLocation,
2911
- parsedOptions: this.shouldParseSkeletons ? Yr(m) : {}
2912
- }, x = a === "date" ? T.date : T.time;
2917
+ parsedOptions: this.shouldParseSkeletons ? en(m) : {}
2918
+ }, v = a === "date" ? x.date : x.time;
2913
2919
  return {
2914
- val: { type: x, value: n, location: v, style: c },
2920
+ val: { type: v, value: n, location: E, style: c },
2915
2921
  err: null
2916
2922
  };
2917
2923
  }
2918
2924
  }
2919
2925
  return {
2920
2926
  val: {
2921
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2927
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2922
2928
  value: n,
2923
- location: v,
2929
+ location: E,
2924
2930
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2925
2931
  },
2926
2932
  err: null
@@ -2931,50 +2937,50 @@ var vn = (
2931
2937
  case "select": {
2932
2938
  var d = this.clonePosition();
2933
2939
  if (this.bumpSpace(), !this.bumpIf(","))
2934
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
2940
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _e({}, d)));
2935
2941
  this.bumpSpace();
2936
- var B = this.parseIdentifierIfPossible(), w = 0;
2937
- if (a !== "select" && B.value === "offset") {
2942
+ var w = this.parseIdentifierIfPossible(), S = 0;
2943
+ if (a !== "select" && w.value === "offset") {
2938
2944
  if (!this.bumpIf(":"))
2939
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2945
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2940
2946
  this.bumpSpace();
2941
- var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2947
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2942
2948
  if (f.err)
2943
2949
  return f;
2944
- this.bumpSpace(), B = this.parseIdentifierIfPossible(), w = f.val;
2950
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = f.val;
2945
2951
  }
2946
- var se = this.tryParsePluralOrSelectOptions(t, a, r, B);
2947
- if (se.err)
2948
- return se;
2949
- var b = this.tryParseArgumentClose(i);
2950
- if (b.err)
2951
- return b;
2952
- var Ze = g(i, this.clonePosition());
2952
+ var ae = this.tryParsePluralOrSelectOptions(t, a, r, w);
2953
+ if (ae.err)
2954
+ return ae;
2955
+ var p = this.tryParseArgumentClose(i);
2956
+ if (p.err)
2957
+ return p;
2958
+ var qe = g(i, this.clonePosition());
2953
2959
  return a === "select" ? {
2954
2960
  val: {
2955
- type: T.select,
2961
+ type: x.select,
2956
2962
  value: n,
2957
- options: it(se.val),
2958
- location: Ze
2963
+ options: st(ae.val),
2964
+ location: qe
2959
2965
  },
2960
2966
  err: null
2961
2967
  } : {
2962
2968
  val: {
2963
- type: T.plural,
2969
+ type: x.plural,
2964
2970
  value: n,
2965
- options: it(se.val),
2966
- offset: w,
2971
+ options: st(ae.val),
2972
+ offset: S,
2967
2973
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2968
- location: Ze
2974
+ location: qe
2969
2975
  },
2970
2976
  err: null
2971
2977
  };
2972
2978
  }
2973
2979
  default:
2974
- return this.error(p.INVALID_ARGUMENT_TYPE, g(s, h));
2980
+ return this.error(b.INVALID_ARGUMENT_TYPE, g(s, h));
2975
2981
  }
2976
2982
  }, e.prototype.tryParseArgumentClose = function(t) {
2977
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2983
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2978
2984
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2979
2985
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2980
2986
  var n = this.char();
@@ -2983,7 +2989,7 @@ var vn = (
2983
2989
  this.bump();
2984
2990
  var i = this.clonePosition();
2985
2991
  if (!this.bumpUntil("'"))
2986
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
2992
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
2987
2993
  this.bump();
2988
2994
  break;
2989
2995
  }
@@ -3013,16 +3019,16 @@ var vn = (
3013
3019
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3014
3020
  var n = [];
3015
3021
  try {
3016
- n = en(t);
3022
+ n = rn(t);
3017
3023
  } catch {
3018
- return this.error(p.INVALID_NUMBER_SKELETON, r);
3024
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3019
3025
  }
3020
3026
  return {
3021
3027
  val: {
3022
- type: V.number,
3028
+ type: X.number,
3023
3029
  tokens: n,
3024
3030
  location: r,
3025
- parsedOptions: this.shouldParseSkeletons ? on(n) : {}
3031
+ parsedOptions: this.shouldParseSkeletons ? an(n) : {}
3026
3032
  },
3027
3033
  err: null
3028
3034
  };
@@ -3031,7 +3037,7 @@ var vn = (
3031
3037
  if (u.length === 0) {
3032
3038
  var f = this.clonePosition();
3033
3039
  if (r !== "select" && this.bumpIf("=")) {
3034
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3040
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3035
3041
  if (c.err)
3036
3042
  return c;
3037
3043
  l = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
@@ -3039,26 +3045,26 @@ var vn = (
3039
3045
  break;
3040
3046
  }
3041
3047
  if (h.has(u))
3042
- return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3048
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3043
3049
  u === "other" && (s = !0), this.bumpSpace();
3044
3050
  var y = this.clonePosition();
3045
3051
  if (!this.bumpIf("{"))
3046
- return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3047
- var b = this.parseMessage(t + 1, r, n);
3048
- if (b.err)
3049
- return b;
3050
- var v = this.tryParseArgumentClose(y);
3051
- if (v.err)
3052
- return v;
3052
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3053
+ var p = this.parseMessage(t + 1, r, n);
3054
+ if (p.err)
3055
+ return p;
3056
+ var E = this.tryParseArgumentClose(y);
3057
+ if (E.err)
3058
+ return E;
3053
3059
  a.push([
3054
3060
  u,
3055
3061
  {
3056
- value: b.val,
3062
+ value: p.val,
3057
3063
  location: g(y, this.clonePosition())
3058
3064
  }
3059
3065
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3060
3066
  }
3061
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3067
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3062
3068
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3063
3069
  var n = 1, i = this.clonePosition();
3064
3070
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3070,7 +3076,7 @@ var vn = (
3070
3076
  break;
3071
3077
  }
3072
3078
  var h = g(i, this.clonePosition());
3073
- return o ? (s *= n, gn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3079
+ return o ? (s *= n, _n(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3074
3080
  }, e.prototype.offset = function() {
3075
3081
  return this.position.offset;
3076
3082
  }, e.prototype.isEOF = function() {
@@ -3085,7 +3091,7 @@ var vn = (
3085
3091
  var t = this.position.offset;
3086
3092
  if (t >= this.message.length)
3087
3093
  throw Error("out of bound");
3088
- var r = Ut(this.message, t);
3094
+ var r = kt(this.message, t);
3089
3095
  if (r === void 0)
3090
3096
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3091
3097
  return r;
@@ -3104,7 +3110,7 @@ var vn = (
3104
3110
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3105
3111
  }
3106
3112
  }, e.prototype.bumpIf = function(t) {
3107
- if (nt(this.message, t, this.offset())) {
3113
+ if (ot(this.message, t, this.offset())) {
3108
3114
  for (var r = 0; r < t.length; r++)
3109
3115
  this.bump();
3110
3116
  return !0;
@@ -3126,7 +3132,7 @@ var vn = (
3126
3132
  break;
3127
3133
  }
3128
3134
  }, e.prototype.bumpSpace = function() {
3129
- for (; !this.isEOF() && kt(this.char()); )
3135
+ for (; !this.isEOF() && jt(this.char()); )
3130
3136
  this.bump();
3131
3137
  }, e.prototype.peek = function() {
3132
3138
  if (this.isEOF())
@@ -3136,47 +3142,47 @@ var vn = (
3136
3142
  }, e;
3137
3143
  }()
3138
3144
  );
3139
- function ke(e) {
3145
+ function je(e) {
3140
3146
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3141
3147
  }
3142
- function xn(e) {
3143
- return ke(e) || e === 47;
3148
+ function Hn(e) {
3149
+ return je(e) || e === 47;
3144
3150
  }
3145
- function Tn(e) {
3151
+ function wn(e) {
3146
3152
  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;
3147
3153
  }
3148
- function kt(e) {
3154
+ function jt(e) {
3149
3155
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3150
3156
  }
3151
- function Hn(e) {
3157
+ function Sn(e) {
3152
3158
  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;
3153
3159
  }
3154
- function Fe(e) {
3160
+ function ze(e) {
3155
3161
  e.forEach(function(t) {
3156
- if (delete t.location, It(t) || Ct(t))
3162
+ if (delete t.location, Nt(t) || Lt(t))
3157
3163
  for (var r in t.options)
3158
- delete t.options[r].location, Fe(t.options[r].value);
3164
+ delete t.options[r].location, ze(t.options[r].value);
3159
3165
  else
3160
- At(t) && Lt(t.style) || (Pt(t) || Ot(t)) && Re(t.style) ? delete t.style.location : Nt(t) && Fe(t.children);
3166
+ Ot(t) && $t(t.style) || (It(t) || Ct(t)) && Ue(t.style) ? delete t.style.location : Mt(t) && ze(t.children);
3161
3167
  });
3162
3168
  }
3163
3169
  function Bn(e, t) {
3164
- t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3165
- var r = new vn(e, t).parse();
3170
+ t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3171
+ var r = new Tn(e, t).parse();
3166
3172
  if (r.err) {
3167
- var n = SyntaxError(p[r.err.kind]);
3173
+ var n = SyntaxError(b[r.err.kind]);
3168
3174
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3169
3175
  }
3170
- return t?.captureLocation || Fe(r.val), r.val;
3176
+ return t?.captureLocation || ze(r.val), r.val;
3171
3177
  }
3172
- var X;
3178
+ var W;
3173
3179
  (function(e) {
3174
3180
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3175
- })(X || (X = {}));
3176
- var Te = (
3181
+ })(W || (W = {}));
3182
+ var we = (
3177
3183
  /** @class */
3178
3184
  function(e) {
3179
- xe(t, e);
3185
+ He(t, e);
3180
3186
  function t(r, n, i) {
3181
3187
  var o = e.call(this, r) || this;
3182
3188
  return o.code = n, o.originalMessage = i, o;
@@ -3185,48 +3191,48 @@ var Te = (
3185
3191
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3186
3192
  }, t;
3187
3193
  }(Error)
3188
- ), st = (
3194
+ ), ut = (
3189
3195
  /** @class */
3190
3196
  function(e) {
3191
- xe(t, e);
3197
+ He(t, e);
3192
3198
  function t(r, n, i, o) {
3193
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
3199
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
3194
3200
  }
3195
3201
  return t;
3196
- }(Te)
3197
- ), wn = (
3202
+ }(we)
3203
+ ), An = (
3198
3204
  /** @class */
3199
3205
  function(e) {
3200
- xe(t, e);
3206
+ He(t, e);
3201
3207
  function t(r, n, i) {
3202
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
3208
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3203
3209
  }
3204
3210
  return t;
3205
- }(Te)
3206
- ), Sn = (
3211
+ }(we)
3212
+ ), Pn = (
3207
3213
  /** @class */
3208
3214
  function(e) {
3209
- xe(t, e);
3215
+ He(t, e);
3210
3216
  function t(r, n) {
3211
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
3217
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3212
3218
  }
3213
3219
  return t;
3214
- }(Te)
3220
+ }(we)
3215
3221
  ), H;
3216
3222
  (function(e) {
3217
3223
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3218
3224
  })(H || (H = {}));
3219
- function An(e) {
3225
+ function On(e) {
3220
3226
  return e.length < 2 ? e : e.reduce(function(t, r) {
3221
3227
  var n = t[t.length - 1];
3222
3228
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3223
3229
  }, []);
3224
3230
  }
3225
- function Pn(e) {
3231
+ function In(e) {
3226
3232
  return typeof e == "function";
3227
3233
  }
3228
- function pe(e, t, r, n, i, o, s) {
3229
- if (e.length === 1 && Ke(e[0]))
3234
+ function ge(e, t, r, n, i, o, s) {
3235
+ if (e.length === 1 && tt(e[0]))
3230
3236
  return [
3231
3237
  {
3232
3238
  type: H.literal,
@@ -3235,14 +3241,14 @@ function pe(e, t, r, n, i, o, s) {
3235
3241
  ];
3236
3242
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3237
3243
  var l = u[h];
3238
- if (Ke(l)) {
3244
+ if (tt(l)) {
3239
3245
  a.push({
3240
3246
  type: H.literal,
3241
3247
  value: l.value
3242
3248
  });
3243
3249
  continue;
3244
3250
  }
3245
- if (qr(l)) {
3251
+ if (Yr(l)) {
3246
3252
  typeof o == "number" && a.push({
3247
3253
  type: H.literal,
3248
3254
  value: r.getNumberFormat(t).format(o)
@@ -3251,89 +3257,89 @@ function pe(e, t, r, n, i, o, s) {
3251
3257
  }
3252
3258
  var f = l.value;
3253
3259
  if (!(i && f in i))
3254
- throw new Sn(f, s);
3260
+ throw new Pn(f, s);
3255
3261
  var c = i[f];
3256
- if (Jr(l)) {
3262
+ if (Qr(l)) {
3257
3263
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3258
3264
  type: typeof c == "string" ? H.literal : H.object,
3259
3265
  value: c
3260
3266
  });
3261
3267
  continue;
3262
3268
  }
3263
- if (Pt(l)) {
3264
- var y = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
3269
+ if (It(l)) {
3270
+ var y = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3265
3271
  a.push({
3266
3272
  type: H.literal,
3267
3273
  value: r.getDateTimeFormat(t, y).format(c)
3268
3274
  });
3269
3275
  continue;
3270
3276
  }
3271
- if (Ot(l)) {
3272
- var y = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
3277
+ if (Ct(l)) {
3278
+ var y = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3273
3279
  a.push({
3274
3280
  type: H.literal,
3275
3281
  value: r.getDateTimeFormat(t, y).format(c)
3276
3282
  });
3277
3283
  continue;
3278
3284
  }
3279
- if (At(l)) {
3280
- var y = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3285
+ if (Ot(l)) {
3286
+ var y = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
3281
3287
  y && y.scale && (c = c * (y.scale || 1)), a.push({
3282
3288
  type: H.literal,
3283
3289
  value: r.getNumberFormat(t, y).format(c)
3284
3290
  });
3285
3291
  continue;
3286
3292
  }
3287
- if (Nt(l)) {
3288
- var b = l.children, v = l.value, E = i[v];
3289
- if (!Pn(E))
3290
- throw new wn(v, "function", s);
3291
- var m = pe(b, t, r, n, i, o), x = E(m.map(function(w) {
3292
- return w.value;
3293
+ if (Mt(l)) {
3294
+ var p = l.children, E = l.value, _ = i[E];
3295
+ if (!In(_))
3296
+ throw new An(E, "function", s);
3297
+ var m = ge(p, t, r, n, i, o), v = _(m.map(function(S) {
3298
+ return S.value;
3293
3299
  }));
3294
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(w) {
3300
+ Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(S) {
3295
3301
  return {
3296
- type: typeof w == "string" ? H.literal : H.object,
3297
- value: w
3302
+ type: typeof S == "string" ? H.literal : H.object,
3303
+ value: S
3298
3304
  };
3299
3305
  }));
3300
3306
  }
3301
- if (It(l)) {
3307
+ if (Nt(l)) {
3302
3308
  var d = l.options[c] || l.options.other;
3303
3309
  if (!d)
3304
- throw new st(l.value, c, Object.keys(l.options), s);
3305
- a.push.apply(a, pe(d.value, t, r, n, i));
3310
+ throw new ut(l.value, c, Object.keys(l.options), s);
3311
+ a.push.apply(a, ge(d.value, t, r, n, i));
3306
3312
  continue;
3307
3313
  }
3308
- if (Ct(l)) {
3314
+ if (Lt(l)) {
3309
3315
  var d = l.options["=".concat(c)];
3310
3316
  if (!d) {
3311
3317
  if (!Intl.PluralRules)
3312
- throw new Te(`Intl.PluralRules is not available in this environment.
3318
+ throw new we(`Intl.PluralRules is not available in this environment.
3313
3319
  Try polyfilling it using "@formatjs/intl-pluralrules"
3314
- `, X.MISSING_INTL_API, s);
3315
- var B = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3316
- d = l.options[B] || l.options.other;
3320
+ `, W.MISSING_INTL_API, s);
3321
+ var w = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3322
+ d = l.options[w] || l.options.other;
3317
3323
  }
3318
3324
  if (!d)
3319
- throw new st(l.value, c, Object.keys(l.options), s);
3320
- a.push.apply(a, pe(d.value, t, r, n, i, c - (l.offset || 0)));
3325
+ throw new ut(l.value, c, Object.keys(l.options), s);
3326
+ a.push.apply(a, ge(d.value, t, r, n, i, c - (l.offset || 0)));
3321
3327
  continue;
3322
3328
  }
3323
3329
  }
3324
- return An(a);
3330
+ return On(a);
3325
3331
  }
3326
- function On(e, t) {
3327
- return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3328
- return r[n] = _(_({}, e[n]), t[n] || {}), r;
3332
+ function Cn(e, t) {
3333
+ return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3334
+ return r[n] = A(A({}, e[n]), t[n] || {}), r;
3329
3335
  }, {})) : e;
3330
3336
  }
3331
- function In(e, t) {
3337
+ function Nn(e, t) {
3332
3338
  return t ? Object.keys(e).reduce(function(r, n) {
3333
- return r[n] = On(e[n], t[n]), r;
3334
- }, _({}, e)) : e;
3339
+ return r[n] = Cn(e[n], t[n]), r;
3340
+ }, A({}, e)) : e;
3335
3341
  }
3336
- function Ie(e) {
3342
+ function Ne(e) {
3337
3343
  return {
3338
3344
  create: function() {
3339
3345
  return {
@@ -3347,39 +3353,39 @@ function Ie(e) {
3347
3353
  }
3348
3354
  };
3349
3355
  }
3350
- function Cn(e) {
3356
+ function Ln(e) {
3351
3357
  return e === void 0 && (e = {
3352
3358
  number: {},
3353
3359
  dateTime: {},
3354
3360
  pluralRules: {}
3355
3361
  }), {
3356
- getNumberFormat: Ae(function() {
3362
+ getNumberFormat: Oe(function() {
3357
3363
  for (var t, r = [], n = 0; n < arguments.length; n++)
3358
3364
  r[n] = arguments[n];
3359
- return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
3365
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3360
3366
  }, {
3361
- cache: Ie(e.number),
3362
- strategy: Pe.variadic
3367
+ cache: Ne(e.number),
3368
+ strategy: Ie.variadic
3363
3369
  }),
3364
- getDateTimeFormat: Ae(function() {
3370
+ getDateTimeFormat: Oe(function() {
3365
3371
  for (var t, r = [], n = 0; n < arguments.length; n++)
3366
3372
  r[n] = arguments[n];
3367
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
3373
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3368
3374
  }, {
3369
- cache: Ie(e.dateTime),
3370
- strategy: Pe.variadic
3375
+ cache: Ne(e.dateTime),
3376
+ strategy: Ie.variadic
3371
3377
  }),
3372
- getPluralRules: Ae(function() {
3378
+ getPluralRules: Oe(function() {
3373
3379
  for (var t, r = [], n = 0; n < arguments.length; n++)
3374
3380
  r[n] = arguments[n];
3375
- return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
3381
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3376
3382
  }, {
3377
- cache: Ie(e.pluralRules),
3378
- strategy: Pe.variadic
3383
+ cache: Ne(e.pluralRules),
3384
+ strategy: Ie.variadic
3379
3385
  })
3380
3386
  };
3381
3387
  }
3382
- var Ft = (
3388
+ var zt = (
3383
3389
  /** @class */
3384
3390
  function() {
3385
3391
  function e(t, r, n, i) {
@@ -3398,7 +3404,7 @@ var Ft = (
3398
3404
  }, []);
3399
3405
  return l.length <= 1 ? l[0] || "" : l;
3400
3406
  }, this.formatToParts = function(h) {
3401
- return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3407
+ return ge(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3402
3408
  }, this.resolvedOptions = function() {
3403
3409
  var h;
3404
3410
  return {
@@ -3411,13 +3417,13 @@ var Ft = (
3411
3417
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3412
3418
  var s = i || {};
3413
3419
  s.formatters;
3414
- var a = kr(s, ["formatters"]);
3415
- this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
3420
+ var a = jr(s, ["formatters"]);
3421
+ this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3416
3422
  } else
3417
3423
  this.ast = t;
3418
3424
  if (!Array.isArray(this.ast))
3419
3425
  throw new TypeError("A message must be provided as a String or AST.");
3420
- this.formats = In(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
3426
+ this.formats = Nn(e.formats, n), this.formatters = i && i.formatters || Ln(this.formatterCache);
3421
3427
  }
3422
3428
  return Object.defineProperty(e, "defaultLocale", {
3423
3429
  get: function() {
@@ -3491,7 +3497,7 @@ var Ft = (
3491
3497
  }, e;
3492
3498
  }()
3493
3499
  );
3494
- function Nn(e, t) {
3500
+ function Mn(e, t) {
3495
3501
  if (t == null)
3496
3502
  return;
3497
3503
  if (t in e)
@@ -3512,101 +3518,101 @@ function Nn(e, t) {
3512
3518
  n = void 0;
3513
3519
  return n;
3514
3520
  }
3515
- const C = {}, Ln = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), jt = (e, t) => {
3521
+ const N = {}, $n = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Vt = (e, t) => {
3516
3522
  if (t == null)
3517
3523
  return;
3518
- if (t in C && e in C[t])
3519
- return C[t][e];
3520
- const r = oe(t);
3524
+ if (t in N && e in N[t])
3525
+ return N[t][e];
3526
+ const r = se(t);
3521
3527
  for (let n = 0; n < r.length; n++) {
3522
- const i = r[n], o = $n(i, e);
3528
+ const i = r[n], o = Dn(i, e);
3523
3529
  if (o)
3524
- return Ln(e, t, o);
3530
+ return $n(e, t, o);
3525
3531
  }
3526
3532
  };
3527
- let Xe;
3528
- const ie = ve({});
3529
- function Mn(e) {
3530
- return Xe[e] || null;
3533
+ let Ze;
3534
+ const oe = Te({});
3535
+ function Rn(e) {
3536
+ return Ze[e] || null;
3531
3537
  }
3532
- function zt(e) {
3533
- return e in Xe;
3538
+ function Xt(e) {
3539
+ return e in Ze;
3534
3540
  }
3535
- function $n(e, t) {
3536
- if (!zt(e))
3541
+ function Dn(e, t) {
3542
+ if (!Xt(e))
3537
3543
  return null;
3538
- const r = Mn(e);
3539
- return Nn(r, t);
3544
+ const r = Rn(e);
3545
+ return Mn(r, t);
3540
3546
  }
3541
- function Rn(e) {
3547
+ function Un(e) {
3542
3548
  if (e == null)
3543
3549
  return;
3544
- const t = oe(e);
3550
+ const t = se(e);
3545
3551
  for (let r = 0; r < t.length; r++) {
3546
3552
  const n = t[r];
3547
- if (zt(n))
3553
+ if (Xt(n))
3548
3554
  return n;
3549
3555
  }
3550
3556
  }
3551
- function Vt(e, ...t) {
3552
- delete C[e], ie.update((r) => (r[e] = Gr.all([r[e] || {}, ...t]), r));
3557
+ function Wt(e, ...t) {
3558
+ delete N[e], oe.update((r) => (r[e] = Fr.all([r[e] || {}, ...t]), r));
3553
3559
  }
3554
- J(
3555
- [ie],
3560
+ q(
3561
+ [oe],
3556
3562
  ([e]) => Object.keys(e)
3557
3563
  );
3558
- ie.subscribe((e) => Xe = e);
3559
- const ge = {};
3560
- function Dn(e, t) {
3561
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3564
+ oe.subscribe((e) => Ze = e);
3565
+ const ye = {};
3566
+ function Gn(e, t) {
3567
+ ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3562
3568
  }
3563
- function Xt(e) {
3564
- return ge[e];
3569
+ function Zt(e) {
3570
+ return ye[e];
3565
3571
  }
3566
- function Un(e) {
3567
- return oe(e).map((t) => {
3568
- const r = Xt(t);
3572
+ function kn(e) {
3573
+ return se(e).map((t) => {
3574
+ const r = Zt(t);
3569
3575
  return [t, r ? [...r] : []];
3570
3576
  }).filter(([, t]) => t.length > 0);
3571
3577
  }
3572
- function ye(e) {
3573
- return e == null ? !1 : oe(e).some(
3578
+ function Ee(e) {
3579
+ return e == null ? !1 : se(e).some(
3574
3580
  (t) => {
3575
3581
  var r;
3576
- return (r = Xt(t)) == null ? void 0 : r.size;
3582
+ return (r = Zt(t)) == null ? void 0 : r.size;
3577
3583
  }
3578
3584
  );
3579
3585
  }
3580
- function Gn(e, t) {
3586
+ function Fn(e, t) {
3581
3587
  return Promise.all(
3582
- t.map((n) => (Dn(e, n), n().then((i) => i.default || i)))
3583
- ).then((n) => Vt(e, ...n));
3584
- }
3585
- const Q = {};
3586
- function Wt(e) {
3587
- if (!ye(e))
3588
- return e in Q ? Q[e] : Promise.resolve();
3589
- const t = Un(e);
3590
- return Q[e] = Promise.all(
3588
+ t.map((n) => (Gn(e, n), n().then((i) => i.default || i)))
3589
+ ).then((n) => Wt(e, ...n));
3590
+ }
3591
+ const Y = {};
3592
+ function Jt(e) {
3593
+ if (!Ee(e))
3594
+ return e in Y ? Y[e] : Promise.resolve();
3595
+ const t = kn(e);
3596
+ return Y[e] = Promise.all(
3591
3597
  t.map(
3592
- ([r, n]) => Gn(r, n)
3598
+ ([r, n]) => Fn(r, n)
3593
3599
  )
3594
3600
  ).then(() => {
3595
- if (ye(e))
3596
- return Wt(e);
3597
- delete Q[e];
3598
- }), Q[e];
3601
+ if (Ee(e))
3602
+ return Jt(e);
3603
+ delete Y[e];
3604
+ }), Y[e];
3599
3605
  }
3600
- var at = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, jn = (e, t) => {
3606
+ var lt = Object.getOwnPropertySymbols, jn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, Vn = (e, t) => {
3601
3607
  var r = {};
3602
3608
  for (var n in e)
3603
- kn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3604
- if (e != null && at)
3605
- for (var n of at(e))
3606
- t.indexOf(n) < 0 && Fn.call(e, n) && (r[n] = e[n]);
3609
+ jn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3610
+ if (e != null && lt)
3611
+ for (var n of lt(e))
3612
+ t.indexOf(n) < 0 && zn.call(e, n) && (r[n] = e[n]);
3607
3613
  return r;
3608
3614
  };
3609
- const zn = {
3615
+ const Xn = {
3610
3616
  number: {
3611
3617
  scientific: { notation: "scientific" },
3612
3618
  engineering: { notation: "engineering" },
@@ -3636,174 +3642,174 @@ const zn = {
3636
3642
  }
3637
3643
  }
3638
3644
  };
3639
- function Vn({ locale: e, id: t }) {
3645
+ function Wn({ locale: e, id: t }) {
3640
3646
  console.warn(
3641
- `[svelte-i18n] The message "${t}" was not found in "${oe(
3647
+ `[svelte-i18n] The message "${t}" was not found in "${se(
3642
3648
  e
3643
- ).join('", "')}".${ye(L()) ? `
3649
+ ).join('", "')}".${Ee(M()) ? `
3644
3650
 
3645
3651
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3646
3652
  );
3647
3653
  }
3648
- const Xn = {
3654
+ const Zn = {
3649
3655
  fallbackLocale: null,
3650
3656
  loadingDelay: 200,
3651
- formats: zn,
3657
+ formats: Xn,
3652
3658
  warnOnMissingMessages: !0,
3653
3659
  handleMissingMessage: void 0,
3654
3660
  ignoreTag: !0
3655
- }, Y = Xn;
3656
- function W() {
3657
- return Y;
3661
+ }, K = Zn;
3662
+ function Z() {
3663
+ return K;
3658
3664
  }
3659
- function Wn(e) {
3660
- const t = e, { formats: r } = t, n = jn(t, ["formats"]);
3665
+ function Jn(e) {
3666
+ const t = e, { formats: r } = t, n = Vn(t, ["formats"]);
3661
3667
  let i = e.fallbackLocale;
3662
3668
  if (e.initialLocale)
3663
3669
  try {
3664
- Ft.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3670
+ zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3665
3671
  } catch {
3666
3672
  console.warn(
3667
3673
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3668
3674
  );
3669
3675
  }
3670
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Vn : console.warn(
3676
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Wn : console.warn(
3671
3677
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3672
- )), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), D.set(i);
3678
+ )), Object.assign(K, n, { initialLocale: i }), r && ("number" in r && Object.assign(K.formats.number, r.number), "date" in r && Object.assign(K.formats.date, r.date), "time" in r && Object.assign(K.formats.time, r.time)), U.set(i);
3673
3679
  }
3674
- const Ce = ve(!1);
3675
- var Zn = Object.defineProperty, Jn = Object.defineProperties, qn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
3680
+ const Le = Te(!1);
3681
+ var qn = Object.defineProperty, Qn = Object.defineProperties, Yn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
3676
3682
  for (var r in t || (t = {}))
3677
- Qn.call(t, r) && lt(e, r, t[r]);
3678
- if (ut)
3679
- for (var r of ut(t))
3680
- Yn.call(t, r) && lt(e, r, t[r]);
3683
+ Kn.call(t, r) && ct(e, r, t[r]);
3684
+ if (ht)
3685
+ for (var r of ht(t))
3686
+ ei.call(t, r) && ct(e, r, t[r]);
3681
3687
  return e;
3682
- }, ei = (e, t) => Jn(e, qn(t));
3683
- let je;
3684
- const _e = ve(null);
3685
- function ht(e) {
3688
+ }, ri = (e, t) => Qn(e, Yn(t));
3689
+ let Ve;
3690
+ const ve = Te(null);
3691
+ function ft(e) {
3686
3692
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3687
3693
  }
3688
- function oe(e, t = W().fallbackLocale) {
3689
- const r = ht(e);
3690
- return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3694
+ function se(e, t = Z().fallbackLocale) {
3695
+ const r = ft(e);
3696
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3691
3697
  }
3692
- function L() {
3693
- return je ?? void 0;
3698
+ function M() {
3699
+ return Ve ?? void 0;
3694
3700
  }
3695
- _e.subscribe((e) => {
3696
- je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3701
+ ve.subscribe((e) => {
3702
+ Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3697
3703
  });
3698
- const ti = (e) => {
3699
- if (e && Rn(e) && ye(e)) {
3700
- const { loadingDelay: t } = W();
3704
+ const ni = (e) => {
3705
+ if (e && Un(e) && Ee(e)) {
3706
+ const { loadingDelay: t } = Z();
3701
3707
  let r;
3702
- return typeof window < "u" && L() != null && t ? r = window.setTimeout(
3703
- () => Ce.set(!0),
3708
+ return typeof window < "u" && M() != null && t ? r = window.setTimeout(
3709
+ () => Le.set(!0),
3704
3710
  t
3705
- ) : Ce.set(!0), Wt(e).then(() => {
3706
- _e.set(e);
3711
+ ) : Le.set(!0), Jt(e).then(() => {
3712
+ ve.set(e);
3707
3713
  }).finally(() => {
3708
- clearTimeout(r), Ce.set(!1);
3714
+ clearTimeout(r), Le.set(!1);
3709
3715
  });
3710
3716
  }
3711
- return _e.set(e);
3712
- }, D = ei(Kn({}, _e), {
3713
- set: ti
3714
- }), He = (e) => {
3717
+ return ve.set(e);
3718
+ }, U = ri(ti({}, ve), {
3719
+ set: ni
3720
+ }), Se = (e) => {
3715
3721
  const t = /* @__PURE__ */ Object.create(null);
3716
3722
  return (n) => {
3717
3723
  const i = JSON.stringify(n);
3718
3724
  return i in t ? t[i] : t[i] = e(n);
3719
3725
  };
3720
3726
  };
3721
- var ri = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3727
+ var ii = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3722
3728
  for (var r in t || (t = {}))
3723
- Zt.call(t, r) && ct(e, r, t[r]);
3724
- if (Ee)
3725
- for (var r of Ee(t))
3726
- Jt.call(t, r) && ct(e, r, t[r]);
3729
+ qt.call(t, r) && mt(e, r, t[r]);
3730
+ if (xe)
3731
+ for (var r of xe(t))
3732
+ Qt.call(t, r) && mt(e, r, t[r]);
3727
3733
  return e;
3728
- }, q = (e, t) => {
3734
+ }, Q = (e, t) => {
3729
3735
  var r = {};
3730
3736
  for (var n in e)
3731
- Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3732
- if (e != null && Ee)
3733
- for (var n of Ee(e))
3734
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3737
+ qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3738
+ if (e != null && xe)
3739
+ for (var n of xe(e))
3740
+ t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3735
3741
  return r;
3736
3742
  };
3737
- const re = (e, t) => {
3738
- const { formats: r } = W();
3743
+ const ne = (e, t) => {
3744
+ const { formats: r } = Z();
3739
3745
  if (e in r && t in r[e])
3740
3746
  return r[e][t];
3741
3747
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3742
- }, ni = He(
3748
+ }, oi = Se(
3743
3749
  (e) => {
3744
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3750
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3745
3751
  if (r == null)
3746
3752
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3747
- return n && (i = re("number", n)), new Intl.NumberFormat(r, i);
3753
+ return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
3748
3754
  }
3749
- ), ii = He(
3755
+ ), si = Se(
3750
3756
  (e) => {
3751
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3757
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3752
3758
  if (r == null)
3753
3759
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3754
- return n ? i = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
3760
+ return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
3755
3761
  }
3756
- ), oi = He(
3762
+ ), ai = Se(
3757
3763
  (e) => {
3758
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
3764
+ var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3759
3765
  if (r == null)
3760
3766
  throw new Error(
3761
3767
  '[svelte-i18n] A "locale" must be set to format time values'
3762
3768
  );
3763
- return n ? i = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
3769
+ return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
3764
3770
  }
3765
- ), si = (e = {}) => {
3771
+ ), ui = (e = {}) => {
3766
3772
  var t = e, {
3767
- locale: r = L()
3768
- } = t, n = q(t, [
3773
+ locale: r = M()
3774
+ } = t, n = Q(t, [
3769
3775
  "locale"
3770
3776
  ]);
3771
- return ni(We({ locale: r }, n));
3772
- }, ai = (e = {}) => {
3777
+ return oi(Je({ locale: r }, n));
3778
+ }, li = (e = {}) => {
3773
3779
  var t = e, {
3774
- locale: r = L()
3775
- } = t, n = q(t, [
3780
+ locale: r = M()
3781
+ } = t, n = Q(t, [
3776
3782
  "locale"
3777
3783
  ]);
3778
- return ii(We({ locale: r }, n));
3779
- }, ui = (e = {}) => {
3784
+ return si(Je({ locale: r }, n));
3785
+ }, hi = (e = {}) => {
3780
3786
  var t = e, {
3781
- locale: r = L()
3782
- } = t, n = q(t, [
3787
+ locale: r = M()
3788
+ } = t, n = Q(t, [
3783
3789
  "locale"
3784
3790
  ]);
3785
- return oi(We({ locale: r }, n));
3786
- }, li = He(
3791
+ return ai(Je({ locale: r }, n));
3792
+ }, ci = Se(
3787
3793
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3788
- (e, t = L()) => new Ft(e, t, W().formats, {
3789
- ignoreTag: W().ignoreTag
3794
+ (e, t = M()) => new zt(e, t, Z().formats, {
3795
+ ignoreTag: Z().ignoreTag
3790
3796
  })
3791
- ), hi = (e, t = {}) => {
3797
+ ), fi = (e, t = {}) => {
3792
3798
  var r, n, i, o;
3793
3799
  let s = t;
3794
3800
  typeof e == "object" && (s = e, e = s.id);
3795
3801
  const {
3796
3802
  values: a,
3797
- locale: h = L(),
3803
+ locale: h = M(),
3798
3804
  default: u
3799
3805
  } = s;
3800
3806
  if (h == null)
3801
3807
  throw new Error(
3802
3808
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3803
3809
  );
3804
- let l = jt(e, h);
3810
+ let l = Vt(e, h);
3805
3811
  if (!l)
3806
- l = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3812
+ l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3807
3813
  else if (typeof l != "string")
3808
3814
  return console.warn(
3809
3815
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3812,7 +3818,7 @@ const re = (e, t) => {
3812
3818
  return l;
3813
3819
  let f = l;
3814
3820
  try {
3815
- f = li(l, h).format(a);
3821
+ f = ci(l, h).format(a);
3816
3822
  } catch (c) {
3817
3823
  c instanceof Error && console.warn(
3818
3824
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3820,20 +3826,20 @@ const re = (e, t) => {
3820
3826
  );
3821
3827
  }
3822
3828
  return f;
3823
- }, ci = (e, t) => ui(t).format(e), fi = (e, t) => ai(t).format(e), mi = (e, t) => si(t).format(e), di = (e, t = L()) => jt(e, t), bi = J([D, ie], () => hi);
3824
- J([D], () => ci);
3825
- J([D], () => fi);
3826
- J([D], () => mi);
3827
- J([D, ie], () => di);
3828
- function ft(e, t) {
3829
- Vt(e, t);
3830
- }
3831
- function pi(e) {
3832
- Wn({
3829
+ }, mi = (e, t) => hi(t).format(e), di = (e, t) => li(t).format(e), pi = (e, t) => ui(t).format(e), bi = (e, t = M()) => Vt(e, t), gi = q([U, oe], () => fi);
3830
+ q([U], () => mi);
3831
+ q([U], () => di);
3832
+ q([U], () => pi);
3833
+ q([U, oe], () => bi);
3834
+ function dt(e, t) {
3835
+ Wt(e, t);
3836
+ }
3837
+ function yi(e) {
3838
+ Jn({
3833
3839
  fallbackLocale: "en"
3834
- }), D.set(e);
3840
+ }), U.set(e);
3835
3841
  }
3836
- const mt = {
3842
+ const pt = {
3837
3843
  en: {
3838
3844
  errorGeneralTitle: "Error Occurred",
3839
3845
  errorGeneralText: "Something went wrong",
@@ -3887,74 +3893,74 @@ const mt = {
3887
3893
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
3888
3894
  }
3889
3895
  };
3890
- function gi(e) {
3891
- Kt(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
3896
+ function _i(e) {
3897
+ tr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
3892
3898
  }
3893
- const yi = (e) => ({}), dt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), pt = (e) => ({}), vi = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3894
- function yt(e) {
3899
+ const Ei = (e) => ({}), bt = (e) => ({}), vi = (e) => ({}), gt = (e) => ({}), xi = (e) => ({}), yt = (e) => ({}), Ti = (e) => ({}), _t = (e) => ({ class: "CashierErrorIcon" });
3900
+ function Et(e) {
3895
3901
  let t, r;
3896
3902
  return {
3897
3903
  c() {
3898
- t = O("ui-image"), qe(t.src, r = `${/*assetsurl*/
3899
- e[0]}/error-general-icon.png`) || ue(t, "src", r), ue(t, "width", "300px"), ue(t, "alt", "error");
3904
+ t = I("ui-image"), Ye(t.src, r = `${/*assetsurl*/
3905
+ e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
3900
3906
  },
3901
3907
  m(n, i) {
3902
- R(n, t, i);
3908
+ D(n, t, i);
3903
3909
  },
3904
3910
  p(n, i) {
3905
3911
  i & /*assetsurl*/
3906
- 1 && !qe(t.src, r = `${/*assetsurl*/
3907
- n[0]}/error-general-icon.png`) && ue(t, "src", r);
3912
+ 1 && !Ye(t.src, r = `${/*assetsurl*/
3913
+ n[0]}/error-general-icon.png`) && le(t, "src", r);
3908
3914
  },
3909
3915
  d(n) {
3910
- n && N(t);
3916
+ n && L(t);
3911
3917
  }
3912
3918
  };
3913
3919
  }
3914
- function xi(e) {
3920
+ function Hi(e) {
3915
3921
  let t, r = (
3916
3922
  /*assetsurl*/
3917
- e[0] && yt(e)
3923
+ e[0] && Et(e)
3918
3924
  );
3919
3925
  return {
3920
3926
  c() {
3921
- r && r.c(), t = rr();
3927
+ r && r.c(), t = ir();
3922
3928
  },
3923
3929
  m(n, i) {
3924
- r && r.m(n, i), R(n, t, i);
3930
+ r && r.m(n, i), D(n, t, i);
3925
3931
  },
3926
3932
  p(n, i) {
3927
3933
  /*assetsurl*/
3928
- n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3934
+ n[0] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3929
3935
  },
3930
3936
  d(n) {
3931
- n && N(t), r && r.d(n);
3937
+ n && L(t), r && r.d(n);
3932
3938
  }
3933
3939
  };
3934
3940
  }
3935
- function Ti(e) {
3941
+ function wi(e) {
3936
3942
  let t, r = (
3937
3943
  /*$_*/
3938
3944
  e[4]("errorGeneralTitle") + ""
3939
3945
  ), n;
3940
3946
  return {
3941
3947
  c() {
3942
- t = O("span"), n = ne(r), $(t, "class", "CashierErrorTitle");
3948
+ t = I("span"), n = ie(r), R(t, "class", "CashierErrorTitle");
3943
3949
  },
3944
3950
  m(i, o) {
3945
- R(i, t, o), A(t, n);
3951
+ D(i, t, o), P(t, n);
3946
3952
  },
3947
3953
  p(i, o) {
3948
3954
  o & /*$_*/
3949
3955
  16 && r !== (r = /*$_*/
3950
- i[4]("errorGeneralTitle") + "") && Ve(n, r);
3956
+ i[4]("errorGeneralTitle") + "") && We(n, r);
3951
3957
  },
3952
3958
  d(i) {
3953
- i && N(t);
3959
+ i && L(t);
3954
3960
  }
3955
3961
  };
3956
3962
  }
3957
- function Hi(e) {
3963
+ function Si(e) {
3958
3964
  let t, r = (
3959
3965
  /*$_*/
3960
3966
  e[4](`${/*errorcode*/
@@ -3962,33 +3968,33 @@ function Hi(e) {
3962
3968
  ), n;
3963
3969
  return {
3964
3970
  c() {
3965
- t = O("span"), n = ne(r), $(t, "class", "CashierErrorText");
3971
+ t = I("span"), n = ie(r), R(t, "class", "CashierErrorText");
3966
3972
  },
3967
3973
  m(i, o) {
3968
- R(i, t, o), A(t, n);
3974
+ D(i, t, o), P(t, n);
3969
3975
  },
3970
3976
  p(i, o) {
3971
3977
  o & /*$_, errorcode*/
3972
3978
  20 && r !== (r = /*$_*/
3973
3979
  i[4](`${/*errorcode*/
3974
- i[2] || "errorGeneralText"}`) + "") && Ve(n, r);
3980
+ i[2] || "errorGeneralText"}`) + "") && We(n, r);
3975
3981
  },
3976
3982
  d(i) {
3977
- i && N(t);
3983
+ i && L(t);
3978
3984
  }
3979
3985
  };
3980
3986
  }
3981
- function _t(e) {
3987
+ function vt(e) {
3982
3988
  let t;
3983
3989
  const r = (
3984
3990
  /*#slots*/
3985
3991
  e[12].button
3986
- ), n = he(
3992
+ ), n = ce(
3987
3993
  r,
3988
3994
  e,
3989
3995
  /*$$scope*/
3990
3996
  e[11],
3991
- dt
3997
+ bt
3992
3998
  ), i = n || Bi(e);
3993
3999
  return {
3994
4000
  c() {
@@ -3999,31 +4005,31 @@ function _t(e) {
3999
4005
  },
4000
4006
  p(o, s) {
4001
4007
  n ? n.p && (!t || s & /*$$scope*/
4002
- 2048) && fe(
4008
+ 2048) && me(
4003
4009
  n,
4004
4010
  r,
4005
4011
  o,
4006
4012
  /*$$scope*/
4007
4013
  o[11],
4008
- t ? ce(
4014
+ t ? fe(
4009
4015
  r,
4010
4016
  /*$$scope*/
4011
4017
  o[11],
4012
4018
  s,
4013
- yi
4014
- ) : me(
4019
+ Ei
4020
+ ) : de(
4015
4021
  /*$$scope*/
4016
4022
  o[11]
4017
4023
  ),
4018
- dt
4024
+ bt
4019
4025
  ) : i && i.p && (!t || s & /*$_*/
4020
4026
  16) && i.p(o, t ? s : -1);
4021
4027
  },
4022
4028
  i(o) {
4023
- t || (I(i, o), t = !0);
4029
+ t || (C(i, o), t = !0);
4024
4030
  },
4025
4031
  o(o) {
4026
- F(i, o), t = !1;
4032
+ j(i, o), t = !1;
4027
4033
  },
4028
4034
  d(o) {
4029
4035
  i && i.d(o);
@@ -4037,10 +4043,10 @@ function Bi(e) {
4037
4043
  ), i, o, s;
4038
4044
  return {
4039
4045
  c() {
4040
- t = O("button"), r = O("span"), i = ne(n), $(t, "class", "CashierErrorButton");
4046
+ t = I("button"), r = I("span"), i = ie(n), R(t, "class", "CashierErrorButton");
4041
4047
  },
4042
4048
  m(a, h) {
4043
- R(a, t, h), A(t, r), A(r, i), o || (s = nr(
4049
+ D(a, t, h), P(t, r), P(r, i), o || (s = or(
4044
4050
  t,
4045
4051
  "click",
4046
4052
  /*close*/
@@ -4050,171 +4056,171 @@ function Bi(e) {
4050
4056
  p(a, h) {
4051
4057
  h & /*$_*/
4052
4058
  16 && n !== (n = /*$_*/
4053
- a[4]("errorGeneralButton") + "") && Ve(i, n);
4059
+ a[4]("errorGeneralButton") + "") && We(i, n);
4054
4060
  },
4055
4061
  d(a) {
4056
- a && N(t), o = !1, s();
4062
+ a && L(t), o = !1, s();
4057
4063
  }
4058
4064
  };
4059
4065
  }
4060
- function wi(e) {
4066
+ function Ai(e) {
4061
4067
  let t, r, n, i, o, s;
4062
4068
  const a = (
4063
4069
  /*#slots*/
4064
4070
  e[12].icon
4065
- ), h = he(
4071
+ ), h = ce(
4066
4072
  a,
4067
4073
  e,
4068
4074
  /*$$scope*/
4069
4075
  e[11],
4070
- gt
4071
- ), u = h || xi(e), l = (
4076
+ _t
4077
+ ), u = h || Hi(e), l = (
4072
4078
  /*#slots*/
4073
4079
  e[12].title
4074
- ), f = he(
4080
+ ), f = ce(
4075
4081
  l,
4076
4082
  e,
4077
4083
  /*$$scope*/
4078
4084
  e[11],
4079
- pt
4080
- ), c = f || Ti(e), y = (
4085
+ yt
4086
+ ), c = f || wi(e), y = (
4081
4087
  /*#slots*/
4082
4088
  e[12].text
4083
- ), b = he(
4089
+ ), p = ce(
4084
4090
  y,
4085
4091
  e,
4086
4092
  /*$$scope*/
4087
4093
  e[11],
4088
- bt
4089
- ), v = b || Hi(e);
4090
- let E = (!/*hidebuttons*/
4094
+ gt
4095
+ ), E = p || Si(e);
4096
+ let _ = (!/*hidebuttons*/
4091
4097
  e[1] || /*hidebuttons*/
4092
- e[1] === "false") && _t(e);
4098
+ e[1] === "false") && vt(e);
4093
4099
  return {
4094
4100
  c() {
4095
- t = O("div"), r = O("div"), u && u.c(), n = Be(), c && c.c(), i = Be(), v && v.c(), o = Be(), E && E.c(), $(r, "class", "CashierErrorContent"), $(t, "class", "CashierError");
4101
+ t = I("div"), r = I("div"), u && u.c(), n = Be(), c && c.c(), i = Be(), E && E.c(), o = Be(), _ && _.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
4096
4102
  },
4097
- m(m, x) {
4098
- R(m, t, x), A(t, r), u && u.m(r, null), A(r, n), c && c.m(r, null), A(r, i), v && v.m(r, null), A(r, o), E && E.m(r, null), e[13](t), s = !0;
4103
+ m(m, v) {
4104
+ D(m, t, v), P(t, r), u && u.m(r, null), P(r, n), c && c.m(r, null), P(r, i), E && E.m(r, null), P(r, o), _ && _.m(r, null), e[13](t), s = !0;
4099
4105
  },
4100
- p(m, [x]) {
4101
- h ? h.p && (!s || x & /*$$scope*/
4102
- 2048) && fe(
4106
+ p(m, [v]) {
4107
+ h ? h.p && (!s || v & /*$$scope*/
4108
+ 2048) && me(
4103
4109
  h,
4104
4110
  a,
4105
4111
  m,
4106
4112
  /*$$scope*/
4107
4113
  m[11],
4108
- s ? ce(
4114
+ s ? fe(
4109
4115
  a,
4110
4116
  /*$$scope*/
4111
4117
  m[11],
4112
- x,
4113
- vi
4114
- ) : me(
4118
+ v,
4119
+ Ti
4120
+ ) : de(
4115
4121
  /*$$scope*/
4116
4122
  m[11]
4117
4123
  ),
4118
- gt
4119
- ) : u && u.p && (!s || x & /*assetsurl*/
4120
- 1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
4121
- 2048) && fe(
4124
+ _t
4125
+ ) : u && u.p && (!s || v & /*assetsurl*/
4126
+ 1) && u.p(m, s ? v : -1), f ? f.p && (!s || v & /*$$scope*/
4127
+ 2048) && me(
4122
4128
  f,
4123
4129
  l,
4124
4130
  m,
4125
4131
  /*$$scope*/
4126
4132
  m[11],
4127
- s ? ce(
4133
+ s ? fe(
4128
4134
  l,
4129
4135
  /*$$scope*/
4130
4136
  m[11],
4131
- x,
4132
- Ei
4133
- ) : me(
4137
+ v,
4138
+ xi
4139
+ ) : de(
4134
4140
  /*$$scope*/
4135
4141
  m[11]
4136
4142
  ),
4137
- pt
4138
- ) : c && c.p && (!s || x & /*$_*/
4139
- 16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
4140
- 2048) && fe(
4141
- b,
4143
+ yt
4144
+ ) : c && c.p && (!s || v & /*$_*/
4145
+ 16) && c.p(m, s ? v : -1), p ? p.p && (!s || v & /*$$scope*/
4146
+ 2048) && me(
4147
+ p,
4142
4148
  y,
4143
4149
  m,
4144
4150
  /*$$scope*/
4145
4151
  m[11],
4146
- s ? ce(
4152
+ s ? fe(
4147
4153
  y,
4148
4154
  /*$$scope*/
4149
4155
  m[11],
4150
- x,
4151
- _i
4152
- ) : me(
4156
+ v,
4157
+ vi
4158
+ ) : de(
4153
4159
  /*$$scope*/
4154
4160
  m[11]
4155
4161
  ),
4156
- bt
4157
- ) : v && v.p && (!s || x & /*$_, errorcode*/
4158
- 20) && v.p(m, s ? x : -1), !/*hidebuttons*/
4162
+ gt
4163
+ ) : E && E.p && (!s || v & /*$_, errorcode*/
4164
+ 20) && E.p(m, s ? v : -1), !/*hidebuttons*/
4159
4165
  m[1] || /*hidebuttons*/
4160
- m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
4161
- 2 && I(E, 1)) : (E = _t(m), E.c(), I(E, 1), E.m(r, null)) : E && (fr(), F(E, 1, 1, () => {
4162
- E = null;
4163
- }), mr());
4166
+ m[1] === "false" ? _ ? (_.p(m, v), v & /*hidebuttons*/
4167
+ 2 && C(_, 1)) : (_ = vt(m), _.c(), C(_, 1), _.m(r, null)) : _ && (dr(), j(_, 1, 1, () => {
4168
+ _ = null;
4169
+ }), pr());
4164
4170
  },
4165
4171
  i(m) {
4166
- s || (I(u, m), I(c, m), I(v, m), I(E), s = !0);
4172
+ s || (C(u, m), C(c, m), C(E, m), C(_), s = !0);
4167
4173
  },
4168
4174
  o(m) {
4169
- F(u, m), F(c, m), F(v, m), F(E), s = !1;
4175
+ j(u, m), j(c, m), j(E, m), j(_), s = !1;
4170
4176
  },
4171
4177
  d(m) {
4172
- m && N(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
4178
+ m && L(t), u && u.d(m), c && c.d(m), E && E.d(m), _ && _.d(), e[13](null);
4173
4179
  }
4174
4180
  };
4175
4181
  }
4176
- function Si(e, t, r) {
4182
+ function Pi(e, t, r) {
4177
4183
  let n;
4178
- Yt(e, bi, (d) => r(4, n = d));
4179
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
4180
- const v = () => {
4181
- pi(a);
4182
- }, E = () => {
4183
- fetch(c).then((B) => B.json()).then((B) => {
4184
- Object.keys(B).forEach((w) => {
4185
- ft(w, B[w]);
4184
+ er(e, gi, (d) => r(4, n = d));
4185
+ let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: h = "" } = t, { errorcode: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, p;
4186
+ const E = () => {
4187
+ yi(a);
4188
+ }, _ = () => {
4189
+ fetch(c).then((w) => w.json()).then((w) => {
4190
+ Object.keys(w).forEach((S) => {
4191
+ dt(S, w[S]);
4186
4192
  });
4187
- }).catch((B) => {
4188
- console.error(B);
4193
+ }).catch((w) => {
4194
+ console.error(w);
4189
4195
  });
4190
4196
  };
4191
- Object.keys(mt).forEach((d) => {
4192
- ft(d, mt[d]);
4197
+ Object.keys(pt).forEach((d) => {
4198
+ dt(d, pt[d]);
4193
4199
  });
4194
4200
  const m = () => {
4195
4201
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4196
4202
  };
4197
- ar(() => () => {
4203
+ lr(() => () => {
4198
4204
  });
4199
- function x(d) {
4200
- Ne[d ? "unshift" : "push"](() => {
4201
- b = d, r(3, b);
4205
+ function v(d) {
4206
+ Me[d ? "unshift" : "push"](() => {
4207
+ p = d, r(3, p);
4202
4208
  });
4203
4209
  }
4204
4210
  return e.$$set = (d) => {
4205
4211
  "assetsurl" in d && r(0, s = d.assetsurl), "lang" in d && r(6, a = d.lang), "hidebuttons" in d && r(1, h = d.hidebuttons), "errorcode" in d && r(2, u = d.errorcode), "clientstyling" in d && r(7, l = d.clientstyling), "clientstylingurl" in d && r(8, f = d.clientstylingurl), "translationurl" in d && r(9, c = d.translationurl), "mbsource" in d && r(10, y = d.mbsource), "$$scope" in d && r(11, o = d.$$scope);
4206
4212
  }, e.$$.update = () => {
4207
4213
  e.$$.dirty & /*lang*/
4208
- 64 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4209
- 136 && l && b && vr(b, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4210
- 264 && f && b && xr(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4211
- 1032 && y && b && Tr(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
4212
- 512 && c && E();
4214
+ 64 && a && E(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4215
+ 136 && l && p && Tr(p, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4216
+ 264 && f && p && Hr(p, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4217
+ 1032 && y && p && wr(p, `${y}.Style`), e.$$.dirty & /*translationurl*/
4218
+ 512 && c && _();
4213
4219
  }, [
4214
4220
  s,
4215
4221
  h,
4216
4222
  u,
4217
- b,
4223
+ p,
4218
4224
  n,
4219
4225
  m,
4220
4226
  a,
@@ -4224,17 +4230,17 @@ function Si(e, t, r) {
4224
4230
  y,
4225
4231
  o,
4226
4232
  i,
4227
- x
4233
+ v
4228
4234
  ];
4229
4235
  }
4230
- class Ai extends _r {
4236
+ class Oi extends vr {
4231
4237
  constructor(t) {
4232
- super(), gr(
4238
+ super(), _r(
4233
4239
  this,
4234
4240
  t,
4235
- Si,
4236
- wi,
4237
- vt,
4241
+ Pi,
4242
+ Ai,
4243
+ Tt,
4238
4244
  {
4239
4245
  assetsurl: 0,
4240
4246
  lang: 6,
@@ -4245,59 +4251,59 @@ class Ai extends _r {
4245
4251
  translationurl: 9,
4246
4252
  mbsource: 10
4247
4253
  },
4248
- gi
4254
+ _i
4249
4255
  );
4250
4256
  }
4251
4257
  get assetsurl() {
4252
4258
  return this.$$.ctx[0];
4253
4259
  }
4254
4260
  set assetsurl(t) {
4255
- this.$$set({ assetsurl: t }), S();
4261
+ this.$$set({ assetsurl: t }), B();
4256
4262
  }
4257
4263
  get lang() {
4258
4264
  return this.$$.ctx[6];
4259
4265
  }
4260
4266
  set lang(t) {
4261
- this.$$set({ lang: t }), S();
4267
+ this.$$set({ lang: t }), B();
4262
4268
  }
4263
4269
  get hidebuttons() {
4264
4270
  return this.$$.ctx[1];
4265
4271
  }
4266
4272
  set hidebuttons(t) {
4267
- this.$$set({ hidebuttons: t }), S();
4273
+ this.$$set({ hidebuttons: t }), B();
4268
4274
  }
4269
4275
  get errorcode() {
4270
4276
  return this.$$.ctx[2];
4271
4277
  }
4272
4278
  set errorcode(t) {
4273
- this.$$set({ errorcode: t }), S();
4279
+ this.$$set({ errorcode: t }), B();
4274
4280
  }
4275
4281
  get clientstyling() {
4276
4282
  return this.$$.ctx[7];
4277
4283
  }
4278
4284
  set clientstyling(t) {
4279
- this.$$set({ clientstyling: t }), S();
4285
+ this.$$set({ clientstyling: t }), B();
4280
4286
  }
4281
4287
  get clientstylingurl() {
4282
4288
  return this.$$.ctx[8];
4283
4289
  }
4284
4290
  set clientstylingurl(t) {
4285
- this.$$set({ clientstylingurl: t }), S();
4291
+ this.$$set({ clientstylingurl: t }), B();
4286
4292
  }
4287
4293
  get translationurl() {
4288
4294
  return this.$$.ctx[9];
4289
4295
  }
4290
4296
  set translationurl(t) {
4291
- this.$$set({ translationurl: t }), S();
4297
+ this.$$set({ translationurl: t }), B();
4292
4298
  }
4293
4299
  get mbsource() {
4294
4300
  return this.$$.ctx[10];
4295
4301
  }
4296
4302
  set mbsource(t) {
4297
- this.$$set({ mbsource: t }), S();
4303
+ this.$$set({ mbsource: t }), B();
4298
4304
  }
4299
4305
  }
4300
- yr(Ai, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4306
+ Er(Oi, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4301
4307
  export {
4302
- Ai as C
4308
+ Oi as C
4303
4309
  };