@everymatrix/casino-sort 1.53.0 → 1.53.10

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