@mjsz-vbr-elements/core 2.4.0 → 2.4.1

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,30 +1,29 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.4.0 - 06/06/2024, 12:35:57
3
+ * version: v2.4.1 - 10/08/2024, 13:04:39
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { ref as b, readonly as ut, watch as _, nextTick as lt, getCurrentScope as _t, onScopeDispose as xt, unref as I, isRef as Ct, shallowRef as nt, computed as R, reactive as ft, defineComponent as Pt, h as Rt, provide as dt, inject as pt, onErrorCaptured as Lt } from "vue";
9
- import { _ as M, w as jt, x as Nt, z as Dt, A as Ft, B as kt, C as Bt, D, E as F, F as Ut, u as Vt, G as Wt, H as Mt, I as rt } from "./datetime-Df9jKQTx.js";
10
- import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as H, SORT_STATE_ASCEND as V } from "./constants.js";
11
- var zt = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "", VITE_USER_NODE_ENV: "production", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
12
- const Ae = (t) => (zt.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t;
8
+ import { ref as A, readonly as ut, watch as S, nextTick as lt, getCurrentScope as St, onScopeDispose as Ct, unref as I, isRef as Pt, shallowRef as nt, computed as j, reactive as ft, defineComponent as Rt, h as jt, provide as dt, inject as pt, onErrorCaptured as _t } from "vue";
9
+ import { _ as U, w as Lt, x as Nt, z as Dt, A as Ft, B as kt, C as Bt, D, E as F, F as Wt, u as zt, G as Mt, H as Ut, I as rt } from "./datetime-BzdN4htO.js";
10
+ import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as H, SORT_STATE_ASCEND as z } from "./constants.js";
11
+ const Ae = (t) => "mjsz-vbr-" + t;
13
12
  function mt(t) {
14
- return _t() ? (xt(t), !0) : !1;
13
+ return St() ? (Ct(t), !0) : !1;
15
14
  }
16
15
  function O(t) {
17
16
  return typeof t == "function" ? t() : I(t);
18
17
  }
