@everymatrix/casino-random-game 1.55.0 → 1.56.0

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,16 +1,16 @@
1
- var Jr = Object.defineProperty, Zr = Object.defineProperties;
2
- var Qr = Object.getOwnPropertyDescriptors;
3
- var bt = Object.getOwnPropertySymbols;
4
- var Yr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
5
- var Ge = (e, t, r) => t in e ? Jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gt = (e, t) => {
1
+ var Vr = Object.defineProperty, Wr = Object.defineProperties;
2
+ var Xr = Object.getOwnPropertyDescriptors;
3
+ var mt = Object.getOwnPropertySymbols;
4
+ var zr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable;
5
+ var Ge = (e, t, r) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- Yr.call(t, r) && Ge(e, r, t[r]);
8
- if (bt)
9
- for (var r of bt(t))
10
- qr.call(t, r) && Ge(e, r, t[r]);
7
+ zr.call(t, r) && Ge(e, r, t[r]);
8
+ if (mt)
9
+ for (var r of mt(t))
10
+ Jr.call(t, r) && Ge(e, r, t[r]);
11
11
  return e;
12
- }, yt = (e, t) => Zr(e, Qr(t));
13
- var M = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
12
+ }, pt = (e, t) => Wr(e, Xr(t));
13
+ var N = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var ye = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
@@ -27,59 +27,59 @@ var ye = (e, t, r) => new Promise((n, i) => {
27
27
  }, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
28
28
  s((r = r.apply(e, t)).next());
29
29
  });
