@everymatrix/casino-sort 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,53 @@
1
- var Kt = Object.defineProperty, er = Object.defineProperties;
2
- var tr = Object.getOwnPropertyDescriptors;
3
- var Ke = Object.getOwnPropertySymbols;
4
- var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
1
+ var tr = Object.defineProperty, rr = Object.defineProperties;
2
+ var nr = Object.getOwnPropertyDescriptors;
3
+ var tt = Object.getOwnPropertySymbols;
4
+ var ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
5
+ var Te = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- rr.call(t, r) && Te(e, r, t[r]);
8
- if (Ke)
9
- for (var r of Ke(t))
10
- nr.call(t, r) && Te(e, r, t[r]);
7
+ ir.call(t, r) && Te(e, r, t[r]);
8
+ if (tt)
9
+ for (var r of tt(t))
10
+ or.call(t, r) && Te(e, r, t[r]);
11
11
  return e;
12
- }, tt = (e, t) => er(e, tr(t));
12
+ }, nt = (e, t) => rr(e, nr(t));
13
13
  var R = (e, t, r) => Te(e, typeof t != "symbol" ? t + "" : t, r);
14
- var rt = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
14
+ var it = (e, t, r) => new Promise((n, i) => {
15
+ var o = (u) => {
16
16
  try {
17
- l(r.next(h));
18
- } catch (a) {
19
- i(a);
17
+ a(r.next(u));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, s = (h) => {
21
+ }, s = (u) => {
22
22
  try {
23
- l(r.throw(h));
24
- } catch (a) {
25
- i(a);
23
+ a(r.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, l = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
- l((r = r.apply(e, t)).next());
27
+ }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
+ a((r = r.apply(e, t)).next());
29
29
  });
30
30
  function D() {
31
31
  }
32
- function wt(e) {
32
+ function At(e) {
33
33
  return e();
34
34
  }
35
- function nt() {
35
+ function ot() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ce(e) {
39
- e.forEach(wt);
39
+ e.forEach(At);
40
40
  }
41
41
  function We(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Ht(e, t) {
44
+ function Tt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function ir(e) {
47
+ function sr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function At(e, ...t) {
50
+ function Bt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,20 +56,20 @@ function At(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function or(e, t, r) {
60
- e.$$.on_destroy.push(At(t, r));
59
+ function ar(e, t, r) {
60
+ e.$$.on_destroy.push(Bt(t, r));
61
61
  }
62
62
  function v(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function sr(e, t, r) {
66
- const n = ar(e);
65
+ function lr(e, t, r) {
66
+ const n = ur(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = A("style");
69
- i.id = t, i.textContent = r, lr(n, i);
69
+ i.id = t, i.textContent = r, hr(n, i);
70
70
  }
71
71
  }
72
- function ar(e) {
72
+ function ur(e) {
73
73
  if (!e) return document;
74
74
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
75
  return t && /** @type {ShadowRoot} */
@@ -78,7 +78,7 @@ function ar(e) {
78
78
  t
79
79
  ) : e.ownerDocument;
80
80
  }
81
- function lr(e, t) {
81
+ function hr(e, t) {
82
82
  return v(
83
83
  /** @type {Document} */
84
84
  e.head || e,
@@ -91,14 +91,14 @@ function ve(e, t, r) {
91
91
  function fe(e) {
92
92
  e.parentNode && e.parentNode.removeChild(e);
93
93
  }
94
- function hr(e, t) {
94
+ function cr(e, t) {
95
95
  for (let r = 0; r < e.length; r += 1)
96
96
  e[r] && e[r].d(t);
97
97
  }
98
98
  function A(e) {
99
99
  return document.createElement(e);
100
100
  }
101
- function j(e) {
101
+ function k(e) {
102
102
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
103
  }
104
104
  function Me(e) {
@@ -107,20 +107,20 @@ function Me(e) {
107
107
  function V() {
108
108
  return Me(" ");
109
109
  }
110
- function Tt(e, t, r, n) {
110
+ function Nt(e, t, r, n) {
111
111
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
112
112
  }
113
- function p(e, t, r) {
113
+ function m(e, t, r) {
114
114
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
115
115
  }
116
- function ur(e) {
116
+ function fr(e) {
117
117
  return Array.from(e.childNodes);
118
118
  }
119
- function it(e, t) {
119
+ function st(e, t) {
120
120
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
121
121
  t);
122
122
  }
123
- function cr(e) {
123
+ function mr(e) {
124
124
  const t = {};
125
125
  return e.childNodes.forEach(
126
126
  /** @param {Element} node */
@@ -133,26 +133,26 @@ let le;
133
133
  function ae(e) {
134
134
  le = e;
135
135
  }
136
- function fr() {
136
+ function pr() {
137
137
  if (!le) throw new Error("Function called outside component initialization");
138
138
  return le;
139
139
  }
140
- function pr(e) {
141
- fr().$$.on_mount.push(e);
140
+ function dr(e) {
141
+ pr().$$.on_mount.push(e);
142
142
  }
143
143
  const q = [], Re = [];
144
144
  let Y = [];
145
- const ot = [], mr = /* @__PURE__ */ Promise.resolve();
145
+ const at = [], br = /* @__PURE__ */ Promise.resolve();
146
146
  let $e = !1;
147
- function dr() {
148
- $e || ($e = !0, mr.then(k));
147
+ function gr() {
148
+ $e || ($e = !0, br.then(G));
149
149
  }
150
150
  function De(e) {
151
151
  Y.push(e);
152
152
  }
153
153
  const Be = /* @__PURE__ */ new Set();
154
154
  let J = 0;
155
- function k() {
155
+ function G() {
156
156
  if (J !== 0)
157
157
  return;
158
158
  const e = le;
@@ -160,7 +160,7 @@ function k() {
160
160
  try {
161
161
  for (; J < q.length; ) {
162
162
  const t = q[J];
163
- J++, ae(t), br(t.$$);
163
+ J++, ae(t), yr(t.$$);
164
164
  }
165
165
  } catch (t) {
166
166
  throw q.length = 0, J = 0, t;
@@ -172,83 +172,83 @@ function k() {
172
172
  }
173
173
  Y.length = 0;
174
174
  } while (q.length);
175
- for (; ot.length; )
176
- ot.pop()();
175
+ for (; at.length; )
176
+ at.pop()();
177
177
  $e = !1, Be.clear(), ae(e);
178
178
  }
179
- function br(e) {
179
+ function yr(e) {
180
180
  if (e.fragment !== null) {
181
181
  e.update(), ce(e.before_update);
182
182
  const t = e.dirty;
183
183
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
184
184
  }
185
185
  }
186
- function gr(e) {
186
+ function xr(e) {
187
187
  const t = [], r = [];
188
188
  Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
189
189
  }
190
- const yr = /* @__PURE__ */ new Set();
191
- function xr(e, t) {
192
- e && e.i && (yr.delete(e), e.i(t));
190
+ const vr = /* @__PURE__ */ new Set();
191
+ function Er(e, t) {
192
+ e && e.i && (vr.delete(e), e.i(t));
193
193
  }
194
- function st(e) {
194
+ function lt(e) {
195
195
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
196
196
  }
197
- function vr(e, t, r) {
197
+ function _r(e, t, r) {
198
198
  const { fragment: n, after_update: i } = e.$$;
199
199
  n && n.m(t, r), De(() => {
200
- const o = e.$$.on_mount.map(wt).filter(We);
200
+ const o = e.$$.on_mount.map(At).filter(We);
201
201
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
202
202
  }), i.forEach(De);
203
203
  }
204
- function Er(e, t) {
204
+ function Sr(e, t) {
205
205
  const r = e.$$;
206
- r.fragment !== null && (gr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
206
+ r.fragment !== null && (xr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
207
207
  }
208
- function _r(e, t) {
209
- e.$$.dirty[0] === -1 && (q.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
208
+ function wr(e, t) {
209
+ e.$$.dirty[0] === -1 && (q.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
210
210
  }
211
- function Sr(e, t, r, n, i, o, s = null, l = [-1]) {
212
- const h = le;
211
+ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
212
+ const u = le;
213
213
  ae(e);
214
- const a = e.$$ = {
214
+ const l = e.$$ = {
215
215
  fragment: null,
216
216
  ctx: [],
217
217
  // state
218
218
  props: o,
219
219
  update: D,
220
220
  not_equal: i,
221
- bound: nt(),
221
+ bound: ot(),
222
222
  // lifecycle
223
223
  on_mount: [],
224
224
  on_destroy: [],
225
225
  on_disconnect: [],
226
226
  before_update: [],
227
227
  after_update: [],
228
- context: new Map(t.context || (h ? h.$$.context : [])),
228
+ context: new Map(t.context || (u ? u.$$.context : [])),
229
229
  // everything else
230
- callbacks: nt(),
231
- dirty: l,
230
+ callbacks: ot(),
231
+ dirty: a,
232
232
  skip_bound: !1,
233
- root: t.target || h.$$.root
233
+ root: t.target || u.$$.root
234
234
  };
235
- s && s(a.root);
236
- let u = !1;
237
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
238
- const x = m.length ? m[0] : c;
239
- return a.ctx && i(a.ctx[f], a.ctx[f] = x) && (!a.skip_bound && a.bound[f] && a.bound[f](x), u && _r(e, f)), c;
240
- }) : [], a.update(), u = !0, ce(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
235
+ s && s(l.root);
236
+ let h = !1;
237
+ if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
238
+ const g = p.length ? p[0] : f;
239
+ return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), h && wr(e, c)), f;
240
+ }) : [], l.update(), h = !0, ce(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
241
241
  if (t.hydrate) {
242
- const f = ur(t.target);
243
- a.fragment && a.fragment.l(f), f.forEach(fe);
242
+ const c = fr(t.target);
243
+ l.fragment && l.fragment.l(c), c.forEach(fe);
244
244
  } else
245
- a.fragment && a.fragment.c();
246
- t.intro && xr(e.$$.fragment), vr(e, t.target, t.anchor), k();
245
+ l.fragment && l.fragment.c();
246
+ t.intro && Er(e.$$.fragment), _r(e, t.target, t.anchor), G();
247
247
  }
248
- ae(h);
248
+ ae(u);
249
249
  }
250
- let Bt;
251
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
250
+ let Pt;
251
+ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
252
252
  constructor(t, r, n) {
253
253
  super();
254
254
  /** The Svelte component constructor */
@@ -285,31 +285,31 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
285
285
  }
286
286
  }
287
287
  connectedCallback() {
288
- return rt(this, null, function* () {
288
+ return it(this, null, function* () {
289
289
  if (this.$$cn = !0, !this.$$c) {
290
290
  let t = function(o) {
291
291
  return () => {
292
292
  let s;
293
293
  return {
294
294
  c: function() {
295
- s = A("slot"), o !== "default" && p(s, "name", o);
295
+ s = A("slot"), o !== "default" && m(s, "name", o);
296
296
  },
297
297
  /**
298
298
  * @param {HTMLElement} target
299
299
  * @param {HTMLElement} [anchor]
300
300
  */
301
- m: function(a, u) {
302
- ve(a, s, u);
301
+ m: function(l, h) {
302
+ ve(l, s, h);
303
303
  },
304
- d: function(a) {
305
- a && fe(s);
304
+ d: function(l) {
305
+ l && fe(s);
306
306
  }
307
307
  };
308
308
  };
309
309
  };
310
310
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
311
311
  return;
312
- const r = {}, n = cr(this);
312
+ const r = {}, n = mr(this);
313
313
  for (const o of this.$$s)
314
314
  o in n && (r[o] = [t(o)]);
315
315
  for (const o of this.attributes) {
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
320
320
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
321
321
  this.$$c = new this.$$ctor({
322
322
  target: this.shadowRoot || this,
323
- props: tt(et({}, this.$$d), {
323
+ props: nt(rt({}, this.$$d), {
324
324
  $$slots: r,
325
325
  $$scope: {
326
326
  ctx: []
@@ -344,8 +344,8 @@ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
344
344
  this.$$c.$$.after_update.push(i), i();
345
345
  for (const o in this.$$l)
346
346
  for (const s of this.$$l[o]) {
347
- const l = this.$$c.$on(o, s);
348
- this.$$l_u.set(s, l);
347
+ const a = this.$$c.$on(o, s);
348
+ this.$$l_u.set(s, a);
349
349
  }
350
350
  this.$$l = {};
351
351
  }
@@ -398,38 +398,38 @@ function de(e, t, r, n) {
398
398
  return t;
399
399
  }
400
400
  }
401
- function wr(e, t, r, n, i, o) {
402
- let s = class extends Bt {
401
+ function Ar(e, t, r, n, i, o) {
402
+ let s = class extends Pt {
403
403
  constructor() {
404
404
  super(e, r, i), this.$$p_d = t;
405
405
  }
406
406
  static get observedAttributes() {
407
407
  return Object.keys(t).map(
408
- (l) => (t[l].attribute || l).toLowerCase()
408
+ (a) => (t[a].attribute || a).toLowerCase()
409
409
  );
410
410
  }
411
411
  };
412
- return Object.keys(t).forEach((l) => {
413
- Object.defineProperty(s.prototype, l, {
412
+ return Object.keys(t).forEach((a) => {
413
+ Object.defineProperty(s.prototype, a, {
414
414
  get() {
415
- return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
415
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
416
416
  },
417
- set(h) {
418
- var a;
419
- h = de(l, h, t), this.$$d[l] = h, (a = this.$$c) == null || a.$set({ [l]: h });
417
+ set(u) {
418
+ var l;
419
+ u = de(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
420
420
  }
421
421
  });
422
- }), n.forEach((l) => {
423
- Object.defineProperty(s.prototype, l, {
422
+ }), n.forEach((a) => {
423
+ Object.defineProperty(s.prototype, a, {
424
424
  get() {
425
- var h;
426
- return (h = this.$$c) == null ? void 0 : h[l];
425
+ var u;
426
+ return (u = this.$$c) == null ? void 0 : u[a];
427
427
  }
428
428
  });
429
429
  }), e.element = /** @type {any} */
430
430
  s, s;
431
431
  }
432
- class Hr {
432
+ class Tr {
433
433
  constructor() {
434
434
  /**
435
435
  * ### PRIVATE API
@@ -450,7 +450,7 @@ class Hr {
450
450
  }
451
451
  /** @returns {void} */
452
452
  $destroy() {
453
- Er(this, 1), this.$destroy = D;
453
+ Sr(this, 1), this.$destroy = D;
454
454
  }
455
455
  /**
456
456
  * @template {Extract<keyof Events, string>} K
@@ -472,13 +472,36 @@ class Hr {
472
472
  * @returns {void}
473
473
  */
474
474
  $set(t) {
475
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
475
+ this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
476
+ }
477
+ }
478
+ const Br = "4";
479
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
480
+ function Nr(e, t) {
481
+ if (e) {
482
+ const r = document.createElement("style");
483
+ r.innerHTML = t, e.appendChild(r);
484
+ }
485
+ }
486
+ function Pr(e, t) {
487
+ const r = new URL(t);
488
+ fetch(r.href).then((n) => n.text()).then((n) => {
489
+ const i = document.createElement("style");
490
+ i.innerHTML = n, e && e.appendChild(i);
491
+ }).catch((n) => {
492
+ console.error("There was an error while trying to load client styling from URL", n);
493
+ });
494
+ }
495
+ function Or(e, t, r) {
496
+ if (window.emMessageBus) {
497
+ const n = document.createElement("style");
498
+ window.emMessageBus.subscribe(t, (i) => {
499
+ n.innerHTML = i, e && e.appendChild(n);
500
+ });
476
501
  }
477
502
  }
478
- const Ar = "4";
479
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
480
503
  const Q = [];
481
- function Tr(e, t) {
504
+ function Ir(e, t) {
482
505
  return {
483
506
  subscribe: Ee(e, t).subscribe
484
507
  };
@@ -486,25 +509,25 @@ function Tr(e, t) {
486
509
  function Ee(e, t = D) {
487
510
  let r;
488
511
  const n = /* @__PURE__ */ new Set();
489
- function i(l) {
490
- if (Ht(e, l) && (e = l, r)) {
491
- const h = !Q.length;
492
- for (const a of n)
493
- a[1](), Q.push(a, e);
494
- if (h) {
495
- for (let a = 0; a < Q.length; a += 2)
496
- Q[a][0](Q[a + 1]);
512
+ function i(a) {
513
+ if (Tt(e, a) && (e = a, r)) {
514
+ const u = !Q.length;
515
+ for (const l of n)
516
+ l[1](), Q.push(l, e);
517
+ if (u) {
518
+ for (let l = 0; l < Q.length; l += 2)
519
+ Q[l][0](Q[l + 1]);
497
520
  Q.length = 0;
498
521
  }
499
522
  }
500
523
  }
501
- function o(l) {
502
- i(l(e));
524
+ function o(a) {
525
+ i(a(e));
503
526
  }
504
- function s(l, h = D) {
505
- const a = [l, h];
506
- return n.add(a), n.size === 1 && (r = t(i, o) || D), l(e), () => {
507
- n.delete(a), n.size === 0 && r && (r(), r = null);
527
+ function s(a, u = D) {
528
+ const l = [a, u];
529
+ return n.add(l), n.size === 1 && (r = t(i, o) || D), a(e), () => {
530
+ n.delete(l), n.size === 0 && r && (r(), r = null);
508
531
  };
509
532
  }
510
533
  return { set: i, update: o, subscribe: s };
@@ -514,96 +537,96 @@ function ne(e, t, r) {
514
537
  if (!i.every(Boolean))
515
538
  throw new Error("derived() expects stores as input, got a falsy value");
516
539
  const o = t.length < 2;
517
- return Tr(r, (s, l) => {
518
- let h = !1;
519
- const a = [];
520
- let u = 0, f = D;
521
- const c = () => {
522
- if (u)
540
+ return Ir(r, (s, a) => {
541
+ let u = !1;
542
+ const l = [];
543
+ let h = 0, c = D;
544
+ const f = () => {
545
+ if (h)
523
546
  return;
524
- f();
525
- const x = t(n ? a[0] : a, s, l);
526
- o ? s(x) : f = We(x) ? x : D;
527
- }, m = i.map(
528
- (x, _) => At(
529
- x,
547
+ c();
548
+ const g = t(n ? l[0] : l, s, a);
549
+ o ? s(g) : c = We(g) ? g : D;
550
+ }, p = i.map(
551
+ (g, E) => Bt(
552
+ g,
530
553
  (N) => {
531
- a[_] = N, u &= ~(1 << _), h && c();
554
+ l[E] = N, h &= ~(1 << E), u && f();
532
555
  },
533
556
  () => {
534
- u |= 1 << _;
557
+ h |= 1 << E;
535
558
  }
536
559
  )
537
560
  );
538
- return h = !0, c(), function() {
539
- ce(m), f(), h = !1;
561
+ return u = !0, f(), function() {
562
+ ce(p), c(), u = !1;
540
563
  };
541
564
  });
542
565
  }
543
- function Br(e) {
566
+ function Cr(e) {
544
567
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
545
568
  }
546
- var Nr = function(t) {
547
- return Pr(t) && !Or(t);
569
+ var Lr = function(t) {
570
+ return Mr(t) && !Rr(t);
548
571
  };
549
- function Pr(e) {
572
+ function Mr(e) {
550
573
  return !!e && typeof e == "object";
551
574
  }
552
- function Or(e) {
575
+ function Rr(e) {
553
576
  var t = Object.prototype.toString.call(e);
554
- return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
577
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
555
578
  }
556
- var Ir = typeof Symbol == "function" && Symbol.for, Cr = Ir ? Symbol.for("react.element") : 60103;
557
- function Lr(e) {
558
- return e.$$typeof === Cr;
579
+ var $r = typeof Symbol == "function" && Symbol.for, Dr = $r ? Symbol.for("react.element") : 60103;
580
+ function Ur(e) {
581
+ return e.$$typeof === Dr;
559
582
  }
560
- function Mr(e) {
583
+ function Fr(e) {
561
584
  return Array.isArray(e) ? [] : {};
562
585
  }
563
- function he(e, t) {
564
- return t.clone !== !1 && t.isMergeableObject(e) ? K(Mr(e), e, t) : e;
586
+ function ue(e, t) {
587
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(Fr(e), e, t) : e;
565
588
  }
566
- function Rr(e, t, r) {
589
+ function Gr(e, t, r) {
567
590
  return e.concat(t).map(function(n) {
568
- return he(n, r);
591
+ return ue(n, r);
569
592
  });
570
593
  }
571
- function $r(e, t) {
594
+ function jr(e, t) {
572
595
  if (!t.customMerge)
573
596
  return K;
574
597
  var r = t.customMerge(e);
575
598
  return typeof r == "function" ? r : K;
576
599
  }
577
- function Dr(e) {
600
+ function kr(e) {
578
601
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
579
602
  return Object.propertyIsEnumerable.call(e, t);
580
603
  }) : [];
581
604
  }
582
- function at(e) {
583
- return Object.keys(e).concat(Dr(e));
605
+ function ut(e) {
606
+ return Object.keys(e).concat(kr(e));
584
607
  }
585
- function Nt(e, t) {
608
+ function Ot(e, t) {
586
609
  try {
587
610
  return t in e;
588
611
  } catch (r) {
589
612
  return !1;
590
613
  }
591
614
  }
592
- function Ur(e, t) {
593
- return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
615
+ function Vr(e, t) {
616
+ return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
594
617
  }
595
- function Fr(e, t, r) {
618
+ function zr(e, t, r) {
596
619
  var n = {};
597
- return r.isMergeableObject(e) && at(e).forEach(function(i) {
598
- n[i] = he(e[i], r);
599
- }), at(t).forEach(function(i) {
600
- Ur(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
620
+ return r.isMergeableObject(e) && ut(e).forEach(function(i) {
621
+ n[i] = ue(e[i], r);
622
+ }), ut(t).forEach(function(i) {
623
+ Vr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
601
624
  }), n;
602
625
  }
603
626
  function K(e, t, r) {
604
- r = r || {}, r.arrayMerge = r.arrayMerge || Rr, r.isMergeableObject = r.isMergeableObject || Nr, r.cloneUnlessOtherwiseSpecified = he;
627
+ r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Lr, r.cloneUnlessOtherwiseSpecified = ue;
605
628
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
606
- return o ? n ? r.arrayMerge(e, t, r) : Fr(e, t, r) : he(t, r);
629
+ return o ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ue(t, r);
607
630
  }
608
631
  K.all = function(t, r) {
609
632
  if (!Array.isArray(t))
@@ -612,8 +635,8 @@ K.all = function(t, r) {
612
635
  return K(n, i, r);
613
636
  }, {});
614
637
  };
615
- var Gr = K, jr = Gr;
616
- const kr = /* @__PURE__ */ Br(jr);
638
+ var Xr = K, Zr = Xr;
639
+ const Wr = /* @__PURE__ */ Cr(Zr);
617
640
  var Ue = function(e, t) {
618
641
  return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
619
642
  r.__proto__ = n;
@@ -630,16 +653,16 @@ function _e(e, t) {
630
653
  }
631
654
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
632
655
  }
633
- var y = function() {
634
- return y = Object.assign || function(t) {
656
+ var x = function() {
657
+ return x = Object.assign || function(t) {
635
658
  for (var r, n = 1, i = arguments.length; n < i; n++) {
636
659
  r = arguments[n];
637
660
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
638
661
  }
639
662
  return t;
640
- }, y.apply(this, arguments);
663
+ }, x.apply(this, arguments);
641
664
  };
642
- function Vr(e, t) {
665
+ function Jr(e, t) {
643
666
  var r = {};
644
667
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
645
668
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -653,102 +676,104 @@ function Ne(e, t, r) {
653
676
  return e.concat(o || Array.prototype.slice.call(t));
654
677
  }
655
678
  function Pe(e, t) {
656
- var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Jr, i = t && t.strategy ? t.strategy : Zr;
679
+ var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
657
680
  return i(e, {
658
681
  cache: r,
659
682
  serializer: n
660
683
  });
661
684
  }
662
- function zr(e) {
685
+ function Qr(e) {
663
686
  return e == null || typeof e == "number" || typeof e == "boolean";
664
687
  }
665
- function Xr(e, t, r, n) {
666
- var i = zr(n) ? n : r(n), o = t.get(i);
688
+ function It(e, t, r, n) {
689
+ var i = Qr(n) ? n : r(n), o = t.get(i);
667
690
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
668
691
  }
669
- function Pt(e, t, r) {
692
+ function Ct(e, t, r) {
670
693
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
671
694
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
672
695
  }
673
- function Ot(e, t, r, n, i) {
696
+ function Je(e, t, r, n, i) {
674
697
  return r.bind(t, e, n, i);
675
698
  }
676
- function Zr(e, t) {
677
- var r = e.length === 1 ? Xr : Pt;
678
- return Ot(e, this, r, t.cache.create(), t.serializer);
699
+ function qr(e, t) {
700
+ var r = e.length === 1 ? It : Ct;
701
+ return Je(e, this, r, t.cache.create(), t.serializer);
702
+ }
703
+ function Yr(e, t) {
704
+ return Je(e, this, Ct, t.cache.create(), t.serializer);
679
705
  }
680
- function Wr(e, t) {
681
- return Ot(e, this, Pt, t.cache.create(), t.serializer);
706
+ function Kr(e, t) {
707
+ return Je(e, this, It, t.cache.create(), t.serializer);
682
708
  }
683
- var Jr = function() {
709
+ var en = function() {
684
710
  return JSON.stringify(arguments);
685
- }, Qr = (
686
- /** @class */
687
- function() {
688
- function e() {
689
- this.cache = /* @__PURE__ */ Object.create(null);
690
- }
691
- return e.prototype.get = function(t) {
692
- return this.cache[t];
693
- }, e.prototype.set = function(t, r) {
694
- this.cache[t] = r;
695
- }, e;
696
- }()
697
- ), qr = {
711
+ };
712
+ function Qe() {
713
+ this.cache = /* @__PURE__ */ Object.create(null);
714
+ }
715
+ Qe.prototype.get = function(e) {
716
+ return this.cache[e];
717
+ };
718
+ Qe.prototype.set = function(e, t) {
719
+ this.cache[e] = t;
720
+ };
721
+ var tn = {
698
722
  create: function() {
699
- return new Qr();
723
+ return new Qe();
700
724
  }
701
725
  }, Oe = {
702
- variadic: Wr
726
+ variadic: Yr,
727
+ monadic: Kr
703
728
  }, b;
704
729
  (function(e) {
705
730
  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";
706
731
  })(b || (b = {}));
707
- var S;
732
+ var _;
708
733
  (function(e) {
709
734
  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";
710
- })(S || (S = {}));
735
+ })(_ || (_ = {}));
711
736
  var ee;
712
737
  (function(e) {
713
738
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
714
739
  })(ee || (ee = {}));
715
- function lt(e) {
716
- return e.type === S.literal;
717
- }
718
- function Yr(e) {
719
- return e.type === S.argument;
740
+ function ht(e) {
741
+ return e.type === _.literal;
720
742
  }
721
- function It(e) {
722
- return e.type === S.number;
723
- }
724
- function Ct(e) {
725
- return e.type === S.date;
743
+ function rn(e) {
744
+ return e.type === _.argument;
726
745
  }
727
746
  function Lt(e) {
728
- return e.type === S.time;
747
+ return e.type === _.number;
729
748
  }
730
749
  function Mt(e) {
731
- return e.type === S.select;
750
+ return e.type === _.date;
732
751
  }
733
752
  function Rt(e) {
734
- return e.type === S.plural;
735
- }
736
- function Kr(e) {
737
- return e.type === S.pound;
753
+ return e.type === _.time;
738
754
  }
739
755
  function $t(e) {
740
- return e.type === S.tag;
756
+ return e.type === _.select;
741
757
  }
742
758
  function Dt(e) {
759
+ return e.type === _.plural;
760
+ }
761
+ function nn(e) {
762
+ return e.type === _.pound;
763
+ }
764
+ function Ut(e) {
765
+ return e.type === _.tag;
766
+ }
767
+ function Ft(e) {
743
768
  return !!(e && typeof e == "object" && e.type === ee.number);
744
769
  }
745
770
  function Fe(e) {
746
771
  return !!(e && typeof e == "object" && e.type === ee.dateTime);
747
772
  }
748
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, en = /(?:[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;
749
- function tn(e) {
773
+ var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
774
+ function sn(e) {
750
775
  var t = {};
751
- return e.replace(en, function(r) {
776
+ return e.replace(on, function(r) {
752
777
  var n = r.length;
753
778
  switch (r[0]) {
754
779
  case "G":
@@ -837,36 +862,36 @@ function tn(e) {
837
862
  return "";
838
863
  }), t;
839
864
  }
840
- var rn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
841
- function nn(e) {
865
+ var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
866
+ function ln(e) {
842
867
  if (e.length === 0)
843
868
  throw new Error("Number skeleton cannot be empty");
844
- for (var t = e.split(rn).filter(function(c) {
845
- return c.length > 0;
869
+ for (var t = e.split(an).filter(function(f) {
870
+ return f.length > 0;
846
871
  }), r = [], n = 0, i = t; n < i.length; n++) {
847
872
  var o = i[n], s = o.split("/");
848
873
  if (s.length === 0)
849
874
  throw new Error("Invalid number skeleton");
850
- for (var l = s[0], h = s.slice(1), a = 0, u = h; a < u.length; a++) {
851
- var f = u[a];
852
- if (f.length === 0)
875
+ for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
876
+ var c = h[l];
877
+ if (c.length === 0)
853
878
  throw new Error("Invalid number skeleton");
854
879
  }
855
- r.push({ stem: l, options: h });
880
+ r.push({ stem: a, options: u });
856
881
  }
857
882
  return r;
858
883
  }
859
- function on(e) {
884
+ function un(e) {
860
885
  return e.replace(/^(.*?)-/, "");
861
886
  }
862
- var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
863
- function ut(e) {
887
+ var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
888
+ function ft(e) {
864
889
  var t = {};
865
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
890
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
866
891
  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)), "";
867
892
  }), t;
868
893
  }
869
- function jt(e) {
894
+ function Vt(e) {
870
895
  switch (e) {
871
896
  case "sign-auto":
872
897
  return {
@@ -906,7 +931,7 @@ function jt(e) {
906
931
  };
907
932
  }
908
933
  }
909
- function an(e) {
934
+ function cn(e) {
910
935
  var t;
911
936
  if (e[0] === "E" && e[1] === "E" ? (t = {
912
937
  notation: "engineering"
@@ -914,17 +939,17 @@ function an(e) {
914
939
  notation: "scientific"
915
940
  }, e = e.slice(1)), t) {
916
941
  var r = e.slice(0, 2);
917
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
942
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
918
943
  throw new Error("Malformed concise eng/scientific notation");
919
944
  t.minimumIntegerDigits = e.length;
920
945
  }
921
946
  return t;
922
947
  }
923
- function ct(e) {
924
- var t = {}, r = jt(e);
948
+ function mt(e) {
949
+ var t = {}, r = Vt(e);
925
950
  return r || t;
926
951
  }
927
- function ln(e) {
952
+ function fn(e) {
928
953
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
929
954
  var i = n[r];
930
955
  switch (i.stem) {
@@ -948,7 +973,7 @@ function ln(e) {
948
973
  continue;
949
974
  case "measure-unit":
950
975
  case "unit":
951
- t.style = "unit", t.unit = on(i.options[0]);
976
+ t.style = "unit", t.unit = un(i.options[0]);
952
977
  continue;
953
978
  case "compact-short":
954
979
  case "K":
@@ -959,13 +984,13 @@ function ln(e) {
959
984
  t.notation = "compact", t.compactDisplay = "long";
960
985
  continue;
961
986
  case "scientific":
962
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
963
- return y(y({}, h), ct(a));
987
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
988
+ return x(x({}, u), mt(l));
964
989
  }, {}));
965
990
  continue;
966
991
  case "engineering":
967
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
968
- return y(y({}, h), ct(a));
992
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
993
+ return x(x({}, u), mt(l));
969
994
  }, {}));
970
995
  continue;
971
996
  case "notation-simple":
@@ -1010,45 +1035,45 @@ function ln(e) {
1010
1035
  case "integer-width":
1011
1036
  if (i.options.length > 1)
1012
1037
  throw new RangeError("integer-width stems only accept a single optional option");
1013
- i.options[0].replace(sn, function(h, a, u, f, c, m) {
1014
- if (a)
1015
- t.minimumIntegerDigits = u.length;
1038
+ i.options[0].replace(hn, function(u, l, h, c, f, p) {
1039
+ if (l)
1040
+ t.minimumIntegerDigits = h.length;
1016
1041
  else {
1017
- if (f && c)
1042
+ if (c && f)
1018
1043
  throw new Error("We currently do not support maximum integer digits");
1019
- if (m)
1044
+ if (p)
1020
1045
  throw new Error("We currently do not support exact integer digits");
1021
1046
  }
1022
1047
  return "";
1023
1048
  });
1024
1049
  continue;
1025
1050
  }
1026
- if (Gt.test(i.stem)) {
1051
+ if (kt.test(i.stem)) {
1027
1052
  t.minimumIntegerDigits = i.stem.length;
1028
1053
  continue;
1029
1054
  }
1030
- if (ht.test(i.stem)) {
1055
+ if (ct.test(i.stem)) {
1031
1056
  if (i.options.length > 1)
1032
1057
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1033
- i.stem.replace(ht, function(h, a, u, f, c, m) {
1034
- return u === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1058
+ i.stem.replace(ct, function(u, l, h, c, f, p) {
1059
+ return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1035
1060
  });
1036
1061
  var o = i.options[0];
1037
- o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ut(o)));
1062
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ft(o)));
1038
1063
  continue;
1039
1064
  }
1040
- if (Ft.test(i.stem)) {
1041
- t = y(y({}, t), ut(i.stem));
1065
+ if (jt.test(i.stem)) {
1066
+ t = x(x({}, t), ft(i.stem));
1042
1067
  continue;
1043
1068
  }
1044
- var s = jt(i.stem);
1045
- s && (t = y(y({}, t), s));
1046
- var l = an(i.stem);
1047
- l && (t = y(y({}, t), l));
1069
+ var s = Vt(i.stem);
1070
+ s && (t = x(x({}, t), s));
1071
+ var a = cn(i.stem);
1072
+ a && (t = x(x({}, t), a));
1048
1073
  }
1049
1074
  return t;
1050
1075
  }
1051
- var me = {
1076
+ var pe = {
1052
1077
  "001": [
1053
1078
  "H",
1054
1079
  "h"
@@ -2463,22 +2488,22 @@ var me = {
2463
2488
  "h"
2464
2489
  ]
2465
2490
  };
2466
- function hn(e, t) {
2491
+ function mn(e, t) {
2467
2492
  for (var r = "", n = 0; n < e.length; n++) {
2468
2493
  var i = e.charAt(n);
2469
2494
  if (i === "j") {
2470
2495
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2471
2496
  o++, n++;
2472
- var s = 1 + (o & 1), l = o < 2 ? 1 : 3 + (o >> 1), h = "a", a = un(t);
2473
- for ((a == "H" || a == "k") && (l = 0); l-- > 0; )
2474
- r += h;
2497
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = pn(t);
2498
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2499
+ r += u;
2475
2500
  for (; s-- > 0; )
2476
- r = a + r;
2501
+ r = l + r;
2477
2502
  } else i === "J" ? r += "H" : r += i;
2478
2503
  }
2479
2504
  return r;
2480
2505
  }
2481
- function un(e) {
2506
+ function pn(e) {
2482
2507
  var t = e.hourCycle;
2483
2508
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2484
2509
  e.hourCycles && // @ts-ignore
@@ -2497,23 +2522,23 @@ function un(e) {
2497
2522
  }
2498
2523
  var r = e.language, n;
2499
2524
  r !== "root" && (n = e.maximize().region);
2500
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2525
+ var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2501
2526
  return i[0];
2502
2527
  }
2503
- var Ie, cn = new RegExp("^".concat(Ut.source, "*")), fn = new RegExp("".concat(Ut.source, "*$"));
2504
- function g(e, t) {
2528
+ var Ie, dn = new RegExp("^".concat(Gt.source, "*")), bn = new RegExp("".concat(Gt.source, "*$"));
2529
+ function y(e, t) {
2505
2530
  return { start: e, end: t };
2506
2531
  }
2507
- var pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, bn = !!String.prototype.codePointAt, gn = !!String.prototype.trimStart, yn = !!String.prototype.trimEnd, xn = !!Number.isSafeInteger, vn = xn ? Number.isSafeInteger : function(e) {
2532
+ var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, xn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, _n = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, wn = Sn ? Number.isSafeInteger : function(e) {
2508
2533
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2509
2534
  }, Ge = !0;
2510
2535
  try {
2511
- var En = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2512
- Ge = ((Ie = En.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2536
+ var Hn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2537
+ Ge = ((Ie = Hn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2513
2538
  } catch (e) {
2514
2539
  Ge = !1;
2515
2540
  }
2516
- var ft = pn ? (
2541
+ var pt = gn ? (
2517
2542
  // Native
2518
2543
  function(t, r, n) {
2519
2544
  return t.startsWith(r, n);
@@ -2523,7 +2548,7 @@ var ft = pn ? (
2523
2548
  function(t, r, n) {
2524
2549
  return t.slice(n, n + r.length) === r;
2525
2550
  }
2526
- ), je = mn ? String.fromCodePoint : (
2551
+ ), je = yn ? String.fromCodePoint : (
2527
2552
  // IE11
2528
2553
  function() {
2529
2554
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2535,19 +2560,19 @@ var ft = pn ? (
2535
2560
  }
2536
2561
  return n;
2537
2562
  }
2538
- ), pt = (
2563
+ ), dt = (
2539
2564
  // native
2540
- dn ? Object.fromEntries : (
2565
+ xn ? Object.fromEntries : (
2541
2566
  // Ponyfill
2542
2567
  function(t) {
2543
2568
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2544
- var o = i[n], s = o[0], l = o[1];
2545
- r[s] = l;
2569
+ var o = i[n], s = o[0], a = o[1];
2570
+ r[s] = a;
2546
2571
  }
2547
2572
  return r;
2548
2573
  }
2549
2574
  )
2550
- ), kt = bn ? (
2575
+ ), zt = vn ? (
2551
2576
  // Native
2552
2577
  function(t, r) {
2553
2578
  return t.codePointAt(r);
@@ -2561,7 +2586,7 @@ var ft = pn ? (
2561
2586
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2562
2587
  }
2563
2588
  }
2564
- ), _n = gn ? (
2589
+ ), An = En ? (
2565
2590
  // Native
2566
2591
  function(t) {
2567
2592
  return t.trimStart();
@@ -2569,9 +2594,9 @@ var ft = pn ? (
2569
2594
  ) : (
2570
2595
  // Ponyfill
2571
2596
  function(t) {
2572
- return t.replace(cn, "");
2597
+ return t.replace(dn, "");
2573
2598
  }
2574
- ), Sn = yn ? (
2599
+ ), Tn = _n ? (
2575
2600
  // Native
2576
2601
  function(t) {
2577
2602
  return t.trimEnd();
@@ -2579,32 +2604,32 @@ var ft = pn ? (
2579
2604
  ) : (
2580
2605
  // Ponyfill
2581
2606
  function(t) {
2582
- return t.replace(fn, "");
2607
+ return t.replace(bn, "");
2583
2608
  }
2584
2609
  );
2585
- function Vt(e, t) {
2610
+ function Xt(e, t) {
2586
2611
  return new RegExp(e, t);
2587
2612
  }
2588
2613
  var ke;
2589
2614
  if (Ge) {
2590
- var mt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2615
+ var bt = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2591
2616
  ke = function(t, r) {
2592
2617
  var n;
2593
- mt.lastIndex = r;
2594
- var i = mt.exec(t);
2618
+ bt.lastIndex = r;
2619
+ var i = bt.exec(t);
2595
2620
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2596
2621
  };
2597
2622
  } else
2598
2623
  ke = function(t, r) {
2599
2624
  for (var n = []; ; ) {
2600
- var i = kt(t, r);
2601
- if (i === void 0 || zt(i) || Tn(i))
2625
+ var i = zt(t, r);
2626
+ if (i === void 0 || Zt(i) || On(i))
2602
2627
  break;
2603
2628
  n.push(i), r += i >= 65536 ? 2 : 1;
2604
2629
  }
2605
2630
  return je.apply(void 0, n);
2606
2631
  };
2607
- var wn = (
2632
+ var Bn = (
2608
2633
  /** @class */
2609
2634
  function() {
2610
2635
  function e(t, r) {
@@ -2626,15 +2651,15 @@ var wn = (
2626
2651
  if (o === 125 && t > 0)
2627
2652
  break;
2628
2653
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2629
- var l = this.clonePosition();
2654
+ var a = this.clonePosition();
2630
2655
  this.bump(), i.push({
2631
- type: S.pound,
2632
- location: g(l, this.clonePosition())
2656
+ type: _.pound,
2657
+ location: y(a, this.clonePosition())
2633
2658
  });
2634
2659
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2635
2660
  if (n)
2636
2661
  break;
2637
- return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2662
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2638
2663
  } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2639
2664
  var s = this.parseTag(t, r);
2640
2665
  if (s.err)
@@ -2656,9 +2681,9 @@ var wn = (
2656
2681
  if (this.bumpSpace(), this.bumpIf("/>"))
2657
2682
  return {
2658
2683
  val: {
2659
- type: S.literal,
2684
+ type: _.literal,
2660
2685
  value: "<".concat(i, "/>"),
2661
- location: g(n, this.clonePosition())
2686
+ location: y(n, this.clonePosition())
2662
2687
  },
2663
2688
  err: null
2664
2689
  };
@@ -2666,27 +2691,27 @@ var wn = (
2666
2691
  var o = this.parseMessage(t + 1, r, !0);
2667
2692
  if (o.err)
2668
2693
  return o;
2669
- var s = o.val, l = this.clonePosition();
2694
+ var s = o.val, a = this.clonePosition();
2670
2695
  if (this.bumpIf("</")) {
2671
2696
  if (this.isEOF() || !Ve(this.char()))
2672
- return this.error(b.INVALID_TAG, g(l, this.clonePosition()));
2673
- var h = this.clonePosition(), a = this.parseTagName();
2674
- return i !== a ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2697
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2698
+ var u = this.clonePosition(), l = this.parseTagName();
2699
+ return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2675
2700
  val: {
2676
- type: S.tag,
2701
+ type: _.tag,
2677
2702
  value: i,
2678
2703
  children: s,
2679
- location: g(n, this.clonePosition())
2704
+ location: y(n, this.clonePosition())
2680
2705
  },
2681
2706
  err: null
2682
- } : this.error(b.INVALID_TAG, g(l, this.clonePosition())));
2707
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2683
2708
  } else
2684
- return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2709
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2685
2710
  } else
2686
- return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2711
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2687
2712
  }, e.prototype.parseTagName = function() {
2688
2713
  var t = this.offset();
2689
- for (this.bump(); !this.isEOF() && An(this.char()); )
2714
+ for (this.bump(); !this.isEOF() && Pn(this.char()); )
2690
2715
  this.bump();
2691
2716
  return this.message.slice(t, this.offset());
2692
2717
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2701,21 +2726,21 @@ var wn = (
2701
2726
  i += s;
2702
2727
  continue;
2703
2728
  }
2704
- var l = this.tryParseLeftAngleBracket();
2705
- if (l) {
2706
- i += l;
2729
+ var a = this.tryParseLeftAngleBracket();
2730
+ if (a) {
2731
+ i += a;
2707
2732
  continue;
2708
2733
  }
2709
2734
  break;
2710
2735
  }
2711
- var h = g(n, this.clonePosition());
2736
+ var u = y(n, this.clonePosition());
2712
2737
  return {
2713
- val: { type: S.literal, value: i, location: h },
2738
+ val: { type: _.literal, value: i, location: u },
2714
2739
  err: null
2715
2740
  };
2716
2741
  }, e.prototype.tryParseLeftAngleBracket = function() {
2717
2742
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2718
- !Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2743
+ !Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
2719
2744
  }, e.prototype.tryParseQuote = function(t) {
2720
2745
  if (this.isEOF() || this.char() !== 39)
2721
2746
  return null;
@@ -2758,91 +2783,91 @@ var wn = (
2758
2783
  }, e.prototype.parseArgument = function(t, r) {
2759
2784
  var n = this.clonePosition();
2760
2785
  if (this.bump(), this.bumpSpace(), this.isEOF())
2761
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2786
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2762
2787
  if (this.char() === 125)
2763
- return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2788
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2764
2789
  var i = this.parseIdentifierIfPossible().value;
2765
2790
  if (!i)
2766
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2791
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2767
2792
  if (this.bumpSpace(), this.isEOF())
2768
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2793
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2769
2794
  switch (this.char()) {
2770
2795
  case 125:
2771
2796
  return this.bump(), {
2772
2797
  val: {
2773
- type: S.argument,
2798
+ type: _.argument,
2774
2799
  // value does not include the opening and closing braces.
2775
2800
  value: i,
2776
- location: g(n, this.clonePosition())
2801
+ location: y(n, this.clonePosition())
2777
2802
  },
2778
2803
  err: null
2779
2804
  };
2780
2805
  case 44:
2781
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2806
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2782
2807
  default:
2783
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2808
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2784
2809
  }
2785
2810
  }, e.prototype.parseIdentifierIfPossible = function() {
2786
2811
  var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2787
2812
  this.bumpTo(i);
2788
- var o = this.clonePosition(), s = g(t, o);
2813
+ var o = this.clonePosition(), s = y(t, o);
2789
2814
  return { value: n, location: s };
2790
2815
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2791
- var o, s = this.clonePosition(), l = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2792
- switch (l) {
2816
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2817
+ switch (a) {
2793
2818
  case "":
2794
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, h));
2819
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, u));
2795
2820
  case "number":
2796
2821
  case "date":
2797
2822
  case "time": {
2798
2823
  this.bumpSpace();
2799
- var a = null;
2824
+ var l = null;
2800
2825
  if (this.bumpIf(",")) {
2801
2826
  this.bumpSpace();
2802
- var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2803
- if (f.err)
2804
- return f;
2805
- var c = Sn(f.val);
2806
- if (c.length === 0)
2807
- return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2808
- var m = g(u, this.clonePosition());
2809
- a = { style: c, styleLocation: m };
2827
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2828
+ if (c.err)
2829
+ return c;
2830
+ var f = Tn(c.val);
2831
+ if (f.length === 0)
2832
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2833
+ var p = y(h, this.clonePosition());
2834
+ l = { style: f, styleLocation: p };
2810
2835
  }
2811
- var x = this.tryParseArgumentClose(i);
2812
- if (x.err)
2813
- return x;
2814
- var _ = g(i, this.clonePosition());
2815
- if (a && ft(a == null ? void 0 : a.style, "::", 0)) {
2816
- var N = _n(a.style.slice(2));
2817
- if (l === "number") {
2818
- var f = this.parseNumberSkeletonFromString(N, a.styleLocation);
2819
- return f.err ? f : {
2820
- val: { type: S.number, value: n, location: _, style: f.val },
2836
+ var g = this.tryParseArgumentClose(i);
2837
+ if (g.err)
2838
+ return g;
2839
+ var E = y(i, this.clonePosition());
2840
+ if (l && pt(l == null ? void 0 : l.style, "::", 0)) {
2841
+ var N = An(l.style.slice(2));
2842
+ if (a === "number") {
2843
+ var c = this.parseNumberSkeletonFromString(N, l.styleLocation);
2844
+ return c.err ? c : {
2845
+ val: { type: _.number, value: n, location: E, style: c.val },
2821
2846
  err: null
2822
2847
  };
2823
2848
  } else {
2824
2849
  if (N.length === 0)
2825
- return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
2826
- var L = N;
2827
- this.locale && (L = hn(N, this.locale));
2828
- var c = {
2850
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2851
+ var P = N;
2852
+ this.locale && (P = mn(N, this.locale));
2853
+ var f = {
2829
2854
  type: ee.dateTime,
2830
- pattern: L,
2831
- location: a.styleLocation,
2832
- parsedOptions: this.shouldParseSkeletons ? tn(L) : {}
2833
- }, M = l === "date" ? S.date : S.time;
2855
+ pattern: P,
2856
+ location: l.styleLocation,
2857
+ parsedOptions: this.shouldParseSkeletons ? sn(P) : {}
2858
+ }, M = a === "date" ? _.date : _.time;
2834
2859
  return {
2835
- val: { type: M, value: n, location: _, style: c },
2860
+ val: { type: M, value: n, location: E, style: f },
2836
2861
  err: null
2837
2862
  };
2838
2863
  }
2839
2864
  }
2840
2865
  return {
2841
2866
  val: {
2842
- type: l === "number" ? S.number : l === "date" ? S.date : S.time,
2867
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2843
2868
  value: n,
2844
- location: _,
2845
- style: (o = a == null ? void 0 : a.style) !== null && o !== void 0 ? o : null
2869
+ location: E,
2870
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2846
2871
  },
2847
2872
  err: null
2848
2873
  };
@@ -2852,50 +2877,50 @@ var wn = (
2852
2877
  case "select": {
2853
2878
  var B = this.clonePosition();
2854
2879
  if (this.bumpSpace(), !this.bumpIf(","))
2855
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(B, y({}, B)));
2880
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
2856
2881
  this.bumpSpace();
2857
- var I = this.parseIdentifierIfPossible(), H = 0;
2858
- if (l !== "select" && I.value === "offset") {
2882
+ var C = this.parseIdentifierIfPossible(), H = 0;
2883
+ if (a !== "select" && C.value === "offset") {
2859
2884
  if (!this.bumpIf(":"))
2860
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2885
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2861
2886
  this.bumpSpace();
2862
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2863
- if (f.err)
2864
- return f;
2865
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), H = f.val;
2887
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2888
+ if (c.err)
2889
+ return c;
2890
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), H = c.val;
2866
2891
  }
2867
- var C = this.tryParsePluralOrSelectOptions(t, l, r, I);
2868
- if (C.err)
2869
- return C;
2870
- var x = this.tryParseArgumentClose(i);
2871
- if (x.err)
2872
- return x;
2873
- var U = g(i, this.clonePosition());
2874
- return l === "select" ? {
2892
+ var L = this.tryParsePluralOrSelectOptions(t, a, r, C);
2893
+ if (L.err)
2894
+ return L;
2895
+ var g = this.tryParseArgumentClose(i);
2896
+ if (g.err)
2897
+ return g;
2898
+ var U = y(i, this.clonePosition());
2899
+ return a === "select" ? {
2875
2900
  val: {
2876
- type: S.select,
2901
+ type: _.select,
2877
2902
  value: n,
2878
- options: pt(C.val),
2903
+ options: dt(L.val),
2879
2904
  location: U
2880
2905
  },
2881
2906
  err: null
2882
2907
  } : {
2883
2908
  val: {
2884
- type: S.plural,
2909
+ type: _.plural,
2885
2910
  value: n,
2886
- options: pt(C.val),
2911
+ options: dt(L.val),
2887
2912
  offset: H,
2888
- pluralType: l === "plural" ? "cardinal" : "ordinal",
2913
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2889
2914
  location: U
2890
2915
  },
2891
2916
  err: null
2892
2917
  };
2893
2918
  }
2894
2919
  default:
2895
- return this.error(b.INVALID_ARGUMENT_TYPE, g(s, h));
2920
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(s, u));
2896
2921
  }
2897
2922
  }, e.prototype.tryParseArgumentClose = function(t) {
2898
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2923
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2899
2924
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2900
2925
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2901
2926
  var n = this.char();
@@ -2904,7 +2929,7 @@ var wn = (
2904
2929
  this.bump();
2905
2930
  var i = this.clonePosition();
2906
2931
  if (!this.bumpUntil("'"))
2907
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
2932
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2908
2933
  this.bump();
2909
2934
  break;
2910
2935
  }
@@ -2934,7 +2959,7 @@ var wn = (
2934
2959
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2935
2960
  var n = [];
2936
2961
  try {
2937
- n = nn(t);
2962
+ n = ln(t);
2938
2963
  } catch (i) {
2939
2964
  return this.error(b.INVALID_NUMBER_SKELETON, r);
2940
2965
  }
@@ -2943,55 +2968,55 @@ var wn = (
2943
2968
  type: ee.number,
2944
2969
  tokens: n,
2945
2970
  location: r,
2946
- parsedOptions: this.shouldParseSkeletons ? ln(n) : {}
2971
+ parsedOptions: this.shouldParseSkeletons ? fn(n) : {}
2947
2972
  },
2948
2973
  err: null
2949
2974
  };
2950
2975
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2951
- for (var o, s = !1, l = [], h = /* @__PURE__ */ new Set(), a = i.value, u = i.location; ; ) {
2952
- if (a.length === 0) {
2953
- var f = this.clonePosition();
2976
+ for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2977
+ if (l.length === 0) {
2978
+ var c = this.clonePosition();
2954
2979
  if (r !== "select" && this.bumpIf("=")) {
2955
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2956
- if (c.err)
2957
- return c;
2958
- u = g(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2980
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2981
+ if (f.err)
2982
+ return f;
2983
+ h = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
2959
2984
  } else
2960
2985
  break;
2961
2986
  }
2962
- if (h.has(a))
2963
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2964
- a === "other" && (s = !0), this.bumpSpace();
2965
- var m = this.clonePosition();
2987
+ if (u.has(l))
2988
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2989
+ l === "other" && (s = !0), this.bumpSpace();
2990
+ var p = this.clonePosition();
2966
2991
  if (!this.bumpIf("{"))
2967
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
2968
- var x = this.parseMessage(t + 1, r, n);
2969
- if (x.err)
2970
- return x;
2971
- var _ = this.tryParseArgumentClose(m);
2972
- if (_.err)
2973
- return _;
2974
- l.push([
2975
- a,
2992
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
2993
+ var g = this.parseMessage(t + 1, r, n);
2994
+ if (g.err)
2995
+ return g;
2996
+ var E = this.tryParseArgumentClose(p);
2997
+ if (E.err)
2998
+ return E;
2999
+ a.push([
3000
+ l,
2976
3001
  {
2977
- value: x.val,
2978
- location: g(m, this.clonePosition())
3002
+ value: g.val,
3003
+ location: y(p, this.clonePosition())
2979
3004
  }
2980
- ]), h.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, u = o.location;
3005
+ ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
2981
3006
  }
2982
- return l.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
3007
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2983
3008
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2984
3009
  var n = 1, i = this.clonePosition();
2985
3010
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2986
3011
  for (var o = !1, s = 0; !this.isEOF(); ) {
2987
- var l = this.char();
2988
- if (l >= 48 && l <= 57)
2989
- o = !0, s = s * 10 + (l - 48), this.bump();
3012
+ var a = this.char();
3013
+ if (a >= 48 && a <= 57)
3014
+ o = !0, s = s * 10 + (a - 48), this.bump();
2990
3015
  else
2991
3016
  break;
2992
3017
  }
2993
- var h = g(i, this.clonePosition());
2994
- return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3018
+ var u = y(i, this.clonePosition());
3019
+ return o ? (s *= n, wn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
2995
3020
  }, e.prototype.offset = function() {
2996
3021
  return this.position.offset;
2997
3022
  }, e.prototype.isEOF = function() {
@@ -3006,7 +3031,7 @@ var wn = (
3006
3031
  var t = this.position.offset;
3007
3032
  if (t >= this.message.length)
3008
3033
  throw Error("out of bound");
3009
- var r = kt(this.message, t);
3034
+ var r = zt(this.message, t);
3010
3035
  if (r === void 0)
3011
3036
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3012
3037
  return r;
@@ -3025,7 +3050,7 @@ var wn = (
3025
3050
  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);
3026
3051
  }
3027
3052
  }, e.prototype.bumpIf = function(t) {
3028
- if (ft(this.message, t, this.offset())) {
3053
+ if (pt(this.message, t, this.offset())) {
3029
3054
  for (var r = 0; r < t.length; r++)
3030
3055
  this.bump();
3031
3056
  return !0;
@@ -3047,7 +3072,7 @@ var wn = (
3047
3072
  break;
3048
3073
  }
3049
3074
  }, e.prototype.bumpSpace = function() {
3050
- for (; !this.isEOF() && zt(this.char()); )
3075
+ for (; !this.isEOF() && Zt(this.char()); )
3051
3076
  this.bump();
3052
3077
  }, e.prototype.peek = function() {
3053
3078
  if (this.isEOF())
@@ -3060,29 +3085,29 @@ var wn = (
3060
3085
  function Ve(e) {
3061
3086
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3062
3087
  }
3063
- function Hn(e) {
3088
+ function Nn(e) {
3064
3089
  return Ve(e) || e === 47;
3065
3090
  }
3066
- function An(e) {
3091
+ function Pn(e) {
3067
3092
  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;
3068
3093
  }
3069
- function zt(e) {
3094
+ function Zt(e) {
3070
3095
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3071
3096
  }
3072
- function Tn(e) {
3097
+ function On(e) {
3073
3098
  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;
3074
3099
  }
3075
3100
  function ze(e) {
3076
3101
  e.forEach(function(t) {
3077
- if (delete t.location, Mt(t) || Rt(t))
3102
+ if (delete t.location, $t(t) || Dt(t))
3078
3103
  for (var r in t.options)
3079
3104
  delete t.options[r].location, ze(t.options[r].value);
3080
- else It(t) && Dt(t.style) || (Ct(t) || Lt(t)) && Fe(t.style) ? delete t.style.location : $t(t) && ze(t.children);
3105
+ else Lt(t) && Ft(t.style) || (Mt(t) || Rt(t)) && Fe(t.style) ? delete t.style.location : Ut(t) && ze(t.children);
3081
3106
  });
3082
3107
  }
3083
- function Bn(e, t) {
3084
- t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3085
- var r = new wn(e, t).parse();
3108
+ function In(e, t) {
3109
+ t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3110
+ var r = new Bn(e, t).parse();
3086
3111
  if (r.err) {
3087
3112
  var n = SyntaxError(b[r.err.kind]);
3088
3113
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3105,7 +3130,7 @@ var Se = (
3105
3130
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3106
3131
  }, t;
3107
3132
  }(Error)
3108
- ), dt = (
3133
+ ), gt = (
3109
3134
  /** @class */
3110
3135
  function(e) {
3111
3136
  _e(t, e);
@@ -3114,7 +3139,7 @@ var Se = (
3114
3139
  }
3115
3140
  return t;
3116
3141
  }(Se)
3117
- ), Nn = (
3142
+ ), Cn = (
3118
3143
  /** @class */
3119
3144
  function(e) {
3120
3145
  _e(t, e);
@@ -3123,7 +3148,7 @@ var Se = (
3123
3148
  }
3124
3149
  return t;
3125
3150
  }(Se)
3126
- ), Pn = (
3151
+ ), Ln = (
3127
3152
  /** @class */
3128
3153
  function(e) {
3129
3154
  _e(t, e);
@@ -3132,126 +3157,126 @@ var Se = (
3132
3157
  }
3133
3158
  return t;
3134
3159
  }(Se)
3135
- ), O;
3160
+ ), I;
3136
3161
  (function(e) {
3137
3162
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3138
- })(O || (O = {}));
3139
- function On(e) {
3163
+ })(I || (I = {}));
3164
+ function Mn(e) {
3140
3165
  return e.length < 2 ? e : e.reduce(function(t, r) {
3141
3166
  var n = t[t.length - 1];
3142
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3167
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3143
3168
  }, []);
3144
3169
  }
3145
- function In(e) {
3170
+ function Rn(e) {
3146
3171
  return typeof e == "function";
3147
3172
  }
3148
3173
  function be(e, t, r, n, i, o, s) {
3149
- if (e.length === 1 && lt(e[0]))
3174
+ if (e.length === 1 && ht(e[0]))
3150
3175
  return [
3151
3176
  {
3152
- type: O.literal,
3177
+ type: I.literal,
3153
3178
  value: e[0].value
3154
3179
  }
3155
3180
  ];
3156
- for (var l = [], h = 0, a = e; h < a.length; h++) {
3157
- var u = a[h];
3158
- if (lt(u)) {
3159
- l.push({
3160
- type: O.literal,
3161
- value: u.value
3181
+ for (var a = [], u = 0, l = e; u < l.length; u++) {
3182
+ var h = l[u];
3183
+ if (ht(h)) {
3184
+ a.push({
3185
+ type: I.literal,
3186
+ value: h.value
3162
3187
  });
3163
3188
  continue;
3164
3189
  }
3165
- if (Kr(u)) {
3166
- typeof o == "number" && l.push({
3167
- type: O.literal,
3190
+ if (nn(h)) {
3191
+ typeof o == "number" && a.push({
3192
+ type: I.literal,
3168
3193
  value: r.getNumberFormat(t).format(o)
3169
3194
  });
3170
3195
  continue;
3171
3196
  }
3172
- var f = u.value;
3173
- if (!(i && f in i))
3174
- throw new Pn(f, s);
3175
- var c = i[f];
3176
- if (Yr(u)) {
3177
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), l.push({
3178
- type: typeof c == "string" ? O.literal : O.object,
3179
- value: c
3197
+ var c = h.value;
3198
+ if (!(i && c in i))
3199
+ throw new Ln(c, s);
3200
+ var f = i[c];
3201
+ if (rn(h)) {
3202
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3203
+ type: typeof f == "string" ? I.literal : I.object,
3204
+ value: f
3180
3205
  });
3181
3206
  continue;
3182
3207
  }
3183
- if (Ct(u)) {
3184
- var m = typeof u.style == "string" ? n.date[u.style] : Fe(u.style) ? u.style.parsedOptions : void 0;
3185
- l.push({
3186
- type: O.literal,
3187
- value: r.getDateTimeFormat(t, m).format(c)
3208
+ if (Mt(h)) {
3209
+ var p = typeof h.style == "string" ? n.date[h.style] : Fe(h.style) ? h.style.parsedOptions : void 0;
3210
+ a.push({
3211
+ type: I.literal,
3212
+ value: r.getDateTimeFormat(t, p).format(f)
3188
3213
  });
3189
3214
  continue;
3190
3215
  }
3191
- if (Lt(u)) {
3192
- var m = typeof u.style == "string" ? n.time[u.style] : Fe(u.style) ? u.style.parsedOptions : n.time.medium;
3193
- l.push({
3194
- type: O.literal,
3195
- value: r.getDateTimeFormat(t, m).format(c)
3216
+ if (Rt(h)) {
3217
+ var p = typeof h.style == "string" ? n.time[h.style] : Fe(h.style) ? h.style.parsedOptions : n.time.medium;
3218
+ a.push({
3219
+ type: I.literal,
3220
+ value: r.getDateTimeFormat(t, p).format(f)
3196
3221
  });
3197
3222
  continue;
3198
3223
  }
3199
- if (It(u)) {
3200
- var m = typeof u.style == "string" ? n.number[u.style] : Dt(u.style) ? u.style.parsedOptions : void 0;
3201
- m && m.scale && (c = c * (m.scale || 1)), l.push({
3202
- type: O.literal,
3203
- value: r.getNumberFormat(t, m).format(c)
3224
+ if (Lt(h)) {
3225
+ var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3226
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3227
+ type: I.literal,
3228
+ value: r.getNumberFormat(t, p).format(f)
3204
3229
  });
3205
3230
  continue;
3206
3231
  }
3207
- if ($t(u)) {
3208
- var x = u.children, _ = u.value, N = i[_];
3209
- if (!In(N))
3210
- throw new Nn(_, "function", s);
3211
- var L = be(x, t, r, n, i, o), M = N(L.map(function(H) {
3232
+ if (Ut(h)) {
3233
+ var g = h.children, E = h.value, N = i[E];
3234
+ if (!Rn(N))
3235
+ throw new Cn(E, "function", s);
3236
+ var P = be(g, t, r, n, i, o), M = N(P.map(function(H) {
3212
3237
  return H.value;
3213
3238
  }));
3214
- Array.isArray(M) || (M = [M]), l.push.apply(l, M.map(function(H) {
3239
+ Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(H) {
3215
3240
  return {
3216
- type: typeof H == "string" ? O.literal : O.object,
3241
+ type: typeof H == "string" ? I.literal : I.object,
3217
3242
  value: H
3218
3243
  };
3219
3244
  }));
3220
3245
  }
3221
- if (Mt(u)) {
3222
- var B = u.options[c] || u.options.other;
3246
+ if ($t(h)) {
3247
+ var B = h.options[f] || h.options.other;
3223
3248
  if (!B)
3224
- throw new dt(u.value, c, Object.keys(u.options), s);
3225
- l.push.apply(l, be(B.value, t, r, n, i));
3249
+ throw new gt(h.value, f, Object.keys(h.options), s);
3250
+ a.push.apply(a, be(B.value, t, r, n, i));
3226
3251
  continue;
3227
3252
  }
3228
- if (Rt(u)) {
3229
- var B = u.options["=".concat(c)];
3253
+ if (Dt(h)) {
3254
+ var B = h.options["=".concat(f)];
3230
3255
  if (!B) {
3231
3256
  if (!Intl.PluralRules)
3232
3257
  throw new Se(`Intl.PluralRules is not available in this environment.
3233
3258
  Try polyfilling it using "@formatjs/intl-pluralrules"
3234
3259
  `, te.MISSING_INTL_API, s);
3235
- var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3236
- B = u.options[I] || u.options.other;
3260
+ var C = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3261
+ B = h.options[C] || h.options.other;
3237
3262
  }
3238
3263
  if (!B)
3239
- throw new dt(u.value, c, Object.keys(u.options), s);
3240
- l.push.apply(l, be(B.value, t, r, n, i, c - (u.offset || 0)));
3264
+ throw new gt(h.value, f, Object.keys(h.options), s);
3265
+ a.push.apply(a, be(B.value, t, r, n, i, f - (h.offset || 0)));
3241
3266
  continue;
3242
3267
  }
3243
3268
  }
3244
- return On(l);
3269
+ return Mn(a);
3245
3270
  }
3246
- function Cn(e, t) {
3247
- return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3248
- return r[n] = y(y({}, e[n]), t[n] || {}), r;
3271
+ function $n(e, t) {
3272
+ return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3273
+ return r[n] = x(x({}, e[n]), t[n] || {}), r;
3249
3274
  }, {})) : e;
3250
3275
  }
3251
- function Ln(e, t) {
3276
+ function Dn(e, t) {
3252
3277
  return t ? Object.keys(e).reduce(function(r, n) {
3253
- return r[n] = Cn(e[n], t[n]), r;
3254
- }, y({}, e)) : e;
3278
+ return r[n] = $n(e[n], t[n]), r;
3279
+ }, x({}, e)) : e;
3255
3280
  }
3256
3281
  function Ce(e) {
3257
3282
  return {
@@ -3267,7 +3292,7 @@ function Ce(e) {
3267
3292
  }
3268
3293
  };
3269
3294
  }
3270
- function Mn(e) {
3295
+ function Un(e) {
3271
3296
  return e === void 0 && (e = {
3272
3297
  number: {},
3273
3298
  dateTime: {},
@@ -3299,7 +3324,7 @@ function Mn(e) {
3299
3324
  })
3300
3325
  };
3301
3326
  }
3302
- var Rn = (
3327
+ var Fn = (
3303
3328
  /** @class */
3304
3329
  function() {
3305
3330
  function e(t, r, n, i) {
@@ -3309,20 +3334,20 @@ var Rn = (
3309
3334
  number: {},
3310
3335
  dateTime: {},
3311
3336
  pluralRules: {}
3312
- }, this.format = function(h) {
3313
- var a = o.formatToParts(h);
3314
- if (a.length === 1)
3315
- return a[0].value;
3316
- var u = a.reduce(function(f, c) {
3317
- return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3337
+ }, this.format = function(u) {
3338
+ var l = o.formatToParts(u);
3339
+ if (l.length === 1)
3340
+ return l[0].value;
3341
+ var h = l.reduce(function(c, f) {
3342
+ return !c.length || f.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3318
3343
  }, []);
3319
- return u.length <= 1 ? u[0] || "" : u;
3320
- }, this.formatToParts = function(h) {
3321
- return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3344
+ return h.length <= 1 ? h[0] || "" : h;
3345
+ }, this.formatToParts = function(u) {
3346
+ return be(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3322
3347
  }, this.resolvedOptions = function() {
3323
- var h;
3348
+ var u;
3324
3349
  return {
3325
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3350
+ locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3326
3351
  };
3327
3352
  }, this.getAst = function() {
3328
3353
  return o.ast;
@@ -3331,13 +3356,13 @@ var Rn = (
3331
3356
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3332
3357
  var s = i || {};
3333
3358
  s.formatters;
3334
- var l = Vr(s, ["formatters"]);
3335
- this.ast = e.__parse(t, y(y({}, l), { locale: this.resolvedLocale }));
3359
+ var a = Jr(s, ["formatters"]);
3360
+ this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
3336
3361
  } else
3337
3362
  this.ast = t;
3338
3363
  if (!Array.isArray(this.ast))
3339
3364
  throw new TypeError("A message must be provided as a String or AST.");
3340
- this.formats = Ln(e.formats, n), this.formatters = i && i.formatters || Mn(this.formatterCache);
3365
+ this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Un(this.formatterCache);
3341
3366
  }
3342
3367
  return Object.defineProperty(e, "defaultLocale", {
3343
3368
  get: function() {
@@ -3350,7 +3375,7 @@ var Rn = (
3350
3375
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3351
3376
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3352
3377
  }
3353
- }, e.__parse = Bn, e.formats = {
3378
+ }, e.__parse = In, e.formats = {
3354
3379
  number: {
3355
3380
  integer: {
3356
3381
  maximumFractionDigits: 0
@@ -3411,7 +3436,7 @@ var Rn = (
3411
3436
  }, e;
3412
3437
  }()
3413
3438
  );
3414
- function $n(e, t) {
3439
+ function Gn(e, t) {
3415
3440
  if (t == null)
3416
3441
  return;
3417
3442
  if (t in e)
@@ -3432,60 +3457,60 @@ function $n(e, t) {
3432
3457
  n = void 0;
3433
3458
  return n;
3434
3459
  }
3435
- const G = {}, Dn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Xt = (e, t) => {
3460
+ const j = {}, jn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Wt = (e, t) => {
3436
3461
  if (t == null)
3437
3462
  return;
3438
- if (t in G && e in G[t])
3439
- return G[t][e];
3463
+ if (t in j && e in j[t])
3464
+ return j[t][e];
3440
3465
  const r = we(t);
3441
3466
  for (let n = 0; n < r.length; n++) {
3442
- const i = r[n], o = Fn(i, e);
3467
+ const i = r[n], o = Vn(i, e);
3443
3468
  if (o)
3444
- return Dn(e, t, o);
3469
+ return jn(e, t, o);
3445
3470
  }
3446
3471
  };
3447
- let Je;
3472
+ let qe;
3448
3473
  const ie = Ee({});
3449
- function Un(e) {
3450
- return Je[e] || null;
3474
+ function kn(e) {
3475
+ return qe[e] || null;
3451
3476
  }
3452
- function Zt(e) {
3453
- return e in Je;
3477
+ function Jt(e) {
3478
+ return e in qe;
3454
3479
  }
3455
- function Fn(e, t) {
3456
- if (!Zt(e))
3480
+ function Vn(e, t) {
3481
+ if (!Jt(e))
3457
3482
  return null;
3458
- const r = Un(e);
3459
- return $n(r, t);
3483
+ const r = kn(e);
3484
+ return Gn(r, t);
3460
3485
  }
3461
- function Gn(e) {
3486
+ function zn(e) {
3462
3487
  if (e == null)
3463
3488
  return;
3464
3489
  const t = we(e);
3465
3490
  for (let r = 0; r < t.length; r++) {
3466
3491
  const n = t[r];
3467
- if (Zt(n))
3492
+ if (Jt(n))
3468
3493
  return n;
3469
3494
  }
3470
3495
  }
3471
- function Wt(e, ...t) {
3472
- delete G[e], ie.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
3496
+ function Qt(e, ...t) {
3497
+ delete j[e], ie.update((r) => (r[e] = Wr.all([r[e] || {}, ...t]), r));
3473
3498
  }
3474
3499
  ne(
3475
3500
  [ie],
3476
3501
  ([e]) => Object.keys(e)
3477
3502
  );
3478
- ie.subscribe((e) => Je = e);
3503
+ ie.subscribe((e) => qe = e);
3479
3504
  const ge = {};
3480
- function jn(e, t) {
3505
+ function Xn(e, t) {
3481
3506
  ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3482
3507
  }
3483
- function Jt(e) {
3508
+ function qt(e) {
3484
3509
  return ge[e];
3485
3510
  }
3486
- function kn(e) {
3511
+ function Zn(e) {
3487
3512
  return we(e).map((t) => {
3488
- const r = Jt(t);
3513
+ const r = qt(t);
3489
3514
  return [t, r ? [...r] : []];
3490
3515
  }).filter(([, t]) => t.length > 0);
3491
3516
  }
@@ -3493,31 +3518,31 @@ function Xe(e) {
3493
3518
  return e == null ? !1 : we(e).some(
3494
3519
  (t) => {
3495
3520
  var r;
3496
- return (r = Jt(t)) == null ? void 0 : r.size;
3521
+ return (r = qt(t)) == null ? void 0 : r.size;
3497
3522
  }
3498
3523
  );
3499
3524
  }
3500
- function Vn(e, t) {
3525
+ function Wn(e, t) {
3501
3526
  return Promise.all(
3502
- t.map((n) => (jn(e, n), n().then((i) => i.default || i)))
3503
- ).then((n) => Wt(e, ...n));
3527
+ t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
3528
+ ).then((n) => Qt(e, ...n));
3504
3529
  }
3505
3530
  const se = {};
3506
- function Qt(e) {
3531
+ function Yt(e) {
3507
3532
  if (!Xe(e))
3508
3533
  return e in se ? se[e] : Promise.resolve();
3509
- const t = kn(e);
3534
+ const t = Zn(e);
3510
3535
  return se[e] = Promise.all(
3511
3536
  t.map(
3512
- ([r, n]) => Vn(r, n)
3537
+ ([r, n]) => Wn(r, n)
3513
3538
  )
3514
3539
  ).then(() => {
3515
3540
  if (Xe(e))
3516
- return Qt(e);
3541
+ return Yt(e);
3517
3542
  delete se[e];
3518
3543
  }), se[e];
3519
3544
  }
3520
- const zn = {
3545
+ const Jn = {
3521
3546
  number: {
3522
3547
  scientific: { notation: "scientific" },
3523
3548
  engineering: { notation: "engineering" },
@@ -3546,34 +3571,34 @@ const zn = {
3546
3571
  timeZoneName: "short"
3547
3572
  }
3548
3573
  }
3549
- }, Xn = {
3574
+ }, Qn = {
3550
3575
  fallbackLocale: null,
3551
3576
  loadingDelay: 200,
3552
- formats: zn,
3577
+ formats: Jn,
3553
3578
  warnOnMissingMessages: !0,
3554
3579
  handleMissingMessage: void 0,
3555
3580
  ignoreTag: !0
3556
- }, Zn = Xn;
3581
+ }, qn = Qn;
3557
3582
  function re() {
3558
- return Zn;
3583
+ return qn;
3559
3584
  }
3560
3585
  const Le = Ee(!1);
3561
- var Wn = Object.defineProperty, Jn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kn = (e, t) => {
3586
+ var Yn = Object.defineProperty, Kn = Object.defineProperties, ei = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ri = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ni = (e, t) => {
3562
3587
  for (var r in t || (t = {}))
3563
- qn.call(t, r) && gt(e, r, t[r]);
3564
- if (bt)
3565
- for (var r of bt(t))
3566
- Yn.call(t, r) && gt(e, r, t[r]);
3588
+ ti.call(t, r) && xt(e, r, t[r]);
3589
+ if (yt)
3590
+ for (var r of yt(t))
3591
+ ri.call(t, r) && xt(e, r, t[r]);
3567
3592
  return e;
3568
- }, ei = (e, t) => Jn(e, Qn(t));
3593
+ }, ii = (e, t) => Kn(e, ei(t));
3569
3594
  let Ze;
3570
3595
  const ye = Ee(null);
3571
- function yt(e) {
3596
+ function vt(e) {
3572
3597
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3573
3598
  }
3574
3599
  function we(e, t = re().fallbackLocale) {
3575
- const r = yt(e);
3576
- return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
3600
+ const r = vt(e);
3601
+ return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3577
3602
  }
3578
3603
  function X() {
3579
3604
  return Ze != null ? Ze : void 0;
@@ -3581,22 +3606,22 @@ function X() {
3581
3606
  ye.subscribe((e) => {
3582
3607
  Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3583
3608
  });
3584
- const ti = (e) => {
3585
- if (e && Gn(e) && Xe(e)) {
3609
+ const oi = (e) => {
3610
+ if (e && zn(e) && Xe(e)) {
3586
3611
  const { loadingDelay: t } = re();
3587
3612
  let r;
3588
3613
  return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3589
3614
  () => Le.set(!0),
3590
3615
  t
3591
- ) : Le.set(!0), Qt(e).then(() => {
3616
+ ) : Le.set(!0), Yt(e).then(() => {
3592
3617
  ye.set(e);
3593
3618
  }).finally(() => {
3594
3619
  clearTimeout(r), Le.set(!1);
3595
3620
  });
3596
3621
  }
3597
3622
  return ye.set(e);
3598
- }, z = ei(Kn({}, ye), {
3599
- set: ti
3623
+ }, z = ii(ni({}, ye), {
3624
+ set: oi
3600
3625
  }), He = (e) => {
3601
3626
  const t = /* @__PURE__ */ Object.create(null);
3602
3627
  return (n) => {
@@ -3604,122 +3629,122 @@ const ti = (e) => {
3604
3629
  return i in t ? t[i] : t[i] = e(n);
3605
3630
  };
3606
3631
  };
3607
- var ri = Object.defineProperty, xe = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3632
+ var si = Object.defineProperty, xe = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
3608
3633
  for (var r in t || (t = {}))
3609
- qt.call(t, r) && xt(e, r, t[r]);
3634
+ Kt.call(t, r) && Et(e, r, t[r]);
3610
3635
  if (xe)
3611
3636
  for (var r of xe(t))
3612
- Yt.call(t, r) && xt(e, r, t[r]);
3637
+ er.call(t, r) && Et(e, r, t[r]);
3613
3638
  return e;
3614
3639
  }, oe = (e, t) => {
3615
3640
  var r = {};
3616
3641
  for (var n in e)
3617
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3642
+ Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3618
3643
  if (e != null && xe)
3619
3644
  for (var n of xe(e))
3620
- t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3645
+ t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
3621
3646
  return r;
3622
3647
  };
3623
- const ue = (e, t) => {
3648
+ const he = (e, t) => {
3624
3649
  const { formats: r } = re();
3625
3650
  if (e in r && t in r[e])
3626
3651
  return r[e][t];
3627
3652
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3628
- }, ni = He(
3653
+ }, ai = He(
3629
3654
  (e) => {
3630
3655
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3631
3656
  if (r == null)
3632
3657
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3633
- return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
3658
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3634
3659
  }
3635
- ), ii = He(
3660
+ ), li = He(
3636
3661
  (e) => {
3637
3662
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3638
3663
  if (r == null)
3639
3664
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3640
- return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
3665
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3641
3666
  }
3642
- ), oi = He(
3667
+ ), ui = He(
3643
3668
  (e) => {
3644
3669
  var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3645
3670
  if (r == null)
3646
3671
  throw new Error(
3647
3672
  '[svelte-i18n] A "locale" must be set to format time values'
3648
3673
  );
3649
- return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
3674
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3650
3675
  }
3651
- ), si = (e = {}) => {
3676
+ ), hi = (e = {}) => {
3652
3677
  var t = e, {
3653
3678
  locale: r = X()
3654
3679
  } = t, n = oe(t, [
3655
3680
  "locale"
3656
3681
  ]);
3657
- return ni(Qe({ locale: r }, n));
3658
- }, ai = (e = {}) => {
3682
+ return ai(Ye({ locale: r }, n));
3683
+ }, ci = (e = {}) => {
3659
3684
  var t = e, {
3660
3685
  locale: r = X()
3661
3686
  } = t, n = oe(t, [
3662
3687
  "locale"
3663
3688
  ]);
3664
- return ii(Qe({ locale: r }, n));
3665
- }, li = (e = {}) => {
3689
+ return li(Ye({ locale: r }, n));
3690
+ }, fi = (e = {}) => {
3666
3691
  var t = e, {
3667
3692
  locale: r = X()
3668
3693
  } = t, n = oe(t, [
3669
3694
  "locale"
3670
3695
  ]);
3671
- return oi(Qe({ locale: r }, n));
3672
- }, hi = He(
3696
+ return ui(Ye({ locale: r }, n));
3697
+ }, mi = He(
3673
3698
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3674
- (e, t = X()) => new Rn(e, t, re().formats, {
3699
+ (e, t = X()) => new Fn(e, t, re().formats, {
3675
3700
  ignoreTag: re().ignoreTag
3676
3701
  })
3677
- ), ui = (e, t = {}) => {
3702
+ ), pi = (e, t = {}) => {
3678
3703
  var r, n, i, o;
3679
3704
  let s = t;
3680
3705
  typeof e == "object" && (s = e, e = s.id);
3681
3706
  const {
3682
- values: l,
3683
- locale: h = X(),
3684
- default: a
3707
+ values: a,
3708
+ locale: u = X(),
3709
+ default: l
3685
3710
  } = s;
3686
- if (h == null)
3711
+ if (u == null)
3687
3712
  throw new Error(
3688
3713
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3689
3714
  );
3690
- let u = Xt(e, h);
3691
- if (!u)
3692
- u = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
3693
- else if (typeof u != "string")
3715
+ let h = Wt(e, u);
3716
+ if (!h)
3717
+ h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3718
+ else if (typeof h != "string")
3694
3719
  return console.warn(
3695
- `[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.`
3696
- ), u;
3697
- if (!l)
3698
- return u;
3699
- let f = u;
3720
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3721
+ ), h;
3722
+ if (!a)
3723
+ return h;
3724
+ let c = h;
3700
3725
  try {
3701
- f = hi(u, h).format(l);
3702
- } catch (c) {
3703
- c instanceof Error && console.warn(
3726
+ c = mi(h, u).format(a);
3727
+ } catch (f) {
3728
+ f instanceof Error && console.warn(
3704
3729
  `[svelte-i18n] Message "${e}" has syntax error:`,
3705
- c.message
3730
+ f.message
3706
3731
  );
3707
3732
  }
3708
- return f;
3709
- }, ci = (e, t) => li(t).format(e), fi = (e, t) => ai(t).format(e), pi = (e, t) => si(t).format(e), mi = (e, t = X()) => Xt(e, t), di = ne([z, ie], () => ui);
3710
- ne([z], () => ci);
3711
- ne([z], () => fi);
3712
- ne([z], () => pi);
3713
- ne([z, ie], () => mi);
3714
- function bi({ withLocale: e, translations: t }) {
3733
+ return c;
3734
+ }, di = (e, t) => fi(t).format(e), bi = (e, t) => ci(t).format(e), gi = (e, t) => hi(t).format(e), yi = (e, t = X()) => Wt(e, t), xi = ne([z, ie], () => pi);
3735
+ ne([z], () => di);
3736
+ ne([z], () => bi);
3737
+ ne([z], () => gi);
3738
+ ne([z, ie], () => yi);
3739
+ function vi({ withLocale: e, translations: t }) {
3715
3740
  z.subscribe((r) => {
3716
3741
  r == null && (ie.set(t), z.set(e));
3717
3742
  });
3718
3743
  }
3719
- function vt(e, t) {
3720
- Wt(e, t);
3744
+ function _t(e, t) {
3745
+ Qt(e, t);
3721
3746
  }
3722
- const Et = {
3747
+ const St = {
3723
3748
  en: {
3724
3749
  sortby: "Sort by:",
3725
3750
  all: "All",
@@ -3847,88 +3872,88 @@ const Et = {
3847
3872
  hottest: "Hottest"
3848
3873
  }
3849
3874
  };
3850
- function gi(e) {
3851
- sr(e, "svelte-kh3a1g", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
3875
+ function Ei(e) {
3876
+ lr(e, "svelte-kh3a1g", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.SorterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.SorterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.SorterSelector.SorterSelectorOpen{border-radius:5px 5px 0 0}.SorterMainArea{display:flex;align-items:center}.SorterMainArea svg{margin-right:16px}.SorterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.SorterTextContainer{display:flex;flex-direction:column}.SorterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.SorterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:35px;margin-bottom:40px;overflow:hidden;margin:0}.SorterDropdownContainer.SorterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:10px}.SorterDropdown{width:100%;max-height:300px;display:grid;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none;list-style-type:none;padding:10px;margin:0;box-sizing:border-box}.SorterDropdown::-webkit-scrollbar{display:none}.SorterItem{position:relative}.SorterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;-webkit-user-select:none;-ms-user-select:none;user-select:none}.SorterItem input{cursor:pointer;margin-right:10px}.SorterItem .SortersCheckmark{margin:0 15px}.SorterItem .CustomRadioButton input[type=radio]{position:absolute;left:-9999px}.SorterItem .CustomRadioButton input[type=radio]+span{position:relative;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.SorterItem .CustomRadioButton input[type=radio]+span:before{content:"";background:transparent;border:1px solid var(--emw--color-white, #FFFFFF);height:18px;width:18px;border-radius:50%;position:absolute}.SorterItem .CustomRadioButton input[type=radio]+span:after{content:"";background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.SorterItem .CustomRadioButton input[type=radio]:checked+span:after{opacity:1;transform:scale(1)}.SorterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SorterLabel input:checked+span{font-weight:600}.ClearSorters{margin:20px auto;border:0;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearSorters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.SorterSelector{max-width:initial;padding:7px 16px}.SorterDropdownContainer{width:100%;margin-bottom:20px}.SorterDropdown{display:flex;flex-direction:column;gap:12px;margin-block-start:0}.SorterDropdown .SorterLabel{line-height:24px}.SorterDropdown .SorterLabel>*{pointer-events:none}}@media(max-width: 480px){.SorterSelector{min-height:var(--min-height)}.SorterDropdownContainer{top:var(--min-height)}}');
3852
3877
  }
3853
- function _t(e, t, r) {
3878
+ function wt(e, t, r) {
3854
3879
  const n = e.slice();
3855
3880
  return n[23] = t[r], n;
3856
3881
  }
3857
- function yi(e) {
3858
- let t, r, n, i, o, s, l, h, a, u, f, c = (
3882
+ function _i(e) {
3883
+ let t, r, n, i, o, s, a, u, l, h, c, f = (
3859
3884
  /*$_*/
3860
3885
  e[4]("sortby") + ""
3861
- ), m, x, _, N, L = (
3886
+ ), p, g, E, N, P = (
3862
3887
  /*vendorSortingBy*/
3863
3888
  (e[3] || /*$_*/
3864
3889
  e[4]("all")) + ""
3865
- ), M, B, I, H, C, U, Z, d, E, $, pe, Ae, qe, W = st(Object.values(
3890
+ ), M, B, C, H, L, U, Z, d, w, $, me, Ae, Ke, W = lt(Object.values(
3866
3891
  /*vendorMap*/
3867
3892
  e[5]
3868
- )), P = [];
3869
- for (let w = 0; w < W.length; w += 1)
3870
- P[w] = St(_t(e, W, w));
3893
+ )), O = [];
3894
+ for (let S = 0; S < W.length; S += 1)
3895
+ O[S] = Ht(wt(e, W, S));
3871
3896
  return {
3872
3897
  c() {
3873
- t = A("div"), r = A("div"), n = A("div"), i = j("svg"), o = j("g"), s = j("path"), l = j("path"), h = j("path"), a = V(), u = A("div"), f = A("span"), m = Me(c), x = V(), _ = A("div"), N = A("span"), M = Me(L), B = V(), I = A("span"), H = j("svg"), C = j("path"), d = V(), E = A("div"), $ = A("ul");
3874
- for (let w = 0; w < P.length; w += 1)
3875
- P[w].c();
3876
- p(s, "id", "Path_5267"), p(s, "data-name", "Path 5267"), p(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), p(s, "transform", "translate(-206.448 0)"), p(s, "fill", "#fff"), p(l, "id", "Path_5268"), p(l, "data-name", "Path 5268"), p(l, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), p(l, "transform", "translate(0 0)"), p(l, "fill", "#fff"), p(h, "id", "Path_5269"), p(h, "data-name", "Path 5269"), p(h, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), p(h, "transform", "translate(-412.896 0)"), p(h, "fill", "#fff"), p(o, "id", "sortby"), p(o, "transform", "translate(-306 -342)"), p(i, "xmlns", "http://www.w3.org/2000/svg"), p(i, "width", "20"), p(i, "height", "20"), p(i, "viewBox", "0 0 26.003 22.819"), p(f, "class", "SorterName"), p(_, "class", "SorterValueContainer"), p(u, "class", "SorterTextContainer"), p(n, "class", "SorterMainArea"), p(C, "id", "arrow"), p(C, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), p(C, "transform", "translate(-274.511 -441.088)"), p(C, "fill", "#d1d1d1"), p(H, "xmlns", "http://www.w3.org/2000/svg"), p(H, "width", "14"), p(H, "height", "6.835"), p(H, "viewBox", "0 0 14 6.835"), p(I, "class", U = "TriangleInactive " + /*isSorterActive*/
3877
- (e[1] ? "TriangleActive" : "")), p(r, "class", Z = "SorterSelector " + /*isSorterActive*/
3878
- (e[1] ? "SorterSelectorOpen" : "")), p($, "class", "SorterDropdown"), p(E, "class", pe = "SorterDropdownContainer " + /*isSorterActive*/
3879
- (e[1] ? "SorterOpen" : "")), p(t, "class", "SorterContainer");
3898
+ t = A("div"), r = A("div"), n = A("div"), i = k("svg"), o = k("g"), s = k("path"), a = k("path"), u = k("path"), l = V(), h = A("div"), c = A("span"), p = Me(f), g = V(), E = A("div"), N = A("span"), M = Me(P), B = V(), C = A("span"), H = k("svg"), L = k("path"), d = V(), w = A("div"), $ = A("ul");
3899
+ for (let S = 0; S < O.length; S += 1)
3900
+ O[S].c();
3901
+ m(s, "id", "Path_5267"), m(s, "data-name", "Path 5267"), m(s, "d", "M526.245,343.685a3.45,3.45,0,0,1,0,6.714v13.625a.8.8,0,0,1-1.592,0V350.4a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,523.592,347.041Z"), m(s, "transform", "translate(-206.448 0)"), m(s, "fill", "#fff"), m(a, "id", "Path_5268"), m(a, "data-name", "Path 5268"), m(a, "d", "M310.245,356.421a3.45,3.45,0,0,1,0,6.714v.888a.8.8,0,0,1-1.592,0v-.888a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0Zm-2.653,3.357a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,307.592,359.777Z"), m(a, "transform", "translate(0 0)"), m(a, "fill", "#fff"), m(u, "id", "Path_5269"), m(u, "data-name", "Path 5269"), m(u, "d", "M742.245,351.645a3.45,3.45,0,0,1,0,6.714v5.665a.8.8,0,1,1-1.592,0v-5.665a3.45,3.45,0,0,1,0-6.714V342.8a.8.8,0,1,1,1.592,0ZM739.592,355a1.857,1.857,0,1,0,1.857-1.857A1.859,1.859,0,0,0,739.592,355Z"), m(u, "transform", "translate(-412.896 0)"), m(u, "fill", "#fff"), m(o, "id", "sortby"), m(o, "transform", "translate(-306 -342)"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "20"), m(i, "height", "20"), m(i, "viewBox", "0 0 26.003 22.819"), m(c, "class", "SorterName"), m(E, "class", "SorterValueContainer"), m(h, "class", "SorterTextContainer"), m(n, "class", "SorterMainArea"), m(L, "id", "arrow"), m(L, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(H, "xmlns", "http://www.w3.org/2000/svg"), m(H, "width", "14"), m(H, "height", "6.835"), m(H, "viewBox", "0 0 14 6.835"), m(C, "class", U = "TriangleInactive " + /*isSorterActive*/
3902
+ (e[1] ? "TriangleActive" : "")), m(r, "class", Z = "SorterSelector " + /*isSorterActive*/
3903
+ (e[1] ? "SorterSelectorOpen" : "")), m($, "class", "SorterDropdown"), m(w, "class", me = "SorterDropdownContainer " + /*isSorterActive*/
3904
+ (e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
3880
3905
  },
3881
- m(w, F) {
3882
- ve(w, t, F), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, l), v(o, h), v(n, a), v(n, u), v(u, f), v(f, m), v(u, x), v(u, _), v(_, N), v(N, M), v(r, B), v(r, I), v(I, H), v(H, C), v(t, d), v(t, E), v(E, $);
3883
- for (let T = 0; T < P.length; T += 1)
3884
- P[T] && P[T].m($, null);
3885
- Ae || (qe = Tt(
3906
+ m(S, F) {
3907
+ ve(S, t, F), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, u), v(n, l), v(n, h), v(h, c), v(c, p), v(h, g), v(h, E), v(E, N), v(N, M), v(r, B), v(r, C), v(C, H), v(H, L), v(t, d), v(t, w), v(w, $);
3908
+ for (let T = 0; T < O.length; T += 1)
3909
+ O[T] && O[T].m($, null);
3910
+ Ae || (Ke = Nt(
3886
3911
  r,
3887
3912
  "click",
3888
3913
  /*click_handler*/
3889
- e[13]
3914
+ e[14]
3890
3915
  ), Ae = !0);
3891
3916
  },
3892
- p(w, F) {
3917
+ p(S, F) {
3893
3918
  if (F & /*$_*/
3894
- 16 && c !== (c = /*$_*/
3895
- w[4]("sortby") + "") && it(m, c), F & /*vendorSortingBy, $_*/
3896
- 24 && L !== (L = /*vendorSortingBy*/
3897
- (w[3] || /*$_*/
3898
- w[4]("all")) + "") && it(M, L), F & /*isSorterActive*/
3919
+ 16 && f !== (f = /*$_*/
3920
+ S[4]("sortby") + "") && st(p, f), F & /*vendorSortingBy, $_*/
3921
+ 24 && P !== (P = /*vendorSortingBy*/
3922
+ (S[3] || /*$_*/
3923
+ S[4]("all")) + "") && st(M, P), F & /*isSorterActive*/
3899
3924
  2 && U !== (U = "TriangleInactive " + /*isSorterActive*/
3900
- (w[1] ? "TriangleActive" : "")) && p(I, "class", U), F & /*isSorterActive*/
3925
+ (S[1] ? "TriangleActive" : "")) && m(C, "class", U), F & /*isSorterActive*/
3901
3926
  2 && Z !== (Z = "SorterSelector " + /*isSorterActive*/
3902
- (w[1] ? "SorterSelectorOpen" : "")) && p(r, "class", Z), F & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3927
+ (S[1] ? "SorterSelectorOpen" : "")) && m(r, "class", Z), F & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3903
3928
  120) {
3904
- W = st(Object.values(
3929
+ W = lt(Object.values(
3905
3930
  /*vendorMap*/
3906
- w[5]
3931
+ S[5]
3907
3932
  ));
3908
3933
  let T;
3909
3934
  for (T = 0; T < W.length; T += 1) {
3910
- const Ye = _t(w, W, T);
3911
- P[T] ? P[T].p(Ye, F) : (P[T] = St(Ye), P[T].c(), P[T].m($, null));
3935
+ const et = wt(S, W, T);
3936
+ O[T] ? O[T].p(et, F) : (O[T] = Ht(et), O[T].c(), O[T].m($, null));
3912
3937
  }
3913
- for (; T < P.length; T += 1)
3914
- P[T].d(1);
3915
- P.length = W.length;
3938
+ for (; T < O.length; T += 1)
3939
+ O[T].d(1);
3940
+ O.length = W.length;
3916
3941
  }
3917
3942
  F & /*isSorterActive*/
3918
- 2 && pe !== (pe = "SorterDropdownContainer " + /*isSorterActive*/
3919
- (w[1] ? "SorterOpen" : "")) && p(E, "class", pe);
3943
+ 2 && me !== (me = "SorterDropdownContainer " + /*isSorterActive*/
3944
+ (S[1] ? "SorterOpen" : "")) && m(w, "class", me);
3920
3945
  },
3921
- d(w) {
3922
- w && fe(t), hr(P, w), Ae = !1, qe();
3946
+ d(S) {
3947
+ S && fe(t), cr(O, S), Ae = !1, Ke();
3923
3948
  }
3924
3949
  };
3925
3950
  }
3926
- function St(e) {
3927
- let t, r, n, i, o, s, l, h, a, u, f;
3928
- function c() {
3951
+ function Ht(e) {
3952
+ let t, r, n, i, o, s, a, u, l, h, c;
3953
+ function f() {
3929
3954
  return (
3930
3955
  /*click_handler_1*/
3931
- e[14](
3956
+ e[15](
3932
3957
  /*sort*/
3933
3958
  e[23]
3934
3959
  )
@@ -3936,8 +3961,8 @@ function St(e) {
3936
3961
  }
3937
3962
  return {
3938
3963
  c() {
3939
- t = A("li"), r = A("label"), n = A("input"), o = V(), s = A("span"), l = V(), h = A("span"), h.textContent = `${/*sort*/
3940
- e[23]}`, a = V(), p(n, "type", "radio"), p(n, "name", "radio"), n.value = /*sort*/
3964
+ t = A("li"), r = A("label"), n = A("input"), o = V(), s = A("span"), a = V(), u = A("span"), u.textContent = `${/*sort*/
3965
+ e[23]}`, l = V(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
3941
3966
  e[23], n.checked = i = /*vendorSortingBy*/
3942
3967
  e[3] == /*sort*/
3943
3968
  e[23] ? !0 : (
@@ -3945,14 +3970,14 @@ function St(e) {
3945
3970
  e[3] == null && /*sort*/
3946
3971
  e[23] == /*$_*/
3947
3972
  e[4]("all")
3948
- ), p(s, "class", "SortersCheckmark"), p(r, "class", "SorterLabel CustomRadioButton"), p(t, "class", "SorterItem"), t.value = /*sort*/
3973
+ ), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
3949
3974
  e[23];
3950
3975
  },
3951
- m(m, x) {
3952
- ve(m, t, x), v(t, r), v(r, n), v(r, o), v(r, s), v(r, l), v(r, h), v(t, a), u || (f = Tt(n, "click", c), u = !0);
3976
+ m(p, g) {
3977
+ ve(p, t, g), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, u), v(t, l), h || (c = Nt(n, "click", f), h = !0);
3953
3978
  },
3954
- p(m, x) {
3955
- e = m, x & /*vendorSortingBy, $_*/
3979
+ p(p, g) {
3980
+ e = p, g & /*vendorSortingBy, $_*/
3956
3981
  24 && i !== (i = /*vendorSortingBy*/
3957
3982
  e[3] == /*sort*/
3958
3983
  e[23] ? !0 : (
@@ -3962,16 +3987,16 @@ function St(e) {
3962
3987
  e[4]("all")
3963
3988
  )) && (n.checked = i);
3964
3989
  },
3965
- d(m) {
3966
- m && fe(t), u = !1, f();
3990
+ d(p) {
3991
+ p && fe(t), h = !1, c();
3967
3992
  }
3968
3993
  };
3969
3994
  }
3970
- function xi(e) {
3995
+ function Si(e) {
3971
3996
  let t;
3972
3997
  function r(o, s) {
3973
3998
  if (!/*isLoading*/
3974
- o[2]) return yi;
3999
+ o[2]) return _i;
3975
4000
  }
3976
4001
  let n = r(e), i = n && n(e);
3977
4002
  return {
@@ -3979,7 +4004,7 @@ function xi(e) {
3979
4004
  t = A("div"), i && i.c();
3980
4005
  },
3981
4006
  m(o, s) {
3982
- ve(o, t, s), i && i.m(t, null), e[15](t);
4007
+ ve(o, t, s), i && i.m(t, null), e[16](t);
3983
4008
  },
3984
4009
  p(o, [s]) {
3985
4010
  n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
@@ -3987,158 +4012,154 @@ function xi(e) {
3987
4012
  i: D,
3988
4013
  o: D,
3989
4014
  d(o) {
3990
- o && fe(t), i && i.d(), e[15](null);
4015
+ o && fe(t), i && i.d(), e[16](null);
3991
4016
  }
3992
4017
  };
3993
4018
  }
3994
- function vi(e, t, r) {
4019
+ function wi(e, t, r) {
3995
4020
  let n;
3996
- or(e, di, (d) => r(4, n = d));
3997
- let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, a, u = !1, f = !0, c = "", m = "All";
3998
- bi({ withLocale: "en", translations: {} });
3999
- const x = () => {
4000
- fetch(o).then((E) => E.json()).then((E) => {
4001
- Object.keys(E).forEach(($) => {
4002
- vt($, E[$]);
4021
+ ar(e, xi, (d) => r(4, n = d));
4022
+ let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: u = "" } = t, { mbsource: l } = t, h, c, f = !1, p = !0, g = "", E = "All";
4023
+ vi({ withLocale: "en", translations: {} });
4024
+ const N = () => {
4025
+ fetch(o).then((w) => w.json()).then((w) => {
4026
+ Object.keys(w).forEach(($) => {
4027
+ _t($, w[$]);
4003
4028
  });
4004
- }).catch((E) => {
4005
- console.log(E);
4029
+ }).catch((w) => {
4030
+ console.log(w);
4006
4031
  });
4007
4032
  };
4008
- Object.keys(Et).forEach((d) => {
4009
- vt(d, Et[d]);
4033
+ Object.keys(St).forEach((d) => {
4034
+ _t(d, St[d]);
4010
4035
  });
4011
- const _ = {
4036
+ const P = {
4012
4037
  All: n("all"),
4013
4038
  name: n("az"),
4014
4039
  isNew: n("newest"),
4015
4040
  "advancedTags(name(hot))": n("hottest")
4016
- }, N = () => {
4017
- let d = document.createElement("style");
4018
- d.innerHTML = s, a.appendChild(d);
4019
- }, L = () => {
4020
- let d = document.createElement("style");
4021
- fetch(new URL(l)).then((E) => E.text()).then((E) => {
4022
- d.innerHTML = E, setTimeout(
4023
- () => {
4024
- a.appendChild(d);
4025
- },
4026
- 1
4027
- );
4028
- });
4029
4041
  }, M = () => {
4030
- var E;
4031
- r(3, m = "All"), r(2, f = !1), r(1, u = !1);
4032
- let d = (E = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : E[h];
4033
- d ? r(3, m = d) : r(3, m = "All"), r(3, m = _[d]);
4042
+ var w;
4043
+ r(3, E = "All"), r(2, p = !1), r(1, f = !1);
4044
+ let d = (w = JSON.parse(localStorage.getItem("vendorSortingBy"))) == null ? void 0 : w[u];
4045
+ d ? r(3, E = d) : r(3, E = "All"), r(3, E = P[d]);
4034
4046
  }, B = (d) => {
4035
- r(3, m = d);
4036
- let E = localStorage.getItem("vendorSortingBy");
4037
- c = d;
4038
- for (let $ in _)
4039
- if (_[$] === d) {
4040
- c = $;
4047
+ r(3, E = d);
4048
+ let w = localStorage.getItem("vendorSortingBy");
4049
+ g = d;
4050
+ for (let $ in P)
4051
+ if (P[$] === d) {
4052
+ g = $;
4041
4053
  break;
4042
4054
  }
4043
- E == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: c })) : (E = JSON.parse(E), E[h] = c, localStorage.setItem("vendorSortingBy", JSON.stringify(E))), window.postMessage(
4055
+ w == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [u]: g })) : (w = JSON.parse(w), w[u] = g, localStorage.setItem("vendorSortingBy", JSON.stringify(w))), window.postMessage(
4044
4056
  {
4045
4057
  type: "ApplySorter",
4046
- sortBy: c,
4047
- itemId: h
4058
+ sortBy: g,
4059
+ itemId: u
4048
4060
  },
4049
4061
  window.location.href
4050
- ), r(1, u = !u);
4051
- }, I = () => {
4052
- r(1, u = !u), window.postMessage({ type: "SortingOpened" }, window.location.href);
4062
+ ), r(1, f = !f);
4063
+ }, C = () => {
4064
+ r(1, f = !f), window.postMessage({ type: "SortingOpened" }, window.location.href);
4053
4065
  }, H = (d) => {
4054
- d.data.type == "FilterOpened" && r(1, u = !1);
4066
+ d.data.type == "FilterOpened" && r(1, f = !1);
4055
4067
  };
4056
- pr(() => (window.addEventListener("message", H, !1), () => {
4057
- window.removeEventListener("message", H);
4068
+ dr(() => (window.addEventListener("message", H, !1), () => {
4069
+ window.emMessageBus != null && h && h.unsubscribe(), window.removeEventListener("message", H);
4058
4070
  }));
4059
- const C = () => I(), U = (d) => B(d);
4071
+ const L = () => C(), U = (d) => B(d);
4060
4072
  function Z(d) {
4061
4073
  Re[d ? "unshift" : "push"](() => {
4062
- a = d, r(0, a);
4074
+ c = d, r(0, c);
4063
4075
  });
4064
4076
  }
4065
4077
  return e.$$set = (d) => {
4066
- "lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, l = d.clientstylingurl), "categoryid" in d && r(12, h = d.categoryid);
4078
+ "lang" in d && r(8, i = d.lang), "translationurl" in d && r(9, o = d.translationurl), "clientstyling" in d && r(10, s = d.clientstyling), "clientstylingurl" in d && r(11, a = d.clientstylingurl), "categoryid" in d && r(12, u = d.categoryid), "mbsource" in d && r(13, l = d.mbsource);
4067
4079
  }, e.$$.update = () => {
4068
4080
  e.$$.dirty & /*categoryid*/
4069
- 4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4070
- 1025 && s && a && N(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4071
- 2049 && l && a && L(), e.$$.dirty & /*translationurl*/
4072
- 512 && o && x();
4081
+ 4096 && u && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4082
+ 1025 && s && c && Nr(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4083
+ 2049 && a && c && Pr(c, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4084
+ 8193 && c && Or(c, `${l}.Style`), e.$$.dirty & /*translationurl*/
4085
+ 512 && o && N();
4073
4086
  }, [
4074
- a,
4075
- u,
4087
+ c,
4076
4088
  f,
4077
- m,
4089
+ p,
4090
+ E,
4078
4091
  n,
4079
- _,
4092
+ P,
4080
4093
  B,
4081
- I,
4094
+ C,
4082
4095
  i,
4083
4096
  o,
4084
4097
  s,
4098
+ a,
4099
+ u,
4085
4100
  l,
4086
- h,
4087
- C,
4101
+ L,
4088
4102
  U,
4089
4103
  Z
4090
4104
  ];
4091
4105
  }
4092
- class Ei extends Hr {
4106
+ class Hi extends Tr {
4093
4107
  constructor(t) {
4094
- super(), Sr(
4108
+ super(), Hr(
4095
4109
  this,
4096
4110
  t,
4097
- vi,
4098
- xi,
4099
- Ht,
4111
+ wi,
4112
+ Si,
4113
+ Tt,
4100
4114
  {
4101
4115
  lang: 8,
4102
4116
  translationurl: 9,
4103
4117
  clientstyling: 10,
4104
4118
  clientstylingurl: 11,
4105
- categoryid: 12
4119
+ categoryid: 12,
4120
+ mbsource: 13
4106
4121
  },
4107
- gi
4122
+ Ei
4108
4123
  );
4109
4124
  }
4110
4125
  get lang() {
4111
4126
  return this.$$.ctx[8];
4112
4127
  }
4113
4128
  set lang(t) {
4114
- this.$$set({ lang: t }), k();
4129
+ this.$$set({ lang: t }), G();
4115
4130
  }
4116
4131
  get translationurl() {
4117
4132
  return this.$$.ctx[9];
4118
4133
  }
4119
4134
  set translationurl(t) {
4120
- this.$$set({ translationurl: t }), k();
4135
+ this.$$set({ translationurl: t }), G();
4121
4136
  }
4122
4137
  get clientstyling() {
4123
4138
  return this.$$.ctx[10];
4124
4139
  }
4125
4140
  set clientstyling(t) {
4126
- this.$$set({ clientstyling: t }), k();
4141
+ this.$$set({ clientstyling: t }), G();
4127
4142
  }
4128
4143
  get clientstylingurl() {
4129
4144
  return this.$$.ctx[11];
4130
4145
  }
4131
4146
  set clientstylingurl(t) {
4132
- this.$$set({ clientstylingurl: t }), k();
4147
+ this.$$set({ clientstylingurl: t }), G();
4133
4148
  }
4134
4149
  get categoryid() {
4135
4150
  return this.$$.ctx[12];
4136
4151
  }
4137
4152
  set categoryid(t) {
4138
- this.$$set({ categoryid: t }), k();
4153
+ this.$$set({ categoryid: t }), G();
4154
+ }
4155
+ get mbsource() {
4156
+ return this.$$.ctx[13];
4157
+ }
4158
+ set mbsource(t) {
4159
+ this.$$set({ mbsource: t }), G();
4139
4160
  }
4140
4161
  }
4141
- wr(Ei, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
4162
+ Ar(Hi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4142
4163
  export {
4143
- Ei as default
4164
+ Hi as default
4144
4165
  };