@everymatrix/casino-tournaments-thumbnail-controller 1.54.0 → 1.54.2

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,82 +1,53 @@
1
- var dr = Object.defineProperty, br = Object.defineProperties;
2
- var gr = Object.getOwnPropertyDescriptors;
3
- var st = Object.getOwnPropertySymbols;
4
- var pr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable;
5
- var Oe = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
6
- for (var r in t || (t = {}))
7
- pr.call(t, r) && Oe(e, r, t[r]);
8
- if (st)
9
- for (var r of st(t))
10
- yr.call(t, r) && Oe(e, r, t[r]);
11
- return e;
12
- }, ot = (e, t) => br(e, gr(t));
13
- var k = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ut = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
16
- try {
17
- o(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, a = (l) => {
22
- try {
23
- o(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
- o((r = r.apply(e, t)).next());
29
- });
30
- function U() {
1
+ function k() {
31
2
  }
32
- function Ot(e) {
3
+ function At(e) {
33
4
  return e();
34
5
  }
35
- function lt() {
6
+ function nt() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ne(e) {
39
- e.forEach(Ot);
9
+ function re(e) {
10
+ e.forEach(At);
40
11
  }
41
- function ce(e) {
12
+ function fe(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Pt(e, t) {
15
+ function Ht(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let be;
48
- function Ui(e, t) {
49
- return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
18
+ let de;
19
+ function Ci(e, t) {
20
+ return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
50
21
  }
51
- function _r(e) {
22
+ function ur(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function It(e, ...t) {
25
+ function Ct(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return U;
29
+ return k;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function Er(e, t, r) {
64
- e.$$.on_destroy.push(It(t, r));
34
+ function lr(e, t, r) {
35
+ e.$$.on_destroy.push(Ct(t, r));
65
36
  }
66
- function me(e) {
67
- return e && ce(e.destroy) ? e.destroy : U;
37
+ function ce(e) {
38
+ return e && fe(e.destroy) ? e.destroy : k;
68
39
  }
69
40
  function S(e, t) {
70
41
  e.appendChild(t);
71
42
  }
72
- function xr(e, t, r) {
73
- const n = vr(e);
43
+ function hr(e, t, r) {
44
+ const n = fr(e);
74
45
  if (!n.getElementById(t)) {
75
46
  const i = O("style");
76
- i.id = t, i.textContent = r, Sr(n, i);
47
+ i.id = t, i.textContent = r, cr(n, i);
77
48
  }
78
49
  }
79
- function vr(e) {
50
+ function fr(e) {
80
51
  if (!e) return document;
81
52
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
82
53
  return t && /** @type {ShadowRoot} */
@@ -85,80 +56,80 @@ function vr(e) {
85
56
  t
86
57
  ) : e.ownerDocument;
87
58
  }
88
- function Sr(e, t) {
59
+ function cr(e, t) {
89
60
  return S(
90
61
  /** @type {Document} */
91
62
  e.head || e,
92
63
  t
93
64
  ), t.sheet;
94
65
  }
95
- function G(e, t, r) {
66
+ function F(e, t, r) {
96
67
  e.insertBefore(t, r || null);
97
68
  }
98
69
  function L(e) {
99
70
  e.parentNode && e.parentNode.removeChild(e);
100
71
  }
101
- function Fi(e, t) {
72
+ function Bi(e, t) {
102
73
  for (let r = 0; r < e.length; r += 1)
103
74
  e[r] && e[r].d(t);
104
75
  }
105
76
  function O(e) {
106
77
  return document.createElement(e);
107
78
  }
108
- function Gi(e) {
79
+ function wi(e) {
109
80
  return document.createElementNS("http://www.w3.org/2000/svg", e);
110
81
  }
111
82
  function M(e) {
112
83
  return document.createTextNode(e);
113
84
  }
114
- function J() {
85
+ function z() {
115
86
  return M(" ");
116
87
  }
117
- function Tr() {
88
+ function mr() {
118
89
  return M("");
119
90
  }
120
- function Ue(e, t, r, n) {
91
+ function De(e, t, r, n) {
121
92
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
122
93
  }
123
94
  function y(e, t, r) {
124
95
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
125
96
  }
126
- function $i(e, t, r) {
97
+ function Ni(e, t, r) {
127
98
  const n = t.toLowerCase();
128
99
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : y(e, t, r);
129
100
  }
130
- function Ar(e) {
101
+ function dr(e) {
131
102
  return Array.from(e.childNodes);
132
103
  }
133
- function $(e, t) {
104
+ function G(e, t) {
134
105
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
135
106
  t);
136
107
  }
137
- function Fe(e, t, r, n) {
108
+ function ke(e, t, r, n) {
138
109
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
139
110
  }
140
- let ge;
141
- function Hr() {
142
- if (ge === void 0) {
143
- ge = !1;
111
+ let be;
112
+ function br() {
113
+ if (be === void 0) {
114
+ be = !1;
144
115
  try {
145
- typeof window != "undefined" && window.parent && window.parent.document;
146
- } catch (e) {
147
- ge = !0;
116
+ typeof window < "u" && window.parent && window.parent.document;
117
+ } catch {
118
+ be = !0;
148
119
  }
149
120
  }
150
- return ge;
121
+ return be;
151
122
  }
152
- function ji(e, t) {
123
+ function Oi(e, t) {
153
124
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
154
125
  const n = O("iframe");
155
126
  n.setAttribute(
156
127
  "style",
157
128
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
158
129
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
159
- const i = Hr();
130
+ const i = br();
160
131
  let s;
161
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = Ue(
132
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = De(
162
133
  window,
163
134
  "message",
164
135
  /** @param {MessageEvent} event */
@@ -166,15 +137,15 @@ function ji(e, t) {
166
137
  a.source === n.contentWindow && t();
167
138
  }
168
139
  )) : (n.src = "about:blank", n.onload = () => {
169
- s = Ue(n.contentWindow, "resize", t), t();
140
+ s = De(n.contentWindow, "resize", t), t();
170
141
  }), S(e, n), () => {
171
142
  (i || s && n.contentWindow) && s(), L(n);
172
143
  };
173
144
  }
174
- function Vi(e, t, r) {
145
+ function Pi(e, t, r) {
175
146
  e.classList.toggle(t, !!r);
176
147
  }
177
- function Cr(e) {
148
+ function gr(e) {
178
149
  const t = {};
179
150
  return e.childNodes.forEach(
180
151
  /** @param {Element} node */
@@ -183,248 +154,244 @@ function Cr(e) {
183
154
  }
184
155
  ), t;
185
156
  }
186
- let le;
187
- function ue(e) {
188
- le = e;
157
+ let ue;
158
+ function oe(e) {
159
+ ue = e;
189
160
  }
190
- function Br() {
191
- if (!le) throw new Error("Function called outside component initialization");
192
- return le;
161
+ function pr() {
162
+ if (!ue) throw new Error("Function called outside component initialization");
163
+ return ue;
193
164
  }
194
- function wr(e) {
195
- Br().$$.on_mount.push(e);
165
+ function yr(e) {
166
+ pr().$$.on_mount.push(e);
196
167
  }
197
- const Q = [], Ge = [];
198
- let Y = [];
199
- const ht = [], Nr = /* @__PURE__ */ Promise.resolve();
200
- let $e = !1;
201
- function Or() {
202
- $e || ($e = !0, Nr.then(w));
168
+ const q = [], Ue = [];
169
+ let Q = [];
170
+ const it = [], _r = /* @__PURE__ */ Promise.resolve();
171
+ let Fe = !1;
172
+ function Er() {
173
+ Fe || (Fe = !0, _r.then(w));
203
174
  }
204
- function je(e) {
205
- Y.push(e);
175
+ function Ge(e) {
176
+ Q.push(e);
206
177
  }
207
- const Pe = /* @__PURE__ */ new Set();
208
- let Z = 0;
178
+ const Ne = /* @__PURE__ */ new Set();
179
+ let X = 0;
209
180
  function w() {
210
- if (Z !== 0)
181
+ if (X !== 0)
211
182
  return;
212
- const e = le;
183
+ const e = ue;
213
184
  do {
214
185
  try {
215
- for (; Z < Q.length; ) {
216
- const t = Q[Z];
217
- Z++, ue(t), Pr(t.$$);
186
+ for (; X < q.length; ) {
187
+ const t = q[X];
188
+ X++, oe(t), xr(t.$$);
218
189
  }
219
190
  } catch (t) {
220
- throw Q.length = 0, Z = 0, t;
191
+ throw q.length = 0, X = 0, t;
221
192
  }
222
- for (ue(null), Q.length = 0, Z = 0; Ge.length; ) Ge.pop()();
223
- for (let t = 0; t < Y.length; t += 1) {
224
- const r = Y[t];
225
- Pe.has(r) || (Pe.add(r), r());
193
+ for (oe(null), q.length = 0, X = 0; Ue.length; ) Ue.pop()();
194
+ for (let t = 0; t < Q.length; t += 1) {
195
+ const r = Q[t];
196
+ Ne.has(r) || (Ne.add(r), r());
226
197
  }
227
- Y.length = 0;
228
- } while (Q.length);
229
- for (; ht.length; )
230
- ht.pop()();
231
- $e = !1, Pe.clear(), ue(e);
198
+ Q.length = 0;
199
+ } while (q.length);
200
+ for (; it.length; )
201
+ it.pop()();
202
+ Fe = !1, Ne.clear(), oe(e);
232
203
  }
233
- function Pr(e) {
204
+ function xr(e) {
234
205
  if (e.fragment !== null) {
235
- e.update(), ne(e.before_update);
206
+ e.update(), re(e.before_update);
236
207
  const t = e.dirty;
237
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
208
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ge);
238
209
  }
239
210
  }
240
- function Ir(e) {
211
+ function vr(e) {
241
212
  const t = [], r = [];
242
- Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
213
+ Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
243
214
  }
244
- const Mr = /* @__PURE__ */ new Set();
245
- function Rr(e, t) {
246
- e && e.i && (Mr.delete(e), e.i(t));
215
+ const Sr = /* @__PURE__ */ new Set();
216
+ function Tr(e, t) {
217
+ e && e.i && (Sr.delete(e), e.i(t));
247
218
  }
248
- function zi(e) {
249
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
219
+ function Ii(e) {
220
+ return e?.length !== void 0 ? e : Array.from(e);
250
221
  }
251
- function Lr(e, t, r) {
222
+ function Ar(e, t, r) {
252
223
  const { fragment: n, after_update: i } = e.$$;
253
- n && n.m(t, r), je(() => {
254
- const s = e.$$.on_mount.map(Ot).filter(ce);
255
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ne(s), e.$$.on_mount = [];
256
- }), i.forEach(je);
224
+ n && n.m(t, r), Ge(() => {
225
+ const s = e.$$.on_mount.map(At).filter(fe);
226
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
227
+ }), i.forEach(Ge);
257
228
  }
258
- function Dr(e, t) {
229
+ function Hr(e, t) {
259
230
  const r = e.$$;
260
- r.fragment !== null && (Ir(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
231
+ r.fragment !== null && (vr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
261
232
  }
262
- function kr(e, t) {
263
- e.$$.dirty[0] === -1 && (Q.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
233
+ function Cr(e, t) {
234
+ e.$$.dirty[0] === -1 && (q.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
264
235
  }
265
- function Ur(e, t, r, n, i, s, a = null, o = [-1]) {
266
- const l = le;
267
- ue(e);
236
+ function Br(e, t, r, n, i, s, a = null, o = [-1]) {
237
+ const h = ue;
238
+ oe(e);
268
239
  const u = e.$$ = {
269
240
  fragment: null,
270
241
  ctx: [],
271
242
  // state
272
243
  props: s,
273
- update: U,
244
+ update: k,
274
245
  not_equal: i,
275
- bound: lt(),
246
+ bound: nt(),
276
247
  // lifecycle
277
248
  on_mount: [],
278
249
  on_destroy: [],
279
250
  on_disconnect: [],
280
251
  before_update: [],
281
252
  after_update: [],
282
- context: new Map(t.context || (l ? l.$$.context : [])),
253
+ context: new Map(t.context || (h ? h.$$.context : [])),
283
254
  // everything else
284
- callbacks: lt(),
255
+ callbacks: nt(),
285
256
  dirty: o,
286
257
  skip_bound: !1,
287
- root: t.target || l.$$.root
258
+ root: t.target || h.$$.root
288
259
  };
289
260
  a && a(u.root);
290
- let h = !1;
261
+ let l = !1;
291
262
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...E) => {
292
263
  const d = E.length ? E[0] : c;
293
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && kr(e, f)), c;
294
- }) : [], u.update(), h = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
264
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Cr(e, f)), c;
265
+ }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
295
266
  if (t.hydrate) {
296
- const f = Ar(t.target);
267
+ const f = dr(t.target);
297
268
  u.fragment && u.fragment.l(f), f.forEach(L);
298
269
  } else
299
270
  u.fragment && u.fragment.c();
300
- t.intro && Rr(e.$$.fragment), Lr(e, t.target, t.anchor), w();
271
+ t.intro && Tr(e.$$.fragment), Ar(e, t.target, t.anchor), w();
301
272
  }
302
- ue(l);
303
- }
304
- let Mt;
305
- typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
306
- constructor(t, r, n) {
307
- super();
308
- /** The Svelte component constructor */
309
- k(this, "$$ctor");
310
- /** Slots */
311
- k(this, "$$s");
312
- /** The Svelte component instance */
313
- k(this, "$$c");
314
- /** Whether or not the custom element is connected */
315
- k(this, "$$cn", !1);
316
- /** Component props data */
317
- k(this, "$$d", {});
318
- /** `true` if currently in the process of reflecting component props back to attributes */
319
- k(this, "$$r", !1);
320
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
321
- k(this, "$$p_d", {});
322
- /** @type {Record<string, Function[]>} Event listeners */
323
- k(this, "$$l", {});
324
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
325
- k(this, "$$l_u", /* @__PURE__ */ new Map());
326
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
273
+ oe(h);
274
+ }
275
+ let Bt;
276
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
277
+ /** The Svelte component constructor */
278
+ $$ctor;
279
+ /** Slots */
280
+ $$s;
281
+ /** The Svelte component instance */
282
+ $$c;
283
+ /** Whether or not the custom element is connected */
284
+ $$cn = !1;
285
+ /** Component props data */
286
+ $$d = {};
287
+ /** `true` if currently in the process of reflecting component props back to attributes */
288
+ $$r = !1;
289
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
290
+ $$p_d = {};
291
+ /** @type {Record<string, Function[]>} Event listeners */
292
+ $$l = {};
293
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
294
+ $$l_u = /* @__PURE__ */ new Map();
295
+ constructor(e, t, r) {
296
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
327
297
  }
328
- addEventListener(t, r, n) {
329
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
330
- const i = this.$$c.$on(t, r);
331
- this.$$l_u.set(r, i);
298
+ addEventListener(e, t, r) {
299
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
300
+ const n = this.$$c.$on(e, t);
301
+ this.$$l_u.set(t, n);
332
302
  }
333
- super.addEventListener(t, r, n);
303
+ super.addEventListener(e, t, r);
334
304
  }
335
- removeEventListener(t, r, n) {
336
- if (super.removeEventListener(t, r, n), this.$$c) {
337
- const i = this.$$l_u.get(r);
338
- i && (i(), this.$$l_u.delete(r));
305
+ removeEventListener(e, t, r) {
306
+ if (super.removeEventListener(e, t, r), this.$$c) {
307
+ const n = this.$$l_u.get(t);
308
+ n && (n(), this.$$l_u.delete(t));
339
309
  }
340
310
  }
341
- connectedCallback() {
342
- return ut(this, null, function* () {
343
- if (this.$$cn = !0, !this.$$c) {
344
- let t = function(s) {
345
- return () => {
346
- let a;
347
- return {
348
- c: function() {
349
- a = O("slot"), s !== "default" && y(a, "name", s);
350
- },
351
- /**
352
- * @param {HTMLElement} target
353
- * @param {HTMLElement} [anchor]
354
- */
355
- m: function(u, h) {
356
- G(u, a, h);
357
- },
358
- d: function(u) {
359
- u && L(a);
360
- }
361
- };
311
+ async connectedCallback() {
312
+ if (this.$$cn = !0, !this.$$c) {
313
+ let e = function(i) {
314
+ return () => {
315
+ let s;
316
+ return {
317
+ c: function() {
318
+ s = O("slot"), i !== "default" && y(s, "name", i);
319
+ },
320
+ /**
321
+ * @param {HTMLElement} target
322
+ * @param {HTMLElement} [anchor]
323
+ */
324
+ m: function(h, u) {
325
+ F(h, s, u);
326
+ },
327
+ d: function(h) {
328
+ h && L(s);
329
+ }
362
330
  };
363
331
  };
364
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
365
- return;
366
- const r = {}, n = Cr(this);
367
- for (const s of this.$$s)
368
- s in n && (r[s] = [t(s)]);
369
- for (const s of this.attributes) {
370
- const a = this.$$g_p(s.name);
371
- a in this.$$d || (this.$$d[a] = ye(a, s.value, this.$$p_d, "toProp"));
332
+ };
333
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
334
+ return;
335
+ const t = {}, r = gr(this);
336
+ for (const i of this.$$s)
337
+ i in r && (t[i] = [e(i)]);
338
+ for (const i of this.attributes) {
339
+ const s = this.$$g_p(i.name);
340
+ s in this.$$d || (this.$$d[s] = pe(s, i.value, this.$$p_d, "toProp"));
341
+ }
342
+ for (const i in this.$$p_d)
343
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
344
+ this.$$c = new this.$$ctor({
345
+ target: this.shadowRoot || this,
346
+ props: {
347
+ ...this.$$d,
348
+ $$slots: t,
349
+ $$scope: {
350
+ ctx: []
351
+ }
372
352
  }
373
- for (const s in this.$$p_d)
374
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
375
- this.$$c = new this.$$ctor({
376
- target: this.shadowRoot || this,
377
- props: ot(at({}, this.$$d), {
378
- $$slots: r,
379
- $$scope: {
380
- ctx: []
381
- }
382
- })
383
- });
384
- const i = () => {
385
- this.$$r = !0;
386
- for (const s in this.$$p_d)
387
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
388
- const a = ye(
389
- s,
390
- this.$$d[s],
391
- this.$$p_d,
392
- "toAttribute"
393
- );
394
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
395
- }
396
- this.$$r = !1;
397
- };
398
- this.$$c.$$.after_update.push(i), i();
399
- for (const s in this.$$l)
400
- for (const a of this.$$l[s]) {
401
- const o = this.$$c.$on(s, a);
402
- this.$$l_u.set(a, o);
353
+ });
354
+ const n = () => {
355
+ this.$$r = !0;
356
+ for (const i in this.$$p_d)
357
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
358
+ const s = pe(
359
+ i,
360
+ this.$$d[i],
361
+ this.$$p_d,
362
+ "toAttribute"
363
+ );
364
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
403
365
  }
404
- this.$$l = {};
405
- }
406
- });
366
+ this.$$r = !1;
367
+ };
368
+ this.$$c.$$.after_update.push(n), n();
369
+ for (const i in this.$$l)
370
+ for (const s of this.$$l[i]) {
371
+ const a = this.$$c.$on(i, s);
372
+ this.$$l_u.set(s, a);
373
+ }
374
+ this.$$l = {};
375
+ }
407
376
  }
408
377
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
409
378
  // and setting attributes through setAttribute etc, this is helpful
410
- attributeChangedCallback(t, r, n) {
411
- var i;
412
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
379
+ attributeChangedCallback(e, t, r) {
380
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
413
381
  }
414
382
  disconnectedCallback() {
415
383
  this.$$cn = !1, Promise.resolve().then(() => {
416
384
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
417
385
  });
418
386
  }
419
- $$g_p(t) {
387
+ $$g_p(e) {
420
388
  return Object.keys(this.$$p_d).find(
421
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
422
- ) || t;
389
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
390
+ ) || e;
423
391
  }
424
392
  });
425
- function ye(e, t, r, n) {
426
- var s;
427
- const i = (s = r[e]) == null ? void 0 : s.type;
393
+ function pe(e, t, r, n) {
394
+ const i = r[e]?.type;
428
395
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
429
396
  return t;
430
397
  if (n === "toAttribute")
@@ -435,7 +402,7 @@ function ye(e, t, r, n) {
435
402
  case "Boolean":
436
403
  return t ? "" : null;
437
404
  case "Number":
438
- return t == null ? null : t;
405
+ return t ?? null;
439
406
  default:
440
407
  return t;
441
408
  }
@@ -452,8 +419,8 @@ function ye(e, t, r, n) {
452
419
  return t;
453
420
  }
454
421
  }
455
- function Fr(e, t, r, n, i, s) {
456
- let a = class extends Mt {
422
+ function wr(e, t, r, n, i, s) {
423
+ let a = class extends Bt {
457
424
  constructor() {
458
425
  super(e, r, i), this.$$p_d = t;
459
426
  }
@@ -468,43 +435,39 @@ function Fr(e, t, r, n, i, s) {
468
435
  get() {
469
436
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
470
437
  },
471
- set(l) {
472
- var u;
473
- l = ye(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
438
+ set(h) {
439
+ h = pe(o, h, t), this.$$d[o] = h, this.$$c?.$set({ [o]: h });
474
440
  }
475
441
  });
476
442
  }), n.forEach((o) => {
477
443
  Object.defineProperty(a.prototype, o, {
478
444
  get() {
479
- var l;
480
- return (l = this.$$c) == null ? void 0 : l[o];
445
+ return this.$$c?.[o];
481
446
  }
482
447
  });
483
448
  }), e.element = /** @type {any} */
484
449
  a, a;
485
450
  }
486
- class Gr {
487
- constructor() {
488
- /**
489
- * ### PRIVATE API
490
- *
491
- * Do not use, may change at any time
492
- *
493
- * @type {any}
494
- */
495
- k(this, "$$");
496
- /**
497
- * ### PRIVATE API
498
- *
499
- * Do not use, may change at any time
500
- *
501
- * @type {any}
502
- */
503
- k(this, "$$set");
504
- }
451
+ class Nr {
452
+ /**
453
+ * ### PRIVATE API
454
+ *
455
+ * Do not use, may change at any time
456
+ *
457
+ * @type {any}
458
+ */
459
+ $$ = void 0;
460
+ /**
461
+ * ### PRIVATE API
462
+ *
463
+ * Do not use, may change at any time
464
+ *
465
+ * @type {any}
466
+ */
467
+ $$set = void 0;
505
468
  /** @returns {void} */
506
469
  $destroy() {
507
- Dr(this, 1), this.$destroy = U;
470
+ Hr(this, 1), this.$destroy = k;
508
471
  }
509
472
  /**
510
473
  * @template {Extract<keyof Events, string>} K
@@ -513,8 +476,8 @@ class Gr {
513
476
  * @returns {() => void}
514
477
  */
515
478
  $on(t, r) {
516
- if (!ce(r))
517
- return U;
479
+ if (!fe(r))
480
+ return k;
518
481
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
519
482
  return n.push(r), () => {
520
483
  const i = n.indexOf(r);
@@ -526,22 +489,22 @@ class Gr {
526
489
  * @returns {void}
527
490
  */
528
491
  $set(t) {
529
- this.$$set && !_r(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
530
493
  }
531
494
  }
532
- const $r = "4";
533
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
534
- var Ve = function(e, t) {
535
- return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
495
+ const Or = "4";
496
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
497
+ var $e = function(e, t) {
498
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
536
499
  r.__proto__ = n;
537
500
  } || function(r, n) {
538
501
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
539
- }, Ve(e, t);
502
+ }, $e(e, t);
540
503
  };
541
- function Se(e, t) {
504
+ function ve(e, t) {
542
505
  if (typeof t != "function" && t !== null)
543
506
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
544
- Ve(e, t);
507
+ $e(e, t);
545
508
  function r() {
546
509
  this.constructor = e;
547
510
  }
@@ -556,7 +519,7 @@ var v = function() {
556
519
  return t;
557
520
  }, v.apply(this, arguments);
558
521
  };
559
- function jr(e, t) {
522
+ function Pr(e, t) {
560
523
  var r = {};
561
524
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
562
525
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -564,7 +527,7 @@ function jr(e, t) {
564
527
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
565
528
  return r;
566
529
  }
567
- function Ji(e) {
530
+ function Mi(e) {
568
531
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
569
532
  if (r) return r.call(e);
570
533
  if (e && typeof e.length == "number") return {
@@ -574,7 +537,7 @@ function Ji(e) {
574
537
  };
575
538
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
576
539
  }
577
- function Wi(e, t) {
540
+ function Ri(e, t) {
578
541
  var r = typeof Symbol == "function" && e[Symbol.iterator];
579
542
  if (!r) return e;
580
543
  var n = r.call(e), i, s = [], a;
@@ -591,182 +554,182 @@ function Wi(e, t) {
591
554
  }
592
555
  return s;
593
556
  }
594
- function Ie(e, t, r) {
557
+ function Oe(e, t, r) {
595
558
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
596
559
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
597
560
  return e.concat(s || Array.prototype.slice.call(t));
598
561
  }
599
- const q = [];
600
- function Vr(e, t) {
562
+ const Z = [];
563
+ function Ir(e, t) {
601
564
  return {
602
- subscribe: Te(e, t).subscribe
565
+ subscribe: Se(e, t).subscribe
603
566
  };
604
567
  }
605
- function Te(e, t = U) {
568
+ function Se(e, t = k) {
606
569
  let r;
607
570
  const n = /* @__PURE__ */ new Set();
608
571
  function i(o) {
609
- if (Pt(e, o) && (e = o, r)) {
610
- const l = !q.length;
572
+ if (Ht(e, o) && (e = o, r)) {
573
+ const h = !Z.length;
611
574
  for (const u of n)
612
- u[1](), q.push(u, e);
613
- if (l) {
614
- for (let u = 0; u < q.length; u += 2)
615
- q[u][0](q[u + 1]);
616
- q.length = 0;
575
+ u[1](), Z.push(u, e);
576
+ if (h) {
577
+ for (let u = 0; u < Z.length; u += 2)
578
+ Z[u][0](Z[u + 1]);
579
+ Z.length = 0;
617
580
  }
618
581
  }
619
582
  }
620
583
  function s(o) {
621
584
  i(o(e));
622
585
  }
623
- function a(o, l = U) {
624
- const u = [o, l];
625
- return n.add(u), n.size === 1 && (r = t(i, s) || U), o(e), () => {
586
+ function a(o, h = k) {
587
+ const u = [o, h];
588
+ return n.add(u), n.size === 1 && (r = t(i, s) || k), o(e), () => {
626
589
  n.delete(u), n.size === 0 && r && (r(), r = null);
627
590
  };
628
591
  }
629
592
  return { set: i, update: s, subscribe: a };
630
593
  }
631
- function ie(e, t, r) {
594
+ function ne(e, t, r) {
632
595
  const n = !Array.isArray(e), i = n ? [e] : e;
633
596
  if (!i.every(Boolean))
634
597
  throw new Error("derived() expects stores as input, got a falsy value");
635
598
  const s = t.length < 2;
636
- return Vr(r, (a, o) => {
637
- let l = !1;
599
+ return Ir(r, (a, o) => {
600
+ let h = !1;
638
601
  const u = [];
639
- let h = 0, f = U;
602
+ let l = 0, f = k;
640
603
  const c = () => {
641
- if (h)
604
+ if (l)
642
605
  return;
643
606
  f();
644
607
  const d = t(n ? u[0] : u, a, o);
645
- s ? a(d) : f = ce(d) ? d : U;
608
+ s ? a(d) : f = fe(d) ? d : k;
646
609
  }, E = i.map(
647
- (d, b) => It(
610
+ (d, b) => Ct(
648
611
  d,
649
612
  (g) => {
650
- u[b] = g, h &= ~(1 << b), l && c();
613
+ u[b] = g, l &= ~(1 << b), h && c();
651
614
  },
652
615
  () => {
653
- h |= 1 << b;
616
+ l |= 1 << b;
654
617
  }
655
618
  )
656
619
  );
657
- return l = !0, c(), function() {
658
- ne(E), f(), l = !1;
620
+ return h = !0, c(), function() {
621
+ re(E), f(), h = !1;
659
622
  };
660
623
  });
661
624
  }
662
- function zr(e) {
625
+ function Mr(e) {
663
626
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
664
627
  }
665
- var Jr = function(t) {
666
- return Wr(t) && !Xr(t);
628
+ var Rr = function(t) {
629
+ return Lr(t) && !Dr(t);
667
630
  };
668
- function Wr(e) {
631
+ function Lr(e) {
669
632
  return !!e && typeof e == "object";
670
633
  }
671
- function Xr(e) {
634
+ function Dr(e) {
672
635
  var t = Object.prototype.toString.call(e);
673
- return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
636
+ return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
674
637
  }
675
- var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
676
- function Qr(e) {
677
- return e.$$typeof === qr;
638
+ var kr = typeof Symbol == "function" && Symbol.for, Ur = kr ? Symbol.for("react.element") : 60103;
639
+ function Fr(e) {
640
+ return e.$$typeof === Ur;
678
641
  }
679
- function Yr(e) {
642
+ function Gr(e) {
680
643
  return Array.isArray(e) ? [] : {};
681
644
  }
682
- function he(e, t) {
683
- return t.clone !== !1 && t.isMergeableObject(e) ? K(Yr(e), e, t) : e;
645
+ function le(e, t) {
646
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(Gr(e), e, t) : e;
684
647
  }
685
- function Kr(e, t, r) {
648
+ function $r(e, t, r) {
686
649
  return e.concat(t).map(function(n) {
687
- return he(n, r);
650
+ return le(n, r);
688
651
  });
689
652
  }
690
- function en(e, t) {
653
+ function jr(e, t) {
691
654
  if (!t.customMerge)
692
- return K;
655
+ return Y;
693
656
  var r = t.customMerge(e);
694
- return typeof r == "function" ? r : K;
657
+ return typeof r == "function" ? r : Y;
695
658
  }
696
- function tn(e) {
659
+ function Vr(e) {
697
660
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
698
661
  return Object.propertyIsEnumerable.call(e, t);
699
662
  }) : [];
700
663
  }
701
- function ft(e) {
702
- return Object.keys(e).concat(tn(e));
664
+ function st(e) {
665
+ return Object.keys(e).concat(Vr(e));
703
666
  }
704
- function Rt(e, t) {
667
+ function wt(e, t) {
705
668
  try {
706
669
  return t in e;
707
- } catch (r) {
670
+ } catch {
708
671
  return !1;
709
672
  }
710
673
  }
711
- function rn(e, t) {
712
- return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
674
+ function zr(e, t) {
675
+ return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
713
676
  }
714
- function nn(e, t, r) {
677
+ function Jr(e, t, r) {
715
678
  var n = {};
716
- return r.isMergeableObject(e) && ft(e).forEach(function(i) {
717
- n[i] = he(e[i], r);
718
- }), ft(t).forEach(function(i) {
719
- rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
679
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
680
+ n[i] = le(e[i], r);
681
+ }), st(t).forEach(function(i) {
682
+ zr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
720
683
  }), n;
721
684
  }
722
- function K(e, t, r) {
723
- r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = he;
685
+ function Y(e, t, r) {
686
+ r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = le;
724
687
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
725
- return s ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : he(t, r);
688
+ return s ? n ? r.arrayMerge(e, t, r) : Jr(e, t, r) : le(t, r);
726
689
  }
727
- K.all = function(t, r) {
690
+ Y.all = function(t, r) {
728
691
  if (!Array.isArray(t))
729
692
  throw new Error("first argument should be an array");
730
693
  return t.reduce(function(n, i) {
731
- return K(n, i, r);
694
+ return Y(n, i, r);
732
695
  }, {});
733
696
  };
734
- var sn = K, an = sn;
735
- const on = /* @__PURE__ */ zr(an);
736
- function Me(e, t) {
737
- var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
697
+ var Wr = Y, Xr = Wr;
698
+ const Zr = /* @__PURE__ */ Mr(Xr);
699
+ function Pe(e, t) {
700
+ var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Qr;
738
701
  return i(e, {
739
702
  cache: r,
740
703
  serializer: n
741
704
  });
742
705
  }
743
- function un(e) {
706
+ function qr(e) {
744
707
  return e == null || typeof e == "number" || typeof e == "boolean";
745
708
  }
746
- function Lt(e, t, r, n) {
747
- var i = un(n) ? n : r(n), s = t.get(i);
748
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
709
+ function Nt(e, t, r, n) {
710
+ var i = qr(n) ? n : r(n), s = t.get(i);
711
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
749
712
  }
750
- function Dt(e, t, r) {
713
+ function Ot(e, t, r) {
751
714
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
752
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
715
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
753
716
  }
754
- function Ke(e, t, r, n, i) {
717
+ function Qe(e, t, r, n, i) {
755
718
  return r.bind(t, e, n, i);
756
719
  }
757
- function ln(e, t) {
758
- var r = e.length === 1 ? Lt : Dt;
759
- return Ke(e, this, r, t.cache.create(), t.serializer);
720
+ function Qr(e, t) {
721
+ var r = e.length === 1 ? Nt : Ot;
722
+ return Qe(e, this, r, t.cache.create(), t.serializer);
760
723
  }
761
- function hn(e, t) {
762
- return Ke(e, this, Dt, t.cache.create(), t.serializer);
724
+ function Yr(e, t) {
725
+ return Qe(e, this, Ot, t.cache.create(), t.serializer);
763
726
  }
764
- function fn(e, t) {
765
- return Ke(e, this, Lt, t.cache.create(), t.serializer);
727
+ function Kr(e, t) {
728
+ return Qe(e, this, Nt, t.cache.create(), t.serializer);
766
729
  }
767
- var cn = function() {
730
+ var en = function() {
768
731
  return JSON.stringify(arguments);
769
- }, mn = (
732
+ }, tn = (
770
733
  /** @class */
771
734
  function() {
772
735
  function e() {
@@ -778,13 +741,13 @@ var cn = function() {
778
741
  this.cache[t] = r;
779
742
  }, e;
780
743
  }()
781
- ), dn = {
744
+ ), rn = {
782
745
  create: function() {
783
- return new mn();
746
+ return new tn();
784
747
  }
785
- }, Re = {
786
- variadic: hn,
787
- monadic: fn
748
+ }, Ie = {
749
+ variadic: Yr,
750
+ monadic: Kr
788
751
  }, _;
789
752
  (function(e) {
790
753
  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";
@@ -793,47 +756,47 @@ var A;
793
756
  (function(e) {
794
757
  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";
795
758
  })(A || (A = {}));
796
- var ee;
759
+ var K;
797
760
  (function(e) {
798
761
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
799
- })(ee || (ee = {}));
800
- function ct(e) {
762
+ })(K || (K = {}));
763
+ function at(e) {
801
764
  return e.type === A.literal;
802
765
  }
803
- function bn(e) {
766
+ function nn(e) {
804
767
  return e.type === A.argument;
805
768
  }
806
- function kt(e) {
769
+ function Pt(e) {
807
770
  return e.type === A.number;
808
771
  }
809
- function Ut(e) {
772
+ function It(e) {
810
773
  return e.type === A.date;
811
774
  }
812
- function Ft(e) {
775
+ function Mt(e) {
813
776
  return e.type === A.time;
814
777
  }
815
- function Gt(e) {
778
+ function Rt(e) {
816
779
  return e.type === A.select;
817
780
  }
818
- function $t(e) {
781
+ function Lt(e) {
819
782
  return e.type === A.plural;
820
783
  }
821
- function gn(e) {
784
+ function sn(e) {
822
785
  return e.type === A.pound;
823
786
  }
824
- function jt(e) {
787
+ function Dt(e) {
825
788
  return e.type === A.tag;
826
789
  }
827
- function Vt(e) {
828
- return !!(e && typeof e == "object" && e.type === ee.number);
790
+ function kt(e) {
791
+ return !!(e && typeof e == "object" && e.type === K.number);
829
792
  }
830
- function ze(e) {
831
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
793
+ function je(e) {
794
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
832
795
  }
833
- var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
834
- function yn(e) {
796
+ var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
797
+ function on(e) {
835
798
  var t = {};
836
- return e.replace(pn, function(r) {
799
+ return e.replace(an, function(r) {
837
800
  var n = r.length;
838
801
  switch (r[0]) {
839
802
  case "G":
@@ -922,36 +885,36 @@ function yn(e) {
922
885
  return "";
923
886
  }), t;
924
887
  }
925
- var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
926
- function En(e) {
888
+ var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
889
+ function ln(e) {
927
890
  if (e.length === 0)
928
891
  throw new Error("Number skeleton cannot be empty");
929
- for (var t = e.split(_n).filter(function(c) {
892
+ for (var t = e.split(un).filter(function(c) {
930
893
  return c.length > 0;
931
894
  }), r = [], n = 0, i = t; n < i.length; n++) {
932
895
  var s = i[n], a = s.split("/");
933
896
  if (a.length === 0)
934
897
  throw new Error("Invalid number skeleton");
935
- for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
936
- var f = h[u];
898
+ for (var o = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
899
+ var f = l[u];
937
900
  if (f.length === 0)
938
901
  throw new Error("Invalid number skeleton");
939
902
  }
940
- r.push({ stem: o, options: l });
903
+ r.push({ stem: o, options: h });
941
904
  }
942
905
  return r;
943
906
  }
944
- function xn(e) {
907
+ function hn(e) {
945
908
  return e.replace(/^(.*?)-/, "");
946
909
  }
947
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
948
- function dt(e) {
910
+ var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
911
+ function ut(e) {
949
912
  var t = {};
950
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
913
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
951
914
  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)), "";
952
915
  }), t;
953
916
  }
954
- function Xt(e) {
917
+ function $t(e) {
955
918
  switch (e) {
956
919
  case "sign-auto":
957
920
  return {
@@ -991,7 +954,7 @@ function Xt(e) {
991
954
  };
992
955
  }
993
956
  }
994
- function Sn(e) {
957
+ function cn(e) {
995
958
  var t;
996
959
  if (e[0] === "E" && e[1] === "E" ? (t = {
997
960
  notation: "engineering"
@@ -999,17 +962,17 @@ function Sn(e) {
999
962
  notation: "scientific"
1000
963
  }, e = e.slice(1)), t) {
1001
964
  var r = e.slice(0, 2);
1002
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
965
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
1003
966
  throw new Error("Malformed concise eng/scientific notation");
1004
967
  t.minimumIntegerDigits = e.length;
1005
968
  }
1006
969
  return t;
1007
970
  }
1008
- function bt(e) {
1009
- var t = {}, r = Xt(e);
971
+ function lt(e) {
972
+ var t = {}, r = $t(e);
1010
973
  return r || t;
1011
974
  }
1012
- function Tn(e) {
975
+ function mn(e) {
1013
976
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1014
977
  var i = n[r];
1015
978
  switch (i.stem) {
@@ -1033,7 +996,7 @@ function Tn(e) {
1033
996
  continue;
1034
997
  case "measure-unit":
1035
998
  case "unit":
1036
- t.style = "unit", t.unit = xn(i.options[0]);
999
+ t.style = "unit", t.unit = hn(i.options[0]);
1037
1000
  continue;
1038
1001
  case "compact-short":
1039
1002
  case "K":
@@ -1044,13 +1007,13 @@ function Tn(e) {
1044
1007
  t.notation = "compact", t.compactDisplay = "long";
1045
1008
  continue;
1046
1009
  case "scientific":
1047
- t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1048
- return v(v({}, l), bt(u));
1010
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1011
+ return v(v({}, h), lt(u));
1049
1012
  }, {}));
1050
1013
  continue;
1051
1014
  case "engineering":
1052
- t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1053
- return v(v({}, l), bt(u));
1015
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1016
+ return v(v({}, h), lt(u));
1054
1017
  }, {}));
1055
1018
  continue;
1056
1019
  case "notation-simple":
@@ -1095,9 +1058,9 @@ function Tn(e) {
1095
1058
  case "integer-width":
1096
1059
  if (i.options.length > 1)
1097
1060
  throw new RangeError("integer-width stems only accept a single optional option");
1098
- i.options[0].replace(vn, function(l, u, h, f, c, E) {
1061
+ i.options[0].replace(fn, function(h, u, l, f, c, E) {
1099
1062
  if (u)
1100
- t.minimumIntegerDigits = h.length;
1063
+ t.minimumIntegerDigits = l.length;
1101
1064
  else {
1102
1065
  if (f && c)
1103
1066
  throw new Error("We currently do not support maximum integer digits");
@@ -1108,32 +1071,32 @@ function Tn(e) {
1108
1071
  });
1109
1072
  continue;
1110
1073
  }
1111
- if (Wt.test(i.stem)) {
1074
+ if (Gt.test(i.stem)) {
1112
1075
  t.minimumIntegerDigits = i.stem.length;
1113
1076
  continue;
1114
1077
  }
1115
- if (mt.test(i.stem)) {
1078
+ if (ot.test(i.stem)) {
1116
1079
  if (i.options.length > 1)
1117
1080
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1118
- i.stem.replace(mt, function(l, u, h, f, c, E) {
1119
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1081
+ i.stem.replace(ot, function(h, u, l, f, c, E) {
1082
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1120
1083
  });
1121
1084
  var s = i.options[0];
1122
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), dt(s)));
1085
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), ut(s)));
1123
1086
  continue;
1124
1087
  }
1125
- if (Jt.test(i.stem)) {
1126
- t = v(v({}, t), dt(i.stem));
1088
+ if (Ft.test(i.stem)) {
1089
+ t = v(v({}, t), ut(i.stem));
1127
1090
  continue;
1128
1091
  }
1129
- var a = Xt(i.stem);
1092
+ var a = $t(i.stem);
1130
1093
  a && (t = v(v({}, t), a));
1131
- var o = Sn(i.stem);
1094
+ var o = cn(i.stem);
1132
1095
  o && (t = v(v({}, t), o));
1133
1096
  }
1134
1097
  return t;
1135
1098
  }
1136
- var pe = {
1099
+ var ge = {
1137
1100
  "001": [
1138
1101
  "H",
1139
1102
  "h"
@@ -2548,22 +2511,22 @@ var pe = {
2548
2511
  "h"
2549
2512
  ]
2550
2513
  };
2551
- function An(e, t) {
2514
+ function dn(e, t) {
2552
2515
  for (var r = "", n = 0; n < e.length; n++) {
2553
2516
  var i = e.charAt(n);
2554
2517
  if (i === "j") {
2555
2518
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2556
2519
  s++, n++;
2557
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Hn(t);
2520
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = bn(t);
2558
2521
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2559
- r += l;
2522
+ r += h;
2560
2523
  for (; a-- > 0; )
2561
2524
  r = u + r;
2562
2525
  } else i === "J" ? r += "H" : r += i;
2563
2526
  }
2564
2527
  return r;
2565
2528
  }
2566
- function Hn(e) {
2529
+ function bn(e) {
2567
2530
  var t = e.hourCycle;
2568
2531
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2569
2532
  e.hourCycles && // @ts-ignore
@@ -2582,23 +2545,23 @@ function Hn(e) {
2582
2545
  }
2583
2546
  var r = e.language, n;
2584
2547
  r !== "root" && (n = e.maximize().region);
2585
- var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2548
+ var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2586
2549
  return i[0];
2587
2550
  }
2588
- var Le, Cn = new RegExp("^".concat(zt.source, "*")), Bn = new RegExp("".concat(zt.source, "*$"));
2551
+ var Me, gn = new RegExp("^".concat(Ut.source, "*")), pn = new RegExp("".concat(Ut.source, "*$"));
2589
2552
  function x(e, t) {
2590
2553
  return { start: e, end: t };
2591
2554
  }
2592
- var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, On = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, Rn = !!Number.isSafeInteger, Ln = Rn ? Number.isSafeInteger : function(e) {
2555
+ var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Sn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, An = Tn ? Number.isSafeInteger : function(e) {
2593
2556
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2594
- }, Je = !0;
2557
+ }, Ve = !0;
2595
2558
  try {
2596
- var Dn = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2597
- Je = ((Le = Dn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2598
- } catch (e) {
2599
- Je = !1;
2559
+ var Hn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
+ Ve = ((Me = Hn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2561
+ } catch {
2562
+ Ve = !1;
2600
2563
  }
2601
- var gt = wn ? (
2564
+ var ht = yn ? (
2602
2565
  // Native
2603
2566
  function(t, r, n) {
2604
2567
  return t.startsWith(r, n);
@@ -2608,7 +2571,7 @@ var gt = wn ? (
2608
2571
  function(t, r, n) {
2609
2572
  return t.slice(n, n + r.length) === r;
2610
2573
  }
2611
- ), We = Nn ? String.fromCodePoint : (
2574
+ ), ze = _n ? String.fromCodePoint : (
2612
2575
  // IE11
2613
2576
  function() {
2614
2577
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2620,9 +2583,9 @@ var gt = wn ? (
2620
2583
  }
2621
2584
  return n;
2622
2585
  }
2623
- ), pt = (
2586
+ ), ft = (
2624
2587
  // native
2625
- On ? Object.fromEntries : (
2588
+ En ? Object.fromEntries : (
2626
2589
  // Ponyfill
2627
2590
  function(t) {
2628
2591
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2632,7 +2595,7 @@ var gt = wn ? (
2632
2595
  return r;
2633
2596
  }
2634
2597
  )
2635
- ), Zt = Pn ? (
2598
+ ), jt = xn ? (
2636
2599
  // Native
2637
2600
  function(t, r) {
2638
2601
  return t.codePointAt(r);
@@ -2646,7 +2609,7 @@ var gt = wn ? (
2646
2609
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2647
2610
  }
2648
2611
  }
2649
- ), kn = In ? (
2612
+ ), Cn = vn ? (
2650
2613
  // Native
2651
2614
  function(t) {
2652
2615
  return t.trimStart();
@@ -2654,9 +2617,9 @@ var gt = wn ? (
2654
2617
  ) : (
2655
2618
  // Ponyfill
2656
2619
  function(t) {
2657
- return t.replace(Cn, "");
2620
+ return t.replace(gn, "");
2658
2621
  }
2659
- ), Un = Mn ? (
2622
+ ), Bn = Sn ? (
2660
2623
  // Native
2661
2624
  function(t) {
2662
2625
  return t.trimEnd();
@@ -2664,32 +2627,32 @@ var gt = wn ? (
2664
2627
  ) : (
2665
2628
  // Ponyfill
2666
2629
  function(t) {
2667
- return t.replace(Bn, "");
2630
+ return t.replace(pn, "");
2668
2631
  }
2669
2632
  );
2670
- function qt(e, t) {
2633
+ function Vt(e, t) {
2671
2634
  return new RegExp(e, t);
2672
2635
  }
2673
- var Xe;
2674
- if (Je) {
2675
- var yt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2676
- Xe = function(t, r) {
2636
+ var Je;
2637
+ if (Ve) {
2638
+ var ct = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2639
+ Je = function(t, r) {
2677
2640
  var n;
2678
- yt.lastIndex = r;
2679
- var i = yt.exec(t);
2641
+ ct.lastIndex = r;
2642
+ var i = ct.exec(t);
2680
2643
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2681
2644
  };
2682
2645
  } else
2683
- Xe = function(t, r) {
2646
+ Je = function(t, r) {
2684
2647
  for (var n = []; ; ) {
2685
- var i = Zt(t, r);
2686
- if (i === void 0 || Qt(i) || jn(i))
2648
+ var i = jt(t, r);
2649
+ if (i === void 0 || zt(i) || Pn(i))
2687
2650
  break;
2688
2651
  n.push(i), r += i >= 65536 ? 2 : 1;
2689
2652
  }
2690
- return We.apply(void 0, n);
2653
+ return ze.apply(void 0, n);
2691
2654
  };
2692
- var Fn = (
2655
+ var wn = (
2693
2656
  /** @class */
2694
2657
  function() {
2695
2658
  function e(t, r) {
@@ -2720,7 +2683,7 @@ var Fn = (
2720
2683
  if (n)
2721
2684
  break;
2722
2685
  return this.error(_.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
2723
- } else if (s === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
2686
+ } else if (s === 60 && !this.ignoreTag && We(this.peek() || 0)) {
2724
2687
  var a = this.parseTag(t, r);
2725
2688
  if (a.err)
2726
2689
  return a;
@@ -2753,10 +2716,10 @@ var Fn = (
2753
2716
  return s;
2754
2717
  var a = s.val, o = this.clonePosition();
2755
2718
  if (this.bumpIf("</")) {
2756
- if (this.isEOF() || !Ze(this.char()))
2719
+ if (this.isEOF() || !We(this.char()))
2757
2720
  return this.error(_.INVALID_TAG, x(o, this.clonePosition()));
2758
- var l = this.clonePosition(), u = this.parseTagName();
2759
- return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2721
+ var h = this.clonePosition(), u = this.parseTagName();
2722
+ return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, x(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2760
2723
  val: {
2761
2724
  type: A.tag,
2762
2725
  value: i,
@@ -2771,7 +2734,7 @@ var Fn = (
2771
2734
  return this.error(_.INVALID_TAG, x(n, this.clonePosition()));
2772
2735
  }, e.prototype.parseTagName = function() {
2773
2736
  var t = this.offset();
2774
- for (this.bump(); !this.isEOF() && $n(this.char()); )
2737
+ for (this.bump(); !this.isEOF() && On(this.char()); )
2775
2738
  this.bump();
2776
2739
  return this.message.slice(t, this.offset());
2777
2740
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2793,14 +2756,14 @@ var Fn = (
2793
2756
  }
2794
2757
  break;
2795
2758
  }
2796
- var l = x(n, this.clonePosition());
2759
+ var h = x(n, this.clonePosition());
2797
2760
  return {
2798
- val: { type: A.literal, value: i, location: l },
2761
+ val: { type: A.literal, value: i, location: h },
2799
2762
  err: null
2800
2763
  };
2801
2764
  }, e.prototype.tryParseLeftAngleBracket = function() {
2802
2765
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2803
- !Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
2766
+ !Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
2804
2767
  }, e.prototype.tryParseQuote = function(t) {
2805
2768
  if (this.isEOF() || this.char() !== 39)
2806
2769
  return null;
@@ -2834,12 +2797,12 @@ var Fn = (
2834
2797
  r.push(n);
2835
2798
  this.bump();
2836
2799
  }
2837
- return We.apply(void 0, r);
2800
+ return ze.apply(void 0, r);
2838
2801
  }, e.prototype.tryParseUnquoted = function(t, r) {
2839
2802
  if (this.isEOF())
2840
2803
  return null;
2841
2804
  var n = this.char();
2842
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
2805
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
2843
2806
  }, e.prototype.parseArgument = function(t, r) {
2844
2807
  var n = this.clonePosition();
2845
2808
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2868,15 +2831,15 @@ var Fn = (
2868
2831
  return this.error(_.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
2869
2832
  }
2870
2833
  }, e.prototype.parseIdentifierIfPossible = function() {
2871
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2834
+ var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
2872
2835
  this.bumpTo(i);
2873
2836
  var s = this.clonePosition(), a = x(t, s);
2874
2837
  return { value: n, location: a };
2875
2838
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2876
- var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2839
+ var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2877
2840
  switch (o) {
2878
2841
  case "":
2879
- return this.error(_.EXPECT_ARGUMENT_TYPE, x(a, l));
2842
+ return this.error(_.EXPECT_ARGUMENT_TYPE, x(a, h));
2880
2843
  case "number":
2881
2844
  case "date":
2882
2845
  case "time": {
@@ -2884,21 +2847,21 @@ var Fn = (
2884
2847
  var u = null;
2885
2848
  if (this.bumpIf(",")) {
2886
2849
  this.bumpSpace();
2887
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2850
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2888
2851
  if (f.err)
2889
2852
  return f;
2890
- var c = Un(f.val);
2853
+ var c = Bn(f.val);
2891
2854
  if (c.length === 0)
2892
2855
  return this.error(_.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
2893
- var E = x(h, this.clonePosition());
2856
+ var E = x(l, this.clonePosition());
2894
2857
  u = { style: c, styleLocation: E };
2895
2858
  }
2896
2859
  var d = this.tryParseArgumentClose(i);
2897
2860
  if (d.err)
2898
2861
  return d;
2899
2862
  var b = x(i, this.clonePosition());
2900
- if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
2901
- var g = kn(u.style.slice(2));
2863
+ if (u && ht(u?.style, "::", 0)) {
2864
+ var g = Cn(u.style.slice(2));
2902
2865
  if (o === "number") {
2903
2866
  var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
2904
2867
  return f.err ? f : {
@@ -2909,12 +2872,12 @@ var Fn = (
2909
2872
  if (g.length === 0)
2910
2873
  return this.error(_.EXPECT_DATE_TIME_SKELETON, b);
2911
2874
  var p = g;
2912
- this.locale && (p = An(g, this.locale));
2875
+ this.locale && (p = dn(g, this.locale));
2913
2876
  var c = {
2914
- type: ee.dateTime,
2877
+ type: K.dateTime,
2915
2878
  pattern: p,
2916
2879
  location: u.styleLocation,
2917
- parsedOptions: this.shouldParseSkeletons ? yn(p) : {}
2880
+ parsedOptions: this.shouldParseSkeletons ? on(p) : {}
2918
2881
  }, T = o === "date" ? A.date : A.time;
2919
2882
  return {
2920
2883
  val: { type: T, value: n, location: b, style: c },
@@ -2927,7 +2890,7 @@ var Fn = (
2927
2890
  type: o === "number" ? A.number : o === "date" ? A.date : A.time,
2928
2891
  value: n,
2929
2892
  location: b,
2930
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
2893
+ style: (s = u?.style) !== null && s !== void 0 ? s : null
2931
2894
  },
2932
2895
  err: null
2933
2896
  };
@@ -2949,9 +2912,9 @@ var Fn = (
2949
2912
  return f;
2950
2913
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), C = f.val;
2951
2914
  }
2952
- var F = this.tryParsePluralOrSelectOptions(t, o, r, H);
2953
- if (F.err)
2954
- return F;
2915
+ var U = this.tryParsePluralOrSelectOptions(t, o, r, H);
2916
+ if (U.err)
2917
+ return U;
2955
2918
  var d = this.tryParseArgumentClose(i);
2956
2919
  if (d.err)
2957
2920
  return d;
@@ -2960,7 +2923,7 @@ var Fn = (
2960
2923
  val: {
2961
2924
  type: A.select,
2962
2925
  value: n,
2963
- options: pt(F.val),
2926
+ options: ft(U.val),
2964
2927
  location: D
2965
2928
  },
2966
2929
  err: null
@@ -2968,7 +2931,7 @@ var Fn = (
2968
2931
  val: {
2969
2932
  type: A.plural,
2970
2933
  value: n,
2971
- options: pt(F.val),
2934
+ options: ft(U.val),
2972
2935
  offset: C,
2973
2936
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2974
2937
  location: D
@@ -2977,7 +2940,7 @@ var Fn = (
2977
2940
  };
2978
2941
  }
2979
2942
  default:
2980
- return this.error(_.INVALID_ARGUMENT_TYPE, x(a, l));
2943
+ return this.error(_.INVALID_ARGUMENT_TYPE, x(a, h));
2981
2944
  }
2982
2945
  }, e.prototype.tryParseArgumentClose = function(t) {
2983
2946
  return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3019,33 +2982,33 @@ var Fn = (
3019
2982
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3020
2983
  var n = [];
3021
2984
  try {
3022
- n = En(t);
3023
- } catch (i) {
2985
+ n = ln(t);
2986
+ } catch {
3024
2987
  return this.error(_.INVALID_NUMBER_SKELETON, r);
3025
2988
  }
3026
2989
  return {
3027
2990
  val: {
3028
- type: ee.number,
2991
+ type: K.number,
3029
2992
  tokens: n,
3030
2993
  location: r,
3031
- parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
2994
+ parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
3032
2995
  },
3033
2996
  err: null
3034
2997
  };
3035
2998
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3036
- for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2999
+ for (var s, a = !1, o = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3037
3000
  if (u.length === 0) {
3038
3001
  var f = this.clonePosition();
3039
3002
  if (r !== "select" && this.bumpIf("=")) {
3040
3003
  var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3041
3004
  if (c.err)
3042
3005
  return c;
3043
- h = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3006
+ l = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3044
3007
  } else
3045
3008
  break;
3046
3009
  }
3047
- if (l.has(u))
3048
- return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3010
+ if (h.has(u))
3011
+ return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3049
3012
  u === "other" && (a = !0), this.bumpSpace();
3050
3013
  var E = this.clonePosition();
3051
3014
  if (!this.bumpIf("{"))
@@ -3062,7 +3025,7 @@ var Fn = (
3062
3025
  value: d.val,
3063
3026
  location: x(E, this.clonePosition())
3064
3027
  }
3065
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3028
+ ]), h.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, l = s.location;
3066
3029
  }
3067
3030
  return o.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(_.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3068
3031
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3075,8 +3038,8 @@ var Fn = (
3075
3038
  else
3076
3039
  break;
3077
3040
  }
3078
- var l = x(i, this.clonePosition());
3079
- return s ? (a *= n, Ln(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3041
+ var h = x(i, this.clonePosition());
3042
+ return s ? (a *= n, An(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
3080
3043
  }, e.prototype.offset = function() {
3081
3044
  return this.position.offset;
3082
3045
  }, e.prototype.isEOF = function() {
@@ -3091,7 +3054,7 @@ var Fn = (
3091
3054
  var t = this.position.offset;
3092
3055
  if (t >= this.message.length)
3093
3056
  throw Error("out of bound");
3094
- var r = Zt(this.message, t);
3057
+ var r = jt(this.message, t);
3095
3058
  if (r === void 0)
3096
3059
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3097
3060
  return r;
@@ -3110,7 +3073,7 @@ var Fn = (
3110
3073
  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);
3111
3074
  }
3112
3075
  }, e.prototype.bumpIf = function(t) {
3113
- if (gt(this.message, t, this.offset())) {
3076
+ if (ht(this.message, t, this.offset())) {
3114
3077
  for (var r = 0; r < t.length; r++)
3115
3078
  this.bump();
3116
3079
  return !0;
@@ -3132,56 +3095,56 @@ var Fn = (
3132
3095
  break;
3133
3096
  }
3134
3097
  }, e.prototype.bumpSpace = function() {
3135
- for (; !this.isEOF() && Qt(this.char()); )
3098
+ for (; !this.isEOF() && zt(this.char()); )
3136
3099
  this.bump();
3137
3100
  }, e.prototype.peek = function() {
3138
3101
  if (this.isEOF())
3139
3102
  return null;
3140
3103
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3141
- return n != null ? n : null;
3104
+ return n ?? null;
3142
3105
  }, e;
3143
3106
  }()
3144
3107
  );
3145
- function Ze(e) {
3108
+ function We(e) {
3146
3109
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3147
3110
  }
3148
- function Gn(e) {
3149
- return Ze(e) || e === 47;
3111
+ function Nn(e) {
3112
+ return We(e) || e === 47;
3150
3113
  }
3151
- function $n(e) {
3114
+ function On(e) {
3152
3115
  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;
3153
3116
  }
3154
- function Qt(e) {
3117
+ function zt(e) {
3155
3118
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3156
3119
  }
3157
- function jn(e) {
3120
+ function Pn(e) {
3158
3121
  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;
3159
3122
  }
3160
- function qe(e) {
3123
+ function Xe(e) {
3161
3124
  e.forEach(function(t) {
3162
- if (delete t.location, Gt(t) || $t(t))
3125
+ if (delete t.location, Rt(t) || Lt(t))
3163
3126
  for (var r in t.options)
3164
- delete t.options[r].location, qe(t.options[r].value);
3165
- else kt(t) && Vt(t.style) || (Ut(t) || Ft(t)) && ze(t.style) ? delete t.style.location : jt(t) && qe(t.children);
3127
+ delete t.options[r].location, Xe(t.options[r].value);
3128
+ else Pt(t) && kt(t.style) || (It(t) || Mt(t)) && je(t.style) ? delete t.style.location : Dt(t) && Xe(t.children);
3166
3129
  });
3167
3130
  }
3168
- function Vn(e, t) {
3131
+ function In(e, t) {
3169
3132
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3170
- var r = new Fn(e, t).parse();
3133
+ var r = new wn(e, t).parse();
3171
3134
  if (r.err) {
3172
3135
  var n = SyntaxError(_[r.err.kind]);
3173
3136
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3174
3137
  }
3175
- return t != null && t.captureLocation || qe(r.val), r.val;
3138
+ return t?.captureLocation || Xe(r.val), r.val;
3176
3139
  }
3177
- var te;
3140
+ var ee;
3178
3141
  (function(e) {
3179
3142
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3180
- })(te || (te = {}));
3181
- var Ae = (
3143
+ })(ee || (ee = {}));
3144
+ var Te = (
3182
3145
  /** @class */
3183
3146
  function(e) {
3184
- Se(t, e);
3147
+ ve(t, e);
3185
3148
  function t(r, n, i) {
3186
3149
  var s = e.call(this, r) || this;
3187
3150
  return s.code = n, s.originalMessage = i, s;
@@ -3190,110 +3153,110 @@ var Ae = (
3190
3153
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3191
3154
  }, t;
3192
3155
  }(Error)
3193
- ), _t = (
3156
+ ), mt = (
3194
3157
  /** @class */
3195
3158
  function(e) {
3196
- Se(t, e);
3159
+ ve(t, e);
3197
3160
  function t(r, n, i, s) {
3198
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
3161
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
3199
3162
  }
3200
3163
  return t;
3201
- }(Ae)
3202
- ), zn = (
3164
+ }(Te)
3165
+ ), Mn = (
3203
3166
  /** @class */
3204
3167
  function(e) {
3205
- Se(t, e);
3168
+ ve(t, e);
3206
3169
  function t(r, n, i) {
3207
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3170
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3208
3171
  }
3209
3172
  return t;
3210
- }(Ae)
3211
- ), Jn = (
3173
+ }(Te)
3174
+ ), Rn = (
3212
3175
  /** @class */
3213
3176
  function(e) {
3214
- Se(t, e);
3177
+ ve(t, e);
3215
3178
  function t(r, n) {
3216
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3179
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3217
3180
  }
3218
3181
  return t;
3219
- }(Ae)
3182
+ }(Te)
3220
3183
  ), I;
3221
3184
  (function(e) {
3222
3185
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3223
3186
  })(I || (I = {}));
3224
- function Wn(e) {
3187
+ function Ln(e) {
3225
3188
  return e.length < 2 ? e : e.reduce(function(t, r) {
3226
3189
  var n = t[t.length - 1];
3227
3190
  return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3228
3191
  }, []);
3229
3192
  }
3230
- function Xn(e) {
3193
+ function Dn(e) {
3231
3194
  return typeof e == "function";
3232
3195
  }
3233
- function _e(e, t, r, n, i, s, a) {
3234
- if (e.length === 1 && ct(e[0]))
3196
+ function ye(e, t, r, n, i, s, a) {
3197
+ if (e.length === 1 && at(e[0]))
3235
3198
  return [
3236
3199
  {
3237
3200
  type: I.literal,
3238
3201
  value: e[0].value
3239
3202
  }
3240
3203
  ];
3241
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3242
- var h = u[l];
3243
- if (ct(h)) {
3204
+ for (var o = [], h = 0, u = e; h < u.length; h++) {
3205
+ var l = u[h];
3206
+ if (at(l)) {
3244
3207
  o.push({
3245
3208
  type: I.literal,
3246
- value: h.value
3209
+ value: l.value
3247
3210
  });
3248
3211
  continue;
3249
3212
  }
3250
- if (gn(h)) {
3213
+ if (sn(l)) {
3251
3214
  typeof s == "number" && o.push({
3252
3215
  type: I.literal,
3253
3216
  value: r.getNumberFormat(t).format(s)
3254
3217
  });
3255
3218
  continue;
3256
3219
  }
3257
- var f = h.value;
3220
+ var f = l.value;
3258
3221
  if (!(i && f in i))
3259
- throw new Jn(f, a);
3222
+ throw new Rn(f, a);
3260
3223
  var c = i[f];
3261
- if (bn(h)) {
3224
+ if (nn(l)) {
3262
3225
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3263
3226
  type: typeof c == "string" ? I.literal : I.object,
3264
3227
  value: c
3265
3228
  });
3266
3229
  continue;
3267
3230
  }
3268
- if (Ut(h)) {
3269
- var E = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
3231
+ if (It(l)) {
3232
+ var E = typeof l.style == "string" ? n.date[l.style] : je(l.style) ? l.style.parsedOptions : void 0;
3270
3233
  o.push({
3271
3234
  type: I.literal,
3272
3235
  value: r.getDateTimeFormat(t, E).format(c)
3273
3236
  });
3274
3237
  continue;
3275
3238
  }
3276
- if (Ft(h)) {
3277
- var E = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
3239
+ if (Mt(l)) {
3240
+ var E = typeof l.style == "string" ? n.time[l.style] : je(l.style) ? l.style.parsedOptions : n.time.medium;
3278
3241
  o.push({
3279
3242
  type: I.literal,
3280
3243
  value: r.getDateTimeFormat(t, E).format(c)
3281
3244
  });
3282
3245
  continue;
3283
3246
  }
3284
- if (kt(h)) {
3285
- var E = typeof h.style == "string" ? n.number[h.style] : Vt(h.style) ? h.style.parsedOptions : void 0;
3247
+ if (Pt(l)) {
3248
+ var E = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
3286
3249
  E && E.scale && (c = c * (E.scale || 1)), o.push({
3287
3250
  type: I.literal,
3288
3251
  value: r.getNumberFormat(t, E).format(c)
3289
3252
  });
3290
3253
  continue;
3291
3254
  }
3292
- if (jt(h)) {
3293
- var d = h.children, b = h.value, g = i[b];
3294
- if (!Xn(g))
3295
- throw new zn(b, "function", a);
3296
- var p = _e(d, t, r, n, i, s), T = g(p.map(function(C) {
3255
+ if (Dt(l)) {
3256
+ var d = l.children, b = l.value, g = i[b];
3257
+ if (!Dn(g))
3258
+ throw new Mn(b, "function", a);
3259
+ var p = ye(d, t, r, n, i, s), T = g(p.map(function(C) {
3297
3260
  return C.value;
3298
3261
  }));
3299
3262
  Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(C) {
@@ -3303,42 +3266,42 @@ function _e(e, t, r, n, i, s, a) {
3303
3266
  };
3304
3267
  }));
3305
3268
  }
3306
- if (Gt(h)) {
3307
- var N = h.options[c] || h.options.other;
3269
+ if (Rt(l)) {
3270
+ var N = l.options[c] || l.options.other;
3308
3271
  if (!N)
3309
- throw new _t(h.value, c, Object.keys(h.options), a);
3310
- o.push.apply(o, _e(N.value, t, r, n, i));
3272
+ throw new mt(l.value, c, Object.keys(l.options), a);
3273
+ o.push.apply(o, ye(N.value, t, r, n, i));
3311
3274
  continue;
3312
3275
  }
3313
- if ($t(h)) {
3314
- var N = h.options["=".concat(c)];
3276
+ if (Lt(l)) {
3277
+ var N = l.options["=".concat(c)];
3315
3278
  if (!N) {
3316
3279
  if (!Intl.PluralRules)
3317
- throw new Ae(`Intl.PluralRules is not available in this environment.
3280
+ throw new Te(`Intl.PluralRules is not available in this environment.
3318
3281
  Try polyfilling it using "@formatjs/intl-pluralrules"
3319
- `, te.MISSING_INTL_API, a);
3320
- var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3321
- N = h.options[H] || h.options.other;
3282
+ `, ee.MISSING_INTL_API, a);
3283
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3284
+ N = l.options[H] || l.options.other;
3322
3285
  }
3323
3286
  if (!N)
3324
- throw new _t(h.value, c, Object.keys(h.options), a);
3325
- o.push.apply(o, _e(N.value, t, r, n, i, c - (h.offset || 0)));
3287
+ throw new mt(l.value, c, Object.keys(l.options), a);
3288
+ o.push.apply(o, ye(N.value, t, r, n, i, c - (l.offset || 0)));
3326
3289
  continue;
3327
3290
  }
3328
3291
  }
3329
- return Wn(o);
3292
+ return Ln(o);
3330
3293
  }
3331
- function Zn(e, t) {
3294
+ function kn(e, t) {
3332
3295
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3333
3296
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3334
3297
  }, {})) : e;
3335
3298
  }
3336
- function qn(e, t) {
3299
+ function Un(e, t) {
3337
3300
  return t ? Object.keys(e).reduce(function(r, n) {
3338
- return r[n] = Zn(e[n], t[n]), r;
3301
+ return r[n] = kn(e[n], t[n]), r;
3339
3302
  }, v({}, e)) : e;
3340
3303
  }
3341
- function De(e) {
3304
+ function Re(e) {
3342
3305
  return {
3343
3306
  create: function() {
3344
3307
  return {
@@ -3352,39 +3315,39 @@ function De(e) {
3352
3315
  }
3353
3316
  };
3354
3317
  }
3355
- function Qn(e) {
3318
+ function Fn(e) {
3356
3319
  return e === void 0 && (e = {
3357
3320
  number: {},
3358
3321
  dateTime: {},
3359
3322
  pluralRules: {}
3360
3323
  }), {
3361
- getNumberFormat: Me(function() {
3324
+ getNumberFormat: Pe(function() {
3362
3325
  for (var t, r = [], n = 0; n < arguments.length; n++)
3363
3326
  r[n] = arguments[n];
3364
- return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3327
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3365
3328
  }, {
3366
- cache: De(e.number),
3367
- strategy: Re.variadic
3329
+ cache: Re(e.number),
3330
+ strategy: Ie.variadic
3368
3331
  }),
3369
- getDateTimeFormat: Me(function() {
3332
+ getDateTimeFormat: Pe(function() {
3370
3333
  for (var t, r = [], n = 0; n < arguments.length; n++)
3371
3334
  r[n] = arguments[n];
3372
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3335
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3373
3336
  }, {
3374
- cache: De(e.dateTime),
3375
- strategy: Re.variadic
3337
+ cache: Re(e.dateTime),
3338
+ strategy: Ie.variadic
3376
3339
  }),
3377
- getPluralRules: Me(function() {
3340
+ getPluralRules: Pe(function() {
3378
3341
  for (var t, r = [], n = 0; n < arguments.length; n++)
3379
3342
  r[n] = arguments[n];
3380
- return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3343
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3381
3344
  }, {
3382
- cache: De(e.pluralRules),
3383
- strategy: Re.variadic
3345
+ cache: Re(e.pluralRules),
3346
+ strategy: Ie.variadic
3384
3347
  })
3385
3348
  };
3386
3349
  }
3387
- var Yn = (
3350
+ var Gn = (
3388
3351
  /** @class */
3389
3352
  function() {
3390
3353
  function e(t, r, n, i) {
@@ -3394,20 +3357,20 @@ var Yn = (
3394
3357
  number: {},
3395
3358
  dateTime: {},
3396
3359
  pluralRules: {}
3397
- }, this.format = function(l) {
3398
- var u = s.formatToParts(l);
3360
+ }, this.format = function(h) {
3361
+ var u = s.formatToParts(h);
3399
3362
  if (u.length === 1)
3400
3363
  return u[0].value;
3401
- var h = u.reduce(function(f, c) {
3364
+ var l = u.reduce(function(f, c) {
3402
3365
  return !f.length || c.type !== I.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3403
3366
  }, []);
3404
- return h.length <= 1 ? h[0] || "" : h;
3405
- }, this.formatToParts = function(l) {
3406
- return _e(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3367
+ return l.length <= 1 ? l[0] || "" : l;
3368
+ }, this.formatToParts = function(h) {
3369
+ return ye(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3407
3370
  }, this.resolvedOptions = function() {
3408
- var l;
3371
+ var h;
3409
3372
  return {
3410
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3373
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3411
3374
  };
3412
3375
  }, this.getAst = function() {
3413
3376
  return s.ast;
@@ -3416,13 +3379,13 @@ var Yn = (
3416
3379
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3417
3380
  var a = i || {};
3418
3381
  a.formatters;
3419
- var o = jr(a, ["formatters"]);
3382
+ var o = Pr(a, ["formatters"]);
3420
3383
  this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
3421
3384
  } else
3422
3385
  this.ast = t;
3423
3386
  if (!Array.isArray(this.ast))
3424
3387
  throw new TypeError("A message must be provided as a String or AST.");
3425
- this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
3388
+ this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
3426
3389
  }
3427
3390
  return Object.defineProperty(e, "defaultLocale", {
3428
3391
  get: function() {
@@ -3431,11 +3394,11 @@ var Yn = (
3431
3394
  enumerable: !1,
3432
3395
  configurable: !0
3433
3396
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3434
- if (typeof Intl.Locale != "undefined") {
3397
+ if (!(typeof Intl.Locale > "u")) {
3435
3398
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3436
3399
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3437
3400
  }
3438
- }, e.__parse = Vn, e.formats = {
3401
+ }, e.__parse = In, e.formats = {
3439
3402
  number: {
3440
3403
  integer: {
3441
3404
  maximumFractionDigits: 0
@@ -3496,7 +3459,7 @@ var Yn = (
3496
3459
  }, e;
3497
3460
  }()
3498
3461
  );
3499
- function Kn(e, t) {
3462
+ function $n(e, t) {
3500
3463
  if (t == null)
3501
3464
  return;
3502
3465
  if (t in e)
@@ -3517,92 +3480,92 @@ function Kn(e, t) {
3517
3480
  n = void 0;
3518
3481
  return n;
3519
3482
  }
3520
- const W = {}, ei = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), Yt = (e, t) => {
3483
+ const J = {}, jn = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), Jt = (e, t) => {
3521
3484
  if (t == null)
3522
3485
  return;
3523
- if (t in W && e in W[t])
3524
- return W[t][e];
3525
- const r = He(t);
3486
+ if (t in J && e in J[t])
3487
+ return J[t][e];
3488
+ const r = Ae(t);
3526
3489
  for (let n = 0; n < r.length; n++) {
3527
- const i = r[n], s = ri(i, e);
3490
+ const i = r[n], s = zn(i, e);
3528
3491
  if (s)
3529
- return ei(e, t, s);
3492
+ return jn(e, t, s);
3530
3493
  }
3531
3494
  };
3532
- let et;
3533
- const de = Te({});
3534
- function ti(e) {
3535
- return et[e] || null;
3495
+ let Ye;
3496
+ const me = Se({});
3497
+ function Vn(e) {
3498
+ return Ye[e] || null;
3536
3499
  }
3537
- function Kt(e) {
3538
- return e in et;
3500
+ function Wt(e) {
3501
+ return e in Ye;
3539
3502
  }
3540
- function ri(e, t) {
3541
- if (!Kt(e))
3503
+ function zn(e, t) {
3504
+ if (!Wt(e))
3542
3505
  return null;
3543
- const r = ti(e);
3544
- return Kn(r, t);
3506
+ const r = Vn(e);
3507
+ return $n(r, t);
3545
3508
  }
3546
- function ni(e) {
3509
+ function Jn(e) {
3547
3510
  if (e == null)
3548
3511
  return;
3549
- const t = He(e);
3512
+ const t = Ae(e);
3550
3513
  for (let r = 0; r < t.length; r++) {
3551
3514
  const n = t[r];
3552
- if (Kt(n))
3515
+ if (Wt(n))
3553
3516
  return n;
3554
3517
  }
3555
3518
  }
3556
- function er(e, ...t) {
3557
- delete W[e], de.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
3519
+ function Xt(e, ...t) {
3520
+ delete J[e], me.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
3558
3521
  }
3559
- ie(
3560
- [de],
3522
+ ne(
3523
+ [me],
3561
3524
  ([e]) => Object.keys(e)
3562
3525
  );
3563
- de.subscribe((e) => et = e);
3564
- const Ee = {};
3565
- function ii(e, t) {
3566
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3526
+ me.subscribe((e) => Ye = e);
3527
+ const _e = {};
3528
+ function Wn(e, t) {
3529
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3567
3530
  }
3568
- function tr(e) {
3569
- return Ee[e];
3531
+ function Zt(e) {
3532
+ return _e[e];
3570
3533
  }
3571
- function si(e) {
3572
- return He(e).map((t) => {
3573
- const r = tr(t);
3534
+ function Xn(e) {
3535
+ return Ae(e).map((t) => {
3536
+ const r = Zt(t);
3574
3537
  return [t, r ? [...r] : []];
3575
3538
  }).filter(([, t]) => t.length > 0);
3576
3539
  }
3577
- function Qe(e) {
3578
- return e == null ? !1 : He(e).some(
3540
+ function Ze(e) {
3541
+ return e == null ? !1 : Ae(e).some(
3579
3542
  (t) => {
3580
3543
  var r;
3581
- return (r = tr(t)) == null ? void 0 : r.size;
3544
+ return (r = Zt(t)) == null ? void 0 : r.size;
3582
3545
  }
3583
3546
  );
3584
3547
  }
3585
- function ai(e, t) {
3548
+ function Zn(e, t) {
3586
3549
  return Promise.all(
3587
- t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
3588
- ).then((n) => er(e, ...n));
3589
- }
3590
- const oe = {};
3591
- function rr(e) {
3592
- if (!Qe(e))
3593
- return e in oe ? oe[e] : Promise.resolve();
3594
- const t = si(e);
3595
- return oe[e] = Promise.all(
3550
+ t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
3551
+ ).then((n) => Xt(e, ...n));
3552
+ }
3553
+ const ae = {};
3554
+ function qt(e) {
3555
+ if (!Ze(e))
3556
+ return e in ae ? ae[e] : Promise.resolve();
3557
+ const t = Xn(e);
3558
+ return ae[e] = Promise.all(
3596
3559
  t.map(
3597
- ([r, n]) => ai(r, n)
3560
+ ([r, n]) => Zn(r, n)
3598
3561
  )
3599
3562
  ).then(() => {
3600
- if (Qe(e))
3601
- return rr(e);
3602
- delete oe[e];
3603
- }), oe[e];
3563
+ if (Ze(e))
3564
+ return qt(e);
3565
+ delete ae[e];
3566
+ }), ae[e];
3604
3567
  }
3605
- const oi = {
3568
+ const qn = {
3606
3569
  number: {
3607
3570
  scientific: { notation: "scientific" },
3608
3571
  engineering: { notation: "engineering" },
@@ -3631,159 +3594,159 @@ const oi = {
3631
3594
  timeZoneName: "short"
3632
3595
  }
3633
3596
  }
3634
- }, ui = {
3597
+ }, Qn = {
3635
3598
  fallbackLocale: null,
3636
3599
  loadingDelay: 200,
3637
- formats: oi,
3600
+ formats: qn,
3638
3601
  warnOnMissingMessages: !0,
3639
3602
  handleMissingMessage: void 0,
3640
3603
  ignoreTag: !0
3641
- }, li = ui;
3642
- function re() {
3643
- return li;
3604
+ }, Yn = Qn;
3605
+ function te() {
3606
+ return Yn;
3644
3607
  }
3645
- const ke = Te(!1);
3646
- var hi = Object.defineProperty, fi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
3608
+ const Le = Se(!1);
3609
+ var Kn = Object.defineProperty, ei = Object.defineProperties, ti = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
3647
3610
  for (var r in t)
3648
- mi.call(t, r) && xt(e, r, t[r]);
3649
- if (Et)
3650
- for (var r of Et(t))
3651
- di.call(t, r) && xt(e, r, t[r]);
3611
+ ri.call(t, r) && bt(e, r, t[r]);
3612
+ if (dt)
3613
+ for (var r of dt(t))
3614
+ ni.call(t, r) && bt(e, r, t[r]);
3652
3615
  return e;
3653
- }, gi = (e, t) => fi(e, ci(t));
3654
- let Ye;
3655
- const xe = Te(null);
3656
- function vt(e) {
3616
+ }, si = (e, t) => ei(e, ti(t));
3617
+ let qe;
3618
+ const Ee = Se(null);
3619
+ function gt(e) {
3657
3620
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3658
3621
  }
3659
- function He(e, t = re().fallbackLocale) {
3660
- const r = vt(e);
3661
- return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3622
+ function Ae(e, t = te().fallbackLocale) {
3623
+ const r = gt(e);
3624
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3662
3625
  }
3663
- function X() {
3664
- return Ye != null ? Ye : void 0;
3626
+ function W() {
3627
+ return qe ?? void 0;
3665
3628
  }
3666
- xe.subscribe((e) => {
3667
- Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3629
+ Ee.subscribe((e) => {
3630
+ qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3668
3631
  });
3669
- const pi = (e) => {
3670
- if (e && ni(e) && Qe(e)) {
3671
- const { loadingDelay: t } = re();
3632
+ const ai = (e) => {
3633
+ if (e && Jn(e) && Ze(e)) {
3634
+ const { loadingDelay: t } = te();
3672
3635
  let r;
3673
- return typeof window != "undefined" && X() != null && t ? r = window.setTimeout(
3674
- () => ke.set(!0),
3636
+ return typeof window < "u" && W() != null && t ? r = window.setTimeout(
3637
+ () => Le.set(!0),
3675
3638
  t
3676
- ) : ke.set(!0), rr(e).then(() => {
3677
- xe.set(e);
3639
+ ) : Le.set(!0), qt(e).then(() => {
3640
+ Ee.set(e);
3678
3641
  }).finally(() => {
3679
- clearTimeout(r), ke.set(!1);
3642
+ clearTimeout(r), Le.set(!1);
3680
3643
  });
3681
3644
  }
3682
- return xe.set(e);
3683
- }, se = gi(bi({}, xe), {
3684
- set: pi
3685
- }), Ce = (e) => {
3645
+ return Ee.set(e);
3646
+ }, ie = si(ii({}, Ee), {
3647
+ set: ai
3648
+ }), He = (e) => {
3686
3649
  const t = /* @__PURE__ */ Object.create(null);
3687
3650
  return (n) => {
3688
3651
  const i = JSON.stringify(n);
3689
3652
  return i in t ? t[i] : t[i] = e(n);
3690
3653
  };
3691
3654
  };
3692
- var yi = Object.defineProperty, ve = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
3655
+ var oi = Object.defineProperty, xe = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
3693
3656
  for (var r in t || (t = {}))
3694
- nr.call(t, r) && St(e, r, t[r]);
3695
- if (ve)
3696
- for (var r of ve(t))
3697
- ir.call(t, r) && St(e, r, t[r]);
3657
+ Qt.call(t, r) && pt(e, r, t[r]);
3658
+ if (xe)
3659
+ for (var r of xe(t))
3660
+ Yt.call(t, r) && pt(e, r, t[r]);
3698
3661
  return e;
3699
- }, ae = (e, t) => {
3662
+ }, se = (e, t) => {
3700
3663
  var r = {};
3701
3664
  for (var n in e)
3702
- nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3703
- if (e != null && ve)
3704
- for (var n of ve(e))
3705
- t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
3665
+ Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3666
+ if (e != null && xe)
3667
+ for (var n of xe(e))
3668
+ t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3706
3669
  return r;
3707
3670
  };
3708
- const fe = (e, t) => {
3709
- const { formats: r } = re();
3671
+ const he = (e, t) => {
3672
+ const { formats: r } = te();
3710
3673
  if (e in r && t in r[e])
3711
3674
  return r[e][t];
3712
3675
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3713
- }, _i = Ce(
3676
+ }, ui = He(
3714
3677
  (e) => {
3715
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3678
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3716
3679
  if (r == null)
3717
3680
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3718
- return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
3681
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3719
3682
  }
3720
- ), Ei = Ce(
3683
+ ), li = He(
3721
3684
  (e) => {
3722
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3685
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3723
3686
  if (r == null)
3724
3687
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3725
- return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
3688
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3726
3689
  }
3727
- ), xi = Ce(
3690
+ ), hi = He(
3728
3691
  (e) => {
3729
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3692
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3730
3693
  if (r == null)
3731
3694
  throw new Error(
3732
3695
  '[svelte-i18n] A "locale" must be set to format time values'
3733
3696
  );
3734
- return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
3697
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3735
3698
  }
3736
- ), vi = (e = {}) => {
3699
+ ), fi = (e = {}) => {
3737
3700
  var t = e, {
3738
- locale: r = X()
3739
- } = t, n = ae(t, [
3701
+ locale: r = W()
3702
+ } = t, n = se(t, [
3740
3703
  "locale"
3741
3704
  ]);
3742
- return _i(tt({ locale: r }, n));
3743
- }, Si = (e = {}) => {
3705
+ return ui(Ke({ locale: r }, n));
3706
+ }, ci = (e = {}) => {
3744
3707
  var t = e, {
3745
- locale: r = X()
3746
- } = t, n = ae(t, [
3708
+ locale: r = W()
3709
+ } = t, n = se(t, [
3747
3710
  "locale"
3748
3711
  ]);
3749
- return Ei(tt({ locale: r }, n));
3750
- }, Ti = (e = {}) => {
3712
+ return li(Ke({ locale: r }, n));
3713
+ }, mi = (e = {}) => {
3751
3714
  var t = e, {
3752
- locale: r = X()
3753
- } = t, n = ae(t, [
3715
+ locale: r = W()
3716
+ } = t, n = se(t, [
3754
3717
  "locale"
3755
3718
  ]);
3756
- return xi(tt({ locale: r }, n));
3757
- }, Ai = Ce(
3719
+ return hi(Ke({ locale: r }, n));
3720
+ }, di = He(
3758
3721
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3759
- (e, t = X()) => new Yn(e, t, re().formats, {
3760
- ignoreTag: re().ignoreTag
3722
+ (e, t = W()) => new Gn(e, t, te().formats, {
3723
+ ignoreTag: te().ignoreTag
3761
3724
  })
3762
- ), Hi = (e, t = {}) => {
3725
+ ), bi = (e, t = {}) => {
3763
3726
  var r, n, i, s;
3764
3727
  let a = t;
3765
3728
  typeof e == "object" && (a = e, e = a.id);
3766
3729
  const {
3767
3730
  values: o,
3768
- locale: l = X(),
3731
+ locale: h = W(),
3769
3732
  default: u
3770
3733
  } = a;
3771
- if (l == null)
3734
+ if (h == null)
3772
3735
  throw new Error(
3773
3736
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3774
3737
  );
3775
- let h = Yt(e, l);
3776
- if (!h)
3777
- h = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3778
- else if (typeof h != "string")
3738
+ let l = Jt(e, h);
3739
+ if (!l)
3740
+ l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
3741
+ else if (typeof l != "string")
3779
3742
  return console.warn(
3780
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3781
- ), h;
3743
+ `[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.`
3744
+ ), l;
3782
3745
  if (!o)
3783
- return h;
3784
- let f = h;
3746
+ return l;
3747
+ let f = l;
3785
3748
  try {
3786
- f = Ai(h, l).format(o);
3749
+ f = di(l, h).format(o);
3787
3750
  } catch (c) {
3788
3751
  c instanceof Error && console.warn(
3789
3752
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3791,18 +3754,18 @@ const fe = (e, t) => {
3791
3754
  );
3792
3755
  }
3793
3756
  return f;
3794
- }, Ci = (e, t) => Ti(t).format(e), Bi = (e, t) => Si(t).format(e), wi = (e, t) => vi(t).format(e), Ni = (e, t = X()) => Yt(e, t), Oi = ie([se, de], () => Hi);
3795
- ie([se], () => Ci);
3796
- ie([se], () => Bi);
3797
- ie([se], () => wi);
3798
- ie([se, de], () => Ni);
3799
- function Tt(e, t) {
3800
- er(e, t);
3801
- }
3802
- function Pi(e) {
3803
- se.set(e);
3804
- }
3805
- const At = {
3757
+ }, gi = (e, t) => mi(t).format(e), pi = (e, t) => ci(t).format(e), yi = (e, t) => fi(t).format(e), _i = (e, t = W()) => Jt(e, t), Ei = ne([ie, me], () => bi);
3758
+ ne([ie], () => gi);
3759
+ ne([ie], () => pi);
3760
+ ne([ie], () => yi);
3761
+ ne([ie, me], () => _i);
3762
+ function yt(e, t) {
3763
+ Xt(e, t);
3764
+ }
3765
+ function xi(e) {
3766
+ ie.set(e);
3767
+ }
3768
+ const _t = {
3806
3769
  en: {
3807
3770
  enrolled: "Enrolled",
3808
3771
  scoreCriteria: "Score Criteria",
@@ -4134,10 +4097,10 @@ const At = {
4134
4097
  December: "December"
4135
4098
  }
4136
4099
  };
4137
- function Ii(e) {
4138
- xr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4100
+ function vi(e) {
4101
+ hr(e, "svelte-1gxooas", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
4139
4102
  }
4140
- function Ht(e) {
4103
+ function Et(e) {
4141
4104
  let t, r, n, i, s, a;
4142
4105
  return {
4143
4106
  c() {
@@ -4148,21 +4111,21 @@ function Ht(e) {
4148
4111
  e[15]), y(t, "part", i = "Status " + /*statusClass*/
4149
4112
  e[15]);
4150
4113
  },
4151
- m(o, l) {
4152
- G(o, t, l), S(t, r), s || (a = me(
4114
+ m(o, h) {
4115
+ F(o, t, h), S(t, r), s || (a = ce(
4153
4116
  /*matchStatus*/
4154
4117
  e[18].call(null, t)
4155
4118
  ), s = !0);
4156
4119
  },
4157
- p(o, l) {
4158
- l[0] & /*shownStatus*/
4159
- 8192 && $(
4120
+ p(o, h) {
4121
+ h[0] & /*shownStatus*/
4122
+ 8192 && G(
4160
4123
  r,
4161
4124
  /*shownStatus*/
4162
4125
  o[13]
4163
- ), l[0] & /*statusClass*/
4126
+ ), h[0] & /*statusClass*/
4164
4127
  32768 && n !== (n = "Status " + /*statusClass*/
4165
- o[15]) && y(t, "class", n), l[0] & /*statusClass*/
4128
+ o[15]) && y(t, "class", n), h[0] & /*statusClass*/
4166
4129
  32768 && i !== (i = "Status " + /*statusClass*/
4167
4130
  o[15]) && y(t, "part", i);
4168
4131
  },
@@ -4171,28 +4134,28 @@ function Ht(e) {
4171
4134
  }
4172
4135
  };
4173
4136
  }
4174
- function Ct(e) {
4137
+ function xt(e) {
4175
4138
  let t, r = (
4176
4139
  /*userenrolled*/
4177
- e[5] && Bt(e)
4140
+ e[5] && vt(e)
4178
4141
  );
4179
4142
  return {
4180
4143
  c() {
4181
- r && r.c(), t = Tr();
4144
+ r && r.c(), t = mr();
4182
4145
  },
4183
4146
  m(n, i) {
4184
- r && r.m(n, i), G(n, t, i);
4147
+ r && r.m(n, i), F(n, t, i);
4185
4148
  },
4186
4149
  p(n, i) {
4187
4150
  /*userenrolled*/
4188
- n[5] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4151
+ n[5] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4189
4152
  },
4190
4153
  d(n) {
4191
4154
  n && L(t), r && r.d(n);
4192
4155
  }
4193
4156
  };
4194
4157
  }
4195
- function Bt(e) {
4158
+ function vt(e) {
4196
4159
  let t, r = (
4197
4160
  /*$_*/
4198
4161
  e[16]("enrolled") + ""
@@ -4202,19 +4165,19 @@ function Bt(e) {
4202
4165
  t = O("div"), n = M(r), y(t, "class", "Enrolled"), y(t, "part", "Enrolled");
4203
4166
  },
4204
4167
  m(i, s) {
4205
- G(i, t, s), S(t, n);
4168
+ F(i, t, s), S(t, n);
4206
4169
  },
4207
4170
  p(i, s) {
4208
4171
  s[0] & /*$_*/
4209
4172
  65536 && r !== (r = /*$_*/
4210
- i[16]("enrolled") + "") && $(n, r);
4173
+ i[16]("enrolled") + "") && G(n, r);
4211
4174
  },
4212
4175
  d(i) {
4213
4176
  i && L(t);
4214
4177
  }
4215
4178
  };
4216
4179
  }
4217
- function Mi(e) {
4180
+ function Si(e) {
4218
4181
  let t, r, n, i, s;
4219
4182
  return {
4220
4183
  c() {
@@ -4222,10 +4185,10 @@ function Mi(e) {
4222
4185
  (e[0] == "Closing" || /*status*/
4223
4186
  e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
4224
4187
  (e[0] == "Closing" || /*status*/
4225
- e[0] == "Closed" ? "CardImgFinished" : "")), Fe(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
4188
+ e[0] == "Closed" ? "CardImgFinished" : "")), ke(t, "background-image", "url('https://i.stack.imgur.com/y9DpT.jpg')");
4226
4189
  },
4227
4190
  m(a, o) {
4228
- G(a, t, o), i || (s = me(
4191
+ F(a, t, o), i || (s = ce(
4229
4192
  /*matchStatus*/
4230
4193
  e[18].call(null, t)
4231
4194
  ), i = !0);
@@ -4244,7 +4207,7 @@ function Mi(e) {
4244
4207
  }
4245
4208
  };
4246
4209
  }
4247
- function Ri(e) {
4210
+ function Ti(e) {
4248
4211
  let t, r, n, i, s;
4249
4212
  return {
4250
4213
  c() {
@@ -4252,11 +4215,11 @@ function Ri(e) {
4252
4215
  (e[0] == "Closing" || /*status*/
4253
4216
  e[0] == "Closed" ? "CardImgFinished" : "")), y(t, "part", n = "CardImg " + /*status*/
4254
4217
  (e[0] == "Closing" || /*status*/
4255
- e[0] == "Closed" ? "CardImgFinished" : "")), Fe(t, "background-image", "url('" + /*thumbnail*/
4218
+ e[0] == "Closed" ? "CardImgFinished" : "")), ke(t, "background-image", "url('" + /*thumbnail*/
4256
4219
  e[4] + "')");
4257
4220
  },
4258
4221
  m(a, o) {
4259
- G(a, t, o), i || (s = me(
4222
+ F(a, t, o), i || (s = ce(
4260
4223
  /*matchStatus*/
4261
4224
  e[18].call(null, t)
4262
4225
  ), i = !0);
@@ -4269,7 +4232,7 @@ function Ri(e) {
4269
4232
  1 && n !== (n = "CardImg " + /*status*/
4270
4233
  (a[0] == "Closing" || /*status*/
4271
4234
  a[0] == "Closed" ? "CardImgFinished" : "")) && y(t, "part", n), o[0] & /*thumbnail*/
4272
- 16 && Fe(t, "background-image", "url('" + /*thumbnail*/
4235
+ 16 && ke(t, "background-image", "url('" + /*thumbnail*/
4273
4236
  a[4] + "')");
4274
4237
  },
4275
4238
  d(a) {
@@ -4277,7 +4240,7 @@ function Ri(e) {
4277
4240
  }
4278
4241
  };
4279
4242
  }
4280
- function wt(e) {
4243
+ function St(e) {
4281
4244
  let t, r, n, i, s;
4282
4245
  return {
4283
4246
  c() {
@@ -4287,7 +4250,7 @@ function wt(e) {
4287
4250
  ), y(t, "class", "Date"), y(t, "part", "Date");
4288
4251
  },
4289
4252
  m(a, o) {
4290
- G(a, t, o), S(t, r), i || (s = me(n = /*formatDate*/
4253
+ F(a, t, o), S(t, r), i || (s = ce(n = /*formatDate*/
4291
4254
  e[17].call(
4292
4255
  null,
4293
4256
  t,
@@ -4297,11 +4260,11 @@ function wt(e) {
4297
4260
  },
4298
4261
  p(a, o) {
4299
4262
  o[0] & /*shownDate*/
4300
- 2048 && $(
4263
+ 2048 && G(
4301
4264
  r,
4302
4265
  /*shownDate*/
4303
4266
  a[11]
4304
- ), n && ce(n.update) && o[0] & /*startdate*/
4267
+ ), n && fe(n.update) && o[0] & /*startdate*/
4305
4268
  4 && n.update.call(
4306
4269
  null,
4307
4270
  /*startdate*/
@@ -4313,20 +4276,20 @@ function wt(e) {
4313
4276
  }
4314
4277
  };
4315
4278
  }
4316
- function Nt(e) {
4279
+ function Tt(e) {
4317
4280
  let t, r, n = (
4318
4281
  /*$_*/
4319
4282
  e[16]("scoreCriteria") + ""
4320
- ), i, s, a, o, l, u = (
4283
+ ), i, s, a, o, h, u = (
4321
4284
  /*$_*/
4322
4285
  e[16]("minbet") + ""
4323
- ), h, f, c, E, d, b, g, p = (
4286
+ ), l, f, c, E, d, b, g, p = (
4324
4287
  /*$_*/
4325
4288
  e[16]("seegames") + ""
4326
4289
  ), T, N, H, C = (
4327
4290
  /*$_*/
4328
4291
  e[16]("here") + ""
4329
- ), F, D, j, V;
4292
+ ), U, D, $, j;
4330
4293
  return {
4331
4294
  c() {
4332
4295
  t = O("div"), r = O("p"), i = M(n), s = M(`:
@@ -4334,11 +4297,11 @@ function Nt(e) {
4334
4297
  `), a = O("span"), o = M(
4335
4298
  /*showScoreCriteria*/
4336
4299
  e[14]
4337
- ), l = M(`
4338
- (`), h = M(u), f = J(), c = M(
4300
+ ), h = M(`
4301
+ (`), l = M(u), f = z(), c = M(
4339
4302
  /*minbetcount*/
4340
4303
  e[6]
4341
- ), E = M(")"), d = J(), b = O("div"), g = O("p"), T = M(p), N = J(), H = O("a"), F = M(C), y(a, "part", "ScoreCriteriaSpan"), y(r, "part", "ScoreCriteriaP"), y(t, "class", "ScoreCriteria"), y(t, "part", "ScoreCriteria"), y(H, "part", "GamesAnchor"), y(
4304
+ ), E = M(")"), d = z(), b = O("div"), g = O("p"), T = M(p), N = z(), H = O("a"), U = M(C), y(a, "part", "ScoreCriteriaSpan"), y(r, "part", "ScoreCriteriaP"), y(t, "class", "ScoreCriteria"), y(t, "part", "ScoreCriteria"), y(H, "part", "GamesAnchor"), y(
4342
4305
  H,
4343
4306
  "href",
4344
4307
  /*gameurl*/
@@ -4347,39 +4310,39 @@ function Nt(e) {
4347
4310
  e[9] === "true" ? "_self" : "_blank"), y(g, "part", "GamesP"), y(b, "class", "Games"), y(b, "part", "Games");
4348
4311
  },
4349
4312
  m(B, R) {
4350
- G(B, t, R), S(t, r), S(r, i), S(r, s), S(r, a), S(a, o), S(r, l), S(r, h), S(r, f), S(r, c), S(r, E), G(B, d, R), G(B, b, R), S(b, g), S(g, T), S(g, N), S(g, H), S(H, F), j || (V = [
4351
- me(
4313
+ F(B, t, R), S(t, r), S(r, i), S(r, s), S(r, a), S(a, o), S(r, h), S(r, l), S(r, f), S(r, c), S(r, E), F(B, d, R), F(B, b, R), S(b, g), S(g, T), S(g, N), S(g, H), S(H, U), $ || (j = [
4314
+ ce(
4352
4315
  /*matchScoreCriteria*/
4353
4316
  e[19].call(null, a)
4354
4317
  ),
4355
- Ue(
4318
+ De(
4356
4319
  H,
4357
4320
  "click",
4358
4321
  /*click_handler*/
4359
4322
  e[28]
4360
4323
  )
4361
- ], j = !0);
4324
+ ], $ = !0);
4362
4325
  },
4363
4326
  p(B, R) {
4364
4327
  R[0] & /*$_*/
4365
4328
  65536 && n !== (n = /*$_*/
4366
- B[16]("scoreCriteria") + "") && $(i, n), R[0] & /*showScoreCriteria*/
4367
- 16384 && $(
4329
+ B[16]("scoreCriteria") + "") && G(i, n), R[0] & /*showScoreCriteria*/
4330
+ 16384 && G(
4368
4331
  o,
4369
4332
  /*showScoreCriteria*/
4370
4333
  B[14]
4371
4334
  ), R[0] & /*$_*/
4372
4335
  65536 && u !== (u = /*$_*/
4373
- B[16]("minbet") + "") && $(h, u), R[0] & /*minbetcount*/
4374
- 64 && $(
4336
+ B[16]("minbet") + "") && G(l, u), R[0] & /*minbetcount*/
4337
+ 64 && G(
4375
4338
  c,
4376
4339
  /*minbetcount*/
4377
4340
  B[6]
4378
4341
  ), R[0] & /*$_*/
4379
4342
  65536 && p !== (p = /*$_*/
4380
- B[16]("seegames") + "") && $(T, p), R[0] & /*$_*/
4343
+ B[16]("seegames") + "") && G(T, p), R[0] & /*$_*/
4381
4344
  65536 && C !== (C = /*$_*/
4382
- B[16]("here") + "") && $(F, C), R[0] & /*gameurl*/
4345
+ B[16]("here") + "") && G(U, C), R[0] & /*gameurl*/
4383
4346
  256 && y(
4384
4347
  H,
4385
4348
  "href",
@@ -4390,102 +4353,102 @@ function Nt(e) {
4390
4353
  B[9] === "true" ? "_self" : "_blank") && y(H, "target", D);
4391
4354
  },
4392
4355
  d(B) {
4393
- B && (L(t), L(d), L(b)), j = !1, ne(V);
4356
+ B && (L(t), L(d), L(b)), $ = !1, re(j);
4394
4357
  }
4395
4358
  };
4396
4359
  }
4397
- function Li(e) {
4398
- let t, r, n, i, s, a, o, l, u, h = (
4360
+ function Ai(e) {
4361
+ let t, r, n, i, s, a, o, h, u, l = (
4399
4362
  /*status*/
4400
- e[0] && Ht(e)
4363
+ e[0] && Et(e)
4401
4364
  ), f = (
4402
4365
  /*showenrolled*/
4403
- e[7] == "true" && Ct(e)
4366
+ e[7] == "true" && xt(e)
4404
4367
  );
4405
4368
  function c(p, T) {
4406
4369
  return (
4407
4370
  /*thumbnail*/
4408
- p[4] ? Ri : Mi
4371
+ p[4] ? Ti : Si
4409
4372
  );
4410
4373
  }
4411
4374
  let E = c(e), d = E(e), b = (
4412
4375
  /*startdate*/
4413
- e[2] && wt(e)
4376
+ e[2] && St(e)
4414
4377
  ), g = (
4415
4378
  /*isLoggedIn*/
4416
- e[12] && Nt(e)
4379
+ e[12] && Tt(e)
4417
4380
  );
4418
4381
  return {
4419
4382
  c() {
4420
- t = O("div"), h && h.c(), r = J(), f && f.c(), n = J(), d.c(), i = J(), s = O("div"), a = O("div"), o = M(
4383
+ t = O("div"), l && l.c(), r = z(), f && f.c(), n = z(), d.c(), i = z(), s = O("div"), a = O("div"), o = M(
4421
4384
  /*title*/
4422
4385
  e[1]
4423
- ), l = J(), b && b.c(), u = J(), g && g.c(), y(a, "class", "Title"), y(a, "part", "Title"), y(s, "class", "Details"), y(s, "part", "Details"), y(t, "class", "Thumbnail"), y(t, "part", "Thumbnail");
4386
+ ), h = z(), b && b.c(), u = z(), g && g.c(), y(a, "class", "Title"), y(a, "part", "Title"), y(s, "class", "Details"), y(s, "part", "Details"), y(t, "class", "Thumbnail"), y(t, "part", "Thumbnail");
4424
4387
  },
4425
4388
  m(p, T) {
4426
- G(p, t, T), h && h.m(t, null), S(t, r), f && f.m(t, null), S(t, n), d.m(t, null), S(t, i), S(t, s), S(s, a), S(a, o), S(s, l), b && b.m(s, null), S(s, u), g && g.m(s, null), e[29](t);
4389
+ F(p, t, T), l && l.m(t, null), S(t, r), f && f.m(t, null), S(t, n), d.m(t, null), S(t, i), S(t, s), S(s, a), S(a, o), S(s, h), b && b.m(s, null), S(s, u), g && g.m(s, null), e[29](t);
4427
4390
  },
4428
4391
  p(p, T) {
4429
4392
  /*status*/
4430
- p[0] ? h ? h.p(p, T) : (h = Ht(p), h.c(), h.m(t, r)) : h && (h.d(1), h = null), /*showenrolled*/
4431
- p[7] == "true" ? f ? f.p(p, T) : (f = Ct(p), f.c(), f.m(t, n)) : f && (f.d(1), f = null), E === (E = c(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4432
- 2 && $(
4393
+ p[0] ? l ? l.p(p, T) : (l = Et(p), l.c(), l.m(t, r)) : l && (l.d(1), l = null), /*showenrolled*/
4394
+ p[7] == "true" ? f ? f.p(p, T) : (f = xt(p), f.c(), f.m(t, n)) : f && (f.d(1), f = null), E === (E = c(p)) && d ? d.p(p, T) : (d.d(1), d = E(p), d && (d.c(), d.m(t, i))), T[0] & /*title*/
4395
+ 2 && G(
4433
4396
  o,
4434
4397
  /*title*/
4435
4398
  p[1]
4436
4399
  ), /*startdate*/
4437
- p[2] ? b ? b.p(p, T) : (b = wt(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4438
- p[12] ? g ? g.p(p, T) : (g = Nt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4400
+ p[2] ? b ? b.p(p, T) : (b = St(p), b.c(), b.m(s, u)) : b && (b.d(1), b = null), /*isLoggedIn*/
4401
+ p[12] ? g ? g.p(p, T) : (g = Tt(p), g.c(), g.m(s, null)) : g && (g.d(1), g = null);
4439
4402
  },
4440
- i: U,
4441
- o: U,
4403
+ i: k,
4404
+ o: k,
4442
4405
  d(p) {
4443
- p && L(t), h && h.d(), f && f.d(), d.d(), b && b.d(), g && g.d(), e[29](null);
4406
+ p && L(t), l && l.d(), f && f.d(), d.d(), b && b.d(), g && g.d(), e[29](null);
4444
4407
  }
4445
4408
  };
4446
4409
  }
4447
- function Di(e, t, r) {
4410
+ function Hi(e, t, r) {
4448
4411
  let n;
4449
- Er(e, Oi, (m) => r(16, n = m));
4450
- let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: l = "" } = t, { tourid: u = "" } = t, { thumbnail: h = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: N = "" } = t, { translationurl: H = "" } = t, C, F = "", D = !1, j = "", V = "", B = "";
4412
+ lr(e, Ei, (m) => r(16, n = m));
4413
+ let { session: i = "" } = t, { userid: s = "" } = t, { title: a = "" } = t, { startdate: o = "" } = t, { status: h = "" } = t, { tourid: u = "" } = t, { thumbnail: l = "" } = t, { userenrolled: f = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: E = "" } = t, { showenrolled: d = "false" } = t, { gameurl: b = "" } = t, { lang: g = "en" } = t, { keepbrowsercontext: p = "false" } = t, { clientstyling: T = "" } = t, { clientstylingurl: N = "" } = t, { translationurl: H = "" } = t, C, U = "", D = !1, $ = "", j = "", B = "";
4451
4414
  const R = () => {
4452
4415
  fetch(H).then((P) => P.json()).then((P) => {
4453
- Object.keys(P).forEach((z) => {
4454
- Tt(z, P[z]);
4416
+ Object.keys(P).forEach((V) => {
4417
+ yt(V, P[V]);
4455
4418
  });
4456
4419
  }).catch((P) => {
4457
4420
  console.log(P);
4458
4421
  });
4459
4422
  };
4460
- Object.keys(At).forEach((m) => {
4461
- Tt(m, At[m]);
4423
+ Object.keys(_t).forEach((m) => {
4424
+ yt(m, _t[m]);
4462
4425
  });
4463
- const rt = (m) => {
4464
- m.data && (m.data && m.data.type == "SessionID" && r(12, D = !0), m.data.type == `TournamentStatus_${u}` && r(0, l = m.data.status));
4465
- }, Be = () => {
4426
+ const et = (m) => {
4427
+ m.data && (m.data && m.data.type == "SessionID" && r(12, D = !0), m.data.type == `TournamentStatus_${u}` && r(0, h = m.data.status));
4428
+ }, Ce = () => {
4466
4429
  const m = { month: "long" };
4467
- let P = new Date(o), z = new Intl.DateTimeFormat("en", m).format(P), fr = P.getDate(), cr = P.toLocaleString("en-GB", {
4430
+ let P = new Date(o), V = new Intl.DateTimeFormat("en", m).format(P), sr = P.getDate(), ar = P.toLocaleString("en-GB", {
4468
4431
  hour: "numeric",
4469
4432
  minute: "numeric",
4470
4433
  hour12: !1
4471
4434
  });
4472
- const mr = () => n(l === "Running" ? "startedAt" : "startingAt");
4473
- r(11, F = `${fr} ` + n(`${z}`) + ", " + mr() + ` ${cr}`);
4435
+ const or = () => n(h === "Running" ? "startedAt" : "startingAt");
4436
+ r(11, U = `${sr} ` + n(`${V}`) + ", " + or() + ` ${ar}`);
4437
+ }, Be = () => {
4438
+ h == "Unstarted" && (r(13, $ = n("scheduled")), r(15, B = "StatusUnstarted")), h == "Running" && (r(13, $ = n("ongoing")), r(15, B = "StatusRunning")), (h == "Closed" || h == "Closing") && r(13, $ = n("finished")), h == "Closed" && r(15, B = "StatusClosed"), h == "Closing" && r(15, B = "StatusClosing");
4474
4439
  }, we = () => {
4475
- l == "Unstarted" && (r(13, j = n("scheduled")), r(15, B = "StatusUnstarted")), l == "Running" && (r(13, j = n("ongoing")), r(15, B = "StatusRunning")), (l == "Closed" || l == "Closing") && r(13, j = n("finished")), l == "Closed" && r(15, B = "StatusClosed"), l == "Closing" && r(15, B = "StatusClosing");
4476
- }, Ne = () => {
4477
- c == "BetCount" && r(14, V = n("betCount")), c == "MaxWinStakeRatio" && r(14, V = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(14, V = n("winStakeRatio")), c == "Stake" && r(14, V = n("stake"));
4478
- }, nt = (m, P) => {
4440
+ c == "BetCount" && r(14, j = n("betCount")), c == "MaxWinStakeRatio" && r(14, j = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(14, j = n("winStakeRatio")), c == "Stake" && r(14, j = n("stake"));
4441
+ }, tt = (m, P) => {
4479
4442
  window.postMessage({ type: "tournamentGamesClicked", tourId: P }, window.location.href);
4480
- }, ar = () => {
4443
+ }, er = () => {
4481
4444
  i.length > 0 && i != "false" ? r(12, D = !0) : r(12, D = !1);
4482
- }, or = () => {
4445
+ }, tr = () => {
4483
4446
  let m = document.createElement("style");
4484
4447
  m.innerHTML = T, C.appendChild(m);
4485
- }, ur = () => {
4448
+ }, rr = () => {
4486
4449
  let m = new URL(N), P = document.createElement("style");
4487
- fetch(m.href).then((z) => z.text()).then((z) => {
4488
- P.innerHTML = z, setTimeout(
4450
+ fetch(m.href).then((V) => V.text()).then((V) => {
4451
+ P.innerHTML = V, setTimeout(
4489
4452
  () => {
4490
4453
  C.appendChild(P);
4491
4454
  },
@@ -4497,51 +4460,51 @@ function Di(e, t, r) {
4497
4460
  );
4498
4461
  });
4499
4462
  };
4500
- wr(() => (setTimeout(() => it(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", rt, !1), () => {
4501
- window.removeEventListener("message", rt);
4463
+ yr(() => (setTimeout(() => rt(), 1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", et, !1), () => {
4464
+ window.removeEventListener("message", et);
4502
4465
  }));
4503
- const it = () => {
4504
- Pi(g), Ne(), we(), o && Be();
4505
- }, lr = () => nt();
4506
- function hr(m) {
4507
- Ge[m ? "unshift" : "push"](() => {
4466
+ const rt = () => {
4467
+ xi(g), we(), Be(), o && Ce();
4468
+ }, nr = () => tt();
4469
+ function ir(m) {
4470
+ Ue[m ? "unshift" : "push"](() => {
4508
4471
  C = m, r(10, C);
4509
4472
  });
4510
4473
  }
4511
4474
  return e.$$set = (m) => {
4512
- "session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, l = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, h = m.thumbnail), "userenrolled" in m && r(5, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, N = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
4475
+ "session" in m && r(21, i = m.session), "userid" in m && r(22, s = m.userid), "title" in m && r(1, a = m.title), "startdate" in m && r(2, o = m.startdate), "status" in m && r(0, h = m.status), "tourid" in m && r(3, u = m.tourid), "thumbnail" in m && r(4, l = m.thumbnail), "userenrolled" in m && r(5, f = m.userenrolled), "scorecriteria" in m && r(23, c = m.scorecriteria), "minbetcount" in m && r(6, E = m.minbetcount), "showenrolled" in m && r(7, d = m.showenrolled), "gameurl" in m && r(8, b = m.gameurl), "lang" in m && r(24, g = m.lang), "keepbrowsercontext" in m && r(9, p = m.keepbrowsercontext), "clientstyling" in m && r(25, T = m.clientstyling), "clientstylingurl" in m && r(26, N = m.clientstylingurl), "translationurl" in m && r(27, H = m.translationurl);
4513
4476
  }, e.$$.update = () => {
4514
4477
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
4515
- 33555456 && C && T && or(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4516
- 67109888 && C && N && ur(), e.$$.dirty[0] & /*translationurl*/
4478
+ 33555456 && C && T && tr(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
4479
+ 67109888 && C && N && rr(), e.$$.dirty[0] & /*translationurl*/
4517
4480
  134217728 && H && R(), e.$$.dirty[0] & /*session*/
4518
- 2097152 && i && ar(), e.$$.dirty[0] & /*status*/
4519
- 1 && l && we(), e.$$.dirty[0] & /*title, lang*/
4520
- 16777218 && a && g && it(), e.$$.dirty[0] & /*startdate*/
4521
- 4 && o && Be(), e.$$.dirty[0] & /*scorecriteria*/
4522
- 8388608 && c && Ne();
4481
+ 2097152 && i && er(), e.$$.dirty[0] & /*status*/
4482
+ 1 && h && Be(), e.$$.dirty[0] & /*title, lang*/
4483
+ 16777218 && a && g && rt(), e.$$.dirty[0] & /*startdate*/
4484
+ 4 && o && Ce(), e.$$.dirty[0] & /*scorecriteria*/
4485
+ 8388608 && c && we();
4523
4486
  }, [
4524
- l,
4487
+ h,
4525
4488
  a,
4526
4489
  o,
4527
4490
  u,
4528
- h,
4491
+ l,
4529
4492
  f,
4530
4493
  E,
4531
4494
  d,
4532
4495
  b,
4533
4496
  p,
4534
4497
  C,
4535
- F,
4498
+ U,
4536
4499
  D,
4500
+ $,
4537
4501
  j,
4538
- V,
4539
4502
  B,
4540
4503
  n,
4504
+ Ce,
4541
4505
  Be,
4542
4506
  we,
4543
- Ne,
4544
- nt,
4507
+ tt,
4545
4508
  i,
4546
4509
  s,
4547
4510
  c,
@@ -4549,18 +4512,18 @@ function Di(e, t, r) {
4549
4512
  T,
4550
4513
  N,
4551
4514
  H,
4552
- lr,
4553
- hr
4515
+ nr,
4516
+ ir
4554
4517
  ];
4555
4518
  }
4556
- class sr extends Gr {
4519
+ class Kt extends Nr {
4557
4520
  constructor(t) {
4558
- super(), Ur(
4521
+ super(), Br(
4559
4522
  this,
4560
4523
  t,
4561
- Di,
4562
- Li,
4563
- Pt,
4524
+ Hi,
4525
+ Ai,
4526
+ Ht,
4564
4527
  {
4565
4528
  session: 21,
4566
4529
  userid: 22,
@@ -4580,7 +4543,7 @@ class sr extends Gr {
4580
4543
  clientstylingurl: 26,
4581
4544
  translationurl: 27
4582
4545
  },
4583
- Ii,
4546
+ vi,
4584
4547
  [-1, -1]
4585
4548
  );
4586
4549
  }
@@ -4687,51 +4650,51 @@ class sr extends Gr {
4687
4650
  this.$$set({ translationurl: t }), w();
4688
4651
  }
4689
4652
  }
4690
- Fr(sr, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4691
- const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4653
+ wr(Kt, { session: {}, userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4654
+ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4692
4655
  __proto__: null,
4693
- default: sr
4656
+ default: Kt
4694
4657
  }, Symbol.toStringTag, { value: "Module" }));
4695
4658
  export {
4696
- se as $,
4697
- Ue as A,
4698
- Tr as B,
4699
- ne as C,
4700
- Gi as D,
4701
- Fe as E,
4702
- zi as F,
4703
- Vi as G,
4704
- je as H,
4705
- ji as I,
4706
- Fi as J,
4707
- Ui as K,
4708
- Xi as L,
4709
- Gr as S,
4710
- Ji as _,
4711
- Ie as a,
4712
- Wi as b,
4713
- Se as c,
4714
- de as d,
4715
- er as e,
4716
- w as f,
4717
- Fr as g,
4718
- xr as h,
4719
- Ur as i,
4659
+ ie as $,
4660
+ De as A,
4661
+ mr as B,
4662
+ re as C,
4663
+ wi as D,
4664
+ ke as E,
4665
+ Ii as F,
4666
+ Pi as G,
4667
+ Ge as H,
4668
+ Oi as I,
4669
+ Bi as J,
4670
+ Ci as K,
4671
+ Li as L,
4672
+ Nr as S,
4673
+ Mi as _,
4674
+ Oe as a,
4675
+ Ri as b,
4676
+ ve as c,
4677
+ me as d,
4678
+ Xt as e,
4679
+ wr as f,
4680
+ w as g,
4681
+ hr as h,
4682
+ Br as i,
4720
4683
  O as j,
4721
- G as k,
4684
+ F as k,
4722
4685
  L as l,
4723
- Er as m,
4724
- U as n,
4725
- wr as o,
4726
- Ge as p,
4727
- J as q,
4728
- $i as r,
4729
- Pt as s,
4686
+ lr as m,
4687
+ k as n,
4688
+ yr as o,
4689
+ Ue as p,
4690
+ z as q,
4691
+ Ni as r,
4692
+ Ht as s,
4730
4693
  y as t,
4731
4694
  S as u,
4732
- me as v,
4733
- ce as w,
4695
+ ce as v,
4696
+ fe as w,
4734
4697
  M as x,
4735
- $ as y,
4736
- Oi as z
4698
+ G as y,
4699
+ Ei as z
4737
4700
  };