@everymatrix/casino-random-game 1.76.0 → 1.76.3

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