@everymatrix/casino-random-game 1.76.3 → 1.76.4

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,88 +1,88 @@
1
- var Xn = Object.defineProperty, zn = Object.defineProperties;
2
- var Jn = Object.getOwnPropertyDescriptors;
3
- var mt = Object.getOwnPropertySymbols;
4
- var Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable;
5
- var Ge = (e, t, n) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pt = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Zn.call(t, n) && Ge(e, n, t[n]);
8
- if (mt)
9
- for (var n of mt(t))
10
- Qn.call(t, n) && Ge(e, n, t[n]);
1
+ var Zr = Object.defineProperty, Qr = Object.defineProperties;
2
+ var Yr = Object.getOwnPropertyDescriptors;
3
+ var yt = Object.getOwnPropertySymbols;
4
+ var qr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable;
5
+ var $e = (e, t, r) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vt = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ qr.call(t, r) && $e(e, r, t[r]);
8
+ if (yt)
9
+ for (var r of yt(t))
10
+ Kr.call(t, r) && $e(e, r, t[r]);
11
11
  return e;
12
- }, bt = (e, t) => zn(e, Jn(t));
13
- var N = (e, t, n) => (Ge(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var ye = (e, t, n) => new Promise((r, i) => {
12
+ }, _t = (e, t) => Qr(e, Yr(t));
13
+ var N = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ye = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
17
- s(n.next(h));
17
+ s(r.next(h));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
21
  }, a = (h) => {
22
22
  try {
23
- s(n.throw(h));
23
+ s(r.throw(h));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (h) => h.done ? r(h.value) : Promise.resolve(h.value).then(o, a);
28
- s((n = n.apply(e, t)).next());
27
+ }, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
28
+ s((r = r.apply(e, t)).next());
29
29
  });
30
- function C() {
30
+ function G() {
31
31
  }
32
- function Yn(e, t) {
33
- for (const n in t)
34
- e[n] = t[n];
32
+ function en(e, t) {
33
+ for (const r in t)
34
+ e[r] = t[r];
35
35
  return (
36
36
  /** @type {T & S} */
37
37
  e
38
38
  );
39
39
  }
40
- function Jt(e) {
40
+ function qt(e) {
41
41
  return e();
42
42
  }
43
- function gt() {
43
+ function xt() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
46
  function J(e) {
47
- e.forEach(Jt);
47
+ e.forEach(qt);
48
48
  }
49
- function st(e) {
49
+ function ft(e) {
50
50
  return typeof e == "function";
51
51
  }
52
- function Zt(e, t) {
52
+ function Kt(e, t) {
53
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
54
  }
55
- let _e;
56
- function yt(e, t) {
57
- return e === t ? !0 : (_e || (_e = document.createElement("a")), _e.href = t, e === _e.href);
55
+ let ve;
56
+ function Et(e, t) {
57
+ return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
58
58
  }
59
- function qn(e) {
59
+ function tn(e) {
60
60
  return Object.keys(e).length === 0;
61
61
  }
62
- function Qt(e, ...t) {
62
+ function er(e, ...t) {
63
63
  if (e == null) {
64
- for (const r of t)
65
- r(void 0);
66
- return C;
64
+ for (const n of t)
65
+ n(void 0);
66
+ return G;
67
67
  }
68
- const n = e.subscribe(...t);
69
- return n.unsubscribe ? () => n.unsubscribe() : n;
68
+ const r = e.subscribe(...t);
69
+ return r.unsubscribe ? () => r.unsubscribe() : r;
70
70
  }
71
- function Kn(e, t, n) {
72
- e.$$.on_destroy.push(Qt(t, n));
71
+ function rn(e, t, r) {
72
+ e.$$.on_destroy.push(er(t, r));
73
73
  }
74
- function er(e, t, n, r) {
74
+ function nn(e, t, r, n) {
75
75
  if (e) {
76
- const i = Yt(e, t, n, r);
76
+ const i = tr(e, t, r, n);
77
77
  return e[0](i);
78
78
  }
79
79
  }
80
- function Yt(e, t, n, r) {
81
- return e[1] && r ? Yn(n.ctx.slice(), e[1](r(t))) : n.ctx;
80
+ function tr(e, t, r, n) {
81
+ return e[1] && n ? en(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
82
  }
83
- function tr(e, t, n, r) {
84
- if (e[2] && r) {
85
- const i = e[2](r(n));
83
+ function on(e, t, r, n) {
84
+ if (e[2] && n) {
85
+ const i = e[2](n(r));
86
86
  if (t.dirty === void 0)
87
87
  return i;
88
88
  if (typeof i == "object") {
@@ -95,32 +95,32 @@ function tr(e, t, n, r) {
95
95
  }
96
96
  return t.dirty;
97
97
  }
98
- function nr(e, t, n, r, i, o) {
98
+ function an(e, t, r, n, i, o) {
99
99
  if (i) {
100
- const a = Yt(t, n, r, o);
100
+ const a = tr(t, r, n, o);
101
101
  e.p(a, i);
102
102
  }
103
103
  }
104
- function rr(e) {
104
+ function sn(e) {
105
105
  if (e.ctx.length > 32) {
106
- const t = [], n = e.ctx.length / 32;
107
- for (let r = 0; r < n; r++)
108
- t[r] = -1;
106
+ const t = [], r = e.ctx.length / 32;
107
+ for (let n = 0; n < r; n++)
108
+ t[n] = -1;
109
109
  return t;
110
110
  }
111
111
  return -1;
112
112
  }
113
- function v(e, t) {
113
+ function _(e, t) {
114
114
  e.appendChild(t);
115
115
  }
116
- function ir(e, t, n) {
117
- const r = or(e);
118
- if (!r.getElementById(t)) {
119
- const i = S("style");
120
- i.id = t, i.textContent = n, ar(r, i);
116
+ function un(e, t, r) {
117
+ const n = ln(e);
118
+ if (!n.getElementById(t)) {
119
+ const i = w("style");
120
+ i.id = t, i.textContent = r, hn(n, i);
121
121
  }
122
122
  }
123
- function or(e) {
123
+ function ln(e) {
124
124
  if (!e)
125
125
  return document;
126
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -130,27 +130,27 @@ function or(e) {
130
130
  t
131
131
  ) : e.ownerDocument;
132
132
  }
133
- function ar(e, t) {
134
- return v(
133
+ function hn(e, t) {
134
+ return _(
135
135
  /** @type {Document} */
136
136
  e.head || e,
137
137
  t
138
138
  ), t.sheet;
139
139
  }
140
- function I(e, t, n) {
141
- e.insertBefore(t, n || null);
140
+ function I(e, t, r) {
141
+ e.insertBefore(t, r || null);
142
142
  }
143
- function R(e) {
143
+ function O(e) {
144
144
  e.parentNode && e.parentNode.removeChild(e);
145
145
  }
146
- function sr(e, t) {
147
- for (let n = 0; n < e.length; n += 1)
148
- e[n] && e[n].d(t);
146
+ function cn(e, t) {
147
+ for (let r = 0; r < e.length; r += 1)
148
+ e[r] && e[r].d(t);
149
149
  }
150
- function S(e) {
150
+ function w(e) {
151
151
  return document.createElement(e);
152
152
  }
153
- function _t(e) {
153
+ function wt(e) {
154
154
  return document.createElementNS("http://www.w3.org/2000/svg", e);
155
155
  }
156
156
  function k(e) {
@@ -159,94 +159,94 @@ function k(e) {
159
159
  function V() {
160
160
  return k(" ");
161
161
  }
162
- function Be(e, t, n, r) {
163
- return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
162
+ function Be(e, t, r, n) {
163
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
164
164
  }
165
- function g(e, t, n) {
166
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
165
+ function g(e, t, r) {
166
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
167
167
  }
168
- function ur(e) {
168
+ function fn(e) {
169
169
  return Array.from(e.childNodes);
170
170
  }
171
171
  function z(e, t) {
172
172
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
173
173
  t);
174
174
  }
175
- function lr(e) {
175
+ function mn(e) {
176
176
  const t = {};
177
177
  return e.childNodes.forEach(
178
178
  /** @param {Element} node */
179
- (n) => {
180
- t[n.slot || "default"] = !0;
179
+ (r) => {
180
+ t[r.slot || "default"] = !0;
181
181
  }
182
182
  ), t;
183
183
  }
184
- let de;
185
- function ce(e) {
186
- de = e;
184
+ let fe;
185
+ function he(e) {
186
+ fe = e;
187
187
  }
188
- function hr() {
189
- if (!de)
188
+ function dn() {
189
+ if (!fe)
190
190
  throw new Error("Function called outside component initialization");
191
- return de;
191
+ return fe;
192
192
  }
193
- function cr(e) {
194
- hr().$$.on_mount.push(e);
193
+ function pn(e) {
194
+ dn().$$.on_mount.push(e);
195
195
  }
196
196
  const K = [], Ae = [];
197
197
  let ee = [];
198
- const xt = [], qt = /* @__PURE__ */ Promise.resolve();
199
- let We = !1;
200
- function Kt() {
201
- We || (We = !0, qt.then(O));
198
+ const St = [], rr = /* @__PURE__ */ Promise.resolve();
199
+ let Je = !1;
200
+ function nr() {
201
+ Je || (Je = !0, rr.then(R));
202
202
  }
203
- function fr() {
204
- return Kt(), qt;
203
+ function bn() {
204
+ return nr(), rr;
205
205
  }
206
- function Xe(e) {
206
+ function Ze(e) {
207
207
  ee.push(e);
208
208
  }
209
- const Ue = /* @__PURE__ */ new Set();
209
+ const Fe = /* @__PURE__ */ new Set();
210
210
  let Y = 0;
211
- function O() {
211
+ function R() {
212
212
  if (Y !== 0)
213
213
  return;
214
- const e = de;
214
+ const e = fe;
215
215
  do {
216
216
  try {
217
217
  for (; Y < K.length; ) {
218
218
  const t = K[Y];
219
- Y++, ce(t), dr(t.$$);
219
+ Y++, he(t), gn(t.$$);
220
220
  }
221
221
  } catch (t) {
222
222
  throw K.length = 0, Y = 0, t;
223
223
  }
224
- for (ce(null), K.length = 0, Y = 0; Ae.length; )
224
+ for (he(null), K.length = 0, Y = 0; Ae.length; )
225
225
  Ae.pop()();
226
226
  for (let t = 0; t < ee.length; t += 1) {
227
- const n = ee[t];
228
- Ue.has(n) || (Ue.add(n), n());
227
+ const r = ee[t];
228
+ Fe.has(r) || (Fe.add(r), r());
229
229
  }
230
230
  ee.length = 0;
231
231
  } while (K.length);
232
- for (; xt.length; )
233
- xt.pop()();
234
- We = !1, Ue.clear(), ce(e);
232
+ for (; St.length; )
233
+ St.pop()();
234
+ Je = !1, Fe.clear(), he(e);
235
235
  }
236
- function dr(e) {
236
+ function gn(e) {
237
237
  if (e.fragment !== null) {
238
238
  e.update(), J(e.before_update);
239
239
  const t = e.dirty;
240
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
240
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ze);
241
241
  }
242
242
  }
243
- function mr(e) {
244
- const t = [], n = [];
245
- ee.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), ee = t;
243
+ function yn(e) {
244
+ const t = [], r = [];
245
+ ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
246
246
  }
247
247
  const Ee = /* @__PURE__ */ new Set();
248
248
  let X;
249
- function pr() {
249
+ function vn() {
250
250
  X = {
251
251
  r: 0,
252
252
  c: [],
@@ -254,50 +254,50 @@ function pr() {
254
254
  // parent group
255
255
  };
256
256
  }
257
- function br() {
257
+ function _n() {
258
258
  X.r || J(X.c), X = X.p;
259
259
  }
260
- function fe(e, t) {
260
+ function ce(e, t) {
261
261
  e && e.i && (Ee.delete(e), e.i(t));
262
262
  }
263
- function ze(e, t, n, r) {
263
+ function Qe(e, t, r, n) {
264
264
  if (e && e.o) {
265
265
  if (Ee.has(e))
266
266
  return;
267
267
  Ee.add(e), X.c.push(() => {
268
- Ee.delete(e), r && (n && e.d(1), r());
268
+ Ee.delete(e), n && (r && e.d(1), n());
269
269
  }), e.o(t);
270
270
  } else
271
- r && r();
271
+ n && n();
272
272
  }
273
- function vt(e) {
273
+ function Tt(e) {
274
274
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
275
275
  }
276
- function gr(e, t, n) {
277
- const { fragment: r, after_update: i } = e.$$;
278
- r && r.m(t, n), Xe(() => {
279
- const o = e.$$.on_mount.map(Jt).filter(st);
276
+ function xn(e, t, r) {
277
+ const { fragment: n, after_update: i } = e.$$;
278
+ n && n.m(t, r), Ze(() => {
279
+ const o = e.$$.on_mount.map(qt).filter(ft);
280
280
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
281
- }), i.forEach(Xe);
281
+ }), i.forEach(Ze);
282
282
  }
283
- function yr(e, t) {
284
- const n = e.$$;
285
- n.fragment !== null && (mr(n.after_update), J(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
283
+ function En(e, t) {
284
+ const r = e.$$;
285
+ r.fragment !== null && (yn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
286
286
  }
287
- function _r(e, t) {
288
- e.$$.dirty[0] === -1 && (K.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
287
+ function wn(e, t) {
288
+ e.$$.dirty[0] === -1 && (K.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
289
289
  }
290
- function xr(e, t, n, r, i, o, a = null, s = [-1]) {
291
- const h = de;
292
- ce(e);
290
+ function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
291
+ const h = fe;
292
+ he(e);
293
293
  const l = e.$$ = {
294
294
  fragment: null,
295
295
  ctx: [],
296
296
  // state
297
297
  props: o,
298
- update: C,
298
+ update: G,
299
299
  not_equal: i,
300
- bound: gt(),
300
+ bound: xt(),
301
301
  // lifecycle
302
302
  on_mount: [],
303
303
  on_destroy: [],
@@ -306,29 +306,29 @@ function xr(e, t, n, r, i, o, a = null, s = [-1]) {
306
306
  after_update: [],
307
307
  context: new Map(t.context || (h ? h.$$.context : [])),
308
308
  // everything else
309
- callbacks: gt(),
309
+ callbacks: xt(),
310
310
  dirty: s,
311
311
  skip_bound: !1,
312
312
  root: t.target || h.$$.root
313
313
  };
314
314
  a && a(l.root);
315
315
  let u = !1;
316
- if (l.ctx = n(e, t.props || {}, (f, c, ...d) => {
317
- const m = d.length ? d[0] : c;
318
- return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && _r(e, f)), c;
319
- }), l.update(), u = !0, J(l.before_update), l.fragment = r(l.ctx), t.target) {
316
+ if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
317
+ const d = m.length ? m[0] : c;
318
+ return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && wn(e, f)), c;
319
+ }) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
320
320
  if (t.hydrate) {
321
- const f = ur(t.target);
322
- l.fragment && l.fragment.l(f), f.forEach(R);
321
+ const f = fn(t.target);
322
+ l.fragment && l.fragment.l(f), f.forEach(O);
323
323
  } else
324
324
  l.fragment && l.fragment.c();
325
- t.intro && fe(e.$$.fragment), gr(e, t.target, t.anchor), O();
325
+ t.intro && ce(e.$$.fragment), xn(e, t.target, t.anchor), R();
326
326
  }
327
- ce(h);
327
+ he(h);
328
328
  }
329
- let en;
330
- typeof HTMLElement == "function" && (en = class extends HTMLElement {
331
- constructor(t, n, r) {
329
+ let ir;
330
+ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
331
+ constructor(t, r, n) {
332
332
  super();
333
333
  /** The Svelte component constructor */
334
334
  N(this, "$$ctor");
@@ -348,19 +348,19 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
348
348
  N(this, "$$l", {});
349
349
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
350
350
  N(this, "$$l_u", /* @__PURE__ */ new Map());
351
- this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
351
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
352
352
  }
353
- addEventListener(t, n, r) {
354
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
355
- const i = this.$$c.$on(t, n);
356
- this.$$l_u.set(n, i);
353
+ addEventListener(t, r, n) {
354
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
355
+ const i = this.$$c.$on(t, r);
356
+ this.$$l_u.set(r, i);
357
357
  }
358
- super.addEventListener(t, n, r);
358
+ super.addEventListener(t, r, n);
359
359
  }
360
- removeEventListener(t, n, r) {
361
- if (super.removeEventListener(t, n, r), this.$$c) {
362
- const i = this.$$l_u.get(n);
363
- i && (i(), this.$$l_u.delete(n));
360
+ removeEventListener(t, r, n) {
361
+ if (super.removeEventListener(t, r, n), this.$$c) {
362
+ const i = this.$$l_u.get(r);
363
+ i && (i(), this.$$l_u.delete(r));
364
364
  }
365
365
  }
366
366
  connectedCallback() {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
371
371
  let a;
372
372
  return {
373
373
  c: function() {
374
- a = S("slot"), o !== "default" && g(a, "name", o);
374
+ a = w("slot"), o !== "default" && g(a, "name", o);
375
375
  },
376
376
  /**
377
377
  * @param {HTMLElement} target
@@ -381,16 +381,16 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
381
381
  I(l, a, u);
382
382
  },
383
383
  d: function(l) {
384
- l && R(a);
384
+ l && O(a);
385
385
  }
386
386
  };
387
387
  };
388
388
  };
389
389
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
390
390
  return;
391
- const n = {}, r = lr(this);
391
+ const r = {}, n = mn(this);
392
392
  for (const o of this.$$s)
393
- o in r && (n[o] = [t(o)]);
393
+ o in n && (r[o] = [t(o)]);
394
394
  for (const o of this.attributes) {
395
395
  const a = this.$$g_p(o.name);
396
396
  a in this.$$d || (this.$$d[a] = we(a, o.value, this.$$p_d, "toProp"));
@@ -399,8 +399,8 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
399
399
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
400
400
  this.$$c = new this.$$ctor({
401
401
  target: this.shadowRoot || this,
402
- props: bt(pt({}, this.$$d), {
403
- $$slots: n,
402
+ props: _t(vt({}, this.$$d), {
403
+ $$slots: r,
404
404
  $$scope: {
405
405
  ctx: []
406
406
  }
@@ -432,9 +432,9 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
432
432
  }
433
433
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
434
434
  // and setting attributes through setAttribute etc, this is helpful
435
- attributeChangedCallback(t, n, r) {
435
+ attributeChangedCallback(t, r, n) {
436
436
  var i;
437
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
437
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
438
438
  }
439
439
  disconnectedCallback() {
440
440
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -443,16 +443,16 @@ typeof HTMLElement == "function" && (en = class extends HTMLElement {
443
443
  }
444
444
  $$g_p(t) {
445
445
  return Object.keys(this.$$p_d).find(
446
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
446
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
447
447
  ) || t;
448
448
  }
449
449
  });
450
- function we(e, t, n, r) {
450
+ function we(e, t, r, n) {
451
451
  var o;
452
- const i = (o = n[e]) == null ? void 0 : o.type;
453
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
452
+ const i = (o = r[e]) == null ? void 0 : o.type;
453
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
454
454
  return t;
455
- if (r === "toAttribute")
455
+ if (n === "toAttribute")
456
456
  switch (i) {
457
457
  case "Object":
458
458
  case "Array":
@@ -477,10 +477,10 @@ function we(e, t, n, r) {
477
477
  return t;
478
478
  }
479
479
  }
480
- function vr(e, t, n, r, i, o) {
481
- let a = class extends en {
480
+ function Tn(e, t, r, n, i, o) {
481
+ let a = class extends ir {
482
482
  constructor() {
483
- super(e, n, i), this.$$p_d = t;
483
+ super(e, r, i), this.$$p_d = t;
484
484
  }
485
485
  static get observedAttributes() {
486
486
  return Object.keys(t).map(
@@ -498,7 +498,7 @@ function vr(e, t, n, r, i, o) {
498
498
  h = we(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
499
499
  }
500
500
  });
501
- }), r.forEach((s) => {
501
+ }), n.forEach((s) => {
502
502
  Object.defineProperty(a.prototype, s, {
503
503
  get() {
504
504
  var h;
@@ -508,7 +508,7 @@ function vr(e, t, n, r, i, o) {
508
508
  }), e.element = /** @type {any} */
509
509
  a, a;
510
510
  }
511
- class Er {
511
+ class Hn {
512
512
  constructor() {
513
513
  /**
514
514
  * ### PRIVATE API
@@ -529,7 +529,7 @@ class Er {
529
529
  }
530
530
  /** @returns {void} */
531
531
  $destroy() {
532
- yr(this, 1), this.$destroy = C;
532
+ En(this, 1), this.$destroy = G;
533
533
  }
534
534
  /**
535
535
  * @template {Extract<keyof Events, string>} K
@@ -537,13 +537,13 @@ class Er {
537
537
  * @param {((e: Events[K]) => void) | null | undefined} callback
538
538
  * @returns {() => void}
539
539
  */
540
- $on(t, n) {
541
- if (!st(n))
542
- return C;
543
- const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
544
- return r.push(n), () => {
545
- const i = r.indexOf(n);
546
- i !== -1 && r.splice(i, 1);
540
+ $on(t, r) {
541
+ if (!ft(r))
542
+ return G;
543
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
544
+ return n.push(r), () => {
545
+ const i = n.indexOf(r);
546
+ i !== -1 && n.splice(i, 1);
547
547
  };
548
548
  }
549
549
  /**
@@ -551,11 +551,11 @@ class Er {
551
551
  * @returns {void}
552
552
  */
553
553
  $set(t) {
554
- this.$$set && !qn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
554
+ this.$$set && !tn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
555
555
  }
556
556
  }
557
- const wr = "4";
558
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
557
+ const Bn = "4";
558
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
559
559
  /*! *****************************************************************************
560
560
  Copyright (c) Microsoft Corporation.
561
561
 
@@ -570,67 +570,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
570
570
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
571
571
  PERFORMANCE OF THIS SOFTWARE.
572
572
  ***************************************************************************** */
573
- var Je = function(e, t) {
574
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
575
- n.__proto__ = r;
576
- } || function(n, r) {
577
- for (var i in r)
578
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
579
- }, Je(e, t);
573
+ var Ye = function(e, t) {
574
+ return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
575
+ r.__proto__ = n;
576
+ } || function(r, n) {
577
+ for (var i in n)
578
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
579
+ }, Ye(e, t);
580
580
  };
581
- function $(e, t) {
581
+ function pe(e, t) {
582
582
  if (typeof t != "function" && t !== null)
583
583
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
584
- Je(e, t);
585
- function n() {
584
+ Ye(e, t);
585
+ function r() {
586
586
  this.constructor = e;
587
587
  }
588
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
589
- }
590
- var x = function() {
591
- return x = Object.assign || function(t) {
592
- for (var n, r = 1, i = arguments.length; r < i; r++) {
593
- n = arguments[r];
594
- for (var o in n)
595
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
596
- }
597
- return t;
598
- }, x.apply(this, arguments);
599
- };
600
- function Sr(e, t) {
601
- var n = {};
602
- for (var r in e)
603
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
604
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
605
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
606
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
607
- return n;
588
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
608
589
  }
609
- function Ze(e) {
610
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
611
- if (n)
612
- return n.call(e);
590
+ function qe(e) {
591
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
592
+ if (r)
593
+ return r.call(e);
613
594
  if (e && typeof e.length == "number")
614
595
  return {
615
596
  next: function() {
616
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
597
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
617
598
  }
618
599
  };
619
600
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
620
601
  }
621
- function Qe(e, t) {
622
- var n = typeof Symbol == "function" && e[Symbol.iterator];
623
- if (!n)
602
+ function Ke(e, t) {
603
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
604
+ if (!r)
624
605
  return e;
625
- var r = n.call(e), i, o = [], a;
606
+ var n = r.call(e), i, o = [], a;
626
607
  try {
627
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
608
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
628
609
  o.push(i.value);
629
610
  } catch (s) {
630
611
  a = { error: s };
631
612
  } finally {
632
613
  try {
633
- i && !i.done && (n = r.return) && n.call(r);
614
+ i && !i.done && (r = n.return) && r.call(n);
634
615
  } finally {
635
616
  if (a)
636
617
  throw a.error;
@@ -638,49 +619,49 @@ function Qe(e, t) {
638
619
  }
639
620
  return o;
640
621
  }
641
- function te(e, t, n) {
642
- if (n || arguments.length === 2)
643
- for (var r = 0, i = t.length, o; r < i; r++)
644
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
622
+ function et(e, t, r) {
623
+ if (arguments.length === 2)
624
+ for (var n = 0, i = t.length, o; n < i; n++)
625
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
645
626
  return e.concat(o || t);
646
627
  }
647
628
  function D(e) {
648
629
  return typeof e == "function";
649
630
  }
650
- function tn(e) {
651
- var t = function(r) {
652
- Error.call(r), r.stack = new Error().stack;
653
- }, n = e(t);
654
- return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
655
- }
656
- var Fe = tn(function(e) {
657
- return function(n) {
658
- e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
659
- ` + n.map(function(r, i) {
660
- return i + 1 + ") " + r.toString();
631
+ function or(e) {
632
+ var t = function(n) {
633
+ Error.call(n), n.stack = new Error().stack;
634
+ }, r = e(t);
635
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
636
+ }
637
+ var De = or(function(e) {
638
+ return function(r) {
639
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
640
+ ` + r.map(function(n, i) {
641
+ return i + 1 + ") " + n.toString();
661
642
  }).join(`
662
- `) : "", this.name = "UnsubscriptionError", this.errors = n;
643
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
663
644
  };
664
645
  });
665
- function Ye(e, t) {
646
+ function tt(e, t) {
666
647
  if (e) {
667
- var n = e.indexOf(t);
668
- 0 <= n && e.splice(n, 1);
648
+ var r = e.indexOf(t);
649
+ 0 <= r && e.splice(r, 1);
669
650
  }
670
651
  }
671
- var Oe = function() {
652
+ var Ie = function() {
672
653
  function e(t) {
673
654
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
674
655
  }
675
656
  return e.prototype.unsubscribe = function() {
676
- var t, n, r, i, o;
657
+ var t, r, n, i, o;
677
658
  if (!this.closed) {
678
659
  this.closed = !0;
679
660
  var a = this._parentage;
680
661
  if (a)
681
662
  if (this._parentage = null, Array.isArray(a))
682
663
  try {
683
- for (var s = Ze(a), h = s.next(); !h.done; h = s.next()) {
664
+ for (var s = qe(a), h = s.next(); !h.done; h = s.next()) {
684
665
  var l = h.value;
685
666
  l.remove(this);
686
667
  }
@@ -688,7 +669,7 @@ var Oe = function() {
688
669
  t = { error: p };
689
670
  } finally {
690
671
  try {
691
- h && !h.done && (n = s.return) && n.call(s);
672
+ h && !h.done && (r = s.return) && r.call(s);
692
673
  } finally {
693
674
  if (t)
694
675
  throw t.error;
@@ -701,118 +682,114 @@ var Oe = function() {
701
682
  try {
702
683
  u();
703
684
  } catch (p) {
704
- o = p instanceof Fe ? p.errors : [p];
685
+ o = p instanceof De ? p.errors : [p];
705
686
  }
706
687
  var f = this._finalizers;
707
688
  if (f) {
708
689
  this._finalizers = null;
709
690
  try {
710
- for (var c = Ze(f), d = c.next(); !d.done; d = c.next()) {
711
- var m = d.value;
691
+ for (var c = qe(f), m = c.next(); !m.done; m = c.next()) {
692
+ var d = m.value;
712
693
  try {
713
- Et(m);
694
+ Ht(d);
714
695
  } catch (p) {
715
- o = o != null ? o : [], p instanceof Fe ? o = te(te([], Qe(o)), Qe(p.errors)) : o.push(p);
696
+ o = o != null ? o : [], p instanceof De ? o = et(et([], Ke(o)), Ke(p.errors)) : o.push(p);
716
697
  }
717
698
  }
718
699
  } catch (p) {
719
- r = { error: p };
700
+ n = { error: p };
720
701
  } finally {
721
702
  try {
722
- d && !d.done && (i = c.return) && i.call(c);
703
+ m && !m.done && (i = c.return) && i.call(c);
723
704
  } finally {
724
- if (r)
725
- throw r.error;
705
+ if (n)
706
+ throw n.error;
726
707
  }
727
708
  }
728
709
  }
729
710
  if (o)
730
- throw new Fe(o);
711
+ throw new De(o);
731
712
  }
732
713
  }, e.prototype.add = function(t) {
733
- var n;
714
+ var r;
734
715
  if (t && t !== this)
735
716
  if (this.closed)
736
- Et(t);
717
+ Ht(t);
737
718
  else {
738
719
  if (t instanceof e) {
739
720
  if (t.closed || t._hasParent(this))
740
721
  return;
741
722
  t._addParent(this);
742
723
  }
743
- (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
724
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
744
725
  }
745
726
  }, e.prototype._hasParent = function(t) {
746
- var n = this._parentage;
747
- return n === t || Array.isArray(n) && n.includes(t);
727
+ var r = this._parentage;
728
+ return r === t || Array.isArray(r) && r.includes(t);
748
729
  }, e.prototype._addParent = function(t) {
749
- var n = this._parentage;
750
- this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
730
+ var r = this._parentage;
731
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
751
732
  }, e.prototype._removeParent = function(t) {
752
- var n = this._parentage;
753
- n === t ? this._parentage = null : Array.isArray(n) && Ye(n, t);
733
+ var r = this._parentage;
734
+ r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
754
735
  }, e.prototype.remove = function(t) {
755
- var n = this._finalizers;
756
- n && Ye(n, t), t instanceof e && t._removeParent(this);
736
+ var r = this._finalizers;
737
+ r && tt(r, t), t instanceof e && t._removeParent(this);
757
738
  }, e.EMPTY = function() {
758
739
  var t = new e();
759
740
  return t.closed = !0, t;
760
741
  }(), e;
761
- }(), nn = Oe.EMPTY;
762
- function rn(e) {
763
- return e instanceof Oe || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
742
+ }(), ar = Ie.EMPTY;
743
+ function sr(e) {
744
+ return e instanceof Ie || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
764
745
  }
765
- function Et(e) {
746
+ function Ht(e) {
766
747
  D(e) ? e() : e.unsubscribe();
767
748
  }
768
- var Tr = {
769
- onUnhandledError: null,
770
- onStoppedNotification: null,
771
- Promise: void 0,
772
- useDeprecatedSynchronousErrorHandling: !1,
773
- useDeprecatedNextContext: !1
774
- }, Hr = {
749
+ var An = {
750
+ Promise: void 0
751
+ }, Pn = {
775
752
  setTimeout: function(e, t) {
776
- for (var n = [], r = 2; r < arguments.length; r++)
777
- n[r - 2] = arguments[r];
778
- return setTimeout.apply(void 0, te([e, t], Qe(n)));
753
+ for (var r = [], n = 2; n < arguments.length; n++)
754
+ r[n - 2] = arguments[n];
755
+ return setTimeout.apply(void 0, et([e, t], Ke(r)));
779
756
  },
780
757
  clearTimeout: function(e) {
781
758
  return clearTimeout(e);
782
759
  },
783
760
  delegate: void 0
784
761
  };
785
- function Br(e) {
786
- Hr.setTimeout(function() {
762
+ function On(e) {
763
+ Pn.setTimeout(function() {
787
764
  throw e;
788
765
  });
789
766
  }
790
- function wt() {
767
+ function Bt() {
791
768
  }
792
769
  function Se(e) {
793
770
  e();
794
771
  }
795
- var on = function(e) {
796
- $(t, e);
797
- function t(n) {
798
- var r = e.call(this) || this;
799
- return r.isStopped = !1, n ? (r.destination = n, rn(n) && n.add(r)) : r.destination = Rr, r;
772
+ var ur = function(e) {
773
+ pe(t, e);
774
+ function t(r) {
775
+ var n = e.call(this) || this;
776
+ return n.isStopped = !1, r ? (n.destination = r, sr(r) && r.add(n)) : n.destination = Nn, n;
800
777
  }
801
- return t.create = function(n, r, i) {
802
- return new qe(n, r, i);
803
- }, t.prototype.next = function(n) {
804
- this.isStopped || this._next(n);
805
- }, t.prototype.error = function(n) {
806
- this.isStopped || (this.isStopped = !0, this._error(n));
778
+ return t.create = function(r, n, i) {
779
+ return new rt(r, n, i);
780
+ }, t.prototype.next = function(r) {
781
+ this.isStopped || this._next(r);
782
+ }, t.prototype.error = function(r) {
783
+ this.isStopped || (this.isStopped = !0, this._error(r));
807
784
  }, t.prototype.complete = function() {
808
785
  this.isStopped || (this.isStopped = !0, this._complete());
809
786
  }, t.prototype.unsubscribe = function() {
810
787
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
811
- }, t.prototype._next = function(n) {
812
- this.destination.next(n);
813
- }, t.prototype._error = function(n) {
788
+ }, t.prototype._next = function(r) {
789
+ this.destination.next(r);
790
+ }, t.prototype._error = function(r) {
814
791
  try {
815
- this.destination.error(n);
792
+ this.destination.error(r);
816
793
  } finally {
817
794
  this.unsubscribe();
818
795
  }
@@ -823,82 +800,82 @@ var on = function(e) {
823
800
  this.unsubscribe();
824
801
  }
825
802
  }, t;
826
- }(Oe), Ar = function() {
803
+ }(Ie), Rn = function() {
827
804
  function e(t) {
828
805
  this.partialObserver = t;
829
806
  }
830
807
  return e.prototype.next = function(t) {
831
- var n = this.partialObserver;
832
- if (n.next)
808
+ var r = this.partialObserver;
809
+ if (r.next)
833
810
  try {
834
- n.next(t);
835
- } catch (r) {
836
- xe(r);
811
+ r.next(t);
812
+ } catch (n) {
813
+ _e(n);
837
814
  }
838
815
  }, e.prototype.error = function(t) {
839
- var n = this.partialObserver;
840
- if (n.error)
816
+ var r = this.partialObserver;
817
+ if (r.error)
841
818
  try {
842
- n.error(t);
843
- } catch (r) {
844
- xe(r);
819
+ r.error(t);
820
+ } catch (n) {
821
+ _e(n);
845
822
  }
846
823
  else
847
- xe(t);
824
+ _e(t);
848
825
  }, e.prototype.complete = function() {
849
826
  var t = this.partialObserver;
850
827
  if (t.complete)
851
828
  try {
852
829
  t.complete();
853
- } catch (n) {
854
- xe(n);
830
+ } catch (r) {
831
+ _e(r);
855
832
  }
856
833
  }, e;
857
- }(), qe = function(e) {
858
- $(t, e);
859
- function t(n, r, i) {
834
+ }(), rt = function(e) {
835
+ pe(t, e);
836
+ function t(r, n, i) {
860
837
  var o = e.call(this) || this, a;
861
- return D(n) || !n ? a = {
862
- next: n != null ? n : void 0,
863
- error: r != null ? r : void 0,
838
+ return D(r) || !r ? a = {
839
+ next: r != null ? r : void 0,
840
+ error: n != null ? n : void 0,
864
841
  complete: i != null ? i : void 0
865
- } : a = n, o.destination = new Ar(a), o;
842
+ } : a = r, o.destination = new Rn(a), o;
866
843
  }
867
844
  return t;
868
- }(on);
869
- function xe(e) {
870
- Br(e);
845
+ }(ur);
846
+ function _e(e) {
847
+ On(e);
871
848
  }
872
- function Pr(e) {
849
+ function In(e) {
873
850
  throw e;
874
851
  }
875
- var Rr = {
852
+ var Nn = {
876
853
  closed: !0,
877
- next: wt,
878
- error: Pr,
879
- complete: wt
880
- }, Or = function() {
854
+ next: Bt,
855
+ error: In,
856
+ complete: Bt
857
+ }, Ln = function() {
881
858
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
882
859
  }();
883
- function Ir(e) {
860
+ function Mn(e) {
884
861
  return e;
885
862
  }
886
- function Nr(e) {
887
- return e.length === 0 ? Ir : e.length === 1 ? e[0] : function(n) {
888
- return e.reduce(function(r, i) {
889
- return i(r);
890
- }, n);
863
+ function Cn(e) {
864
+ return e.length === 0 ? Mn : e.length === 1 ? e[0] : function(r) {
865
+ return e.reduce(function(n, i) {
866
+ return i(n);
867
+ }, r);
891
868
  };
892
869
  }
893
- var St = function() {
870
+ var At = function() {
894
871
  function e(t) {
895
872
  t && (this._subscribe = t);
896
873
  }
897
874
  return e.prototype.lift = function(t) {
898
- var n = new e();
899
- return n.source = this, n.operator = t, n;
900
- }, e.prototype.subscribe = function(t, n, r) {
901
- var i = this, o = Lr(t) ? t : new qe(t, n, r);
875
+ var r = new e();
876
+ return r.source = this, r.operator = t, r;
877
+ }, e.prototype.subscribe = function(t, r, n) {
878
+ var i = this, o = Un(t) ? t : new rt(t, r, n);
902
879
  return Se(function() {
903
880
  var a = i, s = a.operator, h = a.source;
904
881
  o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -906,13 +883,13 @@ var St = function() {
906
883
  }, e.prototype._trySubscribe = function(t) {
907
884
  try {
908
885
  return this._subscribe(t);
909
- } catch (n) {
910
- t.error(n);
886
+ } catch (r) {
887
+ t.error(r);
911
888
  }
912
- }, e.prototype.forEach = function(t, n) {
913
- var r = this;
914
- return n = Tt(n), new n(function(i, o) {
915
- var a = new qe({
889
+ }, e.prototype.forEach = function(t, r) {
890
+ var n = this;
891
+ return r = Pt(r), new r(function(i, o) {
892
+ var a = new rt({
916
893
  next: function(s) {
917
894
  try {
918
895
  t(s);
@@ -923,69 +900,69 @@ var St = function() {
923
900
  error: o,
924
901
  complete: i
925
902
  });
926
- r.subscribe(a);
903
+ n.subscribe(a);
927
904
  });
928
905
  }, e.prototype._subscribe = function(t) {
929
- var n;
930
- return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
931
- }, e.prototype[Or] = function() {
906
+ var r;
907
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
908
+ }, e.prototype[Ln] = function() {
932
909
  return this;
933
910
  }, e.prototype.pipe = function() {
934
- for (var t = [], n = 0; n < arguments.length; n++)
935
- t[n] = arguments[n];
936
- return Nr(t)(this);
911
+ for (var t = [], r = 0; r < arguments.length; r++)
912
+ t[r] = arguments[r];
913
+ return Cn(t)(this);
937
914
  }, e.prototype.toPromise = function(t) {
938
- var n = this;
939
- return t = Tt(t), new t(function(r, i) {
915
+ var r = this;
916
+ return t = Pt(t), new t(function(n, i) {
940
917
  var o;
941
- n.subscribe(function(a) {
918
+ r.subscribe(function(a) {
942
919
  return o = a;
943
920
  }, function(a) {
944
921
  return i(a);
945
922
  }, function() {
946
- return r(o);
923
+ return n(o);
947
924
  });
948
925
  });
949
926
  }, e.create = function(t) {
950
927
  return new e(t);
951
928
  }, e;
952
929
  }();
953
- function Tt(e) {
930
+ function Pt(e) {
954
931
  var t;
955
- return (t = e != null ? e : Tr.Promise) !== null && t !== void 0 ? t : Promise;
932
+ return (t = e != null ? e : An.Promise) !== null && t !== void 0 ? t : Promise;
956
933
  }
957
- function Mr(e) {
934
+ function Gn(e) {
958
935
  return e && D(e.next) && D(e.error) && D(e.complete);
959
936
  }
960
- function Lr(e) {
961
- return e && e instanceof on || Mr(e) && rn(e);
937
+ function Un(e) {
938
+ return e && e instanceof ur || Gn(e) && sr(e);
962
939
  }
963
- var Cr = tn(function(e) {
940
+ var $n = or(function(e) {
964
941
  return function() {
965
942
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
966
943
  };
967
- }), an = function(e) {
968
- $(t, e);
944
+ }), lr = function(e) {
945
+ pe(t, e);
969
946
  function t() {
970
- var n = e.call(this) || this;
971
- return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
947
+ var r = e.call(this) || this;
948
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
972
949
  }
973
- return t.prototype.lift = function(n) {
974
- var r = new Ht(this, this);
975
- return r.operator = n, r;
950
+ return t.prototype.lift = function(r) {
951
+ var n = new Ot(this, this);
952
+ return n.operator = r, n;
976
953
  }, t.prototype._throwIfClosed = function() {
977
954
  if (this.closed)
978
- throw new Cr();
979
- }, t.prototype.next = function(n) {
980
- var r = this;
955
+ throw new $n();
956
+ }, t.prototype.next = function(r) {
957
+ var n = this;
981
958
  Se(function() {
982
959
  var i, o;
983
- if (r._throwIfClosed(), !r.isStopped) {
984
- r.currentObservers || (r.currentObservers = Array.from(r.observers));
960
+ if (n._throwIfClosed(), !n.isStopped) {
961
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
985
962
  try {
986
- for (var a = Ze(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
963
+ for (var a = qe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
987
964
  var h = s.value;
988
- h.next(n);
965
+ h.next(r);
989
966
  }
990
967
  } catch (l) {
991
968
  i = { error: l };
@@ -999,118 +976,118 @@ var Cr = tn(function(e) {
999
976
  }
1000
977
  }
1001
978
  });
1002
- }, t.prototype.error = function(n) {
1003
- var r = this;
979
+ }, t.prototype.error = function(r) {
980
+ var n = this;
1004
981
  Se(function() {
1005
- if (r._throwIfClosed(), !r.isStopped) {
1006
- r.hasError = r.isStopped = !0, r.thrownError = n;
1007
- for (var i = r.observers; i.length; )
1008
- i.shift().error(n);
982
+ if (n._throwIfClosed(), !n.isStopped) {
983
+ n.hasError = n.isStopped = !0, n.thrownError = r;
984
+ for (var i = n.observers; i.length; )
985
+ i.shift().error(r);
1009
986
  }
1010
987
  });
1011
988
  }, t.prototype.complete = function() {
1012
- var n = this;
989
+ var r = this;
1013
990
  Se(function() {
1014
- if (n._throwIfClosed(), !n.isStopped) {
1015
- n.isStopped = !0;
1016
- for (var r = n.observers; r.length; )
1017
- r.shift().complete();
991
+ if (r._throwIfClosed(), !r.isStopped) {
992
+ r.isStopped = !0;
993
+ for (var n = r.observers; n.length; )
994
+ n.shift().complete();
1018
995
  }
1019
996
  });
1020
997
  }, t.prototype.unsubscribe = function() {
1021
998
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1022
999
  }, Object.defineProperty(t.prototype, "observed", {
1023
1000
  get: function() {
1024
- var n;
1025
- return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
1001
+ var r;
1002
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1026
1003
  },
1027
1004
  enumerable: !1,
1028
1005
  configurable: !0
1029
- }), t.prototype._trySubscribe = function(n) {
1030
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
1031
- }, t.prototype._subscribe = function(n) {
1032
- return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
1033
- }, t.prototype._innerSubscribe = function(n) {
1034
- var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1035
- return o || a ? nn : (this.currentObservers = null, s.push(n), new Oe(function() {
1036
- r.currentObservers = null, Ye(s, n);
1006
+ }), t.prototype._trySubscribe = function(r) {
1007
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1008
+ }, t.prototype._subscribe = function(r) {
1009
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1010
+ }, t.prototype._innerSubscribe = function(r) {
1011
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1012
+ return o || a ? ar : (this.currentObservers = null, s.push(r), new Ie(function() {
1013
+ n.currentObservers = null, tt(s, r);
1037
1014
  }));
1038
- }, t.prototype._checkFinalizedStatuses = function(n) {
1039
- var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
1040
- i ? n.error(o) : a && n.complete();
1015
+ }, t.prototype._checkFinalizedStatuses = function(r) {
1016
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1017
+ i ? r.error(o) : a && r.complete();
1041
1018
  }, t.prototype.asObservable = function() {
1042
- var n = new St();
1043
- return n.source = this, n;
1044
- }, t.create = function(n, r) {
1045
- return new Ht(n, r);
1019
+ var r = new At();
1020
+ return r.source = this, r;
1021
+ }, t.create = function(r, n) {
1022
+ return new Ot(r, n);
1046
1023
  }, t;
1047
- }(St), Ht = function(e) {
1048
- $(t, e);
1049
- function t(n, r) {
1024
+ }(At), Ot = function(e) {
1025
+ pe(t, e);
1026
+ function t(r, n) {
1050
1027
  var i = e.call(this) || this;
1051
- return i.destination = n, i.source = r, i;
1028
+ return i.destination = r, i.source = n, i;
1052
1029
  }
1053
- return t.prototype.next = function(n) {
1054
- var r, i;
1055
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
1056
- }, t.prototype.error = function(n) {
1057
- var r, i;
1058
- (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
1030
+ return t.prototype.next = function(r) {
1031
+ var n, i;
1032
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1033
+ }, t.prototype.error = function(r) {
1034
+ var n, i;
1035
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1059
1036
  }, t.prototype.complete = function() {
1060
- var n, r;
1061
- (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
1062
- }, t.prototype._subscribe = function(n) {
1063
- var r, i;
1064
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : nn;
1037
+ var r, n;
1038
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1039
+ }, t.prototype._subscribe = function(r) {
1040
+ var n, i;
1041
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ar;
1065
1042
  }, t;
1066
- }(an), sn = {
1043
+ }(lr), hr = {
1067
1044
  now: function() {
1068
- return (sn.delegate || Date).now();
1045
+ return (hr.delegate || Date).now();
1069
1046
  },
1070
1047
  delegate: void 0
1071
- }, Gr = function(e) {
1072
- $(t, e);
1073
- function t(n, r, i) {
1074
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = sn);
1048
+ }, Fn = function(e) {
1049
+ pe(t, e);
1050
+ function t(r, n, i) {
1051
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = hr);
1075
1052
  var o = e.call(this) || this;
1076
- 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;
1053
+ return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1077
1054
  }
1078
- return t.prototype.next = function(n) {
1079
- var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, h = r._windowTime;
1080
- i || (o.push(n), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, n);
1081
- }, t.prototype._subscribe = function(n) {
1055
+ return t.prototype.next = function(r) {
1056
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, h = n._windowTime;
1057
+ i || (o.push(r), !a && o.push(s.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
1058
+ }, t.prototype._subscribe = function(r) {
1082
1059
  this._throwIfClosed(), this._trimBuffer();
1083
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !n.closed; h += o ? 1 : 2)
1084
- n.next(s[h]);
1085
- return this._checkFinalizedStatuses(n), r;
1060
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), h = 0; h < s.length && !r.closed; h += o ? 1 : 2)
1061
+ r.next(s[h]);
1062
+ return this._checkFinalizedStatuses(r), n;
1086
1063
  }, t.prototype._trimBuffer = function() {
1087
- var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
1088
- if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1064
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1065
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1089
1066
  for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
1090
1067
  l = u;
1091
1068
  l && o.splice(0, l + 1);
1092
1069
  }
1093
1070
  }, t;
1094
- }(an);
1095
- const Bt = [], At = {}, Ur = (e, t = 0) => {
1096
- if (Bt.indexOf(e) == -1) {
1097
- const n = new Gr(t);
1098
- At[e] = n, Bt.push(e);
1071
+ }(lr);
1072
+ const Rt = [], It = {}, Dn = (e, t = 0) => {
1073
+ if (Rt.indexOf(e) == -1) {
1074
+ const r = new Fn(t);
1075
+ It[e] = r, Rt.push(e);
1099
1076
  }
1100
- return At[e];
1077
+ return It[e];
1101
1078
  }, q = [];
1102
- function Fr(e, t) {
1079
+ function jn(e, t) {
1103
1080
  return {
1104
- subscribe: Ie(e, t).subscribe
1081
+ subscribe: Ne(e, t).subscribe
1105
1082
  };
1106
1083
  }
1107
- function Ie(e, t = C) {
1108
- let n;
1109
- const r = /* @__PURE__ */ new Set();
1084
+ function Ne(e, t = G) {
1085
+ let r;
1086
+ const n = /* @__PURE__ */ new Set();
1110
1087
  function i(s) {
1111
- if (Zt(e, s) && (e = s, n)) {
1088
+ if (Kt(e, s) && (e = s, r)) {
1112
1089
  const h = !q.length;
1113
- for (const l of r)
1090
+ for (const l of n)
1114
1091
  l[1](), q.push(l, e);
1115
1092
  if (h) {
1116
1093
  for (let l = 0; l < q.length; l += 2)
@@ -1122,32 +1099,32 @@ function Ie(e, t = C) {
1122
1099
  function o(s) {
1123
1100
  i(s(e));
1124
1101
  }
1125
- function a(s, h = C) {
1102
+ function a(s, h = G) {
1126
1103
  const l = [s, h];
1127
- return r.add(l), r.size === 1 && (n = t(i, o) || C), s(e), () => {
1128
- r.delete(l), r.size === 0 && n && (n(), n = null);
1104
+ return n.add(l), n.size === 1 && (r = t(i, o) || G), s(e), () => {
1105
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1129
1106
  };
1130
1107
  }
1131
1108
  return { set: i, update: o, subscribe: a };
1132
1109
  }
1133
- function ae(e, t, n) {
1134
- const r = !Array.isArray(e), i = r ? [e] : e;
1110
+ function oe(e, t, r) {
1111
+ const n = !Array.isArray(e), i = n ? [e] : e;
1135
1112
  if (!i.every(Boolean))
1136
1113
  throw new Error("derived() expects stores as input, got a falsy value");
1137
1114
  const o = t.length < 2;
1138
- return Fr(n, (a, s) => {
1115
+ return jn(r, (a, s) => {
1139
1116
  let h = !1;
1140
1117
  const l = [];
1141
- let u = 0, f = C;
1118
+ let u = 0, f = G;
1142
1119
  const c = () => {
1143
1120
  if (u)
1144
1121
  return;
1145
1122
  f();
1146
- const m = t(r ? l[0] : l, a, s);
1147
- o ? a(m) : f = st(m) ? m : C;
1148
- }, d = i.map(
1149
- (m, p) => Qt(
1150
- m,
1123
+ const d = t(n ? l[0] : l, a, s);
1124
+ o ? a(d) : f = ft(d) ? d : G;
1125
+ }, m = i.map(
1126
+ (d, p) => er(
1127
+ d,
1151
1128
  (A) => {
1152
1129
  l[p] = A, u &= ~(1 << p), h && c();
1153
1130
  },
@@ -1157,118 +1134,157 @@ function ae(e, t, n) {
1157
1134
  )
1158
1135
  );
1159
1136
  return h = !0, c(), function() {
1160
- J(d), f(), h = !1;
1137
+ J(m), f(), h = !1;
1161
1138
  };
1162
1139
  });
1163
1140
  }
1164
- function Dr(e) {
1165
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1141
+ function kn(e) {
1142
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1166
1143
  }
1167
- var $r = function(t) {
1168
- return jr(t) && !kr(t);
1144
+ var Vn = function(t) {
1145
+ return Wn(t) && !Xn(t);
1169
1146
  };
1170
- function jr(e) {
1147
+ function Wn(e) {
1171
1148
  return !!e && typeof e == "object";
1172
1149
  }
1173
- function kr(e) {
1150
+ function Xn(e) {
1174
1151
  var t = Object.prototype.toString.call(e);
1175
- return t === "[object RegExp]" || t === "[object Date]" || Xr(e);
1152
+ return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
1176
1153
  }
1177
- var Vr = typeof Symbol == "function" && Symbol.for, Wr = Vr ? Symbol.for("react.element") : 60103;
1178
- function Xr(e) {
1179
- return e.$$typeof === Wr;
1154
+ var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
1155
+ function Zn(e) {
1156
+ return e.$$typeof === Jn;
1180
1157
  }
1181
- function zr(e) {
1158
+ function Qn(e) {
1182
1159
  return Array.isArray(e) ? [] : {};
1183
1160
  }
1184
1161
  function me(e, t) {
1185
- return t.clone !== !1 && t.isMergeableObject(e) ? ne(zr(e), e, t) : e;
1162
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(Qn(e), e, t) : e;
1186
1163
  }
1187
- function Jr(e, t, n) {
1188
- return e.concat(t).map(function(r) {
1189
- return me(r, n);
1164
+ function Yn(e, t, r) {
1165
+ return e.concat(t).map(function(n) {
1166
+ return me(n, r);
1190
1167
  });
1191
1168
  }
1192
- function Zr(e, t) {
1169
+ function qn(e, t) {
1193
1170
  if (!t.customMerge)
1194
- return ne;
1195
- var n = t.customMerge(e);
1196
- return typeof n == "function" ? n : ne;
1171
+ return te;
1172
+ var r = t.customMerge(e);
1173
+ return typeof r == "function" ? r : te;
1197
1174
  }
1198
- function Qr(e) {
1175
+ function Kn(e) {
1199
1176
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1200
1177
  return Object.propertyIsEnumerable.call(e, t);
1201
1178
  }) : [];
1202
1179
  }
1203
- function Pt(e) {
1204
- return Object.keys(e).concat(Qr(e));
1180
+ function Nt(e) {
1181
+ return Object.keys(e).concat(Kn(e));
1205
1182
  }
1206
- function un(e, t) {
1183
+ function cr(e, t) {
1207
1184
  try {
1208
1185
  return t in e;
1209
- } catch (n) {
1186
+ } catch (r) {
1210
1187
  return !1;
1211
1188
  }
1212
1189
  }
1213
- function Yr(e, t) {
1214
- return un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1190
+ function ei(e, t) {
1191
+ return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1215
1192
  }
1216
- function qr(e, t, n) {
1217
- var r = {};
1218
- return n.isMergeableObject(e) && Pt(e).forEach(function(i) {
1219
- r[i] = me(e[i], n);
1220
- }), Pt(t).forEach(function(i) {
1221
- Yr(e, i) || (un(e, i) && n.isMergeableObject(t[i]) ? r[i] = Zr(i, n)(e[i], t[i], n) : r[i] = me(t[i], n));
1222
- }), r;
1223
- }
1224
- function ne(e, t, n) {
1225
- n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || $r, n.cloneUnlessOtherwiseSpecified = me;
1226
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1227
- return o ? r ? n.arrayMerge(e, t, n) : qr(e, t, n) : me(t, n);
1228
- }
1229
- ne.all = function(t, n) {
1193
+ function ti(e, t, r) {
1194
+ var n = {};
1195
+ return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
1196
+ n[i] = me(e[i], r);
1197
+ }), Nt(t).forEach(function(i) {
1198
+ ei(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1199
+ }), n;
1200
+ }
1201
+ function te(e, t, r) {
1202
+ r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = me;
1203
+ var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1204
+ return o ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : me(t, r);
1205
+ }
1206
+ te.all = function(t, r) {
1230
1207
  if (!Array.isArray(t))
1231
1208
  throw new Error("first argument should be an array");
1232
- return t.reduce(function(r, i) {
1233
- return ne(r, i, n);
1209
+ return t.reduce(function(n, i) {
1210
+ return te(n, i, r);
1234
1211
  }, {});
1235
1212
  };
1236
- var Kr = ne, ei = Kr;
1237
- const ti = /* @__PURE__ */ Dr(ei);
1238
- function De(e, t) {
1239
- var n = t && t.cache ? t.cache : ui, r = t && t.serializer ? t.serializer : ai, i = t && t.strategy ? t.strategy : ri;
1213
+ var ri = te, ni = ri;
1214
+ const ii = /* @__PURE__ */ kn(ni);
1215
+ var nt = function(e, t) {
1216
+ return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1217
+ r.__proto__ = n;
1218
+ } || function(r, n) {
1219
+ for (var i in n)
1220
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1221
+ }, nt(e, t);
1222
+ };
1223
+ function Le(e, t) {
1224
+ if (typeof t != "function" && t !== null)
1225
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1226
+ nt(e, t);
1227
+ function r() {
1228
+ this.constructor = e;
1229
+ }
1230
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1231
+ }
1232
+ var C = function() {
1233
+ return C = Object.assign || function(t) {
1234
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1235
+ r = arguments[n];
1236
+ for (var o in r)
1237
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1238
+ }
1239
+ return t;
1240
+ }, C.apply(this, arguments);
1241
+ };
1242
+ function oi(e, t) {
1243
+ var r = {};
1244
+ for (var n in e)
1245
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1246
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1247
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1248
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1249
+ return r;
1250
+ }
1251
+ function je(e, t, r) {
1252
+ if (r || arguments.length === 2)
1253
+ for (var n = 0, i = t.length, o; n < i; n++)
1254
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1255
+ return e.concat(o || Array.prototype.slice.call(t));
1256
+ }
1257
+ function ke(e, t) {
1258
+ var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : ui;
1240
1259
  return i(e, {
1241
- cache: n,
1242
- serializer: r
1260
+ cache: r,
1261
+ serializer: n
1243
1262
  });
1244
1263
  }
1245
- function ni(e) {
1264
+ function ai(e) {
1246
1265
  return e == null || typeof e == "number" || typeof e == "boolean";
1247
1266
  }
1248
- function ln(e, t, n, r) {
1249
- var i = ni(r) ? r : n(r), o = t.get(i);
1250
- return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
1251
- }
1252
- function hn(e, t, n) {
1253
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1254
- return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
1267
+ function si(e, t, r, n) {
1268
+ var i = ai(n) ? n : r(n), o = t.get(i);
1269
+ return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1255
1270
  }
1256
- function ut(e, t, n, r, i) {
1257
- return n.bind(t, e, r, i);
1271
+ function fr(e, t, r) {
1272
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1273
+ return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1258
1274
  }
1259
- function ri(e, t) {
1260
- var n = e.length === 1 ? ln : hn;
1261
- return ut(e, this, n, t.cache.create(), t.serializer);
1275
+ function mr(e, t, r, n, i) {
1276
+ return r.bind(t, e, n, i);
1262
1277
  }
1263
- function ii(e, t) {
1264
- return ut(e, this, hn, t.cache.create(), t.serializer);
1278
+ function ui(e, t) {
1279
+ var r = e.length === 1 ? si : fr;
1280
+ return mr(e, this, r, t.cache.create(), t.serializer);
1265
1281
  }
1266
- function oi(e, t) {
1267
- return ut(e, this, ln, t.cache.create(), t.serializer);
1282
+ function li(e, t) {
1283
+ return mr(e, this, fr, t.cache.create(), t.serializer);
1268
1284
  }
1269
- var ai = function() {
1285
+ var hi = function() {
1270
1286
  return JSON.stringify(arguments);
1271
- }, si = (
1287
+ }, ci = (
1272
1288
  /** @class */
1273
1289
  function() {
1274
1290
  function e() {
@@ -1276,73 +1292,82 @@ var ai = function() {
1276
1292
  }
1277
1293
  return e.prototype.get = function(t) {
1278
1294
  return this.cache[t];
1279
- }, e.prototype.set = function(t, n) {
1280
- this.cache[t] = n;
1295
+ }, e.prototype.set = function(t, r) {
1296
+ this.cache[t] = r;
1281
1297
  }, e;
1282
1298
  }()
1283
- ), ui = {
1299
+ ), fi = {
1284
1300
  create: function() {
1285
- return new si();
1301
+ return new ci();
1286
1302
  }
1287
- }, $e = {
1288
- variadic: ii,
1289
- monadic: oi
1290
- }, y;
1303
+ }, Ve = {
1304
+ variadic: li
1305
+ }, Pe = function() {
1306
+ return Pe = Object.assign || function(t) {
1307
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1308
+ r = arguments[n];
1309
+ for (var o in r)
1310
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1311
+ }
1312
+ return t;
1313
+ }, Pe.apply(this, arguments);
1314
+ };
1315
+ var y;
1291
1316
  (function(e) {
1292
1317
  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";
1293
1318
  })(y || (y = {}));
1294
- var w;
1319
+ var E;
1295
1320
  (function(e) {
1296
1321
  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";
1297
- })(w || (w = {}));
1322
+ })(E || (E = {}));
1298
1323
  var re;
1299
1324
  (function(e) {
1300
1325
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1301
1326
  })(re || (re = {}));
1302
- function Rt(e) {
1303
- return e.type === w.literal;
1327
+ function Lt(e) {
1328
+ return e.type === E.literal;
1304
1329
  }
1305
- function li(e) {
1306
- return e.type === w.argument;
1330
+ function mi(e) {
1331
+ return e.type === E.argument;
1307
1332
  }
1308
- function cn(e) {
1309
- return e.type === w.number;
1333
+ function dr(e) {
1334
+ return e.type === E.number;
1310
1335
  }
1311
- function fn(e) {
1312
- return e.type === w.date;
1336
+ function pr(e) {
1337
+ return e.type === E.date;
1313
1338
  }
1314
- function dn(e) {
1315
- return e.type === w.time;
1339
+ function br(e) {
1340
+ return e.type === E.time;
1316
1341
  }
1317
- function mn(e) {
1318
- return e.type === w.select;
1342
+ function gr(e) {
1343
+ return e.type === E.select;
1319
1344
  }
1320
- function pn(e) {
1321
- return e.type === w.plural;
1345
+ function yr(e) {
1346
+ return e.type === E.plural;
1322
1347
  }
1323
- function hi(e) {
1324
- return e.type === w.pound;
1348
+ function di(e) {
1349
+ return e.type === E.pound;
1325
1350
  }
1326
- function bn(e) {
1327
- return e.type === w.tag;
1351
+ function vr(e) {
1352
+ return e.type === E.tag;
1328
1353
  }
1329
- function gn(e) {
1354
+ function _r(e) {
1330
1355
  return !!(e && typeof e == "object" && e.type === re.number);
1331
1356
  }
1332
- function Ke(e) {
1357
+ function it(e) {
1333
1358
  return !!(e && typeof e == "object" && e.type === re.dateTime);
1334
1359
  }
1335
- var yn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ci = /(?:[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;
1336
- function fi(e) {
1360
+ var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
1361
+ function bi(e) {
1337
1362
  var t = {};
1338
- return e.replace(ci, function(n) {
1339
- var r = n.length;
1340
- switch (n[0]) {
1363
+ return e.replace(pi, function(r) {
1364
+ var n = r.length;
1365
+ switch (r[0]) {
1341
1366
  case "G":
1342
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1367
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1343
1368
  break;
1344
1369
  case "y":
1345
- t.year = r === 2 ? "2-digit" : "numeric";
1370
+ t.year = n === 2 ? "2-digit" : "numeric";
1346
1371
  break;
1347
1372
  case "Y":
1348
1373
  case "u":
@@ -1354,30 +1379,30 @@ function fi(e) {
1354
1379
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1355
1380
  case "M":
1356
1381
  case "L":
1357
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1382
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1358
1383
  break;
1359
1384
  case "w":
1360
1385
  case "W":
1361
1386
  throw new RangeError("`w/W` (week) patterns are not supported");
1362
1387
  case "d":
1363
- t.day = ["numeric", "2-digit"][r - 1];
1388
+ t.day = ["numeric", "2-digit"][n - 1];
1364
1389
  break;
1365
1390
  case "D":
1366
1391
  case "F":
1367
1392
  case "g":
1368
1393
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1369
1394
  case "E":
1370
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1395
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1371
1396
  break;
1372
1397
  case "e":
1373
- if (r < 4)
1398
+ if (n < 4)
1374
1399
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1375
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1400
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1376
1401
  break;
1377
1402
  case "c":
1378
- if (r < 4)
1403
+ if (n < 4)
1379
1404
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1380
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
1405
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1381
1406
  break;
1382
1407
  case "a":
1383
1408
  t.hour12 = !0;
@@ -1386,32 +1411,32 @@ function fi(e) {
1386
1411
  case "B":
1387
1412
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1388
1413
  case "h":
1389
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1414
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1390
1415
  break;
1391
1416
  case "H":
1392
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1417
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1393
1418
  break;
1394
1419
  case "K":
1395
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1420
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1396
1421
  break;
1397
1422
  case "k":
1398
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1423
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1399
1424
  break;
1400
1425
  case "j":
1401
1426
  case "J":
1402
1427
  case "C":
1403
1428
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1404
1429
  case "m":
1405
- t.minute = ["numeric", "2-digit"][r - 1];
1430
+ t.minute = ["numeric", "2-digit"][n - 1];
1406
1431
  break;
1407
1432
  case "s":
1408
- t.second = ["numeric", "2-digit"][r - 1];
1433
+ t.second = ["numeric", "2-digit"][n - 1];
1409
1434
  break;
1410
1435
  case "S":
1411
1436
  case "A":
1412
1437
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1413
1438
  case "z":
1414
- t.timeZoneName = r < 4 ? "short" : "long";
1439
+ t.timeZoneName = n < 4 ? "short" : "long";
1415
1440
  break;
1416
1441
  case "Z":
1417
1442
  case "O":
@@ -1424,14 +1449,24 @@ function fi(e) {
1424
1449
  return "";
1425
1450
  }), t;
1426
1451
  }
1427
- var di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1428
- function mi(e) {
1452
+ var S = function() {
1453
+ return S = Object.assign || function(t) {
1454
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1455
+ r = arguments[n];
1456
+ for (var o in r)
1457
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1458
+ }
1459
+ return t;
1460
+ }, S.apply(this, arguments);
1461
+ };
1462
+ var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1463
+ function yi(e) {
1429
1464
  if (e.length === 0)
1430
1465
  throw new Error("Number skeleton cannot be empty");
1431
- for (var t = e.split(di).filter(function(c) {
1466
+ for (var t = e.split(gi).filter(function(c) {
1432
1467
  return c.length > 0;
1433
- }), n = [], r = 0, i = t; r < i.length; r++) {
1434
- var o = i[r], a = o.split("/");
1468
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1469
+ var o = i[n], a = o.split("/");
1435
1470
  if (a.length === 0)
1436
1471
  throw new Error("Invalid number skeleton");
1437
1472
  for (var s = a[0], h = a.slice(1), l = 0, u = h; l < u.length; l++) {
@@ -1439,21 +1474,21 @@ function mi(e) {
1439
1474
  if (f.length === 0)
1440
1475
  throw new Error("Invalid number skeleton");
1441
1476
  }
1442
- n.push({ stem: s, options: h });
1477
+ r.push({ stem: s, options: h });
1443
1478
  }
1444
- return n;
1479
+ return r;
1445
1480
  }
1446
- function pi(e) {
1481
+ function vi(e) {
1447
1482
  return e.replace(/^(.*?)-/, "");
1448
1483
  }
1449
- var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _n = /^(@+)?(\+|#+)?[rs]?$/g, bi = /(\*)(0+)|(#+)(0+)|(0+)/g, xn = /^(0+)$/;
1450
- function It(e) {
1484
+ var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
1485
+ function Ct(e) {
1451
1486
  var t = {};
1452
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_n, function(n, r, i) {
1453
- 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)), "";
1487
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
1488
+ return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1454
1489
  }), t;
1455
1490
  }
1456
- function vn(e) {
1491
+ function Sr(e) {
1457
1492
  switch (e) {
1458
1493
  case "sign-auto":
1459
1494
  return {
@@ -1493,27 +1528,27 @@ function vn(e) {
1493
1528
  };
1494
1529
  }
1495
1530
  }
1496
- function gi(e) {
1531
+ function xi(e) {
1497
1532
  var t;
1498
1533
  if (e[0] === "E" && e[1] === "E" ? (t = {
1499
1534
  notation: "engineering"
1500
1535
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1501
1536
  notation: "scientific"
1502
1537
  }, e = e.slice(1)), t) {
1503
- var n = e.slice(0, 2);
1504
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xn.test(e))
1538
+ var r = e.slice(0, 2);
1539
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
1505
1540
  throw new Error("Malformed concise eng/scientific notation");
1506
1541
  t.minimumIntegerDigits = e.length;
1507
1542
  }
1508
1543
  return t;
1509
1544
  }
1510
- function Nt(e) {
1511
- var t = {}, n = vn(e);
1512
- return n || t;
1545
+ function Gt(e) {
1546
+ var t = {}, r = Sr(e);
1547
+ return r || t;
1513
1548
  }
1514
- function yi(e) {
1515
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
1516
- var i = r[n];
1549
+ function Ei(e) {
1550
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1551
+ var i = n[r];
1517
1552
  switch (i.stem) {
1518
1553
  case "percent":
1519
1554
  case "%":
@@ -1535,7 +1570,7 @@ function yi(e) {
1535
1570
  continue;
1536
1571
  case "measure-unit":
1537
1572
  case "unit":
1538
- t.style = "unit", t.unit = pi(i.options[0]);
1573
+ t.style = "unit", t.unit = vi(i.options[0]);
1539
1574
  continue;
1540
1575
  case "compact-short":
1541
1576
  case "K":
@@ -1546,13 +1581,13 @@ function yi(e) {
1546
1581
  t.notation = "compact", t.compactDisplay = "long";
1547
1582
  continue;
1548
1583
  case "scientific":
1549
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1550
- return x(x({}, h), Nt(l));
1584
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1585
+ return S(S({}, h), Gt(l));
1551
1586
  }, {}));
1552
1587
  continue;
1553
1588
  case "engineering":
1554
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1555
- return x(x({}, h), Nt(l));
1589
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1590
+ return S(S({}, h), Gt(l));
1556
1591
  }, {}));
1557
1592
  continue;
1558
1593
  case "notation-simple":
@@ -1597,45 +1632,45 @@ function yi(e) {
1597
1632
  case "integer-width":
1598
1633
  if (i.options.length > 1)
1599
1634
  throw new RangeError("integer-width stems only accept a single optional option");
1600
- i.options[0].replace(bi, function(h, l, u, f, c, d) {
1635
+ i.options[0].replace(_i, function(h, l, u, f, c, m) {
1601
1636
  if (l)
1602
1637
  t.minimumIntegerDigits = u.length;
1603
1638
  else {
1604
1639
  if (f && c)
1605
1640
  throw new Error("We currently do not support maximum integer digits");
1606
- if (d)
1641
+ if (m)
1607
1642
  throw new Error("We currently do not support exact integer digits");
1608
1643
  }
1609
1644
  return "";
1610
1645
  });
1611
1646
  continue;
1612
1647
  }
1613
- if (xn.test(i.stem)) {
1648
+ if (wr.test(i.stem)) {
1614
1649
  t.minimumIntegerDigits = i.stem.length;
1615
1650
  continue;
1616
1651
  }
1617
- if (Ot.test(i.stem)) {
1652
+ if (Mt.test(i.stem)) {
1618
1653
  if (i.options.length > 1)
1619
1654
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1620
- i.stem.replace(Ot, function(h, l, u, f, c, d) {
1621
- return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1655
+ i.stem.replace(Mt, function(h, l, u, f, c, m) {
1656
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1622
1657
  });
1623
1658
  var o = i.options[0];
1624
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), It(o)));
1659
+ o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ct(o)));
1625
1660
  continue;
1626
1661
  }
1627
- if (_n.test(i.stem)) {
1628
- t = x(x({}, t), It(i.stem));
1662
+ if (Er.test(i.stem)) {
1663
+ t = S(S({}, t), Ct(i.stem));
1629
1664
  continue;
1630
1665
  }
1631
- var a = vn(i.stem);
1632
- a && (t = x(x({}, t), a));
1633
- var s = gi(i.stem);
1634
- s && (t = x(x({}, t), s));
1666
+ var a = Sr(i.stem);
1667
+ a && (t = S(S({}, t), a));
1668
+ var s = xi(i.stem);
1669
+ s && (t = S(S({}, t), s));
1635
1670
  }
1636
1671
  return t;
1637
1672
  }
1638
- var ve = {
1673
+ var xe = {
1639
1674
  "001": [
1640
1675
  "H",
1641
1676
  "h"
@@ -3050,23 +3085,23 @@ var ve = {
3050
3085
  "h"
3051
3086
  ]
3052
3087
  };
3053
- function _i(e, t) {
3054
- for (var n = "", r = 0; r < e.length; r++) {
3055
- var i = e.charAt(r);
3088
+ function wi(e, t) {
3089
+ for (var r = "", n = 0; n < e.length; n++) {
3090
+ var i = e.charAt(n);
3056
3091
  if (i === "j") {
3057
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
3058
- o++, r++;
3059
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = xi(t);
3092
+ for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3093
+ o++, n++;
3094
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Si(t);
3060
3095
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
3061
- n += h;
3096
+ r += h;
3062
3097
  for (; a-- > 0; )
3063
- n = l + n;
3098
+ r = l + r;
3064
3099
  } else
3065
- i === "J" ? n += "H" : n += i;
3100
+ i === "J" ? r += "H" : r += i;
3066
3101
  }
3067
- return n;
3102
+ return r;
3068
3103
  }
3069
- function xi(e) {
3104
+ function Si(e) {
3070
3105
  var t = e.hourCycle;
3071
3106
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3072
3107
  e.hourCycles && // @ts-ignore
@@ -3083,73 +3118,73 @@ function xi(e) {
3083
3118
  default:
3084
3119
  throw new Error("Invalid hourCycle");
3085
3120
  }
3086
- var n = e.language, r;
3087
- n !== "root" && (r = e.maximize().region);
3088
- var i = ve[r || ""] || ve[n || ""] || ve["".concat(n, "-001")] || ve["001"];
3121
+ var r = e.language, n;
3122
+ r !== "root" && (n = e.maximize().region);
3123
+ var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
3089
3124
  return i[0];
3090
3125
  }
3091
- var je, vi = new RegExp("^".concat(yn.source, "*")), Ei = new RegExp("".concat(yn.source, "*$"));
3092
- function _(e, t) {
3126
+ var We, Ti = new RegExp("^".concat(xr.source, "*")), Hi = new RegExp("".concat(xr.source, "*$"));
3127
+ function v(e, t) {
3093
3128
  return { start: e, end: t };
3094
3129
  }
3095
- var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, Ti = !!Object.fromEntries, Hi = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Pi = !!Number.isSafeInteger, Ri = Pi ? Number.isSafeInteger : function(e) {
3130
+ var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Pi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Ii = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Li = Ni ? Number.isSafeInteger : function(e) {
3096
3131
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3097
- }, et = !0;
3132
+ }, ot = !0;
3098
3133
  try {
3099
- var Oi = wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3100
- et = ((je = Oi.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
3134
+ var Mi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3135
+ ot = ((We = Mi.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
3101
3136
  } catch (e) {
3102
- et = !1;
3137
+ ot = !1;
3103
3138
  }
3104
- var Mt = wi ? (
3139
+ var Ut = Bi ? (
3105
3140
  // Native
3106
- function(t, n, r) {
3107
- return t.startsWith(n, r);
3141
+ function(t, r, n) {
3142
+ return t.startsWith(r, n);
3108
3143
  }
3109
3144
  ) : (
3110
3145
  // For IE11
3111
- function(t, n, r) {
3112
- return t.slice(r, r + n.length) === n;
3146
+ function(t, r, n) {
3147
+ return t.slice(n, n + r.length) === r;
3113
3148
  }
3114
- ), tt = Si ? String.fromCodePoint : (
3149
+ ), at = Ai ? String.fromCodePoint : (
3115
3150
  // IE11
3116
3151
  function() {
3117
- for (var t = [], n = 0; n < arguments.length; n++)
3118
- t[n] = arguments[n];
3119
- for (var r = "", i = t.length, o = 0, a; i > o; ) {
3152
+ for (var t = [], r = 0; r < arguments.length; r++)
3153
+ t[r] = arguments[r];
3154
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
3120
3155
  if (a = t[o++], a > 1114111)
3121
3156
  throw RangeError(a + " is not a valid code point");
3122
- r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3157
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3123
3158
  }
3124
- return r;
3159
+ return n;
3125
3160
  }
3126
- ), Lt = (
3161
+ ), $t = (
3127
3162
  // native
3128
- Ti ? Object.fromEntries : (
3163
+ Pi ? Object.fromEntries : (
3129
3164
  // Ponyfill
3130
3165
  function(t) {
3131
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
3132
- var o = i[r], a = o[0], s = o[1];
3133
- n[a] = s;
3166
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3167
+ var o = i[n], a = o[0], s = o[1];
3168
+ r[a] = s;
3134
3169
  }
3135
- return n;
3170
+ return r;
3136
3171
  }
3137
3172
  )
3138
- ), En = Hi ? (
3173
+ ), Tr = Oi ? (
3139
3174
  // Native
3140
- function(t, n) {
3141
- return t.codePointAt(n);
3175
+ function(t, r) {
3176
+ return t.codePointAt(r);
3142
3177
  }
3143
3178
  ) : (
3144
3179
  // IE 11
3145
- function(t, n) {
3146
- var r = t.length;
3147
- if (!(n < 0 || n >= r)) {
3148
- var i = t.charCodeAt(n), o;
3149
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3180
+ function(t, r) {
3181
+ var n = t.length;
3182
+ if (!(r < 0 || r >= n)) {
3183
+ var i = t.charCodeAt(r), o;
3184
+ return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3150
3185
  }
3151
3186
  }
3152
- ), Ii = Bi ? (
3187
+ ), Ci = Ri ? (
3153
3188
  // Native
3154
3189
  function(t) {
3155
3190
  return t.trimStart();
@@ -3157,9 +3192,9 @@ var Mt = wi ? (
3157
3192
  ) : (
3158
3193
  // Ponyfill
3159
3194
  function(t) {
3160
- return t.replace(vi, "");
3195
+ return t.replace(Ti, "");
3161
3196
  }
3162
- ), Ni = Ai ? (
3197
+ ), Gi = Ii ? (
3163
3198
  // Native
3164
3199
  function(t) {
3165
3200
  return t.trimEnd();
@@ -3167,69 +3202,69 @@ var Mt = wi ? (
3167
3202
  ) : (
3168
3203
  // Ponyfill
3169
3204
  function(t) {
3170
- return t.replace(Ei, "");
3205
+ return t.replace(Hi, "");
3171
3206
  }
3172
3207
  );
3173
- function wn(e, t) {
3208
+ function Hr(e, t) {
3174
3209
  return new RegExp(e, t);
3175
3210
  }
3176
- var nt;
3177
- if (et) {
3178
- var Ct = wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3179
- nt = function(t, n) {
3180
- var r;
3181
- Ct.lastIndex = n;
3182
- var i = Ct.exec(t);
3183
- return (r = i[1]) !== null && r !== void 0 ? r : "";
3211
+ var st;
3212
+ if (ot) {
3213
+ var Ft = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3214
+ st = function(t, r) {
3215
+ var n;
3216
+ Ft.lastIndex = r;
3217
+ var i = Ft.exec(t);
3218
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3184
3219
  };
3185
3220
  } else
3186
- nt = function(t, n) {
3187
- for (var r = []; ; ) {
3188
- var i = En(t, n);
3189
- if (i === void 0 || Sn(i) || Gi(i))
3221
+ st = function(t, r) {
3222
+ for (var n = []; ; ) {
3223
+ var i = Tr(t, r);
3224
+ if (i === void 0 || Br(i) || Di(i))
3190
3225
  break;
3191
- r.push(i), n += i >= 65536 ? 2 : 1;
3226
+ n.push(i), r += i >= 65536 ? 2 : 1;
3192
3227
  }
3193
- return tt.apply(void 0, r);
3228
+ return at.apply(void 0, n);
3194
3229
  };
3195
- var Mi = (
3230
+ var Ui = (
3196
3231
  /** @class */
3197
3232
  function() {
3198
- function e(t, n) {
3199
- 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;
3233
+ function e(t, r) {
3234
+ 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;
3200
3235
  }
3201
3236
  return e.prototype.parse = function() {
3202
3237
  if (this.offset() !== 0)
3203
3238
  throw Error("parser can only be used once");
3204
3239
  return this.parseMessage(0, "", !1);
3205
- }, e.prototype.parseMessage = function(t, n, r) {
3240
+ }, e.prototype.parseMessage = function(t, r, n) {
3206
3241
  for (var i = []; !this.isEOF(); ) {
3207
3242
  var o = this.char();
3208
3243
  if (o === 123) {
3209
- var a = this.parseArgument(t, r);
3244
+ var a = this.parseArgument(t, n);
3210
3245
  if (a.err)
3211
3246
  return a;
3212
3247
  i.push(a.val);
3213
3248
  } else {
3214
3249
  if (o === 125 && t > 0)
3215
3250
  break;
3216
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
3251
+ if (o === 35 && (r === "plural" || r === "selectordinal")) {
3217
3252
  var s = this.clonePosition();
3218
3253
  this.bump(), i.push({
3219
- type: w.pound,
3220
- location: _(s, this.clonePosition())
3254
+ type: E.pound,
3255
+ location: v(s, this.clonePosition())
3221
3256
  });
3222
3257
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3223
- if (r)
3258
+ if (n)
3224
3259
  break;
3225
- return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3226
- } else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3227
- var a = this.parseTag(t, n);
3260
+ return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3261
+ } else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
3262
+ var a = this.parseTag(t, r);
3228
3263
  if (a.err)
3229
3264
  return a;
3230
3265
  i.push(a.val);
3231
3266
  } else {
3232
- var a = this.parseLiteral(t, n);
3267
+ var a = this.parseLiteral(t, r);
3233
3268
  if (a.err)
3234
3269
  return a;
3235
3270
  i.push(a.val);
@@ -3237,54 +3272,54 @@ var Mi = (
3237
3272
  }
3238
3273
  }
3239
3274
  return { val: i, err: null };
3240
- }, e.prototype.parseTag = function(t, n) {
3241
- var r = this.clonePosition();
3275
+ }, e.prototype.parseTag = function(t, r) {
3276
+ var n = this.clonePosition();
3242
3277
  this.bump();
3243
3278
  var i = this.parseTagName();
3244
3279
  if (this.bumpSpace(), this.bumpIf("/>"))
3245
3280
  return {
3246
3281
  val: {
3247
- type: w.literal,
3282
+ type: E.literal,
3248
3283
  value: "<".concat(i, "/>"),
3249
- location: _(r, this.clonePosition())
3284
+ location: v(n, this.clonePosition())
3250
3285
  },
3251
3286
  err: null
3252
3287
  };
3253
3288
  if (this.bumpIf(">")) {
3254
- var o = this.parseMessage(t + 1, n, !0);
3289
+ var o = this.parseMessage(t + 1, r, !0);
3255
3290
  if (o.err)
3256
3291
  return o;
3257
3292
  var a = o.val, s = this.clonePosition();
3258
3293
  if (this.bumpIf("</")) {
3259
- if (this.isEOF() || !rt(this.char()))
3260
- return this.error(y.INVALID_TAG, _(s, this.clonePosition()));
3294
+ if (this.isEOF() || !ut(this.char()))
3295
+ return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
3261
3296
  var h = this.clonePosition(), l = this.parseTagName();
3262
- return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3297
+ return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3263
3298
  val: {
3264
- type: w.tag,
3299
+ type: E.tag,
3265
3300
  value: i,
3266
3301
  children: a,
3267
- location: _(r, this.clonePosition())
3302
+ location: v(n, this.clonePosition())
3268
3303
  },
3269
3304
  err: null
3270
- } : this.error(y.INVALID_TAG, _(s, this.clonePosition())));
3305
+ } : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
3271
3306
  } else
3272
- return this.error(y.UNCLOSED_TAG, _(r, this.clonePosition()));
3307
+ return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
3273
3308
  } else
3274
- return this.error(y.INVALID_TAG, _(r, this.clonePosition()));
3309
+ return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3275
3310
  }, e.prototype.parseTagName = function() {
3276
3311
  var t = this.offset();
3277
- for (this.bump(); !this.isEOF() && Ci(this.char()); )
3312
+ for (this.bump(); !this.isEOF() && Fi(this.char()); )
3278
3313
  this.bump();
3279
3314
  return this.message.slice(t, this.offset());
3280
- }, e.prototype.parseLiteral = function(t, n) {
3281
- for (var r = this.clonePosition(), i = ""; ; ) {
3282
- var o = this.tryParseQuote(n);
3315
+ }, e.prototype.parseLiteral = function(t, r) {
3316
+ for (var n = this.clonePosition(), i = ""; ; ) {
3317
+ var o = this.tryParseQuote(r);
3283
3318
  if (o) {
3284
3319
  i += o;
3285
3320
  continue;
3286
3321
  }
3287
- var a = this.tryParseUnquoted(t, n);
3322
+ var a = this.tryParseUnquoted(t, r);
3288
3323
  if (a) {
3289
3324
  i += a;
3290
3325
  continue;
@@ -3296,14 +3331,14 @@ var Mi = (
3296
3331
  }
3297
3332
  break;
3298
3333
  }
3299
- var h = _(r, this.clonePosition());
3334
+ var h = v(n, this.clonePosition());
3300
3335
  return {
3301
- val: { type: w.literal, value: i, location: h },
3336
+ val: { type: E.literal, value: i, location: h },
3302
3337
  err: null
3303
3338
  };
3304
3339
  }, e.prototype.tryParseLeftAngleBracket = function() {
3305
3340
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3306
- !Li(this.peek() || 0)) ? (this.bump(), "<") : null;
3341
+ !$i(this.peek() || 0)) ? (this.bump(), "<") : null;
3307
3342
  }, e.prototype.tryParseQuote = function(t) {
3308
3343
  if (this.isEOF() || this.char() !== 39)
3309
3344
  return null;
@@ -3323,63 +3358,63 @@ var Mi = (
3323
3358
  return null;
3324
3359
  }
3325
3360
  this.bump();
3326
- var n = [this.char()];
3361
+ var r = [this.char()];
3327
3362
  for (this.bump(); !this.isEOF(); ) {
3328
- var r = this.char();
3329
- if (r === 39)
3363
+ var n = this.char();
3364
+ if (n === 39)
3330
3365
  if (this.peek() === 39)
3331
- n.push(39), this.bump();
3366
+ r.push(39), this.bump();
3332
3367
  else {
3333
3368
  this.bump();
3334
3369
  break;
3335
3370
  }
3336
3371
  else
3337
- n.push(r);
3372
+ r.push(n);
3338
3373
  this.bump();
3339
3374
  }
3340
- return tt.apply(void 0, n);
3341
- }, e.prototype.tryParseUnquoted = function(t, n) {
3375
+ return at.apply(void 0, r);
3376
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3342
3377
  if (this.isEOF())
3343
3378
  return null;
3344
- var r = this.char();
3345
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), tt(r));
3346
- }, e.prototype.parseArgument = function(t, n) {
3347
- var r = this.clonePosition();
3379
+ var n = this.char();
3380
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
3381
+ }, e.prototype.parseArgument = function(t, r) {
3382
+ var n = this.clonePosition();
3348
3383
  if (this.bump(), this.bumpSpace(), this.isEOF())
3349
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3384
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3350
3385
  if (this.char() === 125)
3351
- return this.bump(), this.error(y.EMPTY_ARGUMENT, _(r, this.clonePosition()));
3386
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3352
3387
  var i = this.parseIdentifierIfPossible().value;
3353
3388
  if (!i)
3354
- return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3389
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3355
3390
  if (this.bumpSpace(), this.isEOF())
3356
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3391
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3357
3392
  switch (this.char()) {
3358
3393
  case 125:
3359
3394
  return this.bump(), {
3360
3395
  val: {
3361
- type: w.argument,
3396
+ type: E.argument,
3362
3397
  // value does not include the opening and closing braces.
3363
3398
  value: i,
3364
- location: _(r, this.clonePosition())
3399
+ location: v(n, this.clonePosition())
3365
3400
  },
3366
3401
  err: null
3367
3402
  };
3368
3403
  case 44:
3369
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3404
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3370
3405
  default:
3371
- return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3406
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3372
3407
  }
3373
3408
  }, e.prototype.parseIdentifierIfPossible = function() {
3374
- var t = this.clonePosition(), n = this.offset(), r = nt(this.message, n), i = n + r.length;
3409
+ var t = this.clonePosition(), r = this.offset(), n = st(this.message, r), i = r + n.length;
3375
3410
  this.bumpTo(i);
3376
- var o = this.clonePosition(), a = _(t, o);
3377
- return { value: r, location: a };
3378
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3411
+ var o = this.clonePosition(), a = v(t, o);
3412
+ return { value: n, location: a };
3413
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3379
3414
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3380
3415
  switch (s) {
3381
3416
  case "":
3382
- return this.error(y.EXPECT_ARGUMENT_TYPE, _(a, h));
3417
+ return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
3383
3418
  case "number":
3384
3419
  case "date":
3385
3420
  case "time": {
@@ -3390,45 +3425,45 @@ var Mi = (
3390
3425
  var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3391
3426
  if (f.err)
3392
3427
  return f;
3393
- var c = Ni(f.val);
3428
+ var c = Gi(f.val);
3394
3429
  if (c.length === 0)
3395
- return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3396
- var d = _(u, this.clonePosition());
3397
- l = { style: c, styleLocation: d };
3430
+ return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3431
+ var m = v(u, this.clonePosition());
3432
+ l = { style: c, styleLocation: m };
3398
3433
  }
3399
- var m = this.tryParseArgumentClose(i);
3400
- if (m.err)
3401
- return m;
3402
- var p = _(i, this.clonePosition());
3403
- if (l && Mt(l == null ? void 0 : l.style, "::", 0)) {
3404
- var A = Ii(l.style.slice(2));
3434
+ var d = this.tryParseArgumentClose(i);
3435
+ if (d.err)
3436
+ return d;
3437
+ var p = v(i, this.clonePosition());
3438
+ if (l && Ut(l == null ? void 0 : l.style, "::", 0)) {
3439
+ var A = Ci(l.style.slice(2));
3405
3440
  if (s === "number") {
3406
3441
  var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
3407
3442
  return f.err ? f : {
3408
- val: { type: w.number, value: r, location: p, style: f.val },
3443
+ val: { type: E.number, value: n, location: p, style: f.val },
3409
3444
  err: null
3410
3445
  };
3411
3446
  } else {
3412
3447
  if (A.length === 0)
3413
3448
  return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
3414
3449
  var H = A;
3415
- this.locale && (H = _i(A, this.locale));
3450
+ this.locale && (H = wi(A, this.locale));
3416
3451
  var c = {
3417
3452
  type: re.dateTime,
3418
3453
  pattern: H,
3419
3454
  location: l.styleLocation,
3420
- parsedOptions: this.shouldParseSkeletons ? fi(H) : {}
3421
- }, T = s === "date" ? w.date : w.time;
3455
+ parsedOptions: this.shouldParseSkeletons ? bi(H) : {}
3456
+ }, T = s === "date" ? E.date : E.time;
3422
3457
  return {
3423
- val: { type: T, value: r, location: p, style: c },
3458
+ val: { type: T, value: n, location: p, style: c },
3424
3459
  err: null
3425
3460
  };
3426
3461
  }
3427
3462
  }
3428
3463
  return {
3429
3464
  val: {
3430
- type: s === "number" ? w.number : s === "date" ? w.date : w.time,
3431
- value: r,
3465
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
3466
+ value: n,
3432
3467
  location: p,
3433
3468
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
3434
3469
  },
@@ -3440,39 +3475,39 @@ var Mi = (
3440
3475
  case "select": {
3441
3476
  var B = this.clonePosition();
3442
3477
  if (this.bumpSpace(), !this.bumpIf(","))
3443
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
3478
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, Pe({}, B)));
3444
3479
  this.bumpSpace();
3445
- var M = this.parseIdentifierIfPossible(), L = 0;
3446
- if (s !== "select" && M.value === "offset") {
3480
+ var L = this.parseIdentifierIfPossible(), M = 0;
3481
+ if (s !== "select" && L.value === "offset") {
3447
3482
  if (!this.bumpIf(":"))
3448
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3483
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3449
3484
  this.bumpSpace();
3450
3485
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3451
3486
  if (f.err)
3452
3487
  return f;
3453
- this.bumpSpace(), M = this.parseIdentifierIfPossible(), L = f.val;
3488
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), M = f.val;
3454
3489
  }
3455
- var G = this.tryParsePluralOrSelectOptions(t, s, n, M);
3456
- if (G.err)
3457
- return G;
3458
- var m = this.tryParseArgumentClose(i);
3459
- if (m.err)
3460
- return m;
3461
- var be = _(i, this.clonePosition());
3490
+ var U = this.tryParsePluralOrSelectOptions(t, s, r, L);
3491
+ if (U.err)
3492
+ return U;
3493
+ var d = this.tryParseArgumentClose(i);
3494
+ if (d.err)
3495
+ return d;
3496
+ var be = v(i, this.clonePosition());
3462
3497
  return s === "select" ? {
3463
3498
  val: {
3464
- type: w.select,
3465
- value: r,
3466
- options: Lt(G.val),
3499
+ type: E.select,
3500
+ value: n,
3501
+ options: $t(U.val),
3467
3502
  location: be
3468
3503
  },
3469
3504
  err: null
3470
3505
  } : {
3471
3506
  val: {
3472
- type: w.plural,
3473
- value: r,
3474
- options: Lt(G.val),
3475
- offset: L,
3507
+ type: E.plural,
3508
+ value: n,
3509
+ options: $t(U.val),
3510
+ offset: M,
3476
3511
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3477
3512
  location: be
3478
3513
  },
@@ -3480,19 +3515,19 @@ var Mi = (
3480
3515
  };
3481
3516
  }
3482
3517
  default:
3483
- return this.error(y.INVALID_ARGUMENT_TYPE, _(a, h));
3518
+ return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
3484
3519
  }
3485
3520
  }, e.prototype.tryParseArgumentClose = function(t) {
3486
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3521
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3487
3522
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3488
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3489
- var r = this.char();
3490
- switch (r) {
3523
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3524
+ var n = this.char();
3525
+ switch (n) {
3491
3526
  case 39: {
3492
3527
  this.bump();
3493
3528
  var i = this.clonePosition();
3494
3529
  if (!this.bumpUntil("'"))
3495
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3530
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3496
3531
  this.bump();
3497
3532
  break;
3498
3533
  }
@@ -3505,7 +3540,7 @@ var Mi = (
3505
3540
  t -= 1;
3506
3541
  else
3507
3542
  return {
3508
- val: this.message.slice(n.offset, this.offset()),
3543
+ val: this.message.slice(r.offset, this.offset()),
3509
3544
  err: null
3510
3545
  };
3511
3546
  break;
@@ -3516,61 +3551,61 @@ var Mi = (
3516
3551
  }
3517
3552
  }
3518
3553
  return {
3519
- val: this.message.slice(n.offset, this.offset()),
3554
+ val: this.message.slice(r.offset, this.offset()),
3520
3555
  err: null
3521
3556
  };
3522
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3523
- var r = [];
3557
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3558
+ var n = [];
3524
3559
  try {
3525
- r = mi(t);
3560
+ n = yi(t);
3526
3561
  } catch (i) {
3527
- return this.error(y.INVALID_NUMBER_SKELETON, n);
3562
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3528
3563
  }
3529
3564
  return {
3530
3565
  val: {
3531
3566
  type: re.number,
3532
- tokens: r,
3533
- location: n,
3534
- parsedOptions: this.shouldParseSkeletons ? yi(r) : {}
3567
+ tokens: n,
3568
+ location: r,
3569
+ parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
3535
3570
  },
3536
3571
  err: null
3537
3572
  };
3538
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3573
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3539
3574
  for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
3540
3575
  if (l.length === 0) {
3541
3576
  var f = this.clonePosition();
3542
- if (n !== "select" && this.bumpIf("=")) {
3577
+ if (r !== "select" && this.bumpIf("=")) {
3543
3578
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3544
3579
  if (c.err)
3545
3580
  return c;
3546
- u = _(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3581
+ u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3547
3582
  } else
3548
3583
  break;
3549
3584
  }
3550
3585
  if (h.has(l))
3551
- return this.error(n === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3586
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3552
3587
  l === "other" && (a = !0), this.bumpSpace();
3553
- var d = this.clonePosition();
3588
+ var m = this.clonePosition();
3554
3589
  if (!this.bumpIf("{"))
3555
- return this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3556
- var m = this.parseMessage(t + 1, n, r);
3557
- if (m.err)
3558
- return m;
3559
- var p = this.tryParseArgumentClose(d);
3590
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3591
+ var d = this.parseMessage(t + 1, r, n);
3592
+ if (d.err)
3593
+ return d;
3594
+ var p = this.tryParseArgumentClose(m);
3560
3595
  if (p.err)
3561
3596
  return p;
3562
3597
  s.push([
3563
3598
  l,
3564
3599
  {
3565
- value: m.val,
3566
- location: _(d, this.clonePosition())
3600
+ value: d.val,
3601
+ location: v(m, this.clonePosition())
3567
3602
  }
3568
3603
  ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3569
3604
  }
3570
- return s.length === 0 ? this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3571
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
3572
- var r = 1, i = this.clonePosition();
3573
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3605
+ return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3606
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3607
+ var n = 1, i = this.clonePosition();
3608
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3574
3609
  for (var o = !1, a = 0; !this.isEOF(); ) {
3575
3610
  var s = this.char();
3576
3611
  if (s >= 48 && s <= 57)
@@ -3578,8 +3613,8 @@ var Mi = (
3578
3613
  else
3579
3614
  break;
3580
3615
  }
3581
- var h = _(i, this.clonePosition());
3582
- return o ? (a *= r, Ri(a) ? { val: a, err: null } : this.error(n, h)) : this.error(t, h);
3616
+ var h = v(i, this.clonePosition());
3617
+ return o ? (a *= n, Li(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3583
3618
  }, e.prototype.offset = function() {
3584
3619
  return this.position.offset;
3585
3620
  }, e.prototype.isEOF = function() {
@@ -3594,17 +3629,17 @@ var Mi = (
3594
3629
  var t = this.position.offset;
3595
3630
  if (t >= this.message.length)
3596
3631
  throw Error("out of bound");
3597
- var n = En(this.message, t);
3598
- if (n === void 0)
3632
+ var r = Tr(this.message, t);
3633
+ if (r === void 0)
3599
3634
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3600
- return n;
3601
- }, e.prototype.error = function(t, n) {
3635
+ return r;
3636
+ }, e.prototype.error = function(t, r) {
3602
3637
  return {
3603
3638
  val: null,
3604
3639
  err: {
3605
3640
  kind: t,
3606
3641
  message: this.message,
3607
- location: n
3642
+ location: r
3608
3643
  }
3609
3644
  };
3610
3645
  }, e.prototype.bump = function() {
@@ -3613,129 +3648,129 @@ var Mi = (
3613
3648
  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);
3614
3649
  }
3615
3650
  }, e.prototype.bumpIf = function(t) {
3616
- if (Mt(this.message, t, this.offset())) {
3617
- for (var n = 0; n < t.length; n++)
3651
+ if (Ut(this.message, t, this.offset())) {
3652
+ for (var r = 0; r < t.length; r++)
3618
3653
  this.bump();
3619
3654
  return !0;
3620
3655
  }
3621
3656
  return !1;
3622
3657
  }, e.prototype.bumpUntil = function(t) {
3623
- var n = this.offset(), r = this.message.indexOf(t, n);
3624
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3658
+ var r = this.offset(), n = this.message.indexOf(t, r);
3659
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3625
3660
  }, e.prototype.bumpTo = function(t) {
3626
3661
  if (this.offset() > t)
3627
3662
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3628
3663
  for (t = Math.min(t, this.message.length); ; ) {
3629
- var n = this.offset();
3630
- if (n === t)
3664
+ var r = this.offset();
3665
+ if (r === t)
3631
3666
  break;
3632
- if (n > t)
3667
+ if (r > t)
3633
3668
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3634
3669
  if (this.bump(), this.isEOF())
3635
3670
  break;
3636
3671
  }
3637
3672
  }, e.prototype.bumpSpace = function() {
3638
- for (; !this.isEOF() && Sn(this.char()); )
3673
+ for (; !this.isEOF() && Br(this.char()); )
3639
3674
  this.bump();
3640
3675
  }, e.prototype.peek = function() {
3641
3676
  if (this.isEOF())
3642
3677
  return null;
3643
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3644
- return r != null ? r : null;
3678
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3679
+ return n != null ? n : null;
3645
3680
  }, e;
3646
3681
  }()
3647
3682
  );
3648
- function rt(e) {
3683
+ function ut(e) {
3649
3684
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3650
3685
  }
3651
- function Li(e) {
3652
- return rt(e) || e === 47;
3686
+ function $i(e) {
3687
+ return ut(e) || e === 47;
3653
3688
  }
3654
- function Ci(e) {
3689
+ function Fi(e) {
3655
3690
  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;
3656
3691
  }
3657
- function Sn(e) {
3692
+ function Br(e) {
3658
3693
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3659
3694
  }
3660
- function Gi(e) {
3695
+ function Di(e) {
3661
3696
  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;
3662
3697
  }
3663
- function it(e) {
3698
+ function lt(e) {
3664
3699
  e.forEach(function(t) {
3665
- if (delete t.location, mn(t) || pn(t))
3666
- for (var n in t.options)
3667
- delete t.options[n].location, it(t.options[n].value);
3700
+ if (delete t.location, gr(t) || yr(t))
3701
+ for (var r in t.options)
3702
+ delete t.options[r].location, lt(t.options[r].value);
3668
3703
  else
3669
- cn(t) && gn(t.style) || (fn(t) || dn(t)) && Ke(t.style) ? delete t.style.location : bn(t) && it(t.children);
3704
+ dr(t) && _r(t.style) || (pr(t) || br(t)) && it(t.style) ? delete t.style.location : vr(t) && lt(t.children);
3670
3705
  });
3671
3706
  }
3672
- function Ui(e, t) {
3673
- t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3674
- var n = new Mi(e, t).parse();
3675
- if (n.err) {
3676
- var r = SyntaxError(y[n.err.kind]);
3677
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3707
+ function ji(e, t) {
3708
+ t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3709
+ var r = new Ui(e, t).parse();
3710
+ if (r.err) {
3711
+ var n = SyntaxError(y[r.err.kind]);
3712
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3678
3713
  }
3679
- return t != null && t.captureLocation || it(n.val), n.val;
3714
+ return t != null && t.captureLocation || lt(r.val), r.val;
3680
3715
  }
3681
- var ie;
3716
+ var ne;
3682
3717
  (function(e) {
3683
3718
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3684
- })(ie || (ie = {}));
3685
- var Ne = (
3719
+ })(ne || (ne = {}));
3720
+ var Me = (
3686
3721
  /** @class */
3687
3722
  function(e) {
3688
- $(t, e);
3689
- function t(n, r, i) {
3690
- var o = e.call(this, n) || this;
3691
- return o.code = r, o.originalMessage = i, o;
3723
+ Le(t, e);
3724
+ function t(r, n, i) {
3725
+ var o = e.call(this, r) || this;
3726
+ return o.code = n, o.originalMessage = i, o;
3692
3727
  }
3693
3728
  return t.prototype.toString = function() {
3694
3729
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3695
3730
  }, t;
3696
3731
  }(Error)
3697
- ), Gt = (
3732
+ ), Dt = (
3698
3733
  /** @class */
3699
3734
  function(e) {
3700
- $(t, e);
3701
- function t(n, r, i, o) {
3702
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3735
+ Le(t, e);
3736
+ function t(r, n, i, o) {
3737
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3703
3738
  }
3704
3739
  return t;
3705
- }(Ne)
3706
- ), Fi = (
3740
+ }(Me)
3741
+ ), ki = (
3707
3742
  /** @class */
3708
3743
  function(e) {
3709
- $(t, e);
3710
- function t(n, r, i) {
3711
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ie.INVALID_VALUE, i) || this;
3744
+ Le(t, e);
3745
+ function t(r, n, i) {
3746
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3712
3747
  }
3713
3748
  return t;
3714
- }(Ne)
3715
- ), Di = (
3749
+ }(Me)
3750
+ ), Vi = (
3716
3751
  /** @class */
3717
3752
  function(e) {
3718
- $(t, e);
3719
- function t(n, r) {
3720
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ie.MISSING_VALUE, r) || this;
3753
+ Le(t, e);
3754
+ function t(r, n) {
3755
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3721
3756
  }
3722
3757
  return t;
3723
- }(Ne)
3758
+ }(Me)
3724
3759
  ), P;
3725
3760
  (function(e) {
3726
3761
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3727
3762
  })(P || (P = {}));
3728
- function $i(e) {
3729
- return e.length < 2 ? e : e.reduce(function(t, n) {
3730
- var r = t[t.length - 1];
3731
- return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
3763
+ function Wi(e) {
3764
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3765
+ var n = t[t.length - 1];
3766
+ return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3732
3767
  }, []);
3733
3768
  }
3734
- function ji(e) {
3769
+ function Xi(e) {
3735
3770
  return typeof e == "function";
3736
3771
  }
3737
- function Te(e, t, n, r, i, o, a) {
3738
- if (e.length === 1 && Rt(e[0]))
3772
+ function Te(e, t, r, n, i, o, a) {
3773
+ if (e.length === 1 && Lt(e[0]))
3739
3774
  return [
3740
3775
  {
3741
3776
  type: P.literal,
@@ -3744,155 +3779,155 @@ function Te(e, t, n, r, i, o, a) {
3744
3779
  ];
3745
3780
  for (var s = [], h = 0, l = e; h < l.length; h++) {
3746
3781
  var u = l[h];
3747
- if (Rt(u)) {
3782
+ if (Lt(u)) {
3748
3783
  s.push({
3749
3784
  type: P.literal,
3750
3785
  value: u.value
3751
3786
  });
3752
3787
  continue;
3753
3788
  }
3754
- if (hi(u)) {
3789
+ if (di(u)) {
3755
3790
  typeof o == "number" && s.push({
3756
3791
  type: P.literal,
3757
- value: n.getNumberFormat(t).format(o)
3792
+ value: r.getNumberFormat(t).format(o)
3758
3793
  });
3759
3794
  continue;
3760
3795
  }
3761
3796
  var f = u.value;
3762
3797
  if (!(i && f in i))
3763
- throw new Di(f, a);
3798
+ throw new Vi(f, a);
3764
3799
  var c = i[f];
3765
- if (li(u)) {
3800
+ if (mi(u)) {
3766
3801
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3767
3802
  type: typeof c == "string" ? P.literal : P.object,
3768
3803
  value: c
3769
3804
  });
3770
3805
  continue;
3771
3806
  }
3772
- if (fn(u)) {
3773
- var d = typeof u.style == "string" ? r.date[u.style] : Ke(u.style) ? u.style.parsedOptions : void 0;
3807
+ if (pr(u)) {
3808
+ var m = typeof u.style == "string" ? n.date[u.style] : it(u.style) ? u.style.parsedOptions : void 0;
3774
3809
  s.push({
3775
3810
  type: P.literal,
3776
- value: n.getDateTimeFormat(t, d).format(c)
3811
+ value: r.getDateTimeFormat(t, m).format(c)
3777
3812
  });
3778
3813
  continue;
3779
3814
  }
3780
- if (dn(u)) {
3781
- var d = typeof u.style == "string" ? r.time[u.style] : Ke(u.style) ? u.style.parsedOptions : r.time.medium;
3815
+ if (br(u)) {
3816
+ var m = typeof u.style == "string" ? n.time[u.style] : it(u.style) ? u.style.parsedOptions : n.time.medium;
3782
3817
  s.push({
3783
3818
  type: P.literal,
3784
- value: n.getDateTimeFormat(t, d).format(c)
3819
+ value: r.getDateTimeFormat(t, m).format(c)
3785
3820
  });
3786
3821
  continue;
3787
3822
  }
3788
- if (cn(u)) {
3789
- var d = typeof u.style == "string" ? r.number[u.style] : gn(u.style) ? u.style.parsedOptions : void 0;
3790
- d && d.scale && (c = c * (d.scale || 1)), s.push({
3823
+ if (dr(u)) {
3824
+ var m = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
3825
+ m && m.scale && (c = c * (m.scale || 1)), s.push({
3791
3826
  type: P.literal,
3792
- value: n.getNumberFormat(t, d).format(c)
3827
+ value: r.getNumberFormat(t, m).format(c)
3793
3828
  });
3794
3829
  continue;
3795
3830
  }
3796
- if (bn(u)) {
3797
- var m = u.children, p = u.value, A = i[p];
3798
- if (!ji(A))
3799
- throw new Fi(p, "function", a);
3800
- var H = Te(m, t, n, r, i, o), T = A(H.map(function(L) {
3801
- return L.value;
3831
+ if (vr(u)) {
3832
+ var d = u.children, p = u.value, A = i[p];
3833
+ if (!Xi(A))
3834
+ throw new ki(p, "function", a);
3835
+ var H = Te(d, t, r, n, i, o), T = A(H.map(function(M) {
3836
+ return M.value;
3802
3837
  }));
3803
- Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(L) {
3838
+ Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(M) {
3804
3839
  return {
3805
- type: typeof L == "string" ? P.literal : P.object,
3806
- value: L
3840
+ type: typeof M == "string" ? P.literal : P.object,
3841
+ value: M
3807
3842
  };
3808
3843
  }));
3809
3844
  }
3810
- if (mn(u)) {
3845
+ if (gr(u)) {
3811
3846
  var B = u.options[c] || u.options.other;
3812
3847
  if (!B)
3813
- throw new Gt(u.value, c, Object.keys(u.options), a);
3814
- s.push.apply(s, Te(B.value, t, n, r, i));
3848
+ throw new Dt(u.value, c, Object.keys(u.options), a);
3849
+ s.push.apply(s, Te(B.value, t, r, n, i));
3815
3850
  continue;
3816
3851
  }
3817
- if (pn(u)) {
3852
+ if (yr(u)) {
3818
3853
  var B = u.options["=".concat(c)];
3819
3854
  if (!B) {
3820
3855
  if (!Intl.PluralRules)
3821
- throw new Ne(`Intl.PluralRules is not available in this environment.
3856
+ throw new Me(`Intl.PluralRules is not available in this environment.
3822
3857
  Try polyfilling it using "@formatjs/intl-pluralrules"
3823
- `, ie.MISSING_INTL_API, a);
3824
- var M = n.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3825
- B = u.options[M] || u.options.other;
3858
+ `, ne.MISSING_INTL_API, a);
3859
+ var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3860
+ B = u.options[L] || u.options.other;
3826
3861
  }
3827
3862
  if (!B)
3828
- throw new Gt(u.value, c, Object.keys(u.options), a);
3829
- s.push.apply(s, Te(B.value, t, n, r, i, c - (u.offset || 0)));
3863
+ throw new Dt(u.value, c, Object.keys(u.options), a);
3864
+ s.push.apply(s, Te(B.value, t, r, n, i, c - (u.offset || 0)));
3830
3865
  continue;
3831
3866
  }
3832
3867
  }
3833
- return $i(s);
3868
+ return Wi(s);
3834
3869
  }
3835
- function ki(e, t) {
3836
- return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3837
- return n[r] = x(x({}, e[r]), t[r] || {}), n;
3870
+ function zi(e, t) {
3871
+ return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3872
+ return r[n] = C(C({}, e[n]), t[n] || {}), r;
3838
3873
  }, {})) : e;
3839
3874
  }
3840
- function Vi(e, t) {
3841
- return t ? Object.keys(e).reduce(function(n, r) {
3842
- return n[r] = ki(e[r], t[r]), n;
3843
- }, x({}, e)) : e;
3875
+ function Ji(e, t) {
3876
+ return t ? Object.keys(e).reduce(function(r, n) {
3877
+ return r[n] = zi(e[n], t[n]), r;
3878
+ }, C({}, e)) : e;
3844
3879
  }
3845
- function ke(e) {
3880
+ function Xe(e) {
3846
3881
  return {
3847
3882
  create: function() {
3848
3883
  return {
3849
3884
  get: function(t) {
3850
3885
  return e[t];
3851
3886
  },
3852
- set: function(t, n) {
3853
- e[t] = n;
3887
+ set: function(t, r) {
3888
+ e[t] = r;
3854
3889
  }
3855
3890
  };
3856
3891
  }
3857
3892
  };
3858
3893
  }
3859
- function Wi(e) {
3894
+ function Zi(e) {
3860
3895
  return e === void 0 && (e = {
3861
3896
  number: {},
3862
3897
  dateTime: {},
3863
3898
  pluralRules: {}
3864
3899
  }), {
3865
- getNumberFormat: De(function() {
3866
- for (var t, n = [], r = 0; r < arguments.length; r++)
3867
- n[r] = arguments[r];
3868
- return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], n, !1)))();
3900
+ getNumberFormat: ke(function() {
3901
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3902
+ r[n] = arguments[n];
3903
+ return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
3869
3904
  }, {
3870
- cache: ke(e.number),
3871
- strategy: $e.variadic
3905
+ cache: Xe(e.number),
3906
+ strategy: Ve.variadic
3872
3907
  }),
3873
- getDateTimeFormat: De(function() {
3874
- for (var t, n = [], r = 0; r < arguments.length; r++)
3875
- n[r] = arguments[r];
3876
- return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], n, !1)))();
3908
+ getDateTimeFormat: ke(function() {
3909
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3910
+ r[n] = arguments[n];
3911
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
3877
3912
  }, {
3878
- cache: ke(e.dateTime),
3879
- strategy: $e.variadic
3913
+ cache: Xe(e.dateTime),
3914
+ strategy: Ve.variadic
3880
3915
  }),
3881
- getPluralRules: De(function() {
3882
- for (var t, n = [], r = 0; r < arguments.length; r++)
3883
- n[r] = arguments[r];
3884
- return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], n, !1)))();
3916
+ getPluralRules: ke(function() {
3917
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3918
+ r[n] = arguments[n];
3919
+ return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
3885
3920
  }, {
3886
- cache: ke(e.pluralRules),
3887
- strategy: $e.variadic
3921
+ cache: Xe(e.pluralRules),
3922
+ strategy: Ve.variadic
3888
3923
  })
3889
3924
  };
3890
3925
  }
3891
- var Xi = (
3926
+ var Qi = (
3892
3927
  /** @class */
3893
3928
  function() {
3894
- function e(t, n, r, i) {
3895
- n === void 0 && (n = e.defaultLocale);
3929
+ function e(t, r, n, i) {
3930
+ r === void 0 && (r = e.defaultLocale);
3896
3931
  var o = this;
3897
3932
  if (this.formatterCache = {
3898
3933
  number: {},
@@ -3915,18 +3950,18 @@ var Xi = (
3915
3950
  };
3916
3951
  }, this.getAst = function() {
3917
3952
  return o.ast;
3918
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3953
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3919
3954
  if (this.message = t, !e.__parse)
3920
3955
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3921
3956
  var a = i || {};
3922
3957
  a.formatters;
3923
- var s = Sr(a, ["formatters"]);
3924
- this.ast = e.__parse(t, x(x({}, s), { locale: this.resolvedLocale }));
3958
+ var s = oi(a, ["formatters"]);
3959
+ this.ast = e.__parse(t, C(C({}, s), { locale: this.resolvedLocale }));
3925
3960
  } else
3926
3961
  this.ast = t;
3927
3962
  if (!Array.isArray(this.ast))
3928
3963
  throw new TypeError("A message must be provided as a String or AST.");
3929
- this.formats = Vi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3964
+ this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Zi(this.formatterCache);
3930
3965
  }
3931
3966
  return Object.defineProperty(e, "defaultLocale", {
3932
3967
  get: function() {
@@ -3936,10 +3971,10 @@ var Xi = (
3936
3971
  configurable: !0
3937
3972
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3938
3973
  if (typeof Intl.Locale != "undefined") {
3939
- var n = Intl.NumberFormat.supportedLocalesOf(t);
3940
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3974
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3975
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3941
3976
  }
3942
- }, e.__parse = Ui, e.formats = {
3977
+ }, e.__parse = ji, e.formats = {
3943
3978
  number: {
3944
3979
  integer: {
3945
3980
  maximumFractionDigits: 0
@@ -4000,113 +4035,113 @@ var Xi = (
4000
4035
  }, e;
4001
4036
  }()
4002
4037
  );
4003
- function zi(e, t) {
4038
+ function Yi(e, t) {
4004
4039
  if (t == null)
4005
4040
  return;
4006
4041
  if (t in e)
4007
4042
  return e[t];
4008
- const n = t.split(".");
4009
- let r = e;
4010
- for (let i = 0; i < n.length; i++)
4011
- if (typeof r == "object") {
4043
+ const r = t.split(".");
4044
+ let n = e;
4045
+ for (let i = 0; i < r.length; i++)
4046
+ if (typeof n == "object") {
4012
4047
  if (i > 0) {
4013
- const o = n.slice(i, n.length).join(".");
4014
- if (o in r) {
4015
- r = r[o];
4048
+ const o = r.slice(i, r.length).join(".");
4049
+ if (o in n) {
4050
+ n = n[o];
4016
4051
  break;
4017
4052
  }
4018
4053
  }
4019
- r = r[n[i]];
4054
+ n = n[r[i]];
4020
4055
  } else
4021
- r = void 0;
4022
- return r;
4056
+ n = void 0;
4057
+ return n;
4023
4058
  }
4024
- const j = {}, Ji = (e, t, n) => n && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = n), n), Tn = (e, t) => {
4059
+ const j = {}, qi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Ar = (e, t) => {
4025
4060
  if (t == null)
4026
4061
  return;
4027
4062
  if (t in j && e in j[t])
4028
4063
  return j[t][e];
4029
- const n = Me(t);
4030
- for (let r = 0; r < n.length; r++) {
4031
- const i = n[r], o = Qi(i, e);
4064
+ const r = Ce(t);
4065
+ for (let n = 0; n < r.length; n++) {
4066
+ const i = r[n], o = eo(i, e);
4032
4067
  if (o)
4033
- return Ji(e, t, o);
4068
+ return qi(e, t, o);
4034
4069
  }
4035
4070
  };
4036
- let lt;
4037
- const se = Ie({});
4038
- function Zi(e) {
4039
- return lt[e] || null;
4071
+ let mt;
4072
+ const ae = Ne({});
4073
+ function Ki(e) {
4074
+ return mt[e] || null;
4040
4075
  }
4041
- function Hn(e) {
4042
- return e in lt;
4076
+ function Pr(e) {
4077
+ return e in mt;
4043
4078
  }
4044
- function Qi(e, t) {
4045
- if (!Hn(e))
4079
+ function eo(e, t) {
4080
+ if (!Pr(e))
4046
4081
  return null;
4047
- const n = Zi(e);
4048
- return zi(n, t);
4082
+ const r = Ki(e);
4083
+ return Yi(r, t);
4049
4084
  }
4050
- function Yi(e) {
4085
+ function to(e) {
4051
4086
  if (e == null)
4052
4087
  return;
4053
- const t = Me(e);
4054
- for (let n = 0; n < t.length; n++) {
4055
- const r = t[n];
4056
- if (Hn(r))
4057
- return r;
4088
+ const t = Ce(e);
4089
+ for (let r = 0; r < t.length; r++) {
4090
+ const n = t[r];
4091
+ if (Pr(n))
4092
+ return n;
4058
4093
  }
4059
4094
  }
4060
- function Bn(e, ...t) {
4061
- delete j[e], se.update((n) => (n[e] = ti.all([n[e] || {}, ...t]), n));
4095
+ function Or(e, ...t) {
4096
+ delete j[e], ae.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
4062
4097
  }
4063
- ae(
4064
- [se],
4098
+ oe(
4099
+ [ae],
4065
4100
  ([e]) => Object.keys(e)
4066
4101
  );
4067
- se.subscribe((e) => lt = e);
4102
+ ae.subscribe((e) => mt = e);
4068
4103
  const He = {};
4069
- function qi(e, t) {
4104
+ function ro(e, t) {
4070
4105
  He[e].delete(t), He[e].size === 0 && delete He[e];
4071
4106
  }
4072
- function An(e) {
4107
+ function Rr(e) {
4073
4108
  return He[e];
4074
4109
  }
4075
- function Ki(e) {
4076
- return Me(e).map((t) => {
4077
- const n = An(t);
4078
- return [t, n ? [...n] : []];
4110
+ function no(e) {
4111
+ return Ce(e).map((t) => {
4112
+ const r = Rr(t);
4113
+ return [t, r ? [...r] : []];
4079
4114
  }).filter(([, t]) => t.length > 0);
4080
4115
  }
4081
- function ot(e) {
4082
- return e == null ? !1 : Me(e).some(
4116
+ function ht(e) {
4117
+ return e == null ? !1 : Ce(e).some(
4083
4118
  (t) => {
4084
- var n;
4085
- return (n = An(t)) == null ? void 0 : n.size;
4119
+ var r;
4120
+ return (r = Rr(t)) == null ? void 0 : r.size;
4086
4121
  }
4087
4122
  );
4088
4123
  }
4089
- function eo(e, t) {
4124
+ function io(e, t) {
4090
4125
  return Promise.all(
4091
- t.map((r) => (qi(e, r), r().then((i) => i.default || i)))
4092
- ).then((r) => Bn(e, ...r));
4093
- }
4094
- const he = {};
4095
- function Pn(e) {
4096
- if (!ot(e))
4097
- return e in he ? he[e] : Promise.resolve();
4098
- const t = Ki(e);
4099
- return he[e] = Promise.all(
4126
+ t.map((n) => (ro(e, n), n().then((i) => i.default || i)))
4127
+ ).then((n) => Or(e, ...n));
4128
+ }
4129
+ const le = {};
4130
+ function Ir(e) {
4131
+ if (!ht(e))
4132
+ return e in le ? le[e] : Promise.resolve();
4133
+ const t = no(e);
4134
+ return le[e] = Promise.all(
4100
4135
  t.map(
4101
- ([n, r]) => eo(n, r)
4136
+ ([r, n]) => io(r, n)
4102
4137
  )
4103
4138
  ).then(() => {
4104
- if (ot(e))
4105
- return Pn(e);
4106
- delete he[e];
4107
- }), he[e];
4139
+ if (ht(e))
4140
+ return Ir(e);
4141
+ delete le[e];
4142
+ }), le[e];
4108
4143
  }
4109
- const to = {
4144
+ const oo = {
4110
4145
  number: {
4111
4146
  scientific: { notation: "scientific" },
4112
4147
  engineering: { notation: "engineering" },
@@ -4135,136 +4170,136 @@ const to = {
4135
4170
  timeZoneName: "short"
4136
4171
  }
4137
4172
  }
4138
- }, no = {
4173
+ }, ao = {
4139
4174
  fallbackLocale: null,
4140
4175
  loadingDelay: 200,
4141
- formats: to,
4176
+ formats: oo,
4142
4177
  warnOnMissingMessages: !0,
4143
4178
  handleMissingMessage: void 0,
4144
4179
  ignoreTag: !0
4145
- }, ro = no;
4146
- function oe() {
4147
- return ro;
4148
- }
4149
- const Ve = Ie(!1);
4150
- var io = Object.defineProperty, oo = Object.defineProperties, ao = Object.getOwnPropertyDescriptors, Ut = Object.getOwnPropertySymbols, so = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, lo = (e, t) => {
4151
- for (var n in t)
4152
- so.call(t, n) && Ft(e, n, t[n]);
4153
- if (Ut)
4154
- for (var n of Ut(t))
4155
- uo.call(t, n) && Ft(e, n, t[n]);
4180
+ }, so = ao;
4181
+ function ie() {
4182
+ return so;
4183
+ }
4184
+ const ze = Ne(!1);
4185
+ var uo = Object.defineProperty, lo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
4186
+ for (var r in t || (t = {}))
4187
+ co.call(t, r) && kt(e, r, t[r]);
4188
+ if (jt)
4189
+ for (var r of jt(t))
4190
+ fo.call(t, r) && kt(e, r, t[r]);
4156
4191
  return e;
4157
- }, ho = (e, t) => oo(e, ao(t));
4158
- let at;
4159
- const Pe = Ie(null);
4160
- function Dt(e) {
4161
- return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4192
+ }, po = (e, t) => lo(e, ho(t));
4193
+ let ct;
4194
+ const Oe = Ne(null);
4195
+ function Vt(e) {
4196
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4162
4197
  }
4163
- function Me(e, t = oe().fallbackLocale) {
4164
- const n = Dt(e);
4165
- return t ? [.../* @__PURE__ */ new Set([...n, ...Dt(t)])] : n;
4198
+ function Ce(e, t = ie().fallbackLocale) {
4199
+ const r = Vt(e);
4200
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Vt(t)])] : r;
4166
4201
  }
4167
4202
  function Z() {
4168
- return at != null ? at : void 0;
4203
+ return ct != null ? ct : void 0;
4169
4204
  }
4170
- Pe.subscribe((e) => {
4171
- at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4205
+ Oe.subscribe((e) => {
4206
+ ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4172
4207
  });
4173
- const co = (e) => {
4174
- if (e && Yi(e) && ot(e)) {
4175
- const { loadingDelay: t } = oe();
4176
- let n;
4177
- return typeof window != "undefined" && Z() != null && t ? n = window.setTimeout(
4178
- () => Ve.set(!0),
4208
+ const bo = (e) => {
4209
+ if (e && to(e) && ht(e)) {
4210
+ const { loadingDelay: t } = ie();
4211
+ let r;
4212
+ return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
4213
+ () => ze.set(!0),
4179
4214
  t
4180
- ) : Ve.set(!0), Pn(e).then(() => {
4181
- Pe.set(e);
4215
+ ) : ze.set(!0), Ir(e).then(() => {
4216
+ Oe.set(e);
4182
4217
  }).finally(() => {
4183
- clearTimeout(n), Ve.set(!1);
4218
+ clearTimeout(r), ze.set(!1);
4184
4219
  });
4185
4220
  }
4186
- return Pe.set(e);
4187
- }, W = ho(lo({}, Pe), {
4188
- set: co
4189
- }), Le = (e) => {
4221
+ return Oe.set(e);
4222
+ }, W = po(mo({}, Oe), {
4223
+ set: bo
4224
+ }), Ge = (e) => {
4190
4225
  const t = /* @__PURE__ */ Object.create(null);
4191
- return (r) => {
4192
- const i = JSON.stringify(r);
4193
- return i in t ? t[i] : t[i] = e(r);
4226
+ return (n) => {
4227
+ const i = JSON.stringify(n);
4228
+ return i in t ? t[i] : t[i] = e(n);
4194
4229
  };
4195
4230
  };
4196
- var fo = Object.defineProperty, Re = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, $t = (e, t, n) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
4197
- for (var n in t || (t = {}))
4198
- Rn.call(t, n) && $t(e, n, t[n]);
4231
+ var go = Object.defineProperty, Re = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
4232
+ for (var r in t || (t = {}))
4233
+ Nr.call(t, r) && Wt(e, r, t[r]);
4199
4234
  if (Re)
4200
- for (var n of Re(t))
4201
- On.call(t, n) && $t(e, n, t[n]);
4235
+ for (var r of Re(t))
4236
+ Lr.call(t, r) && Wt(e, r, t[r]);
4202
4237
  return e;
4203
- }, ue = (e, t) => {
4204
- var n = {};
4205
- for (var r in e)
4206
- Rn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4238
+ }, se = (e, t) => {
4239
+ var r = {};
4240
+ for (var n in e)
4241
+ Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4207
4242
  if (e != null && Re)
4208
- for (var r of Re(e))
4209
- t.indexOf(r) < 0 && On.call(e, r) && (n[r] = e[r]);
4210
- return n;
4243
+ for (var n of Re(e))
4244
+ t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
4245
+ return r;
4211
4246
  };
4212
- const pe = (e, t) => {
4213
- const { formats: n } = oe();
4214
- if (e in n && t in n[e])
4215
- return n[e][t];
4247
+ const de = (e, t) => {
4248
+ const { formats: r } = ie();
4249
+ if (e in r && t in r[e])
4250
+ return r[e][t];
4216
4251
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4217
- }, mo = Le(
4252
+ }, yo = Ge(
4218
4253
  (e) => {
4219
- var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
4220
- if (n == null)
4254
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4255
+ if (r == null)
4221
4256
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4222
- return r && (i = pe("number", r)), new Intl.NumberFormat(n, i);
4257
+ return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
4223
4258
  }
4224
- ), po = Le(
4259
+ ), vo = Ge(
4225
4260
  (e) => {
4226
- var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
4227
- if (n == null)
4261
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4262
+ if (r == null)
4228
4263
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4229
- return r ? i = pe("date", r) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(n, i);
4264
+ return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
4230
4265
  }
4231
- ), bo = Le(
4266
+ ), _o = Ge(
4232
4267
  (e) => {
4233
- var t = e, { locale: n, format: r } = t, i = ue(t, ["locale", "format"]);
4234
- if (n == null)
4268
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4269
+ if (r == null)
4235
4270
  throw new Error(
4236
4271
  '[svelte-i18n] A "locale" must be set to format time values'
4237
4272
  );
4238
- return r ? i = pe("time", r) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(n, i);
4273
+ return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
4239
4274
  }
4240
- ), go = (e = {}) => {
4275
+ ), xo = (e = {}) => {
4241
4276
  var t = e, {
4242
- locale: n = Z()
4243
- } = t, r = ue(t, [
4277
+ locale: r = Z()
4278
+ } = t, n = se(t, [
4244
4279
  "locale"
4245
4280
  ]);
4246
- return mo(ht({ locale: n }, r));
4247
- }, yo = (e = {}) => {
4281
+ return yo(dt({ locale: r }, n));
4282
+ }, Eo = (e = {}) => {
4248
4283
  var t = e, {
4249
- locale: n = Z()
4250
- } = t, r = ue(t, [
4284
+ locale: r = Z()
4285
+ } = t, n = se(t, [
4251
4286
  "locale"
4252
4287
  ]);
4253
- return po(ht({ locale: n }, r));
4254
- }, _o = (e = {}) => {
4288
+ return vo(dt({ locale: r }, n));
4289
+ }, wo = (e = {}) => {
4255
4290
  var t = e, {
4256
- locale: n = Z()
4257
- } = t, r = ue(t, [
4291
+ locale: r = Z()
4292
+ } = t, n = se(t, [
4258
4293
  "locale"
4259
4294
  ]);
4260
- return bo(ht({ locale: n }, r));
4261
- }, xo = Le(
4295
+ return _o(dt({ locale: r }, n));
4296
+ }, So = Ge(
4262
4297
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4263
- (e, t = Z()) => new Xi(e, t, oe().formats, {
4264
- ignoreTag: oe().ignoreTag
4298
+ (e, t = Z()) => new Qi(e, t, ie().formats, {
4299
+ ignoreTag: ie().ignoreTag
4265
4300
  })
4266
- ), vo = (e, t = {}) => {
4267
- var n, r, i, o;
4301
+ ), To = (e, t = {}) => {
4302
+ var r, n, i, o;
4268
4303
  let a = t;
4269
4304
  typeof e == "object" && (a = e, e = a.id);
4270
4305
  const {
@@ -4276,9 +4311,9 @@ const pe = (e, t) => {
4276
4311
  throw new Error(
4277
4312
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4278
4313
  );
4279
- let u = Tn(e, h);
4314
+ let u = Ar(e, h);
4280
4315
  if (!u)
4281
- u = (o = (i = (r = (n = oe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4316
+ u = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4282
4317
  else if (typeof u != "string")
4283
4318
  return console.warn(
4284
4319
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4287,7 +4322,7 @@ const pe = (e, t) => {
4287
4322
  return u;
4288
4323
  let f = u;
4289
4324
  try {
4290
- f = xo(u, h).format(s);
4325
+ f = So(u, h).format(s);
4291
4326
  } catch (c) {
4292
4327
  c instanceof Error && console.warn(
4293
4328
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4295,48 +4330,48 @@ const pe = (e, t) => {
4295
4330
  );
4296
4331
  }
4297
4332
  return f;
4298
- }, Eo = (e, t) => _o(t).format(e), wo = (e, t) => yo(t).format(e), So = (e, t) => go(t).format(e), To = (e, t = Z()) => Tn(e, t), Ho = ae([W, se], () => vo);
4299
- ae([W], () => Eo);
4300
- ae([W], () => wo);
4301
- ae([W], () => So);
4302
- ae([W, se], () => To);
4303
- window.emWidgets = { topic: Ur };
4304
- const Bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4305
- function Ao(e, t) {
4333
+ }, Ho = (e, t) => wo(t).format(e), Bo = (e, t) => Eo(t).format(e), Ao = (e, t) => xo(t).format(e), Po = (e, t = Z()) => Ar(e, t), Oo = oe([W, ae], () => To);
4334
+ oe([W], () => Ho);
4335
+ oe([W], () => Bo);
4336
+ oe([W], () => Ao);
4337
+ oe([W, ae], () => Po);
4338
+ window.emWidgets = { topic: Dn };
4339
+ const Ro = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4340
+ function Io(e, t) {
4306
4341
  if (e) {
4307
- const n = document.createElement("style");
4308
- n.innerHTML = t, e.appendChild(n);
4342
+ const r = document.createElement("style");
4343
+ r.innerHTML = t, e.appendChild(r);
4309
4344
  }
4310
4345
  }
4311
- function Po(e, t) {
4312
- const n = new URL(t);
4313
- fetch(n.href).then((r) => r.text()).then((r) => {
4346
+ function No(e, t) {
4347
+ const r = new URL(t);
4348
+ fetch(r.href).then((n) => n.text()).then((n) => {
4314
4349
  const i = document.createElement("style");
4315
- i.innerHTML = r, e && e.appendChild(i);
4316
- }).catch((r) => {
4317
- console.error("There was an error while trying to load client styling from URL", r);
4350
+ i.innerHTML = n, e && e.appendChild(i);
4351
+ }).catch((n) => {
4352
+ console.error("There was an error while trying to load client styling from URL", n);
4318
4353
  });
4319
4354
  }
4320
- function Ro(e, t, n) {
4355
+ function Lo(e, t, r) {
4321
4356
  if (window.emMessageBus) {
4322
- const r = document.createElement("style");
4357
+ const n = document.createElement("style");
4323
4358
  window.emMessageBus.subscribe(t, (i) => {
4324
- r.innerHTML = i, e && e.appendChild(r);
4359
+ n.innerHTML = i, e && e.appendChild(n);
4325
4360
  });
4326
4361
  }
4327
4362
  }
4328
- function Oo({ withLocale: e, translations: t }) {
4329
- W.subscribe((n) => {
4330
- n == null && (se.set(t), W.set(e));
4363
+ function Mo({ withLocale: e, translations: t }) {
4364
+ W.subscribe((r) => {
4365
+ r == null && (ae.set(t), W.set(e));
4331
4366
  });
4332
4367
  }
4333
- function jt(e, t) {
4334
- Bn(e, t);
4368
+ function Xt(e, t) {
4369
+ Or(e, t);
4335
4370
  }
4336
- function Io(e) {
4371
+ function Co(e) {
4337
4372
  W.set(e);
4338
4373
  }
4339
- const kt = {
4374
+ const zt = {
4340
4375
  en: {
4341
4376
  playRandomGame: "Play a random game",
4342
4377
  randomGameLoading: "Selecting ...",
@@ -4410,152 +4445,152 @@ const kt = {
4410
4445
  noGames: "There are no random games to play"
4411
4446
  }
4412
4447
  };
4413
- function No(e) {
4414
- ir(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
4448
+ function Go(e) {
4449
+ un(e, "svelte-kfgfhx", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.CasinoPlayRandomGameWrapper{min-height:0}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{margin:5px 0;font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
4415
4450
  }
4416
- function Vt(e, t, n) {
4417
- const r = e.slice();
4418
- return r[41] = t[n], r;
4451
+ function Jt(e, t, r) {
4452
+ const n = e.slice();
4453
+ return n[41] = t[r], n;
4419
4454
  }
4420
- const Mo = (e) => ({}), Wt = (e) => ({});
4421
- function Xt(e) {
4422
- let t, n, r, i, o, a, s;
4455
+ const Uo = (e) => ({}), Zt = (e) => ({});
4456
+ function Qt(e) {
4457
+ let t, r, n, i, o, a, s;
4423
4458
  const h = (
4424
4459
  /*#slots*/
4425
4460
  e[23].close
4426
- ), l = er(
4461
+ ), l = nn(
4427
4462
  h,
4428
4463
  e,
4429
4464
  /*$$scope*/
4430
4465
  e[22],
4431
- Wt
4432
- ), u = l || Lo();
4433
- function f(m, p) {
4466
+ Zt
4467
+ ), u = l || $o();
4468
+ function f(d, p) {
4434
4469
  return (
4435
4470
  /*hasRandomGames*/
4436
- m[7] ? Go : Co
4471
+ d[7] ? Do : Fo
4437
4472
  );
4438
4473
  }
4439
- let c = f(e), d = c(e);
4474
+ let c = f(e), m = c(e);
4440
4475
  return {
4441
4476
  c() {
4442
- t = S("div"), n = S("div"), r = S("span"), u.c(), i = V(), d.c(), g(r, "class", "ModalCloseBtn"), g(r, "role", "button"), g(n, "class", "ModalContainer"), g(t, "class", "ModalWindow");
4477
+ t = w("div"), r = w("div"), n = w("span"), u && u.c(), i = V(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
4443
4478
  },
4444
- m(m, p) {
4445
- I(m, t, p), v(t, n), v(n, r), u.m(r, null), v(n, i), d.m(n, null), o = !0, a || (s = Be(
4446
- r,
4479
+ m(d, p) {
4480
+ I(d, t, p), _(t, r), _(r, n), u && u.m(n, null), _(r, i), m.m(r, null), o = !0, a || (s = Be(
4481
+ n,
4447
4482
  "click",
4448
4483
  /*closeModal*/
4449
4484
  e[12]
4450
4485
  ), a = !0);
4451
4486
  },
4452
- p(m, p) {
4487
+ p(d, p) {
4453
4488
  l && l.p && (!o || p[0] & /*$$scope*/
4454
- 4194304) && nr(
4489
+ 4194304) && an(
4455
4490
  l,
4456
4491
  h,
4457
- m,
4492
+ d,
4458
4493
  /*$$scope*/
4459
- m[22],
4460
- o ? tr(
4494
+ d[22],
4495
+ o ? on(
4461
4496
  h,
4462
4497
  /*$$scope*/
4463
- m[22],
4498
+ d[22],
4464
4499
  p,
4465
- Mo
4466
- ) : rr(
4500
+ Uo
4501
+ ) : sn(
4467
4502
  /*$$scope*/
4468
- m[22]
4503
+ d[22]
4469
4504
  ),
4470
- Wt
4471
- ), c === (c = f(m)) && d ? d.p(m, p) : (d.d(1), d = c(m), d && (d.c(), d.m(n, null)));
4505
+ Zt
4506
+ ), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
4472
4507
  },
4473
- i(m) {
4474
- o || (fe(u, m), o = !0);
4508
+ i(d) {
4509
+ o || (ce(u, d), o = !0);
4475
4510
  },
4476
- o(m) {
4477
- ze(u, m), o = !1;
4511
+ o(d) {
4512
+ Qe(u, d), o = !1;
4478
4513
  },
4479
- d(m) {
4480
- m && R(t), u.d(m), d.d(), a = !1, s();
4514
+ d(d) {
4515
+ d && O(t), u && u.d(d), m.d(), a = !1, s();
4481
4516
  }
4482
4517
  };
4483
4518
  }
4484
- function Lo(e) {
4485
- let t, n;
4519
+ function $o(e) {
4520
+ let t, r;
4486
4521
  return {
4487
4522
  c() {
4488
- t = _t("svg"), n = _t("path"), g(n, "stroke-linecap", "round"), g(n, "stroke-linejoin", "round"), g(n, "stroke-width", "2"), g(n, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
4523
+ t = wt("svg"), r = wt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
4489
4524
  },
4490
- m(r, i) {
4491
- I(r, t, i), v(t, n);
4525
+ m(n, i) {
4526
+ I(n, t, i), _(t, r);
4492
4527
  },
4493
- p: C,
4494
- d(r) {
4495
- r && R(t);
4528
+ p: G,
4529
+ d(n) {
4530
+ n && O(t);
4496
4531
  }
4497
4532
  };
4498
4533
  }
4499
- function Co(e) {
4500
- let t, n = (
4534
+ function Fo(e) {
4535
+ let t, r = (
4501
4536
  /*$_*/
4502
4537
  e[9]("noGames") + ""
4503
- ), r;
4538
+ ), n;
4504
4539
  return {
4505
4540
  c() {
4506
- t = S("p"), r = k(n), g(t, "class", "RandomGameLoading");
4541
+ t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
4507
4542
  },
4508
4543
  m(i, o) {
4509
- I(i, t, o), v(t, r);
4544
+ I(i, t, o), _(t, n);
4510
4545
  },
4511
4546
  p(i, o) {
4512
4547
  o[0] & /*$_*/
4513
- 512 && n !== (n = /*$_*/
4514
- i[9]("noGames") + "") && z(r, n);
4548
+ 512 && r !== (r = /*$_*/
4549
+ i[9]("noGames") + "") && z(n, r);
4515
4550
  },
4516
4551
  d(i) {
4517
- i && R(t);
4552
+ i && O(t);
4518
4553
  }
4519
4554
  };
4520
4555
  }
4521
- function Go(e) {
4522
- let t, n, r, i, o = vt(
4556
+ function Do(e) {
4557
+ let t, r, n, i, o = Tt(
4523
4558
  /*gamesToShow*/
4524
4559
  e[4]
4525
4560
  ), a = [];
4526
4561
  for (let u = 0; u < o.length; u += 1)
4527
- a[u] = zt(Vt(e, o, u));
4562
+ a[u] = Yt(Jt(e, o, u));
4528
4563
  function s(u, f) {
4529
4564
  return (
4530
4565
  /*animationDone*/
4531
- u[6] ? Fo : Uo
4566
+ u[6] ? ko : jo
4532
4567
  );
4533
4568
  }
4534
4569
  let h = s(e), l = h(e);
4535
4570
  return {
4536
4571
  c() {
4537
- t = S("div"), n = S("main"), r = S("div");
4572
+ t = w("div"), r = w("main"), n = w("div");
4538
4573
  for (let u = 0; u < a.length; u += 1)
4539
4574
  a[u].c();
4540
- i = V(), l.c(), g(r, "class", "GamesContainer"), g(n, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
4575
+ i = V(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
4541
4576
  },
4542
4577
  m(u, f) {
4543
- I(u, t, f), v(t, n), v(n, r);
4578
+ I(u, t, f), _(t, r), _(r, n);
4544
4579
  for (let c = 0; c < a.length; c += 1)
4545
- a[c] && a[c].m(r, null);
4546
- e[24](r), v(t, i), l.m(t, null);
4580
+ a[c] && a[c].m(n, null);
4581
+ e[24](n), _(t, i), l.m(t, null);
4547
4582
  },
4548
4583
  p(u, f) {
4549
4584
  if (f[0] & /*gamesToShow*/
4550
4585
  16) {
4551
- o = vt(
4586
+ o = Tt(
4552
4587
  /*gamesToShow*/
4553
4588
  u[4]
4554
4589
  );
4555
4590
  let c;
4556
4591
  for (c = 0; c < o.length; c += 1) {
4557
- const d = Vt(u, o, c);
4558
- a[c] ? a[c].p(d, f) : (a[c] = zt(d), a[c].c(), a[c].m(r, null));
4592
+ const m = Jt(u, o, c);
4593
+ a[c] ? a[c].p(m, f) : (a[c] = Yt(m), a[c].c(), a[c].m(n, null));
4559
4594
  }
4560
4595
  for (; c < a.length; c += 1)
4561
4596
  a[c].d(1);
@@ -4564,76 +4599,76 @@ function Go(e) {
4564
4599
  h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
4565
4600
  },
4566
4601
  d(u) {
4567
- u && R(t), sr(a, u), e[24](null), l.d();
4602
+ u && O(t), cn(a, u), e[24](null), l.d();
4568
4603
  }
4569
4604
  };
4570
4605
  }
4571
- function zt(e) {
4572
- let t, n, r, i, o, a;
4606
+ function Yt(e) {
4607
+ let t, r, n, i, o, a;
4573
4608
  return {
4574
4609
  c() {
4575
- t = S("div"), n = S("img"), a = V(), g(n, "class", "RandomGameImage"), yt(n.src, r = /*game*/
4576
- e[41].thumbnail) || g(n, "src", r), g(n, "alt", i = /*game*/
4577
- e[41].name), g(n, "title", o = /*game*/
4610
+ t = w("div"), r = w("img"), a = V(), g(r, "class", "RandomGameImage"), Et(r.src, n = /*game*/
4611
+ e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
4612
+ e[41].name), g(r, "title", o = /*game*/
4578
4613
  e[41].name), g(t, "class", "item");
4579
4614
  },
4580
4615
  m(s, h) {
4581
- I(s, t, h), v(t, n), v(t, a);
4616
+ I(s, t, h), _(t, r), _(t, a);
4582
4617
  },
4583
4618
  p(s, h) {
4584
4619
  h[0] & /*gamesToShow*/
4585
- 16 && !yt(n.src, r = /*game*/
4586
- s[41].thumbnail) && g(n, "src", r), h[0] & /*gamesToShow*/
4620
+ 16 && !Et(r.src, n = /*game*/
4621
+ s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
4587
4622
  16 && i !== (i = /*game*/
4588
- s[41].name) && g(n, "alt", i), h[0] & /*gamesToShow*/
4623
+ s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
4589
4624
  16 && o !== (o = /*game*/
4590
- s[41].name) && g(n, "title", o);
4625
+ s[41].name) && g(r, "title", o);
4591
4626
  },
4592
4627
  d(s) {
4593
- s && R(t);
4628
+ s && O(t);
4594
4629
  }
4595
4630
  };
4596
4631
  }
4597
- function Uo(e) {
4598
- let t, n = (
4632
+ function jo(e) {
4633
+ let t, r = (
4599
4634
  /*$_*/
4600
4635
  e[9]("randomGameLoading") + ""
4601
- ), r;
4636
+ ), n;
4602
4637
  return {
4603
4638
  c() {
4604
- t = S("p"), r = k(n), g(t, "class", "RandomGameLoading");
4639
+ t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
4605
4640
  },
4606
4641
  m(i, o) {
4607
- I(i, t, o), v(t, r);
4642
+ I(i, t, o), _(t, n);
4608
4643
  },
4609
4644
  p(i, o) {
4610
4645
  o[0] & /*$_*/
4611
- 512 && n !== (n = /*$_*/
4612
- i[9]("randomGameLoading") + "") && z(r, n);
4646
+ 512 && r !== (r = /*$_*/
4647
+ i[9]("randomGameLoading") + "") && z(n, r);
4613
4648
  },
4614
4649
  d(i) {
4615
- i && R(t);
4650
+ i && O(t);
4616
4651
  }
4617
4652
  };
4618
4653
  }
4619
- function Fo(e) {
4620
- let t, n, r, i, o = (
4654
+ function ko(e) {
4655
+ let t, r, n, i, o = (
4621
4656
  /*randomGame*/
4622
4657
  e[3].name + ""
4623
4658
  ), a, s, h, l = (
4624
4659
  /*randomGame*/
4625
4660
  e[3].vendor.name + ""
4626
- ), u, f, c, d = (
4661
+ ), u, f, c, m = (
4627
4662
  /*$_*/
4628
4663
  e[9]("playNowRandomGame") + ""
4629
- ), m, p, A;
4664
+ ), d, p, A;
4630
4665
  return {
4631
4666
  c() {
4632
- t = S("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
4633
- </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, n = V(), r = S("div"), i = S("p"), a = k(o), s = V(), h = S("p"), u = k(l), f = V(), c = S("button"), m = k(d), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(r, "class", "RandomGameDetails");
4667
+ t = w("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
4668
+ </style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = V(), n = w("div"), i = w("p"), a = k(o), s = V(), h = w("p"), u = k(l), f = V(), c = w("button"), d = k(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
4634
4669
  },
4635
4670
  m(H, T) {
4636
- I(H, t, T), I(H, n, T), I(H, r, T), v(r, i), v(i, a), v(r, s), v(r, h), v(h, u), v(r, f), v(r, c), v(c, m), p || (A = [
4671
+ I(H, t, T), I(H, r, T), I(H, n, T), _(n, i), _(i, a), _(n, s), _(n, h), _(h, u), _(n, f), _(n, c), _(c, d), p || (A = [
4637
4672
  Be(
4638
4673
  t,
4639
4674
  "click",
@@ -4654,83 +4689,83 @@ function Fo(e) {
4654
4689
  H[3].name + "") && z(a, o), T[0] & /*randomGame*/
4655
4690
  8 && l !== (l = /*randomGame*/
4656
4691
  H[3].vendor.name + "") && z(u, l), T[0] & /*$_*/
4657
- 512 && d !== (d = /*$_*/
4658
- H[9]("playNowRandomGame") + "") && z(m, d);
4692
+ 512 && m !== (m = /*$_*/
4693
+ H[9]("playNowRandomGame") + "") && z(d, m);
4659
4694
  },
4660
4695
  d(H) {
4661
- H && (R(t), R(n), R(r)), p = !1, J(A);
4696
+ H && (O(t), O(r), O(n)), p = !1, J(A);
4662
4697
  }
4663
4698
  };
4664
4699
  }
4665
- function Do(e) {
4666
- let t, n = (
4700
+ function Vo(e) {
4701
+ let t, r = (
4667
4702
  /*$_*/
4668
4703
  e[9]("playRandomGame") + ""
4669
- ), r;
4704
+ ), n;
4670
4705
  return {
4671
4706
  c() {
4672
- t = S("span"), r = k(n), g(t, "class", "RandomButtonText");
4707
+ t = w("span"), n = k(r), g(t, "class", "RandomButtonText");
4673
4708
  },
4674
4709
  m(i, o) {
4675
- I(i, t, o), v(t, r);
4710
+ I(i, t, o), _(t, n);
4676
4711
  },
4677
4712
  p(i, o) {
4678
4713
  o[0] & /*$_*/
4679
- 512 && n !== (n = /*$_*/
4680
- i[9]("playRandomGame") + "") && z(r, n);
4714
+ 512 && r !== (r = /*$_*/
4715
+ i[9]("playRandomGame") + "") && z(n, r);
4681
4716
  },
4682
4717
  d(i) {
4683
- i && R(t);
4718
+ i && O(t);
4684
4719
  }
4685
4720
  };
4686
4721
  }
4687
- function $o(e) {
4688
- let t, n;
4722
+ function Wo(e) {
4723
+ let t, r;
4689
4724
  return {
4690
4725
  c() {
4691
- t = S("span"), n = k(
4726
+ t = w("span"), r = k(
4692
4727
  /*buttontext*/
4693
4728
  e[1]
4694
4729
  ), g(t, "class", "RandomButtonText");
4695
4730
  },
4696
- m(r, i) {
4697
- I(r, t, i), v(t, n);
4731
+ m(n, i) {
4732
+ I(n, t, i), _(t, r);
4698
4733
  },
4699
- p(r, i) {
4734
+ p(n, i) {
4700
4735
  i[0] & /*buttontext*/
4701
4736
  2 && z(
4702
- n,
4737
+ r,
4703
4738
  /*buttontext*/
4704
- r[1]
4739
+ n[1]
4705
4740
  );
4706
4741
  },
4707
- d(r) {
4708
- r && R(t);
4742
+ d(n) {
4743
+ n && O(t);
4709
4744
  }
4710
4745
  };
4711
4746
  }
4712
- function jo(e) {
4713
- let t, n, r, i, o, a, s, h, l, u = (
4747
+ function Xo(e) {
4748
+ let t, r, n, i, o, a, s, h, l, u = (
4714
4749
  /*show*/
4715
- e[5] && Xt(e)
4750
+ e[5] && Qt(e)
4716
4751
  );
4717
- function f(m, p) {
4752
+ function f(d, p) {
4718
4753
  if (
4719
4754
  /*buttontext*/
4720
- m[1]
4755
+ d[1]
4721
4756
  )
4722
- return $o;
4757
+ return Wo;
4723
4758
  if (!/*buttontext*/
4724
- m[1])
4725
- return Do;
4759
+ d[1])
4760
+ return Vo;
4726
4761
  }
4727
- let c = f(e), d = c && c(e);
4762
+ let c = f(e), m = c && c(e);
4728
4763
  return {
4729
4764
  c() {
4730
- t = S("div"), u && u.c(), n = V(), r = S("div"), i = S("button"), d && d.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(r, "class", "RandomButtonWrapper");
4765
+ t = w("div"), u && u.c(), r = V(), n = w("div"), i = w("button"), m && m.c(), o = V(), a = w("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
4731
4766
  },
4732
- m(m, p) {
4733
- I(m, t, p), u && u.m(t, null), v(t, n), v(t, r), v(r, i), d && d.m(i, null), v(i, o), v(i, a), a.innerHTML = /*randombuttonicon*/
4767
+ m(d, p) {
4768
+ I(d, t, p), u && u.m(t, null), _(t, r), _(t, n), _(n, i), m && m.m(i, null), _(i, o), _(i, a), a.innerHTML = /*randombuttonicon*/
4734
4769
  e[0], e[28](t), s = !0, h || (l = Be(
4735
4770
  i,
4736
4771
  "click",
@@ -4738,156 +4773,156 @@ function jo(e) {
4738
4773
  e[27]
4739
4774
  ), h = !0);
4740
4775
  },
4741
- p(m, p) {
4776
+ p(d, p) {
4742
4777
  /*show*/
4743
- m[5] ? u ? (u.p(m, p), p[0] & /*show*/
4744
- 32 && fe(u, 1)) : (u = Xt(m), u.c(), fe(u, 1), u.m(t, n)) : u && (pr(), ze(u, 1, 1, () => {
4778
+ d[5] ? u ? (u.p(d, p), p[0] & /*show*/
4779
+ 32 && ce(u, 1)) : (u = Qt(d), u.c(), ce(u, 1), u.m(t, r)) : u && (vn(), Qe(u, 1, 1, () => {
4745
4780
  u = null;
4746
- }), br()), c === (c = f(m)) && d ? d.p(m, p) : (d && d.d(1), d = c && c(m), d && (d.c(), d.m(i, o))), (!s || p[0] & /*randombuttonicon*/
4781
+ }), _n()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
4747
4782
  1) && (a.innerHTML = /*randombuttonicon*/
4748
- m[0]);
4783
+ d[0]);
4749
4784
  },
4750
- i(m) {
4751
- s || (fe(u), s = !0);
4785
+ i(d) {
4786
+ s || (ce(u), s = !0);
4752
4787
  },
4753
- o(m) {
4754
- ze(u), s = !1;
4788
+ o(d) {
4789
+ Qe(u), s = !1;
4755
4790
  },
4756
- d(m) {
4757
- m && R(t), u && u.d(), d && d.d(), e[28](null), h = !1, l();
4791
+ d(d) {
4792
+ d && O(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
4758
4793
  }
4759
4794
  };
4760
4795
  }
4761
- function ko(e, t, n) {
4762
- let r;
4763
- Kn(e, Ho, (b) => n(9, r = b));
4764
- let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, M = !1, L = !1, G = !1, be = window.navigator.userAgent, U, Q, ct, ge, ft = null;
4765
- Oo({ withLocale: "en", translations: {} });
4766
- const In = () => {
4767
- fetch(c).then((E) => E.json()).then((E) => {
4768
- Object.keys(E).forEach((F) => {
4769
- jt(F, E[F]);
4796
+ function zo(e, t, r) {
4797
+ let n;
4798
+ rn(e, Oo, (b) => r(9, n = b));
4799
+ let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, M = !1, U = !1, be = window.navigator.userAgent, $, Q, pt, ge, bt = null;
4800
+ Mo({ withLocale: "en", translations: {} });
4801
+ const Mr = () => {
4802
+ fetch(c).then((x) => x.json()).then((x) => {
4803
+ Object.keys(x).forEach((F) => {
4804
+ Xt(F, x[F]);
4770
4805
  });
4771
- }).catch((E) => {
4772
- console.log(E);
4806
+ }).catch((x) => {
4807
+ console.log(x);
4773
4808
  });
4774
4809
  };
4775
- Object.keys(kt).forEach((b) => {
4776
- jt(b, kt[b]);
4810
+ Object.keys(zt).forEach((b) => {
4811
+ Xt(b, zt[b]);
4777
4812
  });
4778
- const Nn = () => {
4813
+ const Cr = () => {
4779
4814
  let b = new URL(`${a}/v1/casino/games`);
4780
- b.searchParams.append("platform", Bo(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((E) => E.json()).then((E) => {
4781
- H = E.items, H.length ? (n(4, B = Mn(H.slice(0, 19))), n(7, G = !0)) : (n(4, B = []), n(7, G = !1));
4782
- }).catch((E) => {
4783
- console.log(E), n(7, G = !1);
4815
+ b.searchParams.append("platform", Ro(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((x) => x.json()).then((x) => {
4816
+ H = x.items, H.length ? (r(4, B = Gr(H.slice(0, 19))), r(7, U = !0)) : (r(4, B = []), r(7, U = !1));
4817
+ }).catch((x) => {
4818
+ console.log(x), r(7, U = !1);
4784
4819
  });
4785
- }, Mn = (b) => {
4786
- const E = Cn(b);
4787
- return E.concat(E);
4788
- }, Ln = () => ye(this, null, function* () {
4789
- yield fr(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, n(3, T = B[ge]), ct = Q.children[ge];
4790
- }), Ce = () => ye(this, null, function* () {
4791
- n(6, L = !1), n(5, M = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Ln();
4792
- const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (ct.offsetHeight + E) * ge, Vn = [
4820
+ }, Gr = (b) => {
4821
+ const x = $r(b);
4822
+ return x.concat(x);
4823
+ }, Ur = () => ye(this, null, function* () {
4824
+ yield bn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), pt = Q.children[ge];
4825
+ }), Ue = () => ye(this, null, function* () {
4826
+ r(6, M = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Ur();
4827
+ const b = window.getComputedStyle(Q).getPropertyValue("gap"), x = parseInt(b, 10) || 0, ue = (pt.offsetHeight + x) * ge, zr = [
4793
4828
  { transform: "translateX(0px)" },
4794
4829
  { filter: "blur(5px)" },
4795
4830
  {
4796
- transform: `translateY(-${le}px)`
4831
+ transform: `translateY(-${ue}px)`
4797
4832
  }
4798
- ], Wn = {
4833
+ ], Jr = {
4799
4834
  duration: 2e3,
4800
4835
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
4801
4836
  fill: "forwards"
4802
4837
  };
4803
- ft = Q.animate(Vn, Wn), ft.onfinish = () => {
4804
- n(6, L = !0);
4838
+ bt = Q.animate(zr, Jr), bt.onfinish = () => {
4839
+ r(6, M = !0);
4805
4840
  };
4806
- }), Cn = (b) => {
4807
- const E = structuredClone(b);
4808
- let F = E.length, le;
4841
+ }), $r = (b) => {
4842
+ const x = structuredClone(b);
4843
+ let F = x.length, ue;
4809
4844
  for (; F != 0; )
4810
- le = Math.floor(Math.random() * F), F--, [E[F], E[le]] = [E[le], E[F]];
4811
- return E;
4812
- }, dt = () => {
4845
+ ue = Math.floor(Math.random() * F), F--, [x[F], x[ue]] = [x[ue], x[F]];
4846
+ return x;
4847
+ }, gt = () => {
4813
4848
  window.postMessage(
4814
4849
  {
4815
4850
  type: h,
4816
4851
  gameId: T.gId || T.id
4817
4852
  },
4818
4853
  window.location.href
4819
- ), n(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
4854
+ ), r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
4820
4855
  context: "RandomGameWidget",
4821
4856
  gameId: `${T.gId || T.id}`
4822
4857
  });
4823
- }, Gn = () => {
4824
- n(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: M }, window.location.href);
4825
- }, Un = () => {
4826
- Io(l);
4858
+ }, Fr = () => {
4859
+ r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: L }, window.location.href);
4860
+ }, Dr = () => {
4861
+ Co(l);
4827
4862
  };
4828
- cr(() => () => {
4863
+ pn(() => () => {
4829
4864
  });
4830
- function Fn(b) {
4865
+ function jr(b) {
4831
4866
  Ae[b ? "unshift" : "push"](() => {
4832
- Q = b, n(8, Q);
4867
+ Q = b, r(8, Q);
4833
4868
  });
4834
4869
  }
4835
- const Dn = () => Ce(), $n = () => dt(), jn = () => Ce();
4836
- function kn(b) {
4870
+ const kr = () => Ue(), Vr = () => gt(), Wr = () => Ue();
4871
+ function Xr(b) {
4837
4872
  Ae[b ? "unshift" : "push"](() => {
4838
- U = b, n(2, U);
4873
+ $ = b, r(2, $);
4839
4874
  });
4840
4875
  }
4841
4876
  return e.$$set = (b) => {
4842
- "endpoint" in b && n(13, a = b.endpoint), "datasource" in b && n(14, s = b.datasource), "gameevent" in b && n(15, h = b.gameevent), "lang" in b && n(16, l = b.lang), "randombuttonicon" in b && n(0, u = b.randombuttonicon), "buttontext" in b && n(1, f = b.buttontext), "translationurl" in b && n(17, c = b.translationurl), "clientstyling" in b && n(18, d = b.clientstyling), "clientstylingurl" in b && n(19, m = b.clientstylingurl), "filteredrandomgamecategories" in b && n(20, p = b.filteredrandomgamecategories), "mbsource" in b && n(21, A = b.mbsource), "$$scope" in b && n(22, o = b.$$scope);
4877
+ "endpoint" in b && r(13, a = b.endpoint), "datasource" in b && r(14, s = b.datasource), "gameevent" in b && r(15, h = b.gameevent), "lang" in b && r(16, l = b.lang), "randombuttonicon" in b && r(0, u = b.randombuttonicon), "buttontext" in b && r(1, f = b.buttontext), "translationurl" in b && r(17, c = b.translationurl), "clientstyling" in b && r(18, m = b.clientstyling), "clientstylingurl" in b && r(19, d = b.clientstylingurl), "filteredrandomgamecategories" in b && r(20, p = b.filteredrandomgamecategories), "mbsource" in b && r(21, A = b.mbsource), "$$scope" in b && r(22, o = b.$$scope);
4843
4878
  }, e.$$.update = () => {
4844
4879
  e.$$.dirty[0] & /*lang*/
4845
- 65536 && l && Un(), e.$$.dirty[0] & /*translationurl*/
4846
- 131072 && c && In(), e.$$.dirty[0] & /*endpoint, datasource*/
4847
- 24576 && a && s && Nn(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4848
- 262148 && d && U && Ao(U, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4849
- 524292 && m && U && Po(U, m), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4850
- 2097156 && U && Ro(U, `${A}.Style`);
4880
+ 65536 && l && Dr(), e.$$.dirty[0] & /*translationurl*/
4881
+ 131072 && c && Mr(), e.$$.dirty[0] & /*endpoint, datasource*/
4882
+ 24576 && a && s && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4883
+ 262148 && m && $ && Io($, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4884
+ 524292 && d && $ && No($, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4885
+ 2097156 && $ && Lo($, `${A}.Style`);
4851
4886
  }, [
4852
4887
  u,
4853
4888
  f,
4854
- U,
4889
+ $,
4855
4890
  T,
4856
4891
  B,
4857
- M,
4858
4892
  L,
4859
- G,
4893
+ M,
4894
+ U,
4860
4895
  Q,
4861
- r,
4862
- Ce,
4863
- dt,
4864
- Gn,
4896
+ n,
4897
+ Ue,
4898
+ gt,
4899
+ Fr,
4865
4900
  a,
4866
4901
  s,
4867
4902
  h,
4868
4903
  l,
4869
4904
  c,
4870
- d,
4871
4905
  m,
4906
+ d,
4872
4907
  p,
4873
4908
  A,
4874
4909
  o,
4875
4910
  i,
4876
- Fn,
4877
- Dn,
4878
- $n,
4879
- jn,
4880
- kn
4911
+ jr,
4912
+ kr,
4913
+ Vr,
4914
+ Wr,
4915
+ Xr
4881
4916
  ];
4882
4917
  }
4883
- class Vo extends Er {
4918
+ class Jo extends Hn {
4884
4919
  constructor(t) {
4885
- super(), xr(
4920
+ super(), Sn(
4886
4921
  this,
4887
4922
  t,
4888
- ko,
4889
- jo,
4890
- Zt,
4923
+ zo,
4924
+ Xo,
4925
+ Kt,
4891
4926
  {
4892
4927
  endpoint: 13,
4893
4928
  datasource: 14,
@@ -4901,7 +4936,7 @@ class Vo extends Er {
4901
4936
  filteredrandomgamecategories: 20,
4902
4937
  mbsource: 21
4903
4938
  },
4904
- No,
4939
+ Go,
4905
4940
  [-1, -1]
4906
4941
  );
4907
4942
  }
@@ -4909,70 +4944,70 @@ class Vo extends Er {
4909
4944
  return this.$$.ctx[13];
4910
4945
  }
4911
4946
  set endpoint(t) {
4912
- this.$$set({ endpoint: t }), O();
4947
+ this.$$set({ endpoint: t }), R();
4913
4948
  }
4914
4949
  get datasource() {
4915
4950
  return this.$$.ctx[14];
4916
4951
  }
4917
4952
  set datasource(t) {
4918
- this.$$set({ datasource: t }), O();
4953
+ this.$$set({ datasource: t }), R();
4919
4954
  }
4920
4955
  get gameevent() {
4921
4956
  return this.$$.ctx[15];
4922
4957
  }
4923
4958
  set gameevent(t) {
4924
- this.$$set({ gameevent: t }), O();
4959
+ this.$$set({ gameevent: t }), R();
4925
4960
  }
4926
4961
  get lang() {
4927
4962
  return this.$$.ctx[16];
4928
4963
  }
4929
4964
  set lang(t) {
4930
- this.$$set({ lang: t }), O();
4965
+ this.$$set({ lang: t }), R();
4931
4966
  }
4932
4967
  get randombuttonicon() {
4933
4968
  return this.$$.ctx[0];
4934
4969
  }
4935
4970
  set randombuttonicon(t) {
4936
- this.$$set({ randombuttonicon: t }), O();
4971
+ this.$$set({ randombuttonicon: t }), R();
4937
4972
  }
4938
4973
  get buttontext() {
4939
4974
  return this.$$.ctx[1];
4940
4975
  }
4941
4976
  set buttontext(t) {
4942
- this.$$set({ buttontext: t }), O();
4977
+ this.$$set({ buttontext: t }), R();
4943
4978
  }
4944
4979
  get translationurl() {
4945
4980
  return this.$$.ctx[17];
4946
4981
  }
4947
4982
  set translationurl(t) {
4948
- this.$$set({ translationurl: t }), O();
4983
+ this.$$set({ translationurl: t }), R();
4949
4984
  }
4950
4985
  get clientstyling() {
4951
4986
  return this.$$.ctx[18];
4952
4987
  }
4953
4988
  set clientstyling(t) {
4954
- this.$$set({ clientstyling: t }), O();
4989
+ this.$$set({ clientstyling: t }), R();
4955
4990
  }
4956
4991
  get clientstylingurl() {
4957
4992
  return this.$$.ctx[19];
4958
4993
  }
4959
4994
  set clientstylingurl(t) {
4960
- this.$$set({ clientstylingurl: t }), O();
4995
+ this.$$set({ clientstylingurl: t }), R();
4961
4996
  }
4962
4997
  get filteredrandomgamecategories() {
4963
4998
  return this.$$.ctx[20];
4964
4999
  }
4965
5000
  set filteredrandomgamecategories(t) {
4966
- this.$$set({ filteredrandomgamecategories: t }), O();
5001
+ this.$$set({ filteredrandomgamecategories: t }), R();
4967
5002
  }
4968
5003
  get mbsource() {
4969
5004
  return this.$$.ctx[21];
4970
5005
  }
4971
5006
  set mbsource(t) {
4972
- this.$$set({ mbsource: t }), O();
5007
+ this.$$set({ mbsource: t }), R();
4973
5008
  }
4974
5009
  }
4975
- vr(Vo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
5010
+ Tn(Jo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
4976
5011
  export {
4977
- Vo as default
5012
+ Jo as default
4978
5013
  };