30
- function N() {
30
+ function C() {
31
31
  }
32
- function Kr(e, t) {
32
+ function Zr(e, t) {
33
33
  for (const r in t) e[r] = t[r];
34
34
  return (
35
35
  /** @type {T & S} */
36
36
  e
37
37
  );
38
38
  }
39
- function Qt(e) {
39
+ function zt(e) {
40
40
  return e();
41
41
  }
42
- function vt() {
42
+ function bt() {
43
43
  return /* @__PURE__ */ Object.create(null);
44
44
  }
45
45
  function J(e) {
46
- e.forEach(Qt);
46
+ e.forEach(zt);
47
47
  }
48
- function ut(e) {
48
+ function st(e) {
49
49
  return typeof e == "function";
50
50
  }
51
- function Yt(e, t) {
51
+ function Jt(e, t) {
52
52
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
53
53
  }
54
54
  let ve;
55
- function _t(e, t) {
55
+ function gt(e, t) {
56
56
  return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
57
57
  }
58
- function en(e) {
58
+ function Qr(e) {
59
59
  return Object.keys(e).length === 0;
60
60
  }
61
- function qt(e, ...t) {
61
+ function Zt(e, ...t) {
62
62
  if (e == null) {
63
63
  for (const n of t)
64
64
  n(void 0);
65
- return N;
65
+ return C;
66
66
  }
67
67
  const r = e.subscribe(...t);
68
68
  return r.unsubscribe ? () => r.unsubscribe() : r;
69
69
  }
70
- function tn(e, t, r) {
71
- e.$$.on_destroy.push(qt(t, r));
70
+ function Yr(e, t, r) {
71
+ e.$$.on_destroy.push(Zt(t, r));
72
72
  }
73
- function rn(e, t, r, n) {
73
+ function qr(e, t, r, n) {
74
74
  if (e) {
75
- const i = Kt(e, t, r, n);
75
+ const i = Qt(e, t, r, n);
76
76
  return e[0](i);
77
77
  }
78
78
  }
79
- function Kt(e, t, r, n) {
80
- return e[1] && n ? Kr(r.ctx.slice(), e[1](n(t))) : r.ctx;
79
+ function Qt(e, t, r, n) {
80
+ return e[1] && n ? Zr(r.ctx.slice(), e[1](n(t))) : r.ctx;
81
81
  }
82
- function nn(e, t, r, n) {
82
+ function Kr(e, t, r, n) {
83
83
  if (e[2] && n) {
84
84
  const i = e[2](n(r));
85
85
  if (t.dirty === void 0)
@@ -94,13 +94,13 @@ function nn(e, t, r, n) {
94
94
  }
95
95
  return t.dirty;
96
96
  }
97
- function on(e, t, r, n, i, o) {
97
+ function en(e, t, r, n, i, o) {
98
98
  if (i) {
99
- const a = Kt(t, r, n, o);
99
+ const a = Qt(t, r, n, o);
100
100
  e.p(a, i);
101
101
  }
102
102
  }
103
- function an(e) {
103
+ function tn(e) {
104
104
  if (e.ctx.length > 32) {
105
105
  const t = [], r = e.ctx.length / 32;
106
106
  for (let n = 0; n < r; n++)
@@ -112,14 +112,14 @@ function an(e) {
112
112
  function x(e, t) {
113
113
  e.appendChild(t);
114
114
  }
115
- function sn(e, t, r) {
116
- const n = un(e);
115
+ function rn(e, t, r) {
116
+ const n = nn(e);
117
117
  if (!n.getElementById(t)) {
118
118
  const i = S("style");
119
- i.id = t, i.textContent = r, ln(n, i);
119
+ i.id = t, i.textContent = r, on(n, i);
120
120
  }
121
121
  }
122
- function un(e) {
122
+ function nn(e) {
123
123
  if (!e) return document;
124
124
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
125
125
  return t && /** @type {ShadowRoot} */
@@ -128,27 +128,27 @@ function un(e) {
128
128
  t
129
129
  ) : e.ownerDocument;
130
130
  }
131
- function ln(e, t) {
131
+ function on(e, t) {
132
132
  return x(
133
133
  /** @type {Document} */
134
134
  e.head || e,
135
135
  t
136
136
  ), t.sheet;
137
137
  }
138
- function O(e, t, r) {
138
+ function I(e, t, r) {
139
139
  e.insertBefore(t, r || null);
140
140
  }
141
141
  function R(e) {
142
142
  e.parentNode && e.parentNode.removeChild(e);
143
143
  }
144
- function hn(e, t) {
144
+ function an(e, t) {
145
145
  for (let r = 0; r < e.length; r += 1)
146
146
  e[r] && e[r].d(t);
147
147
  }
148
148
  function S(e) {
149
149
  return document.createElement(e);
150
150
  }
151
- function xt(e) {
151
+ function yt(e) {
152
152
  return document.createElementNS("http://www.w3.org/2000/svg", e);
153
153
  }
154
154
  function k(e) {
@@ -163,14 +163,14 @@ function Be(e, t, r, n) {
163
163
  function g(e, t, r) {
164
164
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
165
165
  }
166
- function cn(e) {
166
+ function sn(e) {
167
167
  return Array.from(e.childNodes);
168
168
  }
169
169
  function z(e, t) {
170
170
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
171
171
  t);
172
172
  }
173
- function fn(e) {
173
+ function un(e) {
174
174
  const t = {};
175
175
  return e.childNodes.forEach(
176
176
  /** @param {Element} node */
@@ -183,29 +183,29 @@ let me;
183
183
  function ce(e) {
184
184
  me = e;
185
185
  }
186
- function mn() {
186
+ function ln() {
187
187
  if (!me) throw new Error("Function called outside component initialization");
188
188
  return me;
189
189
  }
190
- function dn(e) {
191
- mn().$$.on_mount.push(e);
190
+ function hn(e) {
191
+ ln().$$.on_mount.push(e);
192
192
  }
193
193
  const K = [], Ae = [];
194
194
  let ee = [];
195
- const Et = [], er = /* @__PURE__ */ Promise.resolve();
196
- let Xe = !1;
197
- function tr() {
198
- Xe || (Xe = !0, er.then(I));
195
+ const vt = [], Yt = /* @__PURE__ */ Promise.resolve();
196
+ let We = !1;
197
+ function qt() {
198
+ We || (We = !0, Yt.then(O));
199
199
  }
200
- function pn() {
201
- return tr(), er;
200
+ function cn() {
201
+ return qt(), Yt;
202
202
  }
203
- function ze(e) {
203
+ function Xe(e) {
204
204
  ee.push(e);
205
205
  }
206
206
  const Ue = /* @__PURE__ */ new Set();
207
207
  let Y = 0;
208
- function I() {
208
+ function O() {
209
209
  if (Y !== 0)
210
210
  return;
211
211
  const e = me;
@@ -213,7 +213,7 @@ function I() {
213
213
  try {
214
214
  for (; Y < K.length; ) {
215
215
  const t = K[Y];
216
- Y++, ce(t), bn(t.$$);
216
+ Y++, ce(t), fn(t.$$);
217
217
  }
218
218
  } catch (t) {
219
219
  throw K.length = 0, Y = 0, t;
@@ -225,24 +225,24 @@ function I() {
225
225
  }
226
226
  ee.length = 0;
227
227
  } while (K.length);
228
- for (; Et.length; )
229
- Et.pop()();
230
- Xe = !1, Ue.clear(), ce(e);
228
+ for (; vt.length; )
229
+ vt.pop()();
230
+ We = !1, Ue.clear(), ce(e);
231
231
  }
232
- function bn(e) {
232
+ function fn(e) {
233
233
  if (e.fragment !== null) {
234
234
  e.update(), J(e.before_update);
235
235
  const t = e.dirty;
236
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ze);
236
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
237
237
  }
238
238
  }
239
- function gn(e) {
239
+ function mn(e) {
240
240
  const t = [], r = [];
241
241
  ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
242
242
  }
243
243
  const Ee = /* @__PURE__ */ new Set();
244
244
  let X;
245
- function yn() {
245
+ function dn() {
246
246
  X = {
247
247
  r: 0,
248
248
  c: [],
@@ -250,13 +250,13 @@ function yn() {
250
250
  // parent group
251
251
  };
252
252
  }
253
- function vn() {
253
+ function pn() {
254
254
  X.r || J(X.c), X = X.p;
255
255
  }
256
256
  function fe(e, t) {
257
257
  e && e.i && (Ee.delete(e), e.i(t));
258
258
  }
259
- function Je(e, t, r, n) {
259
+ function ze(e, t, r, n) {
260
260
  if (e && e.o) {
261
261
  if (Ee.has(e)) return;
262
262
  Ee.add(e), X.c.push(() => {
@@ -264,24 +264,24 @@ function Je(e, t, r, n) {
264
264
  }), e.o(t);
265
265
  } else n && n();
266
266
  }
267
- function wt(e) {
267
+ function _t(e) {
268
268
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
269
269
  }
270
- function _n(e, t, r) {
270
+ function bn(e, t, r) {
271
271
  const { fragment: n, after_update: i } = e.$$;
272
- n && n.m(t, r), ze(() => {
273
- const o = e.$$.on_mount.map(Qt).filter(ut);
272
+ n && n.m(t, r), Xe(() => {
273
+ const o = e.$$.on_mount.map(zt).filter(st);
274
274
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
275
- }), i.forEach(ze);
275
+ }), i.forEach(Xe);
276
276
  }
277
- function xn(e, t) {
277
+ function gn(e, t) {
278
278
  const r = e.$$;
279
- r.fragment !== null && (gn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
279
+ r.fragment !== null && (mn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
280
280
  }
281
- function En(e, t) {
282
- e.$$.dirty[0] === -1 && (K.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
281
+ function yn(e, t) {
282
+ e.$$.dirty[0] === -1 && (K.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
283
283
  }
284
- function wn(e, t, r, n, i, o, a = null, s = [-1]) {
284
+ function vn(e, t, r, n, i, o, a = null, s = [-1]) {
285
285
  const h = me;
286
286
  ce(e);
287
287
  const l = e.$$ = {
@@ -289,9 +289,9 @@ function wn(e, t, r, n, i, o, a = null, s = [-1]) {
289
289
  ctx: [],
290
290
  // state
291
291
  props: o,
292
- update: N,
292
+ update: C,
293
293
  not_equal: i,
294
- bound: vt(),
294
+ bound: bt(),
295
295
  // lifecycle
296
296
  on_mount: [],
297
297
  on_destroy: [],
@@ -300,7 +300,7 @@ function wn(e, t, r, n, i, o, a = null, s = [-1]) {
300
300
  after_update: [],
301
301
  context: new Map(t.context || (h ? h.$$.context : [])),
302
302
  // everything else
303
- callbacks: vt(),
303
+ callbacks: bt(),
304
304
  dirty: s,
305
305
  skip_bound: !1,
306
306
  root: t.target || h.$$.root
@@ -309,39 +309,39 @@ function wn(e, t, r, n, i, o, a = null, s = [-1]) {
309
309
  let u = !1;
310
310
  if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
311
311
  const d = m.length ? m[0] : c;
312
- return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && En(e, f)), c;
312
+ return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && yn(e, f)), c;
313
313
  }) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
314
314
  if (t.hydrate) {
315
- const f = cn(t.target);
315
+ const f = sn(t.target);
316
316
  l.fragment && l.fragment.l(f), f.forEach(R);
317
317
  } else
318
318
  l.fragment && l.fragment.c();
319
- t.intro && fe(e.$$.fragment), _n(e, t.target, t.anchor), I();
319
+ t.intro && fe(e.$$.fragment), bn(e, t.target, t.anchor), O();
320
320
  }
321
321
  ce(h);
322
322
  }
323
- let rr;
324
- typeof HTMLElement == "function" && (rr = class extends HTMLElement {
323
+ let Kt;
324
+ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
325
325
  constructor(t, r, n) {
326
326
  super();
327
327
  /** The Svelte component constructor */
328
- M(this, "$$ctor");
328
+ N(this, "$$ctor");
329
329
  /** Slots */
330
- M(this, "$$s");
330
+ N(this, "$$s");
331
331
  /** The Svelte component instance */
332
- M(this, "$$c");
332
+ N(this, "$$c");
333
333
  /** Whether or not the custom element is connected */
334
- M(this, "$$cn", !1);
334
+ N(this, "$$cn", !1);
335
335
  /** Component props data */
336
- M(this, "$$d", {});
336
+ N(this, "$$d", {});
337
337
  /** `true` if currently in the process of reflecting component props back to attributes */
338
- M(this, "$$r", !1);
338
+ N(this, "$$r", !1);
339
339
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
340
- M(this, "$$p_d", {});
340
+ N(this, "$$p_d", {});
341
341
  /** @type {Record<string, Function[]>} Event listeners */
342
- M(this, "$$l", {});
342
+ N(this, "$$l", {});
343
343
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
344
- M(this, "$$l_u", /* @__PURE__ */ new Map());
344
+ N(this, "$$l_u", /* @__PURE__ */ new Map());
345
345
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
346
346
  }
347
347
  addEventListener(t, r, n) {
@@ -372,7 +372,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
372
372
  * @param {HTMLElement} [anchor]
373
373
  */
374
374
  m: function(l, u) {
375
- O(l, a, u);
375
+ I(l, a, u);
376
376
  },
377
377
  d: function(l) {
378
378
  l && R(a);
@@ -382,7 +382,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
382
382
  };
383
383
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
384
384
  return;
385
- const r = {}, n = fn(this);
385
+ const r = {}, n = un(this);
386
386
  for (const o of this.$$s)
387
387
  o in n && (r[o] = [t(o)]);
388
388
  for (const o of this.attributes) {
@@ -393,7 +393,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
393
393
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
394
394
  this.$$c = new this.$$ctor({
395
395
  target: this.shadowRoot || this,
396
- props: yt(gt({}, this.$$d), {
396
+ props: pt(dt({}, this.$$d), {
397
397
  $$slots: r,
398
398
  $$scope: {
399
399
  ctx: []
@@ -471,8 +471,8 @@ function we(e, t, r, n) {
471
471
  return t;
472
472
  }
473
473
  }
474
- function Sn(e, t, r, n, i, o) {
475
- let a = class extends rr {
474
+ function _n(e, t, r, n, i, o) {
475
+ let a = class extends Kt {
476
476
  constructor() {
477
477
  super(e, r, i), this.$$p_d = t;
478
478
  }
@@ -502,7 +502,7 @@ function Sn(e, t, r, n, i, o) {
502
502
  }), e.element = /** @type {any} */
503
503
  a, a;
504
504
  }
505
- class Tn {
505
+ class xn {
506
506
  constructor() {
507
507
  /**
508
508
  * ### PRIVATE API
@@ -511,7 +511,7 @@ class Tn {
511
511
  *
512
512
  * @type {any}
513
513
  */
514
- M(this, "$$");
514
+ N(this, "$$");
515
515
  /**
516
516
  * ### PRIVATE API
517
517
  *
@@ -519,11 +519,11 @@ class Tn {
519
519
  *
520
520
  * @type {any}
521
521
  */
522
- M(this, "$$set");
522
+ N(this, "$$set");
523
523
  }
524
524
  /** @returns {void} */
525
525
  $destroy() {
526
- xn(this, 1), this.$destroy = N;
526
+ gn(this, 1), this.$destroy = C;
527
527
  }
528
528
  /**
529
529
  * @template {Extract<keyof Events, string>} K
@@ -532,8 +532,8 @@ class Tn {
532
532
  * @returns {() => void}
533
533
  */
534
534
  $on(t, r) {
535
- if (!ut(r))
536
- return N;
535
+ if (!st(r))
536
+ return C;
537
537
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
538
538
  return n.push(r), () => {
539
539
  const i = n.indexOf(r);
@@ -545,22 +545,22 @@ class Tn {
545
545
  * @returns {void}
546
546
  */
547
547
  $set(t) {
548
- this.$$set && !en(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
548
+ this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
549
549
  }
550
550
  }
551
- const Hn = "4";
552
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hn);
553
- var Ze = function(e, t) {
554
- return Ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
551
+ const En = "4";
552
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(En);
553
+ var Je = function(e, t) {
554
+ return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
555
555
  r.__proto__ = n;
556
556
  } || function(r, n) {
557
557
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
558
- }, Ze(e, t);
558
+ }, Je(e, t);
559
559
  };
560
560
  function $(e, t) {
561
561
  if (typeof t != "function" && t !== null)
562
562
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
563
- Ze(e, t);
563
+ Je(e, t);
564
564
  function r() {
565
565
  this.constructor = e;
566
566
  }
@@ -575,7 +575,7 @@ var _ = function() {
575
575
  return t;
576
576
  }, _.apply(this, arguments);
577
577
  };
578
- function Bn(e, t) {
578
+ function wn(e, t) {
579
579
  var r = {};
580
580
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
581
581
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -583,7 +583,7 @@ function Bn(e, t) {
583
583
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
584
584
  return r;
585
585
  }
586
- function Qe(e) {
586
+ function Ze(e) {
587
587
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
588
588
  if (r) return r.call(e);
589
589
  if (e && typeof e.length == "number") return {
@@ -593,7 +593,7 @@ function Qe(e) {
593
593
  };
594
594
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
595
595
  }
596
- function Ye(e, t) {
596
+ function Qe(e, t) {
597
597
  var r = typeof Symbol == "function" && e[Symbol.iterator];
598
598
  if (!r) return e;
599
599
  var n = r.call(e), i, o = [], a;
@@ -618,13 +618,13 @@ function te(e, t, r) {
618
618
  function F(e) {
619
619
  return typeof e == "function";
620
620
  }
621
- function nr(e) {
621
+ function er(e) {
622
622
  var t = function(n) {
623
623
  Error.call(n), n.stack = new Error().stack;
624
624
  }, r = e(t);
625
625
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
626
626
  }
627
- var De = nr(function(e) {
627
+ var De = er(function(e) {
628
628
  return function(r) {
629
629
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
630
630
  ` + r.map(function(n, i) {
@@ -633,13 +633,13 @@ var De = nr(function(e) {
633
633
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
634
634
  };
635
635
  });
636
- function qe(e, t) {
636
+ function Ye(e, t) {
637
637
  if (e) {
638
638
  var r = e.indexOf(t);
639
639
  0 <= r && e.splice(r, 1);
640
640
  }
641
641
  }
642
- var Ie = function() {
642
+ var Oe = function() {
643
643
  function e(t) {
644
644
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
645
645
  }
@@ -651,7 +651,7 @@ var Ie = function() {
651
651
  if (a)
652
652
  if (this._parentage = null, Array.isArray(a))
653
653
  try {
654
- for (var s = Qe(a), h = s.next(); !h.done; h = s.next()) {
654
+ for (var s = Ze(a), h = s.next(); !h.done; h = s.next()) {
655
655
  var l = h.value;
656
656
  l.remove(this);
657
657
  }
@@ -677,12 +677,12 @@ var Ie = function() {
677
677
  if (f) {
678
678
  this._finalizers = null;
679
679
  try {
680
- for (var c = Qe(f), m = c.next(); !m.done; m = c.next()) {
680
+ for (var c = Ze(f), m = c.next(); !m.done; m = c.next()) {
681
681
  var d = m.value;
682
682
  try {
683
- St(d);
683
+ xt(d);
684
684
  } catch (p) {
685
- o = o != null ? o : [], p instanceof De ? o = te(te([], Ye(o)), Ye(p.errors)) : o.push(p);
685
+ o = o != null ? o : [], p instanceof De ? o = te(te([], Qe(o)), Qe(p.errors)) : o.push(p);
686
686
  }
687
687
  }
688
688
  } catch (p) {
@@ -702,7 +702,7 @@ var Ie = function() {
702
702
  var r;
703
703
  if (t && t !== this)
704
704
  if (this.closed)
705
- St(t);
705
+ xt(t);
706
706
  else {
707
707
  if (t instanceof e) {
708
708
  if (t.closed || t._hasParent(this))
@@ -719,56 +719,52 @@ var Ie = function() {
719
719
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
720
720
  }, e.prototype._removeParent = function(t) {
721
721
  var r = this._parentage;
722
- r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
722
+ r === t ? this._parentage = null : Array.isArray(r) && Ye(r, t);
723
723
  }, e.prototype.remove = function(t) {
724
724
  var r = this._finalizers;
725
- r && qe(r, t), t instanceof e && t._removeParent(this);
725
+ r && Ye(r, t), t instanceof e && t._removeParent(this);
726
726
  }, e.EMPTY = function() {
727
727
  var t = new e();
728
728
  return t.closed = !0, t;
729
729
  }(), e;
730
- }(), ir = Ie.EMPTY;
731
- function or(e) {
732
- return e instanceof Ie || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
730
+ }(), tr = Oe.EMPTY;
731
+ function rr(e) {
732
+ return e instanceof Oe || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
733
733
  }
734
- function St(e) {
734
+ function xt(e) {
735
735
  F(e) ? e() : e.unsubscribe();
736
736
  }
737
- var ar = {
738
- onUnhandledError: null,
739
- onStoppedNotification: null,
740
- Promise: void 0,
741
- useDeprecatedSynchronousErrorHandling: !1,
742
- useDeprecatedNextContext: !1
743
- }, An = {
737
+ var Sn = {
738
+ Promise: void 0
739
+ }, Tn = {
744
740
  setTimeout: function(e, t) {
745
741
  for (var r = [], n = 2; n < arguments.length; n++)
746
742
  r[n - 2] = arguments[n];
747
- return setTimeout.apply(void 0, te([e, t], Ye(r)));
743
+ return setTimeout.apply(void 0, te([e, t], Qe(r)));
748
744
  },
749
745
  clearTimeout: function(e) {
750
746
  return clearTimeout(e);
751
747
  },
752
748
  delegate: void 0
753
749
  };
754
- function Pn(e) {
755
- An.setTimeout(function() {
750
+ function Hn(e) {
751
+ Tn.setTimeout(function() {
756
752
  throw e;
757
753
  });
758
754
  }
759
- function Tt() {
755
+ function Et() {
760
756
  }
761
757
  function Se(e) {
762
758
  e();
763
759
  }
764
- var sr = function(e) {
760
+ var nr = function(e) {
765
761
  $(t, e);
766
762
  function t(r) {
767
763
  var n = e.call(this) || this;
768
- return n.isStopped = !1, r ? (n.destination = r, or(r) && r.add(n)) : n.destination = Mn, n;
764
+ return n.isStopped = !1, r ? (n.destination = r, rr(r) && r.add(n)) : n.destination = Pn, n;
769
765
  }
770
766
  return t.create = function(r, n, i) {
771
- return new Ke(r, n, i);
767
+ return new qe(r, n, i);
772
768
  }, t.prototype.next = function(r) {
773
769
  this.isStopped || this._next(r);
774
770
  }, t.prototype.error = function(r) {
@@ -792,11 +788,7 @@ var sr = function(e) {
792
788
  this.unsubscribe();
793
789
  }
794
790
  }, t;
795
- }(Ie), Rn = Function.prototype.bind;
796
- function Fe(e, t) {
797
- return Rn.call(e, t);
798
- }
799
- var In = function() {
791
+ }(Oe), Bn = function() {
800
792
  function e(t) {
801
793
  this.partialObserver = t;
802
794
  }
@@ -827,55 +819,43 @@ var In = function() {
827
819
  _e(r);
828
820
  }
829
821
  }, e;
830
- }(), Ke = function(e) {
822
+ }(), qe = function(e) {
831
823
  $(t, e);
832
824
  function t(r, n, i) {
833
825
  var o = e.call(this) || this, a;
834
- if (F(r) || !r)
835
- a = {
836
- next: r != null ? r : void 0,
837
- error: n != null ? n : void 0,
838
- complete: i != null ? i : void 0
839
- };
840
- else {
841
- var s;
842
- o && ar.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
843
- return o.unsubscribe();
844
- }, a = {
845
- next: r.next && Fe(r.next, s),
846
- error: r.error && Fe(r.error, s),
847
- complete: r.complete && Fe(r.complete, s)
848
- }) : a = r;
849
- }
850
- return o.destination = new In(a), o;
826
+ return F(r) || !r ? a = {
827
+ next: r != null ? r : void 0,
828
+ error: n != null ? n : void 0,
829
+ complete: i != null ? i : void 0
830
+ } : a = r, o.destination = new Bn(a), o;
851
831
  }
852
832
  return t;
853
- }(sr);
833
+ }(nr);
854
834
  function _e(e) {
855
- Pn(e);
835
+ Hn(e);
856
836
  }
857
- function On(e) {
837
+ function An(e) {
858
838
  throw e;
859
839
  }
860
- var Mn = {
840
+ var Pn = {
861
841
  closed: !0,
862
- next: Tt,
863
- error: On,
864
- complete: Tt
865
- }, Ln = function() {
842
+ next: Et,
843
+ error: An,
844
+ complete: Et
845
+ }, Rn = function() {
866
846
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
867
847
  }();
868
- function Cn(e) {
848
+ function On(e) {
869
849
  return e;
870
850
  }
871
- function Nn(e) {
872
- return e.length === 0 ? Cn : e.length === 1 ? e[0] : function(r) {
851
+ function In(e) {
852
+ return e.length === 0 ? On : e.length === 1 ? e[0] : function(r) {
873
853
  return e.reduce(function(n, i) {
874
854
  return i(n);
875
855
  }, r);
876
856
  };
877
857
  }
878
- var Ht = function() {
858
+ var wt = function() {
879
859
  function e(t) {
880
860
  t && (this._subscribe = t);
881
861
  }
@@ -883,7 +863,7 @@ var Ht = function() {
883
863
  var r = new e();
884
864
  return r.source = this, r.operator = t, r;
885
865
  }, e.prototype.subscribe = function(t, r, n) {
886
- var i = this, o = Un(t) ? t : new Ke(t, r, n);
866
+ var i = this, o = Ln(t) ? t : new qe(t, r, n);
887
867
  return Se(function() {
888
868
  var a = i, s = a.operator, h = a.source;
889
869
  o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -896,8 +876,8 @@ var Ht = function() {
896
876
  }
897
877
  }, e.prototype.forEach = function(t, r) {
898
878
  var n = this;
899
- return r = Bt(r), new r(function(i, o) {
900
- var a = new Ke({
879
+ return r = St(r), new r(function(i, o) {
880
+ var a = new qe({
901
881
  next: function(s) {
902
882
  try {
903
883
  t(s);
@@ -913,15 +893,15 @@ var Ht = function() {
913
893
  }, e.prototype._subscribe = function(t) {
914
894
  var r;
915
895
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
916
- }, e.prototype[Ln] = function() {
896
+ }, e.prototype[Rn] = function() {
917
897
  return this;
918
898
  }, e.prototype.pipe = function() {
919
899
  for (var t = [], r = 0; r < arguments.length; r++)
920
900
  t[r] = arguments[r];
921
- return Nn(t)(this);
901
+ return In(t)(this);
922
902
  }, e.prototype.toPromise = function(t) {
923
903
  var r = this;
924
- return t = Bt(t), new t(function(n, i) {
904
+ return t = St(t), new t(function(n, i) {
925
905
  var o;
926
906
  r.subscribe(function(a) {
927
907
  return o = a;
@@ -935,32 +915,32 @@ var Ht = function() {
935
915
  return new e(t);
936
916
  }, e;
937
917
  }();
938
- function Bt(e) {
918
+ function St(e) {
939
919
  var t;
940
- return (t = e != null ? e : ar.Promise) !== null && t !== void 0 ? t : Promise;
920
+ return (t = e != null ? e : Sn.Promise) !== null && t !== void 0 ? t : Promise;
941
921
  }
942
- function Gn(e) {
922
+ function Nn(e) {
943
923
  return e && F(e.next) && F(e.error) && F(e.complete);
944
924
  }
945
- function Un(e) {
946
- return e && e instanceof sr || Gn(e) && or(e);
925
+ function Ln(e) {
926
+ return e && e instanceof nr || Nn(e) && rr(e);
947
927
  }
948
- var Dn = nr(function(e) {
928
+ var Mn = er(function(e) {
949
929
  return function() {
950
930
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
951
931
  };
952
- }), ur = function(e) {
932
+ }), ir = function(e) {
953
933
  $(t, e);
954
934
  function t() {
955
935
  var r = e.call(this) || this;
956
936
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
957
937
  }
958
938
  return t.prototype.lift = function(r) {
959
- var n = new At(this, this);
939
+ var n = new Tt(this, this);
960
940
  return n.operator = r, n;
961
941
  }, t.prototype._throwIfClosed = function() {
962
942
  if (this.closed)
963
- throw new Dn();
943
+ throw new Mn();
964
944
  }, t.prototype.next = function(r) {
965
945
  var n = this;
966
946
  Se(function() {
@@ -968,7 +948,7 @@ var Dn = nr(function(e) {
968
948
  if (n._throwIfClosed(), !n.isStopped) {
969
949
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
970
950
  try {
971
- for (var a = Qe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
951
+ for (var a = Ze(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
972
952
  var h = s.value;
973
953
  h.next(r);
974
954
  }
@@ -1016,19 +996,19 @@ var Dn = nr(function(e) {
1016
996
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1017
997
  }, t.prototype._innerSubscribe = function(r) {
1018
998
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1019
- return o || a ? ir : (this.currentObservers = null, s.push(r), new Ie(function() {
1020
- n.currentObservers = null, qe(s, r);
999
+ return o || a ? tr : (this.currentObservers = null, s.push(r), new Oe(function() {
1000
+ n.currentObservers = null, Ye(s, r);
1021
1001
  }));
1022
1002
  }, t.prototype._checkFinalizedStatuses = function(r) {
1023
1003
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1024
1004
  i ? r.error(o) : a && r.complete();
1025
1005
  }, t.prototype.asObservable = function() {
1026
- var r = new Ht();
1006
+ var r = new wt();
1027
1007
  return r.source = this, r;
1028
1008
  }, t.create = function(r, n) {
1029
- return new At(r, n);
1009
+ return new Tt(r, n);
1030
1010
  }, t;
1031
- }(Ht), At = function(e) {
1011
+ }(wt), Tt = function(e) {
1032
1012
  $(t, e);
1033
1013
  function t(r, n) {
1034
1014
  var i = e.call(this) || this;
@@ -1045,17 +1025,17 @@ var Dn = nr(function(e) {
1045
1025
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1046
1026
  }, t.prototype._subscribe = function(r) {
1047
1027
  var n, i;
1048
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ir;
1028
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : tr;
1049
1029
  }, t;
1050
- }(ur), lr = {
1030
+ }(ir), or = {
1051
1031
  now: function() {
1052
- return (lr.delegate || Date).now();
1032
+ return (or.delegate || Date).now();
1053
1033
  },
1054
1034
  delegate: void 0
1055
- }, Fn = function(e) {
1035
+ }, Cn = function(e) {
1056
1036
  $(t, e);
1057
1037
  function t(r, n, i) {
1058
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = lr);
1038
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = or);
1059
1039
  var o = e.call(this) || this;
1060
1040
  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;
1061
1041
  }
@@ -1075,24 +1055,24 @@ var Dn = nr(function(e) {
1075
1055
  l && o.splice(0, l + 1);
1076
1056
  }
1077
1057
  }, t;
1078
- }(ur);
1079
- const Pt = [], Rt = {}, $n = (e, t = 0) => {
1080
- if (Pt.indexOf(e) == -1) {
1081
- const r = new Fn(t);
1082
- Rt[e] = r, Pt.push(e);
1058
+ }(ir);
1059
+ const Ht = [], Bt = {}, Gn = (e, t = 0) => {
1060
+ if (Ht.indexOf(e) == -1) {
1061
+ const r = new Cn(t);
1062
+ Bt[e] = r, Ht.push(e);
1083
1063
  }
1084
- return Rt[e];
1064
+ return Bt[e];
1085
1065
  }, q = [];
1086
- function jn(e, t) {
1066
+ function Un(e, t) {
1087
1067
  return {
1088
- subscribe: Oe(e, t).subscribe
1068
+ subscribe: Ie(e, t).subscribe
1089
1069
  };
1090
1070
  }
1091
- function Oe(e, t = N) {
1071
+ function Ie(e, t = C) {
1092
1072
  let r;
1093
1073
  const n = /* @__PURE__ */ new Set();
1094
1074
  function i(s) {
1095
- if (Yt(e, s) && (e = s, r)) {
1075
+ if (Jt(e, s) && (e = s, r)) {
1096
1076
  const h = !q.length;
1097
1077
  for (const l of n)
1098
1078
  l[1](), q.push(l, e);
@@ -1106,9 +1086,9 @@ function Oe(e, t = N) {
1106
1086
  function o(s) {
1107
1087
  i(s(e));
1108
1088
  }
1109
- function a(s, h = N) {
1089
+ function a(s, h = C) {
1110
1090
  const l = [s, h];
1111
- return n.add(l), n.size === 1 && (r = t(i, o) || N), s(e), () => {
1091
+ return n.add(l), n.size === 1 && (r = t(i, o) || C), s(e), () => {
1112
1092
  n.delete(l), n.size === 0 && r && (r(), r = null);
1113
1093
  };
1114
1094
  }
@@ -1119,18 +1099,18 @@ function ae(e, t, r) {
1119
1099
  if (!i.every(Boolean))
1120
1100
  throw new Error("derived() expects stores as input, got a falsy value");
1121
1101
  const o = t.length < 2;
1122
- return jn(r, (a, s) => {
1102
+ return Un(r, (a, s) => {
1123
1103
  let h = !1;
1124
1104
  const l = [];
1125
- let u = 0, f = N;
1105
+ let u = 0, f = C;
1126
1106
  const c = () => {
1127
1107
  if (u)
1128
1108
  return;
1129
1109
  f();
1130
1110
  const d = t(n ? l[0] : l, a, s);
1131
- o ? a(d) : f = ut(d) ? d : N;
1111
+ o ? a(d) : f = st(d) ? d : C;
1132
1112
  }, m = i.map(
1133
- (d, p) => qt(
1113
+ (d, p) => Zt(
1134
1114
  d,
1135
1115
  (A) => {
1136
1116
  l[p] = A, u &= ~(1 << p), h && c();
@@ -1145,70 +1125,70 @@ function ae(e, t, r) {
1145
1125
  };
1146
1126
  });
1147
1127
  }
1148
- function kn(e) {
1128
+ function Dn(e) {
1149
1129
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1150
1130
  }
1151
- var Vn = function(t) {
1152
- return Wn(t) && !Xn(t);
1131
+ var Fn = function(t) {
1132
+ return $n(t) && !jn(t);
1153
1133
  };
1154
- function Wn(e) {
1134
+ function $n(e) {
1155
1135
  return !!e && typeof e == "object";
1156
1136
  }
1157
- function Xn(e) {
1137
+ function jn(e) {
1158
1138
  var t = Object.prototype.toString.call(e);
1159
- return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
1139
+ return t === "[object RegExp]" || t === "[object Date]" || Wn(e);
1160
1140
  }
1161
- var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
1162
- function Zn(e) {
1163
- return e.$$typeof === Jn;
1141
+ var kn = typeof Symbol == "function" && Symbol.for, Vn = kn ? Symbol.for("react.element") : 60103;
1142
+ function Wn(e) {
1143
+ return e.$$typeof === Vn;
1164
1144
  }
1165
- function Qn(e) {
1145
+ function Xn(e) {
1166
1146
  return Array.isArray(e) ? [] : {};
1167
1147
  }
1168
1148
  function de(e, t) {
1169
- return t.clone !== !1 && t.isMergeableObject(e) ? re(Qn(e), e, t) : e;
1149
+ return t.clone !== !1 && t.isMergeableObject(e) ? re(Xn(e), e, t) : e;
1170
1150
  }
1171
- function Yn(e, t, r) {
1151
+ function zn(e, t, r) {
1172
1152
  return e.concat(t).map(function(n) {
1173
1153
  return de(n, r);
1174
1154
  });
1175
1155
  }
1176
- function qn(e, t) {
1156
+ function Jn(e, t) {
1177
1157
  if (!t.customMerge)
1178
1158
  return re;
1179
1159
  var r = t.customMerge(e);
1180
1160
  return typeof r == "function" ? r : re;
1181
1161
  }
1182
- function Kn(e) {
1162
+ function Zn(e) {
1183
1163
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1184
1164
  return Object.propertyIsEnumerable.call(e, t);
1185
1165
  }) : [];
1186
1166
  }
1187
- function It(e) {
1188
- return Object.keys(e).concat(Kn(e));
1167
+ function At(e) {
1168
+ return Object.keys(e).concat(Zn(e));
1189
1169
  }
1190
- function hr(e, t) {
1170
+ function ar(e, t) {
1191
1171
  try {
1192
1172
  return t in e;
1193
1173
  } catch (r) {
1194
1174
  return !1;
1195
1175
  }
1196
1176
  }
1197
- function ei(e, t) {
1198
- return hr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1177
+ function Qn(e, t) {
1178
+ return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1199
1179
  }
1200
- function ti(e, t, r) {
1180
+ function Yn(e, t, r) {
1201
1181
  var n = {};
1202
- return r.isMergeableObject(e) && It(e).forEach(function(i) {
1182
+ return r.isMergeableObject(e) && At(e).forEach(function(i) {
1203
1183
  n[i] = de(e[i], r);
1204
- }), It(t).forEach(function(i) {
1205
- ei(e, i) || (hr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
1184
+ }), At(t).forEach(function(i) {
1185
+ Qn(e, i) || (ar(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
1206
1186
  }), n;
1207
1187
  }
1208
1188
  function re(e, t, r) {
1209
- r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = de;
1189
+ r = r || {}, r.arrayMerge = r.arrayMerge || zn, r.isMergeableObject = r.isMergeableObject || Fn, r.cloneUnlessOtherwiseSpecified = de;
1210
1190
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1211
- return o ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : de(t, r);
1191
+ return o ? n ? r.arrayMerge(e, t, r) : Yn(e, t, r) : de(t, r);
1212
1192
  }
1213
1193
  re.all = function(t, r) {
1214
1194
  if (!Array.isArray(t))
@@ -1217,58 +1197,56 @@ re.all = function(t, r) {
1217
1197
  return re(n, i, r);
1218
1198
  }, {});
1219
1199
  };
1220
- var ri = re, ni = ri;
1221
- const ii = /* @__PURE__ */ kn(ni);
1222
- function $e(e, t) {
1223
- var r = t && t.cache ? t.cache : hi, n = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : ai;
1200
+ var qn = re, Kn = qn;
1201
+ const ei = /* @__PURE__ */ Dn(Kn);
1202
+ function Fe(e, t) {
1203
+ var r = t && t.cache ? t.cache : si, n = t && t.serializer ? t.serializer : oi, i = t && t.strategy ? t.strategy : ni;
1224
1204
  return i(e, {
1225
1205
  cache: r,
1226
1206
  serializer: n
1227
1207
  });
1228
1208
  }
1229
- function oi(e) {
1209
+ function ti(e) {
1230
1210
  return e == null || typeof e == "number" || typeof e == "boolean";
1231
1211
  }
1232
- function cr(e, t, r, n) {
1233
- var i = oi(n) ? n : r(n), o = t.get(i);
1212
+ function ri(e, t, r, n) {
1213
+ var i = ti(n) ? n : r(n), o = t.get(i);
1234
1214
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1235
1215
  }
1236
- function fr(e, t, r) {
1216
+ function sr(e, t, r) {
1237
1217
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1238
1218
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1239
1219
  }
1240
- function lt(e, t, r, n, i) {
1220
+ function ur(e, t, r, n, i) {
1241
1221
  return r.bind(t, e, n, i);
1242
1222
  }
1243
- function ai(e, t) {
1244
- var r = e.length === 1 ? cr : fr;
1245
- return lt(e, this, r, t.cache.create(), t.serializer);
1223
+ function ni(e, t) {
1224
+ var r = e.length === 1 ? ri : sr;
1225
+ return ur(e, this, r, t.cache.create(), t.serializer);
1246
1226
  }
1247
- function si(e, t) {
1248
- return lt(e, this, fr, t.cache.create(), t.serializer);
1227
+ function ii(e, t) {
1228
+ return ur(e, this, sr, t.cache.create(), t.serializer);
1249
1229
  }
1250
- function ui(e, t) {
1251
- return lt(e, this, cr, t.cache.create(), t.serializer);
1252
- }
1253
- var li = function() {
1230
+ var oi = function() {
1254
1231
  return JSON.stringify(arguments);
1255
- };
1256
- function ht() {
1257
- this.cache = /* @__PURE__ */ Object.create(null);
1258
- }
1259
- ht.prototype.get = function(e) {
1260
- return this.cache[e];
1261
- };
1262
- ht.prototype.set = function(e, t) {
1263
- this.cache[e] = t;
1264
- };
1265
- var hi = {
1232
+ }, ai = (
1233
+ /** @class */
1234
+ function() {
1235
+ function e() {
1236
+ this.cache = /* @__PURE__ */ Object.create(null);
1237
+ }
1238
+ return e.prototype.get = function(t) {
1239
+ return this.cache[t];
1240
+ }, e.prototype.set = function(t, r) {
1241
+ this.cache[t] = r;
1242
+ }, e;
1243
+ }()
1244
+ ), si = {
1266
1245
  create: function() {
1267
- return new ht();
1246
+ return new ai();
1268
1247
  }
1269
- }, je = {
1270
- variadic: si,
1271
- monadic: ui
1248
+ }, $e = {
1249
+ variadic: ii
1272
1250
  }, y;
1273
1251
  (function(e) {
1274
1252
  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";
@@ -1281,43 +1259,43 @@ var ne;
1281
1259
  (function(e) {
1282
1260
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1283
1261
  })(ne || (ne = {}));
1284
- function Ot(e) {
1262
+ function Pt(e) {
1285
1263
  return e.type === w.literal;
1286
1264
  }
1287
- function ci(e) {
1265
+ function ui(e) {
1288
1266
  return e.type === w.argument;
1289
1267
  }
1290
- function mr(e) {
1268
+ function lr(e) {
1291
1269
  return e.type === w.number;
1292
1270
  }
1293
- function dr(e) {
1271
+ function hr(e) {
1294
1272
  return e.type === w.date;
1295
1273
  }
1296
- function pr(e) {
1274
+ function cr(e) {
1297
1275
  return e.type === w.time;
1298
1276
  }
1299
- function br(e) {
1277
+ function fr(e) {
1300
1278
  return e.type === w.select;
1301
1279
  }
1302
- function gr(e) {
1280
+ function mr(e) {
1303
1281
  return e.type === w.plural;
1304
1282
  }
1305
- function fi(e) {
1283
+ function li(e) {
1306
1284
  return e.type === w.pound;
1307
1285
  }
1308
- function yr(e) {
1286
+ function dr(e) {
1309
1287
  return e.type === w.tag;
1310
1288
  }
1311
- function vr(e) {
1289
+ function pr(e) {
1312
1290
  return !!(e && typeof e == "object" && e.type === ne.number);
1313
1291
  }
1314
- function et(e) {
1292
+ function Ke(e) {
1315
1293
  return !!(e && typeof e == "object" && e.type === ne.dateTime);
1316
1294
  }
1317
- var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
1318
- function di(e) {
1295
+ var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hi = /(?:[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;
1296
+ function ci(e) {
1319
1297
  var t = {};
1320
- return e.replace(mi, function(r) {
1298
+ return e.replace(hi, function(r) {
1321
1299
  var n = r.length;
1322
1300
  switch (r[0]) {
1323
1301
  case "G":
@@ -1406,11 +1384,11 @@ function di(e) {
1406
1384
  return "";
1407
1385
  }), t;
1408
1386
  }
1409
- var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1410
- function bi(e) {
1387
+ var fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1388
+ function mi(e) {
1411
1389
  if (e.length === 0)
1412
1390
  throw new Error("Number skeleton cannot be empty");
1413
- for (var t = e.split(pi).filter(function(c) {
1391
+ for (var t = e.split(fi).filter(function(c) {
1414
1392
  return c.length > 0;
1415
1393
  }), r = [], n = 0, i = t; n < i.length; n++) {
1416
1394
  var o = i[n], a = o.split("/");
@@ -1425,17 +1403,17 @@ function bi(e) {
1425
1403
  }
1426
1404
  return r;
1427
1405
  }
1428
- function gi(e) {
1406
+ function di(e) {
1429
1407
  return e.replace(/^(.*?)-/, "");
1430
1408
  }
1431
- var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xr = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Er = /^(0+)$/;
1432
- function Lt(e) {
1409
+ var Rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, pi = /(\*)(0+)|(#+)(0+)|(0+)/g, yr = /^(0+)$/;
1410
+ function Ot(e) {
1433
1411
  var t = {};
1434
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xr, function(r, n, i) {
1412
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
1435
1413
  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)), "";
1436
1414
  }), t;
1437
1415
  }
1438
- function wr(e) {
1416
+ function vr(e) {
1439
1417
  switch (e) {
1440
1418
  case "sign-auto":
1441
1419
  return {
@@ -1475,7 +1453,7 @@ function wr(e) {
1475
1453
  };
1476
1454
  }
1477
1455
  }
1478
- function vi(e) {
1456
+ function bi(e) {
1479
1457
  var t;
1480
1458
  if (e[0] === "E" && e[1] === "E" ? (t = {
1481
1459
  notation: "engineering"
@@ -1483,17 +1461,17 @@ function vi(e) {
1483
1461
  notation: "scientific"
1484
1462
  }, e = e.slice(1)), t) {
1485
1463
  var r = e.slice(0, 2);
1486
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Er.test(e))
1464
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yr.test(e))
1487
1465
  throw new Error("Malformed concise eng/scientific notation");
1488
1466
  t.minimumIntegerDigits = e.length;
1489
1467
  }
1490
1468
  return t;
1491
1469
  }
1492
- function Ct(e) {
1493
- var t = {}, r = wr(e);
1470
+ function It(e) {
1471
+ var t = {}, r = vr(e);
1494
1472
  return r || t;
1495
1473
  }
1496
- function _i(e) {
1474
+ function gi(e) {
1497
1475
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1498
1476
  var i = n[r];
1499
1477
  switch (i.stem) {
@@ -1517,7 +1495,7 @@ function _i(e) {
1517
1495
  continue;
1518
1496
  case "measure-unit":
1519
1497
  case "unit":
1520
- t.style = "unit", t.unit = gi(i.options[0]);
1498
+ t.style = "unit", t.unit = di(i.options[0]);
1521
1499
  continue;
1522
1500
  case "compact-short":
1523
1501
  case "K":
@@ -1529,12 +1507,12 @@ function _i(e) {
1529
1507
  continue;
1530
1508
  case "scientific":
1531
1509
  t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1532
- return _(_({}, h), Ct(l));
1510
+ return _(_({}, h), It(l));
1533
1511
  }, {}));
1534
1512
  continue;
1535
1513
  case "engineering":
1536
1514
  t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1537
- return _(_({}, h), Ct(l));
1515
+ return _(_({}, h), It(l));
1538
1516
  }, {}));
1539
1517
  continue;
1540
1518
  case "notation-simple":
@@ -1579,7 +1557,7 @@ function _i(e) {
1579
1557
  case "integer-width":
1580
1558
  if (i.options.length > 1)
1581
1559
  throw new RangeError("integer-width stems only accept a single optional option");
1582
- i.options[0].replace(yi, function(h, l, u, f, c, m) {
1560
+ i.options[0].replace(pi, function(h, l, u, f, c, m) {
1583
1561
  if (l)
1584
1562
  t.minimumIntegerDigits = u.length;
1585
1563
  else {
@@ -1592,27 +1570,27 @@ function _i(e) {
1592
1570
  });
1593
1571
  continue;
1594
1572
  }
1595
- if (Er.test(i.stem)) {
1573
+ if (yr.test(i.stem)) {
1596
1574
  t.minimumIntegerDigits = i.stem.length;
1597
1575
  continue;
1598
1576
  }
1599
- if (Mt.test(i.stem)) {
1577
+ if (Rt.test(i.stem)) {
1600
1578
  if (i.options.length > 1)
1601
1579
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1602
- i.stem.replace(Mt, function(h, l, u, f, c, m) {
1580
+ i.stem.replace(Rt, function(h, l, u, f, c, m) {
1603
1581
  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), "";
1604
1582
  });
1605
1583
  var o = i.options[0];
1606
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Lt(o)));
1584
+ o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Ot(o)));
1607
1585
  continue;
1608
1586
  }
1609
- if (xr.test(i.stem)) {
1610
- t = _(_({}, t), Lt(i.stem));
1587
+ if (gr.test(i.stem)) {
1588
+ t = _(_({}, t), Ot(i.stem));
1611
1589
  continue;
1612
1590
  }
1613
- var a = wr(i.stem);
1591
+ var a = vr(i.stem);
1614
1592
  a && (t = _(_({}, t), a));
1615
- var s = vi(i.stem);
1593
+ var s = bi(i.stem);
1616
1594
  s && (t = _(_({}, t), s));
1617
1595
  }
1618
1596
  return t;
@@ -3032,13 +3010,13 @@ var xe = {
3032
3010
  "h"
3033
3011
  ]
3034
3012
  };
3035
- function xi(e, t) {
3013
+ function yi(e, t) {
3036
3014
  for (var r = "", n = 0; n < e.length; n++) {
3037
3015
  var i = e.charAt(n);
3038
3016
  if (i === "j") {
3039
3017
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3040
3018
  o++, n++;
3041
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Ei(t);
3019
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = vi(t);
3042
3020
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
3043
3021
  r += h;
3044
3022
  for (; a-- > 0; )
@@ -3047,7 +3025,7 @@ function xi(e, t) {
3047
3025
  }
3048
3026
  return r;
3049
3027
  }
3050
- function Ei(e) {
3028
+ function vi(e) {
3051
3029
  var t = e.hourCycle;
3052
3030
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3053
3031
  e.hourCycles && // @ts-ignore
@@ -3069,20 +3047,20 @@ function Ei(e) {
3069
3047
  var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
3070
3048
  return i[0];
3071
3049
  }
3072
- var ke, wi = new RegExp("^".concat(_r.source, "*")), Si = new RegExp("".concat(_r.source, "*$"));
3050
+ var je, _i = new RegExp("^".concat(br.source, "*")), xi = new RegExp("".concat(br.source, "*$"));
3073
3051
  function v(e, t) {
3074
3052
  return { start: e, end: t };
3075
3053
  }
3076
- var Ti = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Bi = !!Object.fromEntries, Ai = !!String.prototype.codePointAt, Pi = !!String.prototype.trimStart, Ri = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Oi = Ii ? Number.isSafeInteger : function(e) {
3054
+ var Ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Si = !!Object.fromEntries, Ti = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ai = !!Number.isSafeInteger, Pi = Ai ? Number.isSafeInteger : function(e) {
3077
3055
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3078
- }, tt = !0;
3056
+ }, et = !0;
3079
3057
  try {
3080
- var Mi = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3081
- tt = ((ke = Mi.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
3058
+ var Ri = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3059
+ et = ((je = Ri.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
3082
3060
  } catch (e) {
3083
- tt = !1;
3061
+ et = !1;
3084
3062
  }
3085
- var Nt = Ti ? (
3063
+ var Nt = Ei ? (
3086
3064
  // Native
3087
3065
  function(t, r, n) {
3088
3066
  return t.startsWith(r, n);
@@ -3092,7 +3070,7 @@ var Nt = Ti ? (
3092
3070
  function(t, r, n) {
3093
3071
  return t.slice(n, n + r.length) === r;
3094
3072
  }
3095
- ), rt = Hi ? String.fromCodePoint : (
3073
+ ), tt = wi ? String.fromCodePoint : (
3096
3074
  // IE11
3097
3075
  function() {
3098
3076
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3104,9 +3082,9 @@ var Nt = Ti ? (
3104
3082
  }
3105
3083
  return n;
3106
3084
  }
3107
- ), Gt = (
3085
+ ), Lt = (
3108
3086
  // native
3109
- Bi ? Object.fromEntries : (
3087
+ Si ? Object.fromEntries : (
3110
3088
  // Ponyfill
3111
3089
  function(t) {
3112
3090
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3116,7 +3094,7 @@ var Nt = Ti ? (
3116
3094
  return r;
3117
3095
  }
3118
3096
  )
3119
- ), Sr = Ai ? (
3097
+ ), _r = Ti ? (
3120
3098
  // Native
3121
3099
  function(t, r) {
3122
3100
  return t.codePointAt(r);
@@ -3130,7 +3108,7 @@ var Nt = Ti ? (
3130
3108
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3131
3109
  }
3132
3110
  }
3133
- ), Li = Pi ? (
3111
+ ), Oi = Hi ? (
3134
3112
  // Native
3135
3113
  function(t) {
3136
3114
  return t.trimStart();
@@ -3138,9 +3116,9 @@ var Nt = Ti ? (
3138
3116
  ) : (
3139
3117
  // Ponyfill
3140
3118
  function(t) {
3141
- return t.replace(wi, "");
3119
+ return t.replace(_i, "");
3142
3120
  }
3143
- ), Ci = Ri ? (
3121
+ ), Ii = Bi ? (
3144
3122
  // Native
3145
3123
  function(t) {
3146
3124
  return t.trimEnd();
@@ -3148,30 +3126,30 @@ var Nt = Ti ? (
3148
3126
  ) : (
3149
3127
  // Ponyfill
3150
3128
  function(t) {
3151
- return t.replace(Si, "");
3129
+ return t.replace(xi, "");
3152
3130
  }
3153
3131
  );
3154
- function Tr(e, t) {
3132
+ function xr(e, t) {
3155
3133
  return new RegExp(e, t);
3156
3134
  }
3157
- var nt;
3158
- if (tt) {
3159
- var Ut = Tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3160
- nt = function(t, r) {
3135
+ var rt;
3136
+ if (et) {
3137
+ var Mt = xr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3138
+ rt = function(t, r) {
3161
3139
  var n;
3162
- Ut.lastIndex = r;
3163
- var i = Ut.exec(t);
3140
+ Mt.lastIndex = r;
3141
+ var i = Mt.exec(t);
3164
3142
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3165
3143
  };
3166
3144
  } else
3167
- nt = function(t, r) {
3145
+ rt = function(t, r) {
3168
3146
  for (var n = []; ; ) {
3169
- var i = Sr(t, r);
3170
- if (i === void 0 || Hr(i) || Di(i))
3147
+ var i = _r(t, r);
3148
+ if (i === void 0 || Er(i) || Ci(i))
3171
3149
  break;
3172
3150
  n.push(i), r += i >= 65536 ? 2 : 1;
3173
3151
  }
3174
- return rt.apply(void 0, n);
3152
+ return tt.apply(void 0, n);
3175
3153
  };
3176
3154
  var Ni = (
3177
3155
  /** @class */
@@ -3204,7 +3182,7 @@ var Ni = (
3204
3182
  if (n)
3205
3183
  break;
3206
3184
  return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3207
- } else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
3185
+ } else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
3208
3186
  var a = this.parseTag(t, r);
3209
3187
  if (a.err)
3210
3188
  return a;
@@ -3237,7 +3215,7 @@ var Ni = (
3237
3215
  return o;
3238
3216
  var a = o.val, s = this.clonePosition();
3239
3217
  if (this.bumpIf("</")) {
3240
- if (this.isEOF() || !it(this.char()))
3218
+ if (this.isEOF() || !nt(this.char()))
3241
3219
  return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
3242
3220
  var h = this.clonePosition(), l = this.parseTagName();
3243
3221
  return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3255,7 +3233,7 @@ var Ni = (
3255
3233
  return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3256
3234
  }, e.prototype.parseTagName = function() {
3257
3235
  var t = this.offset();
3258
- for (this.bump(); !this.isEOF() && Ui(this.char()); )
3236
+ for (this.bump(); !this.isEOF() && Mi(this.char()); )
3259
3237
  this.bump();
3260
3238
  return this.message.slice(t, this.offset());
3261
3239
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3284,7 +3262,7 @@ var Ni = (
3284
3262
  };
3285
3263
  }, e.prototype.tryParseLeftAngleBracket = function() {
3286
3264
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3287
- !Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
3265
+ !Li(this.peek() || 0)) ? (this.bump(), "<") : null;
3288
3266
  }, e.prototype.tryParseQuote = function(t) {
3289
3267
  if (this.isEOF() || this.char() !== 39)
3290
3268
  return null;
@@ -3318,12 +3296,12 @@ var Ni = (
3318
3296
  r.push(n);
3319
3297
  this.bump();
3320
3298
  }
3321
- return rt.apply(void 0, r);
3299
+ return tt.apply(void 0, r);
3322
3300
  }, e.prototype.tryParseUnquoted = function(t, r) {
3323
3301
  if (this.isEOF())
3324
3302
  return null;
3325
3303
  var n = this.char();
3326
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
3304
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
3327
3305
  }, e.prototype.parseArgument = function(t, r) {
3328
3306
  var n = this.clonePosition();
3329
3307
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3352,7 +3330,7 @@ var Ni = (
3352
3330
  return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3353
3331
  }
3354
3332
  }, e.prototype.parseIdentifierIfPossible = function() {
3355
- var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
3333
+ var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
3356
3334
  this.bumpTo(i);
3357
3335
  var o = this.clonePosition(), a = v(t, o);
3358
3336
  return { value: n, location: a };
@@ -3371,7 +3349,7 @@ var Ni = (
3371
3349
  var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3372
3350
  if (f.err)
3373
3351
  return f;
3374
- var c = Ci(f.val);
3352
+ var c = Ii(f.val);
3375
3353
  if (c.length === 0)
3376
3354
  return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3377
3355
  var m = v(u, this.clonePosition());
@@ -3382,7 +3360,7 @@ var Ni = (
3382
3360
  return d;
3383
3361
  var p = v(i, this.clonePosition());
3384
3362
  if (l && Nt(l == null ? void 0 : l.style, "::", 0)) {
3385
- var A = Li(l.style.slice(2));
3363
+ var A = Oi(l.style.slice(2));
3386
3364
  if (s === "number") {
3387
3365
  var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
3388
3366
  return f.err ? f : {
@@ -3393,12 +3371,12 @@ var Ni = (
3393
3371
  if (A.length === 0)
3394
3372
  return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
3395
3373
  var H = A;
3396
- this.locale && (H = xi(A, this.locale));
3374
+ this.locale && (H = yi(A, this.locale));
3397
3375
  var c = {
3398
3376
  type: ne.dateTime,
3399
3377
  pattern: H,
3400
3378
  location: l.styleLocation,
3401
- parsedOptions: this.shouldParseSkeletons ? di(H) : {}
3379
+ parsedOptions: this.shouldParseSkeletons ? ci(H) : {}
3402
3380
  }, T = s === "date" ? w.date : w.time;
3403
3381
  return {
3404
3382
  val: { type: T, value: n, location: p, style: c },
@@ -3423,7 +3401,7 @@ var Ni = (
3423
3401
  if (this.bumpSpace(), !this.bumpIf(","))
3424
3402
  return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, _({}, B)));
3425
3403
  this.bumpSpace();
3426
- var L = this.parseIdentifierIfPossible(), C = 0;
3404
+ var L = this.parseIdentifierIfPossible(), M = 0;
3427
3405
  if (s !== "select" && L.value === "offset") {
3428
3406
  if (!this.bumpIf(":"))
3429
3407
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
@@ -3431,7 +3409,7 @@ var Ni = (
3431
3409
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3432
3410
  if (f.err)
3433
3411
  return f;
3434
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), C = f.val;
3412
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), M = f.val;
3435
3413
  }
3436
3414
  var G = this.tryParsePluralOrSelectOptions(t, s, r, L);
3437
3415
  if (G.err)
@@ -3444,7 +3422,7 @@ var Ni = (
3444
3422
  val: {
3445
3423
  type: w.select,
3446
3424
  value: n,
3447
- options: Gt(G.val),
3425
+ options: Lt(G.val),
3448
3426
  location: be
3449
3427
  },
3450
3428
  err: null
@@ -3452,8 +3430,8 @@ var Ni = (
3452
3430
  val: {
3453
3431
  type: w.plural,
3454
3432
  value: n,
3455
- options: Gt(G.val),
3456
- offset: C,
3433
+ options: Lt(G.val),
3434
+ offset: M,
3457
3435
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3458
3436
  location: be
3459
3437
  },
@@ -3503,7 +3481,7 @@ var Ni = (
3503
3481
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3504
3482
  var n = [];
3505
3483
  try {
3506
- n = bi(t);
3484
+ n = mi(t);
3507
3485
  } catch (i) {
3508
3486
  return this.error(y.INVALID_NUMBER_SKELETON, r);
3509
3487
  }
@@ -3512,7 +3490,7 @@ var Ni = (
3512
3490
  type: ne.number,
3513
3491
  tokens: n,
3514
3492
  location: r,
3515
- parsedOptions: this.shouldParseSkeletons ? _i(n) : {}
3493
+ parsedOptions: this.shouldParseSkeletons ? gi(n) : {}
3516
3494
  },
3517
3495
  err: null
3518
3496
  };
@@ -3560,7 +3538,7 @@ var Ni = (
3560
3538
  break;
3561
3539
  }
3562
3540
  var h = v(i, this.clonePosition());
3563
- return o ? (a *= n, Oi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3541
+ return o ? (a *= n, Pi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3564
3542
  }, e.prototype.offset = function() {
3565
3543
  return this.position.offset;
3566
3544
  }, e.prototype.isEOF = function() {
@@ -3575,7 +3553,7 @@ var Ni = (
3575
3553
  var t = this.position.offset;
3576
3554
  if (t >= this.message.length)
3577
3555
  throw Error("out of bound");
3578
- var r = Sr(this.message, t);
3556
+ var r = _r(this.message, t);
3579
3557
  if (r === void 0)
3580
3558
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3581
3559
  return r;
@@ -3616,7 +3594,7 @@ var Ni = (
3616
3594
  break;
3617
3595
  }
3618
3596
  }, e.prototype.bumpSpace = function() {
3619
- for (; !this.isEOF() && Hr(this.char()); )
3597
+ for (; !this.isEOF() && Er(this.char()); )
3620
3598
  this.bump();
3621
3599
  }, e.prototype.peek = function() {
3622
3600
  if (this.isEOF())
@@ -3626,43 +3604,43 @@ var Ni = (
3626
3604
  }, e;
3627
3605
  }()
3628
3606
  );
3629
- function it(e) {
3607
+ function nt(e) {
3630
3608
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3631
3609
  }
3632
- function Gi(e) {
3633
- return it(e) || e === 47;
3610
+ function Li(e) {
3611
+ return nt(e) || e === 47;
3634
3612
  }
3635
- function Ui(e) {
3613
+ function Mi(e) {
3636
3614
  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;
3637
3615
  }
3638
- function Hr(e) {
3616
+ function Er(e) {
3639
3617
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3640
3618
  }
3641
- function Di(e) {
3619
+ function Ci(e) {
3642
3620
  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;
3643
3621
  }
3644
- function ot(e) {
3622
+ function it(e) {
3645
3623
  e.forEach(function(t) {
3646
- if (delete t.location, br(t) || gr(t))
3624
+ if (delete t.location, fr(t) || mr(t))
3647
3625
  for (var r in t.options)
3648
- delete t.options[r].location, ot(t.options[r].value);
3649
- else mr(t) && vr(t.style) || (dr(t) || pr(t)) && et(t.style) ? delete t.style.location : yr(t) && ot(t.children);
3626
+ delete t.options[r].location, it(t.options[r].value);
3627
+ else lr(t) && pr(t.style) || (hr(t) || cr(t)) && Ke(t.style) ? delete t.style.location : dr(t) && it(t.children);
3650
3628
  });
3651
3629
  }
3652
- function Fi(e, t) {
3630
+ function Gi(e, t) {
3653
3631
  t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3654
3632
  var r = new Ni(e, t).parse();
3655
3633
  if (r.err) {
3656
3634
  var n = SyntaxError(y[r.err.kind]);
3657
3635
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3658
3636
  }
3659
- return t != null && t.captureLocation || ot(r.val), r.val;
3637
+ return t != null && t.captureLocation || it(r.val), r.val;
3660
3638
  }
3661
3639
  var ie;
3662
3640
  (function(e) {
3663
3641
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3664
3642
  })(ie || (ie = {}));
3665
- var Me = (
3643
+ var Ne = (
3666
3644
  /** @class */
3667
3645
  function(e) {
3668
3646
  $(t, e);
@@ -3674,7 +3652,7 @@ var Me = (
3674
3652
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3675
3653
  }, t;
3676
3654
  }(Error)
3677
- ), Dt = (
3655
+ ), Ct = (
3678
3656
  /** @class */
3679
3657
  function(e) {
3680
3658
  $(t, e);
@@ -3682,8 +3660,8 @@ var Me = (
3682
3660
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3683
3661
  }
3684
3662
  return t;
3685
- }(Me)
3686
- ), $i = (
3663
+ }(Ne)
3664
+ ), Ui = (
3687
3665
  /** @class */
3688
3666
  function(e) {
3689
3667
  $(t, e);
@@ -3691,8 +3669,8 @@ var Me = (
3691
3669
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3692
3670
  }
3693
3671
  return t;
3694
- }(Me)
3695
- ), ji = (
3672
+ }(Ne)
3673
+ ), Di = (
3696
3674
  /** @class */
3697
3675
  function(e) {
3698
3676
  $(t, e);
@@ -3700,22 +3678,22 @@ var Me = (
3700
3678
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3701
3679
  }
3702
3680
  return t;
3703
- }(Me)
3681
+ }(Ne)
3704
3682
  ), P;
3705
3683
  (function(e) {
3706
3684
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3707
3685
  })(P || (P = {}));
3708
- function ki(e) {
3686
+ function Fi(e) {
3709
3687
  return e.length < 2 ? e : e.reduce(function(t, r) {
3710
3688
  var n = t[t.length - 1];
3711
3689
  return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3712
3690
  }, []);
3713
3691
  }
3714
- function Vi(e) {
3692
+ function $i(e) {
3715
3693
  return typeof e == "function";
3716
3694
  }
3717
3695
  function Te(e, t, r, n, i, o, a) {
3718
- if (e.length === 1 && Ot(e[0]))
3696
+ if (e.length === 1 && Pt(e[0]))
3719
3697
  return [
3720
3698
  {
3721
3699
  type: P.literal,
@@ -3724,14 +3702,14 @@ function Te(e, t, r, n, i, o, a) {
3724
3702
  ];
3725
3703
  for (var s = [], h = 0, l = e; h < l.length; h++) {
3726
3704
  var u = l[h];
3727
- if (Ot(u)) {
3705
+ if (Pt(u)) {
3728
3706
  s.push({
3729
3707
  type: P.literal,
3730
3708
  value: u.value
3731
3709
  });
3732
3710
  continue;
3733
3711
  }
3734
- if (fi(u)) {
3712
+ if (li(u)) {
3735
3713
  typeof o == "number" && s.push({
3736
3714
  type: P.literal,
3737
3715
  value: r.getNumberFormat(t).format(o)
@@ -3740,89 +3718,89 @@ function Te(e, t, r, n, i, o, a) {
3740
3718
  }
3741
3719
  var f = u.value;
3742
3720
  if (!(i && f in i))
3743
- throw new ji(f, a);
3721
+ throw new Di(f, a);
3744
3722
  var c = i[f];
3745
- if (ci(u)) {
3723
+ if (ui(u)) {
3746
3724
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3747
3725
  type: typeof c == "string" ? P.literal : P.object,
3748
3726
  value: c
3749
3727
  });
3750
3728
  continue;
3751
3729
  }
3752
- if (dr(u)) {
3753
- var m = typeof u.style == "string" ? n.date[u.style] : et(u.style) ? u.style.parsedOptions : void 0;
3730
+ if (hr(u)) {
3731
+ var m = typeof u.style == "string" ? n.date[u.style] : Ke(u.style) ? u.style.parsedOptions : void 0;
3754
3732
  s.push({
3755
3733
  type: P.literal,
3756
3734
  value: r.getDateTimeFormat(t, m).format(c)
3757
3735
  });
3758
3736
  continue;
3759
3737
  }
3760
- if (pr(u)) {
3761
- var m = typeof u.style == "string" ? n.time[u.style] : et(u.style) ? u.style.parsedOptions : n.time.medium;
3738
+ if (cr(u)) {
3739
+ var m = typeof u.style == "string" ? n.time[u.style] : Ke(u.style) ? u.style.parsedOptions : n.time.medium;
3762
3740
  s.push({
3763
3741
  type: P.literal,
3764
3742
  value: r.getDateTimeFormat(t, m).format(c)
3765
3743
  });
3766
3744
  continue;
3767
3745
  }
3768
- if (mr(u)) {
3769
- var m = typeof u.style == "string" ? n.number[u.style] : vr(u.style) ? u.style.parsedOptions : void 0;
3746
+ if (lr(u)) {
3747
+ var m = typeof u.style == "string" ? n.number[u.style] : pr(u.style) ? u.style.parsedOptions : void 0;
3770
3748
  m && m.scale && (c = c * (m.scale || 1)), s.push({
3771
3749
  type: P.literal,
3772
3750
  value: r.getNumberFormat(t, m).format(c)
3773
3751
  });
3774
3752
  continue;
3775
3753
  }
3776
- if (yr(u)) {
3754
+ if (dr(u)) {
3777
3755
  var d = u.children, p = u.value, A = i[p];
3778
- if (!Vi(A))
3779
- throw new $i(p, "function", a);
3780
- var H = Te(d, t, r, n, i, o), T = A(H.map(function(C) {
3781
- return C.value;
3756
+ if (!$i(A))
3757
+ throw new Ui(p, "function", a);
3758
+ var H = Te(d, t, r, n, i, o), T = A(H.map(function(M) {
3759
+ return M.value;
3782
3760
  }));
3783
- Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(C) {
3761
+ Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(M) {
3784
3762
  return {
3785
- type: typeof C == "string" ? P.literal : P.object,
3786
- value: C
3763
+ type: typeof M == "string" ? P.literal : P.object,
3764
+ value: M
3787
3765
  };
3788
3766
  }));
3789
3767
  }
3790
- if (br(u)) {
3768
+ if (fr(u)) {
3791
3769
  var B = u.options[c] || u.options.other;
3792
3770
  if (!B)
3793
- throw new Dt(u.value, c, Object.keys(u.options), a);
3771
+ throw new Ct(u.value, c, Object.keys(u.options), a);
3794
3772
  s.push.apply(s, Te(B.value, t, r, n, i));
3795
3773
  continue;
3796
3774
  }
3797
- if (gr(u)) {
3775
+ if (mr(u)) {
3798
3776
  var B = u.options["=".concat(c)];
3799
3777
  if (!B) {
3800
3778
  if (!Intl.PluralRules)
3801
- throw new Me(`Intl.PluralRules is not available in this environment.
3779
+ throw new Ne(`Intl.PluralRules is not available in this environment.
3802
3780
  Try polyfilling it using "@formatjs/intl-pluralrules"
3803
3781
  `, ie.MISSING_INTL_API, a);
3804
3782
  var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3805
3783
  B = u.options[L] || u.options.other;
3806
3784
  }
3807
3785
  if (!B)
3808
- throw new Dt(u.value, c, Object.keys(u.options), a);
3786
+ throw new Ct(u.value, c, Object.keys(u.options), a);
3809
3787
  s.push.apply(s, Te(B.value, t, r, n, i, c - (u.offset || 0)));
3810
3788
  continue;
3811
3789
  }
3812
3790
  }
3813
- return ki(s);
3791
+ return Fi(s);
3814
3792
  }
3815
- function Wi(e, t) {
3793
+ function ji(e, t) {
3816
3794
  return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3817
3795
  return r[n] = _(_({}, e[n]), t[n] || {}), r;
3818
3796
  }, {})) : e;
3819
3797
  }
3820
- function Xi(e, t) {
3798
+ function ki(e, t) {
3821
3799
  return t ? Object.keys(e).reduce(function(r, n) {
3822
- return r[n] = Wi(e[n], t[n]), r;
3800
+ return r[n] = ji(e[n], t[n]), r;
3823
3801
  }, _({}, e)) : e;
3824
3802
  }
3825
- function Ve(e) {
3803
+ function ke(e) {
3826
3804
  return {
3827
3805
  create: function() {
3828
3806
  return {
@@ -3836,39 +3814,39 @@ function Ve(e) {
3836
3814
  }
3837
3815
  };
3838
3816
  }
3839
- function zi(e) {
3817
+ function Vi(e) {
3840
3818
  return e === void 0 && (e = {
3841
3819
  number: {},
3842
3820
  dateTime: {},
3843
3821
  pluralRules: {}
3844
3822
  }), {
3845
- getNumberFormat: $e(function() {
3823
+ getNumberFormat: Fe(function() {
3846
3824
  for (var t, r = [], n = 0; n < arguments.length; n++)
3847
3825
  r[n] = arguments[n];
3848
3826
  return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
3849
3827
  }, {
3850
- cache: Ve(e.number),
3851
- strategy: je.variadic
3828
+ cache: ke(e.number),
3829
+ strategy: $e.variadic
3852
3830
  }),
3853
- getDateTimeFormat: $e(function() {
3831
+ getDateTimeFormat: Fe(function() {
3854
3832
  for (var t, r = [], n = 0; n < arguments.length; n++)
3855
3833
  r[n] = arguments[n];
3856
3834
  return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
3857
3835
  }, {
3858
- cache: Ve(e.dateTime),
3859
- strategy: je.variadic
3836
+ cache: ke(e.dateTime),
3837
+ strategy: $e.variadic
3860
3838
  }),
3861
- getPluralRules: $e(function() {
3839
+ getPluralRules: Fe(function() {
3862
3840
  for (var t, r = [], n = 0; n < arguments.length; n++)
3863
3841
  r[n] = arguments[n];
3864
3842
  return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
3865
3843
  }, {
3866
- cache: Ve(e.pluralRules),
3867
- strategy: je.variadic
3844
+ cache: ke(e.pluralRules),
3845
+ strategy: $e.variadic
3868
3846
  })
3869
3847
  };
3870
3848
  }
3871
- var Ji = (
3849
+ var Wi = (
3872
3850
  /** @class */
3873
3851
  function() {
3874
3852
  function e(t, r, n, i) {
@@ -3900,13 +3878,13 @@ var Ji = (
3900
3878
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3901
3879
  var a = i || {};
3902
3880
  a.formatters;
3903
- var s = Bn(a, ["formatters"]);
3881
+ var s = wn(a, ["formatters"]);
3904
3882
  this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
3905
3883
  } else
3906
3884
  this.ast = t;
3907
3885
  if (!Array.isArray(this.ast))
3908
3886
  throw new TypeError("A message must be provided as a String or AST.");
3909
- this.formats = Xi(e.formats, n), this.formatters = i && i.formatters || zi(this.formatterCache);
3887
+ this.formats = ki(e.formats, n), this.formatters = i && i.formatters || Vi(this.formatterCache);
3910
3888
  }
3911
3889
  return Object.defineProperty(e, "defaultLocale", {
3912
3890
  get: function() {
@@ -3919,7 +3897,7 @@ var Ji = (
3919
3897
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3920
3898
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3921
3899
  }
3922
- }, e.__parse = Fi, e.formats = {
3900
+ }, e.__parse = Gi, e.formats = {
3923
3901
  number: {
3924
3902
  integer: {
3925
3903
  maximumFractionDigits: 0
@@ -3980,7 +3958,7 @@ var Ji = (
3980
3958
  }, e;
3981
3959
  }()
3982
3960
  );
3983
- function Zi(e, t) {
3961
+ function Xi(e, t) {
3984
3962
  if (t == null)
3985
3963
  return;
3986
3964
  if (t in e)
@@ -4001,92 +3979,92 @@ function Zi(e, t) {
4001
3979
  n = void 0;
4002
3980
  return n;
4003
3981
  }
4004
- const j = {}, Qi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Br = (e, t) => {
3982
+ const j = {}, zi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), wr = (e, t) => {
4005
3983
  if (t == null)
4006
3984
  return;
4007
3985
  if (t in j && e in j[t])
4008
3986
  return j[t][e];
4009
3987
  const r = Le(t);
4010
3988
  for (let n = 0; n < r.length; n++) {
4011
- const i = r[n], o = qi(i, e);
3989
+ const i = r[n], o = Zi(i, e);
4012
3990
  if (o)
4013
- return Qi(e, t, o);
3991
+ return zi(e, t, o);
4014
3992
  }
4015
3993
  };
4016
- let ct;
4017
- const se = Oe({});
4018
- function Yi(e) {
4019
- return ct[e] || null;
3994
+ let ut;
3995
+ const se = Ie({});
3996
+ function Ji(e) {
3997
+ return ut[e] || null;
4020
3998
  }
4021
- function Ar(e) {
4022
- return e in ct;
3999
+ function Sr(e) {
4000
+ return e in ut;
4023
4001
  }
4024
- function qi(e, t) {
4025
- if (!Ar(e))
4002
+ function Zi(e, t) {
4003
+ if (!Sr(e))
4026
4004
  return null;
4027
- const r = Yi(e);
4028
- return Zi(r, t);
4005
+ const r = Ji(e);
4006
+ return Xi(r, t);
4029
4007
  }
4030
- function Ki(e) {
4008
+ function Qi(e) {
4031
4009
  if (e == null)
4032
4010
  return;
4033
4011
  const t = Le(e);
4034
4012
  for (let r = 0; r < t.length; r++) {
4035
4013
  const n = t[r];
4036
- if (Ar(n))
4014
+ if (Sr(n))
4037
4015
  return n;
4038
4016
  }
4039
4017
  }
4040
- function Pr(e, ...t) {
4041
- delete j[e], se.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
4018
+ function Tr(e, ...t) {
4019
+ delete j[e], se.update((r) => (r[e] = ei.all([r[e] || {}, ...t]), r));
4042
4020
  }
4043
4021
  ae(
4044
4022
  [se],
4045
4023
  ([e]) => Object.keys(e)
4046
4024
  );
4047
- se.subscribe((e) => ct = e);
4025
+ se.subscribe((e) => ut = e);
4048
4026
  const He = {};
4049
- function eo(e, t) {
4027
+ function Yi(e, t) {
4050
4028
  He[e].delete(t), He[e].size === 0 && delete He[e];
4051
4029
  }
4052
- function Rr(e) {
4030
+ function Hr(e) {
4053
4031
  return He[e];
4054
4032
  }
4055
- function to(e) {
4033
+ function qi(e) {
4056
4034
  return Le(e).map((t) => {
4057
- const r = Rr(t);
4035
+ const r = Hr(t);
4058
4036
  return [t, r ? [...r] : []];
4059
4037
  }).filter(([, t]) => t.length > 0);
4060
4038
  }
4061
- function at(e) {
4039
+ function ot(e) {
4062
4040
  return e == null ? !1 : Le(e).some(
4063
4041
  (t) => {
4064
4042
  var r;
4065
- return (r = Rr(t)) == null ? void 0 : r.size;
4043
+ return (r = Hr(t)) == null ? void 0 : r.size;
4066
4044
  }
4067
4045
  );
4068
4046
  }
4069
- function ro(e, t) {
4047
+ function Ki(e, t) {
4070
4048
  return Promise.all(
4071
- t.map((n) => (eo(e, n), n().then((i) => i.default || i)))
4072
- ).then((n) => Pr(e, ...n));
4049
+ t.map((n) => (Yi(e, n), n().then((i) => i.default || i)))
4050
+ ).then((n) => Tr(e, ...n));
4073
4051
  }
4074
4052
  const he = {};
4075
- function Ir(e) {
4076
- if (!at(e))
4053
+ function Br(e) {
4054
+ if (!ot(e))
4077
4055
  return e in he ? he[e] : Promise.resolve();
4078
- const t = to(e);
4056
+ const t = qi(e);
4079
4057
  return he[e] = Promise.all(
4080
4058
  t.map(
4081
- ([r, n]) => ro(r, n)
4059
+ ([r, n]) => Ki(r, n)
4082
4060
  )
4083
4061
  ).then(() => {
4084
- if (at(e))
4085
- return Ir(e);
4062
+ if (ot(e))
4063
+ return Br(e);
4086
4064
  delete he[e];
4087
4065
  }), he[e];
4088
4066
  }
4089
- const no = {
4067
+ const eo = {
4090
4068
  number: {
4091
4069
  scientific: { notation: "scientific" },
4092
4070
  engineering: { notation: "engineering" },
@@ -4115,78 +4093,78 @@ const no = {
4115
4093
  timeZoneName: "short"
4116
4094
  }
4117
4095
  }
4118
- }, io = {
4096
+ }, to = {
4119
4097
  fallbackLocale: null,
4120
4098
  loadingDelay: 200,
4121
- formats: no,
4099
+ formats: eo,
4122
4100
  warnOnMissingMessages: !0,
4123
4101
  handleMissingMessage: void 0,
4124
4102
  ignoreTag: !0
4125
- }, oo = io;
4103
+ }, ro = to;
4126
4104
  function oe() {
4127
- return oo;
4105
+ return ro;
4128
4106
  }
4129
- const We = Oe(!1);
4130
- var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, Ft = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, co = (e, t) => {
4107
+ const Ve = Ie(!1);
4108
+ var no = Object.defineProperty, io = Object.defineProperties, oo = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, ao = Object.prototype.hasOwnProperty, so = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, uo = (e, t) => {
4131
4109
  for (var r in t || (t = {}))
4132
- lo.call(t, r) && $t(e, r, t[r]);
4133
- if (Ft)
4134
- for (var r of Ft(t))
4135
- ho.call(t, r) && $t(e, r, t[r]);
4110
+ ao.call(t, r) && Ut(e, r, t[r]);
4111
+ if (Gt)
4112
+ for (var r of Gt(t))
4113
+ so.call(t, r) && Ut(e, r, t[r]);
4136
4114
  return e;
4137
- }, fo = (e, t) => so(e, uo(t));
4138
- let st;
4139
- const Pe = Oe(null);
4140
- function jt(e) {
4115
+ }, lo = (e, t) => io(e, oo(t));
4116
+ let at;
4117
+ const Pe = Ie(null);
4118
+ function Dt(e) {
4141
4119
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4142
4120
  }
4143
4121
  function Le(e, t = oe().fallbackLocale) {
4144
- const r = jt(e);
4145
- return t ? [.../* @__PURE__ */ new Set([...r, ...jt(t)])] : r;
4122
+ const r = Dt(e);
4123
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Dt(t)])] : r;
4146
4124
  }
4147
4125
  function Z() {
4148
- return st != null ? st : void 0;
4126
+ return at != null ? at : void 0;
4149
4127
  }
4150
4128
  Pe.subscribe((e) => {
4151
- st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4129
+ at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4152
4130
  });
4153
- const mo = (e) => {
4154
- if (e && Ki(e) && at(e)) {
4131
+ const ho = (e) => {
4132
+ if (e && Qi(e) && ot(e)) {
4155
4133
  const { loadingDelay: t } = oe();
4156
4134
  let r;
4157
4135
  return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
4158
- () => We.set(!0),
4136
+ () => Ve.set(!0),
4159
4137
  t
4160
- ) : We.set(!0), Ir(e).then(() => {
4138
+ ) : Ve.set(!0), Br(e).then(() => {
4161
4139
  Pe.set(e);
4162
4140
  }).finally(() => {
4163
- clearTimeout(r), We.set(!1);
4141
+ clearTimeout(r), Ve.set(!1);
4164
4142
  });
4165
4143
  }
4166
4144
  return Pe.set(e);
4167
- }, W = fo(co({}, Pe), {
4168
- set: mo
4169
- }), Ce = (e) => {
4145
+ }, W = lo(uo({}, Pe), {
4146
+ set: ho
4147
+ }), Me = (e) => {
4170
4148
  const t = /* @__PURE__ */ Object.create(null);
4171
4149
  return (n) => {
4172
4150
  const i = JSON.stringify(n);
4173
4151
  return i in t ? t[i] : t[i] = e(n);
4174
4152
  };
4175
4153
  };
4176
- var po = Object.defineProperty, Re = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
4154
+ var co = Object.defineProperty, Re = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4177
4155
  for (var r in t || (t = {}))
4178
- Or.call(t, r) && kt(e, r, t[r]);
4156
+ Ar.call(t, r) && Ft(e, r, t[r]);
4179
4157
  if (Re)
4180
4158
  for (var r of Re(t))
4181
- Mr.call(t, r) && kt(e, r, t[r]);
4159
+ Pr.call(t, r) && Ft(e, r, t[r]);
4182
4160
  return e;
4183
4161
  }, ue = (e, t) => {
4184
4162
  var r = {};
4185
4163
  for (var n in e)
4186
- Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4164
+ Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4187
4165
  if (e != null && Re)
4188
4166
  for (var n of Re(e))
4189
- t.indexOf(n) < 0 && Mr.call(e, n) && (r[n] = e[n]);
4167
+ t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
4190
4168
  return r;
4191
4169
  };
4192
4170
  const pe = (e, t) => {
@@ -4194,21 +4172,21 @@ const pe = (e, t) => {
4194
4172
  if (e in r && t in r[e])
4195
4173
  return r[e][t];
4196
4174
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4197
- }, bo = Ce(
4175
+ }, fo = Me(
4198
4176
  (e) => {
4199
4177
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4200
4178
  if (r == null)
4201
4179
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4202
4180
  return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
4203
4181
  }
4204
- ), go = Ce(
4182
+ ), mo = Me(
4205
4183
  (e) => {
4206
4184
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4207
4185
  if (r == null)
4208
4186
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4209
4187
  return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
4210
4188
  }
4211
- ), yo = Ce(
4189
+ ), po = Me(
4212
4190
  (e) => {
4213
4191
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4214
4192
  if (r == null)
@@ -4217,33 +4195,33 @@ const pe = (e, t) => {
4217
4195
  );
4218
4196
  return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
4219
4197
  }
4220
- ), vo = (e = {}) => {
4198
+ ), bo = (e = {}) => {
4221
4199
  var t = e, {
4222
4200
  locale: r = Z()
4223
4201
  } = t, n = ue(t, [
4224
4202
  "locale"
4225
4203
  ]);
4226
- return bo(ft({ locale: r }, n));
4227
- }, _o = (e = {}) => {
4204
+ return fo(lt({ locale: r }, n));
4205
+ }, go = (e = {}) => {
4228
4206
  var t = e, {
4229
4207
  locale: r = Z()
4230
4208
  } = t, n = ue(t, [
4231
4209
  "locale"
4232
4210
  ]);
4233
- return go(ft({ locale: r }, n));
4234
- }, xo = (e = {}) => {
4211
+ return mo(lt({ locale: r }, n));
4212
+ }, yo = (e = {}) => {
4235
4213
  var t = e, {
4236
4214
  locale: r = Z()
4237
4215
  } = t, n = ue(t, [
4238
4216
  "locale"
4239
4217
  ]);
4240
- return yo(ft({ locale: r }, n));
4241
- }, Eo = Ce(
4218
+ return po(lt({ locale: r }, n));
4219
+ }, vo = Me(
4242
4220
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4243
- (e, t = Z()) => new Ji(e, t, oe().formats, {
4221
+ (e, t = Z()) => new Wi(e, t, oe().formats, {
4244
4222
  ignoreTag: oe().ignoreTag
4245
4223
  })
4246
- ), wo = (e, t = {}) => {
4224
+ ), _o = (e, t = {}) => {
4247
4225
  var r, n, i, o;
4248
4226
  let a = t;
4249
4227
  typeof e == "object" && (a = e, e = a.id);
@@ -4256,7 +4234,7 @@ const pe = (e, t) => {
4256
4234
  throw new Error(
4257
4235
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4258
4236
  );
4259
- let u = Br(e, h);
4237
+ let u = wr(e, h);
4260
4238
  if (!u)
4261
4239
  u = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
4262
4240
  else if (typeof u != "string")
@@ -4267,7 +4245,7 @@ const pe = (e, t) => {
4267
4245
  return u;
4268
4246
  let f = u;
4269
4247
  try {
4270
- f = Eo(u, h).format(s);
4248
+ f = vo(u, h).format(s);
4271
4249
  } catch (c) {
4272
4250
  c instanceof Error && console.warn(
4273
4251
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4275,20 +4253,20 @@ const pe = (e, t) => {
4275
4253
  );
4276
4254
  }
4277
4255
  return f;
4278
- }, So = (e, t) => xo(t).format(e), To = (e, t) => _o(t).format(e), Ho = (e, t) => vo(t).format(e), Bo = (e, t = Z()) => Br(e, t), Ao = ae([W, se], () => wo);
4279
- ae([W], () => So);
4280
- ae([W], () => To);
4281
- ae([W], () => Ho);
4282
- ae([W, se], () => Bo);
4283
- window.emWidgets = { topic: $n };
4284
- const Po = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4285
- function Ro(e, t) {
4256
+ }, xo = (e, t) => yo(t).format(e), Eo = (e, t) => go(t).format(e), wo = (e, t) => bo(t).format(e), So = (e, t = Z()) => wr(e, t), To = ae([W, se], () => _o);
4257
+ ae([W], () => xo);
4258
+ ae([W], () => Eo);
4259
+ ae([W], () => wo);
4260
+ ae([W, se], () => So);
4261
+ window.emWidgets = { topic: Gn };
4262
+ const Ho = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4263
+ function Bo(e, t) {
4286
4264
  if (e) {
4287
4265
  const r = document.createElement("style");
4288
4266
  r.innerHTML = t, e.appendChild(r);
4289
4267
  }
4290
4268
  }
4291
- function Io(e, t) {
4269
+ function Ao(e, t) {
4292
4270
  const r = new URL(t);
4293
4271
  fetch(r.href).then((n) => n.text()).then((n) => {
4294
4272
  const i = document.createElement("style");
@@ -4297,7 +4275,7 @@ function Io(e, t) {
4297
4275
  console.error("There was an error while trying to load client styling from URL", n);
4298
4276
  });
4299
4277
  }
4300
- function Oo(e, t, r) {
4278
+ function Po(e, t, r) {
4301
4279
  if (window.emMessageBus) {
4302
4280
  const n = document.createElement("style");
4303
4281
  window.emMessageBus.subscribe(t, (i) => {
@@ -4305,18 +4283,18 @@ function Oo(e, t, r) {
4305
4283
  });
4306
4284
  }
4307
4285
  }
4308
- function Mo({ withLocale: e, translations: t }) {
4286
+ function Ro({ withLocale: e, translations: t }) {
4309
4287
  W.subscribe((r) => {
4310
4288
  r == null && (se.set(t), W.set(e));
4311
4289
  });
4312
4290
  }
4313
- function Vt(e, t) {
4314
- Pr(e, t);
4291
+ function $t(e, t) {
4292
+ Tr(e, t);
4315
4293
  }
4316
- function Lo(e) {
4294
+ function Oo(e) {
4317
4295
  W.set(e);
4318
4296
  }
4319
- const Wt = {
4297
+ const jt = {
4320
4298
  en: {
4321
4299
  playRandomGame: "Play a random game",
4322
4300
  randomGameLoading: "Selecting ...",
@@ -4390,30 +4368,30 @@ const Wt = {
4390
4368
  noGames: "There are no random games to play"
4391
4369
  }
4392
4370
  };
4393
- function Co(e) {
4394
- sn(e, "svelte-fd0a5p", "*,*::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}.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, #D0046C));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{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, #D0046C));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, #D0046C));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}");
4371
+ function Io(e) {
4372
+ rn(e, "svelte-fd0a5p", "*,*::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}.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, #D0046C));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{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, #D0046C));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, #D0046C));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}");
4395
4373
  }
4396
- function Xt(e, t, r) {
4374
+ function kt(e, t, r) {
4397
4375
  const n = e.slice();
4398
4376
  return n[41] = t[r], n;
4399
4377
  }
4400
- const No = (e) => ({}), zt = (e) => ({});
4401
- function Jt(e) {
4378
+ const No = (e) => ({}), Vt = (e) => ({});
4379
+ function Wt(e) {
4402
4380
  let t, r, n, i, o, a, s;
4403
4381
  const h = (
4404
4382
  /*#slots*/
4405
4383
  e[23].close
4406
- ), l = rn(
4384
+ ), l = qr(
4407
4385
  h,
4408
4386
  e,
4409
4387
  /*$$scope*/
4410
4388
  e[22],
4411
- zt
4412
- ), u = l || Go();
4389
+ Vt
4390
+ ), u = l || Lo();
4413
4391
  function f(d, p) {
4414
4392
  return (
4415
4393
  /*hasRandomGames*/
4416
- d[7] ? Do : Uo
4394
+ d[7] ? Co : Mo
4417
4395
  );
4418
4396
  }
4419
4397
  let c = f(e), m = c(e);
@@ -4422,7 +4400,7 @@ function Jt(e) {
4422
4400
  t = S("div"), r = S("div"), n = S("span"), u && u.c(), i = V(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
4423
4401
  },
4424
4402
  m(d, p) {
4425
- O(d, t, p), x(t, r), x(r, n), u && u.m(n, null), x(r, i), m.m(r, null), o = !0, a || (s = Be(
4403
+ I(d, t, p), x(t, r), x(r, n), u && u.m(n, null), x(r, i), m.m(r, null), o = !0, a || (s = Be(
4426
4404
  n,
4427
4405
  "click",
4428
4406
  /*closeModal*/
@@ -4431,52 +4409,52 @@ function Jt(e) {
4431
4409
  },
4432
4410
  p(d, p) {
4433
4411
  l && l.p && (!o || p[0] & /*$$scope*/
4434
- 4194304) && on(
4412
+ 4194304) && en(
4435
4413
  l,
4436
4414
  h,
4437
4415
  d,
4438
4416
  /*$$scope*/
4439
4417
  d[22],
4440
- o ? nn(
4418
+ o ? Kr(
4441
4419
  h,
4442
4420
  /*$$scope*/
4443
4421
  d[22],
4444
4422
  p,
4445
4423
  No
4446
- ) : an(
4424
+ ) : tn(
4447
4425
  /*$$scope*/
4448
4426
  d[22]
4449
4427
  ),
4450
- zt
4428
+ Vt
4451
4429
  ), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
4452
4430
  },
4453
4431
  i(d) {
4454
4432
  o || (fe(u, d), o = !0);
4455
4433
  },
4456
4434
  o(d) {
4457
- Je(u, d), o = !1;
4435
+ ze(u, d), o = !1;
4458
4436
  },
4459
4437
  d(d) {
4460
4438
  d && R(t), u && u.d(d), m.d(), a = !1, s();
4461
4439
  }
4462
4440
  };
4463
4441
  }
4464
- function Go(e) {
4442
+ function Lo(e) {
4465
4443
  let t, r;
4466
4444
  return {
4467
4445
  c() {
4468
- t = xt("svg"), r = xt("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");
4446
+ t = yt("svg"), r = yt("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");
4469
4447
  },
4470
4448
  m(n, i) {
4471
- O(n, t, i), x(t, r);
4449
+ I(n, t, i), x(t, r);
4472
4450
  },
4473
- p: N,
4451
+ p: C,
4474
4452
  d(n) {
4475
4453
  n && R(t);
4476
4454
  }
4477
4455
  };
4478
4456
  }
4479
- function Uo(e) {
4457
+ function Mo(e) {
4480
4458
  let t, r = (
4481
4459
  /*$_*/
4482
4460
  e[9]("noGames") + ""
@@ -4486,7 +4464,7 @@ function Uo(e) {
4486
4464
  t = S("p"), n = k(r), g(t, "class", "RandomGameLoading");
4487
4465
  },
4488
4466
  m(i, o) {
4489
- O(i, t, o), x(t, n);
4467
+ I(i, t, o), x(t, n);
4490
4468
  },
4491
4469
  p(i, o) {
4492
4470
  o[0] & /*$_*/
@@ -4498,17 +4476,17 @@ function Uo(e) {
4498
4476
  }
4499
4477
  };
4500
4478
  }
4501
- function Do(e) {
4502
- let t, r, n, i, o = wt(
4479
+ function Co(e) {
4480
+ let t, r, n, i, o = _t(
4503
4481
  /*gamesToShow*/
4504
4482
  e[4]
4505
4483
  ), a = [];
4506
4484
  for (let u = 0; u < o.length; u += 1)
4507
- a[u] = Zt(Xt(e, o, u));
4485
+ a[u] = Xt(kt(e, o, u));
4508
4486
  function s(u, f) {
4509
4487
  return (
4510
4488
  /*animationDone*/
4511
- u[6] ? $o : Fo
4489
+ u[6] ? Uo : Go
4512
4490
  );
4513
4491
  }
4514
4492
  let h = s(e), l = h(e);
@@ -4520,7 +4498,7 @@ function Do(e) {
4520
4498
  i = V(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
4521
4499
  },
4522
4500
  m(u, f) {
4523
- O(u, t, f), x(t, r), x(r, n);
4501
+ I(u, t, f), x(t, r), x(r, n);
4524
4502
  for (let c = 0; c < a.length; c += 1)
4525
4503
  a[c] && a[c].m(n, null);
4526
4504
  e[24](n), x(t, i), l.m(t, null);
@@ -4528,14 +4506,14 @@ function Do(e) {
4528
4506
  p(u, f) {
4529
4507
  if (f[0] & /*gamesToShow*/
4530
4508
  16) {
4531
- o = wt(
4509
+ o = _t(
4532
4510
  /*gamesToShow*/
4533
4511
  u[4]
4534
4512
  );
4535
4513
  let c;
4536
4514
  for (c = 0; c < o.length; c += 1) {
4537
- const m = Xt(u, o, c);
4538
- a[c] ? a[c].p(m, f) : (a[c] = Zt(m), a[c].c(), a[c].m(n, null));
4515
+ const m = kt(u, o, c);
4516
+ a[c] ? a[c].p(m, f) : (a[c] = Xt(m), a[c].c(), a[c].m(n, null));
4539
4517
  }
4540
4518
  for (; c < a.length; c += 1)
4541
4519
  a[c].d(1);
@@ -4544,25 +4522,25 @@ function Do(e) {
4544
4522
  h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
4545
4523
  },
4546
4524
  d(u) {
4547
- u && R(t), hn(a, u), e[24](null), l.d();
4525
+ u && R(t), an(a, u), e[24](null), l.d();
4548
4526
  }
4549
4527
  };
4550
4528
  }
4551
- function Zt(e) {
4529
+ function Xt(e) {
4552
4530
  let t, r, n, i, o, a;
4553
4531
  return {
4554
4532
  c() {
4555
- t = S("div"), r = S("img"), a = V(), g(r, "class", "RandomGameImage"), _t(r.src, n = /*game*/
4533
+ t = S("div"), r = S("img"), a = V(), g(r, "class", "RandomGameImage"), gt(r.src, n = /*game*/
4556
4534
  e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
4557
4535
  e[41].name), g(r, "title", o = /*game*/
4558
4536
  e[41].name), g(t, "class", "item");
4559
4537
  },
4560
4538
  m(s, h) {
4561
- O(s, t, h), x(t, r), x(t, a);
4539
+ I(s, t, h), x(t, r), x(t, a);
4562
4540
  },
4563
4541
  p(s, h) {
4564
4542
  h[0] & /*gamesToShow*/
4565
- 16 && !_t(r.src, n = /*game*/
4543
+ 16 && !gt(r.src, n = /*game*/
4566
4544
  s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
4567
4545
  16 && i !== (i = /*game*/
4568
4546
  s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
@@ -4574,7 +4552,7 @@ function Zt(e) {
4574
4552
  }
4575
4553
  };
4576
4554
  }
4577
- function Fo(e) {
4555
+ function Go(e) {
4578
4556
  let t, r = (
4579
4557
  /*$_*/
4580
4558
  e[9]("randomGameLoading") + ""
@@ -4584,7 +4562,7 @@ function Fo(e) {
4584
4562
  t = S("p"), n = k(r), g(t, "class", "RandomGameLoading");
4585
4563
  },
4586
4564
  m(i, o) {
4587
- O(i, t, o), x(t, n);
4565
+ I(i, t, o), x(t, n);
4588
4566
  },
4589
4567
  p(i, o) {
4590
4568
  o[0] & /*$_*/
@@ -4596,7 +4574,7 @@ function Fo(e) {
4596
4574
  }
4597
4575
  };
4598
4576
  }
4599
- function $o(e) {
4577
+ function Uo(e) {
4600
4578
  let t, r, n, i, o = (
4601
4579
  /*randomGame*/
4602
4580
  e[3].name + ""
@@ -4613,7 +4591,7 @@ function $o(e) {
4613
4591
  </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 = S("div"), i = S("p"), a = k(o), s = V(), h = S("p"), u = k(l), f = V(), c = S("button"), d = k(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
4614
4592
  },
4615
4593
  m(H, T) {
4616
- O(H, t, T), O(H, r, T), O(H, n, T), x(n, i), x(i, a), x(n, s), x(n, h), x(h, u), x(n, f), x(n, c), x(c, d), p || (A = [
4594
+ I(H, t, T), I(H, r, T), I(H, n, T), x(n, i), x(i, a), x(n, s), x(n, h), x(h, u), x(n, f), x(n, c), x(c, d), p || (A = [
4617
4595
  Be(
4618
4596
  t,
4619
4597
  "click",
@@ -4642,7 +4620,7 @@ function $o(e) {
4642
4620
  }
4643
4621
  };
4644
4622
  }
4645
- function jo(e) {
4623
+ function Do(e) {
4646
4624
  let t, r = (
4647
4625
  /*$_*/
4648
4626
  e[9]("playRandomGame") + ""
@@ -4652,7 +4630,7 @@ function jo(e) {
4652
4630
  t = S("span"), n = k(r), g(t, "class", "RandomButtonText");
4653
4631
  },
4654
4632
  m(i, o) {
4655
- O(i, t, o), x(t, n);
4633
+ I(i, t, o), x(t, n);
4656
4634
  },
4657
4635
  p(i, o) {
4658
4636
  o[0] & /*$_*/
@@ -4664,7 +4642,7 @@ function jo(e) {
4664
4642
  }
4665
4643
  };
4666
4644
  }
4667
- function ko(e) {
4645
+ function Fo(e) {
4668
4646
  let t, r;
4669
4647
  return {
4670
4648
  c() {
@@ -4674,7 +4652,7 @@ function ko(e) {
4674
4652
  ), g(t, "class", "RandomButtonText");
4675
4653
  },
4676
4654
  m(n, i) {
4677
- O(n, t, i), x(t, r);
4655
+ I(n, t, i), x(t, r);
4678
4656
  },
4679
4657
  p(n, i) {
4680
4658
  i[0] & /*buttontext*/
@@ -4689,26 +4667,26 @@ function ko(e) {
4689
4667
  }
4690
4668
  };
4691
4669
  }
4692
- function Vo(e) {
4670
+ function $o(e) {
4693
4671
  let t, r, n, i, o, a, s, h, l, u = (
4694
4672
  /*show*/
4695
- e[5] && Jt(e)
4673
+ e[5] && Wt(e)
4696
4674
  );
4697
4675
  function f(d, p) {
4698
4676
  if (
4699
4677
  /*buttontext*/
4700
4678
  d[1]
4701
- ) return ko;
4679
+ ) return Fo;
4702
4680
  if (!/*buttontext*/
4703
- d[1]) return jo;
4681
+ d[1]) return Do;
4704
4682
  }
4705
4683
  let c = f(e), m = c && c(e);
4706
4684
  return {
4707
4685
  c() {
4708
- t = S("div"), u && u.c(), r = V(), n = S("div"), i = S("button"), m && m.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper"), g(t, "part", "CustomStylingContainer");
4686
+ t = S("div"), u && u.c(), r = V(), n = S("div"), i = S("button"), m && m.c(), o = V(), a = S("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
4709
4687
  },
4710
4688
  m(d, p) {
4711
- O(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
4689
+ I(d, t, p), u && u.m(t, null), x(t, r), x(t, n), x(n, i), m && m.m(i, null), x(i, o), x(i, a), a.innerHTML = /*randombuttonicon*/
4712
4690
  e[0], e[28](t), s = !0, h || (l = Be(
4713
4691
  i,
4714
4692
  "click",
@@ -4719,9 +4697,9 @@ function Vo(e) {
4719
4697
  p(d, p) {
4720
4698
  /*show*/
4721
4699
  d[5] ? u ? (u.p(d, p), p[0] & /*show*/
4722
- 32 && fe(u, 1)) : (u = Jt(d), u.c(), fe(u, 1), u.m(t, r)) : u && (yn(), Je(u, 1, 1, () => {
4700
+ 32 && fe(u, 1)) : (u = Wt(d), u.c(), fe(u, 1), u.m(t, r)) : u && (dn(), ze(u, 1, 1, () => {
4723
4701
  u = null;
4724
- }), vn()), 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*/
4702
+ }), pn()), 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*/
4725
4703
  1) && (a.innerHTML = /*randombuttonicon*/
4726
4704
  d[0]);
4727
4705
  },
@@ -4729,65 +4707,65 @@ function Vo(e) {
4729
4707
  s || (fe(u), s = !0);
4730
4708
  },
4731
4709
  o(d) {
4732
- Je(u), s = !1;
4710
+ ze(u), s = !1;
4733
4711
  },
4734
4712
  d(d) {
4735
4713
  d && R(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
4736
4714
  }
4737
4715
  };
4738
4716
  }
4739
- function Wo(e, t, r) {
4717
+ function jo(e, t, r) {
4740
4718
  let n;
4741
- tn(e, Ao, (b) => r(9, n = b));
4742
- 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, C = !1, G = !1, be = window.navigator.userAgent, U, Q, mt, ge, dt = null;
4743
- Mo({ withLocale: "en", translations: {} });
4744
- const Lr = () => {
4719
+ Yr(e, To, (b) => r(9, n = b));
4720
+ 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, G = !1, be = window.navigator.userAgent, U, Q, ht, ge, ct = null;
4721
+ Ro({ withLocale: "en", translations: {} });
4722
+ const Rr = () => {
4745
4723
  fetch(c).then((E) => E.json()).then((E) => {
4746
4724
  Object.keys(E).forEach((D) => {
4747
- Vt(D, E[D]);
4725
+ $t(D, E[D]);
4748
4726
  });
4749
4727
  }).catch((E) => {
4750
4728
  console.log(E);
4751
4729
  });
4752
4730
  };
4753
- Object.keys(Wt).forEach((b) => {
4754
- Vt(b, Wt[b]);
4731
+ Object.keys(jt).forEach((b) => {
4732
+ $t(b, jt[b]);
4755
4733
  });
4756
- const Cr = () => {
4734
+ const Or = () => {
4757
4735
  let b = new URL(`${a}/v1/casino/games`);
4758
- b.searchParams.append("platform", Po(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) => {
4759
- H = E.items, H.length ? (r(4, B = Nr(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
4736
+ b.searchParams.append("platform", Ho(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) => {
4737
+ H = E.items, H.length ? (r(4, B = Ir(H.slice(0, 19))), r(7, G = !0)) : (r(4, B = []), r(7, G = !1));
4760
4738
  }).catch((E) => {
4761
4739
  console.log(E), r(7, G = !1);
4762
4740
  });
4763
- }, Nr = (b) => {
4764
- const E = Ur(b);
4741
+ }, Ir = (b) => {
4742
+ const E = Lr(b);
4765
4743
  return E.concat(E);
4766
- }, Gr = () => ye(this, null, function* () {
4767
- yield pn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), mt = Q.children[ge];
4768
- }), Ne = () => ye(this, null, function* () {
4769
- r(6, C = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Gr();
4770
- const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (mt.offsetHeight + E) * ge, Xr = [
4744
+ }, Nr = () => ye(this, null, function* () {
4745
+ yield cn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), ht = Q.children[ge];
4746
+ }), Ce = () => ye(this, null, function* () {
4747
+ r(6, M = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Nr();
4748
+ const b = window.getComputedStyle(Q).getPropertyValue("gap"), E = parseInt(b, 10) || 0, le = (ht.offsetHeight + E) * ge, jr = [
4771
4749
  { transform: "translateX(0px)" },
4772
4750
  { filter: "blur(5px)" },
4773
4751
  {
4774
4752
  transform: `translateY(-${le}px)`
4775
4753
  }
4776
- ], zr = {
4754
+ ], kr = {
4777
4755
  duration: 2e3,
4778
4756
  easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
4779
4757
  fill: "forwards"
4780
4758
  };
4781
- dt = Q.animate(Xr, zr), dt.onfinish = () => {
4782
- r(6, C = !0);
4759
+ ct = Q.animate(jr, kr), ct.onfinish = () => {
4760
+ r(6, M = !0);
4783
4761
  };
4784
- }), Ur = (b) => {
4762
+ }), Lr = (b) => {
4785
4763
  const E = structuredClone(b);
4786
4764
  let D = E.length, le;
4787
4765
  for (; D != 0; )
4788
4766
  le = Math.floor(Math.random() * D), D--, [E[D], E[le]] = [E[le], E[D]];
4789
4767
  return E;
4790
- }, pt = () => {
4768
+ }, ft = () => {
4791
4769
  window.postMessage(
4792
4770
  {
4793
4771
  type: h,
@@ -4798,20 +4776,20 @@ function Wo(e, t, r) {
4798
4776
  context: "RandomGameWidget",
4799
4777
  gameId: `${T.gId || T.id}`
4800
4778
  });
4801
- }, Dr = () => {
4779
+ }, Mr = () => {
4802
4780
  r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: L }, window.location.href);
4803
- }, Fr = () => {
4804
- Lo(l);
4781
+ }, Cr = () => {
4782
+ Oo(l);
4805
4783
  };
4806
- dn(() => () => {
4784
+ hn(() => () => {
4807
4785
  });
4808
- function $r(b) {
4786
+ function Gr(b) {
4809
4787
  Ae[b ? "unshift" : "push"](() => {
4810
4788
  Q = b, r(8, Q);
4811
4789
  });
4812
4790
  }
4813
- const jr = () => Ne(), kr = () => pt(), Vr = () => Ne();
4814
- function Wr(b) {
4791
+ const Ur = () => Ce(), Dr = () => ft(), Fr = () => Ce();
4792
+ function $r(b) {
4815
4793
  Ae[b ? "unshift" : "push"](() => {
4816
4794
  U = b, r(2, U);
4817
4795
  });
@@ -4820,12 +4798,12 @@ function Wo(e, t, r) {
4820
4798
  "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);
4821
4799
  }, e.$$.update = () => {
4822
4800
  e.$$.dirty[0] & /*lang*/
4823
- 65536 && l && Fr(), e.$$.dirty[0] & /*translationurl*/
4824
- 131072 && c && Lr(), e.$$.dirty[0] & /*endpoint, datasource*/
4825
- 24576 && a && s && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4826
- 262148 && m && U && Ro(U, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4827
- 524292 && d && U && Io(U, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4828
- 2097156 && U && Oo(U, `${A}.Style`);
4801
+ 65536 && l && Cr(), e.$$.dirty[0] & /*translationurl*/
4802
+ 131072 && c && Rr(), e.$$.dirty[0] & /*endpoint, datasource*/
4803
+ 24576 && a && s && Or(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4804
+ 262148 && m && U && Bo(U, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4805
+ 524292 && d && U && Ao(U, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4806
+ 2097156 && U && Po(U, `${A}.Style`);
4829
4807
  }, [
4830
4808
  u,
4831
4809
  f,
@@ -4833,13 +4811,13 @@ function Wo(e, t, r) {
4833
4811
  T,
4834
4812
  B,
4835
4813
  L,
4836
- C,
4814
+ M,
4837
4815
  G,
4838
4816
  Q,
4839
4817
  n,
4840
- Ne,
4841
- pt,
4842
- Dr,
4818
+ Ce,
4819
+ ft,
4820
+ Mr,
4843
4821
  a,
4844
4822
  s,
4845
4823
  h,
@@ -4851,21 +4829,21 @@ function Wo(e, t, r) {
4851
4829
  A,
4852
4830
  o,
4853
4831
  i,
4854
- $r,
4855
- jr,
4856
- kr,
4857
- Vr,
4858
- Wr
4832
+ Gr,
4833
+ Ur,
4834
+ Dr,
4835
+ Fr,
4836
+ $r
4859
4837
  ];
4860
4838
  }
4861
- class Xo extends Tn {
4839
+ class ko extends xn {
4862
4840
  constructor(t) {
4863
- super(), wn(
4841
+ super(), vn(
4864
4842
  this,
4865
4843
  t,
4866
- Wo,
4867
- Vo,
4868
- Yt,
4844
+ jo,
4845
+ $o,
4846
+ Jt,
4869
4847
  {
4870
4848
  endpoint: 13,
4871
4849
  datasource: 14,
@@ -4879,7 +4857,7 @@ class Xo extends Tn {
4879
4857
  filteredrandomgamecategories: 20,
4880
4858
  mbsource: 21
4881
4859
  },
4882
- Co,
4860
+ Io,
4883
4861
  [-1, -1]
4884
4862
  );
4885
4863
  }
@@ -4887,70 +4865,70 @@ class Xo extends Tn {
4887
4865
  return this.$$.ctx[13];
4888
4866
  }
4889
4867
  set endpoint(t) {
4890
- this.$$set({ endpoint: t }), I();
4868
+ this.$$set({ endpoint: t }), O();
4891
4869
  }
4892
4870
  get datasource() {
4893
4871
  return this.$$.ctx[14];
4894
4872
  }
4895
4873
  set datasource(t) {
4896
- this.$$set({ datasource: t }), I();
4874
+ this.$$set({ datasource: t }), O();
4897
4875
  }
4898
4876
  get gameevent() {
4899
4877
  return this.$$.ctx[15];
4900
4878
  }
4901
4879
  set gameevent(t) {
4902
- this.$$set({ gameevent: t }), I();
4880
+ this.$$set({ gameevent: t }), O();
4903
4881
  }
4904
4882
  get lang() {
4905
4883
  return this.$$.ctx[16];
4906
4884
  }
4907
4885
  set lang(t) {
4908
- this.$$set({ lang: t }), I();
4886
+ this.$$set({ lang: t }), O();
4909
4887
  }
4910
4888
  get randombuttonicon() {
4911
4889
  return this.$$.ctx[0];
4912
4890
  }
4913
4891
  set randombuttonicon(t) {
4914
- this.$$set({ randombuttonicon: t }), I();
4892
+ this.$$set({ randombuttonicon: t }), O();
4915
4893
  }
4916
4894
  get buttontext() {
4917
4895
  return this.$$.ctx[1];
4918
4896
  }
4919
4897
  set buttontext(t) {
4920
- this.$$set({ buttontext: t }), I();
4898
+ this.$$set({ buttontext: t }), O();
4921
4899
  }
4922
4900
  get translationurl() {
4923
4901
  return this.$$.ctx[17];
4924
4902
  }
4925
4903
  set translationurl(t) {
4926
- this.$$set({ translationurl: t }), I();
4904
+ this.$$set({ translationurl: t }), O();
4927
4905
  }
4928
4906
  get clientstyling() {
4929
4907
  return this.$$.ctx[18];
4930
4908
  }
4931
4909
  set clientstyling(t) {
4932
- this.$$set({ clientstyling: t }), I();
4910
+ this.$$set({ clientstyling: t }), O();
4933
4911
  }
4934
4912
  get clientstylingurl() {
4935
4913
  return this.$$.ctx[19];
4936
4914
  }
4937
4915
  set clientstylingurl(t) {
4938
- this.$$set({ clientstylingurl: t }), I();
4916
+ this.$$set({ clientstylingurl: t }), O();
4939
4917
  }
4940
4918
  get filteredrandomgamecategories() {
4941
4919
  return this.$$.ctx[20];
4942
4920
  }
4943
4921
  set filteredrandomgamecategories(t) {
4944
- this.$$set({ filteredrandomgamecategories: t }), I();
4922
+ this.$$set({ filteredrandomgamecategories: t }), O();
4945
4923
  }
4946
4924
  get mbsource() {
4947
4925
  return this.$$.ctx[21];
4948
4926
  }
4949
4927
  set mbsource(t) {
4950
- this.$$set({ mbsource: t }), I();
4928
+ this.$$set({ mbsource: t }), O();
4951
4929
  }
4952
4930
  }
4953
- Sn(Xo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
4931
+ _n(ko, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
4954
4932
  export {
4955
- Xo as default
4933
+ ko as default
4956
4934
  };