@everymatrix/cashier-error 1.86.0 → 1.86.1

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,5 +1,5 @@
1
1
  import "../stencil/ui-image-Ch-GHki1.js";
2
- function P() {
2
+ function B() {
3
3
  }
4
4
  function qt(e, t) {
5
5
  for (const r in t)
@@ -9,71 +9,71 @@ function qt(e, t) {
9
9
  e
10
10
  );
11
11
  }
12
- function Et(e) {
12
+ function _t(e) {
13
13
  return e();
14
14
  }
15
- function qe() {
15
+ function Je() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
18
  function te(e) {
19
- e.forEach(Et);
19
+ e.forEach(_t);
20
20
  }
21
21
  function Ve(e) {
22
22
  return typeof e == "function";
23
23
  }
24
- function vt(e, t) {
24
+ function Et(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 oe;
28
+ function qe(e, t) {
29
+ return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
30
30
  }
31
31
  function Qt(e) {
32
32
  return Object.keys(e).length === 0;
33
33
  }
34
- function xt(e, ...t) {
34
+ function vt(e, ...t) {
35
35
  if (e == null) {
36
36
  for (const n of t)
37
37
  n(void 0);
38
- return P;
38
+ return B;
39
39
  }
40
40
  const r = e.subscribe(...t);
41
41
  return r.unsubscribe ? () => r.unsubscribe() : r;
42
42
  }
43
43
  function Yt(e, t, r) {
44
- e.$$.on_destroy.push(xt(t, r));
44
+ e.$$.on_destroy.push(vt(t, r));
45
45
  }
46
46
  function se(e, t, r, n) {
47
47
  if (e) {
48
- const i = Tt(e, t, r, n);
48
+ const i = xt(e, t, r, n);
49
49
  return e[0](i);
50
50
  }
51
51
  }
52
- function Tt(e, t, r, n) {
52
+ function xt(e, t, r, n) {
53
53
  return e[1] && n ? qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function ue(e, t, r, n) {
55
+ function ae(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)
59
59
  return i;
60
60
  if (typeof i == "object") {
61
- const o = [], a = Math.max(t.dirty.length, i.length);
62
- for (let s = 0; s < a; s += 1)
63
- o[s] = t.dirty[s] | i[s];
61
+ const o = [], s = Math.max(t.dirty.length, i.length);
62
+ for (let a = 0; a < s; a += 1)
63
+ o[a] = t.dirty[a] | i[a];
64
64
  return o;
65
65
  }
66
66
  return t.dirty | i;
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function le(e, t, r, n, i, o) {
70
+ function ue(e, t, r, n, i, o) {
71
71
  if (i) {
72
- const a = Tt(t, r, n, o);
73
- e.p(a, i);
72
+ const s = xt(t, r, n, o);
73
+ e.p(s, i);
74
74
  }
75
75
  }
76
- function he(e) {
76
+ function le(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,13 +82,13 @@ function he(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
88
  function Kt(e, t, r) {
89
89
  const n = er(e);
90
90
  if (!n.getElementById(t)) {
91
- const i = O("style");
91
+ const i = I("style");
92
92
  i.id = t, i.textContent = r, tr(n, i);
93
93
  }
94
94
  }
@@ -103,44 +103,44 @@ function er(e) {
103
103
  ) : e.ownerDocument;
104
104
  }
105
105
  function tr(e, t) {
106
- return A(
106
+ return P(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function $(e, t, r) {
112
+ function V(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function C(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 re(e) {
121
+ function ve(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
124
  function Se() {
125
- return re(" ");
125
+ return ve(" ");
126
126
  }
127
127
  function rr() {
128
- return re("");
128
+ return ve("");
129
129
  }
130
130
  function nr(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function M(e, t, r) {
133
+ function G(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function ce(e, t, r) {
136
+ function he(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 : M(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 : G(e, t, r);
139
139
  }
140
140
  function ir(e) {
141
141
  return Array.from(e.childNodes);
142
142
  }
143
- function Xe(e, t) {
143
+ function Tt(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
@@ -157,49 +157,49 @@ let Y;
157
157
  function Q(e) {
158
158
  Y = e;
159
159
  }
160
- function ar() {
160
+ function sr() {
161
161
  if (!Y)
162
162
  throw new Error("Function called outside component initialization");
163
163
  return Y;
164
164
  }
165
- function sr(e) {
166
- ar().$$.on_mount.push(e);
165
+ function ar(e) {
166
+ sr().$$.on_mount.push(e);
167
167
  }
168
- const G = [], Le = [];
169
- let k = [];
170
- const Ye = [], ur = /* @__PURE__ */ Promise.resolve();
168
+ const D = [], Le = [];
169
+ let U = [];
170
+ const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
171
171
  let Me = !1;
172
172
  function lr() {
173
- Me || (Me = !0, ur.then(B));
173
+ Me || (Me = !0, ur.then(S));
174
174
  }
175
175
  function $e(e) {
176
- k.push(e);
176
+ U.push(e);
177
177
  }
178
178
  const Be = /* @__PURE__ */ new Set();
179
- let D = 0;
180
- function B() {
181
- if (D !== 0)
179
+ let $ = 0;
180
+ function S() {
181
+ if ($ !== 0)
182
182
  return;
183
183
  const e = Y;
184
184
  do {
185
185
  try {
186
- for (; D < G.length; ) {
187
- const t = G[D];
188
- D++, Q(t), hr(t.$$);
186
+ for (; $ < D.length; ) {
187
+ const t = D[$];
188
+ $++, Q(t), hr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
- throw G.length = 0, D = 0, t;
191
+ throw D.length = 0, $ = 0, t;
192
192
  }
193
- for (Q(null), G.length = 0, D = 0; Le.length; )
193
+ for (Q(null), D.length = 0, $ = 0; Le.length; )
194
194
  Le.pop()();
195
- for (let t = 0; t < k.length; t += 1) {
196
- const r = k[t];
195
+ for (let t = 0; t < U.length; t += 1) {
196
+ const r = U[t];
197
197
  Be.has(r) || (Be.add(r), r());
198
198
  }
199
- k.length = 0;
200
- } while (G.length);
201
- for (; Ye.length; )
202
- Ye.pop()();
199
+ U.length = 0;
200
+ } while (D.length);
201
+ for (; Qe.length; )
202
+ Qe.pop()();
203
203
  Me = !1, Be.clear(), Q(e);
204
204
  }
205
205
  function hr(e) {
@@ -211,26 +211,26 @@ function hr(e) {
211
211
  }
212
212
  function cr(e) {
213
213
  const t = [], r = [];
214
- k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
214
+ U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
215
215
  }
216
- const de = /* @__PURE__ */ new Set();
216
+ const me = /* @__PURE__ */ new Set();
217
217
  let fr;
218
218
  function J(e, t) {
219
- e && e.i && (de.delete(e), e.i(t));
219
+ e && e.i && (me.delete(e), e.i(t));
220
220
  }
221
- function fe(e, t, r, n) {
221
+ function ce(e, t, r, n) {
222
222
  if (e && e.o) {
223
- if (de.has(e))
223
+ if (me.has(e))
224
224
  return;
225
- de.add(e), fr.c.push(() => {
226
- de.delete(e);
225
+ me.add(e), fr.c.push(() => {
226
+ me.delete(e);
227
227
  }), e.o(t);
228
228
  }
229
229
  }
230
230
  function mr(e, t, r) {
231
231
  const { fragment: n, after_update: i } = e.$$;
232
232
  n && n.m(t, r), $e(() => {
233
- const o = e.$$.on_mount.map(Et).filter(Ve);
233
+ const o = e.$$.on_mount.map(_t).filter(Ve);
234
234
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
235
235
  }), i.forEach($e);
236
236
  }
@@ -239,9 +239,9 @@ function dr(e, t) {
239
239
  r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
240
240
  }
241
241
  function pr(e, t) {
242
- e.$$.dirty[0] === -1 && (G.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
+ e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
- function br(e, t, r, n, i, o, a = null, s = [-1]) {
244
+ function br(e, t, r, n, i, o, s = null, a = [-1]) {
245
245
  const h = Y;
246
246
  Q(e);
247
247
  const u = e.$$ = {
@@ -249,9 +249,9 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
249
249
  ctx: [],
250
250
  // state
251
251
  props: o,
252
- update: P,
252
+ update: B,
253
253
  not_equal: i,
254
- bound: qe(),
254
+ bound: Je(),
255
255
  // lifecycle
256
256
  on_mount: [],
257
257
  on_destroy: [],
@@ -260,23 +260,23 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
260
260
  after_update: [],
261
261
  context: new Map(t.context || (h ? h.$$.context : [])),
262
262
  // everything else
263
- callbacks: qe(),
264
- dirty: s,
263
+ callbacks: Je(),
264
+ dirty: a,
265
265
  skip_bound: !1,
266
266
  root: t.target || h.$$.root
267
267
  };
268
- a && a(u.root);
268
+ s && s(u.root);
269
269
  let l = !1;
270
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
271
- const y = p.length ? p[0] : c;
272
- return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), l && pr(e, f)), c;
270
+ if (u.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
271
+ const p = d.length ? d[0] : m;
272
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && pr(e, f)), m;
273
273
  }) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
274
274
  if (t.hydrate) {
275
275
  const f = ir(t.target);
276
- u.fragment && u.fragment.l(f), f.forEach(C);
276
+ u.fragment && u.fragment.l(f), f.forEach(L);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
- t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), B();
279
+ t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), S();
280
280
  }
281
281
  Q(h);
282
282
  }
@@ -323,17 +323,17 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
323
323
  let o;
324
324
  return {
325
325
  c: function() {
326
- o = O("slot"), i !== "default" && M(o, "name", i);
326
+ o = I("slot"), i !== "default" && G(o, "name", i);
327
327
  },
328
328
  /**
329
329
  * @param {HTMLElement} target
330
330
  * @param {HTMLElement} [anchor]
331
331
  */
332
332
  m: function(h, u) {
333
- $(h, o, u);
333
+ V(h, o, u);
334
334
  },
335
335
  d: function(h) {
336
- h && C(o);
336
+ h && L(o);
337
337
  }
338
338
  };
339
339
  };
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
345
345
  i in r && (t[i] = [e(i)]);
346
346
  for (const i of this.attributes) {
347
347
  const o = this.$$g_p(i.name);
348
- o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
348
+ o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
349
349
  }
350
350
  for (const i in this.$$p_d)
351
351
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
363
363
  this.$$r = !0;
364
364
  for (const i in this.$$p_d)
365
365
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
366
- const o = pe(
366
+ const o = de(
367
367
  i,
368
368
  this.$$d[i],
369
369
  this.$$p_d,
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
376
376
  this.$$c.$$.after_update.push(n), n();
377
377
  for (const i in this.$$l)
378
378
  for (const o of this.$$l[i]) {
379
- const a = this.$$c.$on(i, o);
380
- this.$$l_u.set(o, a);
379
+ const s = this.$$c.$on(i, o);
380
+ this.$$l_u.set(o, s);
381
381
  }
382
382
  this.$$l = {};
383
383
  }
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
385
385
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
386
386
  // and setting attributes through setAttribute etc, this is helpful
387
387
  attributeChangedCallback(e, t, r) {
388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
389
389
  }
390
390
  disconnectedCallback() {
391
391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
398
398
  ) || e;
399
399
  }
400
400
  });
401
- function pe(e, t, r, n) {
401
+ function de(e, t, r, n) {
402
402
  const i = r[e]?.type;
403
403
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
404
  return t;
@@ -428,33 +428,33 @@ function pe(e, t, r, n) {
428
428
  }
429
429
  }
430
430
  function gr(e, t, r, n, i, o) {
431
- let a = class extends Ht {
431
+ let s = class extends Ht {
432
432
  constructor() {
433
433
  super(e, r, i), this.$$p_d = t;
434
434
  }
435
435
  static get observedAttributes() {
436
436
  return Object.keys(t).map(
437
- (s) => (t[s].attribute || s).toLowerCase()
437
+ (a) => (t[a].attribute || a).toLowerCase()
438
438
  );
439
439
  }
440
440
  };
441
- return Object.keys(t).forEach((s) => {
442
- Object.defineProperty(a.prototype, s, {
441
+ return Object.keys(t).forEach((a) => {
442
+ Object.defineProperty(s.prototype, a, {
443
443
  get() {
444
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
444
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
445
445
  },
446
446
  set(h) {
447
- h = pe(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
447
+ h = de(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
448
448
  }
449
449
  });
450
- }), n.forEach((s) => {
451
- Object.defineProperty(a.prototype, s, {
450
+ }), n.forEach((a) => {
451
+ Object.defineProperty(s.prototype, a, {
452
452
  get() {
453
- return this.$$c?.[s];
453
+ return this.$$c?.[a];
454
454
  }
455
455
  });
456
456
  }), e.element = /** @type {any} */
457
- a, a;
457
+ s, s;
458
458
  }
459
459
  class yr {
460
460
  /**
@@ -475,7 +475,7 @@ class yr {
475
475
  $$set = void 0;
476
476
  /** @returns {void} */
477
477
  $destroy() {
478
- dr(this, 1), this.$destroy = P;
478
+ dr(this, 1), this.$destroy = B;
479
479
  }
480
480
  /**
481
481
  * @template {Extract<keyof Events, string>} K
@@ -485,7 +485,7 @@ class yr {
485
485
  */
486
486
  $on(t, r) {
487
487
  if (!Ve(r))
488
- return P;
488
+ return B;
489
489
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
490
490
  return n.push(r), () => {
491
491
  const i = n.indexOf(r);
@@ -527,66 +527,66 @@ function xr(e, t, r) {
527
527
  });
528
528
  }
529
529
  }
530
- const U = [];
530
+ const R = [];
531
531
  function Tr(e, t) {
532
532
  return {
533
533
  subscribe: xe(e, t).subscribe
534
534
  };
535
535
  }
536
- function xe(e, t = P) {
536
+ function xe(e, t = B) {
537
537
  let r;
538
538
  const n = /* @__PURE__ */ new Set();
539
- function i(s) {
540
- if (vt(e, s) && (e = s, r)) {
541
- const h = !U.length;
539
+ function i(a) {
540
+ if (Et(e, a) && (e = a, r)) {
541
+ const h = !R.length;
542
542
  for (const u of n)
543
- u[1](), U.push(u, e);
543
+ u[1](), R.push(u, e);
544
544
  if (h) {
545
- for (let u = 0; u < U.length; u += 2)
546
- U[u][0](U[u + 1]);
547
- U.length = 0;
545
+ for (let u = 0; u < R.length; u += 2)
546
+ R[u][0](R[u + 1]);
547
+ R.length = 0;
548
548
  }
549
549
  }
550
550
  }
551
- function o(s) {
552
- i(s(e));
551
+ function o(a) {
552
+ i(a(e));
553
553
  }
554
- function a(s, h = P) {
555
- const u = [s, h];
556
- return n.add(u), n.size === 1 && (r = t(i, o) || P), s(e), () => {
554
+ function s(a, h = B) {
555
+ const u = [a, h];
556
+ return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
557
557
  n.delete(u), n.size === 0 && r && (r(), r = null);
558
558
  };
559
559
  }
560
- return { set: i, update: o, subscribe: a };
560
+ return { set: i, update: o, subscribe: s };
561
561
  }
562
562
  function X(e, t, r) {
563
563
  const n = !Array.isArray(e), i = n ? [e] : e;
564
564
  if (!i.every(Boolean))
565
565
  throw new Error("derived() expects stores as input, got a falsy value");
566
566
  const o = t.length < 2;
567
- return Tr(r, (a, s) => {
567
+ return Tr(r, (s, a) => {
568
568
  let h = !1;
569
569
  const u = [];
570
- let l = 0, f = P;
571
- const c = () => {
570
+ let l = 0, f = B;
571
+ const m = () => {
572
572
  if (l)
573
573
  return;
574
574
  f();
575
- const y = t(n ? u[0] : u, a, s);
576
- o ? a(y) : f = Ve(y) ? y : P;
577
- }, p = i.map(
578
- (y, _) => xt(
579
- y,
575
+ const p = t(n ? u[0] : u, s, a);
576
+ o ? s(p) : f = Ve(p) ? p : B;
577
+ }, d = i.map(
578
+ (p, v) => vt(
579
+ p,
580
580
  (T) => {
581
- u[_] = T, l &= ~(1 << _), h && c();
581
+ u[v] = T, l &= ~(1 << v), h && m();
582
582
  },
583
583
  () => {
584
- l |= 1 << _;
584
+ l |= 1 << v;
585
585
  }
586
586
  )
587
587
  );
588
- return h = !0, c(), function() {
589
- te(p), f(), h = !1;
588
+ return h = !0, m(), function() {
589
+ te(d), f(), h = !1;
590
590
  };
591
591
  });
592
592
  }
@@ -611,7 +611,7 @@ function Ir(e) {
611
611
  return Array.isArray(e) ? [] : {};
612
612
  }
613
613
  function K(e, t) {
614
- return t.clone !== !1 && t.isMergeableObject(e) ? F(Ir(e), e, t) : e;
614
+ return t.clone !== !1 && t.isMergeableObject(e) ? k(Ir(e), e, t) : e;
615
615
  }
616
616
  function Cr(e, t, r) {
617
617
  return e.concat(t).map(function(n) {
@@ -620,16 +620,16 @@ function Cr(e, t, r) {
620
620
  }
621
621
  function Nr(e, t) {
622
622
  if (!t.customMerge)
623
- return F;
623
+ return k;
624
624
  var r = t.customMerge(e);
625
- return typeof r == "function" ? r : F;
625
+ return typeof r == "function" ? r : k;
626
626
  }
627
627
  function Lr(e) {
628
628
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
629
629
  return Object.propertyIsEnumerable.call(e, t);
630
630
  }) : [];
631
631
  }
632
- function Ke(e) {
632
+ function Ye(e) {
633
633
  return Object.keys(e).concat(Lr(e));
634
634
  }
635
635
  function wt(e, t) {
@@ -644,25 +644,25 @@ function Mr(e, t) {
644
644
  }
645
645
  function $r(e, t, r) {
646
646
  var n = {};
647
- return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
647
+ return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
648
648
  n[i] = K(e[i], r);
649
- }), Ke(t).forEach(function(i) {
649
+ }), Ye(t).forEach(function(i) {
650
650
  Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
651
651
  }), n;
652
652
  }
653
- function F(e, t, r) {
653
+ function k(e, t, r) {
654
654
  r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = K;
655
655
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
656
656
  return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
657
657
  }
658
- F.all = function(t, r) {
658
+ k.all = function(t, r) {
659
659
  if (!Array.isArray(t))
660
660
  throw new Error("first argument should be an array");
661
661
  return t.reduce(function(n, i) {
662
- return F(n, i, r);
662
+ return k(n, i, r);
663
663
  }, {});
664
664
  };
665
- var Rr = F, Dr = Rr;
665
+ var Rr = k, Dr = Rr;
666
666
  const Ur = /* @__PURE__ */ Hr(Dr);
667
667
  var Re = function(e, t) {
668
668
  return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
@@ -681,15 +681,15 @@ function Te(e, t) {
681
681
  }
682
682
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
683
683
  }
684
- var S = function() {
685
- return S = Object.assign || function(t) {
684
+ var w = function() {
685
+ return w = Object.assign || function(t) {
686
686
  for (var r, n = 1, i = arguments.length; n < i; n++) {
687
687
  r = arguments[n];
688
688
  for (var o in r)
689
689
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
690
690
  }
691
691
  return t;
692
- }, S.apply(this, arguments);
692
+ }, w.apply(this, arguments);
693
693
  };
694
694
  function Gr(e, t) {
695
695
  var r = {};
@@ -754,60 +754,60 @@ var Vr = function() {
754
754
  }
755
755
  }, Oe = {
756
756
  variadic: zr
757
- }, ye = function() {
758
- return ye = Object.assign || function(t) {
757
+ }, ge = function() {
758
+ return ge = Object.assign || function(t) {
759
759
  for (var r, n = 1, i = arguments.length; n < i; n++) {
760
760
  r = arguments[n];
761
761
  for (var o in r)
762
762
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
763
763
  }
764
764
  return t;
765
- }, ye.apply(this, arguments);
765
+ }, ge.apply(this, arguments);
766
766
  };
767
767
  var b;
768
768
  (function(e) {
769
769
  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";
770
770
  })(b || (b = {}));
771
- var v;
771
+ var _;
772
772
  (function(e) {
773
773
  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";
774
- })(v || (v = {}));
775
- var j;
774
+ })(_ || (_ = {}));
775
+ var F;
776
776
  (function(e) {
777
777
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
778
- })(j || (j = {}));
779
- function et(e) {
780
- return e.type === v.literal;
778
+ })(F || (F = {}));
779
+ function Ke(e) {
780
+ return e.type === _.literal;
781
781
  }
782
782
  function Zr(e) {
783
- return e.type === v.argument;
783
+ return e.type === _.argument;
784
784
  }
785
785
  function At(e) {
786
- return e.type === v.number;
786
+ return e.type === _.number;
787
787
  }
788
788
  function Pt(e) {
789
- return e.type === v.date;
789
+ return e.type === _.date;
790
790
  }
791
791
  function Ot(e) {
792
- return e.type === v.time;
792
+ return e.type === _.time;
793
793
  }
794
794
  function It(e) {
795
- return e.type === v.select;
795
+ return e.type === _.select;
796
796
  }
797
797
  function Ct(e) {
798
- return e.type === v.plural;
798
+ return e.type === _.plural;
799
799
  }
800
800
  function Jr(e) {
801
- return e.type === v.pound;
801
+ return e.type === _.pound;
802
802
  }
803
803
  function Nt(e) {
804
- return e.type === v.tag;
804
+ return e.type === _.tag;
805
805
  }
806
806
  function Lt(e) {
807
- return !!(e && typeof e == "object" && e.type === j.number);
807
+ return !!(e && typeof e == "object" && e.type === F.number);
808
808
  }
809
809
  function De(e) {
810
- return !!(e && typeof e == "object" && e.type === j.dateTime);
810
+ return !!(e && typeof e == "object" && e.type === F.dateTime);
811
811
  }
812
812
  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;
813
813
  function Qr(e) {
@@ -901,40 +901,40 @@ function Qr(e) {
901
901
  return "";
902
902
  }), t;
903
903
  }
904
- var x = function() {
905
- return x = Object.assign || function(t) {
904
+ var E = function() {
905
+ return E = Object.assign || function(t) {
906
906
  for (var r, n = 1, i = arguments.length; n < i; n++) {
907
907
  r = arguments[n];
908
908
  for (var o in r)
909
909
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
910
910
  }
911
911
  return t;
912
- }, x.apply(this, arguments);
912
+ }, E.apply(this, arguments);
913
913
  };
914
914
  var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
915
915
  function Kr(e) {
916
916
  if (e.length === 0)
917
917
  throw new Error("Number skeleton cannot be empty");
918
- for (var t = e.split(Yr).filter(function(c) {
919
- return c.length > 0;
918
+ for (var t = e.split(Yr).filter(function(m) {
919
+ return m.length > 0;
920
920
  }), r = [], n = 0, i = t; n < i.length; n++) {
921
- var o = i[n], a = o.split("/");
922
- if (a.length === 0)
921
+ var o = i[n], s = o.split("/");
922
+ if (s.length === 0)
923
923
  throw new Error("Invalid number skeleton");
924
- for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
924
+ for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
925
925
  var f = l[u];
926
926
  if (f.length === 0)
927
927
  throw new Error("Invalid number skeleton");
928
928
  }
929
- r.push({ stem: s, options: h });
929
+ r.push({ stem: a, options: h });
930
930
  }
931
931
  return r;
932
932
  }
933
933
  function en(e) {
934
934
  return e.replace(/^(.*?)-/, "");
935
935
  }
936
- var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
937
- function rt(e) {
936
+ var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
937
+ function tt(e) {
938
938
  var t = {};
939
939
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
940
940
  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)), "";
@@ -994,7 +994,7 @@ function rn(e) {
994
994
  }
995
995
  return t;
996
996
  }
997
- function nt(e) {
997
+ function rt(e) {
998
998
  var t = {}, r = Dt(e);
999
999
  return r || t;
1000
1000
  }
@@ -1033,13 +1033,13 @@ function nn(e) {
1033
1033
  t.notation = "compact", t.compactDisplay = "long";
1034
1034
  continue;
1035
1035
  case "scientific":
1036
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1037
- return x(x({}, h), nt(u));
1036
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1037
+ return E(E({}, h), rt(u));
1038
1038
  }, {}));
1039
1039
  continue;
1040
1040
  case "engineering":
1041
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1042
- return x(x({}, h), nt(u));
1041
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1042
+ return E(E({}, h), rt(u));
1043
1043
  }, {}));
1044
1044
  continue;
1045
1045
  case "notation-simple":
@@ -1084,13 +1084,13 @@ function nn(e) {
1084
1084
  case "integer-width":
1085
1085
  if (i.options.length > 1)
1086
1086
  throw new RangeError("integer-width stems only accept a single optional option");
1087
- i.options[0].replace(tn, function(h, u, l, f, c, p) {
1087
+ i.options[0].replace(tn, function(h, u, l, f, m, d) {
1088
1088
  if (u)
1089
1089
  t.minimumIntegerDigits = l.length;
1090
1090
  else {
1091
- if (f && c)
1091
+ if (f && m)
1092
1092
  throw new Error("We currently do not support maximum integer digits");
1093
- if (p)
1093
+ if (d)
1094
1094
  throw new Error("We currently do not support exact integer digits");
1095
1095
  }
1096
1096
  return "";
@@ -1101,28 +1101,28 @@ function nn(e) {
1101
1101
  t.minimumIntegerDigits = i.stem.length;
1102
1102
  continue;
1103
1103
  }
1104
- if (tt.test(i.stem)) {
1104
+ if (et.test(i.stem)) {
1105
1105
  if (i.options.length > 1)
1106
1106
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1107
- i.stem.replace(tt, function(h, u, l, f, c, p) {
1108
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1107
+ i.stem.replace(et, function(h, u, l, f, m, d) {
1108
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1109
1109
  });
1110
1110
  var o = i.options[0];
1111
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), rt(o)));
1111
+ o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), tt(o)));
1112
1112
  continue;
1113
1113
  }
1114
1114
  if ($t.test(i.stem)) {
1115
- t = x(x({}, t), rt(i.stem));
1115
+ t = E(E({}, t), tt(i.stem));
1116
1116
  continue;
1117
1117
  }
1118
- var a = Dt(i.stem);
1119
- a && (t = x(x({}, t), a));
1120
- var s = rn(i.stem);
1121
- s && (t = x(x({}, t), s));
1118
+ var s = Dt(i.stem);
1119
+ s && (t = E(E({}, t), s));
1120
+ var a = rn(i.stem);
1121
+ a && (t = E(E({}, t), a));
1122
1122
  }
1123
1123
  return t;
1124
1124
  }
1125
- var me = {
1125
+ var fe = {
1126
1126
  "001": [
1127
1127
  "H",
1128
1128
  "h"
@@ -2543,17 +2543,17 @@ function on(e, t) {
2543
2543
  if (i === "j") {
2544
2544
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2545
2545
  o++, n++;
2546
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = an(t);
2547
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2546
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = sn(t);
2547
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2548
2548
  r += h;
2549
- for (; a-- > 0; )
2549
+ for (; s-- > 0; )
2550
2550
  r = u + r;
2551
2551
  } else
2552
2552
  i === "J" ? r += "H" : r += i;
2553
2553
  }
2554
2554
  return r;
2555
2555
  }
2556
- function an(e) {
2556
+ function sn(e) {
2557
2557
  var t = e.hourCycle;
2558
2558
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2559
2559
  e.hourCycles && // @ts-ignore
@@ -2572,11 +2572,11 @@ function an(e) {
2572
2572
  }
2573
2573
  var r = e.language, n;
2574
2574
  r !== "root" && (n = e.maximize().region);
2575
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2575
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2576
2576
  return i[0];
2577
2577
  }
2578
- var Ie, sn = new RegExp("^".concat(Mt.source, "*")), un = new RegExp("".concat(Mt.source, "*$"));
2579
- function g(e, t) {
2578
+ var Ie, an = new RegExp("^".concat(Mt.source, "*")), un = new RegExp("".concat(Mt.source, "*$"));
2579
+ function y(e, t) {
2580
2580
  return { start: e, end: t };
2581
2581
  }
2582
2582
  var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
@@ -2588,7 +2588,7 @@ try {
2588
2588
  } catch {
2589
2589
  Ue = !1;
2590
2590
  }
2591
- var it = ln ? (
2591
+ var nt = ln ? (
2592
2592
  // Native
2593
2593
  function(t, r, n) {
2594
2594
  return t.startsWith(r, n);
@@ -2603,21 +2603,21 @@ var it = ln ? (
2603
2603
  function() {
2604
2604
  for (var t = [], r = 0; r < arguments.length; r++)
2605
2605
  t[r] = arguments[r];
2606
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2607
- if (a = t[o++], a > 1114111)
2608
- throw RangeError(a + " is not a valid code point");
2609
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2606
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2607
+ if (s = t[o++], s > 1114111)
2608
+ throw RangeError(s + " is not a valid code point");
2609
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2610
2610
  }
2611
2611
  return n;
2612
2612
  }
2613
- ), ot = (
2613
+ ), it = (
2614
2614
  // native
2615
2615
  cn ? Object.fromEntries : (
2616
2616
  // Ponyfill
2617
2617
  function(t) {
2618
2618
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2619
- var o = i[n], a = o[0], s = o[1];
2620
- r[a] = s;
2619
+ var o = i[n], s = o[0], a = o[1];
2620
+ r[s] = a;
2621
2621
  }
2622
2622
  return r;
2623
2623
  }
@@ -2644,7 +2644,7 @@ var it = ln ? (
2644
2644
  ) : (
2645
2645
  // Ponyfill
2646
2646
  function(t) {
2647
- return t.replace(sn, "");
2647
+ return t.replace(an, "");
2648
2648
  }
2649
2649
  ), _n = dn ? (
2650
2650
  // Native
@@ -2662,11 +2662,11 @@ function Gt(e, t) {
2662
2662
  }
2663
2663
  var ke;
2664
2664
  if (Ue) {
2665
- var at = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2665
+ var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2666
2666
  ke = function(t, r) {
2667
2667
  var n;
2668
- at.lastIndex = r;
2669
- var i = at.exec(t);
2668
+ ot.lastIndex = r;
2669
+ var i = ot.exec(t);
2670
2670
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2671
2671
  };
2672
2672
  } else
@@ -2693,33 +2693,33 @@ var En = (
2693
2693
  for (var i = []; !this.isEOF(); ) {
2694
2694
  var o = this.char();
2695
2695
  if (o === 123) {
2696
- var a = this.parseArgument(t, n);
2697
- if (a.err)
2698
- return a;
2699
- i.push(a.val);
2696
+ var s = this.parseArgument(t, n);
2697
+ if (s.err)
2698
+ return s;
2699
+ i.push(s.val);
2700
2700
  } else {
2701
2701
  if (o === 125 && t > 0)
2702
2702
  break;
2703
2703
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2704
- var s = this.clonePosition();
2704
+ var a = this.clonePosition();
2705
2705
  this.bump(), i.push({
2706
- type: v.pound,
2707
- location: g(s, this.clonePosition())
2706
+ type: _.pound,
2707
+ location: y(a, this.clonePosition())
2708
2708
  });
2709
2709
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2710
2710
  if (n)
2711
2711
  break;
2712
- return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2712
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2713
2713
  } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2714
- var a = this.parseTag(t, r);
2715
- if (a.err)
2716
- return a;
2717
- i.push(a.val);
2714
+ var s = this.parseTag(t, r);
2715
+ if (s.err)
2716
+ return s;
2717
+ i.push(s.val);
2718
2718
  } else {
2719
- var a = this.parseLiteral(t, r);
2720
- if (a.err)
2721
- return a;
2722
- i.push(a.val);
2719
+ var s = this.parseLiteral(t, r);
2720
+ if (s.err)
2721
+ return s;
2722
+ i.push(s.val);
2723
2723
  }
2724
2724
  }
2725
2725
  }
@@ -2731,9 +2731,9 @@ var En = (
2731
2731
  if (this.bumpSpace(), this.bumpIf("/>"))
2732
2732
  return {
2733
2733
  val: {
2734
- type: v.literal,
2734
+ type: _.literal,
2735
2735
  value: "<".concat(i, "/>"),
2736
- location: g(n, this.clonePosition())
2736
+ location: y(n, this.clonePosition())
2737
2737
  },
2738
2738
  err: null
2739
2739
  };
@@ -2741,24 +2741,24 @@ var En = (
2741
2741
  var o = this.parseMessage(t + 1, r, !0);
2742
2742
  if (o.err)
2743
2743
  return o;
2744
- var a = o.val, s = this.clonePosition();
2744
+ var s = o.val, a = this.clonePosition();
2745
2745
  if (this.bumpIf("</")) {
2746
2746
  if (this.isEOF() || !Fe(this.char()))
2747
- return this.error(b.INVALID_TAG, g(s, this.clonePosition()));
2747
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2748
2748
  var h = this.clonePosition(), u = this.parseTagName();
2749
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2749
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2750
2750
  val: {
2751
- type: v.tag,
2751
+ type: _.tag,
2752
2752
  value: i,
2753
- children: a,
2754
- location: g(n, this.clonePosition())
2753
+ children: s,
2754
+ location: y(n, this.clonePosition())
2755
2755
  },
2756
2756
  err: null
2757
- } : this.error(b.INVALID_TAG, g(s, this.clonePosition())));
2757
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2758
2758
  } else
2759
- return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2759
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2760
2760
  } else
2761
- return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2761
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2762
2762
  }, e.prototype.parseTagName = function() {
2763
2763
  var t = this.offset();
2764
2764
  for (this.bump(); !this.isEOF() && xn(this.char()); )
@@ -2771,21 +2771,21 @@ var En = (
2771
2771
  i += o;
2772
2772
  continue;
2773
2773
  }
2774
- var a = this.tryParseUnquoted(t, r);
2775
- if (a) {
2776
- i += a;
2777
- continue;
2778
- }
2779
- var s = this.tryParseLeftAngleBracket();
2774
+ var s = this.tryParseUnquoted(t, r);
2780
2775
  if (s) {
2781
2776
  i += s;
2782
2777
  continue;
2783
2778
  }
2779
+ var a = this.tryParseLeftAngleBracket();
2780
+ if (a) {
2781
+ i += a;
2782
+ continue;
2783
+ }
2784
2784
  break;
2785
2785
  }
2786
- var h = g(n, this.clonePosition());
2786
+ var h = y(n, this.clonePosition());
2787
2787
  return {
2788
- val: { type: v.literal, value: i, location: h },
2788
+ val: { type: _.literal, value: i, location: h },
2789
2789
  err: null
2790
2790
  };
2791
2791
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2833,40 +2833,40 @@ var En = (
2833
2833
  }, e.prototype.parseArgument = function(t, r) {
2834
2834
  var n = this.clonePosition();
2835
2835
  if (this.bump(), this.bumpSpace(), this.isEOF())
2836
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2836
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2837
2837
  if (this.char() === 125)
2838
- return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2838
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2839
2839
  var i = this.parseIdentifierIfPossible().value;
2840
2840
  if (!i)
2841
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2841
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2842
2842
  if (this.bumpSpace(), this.isEOF())
2843
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2843
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2844
2844
  switch (this.char()) {
2845
2845
  case 125:
2846
2846
  return this.bump(), {
2847
2847
  val: {
2848
- type: v.argument,
2848
+ type: _.argument,
2849
2849
  // value does not include the opening and closing braces.
2850
2850
  value: i,
2851
- location: g(n, this.clonePosition())
2851
+ location: y(n, this.clonePosition())
2852
2852
  },
2853
2853
  err: null
2854
2854
  };
2855
2855
  case 44:
2856
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2856
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2857
2857
  default:
2858
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2858
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2859
2859
  }
2860
2860
  }, e.prototype.parseIdentifierIfPossible = function() {
2861
2861
  var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2862
2862
  this.bumpTo(i);
2863
- var o = this.clonePosition(), a = g(t, o);
2864
- return { value: n, location: a };
2863
+ var o = this.clonePosition(), s = y(t, o);
2864
+ return { value: n, location: s };
2865
2865
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2866
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2867
- switch (s) {
2866
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2867
+ switch (a) {
2868
2868
  case "":
2869
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(a, h));
2869
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
2870
2870
  case "number":
2871
2871
  case "date":
2872
2872
  case "time": {
@@ -2877,46 +2877,46 @@ var En = (
2877
2877
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2878
2878
  if (f.err)
2879
2879
  return f;
2880
- var c = _n(f.val);
2881
- if (c.length === 0)
2882
- return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2883
- var p = g(l, this.clonePosition());
2884
- u = { style: c, styleLocation: p };
2880
+ var m = _n(f.val);
2881
+ if (m.length === 0)
2882
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2883
+ var d = y(l, this.clonePosition());
2884
+ u = { style: m, styleLocation: d };
2885
2885
  }
2886
- var y = this.tryParseArgumentClose(i);
2887
- if (y.err)
2888
- return y;
2889
- var _ = g(i, this.clonePosition());
2890
- if (u && it(u?.style, "::", 0)) {
2886
+ var p = this.tryParseArgumentClose(i);
2887
+ if (p.err)
2888
+ return p;
2889
+ var v = y(i, this.clonePosition());
2890
+ if (u && nt(u?.style, "::", 0)) {
2891
2891
  var T = yn(u.style.slice(2));
2892
- if (s === "number") {
2892
+ if (a === "number") {
2893
2893
  var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
2894
2894
  return f.err ? f : {
2895
- val: { type: v.number, value: n, location: _, style: f.val },
2895
+ val: { type: _.number, value: n, location: v, style: f.val },
2896
2896
  err: null
2897
2897
  };
2898
2898
  } else {
2899
2899
  if (T.length === 0)
2900
- return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2901
- var w = T;
2902
- this.locale && (w = on(T, this.locale));
2903
- var c = {
2904
- type: j.dateTime,
2905
- pattern: w,
2900
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
2901
+ var x = T;
2902
+ this.locale && (x = on(T, this.locale));
2903
+ var m = {
2904
+ type: F.dateTime,
2905
+ pattern: x,
2906
2906
  location: u.styleLocation,
2907
- parsedOptions: this.shouldParseSkeletons ? Qr(w) : {}
2908
- }, d = s === "date" ? v.date : v.time;
2907
+ parsedOptions: this.shouldParseSkeletons ? Qr(x) : {}
2908
+ }, c = a === "date" ? _.date : _.time;
2909
2909
  return {
2910
- val: { type: d, value: n, location: _, style: c },
2910
+ val: { type: c, value: n, location: v, style: m },
2911
2911
  err: null
2912
2912
  };
2913
2913
  }
2914
2914
  }
2915
2915
  return {
2916
2916
  val: {
2917
- type: s === "number" ? v.number : s === "date" ? v.date : v.time,
2917
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2918
2918
  value: n,
2919
- location: _,
2919
+ location: v,
2920
2920
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2921
2921
  },
2922
2922
  err: null
@@ -2925,52 +2925,52 @@ var En = (
2925
2925
  case "plural":
2926
2926
  case "selectordinal":
2927
2927
  case "select": {
2928
- var m = this.clonePosition();
2928
+ var g = this.clonePosition();
2929
2929
  if (this.bumpSpace(), !this.bumpIf(","))
2930
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(m, ye({}, m)));
2930
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ge({}, g)));
2931
2931
  this.bumpSpace();
2932
- var E = this.parseIdentifierIfPossible(), L = 0;
2933
- if (s !== "select" && E.value === "offset") {
2932
+ var A = this.parseIdentifierIfPossible(), N = 0;
2933
+ if (a !== "select" && A.value === "offset") {
2934
2934
  if (!this.bumpIf(":"))
2935
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2935
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2936
2936
  this.bumpSpace();
2937
2937
  var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2938
2938
  if (f.err)
2939
2939
  return f;
2940
- this.bumpSpace(), E = this.parseIdentifierIfPossible(), L = f.val;
2940
+ this.bumpSpace(), A = this.parseIdentifierIfPossible(), N = f.val;
2941
2941
  }
2942
- var oe = this.tryParsePluralOrSelectOptions(t, s, r, E);
2943
- if (oe.err)
2944
- return oe;
2945
- var y = this.tryParseArgumentClose(i);
2946
- if (y.err)
2947
- return y;
2948
- var Je = g(i, this.clonePosition());
2949
- return s === "select" ? {
2942
+ var ie = this.tryParsePluralOrSelectOptions(t, a, r, A);
2943
+ if (ie.err)
2944
+ return ie;
2945
+ var p = this.tryParseArgumentClose(i);
2946
+ if (p.err)
2947
+ return p;
2948
+ var Ze = y(i, this.clonePosition());
2949
+ return a === "select" ? {
2950
2950
  val: {
2951
- type: v.select,
2951
+ type: _.select,
2952
2952
  value: n,
2953
- options: ot(oe.val),
2954
- location: Je
2953
+ options: it(ie.val),
2954
+ location: Ze
2955
2955
  },
2956
2956
  err: null
2957
2957
  } : {
2958
2958
  val: {
2959
- type: v.plural,
2959
+ type: _.plural,
2960
2960
  value: n,
2961
- options: ot(oe.val),
2962
- offset: L,
2963
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2964
- location: Je
2961
+ options: it(ie.val),
2962
+ offset: N,
2963
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2964
+ location: Ze
2965
2965
  },
2966
2966
  err: null
2967
2967
  };
2968
2968
  }
2969
2969
  default:
2970
- return this.error(b.INVALID_ARGUMENT_TYPE, g(a, h));
2970
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
2971
2971
  }
2972
2972
  }, e.prototype.tryParseArgumentClose = function(t) {
2973
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2973
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2974
2974
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2975
2975
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2976
2976
  var n = this.char();
@@ -2979,7 +2979,7 @@ var En = (
2979
2979
  this.bump();
2980
2980
  var i = this.clonePosition();
2981
2981
  if (!this.bumpUntil("'"))
2982
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
2982
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2983
2983
  this.bump();
2984
2984
  break;
2985
2985
  }
@@ -3015,7 +3015,7 @@ var En = (
3015
3015
  }
3016
3016
  return {
3017
3017
  val: {
3018
- type: j.number,
3018
+ type: F.number,
3019
3019
  tokens: n,
3020
3020
  location: r,
3021
3021
  parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
@@ -3023,50 +3023,50 @@ var En = (
3023
3023
  err: null
3024
3024
  };
3025
3025
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3026
- for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3026
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3027
3027
  if (u.length === 0) {
3028
3028
  var f = this.clonePosition();
3029
3029
  if (r !== "select" && this.bumpIf("=")) {
3030
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3031
- if (c.err)
3032
- return c;
3033
- l = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3030
+ var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3031
+ if (m.err)
3032
+ return m;
3033
+ l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3034
3034
  } else
3035
3035
  break;
3036
3036
  }
3037
3037
  if (h.has(u))
3038
3038
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3039
- u === "other" && (a = !0), this.bumpSpace();
3040
- var p = this.clonePosition();
3039
+ u === "other" && (s = !0), this.bumpSpace();
3040
+ var d = this.clonePosition();
3041
3041
  if (!this.bumpIf("{"))
3042
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3043
- var y = this.parseMessage(t + 1, r, n);
3044
- if (y.err)
3045
- return y;
3046
- var _ = this.tryParseArgumentClose(p);
3047
- if (_.err)
3048
- return _;
3049
- s.push([
3042
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3043
+ var p = this.parseMessage(t + 1, r, n);
3044
+ if (p.err)
3045
+ return p;
3046
+ var v = this.tryParseArgumentClose(d);
3047
+ if (v.err)
3048
+ return v;
3049
+ a.push([
3050
3050
  u,
3051
3051
  {
3052
- value: y.val,
3053
- location: g(p, this.clonePosition())
3052
+ value: p.val,
3053
+ location: y(d, this.clonePosition())
3054
3054
  }
3055
3055
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3056
3056
  }
3057
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3057
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3058
3058
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3059
3059
  var n = 1, i = this.clonePosition();
3060
3060
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3061
- for (var o = !1, a = 0; !this.isEOF(); ) {
3062
- var s = this.char();
3063
- if (s >= 48 && s <= 57)
3064
- o = !0, a = a * 10 + (s - 48), this.bump();
3061
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3062
+ var a = this.char();
3063
+ if (a >= 48 && a <= 57)
3064
+ o = !0, s = s * 10 + (a - 48), this.bump();
3065
3065
  else
3066
3066
  break;
3067
3067
  }
3068
- var h = g(i, this.clonePosition());
3069
- return o ? (a *= n, bn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3068
+ var h = y(i, this.clonePosition());
3069
+ return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3070
3070
  }, e.prototype.offset = function() {
3071
3071
  return this.position.offset;
3072
3072
  }, e.prototype.isEOF = function() {
@@ -3100,7 +3100,7 @@ var En = (
3100
3100
  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);
3101
3101
  }
3102
3102
  }, e.prototype.bumpIf = function(t) {
3103
- if (it(this.message, t, this.offset())) {
3103
+ if (nt(this.message, t, this.offset())) {
3104
3104
  for (var r = 0; r < t.length; r++)
3105
3105
  this.bump();
3106
3106
  return !0;
@@ -3157,7 +3157,7 @@ function je(e) {
3157
3157
  });
3158
3158
  }
3159
3159
  function Hn(e, t) {
3160
- t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3160
+ t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3161
3161
  var r = new En(e, t).parse();
3162
3162
  if (r.err) {
3163
3163
  var n = SyntaxError(b[r.err.kind]);
@@ -3165,10 +3165,10 @@ function Hn(e, t) {
3165
3165
  }
3166
3166
  return t?.captureLocation || je(r.val), r.val;
3167
3167
  }
3168
- var z;
3168
+ var j;
3169
3169
  (function(e) {
3170
3170
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3171
- })(z || (z = {}));
3171
+ })(j || (j = {}));
3172
3172
  var He = (
3173
3173
  /** @class */
3174
3174
  function(e) {
@@ -3186,7 +3186,7 @@ var He = (
3186
3186
  function(e) {
3187
3187
  Te(t, e);
3188
3188
  function t(r, n, i, o) {
3189
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3189
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
3190
3190
  }
3191
3191
  return t;
3192
3192
  }(He)
@@ -3195,7 +3195,7 @@ var He = (
3195
3195
  function(e) {
3196
3196
  Te(t, e);
3197
3197
  function t(r, n, i) {
3198
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3198
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3199
3199
  }
3200
3200
  return t;
3201
3201
  }(He)
@@ -3204,7 +3204,7 @@ var He = (
3204
3204
  function(e) {
3205
3205
  Te(t, e);
3206
3206
  function t(r, n) {
3207
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3207
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
3208
3208
  }
3209
3209
  return t;
3210
3210
  }(He)
@@ -3221,25 +3221,25 @@ function Bn(e) {
3221
3221
  function An(e) {
3222
3222
  return typeof e == "function";
3223
3223
  }
3224
- function be(e, t, r, n, i, o, a) {
3225
- if (e.length === 1 && et(e[0]))
3224
+ function pe(e, t, r, n, i, o, s) {
3225
+ if (e.length === 1 && Ke(e[0]))
3226
3226
  return [
3227
3227
  {
3228
3228
  type: H.literal,
3229
3229
  value: e[0].value
3230
3230
  }
3231
3231
  ];
3232
- for (var s = [], h = 0, u = e; h < u.length; h++) {
3232
+ for (var a = [], h = 0, u = e; h < u.length; h++) {
3233
3233
  var l = u[h];
3234
- if (et(l)) {
3235
- s.push({
3234
+ if (Ke(l)) {
3235
+ a.push({
3236
3236
  type: H.literal,
3237
3237
  value: l.value
3238
3238
  });
3239
3239
  continue;
3240
3240
  }
3241
3241
  if (Jr(l)) {
3242
- typeof o == "number" && s.push({
3242
+ typeof o == "number" && a.push({
3243
3243
  type: H.literal,
3244
3244
  value: r.getNumberFormat(t).format(o)
3245
3245
  });
@@ -3247,87 +3247,87 @@ function be(e, t, r, n, i, o, a) {
3247
3247
  }
3248
3248
  var f = l.value;
3249
3249
  if (!(i && f in i))
3250
- throw new Sn(f, a);
3251
- var c = i[f];
3250
+ throw new Sn(f, s);
3251
+ var m = i[f];
3252
3252
  if (Zr(l)) {
3253
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3254
- type: typeof c == "string" ? H.literal : H.object,
3255
- value: c
3253
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3254
+ type: typeof m == "string" ? H.literal : H.object,
3255
+ value: m
3256
3256
  });
3257
3257
  continue;
3258
3258
  }
3259
3259
  if (Pt(l)) {
3260
- var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3261
- s.push({
3260
+ var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3261
+ a.push({
3262
3262
  type: H.literal,
3263
- value: r.getDateTimeFormat(t, p).format(c)
3263
+ value: r.getDateTimeFormat(t, d).format(m)
3264
3264
  });
3265
3265
  continue;
3266
3266
  }
3267
3267
  if (Ot(l)) {
3268
- var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3269
- s.push({
3268
+ var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3269
+ a.push({
3270
3270
  type: H.literal,
3271
- value: r.getDateTimeFormat(t, p).format(c)
3271
+ value: r.getDateTimeFormat(t, d).format(m)
3272
3272
  });
3273
3273
  continue;
3274
3274
  }
3275
3275
  if (At(l)) {
3276
- var p = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3277
- p && p.scale && (c = c * (p.scale || 1)), s.push({
3276
+ var d = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3277
+ d && d.scale && (m = m * (d.scale || 1)), a.push({
3278
3278
  type: H.literal,
3279
- value: r.getNumberFormat(t, p).format(c)
3279
+ value: r.getNumberFormat(t, d).format(m)
3280
3280
  });
3281
3281
  continue;
3282
3282
  }
3283
3283
  if (Nt(l)) {
3284
- var y = l.children, _ = l.value, T = i[_];
3284
+ var p = l.children, v = l.value, T = i[v];
3285
3285
  if (!An(T))
3286
- throw new wn(_, "function", a);
3287
- var w = be(y, t, r, n, i, o), d = T(w.map(function(L) {
3288
- return L.value;
3286
+ throw new wn(v, "function", s);
3287
+ var x = pe(p, t, r, n, i, o), c = T(x.map(function(N) {
3288
+ return N.value;
3289
3289
  }));
3290
- Array.isArray(d) || (d = [d]), s.push.apply(s, d.map(function(L) {
3290
+ Array.isArray(c) || (c = [c]), a.push.apply(a, c.map(function(N) {
3291
3291
  return {
3292
- type: typeof L == "string" ? H.literal : H.object,
3293
- value: L
3292
+ type: typeof N == "string" ? H.literal : H.object,
3293
+ value: N
3294
3294
  };
3295
3295
  }));
3296
3296
  }
3297
3297
  if (It(l)) {
3298
- var m = l.options[c] || l.options.other;
3299
- if (!m)
3300
- throw new st(l.value, c, Object.keys(l.options), a);
3301
- s.push.apply(s, be(m.value, t, r, n, i));
3298
+ var g = l.options[m] || l.options.other;
3299
+ if (!g)
3300
+ throw new st(l.value, m, Object.keys(l.options), s);
3301
+ a.push.apply(a, pe(g.value, t, r, n, i));
3302
3302
  continue;
3303
3303
  }
3304
3304
  if (Ct(l)) {
3305
- var m = l.options["=".concat(c)];
3306
- if (!m) {
3305
+ var g = l.options["=".concat(m)];
3306
+ if (!g) {
3307
3307
  if (!Intl.PluralRules)
3308
3308
  throw new He(`Intl.PluralRules is not available in this environment.
3309
3309
  Try polyfilling it using "@formatjs/intl-pluralrules"
3310
- `, z.MISSING_INTL_API, a);
3311
- var E = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3312
- m = l.options[E] || l.options.other;
3310
+ `, j.MISSING_INTL_API, s);
3311
+ var A = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3312
+ g = l.options[A] || l.options.other;
3313
3313
  }
3314
- if (!m)
3315
- throw new st(l.value, c, Object.keys(l.options), a);
3316
- s.push.apply(s, be(m.value, t, r, n, i, c - (l.offset || 0)));
3314
+ if (!g)
3315
+ throw new st(l.value, m, Object.keys(l.options), s);
3316
+ a.push.apply(a, pe(g.value, t, r, n, i, m - (l.offset || 0)));
3317
3317
  continue;
3318
3318
  }
3319
3319
  }
3320
- return Bn(s);
3320
+ return Bn(a);
3321
3321
  }
3322
3322
  function Pn(e, t) {
3323
- return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3324
- return r[n] = S(S({}, e[n]), t[n] || {}), r;
3323
+ return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3324
+ return r[n] = w(w({}, e[n]), t[n] || {}), r;
3325
3325
  }, {})) : e;
3326
3326
  }
3327
3327
  function On(e, t) {
3328
3328
  return t ? Object.keys(e).reduce(function(r, n) {
3329
3329
  return r[n] = Pn(e[n], t[n]), r;
3330
- }, S({}, e)) : e;
3330
+ }, w({}, e)) : e;
3331
3331
  }
3332
3332
  function Ce(e) {
3333
3333
  return {
@@ -3389,12 +3389,12 @@ var Ft = (
3389
3389
  var u = o.formatToParts(h);
3390
3390
  if (u.length === 1)
3391
3391
  return u[0].value;
3392
- var l = u.reduce(function(f, c) {
3393
- return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3392
+ var l = u.reduce(function(f, m) {
3393
+ return !f.length || m.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(m.value) : f[f.length - 1] += m.value, f;
3394
3394
  }, []);
3395
3395
  return l.length <= 1 ? l[0] || "" : l;
3396
3396
  }, this.formatToParts = function(h) {
3397
- return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3397
+ return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3398
3398
  }, this.resolvedOptions = function() {
3399
3399
  var h;
3400
3400
  return {
@@ -3405,10 +3405,10 @@ var Ft = (
3405
3405
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3406
3406
  if (this.message = t, !e.__parse)
3407
3407
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3408
- var a = i || {};
3409
- a.formatters;
3410
- var s = Gr(a, ["formatters"]);
3411
- this.ast = e.__parse(t, S(S({}, s), { locale: this.resolvedLocale }));
3408
+ var s = i || {};
3409
+ s.formatters;
3410
+ var a = Gr(s, ["formatters"]);
3411
+ this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
3412
3412
  } else
3413
3413
  this.ast = t;
3414
3414
  if (!Array.isArray(this.ast))
@@ -3508,25 +3508,25 @@ function Cn(e, t) {
3508
3508
  n = void 0;
3509
3509
  return n;
3510
3510
  }
3511
- const I = {}, Nn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), jt = (e, t) => {
3511
+ const O = {}, Nn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), jt = (e, t) => {
3512
3512
  if (t == null)
3513
3513
  return;
3514
- if (t in I && e in I[t])
3515
- return I[t][e];
3516
- const r = ie(t);
3514
+ if (t in O && e in O[t])
3515
+ return O[t][e];
3516
+ const r = ne(t);
3517
3517
  for (let n = 0; n < r.length; n++) {
3518
3518
  const i = r[n], o = Mn(i, e);
3519
3519
  if (o)
3520
3520
  return Nn(e, t, o);
3521
3521
  }
3522
3522
  };
3523
- let We;
3524
- const ne = xe({});
3523
+ let Xe;
3524
+ const re = xe({});
3525
3525
  function Ln(e) {
3526
- return We[e] || null;
3526
+ return Xe[e] || null;
3527
3527
  }
3528
3528
  function zt(e) {
3529
- return e in We;
3529
+ return e in Xe;
3530
3530
  }
3531
3531
  function Mn(e, t) {
3532
3532
  if (!zt(e))
@@ -3537,7 +3537,7 @@ function Mn(e, t) {
3537
3537
  function $n(e) {
3538
3538
  if (e == null)
3539
3539
  return;
3540
- const t = ie(e);
3540
+ const t = ne(e);
3541
3541
  for (let r = 0; r < t.length; r++) {
3542
3542
  const n = t[r];
3543
3543
  if (zt(n))
@@ -3545,28 +3545,28 @@ function $n(e) {
3545
3545
  }
3546
3546
  }
3547
3547
  function Vt(e, ...t) {
3548
- delete I[e], ne.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3548
+ delete O[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3549
3549
  }
3550
3550
  X(
3551
- [ne],
3551
+ [re],
3552
3552
  ([e]) => Object.keys(e)
3553
3553
  );
3554
- ne.subscribe((e) => We = e);
3555
- const ge = {};
3554
+ re.subscribe((e) => Xe = e);
3555
+ const be = {};
3556
3556
  function Rn(e, t) {
3557
- ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3557
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3558
3558
  }
3559
3559
  function Xt(e) {
3560
- return ge[e];
3560
+ return be[e];
3561
3561
  }
3562
3562
  function Dn(e) {
3563
- return ie(e).map((t) => {
3563
+ return ne(e).map((t) => {
3564
3564
  const r = Xt(t);
3565
3565
  return [t, r ? [...r] : []];
3566
3566
  }).filter(([, t]) => t.length > 0);
3567
3567
  }
3568
- function _e(e) {
3569
- return e == null ? !1 : ie(e).some(
3568
+ function ye(e) {
3569
+ return e == null ? !1 : ne(e).some(
3570
3570
  (t) => {
3571
3571
  var r;
3572
3572
  return (r = Xt(t)) == null ? void 0 : r.size;
@@ -3580,7 +3580,7 @@ function Un(e, t) {
3580
3580
  }
3581
3581
  const Z = {};
3582
3582
  function Wt(e) {
3583
- if (!_e(e))
3583
+ if (!ye(e))
3584
3584
  return e in Z ? Z[e] : Promise.resolve();
3585
3585
  const t = Dn(e);
3586
3586
  return Z[e] = Promise.all(
@@ -3588,17 +3588,17 @@ function Wt(e) {
3588
3588
  ([r, n]) => Un(r, n)
3589
3589
  )
3590
3590
  ).then(() => {
3591
- if (_e(e))
3591
+ if (ye(e))
3592
3592
  return Wt(e);
3593
3593
  delete Z[e];
3594
3594
  }), Z[e];
3595
3595
  }
3596
- var ut = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3596
+ var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3597
3597
  var r = {};
3598
3598
  for (var n in e)
3599
3599
  Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3600
- if (e != null && ut)
3601
- for (var n of ut(e))
3600
+ if (e != null && at)
3601
+ for (var n of at(e))
3602
3602
  t.indexOf(n) < 0 && kn.call(e, n) && (r[n] = e[n]);
3603
3603
  return r;
3604
3604
  };
@@ -3634,9 +3634,9 @@ const jn = {
3634
3634
  };
3635
3635
  function zn({ locale: e, id: t }) {
3636
3636
  console.warn(
3637
- `[svelte-i18n] The message "${t}" was not found in "${ie(
3637
+ `[svelte-i18n] The message "${t}" was not found in "${ne(
3638
3638
  e
3639
- ).join('", "')}".${_e(N()) ? `
3639
+ ).join('", "')}".${ye(C()) ? `
3640
3640
 
3641
3641
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3642
3642
  );
@@ -3649,7 +3649,7 @@ const Vn = {
3649
3649
  handleMissingMessage: void 0,
3650
3650
  ignoreTag: !0
3651
3651
  }, q = Vn;
3652
- function V() {
3652
+ function z() {
3653
3653
  return q;
3654
3654
  }
3655
3655
  function Xn(e) {
@@ -3665,47 +3665,47 @@ function Xn(e) {
3665
3665
  }
3666
3666
  return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = zn : console.warn(
3667
3667
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3668
- )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), R.set(i);
3668
+ )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
3669
3669
  }
3670
3670
  const Ne = xe(!1);
3671
- var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3671
+ var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3672
3672
  for (var r in t || (t = {}))
3673
- qn.call(t, r) && ht(e, r, t[r]);
3674
- if (lt)
3675
- for (var r of lt(t))
3676
- Qn.call(t, r) && ht(e, r, t[r]);
3673
+ qn.call(t, r) && lt(e, r, t[r]);
3674
+ if (ut)
3675
+ for (var r of ut(t))
3676
+ Qn.call(t, r) && lt(e, r, t[r]);
3677
3677
  return e;
3678
3678
  }, Kn = (e, t) => Zn(e, Jn(t));
3679
3679
  let ze;
3680
- const Ee = xe(null);
3681
- function ct(e) {
3680
+ const _e = xe(null);
3681
+ function ht(e) {
3682
3682
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3683
3683
  }
3684
- function ie(e, t = V().fallbackLocale) {
3685
- const r = ct(e);
3686
- return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3684
+ function ne(e, t = z().fallbackLocale) {
3685
+ const r = ht(e);
3686
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3687
3687
  }
3688
- function N() {
3688
+ function C() {
3689
3689
  return ze ?? void 0;
3690
3690
  }
3691
- Ee.subscribe((e) => {
3691
+ _e.subscribe((e) => {
3692
3692
  ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3693
3693
  });
3694
3694
  const ei = (e) => {
3695
- if (e && $n(e) && _e(e)) {
3696
- const { loadingDelay: t } = V();
3695
+ if (e && $n(e) && ye(e)) {
3696
+ const { loadingDelay: t } = z();
3697
3697
  let r;
3698
- return typeof window < "u" && N() != null && t ? r = window.setTimeout(
3698
+ return typeof window < "u" && C() != null && t ? r = window.setTimeout(
3699
3699
  () => Ne.set(!0),
3700
3700
  t
3701
3701
  ) : Ne.set(!0), Wt(e).then(() => {
3702
- Ee.set(e);
3702
+ _e.set(e);
3703
3703
  }).finally(() => {
3704
3704
  clearTimeout(r), Ne.set(!1);
3705
3705
  });
3706
3706
  }
3707
- return Ee.set(e);
3708
- }, R = Kn(Yn({}, Ee), {
3707
+ return _e.set(e);
3708
+ }, M = Kn(Yn({}, _e), {
3709
3709
  set: ei
3710
3710
  }), we = (e) => {
3711
3711
  const t = /* @__PURE__ */ Object.create(null);
@@ -3714,24 +3714,24 @@ const ei = (e) => {
3714
3714
  return i in t ? t[i] : t[i] = e(n);
3715
3715
  };
3716
3716
  };
3717
- var ti = Object.defineProperty, ve = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3717
+ var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3718
3718
  for (var r in t || (t = {}))
3719
- Zt.call(t, r) && ft(e, r, t[r]);
3720
- if (ve)
3721
- for (var r of ve(t))
3722
- Jt.call(t, r) && ft(e, r, t[r]);
3719
+ Zt.call(t, r) && ct(e, r, t[r]);
3720
+ if (Ee)
3721
+ for (var r of Ee(t))
3722
+ Jt.call(t, r) && ct(e, r, t[r]);
3723
3723
  return e;
3724
3724
  }, W = (e, t) => {
3725
3725
  var r = {};
3726
3726
  for (var n in e)
3727
3727
  Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3728
- if (e != null && ve)
3729
- for (var n of ve(e))
3728
+ if (e != null && Ee)
3729
+ for (var n of Ee(e))
3730
3730
  t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3731
3731
  return r;
3732
3732
  };
3733
3733
  const ee = (e, t) => {
3734
- const { formats: r } = V();
3734
+ const { formats: r } = z();
3735
3735
  if (e in r && t in r[e])
3736
3736
  return r[e][t];
3737
3737
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
@@ -3760,76 +3760,76 @@ const ee = (e, t) => {
3760
3760
  }
3761
3761
  ), oi = (e = {}) => {
3762
3762
  var t = e, {
3763
- locale: r = N()
3763
+ locale: r = C()
3764
3764
  } = t, n = W(t, [
3765
3765
  "locale"
3766
3766
  ]);
3767
- return ri(Ze({ locale: r }, n));
3768
- }, ai = (e = {}) => {
3767
+ return ri(We({ locale: r }, n));
3768
+ }, si = (e = {}) => {
3769
3769
  var t = e, {
3770
- locale: r = N()
3770
+ locale: r = C()
3771
3771
  } = t, n = W(t, [
3772
3772
  "locale"
3773
3773
  ]);
3774
- return ni(Ze({ locale: r }, n));
3775
- }, si = (e = {}) => {
3774
+ return ni(We({ locale: r }, n));
3775
+ }, ai = (e = {}) => {
3776
3776
  var t = e, {
3777
- locale: r = N()
3777
+ locale: r = C()
3778
3778
  } = t, n = W(t, [
3779
3779
  "locale"
3780
3780
  ]);
3781
- return ii(Ze({ locale: r }, n));
3781
+ return ii(We({ locale: r }, n));
3782
3782
  }, ui = we(
3783
3783
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3784
- (e, t = N()) => new Ft(e, t, V().formats, {
3785
- ignoreTag: V().ignoreTag
3784
+ (e, t = C()) => new Ft(e, t, z().formats, {
3785
+ ignoreTag: z().ignoreTag
3786
3786
  })
3787
3787
  ), li = (e, t = {}) => {
3788
3788
  var r, n, i, o;
3789
- let a = t;
3790
- typeof e == "object" && (a = e, e = a.id);
3789
+ let s = t;
3790
+ typeof e == "object" && (s = e, e = s.id);
3791
3791
  const {
3792
- values: s,
3793
- locale: h = N(),
3792
+ values: a,
3793
+ locale: h = C(),
3794
3794
  default: u
3795
- } = a;
3795
+ } = s;
3796
3796
  if (h == null)
3797
3797
  throw new Error(
3798
3798
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3799
3799
  );
3800
3800
  let l = jt(e, h);
3801
3801
  if (!l)
3802
- l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3802
+ 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;
3803
3803
  else if (typeof l != "string")
3804
3804
  return console.warn(
3805
3805
  `[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.`
3806
3806
  ), l;
3807
- if (!s)
3807
+ if (!a)
3808
3808
  return l;
3809
3809
  let f = l;
3810
3810
  try {
3811
- f = ui(l, h).format(s);
3812
- } catch (c) {
3813
- c instanceof Error && console.warn(
3811
+ f = ui(l, h).format(a);
3812
+ } catch (m) {
3813
+ m instanceof Error && console.warn(
3814
3814
  `[svelte-i18n] Message "${e}" has syntax error:`,
3815
- c.message
3815
+ m.message
3816
3816
  );
3817
3817
  }
3818
3818
  return f;
3819
- }, hi = (e, t) => si(t).format(e), ci = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = N()) => jt(e, t), di = X([R, ne], () => li);
3820
- X([R], () => hi);
3821
- X([R], () => ci);
3822
- X([R], () => fi);
3823
- X([R, ne], () => mi);
3824
- function mt(e, t) {
3819
+ }, hi = (e, t) => ai(t).format(e), ci = (e, t) => si(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = C()) => jt(e, t), di = X([M, re], () => li);
3820
+ X([M], () => hi);
3821
+ X([M], () => ci);
3822
+ X([M], () => fi);
3823
+ X([M, re], () => mi);
3824
+ function ft(e, t) {
3825
3825
  Vt(e, t);
3826
3826
  }
3827
3827
  function pi(e) {
3828
3828
  Xn({
3829
3829
  fallbackLocale: "en"
3830
- }), R.set(e);
3830
+ }), M.set(e);
3831
3831
  }
3832
- const dt = {
3832
+ const mt = {
3833
3833
  en: {
3834
3834
  errorGeneralTitle: "Error Occurred",
3835
3835
  errorGeneralText: "Something went wrong",
@@ -3886,71 +3886,49 @@ const dt = {
3886
3886
  function bi(e) {
3887
3887
  Kt(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;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-typography, var(--emw--color-white, #ffffff));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-typography, var(--emw--color-white, #ffffff));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-typography-button, var(--emw--color-black, #000000));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, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3888
3888
  }
3889
- const gi = (e) => ({}), pt = (e) => ({}), yi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({}), Ei = (e) => ({}), yt = (e) => ({ class: "CashierErrorIcon" });
3890
- function _t(e) {
3889
+ const gi = (e) => ({}), dt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3890
+ function yt(e) {
3891
3891
  let t, r;
3892
3892
  return {
3893
3893
  c() {
3894
- t = O("ui-image"), Qe(t.src, r = `${/*assetsurl*/
3895
- e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
3894
+ t = I("ui-image"), qe(t.src, r = `${/*assetsurl*/
3895
+ e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
3896
3896
  },
3897
3897
  m(n, i) {
3898
- $(n, t, i);
3898
+ V(n, t, i);
3899
3899
  },
3900
3900
  p(n, i) {
3901
3901
  i & /*assetsurl*/
3902
- 1 && !Qe(t.src, r = `${/*assetsurl*/
3903
- n[0]}/error-general-icon.png`) && ce(t, "src", r);
3902
+ 1 && !qe(t.src, r = `${/*assetsurl*/
3903
+ n[0]}/error-general-icon.png`) && he(t, "src", r);
3904
3904
  },
3905
3905
  d(n) {
3906
- n && C(t);
3906
+ n && L(t);
3907
3907
  }
3908
3908
  };
3909
3909
  }
3910
3910
  function vi(e) {
3911
3911
  let t, r = (
3912
3912
  /*assetsurl*/
3913
- e[0] && _t(e)
3913
+ e[0] && yt(e)
3914
3914
  );
3915
3915
  return {
3916
3916
  c() {
3917
3917
  r && r.c(), t = rr();
3918
3918
  },
3919
3919
  m(n, i) {
3920
- r && r.m(n, i), $(n, t, i);
3920
+ r && r.m(n, i), V(n, t, i);
3921
3921
  },
3922
3922
  p(n, i) {
3923
3923
  /*assetsurl*/
3924
- n[0] ? r ? r.p(n, i) : (r = _t(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3924
+ n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3925
3925
  },
3926
3926
  d(n) {
3927
- n && C(t), r && r.d(n);
3927
+ n && L(t), r && r.d(n);
3928
3928
  }
3929
3929
  };
3930
3930
  }
3931
3931
  function xi(e) {
3932
- let t, r = (
3933
- /*$_*/
3934
- e[3]("errorGeneralTitle") + ""
3935
- ), n;
3936
- return {
3937
- c() {
3938
- t = O("span"), n = re(r), M(t, "class", "CashierErrorTitle");
3939
- },
3940
- m(i, o) {
3941
- $(i, t, o), A(t, n);
3942
- },
3943
- p(i, o) {
3944
- o & /*$_*/
3945
- 8 && r !== (r = /*$_*/
3946
- i[3]("errorGeneralTitle") + "") && Xe(n, r);
3947
- },
3948
- d(i) {
3949
- i && C(t);
3950
- }
3951
- };
3952
- }
3953
- function Ti(e) {
3954
3932
  let t, r = (
3955
3933
  /*$_*/
3956
3934
  e[3](`${/*errorcode*/
@@ -3958,60 +3936,60 @@ function Ti(e) {
3958
3936
  ), n;
3959
3937
  return {
3960
3938
  c() {
3961
- t = O("span"), n = re(r), M(t, "class", "CashierErrorText");
3939
+ t = I("span"), n = ve(r), G(t, "class", "CashierErrorText");
3962
3940
  },
3963
3941
  m(i, o) {
3964
- $(i, t, o), A(t, n);
3942
+ V(i, t, o), P(t, n);
3965
3943
  },
3966
3944
  p(i, o) {
3967
3945
  o & /*$_, errorcode*/
3968
3946
  10 && r !== (r = /*$_*/
3969
3947
  i[3](`${/*errorcode*/
3970
- i[1] || "errorGeneralText"}`) + "") && Xe(n, r);
3948
+ i[1] || "errorGeneralText"}`) + "") && Tt(n, r);
3971
3949
  },
3972
3950
  d(i) {
3973
- i && C(t);
3951
+ i && L(t);
3974
3952
  }
3975
3953
  };
3976
3954
  }
3977
- function Hi(e) {
3955
+ function Ti(e) {
3978
3956
  let t, r, n = (
3979
3957
  /*$_*/
3980
3958
  e[3]("errorGeneralButton") + ""
3981
- ), i, o, a;
3959
+ ), i, o, s;
3982
3960
  return {
3983
3961
  c() {
3984
- t = O("button"), r = O("span"), i = re(n), M(t, "class", "CashierErrorButton");
3962
+ t = I("button"), r = I("span"), i = ve(n), G(t, "class", "CashierErrorButton");
3985
3963
  },
3986
- m(s, h) {
3987
- $(s, t, h), A(t, r), A(r, i), o || (a = nr(
3964
+ m(a, h) {
3965
+ V(a, t, h), P(t, r), P(r, i), o || (s = nr(
3988
3966
  t,
3989
3967
  "click",
3990
3968
  /*close*/
3991
3969
  e[4]
3992
3970
  ), o = !0);
3993
3971
  },
3994
- p(s, h) {
3972
+ p(a, h) {
3995
3973
  h & /*$_*/
3996
3974
  8 && n !== (n = /*$_*/
3997
- s[3]("errorGeneralButton") + "") && Xe(i, n);
3975
+ a[3]("errorGeneralButton") + "") && Tt(i, n);
3998
3976
  },
3999
- d(s) {
4000
- s && C(t), o = !1, a();
3977
+ d(a) {
3978
+ a && L(t), o = !1, s();
4001
3979
  }
4002
3980
  };
4003
3981
  }
4004
- function wi(e) {
4005
- let t, r, n, i, o, a;
4006
- const s = (
3982
+ function Hi(e) {
3983
+ let t, r, n, i, o, s;
3984
+ const a = (
4007
3985
  /*#slots*/
4008
3986
  e[11].icon
4009
3987
  ), h = se(
4010
- s,
3988
+ a,
4011
3989
  e,
4012
3990
  /*$$scope*/
4013
3991
  e[10],
4014
- yt
3992
+ gt
4015
3993
  ), u = h || vi(e), l = (
4016
3994
  /*#slots*/
4017
3995
  e[11].title
@@ -4020,184 +3998,183 @@ function wi(e) {
4020
3998
  e,
4021
3999
  /*$$scope*/
4022
4000
  e[10],
4023
- gt
4024
- ), c = f || xi(e), p = (
4001
+ bt
4002
+ ), m = (
4025
4003
  /*#slots*/
4026
4004
  e[11].text
4027
- ), y = se(
4028
- p,
4005
+ ), d = se(
4006
+ m,
4029
4007
  e,
4030
4008
  /*$$scope*/
4031
4009
  e[10],
4032
- bt
4033
- ), _ = y || Ti(e), T = (
4010
+ pt
4011
+ ), p = d || xi(e), v = (
4034
4012
  /*#slots*/
4035
4013
  e[11].button
4036
- ), w = se(
4037
- T,
4014
+ ), T = se(
4015
+ v,
4038
4016
  e,
4039
4017
  /*$$scope*/
4040
4018
  e[10],
4041
- pt
4042
- ), d = w || Hi(e);
4019
+ dt
4020
+ ), x = T || Ti(e);
4043
4021
  return {
4044
4022
  c() {
4045
- t = O("div"), r = O("div"), u && u.c(), n = Se(), c && c.c(), i = Se(), _ && _.c(), o = Se(), d && d.c(), M(r, "class", "CashierErrorContent"), M(t, "class", "CashierError");
4023
+ t = I("div"), r = I("div"), u && u.c(), n = Se(), f && f.c(), i = Se(), p && p.c(), o = Se(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4046
4024
  },
4047
- m(m, E) {
4048
- $(m, t, E), A(t, r), u && u.m(r, null), A(r, n), c && c.m(r, null), A(r, i), _ && _.m(r, null), A(r, o), d && d.m(r, null), e[12](t), a = !0;
4025
+ m(c, g) {
4026
+ V(c, t, g), P(t, r), u && u.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, o), x && x.m(r, null), e[12](t), s = !0;
4049
4027
  },
4050
- p(m, [E]) {
4051
- h ? h.p && (!a || E & /*$$scope*/
4052
- 1024) && le(
4028
+ p(c, [g]) {
4029
+ h ? h.p && (!s || g & /*$$scope*/
4030
+ 1024) && ue(
4053
4031
  h,
4054
- s,
4055
- m,
4032
+ a,
4033
+ c,
4056
4034
  /*$$scope*/
4057
- m[10],
4058
- a ? ue(
4059
- s,
4035
+ c[10],
4036
+ s ? ae(
4037
+ a,
4060
4038
  /*$$scope*/
4061
- m[10],
4062
- E,
4039
+ c[10],
4040
+ g,
4063
4041
  Ei
4064
- ) : he(
4042
+ ) : le(
4065
4043
  /*$$scope*/
4066
- m[10]
4044
+ c[10]
4067
4045
  ),
4068
- yt
4069
- ) : u && u.p && (!a || E & /*assetsurl*/
4070
- 1) && u.p(m, a ? E : -1), f ? f.p && (!a || E & /*$$scope*/
4071
- 1024) && le(
4046
+ gt
4047
+ ) : u && u.p && (!s || g & /*assetsurl*/
4048
+ 1) && u.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
4049
+ 1024) && ue(
4072
4050
  f,
4073
4051
  l,
4074
- m,
4052
+ c,
4075
4053
  /*$$scope*/
4076
- m[10],
4077
- a ? ue(
4054
+ c[10],
4055
+ s ? ae(
4078
4056
  l,
4079
4057
  /*$$scope*/
4080
- m[10],
4081
- E,
4058
+ c[10],
4059
+ g,
4082
4060
  _i
4083
- ) : he(
4061
+ ) : le(
4084
4062
  /*$$scope*/
4085
- m[10]
4063
+ c[10]
4086
4064
  ),
4087
- gt
4088
- ) : c && c.p && (!a || E & /*$_*/
4089
- 8) && c.p(m, a ? E : -1), y ? y.p && (!a || E & /*$$scope*/
4090
- 1024) && le(
4091
- y,
4092
- p,
4065
+ bt
4066
+ ), d ? d.p && (!s || g & /*$$scope*/
4067
+ 1024) && ue(
4068
+ d,
4093
4069
  m,
4070
+ c,
4094
4071
  /*$$scope*/
4095
- m[10],
4096
- a ? ue(
4097
- p,
4072
+ c[10],
4073
+ s ? ae(
4074
+ m,
4098
4075
  /*$$scope*/
4099
- m[10],
4100
- E,
4076
+ c[10],
4077
+ g,
4101
4078
  yi
4102
- ) : he(
4079
+ ) : le(
4103
4080
  /*$$scope*/
4104
- m[10]
4081
+ c[10]
4105
4082
  ),
4106
- bt
4107
- ) : _ && _.p && (!a || E & /*$_, errorcode*/
4108
- 10) && _.p(m, a ? E : -1), w ? w.p && (!a || E & /*$$scope*/
4109
- 1024) && le(
4110
- w,
4083
+ pt
4084
+ ) : p && p.p && (!s || g & /*$_, errorcode*/
4085
+ 10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
4086
+ 1024) && ue(
4111
4087
  T,
4112
- m,
4088
+ v,
4089
+ c,
4113
4090
  /*$$scope*/
4114
- m[10],
4115
- a ? ue(
4116
- T,
4091
+ c[10],
4092
+ s ? ae(
4093
+ v,
4117
4094
  /*$$scope*/
4118
- m[10],
4119
- E,
4095
+ c[10],
4096
+ g,
4120
4097
  gi
4121
- ) : he(
4098
+ ) : le(
4122
4099
  /*$$scope*/
4123
- m[10]
4100
+ c[10]
4124
4101
  ),
4125
- pt
4126
- ) : d && d.p && (!a || E & /*$_*/
4127
- 8) && d.p(m, a ? E : -1);
4102
+ dt
4103
+ ) : x && x.p && (!s || g & /*$_*/
4104
+ 8) && x.p(c, s ? g : -1);
4128
4105
  },
4129
- i(m) {
4130
- a || (J(u, m), J(c, m), J(_, m), J(d, m), a = !0);
4106
+ i(c) {
4107
+ s || (J(u, c), J(f, c), J(p, c), J(x, c), s = !0);
4131
4108
  },
4132
- o(m) {
4133
- fe(u, m), fe(c, m), fe(_, m), fe(d, m), a = !1;
4109
+ o(c) {
4110
+ ce(u, c), ce(f, c), ce(p, c), ce(x, c), s = !1;
4134
4111
  },
4135
- d(m) {
4136
- m && C(t), u && u.d(m), c && c.d(m), _ && _.d(m), d && d.d(m), e[12](null);
4112
+ d(c) {
4113
+ c && L(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4137
4114
  }
4138
4115
  };
4139
4116
  }
4140
- function Si(e, t, r) {
4117
+ function wi(e, t, r) {
4141
4118
  let n;
4142
- Yt(e, di, (d) => r(3, n = d));
4143
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: a = "" } = t, { lang: s = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: c = "" } = t, p;
4144
- const y = () => {
4145
- pi(s);
4146
- }, _ = () => {
4147
- fetch(f).then((m) => m.json()).then((m) => {
4148
- Object.keys(m).forEach((E) => {
4149
- mt(E, m[E]);
4119
+ Yt(e, di, (c) => r(3, n = c));
4120
+ let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4121
+ const p = () => {
4122
+ pi(a);
4123
+ }, v = () => {
4124
+ fetch(f).then((g) => g.json()).then((g) => {
4125
+ Object.keys(g).forEach((A) => {
4126
+ ft(A, g[A]);
4150
4127
  });
4151
- }).catch((m) => {
4152
- console.error(m);
4128
+ }).catch((g) => {
4129
+ console.error(g);
4153
4130
  });
4154
4131
  };
4155
- Object.keys(dt).forEach((d) => {
4156
- mt(d, dt[d]);
4132
+ Object.keys(mt).forEach((c) => {
4133
+ ft(c, mt[c]);
4157
4134
  });
4158
4135
  const T = () => {
4159
4136
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4160
4137
  };
4161
- sr(() => () => {
4138
+ ar(() => () => {
4162
4139
  });
4163
- function w(d) {
4164
- Le[d ? "unshift" : "push"](() => {
4165
- p = d, r(2, p);
4140
+ function x(c) {
4141
+ Le[c ? "unshift" : "push"](() => {
4142
+ d = c, r(2, d);
4166
4143
  });
4167
4144
  }
4168
- return e.$$set = (d) => {
4169
- "assetsurl" in d && r(0, a = d.assetsurl), "lang" in d && r(5, s = d.lang), "errorcode" in d && r(1, h = d.errorcode), "clientstyling" in d && r(6, u = d.clientstyling), "clientstylingurl" in d && r(7, l = d.clientstylingurl), "translationurl" in d && r(8, f = d.translationurl), "mbsource" in d && r(9, c = d.mbsource), "$$scope" in d && r(10, o = d.$$scope);
4145
+ return e.$$set = (c) => {
4146
+ "assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, a = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
4170
4147
  }, e.$$.update = () => {
4171
4148
  e.$$.dirty & /*lang*/
4172
- 32 && s && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4173
- 68 && u && p && Er(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4174
- 132 && l && p && vr(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4175
- 516 && c && p && xr(p, `${c}.Style`), e.$$.dirty & /*translationurl*/
4176
- 256 && f && _();
4149
+ 32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4150
+ 68 && u && d && Er(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4151
+ 132 && l && d && vr(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4152
+ 516 && m && d && xr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
4153
+ 256 && f && v();
4177
4154
  }, [
4178
- a,
4155
+ s,
4179
4156
  h,
4180
- p,
4157
+ d,
4181
4158
  n,
4182
4159
  T,
4183
- s,
4160
+ a,
4184
4161
  u,
4185
4162
  l,
4186
4163
  f,
4187
- c,
4164
+ m,
4188
4165
  o,
4189
4166
  i,
4190
- w
4167
+ x
4191
4168
  ];
4192
4169
  }
4193
- class Bi extends yr {
4170
+ class Si extends yr {
4194
4171
  constructor(t) {
4195
4172
  super(), br(
4196
4173
  this,
4197
4174
  t,
4198
- Si,
4199
4175
  wi,
4200
- vt,
4176
+ Hi,
4177
+ Et,
4201
4178
  {
4202
4179
  assetsurl: 0,
4203
4180
  lang: 5,
@@ -4214,46 +4191,46 @@ class Bi extends yr {
4214
4191
  return this.$$.ctx[0];
4215
4192
  }
4216
4193
  set assetsurl(t) {
4217
- this.$$set({ assetsurl: t }), B();
4194
+ this.$$set({ assetsurl: t }), S();
4218
4195
  }
4219
4196
  get lang() {
4220
4197
  return this.$$.ctx[5];
4221
4198
  }
4222
4199
  set lang(t) {
4223
- this.$$set({ lang: t }), B();
4200
+ this.$$set({ lang: t }), S();
4224
4201
  }
4225
4202
  get errorcode() {
4226
4203
  return this.$$.ctx[1];
4227
4204
  }
4228
4205
  set errorcode(t) {
4229
- this.$$set({ errorcode: t }), B();
4206
+ this.$$set({ errorcode: t }), S();
4230
4207
  }
4231
4208
  get clientstyling() {
4232
4209
  return this.$$.ctx[6];
4233
4210
  }
4234
4211
  set clientstyling(t) {
4235
- this.$$set({ clientstyling: t }), B();
4212
+ this.$$set({ clientstyling: t }), S();
4236
4213
  }
4237
4214
  get clientstylingurl() {
4238
4215
  return this.$$.ctx[7];
4239
4216
  }
4240
4217
  set clientstylingurl(t) {
4241
- this.$$set({ clientstylingurl: t }), B();
4218
+ this.$$set({ clientstylingurl: t }), S();
4242
4219
  }
4243
4220
  get translationurl() {
4244
4221
  return this.$$.ctx[8];
4245
4222
  }
4246
4223
  set translationurl(t) {
4247
- this.$$set({ translationurl: t }), B();
4224
+ this.$$set({ translationurl: t }), S();
4248
4225
  }
4249
4226
  get mbsource() {
4250
4227
  return this.$$.ctx[9];
4251
4228
  }
4252
4229
  set mbsource(t) {
4253
- this.$$set({ mbsource: t }), B();
4230
+ this.$$set({ mbsource: t }), S();
4254
4231
  }
4255
4232
  }
4256
- gr(Bi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4233
+ gr(Si, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4257
4234
  export {
4258
- Bi as C
4235
+ Si as C
4259
4236
  };