@everymatrix/cashier-carousel 1.86.3 → 1.86.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
1
  function L() {
2
2
  }
3
- function ar(e) {
3
+ function lr(e) {
4
4
  return e();
5
5
  }
6
- function Ct() {
6
+ function Pt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function fe(e) {
10
- e.forEach(ar);
9
+ function ce(e) {
10
+ e.forEach(lr);
11
11
  }
12
- function Et(e) {
12
+ function Tt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function ur(e, t) {
15
+ function hr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let Pe;
19
- function At(e, t) {
19
+ function Mt(e, t) {
20
20
  return e === t ? !0 : (Pe || (Pe = document.createElement("a")), Pe.href = t, e === Pe.href);
21
21
  }
22
- function zr(e) {
22
+ function Zr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function lr(e, ...t) {
25
+ function cr(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function lr(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Zr(e, t, r) {
35
- e.$$.on_destroy.push(lr(t, r));
34
+ function Qr(e, t, r) {
35
+ e.$$.on_destroy.push(cr(t, r));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Qr(e, t, r) {
41
- const n = Jr(e);
40
+ function Jr(e, t, r) {
41
+ const n = Yr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = H("style");
44
- i.id = t, i.textContent = r, Yr(n, i);
43
+ const i = T("style");
44
+ i.id = t, i.textContent = r, qr(n, i);
45
45
  }
46
46
  }
47
- function Jr(e) {
47
+ function Yr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,24 +54,24 @@ function Jr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function Yr(e, t) {
57
+ function qr(e, t) {
58
58
  return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function G(e, t, r) {
64
+ function j(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
67
  function D(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function Pt(e, t) {
70
+ function Ot(e, t) {
71
71
  for (let r = 0; r < e.length; r += 1)
72
72
  e[r] && e[r].d(t);
73
73
  }
74
- function H(e) {
74
+ function T(e) {
75
75
  return document.createElement(e);
76
76
  }
77
77
  function F(e) {
@@ -83,18 +83,18 @@ function R() {
83
83
  function Z(e, t, r, n) {
84
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
85
  }
86
- function M(e, t, r) {
86
+ function P(e, t, r) {
87
87
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
88
  }
89
- function qr(e) {
89
+ function Kr(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
- function k(e, t) {
92
+ function V(e, t) {
93
93
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
94
94
  t);
95
95
  }
96
96
  let Me;
97
- function Kr() {
97
+ function en() {
98
98
  if (Me === void 0) {
99
99
  Me = !1;
100
100
  try {
@@ -105,21 +105,21 @@ function Kr() {
105
105
  }
106
106
  return Me;
107
107
  }
108
- function en(e, t) {
108
+ function tn(e, t) {
109
109
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
110
- const n = H("iframe");
110
+ const n = T("iframe");
111
111
  n.setAttribute(
112
112
  "style",
113
113
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
114
114
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
115
- const i = Kr();
115
+ const i = en();
116
116
  let o;
117
117
  return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Z(
118
118
  window,
119
119
  "message",
120
120
  /** @param {MessageEvent} event */
121
- (a) => {
122
- a.source === n.contentWindow && t();
121
+ (s) => {
122
+ s.source === n.contentWindow && t();
123
123
  }
124
124
  )) : (n.src = "about:blank", n.onload = () => {
125
125
  o = Z(n.contentWindow, "resize", t), t();
@@ -127,7 +127,7 @@ function en(e, t) {
127
127
  (i || o && n.contentWindow) && o(), D(n);
128
128
  };
129
129
  }
130
- function tn(e) {
130
+ function rn(e) {
131
131
  const t = {};
132
132
  return e.childNodes.forEach(
133
133
  /** @param {Element} node */
@@ -136,90 +136,90 @@ function tn(e) {
136
136
  }
137
137
  ), t;
138
138
  }
139
- let _e;
140
- function ve(e) {
141
- _e = e;
139
+ let ve;
140
+ function ye(e) {
141
+ ve = e;
142
142
  }
143
- function rn() {
144
- if (!_e)
143
+ function nn() {
144
+ if (!ve)
145
145
  throw new Error("Function called outside component initialization");
146
- return _e;
146
+ return ve;
147
147
  }
148
- function nn(e) {
149
- rn().$$.on_mount.push(e);
148
+ function on(e) {
149
+ nn().$$.on_mount.push(e);
150
150
  }
151
151
  const oe = [], Fe = [];
152
152
  let se = [];
153
- const Mt = [], on = /* @__PURE__ */ Promise.resolve();
154
- let ot = !1;
155
- function sn() {
156
- ot || (ot = !0, on.then(N));
153
+ const Bt = [], sn = /* @__PURE__ */ Promise.resolve();
154
+ let at = !1;
155
+ function an() {
156
+ at || (at = !0, sn.then(N));
157
157
  }
158
158
  function Ge(e) {
159
159
  se.push(e);
160
160
  }
161
- const Ye = /* @__PURE__ */ new Set();
161
+ const Ke = /* @__PURE__ */ new Set();
162
162
  let ne = 0;
163
163
  function N() {
164
164
  if (ne !== 0)
165
165
  return;
166
- const e = _e;
166
+ const e = ve;
167
167
  do {
168
168
  try {
169
169
  for (; ne < oe.length; ) {
170
170
  const t = oe[ne];
171
- ne++, ve(t), an(t.$$);
171
+ ne++, ye(t), un(t.$$);
172
172
  }
173
173
  } catch (t) {
174
174
  throw oe.length = 0, ne = 0, t;
175
175
  }
176
- for (ve(null), oe.length = 0, ne = 0; Fe.length; )
176
+ for (ye(null), oe.length = 0, ne = 0; Fe.length; )
177
177
  Fe.pop()();
178
178
  for (let t = 0; t < se.length; t += 1) {
179
179
  const r = se[t];
180
- Ye.has(r) || (Ye.add(r), r());
180
+ Ke.has(r) || (Ke.add(r), r());
181
181
  }
182
182
  se.length = 0;
183
183
  } while (oe.length);
184
- for (; Mt.length; )
185
- Mt.pop()();
186
- ot = !1, Ye.clear(), ve(e);
184
+ for (; Bt.length; )
185
+ Bt.pop()();
186
+ at = !1, Ke.clear(), ye(e);
187
187
  }
188
- function an(e) {
188
+ function un(e) {
189
189
  if (e.fragment !== null) {
190
- e.update(), fe(e.before_update);
190
+ e.update(), ce(e.before_update);
191
191
  const t = e.dirty;
192
192
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
193
193
  }
194
194
  }
195
- function un(e) {
195
+ function ln(e) {
196
196
  const t = [], r = [];
197
197
  se.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), se = t;
198
198
  }
199
- const ln = /* @__PURE__ */ new Set();
200
- function hn(e, t) {
201
- e && e.i && (ln.delete(e), e.i(t));
199
+ const hn = /* @__PURE__ */ new Set();
200
+ function cn(e, t) {
201
+ e && e.i && (hn.delete(e), e.i(t));
202
202
  }
203
- function Be(e) {
203
+ function Oe(e) {
204
204
  return e?.length !== void 0 ? e : Array.from(e);
205
205
  }
206
- function cn(e, t, r) {
206
+ function fn(e, t, r) {
207
207
  const { fragment: n, after_update: i } = e.$$;
208
208
  n && n.m(t, r), Ge(() => {
209
- const o = e.$$.on_mount.map(ar).filter(Et);
210
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : fe(o), e.$$.on_mount = [];
209
+ const o = e.$$.on_mount.map(lr).filter(Tt);
210
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
211
211
  }), i.forEach(Ge);
212
212
  }
213
- function fn(e, t) {
213
+ function pn(e, t) {
214
214
  const r = e.$$;
215
- r.fragment !== null && (un(r.after_update), fe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
215
+ r.fragment !== null && (ln(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
216
216
  }
217
217
  function mn(e, t) {
218
- e.$$.dirty[0] === -1 && (oe.push(e), sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
218
+ e.$$.dirty[0] === -1 && (oe.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
219
219
  }
220
- function dn(e, t, r, n, i, o, a = null, s = [-1]) {
221
- const l = _e;
222
- ve(e);
220
+ function dn(e, t, r, n, i, o, s = null, a = [-1]) {
221
+ const l = ve;
222
+ ye(e);
223
223
  const u = e.$$ = {
224
224
  fragment: null,
225
225
  ctx: [],
@@ -227,7 +227,7 @@ function dn(e, t, r, n, i, o, a = null, s = [-1]) {
227
227
  props: o,
228
228
  update: L,
229
229
  not_equal: i,
230
- bound: Ct(),
230
+ bound: Pt(),
231
231
  // lifecycle
232
232
  on_mount: [],
233
233
  on_destroy: [],
@@ -236,28 +236,28 @@ function dn(e, t, r, n, i, o, a = null, s = [-1]) {
236
236
  after_update: [],
237
237
  context: new Map(t.context || (l ? l.$$.context : [])),
238
238
  // everything else
239
- callbacks: Ct(),
240
- dirty: s,
239
+ callbacks: Pt(),
240
+ dirty: a,
241
241
  skip_bound: !1,
242
242
  root: t.target || l.$$.root
243
243
  };
244
- a && a(u.root);
244
+ s && s(u.root);
245
245
  let h = !1;
246
246
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
247
- const p = g.length ? g[0] : c;
248
- return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && mn(e, f)), c;
249
- }) : [], u.update(), h = !0, fe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
247
+ const d = g.length ? g[0] : c;
248
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && mn(e, f)), c;
249
+ }) : [], u.update(), h = !0, ce(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
250
250
  if (t.hydrate) {
251
- const f = qr(t.target);
251
+ const f = Kr(t.target);
252
252
  u.fragment && u.fragment.l(f), f.forEach(D);
253
253
  } else
254
254
  u.fragment && u.fragment.c();
255
- t.intro && hn(e.$$.fragment), cn(e, t.target, t.anchor), N();
255
+ t.intro && cn(e.$$.fragment), fn(e, t.target, t.anchor), N();
256
256
  }
257
- ve(l);
257
+ ye(l);
258
258
  }
259
- let hr;
260
- typeof HTMLElement == "function" && (hr = class extends HTMLElement {
259
+ let fr;
260
+ typeof HTMLElement == "function" && (fr = class extends HTMLElement {
261
261
  /** The Svelte component constructor */
262
262
  $$ctor;
263
263
  /** Slots */
@@ -299,14 +299,14 @@ typeof HTMLElement == "function" && (hr = class extends HTMLElement {
299
299
  let o;
300
300
  return {
301
301
  c: function() {
302
- o = H("slot"), i !== "default" && M(o, "name", i);
302
+ o = T("slot"), i !== "default" && P(o, "name", i);
303
303
  },
304
304
  /**
305
305
  * @param {HTMLElement} target
306
306
  * @param {HTMLElement} [anchor]
307
307
  */
308
308
  m: function(l, u) {
309
- G(l, o, u);
309
+ j(l, o, u);
310
310
  },
311
311
  d: function(l) {
312
312
  l && D(o);
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (hr = class extends HTMLElement {
316
316
  };
317
317
  if (await Promise.resolve(), !this.$$cn || this.$$c)
318
318
  return;
319
- const t = {}, r = tn(this);
319
+ const t = {}, r = rn(this);
320
320
  for (const i of this.$$s)
321
321
  i in r && (t[i] = [e(i)]);
322
322
  for (const i of this.attributes) {
@@ -352,8 +352,8 @@ typeof HTMLElement == "function" && (hr = class extends HTMLElement {
352
352
  this.$$c.$$.after_update.push(n), n();
353
353
  for (const i in this.$$l)
354
354
  for (const o of this.$$l[i]) {
355
- const a = this.$$c.$on(i, o);
356
- this.$$l_u.set(o, a);
355
+ const s = this.$$c.$on(i, o);
356
+ this.$$l_u.set(o, s);
357
357
  }
358
358
  this.$$l = {};
359
359
  }
@@ -403,36 +403,36 @@ function Re(e, t, r, n) {
403
403
  return t;
404
404
  }
405
405
  }
406
- function pn(e, t, r, n, i, o) {
407
- let a = class extends hr {
406
+ function bn(e, t, r, n, i, o) {
407
+ let s = class extends fr {
408
408
  constructor() {
409
409
  super(e, r, i), this.$$p_d = t;
410
410
  }
411
411
  static get observedAttributes() {
412
412
  return Object.keys(t).map(
413
- (s) => (t[s].attribute || s).toLowerCase()
413
+ (a) => (t[a].attribute || a).toLowerCase()
414
414
  );
415
415
  }
416
416
  };
417
- return Object.keys(t).forEach((s) => {
418
- Object.defineProperty(a.prototype, s, {
417
+ return Object.keys(t).forEach((a) => {
418
+ Object.defineProperty(s.prototype, a, {
419
419
  get() {
420
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
420
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
421
421
  },
422
422
  set(l) {
423
- l = Re(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
423
+ l = Re(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
424
424
  }
425
425
  });
426
- }), n.forEach((s) => {
427
- Object.defineProperty(a.prototype, s, {
426
+ }), n.forEach((a) => {
427
+ Object.defineProperty(s.prototype, a, {
428
428
  get() {
429
- return this.$$c?.[s];
429
+ return this.$$c?.[a];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
433
- a, a;
433
+ s, s;
434
434
  }
435
- class bn {
435
+ class gn {
436
436
  /**
437
437
  * ### PRIVATE API
438
438
  *
@@ -451,7 +451,7 @@ class bn {
451
451
  $$set = void 0;
452
452
  /** @returns {void} */
453
453
  $destroy() {
454
- fn(this, 1), this.$destroy = L;
454
+ pn(this, 1), this.$destroy = L;
455
455
  }
456
456
  /**
457
457
  * @template {Extract<keyof Events, string>} K
@@ -460,7 +460,7 @@ class bn {
460
460
  * @returns {() => void}
461
461
  */
462
462
  $on(t, r) {
463
- if (!Et(r))
463
+ if (!Tt(r))
464
464
  return L;
465
465
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
466
466
  return n.push(r), () => {
@@ -473,22 +473,22 @@ class bn {
473
473
  * @returns {void}
474
474
  */
475
475
  $set(t) {
476
- this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
+ this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
477
477
  }
478
478
  }
479
- const gn = "4";
480
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
479
+ const yn = "4";
480
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
481
481
  const ie = [];
482
- function yn(e, t) {
482
+ function vn(e, t) {
483
483
  return {
484
- subscribe: Xe(e, t).subscribe
484
+ subscribe: We(e, t).subscribe
485
485
  };
486
486
  }
487
- function Xe(e, t = L) {
487
+ function We(e, t = L) {
488
488
  let r;
489
489
  const n = /* @__PURE__ */ new Set();
490
- function i(s) {
491
- if (ur(e, s) && (e = s, r)) {
490
+ function i(a) {
491
+ if (hr(e, a) && (e = a, r)) {
492
492
  const l = !ie.length;
493
493
  for (const u of n)
494
494
  u[1](), ie.push(u, e);
@@ -499,23 +499,23 @@ function Xe(e, t = L) {
499
499
  }
500
500
  }
501
501
  }
502
- function o(s) {
503
- i(s(e));
502
+ function o(a) {
503
+ i(a(e));
504
504
  }
505
- function a(s, l = L) {
506
- const u = [s, l];
507
- return n.add(u), n.size === 1 && (r = t(i, o) || L), s(e), () => {
505
+ function s(a, l = L) {
506
+ const u = [a, l];
507
+ return n.add(u), n.size === 1 && (r = t(i, o) || L), a(e), () => {
508
508
  n.delete(u), n.size === 0 && r && (r(), r = null);
509
509
  };
510
510
  }
511
- return { set: i, update: o, subscribe: a };
511
+ return { set: i, update: o, subscribe: s };
512
512
  }
513
- function me(e, t, r) {
513
+ function fe(e, t, r) {
514
514
  const n = !Array.isArray(e), i = n ? [e] : e;
515
515
  if (!i.every(Boolean))
516
516
  throw new Error("derived() expects stores as input, got a falsy value");
517
517
  const o = t.length < 2;
518
- return yn(r, (a, s) => {
518
+ return vn(r, (s, a) => {
519
519
  let l = !1;
520
520
  const u = [];
521
521
  let h = 0, f = L;
@@ -523,140 +523,126 @@ function me(e, t, r) {
523
523
  if (h)
524
524
  return;
525
525
  f();
526
- const p = t(n ? u[0] : u, a, s);
527
- o ? a(p) : f = Et(p) ? p : L;
526
+ const d = t(n ? u[0] : u, s, a);
527
+ o ? s(d) : f = Tt(d) ? d : L;
528
528
  }, g = i.map(
529
- (p, d) => lr(
530
- p,
529
+ (d, m) => cr(
530
+ d,
531
531
  (_) => {
532
- u[d] = _, h &= ~(1 << d), l && c();
532
+ u[m] = _, h &= ~(1 << m), l && c();
533
533
  },
534
534
  () => {
535
- h |= 1 << d;
535
+ h |= 1 << m;
536
536
  }
537
537
  )
538
538
  );
539
539
  return l = !0, c(), function() {
540
- fe(g), f(), l = !1;
540
+ ce(g), f(), l = !1;
541
541
  };
542
542
  });
543
543
  }
544
- function vn(e) {
544
+ function _n(e) {
545
545
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
546
546
  }
547
- var _n = function(t) {
548
- return En(t) && !xn(t);
547
+ var En = function(t) {
548
+ return xn(t) && !wn(t);
549
549
  };
550
- function En(e) {
550
+ function xn(e) {
551
551
  return !!e && typeof e == "object";
552
552
  }
553
- function xn(e) {
553
+ function wn(e) {
554
554
  var t = Object.prototype.toString.call(e);
555
- return t === "[object RegExp]" || t === "[object Date]" || Tn(e);
556
- }
557
- var wn = typeof Symbol == "function" && Symbol.for, Sn = wn ? Symbol.for("react.element") : 60103;
558
- function Tn(e) {
559
- return e.$$typeof === Sn;
555
+ return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
560
556
  }
557
+ var Sn = typeof Symbol == "function" && Symbol.for, Tn = Sn ? Symbol.for("react.element") : 60103;
561
558
  function Hn(e) {
559
+ return e.$$typeof === Tn;
560
+ }
561
+ function Cn(e) {
562
562
  return Array.isArray(e) ? [] : {};
563
563
  }
564
- function Ee(e, t) {
565
- return t.clone !== !1 && t.isMergeableObject(e) ? ue(Hn(e), e, t) : e;
564
+ function _e(e, t) {
565
+ return t.clone !== !1 && t.isMergeableObject(e) ? ae(Cn(e), e, t) : e;
566
566
  }
567
- function Cn(e, t, r) {
567
+ function An(e, t, r) {
568
568
  return e.concat(t).map(function(n) {
569
- return Ee(n, r);
569
+ return _e(n, r);
570
570
  });
571
571
  }
572
- function An(e, t) {
572
+ function Pn(e, t) {
573
573
  if (!t.customMerge)
574
- return ue;
574
+ return ae;
575
575
  var r = t.customMerge(e);
576
- return typeof r == "function" ? r : ue;
576
+ return typeof r == "function" ? r : ae;
577
577
  }
578
- function Pn(e) {
578
+ function Mn(e) {
579
579
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
580
580
  return Object.propertyIsEnumerable.call(e, t);
581
581
  }) : [];
582
582
  }
583
- function Bt(e) {
584
- return Object.keys(e).concat(Pn(e));
583
+ function It(e) {
584
+ return Object.keys(e).concat(Mn(e));
585
585
  }
586
- function cr(e, t) {
586
+ function pr(e, t) {
587
587
  try {
588
588
  return t in e;
589
589
  } catch {
590
590
  return !1;
591
591
  }
592
592
  }
593
- function Mn(e, t) {
594
- return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
593
+ function On(e, t) {
594
+ return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
595
595
  }
596
596
  function Bn(e, t, r) {
597
597
  var n = {};
598
- return r.isMergeableObject(e) && Bt(e).forEach(function(i) {
599
- n[i] = Ee(e[i], r);
600
- }), Bt(t).forEach(function(i) {
601
- Mn(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
598
+ return r.isMergeableObject(e) && It(e).forEach(function(i) {
599
+ n[i] = _e(e[i], r);
600
+ }), It(t).forEach(function(i) {
601
+ On(e, i) || (pr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = _e(t[i], r));
602
602
  }), n;
603
603
  }
604
- function ue(e, t, r) {
605
- r = r || {}, r.arrayMerge = r.arrayMerge || Cn, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = Ee;
604
+ function ae(e, t, r) {
605
+ r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = _e;
606
606
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
607
- return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : Ee(t, r);
607
+ return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : _e(t, r);
608
608
  }
609
- ue.all = function(t, r) {
609
+ ae.all = function(t, r) {
610
610
  if (!Array.isArray(t))
611
611
  throw new Error("first argument should be an array");
612
612
  return t.reduce(function(n, i) {
613
- return ue(n, i, r);
613
+ return ae(n, i, r);
614
614
  }, {});
615
615
  };
616
- var On = ue, In = On;
617
- const Ln = /* @__PURE__ */ vn(In);
618
- /*! *****************************************************************************
619
- Copyright (c) Microsoft Corporation.
620
-
621
- Permission to use, copy, modify, and/or distribute this software for any
622
- purpose with or without fee is hereby granted.
623
-
624
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
625
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
626
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
627
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
628
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
629
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
630
- PERFORMANCE OF THIS SOFTWARE.
631
- ***************************************************************************** */
632
- var st = function(e, t) {
633
- return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
616
+ var In = ae, Ln = In;
617
+ const Nn = /* @__PURE__ */ _n(Ln);
618
+ var ut = function(e, t) {
619
+ return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
634
620
  r.__proto__ = n;
635
621
  } || function(r, n) {
636
622
  for (var i in n)
637
623
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
638
- }, st(e, t);
624
+ }, ut(e, t);
639
625
  };
640
- function X(e, t) {
626
+ function ze(e, t) {
641
627
  if (typeof t != "function" && t !== null)
642
628
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
643
- st(e, t);
629
+ ut(e, t);
644
630
  function r() {
645
631
  this.constructor = e;
646
632
  }
647
633
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
648
634
  }
649
- var T = function() {
650
- return T = Object.assign || function(t) {
635
+ var G = function() {
636
+ return G = Object.assign || function(t) {
651
637
  for (var r, n = 1, i = arguments.length; n < i; n++) {
652
638
  r = arguments[n];
653
639
  for (var o in r)
654
640
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
655
641
  }
656
642
  return t;
657
- }, T.apply(this, arguments);
643
+ }, G.apply(this, arguments);
658
644
  };
659
- function Nn(e, t) {
645
+ function Rn(e, t) {
660
646
  var r = {};
661
647
  for (var n in e)
662
648
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -665,143 +651,119 @@ function Nn(e, t) {
665
651
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
666
652
  return r;
667
653
  }
668
- function at(e) {
669
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
670
- if (r)
671
- return r.call(e);
672
- if (e && typeof e.length == "number")
673
- return {
674
- next: function() {
675
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
676
- }
677
- };
678
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
679
- }
680
- function ut(e, t) {
681
- var r = typeof Symbol == "function" && e[Symbol.iterator];
682
- if (!r)
683
- return e;
684
- var n = r.call(e), i, o = [], a;
685
- try {
686
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
687
- o.push(i.value);
688
- } catch (s) {
689
- a = { error: s };
690
- } finally {
691
- try {
692
- i && !i.done && (r = n.return) && r.call(n);
693
- } finally {
694
- if (a)
695
- throw a.error;
696
- }
697
- }
698
- return o;
699
- }
700
- function ae(e, t, r) {
654
+ function et(e, t, r) {
701
655
  if (r || arguments.length === 2)
702
656
  for (var n = 0, i = t.length, o; n < i; n++)
703
657
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
704
- return e.concat(o || t);
658
+ return e.concat(o || Array.prototype.slice.call(t));
705
659
  }
706
- function qe(e, t) {
707
- var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
660
+ function tt(e, t) {
661
+ var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : Un;
708
662
  return i(e, {
709
663
  cache: r,
710
664
  serializer: n
711
665
  });
712
666
  }
713
- function Rn(e) {
667
+ function Dn(e) {
714
668
  return e == null || typeof e == "number" || typeof e == "boolean";
715
669
  }
716
- function fr(e, t, r, n) {
717
- var i = Rn(n) ? n : r(n), o = t.get(i);
670
+ function $n(e, t, r, n) {
671
+ var i = Dn(n) ? n : r(n), o = t.get(i);
718
672
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
719
673
  }
720
674
  function mr(e, t, r) {
721
675
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
722
676
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
723
677
  }
724
- function xt(e, t, r, n, i) {
678
+ function dr(e, t, r, n, i) {
725
679
  return r.bind(t, e, n, i);
726
680
  }
727
- function Dn(e, t) {
728
- var r = e.length === 1 ? fr : mr;
729
- return xt(e, this, r, t.cache.create(), t.serializer);
730
- }
731
- function $n(e, t) {
732
- return xt(e, this, mr, t.cache.create(), t.serializer);
733
- }
734
681
  function Un(e, t) {
735
- return xt(e, this, fr, t.cache.create(), t.serializer);
682
+ var r = e.length === 1 ? $n : mr;
683
+ return dr(e, this, r, t.cache.create(), t.serializer);
736
684
  }
737
- var Fn = function() {
738
- return JSON.stringify(arguments);
739
- };
740
- function wt() {
741
- this.cache = /* @__PURE__ */ Object.create(null);
685
+ function Fn(e, t) {
686
+ return dr(e, this, mr, t.cache.create(), t.serializer);
742
687
  }
743
- wt.prototype.get = function(e) {
744
- return this.cache[e];
745
- };
746
- wt.prototype.set = function(e, t) {
747
- this.cache[e] = t;
748
- };
749
- var Gn = {
688
+ var Gn = function() {
689
+ return JSON.stringify(arguments);
690
+ }, jn = (
691
+ /** @class */
692
+ function() {
693
+ function e() {
694
+ this.cache = /* @__PURE__ */ Object.create(null);
695
+ }
696
+ return e.prototype.get = function(t) {
697
+ return this.cache[t];
698
+ }, e.prototype.set = function(t, r) {
699
+ this.cache[t] = r;
700
+ }, e;
701
+ }()
702
+ ), kn = {
750
703
  create: function() {
751
- return new wt();
704
+ return new jn();
752
705
  }
753
- }, Ke = {
754
- variadic: $n,
755
- monadic: Un
756
- }, x;
706
+ }, rt = {
707
+ variadic: Fn
708
+ }, je = function() {
709
+ return je = Object.assign || function(t) {
710
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
711
+ r = arguments[n];
712
+ for (var o in r)
713
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
714
+ }
715
+ return t;
716
+ }, je.apply(this, arguments);
717
+ };
718
+ var x;
757
719
  (function(e) {
758
720
  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";
759
721
  })(x || (x = {}));
760
- var A;
722
+ var C;
761
723
  (function(e) {
762
724
  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";
763
- })(A || (A = {}));
764
- var le;
725
+ })(C || (C = {}));
726
+ var ue;
765
727
  (function(e) {
766
728
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
767
- })(le || (le = {}));
768
- function Ot(e) {
769
- return e.type === A.literal;
770
- }
771
- function jn(e) {
772
- return e.type === A.argument;
773
- }
774
- function dr(e) {
775
- return e.type === A.number;
729
+ })(ue || (ue = {}));
730
+ function Lt(e) {
731
+ return e.type === C.literal;
776
732
  }
777
- function pr(e) {
778
- return e.type === A.date;
733
+ function Vn(e) {
734
+ return e.type === C.argument;
779
735
  }
780
736
  function br(e) {
781
- return e.type === A.time;
737
+ return e.type === C.number;
782
738
  }
783
739
  function gr(e) {
784
- return e.type === A.select;
740
+ return e.type === C.date;
785
741
  }
786
742
  function yr(e) {
787
- return e.type === A.plural;
788
- }
789
- function kn(e) {
790
- return e.type === A.pound;
743
+ return e.type === C.time;
791
744
  }
792
745
  function vr(e) {
793
- return e.type === A.tag;
746
+ return e.type === C.select;
794
747
  }
795
748
  function _r(e) {
796
- return !!(e && typeof e == "object" && e.type === le.number);
749
+ return e.type === C.plural;
750
+ }
751
+ function Xn(e) {
752
+ return e.type === C.pound;
753
+ }
754
+ function Er(e) {
755
+ return e.type === C.tag;
756
+ }
757
+ function xr(e) {
758
+ return !!(e && typeof e == "object" && e.type === ue.number);
797
759
  }
798
760
  function lt(e) {
799
- return !!(e && typeof e == "object" && e.type === le.dateTime);
761
+ return !!(e && typeof e == "object" && e.type === ue.dateTime);
800
762
  }
801
- var Er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vn = /(?:[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;
802
- function Xn(e) {
763
+ var wr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[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;
764
+ function zn(e) {
803
765
  var t = {};
804
- return e.replace(Vn, function(r) {
766
+ return e.replace(Wn, function(r) {
805
767
  var n = r.length;
806
768
  switch (r[0]) {
807
769
  case "G":
@@ -890,36 +852,46 @@ function Xn(e) {
890
852
  return "";
891
853
  }), t;
892
854
  }
893
- var Wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
894
- function zn(e) {
855
+ var M = function() {
856
+ return M = Object.assign || function(t) {
857
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
858
+ r = arguments[n];
859
+ for (var o in r)
860
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
861
+ }
862
+ return t;
863
+ }, M.apply(this, arguments);
864
+ };
865
+ var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
866
+ function Qn(e) {
895
867
  if (e.length === 0)
896
868
  throw new Error("Number skeleton cannot be empty");
897
- for (var t = e.split(Wn).filter(function(c) {
869
+ for (var t = e.split(Zn).filter(function(c) {
898
870
  return c.length > 0;
899
871
  }), r = [], n = 0, i = t; n < i.length; n++) {
900
- var o = i[n], a = o.split("/");
901
- if (a.length === 0)
872
+ var o = i[n], s = o.split("/");
873
+ if (s.length === 0)
902
874
  throw new Error("Invalid number skeleton");
903
- for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
875
+ for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
904
876
  var f = h[u];
905
877
  if (f.length === 0)
906
878
  throw new Error("Invalid number skeleton");
907
879
  }
908
- r.push({ stem: s, options: l });
880
+ r.push({ stem: a, options: l });
909
881
  }
910
882
  return r;
911
883
  }
912
- function Zn(e) {
884
+ function Jn(e) {
913
885
  return e.replace(/^(.*?)-/, "");
914
886
  }
915
- var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xr = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
916
- function Lt(e) {
887
+ var Nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Sr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Tr = /^(0+)$/;
888
+ function Rt(e) {
917
889
  var t = {};
918
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xr, function(r, n, i) {
890
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Sr, function(r, n, i) {
919
891
  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)), "";
920
892
  }), t;
921
893
  }
922
- function Sr(e) {
894
+ function Hr(e) {
923
895
  switch (e) {
924
896
  case "sign-auto":
925
897
  return {
@@ -959,7 +931,7 @@ function Sr(e) {
959
931
  };
960
932
  }
961
933
  }
962
- function Jn(e) {
934
+ function qn(e) {
963
935
  var t;
964
936
  if (e[0] === "E" && e[1] === "E" ? (t = {
965
937
  notation: "engineering"
@@ -967,17 +939,17 @@ function Jn(e) {
967
939
  notation: "scientific"
968
940
  }, e = e.slice(1)), t) {
969
941
  var r = e.slice(0, 2);
970
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
942
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Tr.test(e))
971
943
  throw new Error("Malformed concise eng/scientific notation");
972
944
  t.minimumIntegerDigits = e.length;
973
945
  }
974
946
  return t;
975
947
  }
976
- function Nt(e) {
977
- var t = {}, r = Sr(e);
948
+ function Dt(e) {
949
+ var t = {}, r = Hr(e);
978
950
  return r || t;
979
951
  }
980
- function Yn(e) {
952
+ function Kn(e) {
981
953
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
982
954
  var i = n[r];
983
955
  switch (i.stem) {
@@ -1001,7 +973,7 @@ function Yn(e) {
1001
973
  continue;
1002
974
  case "measure-unit":
1003
975
  case "unit":
1004
- t.style = "unit", t.unit = Zn(i.options[0]);
976
+ t.style = "unit", t.unit = Jn(i.options[0]);
1005
977
  continue;
1006
978
  case "compact-short":
1007
979
  case "K":
@@ -1012,13 +984,13 @@ function Yn(e) {
1012
984
  t.notation = "compact", t.compactDisplay = "long";
1013
985
  continue;
1014
986
  case "scientific":
1015
- t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1016
- return T(T({}, l), Nt(u));
987
+ t = M(M(M({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
988
+ return M(M({}, l), Dt(u));
1017
989
  }, {}));
1018
990
  continue;
1019
991
  case "engineering":
1020
- t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1021
- return T(T({}, l), Nt(u));
992
+ t = M(M(M({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
993
+ return M(M({}, l), Dt(u));
1022
994
  }, {}));
1023
995
  continue;
1024
996
  case "notation-simple":
@@ -1063,7 +1035,7 @@ function Yn(e) {
1063
1035
  case "integer-width":
1064
1036
  if (i.options.length > 1)
1065
1037
  throw new RangeError("integer-width stems only accept a single optional option");
1066
- i.options[0].replace(Qn, function(l, u, h, f, c, g) {
1038
+ i.options[0].replace(Yn, function(l, u, h, f, c, g) {
1067
1039
  if (u)
1068
1040
  t.minimumIntegerDigits = h.length;
1069
1041
  else {
@@ -1076,32 +1048,32 @@ function Yn(e) {
1076
1048
  });
1077
1049
  continue;
1078
1050
  }
1079
- if (wr.test(i.stem)) {
1051
+ if (Tr.test(i.stem)) {
1080
1052
  t.minimumIntegerDigits = i.stem.length;
1081
1053
  continue;
1082
1054
  }
1083
- if (It.test(i.stem)) {
1055
+ if (Nt.test(i.stem)) {
1084
1056
  if (i.options.length > 1)
1085
1057
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1086
- i.stem.replace(It, function(l, u, h, f, c, g) {
1058
+ i.stem.replace(Nt, function(l, u, h, f, c, g) {
1087
1059
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1088
1060
  });
1089
1061
  var o = i.options[0];
1090
- o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), Lt(o)));
1062
+ o === "w" ? t = M(M({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = M(M({}, t), Rt(o)));
1091
1063
  continue;
1092
1064
  }
1093
- if (xr.test(i.stem)) {
1094
- t = T(T({}, t), Lt(i.stem));
1065
+ if (Sr.test(i.stem)) {
1066
+ t = M(M({}, t), Rt(i.stem));
1095
1067
  continue;
1096
1068
  }
1097
- var a = Sr(i.stem);
1098
- a && (t = T(T({}, t), a));
1099
- var s = Jn(i.stem);
1100
- s && (t = T(T({}, t), s));
1069
+ var s = Hr(i.stem);
1070
+ s && (t = M(M({}, t), s));
1071
+ var a = qn(i.stem);
1072
+ a && (t = M(M({}, t), a));
1101
1073
  }
1102
1074
  return t;
1103
1075
  }
1104
- var Oe = {
1076
+ var Be = {
1105
1077
  "001": [
1106
1078
  "H",
1107
1079
  "h"
@@ -2516,23 +2488,23 @@ var Oe = {
2516
2488
  "h"
2517
2489
  ]
2518
2490
  };
2519
- function qn(e, t) {
2491
+ function ei(e, t) {
2520
2492
  for (var r = "", n = 0; n < e.length; n++) {
2521
2493
  var i = e.charAt(n);
2522
2494
  if (i === "j") {
2523
2495
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2524
2496
  o++, n++;
2525
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Kn(t);
2526
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2497
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
2498
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2527
2499
  r += l;
2528
- for (; a-- > 0; )
2500
+ for (; s-- > 0; )
2529
2501
  r = u + r;
2530
2502
  } else
2531
2503
  i === "J" ? r += "H" : r += i;
2532
2504
  }
2533
2505
  return r;
2534
2506
  }
2535
- function Kn(e) {
2507
+ function ti(e) {
2536
2508
  var t = e.hourCycle;
2537
2509
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2538
2510
  e.hourCycles && // @ts-ignore
@@ -2551,23 +2523,23 @@ function Kn(e) {
2551
2523
  }
2552
2524
  var r = e.language, n;
2553
2525
  r !== "root" && (n = e.maximize().region);
2554
- var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
2526
+ var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
2555
2527
  return i[0];
2556
2528
  }
2557
- var et, ei = new RegExp("^".concat(Er.source, "*")), ti = new RegExp("".concat(Er.source, "*$"));
2529
+ var nt, ri = new RegExp("^".concat(wr.source, "*")), ni = new RegExp("".concat(wr.source, "*$"));
2558
2530
  function w(e, t) {
2559
2531
  return { start: e, end: t };
2560
2532
  }
2561
- var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, ui = !!Number.isSafeInteger, li = ui ? Number.isSafeInteger : function(e) {
2533
+ var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
2562
2534
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2563
2535
  }, ht = !0;
2564
2536
  try {
2565
- var hi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2566
- ht = ((et = hi.exec("a")) === null || et === void 0 ? void 0 : et[0]) === "a";
2537
+ var fi = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2538
+ ht = ((nt = fi.exec("a")) === null || nt === void 0 ? void 0 : nt[0]) === "a";
2567
2539
  } catch {
2568
2540
  ht = !1;
2569
2541
  }
2570
- var Rt = ri ? (
2542
+ var $t = ii ? (
2571
2543
  // Native
2572
2544
  function(t, r, n) {
2573
2545
  return t.startsWith(r, n);
@@ -2577,31 +2549,31 @@ var Rt = ri ? (
2577
2549
  function(t, r, n) {
2578
2550
  return t.slice(n, n + r.length) === r;
2579
2551
  }
2580
- ), ct = ni ? String.fromCodePoint : (
2552
+ ), ct = oi ? String.fromCodePoint : (
2581
2553
  // IE11
2582
2554
  function() {
2583
2555
  for (var t = [], r = 0; r < arguments.length; r++)
2584
2556
  t[r] = arguments[r];
2585
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
2586
- if (a = t[o++], a > 1114111)
2587
- throw RangeError(a + " is not a valid code point");
2588
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2557
+ for (var n = "", i = t.length, o = 0, s; i > o; ) {
2558
+ if (s = t[o++], s > 1114111)
2559
+ throw RangeError(s + " is not a valid code point");
2560
+ n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2589
2561
  }
2590
2562
  return n;
2591
2563
  }
2592
- ), Dt = (
2564
+ ), Ut = (
2593
2565
  // native
2594
- ii ? Object.fromEntries : (
2566
+ si ? Object.fromEntries : (
2595
2567
  // Ponyfill
2596
2568
  function(t) {
2597
2569
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2598
- var o = i[n], a = o[0], s = o[1];
2599
- r[a] = s;
2570
+ var o = i[n], s = o[0], a = o[1];
2571
+ r[s] = a;
2600
2572
  }
2601
2573
  return r;
2602
2574
  }
2603
2575
  )
2604
- ), Tr = oi ? (
2576
+ ), Cr = ai ? (
2605
2577
  // Native
2606
2578
  function(t, r) {
2607
2579
  return t.codePointAt(r);
@@ -2615,7 +2587,7 @@ var Rt = ri ? (
2615
2587
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2616
2588
  }
2617
2589
  }
2618
- ), ci = si ? (
2590
+ ), pi = ui ? (
2619
2591
  // Native
2620
2592
  function(t) {
2621
2593
  return t.trimStart();
@@ -2623,9 +2595,9 @@ var Rt = ri ? (
2623
2595
  ) : (
2624
2596
  // Ponyfill
2625
2597
  function(t) {
2626
- return t.replace(ei, "");
2598
+ return t.replace(ri, "");
2627
2599
  }
2628
- ), fi = ai ? (
2600
+ ), mi = li ? (
2629
2601
  // Native
2630
2602
  function(t) {
2631
2603
  return t.trimEnd();
@@ -2633,32 +2605,32 @@ var Rt = ri ? (
2633
2605
  ) : (
2634
2606
  // Ponyfill
2635
2607
  function(t) {
2636
- return t.replace(ti, "");
2608
+ return t.replace(ni, "");
2637
2609
  }
2638
2610
  );
2639
- function Hr(e, t) {
2611
+ function Ar(e, t) {
2640
2612
  return new RegExp(e, t);
2641
2613
  }
2642
2614
  var ft;
2643
2615
  if (ht) {
2644
- var $t = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2616
+ var Ft = Ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2645
2617
  ft = function(t, r) {
2646
2618
  var n;
2647
- $t.lastIndex = r;
2648
- var i = $t.exec(t);
2619
+ Ft.lastIndex = r;
2620
+ var i = Ft.exec(t);
2649
2621
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2650
2622
  };
2651
2623
  } else
2652
2624
  ft = function(t, r) {
2653
2625
  for (var n = []; ; ) {
2654
- var i = Tr(t, r);
2655
- if (i === void 0 || Cr(i) || bi(i))
2626
+ var i = Cr(t, r);
2627
+ if (i === void 0 || Pr(i) || yi(i))
2656
2628
  break;
2657
2629
  n.push(i), r += i >= 65536 ? 2 : 1;
2658
2630
  }
2659
2631
  return ct.apply(void 0, n);
2660
2632
  };
2661
- var mi = (
2633
+ var di = (
2662
2634
  /** @class */
2663
2635
  function() {
2664
2636
  function e(t, r) {
@@ -2672,33 +2644,33 @@ var mi = (
2672
2644
  for (var i = []; !this.isEOF(); ) {
2673
2645
  var o = this.char();
2674
2646
  if (o === 123) {
2675
- var a = this.parseArgument(t, n);
2676
- if (a.err)
2677
- return a;
2678
- i.push(a.val);
2647
+ var s = this.parseArgument(t, n);
2648
+ if (s.err)
2649
+ return s;
2650
+ i.push(s.val);
2679
2651
  } else {
2680
2652
  if (o === 125 && t > 0)
2681
2653
  break;
2682
2654
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2683
- var s = this.clonePosition();
2655
+ var a = this.clonePosition();
2684
2656
  this.bump(), i.push({
2685
- type: A.pound,
2686
- location: w(s, this.clonePosition())
2657
+ type: C.pound,
2658
+ location: w(a, this.clonePosition())
2687
2659
  });
2688
2660
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2689
2661
  if (n)
2690
2662
  break;
2691
2663
  return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2692
- } else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
2693
- var a = this.parseTag(t, r);
2694
- if (a.err)
2695
- return a;
2696
- i.push(a.val);
2664
+ } else if (o === 60 && !this.ignoreTag && pt(this.peek() || 0)) {
2665
+ var s = this.parseTag(t, r);
2666
+ if (s.err)
2667
+ return s;
2668
+ i.push(s.val);
2697
2669
  } else {
2698
- var a = this.parseLiteral(t, r);
2699
- if (a.err)
2700
- return a;
2701
- i.push(a.val);
2670
+ var s = this.parseLiteral(t, r);
2671
+ if (s.err)
2672
+ return s;
2673
+ i.push(s.val);
2702
2674
  }
2703
2675
  }
2704
2676
  }
@@ -2710,7 +2682,7 @@ var mi = (
2710
2682
  if (this.bumpSpace(), this.bumpIf("/>"))
2711
2683
  return {
2712
2684
  val: {
2713
- type: A.literal,
2685
+ type: C.literal,
2714
2686
  value: "<".concat(i, "/>"),
2715
2687
  location: w(n, this.clonePosition())
2716
2688
  },
@@ -2720,27 +2692,27 @@ var mi = (
2720
2692
  var o = this.parseMessage(t + 1, r, !0);
2721
2693
  if (o.err)
2722
2694
  return o;
2723
- var a = o.val, s = this.clonePosition();
2695
+ var s = o.val, a = this.clonePosition();
2724
2696
  if (this.bumpIf("</")) {
2725
- if (this.isEOF() || !mt(this.char()))
2726
- return this.error(x.INVALID_TAG, w(s, this.clonePosition()));
2697
+ if (this.isEOF() || !pt(this.char()))
2698
+ return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
2727
2699
  var l = this.clonePosition(), u = this.parseTagName();
2728
2700
  return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2729
2701
  val: {
2730
- type: A.tag,
2702
+ type: C.tag,
2731
2703
  value: i,
2732
- children: a,
2704
+ children: s,
2733
2705
  location: w(n, this.clonePosition())
2734
2706
  },
2735
2707
  err: null
2736
- } : this.error(x.INVALID_TAG, w(s, this.clonePosition())));
2708
+ } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
2737
2709
  } else
2738
2710
  return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
2739
2711
  } else
2740
2712
  return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
2741
2713
  }, e.prototype.parseTagName = function() {
2742
2714
  var t = this.offset();
2743
- for (this.bump(); !this.isEOF() && pi(this.char()); )
2715
+ for (this.bump(); !this.isEOF() && gi(this.char()); )
2744
2716
  this.bump();
2745
2717
  return this.message.slice(t, this.offset());
2746
2718
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2750,26 +2722,26 @@ var mi = (
2750
2722
  i += o;
2751
2723
  continue;
2752
2724
  }
2753
- var a = this.tryParseUnquoted(t, r);
2754
- if (a) {
2755
- i += a;
2756
- continue;
2757
- }
2758
- var s = this.tryParseLeftAngleBracket();
2725
+ var s = this.tryParseUnquoted(t, r);
2759
2726
  if (s) {
2760
2727
  i += s;
2761
2728
  continue;
2762
2729
  }
2730
+ var a = this.tryParseLeftAngleBracket();
2731
+ if (a) {
2732
+ i += a;
2733
+ continue;
2734
+ }
2763
2735
  break;
2764
2736
  }
2765
2737
  var l = w(n, this.clonePosition());
2766
2738
  return {
2767
- val: { type: A.literal, value: i, location: l },
2739
+ val: { type: C.literal, value: i, location: l },
2768
2740
  err: null
2769
2741
  };
2770
2742
  }, e.prototype.tryParseLeftAngleBracket = function() {
2771
2743
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2772
- !di(this.peek() || 0)) ? (this.bump(), "<") : null;
2744
+ !bi(this.peek() || 0)) ? (this.bump(), "<") : null;
2773
2745
  }, e.prototype.tryParseQuote = function(t) {
2774
2746
  if (this.isEOF() || this.char() !== 39)
2775
2747
  return null;
@@ -2824,7 +2796,7 @@ var mi = (
2824
2796
  case 125:
2825
2797
  return this.bump(), {
2826
2798
  val: {
2827
- type: A.argument,
2799
+ type: C.argument,
2828
2800
  // value does not include the opening and closing braces.
2829
2801
  value: i,
2830
2802
  location: w(n, this.clonePosition())
@@ -2839,13 +2811,13 @@ var mi = (
2839
2811
  }, e.prototype.parseIdentifierIfPossible = function() {
2840
2812
  var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
2841
2813
  this.bumpTo(i);
2842
- var o = this.clonePosition(), a = w(t, o);
2843
- return { value: n, location: a };
2814
+ var o = this.clonePosition(), s = w(t, o);
2815
+ return { value: n, location: s };
2844
2816
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2845
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2846
- switch (s) {
2817
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2818
+ switch (a) {
2847
2819
  case "":
2848
- return this.error(x.EXPECT_ARGUMENT_TYPE, w(a, l));
2820
+ return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, l));
2849
2821
  case "number":
2850
2822
  case "date":
2851
2823
  case "time": {
@@ -2856,46 +2828,46 @@ var mi = (
2856
2828
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2857
2829
  if (f.err)
2858
2830
  return f;
2859
- var c = fi(f.val);
2831
+ var c = mi(f.val);
2860
2832
  if (c.length === 0)
2861
2833
  return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2862
2834
  var g = w(h, this.clonePosition());
2863
2835
  u = { style: c, styleLocation: g };
2864
2836
  }
2865
- var p = this.tryParseArgumentClose(i);
2866
- if (p.err)
2867
- return p;
2868
- var d = w(i, this.clonePosition());
2869
- if (u && Rt(u?.style, "::", 0)) {
2870
- var _ = ci(u.style.slice(2));
2871
- if (s === "number") {
2837
+ var d = this.tryParseArgumentClose(i);
2838
+ if (d.err)
2839
+ return d;
2840
+ var m = w(i, this.clonePosition());
2841
+ if (u && $t(u?.style, "::", 0)) {
2842
+ var _ = pi(u.style.slice(2));
2843
+ if (a === "number") {
2872
2844
  var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
2873
2845
  return f.err ? f : {
2874
- val: { type: A.number, value: n, location: d, style: f.val },
2846
+ val: { type: C.number, value: n, location: m, style: f.val },
2875
2847
  err: null
2876
2848
  };
2877
2849
  } else {
2878
2850
  if (_.length === 0)
2879
- return this.error(x.EXPECT_DATE_TIME_SKELETON, d);
2851
+ return this.error(x.EXPECT_DATE_TIME_SKELETON, m);
2880
2852
  var E = _;
2881
- this.locale && (E = qn(_, this.locale));
2853
+ this.locale && (E = ei(_, this.locale));
2882
2854
  var c = {
2883
- type: le.dateTime,
2855
+ type: ue.dateTime,
2884
2856
  pattern: E,
2885
2857
  location: u.styleLocation,
2886
- parsedOptions: this.shouldParseSkeletons ? Xn(E) : {}
2887
- }, m = s === "date" ? A.date : A.time;
2858
+ parsedOptions: this.shouldParseSkeletons ? zn(E) : {}
2859
+ }, p = a === "date" ? C.date : C.time;
2888
2860
  return {
2889
- val: { type: m, value: n, location: d, style: c },
2861
+ val: { type: p, value: n, location: m, style: c },
2890
2862
  err: null
2891
2863
  };
2892
2864
  }
2893
2865
  }
2894
2866
  return {
2895
2867
  val: {
2896
- type: s === "number" ? A.number : s === "date" ? A.date : A.time,
2868
+ type: a === "number" ? C.number : a === "date" ? C.date : C.time,
2897
2869
  value: n,
2898
- location: d,
2870
+ location: m,
2899
2871
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2900
2872
  },
2901
2873
  err: null
@@ -2906,47 +2878,47 @@ var mi = (
2906
2878
  case "select": {
2907
2879
  var S = this.clonePosition();
2908
2880
  if (this.bumpSpace(), !this.bumpIf(","))
2909
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(S, T({}, S)));
2881
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(S, je({}, S)));
2910
2882
  this.bumpSpace();
2911
- var y = this.parseIdentifierIfPossible(), P = 0;
2912
- if (s !== "select" && y.value === "offset") {
2883
+ var y = this.parseIdentifierIfPossible(), A = 0;
2884
+ if (a !== "select" && y.value === "offset") {
2913
2885
  if (!this.bumpIf(":"))
2914
2886
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2915
2887
  this.bumpSpace();
2916
2888
  var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2917
2889
  if (f.err)
2918
2890
  return f;
2919
- this.bumpSpace(), y = this.parseIdentifierIfPossible(), P = f.val;
2891
+ this.bumpSpace(), y = this.parseIdentifierIfPossible(), A = f.val;
2920
2892
  }
2921
- var C = this.tryParsePluralOrSelectOptions(t, s, r, y);
2922
- if (C.err)
2923
- return C;
2924
- var p = this.tryParseArgumentClose(i);
2925
- if (p.err)
2926
- return p;
2893
+ var H = this.tryParsePluralOrSelectOptions(t, a, r, y);
2894
+ if (H.err)
2895
+ return H;
2896
+ var d = this.tryParseArgumentClose(i);
2897
+ if (d.err)
2898
+ return d;
2927
2899
  var $ = w(i, this.clonePosition());
2928
- return s === "select" ? {
2900
+ return a === "select" ? {
2929
2901
  val: {
2930
- type: A.select,
2902
+ type: C.select,
2931
2903
  value: n,
2932
- options: Dt(C.val),
2904
+ options: Ut(H.val),
2933
2905
  location: $
2934
2906
  },
2935
2907
  err: null
2936
2908
  } : {
2937
2909
  val: {
2938
- type: A.plural,
2910
+ type: C.plural,
2939
2911
  value: n,
2940
- options: Dt(C.val),
2941
- offset: P,
2942
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2912
+ options: Ut(H.val),
2913
+ offset: A,
2914
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2943
2915
  location: $
2944
2916
  },
2945
2917
  err: null
2946
2918
  };
2947
2919
  }
2948
2920
  default:
2949
- return this.error(x.INVALID_ARGUMENT_TYPE, w(a, l));
2921
+ return this.error(x.INVALID_ARGUMENT_TYPE, w(s, l));
2950
2922
  }
2951
2923
  }, e.prototype.tryParseArgumentClose = function(t) {
2952
2924
  return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2988,21 +2960,21 @@ var mi = (
2988
2960
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2989
2961
  var n = [];
2990
2962
  try {
2991
- n = zn(t);
2963
+ n = Qn(t);
2992
2964
  } catch {
2993
2965
  return this.error(x.INVALID_NUMBER_SKELETON, r);
2994
2966
  }
2995
2967
  return {
2996
2968
  val: {
2997
- type: le.number,
2969
+ type: ue.number,
2998
2970
  tokens: n,
2999
2971
  location: r,
3000
- parsedOptions: this.shouldParseSkeletons ? Yn(n) : {}
2972
+ parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
3001
2973
  },
3002
2974
  err: null
3003
2975
  };
3004
2976
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3005
- for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2977
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3006
2978
  if (u.length === 0) {
3007
2979
  var f = this.clonePosition();
3008
2980
  if (r !== "select" && this.bumpIf("=")) {
@@ -3015,37 +2987,37 @@ var mi = (
3015
2987
  }
3016
2988
  if (l.has(u))
3017
2989
  return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3018
- u === "other" && (a = !0), this.bumpSpace();
2990
+ u === "other" && (s = !0), this.bumpSpace();
3019
2991
  var g = this.clonePosition();
3020
2992
  if (!this.bumpIf("{"))
3021
2993
  return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3022
- var p = this.parseMessage(t + 1, r, n);
3023
- if (p.err)
3024
- return p;
3025
- var d = this.tryParseArgumentClose(g);
2994
+ var d = this.parseMessage(t + 1, r, n);
3026
2995
  if (d.err)
3027
2996
  return d;
3028
- s.push([
2997
+ var m = this.tryParseArgumentClose(g);
2998
+ if (m.err)
2999
+ return m;
3000
+ a.push([
3029
3001
  u,
3030
3002
  {
3031
- value: p.val,
3003
+ value: d.val,
3032
3004
  location: w(g, this.clonePosition())
3033
3005
  }
3034
3006
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3035
3007
  }
3036
- return s.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3008
+ return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3037
3009
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3038
3010
  var n = 1, i = this.clonePosition();
3039
3011
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3040
- for (var o = !1, a = 0; !this.isEOF(); ) {
3041
- var s = this.char();
3042
- if (s >= 48 && s <= 57)
3043
- o = !0, a = a * 10 + (s - 48), this.bump();
3012
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3013
+ var a = this.char();
3014
+ if (a >= 48 && a <= 57)
3015
+ o = !0, s = s * 10 + (a - 48), this.bump();
3044
3016
  else
3045
3017
  break;
3046
3018
  }
3047
3019
  var l = w(i, this.clonePosition());
3048
- return o ? (a *= n, li(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3020
+ return o ? (s *= n, ci(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3049
3021
  }, e.prototype.offset = function() {
3050
3022
  return this.position.offset;
3051
3023
  }, e.prototype.isEOF = function() {
@@ -3060,7 +3032,7 @@ var mi = (
3060
3032
  var t = this.position.offset;
3061
3033
  if (t >= this.message.length)
3062
3034
  throw Error("out of bound");
3063
- var r = Tr(this.message, t);
3035
+ var r = Cr(this.message, t);
3064
3036
  if (r === void 0)
3065
3037
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3066
3038
  return r;
@@ -3079,7 +3051,7 @@ var mi = (
3079
3051
  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);
3080
3052
  }
3081
3053
  }, e.prototype.bumpIf = function(t) {
3082
- if (Rt(this.message, t, this.offset())) {
3054
+ if ($t(this.message, t, this.offset())) {
3083
3055
  for (var r = 0; r < t.length; r++)
3084
3056
  this.bump();
3085
3057
  return !0;
@@ -3101,7 +3073,7 @@ var mi = (
3101
3073
  break;
3102
3074
  }
3103
3075
  }, e.prototype.bumpSpace = function() {
3104
- for (; !this.isEOF() && Cr(this.char()); )
3076
+ for (; !this.isEOF() && Pr(this.char()); )
3105
3077
  this.bump();
3106
3078
  }, e.prototype.peek = function() {
3107
3079
  if (this.isEOF())
@@ -3111,47 +3083,47 @@ var mi = (
3111
3083
  }, e;
3112
3084
  }()
3113
3085
  );
3114
- function mt(e) {
3086
+ function pt(e) {
3115
3087
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3116
3088
  }
3117
- function di(e) {
3118
- return mt(e) || e === 47;
3089
+ function bi(e) {
3090
+ return pt(e) || e === 47;
3119
3091
  }
3120
- function pi(e) {
3092
+ function gi(e) {
3121
3093
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3122
3094
  }
3123
- function Cr(e) {
3095
+ function Pr(e) {
3124
3096
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3125
3097
  }
3126
- function bi(e) {
3098
+ function yi(e) {
3127
3099
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3128
3100
  }
3129
- function dt(e) {
3101
+ function mt(e) {
3130
3102
  e.forEach(function(t) {
3131
- if (delete t.location, gr(t) || yr(t))
3103
+ if (delete t.location, vr(t) || _r(t))
3132
3104
  for (var r in t.options)
3133
- delete t.options[r].location, dt(t.options[r].value);
3105
+ delete t.options[r].location, mt(t.options[r].value);
3134
3106
  else
3135
- dr(t) && _r(t.style) || (pr(t) || br(t)) && lt(t.style) ? delete t.style.location : vr(t) && dt(t.children);
3107
+ br(t) && xr(t.style) || (gr(t) || yr(t)) && lt(t.style) ? delete t.style.location : Er(t) && mt(t.children);
3136
3108
  });
3137
3109
  }
3138
- function gi(e, t) {
3139
- t === void 0 && (t = {}), t = T({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3140
- var r = new mi(e, t).parse();
3110
+ function vi(e, t) {
3111
+ t === void 0 && (t = {}), t = je({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3112
+ var r = new di(e, t).parse();
3141
3113
  if (r.err) {
3142
3114
  var n = SyntaxError(x[r.err.kind]);
3143
3115
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3144
3116
  }
3145
- return t?.captureLocation || dt(r.val), r.val;
3117
+ return t?.captureLocation || mt(r.val), r.val;
3146
3118
  }
3147
- var he;
3119
+ var le;
3148
3120
  (function(e) {
3149
3121
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3150
- })(he || (he = {}));
3151
- var We = (
3122
+ })(le || (le = {}));
3123
+ var Ze = (
3152
3124
  /** @class */
3153
3125
  function(e) {
3154
- X(t, e);
3126
+ ze(t, e);
3155
3127
  function t(r, n, i) {
3156
3128
  var o = e.call(this, r) || this;
3157
3129
  return o.code = n, o.originalMessage = i, o;
@@ -3160,155 +3132,155 @@ var We = (
3160
3132
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3161
3133
  }, t;
3162
3134
  }(Error)
3163
- ), Ut = (
3135
+ ), Gt = (
3164
3136
  /** @class */
3165
3137
  function(e) {
3166
- X(t, e);
3138
+ ze(t, e);
3167
3139
  function t(r, n, i, o) {
3168
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), he.INVALID_VALUE, o) || this;
3140
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
3169
3141
  }
3170
3142
  return t;
3171
- }(We)
3172
- ), yi = (
3143
+ }(Ze)
3144
+ ), _i = (
3173
3145
  /** @class */
3174
3146
  function(e) {
3175
- X(t, e);
3147
+ ze(t, e);
3176
3148
  function t(r, n, i) {
3177
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), he.INVALID_VALUE, i) || this;
3149
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
3178
3150
  }
3179
3151
  return t;
3180
- }(We)
3181
- ), vi = (
3152
+ }(Ze)
3153
+ ), Ei = (
3182
3154
  /** @class */
3183
3155
  function(e) {
3184
- X(t, e);
3156
+ ze(t, e);
3185
3157
  function t(r, n) {
3186
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), he.MISSING_VALUE, n) || this;
3158
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), le.MISSING_VALUE, n) || this;
3187
3159
  }
3188
3160
  return t;
3189
- }(We)
3190
- ), O;
3161
+ }(Ze)
3162
+ ), B;
3191
3163
  (function(e) {
3192
3164
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3193
- })(O || (O = {}));
3194
- function _i(e) {
3165
+ })(B || (B = {}));
3166
+ function xi(e) {
3195
3167
  return e.length < 2 ? e : e.reduce(function(t, r) {
3196
3168
  var n = t[t.length - 1];
3197
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3169
+ return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3198
3170
  }, []);
3199
3171
  }
3200
- function Ei(e) {
3172
+ function wi(e) {
3201
3173
  return typeof e == "function";
3202
3174
  }
3203
- function De(e, t, r, n, i, o, a) {
3204
- if (e.length === 1 && Ot(e[0]))
3175
+ function De(e, t, r, n, i, o, s) {
3176
+ if (e.length === 1 && Lt(e[0]))
3205
3177
  return [
3206
3178
  {
3207
- type: O.literal,
3179
+ type: B.literal,
3208
3180
  value: e[0].value
3209
3181
  }
3210
3182
  ];
3211
- for (var s = [], l = 0, u = e; l < u.length; l++) {
3183
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3212
3184
  var h = u[l];
3213
- if (Ot(h)) {
3214
- s.push({
3215
- type: O.literal,
3185
+ if (Lt(h)) {
3186
+ a.push({
3187
+ type: B.literal,
3216
3188
  value: h.value
3217
3189
  });
3218
3190
  continue;
3219
3191
  }
3220
- if (kn(h)) {
3221
- typeof o == "number" && s.push({
3222
- type: O.literal,
3192
+ if (Xn(h)) {
3193
+ typeof o == "number" && a.push({
3194
+ type: B.literal,
3223
3195
  value: r.getNumberFormat(t).format(o)
3224
3196
  });
3225
3197
  continue;
3226
3198
  }
3227
3199
  var f = h.value;
3228
3200
  if (!(i && f in i))
3229
- throw new vi(f, a);
3201
+ throw new Ei(f, s);
3230
3202
  var c = i[f];
3231
- if (jn(h)) {
3232
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3233
- type: typeof c == "string" ? O.literal : O.object,
3203
+ if (Vn(h)) {
3204
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3205
+ type: typeof c == "string" ? B.literal : B.object,
3234
3206
  value: c
3235
3207
  });
3236
3208
  continue;
3237
3209
  }
3238
- if (pr(h)) {
3210
+ if (gr(h)) {
3239
3211
  var g = typeof h.style == "string" ? n.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
3240
- s.push({
3241
- type: O.literal,
3212
+ a.push({
3213
+ type: B.literal,
3242
3214
  value: r.getDateTimeFormat(t, g).format(c)
3243
3215
  });
3244
3216
  continue;
3245
3217
  }
3246
- if (br(h)) {
3218
+ if (yr(h)) {
3247
3219
  var g = typeof h.style == "string" ? n.time[h.style] : lt(h.style) ? h.style.parsedOptions : n.time.medium;
3248
- s.push({
3249
- type: O.literal,
3220
+ a.push({
3221
+ type: B.literal,
3250
3222
  value: r.getDateTimeFormat(t, g).format(c)
3251
3223
  });
3252
3224
  continue;
3253
3225
  }
3254
- if (dr(h)) {
3255
- var g = typeof h.style == "string" ? n.number[h.style] : _r(h.style) ? h.style.parsedOptions : void 0;
3256
- g && g.scale && (c = c * (g.scale || 1)), s.push({
3257
- type: O.literal,
3226
+ if (br(h)) {
3227
+ var g = typeof h.style == "string" ? n.number[h.style] : xr(h.style) ? h.style.parsedOptions : void 0;
3228
+ g && g.scale && (c = c * (g.scale || 1)), a.push({
3229
+ type: B.literal,
3258
3230
  value: r.getNumberFormat(t, g).format(c)
3259
3231
  });
3260
3232
  continue;
3261
3233
  }
3262
- if (vr(h)) {
3263
- var p = h.children, d = h.value, _ = i[d];
3264
- if (!Ei(_))
3265
- throw new yi(d, "function", a);
3266
- var E = De(p, t, r, n, i, o), m = _(E.map(function(P) {
3267
- return P.value;
3234
+ if (Er(h)) {
3235
+ var d = h.children, m = h.value, _ = i[m];
3236
+ if (!wi(_))
3237
+ throw new _i(m, "function", s);
3238
+ var E = De(d, t, r, n, i, o), p = _(E.map(function(A) {
3239
+ return A.value;
3268
3240
  }));
3269
- Array.isArray(m) || (m = [m]), s.push.apply(s, m.map(function(P) {
3241
+ Array.isArray(p) || (p = [p]), a.push.apply(a, p.map(function(A) {
3270
3242
  return {
3271
- type: typeof P == "string" ? O.literal : O.object,
3272
- value: P
3243
+ type: typeof A == "string" ? B.literal : B.object,
3244
+ value: A
3273
3245
  };
3274
3246
  }));
3275
3247
  }
3276
- if (gr(h)) {
3248
+ if (vr(h)) {
3277
3249
  var S = h.options[c] || h.options.other;
3278
3250
  if (!S)
3279
- throw new Ut(h.value, c, Object.keys(h.options), a);
3280
- s.push.apply(s, De(S.value, t, r, n, i));
3251
+ throw new Gt(h.value, c, Object.keys(h.options), s);
3252
+ a.push.apply(a, De(S.value, t, r, n, i));
3281
3253
  continue;
3282
3254
  }
3283
- if (yr(h)) {
3255
+ if (_r(h)) {
3284
3256
  var S = h.options["=".concat(c)];
3285
3257
  if (!S) {
3286
3258
  if (!Intl.PluralRules)
3287
- throw new We(`Intl.PluralRules is not available in this environment.
3259
+ throw new Ze(`Intl.PluralRules is not available in this environment.
3288
3260
  Try polyfilling it using "@formatjs/intl-pluralrules"
3289
- `, he.MISSING_INTL_API, a);
3261
+ `, le.MISSING_INTL_API, s);
3290
3262
  var y = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3291
3263
  S = h.options[y] || h.options.other;
3292
3264
  }
3293
3265
  if (!S)
3294
- throw new Ut(h.value, c, Object.keys(h.options), a);
3295
- s.push.apply(s, De(S.value, t, r, n, i, c - (h.offset || 0)));
3266
+ throw new Gt(h.value, c, Object.keys(h.options), s);
3267
+ a.push.apply(a, De(S.value, t, r, n, i, c - (h.offset || 0)));
3296
3268
  continue;
3297
3269
  }
3298
3270
  }
3299
- return _i(s);
3271
+ return xi(a);
3300
3272
  }
3301
- function xi(e, t) {
3302
- return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3303
- return r[n] = T(T({}, e[n]), t[n] || {}), r;
3273
+ function Si(e, t) {
3274
+ return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3275
+ return r[n] = G(G({}, e[n]), t[n] || {}), r;
3304
3276
  }, {})) : e;
3305
3277
  }
3306
- function wi(e, t) {
3278
+ function Ti(e, t) {
3307
3279
  return t ? Object.keys(e).reduce(function(r, n) {
3308
- return r[n] = xi(e[n], t[n]), r;
3309
- }, T({}, e)) : e;
3280
+ return r[n] = Si(e[n], t[n]), r;
3281
+ }, G({}, e)) : e;
3310
3282
  }
3311
- function tt(e) {
3283
+ function it(e) {
3312
3284
  return {
3313
3285
  create: function() {
3314
3286
  return {
@@ -3322,39 +3294,39 @@ function tt(e) {
3322
3294
  }
3323
3295
  };
3324
3296
  }
3325
- function Si(e) {
3297
+ function Hi(e) {
3326
3298
  return e === void 0 && (e = {
3327
3299
  number: {},
3328
3300
  dateTime: {},
3329
3301
  pluralRules: {}
3330
3302
  }), {
3331
- getNumberFormat: qe(function() {
3303
+ getNumberFormat: tt(function() {
3332
3304
  for (var t, r = [], n = 0; n < arguments.length; n++)
3333
3305
  r[n] = arguments[n];
3334
- return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
3306
+ return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], r, !1)))();
3335
3307
  }, {
3336
- cache: tt(e.number),
3337
- strategy: Ke.variadic
3308
+ cache: it(e.number),
3309
+ strategy: rt.variadic
3338
3310
  }),
3339
- getDateTimeFormat: qe(function() {
3311
+ getDateTimeFormat: tt(function() {
3340
3312
  for (var t, r = [], n = 0; n < arguments.length; n++)
3341
3313
  r[n] = arguments[n];
3342
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
3314
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], r, !1)))();
3343
3315
  }, {
3344
- cache: tt(e.dateTime),
3345
- strategy: Ke.variadic
3316
+ cache: it(e.dateTime),
3317
+ strategy: rt.variadic
3346
3318
  }),
3347
- getPluralRules: qe(function() {
3319
+ getPluralRules: tt(function() {
3348
3320
  for (var t, r = [], n = 0; n < arguments.length; n++)
3349
3321
  r[n] = arguments[n];
3350
- return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
3322
+ return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], r, !1)))();
3351
3323
  }, {
3352
- cache: tt(e.pluralRules),
3353
- strategy: Ke.variadic
3324
+ cache: it(e.pluralRules),
3325
+ strategy: rt.variadic
3354
3326
  })
3355
3327
  };
3356
3328
  }
3357
- var Ar = (
3329
+ var Mr = (
3358
3330
  /** @class */
3359
3331
  function() {
3360
3332
  function e(t, r, n, i) {
@@ -3369,7 +3341,7 @@ var Ar = (
3369
3341
  if (u.length === 1)
3370
3342
  return u[0].value;
3371
3343
  var h = u.reduce(function(f, c) {
3372
- return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3344
+ return !f.length || c.type !== B.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3373
3345
  }, []);
3374
3346
  return h.length <= 1 ? h[0] || "" : h;
3375
3347
  }, this.formatToParts = function(l) {
@@ -3384,15 +3356,15 @@ var Ar = (
3384
3356
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3385
3357
  if (this.message = t, !e.__parse)
3386
3358
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3387
- var a = i || {};
3388
- a.formatters;
3389
- var s = Nn(a, ["formatters"]);
3390
- this.ast = e.__parse(t, T(T({}, s), { locale: this.resolvedLocale }));
3359
+ var s = i || {};
3360
+ s.formatters;
3361
+ var a = Rn(s, ["formatters"]);
3362
+ this.ast = e.__parse(t, G(G({}, a), { locale: this.resolvedLocale }));
3391
3363
  } else
3392
3364
  this.ast = t;
3393
3365
  if (!Array.isArray(this.ast))
3394
3366
  throw new TypeError("A message must be provided as a String or AST.");
3395
- this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
3367
+ this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
3396
3368
  }
3397
3369
  return Object.defineProperty(e, "defaultLocale", {
3398
3370
  get: function() {
@@ -3405,7 +3377,7 @@ var Ar = (
3405
3377
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3406
3378
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3407
3379
  }
3408
- }, e.__parse = gi, e.formats = {
3380
+ }, e.__parse = vi, e.formats = {
3409
3381
  number: {
3410
3382
  integer: {
3411
3383
  maximumFractionDigits: 0
@@ -3466,7 +3438,7 @@ var Ar = (
3466
3438
  }, e;
3467
3439
  }()
3468
3440
  );
3469
- function Ti(e, t) {
3441
+ function Ci(e, t) {
3470
3442
  if (t == null)
3471
3443
  return;
3472
3444
  if (t in e)
@@ -3487,101 +3459,101 @@ function Ti(e, t) {
3487
3459
  n = void 0;
3488
3460
  return n;
3489
3461
  }
3490
- const z = {}, Hi = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Pr = (e, t) => {
3462
+ const z = {}, Ai = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Or = (e, t) => {
3491
3463
  if (t == null)
3492
3464
  return;
3493
3465
  if (t in z && e in z[t])
3494
3466
  return z[t][e];
3495
- const r = Se(t);
3467
+ const r = we(t);
3496
3468
  for (let n = 0; n < r.length; n++) {
3497
- const i = r[n], o = Ai(i, e);
3469
+ const i = r[n], o = Mi(i, e);
3498
3470
  if (o)
3499
- return Hi(e, t, o);
3471
+ return Ai(e, t, o);
3500
3472
  }
3501
3473
  };
3502
- let St;
3503
- const we = Xe({});
3504
- function Ci(e) {
3505
- return St[e] || null;
3474
+ let Ht;
3475
+ const xe = We({});
3476
+ function Pi(e) {
3477
+ return Ht[e] || null;
3506
3478
  }
3507
- function Mr(e) {
3508
- return e in St;
3479
+ function Br(e) {
3480
+ return e in Ht;
3509
3481
  }
3510
- function Ai(e, t) {
3511
- if (!Mr(e))
3482
+ function Mi(e, t) {
3483
+ if (!Br(e))
3512
3484
  return null;
3513
- const r = Ci(e);
3514
- return Ti(r, t);
3485
+ const r = Pi(e);
3486
+ return Ci(r, t);
3515
3487
  }
3516
- function Pi(e) {
3488
+ function Oi(e) {
3517
3489
  if (e == null)
3518
3490
  return;
3519
- const t = Se(e);
3491
+ const t = we(e);
3520
3492
  for (let r = 0; r < t.length; r++) {
3521
3493
  const n = t[r];
3522
- if (Mr(n))
3494
+ if (Br(n))
3523
3495
  return n;
3524
3496
  }
3525
3497
  }
3526
- function Br(e, ...t) {
3527
- delete z[e], we.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
3498
+ function Ir(e, ...t) {
3499
+ delete z[e], xe.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
3528
3500
  }
3529
- me(
3530
- [we],
3501
+ fe(
3502
+ [xe],
3531
3503
  ([e]) => Object.keys(e)
3532
3504
  );
3533
- we.subscribe((e) => St = e);
3505
+ xe.subscribe((e) => Ht = e);
3534
3506
  const $e = {};
3535
- function Mi(e, t) {
3507
+ function Bi(e, t) {
3536
3508
  $e[e].delete(t), $e[e].size === 0 && delete $e[e];
3537
3509
  }
3538
- function Or(e) {
3510
+ function Lr(e) {
3539
3511
  return $e[e];
3540
3512
  }
3541
- function Bi(e) {
3542
- return Se(e).map((t) => {
3543
- const r = Or(t);
3513
+ function Ii(e) {
3514
+ return we(e).map((t) => {
3515
+ const r = Lr(t);
3544
3516
  return [t, r ? [...r] : []];
3545
3517
  }).filter(([, t]) => t.length > 0);
3546
3518
  }
3547
- function je(e) {
3548
- return e == null ? !1 : Se(e).some(
3519
+ function ke(e) {
3520
+ return e == null ? !1 : we(e).some(
3549
3521
  (t) => {
3550
3522
  var r;
3551
- return (r = Or(t)) == null ? void 0 : r.size;
3523
+ return (r = Lr(t)) == null ? void 0 : r.size;
3552
3524
  }
3553
3525
  );
3554
3526
  }
3555
- function Oi(e, t) {
3527
+ function Li(e, t) {
3556
3528
  return Promise.all(
3557
- t.map((n) => (Mi(e, n), n().then((i) => i.default || i)))
3558
- ).then((n) => Br(e, ...n));
3559
- }
3560
- const ge = {};
3561
- function Ir(e) {
3562
- if (!je(e))
3563
- return e in ge ? ge[e] : Promise.resolve();
3564
- const t = Bi(e);
3565
- return ge[e] = Promise.all(
3529
+ t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
3530
+ ).then((n) => Ir(e, ...n));
3531
+ }
3532
+ const be = {};
3533
+ function Nr(e) {
3534
+ if (!ke(e))
3535
+ return e in be ? be[e] : Promise.resolve();
3536
+ const t = Ii(e);
3537
+ return be[e] = Promise.all(
3566
3538
  t.map(
3567
- ([r, n]) => Oi(r, n)
3539
+ ([r, n]) => Li(r, n)
3568
3540
  )
3569
3541
  ).then(() => {
3570
- if (je(e))
3571
- return Ir(e);
3572
- delete ge[e];
3573
- }), ge[e];
3542
+ if (ke(e))
3543
+ return Nr(e);
3544
+ delete be[e];
3545
+ }), be[e];
3574
3546
  }
3575
- var Ft = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Ni = (e, t) => {
3547
+ var jt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ri = Object.prototype.propertyIsEnumerable, Di = (e, t) => {
3576
3548
  var r = {};
3577
3549
  for (var n in e)
3578
- Ii.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3579
- if (e != null && Ft)
3580
- for (var n of Ft(e))
3581
- t.indexOf(n) < 0 && Li.call(e, n) && (r[n] = e[n]);
3550
+ Ni.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3551
+ if (e != null && jt)
3552
+ for (var n of jt(e))
3553
+ t.indexOf(n) < 0 && Ri.call(e, n) && (r[n] = e[n]);
3582
3554
  return r;
3583
3555
  };
3584
- const Ri = {
3556
+ const $i = {
3585
3557
  number: {
3586
3558
  scientific: { notation: "scientific" },
3587
3559
  engineering: { notation: "engineering" },
@@ -3611,183 +3583,183 @@ const Ri = {
3611
3583
  }
3612
3584
  }
3613
3585
  };
3614
- function Di({ locale: e, id: t }) {
3586
+ function Ui({ locale: e, id: t }) {
3615
3587
  console.warn(
3616
- `[svelte-i18n] The message "${t}" was not found in "${Se(
3588
+ `[svelte-i18n] The message "${t}" was not found in "${we(
3617
3589
  e
3618
- ).join('", "')}".${je(Q()) ? `
3590
+ ).join('", "')}".${ke(Q()) ? `
3619
3591
 
3620
3592
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3621
3593
  );
3622
3594
  }
3623
- const $i = {
3595
+ const Fi = {
3624
3596
  fallbackLocale: null,
3625
3597
  loadingDelay: 200,
3626
- formats: Ri,
3598
+ formats: $i,
3627
3599
  warnOnMissingMessages: !0,
3628
3600
  handleMissingMessage: void 0,
3629
3601
  ignoreTag: !0
3630
- }, ye = $i;
3631
- function ce() {
3632
- return ye;
3602
+ }, ge = Fi;
3603
+ function he() {
3604
+ return ge;
3633
3605
  }
3634
- function Ui(e) {
3635
- const t = e, { formats: r } = t, n = Ni(t, ["formats"]);
3606
+ function Gi(e) {
3607
+ const t = e, { formats: r } = t, n = Di(t, ["formats"]);
3636
3608
  let i = e.fallbackLocale;
3637
3609
  if (e.initialLocale)
3638
3610
  try {
3639
- Ar.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3611
+ Mr.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3640
3612
  } catch {
3641
3613
  console.warn(
3642
3614
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3643
3615
  );
3644
3616
  }
3645
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Di : console.warn(
3617
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Ui : console.warn(
3646
3618
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3647
- )), Object.assign(ye, n, { initialLocale: i }), r && ("number" in r && Object.assign(ye.formats.number, r.number), "date" in r && Object.assign(ye.formats.date, r.date), "time" in r && Object.assign(ye.formats.time, r.time)), K.set(i);
3619
+ )), Object.assign(ge, n, { initialLocale: i }), r && ("number" in r && Object.assign(ge.formats.number, r.number), "date" in r && Object.assign(ge.formats.date, r.date), "time" in r && Object.assign(ge.formats.time, r.time)), K.set(i);
3648
3620
  }
3649
- const rt = Xe(!1);
3650
- var Fi = Object.defineProperty, Gi = Object.defineProperties, ji = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xi = (e, t) => {
3621
+ const ot = We(!1);
3622
+ var ji = Object.defineProperty, ki = Object.defineProperties, Vi = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Wi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zi = (e, t) => {
3651
3623
  for (var r in t || (t = {}))
3652
- ki.call(t, r) && jt(e, r, t[r]);
3653
- if (Gt)
3654
- for (var r of Gt(t))
3655
- Vi.call(t, r) && jt(e, r, t[r]);
3624
+ Xi.call(t, r) && Vt(e, r, t[r]);
3625
+ if (kt)
3626
+ for (var r of kt(t))
3627
+ Wi.call(t, r) && Vt(e, r, t[r]);
3656
3628
  return e;
3657
- }, Wi = (e, t) => Gi(e, ji(t));
3658
- let pt;
3659
- const ke = Xe(null);
3660
- function kt(e) {
3629
+ }, Zi = (e, t) => ki(e, Vi(t));
3630
+ let dt;
3631
+ const Ve = We(null);
3632
+ function Xt(e) {
3661
3633
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3662
3634
  }
3663
- function Se(e, t = ce().fallbackLocale) {
3664
- const r = kt(e);
3665
- return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
3635
+ function we(e, t = he().fallbackLocale) {
3636
+ const r = Xt(e);
3637
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
3666
3638
  }
3667
3639
  function Q() {
3668
- return pt ?? void 0;
3640
+ return dt ?? void 0;
3669
3641
  }
3670
- ke.subscribe((e) => {
3671
- pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3642
+ Ve.subscribe((e) => {
3643
+ dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3672
3644
  });
3673
- const zi = (e) => {
3674
- if (e && Pi(e) && je(e)) {
3675
- const { loadingDelay: t } = ce();
3645
+ const Qi = (e) => {
3646
+ if (e && Oi(e) && ke(e)) {
3647
+ const { loadingDelay: t } = he();
3676
3648
  let r;
3677
3649
  return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
3678
- () => rt.set(!0),
3650
+ () => ot.set(!0),
3679
3651
  t
3680
- ) : rt.set(!0), Ir(e).then(() => {
3681
- ke.set(e);
3652
+ ) : ot.set(!0), Nr(e).then(() => {
3653
+ Ve.set(e);
3682
3654
  }).finally(() => {
3683
- clearTimeout(r), rt.set(!1);
3655
+ clearTimeout(r), ot.set(!1);
3684
3656
  });
3685
3657
  }
3686
- return ke.set(e);
3687
- }, K = Wi(Xi({}, ke), {
3688
- set: zi
3689
- }), ze = (e) => {
3658
+ return Ve.set(e);
3659
+ }, K = Zi(zi({}, Ve), {
3660
+ set: Qi
3661
+ }), Qe = (e) => {
3690
3662
  const t = /* @__PURE__ */ Object.create(null);
3691
3663
  return (n) => {
3692
3664
  const i = JSON.stringify(n);
3693
3665
  return i in t ? t[i] : t[i] = e(n);
3694
3666
  };
3695
3667
  };
3696
- var Zi = Object.defineProperty, Ve = Object.getOwnPropertySymbols, Lr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
3668
+ var Ji = Object.defineProperty, Xe = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ct = (e, t) => {
3697
3669
  for (var r in t || (t = {}))
3698
- Lr.call(t, r) && Vt(e, r, t[r]);
3699
- if (Ve)
3700
- for (var r of Ve(t))
3701
- Nr.call(t, r) && Vt(e, r, t[r]);
3670
+ Rr.call(t, r) && Wt(e, r, t[r]);
3671
+ if (Xe)
3672
+ for (var r of Xe(t))
3673
+ Dr.call(t, r) && Wt(e, r, t[r]);
3702
3674
  return e;
3703
- }, de = (e, t) => {
3675
+ }, pe = (e, t) => {
3704
3676
  var r = {};
3705
3677
  for (var n in e)
3706
- Lr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3707
- if (e != null && Ve)
3708
- for (var n of Ve(e))
3709
- t.indexOf(n) < 0 && Nr.call(e, n) && (r[n] = e[n]);
3678
+ Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3679
+ if (e != null && Xe)
3680
+ for (var n of Xe(e))
3681
+ t.indexOf(n) < 0 && Dr.call(e, n) && (r[n] = e[n]);
3710
3682
  return r;
3711
3683
  };
3712
- const xe = (e, t) => {
3713
- const { formats: r } = ce();
3684
+ const Ee = (e, t) => {
3685
+ const { formats: r } = he();
3714
3686
  if (e in r && t in r[e])
3715
3687
  return r[e][t];
3716
3688
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3717
- }, Qi = ze(
3689
+ }, Yi = Qe(
3718
3690
  (e) => {
3719
- var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3691
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3720
3692
  if (r == null)
3721
3693
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3722
- return n && (i = xe("number", n)), new Intl.NumberFormat(r, i);
3694
+ return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
3723
3695
  }
3724
- ), Ji = ze(
3696
+ ), qi = Qe(
3725
3697
  (e) => {
3726
- var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3698
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3727
3699
  if (r == null)
3728
3700
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3729
- return n ? i = xe("date", n) : Object.keys(i).length === 0 && (i = xe("date", "short")), new Intl.DateTimeFormat(r, i);
3701
+ return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
3730
3702
  }
3731
- ), Yi = ze(
3703
+ ), Ki = Qe(
3732
3704
  (e) => {
3733
- var t = e, { locale: r, format: n } = t, i = de(t, ["locale", "format"]);
3705
+ var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
3734
3706
  if (r == null)
3735
3707
  throw new Error(
3736
3708
  '[svelte-i18n] A "locale" must be set to format time values'
3737
3709
  );
3738
- return n ? i = xe("time", n) : Object.keys(i).length === 0 && (i = xe("time", "short")), new Intl.DateTimeFormat(r, i);
3710
+ return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
3739
3711
  }
3740
- ), qi = (e = {}) => {
3712
+ ), eo = (e = {}) => {
3741
3713
  var t = e, {
3742
3714
  locale: r = Q()
3743
- } = t, n = de(t, [
3715
+ } = t, n = pe(t, [
3744
3716
  "locale"
3745
3717
  ]);
3746
- return Qi(Tt({ locale: r }, n));
3747
- }, Ki = (e = {}) => {
3718
+ return Yi(Ct({ locale: r }, n));
3719
+ }, to = (e = {}) => {
3748
3720
  var t = e, {
3749
3721
  locale: r = Q()
3750
- } = t, n = de(t, [
3722
+ } = t, n = pe(t, [
3751
3723
  "locale"
3752
3724
  ]);
3753
- return Ji(Tt({ locale: r }, n));
3754
- }, eo = (e = {}) => {
3725
+ return qi(Ct({ locale: r }, n));
3726
+ }, ro = (e = {}) => {
3755
3727
  var t = e, {
3756
3728
  locale: r = Q()
3757
- } = t, n = de(t, [
3729
+ } = t, n = pe(t, [
3758
3730
  "locale"
3759
3731
  ]);
3760
- return Yi(Tt({ locale: r }, n));
3761
- }, to = ze(
3732
+ return Ki(Ct({ locale: r }, n));
3733
+ }, no = Qe(
3762
3734
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3763
- (e, t = Q()) => new Ar(e, t, ce().formats, {
3764
- ignoreTag: ce().ignoreTag
3735
+ (e, t = Q()) => new Mr(e, t, he().formats, {
3736
+ ignoreTag: he().ignoreTag
3765
3737
  })
3766
- ), ro = (e, t = {}) => {
3738
+ ), io = (e, t = {}) => {
3767
3739
  var r, n, i, o;
3768
- let a = t;
3769
- typeof e == "object" && (a = e, e = a.id);
3740
+ let s = t;
3741
+ typeof e == "object" && (s = e, e = s.id);
3770
3742
  const {
3771
- values: s,
3743
+ values: a,
3772
3744
  locale: l = Q(),
3773
3745
  default: u
3774
- } = a;
3746
+ } = s;
3775
3747
  if (l == null)
3776
3748
  throw new Error(
3777
3749
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3778
3750
  );
3779
- let h = Pr(e, l);
3751
+ let h = Or(e, l);
3780
3752
  if (!h)
3781
- h = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3753
+ h = (o = (i = (n = (r = he()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3782
3754
  else if (typeof h != "string")
3783
3755
  return console.warn(
3784
3756
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3785
3757
  ), h;
3786
- if (!s)
3758
+ if (!a)
3787
3759
  return h;
3788
3760
  let f = h;
3789
3761
  try {
3790
- f = to(h, l).format(s);
3762
+ f = no(h, l).format(a);
3791
3763
  } catch (c) {
3792
3764
  c instanceof Error && console.warn(
3793
3765
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3795,26 +3767,26 @@ const xe = (e, t) => {
3795
3767
  );
3796
3768
  }
3797
3769
  return f;
3798
- }, no = (e, t) => eo(t).format(e), io = (e, t) => Ki(t).format(e), oo = (e, t) => qi(t).format(e), so = (e, t = Q()) => Pr(e, t), ao = me([K, we], () => ro);
3799
- me([K], () => no);
3800
- me([K], () => io);
3801
- me([K], () => oo);
3802
- me([K, we], () => so);
3803
- function Xt(e, t) {
3804
- Br(e, t);
3805
- }
3806
- function uo(e) {
3807
- Ui({
3770
+ }, oo = (e, t) => ro(t).format(e), so = (e, t) => to(t).format(e), ao = (e, t) => eo(t).format(e), uo = (e, t = Q()) => Or(e, t), lo = fe([K, xe], () => io);
3771
+ fe([K], () => oo);
3772
+ fe([K], () => so);
3773
+ fe([K], () => ao);
3774
+ fe([K, xe], () => uo);
3775
+ function zt(e, t) {
3776
+ Ir(e, t);
3777
+ }
3778
+ function ho(e) {
3779
+ Gi({
3808
3780
  fallbackLocale: "en"
3809
3781
  }), K.set(e);
3810
3782
  }
3811
- function lo(e, t) {
3783
+ function co(e, t) {
3812
3784
  if (e) {
3813
3785
  const r = document.createElement("style");
3814
3786
  r.innerHTML = t, e.appendChild(r);
3815
3787
  }
3816
3788
  }
3817
- function ho(e, t) {
3789
+ function fo(e, t) {
3818
3790
  if (!e || !t)
3819
3791
  return;
3820
3792
  const r = new URL(t);
@@ -3825,7 +3797,7 @@ function ho(e, t) {
3825
3797
  console.error("There was an error while trying to load client styling from URL", n);
3826
3798
  });
3827
3799
  }
3828
- function co(e, t, r) {
3800
+ function po(e, t, r) {
3829
3801
  if (window.emMessageBus) {
3830
3802
  const n = document.createElement("style");
3831
3803
  window.emMessageBus.subscribe(t, (i) => {
@@ -3833,16 +3805,85 @@ function co(e, t, r) {
3833
3805
  });
3834
3806
  }
3835
3807
  }
3836
- function V(e) {
3808
+ /*! *****************************************************************************
3809
+ Copyright (c) Microsoft Corporation.
3810
+
3811
+ Permission to use, copy, modify, and/or distribute this software for any
3812
+ purpose with or without fee is hereby granted.
3813
+
3814
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3815
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3816
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3817
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3818
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3819
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3820
+ PERFORMANCE OF THIS SOFTWARE.
3821
+ ***************************************************************************** */
3822
+ var bt = function(e, t) {
3823
+ return bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3824
+ r.__proto__ = n;
3825
+ } || function(r, n) {
3826
+ for (var i in n)
3827
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3828
+ }, bt(e, t);
3829
+ };
3830
+ function Se(e, t) {
3831
+ if (typeof t != "function" && t !== null)
3832
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3833
+ bt(e, t);
3834
+ function r() {
3835
+ this.constructor = e;
3836
+ }
3837
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3838
+ }
3839
+ function gt(e) {
3840
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
3841
+ if (r)
3842
+ return r.call(e);
3843
+ if (e && typeof e.length == "number")
3844
+ return {
3845
+ next: function() {
3846
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
3847
+ }
3848
+ };
3849
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3850
+ }
3851
+ function yt(e, t) {
3852
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
3853
+ if (!r)
3854
+ return e;
3855
+ var n = r.call(e), i, o = [], s;
3856
+ try {
3857
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
3858
+ o.push(i.value);
3859
+ } catch (a) {
3860
+ s = { error: a };
3861
+ } finally {
3862
+ try {
3863
+ i && !i.done && (r = n.return) && r.call(n);
3864
+ } finally {
3865
+ if (s)
3866
+ throw s.error;
3867
+ }
3868
+ }
3869
+ return o;
3870
+ }
3871
+ function vt(e, t, r) {
3872
+ if (arguments.length === 2)
3873
+ for (var n = 0, i = t.length, o; n < i; n++)
3874
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
3875
+ return e.concat(o || t);
3876
+ }
3877
+ function X(e) {
3837
3878
  return typeof e == "function";
3838
3879
  }
3839
- function Rr(e) {
3880
+ function $r(e) {
3840
3881
  var t = function(n) {
3841
3882
  Error.call(n), n.stack = new Error().stack;
3842
3883
  }, r = e(t);
3843
3884
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3844
3885
  }
3845
- var nt = Rr(function(e) {
3886
+ var st = $r(function(e) {
3846
3887
  return function(r) {
3847
3888
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3848
3889
  ` + r.map(function(n, i) {
@@ -3851,13 +3892,13 @@ var nt = Rr(function(e) {
3851
3892
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3852
3893
  };
3853
3894
  });
3854
- function bt(e, t) {
3895
+ function _t(e, t) {
3855
3896
  if (e) {
3856
3897
  var r = e.indexOf(t);
3857
3898
  0 <= r && e.splice(r, 1);
3858
3899
  }
3859
3900
  }
3860
- var Ze = function() {
3901
+ var Je = function() {
3861
3902
  function e(t) {
3862
3903
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3863
3904
  }
@@ -3865,47 +3906,47 @@ var Ze = function() {
3865
3906
  var t, r, n, i, o;
3866
3907
  if (!this.closed) {
3867
3908
  this.closed = !0;
3868
- var a = this._parentage;
3869
- if (a)
3870
- if (this._parentage = null, Array.isArray(a))
3909
+ var s = this._parentage;
3910
+ if (s)
3911
+ if (this._parentage = null, Array.isArray(s))
3871
3912
  try {
3872
- for (var s = at(a), l = s.next(); !l.done; l = s.next()) {
3913
+ for (var a = gt(s), l = a.next(); !l.done; l = a.next()) {
3873
3914
  var u = l.value;
3874
3915
  u.remove(this);
3875
3916
  }
3876
- } catch (d) {
3877
- t = { error: d };
3917
+ } catch (m) {
3918
+ t = { error: m };
3878
3919
  } finally {
3879
3920
  try {
3880
- l && !l.done && (r = s.return) && r.call(s);
3921
+ l && !l.done && (r = a.return) && r.call(a);
3881
3922
  } finally {
3882
3923
  if (t)
3883
3924
  throw t.error;
3884
3925
  }
3885
3926
  }
3886
3927
  else
3887
- a.remove(this);
3928
+ s.remove(this);
3888
3929
  var h = this.initialTeardown;
3889
- if (V(h))
3930
+ if (X(h))
3890
3931
  try {
3891
3932
  h();
3892
- } catch (d) {
3893
- o = d instanceof nt ? d.errors : [d];
3933
+ } catch (m) {
3934
+ o = m instanceof st ? m.errors : [m];
3894
3935
  }
3895
3936
  var f = this._finalizers;
3896
3937
  if (f) {
3897
3938
  this._finalizers = null;
3898
3939
  try {
3899
- for (var c = at(f), g = c.next(); !g.done; g = c.next()) {
3900
- var p = g.value;
3940
+ for (var c = gt(f), g = c.next(); !g.done; g = c.next()) {
3941
+ var d = g.value;
3901
3942
  try {
3902
- Wt(p);
3903
- } catch (d) {
3904
- o = o ?? [], d instanceof nt ? o = ae(ae([], ut(o)), ut(d.errors)) : o.push(d);
3943
+ Zt(d);
3944
+ } catch (m) {
3945
+ o = o ?? [], m instanceof st ? o = vt(vt([], yt(o)), yt(m.errors)) : o.push(m);
3905
3946
  }
3906
3947
  }
3907
- } catch (d) {
3908
- n = { error: d };
3948
+ } catch (m) {
3949
+ n = { error: m };
3909
3950
  } finally {
3910
3951
  try {
3911
3952
  g && !g.done && (i = c.return) && i.call(c);
@@ -3916,13 +3957,13 @@ var Ze = function() {
3916
3957
  }
3917
3958
  }
3918
3959
  if (o)
3919
- throw new nt(o);
3960
+ throw new st(o);
3920
3961
  }
3921
3962
  }, e.prototype.add = function(t) {
3922
3963
  var r;
3923
3964
  if (t && t !== this)
3924
3965
  if (this.closed)
3925
- Wt(t);
3966
+ Zt(t);
3926
3967
  else {
3927
3968
  if (t instanceof e) {
3928
3969
  if (t.closed || t._hasParent(this))
@@ -3939,56 +3980,52 @@ var Ze = function() {
3939
3980
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3940
3981
  }, e.prototype._removeParent = function(t) {
3941
3982
  var r = this._parentage;
3942
- r === t ? this._parentage = null : Array.isArray(r) && bt(r, t);
3983
+ r === t ? this._parentage = null : Array.isArray(r) && _t(r, t);
3943
3984
  }, e.prototype.remove = function(t) {
3944
3985
  var r = this._finalizers;
3945
- r && bt(r, t), t instanceof e && t._removeParent(this);
3986
+ r && _t(r, t), t instanceof e && t._removeParent(this);
3946
3987
  }, e.EMPTY = function() {
3947
3988
  var t = new e();
3948
3989
  return t.closed = !0, t;
3949
3990
  }(), e;
3950
- }(), Dr = Ze.EMPTY;
3951
- function $r(e) {
3952
- return e instanceof Ze || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
3953
- }
3954
- function Wt(e) {
3955
- V(e) ? e() : e.unsubscribe();
3956
- }
3957
- var Ur = {
3958
- onUnhandledError: null,
3959
- onStoppedNotification: null,
3960
- Promise: void 0,
3961
- useDeprecatedSynchronousErrorHandling: !1,
3962
- useDeprecatedNextContext: !1
3963
- }, fo = {
3991
+ }(), Ur = Je.EMPTY;
3992
+ function Fr(e) {
3993
+ return e instanceof Je || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
3994
+ }
3995
+ function Zt(e) {
3996
+ X(e) ? e() : e.unsubscribe();
3997
+ }
3998
+ var mo = {
3999
+ Promise: void 0
4000
+ }, bo = {
3964
4001
  setTimeout: function(e, t) {
3965
4002
  for (var r = [], n = 2; n < arguments.length; n++)
3966
4003
  r[n - 2] = arguments[n];
3967
- return setTimeout.apply(void 0, ae([e, t], ut(r)));
4004
+ return setTimeout.apply(void 0, vt([e, t], yt(r)));
3968
4005
  },
3969
4006
  clearTimeout: function(e) {
3970
4007
  return clearTimeout(e);
3971
4008
  },
3972
4009
  delegate: void 0
3973
4010
  };
3974
- function mo(e) {
3975
- fo.setTimeout(function() {
4011
+ function go(e) {
4012
+ bo.setTimeout(function() {
3976
4013
  throw e;
3977
4014
  });
3978
4015
  }
3979
- function zt() {
4016
+ function Qt() {
3980
4017
  }
3981
4018
  function Ue(e) {
3982
4019
  e();
3983
4020
  }
3984
- var Fr = function(e) {
3985
- X(t, e);
4021
+ var Gr = function(e) {
4022
+ Se(t, e);
3986
4023
  function t(r) {
3987
4024
  var n = e.call(this) || this;
3988
- return n.isStopped = !1, r ? (n.destination = r, $r(r) && r.add(n)) : n.destination = yo, n;
4025
+ return n.isStopped = !1, r ? (n.destination = r, Fr(r) && r.add(n)) : n.destination = _o, n;
3989
4026
  }
3990
4027
  return t.create = function(r, n, i) {
3991
- return new gt(r, n, i);
4028
+ return new Et(r, n, i);
3992
4029
  }, t.prototype.next = function(r) {
3993
4030
  this.isStopped || this._next(r);
3994
4031
  }, t.prototype.error = function(r) {
@@ -4012,11 +4049,7 @@ var Fr = function(e) {
4012
4049
  this.unsubscribe();
4013
4050
  }
4014
4051
  }, t;
4015
- }(Ze), po = Function.prototype.bind;
4016
- function it(e, t) {
4017
- return po.call(e, t);
4018
- }
4019
- var bo = function() {
4052
+ }(Je), yo = function() {
4020
4053
  function e(t) {
4021
4054
  this.partialObserver = t;
4022
4055
  }
@@ -4047,55 +4080,43 @@ var bo = function() {
4047
4080
  Ie(r);
4048
4081
  }
4049
4082
  }, e;
4050
- }(), gt = function(e) {
4051
- X(t, e);
4083
+ }(), Et = function(e) {
4084
+ Se(t, e);
4052
4085
  function t(r, n, i) {
4053
- var o = e.call(this) || this, a;
4054
- if (V(r) || !r)
4055
- a = {
4056
- next: r ?? void 0,
4057
- error: n ?? void 0,
4058
- complete: i ?? void 0
4059
- };
4060
- else {
4061
- var s;
4062
- o && Ur.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
4063
- return o.unsubscribe();
4064
- }, a = {
4065
- next: r.next && it(r.next, s),
4066
- error: r.error && it(r.error, s),
4067
- complete: r.complete && it(r.complete, s)
4068
- }) : a = r;
4069
- }
4070
- return o.destination = new bo(a), o;
4086
+ var o = e.call(this) || this, s;
4087
+ return X(r) || !r ? s = {
4088
+ next: r ?? void 0,
4089
+ error: n ?? void 0,
4090
+ complete: i ?? void 0
4091
+ } : s = r, o.destination = new yo(s), o;
4071
4092
  }
4072
4093
  return t;
4073
- }(Fr);
4094
+ }(Gr);
4074
4095
  function Ie(e) {
4075
- mo(e);
4096
+ go(e);
4076
4097
  }
4077
- function go(e) {
4098
+ function vo(e) {
4078
4099
  throw e;
4079
4100
  }
4080
- var yo = {
4101
+ var _o = {
4081
4102
  closed: !0,
4082
- next: zt,
4083
- error: go,
4084
- complete: zt
4085
- }, vo = function() {
4103
+ next: Qt,
4104
+ error: vo,
4105
+ complete: Qt
4106
+ }, Eo = function() {
4086
4107
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4087
4108
  }();
4088
- function _o(e) {
4109
+ function xo(e) {
4089
4110
  return e;
4090
4111
  }
4091
- function Eo(e) {
4092
- return e.length === 0 ? _o : e.length === 1 ? e[0] : function(r) {
4112
+ function wo(e) {
4113
+ return e.length === 0 ? xo : e.length === 1 ? e[0] : function(r) {
4093
4114
  return e.reduce(function(n, i) {
4094
4115
  return i(n);
4095
4116
  }, r);
4096
4117
  };
4097
4118
  }
4098
- var Zt = function() {
4119
+ var Jt = function() {
4099
4120
  function e(t) {
4100
4121
  t && (this._subscribe = t);
4101
4122
  }
@@ -4103,10 +4124,10 @@ var Zt = function() {
4103
4124
  var r = new e();
4104
4125
  return r.source = this, r.operator = t, r;
4105
4126
  }, e.prototype.subscribe = function(t, r, n) {
4106
- var i = this, o = wo(t) ? t : new gt(t, r, n);
4127
+ var i = this, o = To(t) ? t : new Et(t, r, n);
4107
4128
  return Ue(function() {
4108
- var a = i, s = a.operator, l = a.source;
4109
- o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4129
+ var s = i, a = s.operator, l = s.source;
4130
+ o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4110
4131
  }), o;
4111
4132
  }, e.prototype._trySubscribe = function(t) {
4112
4133
  try {
@@ -4116,37 +4137,37 @@ var Zt = function() {
4116
4137
  }
4117
4138
  }, e.prototype.forEach = function(t, r) {
4118
4139
  var n = this;
4119
- return r = Qt(r), new r(function(i, o) {
4120
- var a = new gt({
4121
- next: function(s) {
4140
+ return r = Yt(r), new r(function(i, o) {
4141
+ var s = new Et({
4142
+ next: function(a) {
4122
4143
  try {
4123
- t(s);
4144
+ t(a);
4124
4145
  } catch (l) {
4125
- o(l), a.unsubscribe();
4146
+ o(l), s.unsubscribe();
4126
4147
  }
4127
4148
  },
4128
4149
  error: o,
4129
4150
  complete: i
4130
4151
  });
4131
- n.subscribe(a);
4152
+ n.subscribe(s);
4132
4153
  });
4133
4154
  }, e.prototype._subscribe = function(t) {
4134
4155
  var r;
4135
4156
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4136
- }, e.prototype[vo] = function() {
4157
+ }, e.prototype[Eo] = function() {
4137
4158
  return this;
4138
4159
  }, e.prototype.pipe = function() {
4139
4160
  for (var t = [], r = 0; r < arguments.length; r++)
4140
4161
  t[r] = arguments[r];
4141
- return Eo(t)(this);
4162
+ return wo(t)(this);
4142
4163
  }, e.prototype.toPromise = function(t) {
4143
4164
  var r = this;
4144
- return t = Qt(t), new t(function(n, i) {
4165
+ return t = Yt(t), new t(function(n, i) {
4145
4166
  var o;
4146
- r.subscribe(function(a) {
4147
- return o = a;
4148
- }, function(a) {
4149
- return i(a);
4167
+ r.subscribe(function(s) {
4168
+ return o = s;
4169
+ }, function(s) {
4170
+ return i(s);
4150
4171
  }, function() {
4151
4172
  return n(o);
4152
4173
  });
@@ -4155,32 +4176,32 @@ var Zt = function() {
4155
4176
  return new e(t);
4156
4177
  }, e;
4157
4178
  }();
4158
- function Qt(e) {
4179
+ function Yt(e) {
4159
4180
  var t;
4160
- return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
4181
+ return (t = e ?? mo.Promise) !== null && t !== void 0 ? t : Promise;
4161
4182
  }
4162
- function xo(e) {
4163
- return e && V(e.next) && V(e.error) && V(e.complete);
4183
+ function So(e) {
4184
+ return e && X(e.next) && X(e.error) && X(e.complete);
4164
4185
  }
4165
- function wo(e) {
4166
- return e && e instanceof Fr || xo(e) && $r(e);
4186
+ function To(e) {
4187
+ return e && e instanceof Gr || So(e) && Fr(e);
4167
4188
  }
4168
- var So = Rr(function(e) {
4189
+ var Ho = $r(function(e) {
4169
4190
  return function() {
4170
4191
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4171
4192
  };
4172
- }), Gr = function(e) {
4173
- X(t, e);
4193
+ }), jr = function(e) {
4194
+ Se(t, e);
4174
4195
  function t() {
4175
4196
  var r = e.call(this) || this;
4176
4197
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4177
4198
  }
4178
4199
  return t.prototype.lift = function(r) {
4179
- var n = new Jt(this, this);
4200
+ var n = new qt(this, this);
4180
4201
  return n.operator = r, n;
4181
4202
  }, t.prototype._throwIfClosed = function() {
4182
4203
  if (this.closed)
4183
- throw new So();
4204
+ throw new Ho();
4184
4205
  }, t.prototype.next = function(r) {
4185
4206
  var n = this;
4186
4207
  Ue(function() {
@@ -4188,15 +4209,15 @@ var So = Rr(function(e) {
4188
4209
  if (n._throwIfClosed(), !n.isStopped) {
4189
4210
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4190
4211
  try {
4191
- for (var a = at(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
4192
- var l = s.value;
4212
+ for (var s = gt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4213
+ var l = a.value;
4193
4214
  l.next(r);
4194
4215
  }
4195
4216
  } catch (u) {
4196
4217
  i = { error: u };
4197
4218
  } finally {
4198
4219
  try {
4199
- s && !s.done && (o = a.return) && o.call(a);
4220
+ a && !a.done && (o = s.return) && o.call(s);
4200
4221
  } finally {
4201
4222
  if (i)
4202
4223
  throw i.error;
@@ -4236,21 +4257,21 @@ var So = Rr(function(e) {
4236
4257
  }, t.prototype._subscribe = function(r) {
4237
4258
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4238
4259
  }, t.prototype._innerSubscribe = function(r) {
4239
- var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
4240
- return o || a ? Dr : (this.currentObservers = null, s.push(r), new Ze(function() {
4241
- n.currentObservers = null, bt(s, r);
4260
+ var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4261
+ return o || s ? Ur : (this.currentObservers = null, a.push(r), new Je(function() {
4262
+ n.currentObservers = null, _t(a, r);
4242
4263
  }));
4243
4264
  }, t.prototype._checkFinalizedStatuses = function(r) {
4244
- var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
4245
- i ? r.error(o) : a && r.complete();
4265
+ var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4266
+ i ? r.error(o) : s && r.complete();
4246
4267
  }, t.prototype.asObservable = function() {
4247
- var r = new Zt();
4268
+ var r = new Jt();
4248
4269
  return r.source = this, r;
4249
4270
  }, t.create = function(r, n) {
4250
- return new Jt(r, n);
4271
+ return new qt(r, n);
4251
4272
  }, t;
4252
- }(Zt), Jt = function(e) {
4253
- X(t, e);
4273
+ }(Jt), qt = function(e) {
4274
+ Se(t, e);
4254
4275
  function t(r, n) {
4255
4276
  var i = e.call(this) || this;
4256
4277
  return i.destination = r, i.source = n, i;
@@ -4266,48 +4287,48 @@ var So = Rr(function(e) {
4266
4287
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4267
4288
  }, t.prototype._subscribe = function(r) {
4268
4289
  var n, i;
4269
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dr;
4290
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ur;
4270
4291
  }, t;
4271
- }(Gr), jr = {
4292
+ }(jr), kr = {
4272
4293
  now: function() {
4273
- return (jr.delegate || Date).now();
4294
+ return (kr.delegate || Date).now();
4274
4295
  },
4275
4296
  delegate: void 0
4276
- }, To = function(e) {
4277
- X(t, e);
4297
+ }, Co = function(e) {
4298
+ Se(t, e);
4278
4299
  function t(r, n, i) {
4279
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jr);
4300
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kr);
4280
4301
  var o = e.call(this) || this;
4281
4302
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4282
4303
  }
4283
4304
  return t.prototype.next = function(r) {
4284
- var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
4285
- i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4305
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
4306
+ i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4286
4307
  }, t.prototype._subscribe = function(r) {
4287
4308
  this._throwIfClosed(), this._trimBuffer();
4288
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
4289
- r.next(s[l]);
4309
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
4310
+ r.next(a[l]);
4290
4311
  return this._checkFinalizedStatuses(r), n;
4291
4312
  }, t.prototype._trimBuffer = function() {
4292
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
4293
- if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
4313
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
4314
+ if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4294
4315
  for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
4295
4316
  u = h;
4296
4317
  u && o.splice(0, u + 1);
4297
4318
  }
4298
4319
  }, t;
4299
- }(Gr);
4300
- const Yt = [], qt = {}, Ho = (e, t = 0) => {
4301
- if (Yt.indexOf(e) == -1) {
4302
- const r = new To(t);
4303
- qt[e] = r, Yt.push(e);
4320
+ }(jr);
4321
+ const Kt = [], er = {}, Ao = (e, t = 0) => {
4322
+ if (Kt.indexOf(e) == -1) {
4323
+ const r = new Co(t);
4324
+ er[e] = r, Kt.push(e);
4304
4325
  }
4305
- return qt[e];
4326
+ return er[e];
4306
4327
  };
4307
- let yt = "en-UK", kr = "true", vt = 0, _t = "";
4308
- const Co = (e, t, r, n) => {
4309
- yt = e || "en-UK", kr = t || "true", vt = +n || 0, _t = r || "";
4310
- }, Kt = ({ local: e, options: t = {}, amount: r }) => {
4328
+ let xt = "en-UK", Vr = "true", wt = 0, St = "";
4329
+ const Po = (e, t, r, n) => {
4330
+ xt = e || "en-UK", Vr = t || "true", wt = +n || 0, St = r || "";
4331
+ }, tr = ({ local: e, options: t = {}, amount: r }) => {
4311
4332
  try {
4312
4333
  return new Intl.NumberFormat(e, t);
4313
4334
  } catch (n) {
@@ -4318,24 +4339,24 @@ const Co = (e, t, r, n) => {
4318
4339
  }
4319
4340
  }, Le = (e, t, r = {}, n = !0) => {
4320
4341
  const i = {
4321
- maximumFractionDigits: vt,
4322
- minimumFractionDigits: vt,
4342
+ maximumFractionDigits: wt,
4343
+ minimumFractionDigits: wt,
4323
4344
  ...n && {
4324
4345
  style: "currency",
4325
4346
  currency: t,
4326
- currencyDisplay: kr === "true" ? "symbol" : "code"
4347
+ currencyDisplay: Vr === "true" ? "symbol" : "code"
4327
4348
  },
4328
4349
  ...r
4329
4350
  };
4330
- if (!_t)
4331
- return Kt({ local: yt, options: i }).format(e);
4332
- const a = Kt({ local: yt, options: i }).formatToParts(e), s = a.find(({ type: h = "" } = {}) => h === "currency") || {}, l = a.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4333
- return _t === "before" ? `${s.value || t || ""} ${l}` : `${l} ${s.value || t || ""}`;
4351
+ if (!St)
4352
+ return tr({ local: xt, options: i }).format(e);
4353
+ const s = tr({ local: xt, options: i }).formatToParts(e), a = s.find(({ type: h = "" } = {}) => h === "currency") || {}, l = s.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4354
+ return St === "before" ? `${a.value || t || ""} ${l}` : `${l} ${a.value || t || ""}`;
4334
4355
  };
4335
- window.emWidgets = { topic: Ho };
4356
+ window.emWidgets = { topic: Ao };
4336
4357
  const Ne = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4337
4358
  String(Number.MAX_SAFE_INTEGER).length;
4338
- const er = {
4359
+ const rr = {
4339
4360
  en: {
4340
4361
  generalMin: "Min",
4341
4362
  generalMax: "Max",
@@ -4361,82 +4382,82 @@ const er = {
4361
4382
  carouselSubtitle: "En popüler ödeme yöntemleri"
4362
4383
  }
4363
4384
  };
4364
- function Ao(e) {
4365
- Qr(e, "svelte-u54bgm", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%}.Carousel{display:flex;gap:10px;height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1);cursor:pointer}.VisualDotIndicator .Dot:hover{opacity:0.7;transform:scale(1.1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px;transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo{display:flex;justify-content:center;align-content:center;align-items:center;height:100%}.CarouselCardWrapper .MethodLogo img{height:40px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
4385
+ function Mo(e) {
4386
+ Jr(e, "svelte-u54bgm", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CashierCarouselWarpper{background-color:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));color:var(--emw--color-typography, var(--emw--color-white, #ffffff));height:auto;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;position:relative;overflow:hidden}.NavigationArrow{height:220px;z-index:20;display:flex;transition:all 0.3s ease;position:absolute}.NavigationArrow:hover{cursor:pointer}.NavigationArrow:hover svg{opacity:1;transform:scale(1.1);filter:drop-shadow(0 0 0.75rem var(--emw--color-black))}.NavigationArrow svg{opacity:0.6;width:32px;height:32px;align-self:center;fill:var(--emw--color-white);transition:all 0.3s ease}.NavigationArrow.Left{left:0;background:linear-gradient(to right, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.NavigationArrow.Right{right:0;background:linear-gradient(to left, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 35%, transparent 100%)}.CarouselHeader{margin-bottom:20px;text-align:center}.CarouselHeader h4{font-size:12px;text-transform:uppercase;margin:10px 0}.CarouselHeader p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));opacity:0.55;font-size:12px}.NoFavoritePaymentMethods{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:12px}.CarouselCardsContainer{display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;max-width:100%}.Carousel{display:flex;gap:10px;height:220px;position:relative;align-items:center;transition:transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.Carousel.dragging{transition:none}.VisualDotIndicator{display:flex;gap:5px;margin-top:16px}.VisualDotIndicator .Dot{border-radius:10px;background-color:var(--emw--color-primary, #f9c405);height:10px;width:10px;opacity:0.5;transition:all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);transform:scale(1);cursor:pointer}.VisualDotIndicator .Dot:hover{opacity:0.7;transform:scale(1.1)}.VisualDotIndicator .Dot.active{opacity:1;width:30px;transform:scale(1);animation:dotPulse 0.6s ease-out}@keyframes dotPulse{0%{transform:scale(0.8);opacity:0.5}50%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}.CarouselCardWrapper{border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:10px;z-index:1;padding:15px;height:190px;width:160px;transition:all 0.3s ease;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.CarouselCardWrapper.active{height:220px;width:180px}.CarouselCardWrapper.active::before{background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.3}.CarouselCardWrapper::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-white, #f5f5f5) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%);opacity:0.2}.CarouselCardWrapper .MethodLogo{display:flex;justify-content:center;align-content:center;align-items:center;height:100%}.CarouselCardWrapper .MethodLogo img{height:40px;width:auto}.CarouselCardWrapper .MethodInfo{display:flex;flex-direction:column;gap:10px;word-break:break-word}.CarouselCardWrapper .MethodInfo .MethodTitle{font-size:18px;font-weight:800}.CarouselCardWrapper .MethodInfo .MethodProcessingTime{color:var(--emw--color-primary, #f9c405);font-style:italic;font-size:12px}.CarouselCardWrapper .MethodInfo .MethodLimits{gap:var(--emw--spacing-small-minus, 10px);text-align:left}.CarouselCardWrapper .MethodInfo .Limits{display:flex;flex-direction:column;max-width:100%;font-size:var(--emw--font-size-small, 11px);font-weight:var(--emw--font-weight-normal, 300)}');
4366
4387
  }
4367
- function tr(e, t, r) {
4388
+ function nr(e, t, r) {
4368
4389
  const n = e.slice();
4369
4390
  return n[40] = t[r], n[42] = r, n;
4370
4391
  }
4371
- function rr(e, t, r) {
4392
+ function ir(e, t, r) {
4372
4393
  const n = e.slice();
4373
4394
  return n[43] = t[r], n[42] = r, n;
4374
4395
  }
4375
- function Po(e) {
4396
+ function Oo(e) {
4376
4397
  let t, r = (
4377
4398
  /*$_*/
4378
4399
  e[8]("noFavoritePaymentMethods") + ""
4379
4400
  ), n;
4380
4401
  return {
4381
4402
  c() {
4382
- t = H("p"), n = F(r), M(t, "class", "NoFavoritePaymentMethods");
4403
+ t = T("p"), n = F(r), P(t, "class", "NoFavoritePaymentMethods");
4383
4404
  },
4384
4405
  m(i, o) {
4385
- G(i, t, o), v(t, n);
4406
+ j(i, t, o), v(t, n);
4386
4407
  },
4387
4408
  p(i, o) {
4388
4409
  o[0] & /*$_*/
4389
4410
  256 && r !== (r = /*$_*/
4390
- i[8]("noFavoritePaymentMethods") + "") && k(n, r);
4411
+ i[8]("noFavoritePaymentMethods") + "") && V(n, r);
4391
4412
  },
4392
4413
  d(i) {
4393
4414
  i && D(t);
4394
4415
  }
4395
4416
  };
4396
4417
  }
4397
- function Mo(e) {
4418
+ function Bo(e) {
4398
4419
  let t, r = !Ne(
4399
4420
  /*userAgent*/
4400
4421
  e[9]
4401
4422
  ) && /*promotedPaymentMethods*/
4402
- e[5].length > 1, n, i, o, a = !Ne(
4423
+ e[5].length > 1, n, i, o, s = !Ne(
4403
4424
  /*userAgent*/
4404
4425
  e[9]
4405
4426
  ) && /*promotedPaymentMethods*/
4406
- e[5].length > 1, s, l, u, h, f, c = r && nr(e), g = Be(
4427
+ e[5].length > 1, a, l, u, h, f, c = r && or(e), g = Oe(
4407
4428
  /*promotedPaymentMethods*/
4408
4429
  e[5]
4409
- ), p = [];
4410
- for (let m = 0; m < g.length; m += 1)
4411
- p[m] = ir(rr(e, g, m));
4412
- let d = a && or(e), _ = Be(Array(
4430
+ ), d = [];
4431
+ for (let p = 0; p < g.length; p += 1)
4432
+ d[p] = sr(ir(e, g, p));
4433
+ let m = s && ar(e), _ = Oe(Array(
4413
4434
  /*promotedPaymentMethods*/
4414
4435
  e[5].length
4415
4436
  )), E = [];
4416
- for (let m = 0; m < _.length; m += 1)
4417
- E[m] = sr(tr(e, _, m));
4437
+ for (let p = 0; p < _.length; p += 1)
4438
+ E[p] = ur(nr(e, _, p));
4418
4439
  return {
4419
4440
  c() {
4420
- t = H("div"), c && c.c(), n = R(), i = H("div");
4421
- for (let m = 0; m < p.length; m += 1)
4422
- p[m].c();
4423
- o = R(), d && d.c(), l = R(), u = H("div");
4424
- for (let m = 0; m < E.length; m += 1)
4425
- E[m].c();
4426
- M(i, "class", "Carousel"), M(t, "class", "CarouselCardsContainer"), Ge(() => (
4441
+ t = T("div"), c && c.c(), n = R(), i = T("div");
4442
+ for (let p = 0; p < d.length; p += 1)
4443
+ d[p].c();
4444
+ o = R(), m && m.c(), l = R(), u = T("div");
4445
+ for (let p = 0; p < E.length; p += 1)
4446
+ E[p].c();
4447
+ P(i, "class", "Carousel"), P(t, "class", "CarouselCardsContainer"), Ge(() => (
4427
4448
  /*div1_elementresize_handler*/
4428
4449
  e[28].call(t)
4429
- )), M(u, "class", "VisualDotIndicator");
4450
+ )), P(u, "class", "VisualDotIndicator");
4430
4451
  },
4431
- m(m, S) {
4432
- G(m, t, S), c && c.m(t, null), v(t, n), v(t, i);
4433
- for (let y = 0; y < p.length; y += 1)
4434
- p[y] && p[y].m(i, null);
4435
- e[26](i), v(t, o), d && d.m(t, null), s = en(
4452
+ m(p, S) {
4453
+ j(p, t, S), c && c.m(t, null), v(t, n), v(t, i);
4454
+ for (let y = 0; y < d.length; y += 1)
4455
+ d[y] && d[y].m(i, null);
4456
+ e[26](i), v(t, o), m && m.m(t, null), a = tn(
4436
4457
  t,
4437
4458
  /*div1_elementresize_handler*/
4438
4459
  e[28].bind(t)
4439
- ), G(m, l, S), G(m, u, S);
4460
+ ), j(p, l, S), j(p, u, S);
4440
4461
  for (let y = 0; y < E.length; y += 1)
4441
4462
  E[y] && E[y].m(u, null);
4442
4463
  h || (f = [
@@ -4460,61 +4481,61 @@ function Mo(e) {
4460
4481
  )
4461
4482
  ], h = !0);
4462
4483
  },
4463
- p(m, S) {
4484
+ p(p, S) {
4464
4485
  if (S[0] & /*promotedPaymentMethods*/
4465
4486
  32 && (r = !Ne(
4466
4487
  /*userAgent*/
4467
- m[9]
4488
+ p[9]
4468
4489
  ) && /*promotedPaymentMethods*/
4469
- m[5].length > 1), r ? c ? c.p(m, S) : (c = nr(m), c.c(), c.m(t, n)) : c && (c.d(1), c = null), S[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
4490
+ p[5].length > 1), r ? c ? c.p(p, S) : (c = or(p), c.c(), c.m(t, n)) : c && (c.d(1), c = null), S[0] & /*activeIndex, selectPayMeth, promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals, $_, methodtype*/
4470
4491
  1521) {
4471
- g = Be(
4492
+ g = Oe(
4472
4493
  /*promotedPaymentMethods*/
4473
- m[5]
4494
+ p[5]
4474
4495
  );
4475
4496
  let y;
4476
4497
  for (y = 0; y < g.length; y += 1) {
4477
- const P = rr(m, g, y);
4478
- p[y] ? p[y].p(P, S) : (p[y] = ir(P), p[y].c(), p[y].m(i, null));
4498
+ const A = ir(p, g, y);
4499
+ d[y] ? d[y].p(A, S) : (d[y] = sr(A), d[y].c(), d[y].m(i, null));
4479
4500
  }
4480
- for (; y < p.length; y += 1)
4481
- p[y].d(1);
4482
- p.length = g.length;
4501
+ for (; y < d.length; y += 1)
4502
+ d[y].d(1);
4503
+ d.length = g.length;
4483
4504
  }
4484
4505
  if (S[0] & /*promotedPaymentMethods*/
4485
- 32 && (a = !Ne(
4506
+ 32 && (s = !Ne(
4486
4507
  /*userAgent*/
4487
- m[9]
4508
+ p[9]
4488
4509
  ) && /*promotedPaymentMethods*/
4489
- m[5].length > 1), a ? d ? d.p(m, S) : (d = or(m), d.c(), d.m(t, null)) : d && (d.d(1), d = null), S[0] & /*activeIndex, promotedPaymentMethods*/
4510
+ p[5].length > 1), s ? m ? m.p(p, S) : (m = ar(p), m.c(), m.m(t, null)) : m && (m.d(1), m = null), S[0] & /*activeIndex, promotedPaymentMethods*/
4490
4511
  96) {
4491
- _ = Be(Array(
4512
+ _ = Oe(Array(
4492
4513
  /*promotedPaymentMethods*/
4493
- m[5].length
4514
+ p[5].length
4494
4515
  ));
4495
4516
  let y;
4496
4517
  for (y = 0; y < _.length; y += 1) {
4497
- const P = tr(m, _, y);
4498
- E[y] ? E[y].p(P, S) : (E[y] = sr(P), E[y].c(), E[y].m(u, null));
4518
+ const A = nr(p, _, y);
4519
+ E[y] ? E[y].p(A, S) : (E[y] = ur(A), E[y].c(), E[y].m(u, null));
4499
4520
  }
4500
4521
  for (; y < E.length; y += 1)
4501
4522
  E[y].d(1);
4502
4523
  E.length = _.length;
4503
4524
  }
4504
4525
  },
4505
- d(m) {
4506
- m && (D(t), D(l), D(u)), c && c.d(), Pt(p, m), e[26](null), d && d.d(), s(), Pt(E, m), h = !1, fe(f);
4526
+ d(p) {
4527
+ p && (D(t), D(l), D(u)), c && c.d(), Ot(d, p), e[26](null), m && m.d(), a(), Ot(E, p), h = !1, ce(f);
4507
4528
  }
4508
4529
  };
4509
4530
  }
4510
- function nr(e) {
4531
+ function or(e) {
4511
4532
  let t, r, n;
4512
4533
  return {
4513
4534
  c() {
4514
- t = H("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Left");
4535
+ t = T("div"), t.innerHTML = '<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9997 5.33335C21.8907 5.33335 26.6663 10.109 26.6663 16C26.6663 21.8911 21.8907 26.6667 15.9997 26.6667C10.1086 26.6667 5.33301 21.8911 5.33301 16C5.33301 10.109 10.1086 5.33335 15.9997 5.33335ZM29.333 16C29.333 8.63622 23.3635 2.66669 15.9997 2.66669C8.63588 2.66669 2.66634 8.63622 2.66634 16C2.66634 23.3638 8.63588 29.3334 15.9997 29.3334C23.3635 29.3334 29.333 23.3638 29.333 16ZM18.2758 11.0572C17.7551 10.5365 16.9109 10.5365 16.3902 11.0572L12.3902 15.0572C11.8695 15.5779 11.8695 16.4221 12.3902 16.9428L16.3902 20.9428C16.9109 21.4635 17.7551 21.4635 18.2758 20.9428C18.7965 20.4221 18.7965 19.5779 18.2758 19.0572L15.2186 16L18.2758 12.9428C18.7965 12.4221 18.7965 11.5779 18.2758 11.0572Z"></path></svg>', P(t, "class", "NavigationArrow Left");
4515
4536
  },
4516
4537
  m(i, o) {
4517
- G(i, t, o), r || (n = Z(
4538
+ j(i, t, o), r || (n = Z(
4518
4539
  t,
4519
4540
  "click",
4520
4541
  /*click_handler*/
@@ -4527,20 +4548,20 @@ function nr(e) {
4527
4548
  }
4528
4549
  };
4529
4550
  }
4530
- function ir(e) {
4531
- let t, r, n, i, o, a, s, l, u, h = (
4551
+ function sr(e) {
4552
+ let t, r, n, i, o, s, a, l, u, h = (
4532
4553
  /*method*/
4533
4554
  (e[43].Label || /*method*/
4534
4555
  e[43].Name) + ""
4535
- ), f, c, g, p, d = (
4556
+ ), f, c, g, d, m = (
4536
4557
  /*$_*/
4537
4558
  e[8](`${/*methodtype*/
4538
4559
  e[0]}${/*method*/
4539
4560
  e[43].ProcessingTime}`) + ""
4540
- ), _, E, m, S, y, P = (
4561
+ ), _, E, p, S, y, A = (
4541
4562
  /*$_*/
4542
4563
  e[8]("generalMin") + ""
4543
- ), C, $, ee = Le(
4564
+ ), H, $, ee = Le(
4544
4565
  /*method*/
4545
4566
  e[43].DisplayCurrency.MinAmountLimit,
4546
4567
  /*method*/
@@ -4566,7 +4587,7 @@ function ir(e) {
4566
4587
  ) + "", te, Te, J, Y = (
4567
4588
  /*$_*/
4568
4589
  e[8]("generalMax") + ""
4569
- ), j, He, re = Le(
4590
+ ), k, He, re = Le(
4570
4591
  /*method*/
4571
4592
  e[43].DisplayCurrency.MaxAmountLimit,
4572
4593
  /*method*/
@@ -4589,8 +4610,8 @@ function ir(e) {
4589
4610
  e[7]
4590
4611
  )
4591
4612
  }
4592
- ) + "", pe, Ce, W, be, Ae;
4593
- function Qe() {
4613
+ ) + "", me, Ce, W, de, Ae;
4614
+ function Ye() {
4594
4615
  return (
4595
4616
  /*click_handler_1*/
4596
4617
  e[25](
@@ -4603,30 +4624,30 @@ function ir(e) {
4603
4624
  }
4604
4625
  return {
4605
4626
  c() {
4606
- t = H("div"), r = H("div"), n = H("img"), a = R(), s = H("div"), l = H("div"), u = H("span"), f = F(h), c = R(), g = H("div"), p = H("span"), _ = F(d), E = R(), m = H("div"), S = H("span"), y = H("span"), C = F(P), $ = R(), te = F(ee), Te = R(), J = H("span"), j = F(Y), He = R(), pe = F(re), Ce = R(), At(n.src, i = /*method*/
4607
- e[43].LogoUrl) || M(n, "src", i), M(n, "alt", o = /*method*/
4608
- e[43].Label), M(r, "class", "MethodLogo"), M(l, "class", "MethodTitle"), M(g, "class", "MethodProcessingTime"), M(S, "class", "Limits"), M(m, "class", "MethodLimits"), M(s, "class", "MethodInfo"), M(t, "class", W = `CarouselCardWrapper ${/*index*/
4627
+ t = T("div"), r = T("div"), n = T("img"), s = R(), a = T("div"), l = T("div"), u = T("span"), f = F(h), c = R(), g = T("div"), d = T("span"), _ = F(m), E = R(), p = T("div"), S = T("span"), y = T("span"), H = F(A), $ = R(), te = F(ee), Te = R(), J = T("span"), k = F(Y), He = R(), me = F(re), Ce = R(), Mt(n.src, i = /*method*/
4628
+ e[43].LogoUrl) || P(n, "src", i), P(n, "alt", o = /*method*/
4629
+ e[43].Label), P(r, "class", "MethodLogo"), P(l, "class", "MethodTitle"), P(g, "class", "MethodProcessingTime"), P(S, "class", "Limits"), P(p, "class", "MethodLimits"), P(a, "class", "MethodInfo"), P(t, "class", W = `CarouselCardWrapper ${/*index*/
4609
4630
  e[42] === /*activeIndex*/
4610
4631
  e[6] ? "active" : ""}`);
4611
4632
  },
4612
4633
  m(q, I) {
4613
- G(q, t, I), v(t, r), v(r, n), v(t, a), v(t, s), v(s, l), v(l, u), v(u, f), v(s, c), v(s, g), v(g, p), v(p, _), v(s, E), v(s, m), v(m, S), v(S, y), v(y, C), v(y, $), v(y, te), v(S, Te), v(S, J), v(J, j), v(J, He), v(J, pe), v(t, Ce), be || (Ae = Z(t, "click", Qe), be = !0);
4634
+ j(q, t, I), v(t, r), v(r, n), v(t, s), v(t, a), v(a, l), v(l, u), v(u, f), v(a, c), v(a, g), v(g, d), v(d, _), v(a, E), v(a, p), v(p, S), v(S, y), v(y, H), v(y, $), v(y, te), v(S, Te), v(S, J), v(J, k), v(J, He), v(J, me), v(t, Ce), de || (Ae = Z(t, "click", Ye), de = !0);
4614
4635
  },
4615
4636
  p(q, I) {
4616
4637
  e = q, I[0] & /*promotedPaymentMethods*/
4617
- 32 && !At(n.src, i = /*method*/
4618
- e[43].LogoUrl) && M(n, "src", i), I[0] & /*promotedPaymentMethods*/
4638
+ 32 && !Mt(n.src, i = /*method*/
4639
+ e[43].LogoUrl) && P(n, "src", i), I[0] & /*promotedPaymentMethods*/
4619
4640
  32 && o !== (o = /*method*/
4620
- e[43].Label) && M(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4641
+ e[43].Label) && P(n, "alt", o), I[0] & /*promotedPaymentMethods*/
4621
4642
  32 && h !== (h = /*method*/
4622
4643
  (e[43].Label || /*method*/
4623
- e[43].Name) + "") && k(f, h), I[0] & /*$_, methodtype, promotedPaymentMethods*/
4624
- 289 && d !== (d = /*$_*/
4644
+ e[43].Name) + "") && V(f, h), I[0] & /*$_, methodtype, promotedPaymentMethods*/
4645
+ 289 && m !== (m = /*$_*/
4625
4646
  e[8](`${/*methodtype*/
4626
4647
  e[0]}${/*method*/
4627
- e[43].ProcessingTime}`) + "") && k(_, d), I[0] & /*$_*/
4628
- 256 && P !== (P = /*$_*/
4629
- e[8]("generalMin") + "") && k(C, P), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4648
+ e[43].ProcessingTime}`) + "") && V(_, m), I[0] & /*$_*/
4649
+ 256 && A !== (A = /*$_*/
4650
+ e[8]("generalMin") + "") && V(H, A), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4630
4651
  176 && ee !== (ee = Le(
4631
4652
  /*method*/
4632
4653
  e[43].DisplayCurrency.MinAmountLimit,
@@ -4650,9 +4671,9 @@ function ir(e) {
4650
4671
  e[7]
4651
4672
  )
4652
4673
  }
4653
- ) + "") && k(te, ee), I[0] & /*$_*/
4674
+ ) + "") && V(te, ee), I[0] & /*$_*/
4654
4675
  256 && Y !== (Y = /*$_*/
4655
- e[8]("generalMax") + "") && k(j, Y), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4676
+ e[8]("generalMax") + "") && V(k, Y), I[0] & /*promotedPaymentMethods, precisionCurrenciesMap, numericCurrencyDecimals*/
4656
4677
  176 && re !== (re = Le(
4657
4678
  /*method*/
4658
4679
  e[43].DisplayCurrency.MaxAmountLimit,
@@ -4676,24 +4697,24 @@ function ir(e) {
4676
4697
  e[7]
4677
4698
  )
4678
4699
  }
4679
- ) + "") && k(pe, re), I[0] & /*activeIndex*/
4700
+ ) + "") && V(me, re), I[0] & /*activeIndex*/
4680
4701
  64 && W !== (W = `CarouselCardWrapper ${/*index*/
4681
4702
  e[42] === /*activeIndex*/
4682
- e[6] ? "active" : ""}`) && M(t, "class", W);
4703
+ e[6] ? "active" : ""}`) && P(t, "class", W);
4683
4704
  },
4684
4705
  d(q) {
4685
- q && D(t), be = !1, Ae();
4706
+ q && D(t), de = !1, Ae();
4686
4707
  }
4687
4708
  };
4688
4709
  }
4689
- function or(e) {
4710
+ function ar(e) {
4690
4711
  let t, r, n;
4691
4712
  return {
4692
4713
  c() {
4693
- t = H("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', M(t, "class", "NavigationArrow Right");
4714
+ t = T("div"), t.innerHTML = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.0003 5.33335C10.1093 5.33335 5.33366 10.109 5.33366 16C5.33366 21.8911 10.1093 26.6667 16.0003 26.6667C21.8914 26.6667 26.667 21.8911 26.667 16C26.667 10.109 21.8914 5.33335 16.0003 5.33335ZM2.66699 16C2.66699 8.63622 8.63653 2.66669 16.0003 2.66669C23.3641 2.66669 29.3337 8.63622 29.3337 16C29.3337 23.3638 23.3641 29.3334 16.0003 29.3334C8.63653 29.3334 2.66699 23.3638 2.66699 16ZM13.7242 11.0572C14.2449 10.5365 15.0891 10.5365 15.6098 11.0572L19.6098 15.0572C20.1305 15.5779 20.1305 16.4221 19.6098 16.9428L15.6098 20.9428C15.0891 21.4635 14.2449 21.4635 13.7242 20.9428C13.2035 20.4221 13.2035 19.5779 13.7242 19.0572L16.7814 16L13.7242 12.9428C13.2035 12.4221 13.2035 11.5779 13.7242 11.0572Z"></path></svg>', P(t, "class", "NavigationArrow Right");
4694
4715
  },
4695
4716
  m(i, o) {
4696
- G(i, t, o), r || (n = Z(
4717
+ j(i, t, o), r || (n = Z(
4697
4718
  t,
4698
4719
  "click",
4699
4720
  /*click_handler_2*/
@@ -4706,98 +4727,98 @@ function or(e) {
4706
4727
  }
4707
4728
  };
4708
4729
  }
4709
- function sr(e) {
4730
+ function ur(e) {
4710
4731
  let t, r;
4711
4732
  return {
4712
4733
  c() {
4713
- t = H("div"), M(t, "class", r = `Dot ${/*index*/
4734
+ t = T("div"), P(t, "class", r = `Dot ${/*index*/
4714
4735
  e[42] === /*activeIndex*/
4715
4736
  e[6] ? "active" : ""}`);
4716
4737
  },
4717
4738
  m(n, i) {
4718
- G(n, t, i);
4739
+ j(n, t, i);
4719
4740
  },
4720
4741
  p(n, i) {
4721
4742
  i[0] & /*activeIndex*/
4722
4743
  64 && r !== (r = `Dot ${/*index*/
4723
4744
  n[42] === /*activeIndex*/
4724
- n[6] ? "active" : ""}`) && M(t, "class", r);
4745
+ n[6] ? "active" : ""}`) && P(t, "class", r);
4725
4746
  },
4726
4747
  d(n) {
4727
4748
  n && D(t);
4728
4749
  }
4729
4750
  };
4730
4751
  }
4731
- function Bo(e) {
4752
+ function Io(e) {
4732
4753
  let t, r, n, i, o = (
4733
4754
  /*$_*/
4734
4755
  e[8]("carouselTitle") + ""
4735
- ), a, s, l, u = (
4756
+ ), s, a, l, u = (
4736
4757
  /*$_*/
4737
4758
  e[8]("carouselSubtitle") + ""
4738
4759
  ), h, f;
4739
- function c(d, _) {
4760
+ function c(m, _) {
4740
4761
  return (
4741
4762
  /*promotedPaymentMethods*/
4742
- d[5].length > 0 ? Mo : Po
4763
+ m[5].length > 0 ? Bo : Oo
4743
4764
  );
4744
4765
  }
4745
- let g = c(e), p = g(e);
4766
+ let g = c(e), d = g(e);
4746
4767
  return {
4747
4768
  c() {
4748
- t = H("div"), r = H("div"), n = H("div"), i = H("h4"), a = F(o), s = R(), l = H("p"), h = F(u), f = R(), p.c(), M(n, "class", "CarouselHeader"), M(r, "class", "CashierCarouselWarpper");
4769
+ t = T("div"), r = T("div"), n = T("div"), i = T("h4"), s = F(o), a = R(), l = T("p"), h = F(u), f = R(), d.c(), P(n, "class", "CarouselHeader"), P(r, "class", "CashierCarouselWarpper");
4749
4770
  },
4750
- m(d, _) {
4751
- G(d, t, _), v(t, r), v(r, n), v(n, i), v(i, a), v(n, s), v(n, l), v(l, h), v(r, f), p.m(r, null), e[29](t);
4771
+ m(m, _) {
4772
+ j(m, t, _), v(t, r), v(r, n), v(n, i), v(i, s), v(n, a), v(n, l), v(l, h), v(r, f), d.m(r, null), e[29](t);
4752
4773
  },
4753
- p(d, _) {
4774
+ p(m, _) {
4754
4775
  _[0] & /*$_*/
4755
4776
  256 && o !== (o = /*$_*/
4756
- d[8]("carouselTitle") + "") && k(a, o), _[0] & /*$_*/
4777
+ m[8]("carouselTitle") + "") && V(s, o), _[0] & /*$_*/
4757
4778
  256 && u !== (u = /*$_*/
4758
- d[8]("carouselSubtitle") + "") && k(h, u), g === (g = c(d)) && p ? p.p(d, _) : (p.d(1), p = g(d), p && (p.c(), p.m(r, null)));
4779
+ m[8]("carouselSubtitle") + "") && V(h, u), g === (g = c(m)) && d ? d.p(m, _) : (d.d(1), d = g(m), d && (d.c(), d.m(r, null)));
4759
4780
  },
4760
4781
  i: L,
4761
4782
  o: L,
4762
- d(d) {
4763
- d && D(t), p.d(), e[29](null);
4783
+ d(m) {
4784
+ m && D(t), d.d(), e[29](null);
4764
4785
  }
4765
4786
  };
4766
4787
  }
4767
- function Oo(e, t, r) {
4788
+ function Lo(e, t, r) {
4768
4789
  let n, i;
4769
- Zr(e, ao, (b) => r(8, i = b));
4770
- let { lang: o = "en" } = t, { local: a = "en-US" } = t, { currencysymbol: s = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, { clientstyling: f = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: g = "" } = t, { translationurl: p = "" } = t, d = {}, _, E = [], m = 0, S = !0, y = 0, P = !1, C, $, ee = window.navigator.userAgent;
4790
+ Qr(e, lo, (b) => r(8, i = b));
4791
+ let { lang: o = "en" } = t, { local: s = "en-US" } = t, { currencysymbol: a = "true" } = t, { currencyposition: l = "" } = t, { currencydecimals: u = "0" } = t, { methodtype: h = "" } = t, { clientstyling: f = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: g = "" } = t, { translationurl: d = "" } = t, m = {}, _, E = [], p = 0, S = !0, y = 0, A = !1, H, $, ee = window.navigator.userAgent;
4771
4792
  const te = (b) => {
4772
- const { data: { type: B } = {} } = b || {};
4773
- switch (B) {
4793
+ const { data: { type: O } = {} } = b || {};
4794
+ switch (O) {
4774
4795
  case "PromotedPaymentMethods": {
4775
- r(5, E = b?.data?.promotedPaymentMethods), r(6, m = Math.floor((E.length - 1) / 2));
4796
+ r(5, E = b?.data?.promotedPaymentMethods), r(6, p = Math.floor((E.length - 1) / 2));
4776
4797
  break;
4777
4798
  }
4778
4799
  case "PrecisionCurrenciesMap": {
4779
- r(4, d = b?.data?.payload || {});
4800
+ r(4, m = b?.data?.payload || {});
4780
4801
  break;
4781
4802
  }
4782
4803
  }
4783
4804
  };
4784
- Object.keys(er).forEach((b) => {
4785
- Xt(b, er[b]);
4805
+ Object.keys(rr).forEach((b) => {
4806
+ zt(b, rr[b]);
4786
4807
  });
4787
4808
  const Te = () => {
4788
- let b = p;
4809
+ let b = d;
4789
4810
  if (b)
4790
- return fetch(b).then((B) => B.json()).then((B) => {
4791
- Object.keys(B).forEach((U) => {
4792
- Xt(U, B[U]);
4811
+ return fetch(b).then((O) => O.json()).then((O) => {
4812
+ Object.keys(O).forEach((U) => {
4813
+ zt(U, O[U]);
4793
4814
  });
4794
- }).catch((B) => {
4795
- console.log(B);
4815
+ }).catch((O) => {
4816
+ console.log(O);
4796
4817
  });
4797
4818
  }, J = () => {
4798
- uo(o);
4799
- }, Y = (b, B) => {
4800
- r(6, m = B), r(2, C.style.transform = j(), C), b.Name, window.postMessage({ type: "SelectPayMeth", details: b }, window.location.href), dispatchEvent(new CustomEvent(
4819
+ ho(o);
4820
+ }, Y = (b, O) => {
4821
+ r(6, p = O), r(2, H.style.transform = k(), H), b.Name, window.postMessage({ type: "SelectPayMeth", details: b }, window.location.href), dispatchEvent(new CustomEvent(
4801
4822
  "selectPayMeth",
4802
4823
  {
4803
4824
  detail: b,
@@ -4806,103 +4827,103 @@ function Oo(e, t, r) {
4806
4827
  composed: !0
4807
4828
  }
4808
4829
  ));
4809
- }, j = () => {
4830
+ }, k = () => {
4810
4831
  if (E.length == 1)
4811
4832
  return "translateX(0px)";
4812
- const U = 160 + 5, Ht = U * E.length;
4813
- let Je;
4814
- E.length % 2 === 1 ? Je = Math.floor(E.length / 2) : Je = Math.floor(E.length / 2) - 0.5;
4815
- let Xr = $ - Ht;
4816
- const Wr = Je - m;
4817
- return `translateX(${Xr / 2 + Wr * U - 20}px)`;
4833
+ const U = 160 + 5, At = U * E.length;
4834
+ let qe;
4835
+ E.length % 2 === 1 ? qe = Math.floor(E.length / 2) : qe = Math.floor(E.length / 2) - 0.5;
4836
+ let Wr = $ - At;
4837
+ const zr = qe - p;
4838
+ return `translateX(${Wr / 2 + zr * U - 20}px)`;
4818
4839
  }, He = (b) => {
4819
- y = b.touches[0].clientX, P = !0, C.classList.add("dragging");
4840
+ y = b.touches[0].clientX, A = !0, H.classList.add("dragging");
4820
4841
  }, re = (b) => {
4821
- if (!P)
4842
+ if (!A)
4822
4843
  return;
4823
- const B = b.touches[0].clientX;
4824
- Math.abs(B - y) > 10 && b.preventDefault();
4825
- }, pe = (b) => {
4826
- if (!P)
4844
+ const O = b.touches[0].clientX;
4845
+ Math.abs(O - y) > 10 && b.preventDefault();
4846
+ }, me = (b) => {
4847
+ if (!A)
4827
4848
  return;
4828
- P = !1, C.classList.remove("dragging");
4829
- const B = b.changedTouches[0].clientX, U = y - B;
4830
- Math.abs(U) > 50 && (U > 0 && m < E.length - 1 ? r(6, m++, m) : U < 0 && m > 0 && r(6, m--, m), r(2, C.style.transform = j(), C));
4849
+ A = !1, H.classList.remove("dragging");
4850
+ const O = b.changedTouches[0].clientX, U = y - O;
4851
+ Math.abs(U) > 50 && (U > 0 && p < E.length - 1 ? r(6, p++, p) : U < 0 && p > 0 && r(6, p--, p), r(2, H.style.transform = k(), H));
4831
4852
  }, Ce = () => {
4832
- S && (r(2, C.style.transform = j(), C), S = !1);
4853
+ S && (r(2, H.style.transform = k(), H), S = !1);
4833
4854
  }, W = (b) => {
4834
- b === "next" && m < E.length - 1 ? r(6, m++, m) : b === "prev" && m > 0 && r(6, m--, m), r(2, C.style.transform = j(), C);
4855
+ b === "next" && p < E.length - 1 ? r(6, p++, p) : b === "prev" && p > 0 && r(6, p--, p), r(2, H.style.transform = k(), H);
4835
4856
  };
4836
- nn(() => (Co(a, s, l, u), window.addEventListener("message", te), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), C && j(), () => {
4857
+ on(() => (Po(s, a, l, u), window.addEventListener("message", te), window.postMessage({ type: "CashierCarouselReady" }, window.location.href), H && k(), () => {
4837
4858
  window.removeEventListener("message", te);
4838
4859
  }));
4839
- const be = () => W("prev"), Ae = (b, B) => Y(b, B);
4840
- function Qe(b) {
4860
+ const de = () => W("prev"), Ae = (b, O) => Y(b, O);
4861
+ function Ye(b) {
4841
4862
  Fe[b ? "unshift" : "push"](() => {
4842
- C = b, r(2, C);
4863
+ H = b, r(2, H);
4843
4864
  });
4844
4865
  }
4845
4866
  const q = () => W("next");
4846
4867
  function I() {
4847
4868
  $ = this.clientWidth, r(3, $);
4848
4869
  }
4849
- function Vr(b) {
4870
+ function Xr(b) {
4850
4871
  Fe[b ? "unshift" : "push"](() => {
4851
4872
  _ = b, r(1, _);
4852
4873
  });
4853
4874
  }
4854
4875
  return e.$$set = (b) => {
4855
- "lang" in b && r(15, o = b.lang), "local" in b && r(16, a = b.local), "currencysymbol" in b && r(17, s = b.currencysymbol), "currencyposition" in b && r(18, l = b.currencyposition), "currencydecimals" in b && r(19, u = b.currencydecimals), "methodtype" in b && r(0, h = b.methodtype), "clientstyling" in b && r(20, f = b.clientstyling), "clientstylingurl" in b && r(21, c = b.clientstylingurl), "mbsource" in b && r(22, g = b.mbsource), "translationurl" in b && r(23, p = b.translationurl);
4876
+ "lang" in b && r(15, o = b.lang), "local" in b && r(16, s = b.local), "currencysymbol" in b && r(17, a = b.currencysymbol), "currencyposition" in b && r(18, l = b.currencyposition), "currencydecimals" in b && r(19, u = b.currencydecimals), "methodtype" in b && r(0, h = b.methodtype), "clientstyling" in b && r(20, f = b.clientstyling), "clientstylingurl" in b && r(21, c = b.clientstylingurl), "mbsource" in b && r(22, g = b.mbsource), "translationurl" in b && r(23, d = b.translationurl);
4856
4877
  }, e.$$.update = () => {
4857
4878
  e.$$.dirty[0] & /*lang*/
4858
4879
  32768 && o && J(), e.$$.dirty[0] & /*lang, translationurl*/
4859
- 8421376 && o && p && Te(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
4860
- 12 && C && $ && Ce(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4861
- 1048578 && f && _ && lo(_, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4862
- 2097154 && c && _ && ho(_, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4863
- 4194306 && g && _ && co(_, `${g}.Style`), e.$$.dirty[0] & /*currencydecimals*/
4880
+ 8421376 && o && d && Te(), e.$$.dirty[0] & /*carouselContainer, carouselContainerWidth*/
4881
+ 12 && H && $ && Ce(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4882
+ 1048578 && f && _ && co(_, f), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4883
+ 2097154 && c && _ && fo(_, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4884
+ 4194306 && g && _ && po(_, `${g}.Style`), e.$$.dirty[0] & /*currencydecimals*/
4864
4885
  524288 && r(7, n = Number(u));
4865
4886
  }, [
4866
4887
  h,
4867
4888
  _,
4868
- C,
4889
+ H,
4869
4890
  $,
4870
- d,
4871
- E,
4872
4891
  m,
4892
+ E,
4893
+ p,
4873
4894
  n,
4874
4895
  i,
4875
4896
  ee,
4876
4897
  Y,
4877
4898
  He,
4878
4899
  re,
4879
- pe,
4900
+ me,
4880
4901
  W,
4881
4902
  o,
4882
- a,
4883
4903
  s,
4904
+ a,
4884
4905
  l,
4885
4906
  u,
4886
4907
  f,
4887
4908
  c,
4888
4909
  g,
4889
- p,
4890
- be,
4910
+ d,
4911
+ de,
4891
4912
  Ae,
4892
- Qe,
4913
+ Ye,
4893
4914
  q,
4894
4915
  I,
4895
- Vr
4916
+ Xr
4896
4917
  ];
4897
4918
  }
4898
- class Io extends bn {
4919
+ class No extends gn {
4899
4920
  constructor(t) {
4900
4921
  super(), dn(
4901
4922
  this,
4902
4923
  t,
4903
- Oo,
4904
- Bo,
4905
- ur,
4924
+ Lo,
4925
+ Io,
4926
+ hr,
4906
4927
  {
4907
4928
  lang: 15,
4908
4929
  local: 16,
@@ -4915,7 +4936,7 @@ class Io extends bn {
4915
4936
  mbsource: 22,
4916
4937
  translationurl: 23
4917
4938
  },
4918
- Ao,
4939
+ Mo,
4919
4940
  [-1, -1]
4920
4941
  );
4921
4942
  }
@@ -4980,7 +5001,7 @@ class Io extends bn {
4980
5001
  this.$$set({ translationurl: t }), N();
4981
5002
  }
4982
5003
  }
4983
- pn(Io, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
5004
+ bn(No, { lang: {}, local: {}, currencysymbol: {}, currencyposition: {}, currencydecimals: {}, methodtype: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4984
5005
  export {
4985
- Io as C
5006
+ No as C
4986
5007
  };