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