@everymatrix/casino-sort 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ function yt(e) {
6
6
  function qe() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ue(e) {
9
+ function he(e) {
10
10
  e.forEach(yt);
11
11
  }
12
12
  function Xe(e) {
@@ -36,7 +36,7 @@ function v(e, t) {
36
36
  function Jt(e, t, r) {
37
37
  const n = Qt(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = A("style");
39
+ const i = H("style");
40
40
  i.id = t, i.textContent = r, qt(n, i);
41
41
  }
42
42
  }
@@ -66,10 +66,10 @@ function Yt(e, t) {
66
66
  for (let r = 0; r < e.length; r += 1)
67
67
  e[r] && e[r].d(t);
68
68
  }
69
- function A(e) {
69
+ function H(e) {
70
70
  return document.createElement(e);
71
71
  }
72
- function G(e) {
72
+ function j(e) {
73
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
74
74
  }
75
75
  function Ce(e) {
@@ -81,7 +81,7 @@ function k() {
81
81
  function Et(e, t, r, n) {
82
82
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
83
83
  }
84
- function p(e, t, r) {
84
+ function m(e, t, r) {
85
85
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
86
86
  }
87
87
  function Kt(e) {
@@ -111,52 +111,52 @@ function tr() {
111
111
  function rr(e) {
112
112
  tr().$$.on_mount.push(e);
113
113
  }
114
- const Q = [], Le = [];
115
- let q = [];
114
+ const J = [], Le = [];
115
+ let Q = [];
116
116
  const Ke = [], nr = /* @__PURE__ */ Promise.resolve();
117
117
  let Me = !1;
118
118
  function ir() {
119
- Me || (Me = !0, nr.then(j));
119
+ Me || (Me = !0, nr.then(F));
120
120
  }
121
121
  function Re(e) {
122
- q.push(e);
122
+ Q.push(e);
123
123
  }
124
124
  const Ae = /* @__PURE__ */ new Set();
125
- let W = 0;
126
- function j() {
127
- if (W !== 0)
125
+ let Z = 0;
126
+ function F() {
127
+ if (Z !== 0)
128
128
  return;
129
129
  const e = ae;
130
130
  do {
131
131
  try {
132
- for (; W < Q.length; ) {
133
- const t = Q[W];
134
- W++, se(t), or(t.$$);
132
+ for (; Z < J.length; ) {
133
+ const t = J[Z];
134
+ Z++, se(t), or(t.$$);
135
135
  }
136
136
  } catch (t) {
137
- throw Q.length = 0, W = 0, t;
137
+ throw J.length = 0, Z = 0, t;
138
138
  }
139
- for (se(null), Q.length = 0, W = 0; Le.length; ) Le.pop()();
140
- for (let t = 0; t < q.length; t += 1) {
141
- const r = q[t];
139
+ for (se(null), J.length = 0, Z = 0; Le.length; ) Le.pop()();
140
+ for (let t = 0; t < Q.length; t += 1) {
141
+ const r = Q[t];
142
142
  Ae.has(r) || (Ae.add(r), r());
143
143
  }
144
- q.length = 0;
145
- } while (Q.length);
144
+ Q.length = 0;
145
+ } while (J.length);
146
146
  for (; Ke.length; )
147
147
  Ke.pop()();
148
148
  Me = !1, Ae.clear(), se(e);
149
149
  }
150
150
  function or(e) {
151
151
  if (e.fragment !== null) {
152
- e.update(), ue(e.before_update);
152
+ e.update(), he(e.before_update);
153
153
  const t = e.dirty;
154
154
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
155
155
  }
156
156
  }
157
157
  function sr(e) {
158
158
  const t = [], r = [];
159
- q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
159
+ Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
160
160
  }
161
161
  const ar = /* @__PURE__ */ new Set();
162
162
  function lr(e, t) {
@@ -165,22 +165,22 @@ function lr(e, t) {
165
165
  function et(e) {
166
166
  return e?.length !== void 0 ? e : Array.from(e);
167
167
  }
168
- function hr(e, t, r) {
168
+ function ur(e, t, r) {
169
169
  const { fragment: n, after_update: i } = e.$$;
170
170
  n && n.m(t, r), Re(() => {
171
171
  const o = e.$$.on_mount.map(yt).filter(Xe);
172
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
172
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : he(o), e.$$.on_mount = [];
173
173
  }), i.forEach(Re);
174
174
  }
175
- function ur(e, t) {
175
+ function hr(e, t) {
176
176
  const r = e.$$;
177
- r.fragment !== null && (sr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
+ r.fragment !== null && (sr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
178
178
  }
179
179
  function cr(e, t) {
180
- e.$$.dirty[0] === -1 && (Q.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
180
+ e.$$.dirty[0] === -1 && (J.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
181
  }
182
182
  function fr(e, t, r, n, i, o, s = null, a = [-1]) {
183
- const u = ae;
183
+ const h = ae;
184
184
  se(e);
185
185
  const l = e.$$ = {
186
186
  fragment: null,
@@ -196,27 +196,27 @@ function fr(e, t, r, n, i, o, s = null, a = [-1]) {
196
196
  on_disconnect: [],
197
197
  before_update: [],
198
198
  after_update: [],
199
- context: new Map(t.context || (u ? u.$$.context : [])),
199
+ context: new Map(t.context || (h ? h.$$.context : [])),
200
200
  // everything else
201
201
  callbacks: qe(),
202
202
  dirty: a,
203
203
  skip_bound: !1,
204
- root: t.target || u.$$.root
204
+ root: t.target || h.$$.root
205
205
  };
206
206
  s && s(l.root);
207
- let h = !1;
208
- if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
209
- const x = m.length ? m[0] : c;
210
- return l.ctx && i(l.ctx[f], l.ctx[f] = x) && (!l.skip_bound && l.bound[f] && l.bound[f](x), h && cr(e, f)), c;
211
- }) : [], l.update(), h = !0, ue(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
207
+ let u = !1;
208
+ if (l.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
209
+ const b = p.length ? p[0] : f;
210
+ return l.ctx && i(l.ctx[c], l.ctx[c] = b) && (!l.skip_bound && l.bound[c] && l.bound[c](b), u && cr(e, c)), f;
211
+ }) : [], l.update(), u = !0, he(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
212
212
  if (t.hydrate) {
213
- const f = Kt(t.target);
214
- l.fragment && l.fragment.l(f), f.forEach(ce);
213
+ const c = Kt(t.target);
214
+ l.fragment && l.fragment.l(c), c.forEach(ce);
215
215
  } else
216
216
  l.fragment && l.fragment.c();
217
- t.intro && lr(e.$$.fragment), hr(e, t.target, t.anchor), j();
217
+ t.intro && lr(e.$$.fragment), ur(e, t.target, t.anchor), F();
218
218
  }
219
- se(u);
219
+ se(h);
220
220
  }
221
221
  let _t;
222
222
  typeof HTMLElement == "function" && (_t = class extends HTMLElement {
@@ -261,17 +261,17 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
261
261
  let o;
262
262
  return {
263
263
  c: function() {
264
- o = A("slot"), i !== "default" && p(o, "name", i);
264
+ o = H("slot"), i !== "default" && m(o, "name", i);
265
265
  },
266
266
  /**
267
267
  * @param {HTMLElement} target
268
268
  * @param {HTMLElement} [anchor]
269
269
  */
270
- m: function(u, l) {
271
- xe(u, o, l);
270
+ m: function(h, l) {
271
+ xe(h, o, l);
272
272
  },
273
- d: function(u) {
274
- u && ce(o);
273
+ d: function(h) {
274
+ h && ce(o);
275
275
  }
276
276
  };
277
277
  };
@@ -283,7 +283,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
283
283
  i in r && (t[i] = [e(i)]);
284
284
  for (const i of this.attributes) {
285
285
  const o = this.$$g_p(i.name);
286
- o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
286
+ o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
287
287
  }
288
288
  for (const i in this.$$p_d)
289
289
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
301
301
  this.$$r = !0;
302
302
  for (const i in this.$$p_d)
303
303
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
304
- const o = me(
304
+ const o = pe(
305
305
  i,
306
306
  this.$$d[i],
307
307
  this.$$p_d,
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
323
323
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
324
324
  // and setting attributes through setAttribute etc, this is helpful
325
325
  attributeChangedCallback(e, t, r) {
326
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
326
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
336
336
  ) || e;
337
337
  }
338
338
  });
339
- function me(e, t, r, n) {
339
+ function pe(e, t, r, n) {
340
340
  const i = r[e]?.type;
341
341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
342
342
  return t;
@@ -365,7 +365,7 @@ function me(e, t, r, n) {
365
365
  return t;
366
366
  }
367
367
  }
368
- function pr(e, t, r, n, i, o) {
368
+ function mr(e, t, r, n, i, o) {
369
369
  let s = class extends _t {
370
370
  constructor() {
371
371
  super(e, r, i), this.$$p_d = t;
@@ -381,8 +381,8 @@ function pr(e, t, r, n, i, o) {
381
381
  get() {
382
382
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
383
383
  },
384
- set(u) {
385
- u = me(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
384
+ set(h) {
385
+ h = pe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
386
386
  }
387
387
  });
388
388
  }), n.forEach((a) => {
@@ -394,7 +394,7 @@ function pr(e, t, r, n, i, o) {
394
394
  }), e.element = /** @type {any} */
395
395
  s, s;
396
396
  }
397
- class mr {
397
+ class pr {
398
398
  /**
399
399
  * ### PRIVATE API
400
400
  *
@@ -413,7 +413,7 @@ class mr {
413
413
  $$set = void 0;
414
414
  /** @returns {void} */
415
415
  $destroy() {
416
- ur(this, 1), this.$destroy = $;
416
+ hr(this, 1), this.$destroy = $;
417
417
  }
418
418
  /**
419
419
  * @template {Extract<keyof Events, string>} K
@@ -440,8 +440,31 @@ class mr {
440
440
  }
441
441
  const dr = "4";
442
442
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
443
- const J = [];
444
443
  function br(e, t) {
444
+ if (e) {
445
+ const r = document.createElement("style");
446
+ r.innerHTML = t, e.appendChild(r);
447
+ }
448
+ }
449
+ function gr(e, t) {
450
+ const r = new URL(t);
451
+ fetch(r.href).then((n) => n.text()).then((n) => {
452
+ const i = document.createElement("style");
453
+ i.innerHTML = n, e && e.appendChild(i);
454
+ }).catch((n) => {
455
+ console.error("There was an error while trying to load client styling from URL", n);
456
+ });
457
+ }
458
+ function yr(e, t, r) {
459
+ if (window.emMessageBus) {
460
+ const n = document.createElement("style");
461
+ window.emMessageBus.subscribe(t, (i) => {
462
+ n.innerHTML = i, e && e.appendChild(n);
463
+ });
464
+ }
465
+ }
466
+ const W = [];
467
+ function xr(e, t) {
445
468
  return {
446
469
  subscribe: ve(e, t).subscribe
447
470
  };
@@ -451,99 +474,99 @@ function ve(e, t = $) {
451
474
  const n = /* @__PURE__ */ new Set();
452
475
  function i(a) {
453
476
  if (xt(e, a) && (e = a, r)) {
454
- const u = !J.length;
477
+ const h = !W.length;
455
478
  for (const l of n)
456
- l[1](), J.push(l, e);
457
- if (u) {
458
- for (let l = 0; l < J.length; l += 2)
459
- J[l][0](J[l + 1]);
460
- J.length = 0;
479
+ l[1](), W.push(l, e);
480
+ if (h) {
481
+ for (let l = 0; l < W.length; l += 2)
482
+ W[l][0](W[l + 1]);
483
+ W.length = 0;
461
484
  }
462
485
  }
463
486
  }
464
487
  function o(a) {
465
488
  i(a(e));
466
489
  }
467
- function s(a, u = $) {
468
- const l = [a, u];
490
+ function s(a, h = $) {
491
+ const l = [a, h];
469
492
  return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
470
493
  n.delete(l), n.size === 0 && r && (r(), r = null);
471
494
  };
472
495
  }
473
496
  return { set: i, update: o, subscribe: s };
474
497
  }
475
- function re(e, t, r) {
498
+ function te(e, t, r) {
476
499
  const n = !Array.isArray(e), i = n ? [e] : e;
477
500
  if (!i.every(Boolean))
478
501
  throw new Error("derived() expects stores as input, got a falsy value");
479
502
  const o = t.length < 2;
480
- return br(r, (s, a) => {
481
- let u = !1;
503
+ return xr(r, (s, a) => {
504
+ let h = !1;
482
505
  const l = [];
483
- let h = 0, f = $;
484
- const c = () => {
485
- if (h)
506
+ let u = 0, c = $;
507
+ const f = () => {
508
+ if (u)
486
509
  return;
487
- f();
488
- const x = t(n ? l[0] : l, s, a);
489
- o ? s(x) : f = Xe(x) ? x : $;
490
- }, m = i.map(
491
- (x, E) => vt(
492
- x,
493
- (N) => {
494
- l[E] = N, h &= ~(1 << E), u && c();
510
+ c();
511
+ const b = t(n ? l[0] : l, s, a);
512
+ o ? s(b) : c = Xe(b) ? b : $;
513
+ }, p = i.map(
514
+ (b, S) => vt(
515
+ b,
516
+ (w) => {
517
+ l[S] = w, u &= ~(1 << S), h && f();
495
518
  },
496
519
  () => {
497
- h |= 1 << E;
520
+ u |= 1 << S;
498
521
  }
499
522
  )
500
523
  );
501
- return u = !0, c(), function() {
502
- ue(m), f(), u = !1;
524
+ return h = !0, f(), function() {
525
+ he(p), c(), h = !1;
503
526
  };
504
527
  });
505
528
  }
506
- function gr(e) {
529
+ function vr(e) {
507
530
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
508
531
  }
509
- var yr = function(t) {
510
- return xr(t) && !vr(t);
532
+ var Er = function(t) {
533
+ return _r(t) && !Sr(t);
511
534
  };
512
- function xr(e) {
535
+ function _r(e) {
513
536
  return !!e && typeof e == "object";
514
537
  }
515
- function vr(e) {
538
+ function Sr(e) {
516
539
  var t = Object.prototype.toString.call(e);
517
- return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
540
+ return t === "[object RegExp]" || t === "[object Date]" || Ar(e);
518
541
  }
519
- var Er = typeof Symbol == "function" && Symbol.for, _r = Er ? Symbol.for("react.element") : 60103;
520
- function Sr(e) {
521
- return e.$$typeof === _r;
542
+ var wr = typeof Symbol == "function" && Symbol.for, Hr = wr ? Symbol.for("react.element") : 60103;
543
+ function Ar(e) {
544
+ return e.$$typeof === Hr;
522
545
  }
523
- function wr(e) {
546
+ function Tr(e) {
524
547
  return Array.isArray(e) ? [] : {};
525
548
  }
526
549
  function le(e, t) {
527
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(wr(e), e, t) : e;
550
+ return t.clone !== !1 && t.isMergeableObject(e) ? q(Tr(e), e, t) : e;
528
551
  }
529
- function Hr(e, t, r) {
552
+ function Br(e, t, r) {
530
553
  return e.concat(t).map(function(n) {
531
554
  return le(n, r);
532
555
  });
533
556
  }
534
- function Ar(e, t) {
557
+ function Nr(e, t) {
535
558
  if (!t.customMerge)
536
- return Y;
559
+ return q;
537
560
  var r = t.customMerge(e);
538
- return typeof r == "function" ? r : Y;
561
+ return typeof r == "function" ? r : q;
539
562
  }
540
- function Tr(e) {
563
+ function Pr(e) {
541
564
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
542
565
  return Object.propertyIsEnumerable.call(e, t);
543
566
  }) : [];
544
567
  }
545
568
  function tt(e) {
546
- return Object.keys(e).concat(Tr(e));
569
+ return Object.keys(e).concat(Pr(e));
547
570
  }
548
571
  function St(e, t) {
549
572
  try {
@@ -552,31 +575,31 @@ function St(e, t) {
552
575
  return !1;
553
576
  }
554
577
  }
555
- function Br(e, t) {
578
+ function Or(e, t) {
556
579
  return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
557
580
  }
558
- function Nr(e, t, r) {
581
+ function Ir(e, t, r) {
559
582
  var n = {};
560
583
  return r.isMergeableObject(e) && tt(e).forEach(function(i) {
561
584
  n[i] = le(e[i], r);
562
585
  }), tt(t).forEach(function(i) {
563
- Br(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
586
+ Or(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
564
587
  }), n;
565
588
  }
566
- function Y(e, t, r) {
567
- r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || yr, r.cloneUnlessOtherwiseSpecified = le;
589
+ function q(e, t, r) {
590
+ r = r || {}, r.arrayMerge = r.arrayMerge || Br, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = le;
568
591
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
569
- return o ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) : le(t, r);
592
+ return o ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : le(t, r);
570
593
  }
571
- Y.all = function(t, r) {
594
+ q.all = function(t, r) {
572
595
  if (!Array.isArray(t))
573
596
  throw new Error("first argument should be an array");
574
597
  return t.reduce(function(n, i) {
575
- return Y(n, i, r);
598
+ return q(n, i, r);
576
599
  }, {});
577
600
  };
578
- var Pr = Y, Or = Pr;
579
- const Ir = /* @__PURE__ */ gr(Or);
601
+ var Cr = q, Lr = Cr;
602
+ const Mr = /* @__PURE__ */ vr(Lr);
580
603
  var $e = function(e, t) {
581
604
  return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
582
605
  r.__proto__ = n;
@@ -593,16 +616,16 @@ function Ee(e, t) {
593
616
  }
594
617
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
595
618
  }
596
- var y = function() {
597
- return y = Object.assign || function(t) {
619
+ var x = function() {
620
+ return x = Object.assign || function(t) {
598
621
  for (var r, n = 1, i = arguments.length; n < i; n++) {
599
622
  r = arguments[n];
600
623
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
601
624
  }
602
625
  return t;
603
- }, y.apply(this, arguments);
626
+ }, x.apply(this, arguments);
604
627
  };
605
- function Cr(e, t) {
628
+ function Rr(e, t) {
606
629
  var r = {};
607
630
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
608
631
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -616,17 +639,17 @@ function Te(e, t, r) {
616
639
  return e.concat(o || Array.prototype.slice.call(t));
617
640
  }
618
641
  function Be(e, t) {
619
- var r = t && t.cache ? t.cache : Fr, n = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Rr;
642
+ var r = t && t.cache ? t.cache : kr, n = t && t.serializer ? t.serializer : Gr, i = t && t.strategy ? t.strategy : Ur;
620
643
  return i(e, {
621
644
  cache: r,
622
645
  serializer: n
623
646
  });
624
647
  }
625
- function Lr(e) {
648
+ function $r(e) {
626
649
  return e == null || typeof e == "number" || typeof e == "boolean";
627
650
  }
628
- function Mr(e, t, r, n) {
629
- var i = Lr(n) ? n : r(n), o = t.get(i);
651
+ function Dr(e, t, r, n) {
652
+ var i = $r(n) ? n : r(n), o = t.get(i);
630
653
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
631
654
  }
632
655
  function wt(e, t, r) {
@@ -636,16 +659,16 @@ function wt(e, t, r) {
636
659
  function Ht(e, t, r, n, i) {
637
660
  return r.bind(t, e, n, i);
638
661
  }
639
- function Rr(e, t) {
640
- var r = e.length === 1 ? Mr : wt;
662
+ function Ur(e, t) {
663
+ var r = e.length === 1 ? Dr : wt;
641
664
  return Ht(e, this, r, t.cache.create(), t.serializer);
642
665
  }
643
- function $r(e, t) {
666
+ function Fr(e, t) {
644
667
  return Ht(e, this, wt, t.cache.create(), t.serializer);
645
668
  }
646
- var Dr = function() {
669
+ var Gr = function() {
647
670
  return JSON.stringify(arguments);
648
- }, Ur = (
671
+ }, jr = (
649
672
  /** @class */
650
673
  function() {
651
674
  function e() {
@@ -657,61 +680,61 @@ var Dr = function() {
657
680
  this.cache[t] = r;
658
681
  }, e;
659
682
  }()
660
- ), Fr = {
683
+ ), kr = {
661
684
  create: function() {
662
- return new Ur();
685
+ return new jr();
663
686
  }
664
687
  }, Ne = {
665
- variadic: $r
666
- }, b;
688
+ variadic: Fr
689
+ }, g;
667
690
  (function(e) {
668
691
  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";
669
- })(b || (b = {}));
670
- var _;
692
+ })(g || (g = {}));
693
+ var E;
671
694
  (function(e) {
672
695
  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";
673
- })(_ || (_ = {}));
674
- var K;
696
+ })(E || (E = {}));
697
+ var Y;
675
698
  (function(e) {
676
699
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
677
- })(K || (K = {}));
700
+ })(Y || (Y = {}));
678
701
  function rt(e) {
679
- return e.type === _.literal;
702
+ return e.type === E.literal;
680
703
  }
681
- function Gr(e) {
682
- return e.type === _.argument;
704
+ function Vr(e) {
705
+ return e.type === E.argument;
683
706
  }
684
707
  function At(e) {
685
- return e.type === _.number;
708
+ return e.type === E.number;
686
709
  }
687
710
  function Tt(e) {
688
- return e.type === _.date;
711
+ return e.type === E.date;
689
712
  }
690
713
  function Bt(e) {
691
- return e.type === _.time;
714
+ return e.type === E.time;
692
715
  }
693
716
  function Nt(e) {
694
- return e.type === _.select;
717
+ return e.type === E.select;
695
718
  }
696
719
  function Pt(e) {
697
- return e.type === _.plural;
720
+ return e.type === E.plural;
698
721
  }
699
- function jr(e) {
700
- return e.type === _.pound;
722
+ function zr(e) {
723
+ return e.type === E.pound;
701
724
  }
702
725
  function Ot(e) {
703
- return e.type === _.tag;
726
+ return e.type === E.tag;
704
727
  }
705
728
  function It(e) {
706
- return !!(e && typeof e == "object" && e.type === K.number);
729
+ return !!(e && typeof e == "object" && e.type === Y.number);
707
730
  }
708
731
  function De(e) {
709
- return !!(e && typeof e == "object" && e.type === K.dateTime);
732
+ return !!(e && typeof e == "object" && e.type === Y.dateTime);
710
733
  }
711
- var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
712
- function Vr(e) {
734
+ var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xr = /(?:[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;
735
+ function Zr(e) {
713
736
  var t = {};
714
- return e.replace(kr, function(r) {
737
+ return e.replace(Xr, function(r) {
715
738
  var n = r.length;
716
739
  switch (r[0]) {
717
740
  case "G":
@@ -800,29 +823,29 @@ function Vr(e) {
800
823
  return "";
801
824
  }), t;
802
825
  }
803
- var zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
804
- function Xr(e) {
826
+ var Wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
827
+ function Jr(e) {
805
828
  if (e.length === 0)
806
829
  throw new Error("Number skeleton cannot be empty");
807
- for (var t = e.split(zr).filter(function(c) {
808
- return c.length > 0;
830
+ for (var t = e.split(Wr).filter(function(f) {
831
+ return f.length > 0;
809
832
  }), r = [], n = 0, i = t; n < i.length; n++) {
810
833
  var o = i[n], s = o.split("/");
811
834
  if (s.length === 0)
812
835
  throw new Error("Invalid number skeleton");
813
- for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
814
- var f = h[l];
815
- if (f.length === 0)
836
+ for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
837
+ var c = u[l];
838
+ if (c.length === 0)
816
839
  throw new Error("Invalid number skeleton");
817
840
  }
818
- r.push({ stem: a, options: u });
841
+ r.push({ stem: a, options: h });
819
842
  }
820
843
  return r;
821
844
  }
822
- function Zr(e) {
845
+ function Qr(e) {
823
846
  return e.replace(/^(.*?)-/, "");
824
847
  }
825
- var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Wr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
848
+ var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, qr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
826
849
  function it(e) {
827
850
  var t = {};
828
851
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
@@ -869,7 +892,7 @@ function Rt(e) {
869
892
  };
870
893
  }
871
894
  }
872
- function Jr(e) {
895
+ function Yr(e) {
873
896
  var t;
874
897
  if (e[0] === "E" && e[1] === "E" ? (t = {
875
898
  notation: "engineering"
@@ -887,7 +910,7 @@ function ot(e) {
887
910
  var t = {}, r = Rt(e);
888
911
  return r || t;
889
912
  }
890
- function Qr(e) {
913
+ function Kr(e) {
891
914
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
892
915
  var i = n[r];
893
916
  switch (i.stem) {
@@ -911,7 +934,7 @@ function Qr(e) {
911
934
  continue;
912
935
  case "measure-unit":
913
936
  case "unit":
914
- t.style = "unit", t.unit = Zr(i.options[0]);
937
+ t.style = "unit", t.unit = Qr(i.options[0]);
915
938
  continue;
916
939
  case "compact-short":
917
940
  case "K":
@@ -922,13 +945,13 @@ function Qr(e) {
922
945
  t.notation = "compact", t.compactDisplay = "long";
923
946
  continue;
924
947
  case "scientific":
925
- t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
926
- return y(y({}, u), ot(l));
948
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
949
+ return x(x({}, h), ot(l));
927
950
  }, {}));
928
951
  continue;
929
952
  case "engineering":
930
- t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
931
- return y(y({}, u), ot(l));
953
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
954
+ return x(x({}, h), ot(l));
932
955
  }, {}));
933
956
  continue;
934
957
  case "notation-simple":
@@ -973,13 +996,13 @@ function Qr(e) {
973
996
  case "integer-width":
974
997
  if (i.options.length > 1)
975
998
  throw new RangeError("integer-width stems only accept a single optional option");
976
- i.options[0].replace(Wr, function(u, l, h, f, c, m) {
999
+ i.options[0].replace(qr, function(h, l, u, c, f, p) {
977
1000
  if (l)
978
- t.minimumIntegerDigits = h.length;
1001
+ t.minimumIntegerDigits = u.length;
979
1002
  else {
980
- if (f && c)
1003
+ if (c && f)
981
1004
  throw new Error("We currently do not support maximum integer digits");
982
- if (m)
1005
+ if (p)
983
1006
  throw new Error("We currently do not support exact integer digits");
984
1007
  }
985
1008
  return "";
@@ -993,25 +1016,25 @@ function Qr(e) {
993
1016
  if (nt.test(i.stem)) {
994
1017
  if (i.options.length > 1)
995
1018
  throw new RangeError("Fraction-precision stems only accept a single optional option");
996
- i.stem.replace(nt, function(u, l, h, f, c, m) {
997
- return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1019
+ i.stem.replace(nt, function(h, l, u, c, f, p) {
1020
+ return u === "*" ? 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), "";
998
1021
  });
999
1022
  var o = i.options[0];
1000
- o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), it(o)));
1023
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), it(o)));
1001
1024
  continue;
1002
1025
  }
1003
1026
  if (Lt.test(i.stem)) {
1004
- t = y(y({}, t), it(i.stem));
1027
+ t = x(x({}, t), it(i.stem));
1005
1028
  continue;
1006
1029
  }
1007
1030
  var s = Rt(i.stem);
1008
- s && (t = y(y({}, t), s));
1009
- var a = Jr(i.stem);
1010
- a && (t = y(y({}, t), a));
1031
+ s && (t = x(x({}, t), s));
1032
+ var a = Yr(i.stem);
1033
+ a && (t = x(x({}, t), a));
1011
1034
  }
1012
1035
  return t;
1013
1036
  }
1014
- var pe = {
1037
+ var me = {
1015
1038
  "001": [
1016
1039
  "H",
1017
1040
  "h"
@@ -2426,22 +2449,22 @@ var pe = {
2426
2449
  "h"
2427
2450
  ]
2428
2451
  };
2429
- function qr(e, t) {
2452
+ function en(e, t) {
2430
2453
  for (var r = "", n = 0; n < e.length; n++) {
2431
2454
  var i = e.charAt(n);
2432
2455
  if (i === "j") {
2433
2456
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2434
2457
  o++, n++;
2435
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Yr(t);
2458
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = tn(t);
2436
2459
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2437
- r += u;
2460
+ r += h;
2438
2461
  for (; s-- > 0; )
2439
2462
  r = l + r;
2440
2463
  } else i === "J" ? r += "H" : r += i;
2441
2464
  }
2442
2465
  return r;
2443
2466
  }
2444
- function Yr(e) {
2467
+ function tn(e) {
2445
2468
  var t = e.hourCycle;
2446
2469
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2447
2470
  e.hourCycles && // @ts-ignore
@@ -2460,23 +2483,23 @@ function Yr(e) {
2460
2483
  }
2461
2484
  var r = e.language, n;
2462
2485
  r !== "root" && (n = e.maximize().region);
2463
- var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2486
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
2464
2487
  return i[0];
2465
2488
  }
2466
- var Pe, Kr = new RegExp("^".concat(Ct.source, "*")), en = new RegExp("".concat(Ct.source, "*$"));
2467
- function g(e, t) {
2489
+ var Pe, rn = new RegExp("^".concat(Ct.source, "*")), nn = new RegExp("".concat(Ct.source, "*$"));
2490
+ function y(e, t) {
2468
2491
  return { start: e, end: t };
2469
2492
  }
2470
- var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, on = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, ln = !!Number.isSafeInteger, hn = ln ? Number.isSafeInteger : function(e) {
2493
+ var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), sn = !!String.fromCodePoint, an = !!Object.fromEntries, ln = !!String.prototype.codePointAt, un = !!String.prototype.trimStart, hn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, fn = cn ? Number.isSafeInteger : function(e) {
2471
2494
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2472
2495
  }, Ue = !0;
2473
2496
  try {
2474
- var un = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2475
- Ue = ((Pe = un.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2497
+ var mn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2498
+ Ue = ((Pe = mn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2476
2499
  } catch {
2477
2500
  Ue = !1;
2478
2501
  }
2479
- var st = tn ? (
2502
+ var st = on ? (
2480
2503
  // Native
2481
2504
  function(t, r, n) {
2482
2505
  return t.startsWith(r, n);
@@ -2486,7 +2509,7 @@ var st = tn ? (
2486
2509
  function(t, r, n) {
2487
2510
  return t.slice(n, n + r.length) === r;
2488
2511
  }
2489
- ), Fe = rn ? String.fromCodePoint : (
2512
+ ), Fe = sn ? String.fromCodePoint : (
2490
2513
  // IE11
2491
2514
  function() {
2492
2515
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2500,7 +2523,7 @@ var st = tn ? (
2500
2523
  }
2501
2524
  ), at = (
2502
2525
  // native
2503
- nn ? Object.fromEntries : (
2526
+ an ? Object.fromEntries : (
2504
2527
  // Ponyfill
2505
2528
  function(t) {
2506
2529
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2510,7 +2533,7 @@ var st = tn ? (
2510
2533
  return r;
2511
2534
  }
2512
2535
  )
2513
- ), $t = on ? (
2536
+ ), $t = ln ? (
2514
2537
  // Native
2515
2538
  function(t, r) {
2516
2539
  return t.codePointAt(r);
@@ -2524,7 +2547,7 @@ var st = tn ? (
2524
2547
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2525
2548
  }
2526
2549
  }
2527
- ), cn = sn ? (
2550
+ ), pn = un ? (
2528
2551
  // Native
2529
2552
  function(t) {
2530
2553
  return t.trimStart();
@@ -2532,9 +2555,9 @@ var st = tn ? (
2532
2555
  ) : (
2533
2556
  // Ponyfill
2534
2557
  function(t) {
2535
- return t.replace(Kr, "");
2558
+ return t.replace(rn, "");
2536
2559
  }
2537
- ), fn = an ? (
2560
+ ), dn = hn ? (
2538
2561
  // Native
2539
2562
  function(t) {
2540
2563
  return t.trimEnd();
@@ -2542,7 +2565,7 @@ var st = tn ? (
2542
2565
  ) : (
2543
2566
  // Ponyfill
2544
2567
  function(t) {
2545
- return t.replace(en, "");
2568
+ return t.replace(nn, "");
2546
2569
  }
2547
2570
  );
2548
2571
  function Dt(e, t) {
@@ -2561,13 +2584,13 @@ if (Ue) {
2561
2584
  Ge = function(t, r) {
2562
2585
  for (var n = []; ; ) {
2563
2586
  var i = $t(t, r);
2564
- if (i === void 0 || Ut(i) || bn(i))
2587
+ if (i === void 0 || Ut(i) || xn(i))
2565
2588
  break;
2566
2589
  n.push(i), r += i >= 65536 ? 2 : 1;
2567
2590
  }
2568
2591
  return Fe.apply(void 0, n);
2569
2592
  };
2570
- var pn = (
2593
+ var bn = (
2571
2594
  /** @class */
2572
2595
  function() {
2573
2596
  function e(t, r) {
@@ -2591,13 +2614,13 @@ var pn = (
2591
2614
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2592
2615
  var a = this.clonePosition();
2593
2616
  this.bump(), i.push({
2594
- type: _.pound,
2595
- location: g(a, this.clonePosition())
2617
+ type: E.pound,
2618
+ location: y(a, this.clonePosition())
2596
2619
  });
2597
2620
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2598
2621
  if (n)
2599
2622
  break;
2600
- return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2623
+ return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2601
2624
  } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2602
2625
  var s = this.parseTag(t, r);
2603
2626
  if (s.err)
@@ -2619,9 +2642,9 @@ var pn = (
2619
2642
  if (this.bumpSpace(), this.bumpIf("/>"))
2620
2643
  return {
2621
2644
  val: {
2622
- type: _.literal,
2645
+ type: E.literal,
2623
2646
  value: "<".concat(i, "/>"),
2624
- location: g(n, this.clonePosition())
2647
+ location: y(n, this.clonePosition())
2625
2648
  },
2626
2649
  err: null
2627
2650
  };
@@ -2632,24 +2655,24 @@ var pn = (
2632
2655
  var s = o.val, a = this.clonePosition();
2633
2656
  if (this.bumpIf("</")) {
2634
2657
  if (this.isEOF() || !je(this.char()))
2635
- return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
2636
- var u = this.clonePosition(), l = this.parseTagName();
2637
- return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2658
+ return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
2659
+ var h = this.clonePosition(), l = this.parseTagName();
2660
+ return i !== l ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2638
2661
  val: {
2639
- type: _.tag,
2662
+ type: E.tag,
2640
2663
  value: i,
2641
2664
  children: s,
2642
- location: g(n, this.clonePosition())
2665
+ location: y(n, this.clonePosition())
2643
2666
  },
2644
2667
  err: null
2645
- } : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
2668
+ } : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
2646
2669
  } else
2647
- return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2670
+ return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
2648
2671
  } else
2649
- return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2672
+ return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
2650
2673
  }, e.prototype.parseTagName = function() {
2651
2674
  var t = this.offset();
2652
- for (this.bump(); !this.isEOF() && dn(this.char()); )
2675
+ for (this.bump(); !this.isEOF() && yn(this.char()); )
2653
2676
  this.bump();
2654
2677
  return this.message.slice(t, this.offset());
2655
2678
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2671,14 +2694,14 @@ var pn = (
2671
2694
  }
2672
2695
  break;
2673
2696
  }
2674
- var u = g(n, this.clonePosition());
2697
+ var h = y(n, this.clonePosition());
2675
2698
  return {
2676
- val: { type: _.literal, value: i, location: u },
2699
+ val: { type: E.literal, value: i, location: h },
2677
2700
  err: null
2678
2701
  };
2679
2702
  }, e.prototype.tryParseLeftAngleBracket = function() {
2680
2703
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2681
- !mn(this.peek() || 0)) ? (this.bump(), "<") : null;
2704
+ !gn(this.peek() || 0)) ? (this.bump(), "<") : null;
2682
2705
  }, e.prototype.tryParseQuote = function(t) {
2683
2706
  if (this.isEOF() || this.char() !== 39)
2684
2707
  return null;
@@ -2721,40 +2744,40 @@ var pn = (
2721
2744
  }, e.prototype.parseArgument = function(t, r) {
2722
2745
  var n = this.clonePosition();
2723
2746
  if (this.bump(), this.bumpSpace(), this.isEOF())
2724
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2747
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2725
2748
  if (this.char() === 125)
2726
- return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2749
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
2727
2750
  var i = this.parseIdentifierIfPossible().value;
2728
2751
  if (!i)
2729
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2752
+ return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2730
2753
  if (this.bumpSpace(), this.isEOF())
2731
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2754
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
2732
2755
  switch (this.char()) {
2733
2756
  case 125:
2734
2757
  return this.bump(), {
2735
2758
  val: {
2736
- type: _.argument,
2759
+ type: E.argument,
2737
2760
  // value does not include the opening and closing braces.
2738
2761
  value: i,
2739
- location: g(n, this.clonePosition())
2762
+ location: y(n, this.clonePosition())
2740
2763
  },
2741
2764
  err: null
2742
2765
  };
2743
2766
  case 44:
2744
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2767
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2745
2768
  default:
2746
- return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2769
+ return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2747
2770
  }
2748
2771
  }, e.prototype.parseIdentifierIfPossible = function() {
2749
2772
  var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2750
2773
  this.bumpTo(i);
2751
- var o = this.clonePosition(), s = g(t, o);
2774
+ var o = this.clonePosition(), s = y(t, o);
2752
2775
  return { value: n, location: s };
2753
2776
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2754
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2777
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2755
2778
  switch (a) {
2756
2779
  case "":
2757
- return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
2780
+ return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
2758
2781
  case "number":
2759
2782
  case "date":
2760
2783
  case "time": {
@@ -2762,49 +2785,49 @@ var pn = (
2762
2785
  var l = null;
2763
2786
  if (this.bumpIf(",")) {
2764
2787
  this.bumpSpace();
2765
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2766
- if (f.err)
2767
- return f;
2768
- var c = fn(f.val);
2769
- if (c.length === 0)
2770
- return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2771
- var m = g(h, this.clonePosition());
2772
- l = { style: c, styleLocation: m };
2788
+ var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2789
+ if (c.err)
2790
+ return c;
2791
+ var f = dn(c.val);
2792
+ if (f.length === 0)
2793
+ return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2794
+ var p = y(u, this.clonePosition());
2795
+ l = { style: f, styleLocation: p };
2773
2796
  }
2774
- var x = this.tryParseArgumentClose(i);
2775
- if (x.err)
2776
- return x;
2777
- var E = g(i, this.clonePosition());
2797
+ var b = this.tryParseArgumentClose(i);
2798
+ if (b.err)
2799
+ return b;
2800
+ var S = y(i, this.clonePosition());
2778
2801
  if (l && st(l?.style, "::", 0)) {
2779
- var N = cn(l.style.slice(2));
2802
+ var w = pn(l.style.slice(2));
2780
2803
  if (a === "number") {
2781
- var f = this.parseNumberSkeletonFromString(N, l.styleLocation);
2782
- return f.err ? f : {
2783
- val: { type: _.number, value: n, location: E, style: f.val },
2804
+ var c = this.parseNumberSkeletonFromString(w, l.styleLocation);
2805
+ return c.err ? c : {
2806
+ val: { type: E.number, value: n, location: S, style: c.val },
2784
2807
  err: null
2785
2808
  };
2786
2809
  } else {
2787
- if (N.length === 0)
2788
- return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2789
- var L = N;
2790
- this.locale && (L = qr(N, this.locale));
2791
- var c = {
2792
- type: K.dateTime,
2793
- pattern: L,
2810
+ if (w.length === 0)
2811
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, S);
2812
+ var M = w;
2813
+ this.locale && (M = en(w, this.locale));
2814
+ var f = {
2815
+ type: Y.dateTime,
2816
+ pattern: M,
2794
2817
  location: l.styleLocation,
2795
- parsedOptions: this.shouldParseSkeletons ? Vr(L) : {}
2796
- }, M = a === "date" ? _.date : _.time;
2818
+ parsedOptions: this.shouldParseSkeletons ? Zr(M) : {}
2819
+ }, C = a === "date" ? E.date : E.time;
2797
2820
  return {
2798
- val: { type: M, value: n, location: E, style: c },
2821
+ val: { type: C, value: n, location: S, style: f },
2799
2822
  err: null
2800
2823
  };
2801
2824
  }
2802
2825
  }
2803
2826
  return {
2804
2827
  val: {
2805
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2828
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
2806
2829
  value: n,
2807
- location: E,
2830
+ location: S,
2808
2831
  style: (o = l?.style) !== null && o !== void 0 ? o : null
2809
2832
  },
2810
2833
  err: null
@@ -2815,39 +2838,39 @@ var pn = (
2815
2838
  case "select": {
2816
2839
  var B = this.clonePosition();
2817
2840
  if (this.bumpSpace(), !this.bumpIf(","))
2818
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(B, y({}, B)));
2841
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(B, x({}, B)));
2819
2842
  this.bumpSpace();
2820
- var I = this.parseIdentifierIfPossible(), H = 0;
2843
+ var I = this.parseIdentifierIfPossible(), A = 0;
2821
2844
  if (a !== "select" && I.value === "offset") {
2822
2845
  if (!this.bumpIf(":"))
2823
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2846
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2824
2847
  this.bumpSpace();
2825
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2826
- if (f.err)
2827
- return f;
2828
- this.bumpSpace(), I = this.parseIdentifierIfPossible(), H = f.val;
2848
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2849
+ if (c.err)
2850
+ return c;
2851
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), A = c.val;
2829
2852
  }
2830
- var C = this.tryParsePluralOrSelectOptions(t, a, r, I);
2831
- if (C.err)
2832
- return C;
2833
- var x = this.tryParseArgumentClose(i);
2834
- if (x.err)
2835
- return x;
2836
- var D = g(i, this.clonePosition());
2853
+ var L = this.tryParsePluralOrSelectOptions(t, a, r, I);
2854
+ if (L.err)
2855
+ return L;
2856
+ var b = this.tryParseArgumentClose(i);
2857
+ if (b.err)
2858
+ return b;
2859
+ var D = y(i, this.clonePosition());
2837
2860
  return a === "select" ? {
2838
2861
  val: {
2839
- type: _.select,
2862
+ type: E.select,
2840
2863
  value: n,
2841
- options: at(C.val),
2864
+ options: at(L.val),
2842
2865
  location: D
2843
2866
  },
2844
2867
  err: null
2845
2868
  } : {
2846
2869
  val: {
2847
- type: _.plural,
2870
+ type: E.plural,
2848
2871
  value: n,
2849
- options: at(C.val),
2850
- offset: H,
2872
+ options: at(L.val),
2873
+ offset: A,
2851
2874
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2852
2875
  location: D
2853
2876
  },
@@ -2855,10 +2878,10 @@ var pn = (
2855
2878
  };
2856
2879
  }
2857
2880
  default:
2858
- return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
2881
+ return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
2859
2882
  }
2860
2883
  }, e.prototype.tryParseArgumentClose = function(t) {
2861
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2884
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2862
2885
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2863
2886
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2864
2887
  var n = this.char();
@@ -2867,7 +2890,7 @@ var pn = (
2867
2890
  this.bump();
2868
2891
  var i = this.clonePosition();
2869
2892
  if (!this.bumpUntil("'"))
2870
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
2893
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
2871
2894
  this.bump();
2872
2895
  break;
2873
2896
  }
@@ -2897,52 +2920,52 @@ var pn = (
2897
2920
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2898
2921
  var n = [];
2899
2922
  try {
2900
- n = Xr(t);
2923
+ n = Jr(t);
2901
2924
  } catch {
2902
- return this.error(b.INVALID_NUMBER_SKELETON, r);
2925
+ return this.error(g.INVALID_NUMBER_SKELETON, r);
2903
2926
  }
2904
2927
  return {
2905
2928
  val: {
2906
- type: K.number,
2929
+ type: Y.number,
2907
2930
  tokens: n,
2908
2931
  location: r,
2909
- parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
2932
+ parsedOptions: this.shouldParseSkeletons ? Kr(n) : {}
2910
2933
  },
2911
2934
  err: null
2912
2935
  };
2913
2936
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2914
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2937
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2915
2938
  if (l.length === 0) {
2916
- var f = this.clonePosition();
2939
+ var c = this.clonePosition();
2917
2940
  if (r !== "select" && this.bumpIf("=")) {
2918
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
2919
- if (c.err)
2920
- return c;
2921
- h = g(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
2941
+ var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2942
+ if (f.err)
2943
+ return f;
2944
+ u = y(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
2922
2945
  } else
2923
2946
  break;
2924
2947
  }
2925
- if (u.has(l))
2926
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2948
+ if (h.has(l))
2949
+ return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2927
2950
  l === "other" && (s = !0), this.bumpSpace();
2928
- var m = this.clonePosition();
2951
+ var p = this.clonePosition();
2929
2952
  if (!this.bumpIf("{"))
2930
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
2931
- var x = this.parseMessage(t + 1, r, n);
2932
- if (x.err)
2933
- return x;
2934
- var E = this.tryParseArgumentClose(m);
2935
- if (E.err)
2936
- return E;
2953
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
2954
+ var b = this.parseMessage(t + 1, r, n);
2955
+ if (b.err)
2956
+ return b;
2957
+ var S = this.tryParseArgumentClose(p);
2958
+ if (S.err)
2959
+ return S;
2937
2960
  a.push([
2938
2961
  l,
2939
2962
  {
2940
- value: x.val,
2941
- location: g(m, this.clonePosition())
2963
+ value: b.val,
2964
+ location: y(p, this.clonePosition())
2942
2965
  }
2943
- ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
2966
+ ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
2944
2967
  }
2945
- return a.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: a, err: null };
2968
+ return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2946
2969
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2947
2970
  var n = 1, i = this.clonePosition();
2948
2971
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2953,8 +2976,8 @@ var pn = (
2953
2976
  else
2954
2977
  break;
2955
2978
  }
2956
- var u = g(i, this.clonePosition());
2957
- return o ? (s *= n, hn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
2979
+ var h = y(i, this.clonePosition());
2980
+ return o ? (s *= n, fn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
2958
2981
  }, e.prototype.offset = function() {
2959
2982
  return this.position.offset;
2960
2983
  }, e.prototype.isEOF = function() {
@@ -3023,16 +3046,16 @@ var pn = (
3023
3046
  function je(e) {
3024
3047
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3025
3048
  }
3026
- function mn(e) {
3049
+ function gn(e) {
3027
3050
  return je(e) || e === 47;
3028
3051
  }
3029
- function dn(e) {
3052
+ function yn(e) {
3030
3053
  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;
3031
3054
  }
3032
3055
  function Ut(e) {
3033
3056
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3034
3057
  }
3035
- function bn(e) {
3058
+ function xn(e) {
3036
3059
  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;
3037
3060
  }
3038
3061
  function ke(e) {
@@ -3043,19 +3066,19 @@ function ke(e) {
3043
3066
  else At(t) && It(t.style) || (Tt(t) || Bt(t)) && De(t.style) ? delete t.style.location : Ot(t) && ke(t.children);
3044
3067
  });
3045
3068
  }
3046
- function gn(e, t) {
3047
- t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3048
- var r = new pn(e, t).parse();
3069
+ function vn(e, t) {
3070
+ t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3071
+ var r = new bn(e, t).parse();
3049
3072
  if (r.err) {
3050
- var n = SyntaxError(b[r.err.kind]);
3073
+ var n = SyntaxError(g[r.err.kind]);
3051
3074
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3052
3075
  }
3053
3076
  return t?.captureLocation || ke(r.val), r.val;
3054
3077
  }
3055
- var ee;
3078
+ var K;
3056
3079
  (function(e) {
3057
3080
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3058
- })(ee || (ee = {}));
3081
+ })(K || (K = {}));
3059
3082
  var _e = (
3060
3083
  /** @class */
3061
3084
  function(e) {
@@ -3068,30 +3091,30 @@ var _e = (
3068
3091
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3069
3092
  }, t;
3070
3093
  }(Error)
3071
- ), ht = (
3094
+ ), ut = (
3072
3095
  /** @class */
3073
3096
  function(e) {
3074
3097
  Ee(t, e);
3075
3098
  function t(r, n, i, o) {
3076
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3099
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
3077
3100
  }
3078
3101
  return t;
3079
3102
  }(_e)
3080
- ), yn = (
3103
+ ), En = (
3081
3104
  /** @class */
3082
3105
  function(e) {
3083
3106
  Ee(t, e);
3084
3107
  function t(r, n, i) {
3085
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3108
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3086
3109
  }
3087
3110
  return t;
3088
3111
  }(_e)
3089
- ), xn = (
3112
+ ), _n = (
3090
3113
  /** @class */
3091
3114
  function(e) {
3092
3115
  Ee(t, e);
3093
3116
  function t(r, n) {
3094
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3117
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3095
3118
  }
3096
3119
  return t;
3097
3120
  }(_e)
@@ -3099,13 +3122,13 @@ var _e = (
3099
3122
  (function(e) {
3100
3123
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3101
3124
  })(O || (O = {}));
3102
- function vn(e) {
3125
+ function Sn(e) {
3103
3126
  return e.length < 2 ? e : e.reduce(function(t, r) {
3104
3127
  var n = t[t.length - 1];
3105
3128
  return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3106
3129
  }, []);
3107
3130
  }
3108
- function En(e) {
3131
+ function wn(e) {
3109
3132
  return typeof e == "function";
3110
3133
  }
3111
3134
  function de(e, t, r, n, i, o, s) {
@@ -3116,105 +3139,105 @@ function de(e, t, r, n, i, o, s) {
3116
3139
  value: e[0].value
3117
3140
  }
3118
3141
  ];
3119
- for (var a = [], u = 0, l = e; u < l.length; u++) {
3120
- var h = l[u];
3121
- if (rt(h)) {
3142
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3143
+ var u = l[h];
3144
+ if (rt(u)) {
3122
3145
  a.push({
3123
3146
  type: O.literal,
3124
- value: h.value
3147
+ value: u.value
3125
3148
  });
3126
3149
  continue;
3127
3150
  }
3128
- if (jr(h)) {
3151
+ if (zr(u)) {
3129
3152
  typeof o == "number" && a.push({
3130
3153
  type: O.literal,
3131
3154
  value: r.getNumberFormat(t).format(o)
3132
3155
  });
3133
3156
  continue;
3134
3157
  }
3135
- var f = h.value;
3136
- if (!(i && f in i))
3137
- throw new xn(f, s);
3138
- var c = i[f];
3139
- if (Gr(h)) {
3140
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3141
- type: typeof c == "string" ? O.literal : O.object,
3142
- value: c
3158
+ var c = u.value;
3159
+ if (!(i && c in i))
3160
+ throw new _n(c, s);
3161
+ var f = i[c];
3162
+ if (Vr(u)) {
3163
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3164
+ type: typeof f == "string" ? O.literal : O.object,
3165
+ value: f
3143
3166
  });
3144
3167
  continue;
3145
3168
  }
3146
- if (Tt(h)) {
3147
- var m = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
3169
+ if (Tt(u)) {
3170
+ var p = typeof u.style == "string" ? n.date[u.style] : De(u.style) ? u.style.parsedOptions : void 0;
3148
3171
  a.push({
3149
3172
  type: O.literal,
3150
- value: r.getDateTimeFormat(t, m).format(c)
3173
+ value: r.getDateTimeFormat(t, p).format(f)
3151
3174
  });
3152
3175
  continue;
3153
3176
  }
3154
- if (Bt(h)) {
3155
- var m = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
3177
+ if (Bt(u)) {
3178
+ var p = typeof u.style == "string" ? n.time[u.style] : De(u.style) ? u.style.parsedOptions : n.time.medium;
3156
3179
  a.push({
3157
3180
  type: O.literal,
3158
- value: r.getDateTimeFormat(t, m).format(c)
3181
+ value: r.getDateTimeFormat(t, p).format(f)
3159
3182
  });
3160
3183
  continue;
3161
3184
  }
3162
- if (At(h)) {
3163
- var m = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
3164
- m && m.scale && (c = c * (m.scale || 1)), a.push({
3185
+ if (At(u)) {
3186
+ var p = typeof u.style == "string" ? n.number[u.style] : It(u.style) ? u.style.parsedOptions : void 0;
3187
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
3165
3188
  type: O.literal,
3166
- value: r.getNumberFormat(t, m).format(c)
3189
+ value: r.getNumberFormat(t, p).format(f)
3167
3190
  });
3168
3191
  continue;
3169
3192
  }
3170
- if (Ot(h)) {
3171
- var x = h.children, E = h.value, N = i[E];
3172
- if (!En(N))
3173
- throw new yn(E, "function", s);
3174
- var L = de(x, t, r, n, i, o), M = N(L.map(function(H) {
3175
- return H.value;
3193
+ if (Ot(u)) {
3194
+ var b = u.children, S = u.value, w = i[S];
3195
+ if (!wn(w))
3196
+ throw new En(S, "function", s);
3197
+ var M = de(b, t, r, n, i, o), C = w(M.map(function(A) {
3198
+ return A.value;
3176
3199
  }));
3177
- Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(H) {
3200
+ Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(A) {
3178
3201
  return {
3179
- type: typeof H == "string" ? O.literal : O.object,
3180
- value: H
3202
+ type: typeof A == "string" ? O.literal : O.object,
3203
+ value: A
3181
3204
  };
3182
3205
  }));
3183
3206
  }
3184
- if (Nt(h)) {
3185
- var B = h.options[c] || h.options.other;
3207
+ if (Nt(u)) {
3208
+ var B = u.options[f] || u.options.other;
3186
3209
  if (!B)
3187
- throw new ht(h.value, c, Object.keys(h.options), s);
3210
+ throw new ut(u.value, f, Object.keys(u.options), s);
3188
3211
  a.push.apply(a, de(B.value, t, r, n, i));
3189
3212
  continue;
3190
3213
  }
3191
- if (Pt(h)) {
3192
- var B = h.options["=".concat(c)];
3214
+ if (Pt(u)) {
3215
+ var B = u.options["=".concat(f)];
3193
3216
  if (!B) {
3194
3217
  if (!Intl.PluralRules)
3195
3218
  throw new _e(`Intl.PluralRules is not available in this environment.
3196
3219
  Try polyfilling it using "@formatjs/intl-pluralrules"
3197
- `, ee.MISSING_INTL_API, s);
3198
- var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3199
- B = h.options[I] || h.options.other;
3220
+ `, K.MISSING_INTL_API, s);
3221
+ var I = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3222
+ B = u.options[I] || u.options.other;
3200
3223
  }
3201
3224
  if (!B)
3202
- throw new ht(h.value, c, Object.keys(h.options), s);
3203
- a.push.apply(a, de(B.value, t, r, n, i, c - (h.offset || 0)));
3225
+ throw new ut(u.value, f, Object.keys(u.options), s);
3226
+ a.push.apply(a, de(B.value, t, r, n, i, f - (u.offset || 0)));
3204
3227
  continue;
3205
3228
  }
3206
3229
  }
3207
- return vn(a);
3230
+ return Sn(a);
3208
3231
  }
3209
- function _n(e, t) {
3210
- return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3211
- return r[n] = y(y({}, e[n]), t[n] || {}), r;
3232
+ function Hn(e, t) {
3233
+ return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3234
+ return r[n] = x(x({}, e[n]), t[n] || {}), r;
3212
3235
  }, {})) : e;
3213
3236
  }
3214
- function Sn(e, t) {
3237
+ function An(e, t) {
3215
3238
  return t ? Object.keys(e).reduce(function(r, n) {
3216
- return r[n] = _n(e[n], t[n]), r;
3217
- }, y({}, e)) : e;
3239
+ return r[n] = Hn(e[n], t[n]), r;
3240
+ }, x({}, e)) : e;
3218
3241
  }
3219
3242
  function Oe(e) {
3220
3243
  return {
@@ -3230,7 +3253,7 @@ function Oe(e) {
3230
3253
  }
3231
3254
  };
3232
3255
  }
3233
- function wn(e) {
3256
+ function Tn(e) {
3234
3257
  return e === void 0 && (e = {
3235
3258
  number: {},
3236
3259
  dateTime: {},
@@ -3262,7 +3285,7 @@ function wn(e) {
3262
3285
  })
3263
3286
  };
3264
3287
  }
3265
- var Hn = (
3288
+ var Bn = (
3266
3289
  /** @class */
3267
3290
  function() {
3268
3291
  function e(t, r, n, i) {
@@ -3272,20 +3295,20 @@ var Hn = (
3272
3295
  number: {},
3273
3296
  dateTime: {},
3274
3297
  pluralRules: {}
3275
- }, this.format = function(u) {
3276
- var l = o.formatToParts(u);
3298
+ }, this.format = function(h) {
3299
+ var l = o.formatToParts(h);
3277
3300
  if (l.length === 1)
3278
3301
  return l[0].value;
3279
- var h = l.reduce(function(f, c) {
3280
- return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3302
+ var u = l.reduce(function(c, f) {
3303
+ return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3281
3304
  }, []);
3282
- return h.length <= 1 ? h[0] || "" : h;
3283
- }, this.formatToParts = function(u) {
3284
- return de(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3305
+ return u.length <= 1 ? u[0] || "" : u;
3306
+ }, this.formatToParts = function(h) {
3307
+ return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3285
3308
  }, this.resolvedOptions = function() {
3286
- var u;
3309
+ var h;
3287
3310
  return {
3288
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3311
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3289
3312
  };
3290
3313
  }, this.getAst = function() {
3291
3314
  return o.ast;
@@ -3294,13 +3317,13 @@ var Hn = (
3294
3317
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3295
3318
  var s = i || {};
3296
3319
  s.formatters;
3297
- var a = Cr(s, ["formatters"]);
3298
- this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3320
+ var a = Rr(s, ["formatters"]);
3321
+ this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
3299
3322
  } else
3300
3323
  this.ast = t;
3301
3324
  if (!Array.isArray(this.ast))
3302
3325
  throw new TypeError("A message must be provided as a String or AST.");
3303
- this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || wn(this.formatterCache);
3326
+ this.formats = An(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
3304
3327
  }
3305
3328
  return Object.defineProperty(e, "defaultLocale", {
3306
3329
  get: function() {
@@ -3313,7 +3336,7 @@ var Hn = (
3313
3336
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3314
3337
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3315
3338
  }
3316
- }, e.__parse = gn, e.formats = {
3339
+ }, e.__parse = vn, e.formats = {
3317
3340
  number: {
3318
3341
  integer: {
3319
3342
  maximumFractionDigits: 0
@@ -3374,7 +3397,7 @@ var Hn = (
3374
3397
  }, e;
3375
3398
  }()
3376
3399
  );
3377
- function An(e, t) {
3400
+ function Nn(e, t) {
3378
3401
  if (t == null)
3379
3402
  return;
3380
3403
  if (t in e)
@@ -3395,33 +3418,33 @@ function An(e, t) {
3395
3418
  n = void 0;
3396
3419
  return n;
3397
3420
  }
3398
- const F = {}, Tn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Ft = (e, t) => {
3421
+ const G = {}, Pn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ft = (e, t) => {
3399
3422
  if (t == null)
3400
3423
  return;
3401
- if (t in F && e in F[t])
3402
- return F[t][e];
3424
+ if (t in G && e in G[t])
3425
+ return G[t][e];
3403
3426
  const r = Se(t);
3404
3427
  for (let n = 0; n < r.length; n++) {
3405
- const i = r[n], o = Nn(i, e);
3428
+ const i = r[n], o = In(i, e);
3406
3429
  if (o)
3407
- return Tn(e, t, o);
3430
+ return Pn(e, t, o);
3408
3431
  }
3409
3432
  };
3410
3433
  let Ze;
3411
- const ne = ve({});
3412
- function Bn(e) {
3434
+ const re = ve({});
3435
+ function On(e) {
3413
3436
  return Ze[e] || null;
3414
3437
  }
3415
3438
  function Gt(e) {
3416
3439
  return e in Ze;
3417
3440
  }
3418
- function Nn(e, t) {
3441
+ function In(e, t) {
3419
3442
  if (!Gt(e))
3420
3443
  return null;
3421
- const r = Bn(e);
3422
- return An(r, t);
3444
+ const r = On(e);
3445
+ return Nn(r, t);
3423
3446
  }
3424
- function Pn(e) {
3447
+ function Cn(e) {
3425
3448
  if (e == null)
3426
3449
  return;
3427
3450
  const t = Se(e);
@@ -3432,21 +3455,21 @@ function Pn(e) {
3432
3455
  }
3433
3456
  }
3434
3457
  function jt(e, ...t) {
3435
- delete F[e], ne.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
3458
+ delete G[e], re.update((r) => (r[e] = Mr.all([r[e] || {}, ...t]), r));
3436
3459
  }
3437
- re(
3438
- [ne],
3460
+ te(
3461
+ [re],
3439
3462
  ([e]) => Object.keys(e)
3440
3463
  );
3441
- ne.subscribe((e) => Ze = e);
3464
+ re.subscribe((e) => Ze = e);
3442
3465
  const be = {};
3443
- function On(e, t) {
3466
+ function Ln(e, t) {
3444
3467
  be[e].delete(t), be[e].size === 0 && delete be[e];
3445
3468
  }
3446
3469
  function kt(e) {
3447
3470
  return be[e];
3448
3471
  }
3449
- function In(e) {
3472
+ function Mn(e) {
3450
3473
  return Se(e).map((t) => {
3451
3474
  const r = kt(t);
3452
3475
  return [t, r ? [...r] : []];
@@ -3460,19 +3483,19 @@ function Ve(e) {
3460
3483
  }
3461
3484
  );
3462
3485
  }
3463
- function Cn(e, t) {
3486
+ function Rn(e, t) {
3464
3487
  return Promise.all(
3465
- t.map((n) => (On(e, n), n().then((i) => i.default || i)))
3488
+ t.map((n) => (Ln(e, n), n().then((i) => i.default || i)))
3466
3489
  ).then((n) => jt(e, ...n));
3467
3490
  }
3468
3491
  const oe = {};
3469
3492
  function Vt(e) {
3470
3493
  if (!Ve(e))
3471
3494
  return e in oe ? oe[e] : Promise.resolve();
3472
- const t = In(e);
3495
+ const t = Mn(e);
3473
3496
  return oe[e] = Promise.all(
3474
3497
  t.map(
3475
- ([r, n]) => Cn(r, n)
3498
+ ([r, n]) => Rn(r, n)
3476
3499
  )
3477
3500
  ).then(() => {
3478
3501
  if (Ve(e))
@@ -3480,7 +3503,7 @@ function Vt(e) {
3480
3503
  delete oe[e];
3481
3504
  }), oe[e];
3482
3505
  }
3483
- const Ln = {
3506
+ const $n = {
3484
3507
  number: {
3485
3508
  scientific: { notation: "scientific" },
3486
3509
  engineering: { notation: "engineering" },
@@ -3509,32 +3532,32 @@ const Ln = {
3509
3532
  timeZoneName: "short"
3510
3533
  }
3511
3534
  }
3512
- }, Mn = {
3535
+ }, Dn = {
3513
3536
  fallbackLocale: null,
3514
3537
  loadingDelay: 200,
3515
- formats: Ln,
3538
+ formats: $n,
3516
3539
  warnOnMissingMessages: !0,
3517
3540
  handleMissingMessage: void 0,
3518
3541
  ignoreTag: !0
3519
- }, Rn = Mn;
3520
- function te() {
3521
- return Rn;
3542
+ }, Un = Dn;
3543
+ function ee() {
3544
+ return Un;
3522
3545
  }
3523
3546
  const Ie = ve(!1);
3524
- var $n = Object.defineProperty, Dn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
3547
+ var Fn = Object.defineProperty, Gn = Object.defineProperties, jn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
3525
3548
  for (var r in t || (t = {}))
3526
- Fn.call(t, r) && ct(e, r, t[r]);
3527
- if (ut)
3528
- for (var r of ut(t))
3529
- Gn.call(t, r) && ct(e, r, t[r]);
3549
+ kn.call(t, r) && ct(e, r, t[r]);
3550
+ if (ht)
3551
+ for (var r of ht(t))
3552
+ Vn.call(t, r) && ct(e, r, t[r]);
3530
3553
  return e;
3531
- }, kn = (e, t) => Dn(e, Un(t));
3554
+ }, Xn = (e, t) => Gn(e, jn(t));
3532
3555
  let ze;
3533
3556
  const ge = ve(null);
3534
3557
  function ft(e) {
3535
3558
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3536
3559
  }
3537
- function Se(e, t = te().fallbackLocale) {
3560
+ function Se(e, t = ee().fallbackLocale) {
3538
3561
  const r = ft(e);
3539
3562
  return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
3540
3563
  }
@@ -3544,9 +3567,9 @@ function z() {
3544
3567
  ge.subscribe((e) => {
3545
3568
  ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3546
3569
  });
3547
- const Vn = (e) => {
3548
- if (e && Pn(e) && Ve(e)) {
3549
- const { loadingDelay: t } = te();
3570
+ const Zn = (e) => {
3571
+ if (e && Cn(e) && Ve(e)) {
3572
+ const { loadingDelay: t } = ee();
3550
3573
  let r;
3551
3574
  return typeof window < "u" && z() != null && t ? r = window.setTimeout(
3552
3575
  () => Ie.set(!0),
@@ -3558,8 +3581,8 @@ const Vn = (e) => {
3558
3581
  });
3559
3582
  }
3560
3583
  return ge.set(e);
3561
- }, V = kn(jn({}, ge), {
3562
- set: Vn
3584
+ }, V = Xn(zn({}, ge), {
3585
+ set: Zn
3563
3586
  }), we = (e) => {
3564
3587
  const t = /* @__PURE__ */ Object.create(null);
3565
3588
  return (n) => {
@@ -3567,14 +3590,14 @@ const Vn = (e) => {
3567
3590
  return i in t ? t[i] : t[i] = e(n);
3568
3591
  };
3569
3592
  };
3570
- var zn = Object.defineProperty, ye = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3593
+ var Wn = Object.defineProperty, ye = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3571
3594
  for (var r in t || (t = {}))
3572
- zt.call(t, r) && pt(e, r, t[r]);
3595
+ zt.call(t, r) && mt(e, r, t[r]);
3573
3596
  if (ye)
3574
3597
  for (var r of ye(t))
3575
- Xt.call(t, r) && pt(e, r, t[r]);
3598
+ Xt.call(t, r) && mt(e, r, t[r]);
3576
3599
  return e;
3577
- }, ie = (e, t) => {
3600
+ }, ne = (e, t) => {
3578
3601
  var r = {};
3579
3602
  for (var n in e)
3580
3603
  zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -3583,103 +3606,103 @@ var zn = Object.defineProperty, ye = Object.getOwnPropertySymbols, zt = Object.p
3583
3606
  t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3584
3607
  return r;
3585
3608
  };
3586
- const he = (e, t) => {
3587
- const { formats: r } = te();
3609
+ const ue = (e, t) => {
3610
+ const { formats: r } = ee();
3588
3611
  if (e in r && t in r[e])
3589
3612
  return r[e][t];
3590
3613
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3591
- }, Xn = we(
3614
+ }, Jn = we(
3592
3615
  (e) => {
3593
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3616
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3594
3617
  if (r == null)
3595
3618
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3596
- return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3619
+ return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
3597
3620
  }
3598
- ), Zn = we(
3621
+ ), Qn = we(
3599
3622
  (e) => {
3600
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3623
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3601
3624
  if (r == null)
3602
3625
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3603
- return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3626
+ return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
3604
3627
  }
3605
- ), Wn = we(
3628
+ ), qn = we(
3606
3629
  (e) => {
3607
- var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
3630
+ var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
3608
3631
  if (r == null)
3609
3632
  throw new Error(
3610
3633
  '[svelte-i18n] A "locale" must be set to format time values'
3611
3634
  );
3612
- return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3635
+ return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
3613
3636
  }
3614
- ), Jn = (e = {}) => {
3637
+ ), Yn = (e = {}) => {
3615
3638
  var t = e, {
3616
3639
  locale: r = z()
3617
- } = t, n = ie(t, [
3640
+ } = t, n = ne(t, [
3618
3641
  "locale"
3619
3642
  ]);
3620
- return Xn(We({ locale: r }, n));
3621
- }, Qn = (e = {}) => {
3643
+ return Jn(We({ locale: r }, n));
3644
+ }, Kn = (e = {}) => {
3622
3645
  var t = e, {
3623
3646
  locale: r = z()
3624
- } = t, n = ie(t, [
3647
+ } = t, n = ne(t, [
3625
3648
  "locale"
3626
3649
  ]);
3627
- return Zn(We({ locale: r }, n));
3628
- }, qn = (e = {}) => {
3650
+ return Qn(We({ locale: r }, n));
3651
+ }, ei = (e = {}) => {
3629
3652
  var t = e, {
3630
3653
  locale: r = z()
3631
- } = t, n = ie(t, [
3654
+ } = t, n = ne(t, [
3632
3655
  "locale"
3633
3656
  ]);
3634
- return Wn(We({ locale: r }, n));
3635
- }, Yn = we(
3657
+ return qn(We({ locale: r }, n));
3658
+ }, ti = we(
3636
3659
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3637
- (e, t = z()) => new Hn(e, t, te().formats, {
3638
- ignoreTag: te().ignoreTag
3660
+ (e, t = z()) => new Bn(e, t, ee().formats, {
3661
+ ignoreTag: ee().ignoreTag
3639
3662
  })
3640
- ), Kn = (e, t = {}) => {
3663
+ ), ri = (e, t = {}) => {
3641
3664
  var r, n, i, o;
3642
3665
  let s = t;
3643
3666
  typeof e == "object" && (s = e, e = s.id);
3644
3667
  const {
3645
3668
  values: a,
3646
- locale: u = z(),
3669
+ locale: h = z(),
3647
3670
  default: l
3648
3671
  } = s;
3649
- if (u == null)
3672
+ if (h == null)
3650
3673
  throw new Error(
3651
3674
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3652
3675
  );
3653
- let h = Ft(e, u);
3654
- if (!h)
3655
- h = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3656
- else if (typeof h != "string")
3676
+ let u = Ft(e, h);
3677
+ if (!u)
3678
+ u = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3679
+ else if (typeof u != "string")
3657
3680
  return console.warn(
3658
- `[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.`
3659
- ), h;
3681
+ `[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.`
3682
+ ), u;
3660
3683
  if (!a)
3661
- return h;
3662
- let f = h;
3684
+ return u;
3685
+ let c = u;
3663
3686
  try {
3664
- f = Yn(h, u).format(a);
3665
- } catch (c) {
3666
- c instanceof Error && console.warn(
3687
+ c = ti(u, h).format(a);
3688
+ } catch (f) {
3689
+ f instanceof Error && console.warn(
3667
3690
  `[svelte-i18n] Message "${e}" has syntax error:`,
3668
- c.message
3691
+ f.message
3669
3692
  );
3670
3693
  }
3671
- return f;
3672
- }, ei = (e, t) => qn(t).format(e), ti = (e, t) => Qn(t).format(e), ri = (e, t) => Jn(t).format(e), ni = (e, t = z()) => Ft(e, t), ii = re([V, ne], () => Kn);
3673
- re([V], () => ei);
3674
- re([V], () => ti);
3675
- re([V], () => ri);
3676
- re([V, ne], () => ni);
3677
- function oi({ withLocale: e, translations: t }) {
3694
+ return c;
3695
+ }, ni = (e, t) => ei(t).format(e), ii = (e, t) => Kn(t).format(e), oi = (e, t) => Yn(t).format(e), si = (e, t = z()) => Ft(e, t), ai = te([V, re], () => ri);
3696
+ te([V], () => ni);
3697
+ te([V], () => ii);
3698
+ te([V], () => oi);
3699
+ te([V, re], () => si);
3700
+ function li({ withLocale: e, translations: t }) {
3678
3701
  V.subscribe((r) => {
3679
- r == null && (ne.set(t), V.set(e));
3702
+ r == null && (re.set(t), V.set(e));
3680
3703
  });
3681
3704
  }
3682
- function mt(e, t) {
3705
+ function pt(e, t) {
3683
3706
  jt(e, t);
3684
3707
  }
3685
3708
  const dt = {
@@ -3810,88 +3833,88 @@ const dt = {
3810
3833
  hottest: "Hottest"
3811
3834
  }
3812
3835
  };
3813
- function si(e) {
3814
- Jt(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)}}');
3836
+ function ui(e) {
3837
+ Jt(e, "svelte-54zse8", ':root{--min-height:50px}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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)}}');
3815
3838
  }
3816
3839
  function bt(e, t, r) {
3817
3840
  const n = e.slice();
3818
3841
  return n[23] = t[r], n;
3819
3842
  }
3820
- function ai(e) {
3821
- let t, r, n, i, o, s, a, u, l, h, f, c = (
3843
+ function hi(e) {
3844
+ let t, r, n, i, o, s, a, h, l, u, c, f = (
3822
3845
  /*$_*/
3823
3846
  e[4]("sortby") + ""
3824
- ), m, x, E, N, L = (
3847
+ ), p, b, S, w, M = (
3825
3848
  /*vendorSortingBy*/
3826
3849
  (e[3] || /*$_*/
3827
3850
  e[4]("all")) + ""
3828
- ), M, B, I, H, C, D, X, d, S, R, fe, He, Je, Z = et(Object.values(
3851
+ ), C, B, I, A, L, D, d, N, R, ie, fe, He, Je, X = et(Object.values(
3829
3852
  /*vendorMap*/
3830
3853
  e[5]
3831
3854
  )), P = [];
3832
- for (let w = 0; w < Z.length; w += 1)
3833
- P[w] = gt(bt(e, Z, w));
3855
+ for (let _ = 0; _ < X.length; _ += 1)
3856
+ P[_] = gt(bt(e, X, _));
3834
3857
  return {
3835
3858
  c() {
3836
- t = A("div"), r = A("div"), n = A("div"), i = G("svg"), o = G("g"), s = G("path"), a = G("path"), u = G("path"), l = k(), h = A("div"), f = A("span"), m = Ce(c), x = k(), E = A("div"), N = A("span"), M = Ce(L), B = k(), I = A("span"), H = G("svg"), C = G("path"), d = k(), S = A("div"), R = A("ul");
3837
- for (let w = 0; w < P.length; w += 1)
3838
- P[w].c();
3839
- 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(a, "id", "Path_5268"), p(a, "data-name", "Path 5268"), p(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"), p(a, "transform", "translate(0 0)"), p(a, "fill", "#fff"), p(u, "id", "Path_5269"), p(u, "data-name", "Path 5269"), p(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"), p(u, "transform", "translate(-412.896 0)"), p(u, "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(E, "class", "SorterValueContainer"), p(h, "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", D = "TriangleInactive " + /*isSorterActive*/
3840
- (e[1] ? "TriangleActive" : "")), p(r, "class", X = "SorterSelector " + /*isSorterActive*/
3841
- (e[1] ? "SorterSelectorOpen" : "")), p(R, "class", "SorterDropdown"), p(S, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
3842
- (e[1] ? "SorterOpen" : "")), p(t, "class", "SorterContainer");
3859
+ t = H("div"), r = H("div"), n = H("div"), i = j("svg"), o = j("g"), s = j("path"), a = j("path"), h = j("path"), l = k(), u = H("div"), c = H("span"), p = Ce(f), b = k(), S = H("div"), w = H("span"), C = Ce(M), B = k(), I = H("span"), A = j("svg"), L = j("path"), N = k(), R = H("div"), ie = H("ul");
3860
+ for (let _ = 0; _ < P.length; _ += 1)
3861
+ P[_].c();
3862
+ 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(h, "id", "Path_5269"), m(h, "data-name", "Path 5269"), m(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"), m(h, "transform", "translate(-412.896 0)"), m(h, "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(S, "class", "SorterValueContainer"), m(u, "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(A, "xmlns", "http://www.w3.org/2000/svg"), m(A, "width", "14"), m(A, "height", "6.835"), m(A, "viewBox", "0 0 14 6.835"), m(I, "class", D = "TriangleInactive " + /*isSorterActive*/
3863
+ (e[1] ? "TriangleActive" : "")), m(r, "class", d = "SorterSelector " + /*isSorterActive*/
3864
+ (e[1] ? "SorterSelectorOpen" : "")), m(ie, "class", "SorterDropdown"), m(R, "class", fe = "SorterDropdownContainer " + /*isSorterActive*/
3865
+ (e[1] ? "SorterOpen" : "")), m(t, "class", "SorterContainer");
3843
3866
  },
3844
- m(w, U) {
3845
- xe(w, t, U), 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, f), v(f, m), v(h, x), v(h, E), v(E, N), v(N, M), v(r, B), v(r, I), v(I, H), v(H, C), v(t, d), v(t, S), v(S, R);
3867
+ m(_, U) {
3868
+ xe(_, t, U), v(t, r), v(r, n), v(n, i), v(i, o), v(o, s), v(o, a), v(o, h), v(n, l), v(n, u), v(u, c), v(c, p), v(u, b), v(u, S), v(S, w), v(w, C), v(r, B), v(r, I), v(I, A), v(A, L), v(t, N), v(t, R), v(R, ie);
3846
3869
  for (let T = 0; T < P.length; T += 1)
3847
- P[T] && P[T].m(R, null);
3870
+ P[T] && P[T].m(ie, null);
3848
3871
  He || (Je = Et(
3849
3872
  r,
3850
3873
  "click",
3851
3874
  /*click_handler*/
3852
- e[13]
3875
+ e[14]
3853
3876
  ), He = !0);
3854
3877
  },
3855
- p(w, U) {
3878
+ p(_, U) {
3856
3879
  if (U & /*$_*/
3857
- 16 && c !== (c = /*$_*/
3858
- w[4]("sortby") + "") && Ye(m, c), U & /*vendorSortingBy, $_*/
3859
- 24 && L !== (L = /*vendorSortingBy*/
3860
- (w[3] || /*$_*/
3861
- w[4]("all")) + "") && Ye(M, L), U & /*isSorterActive*/
3880
+ 16 && f !== (f = /*$_*/
3881
+ _[4]("sortby") + "") && Ye(p, f), U & /*vendorSortingBy, $_*/
3882
+ 24 && M !== (M = /*vendorSortingBy*/
3883
+ (_[3] || /*$_*/
3884
+ _[4]("all")) + "") && Ye(C, M), U & /*isSorterActive*/
3862
3885
  2 && D !== (D = "TriangleInactive " + /*isSorterActive*/
3863
- (w[1] ? "TriangleActive" : "")) && p(I, "class", D), U & /*isSorterActive*/
3864
- 2 && X !== (X = "SorterSelector " + /*isSorterActive*/
3865
- (w[1] ? "SorterSelectorOpen" : "")) && p(r, "class", X), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3886
+ (_[1] ? "TriangleActive" : "")) && m(I, "class", D), U & /*isSorterActive*/
3887
+ 2 && d !== (d = "SorterSelector " + /*isSorterActive*/
3888
+ (_[1] ? "SorterSelectorOpen" : "")) && m(r, "class", d), U & /*Object, vendorMap, vendorSortingBy, undefined, $_, sortBy*/
3866
3889
  120) {
3867
- Z = et(Object.values(
3890
+ X = et(Object.values(
3868
3891
  /*vendorMap*/
3869
- w[5]
3892
+ _[5]
3870
3893
  ));
3871
3894
  let T;
3872
- for (T = 0; T < Z.length; T += 1) {
3873
- const Qe = bt(w, Z, T);
3874
- P[T] ? P[T].p(Qe, U) : (P[T] = gt(Qe), P[T].c(), P[T].m(R, null));
3895
+ for (T = 0; T < X.length; T += 1) {
3896
+ const Qe = bt(_, X, T);
3897
+ P[T] ? P[T].p(Qe, U) : (P[T] = gt(Qe), P[T].c(), P[T].m(ie, null));
3875
3898
  }
3876
3899
  for (; T < P.length; T += 1)
3877
3900
  P[T].d(1);
3878
- P.length = Z.length;
3901
+ P.length = X.length;
3879
3902
  }
3880
3903
  U & /*isSorterActive*/
3881
3904
  2 && fe !== (fe = "SorterDropdownContainer " + /*isSorterActive*/
3882
- (w[1] ? "SorterOpen" : "")) && p(S, "class", fe);
3905
+ (_[1] ? "SorterOpen" : "")) && m(R, "class", fe);
3883
3906
  },
3884
- d(w) {
3885
- w && ce(t), Yt(P, w), He = !1, Je();
3907
+ d(_) {
3908
+ _ && ce(t), Yt(P, _), He = !1, Je();
3886
3909
  }
3887
3910
  };
3888
3911
  }
3889
3912
  function gt(e) {
3890
- let t, r, n, i, o, s, a, u, l, h, f;
3891
- function c() {
3913
+ let t, r, n, i, o, s, a, h, l, u, c;
3914
+ function f() {
3892
3915
  return (
3893
3916
  /*click_handler_1*/
3894
- e[14](
3917
+ e[15](
3895
3918
  /*sort*/
3896
3919
  e[23]
3897
3920
  )
@@ -3899,8 +3922,8 @@ function gt(e) {
3899
3922
  }
3900
3923
  return {
3901
3924
  c() {
3902
- t = A("li"), r = A("label"), n = A("input"), o = k(), s = A("span"), a = k(), u = A("span"), u.textContent = `${/*sort*/
3903
- e[23]}`, l = k(), p(n, "type", "radio"), p(n, "name", "radio"), n.value = /*sort*/
3925
+ t = H("li"), r = H("label"), n = H("input"), o = k(), s = H("span"), a = k(), h = H("span"), h.textContent = `${/*sort*/
3926
+ e[23]}`, l = k(), m(n, "type", "radio"), m(n, "name", "radio"), n.value = /*sort*/
3904
3927
  e[23], n.checked = i = /*vendorSortingBy*/
3905
3928
  e[3] == /*sort*/
3906
3929
  e[23] ? !0 : (
@@ -3908,14 +3931,14 @@ function gt(e) {
3908
3931
  e[3] == null && /*sort*/
3909
3932
  e[23] == /*$_*/
3910
3933
  e[4]("all")
3911
- ), p(s, "class", "SortersCheckmark"), p(r, "class", "SorterLabel CustomRadioButton"), p(t, "class", "SorterItem"), t.value = /*sort*/
3934
+ ), m(s, "class", "SortersCheckmark"), m(r, "class", "SorterLabel CustomRadioButton"), m(t, "class", "SorterItem"), t.value = /*sort*/
3912
3935
  e[23];
3913
3936
  },
3914
- m(m, x) {
3915
- xe(m, t, x), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, u), v(t, l), h || (f = Et(n, "click", c), h = !0);
3937
+ m(p, b) {
3938
+ xe(p, t, b), v(t, r), v(r, n), v(r, o), v(r, s), v(r, a), v(r, h), v(t, l), u || (c = Et(n, "click", f), u = !0);
3916
3939
  },
3917
- p(m, x) {
3918
- e = m, x & /*vendorSortingBy, $_*/
3940
+ p(p, b) {
3941
+ e = p, b & /*vendorSortingBy, $_*/
3919
3942
  24 && i !== (i = /*vendorSortingBy*/
3920
3943
  e[3] == /*sort*/
3921
3944
  e[23] ? !0 : (
@@ -3925,24 +3948,24 @@ function gt(e) {
3925
3948
  e[4]("all")
3926
3949
  )) && (n.checked = i);
3927
3950
  },
3928
- d(m) {
3929
- m && ce(t), h = !1, f();
3951
+ d(p) {
3952
+ p && ce(t), u = !1, c();
3930
3953
  }
3931
3954
  };
3932
3955
  }
3933
- function li(e) {
3956
+ function ci(e) {
3934
3957
  let t;
3935
3958
  function r(o, s) {
3936
3959
  if (!/*isLoading*/
3937
- o[2]) return ai;
3960
+ o[2]) return hi;
3938
3961
  }
3939
3962
  let n = r(e), i = n && n(e);
3940
3963
  return {
3941
3964
  c() {
3942
- t = A("div"), i && i.c();
3965
+ t = H("div"), i && i.c();
3943
3966
  },
3944
3967
  m(o, s) {
3945
- xe(o, t, s), i && i.m(t, null), e[15](t);
3968
+ xe(o, t, s), i && i.m(t, null), e[16](t);
3946
3969
  },
3947
3970
  p(o, [s]) {
3948
3971
  n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
@@ -3950,157 +3973,153 @@ function li(e) {
3950
3973
  i: $,
3951
3974
  o: $,
3952
3975
  d(o) {
3953
- o && ce(t), i && i.d(), e[15](null);
3976
+ o && ce(t), i && i.d(), e[16](null);
3954
3977
  }
3955
3978
  };
3956
3979
  }
3957
- function hi(e, t, r) {
3980
+ function fi(e, t, r) {
3958
3981
  let n;
3959
- Wt(e, ii, (d) => r(4, n = d));
3960
- let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: u = "" } = t, l, h = !1, f = !0, c = "", m = "All";
3961
- oi({ withLocale: "en", translations: {} });
3962
- const x = () => {
3963
- fetch(o).then((S) => S.json()).then((S) => {
3964
- Object.keys(S).forEach((R) => {
3965
- mt(R, S[R]);
3982
+ Wt(e, ai, (d) => r(4, n = d));
3983
+ let { lang: i = "" } = t, { translationurl: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { categoryid: h = "" } = t, { mbsource: l } = t, u, c = !1, f = !0, p = "", b = "All";
3984
+ li({ withLocale: "en", translations: {} });
3985
+ const S = () => {
3986
+ fetch(o).then((N) => N.json()).then((N) => {
3987
+ Object.keys(N).forEach((R) => {
3988
+ pt(R, N[R]);
3966
3989
  });
3967
- }).catch((S) => {
3968
- console.log(S);
3990
+ }).catch((N) => {
3991
+ console.log(N);
3969
3992
  });
3970
3993
  };
3971
3994
  Object.keys(dt).forEach((d) => {
3972
- mt(d, dt[d]);
3995
+ pt(d, dt[d]);
3973
3996
  });
3974
- const E = {
3997
+ const w = {
3975
3998
  All: n("all"),
3976
3999
  name: n("az"),
3977
4000
  isNew: n("newest"),
3978
4001
  "advancedTags(name(hot))": n("hottest")
3979
- }, N = () => {
3980
- let d = document.createElement("style");
3981
- d.innerHTML = s, l.appendChild(d);
3982
- }, L = () => {
3983
- let d = document.createElement("style");
3984
- fetch(new URL(a)).then((S) => S.text()).then((S) => {
3985
- d.innerHTML = S, setTimeout(
3986
- () => {
3987
- l.appendChild(d);
3988
- },
3989
- 1
3990
- );
3991
- });
3992
4002
  }, M = () => {
3993
- r(3, m = "All"), r(2, f = !1), r(1, h = !1);
3994
- let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[u];
3995
- d ? r(3, m = d) : r(3, m = "All"), r(3, m = E[d]);
3996
- }, B = (d) => {
3997
- r(3, m = d);
3998
- let S = localStorage.getItem("vendorSortingBy");
3999
- c = d;
4000
- for (let R in E)
4001
- if (E[R] === d) {
4002
- c = R;
4003
+ r(3, b = "All"), r(2, f = !1), r(1, c = !1);
4004
+ let d = JSON.parse(localStorage.getItem("vendorSortingBy"))?.[h];
4005
+ d ? r(3, b = d) : r(3, b = "All"), r(3, b = w[d]);
4006
+ }, C = (d) => {
4007
+ r(3, b = d);
4008
+ let N = localStorage.getItem("vendorSortingBy");
4009
+ p = d;
4010
+ for (let R in w)
4011
+ if (w[R] === d) {
4012
+ p = R;
4003
4013
  break;
4004
4014
  }
4005
- S == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [u]: c })) : (S = JSON.parse(S), S[u] = c, localStorage.setItem("vendorSortingBy", JSON.stringify(S))), window.postMessage(
4015
+ N == null ? localStorage.setItem("vendorSortingBy", JSON.stringify({ [h]: p })) : (N = JSON.parse(N), N[h] = p, localStorage.setItem("vendorSortingBy", JSON.stringify(N))), window.postMessage(
4006
4016
  {
4007
4017
  type: "ApplySorter",
4008
- sortBy: c,
4009
- itemId: u
4018
+ sortBy: p,
4019
+ itemId: h
4010
4020
  },
4011
4021
  window.location.href
4012
- ), r(1, h = !h);
4013
- }, I = () => {
4014
- r(1, h = !h), window.postMessage({ type: "SortingOpened" }, window.location.href);
4015
- }, H = (d) => {
4016
- d.data.type == "FilterOpened" && r(1, h = !1);
4022
+ ), r(1, c = !c);
4023
+ }, B = () => {
4024
+ r(1, c = !c), window.postMessage({ type: "SortingOpened" }, window.location.href);
4025
+ }, I = (d) => {
4026
+ d.data.type == "FilterOpened" && r(1, c = !1);
4017
4027
  };
4018
- rr(() => (window.addEventListener("message", H, !1), () => {
4019
- window.removeEventListener("message", H);
4028
+ rr(() => (window.addEventListener("message", I, !1), () => {
4029
+ window.removeEventListener("message", I);
4020
4030
  }));
4021
- const C = () => I(), D = (d) => B(d);
4022
- function X(d) {
4031
+ const A = () => B(), L = (d) => C(d);
4032
+ function D(d) {
4023
4033
  Le[d ? "unshift" : "push"](() => {
4024
- l = d, r(0, l);
4034
+ u = d, r(0, u);
4025
4035
  });
4026
4036
  }
4027
4037
  return e.$$set = (d) => {
4028
- "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);
4038
+ "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, h = d.categoryid), "mbsource" in d && r(13, l = d.mbsource);
4029
4039
  }, e.$$.update = () => {
4030
4040
  e.$$.dirty & /*categoryid*/
4031
- 4096 && u && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4032
- 1025 && s && l && N(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4033
- 2049 && a && l && L(), e.$$.dirty & /*translationurl*/
4034
- 512 && o && x();
4041
+ 4096 && h && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4042
+ 1025 && s && u && br(u, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4043
+ 2049 && a && u && gr(u, a), e.$$.dirty & /*customStylingContainer, mbsource*/
4044
+ 8193 && u && yr(u, `${l}.Style`), e.$$.dirty & /*translationurl*/
4045
+ 512 && o && S();
4035
4046
  }, [
4036
- l,
4037
- h,
4047
+ u,
4048
+ c,
4038
4049
  f,
4039
- m,
4050
+ b,
4040
4051
  n,
4041
- E,
4052
+ w,
4053
+ C,
4042
4054
  B,
4043
- I,
4044
4055
  i,
4045
4056
  o,
4046
4057
  s,
4047
4058
  a,
4048
- u,
4049
- C,
4050
- D,
4051
- X
4059
+ h,
4060
+ l,
4061
+ A,
4062
+ L,
4063
+ D
4052
4064
  ];
4053
4065
  }
4054
- class ui extends mr {
4066
+ class mi extends pr {
4055
4067
  constructor(t) {
4056
4068
  super(), fr(
4057
4069
  this,
4058
4070
  t,
4059
- hi,
4060
- li,
4071
+ fi,
4072
+ ci,
4061
4073
  xt,
4062
4074
  {
4063
4075
  lang: 8,
4064
4076
  translationurl: 9,
4065
4077
  clientstyling: 10,
4066
4078
  clientstylingurl: 11,
4067
- categoryid: 12
4079
+ categoryid: 12,
4080
+ mbsource: 13
4068
4081
  },
4069
- si
4082
+ ui
4070
4083
  );
4071
4084
  }
4072
4085
  get lang() {
4073
4086
  return this.$$.ctx[8];
4074
4087
  }
4075
4088
  set lang(t) {
4076
- this.$$set({ lang: t }), j();
4089
+ this.$$set({ lang: t }), F();
4077
4090
  }
4078
4091
  get translationurl() {
4079
4092
  return this.$$.ctx[9];
4080
4093
  }
4081
4094
  set translationurl(t) {
4082
- this.$$set({ translationurl: t }), j();
4095
+ this.$$set({ translationurl: t }), F();
4083
4096
  }
4084
4097
  get clientstyling() {
4085
4098
  return this.$$.ctx[10];
4086
4099
  }
4087
4100
  set clientstyling(t) {
4088
- this.$$set({ clientstyling: t }), j();
4101
+ this.$$set({ clientstyling: t }), F();
4089
4102
  }
4090
4103
  get clientstylingurl() {
4091
4104
  return this.$$.ctx[11];
4092
4105
  }
4093
4106
  set clientstylingurl(t) {
4094
- this.$$set({ clientstylingurl: t }), j();
4107
+ this.$$set({ clientstylingurl: t }), F();
4095
4108
  }
4096
4109
  get categoryid() {
4097
4110
  return this.$$.ctx[12];
4098
4111
  }
4099
4112
  set categoryid(t) {
4100
- this.$$set({ categoryid: t }), j();
4113
+ this.$$set({ categoryid: t }), F();
4114
+ }
4115
+ get mbsource() {
4116
+ return this.$$.ctx[13];
4117
+ }
4118
+ set mbsource(t) {
4119
+ this.$$set({ mbsource: t }), F();
4101
4120
  }
4102
4121
  }
4103
- pr(ui, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {} }, [], [], !0);
4122
+ mr(mi, { lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, mbsource: {} }, [], [], !0);
4104
4123
  export {
4105
- ui as C
4124
+ mi as C
4106
4125
  };