19
- const $ = typeof window < "u" && typeof document < "u";
18
+ const G = typeof window < "u" && typeof document < "u";
20
19
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
21
- const $t = Object.prototype.toString, Gt = (t) => $t.call(t) === "[object Object]", P = () => {
22
- }, qt = /* @__PURE__ */ Ht();
23
- function Ht() {
20
+ const $t = Object.prototype.toString, Gt = (t) => $t.call(t) === "[object Object]", R = () => {
21
+ }, Vt = /* @__PURE__ */ qt();
22
+ function qt() {
24
23
  var t, e;
25
- return $ && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
24
+ return G && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
26
25
  }
27
- function Kt(t, e) {
26
+ function Ht(t, e) {
28
27
  function r(...n) {
29
28
  return new Promise((i, o) => {
30
29
  Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(i).catch(o);
@@ -32,9 +31,9 @@ function Kt(t, e) {
32
31
  }
33
32
  return r;
34
33
  }
35
- const vt = (t) => t();
36
- function Xt(t = vt) {
37
- const e = b(!0);
34
+ const yt = (t) => t();
35
+ function Kt(t = yt) {
36
+ const e = A(!0);
38
37
  function r() {
39
38
  e.value = !1;
40
39
  }
@@ -46,19 +45,19 @@ function Xt(t = vt) {
46
45
  };
47
46
  return { isActive: ut(e), pause: r, resume: n, eventFilter: i };
48
47
  }
49
- function X(t, e = !1, r = "Timeout") {
48
+ function J(t, e = !1, r = "Timeout") {
50
49
  return new Promise((n, i) => {
51
50
  setTimeout(e ? () => i(r) : n, t);
52
51
  });
53
52
  }
54
- function Yt(t, e, r = {}) {
53
+ function Jt(t, e, r = {}) {
55
54
  const {
56
- eventFilter: n = vt,
55
+ eventFilter: n = yt,
57
56
  ...i
58
57
  } = r;
59
- return _(
58
+ return S(
60
59
  t,
61
- Kt(
60
+ Ht(
62
61
  n,
63
62
  e
64
63
  ),
@@ -69,8 +68,8 @@ function Te(t, e, r = {}) {
69
68
  const {
70
69
  eventFilter: n,
71
70
  ...i
72
- } = r, { eventFilter: o, pause: s, resume: c, isActive: u } = Xt(n);
73
- return { stop: Yt(
71
+ } = r, { eventFilter: o, pause: s, resume: c, isActive: u } = Kt(n);
72
+ return { stop: Jt(
74
73
  t,
75
74
  e,
76
75
  {
@@ -79,14 +78,14 @@ function Te(t, e, r = {}) {
79
78
  }
80
79
  ), pause: s, resume: c, isActive: u };
81
80
  }
82
- function Y(t, e = !1) {
83
- function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: A } = {}) {
81
+ function Q(t, e = !1) {
82
+ function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: T } = {}) {
84
83
  let w = null;
85
- const E = [new Promise((T) => {
86
- w = _(
84
+ const b = [new Promise((E) => {
85
+ w = S(
87
86
  t,
88
- (v) => {
89
- l(v) !== e && (w == null || w(), T(v));
87
+ (y) => {
88
+ l(y) !== e && (w == null || w(), E(y));
90
89
  },
91
90
  {
92
91
  flush: a,
@@ -95,20 +94,20 @@ function Y(t, e = !1) {
95
94
  }
96
95
  );
97
96
  })];
98
- return d != null && E.push(
99
- X(d, A).then(() => O(t)).finally(() => w == null ? void 0 : w())
100
- ), Promise.race(E);
97
+ return d != null && b.push(
98
+ J(d, T).then(() => O(t)).finally(() => w == null ? void 0 : w())
99
+ ), Promise.race(b);
101
100
  }
102
101
  function n(l, a) {
103
- if (!Ct(l))
104
- return r((v) => v === l, a);
105
- const { flush: f = "sync", deep: d = !1, timeout: A, throwOnTimeout: w } = a ?? {};
106
- let y = null;
107
- const T = [new Promise((v) => {
108
- y = _(
102
+ if (!Pt(l))
103
+ return r((y) => y === l, a);
104
+ const { flush: f = "sync", deep: d = !1, timeout: T, throwOnTimeout: w } = a ?? {};
105
+ let v = null;
106
+ const E = [new Promise((y) => {
107
+ v = S(
109
108
  [t, l],
110
- ([L, k]) => {
111
- e !== (L === k) && (y == null || y(), v(L));
109
+ ([_, k]) => {
110
+ e !== (_ === k) && (v == null || v(), y(_));
112
111
  },
113
112
  {
114
113
  flush: f,
@@ -117,9 +116,9 @@ function Y(t, e = !1) {
117
116
  }
118
117
  );
119
118
  })];
120
- return A != null && T.push(
121
- X(A, w).then(() => O(t)).finally(() => (y == null || y(), O(t)))
122
- ), Promise.race(T);
119
+ return T != null && E.push(
120
+ J(T, w).then(() => O(t)).finally(() => (v == null || v(), O(t)))
121
+ ), Promise.race(E);
123
122
  }
124
123
  function i(l) {
125
124
  return r((a) => !!a, l);
@@ -152,7 +151,7 @@ function Y(t, e = !1) {
152
151
  changed: p,
153
152
  changedTimes: m,
154
153
  get not() {
155
- return Y(t, !e);
154
+ return Q(t, !e);
156
155
  }
157
156
  } : {
158
157
  toMatch: r,
@@ -164,17 +163,17 @@ function Y(t, e = !1) {
164
163
  changed: p,
165
164
  changedTimes: m,
166
165
  get not() {
167
- return Y(t, !e);
166
+ return Q(t, !e);
168
167
  }
169
168
  };
170
169
  }
171
- function Jt(t) {
172
- return Y(t);
170
+ function Qt(t) {
171
+ return Q(t);
173
172
  }
174
- function Qt(t, e, r = {}) {
173
+ function Xt(t, e, r = {}) {
175
174
  const {
176
175
  immediate: n = !0
177
- } = r, i = b(!1);
176
+ } = r, i = A(!1);
178
177
  let o = null;
179
178
  function s() {
180
179
  o && (clearTimeout(o), o = null);
@@ -187,18 +186,18 @@ function Qt(t, e, r = {}) {
187
186
  i.value = !1, o = null, t(...p);
188
187
  }, O(e));
189
188
  }
190
- return n && (i.value = !0, $ && u()), mt(c), {
189
+ return n && (i.value = !0, G && u()), mt(c), {
191
190
  isPending: ut(i),
192
191
  start: u,
193
192
  stop: c
194
193
  };
195
194
  }
196
- function Zt(t, e, r) {
197
- const n = _(t, (...i) => (lt(() => n()), e(...i)), r);
195
+ function Yt(t, e, r) {
196
+ const n = S(t, (...i) => (lt(() => n()), e(...i)), r);
198
197
  return n;
199
198
  }
200
- function Ie(t, e, r) {
201
- const n = _(
199
+ function Ee(t, e, r) {
200
+ const n = S(
202
201
  t,
203
202
  (i, o, s) => {
204
203
  i && (r != null && r.once && lt(() => n()), e(i, o, s));
@@ -215,15 +214,15 @@ function N(t) {
215
214
  const r = O(t);
216
215
  return (e = r == null ? void 0 : r.$el) != null ? e : r;
217
216
  }
218
- const yt = $ ? window : void 0, te = $ ? window.document : void 0;
219
- function W(...t) {
217
+ const vt = G ? window : void 0, Zt = G ? window.document : void 0;
218
+ function M(...t) {
220
219
  let e, r, n, i;
221
- if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = yt) : [e, r, n, i] = t, !e)
222
- return P;
220
+ if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = vt) : [e, r, n, i] = t, !e)
221
+ return R;
223
222
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
224
223
  const o = [], s = () => {
225
224
  o.forEach((m) => m()), o.length = 0;
226
- }, c = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = _(
225
+ }, c = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = S(
227
226
  () => [N(e), O(i)],
228
227
  ([m, l]) => {
229
228
  if (s(), !m)
@@ -240,11 +239,11 @@ function W(...t) {
240
239
  return mt(p), p;
241
240
  }
242
241
  let ot = !1;
243
- function Oe(t, e, r = {}) {
244
- const { window: n = yt, ignore: i = [], capture: o = !0, detectIframe: s = !1 } = r;
242
+ function Ie(t, e, r = {}) {
243
+ const { window: n = vt, ignore: i = [], capture: o = !0, detectIframe: s = !1 } = r;
245
244
  if (!n)
246
- return P;
247
- qt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", P)), n.document.documentElement.addEventListener("click", P));
245
+ return R;
246
+ Vt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
248
247
  let c = !0;
249
248
  const u = (a) => i.some((f) => {
250
249
  if (typeof f == "string")
@@ -254,7 +253,7 @@ function Oe(t, e, r = {}) {
254
253
  return d && (a.target === d || a.composedPath().includes(d));
255
254
  }
256
255
  }), m = [
257
- W(n, "click", (a) => {
256
+ M(n, "click", (a) => {
258
257
  const f = N(t);
259
258
  if (!(!f || f === a.target || a.composedPath().includes(f))) {
260
259
  if (a.detail === 0 && (c = !u(a)), !c) {
@@ -264,11 +263,11 @@ function Oe(t, e, r = {}) {
264
263
  e(a);
265
264
  }
266
265
  }, { passive: !0, capture: o }),
267
- W(n, "pointerdown", (a) => {
266
+ M(n, "pointerdown", (a) => {
268
267
  const f = N(t);
269
268
  c = !u(a) && !!(f && !a.composedPath().includes(f));
270
269
  }, { passive: !0 }),
271
- s && W(n, "blur", (a) => {
270
+ s && M(n, "blur", (a) => {
272
271
  setTimeout(() => {
273
272
  var f;
274
273
  const d = N(t);
@@ -278,32 +277,32 @@ function Oe(t, e, r = {}) {
278
277
  ].filter(Boolean);
279
278
  return () => m.forEach((a) => a());
280
279
  }
281
- function ee(t, e, r) {
280
+ function te(t, e, r) {
282
281
  const {
283
282
  immediate: n = !0,
284
283
  delay: i = 0,
285
- onError: o = P,
286
- onSuccess: s = P,
284
+ onError: o = R,
285
+ onSuccess: s = R,
287
286
  resetOnExecute: c = !0,
288
287
  shallow: u = !0,
289
288
  throwError: p
290
- } = r ?? {}, m = u ? nt(e) : b(e), l = b(!1), a = b(!1), f = nt(void 0);
291
- async function d(y = 0, ...E) {
292
- c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, y > 0 && await X(y);
293
- const T = typeof t == "function" ? t(...E) : t;
289
+ } = r ?? {}, m = u ? nt(e) : A(e), l = A(!1), a = A(!1), f = nt(void 0);
290
+ async function d(v = 0, ...b) {
291
+ c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, v > 0 && await J(v);
292
+ const E = typeof t == "function" ? t(...b) : t;
294
293
  try {
295
- const v = await T;
296
- m.value = v, l.value = !0, s(v);
297
- } catch (v) {
298
- if (f.value = v, o(v), p)
299
- throw v;
294
+ const y = await E;
295
+ m.value = y, l.value = !0, s(y);
296
+ } catch (y) {
297
+ if (f.value = y, o(y), p)
298
+ throw y;
300
299
  } finally {
301
300
  a.value = !1;
302
301
  }
303
302
  return m.value;
304
303
  }
305
304
  n && d(i);
306
- const A = {
305
+ const T = {
307
306
  state: m,
308
307
  isReady: l,
309
308
  isLoading: a,
@@ -311,146 +310,145 @@ function ee(t, e, r) {
311
310
  execute: d
312
311
  };
313
312
  function w() {
314
- return new Promise((y, E) => {
315
- Jt(a).toBe(!1).then(() => y(A)).catch(E);
313
+ return new Promise((v, b) => {
314
+ Qt(a).toBe(!1).then(() => v(T)).catch(b);
316
315
  });
317
316
  }
318
317
  return {
319
- ...A,
320
- then(y, E) {
321
- return w().then(y, E);
318
+ ...T,
319
+ then(v, b) {
320
+ return w().then(v, b);
322
321
  }
323
322
  };
324
323
  }
325
- function Se(t = {}) {
326
- const { document: e = te } = t;
324
+ function Oe(t = {}) {
325
+ const { document: e = Zt } = t;
327
326
  if (!e)
328
- return b("visible");
329
- const r = b(e.visibilityState);
330
- return W(e, "visibilitychange", () => {
327
+ return A("visible");
328
+ const r = A(e.visibilityState);
329
+ return M(e, "visibilitychange", () => {
331
330
  r.value = e.visibilityState;
332
331
  }), r;
333
332
  }
334
- async function ne(t) {
333
+ async function ee(t) {
335
334
  return new Promise((e, r) => {
336
335
  const n = new Image(), { src: i, srcset: o, sizes: s, class: c, loading: u, crossorigin: p, referrerPolicy: m } = t;
337
336
  n.src = i, o && (n.srcset = o), s && (n.sizes = s), c && (n.className = c), u && (n.loading = u), p && (n.crossOrigin = p), m && (n.referrerPolicy = m), n.onload = () => e(n), n.onerror = r;
338
337
  });
339
338
  }
340
- function _e(t, e = {}) {
341
- const r = ee(
342
- () => ne(O(t)),
339
+ function xe(t, e = {}) {
340
+ const r = te(
341
+ () => ee(O(t)),
343
342
  void 0,
344
343
  {
345
344
  resetOnExecute: !0,
346
345
  ...e
347
346
  }
348
347
  );
349
- return _(
348
+ return S(
350
349
  () => O(t),
351
350
  () => r.execute(e.delay),
352
351
  { deep: !0 }
353
352
  ), r;
354
353
  }
355
- function xe(t = [], e = {}) {
356
- const { delay: r = 0 } = e, n = b(!1), i = R(() => {
354
+ function Se(t = [], e = {}) {
355
+ const { delay: r = 0 } = e, n = A(!1), i = j(() => {
357
356
  const c = I(t);
358
357
  return Array.isArray(c) ? c.map((u) => I(u)).some(Boolean) : c;
359
- }), { start: o, stop: s } = Qt(() => {
358
+ }), { start: o, stop: s } = Xt(() => {
360
359
  n.value = !0;
361
360
  }, r);
362
- return _(
361
+ return S(
363
362
  i,
364
363
  (c) => {
365
- if (c)
366
- return o();
364
+ if (c) return o();
367
365
  s(), n.value = !1;
368
366
  },
369
367
  { immediate: !0, deep: !0 }
370
368
  ), n;
371
369
  }
372
- function re(t) {
370
+ function ne(t) {
373
371
  var e = Object.prototype.toString.call(t);
374
372
  return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
375
373
  }
376
- var oe = /* @__PURE__ */ M(function(e) {
377
- return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : jt(e) ? [] : Nt(e) ? "" : Dt(e) ? {} : Ft(e) ? /* @__PURE__ */ function() {
374
+ var re = /* @__PURE__ */ U(function(e) {
375
+ return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : Lt(e) ? [] : Nt(e) ? "" : Dt(e) ? {} : Ft(e) ? /* @__PURE__ */ function() {
378
376
  return arguments;
379
- }() : re(e) ? e.constructor.from("") : void 0;
380
- }), ie = /* @__PURE__ */ M(function(e) {
381
- return e != null && kt(e, oe(e));
382
- }), ae = /* @__PURE__ */ Bt(function(e, r) {
377
+ }() : ne(e) ? e.constructor.from("") : void 0;
378
+ }), oe = /* @__PURE__ */ U(function(e) {
379
+ return e != null && kt(e, re(e));
380
+ }), ie = /* @__PURE__ */ Bt(function(e, r) {
383
381
  for (var n = {}, i = {}, o = 0, s = e.length; o < s; )
384
382
  i[e[o]] = 1, o += 1;
385
383
  for (var c in r)
386
384
  i.hasOwnProperty(c) || (n[c] = r[c]);
387
385
  return n;
388
- }), j = `
389
- \v\f\r                 \u2028\u2029\uFEFF`, se = "​", ce = typeof String.prototype.trim == "function", z = !ce || /* @__PURE__ */ j.trim() || !/* @__PURE__ */ se.trim() ? /* @__PURE__ */ M(function(e) {
390
- var r = new RegExp("^[" + j + "][" + j + "]*"), n = new RegExp("[" + j + "][" + j + "]*$");
386
+ }), L = `
387
+ \v\f\r                 \u2028\u2029\uFEFF`, ae = "​", se = typeof String.prototype.trim == "function", $ = !se || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ ae.trim() ? /* @__PURE__ */ U(function(e) {
388
+ var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
391
389
  return e.replace(r, "").replace(n, "");
392
- }) : /* @__PURE__ */ M(function(e) {
390
+ }) : /* @__PURE__ */ U(function(e) {
393
391
  return e.trim();
394
392
  });
395
- const ht = Symbol("I18nContext"), g = ft({
393
+ const gt = Symbol("I18nContext"), h = ft({
396
394
  messages: {},
397
395
  locale: "",
398
396
  fallbackLocale: ""
399
397
  }), Ce = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
400
- g.messages = t, g.locale = e, g.fallbackLocale = r;
398
+ h.messages = t, h.locale = e, h.fallbackLocale = r;
401
399
  const n = (u, p = {}) => {
402
- const m = !ie(p), l = D(z, F(".", u));
403
- return R(() => {
404
- const f = gt(l);
405
- return m ? fe(f, p) : f;
400
+ const m = !oe(p), l = D($, F(".", u));
401
+ return j(() => {
402
+ const f = ht(l);
403
+ return m ? le(f, p) : f;
406
404
  }).value;
407
405
  }, i = (u) => {
408
- const p = D(z, F(".", u));
409
- return !!J(g.locale, p, g.messages);
406
+ const p = D($, F(".", u));
407
+ return !!X(h.locale, p, h.messages);
410
408
  }, o = (u) => {
411
- g.locale = u;
409
+ h.locale = u;
412
410
  }, c = {
413
- locale: R({
411
+ locale: j({
414
412
  get() {
415
- return g.locale;
413
+ return h.locale;
416
414
  },
417
415
  set(u) {
418
- g.locale = u;
416
+ h.locale = u;
419
417
  }
420
418
  }),
421
419
  setLocale: o,
422
420
  translate: n,
423
421
  hasTranslation: i
424
422
  };
425
- return dt(ht, c), {
423
+ return dt(gt, c), {
426
424
  translate: n
427
425
  };
428
- }, ue = (t) => {
429
- t && (g.messages = t.messages, g.locale = t.locale, g.fallbackLocale = t.fallbackLocale);
430
- const e = le();
426
+ }, ce = (t) => {
427
+ t && (h.messages = t.messages, h.locale = t.locale, h.fallbackLocale = t.fallbackLocale);
428
+ const e = ue();
431
429
  return {
432
430
  locale: e.locale,
433
431
  t: e.translate,
434
432
  setLocale: e.setLocale,
435
433
  hasTranslation: e.hasTranslation
436
434
  };
437
- }, le = () => {
438
- const t = pt(ht, null);
435
+ }, ue = () => {
436
+ const t = pt(gt, null);
439
437
  if (t === null)
440
438
  throw new Error("Privider is missing a parent component.");
441
439
  return t;
442
- }, gt = (t = []) => {
443
- let e = J(g.locale, t, g.messages);
444
- return !e && g.fallbackLocale && (e = J(g.fallbackLocale, t, g.messages)), e || t.join(".");
440
+ }, ht = (t = []) => {
441
+ let e = X(h.locale, t, h.messages);
442
+ return !e && h.fallbackLocale && (e = X(h.fallbackLocale, t, h.messages)), e || t.join(".");
445
443
  };
446
- function J(t, e, r) {
447
- return Ut([t, ...e], r);
444
+ function X(t, e, r) {
445
+ return Wt([t, ...e], r);
448
446
  }
449
- const fe = function(t, e) {
447
+ const le = function(t, e) {
450
448
  return t.replace(/\{(\w+)\}/g, function(r, n) {
451
449
  return e[n];
452
450
  });
453
- }, Pe = Pt({
451
+ }, Pe = Rt({
454
452
  props: {
455
453
  tag: {
456
454
  type: String,
@@ -462,17 +460,17 @@ const fe = function(t, e) {
462
460
  }
463
461
  },
464
462
  setup(t, { slots: e }) {
465
- const r = D(z, F(".", t.path)), n = gt(r), i = F(/{|}/, n), o = Object.keys(e).map((s) => {
463
+ const r = D($, F(".", t.path)), n = ht(r), i = F(/{|}/, n), o = Object.keys(e).map((s) => {
466
464
  const c = i.indexOf(s);
467
465
  return c > -1 && (i[c] = e[s]()[0]), i;
468
466
  });
469
- return () => Rt(t.tag, o);
467
+ return () => jt(t.tag, o);
470
468
  }
471
469
  }), wt = Symbol("ErrorProviderContext"), Re = () => {
472
- const t = b(""), e = b({}), r = (o) => {
470
+ const t = A(""), e = A({}), r = (o) => {
473
471
  console.error({ error: o }), t.value = o.message || o.error.message, e.value = {
474
472
  message: o.message,
475
- key: o.key || Vt(o.message),
473
+ key: o.key || zt(o.message),
476
474
  cause: o.cause
477
475
  };
478
476
  };
@@ -483,31 +481,31 @@ const fe = function(t, e) {
483
481
  }
484
482
  }), window.onerror = (o) => {
485
483
  console.error("WINDOW_ONERROR:", o);
486
- }, Lt((o, s, c) => {
484
+ }, _t((o, s, c) => {
487
485
  console.error("onErrorCaptured:", o, s, c);
488
486
  }), {
489
- hasError: R(() => t.value.length > 0),
487
+ hasError: j(() => t.value.length > 0),
490
488
  message: t,
491
489
  error: e,
492
490
  onError: r
493
491
  };
494
- }, Le = () => {
495
- const t = de();
492
+ }, je = () => {
493
+ const t = fe();
496
494
  return {
497
495
  onError: t.onError,
498
496
  reset: t.reset
499
497
  };
500
- }, de = () => {
498
+ }, fe = () => {
501
499
  const t = pt(wt, null);
502
500
  if (t === null)
503
501
  throw new Error("Privider is missing a parent component.");
504
502
  return t;
505
- }, je = (t, e = "", r = {}) => {
506
- const n = b(""), { t: i } = ue(), o = R(() => {
503
+ }, _e = (t, e = "", r = {}) => {
504
+ const n = A(""), { t: i } = ce(), o = j(() => {
507
505
  if (I(e))
508
506
  try {
509
- const u = pe(I(t), I(e));
510
- return ae(u, I(t));
507
+ const u = de(I(t), I(e));
508
+ return ie(u, I(t));
511
509
  } catch (u) {
512
510
  n.value = u;
513
511
  }
@@ -518,13 +516,12 @@ const fe = function(t, e) {
518
516
  ...u.tooltip && { tooltip: i(u.tooltip ?? "") }
519
517
  });
520
518
  return {
521
- columns: R(() => D(s, o.value)),
519
+ columns: j(() => D(s, o.value)),
522
520
  error: n
523
521
  };
524
- }, pe = (t, e = "") => {
525
- const r = D(z, F(",", e)), n = Wt(t);
526
- if (r[0] === "")
527
- return resolve([]);
522
+ }, de = (t, e = "") => {
523
+ const r = D($, F(",", e)), n = Mt(t);
524
+ if (r[0] === "") return resolve([]);
528
525
  const i = r.findIndex((o) => !n.includes(o));
529
526
  if (i > -1)
530
527
  throw r[i];
@@ -546,20 +543,17 @@ PERFORMANCE OF THIS SOFTWARE.
546
543
  ***************************************************************************** */
547
544
  function K(t, e) {
548
545
  var r = typeof Symbol == "function" && t[Symbol.iterator];
549
- if (!r)
550
- return t;
546
+ if (!r) return t;
551
547
  var n, i, o = r.call(t), s = [];
552
548
  try {
553
- for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; )
554
- s.push(n.value);
549
+ for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; ) s.push(n.value);
555
550
  } catch (c) {
556
551
  i = { error: c };
557
552
  } finally {
558
553
  try {
559
554
  n && !n.done && (r = o.return) && r.call(o);
560
555
  } finally {
561
- if (i)
562
- throw i.error;
556
+ if (i) throw i.error;
563
557
  }
564
558
  }
565
559
  return s;
@@ -568,23 +562,23 @@ var it;
568
562
  (function(t) {
569
563
  t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
570
564
  })(it || (it = {}));
571
- var me = { type: "xstate.init" };
572
- function U(t) {
565
+ var pe = { type: "xstate.init" };
566
+ function W(t) {
573
567
  return t === void 0 ? [] : [].concat(t);
574
568
  }
575
569
  function at(t, e) {
576
570
  return typeof (t = typeof t == "string" && e && e[t] ? e[t] : t) == "string" ? { type: t } : typeof t == "function" ? { type: t.name, exec: t } : t;
577
571
  }
578
- function Q(t) {
572
+ function Y(t) {
579
573
  return function(e) {
580
574
  return t === e;
581
575
  };
582
576
  }
583
- function ve(t) {
577
+ function me(t) {
584
578
  return typeof t == "string" ? { type: t } : t;
585
579
  }
586
580
  function st(t, e) {
587
- return { value: t, context: e, actions: [], changed: !1, matches: Q(t) };
581
+ return { value: t, context: e, actions: [], changed: !1, matches: Y(t) };
588
582
  }
589
583
  function ct(t, e, r) {
590
584
  var n = e, i = !1;
@@ -601,52 +595,46 @@ function ct(t, e, r) {
601
595
  }
602
596
  function ye(t, e) {
603
597
  e === void 0 && (e = {});
604
- var r = K(ct(U(t.states[t.initial].entry).map(function(s) {
598
+ var r = K(ct(W(t.states[t.initial].entry).map(function(s) {
605
599
  return at(s, e.actions);
606
- }), t.context, me), 2), n = r[0], i = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: i, matches: Q(t.initial) }, transition: function(s, c) {
607
- var u, p, m = typeof s == "string" ? { value: s, context: t.context } : s, l = m.value, a = m.context, f = ve(c), d = t.states[l];
600
+ }), t.context, pe), 2), n = r[0], i = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: i, matches: Y(t.initial) }, transition: function(s, c) {
601
+ var u, p, m = typeof s == "string" ? { value: s, context: t.context } : s, l = m.value, a = m.context, f = me(c), d = t.states[l];
608
602
  if (d.on) {
609
- var A = U(d.on[f.type]);
610
- "*" in d.on && A.push.apply(A, function(h, S, q) {
611
- if (arguments.length === 2)
612
- for (var x, C = 0, St = S.length; C < St; C++)
613
- !x && C in S || (x || (x = Array.prototype.slice.call(S, 0, C)), x[C] = S[C]);
614
- return h.concat(x || Array.prototype.slice.call(S));
615
- }([], K(U(d.on["*"])), !1));
603
+ var T = W(d.on[f.type]);
604
+ "*" in d.on && T.push.apply(T, function(g, x, q) {
605
+ if (arguments.length === 2) for (var C, P = 0, xt = x.length; P < xt; P++) !C && P in x || (C || (C = Array.prototype.slice.call(x, 0, P)), C[P] = x[P]);
606
+ return g.concat(C || Array.prototype.slice.call(x));
607
+ }([], K(W(d.on["*"])), !1));
616
608
  try {
617
- for (var w = function(h) {
618
- var S = typeof Symbol == "function" && Symbol.iterator, q = S && h[S], x = 0;
619
- if (q)
620
- return q.call(h);
621
- if (h && typeof h.length == "number")
622
- return { next: function() {
623
- return h && x >= h.length && (h = void 0), { value: h && h[x++], done: !h };
624
- } };
625
- throw new TypeError(S ? "Object is not iterable." : "Symbol.iterator is not defined.");
626
- }(A), y = w.next(); !y.done; y = w.next()) {
627
- var E = y.value;
628
- if (E === void 0)
629
- return st(l, a);
630
- var T = typeof E == "string" ? { target: E } : E, v = T.target, L = T.actions, k = L === void 0 ? [] : L, Z = T.cond, Et = Z === void 0 ? function() {
609
+ for (var w = function(g) {
610
+ var x = typeof Symbol == "function" && Symbol.iterator, q = x && g[x], C = 0;
611
+ if (q) return q.call(g);
612
+ if (g && typeof g.length == "number") return { next: function() {
613
+ return g && C >= g.length && (g = void 0), { value: g && g[C++], done: !g };
614
+ } };
615
+ throw new TypeError(x ? "Object is not iterable." : "Symbol.iterator is not defined.");
616
+ }(T), v = w.next(); !v.done; v = w.next()) {
617
+ var b = v.value;
618
+ if (b === void 0) return st(l, a);
619
+ var E = typeof b == "string" ? { target: b } : b, y = E.target, _ = E.actions, k = _ === void 0 ? [] : _, Z = E.cond, bt = Z === void 0 ? function() {
631
620
  return !0;
632
- } : Z, bt = v === void 0, At = v ?? l, Tt = t.states[At];
633
- if (Et(a, f)) {
634
- var G = K(ct((bt ? U(k) : [].concat(d.exit, k, Tt.entry).filter(function(h) {
635
- return h;
636
- })).map(function(h) {
637
- return at(h, o._options.actions);
638
- }), a, f), 3), tt = G[0], It = G[1], Ot = G[2], et = v ?? l;
639
- return { value: et, context: It, actions: tt, changed: v !== l || tt.length > 0 || Ot, matches: Q(et) };
621
+ } : Z, At = y === void 0, Tt = y ?? l, Et = t.states[Tt];
622
+ if (bt(a, f)) {
623
+ var V = K(ct((At ? W(k) : [].concat(d.exit, k, Et.entry).filter(function(g) {
624
+ return g;
625
+ })).map(function(g) {
626
+ return at(g, o._options.actions);
627
+ }), a, f), 3), tt = V[0], It = V[1], Ot = V[2], et = y ?? l;
628
+ return { value: et, context: It, actions: tt, changed: y !== l || tt.length > 0 || Ot, matches: Y(et) };
640
629
  }
641
630
  }
642
- } catch (h) {
643
- u = { error: h };
631
+ } catch (g) {
632
+ u = { error: g };
644
633
  } finally {
645
634
  try {
646
- y && !y.done && (p = w.return) && p.call(w);
635
+ v && !v.done && (p = w.return) && p.call(w);
647
636
  } finally {
648
- if (u)
649
- throw u.error;
637
+ if (u) throw u.error;
650
638
  }
651
639
  }
652
640
  }
@@ -654,23 +642,23 @@ function ye(t, e) {
654
642
  } };
655
643
  return o;
656
644
  }
657
- const he = ye({
645
+ const ve = ye({
658
646
  id: "sort",
659
647
  initial: B,
660
648
  states: {
661
649
  [B]: {
662
650
  on: {
663
651
  DIRECTION1: H,
664
- DIRECTION2: V
652
+ DIRECTION2: z
665
653
  }
666
654
  },
667
655
  [H]: {
668
656
  on: {
669
- DIRECTION1: V,
657
+ DIRECTION1: z,
670
658
  DIRECTION2: B
671
659
  }
672
660
  },
673
- [V]: {
661
+ [z]: {
674
662
  on: {
675
663
  DIRECTION1: B,
676
664
  DIRECTION2: H
@@ -678,10 +666,10 @@ const he = ye({
678
666
  }
679
667
  }
680
668
  }), ge = (t, e) => {
681
- const r = e === V ? "DIRECTION2" : "DIRECTION1";
682
- return he.transition(t, r).value;
669
+ const r = e === z ? "DIRECTION2" : "DIRECTION1";
670
+ return ve.transition(t, r).value;
683
671
  };
684
- function Ne(t = {}) {
672
+ function Le(t = {}) {
685
673
  const { sortTarget: e = null, orders: r = [] } = t, n = ft({ sortTarget: e, orders: r });
686
674
  return {
687
675
  sort: n,
@@ -698,11 +686,10 @@ function Ne(t = {}) {
698
686
  }
699
687
  };
700
688
  }
701
- function De(t, e, r, n) {
702
- const i = b(""), o = b(!1), s = (c) => {
703
- const u = Mt(rt(e), c), p = u.length > 0;
704
- if (o.value = p, !p)
705
- return i.value = "";
689
+ function Ne(t, e, r, n) {
690
+ const i = A(""), o = A(!1), s = (c) => {
691
+ const u = Ut(rt(e), c), p = u.length > 0;
692
+ if (o.value = p, !p) return i.value = "";
706
693
  const l = u.map((a) => ({
707
694
  team: a.team.longName,
708
695
  points: Math.abs(rt(e, a))
@@ -713,30 +700,30 @@ function De(t, e, r, n) {
713
700
  ...r(`additionalText.${e}.appendix`) && [r(`additionalText.${e}.appendix`)]
714
701
  ].join(" ");
715
702
  };
716
- return Zt(t, s), _(n, () => s(I(t))), {
703
+ return Yt(t, s), S(n, () => s(I(t))), {
717
704
  text: i,
718
705
  isVisible: o
719
706
  };
720
707
  }
721
708
  export {
722
709
  Re as a,
723
- Le as b,
710
+ je as b,
724
711
  Ce as c,
725
- ue as d,
726
- xe as e,
712
+ ce as d,
713
+ Se as e,
727
714
  Ae as f,
728
- Ne as g,
729
- De as h,
715
+ Le as g,
716
+ Ne as h,
730
717
  Pe as i,
731
- _e as j,
732
- Zt as k,
733
- ee as l,
734
- Se as m,
735
- P as n,
736
- Oe as o,
718
+ xe as j,
719
+ Yt as k,
720
+ te as l,
721
+ Oe as m,
722
+ R as n,
723
+ Ie as o,
737
724
  Te as p,
738
725
  N as q,
739
- je as u,
740
- pe as v,
741
- Ie as w
726
+ _e as u,
727
+ de as v,
728
+ Ee as w
742
729
  };