@everymatrix/casino-sort 1.77.18 → 1.77.20

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