@everymatrix/casino-sort 1.87.25 → 1.87.27

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