@everymatrix/player-active-bonuses 1.66.2 → 1.67.3

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,50 +1,50 @@
1
1
  function Q() {
2
2
  }
3
- function nr(e) {
3
+ function Kt(e) {
4
4
  return e();
5
5
  }
6
- function Ct() {
6
+ function Bt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function se(e) {
10
- e.forEach(nr);
10
+ e.forEach(Kt);
11
11
  }
12
- function _t(e) {
12
+ function mt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function or(e, t) {
15
+ function en(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let He;
19
- function Fi(e, t) {
19
+ function No(e, t) {
20
20
  return e === t ? !0 : (He || (He = document.createElement("a")), He.href = t, e === He.href);
21
21
  }
22
- function Qr(e) {
22
+ function Xn(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function ir(e, ...t) {
25
+ function tn(e, ...t) {
26
26
  if (e == null) {
27
- for (const n of t)
28
- n(void 0);
27
+ for (const r of t)
28
+ r(void 0);
29
29
  return Q;
30
30
  }
31
- const r = e.subscribe(...t);
32
- return r.unsubscribe ? () => r.unsubscribe() : r;
31
+ const n = e.subscribe(...t);
32
+ return n.unsubscribe ? () => n.unsubscribe() : n;
33
33
  }
34
- function Jr(e, t, r) {
35
- e.$$.on_destroy.push(ir(t, r));
34
+ function Zn(e, t, n) {
35
+ e.$$.on_destroy.push(tn(t, n));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Yr(e, t, r) {
41
- const n = Kr(e);
42
- if (!n.getElementById(t)) {
43
- const o = T("style");
44
- o.id = t, o.textContent = r, en(n, o);
40
+ function qn(e, t, n) {
41
+ const r = Qn(e);
42
+ if (!r.getElementById(t)) {
43
+ const i = P("style");
44
+ i.id = t, i.textContent = n, Jn(r, i);
45
45
  }
46
46
  }
47
- function Kr(e) {
47
+ function Qn(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,24 +54,24 @@ function Kr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function en(e, t) {
57
+ function Jn(e, t) {
58
58
  return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function W(e, t, r) {
65
- e.insertBefore(t, r || null);
64
+ function W(e, t, n) {
65
+ e.insertBefore(t, n || null);
66
66
  }
67
67
  function G(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function sr(e, t) {
71
- for (let r = 0; r < e.length; r += 1)
72
- e[r] && e[r].d(t);
70
+ function nn(e, t) {
71
+ for (let n = 0; n < e.length; n += 1)
72
+ e[n] && e[n].d(t);
73
73
  }
74
- function T(e) {
74
+ function P(e) {
75
75
  return document.createElement(e);
76
76
  }
77
77
  function ce(e) {
@@ -83,130 +83,130 @@ function F(e) {
83
83
  function j() {
84
84
  return F(" ");
85
85
  }
86
- function Bt() {
86
+ function bt() {
87
87
  return F("");
88
88
  }
89
- function q(e, t, r, n) {
90
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
89
+ function q(e, t, n, r) {
90
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
91
91
  }
92
- function B(e, t, r) {
93
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
92
+ function B(e, t, n) {
93
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
94
94
  }
95
- function p(e, t, r) {
96
- const n = t.toLowerCase();
97
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
95
+ function p(e, t, n) {
96
+ const r = t.toLowerCase();
97
+ r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : B(e, t, n);
98
98
  }
99
- function tn(e) {
99
+ function Yn(e) {
100
100
  return Array.from(e.childNodes);
101
101
  }
102
102
  function ne(e, t) {
103
103
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
104
104
  t);
105
105
  }
106
- function St(e, t) {
106
+ function Et(e, t) {
107
107
  e.value = t ?? "";
108
108
  }
109
- function rn(e) {
109
+ function Kn(e) {
110
110
  const t = {};
111
111
  return e.childNodes.forEach(
112
112
  /** @param {Element} node */
113
- (r) => {
114
- t[r.slot || "default"] = !0;
113
+ (n) => {
114
+ t[n.slot || "default"] = !0;
115
115
  }
116
116
  ), t;
117
117
  }
118
- let we;
119
- function xe(e) {
120
- we = e;
118
+ let Ce;
119
+ function we(e) {
120
+ Ce = e;
121
121
  }
122
- function nn() {
123
- if (!we)
122
+ function er() {
123
+ if (!Ce)
124
124
  throw new Error("Function called outside component initialization");
125
- return we;
125
+ return Ce;
126
126
  }
127
- function on(e) {
128
- nn().$$.on_mount.push(e);
127
+ function tr(e) {
128
+ er().$$.on_mount.push(e);
129
129
  }
130
- const de = [], rt = [];
130
+ const de = [], Ke = [];
131
131
  let pe = [];
132
- const At = [], sn = /* @__PURE__ */ Promise.resolve();
133
- let nt = !1;
134
- function an() {
135
- nt || (nt = !0, sn.then(Z));
132
+ const xt = [], nr = /* @__PURE__ */ Promise.resolve();
133
+ let et = !1;
134
+ function rr() {
135
+ et || (et = !0, nr.then(Z));
136
136
  }
137
- function ot(e) {
137
+ function tt(e) {
138
138
  pe.push(e);
139
139
  }
140
- const Ze = /* @__PURE__ */ new Set();
140
+ const ze = /* @__PURE__ */ new Set();
141
141
  let he = 0;
142
142
  function Z() {
143
143
  if (he !== 0)
144
144
  return;
145
- const e = we;
145
+ const e = Ce;
146
146
  do {
147
147
  try {
148
148
  for (; he < de.length; ) {
149
149
  const t = de[he];
150
- he++, xe(t), un(t.$$);
150
+ he++, we(t), ir(t.$$);
151
151
  }
152
152
  } catch (t) {
153
153
  throw de.length = 0, he = 0, t;
154
154
  }
155
- for (xe(null), de.length = 0, he = 0; rt.length; )
156
- rt.pop()();
155
+ for (we(null), de.length = 0, he = 0; Ke.length; )
156
+ Ke.pop()();
157
157
  for (let t = 0; t < pe.length; t += 1) {
158
- const r = pe[t];
159
- Ze.has(r) || (Ze.add(r), r());
158
+ const n = pe[t];
159
+ ze.has(n) || (ze.add(n), n());
160
160
  }
161
161
  pe.length = 0;
162
162
  } while (de.length);
163
- for (; At.length; )
164
- At.pop()();
165
- nt = !1, Ze.clear(), xe(e);
163
+ for (; xt.length; )
164
+ xt.pop()();
165
+ et = !1, ze.clear(), we(e);
166
166
  }
167
- function un(e) {
167
+ function ir(e) {
168
168
  if (e.fragment !== null) {
169
169
  e.update(), se(e.before_update);
170
170
  const t = e.dirty;
171
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
171
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
172
172
  }
173
173
  }
174
- function ln(e) {
175
- const t = [], r = [];
176
- pe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), pe = t;
174
+ function or(e) {
175
+ const t = [], n = [];
176
+ pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), pe = t;
177
177
  }
178
- const cn = /* @__PURE__ */ new Set();
179
- function hn(e, t) {
180
- e && e.i && (cn.delete(e), e.i(t));
178
+ const sr = /* @__PURE__ */ new Set();
179
+ function ar(e, t) {
180
+ e && e.i && (sr.delete(e), e.i(t));
181
181
  }
182
182
  function Fe(e) {
183
183
  return e?.length !== void 0 ? e : Array.from(e);
184
184
  }
185
- function fn(e, t, r) {
186
- const { fragment: n, after_update: o } = e.$$;
187
- n && n.m(t, r), ot(() => {
188
- const i = e.$$.on_mount.map(nr).filter(_t);
189
- e.$$.on_destroy ? e.$$.on_destroy.push(...i) : se(i), e.$$.on_mount = [];
190
- }), o.forEach(ot);
185
+ function ur(e, t, n) {
186
+ const { fragment: r, after_update: i } = e.$$;
187
+ r && r.m(t, n), tt(() => {
188
+ const o = e.$$.on_mount.map(Kt).filter(mt);
189
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
190
+ }), i.forEach(tt);
191
191
  }
192
- function dn(e, t) {
193
- const r = e.$$;
194
- r.fragment !== null && (ln(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
192
+ function lr(e, t) {
193
+ const n = e.$$;
194
+ n.fragment !== null && (or(n.after_update), se(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
195
195
  }
196
- function pn(e, t) {
197
- e.$$.dirty[0] === -1 && (de.push(e), an(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
196
+ function cr(e, t) {
197
+ e.$$.dirty[0] === -1 && (de.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
198
198
  }
199
- function mn(e, t, r, n, o, i, s = null, a = [-1]) {
200
- const u = we;
201
- xe(e);
199
+ function hr(e, t, n, r, i, o, s = null, a = [-1]) {
200
+ const u = Ce;
201
+ we(e);
202
202
  const l = e.$$ = {
203
203
  fragment: null,
204
204
  ctx: [],
205
205
  // state
206
- props: i,
206
+ props: o,
207
207
  update: Q,
208
- not_equal: o,
209
- bound: Ct(),
208
+ not_equal: i,
209
+ bound: Bt(),
210
210
  // lifecycle
211
211
  on_mount: [],
212
212
  on_destroy: [],
@@ -215,28 +215,28 @@ function mn(e, t, r, n, o, i, s = null, a = [-1]) {
215
215
  after_update: [],
216
216
  context: new Map(t.context || (u ? u.$$.context : [])),
217
217
  // everything else
218
- callbacks: Ct(),
218
+ callbacks: Bt(),
219
219
  dirty: a,
220
220
  skip_bound: !1,
221
221
  root: t.target || u.$$.root
222
222
  };
223
223
  s && s(l.root);
224
224
  let c = !1;
225
- if (l.ctx = r ? r(e, t.props || {}, (h, f, ...b) => {
225
+ if (l.ctx = n ? n(e, t.props || {}, (h, f, ...b) => {
226
226
  const m = b.length ? b[0] : f;
227
- return l.ctx && o(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && pn(e, h)), f;
228
- }) : [], l.update(), c = !0, se(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
227
+ return l.ctx && i(l.ctx[h], l.ctx[h] = m) && (!l.skip_bound && l.bound[h] && l.bound[h](m), c && cr(e, h)), f;
228
+ }) : [], l.update(), c = !0, se(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
229
229
  if (t.hydrate) {
230
- const h = tn(t.target);
230
+ const h = Yn(t.target);
231
231
  l.fragment && l.fragment.l(h), h.forEach(G);
232
232
  } else
233
233
  l.fragment && l.fragment.c();
234
- t.intro && hn(e.$$.fragment), fn(e, t.target, t.anchor), Z();
234
+ t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), Z();
235
235
  }
236
- xe(u);
236
+ we(u);
237
237
  }
238
- let ar;
239
- typeof HTMLElement == "function" && (ar = class extends HTMLElement {
238
+ let rn;
239
+ typeof HTMLElement == "function" && (rn = class extends HTMLElement {
240
240
  /** The Svelte component constructor */
241
241
  $$ctor;
242
242
  /** Slots */
@@ -255,55 +255,55 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
255
255
  $$l = {};
256
256
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
257
257
  $$l_u = /* @__PURE__ */ new Map();
258
- constructor(e, t, r) {
259
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
258
+ constructor(e, t, n) {
259
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
260
260
  }
261
- addEventListener(e, t, r) {
261
+ addEventListener(e, t, n) {
262
262
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
263
- const n = this.$$c.$on(e, t);
264
- this.$$l_u.set(t, n);
263
+ const r = this.$$c.$on(e, t);
264
+ this.$$l_u.set(t, r);
265
265
  }
266
- super.addEventListener(e, t, r);
266
+ super.addEventListener(e, t, n);
267
267
  }
268
- removeEventListener(e, t, r) {
269
- if (super.removeEventListener(e, t, r), this.$$c) {
270
- const n = this.$$l_u.get(t);
271
- n && (n(), this.$$l_u.delete(t));
268
+ removeEventListener(e, t, n) {
269
+ if (super.removeEventListener(e, t, n), this.$$c) {
270
+ const r = this.$$l_u.get(t);
271
+ r && (r(), this.$$l_u.delete(t));
272
272
  }
273
273
  }
274
274
  async connectedCallback() {
275
275
  if (this.$$cn = !0, !this.$$c) {
276
- let e = function(o) {
276
+ let e = function(i) {
277
277
  return () => {
278
- let i;
278
+ let o;
279
279
  return {
280
280
  c: function() {
281
- i = T("slot"), o !== "default" && B(i, "name", o);
281
+ o = P("slot"), i !== "default" && B(o, "name", i);
282
282
  },
283
283
  /**
284
284
  * @param {HTMLElement} target
285
285
  * @param {HTMLElement} [anchor]
286
286
  */
287
287
  m: function(u, l) {
288
- W(u, i, l);
288
+ W(u, o, l);
289
289
  },
290
290
  d: function(u) {
291
- u && G(i);
291
+ u && G(o);
292
292
  }
293
293
  };
294
294
  };
295
295
  };
296
296
  if (await Promise.resolve(), !this.$$cn || this.$$c)
297
297
  return;
298
- const t = {}, r = rn(this);
299
- for (const o of this.$$s)
300
- o in r && (t[o] = [e(o)]);
301
- for (const o of this.attributes) {
302
- const i = this.$$g_p(o.name);
303
- i in this.$$d || (this.$$d[i] = Ne(i, o.value, this.$$p_d, "toProp"));
298
+ const t = {}, n = Kn(this);
299
+ for (const i of this.$$s)
300
+ i in n && (t[i] = [e(i)]);
301
+ for (const i of this.attributes) {
302
+ const o = this.$$g_p(i.name);
303
+ o in this.$$d || (this.$$d[o] = Ne(o, i.value, this.$$p_d, "toProp"));
304
304
  }
305
- for (const o in this.$$p_d)
306
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
305
+ for (const i in this.$$p_d)
306
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
307
307
  this.$$c = new this.$$ctor({
308
308
  target: this.shadowRoot || this,
309
309
  props: {
@@ -314,33 +314,33 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
314
314
  }
315
315
  }
316
316
  });
317
- const n = () => {
317
+ const r = () => {
318
318
  this.$$r = !0;
319
- for (const o in this.$$p_d)
320
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
321
- const i = Ne(
322
- o,
323
- this.$$d[o],
319
+ for (const i in this.$$p_d)
320
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
321
+ const o = Ne(
322
+ i,
323
+ this.$$d[i],
324
324
  this.$$p_d,
325
325
  "toAttribute"
326
326
  );
327
- i == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, i);
327
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
328
328
  }
329
329
  this.$$r = !1;
330
330
  };
331
- this.$$c.$$.after_update.push(n), n();
332
- for (const o in this.$$l)
333
- for (const i of this.$$l[o]) {
334
- const s = this.$$c.$on(o, i);
335
- this.$$l_u.set(i, s);
331
+ this.$$c.$$.after_update.push(r), r();
332
+ for (const i in this.$$l)
333
+ for (const o of this.$$l[i]) {
334
+ const s = this.$$c.$on(i, o);
335
+ this.$$l_u.set(o, s);
336
336
  }
337
337
  this.$$l = {};
338
338
  }
339
339
  }
340
340
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
341
341
  // and setting attributes through setAttribute etc, this is helpful
342
- attributeChangedCallback(e, t, r) {
343
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ne(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
342
+ attributeChangedCallback(e, t, n) {
343
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ne(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
344
344
  }
345
345
  disconnectedCallback() {
346
346
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -353,12 +353,12 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
353
353
  ) || e;
354
354
  }
355
355
  });
356
- function Ne(e, t, r, n) {
357
- const o = r[e]?.type;
358
- if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
356
+ function Ne(e, t, n, r) {
357
+ const i = n[e]?.type;
358
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
359
359
  return t;
360
- if (n === "toAttribute")
361
- switch (o) {
360
+ if (r === "toAttribute")
361
+ switch (i) {
362
362
  case "Object":
363
363
  case "Array":
364
364
  return t == null ? null : JSON.stringify(t);
@@ -370,7 +370,7 @@ function Ne(e, t, r, n) {
370
370
  return t;
371
371
  }
372
372
  else
373
- switch (o) {
373
+ switch (i) {
374
374
  case "Object":
375
375
  case "Array":
376
376
  return t && JSON.parse(t);
@@ -382,10 +382,10 @@ function Ne(e, t, r, n) {
382
382
  return t;
383
383
  }
384
384
  }
385
- function bn(e, t, r, n, o, i) {
386
- let s = class extends ar {
385
+ function fr(e, t, n, r, i, o) {
386
+ let s = class extends rn {
387
387
  constructor() {
388
- super(e, r, o), this.$$p_d = t;
388
+ super(e, n, i), this.$$p_d = t;
389
389
  }
390
390
  static get observedAttributes() {
391
391
  return Object.keys(t).map(
@@ -402,7 +402,7 @@ function bn(e, t, r, n, o, i) {
402
402
  u = Ne(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
403
403
  }
404
404
  });
405
- }), n.forEach((a) => {
405
+ }), r.forEach((a) => {
406
406
  Object.defineProperty(s.prototype, a, {
407
407
  get() {
408
408
  return this.$$c?.[a];
@@ -411,7 +411,7 @@ function bn(e, t, r, n, o, i) {
411
411
  }), e.element = /** @type {any} */
412
412
  s, s;
413
413
  }
414
- class gn {
414
+ class dr {
415
415
  /**
416
416
  * ### PRIVATE API
417
417
  *
@@ -430,7 +430,7 @@ class gn {
430
430
  $$set = void 0;
431
431
  /** @returns {void} */
432
432
  $destroy() {
433
- dn(this, 1), this.$destroy = Q;
433
+ lr(this, 1), this.$destroy = Q;
434
434
  }
435
435
  /**
436
436
  * @template {Extract<keyof Events, string>} K
@@ -438,13 +438,13 @@ class gn {
438
438
  * @param {((e: Events[K]) => void) | null | undefined} callback
439
439
  * @returns {() => void}
440
440
  */
441
- $on(t, r) {
442
- if (!_t(r))
441
+ $on(t, n) {
442
+ if (!mt(n))
443
443
  return Q;
444
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
445
- return n.push(r), () => {
446
- const o = n.indexOf(r);
447
- o !== -1 && n.splice(o, 1);
444
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
445
+ return r.push(n), () => {
446
+ const i = r.indexOf(n);
447
+ i !== -1 && r.splice(i, 1);
448
448
  };
449
449
  }
450
450
  /**
@@ -452,11 +452,11 @@ class gn {
452
452
  * @returns {void}
453
453
  */
454
454
  $set(t) {
455
- this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
455
+ this.$$set && !Xn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
456
456
  }
457
457
  }
458
- const vn = "4";
459
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vn);
458
+ const pr = "4";
459
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
460
460
  /*! *****************************************************************************
461
461
  Copyright (c) Microsoft Corporation.
462
462
 
@@ -471,98 +471,117 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
471
471
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
472
472
  PERFORMANCE OF THIS SOFTWARE.
473
473
  ***************************************************************************** */
474
- var it = function(e, t) {
475
- return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
476
- r.__proto__ = n;
477
- } || function(r, n) {
478
- for (var o in n)
479
- Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
480
- }, it(e, t);
474
+ var nt = function(e, t) {
475
+ return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
476
+ n.__proto__ = r;
477
+ } || function(n, r) {
478
+ for (var i in r)
479
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
480
+ }, nt(e, t);
481
481
  };
482
- function Ae(e, t) {
482
+ function ie(e, t) {
483
483
  if (typeof t != "function" && t !== null)
484
484
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
485
- it(e, t);
486
- function r() {
485
+ nt(e, t);
486
+ function n() {
487
487
  this.constructor = e;
488
488
  }
489
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
489
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
490
+ }
491
+ var A = function() {
492
+ return A = Object.assign || function(t) {
493
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
494
+ n = arguments[r];
495
+ for (var o in n)
496
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
497
+ }
498
+ return t;
499
+ }, A.apply(this, arguments);
500
+ };
501
+ function mr(e, t) {
502
+ var n = {};
503
+ for (var r in e)
504
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
505
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
506
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
507
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
508
+ return n;
490
509
  }
491
- function st(e) {
492
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
493
- if (r)
494
- return r.call(e);
510
+ function rt(e) {
511
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
512
+ if (n)
513
+ return n.call(e);
495
514
  if (e && typeof e.length == "number")
496
515
  return {
497
516
  next: function() {
498
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
517
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
499
518
  }
500
519
  };
501
520
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
502
521
  }
503
- function at(e, t) {
504
- var r = typeof Symbol == "function" && e[Symbol.iterator];
505
- if (!r)
522
+ function it(e, t) {
523
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
524
+ if (!n)
506
525
  return e;
507
- var n = r.call(e), o, i = [], s;
526
+ var r = n.call(e), i, o = [], s;
508
527
  try {
509
- for (; (t === void 0 || t-- > 0) && !(o = n.next()).done; )
510
- i.push(o.value);
528
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
529
+ o.push(i.value);
511
530
  } catch (a) {
512
531
  s = { error: a };
513
532
  } finally {
514
533
  try {
515
- o && !o.done && (r = n.return) && r.call(n);
534
+ i && !i.done && (n = r.return) && n.call(r);
516
535
  } finally {
517
536
  if (s)
518
537
  throw s.error;
519
538
  }
520
539
  }
521
- return i;
540
+ return o;
522
541
  }
523
- function ut(e, t, r) {
524
- if (arguments.length === 2)
525
- for (var n = 0, o = t.length, i; n < o; n++)
526
- (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
527
- return e.concat(i || t);
542
+ function me(e, t, n) {
543
+ if (n || arguments.length === 2)
544
+ for (var r = 0, i = t.length, o; r < i; r++)
545
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
546
+ return e.concat(o || t);
528
547
  }
529
- function oe(e) {
548
+ function re(e) {
530
549
  return typeof e == "function";
531
550
  }
532
- function ur(e) {
533
- var t = function(n) {
534
- Error.call(n), n.stack = new Error().stack;
535
- }, r = e(t);
536
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
537
- }
538
- var qe = ur(function(e) {
539
- return function(r) {
540
- e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
541
- ` + r.map(function(n, o) {
542
- return o + 1 + ") " + n.toString();
551
+ function on(e) {
552
+ var t = function(r) {
553
+ Error.call(r), r.stack = new Error().stack;
554
+ }, n = e(t);
555
+ return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
556
+ }
557
+ var Xe = on(function(e) {
558
+ return function(n) {
559
+ e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
560
+ ` + n.map(function(r, i) {
561
+ return i + 1 + ") " + r.toString();
543
562
  }).join(`
544
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
563
+ `) : "", this.name = "UnsubscriptionError", this.errors = n;
545
564
  };
546
565
  });
547
- function lt(e, t) {
566
+ function ot(e, t) {
548
567
  if (e) {
549
- var r = e.indexOf(t);
550
- 0 <= r && e.splice(r, 1);
568
+ var n = e.indexOf(t);
569
+ 0 <= n && e.splice(n, 1);
551
570
  }
552
571
  }
553
- var ke = function() {
572
+ var Ge = function() {
554
573
  function e(t) {
555
574
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
556
575
  }
557
576
  return e.prototype.unsubscribe = function() {
558
- var t, r, n, o, i;
577
+ var t, n, r, i, o;
559
578
  if (!this.closed) {
560
579
  this.closed = !0;
561
580
  var s = this._parentage;
562
581
  if (s)
563
582
  if (this._parentage = null, Array.isArray(s))
564
583
  try {
565
- for (var a = st(s), u = a.next(); !u.done; u = a.next()) {
584
+ for (var a = rt(s), u = a.next(); !u.done; u = a.next()) {
566
585
  var l = u.value;
567
586
  l.remove(this);
568
587
  }
@@ -570,7 +589,7 @@ var ke = function() {
570
589
  t = { error: d };
571
590
  } finally {
572
591
  try {
573
- u && !u.done && (r = a.return) && r.call(a);
592
+ u && !u.done && (n = a.return) && n.call(a);
574
593
  } finally {
575
594
  if (t)
576
595
  throw t.error;
@@ -579,118 +598,122 @@ var ke = function() {
579
598
  else
580
599
  s.remove(this);
581
600
  var c = this.initialTeardown;
582
- if (oe(c))
601
+ if (re(c))
583
602
  try {
584
603
  c();
585
604
  } catch (d) {
586
- i = d instanceof qe ? d.errors : [d];
605
+ o = d instanceof Xe ? d.errors : [d];
587
606
  }
588
607
  var h = this._finalizers;
589
608
  if (h) {
590
609
  this._finalizers = null;
591
610
  try {
592
- for (var f = st(h), b = f.next(); !b.done; b = f.next()) {
611
+ for (var f = rt(h), b = f.next(); !b.done; b = f.next()) {
593
612
  var m = b.value;
594
613
  try {
595
- Tt(m);
614
+ wt(m);
596
615
  } catch (d) {
597
- i = i ?? [], d instanceof qe ? i = ut(ut([], at(i)), at(d.errors)) : i.push(d);
616
+ o = o ?? [], d instanceof Xe ? o = me(me([], it(o)), it(d.errors)) : o.push(d);
598
617
  }
599
618
  }
600
619
  } catch (d) {
601
- n = { error: d };
620
+ r = { error: d };
602
621
  } finally {
603
622
  try {
604
- b && !b.done && (o = f.return) && o.call(f);
623
+ b && !b.done && (i = f.return) && i.call(f);
605
624
  } finally {
606
- if (n)
607
- throw n.error;
625
+ if (r)
626
+ throw r.error;
608
627
  }
609
628
  }
610
629
  }
611
- if (i)
612
- throw new qe(i);
630
+ if (o)
631
+ throw new Xe(o);
613
632
  }
614
633
  }, e.prototype.add = function(t) {
615
- var r;
634
+ var n;
616
635
  if (t && t !== this)
617
636
  if (this.closed)
618
- Tt(t);
637
+ wt(t);
619
638
  else {
620
639
  if (t instanceof e) {
621
640
  if (t.closed || t._hasParent(this))
622
641
  return;
623
642
  t._addParent(this);
624
643
  }
625
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
644
+ (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
626
645
  }
627
646
  }, e.prototype._hasParent = function(t) {
628
- var r = this._parentage;
629
- return r === t || Array.isArray(r) && r.includes(t);
647
+ var n = this._parentage;
648
+ return n === t || Array.isArray(n) && n.includes(t);
630
649
  }, e.prototype._addParent = function(t) {
631
- var r = this._parentage;
632
- this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
650
+ var n = this._parentage;
651
+ this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
633
652
  }, e.prototype._removeParent = function(t) {
634
- var r = this._parentage;
635
- r === t ? this._parentage = null : Array.isArray(r) && lt(r, t);
653
+ var n = this._parentage;
654
+ n === t ? this._parentage = null : Array.isArray(n) && ot(n, t);
636
655
  }, e.prototype.remove = function(t) {
637
- var r = this._finalizers;
638
- r && lt(r, t), t instanceof e && t._removeParent(this);
656
+ var n = this._finalizers;
657
+ n && ot(n, t), t instanceof e && t._removeParent(this);
639
658
  }, e.EMPTY = function() {
640
659
  var t = new e();
641
660
  return t.closed = !0, t;
642
661
  }(), e;
643
- }(), lr = ke.EMPTY;
644
- function cr(e) {
645
- return e instanceof ke || e && "closed" in e && oe(e.remove) && oe(e.add) && oe(e.unsubscribe);
646
- }
647
- function Tt(e) {
648
- oe(e) ? e() : e.unsubscribe();
649
- }
650
- var yn = {
651
- Promise: void 0
652
- }, _n = {
662
+ }(), sn = Ge.EMPTY;
663
+ function an(e) {
664
+ return e instanceof Ge || e && "closed" in e && re(e.remove) && re(e.add) && re(e.unsubscribe);
665
+ }
666
+ function wt(e) {
667
+ re(e) ? e() : e.unsubscribe();
668
+ }
669
+ var br = {
670
+ onUnhandledError: null,
671
+ onStoppedNotification: null,
672
+ Promise: void 0,
673
+ useDeprecatedSynchronousErrorHandling: !1,
674
+ useDeprecatedNextContext: !1
675
+ }, gr = {
653
676
  setTimeout: function(e, t) {
654
- for (var r = [], n = 2; n < arguments.length; n++)
655
- r[n - 2] = arguments[n];
656
- return setTimeout.apply(void 0, ut([e, t], at(r)));
677
+ for (var n = [], r = 2; r < arguments.length; r++)
678
+ n[r - 2] = arguments[r];
679
+ return setTimeout.apply(void 0, me([e, t], it(n)));
657
680
  },
658
681
  clearTimeout: function(e) {
659
682
  return clearTimeout(e);
660
683
  },
661
684
  delegate: void 0
662
685
  };
663
- function Bn(e) {
664
- _n.setTimeout(function() {
686
+ function vr(e) {
687
+ gr.setTimeout(function() {
665
688
  throw e;
666
689
  });
667
690
  }
668
- function Pt() {
691
+ function Ct() {
669
692
  }
670
693
  function Le(e) {
671
694
  e();
672
695
  }
673
- var hr = function(e) {
674
- Ae(t, e);
675
- function t(r) {
676
- var n = e.call(this) || this;
677
- return n.isStopped = !1, r ? (n.destination = r, cr(r) && r.add(n)) : n.destination = wn, n;
696
+ var un = function(e) {
697
+ ie(t, e);
698
+ function t(n) {
699
+ var r = e.call(this) || this;
700
+ return r.isStopped = !1, n ? (r.destination = n, an(n) && n.add(r)) : r.destination = Br, r;
678
701
  }
679
- return t.create = function(r, n, o) {
680
- return new ct(r, n, o);
681
- }, t.prototype.next = function(r) {
682
- this.isStopped || this._next(r);
683
- }, t.prototype.error = function(r) {
684
- this.isStopped || (this.isStopped = !0, this._error(r));
702
+ return t.create = function(n, r, i) {
703
+ return new st(n, r, i);
704
+ }, t.prototype.next = function(n) {
705
+ this.isStopped || this._next(n);
706
+ }, t.prototype.error = function(n) {
707
+ this.isStopped || (this.isStopped = !0, this._error(n));
685
708
  }, t.prototype.complete = function() {
686
709
  this.isStopped || (this.isStopped = !0, this._complete());
687
710
  }, t.prototype.unsubscribe = function() {
688
711
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
689
- }, t.prototype._next = function(r) {
690
- this.destination.next(r);
691
- }, t.prototype._error = function(r) {
712
+ }, t.prototype._next = function(n) {
713
+ this.destination.next(n);
714
+ }, t.prototype._error = function(n) {
692
715
  try {
693
- this.destination.error(r);
716
+ this.destination.error(n);
694
717
  } finally {
695
718
  this.unsubscribe();
696
719
  }
@@ -701,294 +724,294 @@ var hr = function(e) {
701
724
  this.unsubscribe();
702
725
  }
703
726
  }, t;
704
- }(ke), En = function() {
727
+ }(Ge), yr = function() {
705
728
  function e(t) {
706
729
  this.partialObserver = t;
707
730
  }
708
731
  return e.prototype.next = function(t) {
709
- var r = this.partialObserver;
710
- if (r.next)
732
+ var n = this.partialObserver;
733
+ if (n.next)
711
734
  try {
712
- r.next(t);
713
- } catch (n) {
714
- Oe(n);
735
+ n.next(t);
736
+ } catch (r) {
737
+ Ie(r);
715
738
  }
716
739
  }, e.prototype.error = function(t) {
717
- var r = this.partialObserver;
718
- if (r.error)
740
+ var n = this.partialObserver;
741
+ if (n.error)
719
742
  try {
720
- r.error(t);
721
- } catch (n) {
722
- Oe(n);
743
+ n.error(t);
744
+ } catch (r) {
745
+ Ie(r);
723
746
  }
724
747
  else
725
- Oe(t);
748
+ Ie(t);
726
749
  }, e.prototype.complete = function() {
727
750
  var t = this.partialObserver;
728
751
  if (t.complete)
729
752
  try {
730
753
  t.complete();
731
- } catch (r) {
732
- Oe(r);
754
+ } catch (n) {
755
+ Ie(n);
733
756
  }
734
757
  }, e;
735
- }(), ct = function(e) {
736
- Ae(t, e);
737
- function t(r, n, o) {
738
- var i = e.call(this) || this, s;
739
- return oe(r) || !r ? s = {
740
- next: r ?? void 0,
741
- error: n ?? void 0,
742
- complete: o ?? void 0
743
- } : s = r, i.destination = new En(s), i;
758
+ }(), st = function(e) {
759
+ ie(t, e);
760
+ function t(n, r, i) {
761
+ var o = e.call(this) || this, s;
762
+ return re(n) || !n ? s = {
763
+ next: n ?? void 0,
764
+ error: r ?? void 0,
765
+ complete: i ?? void 0
766
+ } : s = n, o.destination = new yr(s), o;
744
767
  }
745
768
  return t;
746
- }(hr);
747
- function Oe(e) {
748
- Bn(e);
769
+ }(un);
770
+ function Ie(e) {
771
+ vr(e);
749
772
  }
750
- function xn(e) {
773
+ function _r(e) {
751
774
  throw e;
752
775
  }
753
- var wn = {
776
+ var Br = {
754
777
  closed: !0,
755
- next: Pt,
756
- error: xn,
757
- complete: Pt
758
- }, Cn = function() {
778
+ next: Ct,
779
+ error: _r,
780
+ complete: Ct
781
+ }, Er = function() {
759
782
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
760
783
  }();
761
- function Sn(e) {
784
+ function xr(e) {
762
785
  return e;
763
786
  }
764
- function An(e) {
765
- return e.length === 0 ? Sn : e.length === 1 ? e[0] : function(r) {
766
- return e.reduce(function(n, o) {
767
- return o(n);
768
- }, r);
787
+ function wr(e) {
788
+ return e.length === 0 ? xr : e.length === 1 ? e[0] : function(n) {
789
+ return e.reduce(function(r, i) {
790
+ return i(r);
791
+ }, n);
769
792
  };
770
793
  }
771
- var Mt = function() {
794
+ var St = function() {
772
795
  function e(t) {
773
796
  t && (this._subscribe = t);
774
797
  }
775
798
  return e.prototype.lift = function(t) {
776
- var r = new e();
777
- return r.source = this, r.operator = t, r;
778
- }, e.prototype.subscribe = function(t, r, n) {
779
- var o = this, i = Pn(t) ? t : new ct(t, r, n);
799
+ var n = new e();
800
+ return n.source = this, n.operator = t, n;
801
+ }, e.prototype.subscribe = function(t, n, r) {
802
+ var i = this, o = Sr(t) ? t : new st(t, n, r);
780
803
  return Le(function() {
781
- var s = o, a = s.operator, u = s.source;
782
- i.add(a ? a.call(i, u) : u ? o._subscribe(i) : o._trySubscribe(i));
783
- }), i;
804
+ var s = i, a = s.operator, u = s.source;
805
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
806
+ }), o;
784
807
  }, e.prototype._trySubscribe = function(t) {
785
808
  try {
786
809
  return this._subscribe(t);
787
- } catch (r) {
788
- t.error(r);
810
+ } catch (n) {
811
+ t.error(n);
789
812
  }
790
- }, e.prototype.forEach = function(t, r) {
791
- var n = this;
792
- return r = Ht(r), new r(function(o, i) {
793
- var s = new ct({
813
+ }, e.prototype.forEach = function(t, n) {
814
+ var r = this;
815
+ return n = At(n), new n(function(i, o) {
816
+ var s = new st({
794
817
  next: function(a) {
795
818
  try {
796
819
  t(a);
797
820
  } catch (u) {
798
- i(u), s.unsubscribe();
821
+ o(u), s.unsubscribe();
799
822
  }
800
823
  },
801
- error: i,
802
- complete: o
824
+ error: o,
825
+ complete: i
803
826
  });
804
- n.subscribe(s);
827
+ r.subscribe(s);
805
828
  });
806
829
  }, e.prototype._subscribe = function(t) {
807
- var r;
808
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
809
- }, e.prototype[Cn] = function() {
830
+ var n;
831
+ return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
832
+ }, e.prototype[Er] = function() {
810
833
  return this;
811
834
  }, e.prototype.pipe = function() {
812
- for (var t = [], r = 0; r < arguments.length; r++)
813
- t[r] = arguments[r];
814
- return An(t)(this);
835
+ for (var t = [], n = 0; n < arguments.length; n++)
836
+ t[n] = arguments[n];
837
+ return wr(t)(this);
815
838
  }, e.prototype.toPromise = function(t) {
816
- var r = this;
817
- return t = Ht(t), new t(function(n, o) {
818
- var i;
819
- r.subscribe(function(s) {
820
- return i = s;
839
+ var n = this;
840
+ return t = At(t), new t(function(r, i) {
841
+ var o;
842
+ n.subscribe(function(s) {
843
+ return o = s;
821
844
  }, function(s) {
822
- return o(s);
845
+ return i(s);
823
846
  }, function() {
824
- return n(i);
847
+ return r(o);
825
848
  });
826
849
  });
827
850
  }, e.create = function(t) {
828
851
  return new e(t);
829
852
  }, e;
830
853
  }();
831
- function Ht(e) {
854
+ function At(e) {
832
855
  var t;
833
- return (t = e ?? yn.Promise) !== null && t !== void 0 ? t : Promise;
856
+ return (t = e ?? br.Promise) !== null && t !== void 0 ? t : Promise;
834
857
  }
835
- function Tn(e) {
836
- return e && oe(e.next) && oe(e.error) && oe(e.complete);
858
+ function Cr(e) {
859
+ return e && re(e.next) && re(e.error) && re(e.complete);
837
860
  }
838
- function Pn(e) {
839
- return e && e instanceof hr || Tn(e) && cr(e);
861
+ function Sr(e) {
862
+ return e && e instanceof un || Cr(e) && an(e);
840
863
  }
841
- var Mn = ur(function(e) {
864
+ var Ar = on(function(e) {
842
865
  return function() {
843
866
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
844
867
  };
845
- }), fr = function(e) {
846
- Ae(t, e);
868
+ }), ln = function(e) {
869
+ ie(t, e);
847
870
  function t() {
848
- var r = e.call(this) || this;
849
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
871
+ var n = e.call(this) || this;
872
+ return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
850
873
  }
851
- return t.prototype.lift = function(r) {
852
- var n = new Ot(this, this);
853
- return n.operator = r, n;
874
+ return t.prototype.lift = function(n) {
875
+ var r = new Tt(this, this);
876
+ return r.operator = n, r;
854
877
  }, t.prototype._throwIfClosed = function() {
855
878
  if (this.closed)
856
- throw new Mn();
857
- }, t.prototype.next = function(r) {
858
- var n = this;
879
+ throw new Ar();
880
+ }, t.prototype.next = function(n) {
881
+ var r = this;
859
882
  Le(function() {
860
- var o, i;
861
- if (n._throwIfClosed(), !n.isStopped) {
862
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
883
+ var i, o;
884
+ if (r._throwIfClosed(), !r.isStopped) {
885
+ r.currentObservers || (r.currentObservers = Array.from(r.observers));
863
886
  try {
864
- for (var s = st(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
887
+ for (var s = rt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
865
888
  var u = a.value;
866
- u.next(r);
889
+ u.next(n);
867
890
  }
868
891
  } catch (l) {
869
- o = { error: l };
892
+ i = { error: l };
870
893
  } finally {
871
894
  try {
872
- a && !a.done && (i = s.return) && i.call(s);
895
+ a && !a.done && (o = s.return) && o.call(s);
873
896
  } finally {
874
- if (o)
875
- throw o.error;
897
+ if (i)
898
+ throw i.error;
876
899
  }
877
900
  }
878
901
  }
879
902
  });
880
- }, t.prototype.error = function(r) {
881
- var n = this;
903
+ }, t.prototype.error = function(n) {
904
+ var r = this;
882
905
  Le(function() {
883
- if (n._throwIfClosed(), !n.isStopped) {
884
- n.hasError = n.isStopped = !0, n.thrownError = r;
885
- for (var o = n.observers; o.length; )
886
- o.shift().error(r);
906
+ if (r._throwIfClosed(), !r.isStopped) {
907
+ r.hasError = r.isStopped = !0, r.thrownError = n;
908
+ for (var i = r.observers; i.length; )
909
+ i.shift().error(n);
887
910
  }
888
911
  });
889
912
  }, t.prototype.complete = function() {
890
- var r = this;
913
+ var n = this;
891
914
  Le(function() {
892
- if (r._throwIfClosed(), !r.isStopped) {
893
- r.isStopped = !0;
894
- for (var n = r.observers; n.length; )
895
- n.shift().complete();
915
+ if (n._throwIfClosed(), !n.isStopped) {
916
+ n.isStopped = !0;
917
+ for (var r = n.observers; r.length; )
918
+ r.shift().complete();
896
919
  }
897
920
  });
898
921
  }, t.prototype.unsubscribe = function() {
899
922
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
900
923
  }, Object.defineProperty(t.prototype, "observed", {
901
924
  get: function() {
902
- var r;
903
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
925
+ var n;
926
+ return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
904
927
  },
905
928
  enumerable: !1,
906
929
  configurable: !0
907
- }), t.prototype._trySubscribe = function(r) {
908
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
909
- }, t.prototype._subscribe = function(r) {
910
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
911
- }, t.prototype._innerSubscribe = function(r) {
912
- var n = this, o = this, i = o.hasError, s = o.isStopped, a = o.observers;
913
- return i || s ? lr : (this.currentObservers = null, a.push(r), new ke(function() {
914
- n.currentObservers = null, lt(a, r);
930
+ }), t.prototype._trySubscribe = function(n) {
931
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
932
+ }, t.prototype._subscribe = function(n) {
933
+ return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
934
+ }, t.prototype._innerSubscribe = function(n) {
935
+ var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
936
+ return o || s ? sn : (this.currentObservers = null, a.push(n), new Ge(function() {
937
+ r.currentObservers = null, ot(a, n);
915
938
  }));
916
- }, t.prototype._checkFinalizedStatuses = function(r) {
917
- var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
918
- o ? r.error(i) : s && r.complete();
939
+ }, t.prototype._checkFinalizedStatuses = function(n) {
940
+ var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
941
+ i ? n.error(o) : s && n.complete();
919
942
  }, t.prototype.asObservable = function() {
920
- var r = new Mt();
921
- return r.source = this, r;
922
- }, t.create = function(r, n) {
923
- return new Ot(r, n);
943
+ var n = new St();
944
+ return n.source = this, n;
945
+ }, t.create = function(n, r) {
946
+ return new Tt(n, r);
924
947
  }, t;
925
- }(Mt), Ot = function(e) {
926
- Ae(t, e);
927
- function t(r, n) {
928
- var o = e.call(this) || this;
929
- return o.destination = r, o.source = n, o;
948
+ }(St), Tt = function(e) {
949
+ ie(t, e);
950
+ function t(n, r) {
951
+ var i = e.call(this) || this;
952
+ return i.destination = n, i.source = r, i;
930
953
  }
931
- return t.prototype.next = function(r) {
932
- var n, o;
933
- (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, r);
934
- }, t.prototype.error = function(r) {
935
- var n, o;
936
- (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, r);
954
+ return t.prototype.next = function(n) {
955
+ var r, i;
956
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
957
+ }, t.prototype.error = function(n) {
958
+ var r, i;
959
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
937
960
  }, t.prototype.complete = function() {
938
- var r, n;
939
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
940
- }, t.prototype._subscribe = function(r) {
941
- var n, o;
942
- return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && o !== void 0 ? o : lr;
961
+ var n, r;
962
+ (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
963
+ }, t.prototype._subscribe = function(n) {
964
+ var r, i;
965
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : sn;
943
966
  }, t;
944
- }(fr), dr = {
967
+ }(ln), cn = {
945
968
  now: function() {
946
- return (dr.delegate || Date).now();
969
+ return (cn.delegate || Date).now();
947
970
  },
948
971
  delegate: void 0
949
- }, Hn = function(e) {
950
- Ae(t, e);
951
- function t(r, n, o) {
952
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), o === void 0 && (o = dr);
953
- var i = e.call(this) || this;
954
- return i._bufferSize = r, i._windowTime = n, i._timestampProvider = o, i._buffer = [], i._infiniteTimeWindow = !0, i._infiniteTimeWindow = n === 1 / 0, i._bufferSize = Math.max(1, r), i._windowTime = Math.max(1, n), i;
972
+ }, Tr = function(e) {
973
+ ie(t, e);
974
+ function t(n, r, i) {
975
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = cn);
976
+ var o = e.call(this) || this;
977
+ return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
955
978
  }
956
- return t.prototype.next = function(r) {
957
- var n = this, o = n.isStopped, i = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
958
- o || (i.push(r), !s && i.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
959
- }, t.prototype._subscribe = function(r) {
979
+ return t.prototype.next = function(n) {
980
+ var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, u = r._windowTime;
981
+ i || (o.push(n), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
982
+ }, t.prototype._subscribe = function(n) {
960
983
  this._throwIfClosed(), this._trimBuffer();
961
- for (var n = this._innerSubscribe(r), o = this, i = o._infiniteTimeWindow, s = o._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += i ? 1 : 2)
962
- r.next(a[u]);
963
- return this._checkFinalizedStatuses(r), n;
984
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !n.closed; u += o ? 1 : 2)
985
+ n.next(a[u]);
986
+ return this._checkFinalizedStatuses(n), r;
964
987
  }, t.prototype._trimBuffer = function() {
965
- var r = this, n = r._bufferSize, o = r._timestampProvider, i = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
966
- if (n < 1 / 0 && a < i.length && i.splice(0, i.length - a), !s) {
967
- for (var u = o.now(), l = 0, c = 1; c < i.length && i[c] <= u; c += 2)
988
+ var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
989
+ if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
990
+ for (var u = i.now(), l = 0, c = 1; c < o.length && o[c] <= u; c += 2)
968
991
  l = c;
969
- l && i.splice(0, l + 1);
992
+ l && o.splice(0, l + 1);
970
993
  }
971
994
  }, t;
972
- }(fr);
973
- const It = [], Nt = {}, On = (e, t = 0) => {
974
- if (It.indexOf(e) == -1) {
975
- const r = new Hn(t);
976
- Nt[e] = r, It.push(e);
995
+ }(ln);
996
+ const Pt = [], Mt = {}, Pr = (e, t = 0) => {
997
+ if (Pt.indexOf(e) == -1) {
998
+ const n = new Tr(t);
999
+ Mt[e] = n, Pt.push(e);
977
1000
  }
978
- return Nt[e];
1001
+ return Mt[e];
979
1002
  }, fe = [];
980
- function In(e, t) {
1003
+ function Mr(e, t) {
981
1004
  return {
982
- subscribe: je(e, t).subscribe
1005
+ subscribe: ke(e, t).subscribe
983
1006
  };
984
1007
  }
985
- function je(e, t = Q) {
986
- let r;
987
- const n = /* @__PURE__ */ new Set();
988
- function o(a) {
989
- if (or(e, a) && (e = a, r)) {
1008
+ function ke(e, t = Q) {
1009
+ let n;
1010
+ const r = /* @__PURE__ */ new Set();
1011
+ function i(a) {
1012
+ if (en(e, a) && (e = a, n)) {
990
1013
  const u = !fe.length;
991
- for (const l of n)
1014
+ for (const l of r)
992
1015
  l[1](), fe.push(l, e);
993
1016
  if (u) {
994
1017
  for (let l = 0; l < fe.length; l += 2)
@@ -997,23 +1020,23 @@ function je(e, t = Q) {
997
1020
  }
998
1021
  }
999
1022
  }
1000
- function i(a) {
1001
- o(a(e));
1023
+ function o(a) {
1024
+ i(a(e));
1002
1025
  }
1003
1026
  function s(a, u = Q) {
1004
1027
  const l = [a, u];
1005
- return n.add(l), n.size === 1 && (r = t(o, i) || Q), a(e), () => {
1006
- n.delete(l), n.size === 0 && r && (r(), r = null);
1028
+ return r.add(l), r.size === 1 && (n = t(i, o) || Q), a(e), () => {
1029
+ r.delete(l), r.size === 0 && n && (n(), n = null);
1007
1030
  };
1008
1031
  }
1009
- return { set: o, update: i, subscribe: s };
1032
+ return { set: i, update: o, subscribe: s };
1010
1033
  }
1011
- function ye(e, t, r) {
1012
- const n = !Array.isArray(e), o = n ? [e] : e;
1013
- if (!o.every(Boolean))
1034
+ function _e(e, t, n) {
1035
+ const r = !Array.isArray(e), i = r ? [e] : e;
1036
+ if (!i.every(Boolean))
1014
1037
  throw new Error("derived() expects stores as input, got a falsy value");
1015
- const i = t.length < 2;
1016
- return In(r, (s, a) => {
1038
+ const o = t.length < 2;
1039
+ return Mr(n, (s, a) => {
1017
1040
  let u = !1;
1018
1041
  const l = [];
1019
1042
  let c = 0, h = Q;
@@ -1021,10 +1044,10 @@ function ye(e, t, r) {
1021
1044
  if (c)
1022
1045
  return;
1023
1046
  h();
1024
- const m = t(n ? l[0] : l, s, a);
1025
- i ? s(m) : h = _t(m) ? m : Q;
1026
- }, b = o.map(
1027
- (m, d) => ir(
1047
+ const m = t(r ? l[0] : l, s, a);
1048
+ o ? s(m) : h = mt(m) ? m : Q;
1049
+ }, b = i.map(
1050
+ (m, d) => tn(
1028
1051
  m,
1029
1052
  (C) => {
1030
1053
  l[d] = C, c &= ~(1 << d), u && f();
@@ -1039,153 +1062,114 @@ function ye(e, t, r) {
1039
1062
  };
1040
1063
  });
1041
1064
  }
1042
- function Nn(e) {
1043
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1065
+ function Hr(e) {
1066
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1044
1067
  }
1045
- var Ln = function(t) {
1046
- return Rn(t) && !$n(t);
1068
+ var Ir = function(t) {
1069
+ return Or(t) && !Nr(t);
1047
1070
  };
1048
- function Rn(e) {
1071
+ function Or(e) {
1049
1072
  return !!e && typeof e == "object";
1050
1073
  }
1051
- function $n(e) {
1074
+ function Nr(e) {
1052
1075
  var t = Object.prototype.toString.call(e);
1053
- return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
1076
+ return t === "[object RegExp]" || t === "[object Date]" || $r(e);
1054
1077
  }
1055
- var Fn = typeof Symbol == "function" && Symbol.for, Un = Fn ? Symbol.for("react.element") : 60103;
1056
- function Dn(e) {
1057
- return e.$$typeof === Un;
1078
+ var Lr = typeof Symbol == "function" && Symbol.for, Rr = Lr ? Symbol.for("react.element") : 60103;
1079
+ function $r(e) {
1080
+ return e.$$typeof === Rr;
1058
1081
  }
1059
- function Gn(e) {
1082
+ function Fr(e) {
1060
1083
  return Array.isArray(e) ? [] : {};
1061
1084
  }
1062
- function Ce(e, t) {
1063
- return t.clone !== !1 && t.isMergeableObject(e) ? me(Gn(e), e, t) : e;
1085
+ function Se(e, t) {
1086
+ return t.clone !== !1 && t.isMergeableObject(e) ? be(Fr(e), e, t) : e;
1064
1087
  }
1065
- function kn(e, t, r) {
1066
- return e.concat(t).map(function(n) {
1067
- return Ce(n, r);
1088
+ function Ur(e, t, n) {
1089
+ return e.concat(t).map(function(r) {
1090
+ return Se(r, n);
1068
1091
  });
1069
1092
  }
1070
- function jn(e, t) {
1093
+ function Dr(e, t) {
1071
1094
  if (!t.customMerge)
1072
- return me;
1073
- var r = t.customMerge(e);
1074
- return typeof r == "function" ? r : me;
1095
+ return be;
1096
+ var n = t.customMerge(e);
1097
+ return typeof n == "function" ? n : be;
1075
1098
  }
1076
- function Wn(e) {
1099
+ function Gr(e) {
1077
1100
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1078
1101
  return Object.propertyIsEnumerable.call(e, t);
1079
1102
  }) : [];
1080
1103
  }
1081
- function Lt(e) {
1082
- return Object.keys(e).concat(Wn(e));
1104
+ function Ht(e) {
1105
+ return Object.keys(e).concat(Gr(e));
1083
1106
  }
1084
- function pr(e, t) {
1107
+ function hn(e, t) {
1085
1108
  try {
1086
1109
  return t in e;
1087
1110
  } catch {
1088
1111
  return !1;
1089
1112
  }
1090
1113
  }
1091
- function Vn(e, t) {
1092
- return pr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1114
+ function kr(e, t) {
1115
+ return hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1093
1116
  }
1094
- function zn(e, t, r) {
1095
- var n = {};
1096
- return r.isMergeableObject(e) && Lt(e).forEach(function(o) {
1097
- n[o] = Ce(e[o], r);
1098
- }), Lt(t).forEach(function(o) {
1099
- Vn(e, o) || (pr(e, o) && r.isMergeableObject(t[o]) ? n[o] = jn(o, r)(e[o], t[o], r) : n[o] = Ce(t[o], r));
1100
- }), n;
1101
- }
1102
- function me(e, t, r) {
1103
- r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || Ln, r.cloneUnlessOtherwiseSpecified = Ce;
1104
- var n = Array.isArray(t), o = Array.isArray(e), i = n === o;
1105
- return i ? n ? r.arrayMerge(e, t, r) : zn(e, t, r) : Ce(t, r);
1106
- }
1107
- me.all = function(t, r) {
1117
+ function jr(e, t, n) {
1118
+ var r = {};
1119
+ return n.isMergeableObject(e) && Ht(e).forEach(function(i) {
1120
+ r[i] = Se(e[i], n);
1121
+ }), Ht(t).forEach(function(i) {
1122
+ kr(e, i) || (hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Dr(i, n)(e[i], t[i], n) : r[i] = Se(t[i], n));
1123
+ }), r;
1124
+ }
1125
+ function be(e, t, n) {
1126
+ n = n || {}, n.arrayMerge = n.arrayMerge || Ur, n.isMergeableObject = n.isMergeableObject || Ir, n.cloneUnlessOtherwiseSpecified = Se;
1127
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1128
+ return o ? r ? n.arrayMerge(e, t, n) : jr(e, t, n) : Se(t, n);
1129
+ }
1130
+ be.all = function(t, n) {
1108
1131
  if (!Array.isArray(t))
1109
1132
  throw new Error("first argument should be an array");
1110
- return t.reduce(function(n, o) {
1111
- return me(n, o, r);
1133
+ return t.reduce(function(r, i) {
1134
+ return be(r, i, n);
1112
1135
  }, {});
1113
1136
  };
1114
- var Xn = me, Zn = Xn;
1115
- const qn = /* @__PURE__ */ Nn(Zn);
1116
- var ht = function(e, t) {
1117
- return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1118
- r.__proto__ = n;
1119
- } || function(r, n) {
1120
- for (var o in n)
1121
- Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
1122
- }, ht(e, t);
1123
- };
1124
- function We(e, t) {
1125
- if (typeof t != "function" && t !== null)
1126
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1127
- ht(e, t);
1128
- function r() {
1129
- this.constructor = e;
1130
- }
1131
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1132
- }
1133
- var Y = function() {
1134
- return Y = Object.assign || function(t) {
1135
- for (var r, n = 1, o = arguments.length; n < o; n++) {
1136
- r = arguments[n];
1137
- for (var i in r)
1138
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1139
- }
1140
- return t;
1141
- }, Y.apply(this, arguments);
1142
- };
1143
- function Qn(e, t) {
1144
- var r = {};
1145
- for (var n in e)
1146
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1147
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1148
- for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1149
- t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1150
- return r;
1151
- }
1152
- function Qe(e, t, r) {
1153
- if (r || arguments.length === 2)
1154
- for (var n = 0, o = t.length, i; n < o; n++)
1155
- (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
1156
- return e.concat(i || Array.prototype.slice.call(t));
1157
- }
1158
- function Je(e, t) {
1159
- var r = t && t.cache ? t.cache : no, n = t && t.serializer ? t.serializer : to, o = t && t.strategy ? t.strategy : Kn;
1160
- return o(e, {
1161
- cache: r,
1162
- serializer: n
1137
+ var Wr = be, Vr = Wr;
1138
+ const zr = /* @__PURE__ */ Hr(Vr);
1139
+ function Ze(e, t) {
1140
+ var n = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
1141
+ return i(e, {
1142
+ cache: n,
1143
+ serializer: r
1163
1144
  });
1164
1145
  }
1165
- function Jn(e) {
1146
+ function Xr(e) {
1166
1147
  return e == null || typeof e == "number" || typeof e == "boolean";
1167
1148
  }
1168
- function Yn(e, t, r, n) {
1169
- var o = Jn(n) ? n : r(n), i = t.get(o);
1170
- return typeof i > "u" && (i = e.call(this, n), t.set(o, i)), i;
1149
+ function fn(e, t, n, r) {
1150
+ var i = Xr(r) ? r : n(r), o = t.get(i);
1151
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
1171
1152
  }
1172
- function mr(e, t, r) {
1173
- var n = Array.prototype.slice.call(arguments, 3), o = r(n), i = t.get(o);
1174
- return typeof i > "u" && (i = e.apply(this, n), t.set(o, i)), i;
1153
+ function dn(e, t, n) {
1154
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1155
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
1175
1156
  }
1176
- function br(e, t, r, n, o) {
1177
- return r.bind(t, e, n, o);
1157
+ function gt(e, t, n, r, i) {
1158
+ return n.bind(t, e, r, i);
1178
1159
  }
1179
- function Kn(e, t) {
1180
- var r = e.length === 1 ? Yn : mr;
1181
- return br(e, this, r, t.cache.create(), t.serializer);
1160
+ function Zr(e, t) {
1161
+ var n = e.length === 1 ? fn : dn;
1162
+ return gt(e, this, n, t.cache.create(), t.serializer);
1182
1163
  }
1183
- function eo(e, t) {
1184
- return br(e, this, mr, t.cache.create(), t.serializer);
1164
+ function qr(e, t) {
1165
+ return gt(e, this, dn, t.cache.create(), t.serializer);
1185
1166
  }
1186
- var to = function() {
1167
+ function Qr(e, t) {
1168
+ return gt(e, this, fn, t.cache.create(), t.serializer);
1169
+ }
1170
+ var Jr = function() {
1187
1171
  return JSON.stringify(arguments);
1188
- }, ro = (
1172
+ }, Yr = (
1189
1173
  /** @class */
1190
1174
  function() {
1191
1175
  function e() {
@@ -1193,82 +1177,73 @@ var to = function() {
1193
1177
  }
1194
1178
  return e.prototype.get = function(t) {
1195
1179
  return this.cache[t];
1196
- }, e.prototype.set = function(t, r) {
1197
- this.cache[t] = r;
1180
+ }, e.prototype.set = function(t, n) {
1181
+ this.cache[t] = n;
1198
1182
  }, e;
1199
1183
  }()
1200
- ), no = {
1184
+ ), Kr = {
1201
1185
  create: function() {
1202
- return new ro();
1186
+ return new Yr();
1203
1187
  }
1204
- }, Ye = {
1205
- variadic: eo
1206
- }, Ue = function() {
1207
- return Ue = Object.assign || function(t) {
1208
- for (var r, n = 1, o = arguments.length; n < o; n++) {
1209
- r = arguments[n];
1210
- for (var i in r)
1211
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1212
- }
1213
- return t;
1214
- }, Ue.apply(this, arguments);
1215
- };
1216
- var x;
1188
+ }, qe = {
1189
+ variadic: qr,
1190
+ monadic: Qr
1191
+ }, x;
1217
1192
  (function(e) {
1218
1193
  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";
1219
1194
  })(x || (x = {}));
1220
- var H;
1195
+ var I;
1221
1196
  (function(e) {
1222
1197
  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";
1223
- })(H || (H = {}));
1224
- var be;
1198
+ })(I || (I = {}));
1199
+ var ge;
1225
1200
  (function(e) {
1226
1201
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1227
- })(be || (be = {}));
1228
- function Rt(e) {
1229
- return e.type === H.literal;
1202
+ })(ge || (ge = {}));
1203
+ function It(e) {
1204
+ return e.type === I.literal;
1230
1205
  }
1231
- function oo(e) {
1232
- return e.type === H.argument;
1206
+ function ei(e) {
1207
+ return e.type === I.argument;
1233
1208
  }
1234
- function gr(e) {
1235
- return e.type === H.number;
1209
+ function pn(e) {
1210
+ return e.type === I.number;
1236
1211
  }
1237
- function vr(e) {
1238
- return e.type === H.date;
1212
+ function mn(e) {
1213
+ return e.type === I.date;
1239
1214
  }
1240
- function yr(e) {
1241
- return e.type === H.time;
1215
+ function bn(e) {
1216
+ return e.type === I.time;
1242
1217
  }
1243
- function _r(e) {
1244
- return e.type === H.select;
1218
+ function gn(e) {
1219
+ return e.type === I.select;
1245
1220
  }
1246
- function Br(e) {
1247
- return e.type === H.plural;
1221
+ function vn(e) {
1222
+ return e.type === I.plural;
1248
1223
  }
1249
- function io(e) {
1250
- return e.type === H.pound;
1224
+ function ti(e) {
1225
+ return e.type === I.pound;
1251
1226
  }
1252
- function Er(e) {
1253
- return e.type === H.tag;
1227
+ function yn(e) {
1228
+ return e.type === I.tag;
1254
1229
  }
1255
- function xr(e) {
1256
- return !!(e && typeof e == "object" && e.type === be.number);
1230
+ function _n(e) {
1231
+ return !!(e && typeof e == "object" && e.type === ge.number);
1257
1232
  }
1258
- function ft(e) {
1259
- return !!(e && typeof e == "object" && e.type === be.dateTime);
1233
+ function at(e) {
1234
+ return !!(e && typeof e == "object" && e.type === ge.dateTime);
1260
1235
  }
1261
- var wr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, so = /(?:[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;
1262
- function ao(e) {
1236
+ var Bn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[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;
1237
+ function ri(e) {
1263
1238
  var t = {};
1264
- return e.replace(so, function(r) {
1265
- var n = r.length;
1266
- switch (r[0]) {
1239
+ return e.replace(ni, function(n) {
1240
+ var r = n.length;
1241
+ switch (n[0]) {
1267
1242
  case "G":
1268
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1243
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1269
1244
  break;
1270
1245
  case "y":
1271
- t.year = n === 2 ? "2-digit" : "numeric";
1246
+ t.year = r === 2 ? "2-digit" : "numeric";
1272
1247
  break;
1273
1248
  case "Y":
1274
1249
  case "u":
@@ -1280,30 +1255,30 @@ function ao(e) {
1280
1255
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1281
1256
  case "M":
1282
1257
  case "L":
1283
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1258
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1284
1259
  break;
1285
1260
  case "w":
1286
1261
  case "W":
1287
1262
  throw new RangeError("`w/W` (week) patterns are not supported");
1288
1263
  case "d":
1289
- t.day = ["numeric", "2-digit"][n - 1];
1264
+ t.day = ["numeric", "2-digit"][r - 1];
1290
1265
  break;
1291
1266
  case "D":
1292
1267
  case "F":
1293
1268
  case "g":
1294
1269
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1295
1270
  case "E":
1296
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1271
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1297
1272
  break;
1298
1273
  case "e":
1299
- if (n < 4)
1274
+ if (r < 4)
1300
1275
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1301
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1276
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1302
1277
  break;
1303
1278
  case "c":
1304
- if (n < 4)
1279
+ if (r < 4)
1305
1280
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1306
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1281
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1307
1282
  break;
1308
1283
  case "a":
1309
1284
  t.hour12 = !0;
@@ -1312,32 +1287,32 @@ function ao(e) {
1312
1287
  case "B":
1313
1288
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1314
1289
  case "h":
1315
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1290
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1316
1291
  break;
1317
1292
  case "H":
1318
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1293
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1319
1294
  break;
1320
1295
  case "K":
1321
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1296
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1322
1297
  break;
1323
1298
  case "k":
1324
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1299
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1325
1300
  break;
1326
1301
  case "j":
1327
1302
  case "J":
1328
1303
  case "C":
1329
1304
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1330
1305
  case "m":
1331
- t.minute = ["numeric", "2-digit"][n - 1];
1306
+ t.minute = ["numeric", "2-digit"][r - 1];
1332
1307
  break;
1333
1308
  case "s":
1334
- t.second = ["numeric", "2-digit"][n - 1];
1309
+ t.second = ["numeric", "2-digit"][r - 1];
1335
1310
  break;
1336
1311
  case "S":
1337
1312
  case "A":
1338
1313
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1339
1314
  case "z":
1340
- t.timeZoneName = n < 4 ? "short" : "long";
1315
+ t.timeZoneName = r < 4 ? "short" : "long";
1341
1316
  break;
1342
1317
  case "Z":
1343
1318
  case "O":
@@ -1350,24 +1325,14 @@ function ao(e) {
1350
1325
  return "";
1351
1326
  }), t;
1352
1327
  }
1353
- var I = function() {
1354
- return I = Object.assign || function(t) {
1355
- for (var r, n = 1, o = arguments.length; n < o; n++) {
1356
- r = arguments[n];
1357
- for (var i in r)
1358
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1359
- }
1360
- return t;
1361
- }, I.apply(this, arguments);
1362
- };
1363
- var uo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1364
- function lo(e) {
1328
+ var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1329
+ function oi(e) {
1365
1330
  if (e.length === 0)
1366
1331
  throw new Error("Number skeleton cannot be empty");
1367
- for (var t = e.split(uo).filter(function(f) {
1332
+ for (var t = e.split(ii).filter(function(f) {
1368
1333
  return f.length > 0;
1369
- }), r = [], n = 0, o = t; n < o.length; n++) {
1370
- var i = o[n], s = i.split("/");
1334
+ }), n = [], r = 0, i = t; r < i.length; r++) {
1335
+ var o = i[r], s = o.split("/");
1371
1336
  if (s.length === 0)
1372
1337
  throw new Error("Invalid number skeleton");
1373
1338
  for (var a = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
@@ -1375,21 +1340,21 @@ function lo(e) {
1375
1340
  if (h.length === 0)
1376
1341
  throw new Error("Invalid number skeleton");
1377
1342
  }
1378
- r.push({ stem: a, options: u });
1343
+ n.push({ stem: a, options: u });
1379
1344
  }
1380
- return r;
1345
+ return n;
1381
1346
  }
1382
- function co(e) {
1347
+ function si(e) {
1383
1348
  return e.replace(/^(.*?)-/, "");
1384
1349
  }
1385
- var $t = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, ho = /(\*)(0+)|(#+)(0+)|(0+)/g, Sr = /^(0+)$/;
1386
- function Ft(e) {
1350
+ var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, En = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, xn = /^(0+)$/;
1351
+ function Nt(e) {
1387
1352
  var t = {};
1388
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, o) {
1389
- return typeof o != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : o === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof o == "string" ? o.length : 0)), "";
1353
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(En, function(n, r, i) {
1354
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1390
1355
  }), t;
1391
1356
  }
1392
- function Ar(e) {
1357
+ function wn(e) {
1393
1358
  switch (e) {
1394
1359
  case "sign-auto":
1395
1360
  return {
@@ -1429,28 +1394,28 @@ function Ar(e) {
1429
1394
  };
1430
1395
  }
1431
1396
  }
1432
- function fo(e) {
1397
+ function ui(e) {
1433
1398
  var t;
1434
1399
  if (e[0] === "E" && e[1] === "E" ? (t = {
1435
1400
  notation: "engineering"
1436
1401
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1437
1402
  notation: "scientific"
1438
1403
  }, e = e.slice(1)), t) {
1439
- var r = e.slice(0, 2);
1440
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Sr.test(e))
1404
+ var n = e.slice(0, 2);
1405
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xn.test(e))
1441
1406
  throw new Error("Malformed concise eng/scientific notation");
1442
1407
  t.minimumIntegerDigits = e.length;
1443
1408
  }
1444
1409
  return t;
1445
1410
  }
1446
- function Ut(e) {
1447
- var t = {}, r = Ar(e);
1448
- return r || t;
1411
+ function Lt(e) {
1412
+ var t = {}, n = wn(e);
1413
+ return n || t;
1449
1414
  }
1450
- function po(e) {
1451
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1452
- var o = n[r];
1453
- switch (o.stem) {
1415
+ function li(e) {
1416
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
1417
+ var i = r[n];
1418
+ switch (i.stem) {
1454
1419
  case "percent":
1455
1420
  case "%":
1456
1421
  t.style = "percent";
@@ -1459,7 +1424,7 @@ function po(e) {
1459
1424
  t.style = "percent", t.scale = 100;
1460
1425
  continue;
1461
1426
  case "currency":
1462
- t.style = "currency", t.currency = o.options[0];
1427
+ t.style = "currency", t.currency = i.options[0];
1463
1428
  continue;
1464
1429
  case "group-off":
1465
1430
  case ",_":
@@ -1471,7 +1436,7 @@ function po(e) {
1471
1436
  continue;
1472
1437
  case "measure-unit":
1473
1438
  case "unit":
1474
- t.style = "unit", t.unit = co(o.options[0]);
1439
+ t.style = "unit", t.unit = si(i.options[0]);
1475
1440
  continue;
1476
1441
  case "compact-short":
1477
1442
  case "K":
@@ -1482,13 +1447,13 @@ function po(e) {
1482
1447
  t.notation = "compact", t.compactDisplay = "long";
1483
1448
  continue;
1484
1449
  case "scientific":
1485
- t = I(I(I({}, t), { notation: "scientific" }), o.options.reduce(function(u, l) {
1486
- return I(I({}, u), Ut(l));
1450
+ t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1451
+ return A(A({}, u), Lt(l));
1487
1452
  }, {}));
1488
1453
  continue;
1489
1454
  case "engineering":
1490
- t = I(I(I({}, t), { notation: "engineering" }), o.options.reduce(function(u, l) {
1491
- return I(I({}, u), Ut(l));
1455
+ t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1456
+ return A(A({}, u), Lt(l));
1492
1457
  }, {}));
1493
1458
  continue;
1494
1459
  case "notation-simple":
@@ -1507,7 +1472,7 @@ function po(e) {
1507
1472
  t.currencyDisplay = "symbol";
1508
1473
  continue;
1509
1474
  case "scale":
1510
- t.scale = parseFloat(o.options[0]);
1475
+ t.scale = parseFloat(i.options[0]);
1511
1476
  continue;
1512
1477
  case "rounding-mode-floor":
1513
1478
  t.roundingMode = "floor";
@@ -1531,9 +1496,9 @@ function po(e) {
1531
1496
  t.roundingMode = "halfExpand";
1532
1497
  continue;
1533
1498
  case "integer-width":
1534
- if (o.options.length > 1)
1499
+ if (i.options.length > 1)
1535
1500
  throw new RangeError("integer-width stems only accept a single optional option");
1536
- o.options[0].replace(ho, function(u, l, c, h, f, b) {
1501
+ i.options[0].replace(ai, function(u, l, c, h, f, b) {
1537
1502
  if (l)
1538
1503
  t.minimumIntegerDigits = c.length;
1539
1504
  else {
@@ -1546,32 +1511,32 @@ function po(e) {
1546
1511
  });
1547
1512
  continue;
1548
1513
  }
1549
- if (Sr.test(o.stem)) {
1550
- t.minimumIntegerDigits = o.stem.length;
1514
+ if (xn.test(i.stem)) {
1515
+ t.minimumIntegerDigits = i.stem.length;
1551
1516
  continue;
1552
1517
  }
1553
- if ($t.test(o.stem)) {
1554
- if (o.options.length > 1)
1518
+ if (Ot.test(i.stem)) {
1519
+ if (i.options.length > 1)
1555
1520
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1556
- o.stem.replace($t, function(u, l, c, h, f, b) {
1521
+ i.stem.replace(Ot, function(u, l, c, h, f, b) {
1557
1522
  return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && b ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1558
1523
  });
1559
- var i = o.options[0];
1560
- i === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = I(I({}, t), Ft(i)));
1524
+ var o = i.options[0];
1525
+ o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Nt(o)));
1561
1526
  continue;
1562
1527
  }
1563
- if (Cr.test(o.stem)) {
1564
- t = I(I({}, t), Ft(o.stem));
1528
+ if (En.test(i.stem)) {
1529
+ t = A(A({}, t), Nt(i.stem));
1565
1530
  continue;
1566
1531
  }
1567
- var s = Ar(o.stem);
1568
- s && (t = I(I({}, t), s));
1569
- var a = fo(o.stem);
1570
- a && (t = I(I({}, t), a));
1532
+ var s = wn(i.stem);
1533
+ s && (t = A(A({}, t), s));
1534
+ var a = ui(i.stem);
1535
+ a && (t = A(A({}, t), a));
1571
1536
  }
1572
1537
  return t;
1573
1538
  }
1574
- var Ie = {
1539
+ var Oe = {
1575
1540
  "001": [
1576
1541
  "H",
1577
1542
  "h"
@@ -2986,23 +2951,23 @@ var Ie = {
2986
2951
  "h"
2987
2952
  ]
2988
2953
  };
2989
- function mo(e, t) {
2990
- for (var r = "", n = 0; n < e.length; n++) {
2991
- var o = e.charAt(n);
2992
- if (o === "j") {
2993
- for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === o; )
2994
- i++, n++;
2995
- var s = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = bo(t);
2954
+ function ci(e, t) {
2955
+ for (var n = "", r = 0; r < e.length; r++) {
2956
+ var i = e.charAt(r);
2957
+ if (i === "j") {
2958
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2959
+ o++, r++;
2960
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = hi(t);
2996
2961
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2997
- r += u;
2962
+ n += u;
2998
2963
  for (; s-- > 0; )
2999
- r = l + r;
2964
+ n = l + n;
3000
2965
  } else
3001
- o === "J" ? r += "H" : r += o;
2966
+ i === "J" ? n += "H" : n += i;
3002
2967
  }
3003
- return r;
2968
+ return n;
3004
2969
  }
3005
- function bo(e) {
2970
+ function hi(e) {
3006
2971
  var t = e.hourCycle;
3007
2972
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3008
2973
  e.hourCycles && // @ts-ignore
@@ -3019,73 +2984,73 @@ function bo(e) {
3019
2984
  default:
3020
2985
  throw new Error("Invalid hourCycle");
3021
2986
  }
3022
- var r = e.language, n;
3023
- r !== "root" && (n = e.maximize().region);
3024
- var o = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
3025
- return o[0];
2987
+ var n = e.language, r;
2988
+ n !== "root" && (r = e.maximize().region);
2989
+ var i = Oe[r || ""] || Oe[n || ""] || Oe["".concat(n, "-001")] || Oe["001"];
2990
+ return i[0];
3026
2991
  }
3027
- var Ke, go = new RegExp("^".concat(wr.source, "*")), vo = new RegExp("".concat(wr.source, "*$"));
2992
+ var Qe, fi = new RegExp("^".concat(Bn.source, "*")), di = new RegExp("".concat(Bn.source, "*$"));
3028
2993
  function w(e, t) {
3029
2994
  return { start: e, end: t };
3030
2995
  }
3031
- var yo = !!String.prototype.startsWith && "_a".startsWith("a", 1), _o = !!String.fromCodePoint, Bo = !!Object.fromEntries, Eo = !!String.prototype.codePointAt, xo = !!String.prototype.trimStart, wo = !!String.prototype.trimEnd, Co = !!Number.isSafeInteger, So = Co ? Number.isSafeInteger : function(e) {
2996
+ var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), mi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, vi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, Bi = _i ? Number.isSafeInteger : function(e) {
3032
2997
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3033
- }, dt = !0;
2998
+ }, ut = !0;
3034
2999
  try {
3035
- var Ao = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3036
- dt = ((Ke = Ao.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
3000
+ var Ei = Sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3001
+ ut = ((Qe = Ei.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
3037
3002
  } catch {
3038
- dt = !1;
3003
+ ut = !1;
3039
3004
  }
3040
- var Dt = yo ? (
3005
+ var Rt = pi ? (
3041
3006
  // Native
3042
- function(t, r, n) {
3043
- return t.startsWith(r, n);
3007
+ function(t, n, r) {
3008
+ return t.startsWith(n, r);
3044
3009
  }
3045
3010
  ) : (
3046
3011
  // For IE11
3047
- function(t, r, n) {
3048
- return t.slice(n, n + r.length) === r;
3012
+ function(t, n, r) {
3013
+ return t.slice(r, r + n.length) === n;
3049
3014
  }
3050
- ), pt = _o ? String.fromCodePoint : (
3015
+ ), lt = mi ? String.fromCodePoint : (
3051
3016
  // IE11
3052
3017
  function() {
3053
- for (var t = [], r = 0; r < arguments.length; r++)
3054
- t[r] = arguments[r];
3055
- for (var n = "", o = t.length, i = 0, s; o > i; ) {
3056
- if (s = t[i++], s > 1114111)
3018
+ for (var t = [], n = 0; n < arguments.length; n++)
3019
+ t[n] = arguments[n];
3020
+ for (var r = "", i = t.length, o = 0, s; i > o; ) {
3021
+ if (s = t[o++], s > 1114111)
3057
3022
  throw RangeError(s + " is not a valid code point");
3058
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3023
+ r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3059
3024
  }
3060
- return n;
3025
+ return r;
3061
3026
  }
3062
- ), Gt = (
3027
+ ), $t = (
3063
3028
  // native
3064
- Bo ? Object.fromEntries : (
3029
+ bi ? Object.fromEntries : (
3065
3030
  // Ponyfill
3066
3031
  function(t) {
3067
- for (var r = {}, n = 0, o = t; n < o.length; n++) {
3068
- var i = o[n], s = i[0], a = i[1];
3069
- r[s] = a;
3032
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
3033
+ var o = i[r], s = o[0], a = o[1];
3034
+ n[s] = a;
3070
3035
  }
3071
- return r;
3036
+ return n;
3072
3037
  }
3073
3038
  )
3074
- ), Tr = Eo ? (
3039
+ ), Cn = gi ? (
3075
3040
  // Native
3076
- function(t, r) {
3077
- return t.codePointAt(r);
3041
+ function(t, n) {
3042
+ return t.codePointAt(n);
3078
3043
  }
3079
3044
  ) : (
3080
3045
  // IE 11
3081
- function(t, r) {
3082
- var n = t.length;
3083
- if (!(r < 0 || r >= n)) {
3084
- var o = t.charCodeAt(r), i;
3085
- return o < 55296 || o > 56319 || r + 1 === n || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
3046
+ function(t, n) {
3047
+ var r = t.length;
3048
+ if (!(n < 0 || n >= r)) {
3049
+ var i = t.charCodeAt(n), o;
3050
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3086
3051
  }
3087
3052
  }
3088
- ), To = xo ? (
3053
+ ), xi = vi ? (
3089
3054
  // Native
3090
3055
  function(t) {
3091
3056
  return t.trimStart();
@@ -3093,9 +3058,9 @@ var Dt = yo ? (
3093
3058
  ) : (
3094
3059
  // Ponyfill
3095
3060
  function(t) {
3096
- return t.replace(go, "");
3061
+ return t.replace(fi, "");
3097
3062
  }
3098
- ), Po = wo ? (
3063
+ ), wi = yi ? (
3099
3064
  // Native
3100
3065
  function(t) {
3101
3066
  return t.trimEnd();
@@ -3103,143 +3068,143 @@ var Dt = yo ? (
3103
3068
  ) : (
3104
3069
  // Ponyfill
3105
3070
  function(t) {
3106
- return t.replace(vo, "");
3071
+ return t.replace(di, "");
3107
3072
  }
3108
3073
  );
3109
- function Pr(e, t) {
3074
+ function Sn(e, t) {
3110
3075
  return new RegExp(e, t);
3111
3076
  }
3112
- var mt;
3113
- if (dt) {
3114
- var kt = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3115
- mt = function(t, r) {
3116
- var n;
3117
- kt.lastIndex = r;
3118
- var o = kt.exec(t);
3119
- return (n = o[1]) !== null && n !== void 0 ? n : "";
3077
+ var ct;
3078
+ if (ut) {
3079
+ var Ft = Sn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3080
+ ct = function(t, n) {
3081
+ var r;
3082
+ Ft.lastIndex = n;
3083
+ var i = Ft.exec(t);
3084
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
3120
3085
  };
3121
3086
  } else
3122
- mt = function(t, r) {
3123
- for (var n = []; ; ) {
3124
- var o = Tr(t, r);
3125
- if (o === void 0 || Mr(o) || Io(o))
3087
+ ct = function(t, n) {
3088
+ for (var r = []; ; ) {
3089
+ var i = Cn(t, n);
3090
+ if (i === void 0 || An(i) || Ti(i))
3126
3091
  break;
3127
- n.push(o), r += o >= 65536 ? 2 : 1;
3092
+ r.push(i), n += i >= 65536 ? 2 : 1;
3128
3093
  }
3129
- return pt.apply(void 0, n);
3094
+ return lt.apply(void 0, r);
3130
3095
  };
3131
- var Mo = (
3096
+ var Ci = (
3132
3097
  /** @class */
3133
3098
  function() {
3134
- function e(t, r) {
3135
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3099
+ function e(t, n) {
3100
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
3136
3101
  }
3137
3102
  return e.prototype.parse = function() {
3138
3103
  if (this.offset() !== 0)
3139
3104
  throw Error("parser can only be used once");
3140
3105
  return this.parseMessage(0, "", !1);
3141
- }, e.prototype.parseMessage = function(t, r, n) {
3142
- for (var o = []; !this.isEOF(); ) {
3143
- var i = this.char();
3144
- if (i === 123) {
3145
- var s = this.parseArgument(t, n);
3106
+ }, e.prototype.parseMessage = function(t, n, r) {
3107
+ for (var i = []; !this.isEOF(); ) {
3108
+ var o = this.char();
3109
+ if (o === 123) {
3110
+ var s = this.parseArgument(t, r);
3146
3111
  if (s.err)
3147
3112
  return s;
3148
- o.push(s.val);
3113
+ i.push(s.val);
3149
3114
  } else {
3150
- if (i === 125 && t > 0)
3115
+ if (o === 125 && t > 0)
3151
3116
  break;
3152
- if (i === 35 && (r === "plural" || r === "selectordinal")) {
3117
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
3153
3118
  var a = this.clonePosition();
3154
- this.bump(), o.push({
3155
- type: H.pound,
3119
+ this.bump(), i.push({
3120
+ type: I.pound,
3156
3121
  location: w(a, this.clonePosition())
3157
3122
  });
3158
- } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
3159
- if (n)
3123
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3124
+ if (r)
3160
3125
  break;
3161
3126
  return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
3162
- } else if (i === 60 && !this.ignoreTag && bt(this.peek() || 0)) {
3163
- var s = this.parseTag(t, r);
3127
+ } else if (o === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
3128
+ var s = this.parseTag(t, n);
3164
3129
  if (s.err)
3165
3130
  return s;
3166
- o.push(s.val);
3131
+ i.push(s.val);
3167
3132
  } else {
3168
- var s = this.parseLiteral(t, r);
3133
+ var s = this.parseLiteral(t, n);
3169
3134
  if (s.err)
3170
3135
  return s;
3171
- o.push(s.val);
3136
+ i.push(s.val);
3172
3137
  }
3173
3138
  }
3174
3139
  }
3175
- return { val: o, err: null };
3176
- }, e.prototype.parseTag = function(t, r) {
3177
- var n = this.clonePosition();
3140
+ return { val: i, err: null };
3141
+ }, e.prototype.parseTag = function(t, n) {
3142
+ var r = this.clonePosition();
3178
3143
  this.bump();
3179
- var o = this.parseTagName();
3144
+ var i = this.parseTagName();
3180
3145
  if (this.bumpSpace(), this.bumpIf("/>"))
3181
3146
  return {
3182
3147
  val: {
3183
- type: H.literal,
3184
- value: "<".concat(o, "/>"),
3185
- location: w(n, this.clonePosition())
3148
+ type: I.literal,
3149
+ value: "<".concat(i, "/>"),
3150
+ location: w(r, this.clonePosition())
3186
3151
  },
3187
3152
  err: null
3188
3153
  };
3189
3154
  if (this.bumpIf(">")) {
3190
- var i = this.parseMessage(t + 1, r, !0);
3191
- if (i.err)
3192
- return i;
3193
- var s = i.val, a = this.clonePosition();
3155
+ var o = this.parseMessage(t + 1, n, !0);
3156
+ if (o.err)
3157
+ return o;
3158
+ var s = o.val, a = this.clonePosition();
3194
3159
  if (this.bumpIf("</")) {
3195
- if (this.isEOF() || !bt(this.char()))
3160
+ if (this.isEOF() || !ht(this.char()))
3196
3161
  return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
3197
3162
  var u = this.clonePosition(), l = this.parseTagName();
3198
- return o !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3163
+ return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3199
3164
  val: {
3200
- type: H.tag,
3201
- value: o,
3165
+ type: I.tag,
3166
+ value: i,
3202
3167
  children: s,
3203
- location: w(n, this.clonePosition())
3168
+ location: w(r, this.clonePosition())
3204
3169
  },
3205
3170
  err: null
3206
3171
  } : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
3207
3172
  } else
3208
- return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
3173
+ return this.error(x.UNCLOSED_TAG, w(r, this.clonePosition()));
3209
3174
  } else
3210
- return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
3175
+ return this.error(x.INVALID_TAG, w(r, this.clonePosition()));
3211
3176
  }, e.prototype.parseTagName = function() {
3212
3177
  var t = this.offset();
3213
- for (this.bump(); !this.isEOF() && Oo(this.char()); )
3178
+ for (this.bump(); !this.isEOF() && Ai(this.char()); )
3214
3179
  this.bump();
3215
3180
  return this.message.slice(t, this.offset());
3216
- }, e.prototype.parseLiteral = function(t, r) {
3217
- for (var n = this.clonePosition(), o = ""; ; ) {
3218
- var i = this.tryParseQuote(r);
3219
- if (i) {
3220
- o += i;
3181
+ }, e.prototype.parseLiteral = function(t, n) {
3182
+ for (var r = this.clonePosition(), i = ""; ; ) {
3183
+ var o = this.tryParseQuote(n);
3184
+ if (o) {
3185
+ i += o;
3221
3186
  continue;
3222
3187
  }
3223
- var s = this.tryParseUnquoted(t, r);
3188
+ var s = this.tryParseUnquoted(t, n);
3224
3189
  if (s) {
3225
- o += s;
3190
+ i += s;
3226
3191
  continue;
3227
3192
  }
3228
3193
  var a = this.tryParseLeftAngleBracket();
3229
3194
  if (a) {
3230
- o += a;
3195
+ i += a;
3231
3196
  continue;
3232
3197
  }
3233
3198
  break;
3234
3199
  }
3235
- var u = w(n, this.clonePosition());
3200
+ var u = w(r, this.clonePosition());
3236
3201
  return {
3237
- val: { type: H.literal, value: o, location: u },
3202
+ val: { type: I.literal, value: i, location: u },
3238
3203
  err: null
3239
3204
  };
3240
3205
  }, e.prototype.tryParseLeftAngleBracket = function() {
3241
3206
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3242
- !Ho(this.peek() || 0)) ? (this.bump(), "<") : null;
3207
+ !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
3243
3208
  }, e.prototype.tryParseQuote = function(t) {
3244
3209
  if (this.isEOF() || this.char() !== 39)
3245
3210
  return null;
@@ -3259,60 +3224,60 @@ var Mo = (
3259
3224
  return null;
3260
3225
  }
3261
3226
  this.bump();
3262
- var r = [this.char()];
3227
+ var n = [this.char()];
3263
3228
  for (this.bump(); !this.isEOF(); ) {
3264
- var n = this.char();
3265
- if (n === 39)
3229
+ var r = this.char();
3230
+ if (r === 39)
3266
3231
  if (this.peek() === 39)
3267
- r.push(39), this.bump();
3232
+ n.push(39), this.bump();
3268
3233
  else {
3269
3234
  this.bump();
3270
3235
  break;
3271
3236
  }
3272
3237
  else
3273
- r.push(n);
3238
+ n.push(r);
3274
3239
  this.bump();
3275
3240
  }
3276
- return pt.apply(void 0, r);
3277
- }, e.prototype.tryParseUnquoted = function(t, r) {
3241
+ return lt.apply(void 0, n);
3242
+ }, e.prototype.tryParseUnquoted = function(t, n) {
3278
3243
  if (this.isEOF())
3279
3244
  return null;
3280
- var n = this.char();
3281
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), pt(n));
3282
- }, e.prototype.parseArgument = function(t, r) {
3283
- var n = this.clonePosition();
3245
+ var r = this.char();
3246
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), lt(r));
3247
+ }, e.prototype.parseArgument = function(t, n) {
3248
+ var r = this.clonePosition();
3284
3249
  if (this.bump(), this.bumpSpace(), this.isEOF())
3285
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3250
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
3286
3251
  if (this.char() === 125)
3287
- return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
3288
- var o = this.parseIdentifierIfPossible().value;
3289
- if (!o)
3290
- return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3252
+ return this.bump(), this.error(x.EMPTY_ARGUMENT, w(r, this.clonePosition()));
3253
+ var i = this.parseIdentifierIfPossible().value;
3254
+ if (!i)
3255
+ return this.error(x.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
3291
3256
  if (this.bumpSpace(), this.isEOF())
3292
- return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
3257
+ return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
3293
3258
  switch (this.char()) {
3294
3259
  case 125:
3295
3260
  return this.bump(), {
3296
3261
  val: {
3297
- type: H.argument,
3262
+ type: I.argument,
3298
3263
  // value does not include the opening and closing braces.
3299
- value: o,
3300
- location: w(n, this.clonePosition())
3264
+ value: i,
3265
+ location: w(r, this.clonePosition())
3301
3266
  },
3302
3267
  err: null
3303
3268
  };
3304
3269
  case 44:
3305
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, o, n);
3270
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3306
3271
  default:
3307
- return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
3272
+ return this.error(x.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
3308
3273
  }
3309
3274
  }, e.prototype.parseIdentifierIfPossible = function() {
3310
- var t = this.clonePosition(), r = this.offset(), n = mt(this.message, r), o = r + n.length;
3311
- this.bumpTo(o);
3312
- var i = this.clonePosition(), s = w(t, i);
3313
- return { value: n, location: s };
3314
- }, e.prototype.parseArgumentOptions = function(t, r, n, o) {
3315
- var i, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3275
+ var t = this.clonePosition(), n = this.offset(), r = ct(this.message, n), i = n + r.length;
3276
+ this.bumpTo(i);
3277
+ var o = this.clonePosition(), s = w(t, o);
3278
+ return { value: r, location: s };
3279
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3280
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
3316
3281
  switch (a) {
3317
3282
  case "":
3318
3283
  return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, u));
@@ -3326,47 +3291,47 @@ var Mo = (
3326
3291
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
3327
3292
  if (h.err)
3328
3293
  return h;
3329
- var f = Po(h.val);
3294
+ var f = wi(h.val);
3330
3295
  if (f.length === 0)
3331
3296
  return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
3332
3297
  var b = w(c, this.clonePosition());
3333
3298
  l = { style: f, styleLocation: b };
3334
3299
  }
3335
- var m = this.tryParseArgumentClose(o);
3300
+ var m = this.tryParseArgumentClose(i);
3336
3301
  if (m.err)
3337
3302
  return m;
3338
- var d = w(o, this.clonePosition());
3339
- if (l && Dt(l?.style, "::", 0)) {
3340
- var C = To(l.style.slice(2));
3303
+ var d = w(i, this.clonePosition());
3304
+ if (l && Rt(l?.style, "::", 0)) {
3305
+ var C = xi(l.style.slice(2));
3341
3306
  if (a === "number") {
3342
3307
  var h = this.parseNumberSkeletonFromString(C, l.styleLocation);
3343
3308
  return h.err ? h : {
3344
- val: { type: H.number, value: n, location: d, style: h.val },
3309
+ val: { type: I.number, value: r, location: d, style: h.val },
3345
3310
  err: null
3346
3311
  };
3347
3312
  } else {
3348
3313
  if (C.length === 0)
3349
3314
  return this.error(x.EXPECT_DATE_TIME_SKELETON, d);
3350
3315
  var _ = C;
3351
- this.locale && (_ = mo(C, this.locale));
3316
+ this.locale && (_ = ci(C, this.locale));
3352
3317
  var f = {
3353
- type: be.dateTime,
3318
+ type: ge.dateTime,
3354
3319
  pattern: _,
3355
3320
  location: l.styleLocation,
3356
- parsedOptions: this.shouldParseSkeletons ? ao(_) : {}
3357
- }, y = a === "date" ? H.date : H.time;
3321
+ parsedOptions: this.shouldParseSkeletons ? ri(_) : {}
3322
+ }, y = a === "date" ? I.date : I.time;
3358
3323
  return {
3359
- val: { type: y, value: n, location: d, style: f },
3324
+ val: { type: y, value: r, location: d, style: f },
3360
3325
  err: null
3361
3326
  };
3362
3327
  }
3363
3328
  }
3364
3329
  return {
3365
3330
  val: {
3366
- type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3367
- value: n,
3331
+ type: a === "number" ? I.number : a === "date" ? I.date : I.time,
3332
+ value: r,
3368
3333
  location: d,
3369
- style: (i = l?.style) !== null && i !== void 0 ? i : null
3334
+ style: (o = l?.style) !== null && o !== void 0 ? o : null
3370
3335
  },
3371
3336
  err: null
3372
3337
  };
@@ -3374,11 +3339,11 @@ var Mo = (
3374
3339
  case "plural":
3375
3340
  case "selectordinal":
3376
3341
  case "select": {
3377
- var P = this.clonePosition();
3342
+ var M = this.clonePosition();
3378
3343
  if (this.bumpSpace(), !this.bumpIf(","))
3379
- return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(P, Ue({}, P)));
3344
+ return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(M, A({}, M)));
3380
3345
  this.bumpSpace();
3381
- var O = this.parseIdentifierIfPossible(), A = 0;
3346
+ var O = this.parseIdentifierIfPossible(), T = 0;
3382
3347
  if (a !== "select" && O.value === "offset") {
3383
3348
  if (!this.bumpIf(":"))
3384
3349
  return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
@@ -3386,29 +3351,29 @@ var Mo = (
3386
3351
  var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3387
3352
  if (h.err)
3388
3353
  return h;
3389
- this.bumpSpace(), O = this.parseIdentifierIfPossible(), A = h.val;
3354
+ this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = h.val;
3390
3355
  }
3391
- var E = this.tryParsePluralOrSelectOptions(t, a, r, O);
3356
+ var E = this.tryParsePluralOrSelectOptions(t, a, n, O);
3392
3357
  if (E.err)
3393
3358
  return E;
3394
- var m = this.tryParseArgumentClose(o);
3359
+ var m = this.tryParseArgumentClose(i);
3395
3360
  if (m.err)
3396
3361
  return m;
3397
- var N = w(o, this.clonePosition());
3362
+ var N = w(i, this.clonePosition());
3398
3363
  return a === "select" ? {
3399
3364
  val: {
3400
- type: H.select,
3401
- value: n,
3402
- options: Gt(E.val),
3365
+ type: I.select,
3366
+ value: r,
3367
+ options: $t(E.val),
3403
3368
  location: N
3404
3369
  },
3405
3370
  err: null
3406
3371
  } : {
3407
3372
  val: {
3408
- type: H.plural,
3409
- value: n,
3410
- options: Gt(E.val),
3411
- offset: A,
3373
+ type: I.plural,
3374
+ value: r,
3375
+ options: $t(E.val),
3376
+ offset: T,
3412
3377
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3413
3378
  location: N
3414
3379
  },
@@ -3421,14 +3386,14 @@ var Mo = (
3421
3386
  }, e.prototype.tryParseArgumentClose = function(t) {
3422
3387
  return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3423
3388
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3424
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3425
- var n = this.char();
3426
- switch (n) {
3389
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3390
+ var r = this.char();
3391
+ switch (r) {
3427
3392
  case 39: {
3428
3393
  this.bump();
3429
- var o = this.clonePosition();
3394
+ var i = this.clonePosition();
3430
3395
  if (!this.bumpUntil("'"))
3431
- return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(o, this.clonePosition()));
3396
+ return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
3432
3397
  this.bump();
3433
3398
  break;
3434
3399
  }
@@ -3441,7 +3406,7 @@ var Mo = (
3441
3406
  t -= 1;
3442
3407
  else
3443
3408
  return {
3444
- val: this.message.slice(r.offset, this.offset()),
3409
+ val: this.message.slice(n.offset, this.offset()),
3445
3410
  err: null
3446
3411
  };
3447
3412
  break;
@@ -3452,30 +3417,30 @@ var Mo = (
3452
3417
  }
3453
3418
  }
3454
3419
  return {
3455
- val: this.message.slice(r.offset, this.offset()),
3420
+ val: this.message.slice(n.offset, this.offset()),
3456
3421
  err: null
3457
3422
  };
3458
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3459
- var n = [];
3423
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3424
+ var r = [];
3460
3425
  try {
3461
- n = lo(t);
3426
+ r = oi(t);
3462
3427
  } catch {
3463
- return this.error(x.INVALID_NUMBER_SKELETON, r);
3428
+ return this.error(x.INVALID_NUMBER_SKELETON, n);
3464
3429
  }
3465
3430
  return {
3466
3431
  val: {
3467
- type: be.number,
3468
- tokens: n,
3469
- location: r,
3470
- parsedOptions: this.shouldParseSkeletons ? po(n) : {}
3432
+ type: ge.number,
3433
+ tokens: r,
3434
+ location: n,
3435
+ parsedOptions: this.shouldParseSkeletons ? li(r) : {}
3471
3436
  },
3472
3437
  err: null
3473
3438
  };
3474
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, o) {
3475
- for (var i, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = o.value, c = o.location; ; ) {
3439
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3440
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3476
3441
  if (l.length === 0) {
3477
3442
  var h = this.clonePosition();
3478
- if (r !== "select" && this.bumpIf("=")) {
3443
+ if (n !== "select" && this.bumpIf("=")) {
3479
3444
  var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
3480
3445
  if (f.err)
3481
3446
  return f;
@@ -3484,12 +3449,12 @@ var Mo = (
3484
3449
  break;
3485
3450
  }
3486
3451
  if (u.has(l))
3487
- return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3452
+ return this.error(n === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3488
3453
  l === "other" && (s = !0), this.bumpSpace();
3489
3454
  var b = this.clonePosition();
3490
3455
  if (!this.bumpIf("{"))
3491
- return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3492
- var m = this.parseMessage(t + 1, r, n);
3456
+ return this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
3457
+ var m = this.parseMessage(t + 1, n, r);
3493
3458
  if (m.err)
3494
3459
  return m;
3495
3460
  var d = this.tryParseArgumentClose(b);
@@ -3501,21 +3466,21 @@ var Mo = (
3501
3466
  value: m.val,
3502
3467
  location: w(b, this.clonePosition())
3503
3468
  }
3504
- ]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, c = i.location;
3469
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
3505
3470
  }
3506
- return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3507
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3508
- var n = 1, o = this.clonePosition();
3509
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3510
- for (var i = !1, s = 0; !this.isEOF(); ) {
3471
+ return a.length === 0 ? this.error(n === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3472
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3473
+ var r = 1, i = this.clonePosition();
3474
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3475
+ for (var o = !1, s = 0; !this.isEOF(); ) {
3511
3476
  var a = this.char();
3512
3477
  if (a >= 48 && a <= 57)
3513
- i = !0, s = s * 10 + (a - 48), this.bump();
3478
+ o = !0, s = s * 10 + (a - 48), this.bump();
3514
3479
  else
3515
3480
  break;
3516
3481
  }
3517
- var u = w(o, this.clonePosition());
3518
- return i ? (s *= n, So(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3482
+ var u = w(i, this.clonePosition());
3483
+ return o ? (s *= r, Bi(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3519
3484
  }, e.prototype.offset = function() {
3520
3485
  return this.position.offset;
3521
3486
  }, e.prototype.isEOF = function() {
@@ -3530,17 +3495,17 @@ var Mo = (
3530
3495
  var t = this.position.offset;
3531
3496
  if (t >= this.message.length)
3532
3497
  throw Error("out of bound");
3533
- var r = Tr(this.message, t);
3534
- if (r === void 0)
3498
+ var n = Cn(this.message, t);
3499
+ if (n === void 0)
3535
3500
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3536
- return r;
3537
- }, e.prototype.error = function(t, r) {
3501
+ return n;
3502
+ }, e.prototype.error = function(t, n) {
3538
3503
  return {
3539
3504
  val: null,
3540
3505
  err: {
3541
3506
  kind: t,
3542
3507
  message: this.message,
3543
- location: r
3508
+ location: n
3544
3509
  }
3545
3510
  };
3546
3511
  }, e.prototype.bump = function() {
@@ -3549,129 +3514,129 @@ var Mo = (
3549
3514
  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);
3550
3515
  }
3551
3516
  }, e.prototype.bumpIf = function(t) {
3552
- if (Dt(this.message, t, this.offset())) {
3553
- for (var r = 0; r < t.length; r++)
3517
+ if (Rt(this.message, t, this.offset())) {
3518
+ for (var n = 0; n < t.length; n++)
3554
3519
  this.bump();
3555
3520
  return !0;
3556
3521
  }
3557
3522
  return !1;
3558
3523
  }, e.prototype.bumpUntil = function(t) {
3559
- var r = this.offset(), n = this.message.indexOf(t, r);
3560
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3524
+ var n = this.offset(), r = this.message.indexOf(t, n);
3525
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3561
3526
  }, e.prototype.bumpTo = function(t) {
3562
3527
  if (this.offset() > t)
3563
3528
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3564
3529
  for (t = Math.min(t, this.message.length); ; ) {
3565
- var r = this.offset();
3566
- if (r === t)
3530
+ var n = this.offset();
3531
+ if (n === t)
3567
3532
  break;
3568
- if (r > t)
3533
+ if (n > t)
3569
3534
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3570
3535
  if (this.bump(), this.isEOF())
3571
3536
  break;
3572
3537
  }
3573
3538
  }, e.prototype.bumpSpace = function() {
3574
- for (; !this.isEOF() && Mr(this.char()); )
3539
+ for (; !this.isEOF() && An(this.char()); )
3575
3540
  this.bump();
3576
3541
  }, e.prototype.peek = function() {
3577
3542
  if (this.isEOF())
3578
3543
  return null;
3579
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3580
- return n ?? null;
3544
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3545
+ return r ?? null;
3581
3546
  }, e;
3582
3547
  }()
3583
3548
  );
3584
- function bt(e) {
3549
+ function ht(e) {
3585
3550
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3586
3551
  }
3587
- function Ho(e) {
3588
- return bt(e) || e === 47;
3552
+ function Si(e) {
3553
+ return ht(e) || e === 47;
3589
3554
  }
3590
- function Oo(e) {
3555
+ function Ai(e) {
3591
3556
  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;
3592
3557
  }
3593
- function Mr(e) {
3558
+ function An(e) {
3594
3559
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3595
3560
  }
3596
- function Io(e) {
3561
+ function Ti(e) {
3597
3562
  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;
3598
3563
  }
3599
- function gt(e) {
3564
+ function ft(e) {
3600
3565
  e.forEach(function(t) {
3601
- if (delete t.location, _r(t) || Br(t))
3602
- for (var r in t.options)
3603
- delete t.options[r].location, gt(t.options[r].value);
3566
+ if (delete t.location, gn(t) || vn(t))
3567
+ for (var n in t.options)
3568
+ delete t.options[n].location, ft(t.options[n].value);
3604
3569
  else
3605
- gr(t) && xr(t.style) || (vr(t) || yr(t)) && ft(t.style) ? delete t.style.location : Er(t) && gt(t.children);
3570
+ pn(t) && _n(t.style) || (mn(t) || bn(t)) && at(t.style) ? delete t.style.location : yn(t) && ft(t.children);
3606
3571
  });
3607
3572
  }
3608
- function No(e, t) {
3609
- t === void 0 && (t = {}), t = Ue({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3610
- var r = new Mo(e, t).parse();
3611
- if (r.err) {
3612
- var n = SyntaxError(x[r.err.kind]);
3613
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3573
+ function Pi(e, t) {
3574
+ t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3575
+ var n = new Ci(e, t).parse();
3576
+ if (n.err) {
3577
+ var r = SyntaxError(x[n.err.kind]);
3578
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3614
3579
  }
3615
- return t?.captureLocation || gt(r.val), r.val;
3580
+ return t?.captureLocation || ft(n.val), n.val;
3616
3581
  }
3617
- var ge;
3582
+ var ve;
3618
3583
  (function(e) {
3619
3584
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3620
- })(ge || (ge = {}));
3621
- var Ve = (
3585
+ })(ve || (ve = {}));
3586
+ var je = (
3622
3587
  /** @class */
3623
3588
  function(e) {
3624
- We(t, e);
3625
- function t(r, n, o) {
3626
- var i = e.call(this, r) || this;
3627
- return i.code = n, i.originalMessage = o, i;
3589
+ ie(t, e);
3590
+ function t(n, r, i) {
3591
+ var o = e.call(this, n) || this;
3592
+ return o.code = r, o.originalMessage = i, o;
3628
3593
  }
3629
3594
  return t.prototype.toString = function() {
3630
3595
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3631
3596
  }, t;
3632
3597
  }(Error)
3633
- ), jt = (
3598
+ ), Ut = (
3634
3599
  /** @class */
3635
3600
  function(e) {
3636
- We(t, e);
3637
- function t(r, n, o, i) {
3638
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(o).join('", "'), '"'), ge.INVALID_VALUE, i) || this;
3601
+ ie(t, e);
3602
+ function t(n, r, i, o) {
3603
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ve.INVALID_VALUE, o) || this;
3639
3604
  }
3640
3605
  return t;
3641
- }(Ve)
3642
- ), Lo = (
3606
+ }(je)
3607
+ ), Mi = (
3643
3608
  /** @class */
3644
3609
  function(e) {
3645
- We(t, e);
3646
- function t(r, n, o) {
3647
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ge.INVALID_VALUE, o) || this;
3610
+ ie(t, e);
3611
+ function t(n, r, i) {
3612
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ve.INVALID_VALUE, i) || this;
3648
3613
  }
3649
3614
  return t;
3650
- }(Ve)
3651
- ), Ro = (
3615
+ }(je)
3616
+ ), Hi = (
3652
3617
  /** @class */
3653
3618
  function(e) {
3654
- We(t, e);
3655
- function t(r, n) {
3656
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ge.MISSING_VALUE, n) || this;
3619
+ ie(t, e);
3620
+ function t(n, r) {
3621
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ve.MISSING_VALUE, r) || this;
3657
3622
  }
3658
3623
  return t;
3659
- }(Ve)
3624
+ }(je)
3660
3625
  ), k;
3661
3626
  (function(e) {
3662
3627
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3663
3628
  })(k || (k = {}));
3664
- function $o(e) {
3665
- return e.length < 2 ? e : e.reduce(function(t, r) {
3666
- var n = t[t.length - 1];
3667
- return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
3629
+ function Ii(e) {
3630
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3631
+ var r = t[t.length - 1];
3632
+ return !r || r.type !== k.literal || n.type !== k.literal ? t.push(n) : r.value += n.value, t;
3668
3633
  }, []);
3669
3634
  }
3670
- function Fo(e) {
3635
+ function Oi(e) {
3671
3636
  return typeof e == "function";
3672
3637
  }
3673
- function Re(e, t, r, n, o, i, s) {
3674
- if (e.length === 1 && Rt(e[0]))
3638
+ function Re(e, t, n, r, i, o, s) {
3639
+ if (e.length === 1 && It(e[0]))
3675
3640
  return [
3676
3641
  {
3677
3642
  type: k.literal,
@@ -3680,162 +3645,162 @@ function Re(e, t, r, n, o, i, s) {
3680
3645
  ];
3681
3646
  for (var a = [], u = 0, l = e; u < l.length; u++) {
3682
3647
  var c = l[u];
3683
- if (Rt(c)) {
3648
+ if (It(c)) {
3684
3649
  a.push({
3685
3650
  type: k.literal,
3686
3651
  value: c.value
3687
3652
  });
3688
3653
  continue;
3689
3654
  }
3690
- if (io(c)) {
3691
- typeof i == "number" && a.push({
3655
+ if (ti(c)) {
3656
+ typeof o == "number" && a.push({
3692
3657
  type: k.literal,
3693
- value: r.getNumberFormat(t).format(i)
3658
+ value: n.getNumberFormat(t).format(o)
3694
3659
  });
3695
3660
  continue;
3696
3661
  }
3697
3662
  var h = c.value;
3698
- if (!(o && h in o))
3699
- throw new Ro(h, s);
3700
- var f = o[h];
3701
- if (oo(c)) {
3663
+ if (!(i && h in i))
3664
+ throw new Hi(h, s);
3665
+ var f = i[h];
3666
+ if (ei(c)) {
3702
3667
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3703
3668
  type: typeof f == "string" ? k.literal : k.object,
3704
3669
  value: f
3705
3670
  });
3706
3671
  continue;
3707
3672
  }
3708
- if (vr(c)) {
3709
- var b = typeof c.style == "string" ? n.date[c.style] : ft(c.style) ? c.style.parsedOptions : void 0;
3673
+ if (mn(c)) {
3674
+ var b = typeof c.style == "string" ? r.date[c.style] : at(c.style) ? c.style.parsedOptions : void 0;
3710
3675
  a.push({
3711
3676
  type: k.literal,
3712
- value: r.getDateTimeFormat(t, b).format(f)
3677
+ value: n.getDateTimeFormat(t, b).format(f)
3713
3678
  });
3714
3679
  continue;
3715
3680
  }
3716
- if (yr(c)) {
3717
- var b = typeof c.style == "string" ? n.time[c.style] : ft(c.style) ? c.style.parsedOptions : n.time.medium;
3681
+ if (bn(c)) {
3682
+ var b = typeof c.style == "string" ? r.time[c.style] : at(c.style) ? c.style.parsedOptions : r.time.medium;
3718
3683
  a.push({
3719
3684
  type: k.literal,
3720
- value: r.getDateTimeFormat(t, b).format(f)
3685
+ value: n.getDateTimeFormat(t, b).format(f)
3721
3686
  });
3722
3687
  continue;
3723
3688
  }
3724
- if (gr(c)) {
3725
- var b = typeof c.style == "string" ? n.number[c.style] : xr(c.style) ? c.style.parsedOptions : void 0;
3689
+ if (pn(c)) {
3690
+ var b = typeof c.style == "string" ? r.number[c.style] : _n(c.style) ? c.style.parsedOptions : void 0;
3726
3691
  b && b.scale && (f = f * (b.scale || 1)), a.push({
3727
3692
  type: k.literal,
3728
- value: r.getNumberFormat(t, b).format(f)
3693
+ value: n.getNumberFormat(t, b).format(f)
3729
3694
  });
3730
3695
  continue;
3731
3696
  }
3732
- if (Er(c)) {
3733
- var m = c.children, d = c.value, C = o[d];
3734
- if (!Fo(C))
3735
- throw new Lo(d, "function", s);
3736
- var _ = Re(m, t, r, n, o, i), y = C(_.map(function(A) {
3737
- return A.value;
3697
+ if (yn(c)) {
3698
+ var m = c.children, d = c.value, C = i[d];
3699
+ if (!Oi(C))
3700
+ throw new Mi(d, "function", s);
3701
+ var _ = Re(m, t, n, r, i, o), y = C(_.map(function(T) {
3702
+ return T.value;
3738
3703
  }));
3739
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(A) {
3704
+ Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(T) {
3740
3705
  return {
3741
- type: typeof A == "string" ? k.literal : k.object,
3742
- value: A
3706
+ type: typeof T == "string" ? k.literal : k.object,
3707
+ value: T
3743
3708
  };
3744
3709
  }));
3745
3710
  }
3746
- if (_r(c)) {
3747
- var P = c.options[f] || c.options.other;
3748
- if (!P)
3749
- throw new jt(c.value, f, Object.keys(c.options), s);
3750
- a.push.apply(a, Re(P.value, t, r, n, o));
3711
+ if (gn(c)) {
3712
+ var M = c.options[f] || c.options.other;
3713
+ if (!M)
3714
+ throw new Ut(c.value, f, Object.keys(c.options), s);
3715
+ a.push.apply(a, Re(M.value, t, n, r, i));
3751
3716
  continue;
3752
3717
  }
3753
- if (Br(c)) {
3754
- var P = c.options["=".concat(f)];
3755
- if (!P) {
3718
+ if (vn(c)) {
3719
+ var M = c.options["=".concat(f)];
3720
+ if (!M) {
3756
3721
  if (!Intl.PluralRules)
3757
- throw new Ve(`Intl.PluralRules is not available in this environment.
3722
+ throw new je(`Intl.PluralRules is not available in this environment.
3758
3723
  Try polyfilling it using "@formatjs/intl-pluralrules"
3759
- `, ge.MISSING_INTL_API, s);
3760
- var O = r.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
3761
- P = c.options[O] || c.options.other;
3724
+ `, ve.MISSING_INTL_API, s);
3725
+ var O = n.getPluralRules(t, { type: c.pluralType }).select(f - (c.offset || 0));
3726
+ M = c.options[O] || c.options.other;
3762
3727
  }
3763
- if (!P)
3764
- throw new jt(c.value, f, Object.keys(c.options), s);
3765
- a.push.apply(a, Re(P.value, t, r, n, o, f - (c.offset || 0)));
3728
+ if (!M)
3729
+ throw new Ut(c.value, f, Object.keys(c.options), s);
3730
+ a.push.apply(a, Re(M.value, t, n, r, i, f - (c.offset || 0)));
3766
3731
  continue;
3767
3732
  }
3768
3733
  }
3769
- return $o(a);
3734
+ return Ii(a);
3770
3735
  }
3771
- function Uo(e, t) {
3772
- return t ? Y(Y(Y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3773
- return r[n] = Y(Y({}, e[n]), t[n] || {}), r;
3736
+ function Ni(e, t) {
3737
+ return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3738
+ return n[r] = A(A({}, e[r]), t[r] || {}), n;
3774
3739
  }, {})) : e;
3775
3740
  }
3776
- function Do(e, t) {
3777
- return t ? Object.keys(e).reduce(function(r, n) {
3778
- return r[n] = Uo(e[n], t[n]), r;
3779
- }, Y({}, e)) : e;
3741
+ function Li(e, t) {
3742
+ return t ? Object.keys(e).reduce(function(n, r) {
3743
+ return n[r] = Ni(e[r], t[r]), n;
3744
+ }, A({}, e)) : e;
3780
3745
  }
3781
- function et(e) {
3746
+ function Je(e) {
3782
3747
  return {
3783
3748
  create: function() {
3784
3749
  return {
3785
3750
  get: function(t) {
3786
3751
  return e[t];
3787
3752
  },
3788
- set: function(t, r) {
3789
- e[t] = r;
3753
+ set: function(t, n) {
3754
+ e[t] = n;
3790
3755
  }
3791
3756
  };
3792
3757
  }
3793
3758
  };
3794
3759
  }
3795
- function Go(e) {
3760
+ function Ri(e) {
3796
3761
  return e === void 0 && (e = {
3797
3762
  number: {},
3798
3763
  dateTime: {},
3799
3764
  pluralRules: {}
3800
3765
  }), {
3801
- getNumberFormat: Je(function() {
3802
- for (var t, r = [], n = 0; n < arguments.length; n++)
3803
- r[n] = arguments[n];
3804
- return new ((t = Intl.NumberFormat).bind.apply(t, Qe([void 0], r, !1)))();
3766
+ getNumberFormat: Ze(function() {
3767
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3768
+ n[r] = arguments[r];
3769
+ return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], n, !1)))();
3805
3770
  }, {
3806
- cache: et(e.number),
3807
- strategy: Ye.variadic
3771
+ cache: Je(e.number),
3772
+ strategy: qe.variadic
3808
3773
  }),
3809
- getDateTimeFormat: Je(function() {
3810
- for (var t, r = [], n = 0; n < arguments.length; n++)
3811
- r[n] = arguments[n];
3812
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Qe([void 0], r, !1)))();
3774
+ getDateTimeFormat: Ze(function() {
3775
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3776
+ n[r] = arguments[r];
3777
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], n, !1)))();
3813
3778
  }, {
3814
- cache: et(e.dateTime),
3815
- strategy: Ye.variadic
3779
+ cache: Je(e.dateTime),
3780
+ strategy: qe.variadic
3816
3781
  }),
3817
- getPluralRules: Je(function() {
3818
- for (var t, r = [], n = 0; n < arguments.length; n++)
3819
- r[n] = arguments[n];
3820
- return new ((t = Intl.PluralRules).bind.apply(t, Qe([void 0], r, !1)))();
3782
+ getPluralRules: Ze(function() {
3783
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3784
+ n[r] = arguments[r];
3785
+ return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], n, !1)))();
3821
3786
  }, {
3822
- cache: et(e.pluralRules),
3823
- strategy: Ye.variadic
3787
+ cache: Je(e.pluralRules),
3788
+ strategy: qe.variadic
3824
3789
  })
3825
3790
  };
3826
3791
  }
3827
- var ko = (
3792
+ var $i = (
3828
3793
  /** @class */
3829
3794
  function() {
3830
- function e(t, r, n, o) {
3831
- r === void 0 && (r = e.defaultLocale);
3832
- var i = this;
3795
+ function e(t, n, r, i) {
3796
+ n === void 0 && (n = e.defaultLocale);
3797
+ var o = this;
3833
3798
  if (this.formatterCache = {
3834
3799
  number: {},
3835
3800
  dateTime: {},
3836
3801
  pluralRules: {}
3837
3802
  }, this.format = function(u) {
3838
- var l = i.formatToParts(u);
3803
+ var l = o.formatToParts(u);
3839
3804
  if (l.length === 1)
3840
3805
  return l[0].value;
3841
3806
  var c = l.reduce(function(h, f) {
@@ -3843,26 +3808,26 @@ var ko = (
3843
3808
  }, []);
3844
3809
  return c.length <= 1 ? c[0] || "" : c;
3845
3810
  }, this.formatToParts = function(u) {
3846
- return Re(i.ast, i.locales, i.formatters, i.formats, u, void 0, i.message);
3811
+ return Re(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3847
3812
  }, this.resolvedOptions = function() {
3848
3813
  var u;
3849
3814
  return {
3850
- locale: ((u = i.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
3815
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3851
3816
  };
3852
3817
  }, this.getAst = function() {
3853
- return i.ast;
3854
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3818
+ return o.ast;
3819
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3855
3820
  if (this.message = t, !e.__parse)
3856
3821
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3857
- var s = o || {};
3822
+ var s = i || {};
3858
3823
  s.formatters;
3859
- var a = Qn(s, ["formatters"]);
3860
- this.ast = e.__parse(t, Y(Y({}, a), { locale: this.resolvedLocale }));
3824
+ var a = mr(s, ["formatters"]);
3825
+ this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
3861
3826
  } else
3862
3827
  this.ast = t;
3863
3828
  if (!Array.isArray(this.ast))
3864
3829
  throw new TypeError("A message must be provided as a String or AST.");
3865
- this.formats = Do(e.formats, n), this.formatters = o && o.formatters || Go(this.formatterCache);
3830
+ this.formats = Li(e.formats, r), this.formatters = i && i.formatters || Ri(this.formatterCache);
3866
3831
  }
3867
3832
  return Object.defineProperty(e, "defaultLocale", {
3868
3833
  get: function() {
@@ -3872,10 +3837,10 @@ var ko = (
3872
3837
  configurable: !0
3873
3838
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3874
3839
  if (!(typeof Intl.Locale > "u")) {
3875
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3876
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3840
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3841
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3877
3842
  }
3878
- }, e.__parse = No, e.formats = {
3843
+ }, e.__parse = Pi, e.formats = {
3879
3844
  number: {
3880
3845
  integer: {
3881
3846
  maximumFractionDigits: 0
@@ -3936,113 +3901,113 @@ var ko = (
3936
3901
  }, e;
3937
3902
  }()
3938
3903
  );
3939
- function jo(e, t) {
3904
+ function Fi(e, t) {
3940
3905
  if (t == null)
3941
3906
  return;
3942
3907
  if (t in e)
3943
3908
  return e[t];
3944
- const r = t.split(".");
3945
- let n = e;
3946
- for (let o = 0; o < r.length; o++)
3947
- if (typeof n == "object") {
3948
- if (o > 0) {
3949
- const i = r.slice(o, r.length).join(".");
3950
- if (i in n) {
3951
- n = n[i];
3909
+ const n = t.split(".");
3910
+ let r = e;
3911
+ for (let i = 0; i < n.length; i++)
3912
+ if (typeof r == "object") {
3913
+ if (i > 0) {
3914
+ const o = n.slice(i, n.length).join(".");
3915
+ if (o in r) {
3916
+ r = r[o];
3952
3917
  break;
3953
3918
  }
3954
3919
  }
3955
- n = n[r[o]];
3920
+ r = r[n[i]];
3956
3921
  } else
3957
- n = void 0;
3958
- return n;
3922
+ r = void 0;
3923
+ return r;
3959
3924
  }
3960
- const ie = {}, Wo = (e, t, r) => r && (t in ie || (ie[t] = {}), e in ie[t] || (ie[t][e] = r), r), Hr = (e, t) => {
3925
+ const oe = {}, Ui = (e, t, n) => n && (t in oe || (oe[t] = {}), e in oe[t] || (oe[t][e] = n), n), Tn = (e, t) => {
3961
3926
  if (t == null)
3962
3927
  return;
3963
- if (t in ie && e in ie[t])
3964
- return ie[t][e];
3965
- const r = ze(t);
3966
- for (let n = 0; n < r.length; n++) {
3967
- const o = r[n], i = zo(o, e);
3968
- if (i)
3969
- return Wo(e, t, i);
3928
+ if (t in oe && e in oe[t])
3929
+ return oe[t][e];
3930
+ const n = We(t);
3931
+ for (let r = 0; r < n.length; r++) {
3932
+ const i = n[r], o = Gi(i, e);
3933
+ if (o)
3934
+ return Ui(e, t, o);
3970
3935
  }
3971
3936
  };
3972
- let Et;
3973
- const Te = je({});
3974
- function Vo(e) {
3975
- return Et[e] || null;
3937
+ let vt;
3938
+ const Te = ke({});
3939
+ function Di(e) {
3940
+ return vt[e] || null;
3976
3941
  }
3977
- function Or(e) {
3978
- return e in Et;
3942
+ function Pn(e) {
3943
+ return e in vt;
3979
3944
  }
3980
- function zo(e, t) {
3981
- if (!Or(e))
3945
+ function Gi(e, t) {
3946
+ if (!Pn(e))
3982
3947
  return null;
3983
- const r = Vo(e);
3984
- return jo(r, t);
3948
+ const n = Di(e);
3949
+ return Fi(n, t);
3985
3950
  }
3986
- function Xo(e) {
3951
+ function ki(e) {
3987
3952
  if (e == null)
3988
3953
  return;
3989
- const t = ze(e);
3990
- for (let r = 0; r < t.length; r++) {
3991
- const n = t[r];
3992
- if (Or(n))
3993
- return n;
3954
+ const t = We(e);
3955
+ for (let n = 0; n < t.length; n++) {
3956
+ const r = t[n];
3957
+ if (Pn(r))
3958
+ return r;
3994
3959
  }
3995
3960
  }
3996
- function Ir(e, ...t) {
3997
- delete ie[e], Te.update((r) => (r[e] = qn.all([r[e] || {}, ...t]), r));
3961
+ function Mn(e, ...t) {
3962
+ delete oe[e], Te.update((n) => (n[e] = zr.all([n[e] || {}, ...t]), n));
3998
3963
  }
3999
- ye(
3964
+ _e(
4000
3965
  [Te],
4001
3966
  ([e]) => Object.keys(e)
4002
3967
  );
4003
- Te.subscribe((e) => Et = e);
3968
+ Te.subscribe((e) => vt = e);
4004
3969
  const $e = {};
4005
- function Zo(e, t) {
3970
+ function ji(e, t) {
4006
3971
  $e[e].delete(t), $e[e].size === 0 && delete $e[e];
4007
3972
  }
4008
- function Nr(e) {
3973
+ function Hn(e) {
4009
3974
  return $e[e];
4010
3975
  }
4011
- function qo(e) {
4012
- return ze(e).map((t) => {
4013
- const r = Nr(t);
4014
- return [t, r ? [...r] : []];
3976
+ function Wi(e) {
3977
+ return We(e).map((t) => {
3978
+ const n = Hn(t);
3979
+ return [t, n ? [...n] : []];
4015
3980
  }).filter(([, t]) => t.length > 0);
4016
3981
  }
4017
- function vt(e) {
4018
- return e == null ? !1 : ze(e).some(
3982
+ function dt(e) {
3983
+ return e == null ? !1 : We(e).some(
4019
3984
  (t) => {
4020
- var r;
4021
- return (r = Nr(t)) == null ? void 0 : r.size;
3985
+ var n;
3986
+ return (n = Hn(t)) == null ? void 0 : n.size;
4022
3987
  }
4023
3988
  );
4024
3989
  }
4025
- function Qo(e, t) {
3990
+ function Vi(e, t) {
4026
3991
  return Promise.all(
4027
- t.map((n) => (Zo(e, n), n().then((o) => o.default || o)))
4028
- ).then((n) => Ir(e, ...n));
4029
- }
4030
- const Ee = {};
4031
- function Lr(e) {
4032
- if (!vt(e))
4033
- return e in Ee ? Ee[e] : Promise.resolve();
4034
- const t = qo(e);
4035
- return Ee[e] = Promise.all(
3992
+ t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
3993
+ ).then((r) => Mn(e, ...r));
3994
+ }
3995
+ const xe = {};
3996
+ function In(e) {
3997
+ if (!dt(e))
3998
+ return e in xe ? xe[e] : Promise.resolve();
3999
+ const t = Wi(e);
4000
+ return xe[e] = Promise.all(
4036
4001
  t.map(
4037
- ([r, n]) => Qo(r, n)
4002
+ ([n, r]) => Vi(n, r)
4038
4003
  )
4039
4004
  ).then(() => {
4040
- if (vt(e))
4041
- return Lr(e);
4042
- delete Ee[e];
4043
- }), Ee[e];
4005
+ if (dt(e))
4006
+ return In(e);
4007
+ delete xe[e];
4008
+ }), xe[e];
4044
4009
  }
4045
- const Jo = {
4010
+ const zi = {
4046
4011
  number: {
4047
4012
  scientific: { notation: "scientific" },
4048
4013
  engineering: { notation: "engineering" },
@@ -4071,136 +4036,136 @@ const Jo = {
4071
4036
  timeZoneName: "short"
4072
4037
  }
4073
4038
  }
4074
- }, Yo = {
4039
+ }, Xi = {
4075
4040
  fallbackLocale: null,
4076
4041
  loadingDelay: 200,
4077
- formats: Jo,
4042
+ formats: zi,
4078
4043
  warnOnMissingMessages: !0,
4079
4044
  handleMissingMessage: void 0,
4080
4045
  ignoreTag: !0
4081
- }, Ko = Yo;
4082
- function ve() {
4083
- return Ko;
4084
- }
4085
- const tt = je(!1);
4086
- var ei = Object.defineProperty, ti = Object.defineProperties, ri = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, ni = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
4087
- for (var r in t || (t = {}))
4088
- ni.call(t, r) && Vt(e, r, t[r]);
4089
- if (Wt)
4090
- for (var r of Wt(t))
4091
- oi.call(t, r) && Vt(e, r, t[r]);
4046
+ }, Zi = Xi;
4047
+ function ye() {
4048
+ return Zi;
4049
+ }
4050
+ const Ye = ke(!1);
4051
+ var qi = Object.defineProperty, Qi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, Gt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, eo = (e, t) => {
4052
+ for (var n in t)
4053
+ Yi.call(t, n) && Gt(e, n, t[n]);
4054
+ if (Dt)
4055
+ for (var n of Dt(t))
4056
+ Ki.call(t, n) && Gt(e, n, t[n]);
4092
4057
  return e;
4093
- }, si = (e, t) => ti(e, ri(t));
4094
- let yt;
4095
- const De = je(null);
4096
- function zt(e) {
4097
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4058
+ }, to = (e, t) => Qi(e, Ji(t));
4059
+ let pt;
4060
+ const Ue = ke(null);
4061
+ function kt(e) {
4062
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4098
4063
  }
4099
- function ze(e, t = ve().fallbackLocale) {
4100
- const r = zt(e);
4101
- return t ? [.../* @__PURE__ */ new Set([...r, ...zt(t)])] : r;
4064
+ function We(e, t = ye().fallbackLocale) {
4065
+ const n = kt(e);
4066
+ return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
4102
4067
  }
4103
4068
  function ae() {
4104
- return yt ?? void 0;
4069
+ return pt ?? void 0;
4105
4070
  }
4106
- De.subscribe((e) => {
4107
- yt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4071
+ Ue.subscribe((e) => {
4072
+ pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4108
4073
  });
4109
- const ai = (e) => {
4110
- if (e && Xo(e) && vt(e)) {
4111
- const { loadingDelay: t } = ve();
4112
- let r;
4113
- return typeof window < "u" && ae() != null && t ? r = window.setTimeout(
4114
- () => tt.set(!0),
4074
+ const no = (e) => {
4075
+ if (e && ki(e) && dt(e)) {
4076
+ const { loadingDelay: t } = ye();
4077
+ let n;
4078
+ return typeof window < "u" && ae() != null && t ? n = window.setTimeout(
4079
+ () => Ye.set(!0),
4115
4080
  t
4116
- ) : tt.set(!0), Lr(e).then(() => {
4117
- De.set(e);
4081
+ ) : Ye.set(!0), In(e).then(() => {
4082
+ Ue.set(e);
4118
4083
  }).finally(() => {
4119
- clearTimeout(r), tt.set(!1);
4084
+ clearTimeout(n), Ye.set(!1);
4120
4085
  });
4121
4086
  }
4122
- return De.set(e);
4123
- }, _e = si(ii({}, De), {
4124
- set: ai
4125
- }), Xe = (e) => {
4087
+ return Ue.set(e);
4088
+ }, Be = to(eo({}, Ue), {
4089
+ set: no
4090
+ }), Ve = (e) => {
4126
4091
  const t = /* @__PURE__ */ Object.create(null);
4127
- return (n) => {
4128
- const o = JSON.stringify(n);
4129
- return o in t ? t[o] : t[o] = e(n);
4092
+ return (r) => {
4093
+ const i = JSON.stringify(r);
4094
+ return i in t ? t[i] : t[i] = e(r);
4130
4095
  };
4131
4096
  };
4132
- var ui = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Rr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, Xt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
4133
- for (var r in t || (t = {}))
4134
- Rr.call(t, r) && Xt(e, r, t[r]);
4135
- if (Ge)
4136
- for (var r of Ge(t))
4137
- $r.call(t, r) && Xt(e, r, t[r]);
4097
+ var ro = Object.defineProperty, De = Object.getOwnPropertySymbols, On = Object.prototype.hasOwnProperty, Nn = Object.prototype.propertyIsEnumerable, jt = (e, t, n) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yt = (e, t) => {
4098
+ for (var n in t || (t = {}))
4099
+ On.call(t, n) && jt(e, n, t[n]);
4100
+ if (De)
4101
+ for (var n of De(t))
4102
+ Nn.call(t, n) && jt(e, n, t[n]);
4138
4103
  return e;
4139
- }, Be = (e, t) => {
4140
- var r = {};
4141
- for (var n in e)
4142
- Rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4143
- if (e != null && Ge)
4144
- for (var n of Ge(e))
4145
- t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
4146
- return r;
4104
+ }, Ee = (e, t) => {
4105
+ var n = {};
4106
+ for (var r in e)
4107
+ On.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4108
+ if (e != null && De)
4109
+ for (var r of De(e))
4110
+ t.indexOf(r) < 0 && Nn.call(e, r) && (n[r] = e[r]);
4111
+ return n;
4147
4112
  };
4148
- const Se = (e, t) => {
4149
- const { formats: r } = ve();
4150
- if (e in r && t in r[e])
4151
- return r[e][t];
4113
+ const Ae = (e, t) => {
4114
+ const { formats: n } = ye();
4115
+ if (e in n && t in n[e])
4116
+ return n[e][t];
4152
4117
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4153
- }, li = Xe(
4118
+ }, io = Ve(
4154
4119
  (e) => {
4155
- var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4156
- if (r == null)
4120
+ var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4121
+ if (n == null)
4157
4122
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4158
- return n && (o = Se("number", n)), new Intl.NumberFormat(r, o);
4123
+ return r && (i = Ae("number", r)), new Intl.NumberFormat(n, i);
4159
4124
  }
4160
- ), ci = Xe(
4125
+ ), oo = Ve(
4161
4126
  (e) => {
4162
- var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4163
- if (r == null)
4127
+ var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4128
+ if (n == null)
4164
4129
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4165
- return n ? o = Se("date", n) : Object.keys(o).length === 0 && (o = Se("date", "short")), new Intl.DateTimeFormat(r, o);
4130
+ return r ? i = Ae("date", r) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(n, i);
4166
4131
  }
4167
- ), hi = Xe(
4132
+ ), so = Ve(
4168
4133
  (e) => {
4169
- var t = e, { locale: r, format: n } = t, o = Be(t, ["locale", "format"]);
4170
- if (r == null)
4134
+ var t = e, { locale: n, format: r } = t, i = Ee(t, ["locale", "format"]);
4135
+ if (n == null)
4171
4136
  throw new Error(
4172
4137
  '[svelte-i18n] A "locale" must be set to format time values'
4173
4138
  );
4174
- return n ? o = Se("time", n) : Object.keys(o).length === 0 && (o = Se("time", "short")), new Intl.DateTimeFormat(r, o);
4139
+ return r ? i = Ae("time", r) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(n, i);
4175
4140
  }
4176
- ), fi = (e = {}) => {
4141
+ ), ao = (e = {}) => {
4177
4142
  var t = e, {
4178
- locale: r = ae()
4179
- } = t, n = Be(t, [
4143
+ locale: n = ae()
4144
+ } = t, r = Ee(t, [
4180
4145
  "locale"
4181
4146
  ]);
4182
- return li(xt({ locale: r }, n));
4183
- }, di = (e = {}) => {
4147
+ return io(yt({ locale: n }, r));
4148
+ }, uo = (e = {}) => {
4184
4149
  var t = e, {
4185
- locale: r = ae()
4186
- } = t, n = Be(t, [
4150
+ locale: n = ae()
4151
+ } = t, r = Ee(t, [
4187
4152
  "locale"
4188
4153
  ]);
4189
- return ci(xt({ locale: r }, n));
4190
- }, pi = (e = {}) => {
4154
+ return oo(yt({ locale: n }, r));
4155
+ }, lo = (e = {}) => {
4191
4156
  var t = e, {
4192
- locale: r = ae()
4193
- } = t, n = Be(t, [
4157
+ locale: n = ae()
4158
+ } = t, r = Ee(t, [
4194
4159
  "locale"
4195
4160
  ]);
4196
- return hi(xt({ locale: r }, n));
4197
- }, mi = Xe(
4161
+ return so(yt({ locale: n }, r));
4162
+ }, co = Ve(
4198
4163
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4199
- (e, t = ae()) => new ko(e, t, ve().formats, {
4200
- ignoreTag: ve().ignoreTag
4164
+ (e, t = ae()) => new $i(e, t, ye().formats, {
4165
+ ignoreTag: ye().ignoreTag
4201
4166
  })
4202
- ), bi = (e, t = {}) => {
4203
- var r, n, o, i;
4167
+ ), ho = (e, t = {}) => {
4168
+ var n, r, i, o;
4204
4169
  let s = t;
4205
4170
  typeof e == "object" && (s = e, e = s.id);
4206
4171
  const {
@@ -4212,9 +4177,9 @@ const Se = (e, t) => {
4212
4177
  throw new Error(
4213
4178
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4214
4179
  );
4215
- let c = Hr(e, u);
4180
+ let c = Tn(e, u);
4216
4181
  if (!c)
4217
- c = (i = (o = (n = (r = ve()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
4182
+ c = (o = (i = (r = (n = ye()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4218
4183
  else if (typeof c != "string")
4219
4184
  return console.warn(
4220
4185
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4223,7 +4188,7 @@ const Se = (e, t) => {
4223
4188
  return c;
4224
4189
  let h = c;
4225
4190
  try {
4226
- h = mi(c, u).format(a);
4191
+ h = co(c, u).format(a);
4227
4192
  } catch (f) {
4228
4193
  f instanceof Error && console.warn(
4229
4194
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4231,20 +4196,20 @@ const Se = (e, t) => {
4231
4196
  );
4232
4197
  }
4233
4198
  return h;
4234
- }, gi = (e, t) => pi(t).format(e), vi = (e, t) => di(t).format(e), yi = (e, t) => fi(t).format(e), _i = (e, t = ae()) => Hr(e, t), Bi = ye([_e, Te], () => bi);
4235
- ye([_e], () => gi);
4236
- ye([_e], () => vi);
4237
- ye([_e], () => yi);
4238
- ye([_e, Te], () => _i);
4239
- window.emWidgets = { topic: On };
4240
- const Ei = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4241
- function Zt(e, t) {
4242
- Ir(e, t);
4243
- }
4244
- function xi(e) {
4245
- _e.set(e);
4246
- }
4247
- const qt = {
4199
+ }, fo = (e, t) => lo(t).format(e), po = (e, t) => uo(t).format(e), mo = (e, t) => ao(t).format(e), bo = (e, t = ae()) => Tn(e, t), go = _e([Be, Te], () => ho);
4200
+ _e([Be], () => fo);
4201
+ _e([Be], () => po);
4202
+ _e([Be], () => mo);
4203
+ _e([Be, Te], () => bo);
4204
+ window.emWidgets = { topic: Pr };
4205
+ const vo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4206
+ function Wt(e, t) {
4207
+ Mn(e, t);
4208
+ }
4209
+ function yo(e) {
4210
+ Be.set(e);
4211
+ }
4212
+ const Vt = {
4248
4213
  en: {
4249
4214
  titleBonuses: "Active Bonuses",
4250
4215
  bonusCode: "Do you have a bonus code?",
@@ -4254,8 +4219,8 @@ const qt = {
4254
4219
  forfeitBonus: "Are you sure want to forfeit bonus?",
4255
4220
  forfeitBonusConfirm: "Confirm",
4256
4221
  forfeitBonusCancel: "Cancel",
4257
- successMessage: "Bonus claimed!",
4258
- errorMessage: "Invalid bonus"
4222
+ bonusClaimSuccessMessage: "Bonus claimed!",
4223
+ bonusClaimErrorMessage: "Invalid bonus"
4259
4224
  },
4260
4225
  "zh-hk": {
4261
4226
  titleBonuses: "活躍獎金",
@@ -4266,8 +4231,8 @@ const qt = {
4266
4231
  forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
4267
4232
  forfeitBonusConfirm: "確認",
4268
4233
  forfeitBonusCancel: "取消",
4269
- successMessage: "獎金要求!",
4270
- errorMessage: "無效獎金"
4234
+ bonusClaimSuccessMessage: "獎金要求!",
4235
+ bonusClaimErrorMessage: "無效獎金"
4271
4236
  },
4272
4237
  fr: {
4273
4238
  titleBonuses: "Bonus actifs",
@@ -4278,8 +4243,8 @@ const qt = {
4278
4243
  forfeitBonus: "Etes-vous sûr de vouloir supprimer le bonus et ses gains?",
4279
4244
  forfeitBonusConfirm: "Confirmer",
4280
4245
  forfeitBonusCancel: "Annuler",
4281
- successMessage: "Bonus réclamé!",
4282
- errorMessage: "Bonus invalide"
4246
+ bonusClaimSuccessMessage: "Bonus réclamé!",
4247
+ bonusClaimErrorMessage: "Bonus invalide"
4283
4248
  },
4284
4249
  ro: {
4285
4250
  titleBonuses: "Bonusuri active",
@@ -4290,8 +4255,8 @@ const qt = {
4290
4255
  forfeitBonus: "Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",
4291
4256
  forfeitBonusConfirm: "Confirmă",
4292
4257
  forfeitBonusCancel: "Anulează",
4293
- successMessage: "Bonus revendicat!",
4294
- errorMessage: "Bonus invalid"
4258
+ bonusClaimSuccessMessage: "Bonus revendicat!",
4259
+ bonusClaimErrorMessage: "Bonus invalid"
4295
4260
  },
4296
4261
  es: {
4297
4262
  titleBonuses: "Bonos Activos",
@@ -4302,8 +4267,8 @@ const qt = {
4302
4267
  forfeitBonus: "Estas seguro que quieres perder el bono?",
4303
4268
  forfeitBonusConfirm: "Confirmar",
4304
4269
  forfeitBonusCancel: "Cancelar",
4305
- successMessage: "Bono adjudicado!",
4306
- errorMessage: "Bono invalido"
4270
+ bonusClaimSuccessMessage: "Bono adjudicado!",
4271
+ bonusClaimErrorMessage: "Bono invalido"
4307
4272
  },
4308
4273
  pt: {
4309
4274
  titleBonuses: "Bônus Ativos",
@@ -4314,8 +4279,8 @@ const qt = {
4314
4279
  forfeitBonus: "Tem certeza de que deseja perder o bônus e seus ganhos?",
4315
4280
  forfeitBonusConfirm: "Confirmar",
4316
4281
  forfeitBonusCancel: "Cancelar",
4317
- successMessage: "Bônus reivindicado!",
4318
- errorMessage: "Bônus inválido"
4282
+ bonusClaimSuccessMessage: "Bônus reivindicado!",
4283
+ bonusClaimErrorMessage: "Bônus inválido"
4319
4284
  },
4320
4285
  hr: {
4321
4286
  titleBonuses: "Aktivni bonusi",
@@ -4326,8 +4291,8 @@ const qt = {
4326
4291
  forfeitBonus: "Jeste li sigurni da želite otkazati bonus?",
4327
4292
  forfeitBonusConfirm: "Potvrdi",
4328
4293
  forfeitBonusCancel: "Otkaži",
4329
- successMessage: "Preuzet bonus!",
4330
- errorMessage: "Nevažeći bonus"
4294
+ bonusClaimSuccessMessage: "Preuzet bonus!",
4295
+ bonusClaimErrorMessage: "Nevažeći bonus"
4331
4296
  },
4332
4297
  "pt-br": {
4333
4298
  titleBonuses: "Títulos ativos",
@@ -4338,8 +4303,8 @@ const qt = {
4338
4303
  forfeitBonus: "Tem certeza de que deseja recusar o bônus?",
4339
4304
  forfeitBonusConfirm: "confirme",
4340
4305
  forfeitBonusCancel: "Cancelar",
4341
- successMessage: "Bônus ativado",
4342
- errorMessage: "Voucher inválido"
4306
+ bonusClaimSuccessMessage: "Bônus ativado",
4307
+ bonusClaimErrorMessage: "Voucher inválido"
4343
4308
  },
4344
4309
  "es-mx": {
4345
4310
  titleBonuses: "Bonos activos",
@@ -4350,8 +4315,8 @@ const qt = {
4350
4315
  forfeitBonus: "¿ Está seguro que quiere declinar el bono?",
4351
4316
  forfeitBonusConfirm: "Confirmar",
4352
4317
  forfeitBonusCancel: "Cancelar",
4353
- successMessage: "Bono activado",
4354
- errorMessage: "Bono inválido"
4318
+ bonusClaimSuccessMessage: "Bono activado",
4319
+ bonusClaimErrorMessage: "Bono inválido"
4355
4320
  },
4356
4321
  tr: {
4357
4322
  titleBonuses: "Aktif Bonuslar",
@@ -4362,8 +4327,8 @@ const qt = {
4362
4327
  forfeitBonus: "Bonusu kaybetmek istediğinizden emin misiniz?",
4363
4328
  forfeitBonusConfirm: "Onaylamak",
4364
4329
  forfeitBonusCancel: "İptal etmek",
4365
- successMessage: "Bonus talep edildi!",
4366
- errorMessage: "Geçersiz bonus"
4330
+ bonusClaimSuccessMessage: "Bonus talep edildi!",
4331
+ bonusClaimErrorMessage: "Geçersiz bonus"
4367
4332
  },
4368
4333
  "en-us": {
4369
4334
  titleBonuses: "Active Bonuses",
@@ -4374,93 +4339,93 @@ const qt = {
4374
4339
  forfeitBonus: "Are you sure want to forfeit bonus?",
4375
4340
  forfeitBonusConfirm: "Confirm",
4376
4341
  forfeitBonusCancel: "Cancel",
4377
- successMessage: "Bonus claimed!",
4378
- errorMessage: "Invalid bonus"
4342
+ bonusClaimSuccessMessage: "Bonus claimed!",
4343
+ bonusClaimErrorMessage: "Invalid bonus"
4379
4344
  }
4380
4345
  };
4381
- function wi(e, t) {
4346
+ function _o(e, t) {
4382
4347
  if (e) {
4383
- const r = document.createElement("style");
4384
- r.innerHTML = t, e.appendChild(r);
4348
+ const n = document.createElement("style");
4349
+ n.innerHTML = t, e.appendChild(n);
4385
4350
  }
4386
4351
  }
4387
- function Ci(e, t) {
4388
- const r = new URL(t);
4389
- fetch(r.href).then((n) => n.text()).then((n) => {
4390
- const o = document.createElement("style");
4391
- o.innerHTML = n, e && e.appendChild(o);
4392
- }).catch((n) => {
4393
- console.error("There was an error while trying to load client styling from URL", n);
4352
+ function Bo(e, t) {
4353
+ const n = new URL(t);
4354
+ fetch(n.href).then((r) => r.text()).then((r) => {
4355
+ const i = document.createElement("style");
4356
+ i.innerHTML = r, e && e.appendChild(i);
4357
+ }).catch((r) => {
4358
+ console.error("There was an error while trying to load client styling from URL", r);
4394
4359
  });
4395
4360
  }
4396
- function Si(e, t, r) {
4361
+ function Eo(e, t, n) {
4397
4362
  if (window.emMessageBus) {
4398
- const n = document.createElement("style");
4399
- window.emMessageBus.subscribe(t, (o) => {
4400
- n.innerHTML = o, e && e.appendChild(n);
4363
+ const r = document.createElement("style");
4364
+ window.emMessageBus.subscribe(t, (i) => {
4365
+ r.innerHTML = i, e && e.appendChild(r);
4401
4366
  });
4402
4367
  }
4403
4368
  }
4404
4369
  if (typeof window < "u") {
4405
4370
  let e = function(t) {
4406
- return function(...r) {
4371
+ return function(...n) {
4407
4372
  try {
4408
- return t.apply(this, r);
4409
- } catch (n) {
4410
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
4373
+ return t.apply(this, n);
4374
+ } catch (r) {
4375
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
4411
4376
  return !1;
4412
- throw n;
4377
+ throw r;
4413
4378
  }
4414
4379
  };
4415
4380
  };
4416
- customElements.define = e(customElements.define), import("./PlayerBonusCard-CSUXA2d5.js").then(({ default: t }) => {
4381
+ customElements.define = e(customElements.define), import("./PlayerBonusCard-Crarx8R2.js").then(({ default: t }) => {
4417
4382
  !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
4418
4383
  });
4419
4384
  }
4420
- function Ai(e) {
4421
- Yr(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{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))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4385
+ function xo(e) {
4386
+ qn(e, "svelte-1nt8h6r", ".ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{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))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}");
4422
4387
  }
4423
- function Qt(e, t, r) {
4424
- const n = e.slice();
4425
- return n[48] = t[r], n[50] = r, n;
4388
+ function zt(e, t, n) {
4389
+ const r = e.slice();
4390
+ return r[48] = t[n], r[50] = n, r;
4426
4391
  }
4427
- function Jt(e, t, r) {
4428
- const n = e.slice();
4429
- return n[51] = t[r], n;
4392
+ function Xt(e, t, n) {
4393
+ const r = e.slice();
4394
+ return r[51] = t[n], r;
4430
4395
  }
4431
- function Ti(e) {
4432
- let t, r, n, o = (
4396
+ function wo(e) {
4397
+ let t, n, r, i = (
4433
4398
  /*$_*/
4434
4399
  e[17]("titleBonuses") + ""
4435
- ), i, s, a, u, l = (
4400
+ ), o, s, a, u, l = (
4436
4401
  /*$_*/
4437
4402
  e[17]("bonusCode") + ""
4438
4403
  ), c, h, f, b, m, d, C = (
4439
4404
  /*$_*/
4440
4405
  e[17]("getBonus") + ""
4441
- ), _, y, P, O, A, E, N, M, K, J = (
4406
+ ), _, y, M, O, T, E, N, H, Y, J = (
4442
4407
  /*isMobile*/
4443
- e[18] && Pi(e)
4408
+ e[18] && Co(e)
4444
4409
  ), R = (
4445
4410
  /*invalidBonusCode*/
4446
- e[8] && Yt(e)
4411
+ e[8] && Zt(e)
4447
4412
  );
4448
4413
  function ue(S, L) {
4449
4414
  return (
4450
4415
  /*activeBonusesList*/
4451
- S[15].length === 0 ? Hi : Mi
4416
+ S[15].length === 0 ? Ao : So
4452
4417
  );
4453
4418
  }
4454
4419
  let le = ue(e), V = le(e), U = (
4455
4420
  /*activeBonusesList*/
4456
- e[15].length !== 0 && er(e)
4421
+ e[15].length !== 0 && Qt(e)
4457
4422
  ), $ = (
4458
4423
  /*bonusModal*/
4459
- e[16] && rr(e)
4424
+ e[16] && Yt(e)
4460
4425
  );
4461
4426
  return {
4462
4427
  c() {
4463
- t = T("div"), J && J.c(), r = j(), n = T("h2"), i = F(o), s = j(), a = T("div"), u = T("label"), c = F(l), h = j(), f = T("div"), b = T("input"), m = j(), d = T("button"), _ = F(C), y = j(), R && R.c(), P = j(), O = T("div"), V.c(), A = j(), U && U.c(), E = j(), $ && $.c(), N = Bt(), B(n, "class", "ActiveBonusesTitle " + /*isMobile*/
4428
+ t = P("div"), J && J.c(), n = j(), r = P("h2"), o = F(i), s = j(), a = P("div"), u = P("label"), c = F(l), h = j(), f = P("div"), b = P("input"), m = j(), d = P("button"), _ = F(C), y = j(), R && R.c(), M = j(), O = P("div"), V.c(), T = j(), U && U.c(), E = j(), $ && $.c(), N = bt(), B(r, "class", "ActiveBonusesTitle " + /*isMobile*/
4464
4429
  (e[18] ? "ActiveBonusesTitleNone" : "")), B(u, "for", "BonusCode"), B(b, "class", "BonusCodeInput " + /*isMobile*/
4465
4430
  (e[18] ? "BonusCodeInputMobile" : "")), B(b, "type", "text"), B(b, "id", "BonusCode"), B(d, "class", "SubmitBonusCode " + /*isMobile*/
4466
4431
  (e[18] ? "SubmitBonusCodeMobile" : "")), d.disabled = /*invalidBonusField*/
@@ -4471,11 +4436,11 @@ function Ti(e) {
4471
4436
  (e[18] ? "ActiveBonusesWrapperMobile" : ""));
4472
4437
  },
4473
4438
  m(S, L) {
4474
- W(S, t, L), J && J.m(t, null), v(t, r), v(t, n), v(n, i), v(t, s), v(t, a), v(a, u), v(u, c), v(a, h), v(a, f), v(f, b), St(
4439
+ W(S, t, L), J && J.m(t, null), v(t, n), v(t, r), v(r, o), v(t, s), v(t, a), v(a, u), v(u, c), v(a, h), v(a, f), v(f, b), Et(
4475
4440
  b,
4476
4441
  /*bonusCode*/
4477
4442
  e[9]
4478
- ), v(f, m), v(f, d), v(d, _), v(a, y), R && R.m(a, null), v(t, P), v(t, O), V.m(O, null), v(t, A), U && U.m(t, null), W(S, E, L), $ && $.m(S, L), W(S, N, L), M || (K = [
4443
+ ), v(f, m), v(f, d), v(d, _), v(a, y), R && R.m(a, null), v(t, M), v(t, O), V.m(O, null), v(t, T), U && U.m(t, null), W(S, E, L), $ && $.m(S, L), W(S, N, L), H || (Y = [
4479
4444
  q(
4480
4445
  b,
4481
4446
  "input",
@@ -4497,17 +4462,17 @@ function Ti(e) {
4497
4462
  e[22]
4498
4463
  )
4499
4464
  )
4500
- ], M = !0);
4465
+ ], H = !0);
4501
4466
  },
4502
4467
  p(S, L) {
4503
4468
  /*isMobile*/
4504
4469
  S[18] && J.p(S, L), L[0] & /*$_*/
4505
- 131072 && o !== (o = /*$_*/
4506
- S[17]("titleBonuses") + "") && ne(i, o), L[0] & /*$_*/
4470
+ 131072 && i !== (i = /*$_*/
4471
+ S[17]("titleBonuses") + "") && ne(o, i), L[0] & /*$_*/
4507
4472
  131072 && l !== (l = /*$_*/
4508
4473
  S[17]("bonusCode") + "") && ne(c, l), L[0] & /*bonusCode*/
4509
4474
  512 && b.value !== /*bonusCode*/
4510
- S[9] && St(
4475
+ S[9] && Et(
4511
4476
  b,
4512
4477
  /*bonusCode*/
4513
4478
  S[9]
@@ -4516,26 +4481,26 @@ function Ti(e) {
4516
4481
  S[17]("getBonus") + "") && ne(_, C), L[0] & /*invalidBonusField*/
4517
4482
  128 && (d.disabled = /*invalidBonusField*/
4518
4483
  S[7]), /*invalidBonusCode*/
4519
- S[8] ? R ? R.p(S, L) : (R = Yt(S), R.c(), R.m(a, null)) : R && (R.d(1), R = null), le === (le = ue(S)) && V ? V.p(S, L) : (V.d(1), V = le(S), V && (V.c(), V.m(O, null))), /*activeBonusesList*/
4520
- S[15].length !== 0 ? U ? U.p(S, L) : (U = er(S), U.c(), U.m(t, null)) : U && (U.d(1), U = null), /*bonusModal*/
4521
- S[16] ? $ ? $.p(S, L) : ($ = rr(S), $.c(), $.m(N.parentNode, N)) : $ && ($.d(1), $ = null);
4484
+ S[8] ? R ? R.p(S, L) : (R = Zt(S), R.c(), R.m(a, null)) : R && (R.d(1), R = null), le === (le = ue(S)) && V ? V.p(S, L) : (V.d(1), V = le(S), V && (V.c(), V.m(O, null))), /*activeBonusesList*/
4485
+ S[15].length !== 0 ? U ? U.p(S, L) : (U = Qt(S), U.c(), U.m(t, null)) : U && (U.d(1), U = null), /*bonusModal*/
4486
+ S[16] ? $ ? $.p(S, L) : ($ = Yt(S), $.c(), $.m(N.parentNode, N)) : $ && ($.d(1), $ = null);
4522
4487
  },
4523
4488
  d(S) {
4524
- S && (G(t), G(E), G(N)), J && J.d(), R && R.d(), V.d(), U && U.d(), $ && $.d(S), M = !1, se(K);
4489
+ S && (G(t), G(E), G(N)), J && J.d(), R && R.d(), V.d(), U && U.d(), $ && $.d(S), H = !1, se(Y);
4525
4490
  }
4526
4491
  };
4527
4492
  }
4528
- function Pi(e) {
4529
- let t, r, n, o, i, s, a, u, l, c, h = (
4493
+ function Co(e) {
4494
+ let t, n, r, i, o, s, a, u, l, c, h = (
4530
4495
  /*$_*/
4531
4496
  e[17]("titleBonuses") + ""
4532
4497
  ), f, b, m;
4533
4498
  return {
4534
4499
  c() {
4535
- t = T("div"), r = ce("svg"), n = ce("defs"), o = ce("style"), i = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = j(), c = T("h2"), f = F(h), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "width", "15"), B(r, "height", "15"), B(r, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4500
+ t = P("div"), n = ce("svg"), r = ce("defs"), i = ce("style"), o = F(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = ce("g"), a = ce("g"), u = ce("path"), l = j(), c = P("h2"), f = F(h), B(u, "class", "aaa"), B(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(u, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "width", "15"), B(n, "height", "15"), B(n, "viewBox", "0 0 15 15"), B(c, "class", "ActiveBonusesTitleMobile"), B(t, "class", "MenuReturnButton");
4536
4501
  },
4537
4502
  m(d, C) {
4538
- W(d, t, C), v(t, r), v(r, n), v(n, o), v(o, i), v(r, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, f), b || (m = q(
4503
+ W(d, t, C), v(t, n), v(n, r), v(r, i), v(i, o), v(n, s), v(s, a), v(a, u), v(t, l), v(t, c), v(c, f), b || (m = q(
4539
4504
  t,
4540
4505
  "click",
4541
4506
  /*click_handler*/
@@ -4552,98 +4517,98 @@ function Pi(e) {
4552
4517
  }
4553
4518
  };
4554
4519
  }
4555
- function Yt(e) {
4556
- let t, r = (
4520
+ function Zt(e) {
4521
+ let t, n = (
4557
4522
  /*$_*/
4558
4523
  e[17]("invalidBonusCode") + ""
4559
- ), n;
4524
+ ), r;
4560
4525
  return {
4561
4526
  c() {
4562
- t = T("p"), n = F(r), B(t, "class", "InvalidBonusCodeMessage");
4527
+ t = P("p"), r = F(n), B(t, "class", "InvalidBonusCodeMessage");
4563
4528
  },
4564
- m(o, i) {
4565
- W(o, t, i), v(t, n);
4529
+ m(i, o) {
4530
+ W(i, t, o), v(t, r);
4566
4531
  },
4567
- p(o, i) {
4568
- i[0] & /*$_*/
4569
- 131072 && r !== (r = /*$_*/
4570
- o[17]("invalidBonusCode") + "") && ne(n, r);
4532
+ p(i, o) {
4533
+ o[0] & /*$_*/
4534
+ 131072 && n !== (n = /*$_*/
4535
+ i[17]("invalidBonusCode") + "") && ne(r, n);
4571
4536
  },
4572
- d(o) {
4573
- o && G(t);
4537
+ d(i) {
4538
+ i && G(t);
4574
4539
  }
4575
4540
  };
4576
4541
  }
4577
- function Mi(e) {
4578
- let t, r = Fe(
4542
+ function So(e) {
4543
+ let t, n = Fe(
4579
4544
  /*activeBonusesList*/
4580
4545
  e[15]
4581
- ), n = [];
4582
- for (let o = 0; o < r.length; o += 1)
4583
- n[o] = Kt(Jt(e, r, o));
4546
+ ), r = [];
4547
+ for (let i = 0; i < n.length; i += 1)
4548
+ r[i] = qt(Xt(e, n, i));
4584
4549
  return {
4585
4550
  c() {
4586
- for (let o = 0; o < n.length; o += 1)
4587
- n[o].c();
4588
- t = Bt();
4551
+ for (let i = 0; i < r.length; i += 1)
4552
+ r[i].c();
4553
+ t = bt();
4589
4554
  },
4590
- m(o, i) {
4591
- for (let s = 0; s < n.length; s += 1)
4592
- n[s] && n[s].m(o, i);
4593
- W(o, t, i);
4555
+ m(i, o) {
4556
+ for (let s = 0; s < r.length; s += 1)
4557
+ r[s] && r[s].m(i, o);
4558
+ W(i, t, o);
4594
4559
  },
4595
- p(o, i) {
4596
- if (i[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale*/
4560
+ p(i, o) {
4561
+ if (o[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale*/
4597
4562
  32831) {
4598
- r = Fe(
4563
+ n = Fe(
4599
4564
  /*activeBonusesList*/
4600
- o[15]
4565
+ i[15]
4601
4566
  );
4602
4567
  let s;
4603
- for (s = 0; s < r.length; s += 1) {
4604
- const a = Jt(o, r, s);
4605
- n[s] ? n[s].p(a, i) : (n[s] = Kt(a), n[s].c(), n[s].m(t.parentNode, t));
4568
+ for (s = 0; s < n.length; s += 1) {
4569
+ const a = Xt(i, n, s);
4570
+ r[s] ? r[s].p(a, o) : (r[s] = qt(a), r[s].c(), r[s].m(t.parentNode, t));
4606
4571
  }
4607
- for (; s < n.length; s += 1)
4608
- n[s].d(1);
4609
- n.length = r.length;
4572
+ for (; s < r.length; s += 1)
4573
+ r[s].d(1);
4574
+ r.length = n.length;
4610
4575
  }
4611
4576
  },
4612
- d(o) {
4613
- o && G(t), sr(n, o);
4577
+ d(i) {
4578
+ i && G(t), nn(r, i);
4614
4579
  }
4615
4580
  };
4616
4581
  }
4617
- function Hi(e) {
4618
- let t, r = (
4582
+ function Ao(e) {
4583
+ let t, n = (
4619
4584
  /*$_*/
4620
4585
  e[17]("noActiveBonuses") + ""
4621
- ), n;
4586
+ ), r;
4622
4587
  return {
4623
4588
  c() {
4624
- t = T("p"), n = F(r);
4589
+ t = P("p"), r = F(n);
4625
4590
  },
4626
- m(o, i) {
4627
- W(o, t, i), v(t, n);
4591
+ m(i, o) {
4592
+ W(i, t, o), v(t, r);
4628
4593
  },
4629
- p(o, i) {
4630
- i[0] & /*$_*/
4631
- 131072 && r !== (r = /*$_*/
4632
- o[17]("noActiveBonuses") + "") && ne(n, r);
4594
+ p(i, o) {
4595
+ o[0] & /*$_*/
4596
+ 131072 && n !== (n = /*$_*/
4597
+ i[17]("noActiveBonuses") + "") && ne(r, n);
4633
4598
  },
4634
- d(o) {
4635
- o && G(t);
4599
+ d(i) {
4600
+ i && G(t);
4636
4601
  }
4637
4602
  };
4638
4603
  }
4639
- function Oi(e) {
4640
- let t, r, n, o, i, s, a, u, l, c, h, f, b, m, d, C;
4604
+ function To(e) {
4605
+ let t, n, r, i, o, s, a, u, l, c, h, f, b, m, d, C;
4641
4606
  return {
4642
4607
  c() {
4643
- t = T("player-bonus-card"), p(t, "termsandconditionsdescription", r = /*activeBonus*/
4644
- e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", n = /*activeBonus*/
4645
- e[51].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4646
- e[51].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
4608
+ t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4609
+ e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4610
+ e[51].termsandconditionsurl), p(t, "termsandconditionsasset", i = /*activeBonus*/
4611
+ e[51].termsandconditionsasset), p(t, "endpoint", o = /*activeBonus*/
4647
4612
  e[51].endpoint), p(t, "playerid", s = /*activeBonus*/
4648
4613
  e[51].playerid), p(t, "session", a = /*activeBonus*/
4649
4614
  e[51].session), p(t, "bonuswalletid", u = /*activeBonus*/
@@ -4693,14 +4658,14 @@ function Oi(e) {
4693
4658
  },
4694
4659
  p(_, y) {
4695
4660
  y[0] & /*activeBonusesList*/
4696
- 32768 && r !== (r = /*activeBonus*/
4697
- _[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", r), y[0] & /*activeBonusesList*/
4698
4661
  32768 && n !== (n = /*activeBonus*/
4699
- _[51].termsandconditionsurl) && p(t, "termsandconditionsurl", n), y[0] & /*activeBonusesList*/
4700
- 32768 && o !== (o = /*activeBonus*/
4701
- _[51].termsandconditionsasset) && p(t, "termsandconditionsasset", o), y[0] & /*activeBonusesList*/
4662
+ _[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", n), y[0] & /*activeBonusesList*/
4663
+ 32768 && r !== (r = /*activeBonus*/
4664
+ _[51].termsandconditionsurl) && p(t, "termsandconditionsurl", r), y[0] & /*activeBonusesList*/
4702
4665
  32768 && i !== (i = /*activeBonus*/
4703
- _[51].endpoint) && p(t, "endpoint", i), y[0] & /*activeBonusesList*/
4666
+ _[51].termsandconditionsasset) && p(t, "termsandconditionsasset", i), y[0] & /*activeBonusesList*/
4667
+ 32768 && o !== (o = /*activeBonus*/
4668
+ _[51].endpoint) && p(t, "endpoint", o), y[0] & /*activeBonusesList*/
4704
4669
  32768 && s !== (s = /*activeBonus*/
4705
4670
  _[51].playerid) && p(t, "playerid", s), y[0] & /*activeBonusesList*/
4706
4671
  32768 && a !== (a = /*activeBonus*/
@@ -4766,14 +4731,14 @@ function Oi(e) {
4766
4731
  }
4767
4732
  };
4768
4733
  }
4769
- function Ii(e) {
4770
- let t, r, n, o, i, s, a, u, l, c, h, f, b;
4734
+ function Po(e) {
4735
+ let t, n, r, i, o, s, a, u, l, c, h, f, b;
4771
4736
  return {
4772
4737
  c() {
4773
- t = T("player-bonus-card"), p(t, "termsandconditionsdescription", r = /*activeBonus*/
4774
- e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", n = /*activeBonus*/
4775
- e[51].termsandconditionsurl), p(t, "termsandconditionsasset", o = /*activeBonus*/
4776
- e[51].termsandconditionsasset), p(t, "endpoint", i = /*activeBonus*/
4738
+ t = P("player-bonus-card"), p(t, "termsandconditionsdescription", n = /*activeBonus*/
4739
+ e[51].termsandconditionsdescription), p(t, "termsandconditionsurl", r = /*activeBonus*/
4740
+ e[51].termsandconditionsurl), p(t, "termsandconditionsasset", i = /*activeBonus*/
4741
+ e[51].termsandconditionsasset), p(t, "endpoint", o = /*activeBonus*/
4777
4742
  e[51].endpoint), p(t, "playerid", s = /*activeBonus*/
4778
4743
  e[51].playerid), p(t, "session", a = /*activeBonus*/
4779
4744
  e[51].session), p(t, "bonuswalletid", u = /*activeBonus*/
@@ -4819,14 +4784,14 @@ function Ii(e) {
4819
4784
  },
4820
4785
  p(m, d) {
4821
4786
  d[0] & /*activeBonusesList*/
4822
- 32768 && r !== (r = /*activeBonus*/
4823
- m[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", r), d[0] & /*activeBonusesList*/
4824
4787
  32768 && n !== (n = /*activeBonus*/
4825
- m[51].termsandconditionsurl) && p(t, "termsandconditionsurl", n), d[0] & /*activeBonusesList*/
4826
- 32768 && o !== (o = /*activeBonus*/
4827
- m[51].termsandconditionsasset) && p(t, "termsandconditionsasset", o), d[0] & /*activeBonusesList*/
4788
+ m[51].termsandconditionsdescription) && p(t, "termsandconditionsdescription", n), d[0] & /*activeBonusesList*/
4789
+ 32768 && r !== (r = /*activeBonus*/
4790
+ m[51].termsandconditionsurl) && p(t, "termsandconditionsurl", r), d[0] & /*activeBonusesList*/
4828
4791
  32768 && i !== (i = /*activeBonus*/
4829
- m[51].endpoint) && p(t, "endpoint", i), d[0] & /*activeBonusesList*/
4792
+ m[51].termsandconditionsasset) && p(t, "termsandconditionsasset", i), d[0] & /*activeBonusesList*/
4793
+ 32768 && o !== (o = /*activeBonus*/
4794
+ m[51].endpoint) && p(t, "endpoint", o), d[0] & /*activeBonusesList*/
4830
4795
  32768 && s !== (s = /*activeBonus*/
4831
4796
  m[51].playerid) && p(t, "playerid", s), d[0] & /*activeBonusesList*/
4832
4797
  32768 && a !== (a = /*activeBonus*/
@@ -4885,43 +4850,43 @@ function Ii(e) {
4885
4850
  }
4886
4851
  };
4887
4852
  }
4888
- function Kt(e) {
4853
+ function qt(e) {
4889
4854
  let t;
4890
- function r(i, s) {
4855
+ function n(o, s) {
4891
4856
  return (
4892
4857
  /*activeBonus*/
4893
- i[51].type === "freeRound" ? Ii : Oi
4858
+ o[51].type === "freeRound" ? Po : To
4894
4859
  );
4895
4860
  }
4896
- let n = r(e), o = n(e);
4861
+ let r = n(e), i = r(e);
4897
4862
  return {
4898
4863
  c() {
4899
- o.c(), t = Bt();
4864
+ i.c(), t = bt();
4900
4865
  },
4901
- m(i, s) {
4902
- o.m(i, s), W(i, t, s);
4866
+ m(o, s) {
4867
+ i.m(o, s), W(o, t, s);
4903
4868
  },
4904
- p(i, s) {
4905
- n === (n = r(i)) && o ? o.p(i, s) : (o.d(1), o = n(i), o && (o.c(), o.m(t.parentNode, t)));
4869
+ p(o, s) {
4870
+ r === (r = n(o)) && i ? i.p(o, s) : (i.d(1), i = r(o), i && (i.c(), i.m(t.parentNode, t)));
4906
4871
  },
4907
- d(i) {
4908
- i && G(t), o.d(i);
4872
+ d(o) {
4873
+ o && G(t), i.d(o);
4909
4874
  }
4910
4875
  };
4911
4876
  }
4912
- function er(e) {
4913
- let t, r, n, o, i, s, a, u, l, c, h, f, b, m, d, C, _, y, P, O = Fe(Array(
4877
+ function Qt(e) {
4878
+ let t, n, r, i, o, s, a, u, l, c, h, f, b, m, d, C, _, y, M, O = Fe(Array(
4914
4879
  /*numberOfPages*/
4915
4880
  e[13]
4916
- )), A = [];
4881
+ )), T = [];
4917
4882
  for (let E = 0; E < O.length; E += 1)
4918
- A[E] = tr(Qt(e, O, E));
4883
+ T[E] = Jt(zt(e, O, E));
4919
4884
  return {
4920
4885
  c() {
4921
- t = T("div"), r = T("span"), n = F("|<"), i = j(), s = T("span"), a = F("<"), l = j();
4922
- for (let E = 0; E < A.length; E += 1)
4923
- A[E].c();
4924
- c = j(), h = T("span"), f = F(">"), m = j(), d = T("span"), C = F(">|"), B(r, "class", o = "BonusesFirst " + /*currentPage*/
4886
+ t = P("div"), n = P("span"), r = F("|<"), o = j(), s = P("span"), a = F("<"), l = j();
4887
+ for (let E = 0; E < T.length; E += 1)
4888
+ T[E].c();
4889
+ c = j(), h = P("span"), f = F(">"), m = j(), d = P("span"), C = F(">|"), B(n, "class", i = "BonusesFirst " + /*currentPage*/
4925
4890
  (e[14] === 0 ? "Inactive" : "")), B(s, "class", u = "BonusesPrev " + /*currentPage*/
4926
4891
  (e[14] === 0 ? "Inactive" : "")), B(h, "class", b = "BonusesNext " + /*currentPage*/
4927
4892
  (e[14] === /*numberOfPages*/
@@ -4931,12 +4896,12 @@ function er(e) {
4931
4896
  (e[18] ? "BonusesPaginationWrapperMobile" : ""));
4932
4897
  },
4933
4898
  m(E, N) {
4934
- W(E, t, N), v(t, r), v(r, n), v(t, i), v(t, s), v(s, a), v(t, l);
4935
- for (let M = 0; M < A.length; M += 1)
4936
- A[M] && A[M].m(t, null);
4937
- v(t, c), v(t, h), v(h, f), v(t, m), v(t, d), v(d, C), y || (P = [
4899
+ W(E, t, N), v(t, n), v(n, r), v(t, o), v(t, s), v(s, a), v(t, l);
4900
+ for (let H = 0; H < T.length; H += 1)
4901
+ T[H] && T[H].m(t, null);
4902
+ v(t, c), v(t, h), v(h, f), v(t, m), v(t, d), v(d, C), y || (M = [
4938
4903
  q(
4939
- r,
4904
+ n,
4940
4905
  "click",
4941
4906
  /*click_handler_1*/
4942
4907
  e[32]
@@ -4963,8 +4928,8 @@ function er(e) {
4963
4928
  },
4964
4929
  p(E, N) {
4965
4930
  if (N[0] & /*currentPage*/
4966
- 16384 && o !== (o = "BonusesFirst " + /*currentPage*/
4967
- (E[14] === 0 ? "Inactive" : "")) && B(r, "class", o), N[0] & /*currentPage*/
4931
+ 16384 && i !== (i = "BonusesFirst " + /*currentPage*/
4932
+ (E[14] === 0 ? "Inactive" : "")) && B(n, "class", i), N[0] & /*currentPage*/
4968
4933
  16384 && u !== (u = "BonusesPrev " + /*currentPage*/
4969
4934
  (E[14] === 0 ? "Inactive" : "")) && B(s, "class", u), N[0] & /*currentPage, getActiveBonuses, numberOfPages*/
4970
4935
  2121728) {
@@ -4972,14 +4937,14 @@ function er(e) {
4972
4937
  /*numberOfPages*/
4973
4938
  E[13]
4974
4939
  ));
4975
- let M;
4976
- for (M = 0; M < O.length; M += 1) {
4977
- const K = Qt(E, O, M);
4978
- A[M] ? A[M].p(K, N) : (A[M] = tr(K), A[M].c(), A[M].m(t, c));
4940
+ let H;
4941
+ for (H = 0; H < O.length; H += 1) {
4942
+ const Y = zt(E, O, H);
4943
+ T[H] ? T[H].p(Y, N) : (T[H] = Jt(Y), T[H].c(), T[H].m(t, c));
4979
4944
  }
4980
- for (; M < A.length; M += 1)
4981
- A[M].d(1);
4982
- A.length = O.length;
4945
+ for (; H < T.length; H += 1)
4946
+ T[H].d(1);
4947
+ T.length = O.length;
4983
4948
  }
4984
4949
  N[0] & /*currentPage, numberOfPages*/
4985
4950
  24576 && b !== (b = "BonusesNext " + /*currentPage*/
@@ -4990,15 +4955,15 @@ function er(e) {
4990
4955
  E[13] - 1 ? "Inactive" : "")) && B(d, "class", _);
4991
4956
  },
4992
4957
  d(E) {
4993
- E && G(t), sr(A, E), y = !1, se(P);
4958
+ E && G(t), nn(T, E), y = !1, se(M);
4994
4959
  }
4995
4960
  };
4996
4961
  }
4997
- function tr(e) {
4998
- let t, r = (
4962
+ function Jt(e) {
4963
+ let t, n = (
4999
4964
  /*i*/
5000
4965
  e[50] + 1 + ""
5001
- ), n, o, i, s;
4966
+ ), r, i, o, s;
5002
4967
  function a() {
5003
4968
  return (
5004
4969
  /*click_handler_3*/
@@ -5010,26 +4975,26 @@ function tr(e) {
5010
4975
  }
5011
4976
  return {
5012
4977
  c() {
5013
- t = T("span"), n = F(r), B(t, "class", o = "BonusesPage " + /*i*/
4978
+ t = P("span"), r = F(n), B(t, "class", i = "BonusesPage " + /*i*/
5014
4979
  (e[50] === /*currentPage*/
5015
4980
  e[14] ? "BonusPageActive" : ""));
5016
4981
  },
5017
4982
  m(u, l) {
5018
- W(u, t, l), v(t, n), i || (s = q(t, "click", a), i = !0);
4983
+ W(u, t, l), v(t, r), o || (s = q(t, "click", a), o = !0);
5019
4984
  },
5020
4985
  p(u, l) {
5021
4986
  e = u, l[0] & /*currentPage*/
5022
- 16384 && o !== (o = "BonusesPage " + /*i*/
4987
+ 16384 && i !== (i = "BonusesPage " + /*i*/
5023
4988
  (e[50] === /*currentPage*/
5024
- e[14] ? "BonusPageActive" : "")) && B(t, "class", o);
4989
+ e[14] ? "BonusPageActive" : "")) && B(t, "class", i);
5025
4990
  },
5026
4991
  d(u) {
5027
- u && G(t), i = !1, s();
4992
+ u && G(t), o = !1, s();
5028
4993
  }
5029
4994
  };
5030
4995
  }
5031
- function rr(e) {
5032
- let t, r, n, o, i = (
4996
+ function Yt(e) {
4997
+ let t, n, r, i, o = (
5033
4998
  /*$_*/
5034
4999
  e[17]("forfeitBonus") + ""
5035
5000
  ), s, a, u, l, c = (
@@ -5041,11 +5006,11 @@ function rr(e) {
5041
5006
  ), d, C, _;
5042
5007
  return {
5043
5008
  c() {
5044
- t = T("div"), r = T("div"), n = T("div"), o = T("p"), s = F(i), a = j(), u = T("div"), l = T("button"), h = F(c), f = j(), b = T("button"), d = F(m), B(o, "class", "ModalText"), B(l, "class", "ModalCancel"), B(b, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(n, "class", "ModalBody"), B(r, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5009
+ t = P("div"), n = P("div"), r = P("div"), i = P("p"), s = F(o), a = j(), u = P("div"), l = P("button"), h = F(c), f = j(), b = P("button"), d = F(m), B(i, "class", "ModalText"), B(l, "class", "ModalCancel"), B(b, "class", "ModalConfirm"), B(u, "class", "ModalButtons"), B(r, "class", "ModalBody"), B(n, "class", "ModalContent"), B(t, "class", "ModalWrapper " + /*isMobile*/
5045
5010
  (e[18] ? "ModalWrapperMobile" : ""));
5046
5011
  },
5047
- m(y, P) {
5048
- W(y, t, P), v(t, r), v(r, n), v(n, o), v(o, s), v(n, a), v(n, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, d), C || (_ = [
5012
+ m(y, M) {
5013
+ W(y, t, M), v(t, n), v(n, r), v(r, i), v(i, s), v(r, a), v(r, u), v(u, l), v(l, h), v(u, f), v(u, b), v(b, d), C || (_ = [
5049
5014
  q(
5050
5015
  l,
5051
5016
  "click",
@@ -5063,12 +5028,12 @@ function rr(e) {
5063
5028
  )
5064
5029
  ], C = !0);
5065
5030
  },
5066
- p(y, P) {
5067
- P[0] & /*$_*/
5068
- 131072 && i !== (i = /*$_*/
5069
- y[17]("forfeitBonus") + "") && ne(s, i), P[0] & /*$_*/
5031
+ p(y, M) {
5032
+ M[0] & /*$_*/
5033
+ 131072 && o !== (o = /*$_*/
5034
+ y[17]("forfeitBonus") + "") && ne(s, o), M[0] & /*$_*/
5070
5035
  131072 && c !== (c = /*$_*/
5071
- y[17]("forfeitBonusCancel") + "") && ne(h, c), P[0] & /*$_*/
5036
+ y[17]("forfeitBonusCancel") + "") && ne(h, c), M[0] & /*$_*/
5072
5037
  131072 && m !== (m = /*$_*/
5073
5038
  y[17]("forfeitBonusConfirm") + "") && ne(d, m);
5074
5039
  },
@@ -5077,51 +5042,51 @@ function rr(e) {
5077
5042
  }
5078
5043
  };
5079
5044
  }
5080
- function Ni(e) {
5045
+ function Mo(e) {
5081
5046
  let t;
5082
- function r(i, s) {
5083
- return Ti;
5047
+ function n(o, s) {
5048
+ return wo;
5084
5049
  }
5085
- let o = r()(e);
5050
+ let i = n()(e);
5086
5051
  return {
5087
5052
  c() {
5088
- t = T("div"), o.c();
5053
+ t = P("div"), i.c();
5089
5054
  },
5090
- m(i, s) {
5091
- W(i, t, s), o.m(t, null), e[37](t);
5055
+ m(o, s) {
5056
+ W(o, t, s), i.m(t, null), e[37](t);
5092
5057
  },
5093
- p(i, s) {
5094
- o.p(i, s);
5058
+ p(o, s) {
5059
+ i.p(o, s);
5095
5060
  },
5096
5061
  i: Q,
5097
5062
  o: Q,
5098
- d(i) {
5099
- i && G(t), o.d(), e[37](null);
5063
+ d(o) {
5064
+ o && G(t), i.d(), e[37](null);
5100
5065
  }
5101
5066
  };
5102
5067
  }
5103
- let Li = "status=active", re = 6;
5104
- function Ri(e, t, r) {
5105
- let n;
5106
- Jr(e, Bi, (g) => r(17, n = g));
5107
- let { endpoint: o = "" } = t, { session: i = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, { currencylocale: b = "" } = t, m, d = window.navigator.userAgent, C = Ei(d) !== "PC", _ = !0, y = !1, P = "", O = 0, A = 0, E = 0, N = 0, M = 0, K = [], J, R = "", ue = !1;
5068
+ let Ho = "status=active", te = 6;
5069
+ function Io(e, t, n) {
5070
+ let r;
5071
+ Zn(e, go, (g) => n(17, r = g));
5072
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { currency: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, { currencylocale: b = "" } = t, m, d = window.navigator.userAgent, C = vo(d) !== "PC", _ = !0, y = !1, M = "", O = 0, T = 0, E = 0, N = 0, H = 0, Y = [], J, R = "", ue = !1;
5108
5073
  const le = () => {
5109
5074
  fetch(f).then((D) => D.json()).then((D) => {
5110
5075
  Object.keys(D).forEach((X) => {
5111
- Zt(X, D[X]);
5076
+ Wt(X, D[X]);
5112
5077
  });
5113
5078
  }).catch((D) => {
5114
5079
  console.log(D);
5115
5080
  });
5116
5081
  };
5117
- Object.keys(qt).forEach((g) => {
5118
- Zt(g, qt[g]);
5082
+ Object.keys(Vt).forEach((g) => {
5083
+ Wt(g, Vt[g]);
5119
5084
  });
5120
5085
  const V = (g) => {
5121
5086
  if (g.data)
5122
5087
  switch (g.data.type) {
5123
5088
  case "DeleteActiveBonus":
5124
- R = g.data.bonuswalletid, r(16, ue = !0);
5089
+ R = g.data.bonuswalletid, n(16, ue = !0);
5125
5090
  break;
5126
5091
  }
5127
5092
  };
@@ -5143,101 +5108,101 @@ function Ri(e, t, r) {
5143
5108
  },
5144
5109
  window.location.href
5145
5110
  );
5146
- }, S = () => !!P, L = () => {
5147
- r(7, _ = !S());
5148
- }, ee = (g) => {
5111
+ }, S = () => !!M, L = () => {
5112
+ n(7, _ = !S());
5113
+ }, K = (g) => {
5149
5114
  let D = {
5150
5115
  method: "GET",
5151
- headers: { "X-SessionId": i }
5152
- }, X = new URL(`${o}/v1/player/${s}/bonusWallet`);
5153
- X.searchParams.append("filter", Li), X.searchParams.append("pagination", `offset=${g},limit=${re}`), fetch(X, D).then((te) => te.json()).then(
5154
- (te) => {
5155
- Array.isArray(te.items) && te.items.forEach((z) => {
5116
+ headers: { "X-SessionId": o }
5117
+ }, X = new URL(`${i}/v1/player/${s}/bonusWallet`);
5118
+ X.searchParams.append("filter", Ho), X.searchParams.append("pagination", `offset=${g},limit=${te}`), fetch(X, D).then((ee) => ee.json()).then(
5119
+ (ee) => {
5120
+ Array.isArray(ee.items) && ee.items.forEach((z) => {
5156
5121
  const Me = z?.extension?.bonus?.presentation;
5157
5122
  Me && (z.termsandconditionsurl = Me.url, z.termsandconditionsdescription = Me.description, z.termsandconditionsasset = Me.assets);
5158
- }), r(13, N = Math.ceil(te.total / re)), g - re >= 0 && r(10, O = g - re), g + re < te.total && r(11, A = g + re), r(12, E = (N - 1) * re), r(14, M = g / re), r(15, K = te?.items || []), b && K.forEach((z) => {
5123
+ }), n(13, N = Math.ceil(ee.total / te)), g - te >= 0 && n(10, O = g - te), g + te < ee.total && n(11, T = g + te), n(12, E = (N - 1) * te), n(14, H = g / te), n(15, Y = ee?.items || []), b && Y.forEach((z) => {
5159
5124
  z.fulfilledWR = Pe(z.fulfilledWR), z.originalWageringRequirement = Pe(z.originalWageringRequirement), z.currentAmount = Pe(z.currentAmount), z.extension.grantedPlayerCurrencyAmount = Pe(z.extension.grantedPlayerCurrencyAmount);
5160
5125
  }), window.scrollTo({ top: 0, behavior: "smooth" });
5161
5126
  },
5162
- (te) => {
5163
- console.error(te);
5127
+ (ee) => {
5128
+ console.error(ee);
5164
5129
  }
5165
5130
  );
5166
- }, Pe = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Fr = () => {
5167
- let g = new URL(`${o}/v1/player/${s}/claimbonus`), D = {
5131
+ }, Pe = (g) => new Intl.NumberFormat(b, { style: "currency", currency: u }).format(g).replace(/\s/g, ""), Ln = () => {
5132
+ let g = new URL(`${i}/v1/player/${s}/claimbonus`), D = {
5168
5133
  method: "POST",
5169
5134
  headers: {
5170
- "X-SessionId": i,
5135
+ "X-SessionId": o,
5171
5136
  accept: "application/json"
5172
5137
  }
5173
5138
  };
5174
- g.searchParams.append("currency", u), g.searchParams.append("bonusCode", P), fetch(g.href, D).then((X) => {
5175
- X.status == 200 ? (r(8, y = !1), ee(0), window.postMessage(
5139
+ g.searchParams.append("currency", u), g.searchParams.append("bonusCode", M), fetch(g.href, D).then((X) => {
5140
+ X.status == 200 ? (n(8, y = !1), K(0), window.postMessage(
5176
5141
  {
5177
5142
  type: "WidgetNotification",
5178
5143
  data: {
5179
5144
  type: "success",
5180
- message: n("successMessage")
5145
+ message: r("bonusClaimSuccessMessage")
5181
5146
  }
5182
5147
  },
5183
5148
  window.location.href
5184
5149
  ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
5185
5150
  context: "PlayerActiveBonuses",
5186
5151
  userId: `${s || "Not logged in"}`,
5187
- bonusCode: `${P}`
5188
- })) : (r(8, y = !0), window.postMessage(
5152
+ bonusCode: `${M}`
5153
+ })) : (n(8, y = !0), window.postMessage(
5189
5154
  {
5190
5155
  type: "WidgetNotification",
5191
5156
  data: {
5192
5157
  type: "error",
5193
- message: n("errorMessage")
5158
+ message: r("bonusClaimErrorMessage")
5194
5159
  }
5195
5160
  },
5196
5161
  window.location.href
5197
5162
  ));
5198
5163
  });
5199
- }, wt = () => {
5200
- window.postMessage({ type: "EnableScroll" }, window.location.href), r(16, ue = !1);
5201
- }, Ur = () => {
5164
+ }, _t = () => {
5165
+ window.postMessage({ type: "EnableScroll" }, window.location.href), n(16, ue = !1);
5166
+ }, Rn = () => {
5202
5167
  let g = {
5203
5168
  method: "DELETE",
5204
5169
  headers: {
5205
- "X-SessionId": i,
5170
+ "X-SessionId": o,
5206
5171
  "Content-Type": "application/json",
5207
5172
  Accept: "application/json"
5208
5173
  }
5209
- }, D = new URL(`${o}/v1/player/${s}/bonusWallet`);
5174
+ }, D = new URL(`${i}/v1/player/${s}/bonusWallet`);
5210
5175
  D.searchParams.append("bonusWalletID", R), fetch(D, g).then((X) => {
5211
- X.status == 200 && (ee(0), wt());
5176
+ X.status == 200 && (K(0), _t());
5212
5177
  });
5213
- }, Dr = () => {
5214
- xi(a);
5178
+ }, $n = () => {
5179
+ yo(a);
5215
5180
  };
5216
- function Gr(g) {
5181
+ function Fn(g) {
5217
5182
  return U(g, 1e3);
5218
5183
  }
5219
- on(() => (window.addEventListener("message", V, !1), () => {
5184
+ tr(() => (window.addEventListener("message", V, !1), () => {
5220
5185
  window.removeEventListener("message", V);
5221
5186
  }));
5222
- const kr = () => $();
5223
- function jr() {
5224
- P = this.value, r(9, P);
5187
+ const Un = () => $();
5188
+ function Dn() {
5189
+ M = this.value, n(9, M);
5225
5190
  }
5226
- const Wr = () => ee(0), Vr = () => ee(O), zr = (g) => ee(g * re), Xr = () => ee(A), Zr = () => ee(E);
5227
- function qr(g) {
5228
- rt[g ? "unshift" : "push"](() => {
5229
- m = g, r(6, m);
5191
+ const Gn = () => K(0), kn = () => K(O), jn = (g) => K(g * te), Wn = () => K(T), Vn = () => K(E);
5192
+ function zn(g) {
5193
+ Ke[g ? "unshift" : "push"](() => {
5194
+ m = g, n(6, m);
5230
5195
  });
5231
5196
  }
5232
5197
  return e.$$set = (g) => {
5233
- "endpoint" in g && r(26, o = g.endpoint), "session" in g && r(27, i = g.session), "playerid" in g && r(28, s = g.playerid), "lang" in g && r(0, a = g.lang), "currency" in g && r(29, u = g.currency), "clientstyling" in g && r(1, l = g.clientstyling), "clientstylingurl" in g && r(2, c = g.clientstylingurl), "mbsource" in g && r(3, h = g.mbsource), "translationurl" in g && r(4, f = g.translationurl), "currencylocale" in g && r(5, b = g.currencylocale);
5198
+ "endpoint" in g && n(26, i = g.endpoint), "session" in g && n(27, o = g.session), "playerid" in g && n(28, s = g.playerid), "lang" in g && n(0, a = g.lang), "currency" in g && n(29, u = g.currency), "clientstyling" in g && n(1, l = g.clientstyling), "clientstylingurl" in g && n(2, c = g.clientstylingurl), "mbsource" in g && n(3, h = g.mbsource), "translationurl" in g && n(4, f = g.translationurl), "currencylocale" in g && n(5, b = g.currencylocale);
5234
5199
  }, e.$$.update = () => {
5235
5200
  e.$$.dirty[0] & /*lang*/
5236
- 1 && a && Dr(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5237
- 469762048 && i && s && o && ee(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5238
- 66 && l && m && wi(m, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5239
- 68 && c && m && Ci(m, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5240
- 72 && h && m && Si(m, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
5201
+ 1 && a && $n(), e.$$.dirty[0] & /*session, playerid, endpoint*/
5202
+ 469762048 && o && s && i && K(0), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5203
+ 66 && l && m && _o(m, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5204
+ 68 && c && m && Bo(m, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5205
+ 72 && h && m && Eo(m, `${h}.Style`), e.$$.dirty[0] & /*translationurl*/
5241
5206
  16 && f && le();
5242
5207
  }, [
5243
5208
  a,
@@ -5249,45 +5214,45 @@ function Ri(e, t, r) {
5249
5214
  m,
5250
5215
  _,
5251
5216
  y,
5252
- P,
5217
+ M,
5253
5218
  O,
5254
- A,
5219
+ T,
5255
5220
  E,
5256
5221
  N,
5257
- M,
5258
- K,
5222
+ H,
5223
+ Y,
5259
5224
  ue,
5260
- n,
5225
+ r,
5261
5226
  C,
5262
5227
  $,
5263
5228
  L,
5264
- ee,
5265
- Fr,
5266
- wt,
5267
- Ur,
5268
- Gr,
5269
- o,
5229
+ K,
5230
+ Ln,
5231
+ _t,
5232
+ Rn,
5233
+ Fn,
5270
5234
  i,
5235
+ o,
5271
5236
  s,
5272
5237
  u,
5273
- kr,
5274
- jr,
5275
- Wr,
5276
- Vr,
5277
- zr,
5278
- Xr,
5279
- Zr,
5280
- qr
5238
+ Un,
5239
+ Dn,
5240
+ Gn,
5241
+ kn,
5242
+ jn,
5243
+ Wn,
5244
+ Vn,
5245
+ zn
5281
5246
  ];
5282
5247
  }
5283
- class $i extends gn {
5248
+ class Oo extends dr {
5284
5249
  constructor(t) {
5285
- super(), mn(
5250
+ super(), hr(
5286
5251
  this,
5287
5252
  t,
5288
- Ri,
5289
- Ni,
5290
- or,
5253
+ Io,
5254
+ Mo,
5255
+ en,
5291
5256
  {
5292
5257
  endpoint: 26,
5293
5258
  session: 27,
@@ -5300,7 +5265,7 @@ class $i extends gn {
5300
5265
  translationurl: 4,
5301
5266
  currencylocale: 5
5302
5267
  },
5303
- Ai,
5268
+ xo,
5304
5269
  [-1, -1]
5305
5270
  );
5306
5271
  }
@@ -5365,34 +5330,34 @@ class $i extends gn {
5365
5330
  this.$$set({ currencylocale: t }), Z();
5366
5331
  }
5367
5332
  }
5368
- bn($i, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {} }, [], [], !0);
5333
+ fr(Oo, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {} }, [], [], !0);
5369
5334
  export {
5370
- _e as $,
5371
- $i as P,
5372
- gn as S,
5373
- Ir as a,
5374
- Yr as b,
5375
- bn as c,
5376
- G as d,
5377
- ne as e,
5335
+ Be as $,
5336
+ Oo as P,
5337
+ dr as S,
5338
+ Mn as a,
5339
+ qn as b,
5340
+ fr as c,
5341
+ j as d,
5342
+ P as e,
5378
5343
  Z as f,
5379
5344
  B as g,
5380
5345
  W as h,
5381
- mn as i,
5346
+ hr as i,
5382
5347
  v as j,
5383
- T as k,
5384
- j as l,
5385
- Jr as m,
5348
+ ne as k,
5349
+ G as l,
5350
+ Zn as m,
5386
5351
  Q as n,
5387
- Ei as o,
5388
- on as p,
5389
- Fi as q,
5352
+ vo as o,
5353
+ tr as p,
5354
+ No as q,
5390
5355
  q as r,
5391
- or as s,
5356
+ en as s,
5392
5357
  F as t,
5393
- rt as u,
5394
- Bi as v,
5395
- wi as w,
5396
- Ci as x,
5397
- Si as y
5358
+ Ke as u,
5359
+ _o as v,
5360
+ Bo as w,
5361
+ Eo as x,
5362
+ go as y
5398
5363
  };