@everymatrix/player-bonus-card 1.77.24 → 1.77.26

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,17 +1,17 @@
1
- var cn = Object.defineProperty, fn = Object.defineProperties;
2
- var dn = Object.getOwnPropertyDescriptors;
3
- var Ft = Object.getOwnPropertySymbols;
4
- var mn = Object.prototype.hasOwnProperty, bn = Object.prototype.propertyIsEnumerable;
5
- var ut = (e, t, r) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gt = (e, t) => {
1
+ var hn = Object.defineProperty, cn = Object.defineProperties;
2
+ var fn = Object.getOwnPropertyDescriptors;
3
+ var kt = Object.getOwnPropertySymbols;
4
+ var dn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
5
+ var at = (e, t, r) => t in e ? hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $t = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- mn.call(t, r) && ut(e, r, t[r]);
8
- if (Ft)
9
- for (var r of Ft(t))
10
- bn.call(t, r) && ut(e, r, t[r]);
7
+ dn.call(t, r) && at(e, r, t[r]);
8
+ if (kt)
9
+ for (var r of kt(t))
10
+ mn.call(t, r) && at(e, r, t[r]);
11
11
  return e;
12
- }, jt = (e, t) => fn(e, dn(t));
13
- var z = (e, t, r) => (ut(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Wt = (e, t, r) => new Promise((n, i) => {
12
+ }, Ft = (e, t) => cn(e, fn(t));
13
+ var q = (e, t, r) => (at(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Gt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  s(r.next(l));
@@ -29,29 +29,29 @@ var Wt = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function J() {
31
31
  }
32
- function Cr(e) {
32
+ function Br(e) {
33
33
  return e();
34
34
  }
35
- function Vt() {
35
+ function jt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Ne(e) {
39
- e.forEach(Cr);
38
+ function De(e) {
39
+ e.forEach(Br);
40
40
  }
41
- function It(e) {
41
+ function Mt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Or(e, t) {
44
+ function Sr(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let Ue;
48
- function Yt(e, t) {
48
+ function Wt(e, t) {
49
49
  return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
50
50
  }
51
- function pn(e) {
51
+ function bn(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function Pr(e, ...t) {
54
+ function Cr(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
@@ -60,20 +60,20 @@ function Pr(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function vn(e, t, r) {
64
- e.$$.on_destroy.push(Pr(t, r));
63
+ function pn(e, t, r) {
64
+ e.$$.on_destroy.push(Cr(t, r));
65
65
  }
66
66
  function m(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function gn(e, t, r) {
70
- const n = yn(e);
69
+ function vn(e, t, r) {
70
+ const n = gn(e);
71
71
  if (!n.getElementById(t)) {
72
- const i = x("style");
73
- i.id = t, i.textContent = r, wn(n, i);
72
+ const i = B("style");
73
+ i.id = t, i.textContent = r, yn(n, i);
74
74
  }
75
75
  }
76
- function yn(e) {
76
+ function gn(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,7 +83,7 @@ function yn(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function wn(e, t) {
86
+ function yn(e, t) {
87
87
  return m(
88
88
  /** @type {Document} */
89
89
  e.head || e,
@@ -93,10 +93,10 @@ function wn(e, t) {
93
93
  function se(e, t, r) {
94
94
  e.insertBefore(t, r || null);
95
95
  }
96
- function ne(e) {
96
+ function re(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function x(e) {
99
+ function B(e) {
100
100
  return document.createElement(e);
101
101
  }
102
102
  function R(e) {
@@ -105,13 +105,13 @@ function R(e) {
105
105
  function D() {
106
106
  return R(" ");
107
107
  }
108
- function _n(e, t, r, n) {
108
+ function wn(e, t, r, n) {
109
109
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
110
110
  }
111
111
  function g(e, t, r) {
112
112
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
113
113
  }
114
- function En(e) {
114
+ function _n(e) {
115
115
  return Array.from(e.childNodes);
116
116
  }
117
117
  function I(e, t) {
@@ -127,87 +127,87 @@ function Tn(e) {
127
127
  }
128
128
  ), t;
129
129
  }
130
- let He;
131
- function Ae(e) {
132
- He = e;
130
+ let Me;
131
+ function He(e) {
132
+ Me = e;
133
133
  }
134
- function xn() {
135
- if (!He)
134
+ function En() {
135
+ if (!Me)
136
136
  throw new Error("Function called outside component initialization");
137
- return He;
137
+ return Me;
138
138
  }
139
- function Bn(e) {
140
- xn().$$.on_mount.push(e);
139
+ function xn(e) {
140
+ En().$$.on_mount.push(e);
141
141
  }
142
- const ve = [], gt = [];
142
+ const ve = [], pt = [];
143
143
  let ge = [];
144
- const Xt = [], Sn = /* @__PURE__ */ Promise.resolve();
145
- let yt = !1;
146
- function Cn() {
147
- yt || (yt = !0, Sn.then(P));
144
+ const Vt = [], Bn = /* @__PURE__ */ Promise.resolve();
145
+ let vt = !1;
146
+ function Sn() {
147
+ vt || (vt = !0, Bn.then(O));
148
148
  }
149
- function wt(e) {
149
+ function gt(e) {
150
150
  ge.push(e);
151
151
  }
152
- const lt = /* @__PURE__ */ new Set();
152
+ const st = /* @__PURE__ */ new Set();
153
153
  let me = 0;
154
- function P() {
154
+ function O() {
155
155
  if (me !== 0)
156
156
  return;
157
- const e = He;
157
+ const e = Me;
158
158
  do {
159
159
  try {
160
160
  for (; me < ve.length; ) {
161
161
  const t = ve[me];
162
- me++, Ae(t), On(t.$$);
162
+ me++, He(t), Cn(t.$$);
163
163
  }
164
164
  } catch (t) {
165
165
  throw ve.length = 0, me = 0, t;
166
166
  }
167
- for (Ae(null), ve.length = 0, me = 0; gt.length; )
168
- gt.pop()();
167
+ for (He(null), ve.length = 0, me = 0; pt.length; )
168
+ pt.pop()();
169
169
  for (let t = 0; t < ge.length; t += 1) {
170
170
  const r = ge[t];
171
- lt.has(r) || (lt.add(r), r());
171
+ st.has(r) || (st.add(r), r());
172
172
  }
173
173
  ge.length = 0;
174
174
  } while (ve.length);
175
- for (; Xt.length; )
176
- Xt.pop()();
177
- yt = !1, lt.clear(), Ae(e);
175
+ for (; Vt.length; )
176
+ Vt.pop()();
177
+ vt = !1, st.clear(), He(e);
178
178
  }
179
- function On(e) {
179
+ function Cn(e) {
180
180
  if (e.fragment !== null) {
181
- e.update(), Ne(e.before_update);
181
+ e.update(), De(e.before_update);
182
182
  const t = e.dirty;
183
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(wt);
183
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(gt);
184
184
  }
185
185
  }
186
186
  function Pn(e) {
187
187
  const t = [], r = [];
188
188
  ge.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ge = t;
189
189
  }
190
- const An = /* @__PURE__ */ new Set();
191
- function Hn(e, t) {
192
- e && e.i && (An.delete(e), e.i(t));
190
+ const On = /* @__PURE__ */ new Set();
191
+ function An(e, t) {
192
+ e && e.i && (On.delete(e), e.i(t));
193
193
  }
194
- function Mn(e, t, r) {
194
+ function Hn(e, t, r) {
195
195
  const { fragment: n, after_update: i } = e.$$;
196
- n && n.m(t, r), wt(() => {
197
- const o = e.$$.on_mount.map(Cr).filter(It);
198
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ne(o), e.$$.on_mount = [];
199
- }), i.forEach(wt);
196
+ n && n.m(t, r), gt(() => {
197
+ const o = e.$$.on_mount.map(Br).filter(Mt);
198
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : De(o), e.$$.on_mount = [];
199
+ }), i.forEach(gt);
200
200
  }
201
- function Rn(e, t) {
201
+ function Mn(e, t) {
202
202
  const r = e.$$;
203
- r.fragment !== null && (Pn(r.after_update), Ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
203
+ r.fragment !== null && (Pn(r.after_update), De(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
204
204
  }
205
- function Nn(e, t) {
206
- e.$$.dirty[0] === -1 && (ve.push(e), Cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
+ function Rn(e, t) {
206
+ e.$$.dirty[0] === -1 && (ve.push(e), Sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
207
207
  }
208
- function Dn(e, t, r, n, i, o, a = null, s = [-1]) {
209
- const l = He;
210
- Ae(e);
208
+ function Nn(e, t, r, n, i, o, a = null, s = [-1]) {
209
+ const l = Me;
210
+ He(e);
211
211
  const u = e.$$ = {
212
212
  fragment: null,
213
213
  ctx: [],
@@ -215,7 +215,7 @@ function Dn(e, t, r, n, i, o, a = null, s = [-1]) {
215
215
  props: o,
216
216
  update: J,
217
217
  not_equal: i,
218
- bound: Vt(),
218
+ bound: jt(),
219
219
  // lifecycle
220
220
  on_mount: [],
221
221
  on_destroy: [],
@@ -224,7 +224,7 @@ function Dn(e, t, r, n, i, o, a = null, s = [-1]) {
224
224
  after_update: [],
225
225
  context: new Map(t.context || (l ? l.$$.context : [])),
226
226
  // everything else
227
- callbacks: Vt(),
227
+ callbacks: jt(),
228
228
  dirty: s,
229
229
  skip_bound: !1,
230
230
  root: t.target || l.$$.root
@@ -233,39 +233,39 @@ function Dn(e, t, r, n, i, o, a = null, s = [-1]) {
233
233
  let h = !1;
234
234
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
235
235
  const p = d.length ? d[0] : c;
236
- return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && Nn(e, f)), c;
237
- }) : [], u.update(), h = !0, Ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
236
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && Rn(e, f)), c;
237
+ }) : [], u.update(), h = !0, De(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
238
238
  if (t.hydrate) {
239
- const f = En(t.target);
240
- u.fragment && u.fragment.l(f), f.forEach(ne);
239
+ const f = _n(t.target);
240
+ u.fragment && u.fragment.l(f), f.forEach(re);
241
241
  } else
242
242
  u.fragment && u.fragment.c();
243
- t.intro && Hn(e.$$.fragment), Mn(e, t.target, t.anchor), P();
243
+ t.intro && An(e.$$.fragment), Hn(e, t.target, t.anchor), O();
244
244
  }
245
- Ae(l);
245
+ He(l);
246
246
  }
247
- let Ar;
248
- typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
247
+ let Pr;
248
+ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
249
249
  constructor(t, r, n) {
250
250
  super();
251
251
  /** The Svelte component constructor */
252
- z(this, "$$ctor");
252
+ q(this, "$$ctor");
253
253
  /** Slots */
254
- z(this, "$$s");
254
+ q(this, "$$s");
255
255
  /** The Svelte component instance */
256
- z(this, "$$c");
256
+ q(this, "$$c");
257
257
  /** Whether or not the custom element is connected */
258
- z(this, "$$cn", !1);
258
+ q(this, "$$cn", !1);
259
259
  /** Component props data */
260
- z(this, "$$d", {});
260
+ q(this, "$$d", {});
261
261
  /** `true` if currently in the process of reflecting component props back to attributes */
262
- z(this, "$$r", !1);
262
+ q(this, "$$r", !1);
263
263
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
264
- z(this, "$$p_d", {});
264
+ q(this, "$$p_d", {});
265
265
  /** @type {Record<string, Function[]>} Event listeners */
266
- z(this, "$$l", {});
266
+ q(this, "$$l", {});
267
267
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
268
- z(this, "$$l_u", /* @__PURE__ */ new Map());
268
+ q(this, "$$l_u", /* @__PURE__ */ new Map());
269
269
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
270
270
  }
271
271
  addEventListener(t, r, n) {
@@ -282,14 +282,14 @@ typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
282
282
  }
283
283
  }
284
284
  connectedCallback() {
285
- return Wt(this, null, function* () {
285
+ return Gt(this, null, function* () {
286
286
  if (this.$$cn = !0, !this.$$c) {
287
287
  let t = function(o) {
288
288
  return () => {
289
289
  let a;
290
290
  return {
291
291
  c: function() {
292
- a = x("slot"), o !== "default" && g(a, "name", o);
292
+ a = B("slot"), o !== "default" && g(a, "name", o);
293
293
  },
294
294
  /**
295
295
  * @param {HTMLElement} target
@@ -299,7 +299,7 @@ typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
299
299
  se(u, a, h);
300
300
  },
301
301
  d: function(u) {
302
- u && ne(a);
302
+ u && re(a);
303
303
  }
304
304
  };
305
305
  };
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
317
317
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
318
318
  this.$$c = new this.$$ctor({
319
319
  target: this.shadowRoot || this,
320
- props: jt(Gt({}, this.$$d), {
320
+ props: Ft($t({}, this.$$d), {
321
321
  $$slots: r,
322
322
  $$scope: {
323
323
  ctx: []
@@ -395,8 +395,8 @@ function Fe(e, t, r, n) {
395
395
  return t;
396
396
  }
397
397
  }
398
- function In(e, t, r, n, i, o) {
399
- let a = class extends Ar {
398
+ function Dn(e, t, r, n, i, o) {
399
+ let a = class extends Pr {
400
400
  constructor() {
401
401
  super(e, r, i), this.$$p_d = t;
402
402
  }
@@ -426,7 +426,7 @@ function In(e, t, r, n, i, o) {
426
426
  }), e.element = /** @type {any} */
427
427
  a, a;
428
428
  }
429
- class Ln {
429
+ class In {
430
430
  constructor() {
431
431
  /**
432
432
  * ### PRIVATE API
@@ -435,7 +435,7 @@ class Ln {
435
435
  *
436
436
  * @type {any}
437
437
  */
438
- z(this, "$$");
438
+ q(this, "$$");
439
439
  /**
440
440
  * ### PRIVATE API
441
441
  *
@@ -443,11 +443,11 @@ class Ln {
443
443
  *
444
444
  * @type {any}
445
445
  */
446
- z(this, "$$set");
446
+ q(this, "$$set");
447
447
  }
448
448
  /** @returns {void} */
449
449
  $destroy() {
450
- Rn(this, 1), this.$destroy = J;
450
+ Mn(this, 1), this.$destroy = J;
451
451
  }
452
452
  /**
453
453
  * @template {Extract<keyof Events, string>} K
@@ -456,7 +456,7 @@ class Ln {
456
456
  * @returns {() => void}
457
457
  */
458
458
  $on(t, r) {
459
- if (!It(r))
459
+ if (!Mt(r))
460
460
  return J;
461
461
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
462
462
  return n.push(r), () => {
@@ -469,11 +469,11 @@ class Ln {
469
469
  * @returns {void}
470
470
  */
471
471
  $set(t) {
472
- this.$$set && !pn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
472
+ this.$$set && !bn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
473
473
  }
474
474
  }
475
- const Un = "4";
476
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Un);
475
+ const Ln = "4";
476
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
477
477
  /*! *****************************************************************************
478
478
  Copyright (c) Microsoft Corporation.
479
479
 
@@ -488,24 +488,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
488
488
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
489
489
  PERFORMANCE OF THIS SOFTWARE.
490
490
  ***************************************************************************** */
491
- var _t = function(e, t) {
492
- return _t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
491
+ var yt = function(e, t) {
492
+ return yt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
493
493
  r.__proto__ = n;
494
494
  } || function(r, n) {
495
495
  for (var i in n)
496
496
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
497
- }, _t(e, t);
497
+ }, yt(e, t);
498
498
  };
499
- function De(e, t) {
499
+ function ne(e, t) {
500
500
  if (typeof t != "function" && t !== null)
501
501
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
502
- _t(e, t);
502
+ yt(e, t);
503
503
  function r() {
504
504
  this.constructor = e;
505
505
  }
506
506
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
507
507
  }
508
- function Et(e) {
508
+ var T = function() {
509
+ return T = Object.assign || function(t) {
510
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
511
+ r = arguments[n];
512
+ for (var o in r)
513
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
514
+ }
515
+ return t;
516
+ }, T.apply(this, arguments);
517
+ };
518
+ function Un(e, t) {
519
+ var r = {};
520
+ for (var n in e)
521
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
522
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
523
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
524
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
525
+ return r;
526
+ }
527
+ function wt(e) {
509
528
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
510
529
  if (r)
511
530
  return r.call(e);
@@ -517,7 +536,7 @@ function Et(e) {
517
536
  };
518
537
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
519
538
  }
520
- function Tt(e, t) {
539
+ function _t(e, t) {
521
540
  var r = typeof Symbol == "function" && e[Symbol.iterator];
522
541
  if (!r)
523
542
  return e;
@@ -537,22 +556,22 @@ function Tt(e, t) {
537
556
  }
538
557
  return o;
539
558
  }
540
- function xt(e, t, r) {
541
- if (arguments.length === 2)
559
+ function ye(e, t, r) {
560
+ if (r || arguments.length === 2)
542
561
  for (var n = 0, i = t.length, o; n < i; n++)
543
562
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
544
563
  return e.concat(o || t);
545
564
  }
546
- function re(e) {
565
+ function te(e) {
547
566
  return typeof e == "function";
548
567
  }
549
- function Hr(e) {
568
+ function Or(e) {
550
569
  var t = function(n) {
551
570
  Error.call(n), n.stack = new Error().stack;
552
571
  }, r = e(t);
553
572
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
554
573
  }
555
- var ht = Hr(function(e) {
574
+ var ut = Or(function(e) {
556
575
  return function(r) {
557
576
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
558
577
  ` + r.map(function(n, i) {
@@ -561,13 +580,13 @@ var ht = Hr(function(e) {
561
580
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
562
581
  };
563
582
  });
564
- function Bt(e, t) {
583
+ function Tt(e, t) {
565
584
  if (e) {
566
585
  var r = e.indexOf(t);
567
586
  0 <= r && e.splice(r, 1);
568
587
  }
569
588
  }
570
- var Ze = function() {
589
+ var Qe = function() {
571
590
  function e(t) {
572
591
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
573
592
  }
@@ -579,7 +598,7 @@ var Ze = function() {
579
598
  if (a)
580
599
  if (this._parentage = null, Array.isArray(a))
581
600
  try {
582
- for (var s = Et(a), l = s.next(); !l.done; l = s.next()) {
601
+ for (var s = wt(a), l = s.next(); !l.done; l = s.next()) {
583
602
  var u = l.value;
584
603
  u.remove(this);
585
604
  }
@@ -596,22 +615,22 @@ var Ze = function() {
596
615
  else
597
616
  a.remove(this);
598
617
  var h = this.initialTeardown;
599
- if (re(h))
618
+ if (te(h))
600
619
  try {
601
620
  h();
602
621
  } catch (v) {
603
- o = v instanceof ht ? v.errors : [v];
622
+ o = v instanceof ut ? v.errors : [v];
604
623
  }
605
624
  var f = this._finalizers;
606
625
  if (f) {
607
626
  this._finalizers = null;
608
627
  try {
609
- for (var c = Et(f), d = c.next(); !d.done; d = c.next()) {
628
+ for (var c = wt(f), d = c.next(); !d.done; d = c.next()) {
610
629
  var p = d.value;
611
630
  try {
612
- qt(p);
631
+ Yt(p);
613
632
  } catch (v) {
614
- o = o != null ? o : [], v instanceof ht ? o = xt(xt([], Tt(o)), Tt(v.errors)) : o.push(v);
633
+ o = o != null ? o : [], v instanceof ut ? o = ye(ye([], _t(o)), _t(v.errors)) : o.push(v);
615
634
  }
616
635
  }
617
636
  } catch (v) {
@@ -626,13 +645,13 @@ var Ze = function() {
626
645
  }
627
646
  }
628
647
  if (o)
629
- throw new ht(o);
648
+ throw new ut(o);
630
649
  }
631
650
  }, e.prototype.add = function(t) {
632
651
  var r;
633
652
  if (t && t !== this)
634
653
  if (this.closed)
635
- qt(t);
654
+ Yt(t);
636
655
  else {
637
656
  if (t instanceof e) {
638
657
  if (t.closed || t._hasParent(this))
@@ -649,52 +668,56 @@ var Ze = function() {
649
668
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
650
669
  }, e.prototype._removeParent = function(t) {
651
670
  var r = this._parentage;
652
- r === t ? this._parentage = null : Array.isArray(r) && Bt(r, t);
671
+ r === t ? this._parentage = null : Array.isArray(r) && Tt(r, t);
653
672
  }, e.prototype.remove = function(t) {
654
673
  var r = this._finalizers;
655
- r && Bt(r, t), t instanceof e && t._removeParent(this);
674
+ r && Tt(r, t), t instanceof e && t._removeParent(this);
656
675
  }, e.EMPTY = function() {
657
676
  var t = new e();
658
677
  return t.closed = !0, t;
659
678
  }(), e;
660
- }(), Mr = Ze.EMPTY;
661
- function Rr(e) {
662
- return e instanceof Ze || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
663
- }
664
- function qt(e) {
665
- re(e) ? e() : e.unsubscribe();
666
- }
667
- var kn = {
668
- Promise: void 0
669
- }, $n = {
679
+ }(), Ar = Qe.EMPTY;
680
+ function Hr(e) {
681
+ return e instanceof Qe || e && "closed" in e && te(e.remove) && te(e.add) && te(e.unsubscribe);
682
+ }
683
+ function Yt(e) {
684
+ te(e) ? e() : e.unsubscribe();
685
+ }
686
+ var Mr = {
687
+ onUnhandledError: null,
688
+ onStoppedNotification: null,
689
+ Promise: void 0,
690
+ useDeprecatedSynchronousErrorHandling: !1,
691
+ useDeprecatedNextContext: !1
692
+ }, kn = {
670
693
  setTimeout: function(e, t) {
671
694
  for (var r = [], n = 2; n < arguments.length; n++)
672
695
  r[n - 2] = arguments[n];
673
- return setTimeout.apply(void 0, xt([e, t], Tt(r)));
696
+ return setTimeout.apply(void 0, ye([e, t], _t(r)));
674
697
  },
675
698
  clearTimeout: function(e) {
676
699
  return clearTimeout(e);
677
700
  },
678
701
  delegate: void 0
679
702
  };
680
- function Fn(e) {
681
- $n.setTimeout(function() {
703
+ function $n(e) {
704
+ kn.setTimeout(function() {
682
705
  throw e;
683
706
  });
684
707
  }
685
- function zt() {
708
+ function Xt() {
686
709
  }
687
710
  function Ge(e) {
688
711
  e();
689
712
  }
690
- var Nr = function(e) {
691
- De(t, e);
713
+ var Rr = function(e) {
714
+ ne(t, e);
692
715
  function t(r) {
693
716
  var n = e.call(this) || this;
694
- return n.isStopped = !1, r ? (n.destination = r, Rr(r) && r.add(n)) : n.destination = Wn, n;
717
+ return n.isStopped = !1, r ? (n.destination = r, Hr(r) && r.add(n)) : n.destination = Wn, n;
695
718
  }
696
719
  return t.create = function(r, n, i) {
697
- return new St(r, n, i);
720
+ return new Et(r, n, i);
698
721
  }, t.prototype.next = function(r) {
699
722
  this.isStopped || this._next(r);
700
723
  }, t.prototype.error = function(r) {
@@ -718,7 +741,11 @@ var Nr = function(e) {
718
741
  this.unsubscribe();
719
742
  }
720
743
  }, t;
721
- }(Ze), Gn = function() {
744
+ }(Qe), Fn = Function.prototype.bind;
745
+ function lt(e, t) {
746
+ return Fn.call(e, t);
747
+ }
748
+ var Gn = function() {
722
749
  function e(t) {
723
750
  this.partialObserver = t;
724
751
  }
@@ -749,29 +776,41 @@ var Nr = function(e) {
749
776
  ke(r);
750
777
  }
751
778
  }, e;
752
- }(), St = function(e) {
753
- De(t, e);
779
+ }(), Et = function(e) {
780
+ ne(t, e);
754
781
  function t(r, n, i) {
755
782
  var o = e.call(this) || this, a;
756
- return re(r) || !r ? a = {
757
- next: r != null ? r : void 0,
758
- error: n != null ? n : void 0,
759
- complete: i != null ? i : void 0
760
- } : a = r, o.destination = new Gn(a), o;
783
+ if (te(r) || !r)
784
+ a = {
785
+ next: r != null ? r : void 0,
786
+ error: n != null ? n : void 0,
787
+ complete: i != null ? i : void 0
788
+ };
789
+ else {
790
+ var s;
791
+ o && Mr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
792
+ return o.unsubscribe();
793
+ }, a = {
794
+ next: r.next && lt(r.next, s),
795
+ error: r.error && lt(r.error, s),
796
+ complete: r.complete && lt(r.complete, s)
797
+ }) : a = r;
798
+ }
799
+ return o.destination = new Gn(a), o;
761
800
  }
762
801
  return t;
763
- }(Nr);
802
+ }(Rr);
764
803
  function ke(e) {
765
- Fn(e);
804
+ $n(e);
766
805
  }
767
806
  function jn(e) {
768
807
  throw e;
769
808
  }
770
809
  var Wn = {
771
810
  closed: !0,
772
- next: zt,
811
+ next: Xt,
773
812
  error: jn,
774
- complete: zt
813
+ complete: Xt
775
814
  }, Vn = function() {
776
815
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
777
816
  }();
@@ -785,7 +824,7 @@ function Xn(e) {
785
824
  }, r);
786
825
  };
787
826
  }
788
- var Qt = function() {
827
+ var zt = function() {
789
828
  function e(t) {
790
829
  t && (this._subscribe = t);
791
830
  }
@@ -793,7 +832,7 @@ var Qt = function() {
793
832
  var r = new e();
794
833
  return r.source = this, r.operator = t, r;
795
834
  }, e.prototype.subscribe = function(t, r, n) {
796
- var i = this, o = zn(t) ? t : new St(t, r, n);
835
+ var i = this, o = qn(t) ? t : new Et(t, r, n);
797
836
  return Ge(function() {
798
837
  var a = i, s = a.operator, l = a.source;
799
838
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -806,8 +845,8 @@ var Qt = function() {
806
845
  }
807
846
  }, e.prototype.forEach = function(t, r) {
808
847
  var n = this;
809
- return r = Zt(r), new r(function(i, o) {
810
- var a = new St({
848
+ return r = qt(r), new r(function(i, o) {
849
+ var a = new Et({
811
850
  next: function(s) {
812
851
  try {
813
852
  t(s);
@@ -831,7 +870,7 @@ var Qt = function() {
831
870
  return Xn(t)(this);
832
871
  }, e.prototype.toPromise = function(t) {
833
872
  var r = this;
834
- return t = Zt(t), new t(function(n, i) {
873
+ return t = qt(t), new t(function(n, i) {
835
874
  var o;
836
875
  r.subscribe(function(a) {
837
876
  return o = a;
@@ -845,28 +884,28 @@ var Qt = function() {
845
884
  return new e(t);
846
885
  }, e;
847
886
  }();
848
- function Zt(e) {
887
+ function qt(e) {
849
888
  var t;
850
- return (t = e != null ? e : kn.Promise) !== null && t !== void 0 ? t : Promise;
851
- }
852
- function qn(e) {
853
- return e && re(e.next) && re(e.error) && re(e.complete);
889
+ return (t = e != null ? e : Mr.Promise) !== null && t !== void 0 ? t : Promise;
854
890
  }
855
891
  function zn(e) {
856
- return e && e instanceof Nr || qn(e) && Rr(e);
892
+ return e && te(e.next) && te(e.error) && te(e.complete);
857
893
  }
858
- var Qn = Hr(function(e) {
894
+ function qn(e) {
895
+ return e && e instanceof Rr || zn(e) && Hr(e);
896
+ }
897
+ var Qn = Or(function(e) {
859
898
  return function() {
860
899
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
861
900
  };
862
- }), Dr = function(e) {
863
- De(t, e);
901
+ }), Nr = function(e) {
902
+ ne(t, e);
864
903
  function t() {
865
904
  var r = e.call(this) || this;
866
905
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
867
906
  }
868
907
  return t.prototype.lift = function(r) {
869
- var n = new Jt(this, this);
908
+ var n = new Qt(this, this);
870
909
  return n.operator = r, n;
871
910
  }, t.prototype._throwIfClosed = function() {
872
911
  if (this.closed)
@@ -878,7 +917,7 @@ var Qn = Hr(function(e) {
878
917
  if (n._throwIfClosed(), !n.isStopped) {
879
918
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
880
919
  try {
881
- for (var a = Et(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
920
+ for (var a = wt(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
882
921
  var l = s.value;
883
922
  l.next(r);
884
923
  }
@@ -927,20 +966,20 @@ var Qn = Hr(function(e) {
927
966
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
928
967
  }, t.prototype._innerSubscribe = function(r) {
929
968
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
930
- return o || a ? Mr : (this.currentObservers = null, s.push(r), new Ze(function() {
931
- n.currentObservers = null, Bt(s, r);
969
+ return o || a ? Ar : (this.currentObservers = null, s.push(r), new Qe(function() {
970
+ n.currentObservers = null, Tt(s, r);
932
971
  }));
933
972
  }, t.prototype._checkFinalizedStatuses = function(r) {
934
973
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
935
974
  i ? r.error(o) : a && r.complete();
936
975
  }, t.prototype.asObservable = function() {
937
- var r = new Qt();
976
+ var r = new zt();
938
977
  return r.source = this, r;
939
978
  }, t.create = function(r, n) {
940
- return new Jt(r, n);
979
+ return new Qt(r, n);
941
980
  }, t;
942
- }(Qt), Jt = function(e) {
943
- De(t, e);
981
+ }(zt), Qt = function(e) {
982
+ ne(t, e);
944
983
  function t(r, n) {
945
984
  var i = e.call(this) || this;
946
985
  return i.destination = r, i.source = n, i;
@@ -956,17 +995,17 @@ var Qn = Hr(function(e) {
956
995
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
957
996
  }, t.prototype._subscribe = function(r) {
958
997
  var n, i;
959
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mr;
998
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
960
999
  }, t;
961
- }(Dr), Ir = {
1000
+ }(Nr), Dr = {
962
1001
  now: function() {
963
- return (Ir.delegate || Date).now();
1002
+ return (Dr.delegate || Date).now();
964
1003
  },
965
1004
  delegate: void 0
966
1005
  }, Zn = function(e) {
967
- De(t, e);
1006
+ ne(t, e);
968
1007
  function t(r, n, i) {
969
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ir);
1008
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dr);
970
1009
  var o = e.call(this) || this;
971
1010
  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;
972
1011
  }
@@ -986,24 +1025,24 @@ var Qn = Hr(function(e) {
986
1025
  u && o.splice(0, u + 1);
987
1026
  }
988
1027
  }, t;
989
- }(Dr);
990
- const Kt = [], er = {}, Jn = (e, t = 0) => {
991
- if (Kt.indexOf(e) == -1) {
1028
+ }(Nr);
1029
+ const Zt = [], Jt = {}, Jn = (e, t = 0) => {
1030
+ if (Zt.indexOf(e) == -1) {
992
1031
  const r = new Zn(t);
993
- er[e] = r, Kt.push(e);
1032
+ Jt[e] = r, Zt.push(e);
994
1033
  }
995
- return er[e];
1034
+ return Jt[e];
996
1035
  }, be = [];
997
1036
  function Kn(e, t) {
998
1037
  return {
999
- subscribe: Je(e, t).subscribe
1038
+ subscribe: Ze(e, t).subscribe
1000
1039
  };
1001
1040
  }
1002
- function Je(e, t = J) {
1041
+ function Ze(e, t = J) {
1003
1042
  let r;
1004
1043
  const n = /* @__PURE__ */ new Set();
1005
1044
  function i(s) {
1006
- if (Or(e, s) && (e = s, r)) {
1045
+ if (Sr(e, s) && (e = s, r)) {
1007
1046
  const l = !be.length;
1008
1047
  for (const u of n)
1009
1048
  u[1](), be.push(u, e);
@@ -1025,7 +1064,7 @@ function Je(e, t = J) {
1025
1064
  }
1026
1065
  return { set: i, update: o, subscribe: a };
1027
1066
  }
1028
- function Te(e, t, r) {
1067
+ function xe(e, t, r) {
1029
1068
  const n = !Array.isArray(e), i = n ? [e] : e;
1030
1069
  if (!i.every(Boolean))
1031
1070
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -1039,12 +1078,12 @@ function Te(e, t, r) {
1039
1078
  return;
1040
1079
  f();
1041
1080
  const p = t(n ? u[0] : u, a, s);
1042
- o ? a(p) : f = It(p) ? p : J;
1081
+ o ? a(p) : f = Mt(p) ? p : J;
1043
1082
  }, d = i.map(
1044
- (p, v) => Pr(
1083
+ (p, v) => Cr(
1045
1084
  p,
1046
- (B) => {
1047
- u[v] = B, h &= ~(1 << v), l && c();
1085
+ (S) => {
1086
+ u[v] = S, h &= ~(1 << v), l && c();
1048
1087
  },
1049
1088
  () => {
1050
1089
  h |= 1 << v;
@@ -1052,7 +1091,7 @@ function Te(e, t, r) {
1052
1091
  )
1053
1092
  );
1054
1093
  return l = !0, c(), function() {
1055
- Ne(d), f(), l = !1;
1094
+ De(d), f(), l = !1;
1056
1095
  };
1057
1096
  });
1058
1097
  }
@@ -1076,29 +1115,29 @@ function ai(e) {
1076
1115
  function si(e) {
1077
1116
  return Array.isArray(e) ? [] : {};
1078
1117
  }
1079
- function Me(e, t) {
1080
- return t.clone !== !1 && t.isMergeableObject(e) ? ye(si(e), e, t) : e;
1118
+ function Re(e, t) {
1119
+ return t.clone !== !1 && t.isMergeableObject(e) ? we(si(e), e, t) : e;
1081
1120
  }
1082
1121
  function ui(e, t, r) {
1083
1122
  return e.concat(t).map(function(n) {
1084
- return Me(n, r);
1123
+ return Re(n, r);
1085
1124
  });
1086
1125
  }
1087
1126
  function li(e, t) {
1088
1127
  if (!t.customMerge)
1089
- return ye;
1128
+ return we;
1090
1129
  var r = t.customMerge(e);
1091
- return typeof r == "function" ? r : ye;
1130
+ return typeof r == "function" ? r : we;
1092
1131
  }
1093
1132
  function hi(e) {
1094
1133
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1095
1134
  return Object.propertyIsEnumerable.call(e, t);
1096
1135
  }) : [];
1097
1136
  }
1098
- function tr(e) {
1137
+ function Kt(e) {
1099
1138
  return Object.keys(e).concat(hi(e));
1100
1139
  }
1101
- function Lr(e, t) {
1140
+ function Ir(e, t) {
1102
1141
  try {
1103
1142
  return t in e;
1104
1143
  } catch (r) {
@@ -1106,179 +1145,129 @@ function Lr(e, t) {
1106
1145
  }
1107
1146
  }
1108
1147
  function ci(e, t) {
1109
- return Lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1148
+ return Ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1110
1149
  }
1111
1150
  function fi(e, t, r) {
1112
1151
  var n = {};
1113
- return r.isMergeableObject(e) && tr(e).forEach(function(i) {
1114
- n[i] = Me(e[i], r);
1115
- }), tr(t).forEach(function(i) {
1116
- ci(e, i) || (Lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = li(i, r)(e[i], t[i], r) : n[i] = Me(t[i], r));
1152
+ return r.isMergeableObject(e) && Kt(e).forEach(function(i) {
1153
+ n[i] = Re(e[i], r);
1154
+ }), Kt(t).forEach(function(i) {
1155
+ ci(e, i) || (Ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = li(i, r)(e[i], t[i], r) : n[i] = Re(t[i], r));
1117
1156
  }), n;
1118
1157
  }
1119
- function ye(e, t, r) {
1120
- r = r || {}, r.arrayMerge = r.arrayMerge || ui, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = Me;
1158
+ function we(e, t, r) {
1159
+ r = r || {}, r.arrayMerge = r.arrayMerge || ui, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = Re;
1121
1160
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1122
- return o ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : Me(t, r);
1161
+ return o ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : Re(t, r);
1123
1162
  }
1124
- ye.all = function(t, r) {
1163
+ we.all = function(t, r) {
1125
1164
  if (!Array.isArray(t))
1126
1165
  throw new Error("first argument should be an array");
1127
1166
  return t.reduce(function(n, i) {
1128
- return ye(n, i, r);
1167
+ return we(n, i, r);
1129
1168
  }, {});
1130
1169
  };
1131
- var di = ye, mi = di;
1170
+ var di = we, mi = di;
1132
1171
  const bi = /* @__PURE__ */ ei(mi);
1133
- var Ct = function(e, t) {
1134
- return Ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1135
- r.__proto__ = n;
1136
- } || function(r, n) {
1137
- for (var i in n)
1138
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1139
- }, Ct(e, t);
1140
- };
1141
- function Ke(e, t) {
1142
- if (typeof t != "function" && t !== null)
1143
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1144
- Ct(e, t);
1145
- function r() {
1146
- this.constructor = e;
1147
- }
1148
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1149
- }
1150
- var K = function() {
1151
- return K = Object.assign || function(t) {
1152
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1153
- r = arguments[n];
1154
- for (var o in r)
1155
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1156
- }
1157
- return t;
1158
- }, K.apply(this, arguments);
1159
- };
1160
- function pi(e, t) {
1161
- var r = {};
1162
- for (var n in e)
1163
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1164
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1165
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1166
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1167
- return r;
1168
- }
1169
- function ct(e, t, r) {
1170
- if (r || arguments.length === 2)
1171
- for (var n = 0, i = t.length, o; n < i; n++)
1172
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1173
- return e.concat(o || Array.prototype.slice.call(t));
1174
- }
1175
- function ft(e, t) {
1176
- var r = t && t.cache ? t.cache : Ti, n = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : yi;
1172
+ function ht(e, t) {
1173
+ var r = t && t.cache ? t.cache : _i, n = t && t.serializer ? t.serializer : wi, i = t && t.strategy ? t.strategy : vi;
1177
1174
  return i(e, {
1178
1175
  cache: r,
1179
1176
  serializer: n
1180
1177
  });
1181
1178
  }
1182
- function vi(e) {
1179
+ function pi(e) {
1183
1180
  return e == null || typeof e == "number" || typeof e == "boolean";
1184
1181
  }
1185
- function gi(e, t, r, n) {
1186
- var i = vi(n) ? n : r(n), o = t.get(i);
1182
+ function Lr(e, t, r, n) {
1183
+ var i = pi(n) ? n : r(n), o = t.get(i);
1187
1184
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1188
1185
  }
1189
1186
  function Ur(e, t, r) {
1190
1187
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1191
1188
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1192
1189
  }
1193
- function kr(e, t, r, n, i) {
1190
+ function Rt(e, t, r, n, i) {
1194
1191
  return r.bind(t, e, n, i);
1195
1192
  }
1196
- function yi(e, t) {
1197
- var r = e.length === 1 ? gi : Ur;
1198
- return kr(e, this, r, t.cache.create(), t.serializer);
1193
+ function vi(e, t) {
1194
+ var r = e.length === 1 ? Lr : Ur;
1195
+ return Rt(e, this, r, t.cache.create(), t.serializer);
1196
+ }
1197
+ function gi(e, t) {
1198
+ return Rt(e, this, Ur, t.cache.create(), t.serializer);
1199
1199
  }
1200
- function wi(e, t) {
1201
- return kr(e, this, Ur, t.cache.create(), t.serializer);
1200
+ function yi(e, t) {
1201
+ return Rt(e, this, Lr, t.cache.create(), t.serializer);
1202
1202
  }
1203
- var _i = function() {
1203
+ var wi = function() {
1204
1204
  return JSON.stringify(arguments);
1205
- }, Ei = (
1206
- /** @class */
1207
- function() {
1208
- function e() {
1209
- this.cache = /* @__PURE__ */ Object.create(null);
1210
- }
1211
- return e.prototype.get = function(t) {
1212
- return this.cache[t];
1213
- }, e.prototype.set = function(t, r) {
1214
- this.cache[t] = r;
1215
- }, e;
1216
- }()
1217
- ), Ti = {
1205
+ };
1206
+ function Nt() {
1207
+ this.cache = /* @__PURE__ */ Object.create(null);
1208
+ }
1209
+ Nt.prototype.get = function(e) {
1210
+ return this.cache[e];
1211
+ };
1212
+ Nt.prototype.set = function(e, t) {
1213
+ this.cache[e] = t;
1214
+ };
1215
+ var _i = {
1218
1216
  create: function() {
1219
- return new Ei();
1217
+ return new Nt();
1220
1218
  }
1221
- }, dt = {
1222
- variadic: wi
1223
- }, Ve = function() {
1224
- return Ve = Object.assign || function(t) {
1225
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1226
- r = arguments[n];
1227
- for (var o in r)
1228
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1229
- }
1230
- return t;
1231
- }, Ve.apply(this, arguments);
1232
- };
1233
- var w;
1219
+ }, ct = {
1220
+ variadic: gi,
1221
+ monadic: yi
1222
+ }, w;
1234
1223
  (function(e) {
1235
1224
  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";
1236
1225
  })(w || (w = {}));
1237
- var S;
1226
+ var C;
1238
1227
  (function(e) {
1239
1228
  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";
1240
- })(S || (S = {}));
1241
- var we;
1229
+ })(C || (C = {}));
1230
+ var _e;
1242
1231
  (function(e) {
1243
1232
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1244
- })(we || (we = {}));
1245
- function rr(e) {
1246
- return e.type === S.literal;
1233
+ })(_e || (_e = {}));
1234
+ function er(e) {
1235
+ return e.type === C.literal;
1236
+ }
1237
+ function Ti(e) {
1238
+ return e.type === C.argument;
1247
1239
  }
1248
- function xi(e) {
1249
- return e.type === S.argument;
1240
+ function kr(e) {
1241
+ return e.type === C.number;
1250
1242
  }
1251
1243
  function $r(e) {
1252
- return e.type === S.number;
1244
+ return e.type === C.date;
1253
1245
  }
1254
1246
  function Fr(e) {
1255
- return e.type === S.date;
1247
+ return e.type === C.time;
1256
1248
  }
1257
1249
  function Gr(e) {
1258
- return e.type === S.time;
1250
+ return e.type === C.select;
1259
1251
  }
1260
1252
  function jr(e) {
1261
- return e.type === S.select;
1253
+ return e.type === C.plural;
1262
1254
  }
1263
- function Wr(e) {
1264
- return e.type === S.plural;
1255
+ function Ei(e) {
1256
+ return e.type === C.pound;
1265
1257
  }
1266
- function Bi(e) {
1267
- return e.type === S.pound;
1258
+ function Wr(e) {
1259
+ return e.type === C.tag;
1268
1260
  }
1269
1261
  function Vr(e) {
1270
- return e.type === S.tag;
1271
- }
1272
- function Yr(e) {
1273
- return !!(e && typeof e == "object" && e.type === we.number);
1262
+ return !!(e && typeof e == "object" && e.type === _e.number);
1274
1263
  }
1275
- function Ot(e) {
1276
- return !!(e && typeof e == "object" && e.type === we.dateTime);
1264
+ function xt(e) {
1265
+ return !!(e && typeof e == "object" && e.type === _e.dateTime);
1277
1266
  }
1278
- var Xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Si = /(?:[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;
1279
- function Ci(e) {
1267
+ var Yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xi = /(?:[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;
1268
+ function Bi(e) {
1280
1269
  var t = {};
1281
- return e.replace(Si, function(r) {
1270
+ return e.replace(xi, function(r) {
1282
1271
  var n = r.length;
1283
1272
  switch (r[0]) {
1284
1273
  case "G":
@@ -1367,21 +1356,11 @@ function Ci(e) {
1367
1356
  return "";
1368
1357
  }), t;
1369
1358
  }
1370
- var C = function() {
1371
- return C = Object.assign || function(t) {
1372
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1373
- r = arguments[n];
1374
- for (var o in r)
1375
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1376
- }
1377
- return t;
1378
- }, C.apply(this, arguments);
1379
- };
1380
- var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1381
- function Pi(e) {
1359
+ var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1360
+ function Ci(e) {
1382
1361
  if (e.length === 0)
1383
1362
  throw new Error("Number skeleton cannot be empty");
1384
- for (var t = e.split(Oi).filter(function(c) {
1363
+ for (var t = e.split(Si).filter(function(c) {
1385
1364
  return c.length > 0;
1386
1365
  }), r = [], n = 0, i = t; n < i.length; n++) {
1387
1366
  var o = i[n], a = o.split("/");
@@ -1396,17 +1375,17 @@ function Pi(e) {
1396
1375
  }
1397
1376
  return r;
1398
1377
  }
1399
- function Ai(e) {
1378
+ function Pi(e) {
1400
1379
  return e.replace(/^(.*?)-/, "");
1401
1380
  }
1402
- var nr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qr = /^(@+)?(\+|#+)?[rs]?$/g, Hi = /(\*)(0+)|(#+)(0+)|(0+)/g, zr = /^(0+)$/;
1403
- function ir(e) {
1381
+ var tr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xr = /^(@+)?(\+|#+)?[rs]?$/g, Oi = /(\*)(0+)|(#+)(0+)|(0+)/g, zr = /^(0+)$/;
1382
+ function rr(e) {
1404
1383
  var t = {};
1405
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qr, function(r, n, i) {
1384
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xr, function(r, n, i) {
1406
1385
  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)), "";
1407
1386
  }), t;
1408
1387
  }
1409
- function Qr(e) {
1388
+ function qr(e) {
1410
1389
  switch (e) {
1411
1390
  case "sign-auto":
1412
1391
  return {
@@ -1446,7 +1425,7 @@ function Qr(e) {
1446
1425
  };
1447
1426
  }
1448
1427
  }
1449
- function Mi(e) {
1428
+ function Ai(e) {
1450
1429
  var t;
1451
1430
  if (e[0] === "E" && e[1] === "E" ? (t = {
1452
1431
  notation: "engineering"
@@ -1460,11 +1439,11 @@ function Mi(e) {
1460
1439
  }
1461
1440
  return t;
1462
1441
  }
1463
- function or(e) {
1464
- var t = {}, r = Qr(e);
1442
+ function nr(e) {
1443
+ var t = {}, r = qr(e);
1465
1444
  return r || t;
1466
1445
  }
1467
- function Ri(e) {
1446
+ function Hi(e) {
1468
1447
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1469
1448
  var i = n[r];
1470
1449
  switch (i.stem) {
@@ -1488,7 +1467,7 @@ function Ri(e) {
1488
1467
  continue;
1489
1468
  case "measure-unit":
1490
1469
  case "unit":
1491
- t.style = "unit", t.unit = Ai(i.options[0]);
1470
+ t.style = "unit", t.unit = Pi(i.options[0]);
1492
1471
  continue;
1493
1472
  case "compact-short":
1494
1473
  case "K":
@@ -1499,13 +1478,13 @@ function Ri(e) {
1499
1478
  t.notation = "compact", t.compactDisplay = "long";
1500
1479
  continue;
1501
1480
  case "scientific":
1502
- t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1503
- return C(C({}, l), or(u));
1481
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1482
+ return T(T({}, l), nr(u));
1504
1483
  }, {}));
1505
1484
  continue;
1506
1485
  case "engineering":
1507
- t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1508
- return C(C({}, l), or(u));
1486
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1487
+ return T(T({}, l), nr(u));
1509
1488
  }, {}));
1510
1489
  continue;
1511
1490
  case "notation-simple":
@@ -1550,7 +1529,7 @@ function Ri(e) {
1550
1529
  case "integer-width":
1551
1530
  if (i.options.length > 1)
1552
1531
  throw new RangeError("integer-width stems only accept a single optional option");
1553
- i.options[0].replace(Hi, function(l, u, h, f, c, d) {
1532
+ i.options[0].replace(Oi, function(l, u, h, f, c, d) {
1554
1533
  if (u)
1555
1534
  t.minimumIntegerDigits = h.length;
1556
1535
  else {
@@ -1567,24 +1546,24 @@ function Ri(e) {
1567
1546
  t.minimumIntegerDigits = i.stem.length;
1568
1547
  continue;
1569
1548
  }
1570
- if (nr.test(i.stem)) {
1549
+ if (tr.test(i.stem)) {
1571
1550
  if (i.options.length > 1)
1572
1551
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1573
- i.stem.replace(nr, function(l, u, h, f, c, d) {
1552
+ i.stem.replace(tr, function(l, u, h, f, c, d) {
1574
1553
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1575
1554
  });
1576
1555
  var o = i.options[0];
1577
- o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), ir(o)));
1556
+ o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), rr(o)));
1578
1557
  continue;
1579
1558
  }
1580
- if (qr.test(i.stem)) {
1581
- t = C(C({}, t), ir(i.stem));
1559
+ if (Xr.test(i.stem)) {
1560
+ t = T(T({}, t), rr(i.stem));
1582
1561
  continue;
1583
1562
  }
1584
- var a = Qr(i.stem);
1585
- a && (t = C(C({}, t), a));
1586
- var s = Mi(i.stem);
1587
- s && (t = C(C({}, t), s));
1563
+ var a = qr(i.stem);
1564
+ a && (t = T(T({}, t), a));
1565
+ var s = Ai(i.stem);
1566
+ s && (t = T(T({}, t), s));
1588
1567
  }
1589
1568
  return t;
1590
1569
  }
@@ -3003,13 +2982,13 @@ var $e = {
3003
2982
  "h"
3004
2983
  ]
3005
2984
  };
3006
- function Ni(e, t) {
2985
+ function Mi(e, t) {
3007
2986
  for (var r = "", n = 0; n < e.length; n++) {
3008
2987
  var i = e.charAt(n);
3009
2988
  if (i === "j") {
3010
2989
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3011
2990
  o++, n++;
3012
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Di(t);
2991
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
3013
2992
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
3014
2993
  r += l;
3015
2994
  for (; a-- > 0; )
@@ -3019,7 +2998,7 @@ function Ni(e, t) {
3019
2998
  }
3020
2999
  return r;
3021
3000
  }
3022
- function Di(e) {
3001
+ function Ri(e) {
3023
3002
  var t = e.hourCycle;
3024
3003
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3025
3004
  e.hourCycles && // @ts-ignore
@@ -3041,20 +3020,20 @@ function Di(e) {
3041
3020
  var i = $e[n || ""] || $e[r || ""] || $e["".concat(r, "-001")] || $e["001"];
3042
3021
  return i[0];
3043
3022
  }
3044
- var mt, Ii = new RegExp("^".concat(Xr.source, "*")), Li = new RegExp("".concat(Xr.source, "*$"));
3023
+ var ft, Ni = new RegExp("^".concat(Yr.source, "*")), Di = new RegExp("".concat(Yr.source, "*$"));
3045
3024
  function _(e, t) {
3046
3025
  return { start: e, end: t };
3047
3026
  }
3048
- var Ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), ki = !!String.fromCodePoint, $i = !!Object.fromEntries, Fi = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, ji = !!String.prototype.trimEnd, Wi = !!Number.isSafeInteger, Vi = Wi ? Number.isSafeInteger : function(e) {
3027
+ var Ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Ui = !!Object.fromEntries, ki = !!String.prototype.codePointAt, $i = !!String.prototype.trimStart, Fi = !!String.prototype.trimEnd, Gi = !!Number.isSafeInteger, ji = Gi ? Number.isSafeInteger : function(e) {
3049
3028
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3050
- }, Pt = !0;
3029
+ }, Bt = !0;
3051
3030
  try {
3052
- var Yi = Jr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3053
- Pt = ((mt = Yi.exec("a")) === null || mt === void 0 ? void 0 : mt[0]) === "a";
3031
+ var Wi = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3032
+ Bt = ((ft = Wi.exec("a")) === null || ft === void 0 ? void 0 : ft[0]) === "a";
3054
3033
  } catch (e) {
3055
- Pt = !1;
3034
+ Bt = !1;
3056
3035
  }
3057
- var ar = Ui ? (
3036
+ var ir = Ii ? (
3058
3037
  // Native
3059
3038
  function(t, r, n) {
3060
3039
  return t.startsWith(r, n);
@@ -3064,7 +3043,7 @@ var ar = Ui ? (
3064
3043
  function(t, r, n) {
3065
3044
  return t.slice(n, n + r.length) === r;
3066
3045
  }
3067
- ), At = ki ? String.fromCodePoint : (
3046
+ ), St = Li ? String.fromCodePoint : (
3068
3047
  // IE11
3069
3048
  function() {
3070
3049
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3076,9 +3055,9 @@ var ar = Ui ? (
3076
3055
  }
3077
3056
  return n;
3078
3057
  }
3079
- ), sr = (
3058
+ ), or = (
3080
3059
  // native
3081
- $i ? Object.fromEntries : (
3060
+ Ui ? Object.fromEntries : (
3082
3061
  // Ponyfill
3083
3062
  function(t) {
3084
3063
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3088,7 +3067,7 @@ var ar = Ui ? (
3088
3067
  return r;
3089
3068
  }
3090
3069
  )
3091
- ), Zr = Fi ? (
3070
+ ), Qr = ki ? (
3092
3071
  // Native
3093
3072
  function(t, r) {
3094
3073
  return t.codePointAt(r);
@@ -3102,7 +3081,7 @@ var ar = Ui ? (
3102
3081
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3103
3082
  }
3104
3083
  }
3105
- ), Xi = Gi ? (
3084
+ ), Vi = $i ? (
3106
3085
  // Native
3107
3086
  function(t) {
3108
3087
  return t.trimStart();
@@ -3110,9 +3089,9 @@ var ar = Ui ? (
3110
3089
  ) : (
3111
3090
  // Ponyfill
3112
3091
  function(t) {
3113
- return t.replace(Ii, "");
3092
+ return t.replace(Ni, "");
3114
3093
  }
3115
- ), qi = ji ? (
3094
+ ), Yi = Fi ? (
3116
3095
  // Native
3117
3096
  function(t) {
3118
3097
  return t.trimEnd();
@@ -3120,32 +3099,32 @@ var ar = Ui ? (
3120
3099
  ) : (
3121
3100
  // Ponyfill
3122
3101
  function(t) {
3123
- return t.replace(Li, "");
3102
+ return t.replace(Di, "");
3124
3103
  }
3125
3104
  );
3126
- function Jr(e, t) {
3105
+ function Zr(e, t) {
3127
3106
  return new RegExp(e, t);
3128
3107
  }
3129
- var Ht;
3130
- if (Pt) {
3131
- var ur = Jr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3132
- Ht = function(t, r) {
3108
+ var Ct;
3109
+ if (Bt) {
3110
+ var ar = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3111
+ Ct = function(t, r) {
3133
3112
  var n;
3134
- ur.lastIndex = r;
3135
- var i = ur.exec(t);
3113
+ ar.lastIndex = r;
3114
+ var i = ar.exec(t);
3136
3115
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3137
3116
  };
3138
3117
  } else
3139
- Ht = function(t, r) {
3118
+ Ct = function(t, r) {
3140
3119
  for (var n = []; ; ) {
3141
- var i = Zr(t, r);
3142
- if (i === void 0 || Kr(i) || Ji(i))
3120
+ var i = Qr(t, r);
3121
+ if (i === void 0 || Jr(i) || Qi(i))
3143
3122
  break;
3144
3123
  n.push(i), r += i >= 65536 ? 2 : 1;
3145
3124
  }
3146
- return At.apply(void 0, n);
3125
+ return St.apply(void 0, n);
3147
3126
  };
3148
- var zi = (
3127
+ var Xi = (
3149
3128
  /** @class */
3150
3129
  function() {
3151
3130
  function e(t, r) {
@@ -3169,14 +3148,14 @@ var zi = (
3169
3148
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3170
3149
  var s = this.clonePosition();
3171
3150
  this.bump(), i.push({
3172
- type: S.pound,
3151
+ type: C.pound,
3173
3152
  location: _(s, this.clonePosition())
3174
3153
  });
3175
3154
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3176
3155
  if (n)
3177
3156
  break;
3178
3157
  return this.error(w.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3179
- } else if (o === 60 && !this.ignoreTag && Mt(this.peek() || 0)) {
3158
+ } else if (o === 60 && !this.ignoreTag && Pt(this.peek() || 0)) {
3180
3159
  var a = this.parseTag(t, r);
3181
3160
  if (a.err)
3182
3161
  return a;
@@ -3197,7 +3176,7 @@ var zi = (
3197
3176
  if (this.bumpSpace(), this.bumpIf("/>"))
3198
3177
  return {
3199
3178
  val: {
3200
- type: S.literal,
3179
+ type: C.literal,
3201
3180
  value: "<".concat(i, "/>"),
3202
3181
  location: _(n, this.clonePosition())
3203
3182
  },
@@ -3209,12 +3188,12 @@ var zi = (
3209
3188
  return o;
3210
3189
  var a = o.val, s = this.clonePosition();
3211
3190
  if (this.bumpIf("</")) {
3212
- if (this.isEOF() || !Mt(this.char()))
3191
+ if (this.isEOF() || !Pt(this.char()))
3213
3192
  return this.error(w.INVALID_TAG, _(s, this.clonePosition()));
3214
3193
  var l = this.clonePosition(), u = this.parseTagName();
3215
3194
  return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3216
3195
  val: {
3217
- type: S.tag,
3196
+ type: C.tag,
3218
3197
  value: i,
3219
3198
  children: a,
3220
3199
  location: _(n, this.clonePosition())
@@ -3227,7 +3206,7 @@ var zi = (
3227
3206
  return this.error(w.INVALID_TAG, _(n, this.clonePosition()));
3228
3207
  }, e.prototype.parseTagName = function() {
3229
3208
  var t = this.offset();
3230
- for (this.bump(); !this.isEOF() && Zi(this.char()); )
3209
+ for (this.bump(); !this.isEOF() && qi(this.char()); )
3231
3210
  this.bump();
3232
3211
  return this.message.slice(t, this.offset());
3233
3212
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3251,12 +3230,12 @@ var zi = (
3251
3230
  }
3252
3231
  var l = _(n, this.clonePosition());
3253
3232
  return {
3254
- val: { type: S.literal, value: i, location: l },
3233
+ val: { type: C.literal, value: i, location: l },
3255
3234
  err: null
3256
3235
  };
3257
3236
  }, e.prototype.tryParseLeftAngleBracket = function() {
3258
3237
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3259
- !Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
3238
+ !zi(this.peek() || 0)) ? (this.bump(), "<") : null;
3260
3239
  }, e.prototype.tryParseQuote = function(t) {
3261
3240
  if (this.isEOF() || this.char() !== 39)
3262
3241
  return null;
@@ -3290,12 +3269,12 @@ var zi = (
3290
3269
  r.push(n);
3291
3270
  this.bump();
3292
3271
  }
3293
- return At.apply(void 0, r);
3272
+ return St.apply(void 0, r);
3294
3273
  }, e.prototype.tryParseUnquoted = function(t, r) {
3295
3274
  if (this.isEOF())
3296
3275
  return null;
3297
3276
  var n = this.char();
3298
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), At(n));
3277
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), St(n));
3299
3278
  }, e.prototype.parseArgument = function(t, r) {
3300
3279
  var n = this.clonePosition();
3301
3280
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3311,7 +3290,7 @@ var zi = (
3311
3290
  case 125:
3312
3291
  return this.bump(), {
3313
3292
  val: {
3314
- type: S.argument,
3293
+ type: C.argument,
3315
3294
  // value does not include the opening and closing braces.
3316
3295
  value: i,
3317
3296
  location: _(n, this.clonePosition())
@@ -3324,7 +3303,7 @@ var zi = (
3324
3303
  return this.error(w.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3325
3304
  }
3326
3305
  }, e.prototype.parseIdentifierIfPossible = function() {
3327
- var t = this.clonePosition(), r = this.offset(), n = Ht(this.message, r), i = r + n.length;
3306
+ var t = this.clonePosition(), r = this.offset(), n = Ct(this.message, r), i = r + n.length;
3328
3307
  this.bumpTo(i);
3329
3308
  var o = this.clonePosition(), a = _(t, o);
3330
3309
  return { value: n, location: a };
@@ -3343,7 +3322,7 @@ var zi = (
3343
3322
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3344
3323
  if (f.err)
3345
3324
  return f;
3346
- var c = qi(f.val);
3325
+ var c = Yi(f.val);
3347
3326
  if (c.length === 0)
3348
3327
  return this.error(w.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3349
3328
  var d = _(h, this.clonePosition());
@@ -3353,34 +3332,34 @@ var zi = (
3353
3332
  if (p.err)
3354
3333
  return p;
3355
3334
  var v = _(i, this.clonePosition());
3356
- if (u && ar(u == null ? void 0 : u.style, "::", 0)) {
3357
- var B = Xi(u.style.slice(2));
3335
+ if (u && ir(u == null ? void 0 : u.style, "::", 0)) {
3336
+ var S = Vi(u.style.slice(2));
3358
3337
  if (s === "number") {
3359
- var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
3338
+ var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
3360
3339
  return f.err ? f : {
3361
- val: { type: S.number, value: n, location: v, style: f.val },
3340
+ val: { type: C.number, value: n, location: v, style: f.val },
3362
3341
  err: null
3363
3342
  };
3364
3343
  } else {
3365
- if (B.length === 0)
3344
+ if (S.length === 0)
3366
3345
  return this.error(w.EXPECT_DATE_TIME_SKELETON, v);
3367
- var L = B;
3368
- this.locale && (L = Ni(B, this.locale));
3346
+ var L = S;
3347
+ this.locale && (L = Mi(S, this.locale));
3369
3348
  var c = {
3370
- type: we.dateTime,
3349
+ type: _e.dateTime,
3371
3350
  pattern: L,
3372
3351
  location: u.styleLocation,
3373
- parsedOptions: this.shouldParseSkeletons ? Ci(L) : {}
3374
- }, O = s === "date" ? S.date : S.time;
3352
+ parsedOptions: this.shouldParseSkeletons ? Bi(L) : {}
3353
+ }, P = s === "date" ? C.date : C.time;
3375
3354
  return {
3376
- val: { type: O, value: n, location: v, style: c },
3355
+ val: { type: P, value: n, location: v, style: c },
3377
3356
  err: null
3378
3357
  };
3379
3358
  }
3380
3359
  }
3381
3360
  return {
3382
3361
  val: {
3383
- type: s === "number" ? S.number : s === "date" ? S.date : S.time,
3362
+ type: s === "number" ? C.number : s === "date" ? C.date : C.time,
3384
3363
  value: n,
3385
3364
  location: v,
3386
3365
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -3393,7 +3372,7 @@ var zi = (
3393
3372
  case "select": {
3394
3373
  var E = this.clonePosition();
3395
3374
  if (this.bumpSpace(), !this.bumpIf(","))
3396
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, _(E, Ve({}, E)));
3375
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, _(E, T({}, E)));
3397
3376
  this.bumpSpace();
3398
3377
  var U = this.parseIdentifierIfPossible(), A = 0;
3399
3378
  if (s !== "select" && U.value === "offset") {
@@ -3414,17 +3393,17 @@ var zi = (
3414
3393
  var k = _(i, this.clonePosition());
3415
3394
  return s === "select" ? {
3416
3395
  val: {
3417
- type: S.select,
3396
+ type: C.select,
3418
3397
  value: n,
3419
- options: sr($.val),
3398
+ options: or($.val),
3420
3399
  location: k
3421
3400
  },
3422
3401
  err: null
3423
3402
  } : {
3424
3403
  val: {
3425
- type: S.plural,
3404
+ type: C.plural,
3426
3405
  value: n,
3427
- options: sr($.val),
3406
+ options: or($.val),
3428
3407
  offset: A,
3429
3408
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3430
3409
  location: k
@@ -3475,16 +3454,16 @@ var zi = (
3475
3454
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3476
3455
  var n = [];
3477
3456
  try {
3478
- n = Pi(t);
3457
+ n = Ci(t);
3479
3458
  } catch (i) {
3480
3459
  return this.error(w.INVALID_NUMBER_SKELETON, r);
3481
3460
  }
3482
3461
  return {
3483
3462
  val: {
3484
- type: we.number,
3463
+ type: _e.number,
3485
3464
  tokens: n,
3486
3465
  location: r,
3487
- parsedOptions: this.shouldParseSkeletons ? Ri(n) : {}
3466
+ parsedOptions: this.shouldParseSkeletons ? Hi(n) : {}
3488
3467
  },
3489
3468
  err: null
3490
3469
  };
@@ -3532,7 +3511,7 @@ var zi = (
3532
3511
  break;
3533
3512
  }
3534
3513
  var l = _(i, this.clonePosition());
3535
- return o ? (a *= n, Vi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3514
+ return o ? (a *= n, ji(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3536
3515
  }, e.prototype.offset = function() {
3537
3516
  return this.position.offset;
3538
3517
  }, e.prototype.isEOF = function() {
@@ -3547,7 +3526,7 @@ var zi = (
3547
3526
  var t = this.position.offset;
3548
3527
  if (t >= this.message.length)
3549
3528
  throw Error("out of bound");
3550
- var r = Zr(this.message, t);
3529
+ var r = Qr(this.message, t);
3551
3530
  if (r === void 0)
3552
3531
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3553
3532
  return r;
@@ -3566,7 +3545,7 @@ var zi = (
3566
3545
  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);
3567
3546
  }
3568
3547
  }, e.prototype.bumpIf = function(t) {
3569
- if (ar(this.message, t, this.offset())) {
3548
+ if (ir(this.message, t, this.offset())) {
3570
3549
  for (var r = 0; r < t.length; r++)
3571
3550
  this.bump();
3572
3551
  return !0;
@@ -3588,7 +3567,7 @@ var zi = (
3588
3567
  break;
3589
3568
  }
3590
3569
  }, e.prototype.bumpSpace = function() {
3591
- for (; !this.isEOF() && Kr(this.char()); )
3570
+ for (; !this.isEOF() && Jr(this.char()); )
3592
3571
  this.bump();
3593
3572
  }, e.prototype.peek = function() {
3594
3573
  if (this.isEOF())
@@ -3598,47 +3577,47 @@ var zi = (
3598
3577
  }, e;
3599
3578
  }()
3600
3579
  );
3601
- function Mt(e) {
3580
+ function Pt(e) {
3602
3581
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3603
3582
  }
3604
- function Qi(e) {
3605
- return Mt(e) || e === 47;
3583
+ function zi(e) {
3584
+ return Pt(e) || e === 47;
3606
3585
  }
3607
- function Zi(e) {
3586
+ function qi(e) {
3608
3587
  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;
3609
3588
  }
3610
- function Kr(e) {
3589
+ function Jr(e) {
3611
3590
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3612
3591
  }
3613
- function Ji(e) {
3592
+ function Qi(e) {
3614
3593
  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;
3615
3594
  }
3616
- function Rt(e) {
3595
+ function Ot(e) {
3617
3596
  e.forEach(function(t) {
3618
- if (delete t.location, jr(t) || Wr(t))
3597
+ if (delete t.location, Gr(t) || jr(t))
3619
3598
  for (var r in t.options)
3620
- delete t.options[r].location, Rt(t.options[r].value);
3599
+ delete t.options[r].location, Ot(t.options[r].value);
3621
3600
  else
3622
- $r(t) && Yr(t.style) || (Fr(t) || Gr(t)) && Ot(t.style) ? delete t.style.location : Vr(t) && Rt(t.children);
3601
+ kr(t) && Vr(t.style) || ($r(t) || Fr(t)) && xt(t.style) ? delete t.style.location : Wr(t) && Ot(t.children);
3623
3602
  });
3624
3603
  }
3625
- function Ki(e, t) {
3626
- t === void 0 && (t = {}), t = Ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3627
- var r = new zi(e, t).parse();
3604
+ function Zi(e, t) {
3605
+ t === void 0 && (t = {}), t = T({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3606
+ var r = new Xi(e, t).parse();
3628
3607
  if (r.err) {
3629
3608
  var n = SyntaxError(w[r.err.kind]);
3630
3609
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3631
3610
  }
3632
- return t != null && t.captureLocation || Rt(r.val), r.val;
3611
+ return t != null && t.captureLocation || Ot(r.val), r.val;
3633
3612
  }
3634
- var _e;
3613
+ var Te;
3635
3614
  (function(e) {
3636
3615
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3637
- })(_e || (_e = {}));
3638
- var et = (
3616
+ })(Te || (Te = {}));
3617
+ var Je = (
3639
3618
  /** @class */
3640
3619
  function(e) {
3641
- Ke(t, e);
3620
+ ne(t, e);
3642
3621
  function t(r, n, i) {
3643
3622
  var o = e.call(this, r) || this;
3644
3623
  return o.code = n, o.originalMessage = i, o;
@@ -3647,48 +3626,48 @@ var et = (
3647
3626
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3648
3627
  }, t;
3649
3628
  }(Error)
3650
- ), lr = (
3629
+ ), sr = (
3651
3630
  /** @class */
3652
3631
  function(e) {
3653
- Ke(t, e);
3632
+ ne(t, e);
3654
3633
  function t(r, n, i, o) {
3655
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), _e.INVALID_VALUE, o) || this;
3634
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Te.INVALID_VALUE, o) || this;
3656
3635
  }
3657
3636
  return t;
3658
- }(et)
3659
- ), eo = (
3637
+ }(Je)
3638
+ ), Ji = (
3660
3639
  /** @class */
3661
3640
  function(e) {
3662
- Ke(t, e);
3641
+ ne(t, e);
3663
3642
  function t(r, n, i) {
3664
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), _e.INVALID_VALUE, i) || this;
3643
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Te.INVALID_VALUE, i) || this;
3665
3644
  }
3666
3645
  return t;
3667
- }(et)
3668
- ), to = (
3646
+ }(Je)
3647
+ ), Ki = (
3669
3648
  /** @class */
3670
3649
  function(e) {
3671
- Ke(t, e);
3650
+ ne(t, e);
3672
3651
  function t(r, n) {
3673
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), _e.MISSING_VALUE, n) || this;
3652
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Te.MISSING_VALUE, n) || this;
3674
3653
  }
3675
3654
  return t;
3676
- }(et)
3655
+ }(Je)
3677
3656
  ), F;
3678
3657
  (function(e) {
3679
3658
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3680
3659
  })(F || (F = {}));
3681
- function ro(e) {
3660
+ function eo(e) {
3682
3661
  return e.length < 2 ? e : e.reduce(function(t, r) {
3683
3662
  var n = t[t.length - 1];
3684
3663
  return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
3685
3664
  }, []);
3686
3665
  }
3687
- function no(e) {
3666
+ function to(e) {
3688
3667
  return typeof e == "function";
3689
3668
  }
3690
3669
  function je(e, t, r, n, i, o, a) {
3691
- if (e.length === 1 && rr(e[0]))
3670
+ if (e.length === 1 && er(e[0]))
3692
3671
  return [
3693
3672
  {
3694
3673
  type: F.literal,
@@ -3697,14 +3676,14 @@ function je(e, t, r, n, i, o, a) {
3697
3676
  ];
3698
3677
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3699
3678
  var h = u[l];
3700
- if (rr(h)) {
3679
+ if (er(h)) {
3701
3680
  s.push({
3702
3681
  type: F.literal,
3703
3682
  value: h.value
3704
3683
  });
3705
3684
  continue;
3706
3685
  }
3707
- if (Bi(h)) {
3686
+ if (Ei(h)) {
3708
3687
  typeof o == "number" && s.push({
3709
3688
  type: F.literal,
3710
3689
  value: r.getNumberFormat(t).format(o)
@@ -3713,89 +3692,89 @@ function je(e, t, r, n, i, o, a) {
3713
3692
  }
3714
3693
  var f = h.value;
3715
3694
  if (!(i && f in i))
3716
- throw new to(f, a);
3695
+ throw new Ki(f, a);
3717
3696
  var c = i[f];
3718
- if (xi(h)) {
3697
+ if (Ti(h)) {
3719
3698
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3720
3699
  type: typeof c == "string" ? F.literal : F.object,
3721
3700
  value: c
3722
3701
  });
3723
3702
  continue;
3724
3703
  }
3725
- if (Fr(h)) {
3726
- var d = typeof h.style == "string" ? n.date[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
3704
+ if ($r(h)) {
3705
+ var d = typeof h.style == "string" ? n.date[h.style] : xt(h.style) ? h.style.parsedOptions : void 0;
3727
3706
  s.push({
3728
3707
  type: F.literal,
3729
3708
  value: r.getDateTimeFormat(t, d).format(c)
3730
3709
  });
3731
3710
  continue;
3732
3711
  }
3733
- if (Gr(h)) {
3734
- var d = typeof h.style == "string" ? n.time[h.style] : Ot(h.style) ? h.style.parsedOptions : n.time.medium;
3712
+ if (Fr(h)) {
3713
+ var d = typeof h.style == "string" ? n.time[h.style] : xt(h.style) ? h.style.parsedOptions : n.time.medium;
3735
3714
  s.push({
3736
3715
  type: F.literal,
3737
3716
  value: r.getDateTimeFormat(t, d).format(c)
3738
3717
  });
3739
3718
  continue;
3740
3719
  }
3741
- if ($r(h)) {
3742
- var d = typeof h.style == "string" ? n.number[h.style] : Yr(h.style) ? h.style.parsedOptions : void 0;
3720
+ if (kr(h)) {
3721
+ var d = typeof h.style == "string" ? n.number[h.style] : Vr(h.style) ? h.style.parsedOptions : void 0;
3743
3722
  d && d.scale && (c = c * (d.scale || 1)), s.push({
3744
3723
  type: F.literal,
3745
3724
  value: r.getNumberFormat(t, d).format(c)
3746
3725
  });
3747
3726
  continue;
3748
3727
  }
3749
- if (Vr(h)) {
3750
- var p = h.children, v = h.value, B = i[v];
3751
- if (!no(B))
3752
- throw new eo(v, "function", a);
3753
- var L = je(p, t, r, n, i, o), O = B(L.map(function(A) {
3728
+ if (Wr(h)) {
3729
+ var p = h.children, v = h.value, S = i[v];
3730
+ if (!to(S))
3731
+ throw new Ji(v, "function", a);
3732
+ var L = je(p, t, r, n, i, o), P = S(L.map(function(A) {
3754
3733
  return A.value;
3755
3734
  }));
3756
- Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(A) {
3735
+ Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(A) {
3757
3736
  return {
3758
3737
  type: typeof A == "string" ? F.literal : F.object,
3759
3738
  value: A
3760
3739
  };
3761
3740
  }));
3762
3741
  }
3763
- if (jr(h)) {
3742
+ if (Gr(h)) {
3764
3743
  var E = h.options[c] || h.options.other;
3765
3744
  if (!E)
3766
- throw new lr(h.value, c, Object.keys(h.options), a);
3745
+ throw new sr(h.value, c, Object.keys(h.options), a);
3767
3746
  s.push.apply(s, je(E.value, t, r, n, i));
3768
3747
  continue;
3769
3748
  }
3770
- if (Wr(h)) {
3749
+ if (jr(h)) {
3771
3750
  var E = h.options["=".concat(c)];
3772
3751
  if (!E) {
3773
3752
  if (!Intl.PluralRules)
3774
- throw new et(`Intl.PluralRules is not available in this environment.
3753
+ throw new Je(`Intl.PluralRules is not available in this environment.
3775
3754
  Try polyfilling it using "@formatjs/intl-pluralrules"
3776
- `, _e.MISSING_INTL_API, a);
3755
+ `, Te.MISSING_INTL_API, a);
3777
3756
  var U = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3778
3757
  E = h.options[U] || h.options.other;
3779
3758
  }
3780
3759
  if (!E)
3781
- throw new lr(h.value, c, Object.keys(h.options), a);
3760
+ throw new sr(h.value, c, Object.keys(h.options), a);
3782
3761
  s.push.apply(s, je(E.value, t, r, n, i, c - (h.offset || 0)));
3783
3762
  continue;
3784
3763
  }
3785
3764
  }
3786
- return ro(s);
3765
+ return eo(s);
3787
3766
  }
3788
- function io(e, t) {
3789
- return t ? K(K(K({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3790
- return r[n] = K(K({}, e[n]), t[n] || {}), r;
3767
+ function ro(e, t) {
3768
+ return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3769
+ return r[n] = T(T({}, e[n]), t[n] || {}), r;
3791
3770
  }, {})) : e;
3792
3771
  }
3793
- function oo(e, t) {
3772
+ function no(e, t) {
3794
3773
  return t ? Object.keys(e).reduce(function(r, n) {
3795
- return r[n] = io(e[n], t[n]), r;
3796
- }, K({}, e)) : e;
3774
+ return r[n] = ro(e[n], t[n]), r;
3775
+ }, T({}, e)) : e;
3797
3776
  }
3798
- function bt(e) {
3777
+ function dt(e) {
3799
3778
  return {
3800
3779
  create: function() {
3801
3780
  return {
@@ -3809,39 +3788,39 @@ function bt(e) {
3809
3788
  }
3810
3789
  };
3811
3790
  }
3812
- function ao(e) {
3791
+ function io(e) {
3813
3792
  return e === void 0 && (e = {
3814
3793
  number: {},
3815
3794
  dateTime: {},
3816
3795
  pluralRules: {}
3817
3796
  }), {
3818
- getNumberFormat: ft(function() {
3797
+ getNumberFormat: ht(function() {
3819
3798
  for (var t, r = [], n = 0; n < arguments.length; n++)
3820
3799
  r[n] = arguments[n];
3821
- return new ((t = Intl.NumberFormat).bind.apply(t, ct([void 0], r, !1)))();
3800
+ return new ((t = Intl.NumberFormat).bind.apply(t, ye([void 0], r, !1)))();
3822
3801
  }, {
3823
- cache: bt(e.number),
3824
- strategy: dt.variadic
3802
+ cache: dt(e.number),
3803
+ strategy: ct.variadic
3825
3804
  }),
3826
- getDateTimeFormat: ft(function() {
3805
+ getDateTimeFormat: ht(function() {
3827
3806
  for (var t, r = [], n = 0; n < arguments.length; n++)
3828
3807
  r[n] = arguments[n];
3829
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ct([void 0], r, !1)))();
3808
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ye([void 0], r, !1)))();
3830
3809
  }, {
3831
- cache: bt(e.dateTime),
3832
- strategy: dt.variadic
3810
+ cache: dt(e.dateTime),
3811
+ strategy: ct.variadic
3833
3812
  }),
3834
- getPluralRules: ft(function() {
3813
+ getPluralRules: ht(function() {
3835
3814
  for (var t, r = [], n = 0; n < arguments.length; n++)
3836
3815
  r[n] = arguments[n];
3837
- return new ((t = Intl.PluralRules).bind.apply(t, ct([void 0], r, !1)))();
3816
+ return new ((t = Intl.PluralRules).bind.apply(t, ye([void 0], r, !1)))();
3838
3817
  }, {
3839
- cache: bt(e.pluralRules),
3840
- strategy: dt.variadic
3818
+ cache: dt(e.pluralRules),
3819
+ strategy: ct.variadic
3841
3820
  })
3842
3821
  };
3843
3822
  }
3844
- var so = (
3823
+ var oo = (
3845
3824
  /** @class */
3846
3825
  function() {
3847
3826
  function e(t, r, n, i) {
@@ -3873,13 +3852,13 @@ var so = (
3873
3852
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3874
3853
  var a = i || {};
3875
3854
  a.formatters;
3876
- var s = pi(a, ["formatters"]);
3877
- this.ast = e.__parse(t, K(K({}, s), { locale: this.resolvedLocale }));
3855
+ var s = Un(a, ["formatters"]);
3856
+ this.ast = e.__parse(t, T(T({}, s), { locale: this.resolvedLocale }));
3878
3857
  } else
3879
3858
  this.ast = t;
3880
3859
  if (!Array.isArray(this.ast))
3881
3860
  throw new TypeError("A message must be provided as a String or AST.");
3882
- this.formats = oo(e.formats, n), this.formatters = i && i.formatters || ao(this.formatterCache);
3861
+ this.formats = no(e.formats, n), this.formatters = i && i.formatters || io(this.formatterCache);
3883
3862
  }
3884
3863
  return Object.defineProperty(e, "defaultLocale", {
3885
3864
  get: function() {
@@ -3892,7 +3871,7 @@ var so = (
3892
3871
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3893
3872
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3894
3873
  }
3895
- }, e.__parse = Ki, e.formats = {
3874
+ }, e.__parse = Zi, e.formats = {
3896
3875
  number: {
3897
3876
  integer: {
3898
3877
  maximumFractionDigits: 0
@@ -3953,7 +3932,7 @@ var so = (
3953
3932
  }, e;
3954
3933
  }()
3955
3934
  );
3956
- function uo(e, t) {
3935
+ function ao(e, t) {
3957
3936
  if (t == null)
3958
3937
  return;
3959
3938
  if (t in e)
@@ -3974,92 +3953,92 @@ function uo(e, t) {
3974
3953
  n = void 0;
3975
3954
  return n;
3976
3955
  }
3977
- const ae = {}, lo = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), en = (e, t) => {
3956
+ const ae = {}, so = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), Kr = (e, t) => {
3978
3957
  if (t == null)
3979
3958
  return;
3980
3959
  if (t in ae && e in ae[t])
3981
3960
  return ae[t][e];
3982
- const r = tt(t);
3961
+ const r = Ke(t);
3983
3962
  for (let n = 0; n < r.length; n++) {
3984
- const i = r[n], o = co(i, e);
3963
+ const i = r[n], o = lo(i, e);
3985
3964
  if (o)
3986
- return lo(e, t, o);
3965
+ return so(e, t, o);
3987
3966
  }
3988
3967
  };
3989
- let Lt;
3990
- const Ie = Je({});
3991
- function ho(e) {
3992
- return Lt[e] || null;
3968
+ let Dt;
3969
+ const Ie = Ze({});
3970
+ function uo(e) {
3971
+ return Dt[e] || null;
3993
3972
  }
3994
- function tn(e) {
3995
- return e in Lt;
3973
+ function en(e) {
3974
+ return e in Dt;
3996
3975
  }
3997
- function co(e, t) {
3998
- if (!tn(e))
3976
+ function lo(e, t) {
3977
+ if (!en(e))
3999
3978
  return null;
4000
- const r = ho(e);
4001
- return uo(r, t);
3979
+ const r = uo(e);
3980
+ return ao(r, t);
4002
3981
  }
4003
- function fo(e) {
3982
+ function ho(e) {
4004
3983
  if (e == null)
4005
3984
  return;
4006
- const t = tt(e);
3985
+ const t = Ke(e);
4007
3986
  for (let r = 0; r < t.length; r++) {
4008
3987
  const n = t[r];
4009
- if (tn(n))
3988
+ if (en(n))
4010
3989
  return n;
4011
3990
  }
4012
3991
  }
4013
- function rn(e, ...t) {
3992
+ function tn(e, ...t) {
4014
3993
  delete ae[e], Ie.update((r) => (r[e] = bi.all([r[e] || {}, ...t]), r));
4015
3994
  }
4016
- Te(
3995
+ xe(
4017
3996
  [Ie],
4018
3997
  ([e]) => Object.keys(e)
4019
3998
  );
4020
- Ie.subscribe((e) => Lt = e);
3999
+ Ie.subscribe((e) => Dt = e);
4021
4000
  const We = {};
4022
- function mo(e, t) {
4001
+ function co(e, t) {
4023
4002
  We[e].delete(t), We[e].size === 0 && delete We[e];
4024
4003
  }
4025
- function nn(e) {
4004
+ function rn(e) {
4026
4005
  return We[e];
4027
4006
  }
4028
- function bo(e) {
4029
- return tt(e).map((t) => {
4030
- const r = nn(t);
4007
+ function fo(e) {
4008
+ return Ke(e).map((t) => {
4009
+ const r = rn(t);
4031
4010
  return [t, r ? [...r] : []];
4032
4011
  }).filter(([, t]) => t.length > 0);
4033
4012
  }
4034
- function Nt(e) {
4035
- return e == null ? !1 : tt(e).some(
4013
+ function At(e) {
4014
+ return e == null ? !1 : Ke(e).some(
4036
4015
  (t) => {
4037
4016
  var r;
4038
- return (r = nn(t)) == null ? void 0 : r.size;
4017
+ return (r = rn(t)) == null ? void 0 : r.size;
4039
4018
  }
4040
4019
  );
4041
4020
  }
4042
- function po(e, t) {
4021
+ function mo(e, t) {
4043
4022
  return Promise.all(
4044
- t.map((n) => (mo(e, n), n().then((i) => i.default || i)))
4045
- ).then((n) => rn(e, ...n));
4046
- }
4047
- const Ce = {};
4048
- function on(e) {
4049
- if (!Nt(e))
4050
- return e in Ce ? Ce[e] : Promise.resolve();
4051
- const t = bo(e);
4052
- return Ce[e] = Promise.all(
4023
+ t.map((n) => (co(e, n), n().then((i) => i.default || i)))
4024
+ ).then((n) => tn(e, ...n));
4025
+ }
4026
+ const Pe = {};
4027
+ function nn(e) {
4028
+ if (!At(e))
4029
+ return e in Pe ? Pe[e] : Promise.resolve();
4030
+ const t = fo(e);
4031
+ return Pe[e] = Promise.all(
4053
4032
  t.map(
4054
- ([r, n]) => po(r, n)
4033
+ ([r, n]) => mo(r, n)
4055
4034
  )
4056
4035
  ).then(() => {
4057
- if (Nt(e))
4058
- return on(e);
4059
- delete Ce[e];
4060
- }), Ce[e];
4036
+ if (At(e))
4037
+ return nn(e);
4038
+ delete Pe[e];
4039
+ }), Pe[e];
4061
4040
  }
4062
- const vo = {
4041
+ const bo = {
4063
4042
  number: {
4064
4043
  scientific: { notation: "scientific" },
4065
4044
  engineering: { notation: "engineering" },
@@ -4088,135 +4067,135 @@ const vo = {
4088
4067
  timeZoneName: "short"
4089
4068
  }
4090
4069
  }
4091
- }, go = {
4070
+ }, po = {
4092
4071
  fallbackLocale: null,
4093
4072
  loadingDelay: 200,
4094
- formats: vo,
4073
+ formats: bo,
4095
4074
  warnOnMissingMessages: !0,
4096
4075
  handleMissingMessage: void 0,
4097
4076
  ignoreTag: !0
4098
- }, yo = go;
4077
+ }, vo = po;
4099
4078
  function Ee() {
4100
- return yo;
4079
+ return vo;
4101
4080
  }
4102
- const pt = Je(!1);
4103
- var wo = Object.defineProperty, _o = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, hr = Object.getOwnPropertySymbols, To = Object.prototype.hasOwnProperty, xo = Object.prototype.propertyIsEnumerable, cr = (e, t, r) => t in e ? wo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bo = (e, t) => {
4081
+ const mt = Ze(!1);
4082
+ var go = Object.defineProperty, yo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, ur = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, lr = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Eo = (e, t) => {
4104
4083
  for (var r in t || (t = {}))
4105
- To.call(t, r) && cr(e, r, t[r]);
4106
- if (hr)
4107
- for (var r of hr(t))
4108
- xo.call(t, r) && cr(e, r, t[r]);
4084
+ _o.call(t, r) && lr(e, r, t[r]);
4085
+ if (ur)
4086
+ for (var r of ur(t))
4087
+ To.call(t, r) && lr(e, r, t[r]);
4109
4088
  return e;
4110
- }, So = (e, t) => _o(e, Eo(t));
4111
- let Dt;
4112
- const Ye = Je(null);
4113
- function fr(e) {
4089
+ }, xo = (e, t) => yo(e, wo(t));
4090
+ let Ht;
4091
+ const Ve = Ze(null);
4092
+ function hr(e) {
4114
4093
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4115
4094
  }
4116
- function tt(e, t = Ee().fallbackLocale) {
4117
- const r = fr(e);
4118
- return t ? [.../* @__PURE__ */ new Set([...r, ...fr(t)])] : r;
4095
+ function Ke(e, t = Ee().fallbackLocale) {
4096
+ const r = hr(e);
4097
+ return t ? [.../* @__PURE__ */ new Set([...r, ...hr(t)])] : r;
4119
4098
  }
4120
4099
  function fe() {
4121
- return Dt != null ? Dt : void 0;
4100
+ return Ht != null ? Ht : void 0;
4122
4101
  }
4123
- Ye.subscribe((e) => {
4124
- Dt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4102
+ Ve.subscribe((e) => {
4103
+ Ht = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4125
4104
  });
4126
- const Co = (e) => {
4127
- if (e && fo(e) && Nt(e)) {
4105
+ const Bo = (e) => {
4106
+ if (e && ho(e) && At(e)) {
4128
4107
  const { loadingDelay: t } = Ee();
4129
4108
  let r;
4130
4109
  return typeof window != "undefined" && fe() != null && t ? r = window.setTimeout(
4131
- () => pt.set(!0),
4110
+ () => mt.set(!0),
4132
4111
  t
4133
- ) : pt.set(!0), on(e).then(() => {
4134
- Ye.set(e);
4112
+ ) : mt.set(!0), nn(e).then(() => {
4113
+ Ve.set(e);
4135
4114
  }).finally(() => {
4136
- clearTimeout(r), pt.set(!1);
4115
+ clearTimeout(r), mt.set(!1);
4137
4116
  });
4138
4117
  }
4139
- return Ye.set(e);
4140
- }, xe = So(Bo({}, Ye), {
4141
- set: Co
4142
- }), rt = (e) => {
4118
+ return Ve.set(e);
4119
+ }, Be = xo(Eo({}, Ve), {
4120
+ set: Bo
4121
+ }), et = (e) => {
4143
4122
  const t = /* @__PURE__ */ Object.create(null);
4144
4123
  return (n) => {
4145
4124
  const i = JSON.stringify(n);
4146
4125
  return i in t ? t[i] : t[i] = e(n);
4147
4126
  };
4148
4127
  };
4149
- var Oo = Object.defineProperty, Xe = Object.getOwnPropertySymbols, an = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable, dr = (e, t, r) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ut = (e, t) => {
4128
+ var So = Object.defineProperty, Ye = Object.getOwnPropertySymbols, on = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable, cr = (e, t, r) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, It = (e, t) => {
4150
4129
  for (var r in t || (t = {}))
4151
- an.call(t, r) && dr(e, r, t[r]);
4152
- if (Xe)
4153
- for (var r of Xe(t))
4154
- sn.call(t, r) && dr(e, r, t[r]);
4130
+ on.call(t, r) && cr(e, r, t[r]);
4131
+ if (Ye)
4132
+ for (var r of Ye(t))
4133
+ an.call(t, r) && cr(e, r, t[r]);
4155
4134
  return e;
4156
- }, Be = (e, t) => {
4135
+ }, Se = (e, t) => {
4157
4136
  var r = {};
4158
4137
  for (var n in e)
4159
- an.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4160
- if (e != null && Xe)
4161
- for (var n of Xe(e))
4162
- t.indexOf(n) < 0 && sn.call(e, n) && (r[n] = e[n]);
4138
+ on.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4139
+ if (e != null && Ye)
4140
+ for (var n of Ye(e))
4141
+ t.indexOf(n) < 0 && an.call(e, n) && (r[n] = e[n]);
4163
4142
  return r;
4164
4143
  };
4165
- const Re = (e, t) => {
4144
+ const Ne = (e, t) => {
4166
4145
  const { formats: r } = Ee();
4167
4146
  if (e in r && t in r[e])
4168
4147
  return r[e][t];
4169
4148
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4170
- }, Po = rt(
4149
+ }, Co = et(
4171
4150
  (e) => {
4172
- var t = e, { locale: r, format: n } = t, i = Be(t, ["locale", "format"]);
4151
+ var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
4173
4152
  if (r == null)
4174
4153
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4175
- return n && (i = Re("number", n)), new Intl.NumberFormat(r, i);
4154
+ return n && (i = Ne("number", n)), new Intl.NumberFormat(r, i);
4176
4155
  }
4177
- ), Ao = rt(
4156
+ ), Po = et(
4178
4157
  (e) => {
4179
- var t = e, { locale: r, format: n } = t, i = Be(t, ["locale", "format"]);
4158
+ var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
4180
4159
  if (r == null)
4181
4160
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4182
- return n ? i = Re("date", n) : Object.keys(i).length === 0 && (i = Re("date", "short")), new Intl.DateTimeFormat(r, i);
4161
+ return n ? i = Ne("date", n) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(r, i);
4183
4162
  }
4184
- ), Ho = rt(
4163
+ ), Oo = et(
4185
4164
  (e) => {
4186
- var t = e, { locale: r, format: n } = t, i = Be(t, ["locale", "format"]);
4165
+ var t = e, { locale: r, format: n } = t, i = Se(t, ["locale", "format"]);
4187
4166
  if (r == null)
4188
4167
  throw new Error(
4189
4168
  '[svelte-i18n] A "locale" must be set to format time values'
4190
4169
  );
4191
- return n ? i = Re("time", n) : Object.keys(i).length === 0 && (i = Re("time", "short")), new Intl.DateTimeFormat(r, i);
4170
+ return n ? i = Ne("time", n) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(r, i);
4192
4171
  }
4193
- ), Mo = (e = {}) => {
4172
+ ), Ao = (e = {}) => {
4194
4173
  var t = e, {
4195
4174
  locale: r = fe()
4196
- } = t, n = Be(t, [
4175
+ } = t, n = Se(t, [
4197
4176
  "locale"
4198
4177
  ]);
4199
- return Po(Ut({ locale: r }, n));
4200
- }, Ro = (e = {}) => {
4178
+ return Co(It({ locale: r }, n));
4179
+ }, Ho = (e = {}) => {
4201
4180
  var t = e, {
4202
4181
  locale: r = fe()
4203
- } = t, n = Be(t, [
4182
+ } = t, n = Se(t, [
4204
4183
  "locale"
4205
4184
  ]);
4206
- return Ao(Ut({ locale: r }, n));
4207
- }, No = (e = {}) => {
4185
+ return Po(It({ locale: r }, n));
4186
+ }, Mo = (e = {}) => {
4208
4187
  var t = e, {
4209
4188
  locale: r = fe()
4210
- } = t, n = Be(t, [
4189
+ } = t, n = Se(t, [
4211
4190
  "locale"
4212
4191
  ]);
4213
- return Ho(Ut({ locale: r }, n));
4214
- }, Do = rt(
4192
+ return Oo(It({ locale: r }, n));
4193
+ }, Ro = et(
4215
4194
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4216
- (e, t = fe()) => new so(e, t, Ee().formats, {
4195
+ (e, t = fe()) => new oo(e, t, Ee().formats, {
4217
4196
  ignoreTag: Ee().ignoreTag
4218
4197
  })
4219
- ), Io = (e, t = {}) => {
4198
+ ), No = (e, t = {}) => {
4220
4199
  var r, n, i, o;
4221
4200
  let a = t;
4222
4201
  typeof e == "object" && (a = e, e = a.id);
@@ -4229,7 +4208,7 @@ const Re = (e, t) => {
4229
4208
  throw new Error(
4230
4209
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4231
4210
  );
4232
- let h = en(e, l);
4211
+ let h = Kr(e, l);
4233
4212
  if (!h)
4234
4213
  h = (o = (i = (n = (r = Ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4235
4214
  else if (typeof h != "string")
@@ -4240,7 +4219,7 @@ const Re = (e, t) => {
4240
4219
  return h;
4241
4220
  let f = h;
4242
4221
  try {
4243
- f = Do(h, l).format(s);
4222
+ f = Ro(h, l).format(s);
4244
4223
  } catch (c) {
4245
4224
  c instanceof Error && console.warn(
4246
4225
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4248,20 +4227,20 @@ const Re = (e, t) => {
4248
4227
  );
4249
4228
  }
4250
4229
  return f;
4251
- }, Lo = (e, t) => No(t).format(e), Uo = (e, t) => Ro(t).format(e), ko = (e, t) => Mo(t).format(e), $o = (e, t = fe()) => en(e, t), Fo = Te([xe, Ie], () => Io);
4252
- Te([xe], () => Lo);
4253
- Te([xe], () => Uo);
4254
- Te([xe], () => ko);
4255
- Te([xe, Ie], () => $o);
4230
+ }, Do = (e, t) => Mo(t).format(e), Io = (e, t) => Ho(t).format(e), Lo = (e, t) => Ao(t).format(e), Uo = (e, t = fe()) => Kr(e, t), ko = xe([Be, Ie], () => No);
4231
+ xe([Be], () => Do);
4232
+ xe([Be], () => Io);
4233
+ xe([Be], () => Lo);
4234
+ xe([Be, Ie], () => Uo);
4256
4235
  window.emWidgets = { topic: Jn };
4257
- const Go = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4258
- function mr(e, t) {
4259
- rn(e, t);
4236
+ const $o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4237
+ function fr(e, t) {
4238
+ tn(e, t);
4260
4239
  }
4261
- function jo(e) {
4262
- xe.set(e);
4240
+ function Fo(e) {
4241
+ Be.set(e);
4263
4242
  }
4264
- const br = {
4243
+ const dr = {
4265
4244
  en: {
4266
4245
  date: "Granted date:",
4267
4246
  bonusName: "Bonus Name",
@@ -4538,13 +4517,13 @@ const br = {
4538
4517
  oddsBoost: "Odds Boost"
4539
4518
  }
4540
4519
  };
4541
- function Wo(e, t) {
4520
+ function Go(e, t) {
4542
4521
  if (e) {
4543
4522
  const r = document.createElement("style");
4544
4523
  r.innerHTML = t, e.appendChild(r);
4545
4524
  }
4546
4525
  }
4547
- function Vo(e, t) {
4526
+ function jo(e, t) {
4548
4527
  const r = new URL(t);
4549
4528
  fetch(r.href).then((n) => n.text()).then((n) => {
4550
4529
  const i = document.createElement("style");
@@ -4553,7 +4532,7 @@ function Vo(e, t) {
4553
4532
  console.error("There was an error while trying to load client styling from URL", n);
4554
4533
  });
4555
4534
  }
4556
- function Yo(e, t, r) {
4535
+ function Wo(e, t, r) {
4557
4536
  if (window.emMessageBus) {
4558
4537
  const n = document.createElement("style");
4559
4538
  window.emMessageBus.subscribe(t, (i) => {
@@ -4561,13 +4540,13 @@ function Yo(e, t, r) {
4561
4540
  });
4562
4541
  }
4563
4542
  }
4564
- function qe(e) {
4543
+ function Xe(e) {
4565
4544
  "@babel/helpers - typeof";
4566
- return qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4545
+ return Xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4567
4546
  return typeof t;
4568
4547
  } : function(t) {
4569
4548
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4570
- }, qe(e);
4549
+ }, Xe(e);
4571
4550
  }
4572
4551
  function ce(e) {
4573
4552
  if (e === null || e === !0 || e === !1)
@@ -4579,110 +4558,110 @@ function G(e, t) {
4579
4558
  if (t.length < e)
4580
4559
  throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
4581
4560
  }
4582
- function ee(e) {
4561
+ function K(e) {
4583
4562
  G(1, arguments);
4584
4563
  var t = Object.prototype.toString.call(e);
4585
- return e instanceof Date || qe(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
4564
+ return e instanceof Date || Xe(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
4586
4565
  }
4587
- function Xo(e, t) {
4566
+ function Vo(e, t) {
4588
4567
  G(2, arguments);
4589
- var r = ee(e).getTime(), n = ce(t);
4568
+ var r = K(e).getTime(), n = ce(t);
4590
4569
  return new Date(r + n);
4591
4570
  }
4592
- var qo = {};
4593
- function nt() {
4594
- return qo;
4571
+ var Yo = {};
4572
+ function tt() {
4573
+ return Yo;
4595
4574
  }
4596
- function zo(e) {
4575
+ function Xo(e) {
4597
4576
  var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
4598
4577
  return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime();
4599
4578
  }
4600
- function Qo(e) {
4601
- return G(1, arguments), e instanceof Date || qe(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4579
+ function zo(e) {
4580
+ return G(1, arguments), e instanceof Date || Xe(e) === "object" && Object.prototype.toString.call(e) === "[object Date]";
4602
4581
  }
4603
- function Zo(e) {
4604
- if (G(1, arguments), !Qo(e) && typeof e != "number")
4582
+ function qo(e) {
4583
+ if (G(1, arguments), !zo(e) && typeof e != "number")
4605
4584
  return !1;
4606
- var t = ee(e);
4585
+ var t = K(e);
4607
4586
  return !isNaN(Number(t));
4608
4587
  }
4609
- function Jo(e, t) {
4588
+ function Qo(e, t) {
4610
4589
  G(2, arguments);
4611
4590
  var r = ce(t);
4612
- return Xo(e, -r);
4591
+ return Vo(e, -r);
4613
4592
  }
4614
- var Ko = 864e5;
4615
- function ea(e) {
4593
+ var Zo = 864e5;
4594
+ function Jo(e) {
4616
4595
  G(1, arguments);
4617
- var t = ee(e), r = t.getTime();
4596
+ var t = K(e), r = t.getTime();
4618
4597
  t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
4619
4598
  var n = t.getTime(), i = r - n;
4620
- return Math.floor(i / Ko) + 1;
4599
+ return Math.floor(i / Zo) + 1;
4621
4600
  }
4622
4601
  function ze(e) {
4623
4602
  G(1, arguments);
4624
- var t = 1, r = ee(e), n = r.getUTCDay(), i = (n < t ? 7 : 0) + n - t;
4603
+ var t = 1, r = K(e), n = r.getUTCDay(), i = (n < t ? 7 : 0) + n - t;
4625
4604
  return r.setUTCDate(r.getUTCDate() - i), r.setUTCHours(0, 0, 0, 0), r;
4626
4605
  }
4627
- function un(e) {
4606
+ function sn(e) {
4628
4607
  G(1, arguments);
4629
- var t = ee(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
4608
+ var t = K(e), r = t.getUTCFullYear(), n = /* @__PURE__ */ new Date(0);
4630
4609
  n.setUTCFullYear(r + 1, 0, 4), n.setUTCHours(0, 0, 0, 0);
4631
4610
  var i = ze(n), o = /* @__PURE__ */ new Date(0);
4632
4611
  o.setUTCFullYear(r, 0, 4), o.setUTCHours(0, 0, 0, 0);
4633
4612
  var a = ze(o);
4634
4613
  return t.getTime() >= i.getTime() ? r + 1 : t.getTime() >= a.getTime() ? r : r - 1;
4635
4614
  }
4636
- function ta(e) {
4615
+ function Ko(e) {
4637
4616
  G(1, arguments);
4638
- var t = un(e), r = /* @__PURE__ */ new Date(0);
4617
+ var t = sn(e), r = /* @__PURE__ */ new Date(0);
4639
4618
  r.setUTCFullYear(t, 0, 4), r.setUTCHours(0, 0, 0, 0);
4640
4619
  var n = ze(r);
4641
4620
  return n;
4642
4621
  }
4643
- var ra = 6048e5;
4644
- function na(e) {
4622
+ var ea = 6048e5;
4623
+ function ta(e) {
4645
4624
  G(1, arguments);
4646
- var t = ee(e), r = ze(t).getTime() - ta(t).getTime();
4647
- return Math.round(r / ra) + 1;
4625
+ var t = K(e), r = ze(t).getTime() - Ko(t).getTime();
4626
+ return Math.round(r / ea) + 1;
4648
4627
  }
4649
- function Qe(e, t) {
4628
+ function qe(e, t) {
4650
4629
  var r, n, i, o, a, s, l, u;
4651
4630
  G(1, arguments);
4652
- var h = nt(), f = ce((r = (n = (i = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : h.weekStartsOn) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : 0);
4631
+ var h = tt(), f = ce((r = (n = (i = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : h.weekStartsOn) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : 0);
4653
4632
  if (!(f >= 0 && f <= 6))
4654
4633
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4655
- var c = ee(e), d = c.getUTCDay(), p = (d < f ? 7 : 0) + d - f;
4634
+ var c = K(e), d = c.getUTCDay(), p = (d < f ? 7 : 0) + d - f;
4656
4635
  return c.setUTCDate(c.getUTCDate() - p), c.setUTCHours(0, 0, 0, 0), c;
4657
4636
  }
4658
- function ln(e, t) {
4637
+ function un(e, t) {
4659
4638
  var r, n, i, o, a, s, l, u;
4660
4639
  G(1, arguments);
4661
- var h = ee(e), f = h.getUTCFullYear(), c = nt(), d = ce((r = (n = (i = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : c.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
4640
+ var h = K(e), f = h.getUTCFullYear(), c = tt(), d = ce((r = (n = (i = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : c.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
4662
4641
  if (!(d >= 1 && d <= 7))
4663
4642
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4664
4643
  var p = /* @__PURE__ */ new Date(0);
4665
4644
  p.setUTCFullYear(f + 1, 0, d), p.setUTCHours(0, 0, 0, 0);
4666
- var v = Qe(p, t), B = /* @__PURE__ */ new Date(0);
4667
- B.setUTCFullYear(f, 0, d), B.setUTCHours(0, 0, 0, 0);
4668
- var L = Qe(B, t);
4645
+ var v = qe(p, t), S = /* @__PURE__ */ new Date(0);
4646
+ S.setUTCFullYear(f, 0, d), S.setUTCHours(0, 0, 0, 0);
4647
+ var L = qe(S, t);
4669
4648
  return h.getTime() >= v.getTime() ? f + 1 : h.getTime() >= L.getTime() ? f : f - 1;
4670
4649
  }
4671
- function ia(e, t) {
4650
+ function ra(e, t) {
4672
4651
  var r, n, i, o, a, s, l, u;
4673
4652
  G(1, arguments);
4674
- var h = nt(), f = ce((r = (n = (i = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : h.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1), c = ln(e, t), d = /* @__PURE__ */ new Date(0);
4653
+ var h = tt(), f = ce((r = (n = (i = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (a = t.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : h.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = h.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : 1), c = un(e, t), d = /* @__PURE__ */ new Date(0);
4675
4654
  d.setUTCFullYear(c, 0, f), d.setUTCHours(0, 0, 0, 0);
4676
- var p = Qe(d, t);
4655
+ var p = qe(d, t);
4677
4656
  return p;
4678
4657
  }
4679
- var oa = 6048e5;
4680
- function aa(e, t) {
4658
+ var na = 6048e5;
4659
+ function ia(e, t) {
4681
4660
  G(1, arguments);
4682
- var r = ee(e), n = Qe(r, t).getTime() - ia(r, t).getTime();
4683
- return Math.round(n / oa) + 1;
4661
+ var r = K(e), n = qe(r, t).getTime() - ra(r, t).getTime();
4662
+ return Math.round(n / na) + 1;
4684
4663
  }
4685
- function T(e, t) {
4664
+ function x(e, t) {
4686
4665
  for (var r = e < 0 ? "-" : "", n = Math.abs(e).toString(); n.length < t; )
4687
4666
  n = "0" + n;
4688
4667
  return r + n;
@@ -4691,16 +4670,16 @@ var oe = {
4691
4670
  // Year
4692
4671
  y: function(t, r) {
4693
4672
  var n = t.getUTCFullYear(), i = n > 0 ? n : 1 - n;
4694
- return T(r === "yy" ? i % 100 : i, r.length);
4673
+ return x(r === "yy" ? i % 100 : i, r.length);
4695
4674
  },
4696
4675
  // Month
4697
4676
  M: function(t, r) {
4698
4677
  var n = t.getUTCMonth();
4699
- return r === "M" ? String(n + 1) : T(n + 1, 2);
4678
+ return r === "M" ? String(n + 1) : x(n + 1, 2);
4700
4679
  },
4701
4680
  // Day of the month
4702
4681
  d: function(t, r) {
4703
- return T(t.getUTCDate(), r.length);
4682
+ return x(t.getUTCDate(), r.length);
4704
4683
  },
4705
4684
  // AM or PM
4706
4685
  a: function(t, r) {
@@ -4720,33 +4699,35 @@ var oe = {
4720
4699
  },
4721
4700
  // Hour [1-12]
4722
4701
  h: function(t, r) {
4723
- return T(t.getUTCHours() % 12 || 12, r.length);
4702
+ return x(t.getUTCHours() % 12 || 12, r.length);
4724
4703
  },
4725
4704
  // Hour [0-23]
4726
4705
  H: function(t, r) {
4727
- return T(t.getUTCHours(), r.length);
4706
+ return x(t.getUTCHours(), r.length);
4728
4707
  },
4729
4708
  // Minute
4730
4709
  m: function(t, r) {
4731
- return T(t.getUTCMinutes(), r.length);
4710
+ return x(t.getUTCMinutes(), r.length);
4732
4711
  },
4733
4712
  // Second
4734
4713
  s: function(t, r) {
4735
- return T(t.getUTCSeconds(), r.length);
4714
+ return x(t.getUTCSeconds(), r.length);
4736
4715
  },
4737
4716
  // Fraction of second
4738
4717
  S: function(t, r) {
4739
4718
  var n = r.length, i = t.getUTCMilliseconds(), o = Math.floor(i * Math.pow(10, n - 3));
4740
- return T(o, r.length);
4719
+ return x(o, r.length);
4741
4720
  }
4742
4721
  }, pe = {
4722
+ am: "am",
4723
+ pm: "pm",
4743
4724
  midnight: "midnight",
4744
4725
  noon: "noon",
4745
4726
  morning: "morning",
4746
4727
  afternoon: "afternoon",
4747
4728
  evening: "evening",
4748
4729
  night: "night"
4749
- }, sa = {
4730
+ }, oa = {
4750
4731
  // Era
4751
4732
  G: function(t, r, n) {
4752
4733
  var i = t.getUTCFullYear() > 0 ? 1 : 0;
@@ -4780,19 +4761,19 @@ var oe = {
4780
4761
  },
4781
4762
  // Local week-numbering year
4782
4763
  Y: function(t, r, n, i) {
4783
- var o = ln(t, i), a = o > 0 ? o : 1 - o;
4764
+ var o = un(t, i), a = o > 0 ? o : 1 - o;
4784
4765
  if (r === "YY") {
4785
4766
  var s = a % 100;
4786
- return T(s, 2);
4767
+ return x(s, 2);
4787
4768
  }
4788
4769
  return r === "Yo" ? n.ordinalNumber(a, {
4789
4770
  unit: "year"
4790
- }) : T(a, r.length);
4771
+ }) : x(a, r.length);
4791
4772
  },
4792
4773
  // ISO week-numbering year
4793
4774
  R: function(t, r) {
4794
- var n = un(t);
4795
- return T(n, r.length);
4775
+ var n = sn(t);
4776
+ return x(n, r.length);
4796
4777
  },
4797
4778
  // Extended year. This is a single number designating the year of this calendar system.
4798
4779
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -4805,7 +4786,7 @@ var oe = {
4805
4786
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
4806
4787
  u: function(t, r) {
4807
4788
  var n = t.getUTCFullYear();
4808
- return T(n, r.length);
4789
+ return x(n, r.length);
4809
4790
  },
4810
4791
  // Quarter
4811
4792
  Q: function(t, r, n) {
@@ -4814,7 +4795,7 @@ var oe = {
4814
4795
  case "Q":
4815
4796
  return String(i);
4816
4797
  case "QQ":
4817
- return T(i, 2);
4798
+ return x(i, 2);
4818
4799
  case "Qo":
4819
4800
  return n.ordinalNumber(i, {
4820
4801
  unit: "quarter"
@@ -4844,7 +4825,7 @@ var oe = {
4844
4825
  case "q":
4845
4826
  return String(i);
4846
4827
  case "qq":
4847
- return T(i, 2);
4828
+ return x(i, 2);
4848
4829
  case "qo":
4849
4830
  return n.ordinalNumber(i, {
4850
4831
  unit: "quarter"
@@ -4903,7 +4884,7 @@ var oe = {
4903
4884
  case "L":
4904
4885
  return String(i + 1);
4905
4886
  case "LL":
4906
- return T(i + 1, 2);
4887
+ return x(i + 1, 2);
4907
4888
  case "Lo":
4908
4889
  return n.ordinalNumber(i + 1, {
4909
4890
  unit: "month"
@@ -4928,17 +4909,17 @@ var oe = {
4928
4909
  },
4929
4910
  // Local week of year
4930
4911
  w: function(t, r, n, i) {
4931
- var o = aa(t, i);
4912
+ var o = ia(t, i);
4932
4913
  return r === "wo" ? n.ordinalNumber(o, {
4933
4914
  unit: "week"
4934
- }) : T(o, r.length);
4915
+ }) : x(o, r.length);
4935
4916
  },
4936
4917
  // ISO week of year
4937
4918
  I: function(t, r, n) {
4938
- var i = na(t);
4919
+ var i = ta(t);
4939
4920
  return r === "Io" ? n.ordinalNumber(i, {
4940
4921
  unit: "week"
4941
- }) : T(i, r.length);
4922
+ }) : x(i, r.length);
4942
4923
  },
4943
4924
  // Day of the month
4944
4925
  d: function(t, r, n) {
@@ -4948,10 +4929,10 @@ var oe = {
4948
4929
  },
4949
4930
  // Day of year
4950
4931
  D: function(t, r, n) {
4951
- var i = ea(t);
4932
+ var i = Jo(t);
4952
4933
  return r === "Do" ? n.ordinalNumber(i, {
4953
4934
  unit: "dayOfYear"
4954
- }) : T(i, r.length);
4935
+ }) : x(i, r.length);
4955
4936
  },
4956
4937
  // Day of week
4957
4938
  E: function(t, r, n) {
@@ -4989,7 +4970,7 @@ var oe = {
4989
4970
  case "e":
4990
4971
  return String(a);
4991
4972
  case "ee":
4992
- return T(a, 2);
4973
+ return x(a, 2);
4993
4974
  case "eo":
4994
4975
  return n.ordinalNumber(a, {
4995
4976
  unit: "day"
@@ -5024,7 +5005,7 @@ var oe = {
5024
5005
  case "c":
5025
5006
  return String(a);
5026
5007
  case "cc":
5027
- return T(a, r.length);
5008
+ return x(a, r.length);
5028
5009
  case "co":
5029
5010
  return n.ordinalNumber(a, {
5030
5011
  unit: "day"
@@ -5059,7 +5040,7 @@ var oe = {
5059
5040
  case "i":
5060
5041
  return String(o);
5061
5042
  case "ii":
5062
- return T(o, r.length);
5043
+ return x(o, r.length);
5063
5044
  case "io":
5064
5045
  return n.ordinalNumber(o, {
5065
5046
  unit: "day"
@@ -5188,14 +5169,14 @@ var oe = {
5188
5169
  var i = t.getUTCHours() % 12;
5189
5170
  return r === "Ko" ? n.ordinalNumber(i, {
5190
5171
  unit: "hour"
5191
- }) : T(i, r.length);
5172
+ }) : x(i, r.length);
5192
5173
  },
5193
5174
  // Hour [1-24]
5194
5175
  k: function(t, r, n) {
5195
5176
  var i = t.getUTCHours();
5196
5177
  return i === 0 && (i = 24), r === "ko" ? n.ordinalNumber(i, {
5197
5178
  unit: "hour"
5198
- }) : T(i, r.length);
5179
+ }) : x(i, r.length);
5199
5180
  },
5200
5181
  // Minute
5201
5182
  m: function(t, r, n) {
@@ -5220,7 +5201,7 @@ var oe = {
5220
5201
  return "Z";
5221
5202
  switch (r) {
5222
5203
  case "X":
5223
- return vr(a);
5204
+ return br(a);
5224
5205
  case "XXXX":
5225
5206
  case "XX":
5226
5207
  return he(a);
@@ -5235,7 +5216,7 @@ var oe = {
5235
5216
  var o = i._originalDate || t, a = o.getTimezoneOffset();
5236
5217
  switch (r) {
5237
5218
  case "x":
5238
- return vr(a);
5219
+ return br(a);
5239
5220
  case "xxxx":
5240
5221
  case "xx":
5241
5222
  return he(a);
@@ -5252,7 +5233,7 @@ var oe = {
5252
5233
  case "O":
5253
5234
  case "OO":
5254
5235
  case "OOO":
5255
- return "GMT" + pr(a, ":");
5236
+ return "GMT" + mr(a, ":");
5256
5237
  case "OOOO":
5257
5238
  default:
5258
5239
  return "GMT" + he(a, ":");
@@ -5265,7 +5246,7 @@ var oe = {
5265
5246
  case "z":
5266
5247
  case "zz":
5267
5248
  case "zzz":
5268
- return "GMT" + pr(a, ":");
5249
+ return "GMT" + mr(a, ":");
5269
5250
  case "zzzz":
5270
5251
  default:
5271
5252
  return "GMT" + he(a, ":");
@@ -5274,33 +5255,33 @@ var oe = {
5274
5255
  // Seconds timestamp
5275
5256
  t: function(t, r, n, i) {
5276
5257
  var o = i._originalDate || t, a = Math.floor(o.getTime() / 1e3);
5277
- return T(a, r.length);
5258
+ return x(a, r.length);
5278
5259
  },
5279
5260
  // Milliseconds timestamp
5280
5261
  T: function(t, r, n, i) {
5281
5262
  var o = i._originalDate || t, a = o.getTime();
5282
- return T(a, r.length);
5263
+ return x(a, r.length);
5283
5264
  }
5284
5265
  };
5285
- function pr(e, t) {
5266
+ function mr(e, t) {
5286
5267
  var r = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.floor(n / 60), o = n % 60;
5287
5268
  if (o === 0)
5288
5269
  return r + String(i);
5289
5270
  var a = t;
5290
- return r + String(i) + a + T(o, 2);
5271
+ return r + String(i) + a + x(o, 2);
5291
5272
  }
5292
- function vr(e, t) {
5273
+ function br(e, t) {
5293
5274
  if (e % 60 === 0) {
5294
5275
  var r = e > 0 ? "-" : "+";
5295
- return r + T(Math.abs(e) / 60, 2);
5276
+ return r + x(Math.abs(e) / 60, 2);
5296
5277
  }
5297
5278
  return he(e, t);
5298
5279
  }
5299
5280
  function he(e, t) {
5300
- var r = t || "", n = e > 0 ? "-" : "+", i = Math.abs(e), o = T(Math.floor(i / 60), 2), a = T(i % 60, 2);
5281
+ var r = t || "", n = e > 0 ? "-" : "+", i = Math.abs(e), o = x(Math.floor(i / 60), 2), a = x(i % 60, 2);
5301
5282
  return n + o + r + a;
5302
5283
  }
5303
- var gr = function(t, r) {
5284
+ var pr = function(t, r) {
5304
5285
  switch (t) {
5305
5286
  case "P":
5306
5287
  return r.date({
@@ -5320,7 +5301,7 @@ var gr = function(t, r) {
5320
5301
  width: "full"
5321
5302
  });
5322
5303
  }
5323
- }, hn = function(t, r) {
5304
+ }, ln = function(t, r) {
5324
5305
  switch (t) {
5325
5306
  case "p":
5326
5307
  return r.time({
@@ -5340,10 +5321,10 @@ var gr = function(t, r) {
5340
5321
  width: "full"
5341
5322
  });
5342
5323
  }
5343
- }, ua = function(t, r) {
5324
+ }, aa = function(t, r) {
5344
5325
  var n = t.match(/(P+)(p+)?/) || [], i = n[1], o = n[2];
5345
5326
  if (!o)
5346
- return gr(t, r);
5327
+ return pr(t, r);
5347
5328
  var a;
5348
5329
  switch (i) {
5349
5330
  case "P":
@@ -5368,18 +5349,18 @@ var gr = function(t, r) {
5368
5349
  });
5369
5350
  break;
5370
5351
  }
5371
- return a.replace("{{date}}", gr(i, r)).replace("{{time}}", hn(o, r));
5372
- }, la = {
5373
- p: hn,
5374
- P: ua
5375
- }, ha = ["D", "DD"], ca = ["YY", "YYYY"];
5376
- function fa(e) {
5377
- return ha.indexOf(e) !== -1;
5378
- }
5379
- function da(e) {
5380
- return ca.indexOf(e) !== -1;
5381
- }
5382
- function yr(e, t, r) {
5352
+ return a.replace("{{date}}", pr(i, r)).replace("{{time}}", ln(o, r));
5353
+ }, sa = {
5354
+ p: ln,
5355
+ P: aa
5356
+ }, ua = ["D", "DD"], la = ["YY", "YYYY"];
5357
+ function ha(e) {
5358
+ return ua.indexOf(e) !== -1;
5359
+ }
5360
+ function ca(e) {
5361
+ return la.indexOf(e) !== -1;
5362
+ }
5363
+ function vr(e, t, r) {
5383
5364
  if (e === "YYYY")
5384
5365
  throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
5385
5366
  if (e === "YY")
@@ -5389,7 +5370,7 @@ function yr(e, t, r) {
5389
5370
  if (e === "DD")
5390
5371
  throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
5391
5372
  }
5392
- var ma = {
5373
+ var fa = {
5393
5374
  lessThanXSeconds: {
5394
5375
  one: "less than a second",
5395
5376
  other: "less than {{count}} seconds"
@@ -5451,53 +5432,53 @@ var ma = {
5451
5432
  one: "almost 1 year",
5452
5433
  other: "almost {{count}} years"
5453
5434
  }
5454
- }, ba = function(t, r, n) {
5455
- var i, o = ma[t];
5435
+ }, da = function(t, r, n) {
5436
+ var i, o = fa[t];
5456
5437
  return typeof o == "string" ? i = o : r === 1 ? i = o.one : i = o.other.replace("{{count}}", r.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + i : i + " ago" : i;
5457
5438
  };
5458
- function vt(e) {
5439
+ function bt(e) {
5459
5440
  return function() {
5460
5441
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = t.width ? String(t.width) : e.defaultWidth, n = e.formats[r] || e.formats[e.defaultWidth];
5461
5442
  return n;
5462
5443
  };
5463
5444
  }
5464
- var pa = {
5445
+ var ma = {
5465
5446
  full: "EEEE, MMMM do, y",
5466
5447
  long: "MMMM do, y",
5467
5448
  medium: "MMM d, y",
5468
5449
  short: "MM/dd/yyyy"
5469
- }, va = {
5450
+ }, ba = {
5470
5451
  full: "h:mm:ss a zzzz",
5471
5452
  long: "h:mm:ss a z",
5472
5453
  medium: "h:mm:ss a",
5473
5454
  short: "h:mm a"
5474
- }, ga = {
5455
+ }, pa = {
5475
5456
  full: "{{date}} 'at' {{time}}",
5476
5457
  long: "{{date}} 'at' {{time}}",
5477
5458
  medium: "{{date}}, {{time}}",
5478
5459
  short: "{{date}}, {{time}}"
5479
- }, ya = {
5480
- date: vt({
5481
- formats: pa,
5460
+ }, va = {
5461
+ date: bt({
5462
+ formats: ma,
5482
5463
  defaultWidth: "full"
5483
5464
  }),
5484
- time: vt({
5485
- formats: va,
5465
+ time: bt({
5466
+ formats: ba,
5486
5467
  defaultWidth: "full"
5487
5468
  }),
5488
- dateTime: vt({
5489
- formats: ga,
5469
+ dateTime: bt({
5470
+ formats: pa,
5490
5471
  defaultWidth: "full"
5491
5472
  })
5492
- }, wa = {
5473
+ }, ga = {
5493
5474
  lastWeek: "'last' eeee 'at' p",
5494
5475
  yesterday: "'yesterday at' p",
5495
5476
  today: "'today at' p",
5496
5477
  tomorrow: "'tomorrow at' p",
5497
5478
  nextWeek: "eeee 'at' p",
5498
5479
  other: "P"
5499
- }, _a = function(t, r, n, i) {
5500
- return wa[t];
5480
+ }, ya = function(t, r, n, i) {
5481
+ return ga[t];
5501
5482
  };
5502
5483
  function Oe(e) {
5503
5484
  return function(t, r) {
@@ -5513,24 +5494,24 @@ function Oe(e) {
5513
5494
  return i[u];
5514
5495
  };
5515
5496
  }
5516
- var Ea = {
5497
+ var wa = {
5517
5498
  narrow: ["B", "A"],
5518
5499
  abbreviated: ["BC", "AD"],
5519
5500
  wide: ["Before Christ", "Anno Domini"]
5520
- }, Ta = {
5501
+ }, _a = {
5521
5502
  narrow: ["1", "2", "3", "4"],
5522
5503
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
5523
5504
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
5524
- }, xa = {
5505
+ }, Ta = {
5525
5506
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
5526
5507
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
5527
5508
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
5528
- }, Ba = {
5509
+ }, Ea = {
5529
5510
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
5530
5511
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
5531
5512
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
5532
5513
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
5533
- }, Sa = {
5514
+ }, xa = {
5534
5515
  narrow: {
5535
5516
  am: "a",
5536
5517
  pm: "p",
@@ -5561,7 +5542,7 @@ var Ea = {
5561
5542
  evening: "evening",
5562
5543
  night: "night"
5563
5544
  }
5564
- }, Ca = {
5545
+ }, Ba = {
5565
5546
  narrow: {
5566
5547
  am: "a",
5567
5548
  pm: "p",
@@ -5592,7 +5573,7 @@ var Ea = {
5592
5573
  evening: "in the evening",
5593
5574
  night: "at night"
5594
5575
  }
5595
- }, Oa = function(t, r) {
5576
+ }, Sa = function(t, r) {
5596
5577
  var n = Number(t), i = n % 100;
5597
5578
  if (i > 20 || i < 10)
5598
5579
  switch (i % 10) {
@@ -5604,42 +5585,42 @@ var Ea = {
5604
5585
  return n + "rd";
5605
5586
  }
5606
5587
  return n + "th";
5607
- }, Pa = {
5608
- ordinalNumber: Oa,
5588
+ }, Ca = {
5589
+ ordinalNumber: Sa,
5609
5590
  era: Oe({
5610
- values: Ea,
5591
+ values: wa,
5611
5592
  defaultWidth: "wide"
5612
5593
  }),
5613
5594
  quarter: Oe({
5614
- values: Ta,
5595
+ values: _a,
5615
5596
  defaultWidth: "wide",
5616
5597
  argumentCallback: function(t) {
5617
5598
  return t - 1;
5618
5599
  }
5619
5600
  }),
5620
5601
  month: Oe({
5621
- values: xa,
5602
+ values: Ta,
5622
5603
  defaultWidth: "wide"
5623
5604
  }),
5624
5605
  day: Oe({
5625
- values: Ba,
5606
+ values: Ea,
5626
5607
  defaultWidth: "wide"
5627
5608
  }),
5628
5609
  dayPeriod: Oe({
5629
- values: Sa,
5610
+ values: xa,
5630
5611
  defaultWidth: "wide",
5631
- formattingValues: Ca,
5612
+ formattingValues: Ba,
5632
5613
  defaultFormattingWidth: "wide"
5633
5614
  })
5634
5615
  };
5635
- function Pe(e) {
5616
+ function Ae(e) {
5636
5617
  return function(t) {
5637
5618
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
5638
5619
  if (!o)
5639
5620
  return null;
5640
- var a = o[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Ha(s, function(f) {
5621
+ var a = o[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Oa(s, function(f) {
5641
5622
  return f.test(a);
5642
- }) : Aa(s, function(f) {
5623
+ }) : Pa(s, function(f) {
5643
5624
  return f.test(a);
5644
5625
  }), u;
5645
5626
  u = e.valueCallback ? e.valueCallback(l) : l, u = r.valueCallback ? r.valueCallback(u) : u;
@@ -5650,17 +5631,17 @@ function Pe(e) {
5650
5631
  };
5651
5632
  };
5652
5633
  }
5653
- function Aa(e, t) {
5634
+ function Pa(e, t) {
5654
5635
  for (var r in e)
5655
5636
  if (e.hasOwnProperty(r) && t(e[r]))
5656
5637
  return r;
5657
5638
  }
5658
- function Ha(e, t) {
5639
+ function Oa(e, t) {
5659
5640
  for (var r = 0; r < e.length; r++)
5660
5641
  if (t(e[r]))
5661
5642
  return r;
5662
5643
  }
5663
- function Ma(e) {
5644
+ function Aa(e) {
5664
5645
  return function(t) {
5665
5646
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
5666
5647
  if (!n)
@@ -5677,37 +5658,37 @@ function Ma(e) {
5677
5658
  };
5678
5659
  };
5679
5660
  }
5680
- var Ra = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Da = {
5661
+ var Ha = /^(\d+)(th|st|nd|rd)?/i, Ma = /\d+/i, Ra = {
5681
5662
  narrow: /^(b|a)/i,
5682
5663
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
5683
5664
  wide: /^(before christ|before common era|anno domini|common era)/i
5684
- }, Ia = {
5665
+ }, Na = {
5685
5666
  any: [/^b/i, /^(a|c)/i]
5686
- }, La = {
5667
+ }, Da = {
5687
5668
  narrow: /^[1234]/i,
5688
5669
  abbreviated: /^q[1234]/i,
5689
5670
  wide: /^[1234](th|st|nd|rd)? quarter/i
5690
- }, Ua = {
5671
+ }, Ia = {
5691
5672
  any: [/1/i, /2/i, /3/i, /4/i]
5692
- }, ka = {
5673
+ }, La = {
5693
5674
  narrow: /^[jfmasond]/i,
5694
5675
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
5695
5676
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
5696
- }, $a = {
5677
+ }, Ua = {
5697
5678
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
5698
5679
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
5699
- }, Fa = {
5680
+ }, ka = {
5700
5681
  narrow: /^[smtwf]/i,
5701
5682
  short: /^(su|mo|tu|we|th|fr|sa)/i,
5702
5683
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
5703
5684
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
5704
- }, Ga = {
5685
+ }, $a = {
5705
5686
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
5706
5687
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
5707
- }, ja = {
5688
+ }, Fa = {
5708
5689
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
5709
5690
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
5710
- }, Wa = {
5691
+ }, Ga = {
5711
5692
  any: {
5712
5693
  am: /^a/i,
5713
5694
  pm: /^p/i,
@@ -5718,114 +5699,114 @@ var Ra = /^(\d+)(th|st|nd|rd)?/i, Na = /\d+/i, Da = {
5718
5699
  evening: /evening/i,
5719
5700
  night: /night/i
5720
5701
  }
5721
- }, Va = {
5722
- ordinalNumber: Ma({
5723
- matchPattern: Ra,
5724
- parsePattern: Na,
5702
+ }, ja = {
5703
+ ordinalNumber: Aa({
5704
+ matchPattern: Ha,
5705
+ parsePattern: Ma,
5725
5706
  valueCallback: function(t) {
5726
5707
  return parseInt(t, 10);
5727
5708
  }
5728
5709
  }),
5729
- era: Pe({
5730
- matchPatterns: Da,
5710
+ era: Ae({
5711
+ matchPatterns: Ra,
5731
5712
  defaultMatchWidth: "wide",
5732
- parsePatterns: Ia,
5713
+ parsePatterns: Na,
5733
5714
  defaultParseWidth: "any"
5734
5715
  }),
5735
- quarter: Pe({
5736
- matchPatterns: La,
5716
+ quarter: Ae({
5717
+ matchPatterns: Da,
5737
5718
  defaultMatchWidth: "wide",
5738
- parsePatterns: Ua,
5719
+ parsePatterns: Ia,
5739
5720
  defaultParseWidth: "any",
5740
5721
  valueCallback: function(t) {
5741
5722
  return t + 1;
5742
5723
  }
5743
5724
  }),
5744
- month: Pe({
5745
- matchPatterns: ka,
5725
+ month: Ae({
5726
+ matchPatterns: La,
5746
5727
  defaultMatchWidth: "wide",
5747
- parsePatterns: $a,
5728
+ parsePatterns: Ua,
5748
5729
  defaultParseWidth: "any"
5749
5730
  }),
5750
- day: Pe({
5751
- matchPatterns: Fa,
5731
+ day: Ae({
5732
+ matchPatterns: ka,
5752
5733
  defaultMatchWidth: "wide",
5753
- parsePatterns: Ga,
5734
+ parsePatterns: $a,
5754
5735
  defaultParseWidth: "any"
5755
5736
  }),
5756
- dayPeriod: Pe({
5757
- matchPatterns: ja,
5737
+ dayPeriod: Ae({
5738
+ matchPatterns: Fa,
5758
5739
  defaultMatchWidth: "any",
5759
- parsePatterns: Wa,
5740
+ parsePatterns: Ga,
5760
5741
  defaultParseWidth: "any"
5761
5742
  })
5762
- }, Ya = {
5743
+ }, Wa = {
5763
5744
  code: "en-US",
5764
- formatDistance: ba,
5765
- formatLong: ya,
5766
- formatRelative: _a,
5767
- localize: Pa,
5768
- match: Va,
5745
+ formatDistance: da,
5746
+ formatLong: va,
5747
+ formatRelative: ya,
5748
+ localize: Ca,
5749
+ match: ja,
5769
5750
  options: {
5770
5751
  weekStartsOn: 0,
5771
5752
  firstWeekContainsDate: 1
5772
5753
  }
5773
- }, Xa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, qa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, za = /^'([^]*?)'?$/, Qa = /''/g, Za = /[a-zA-Z]/;
5774
- function wr(e, t, r) {
5775
- var n, i, o, a, s, l, u, h, f, c, d, p, v, B;
5754
+ }, Va = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ya = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xa = /^'([^]*?)'?$/, za = /''/g, qa = /[a-zA-Z]/;
5755
+ function gr(e, t, r) {
5756
+ var n, i, o, a, s, l, u, h, f, c, d, p, v, S;
5776
5757
  G(2, arguments);
5777
- var L = String(t), O = nt(), E = (n = (i = void 0) !== null && i !== void 0 ? i : O.locale) !== null && n !== void 0 ? n : Ya, U = ce((o = (a = (s = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && s !== void 0 ? s : O.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = O.locale) === null || u === void 0 || (h = u.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
5758
+ var L = String(t), P = tt(), E = (n = (i = void 0) !== null && i !== void 0 ? i : P.locale) !== null && n !== void 0 ? n : Wa, U = ce((o = (a = (s = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && s !== void 0 ? s : P.firstWeekContainsDate) !== null && a !== void 0 ? a : (u = P.locale) === null || u === void 0 || (h = u.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
5778
5759
  if (!(U >= 1 && U <= 7))
5779
5760
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
5780
- var A = ce((f = (c = (d = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && d !== void 0 ? d : O.weekStartsOn) !== null && c !== void 0 ? c : (v = O.locale) === null || v === void 0 || (B = v.options) === null || B === void 0 ? void 0 : B.weekStartsOn) !== null && f !== void 0 ? f : 0);
5761
+ var A = ce((f = (c = (d = (p = void 0) !== null && p !== void 0 ? p : void 0) !== null && d !== void 0 ? d : P.weekStartsOn) !== null && c !== void 0 ? c : (v = P.locale) === null || v === void 0 || (S = v.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && f !== void 0 ? f : 0);
5781
5762
  if (!(A >= 0 && A <= 6))
5782
5763
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
5783
5764
  if (!E.localize)
5784
5765
  throw new RangeError("locale must contain localize property");
5785
5766
  if (!E.formatLong)
5786
5767
  throw new RangeError("locale must contain formatLong property");
5787
- var $ = ee(e);
5788
- if (!Zo($))
5768
+ var $ = K(e);
5769
+ if (!qo($))
5789
5770
  throw new RangeError("Invalid time value");
5790
- var k = zo($), ie = Jo($, k), ue = {
5771
+ var k = Xo($), ie = Qo($, k), ue = {
5791
5772
  firstWeekContainsDate: U,
5792
5773
  weekStartsOn: A,
5793
5774
  locale: E,
5794
5775
  _originalDate: $
5795
- }, te = L.match(qa).map(function(H) {
5776
+ }, ee = L.match(Ya).map(function(H) {
5796
5777
  var N = H[0];
5797
5778
  if (N === "p" || N === "P") {
5798
- var Q = la[N];
5779
+ var Q = sa[N];
5799
5780
  return Q(H, E.formatLong);
5800
5781
  }
5801
5782
  return H;
5802
- }).join("").match(Xa).map(function(H) {
5783
+ }).join("").match(Va).map(function(H) {
5803
5784
  if (H === "''")
5804
5785
  return "'";
5805
5786
  var N = H[0];
5806
5787
  if (N === "'")
5807
- return Ja(H);
5808
- var Q = sa[N];
5788
+ return Qa(H);
5789
+ var Q = oa[N];
5809
5790
  if (Q)
5810
- return da(H) && yr(H, t, String(e)), fa(H) && yr(H, t, String(e)), Q(ie, H, E.localize, ue);
5811
- if (N.match(Za))
5791
+ return ca(H) && vr(H, t, String(e)), ha(H) && vr(H, t, String(e)), Q(ie, H, E.localize, ue);
5792
+ if (N.match(qa))
5812
5793
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + N + "`");
5813
5794
  return H;
5814
5795
  }).join("");
5815
- return te;
5796
+ return ee;
5816
5797
  }
5817
- function Ja(e) {
5818
- var t = e.match(za);
5819
- return t ? t[1].replace(Qa, "'") : e;
5798
+ function Qa(e) {
5799
+ var t = e.match(Xa);
5800
+ return t ? t[1].replace(za, "'") : e;
5820
5801
  }
5821
- function Ka(e) {
5822
- gn(e, "svelte-15xuos2", ".ButtonTermsAndConditions{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-decoration:underline;margin:10px 0;cursor:pointer}.BonusImage{width:100%;max-height:200px;border-radius:var(--emw--border-radius-small, 5px)}.BonusCard{background-color:var(--emw--color-white, #FFFFFF);padding:10px 20px 20px;border-radius:var(--emw--border-radius-large, 10px);box-shadow:0px 5px 12px 5px var(--emw--color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:var(--emw--font-size-small, 14px)}.BonusCardRow .BonusCardRowTitle{color:var(--emw--color-typography-cotrast, #444444);font-weight:var(--emw--font-weight-bold, 700)}.BonusCardRow .BonusCardRowTitle span{font-weight:var(--emw--font-weigh-normal, 400);color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-typography-cotrast, #444444)}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emw--color-valid, #48952a)}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emw--color-error, #FD2839)}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emw--color-gray-50, #F9F8F8);border-radius:var(--emw--border-radius-small, 5px)}.DeleteBonus{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:var(--emw--border-radius-small, 5px);width:50%;height:44px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCardRowRemovePadding{padding:0}");
5802
+ function Za(e) {
5803
+ vn(e, "svelte-15xuos2", ".ButtonTermsAndConditions{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-decoration:underline;margin:10px 0;cursor:pointer}.BonusImage{width:100%;max-height:200px;border-radius:var(--emw--border-radius-small, 5px)}.BonusCard{background-color:var(--emw--color-white, #FFFFFF);padding:10px 20px 20px;border-radius:var(--emw--border-radius-large, 10px);box-shadow:0px 5px 12px 5px var(--emw--color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:var(--emw--font-size-small, 14px)}.BonusCardRow .BonusCardRowTitle{color:var(--emw--color-typography-cotrast, #444444);font-weight:var(--emw--font-weight-bold, 700)}.BonusCardRow .BonusCardRowTitle span{font-weight:var(--emw--font-weigh-normal, 400);color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-typography-cotrast, #444444)}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emw--color-valid, #48952a)}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emw--color-error, #FD2839)}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emw--color-gray-50, #F9F8F8);border-radius:var(--emw--border-radius-small, 5px)}.DeleteBonus{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:var(--emw--border-radius-small, 5px);width:50%;height:44px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCardRowRemovePadding{padding:0}");
5823
5804
  }
5824
- function _r(e) {
5805
+ function yr(e) {
5825
5806
  let t, r, n;
5826
5807
  return {
5827
5808
  c() {
5828
- t = x("div"), r = x("img"), g(r, "class", "BonusImage"), Yt(r.src, n = /*termsandconditionsasset*/
5809
+ t = B("div"), r = B("img"), g(r, "class", "BonusImage"), Wt(r.src, n = /*termsandconditionsasset*/
5829
5810
  e[9]) || g(r, "src", n), g(
5830
5811
  r,
5831
5812
  "alt",
@@ -5838,7 +5819,7 @@ function _r(e) {
5838
5819
  },
5839
5820
  p(i, o) {
5840
5821
  o & /*termsandconditionsasset*/
5841
- 512 && !Yt(r.src, n = /*termsandconditionsasset*/
5822
+ 512 && !Wt(r.src, n = /*termsandconditionsasset*/
5842
5823
  i[9]) && g(r, "src", n), o & /*termsandconditionsdescription*/
5843
5824
  1024 && g(
5844
5825
  r,
@@ -5848,11 +5829,11 @@ function _r(e) {
5848
5829
  );
5849
5830
  },
5850
5831
  d(i) {
5851
- i && ne(t);
5832
+ i && re(t);
5852
5833
  }
5853
5834
  };
5854
5835
  }
5855
- function Er(e) {
5836
+ function wr(e) {
5856
5837
  let t, r, n = (
5857
5838
  /*$_*/
5858
5839
  e[16]("bonusAmount") + ""
@@ -5865,7 +5846,7 @@ function Er(e) {
5865
5846
  ), h, f;
5866
5847
  return {
5867
5848
  c() {
5868
- t = x("div"), r = x("p"), i = R(n), o = D(), a = x("p"), s = R(
5849
+ t = B("div"), r = B("p"), i = R(n), o = D(), a = B("p"), s = R(
5869
5850
  /*bonusamount*/
5870
5851
  e[4]
5871
5852
  ), l = D(), h = R(u), g(r, "class", "BonusCardRowTitle"), g(a, "class", "BonusCardRowText"), g(t, "class", f = `BonusCardRow ${/*$_*/
@@ -5892,11 +5873,11 @@ function Er(e) {
5892
5873
  c[16]("bonusAmount")}`) && g(t, "class", f);
5893
5874
  },
5894
5875
  d(c) {
5895
- c && ne(t);
5876
+ c && re(t);
5896
5877
  }
5897
5878
  };
5898
5879
  }
5899
- function Tr(e) {
5880
+ function _r(e) {
5900
5881
  let t, r, n = (
5901
5882
  /*$_*/
5902
5883
  e[16]("wageringAmount") + ""
@@ -5909,7 +5890,7 @@ function Tr(e) {
5909
5890
  ), h, f;
5910
5891
  return {
5911
5892
  c() {
5912
- t = x("div"), r = x("p"), i = R(n), o = D(), a = x("p"), s = R(
5893
+ t = B("div"), r = B("p"), i = R(n), o = D(), a = B("p"), s = R(
5913
5894
  /*bonuswageringamount*/
5914
5895
  e[5]
5915
5896
  ), l = D(), h = R(u), g(r, "class", "BonusCardRowTitle"), g(a, "class", "BonusCardRowText"), g(t, "class", f = `BonusCardRow ${/*$_*/
@@ -5938,11 +5919,11 @@ function Tr(e) {
5938
5919
  c[3]}`) && g(t, "class", f);
5939
5920
  },
5940
5921
  d(c) {
5941
- c && ne(t);
5922
+ c && re(t);
5942
5923
  }
5943
5924
  };
5944
5925
  }
5945
- function xr(e) {
5926
+ function Tr(e) {
5946
5927
  let t, r, n = (
5947
5928
  /*$_*/
5948
5929
  e[16]("remainingBonus") + ""
@@ -5955,7 +5936,7 @@ function xr(e) {
5955
5936
  ), h, f;
5956
5937
  return {
5957
5938
  c() {
5958
- t = x("div"), r = x("p"), i = R(n), o = D(), a = x("p"), s = R(
5939
+ t = B("div"), r = B("p"), i = R(n), o = D(), a = B("p"), s = R(
5959
5940
  /*bonusremainingamount*/
5960
5941
  e[6]
5961
5942
  ), l = D(), h = R(u), g(r, "class", "BonusCardRowTitle"), g(a, "class", "BonusCardRowText"), g(t, "class", f = `BonusCardRow ${/*$_*/
@@ -5982,18 +5963,18 @@ function xr(e) {
5982
5963
  c[16]("remainingBonus")}`) && g(t, "class", f);
5983
5964
  },
5984
5965
  d(c) {
5985
- c && ne(t);
5966
+ c && re(t);
5986
5967
  }
5987
5968
  };
5988
5969
  }
5989
- function Br(e) {
5970
+ function Er(e) {
5990
5971
  let t, r, n = (
5991
5972
  /*$_*/
5992
5973
  e[16]("termsConditionsLink") + ""
5993
5974
  ), i, o;
5994
5975
  return {
5995
5976
  c() {
5996
- t = x("div"), r = x("a"), i = R(n), g(r, "class", "ButtonTermsAndConditions"), g(
5977
+ t = B("div"), r = B("a"), i = R(n), g(r, "class", "ButtonTermsAndConditions"), g(
5997
5978
  r,
5998
5979
  "href",
5999
5980
  /*termsandconditionsurl*/
@@ -6018,22 +5999,22 @@ function Br(e) {
6018
5999
  a[16]("termsConditionsLink")}`) && g(t, "class", o);
6019
6000
  },
6020
6001
  d(a) {
6021
- a && ne(t);
6002
+ a && re(t);
6022
6003
  }
6023
6004
  };
6024
6005
  }
6025
- function Sr(e) {
6006
+ function xr(e) {
6026
6007
  let t, r = (
6027
6008
  /*$_*/
6028
6009
  e[16]("forfeitBonusButton") + ""
6029
6010
  ), n, i, o;
6030
6011
  return {
6031
6012
  c() {
6032
- t = x("button"), n = R(r), g(t, "class", "DeleteBonus " + /*isMobile*/
6013
+ t = B("button"), n = R(r), g(t, "class", "DeleteBonus " + /*isMobile*/
6033
6014
  (e[17] ? "DeleteBonusMobile" : ""));
6034
6015
  },
6035
6016
  m(a, s) {
6036
- se(a, t, s), m(t, n), i || (o = _n(
6017
+ se(a, t, s), m(t, n), i || (o = wn(
6037
6018
  t,
6038
6019
  "click",
6039
6020
  /*deleteBonus*/
@@ -6046,15 +6027,15 @@ function Sr(e) {
6046
6027
  a[16]("forfeitBonusButton") + "") && I(n, r);
6047
6028
  },
6048
6029
  d(a) {
6049
- a && ne(t), i = !1, o();
6030
+ a && re(t), i = !1, o();
6050
6031
  }
6051
6032
  };
6052
6033
  }
6053
- function es(e) {
6034
+ function Ja(e) {
6054
6035
  let t, r, n, i, o = (
6055
6036
  /*$_*/
6056
6037
  e[16]("date") + ""
6057
- ), a, s, l, u = wr(new Date(
6038
+ ), a, s, l, u = gr(new Date(
6058
6039
  /*bonusdate*/
6059
6040
  e[0]
6060
6041
  ), `${/*dateformat*/
@@ -6065,57 +6046,57 @@ function es(e) {
6065
6046
  /*$_*/
6066
6047
  e[16](`${/*bonusstatus*/
6067
6048
  e[1]}`) + ""
6068
- ), p, v, B, L, O, E, U, A = (
6049
+ ), p, v, S, L, P, E, U, A = (
6069
6050
  /*$_*/
6070
6051
  e[16]("bonusName") + ""
6071
- ), $, k, ie, ue, te, H, N, Q, de = (
6052
+ ), $, k, ie, ue, ee, H, N, Q, de = (
6072
6053
  /*$_*/
6073
6054
  e[16]("bonusType") + ""
6074
- ), Se, b, Z, le = (
6055
+ ), Ce, b, Z, le = (
6075
6056
  /*$_*/
6076
6057
  e[16](`${/*bonustype*/
6077
6058
  e[3]}`) + ""
6078
- ), it, Le, kt, ot, at, st, $t, j = (
6059
+ ), rt, Le, Lt, nt, it, ot, Ut, j = (
6079
6060
  /*showBonusImage*/
6080
- e[15] === !0 && _r(e)
6061
+ e[15] === !0 && yr(e)
6081
6062
  ), W = (
6082
6063
  /*bonusamount*/
6083
- e[4] && Er(e)
6064
+ e[4] && wr(e)
6084
6065
  ), V = (
6085
6066
  /*bonuswageringamount*/
6086
- e[5] && Tr(e)
6067
+ e[5] && _r(e)
6087
6068
  ), Y = (
6088
6069
  /*bonusremainingamount*/
6089
- e[6] && xr(e)
6070
+ e[6] && Tr(e)
6090
6071
  ), X = (
6091
6072
  /*showtermsandconditions*/
6092
- e[14] && Br(e)
6093
- ), q = (
6073
+ e[14] && Er(e)
6074
+ ), z = (
6094
6075
  /*bonusstatus*/
6095
- e[1] === "active" && Sr(e)
6076
+ e[1] === "active" && xr(e)
6096
6077
  );
6097
6078
  return {
6098
6079
  c() {
6099
- t = x("div"), r = x("div"), n = x("div"), i = x("p"), a = R(o), s = D(), l = x("span"), h = R(u), f = D(), c = x("p"), p = R(d), L = D(), j && j.c(), O = D(), E = x("div"), U = x("p"), $ = R(A), k = D(), ie = x("p"), ue = R(
6080
+ t = B("div"), r = B("div"), n = B("div"), i = B("p"), a = R(o), s = D(), l = B("span"), h = R(u), f = D(), c = B("p"), p = R(d), L = D(), j && j.c(), P = D(), E = B("div"), U = B("p"), $ = R(A), k = D(), ie = B("p"), ue = R(
6100
6081
  /*bonusname*/
6101
6082
  e[2]
6102
- ), H = D(), N = x("div"), Q = x("p"), Se = R(de), b = D(), Z = x("p"), it = R(le), kt = D(), W && W.c(), ot = D(), V && V.c(), at = D(), Y && Y.c(), st = D(), X && X.c(), $t = D(), q && q.c(), g(i, "class", "BonusCardRowTitle"), g(c, "class", v = "BonusCardRowText BonusCardStatus TextCapitalize " + /*bonusstatus*/
6083
+ ), H = D(), N = B("div"), Q = B("p"), Ce = R(de), b = D(), Z = B("p"), rt = R(le), Lt = D(), W && W.c(), nt = D(), V && V.c(), it = D(), Y && Y.c(), ot = D(), X && X.c(), Ut = D(), z && z.c(), g(i, "class", "BonusCardRowTitle"), g(c, "class", v = "BonusCardRowText BonusCardStatus TextCapitalize " + /*bonusstatus*/
6103
6084
  (e[1] === "active" || /*bonusstatus*/
6104
6085
  e[1] === "released" ? "StatusActive" : "") + " " + /*bonusstatus*/
6105
6086
  (e[1] === "expired" ? "StatusExpired" : "") + " " + /*bonusstatus*/
6106
- (e[1] === "forfeited" ? "StatusForfeited" : "")), g(n, "class", B = `BonusCardRow Date ${/*$_*/
6107
- e[16]("date")}`), g(U, "class", "BonusCardRowTitle"), g(ie, "class", "BonusCardRowText"), g(E, "class", te = `BonusCardRow ${/*$_*/
6087
+ (e[1] === "forfeited" ? "StatusForfeited" : "")), g(n, "class", S = `BonusCardRow Date ${/*$_*/
6088
+ e[16]("date")}`), g(U, "class", "BonusCardRowTitle"), g(ie, "class", "BonusCardRowText"), g(E, "class", ee = `BonusCardRow ${/*$_*/
6108
6089
  e[16]("bonusName")}`), g(Q, "class", "BonusCardRowTitle"), g(Z, "class", "BonusCardRowText TextCapitalize"), g(N, "class", Le = `BonusCardRow ${/*$_*/
6109
6090
  e[16]("bonusType")}`), g(r, "class", "BonusCardInfo"), g(t, "class", "BonusCard");
6110
6091
  },
6111
6092
  m(y, M) {
6112
- se(y, t, M), m(t, r), m(r, n), m(n, i), m(i, a), m(i, s), m(i, l), m(l, h), m(n, f), m(n, c), m(c, p), m(r, L), j && j.m(r, null), m(r, O), m(r, E), m(E, U), m(U, $), m(E, k), m(E, ie), m(ie, ue), m(r, H), m(r, N), m(N, Q), m(Q, Se), m(N, b), m(N, Z), m(Z, it), m(r, kt), W && W.m(r, null), m(r, ot), V && V.m(r, null), m(r, at), Y && Y.m(r, null), m(r, st), X && X.m(r, null), m(t, $t), q && q.m(t, null), e[25](t);
6093
+ se(y, t, M), m(t, r), m(r, n), m(n, i), m(i, a), m(i, s), m(i, l), m(l, h), m(n, f), m(n, c), m(c, p), m(r, L), j && j.m(r, null), m(r, P), m(r, E), m(E, U), m(U, $), m(E, k), m(E, ie), m(ie, ue), m(r, H), m(r, N), m(N, Q), m(Q, Ce), m(N, b), m(N, Z), m(Z, rt), m(r, Lt), W && W.m(r, null), m(r, nt), V && V.m(r, null), m(r, it), Y && Y.m(r, null), m(r, ot), X && X.m(r, null), m(t, Ut), z && z.m(t, null), e[25](t);
6113
6094
  },
6114
6095
  p(y, [M]) {
6115
6096
  M & /*$_*/
6116
6097
  65536 && o !== (o = /*$_*/
6117
6098
  y[16]("date") + "") && I(a, o), M & /*bonusdate, dateformat*/
6118
- 4097 && u !== (u = wr(new Date(
6099
+ 4097 && u !== (u = gr(new Date(
6119
6100
  /*bonusdate*/
6120
6101
  y[0]
6121
6102
  ), `${/*dateformat*/
@@ -6131,9 +6112,9 @@ function es(e) {
6131
6112
  y[1] === "released" ? "StatusActive" : "") + " " + /*bonusstatus*/
6132
6113
  (y[1] === "expired" ? "StatusExpired" : "") + " " + /*bonusstatus*/
6133
6114
  (y[1] === "forfeited" ? "StatusForfeited" : "")) && g(c, "class", v), M & /*$_*/
6134
- 65536 && B !== (B = `BonusCardRow Date ${/*$_*/
6135
- y[16]("date")}`) && g(n, "class", B), /*showBonusImage*/
6136
- y[15] === !0 ? j ? j.p(y, M) : (j = _r(y), j.c(), j.m(r, O)) : j && (j.d(1), j = null), M & /*$_*/
6115
+ 65536 && S !== (S = `BonusCardRow Date ${/*$_*/
6116
+ y[16]("date")}`) && g(n, "class", S), /*showBonusImage*/
6117
+ y[15] === !0 ? j ? j.p(y, M) : (j = yr(y), j.c(), j.m(r, P)) : j && (j.d(1), j = null), M & /*$_*/
6137
6118
  65536 && A !== (A = /*$_*/
6138
6119
  y[16]("bonusName") + "") && I($, A), M & /*bonusname*/
6139
6120
  4 && I(
@@ -6141,67 +6122,67 @@ function es(e) {
6141
6122
  /*bonusname*/
6142
6123
  y[2]
6143
6124
  ), M & /*$_*/
6144
- 65536 && te !== (te = `BonusCardRow ${/*$_*/
6145
- y[16]("bonusName")}`) && g(E, "class", te), M & /*$_*/
6125
+ 65536 && ee !== (ee = `BonusCardRow ${/*$_*/
6126
+ y[16]("bonusName")}`) && g(E, "class", ee), M & /*$_*/
6146
6127
  65536 && de !== (de = /*$_*/
6147
- y[16]("bonusType") + "") && I(Se, de), M & /*$_, bonustype*/
6128
+ y[16]("bonusType") + "") && I(Ce, de), M & /*$_, bonustype*/
6148
6129
  65544 && le !== (le = /*$_*/
6149
6130
  y[16](`${/*bonustype*/
6150
- y[3]}`) + "") && I(it, le), M & /*$_*/
6131
+ y[3]}`) + "") && I(rt, le), M & /*$_*/
6151
6132
  65536 && Le !== (Le = `BonusCardRow ${/*$_*/
6152
6133
  y[16]("bonusType")}`) && g(N, "class", Le), /*bonusamount*/
6153
- y[4] ? W ? W.p(y, M) : (W = Er(y), W.c(), W.m(r, ot)) : W && (W.d(1), W = null), /*bonuswageringamount*/
6154
- y[5] ? V ? V.p(y, M) : (V = Tr(y), V.c(), V.m(r, at)) : V && (V.d(1), V = null), /*bonusremainingamount*/
6155
- y[6] ? Y ? Y.p(y, M) : (Y = xr(y), Y.c(), Y.m(r, st)) : Y && (Y.d(1), Y = null), /*showtermsandconditions*/
6156
- y[14] ? X ? X.p(y, M) : (X = Br(y), X.c(), X.m(r, null)) : X && (X.d(1), X = null), /*bonusstatus*/
6157
- y[1] === "active" ? q ? q.p(y, M) : (q = Sr(y), q.c(), q.m(t, null)) : q && (q.d(1), q = null);
6134
+ y[4] ? W ? W.p(y, M) : (W = wr(y), W.c(), W.m(r, nt)) : W && (W.d(1), W = null), /*bonuswageringamount*/
6135
+ y[5] ? V ? V.p(y, M) : (V = _r(y), V.c(), V.m(r, it)) : V && (V.d(1), V = null), /*bonusremainingamount*/
6136
+ y[6] ? Y ? Y.p(y, M) : (Y = Tr(y), Y.c(), Y.m(r, ot)) : Y && (Y.d(1), Y = null), /*showtermsandconditions*/
6137
+ y[14] ? X ? X.p(y, M) : (X = Er(y), X.c(), X.m(r, null)) : X && (X.d(1), X = null), /*bonusstatus*/
6138
+ y[1] === "active" ? z ? z.p(y, M) : (z = xr(y), z.c(), z.m(t, null)) : z && (z.d(1), z = null);
6158
6139
  },
6159
6140
  i: J,
6160
6141
  o: J,
6161
6142
  d(y) {
6162
- y && ne(t), j && j.d(), W && W.d(), V && V.d(), Y && Y.d(), X && X.d(), q && q.d(), e[25](null);
6143
+ y && re(t), j && j.d(), W && W.d(), V && V.d(), Y && Y.d(), X && X.d(), z && z.d(), e[25](null);
6163
6144
  }
6164
6145
  };
6165
6146
  }
6166
- function ts(e, t, r) {
6147
+ function Ka(e, t, r) {
6167
6148
  let n;
6168
- vn(e, Fo, (b) => r(16, n = b));
6169
- let { bonuswalletid: i = "" } = t, { bonusdate: o = "" } = t, { bonusstatus: a = "" } = t, { bonusname: s = "" } = t, { bonustype: l = "" } = t, { bonusamount: u = "" } = t, { bonuswageringamount: h = "" } = t, { bonusremainingamount: f = "" } = t, { bonuscurrency: c = "" } = t, { lang: d = "en" } = t, { clientstyling: p = "" } = t, { clientstylingurl: v = "" } = t, { mbsource: B } = t, { translationurl: L = "" } = t, { termsandconditionsurl: O = "" } = t, { termsandconditionsasset: E = "" } = t, { termsandconditionsdescription: U = "" } = t, { currencylocale: A = "" } = t, { dateformat: $ = "" } = t, k, ie = window.navigator.userAgent, ue = Go(ie) !== "PC", te = !1, H = !0;
6149
+ pn(e, ko, (b) => r(16, n = b));
6150
+ let { bonuswalletid: i = "" } = t, { bonusdate: o = "" } = t, { bonusstatus: a = "" } = t, { bonusname: s = "" } = t, { bonustype: l = "" } = t, { bonusamount: u = "" } = t, { bonuswageringamount: h = "" } = t, { bonusremainingamount: f = "" } = t, { bonuscurrency: c = "" } = t, { lang: d = "en" } = t, { clientstyling: p = "" } = t, { clientstylingurl: v = "" } = t, { mbsource: S } = t, { translationurl: L = "" } = t, { termsandconditionsurl: P = "" } = t, { termsandconditionsasset: E = "" } = t, { termsandconditionsdescription: U = "" } = t, { currencylocale: A = "" } = t, { dateformat: $ = "" } = t, k, ie = window.navigator.userAgent, ue = $o(ie) !== "PC", ee = !1, H = !0;
6170
6151
  const N = () => {
6171
6152
  fetch(L).then((Z) => Z.json()).then((Z) => {
6172
6153
  Object.keys(Z).forEach((le) => {
6173
- mr(le, Z[le]);
6154
+ fr(le, Z[le]);
6174
6155
  });
6175
6156
  }).catch((Z) => {
6176
6157
  console.log(Z);
6177
6158
  });
6178
6159
  };
6179
- Object.keys(br).forEach((b) => {
6180
- mr(b, br[b]);
6160
+ Object.keys(dr).forEach((b) => {
6161
+ fr(b, dr[b]);
6181
6162
  });
6182
6163
  const Q = () => {
6183
6164
  window.postMessage({ type: "DisableScroll" }, window.location.href), window.postMessage({ type: "DeleteActiveBonus", bonuswalletid: i }, window.location.href);
6184
6165
  }, de = () => {
6185
- jo(d);
6166
+ Fo(d);
6186
6167
  };
6187
- Bn(() => () => {
6168
+ xn(() => () => {
6188
6169
  });
6189
- function Se(b) {
6190
- gt[b ? "unshift" : "push"](() => {
6170
+ function Ce(b) {
6171
+ pt[b ? "unshift" : "push"](() => {
6191
6172
  k = b, r(13, k);
6192
6173
  });
6193
6174
  }
6194
6175
  return e.$$set = (b) => {
6195
- "bonuswalletid" in b && r(19, i = b.bonuswalletid), "bonusdate" in b && r(0, o = b.bonusdate), "bonusstatus" in b && r(1, a = b.bonusstatus), "bonusname" in b && r(2, s = b.bonusname), "bonustype" in b && r(3, l = b.bonustype), "bonusamount" in b && r(4, u = b.bonusamount), "bonuswageringamount" in b && r(5, h = b.bonuswageringamount), "bonusremainingamount" in b && r(6, f = b.bonusremainingamount), "bonuscurrency" in b && r(7, c = b.bonuscurrency), "lang" in b && r(20, d = b.lang), "clientstyling" in b && r(21, p = b.clientstyling), "clientstylingurl" in b && r(22, v = b.clientstylingurl), "mbsource" in b && r(23, B = b.mbsource), "translationurl" in b && r(24, L = b.translationurl), "termsandconditionsurl" in b && r(8, O = b.termsandconditionsurl), "termsandconditionsasset" in b && r(9, E = b.termsandconditionsasset), "termsandconditionsdescription" in b && r(10, U = b.termsandconditionsdescription), "currencylocale" in b && r(11, A = b.currencylocale), "dateformat" in b && r(12, $ = b.dateformat);
6176
+ "bonuswalletid" in b && r(19, i = b.bonuswalletid), "bonusdate" in b && r(0, o = b.bonusdate), "bonusstatus" in b && r(1, a = b.bonusstatus), "bonusname" in b && r(2, s = b.bonusname), "bonustype" in b && r(3, l = b.bonustype), "bonusamount" in b && r(4, u = b.bonusamount), "bonuswageringamount" in b && r(5, h = b.bonuswageringamount), "bonusremainingamount" in b && r(6, f = b.bonusremainingamount), "bonuscurrency" in b && r(7, c = b.bonuscurrency), "lang" in b && r(20, d = b.lang), "clientstyling" in b && r(21, p = b.clientstyling), "clientstylingurl" in b && r(22, v = b.clientstylingurl), "mbsource" in b && r(23, S = b.mbsource), "translationurl" in b && r(24, L = b.translationurl), "termsandconditionsurl" in b && r(8, P = b.termsandconditionsurl), "termsandconditionsasset" in b && r(9, E = b.termsandconditionsasset), "termsandconditionsdescription" in b && r(10, U = b.termsandconditionsdescription), "currencylocale" in b && r(11, A = b.currencylocale), "dateformat" in b && r(12, $ = b.dateformat);
6196
6177
  }, e.$$.update = () => {
6197
6178
  e.$$.dirty & /*lang*/
6198
6179
  1048576 && d && de(), e.$$.dirty & /*clientstyling, customStylingContainer*/
6199
- 2105344 && p && k && Wo(k, p), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
6200
- 4202496 && v && k && Vo(k, v), e.$$.dirty & /*mbsource, customStylingContainer*/
6201
- 8396800 && B && k && Yo(k, `${B}.Style`), e.$$.dirty & /*translationurl*/
6180
+ 2105344 && p && k && Go(k, p), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
6181
+ 4202496 && v && k && jo(k, v), e.$$.dirty & /*mbsource, customStylingContainer*/
6182
+ 8396800 && S && k && Wo(k, `${S}.Style`), e.$$.dirty & /*translationurl*/
6202
6183
  16777216 && L && N(), e.$$.dirty & /*termsandconditionsasset*/
6203
6184
  512 && r(15, H = !(E === null || E === "")), e.$$.dirty & /*termsandconditionsurl*/
6204
- 256 && r(14, te = O !== null && O !== "");
6185
+ 256 && r(14, ee = P !== null && P !== "");
6205
6186
  }, [
6206
6187
  o,
6207
6188
  a,
@@ -6211,13 +6192,13 @@ function ts(e, t, r) {
6211
6192
  h,
6212
6193
  f,
6213
6194
  c,
6214
- O,
6195
+ P,
6215
6196
  E,
6216
6197
  U,
6217
6198
  A,
6218
6199
  $,
6219
6200
  k,
6220
- te,
6201
+ ee,
6221
6202
  H,
6222
6203
  n,
6223
6204
  ue,
@@ -6226,19 +6207,19 @@ function ts(e, t, r) {
6226
6207
  d,
6227
6208
  p,
6228
6209
  v,
6229
- B,
6210
+ S,
6230
6211
  L,
6231
- Se
6212
+ Ce
6232
6213
  ];
6233
6214
  }
6234
- class rs extends Ln {
6215
+ class es extends In {
6235
6216
  constructor(t) {
6236
- super(), Dn(
6217
+ super(), Nn(
6237
6218
  this,
6238
6219
  t,
6239
- ts,
6240
- es,
6241
- Or,
6220
+ Ka,
6221
+ Ja,
6222
+ Sr,
6242
6223
  {
6243
6224
  bonuswalletid: 19,
6244
6225
  bonusdate: 0,
@@ -6260,125 +6241,125 @@ class rs extends Ln {
6260
6241
  currencylocale: 11,
6261
6242
  dateformat: 12
6262
6243
  },
6263
- Ka
6244
+ Za
6264
6245
  );
6265
6246
  }
6266
6247
  get bonuswalletid() {
6267
6248
  return this.$$.ctx[19];
6268
6249
  }
6269
6250
  set bonuswalletid(t) {
6270
- this.$$set({ bonuswalletid: t }), P();
6251
+ this.$$set({ bonuswalletid: t }), O();
6271
6252
  }
6272
6253
  get bonusdate() {
6273
6254
  return this.$$.ctx[0];
6274
6255
  }
6275
6256
  set bonusdate(t) {
6276
- this.$$set({ bonusdate: t }), P();
6257
+ this.$$set({ bonusdate: t }), O();
6277
6258
  }
6278
6259
  get bonusstatus() {
6279
6260
  return this.$$.ctx[1];
6280
6261
  }
6281
6262
  set bonusstatus(t) {
6282
- this.$$set({ bonusstatus: t }), P();
6263
+ this.$$set({ bonusstatus: t }), O();
6283
6264
  }
6284
6265
  get bonusname() {
6285
6266
  return this.$$.ctx[2];
6286
6267
  }
6287
6268
  set bonusname(t) {
6288
- this.$$set({ bonusname: t }), P();
6269
+ this.$$set({ bonusname: t }), O();
6289
6270
  }
6290
6271
  get bonustype() {
6291
6272
  return this.$$.ctx[3];
6292
6273
  }
6293
6274
  set bonustype(t) {
6294
- this.$$set({ bonustype: t }), P();
6275
+ this.$$set({ bonustype: t }), O();
6295
6276
  }
6296
6277
  get bonusamount() {
6297
6278
  return this.$$.ctx[4];
6298
6279
  }
6299
6280
  set bonusamount(t) {
6300
- this.$$set({ bonusamount: t }), P();
6281
+ this.$$set({ bonusamount: t }), O();
6301
6282
  }
6302
6283
  get bonuswageringamount() {
6303
6284
  return this.$$.ctx[5];
6304
6285
  }
6305
6286
  set bonuswageringamount(t) {
6306
- this.$$set({ bonuswageringamount: t }), P();
6287
+ this.$$set({ bonuswageringamount: t }), O();
6307
6288
  }
6308
6289
  get bonusremainingamount() {
6309
6290
  return this.$$.ctx[6];
6310
6291
  }
6311
6292
  set bonusremainingamount(t) {
6312
- this.$$set({ bonusremainingamount: t }), P();
6293
+ this.$$set({ bonusremainingamount: t }), O();
6313
6294
  }
6314
6295
  get bonuscurrency() {
6315
6296
  return this.$$.ctx[7];
6316
6297
  }
6317
6298
  set bonuscurrency(t) {
6318
- this.$$set({ bonuscurrency: t }), P();
6299
+ this.$$set({ bonuscurrency: t }), O();
6319
6300
  }
6320
6301
  get lang() {
6321
6302
  return this.$$.ctx[20];
6322
6303
  }
6323
6304
  set lang(t) {
6324
- this.$$set({ lang: t }), P();
6305
+ this.$$set({ lang: t }), O();
6325
6306
  }
6326
6307
  get clientstyling() {
6327
6308
  return this.$$.ctx[21];
6328
6309
  }
6329
6310
  set clientstyling(t) {
6330
- this.$$set({ clientstyling: t }), P();
6311
+ this.$$set({ clientstyling: t }), O();
6331
6312
  }
6332
6313
  get clientstylingurl() {
6333
6314
  return this.$$.ctx[22];
6334
6315
  }
6335
6316
  set clientstylingurl(t) {
6336
- this.$$set({ clientstylingurl: t }), P();
6317
+ this.$$set({ clientstylingurl: t }), O();
6337
6318
  }
6338
6319
  get mbsource() {
6339
6320
  return this.$$.ctx[23];
6340
6321
  }
6341
6322
  set mbsource(t) {
6342
- this.$$set({ mbsource: t }), P();
6323
+ this.$$set({ mbsource: t }), O();
6343
6324
  }
6344
6325
  get translationurl() {
6345
6326
  return this.$$.ctx[24];
6346
6327
  }
6347
6328
  set translationurl(t) {
6348
- this.$$set({ translationurl: t }), P();
6329
+ this.$$set({ translationurl: t }), O();
6349
6330
  }
6350
6331
  get termsandconditionsurl() {
6351
6332
  return this.$$.ctx[8];
6352
6333
  }
6353
6334
  set termsandconditionsurl(t) {
6354
- this.$$set({ termsandconditionsurl: t }), P();
6335
+ this.$$set({ termsandconditionsurl: t }), O();
6355
6336
  }
6356
6337
  get termsandconditionsasset() {
6357
6338
  return this.$$.ctx[9];
6358
6339
  }
6359
6340
  set termsandconditionsasset(t) {
6360
- this.$$set({ termsandconditionsasset: t }), P();
6341
+ this.$$set({ termsandconditionsasset: t }), O();
6361
6342
  }
6362
6343
  get termsandconditionsdescription() {
6363
6344
  return this.$$.ctx[10];
6364
6345
  }
6365
6346
  set termsandconditionsdescription(t) {
6366
- this.$$set({ termsandconditionsdescription: t }), P();
6347
+ this.$$set({ termsandconditionsdescription: t }), O();
6367
6348
  }
6368
6349
  get currencylocale() {
6369
6350
  return this.$$.ctx[11];
6370
6351
  }
6371
6352
  set currencylocale(t) {
6372
- this.$$set({ currencylocale: t }), P();
6353
+ this.$$set({ currencylocale: t }), O();
6373
6354
  }
6374
6355
  get dateformat() {
6375
6356
  return this.$$.ctx[12];
6376
6357
  }
6377
6358
  set dateformat(t) {
6378
- this.$$set({ dateformat: t }), P();
6359
+ this.$$set({ dateformat: t }), O();
6379
6360
  }
6380
6361
  }
6381
- In(rs, { bonuswalletid: {}, bonusdate: {}, bonusstatus: {}, bonusname: {}, bonustype: {}, bonusamount: {}, bonuswageringamount: {}, bonusremainingamount: {}, bonuscurrency: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, termsandconditionsurl: {}, termsandconditionsasset: {}, termsandconditionsdescription: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
6362
+ Dn(es, { bonuswalletid: {}, bonusdate: {}, bonusstatus: {}, bonusname: {}, bonustype: {}, bonusamount: {}, bonuswageringamount: {}, bonusremainingamount: {}, bonuscurrency: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, termsandconditionsurl: {}, termsandconditionsasset: {}, termsandconditionsdescription: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
6382
6363
  export {
6383
- rs as default
6364
+ es as default
6384
6365
  };