@mjsz-vbr-elements/core 2.2.7 → 2.3.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.
- package/dist/AdditionalStandingsText-B3vGuQ_r.js +3026 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +17 -23
- package/dist/composables.js +4 -4
- package/dist/constants.js +1 -1
- package/dist/{convert-E2kZRWM3.js → convert-W8NizgmI.js} +87 -89
- package/dist/datetime-BD_lSSC2.js +1230 -0
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +5 -5
- package/dist/useAdditionalText-Ta-GUW7T.js +738 -0
- package/dist/utils.js +4 -4
- package/package.json +11 -11
- package/dist/AdditionalStandingsText-KDfNU6wm.js +0 -2539
- package/dist/datetime--bMmvxSM.js +0 -1143
- package/dist/useAdditionalText-EldMke4U.js +0 -763
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.7 - 25/02/2024, 10:36:15
|
|
4
|
-
* (c) 2024
|
|
5
|
-
* description: Data visualization for MJSZ VBR
|
|
6
|
-
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
|
-
*/
|
|
8
|
-
import { ref as w, readonly as me, watch as T, nextTick as Ce, getCurrentScope as Ne, onScopeDispose as De, unref as E, isRef as Le, shallowRef as te, computed as A, reactive as ye, defineComponent as Fe, h as Be, provide as ge, inject as he, onErrorCaptured as Ve } from "vue";
|
|
9
|
-
import { _ as F, j as Ue, k as ke, l as Me, m as We, n as ze, p as qe, q as j, s as R, r as Ke, t as Ge, u as He, v as Xe, w as re } from "./datetime--bMmvxSM.js";
|
|
10
|
-
import { SORT_STATE_ORIGINAL as N, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as D } from "./constants.js";
|
|
11
|
-
var Ye = { 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 Ht = (e) => (Ye.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
|
|
13
|
-
function _e(e) {
|
|
14
|
-
return Ne() ? (De(e), !0) : !1;
|
|
15
|
-
}
|
|
16
|
-
function P(e) {
|
|
17
|
-
return typeof e == "function" ? e() : E(e);
|
|
18
|
-
}
|
|
19
|
-
const k = typeof window < "u", B = () => {
|
|
20
|
-
}, Je = /* @__PURE__ */ Qe();
|
|
21
|
-
function Qe() {
|
|
22
|
-
var e;
|
|
23
|
-
return k && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
24
|
-
}
|
|
25
|
-
function Ze(e, t) {
|
|
26
|
-
function r(...n) {
|
|
27
|
-
return new Promise((a, o) => {
|
|
28
|
-
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(a).catch(o);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
const Oe = (e) => e();
|
|
34
|
-
function et(e = Oe) {
|
|
35
|
-
const t = w(!0);
|
|
36
|
-
function r() {
|
|
37
|
-
t.value = !1;
|
|
38
|
-
}
|
|
39
|
-
function n() {
|
|
40
|
-
t.value = !0;
|
|
41
|
-
}
|
|
42
|
-
const a = (...o) => {
|
|
43
|
-
t.value && e(...o);
|
|
44
|
-
};
|
|
45
|
-
return { isActive: me(t), pause: r, resume: n, eventFilter: a };
|
|
46
|
-
}
|
|
47
|
-
function K(e, t = !1, r = "Timeout") {
|
|
48
|
-
return new Promise((n, a) => {
|
|
49
|
-
setTimeout(t ? () => a(r) : n, e);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function G(e, t = !1) {
|
|
53
|
-
function r(l, { flush: i = "sync", deep: f = !1, timeout: v, throwOnTimeout: I } = {}) {
|
|
54
|
-
let _ = null;
|
|
55
|
-
const O = [new Promise((b) => {
|
|
56
|
-
_ = T(
|
|
57
|
-
e,
|
|
58
|
-
(m) => {
|
|
59
|
-
l(m) !== t && (_ == null || _(), b(m));
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
flush: i,
|
|
63
|
-
deep: f,
|
|
64
|
-
immediate: !0
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
})];
|
|
68
|
-
return v != null && O.push(
|
|
69
|
-
K(v, I).then(() => P(e)).finally(() => _ == null ? void 0 : _())
|
|
70
|
-
), Promise.race(O);
|
|
71
|
-
}
|
|
72
|
-
function n(l, i) {
|
|
73
|
-
if (!Le(l))
|
|
74
|
-
return r((m) => m === l, i);
|
|
75
|
-
const { flush: f = "sync", deep: v = !1, timeout: I, throwOnTimeout: _ } = i ?? {};
|
|
76
|
-
let y = null;
|
|
77
|
-
const b = [new Promise((m) => {
|
|
78
|
-
y = T(
|
|
79
|
-
[e, l],
|
|
80
|
-
([S, C]) => {
|
|
81
|
-
t !== (S === C) && (y == null || y(), m(S));
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
flush: f,
|
|
85
|
-
deep: v,
|
|
86
|
-
immediate: !0
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
})];
|
|
90
|
-
return I != null && b.push(
|
|
91
|
-
K(I, _).then(() => P(e)).finally(() => (y == null || y(), P(e)))
|
|
92
|
-
), Promise.race(b);
|
|
93
|
-
}
|
|
94
|
-
function a(l) {
|
|
95
|
-
return r((i) => !!i, l);
|
|
96
|
-
}
|
|
97
|
-
function o(l) {
|
|
98
|
-
return n(null, l);
|
|
99
|
-
}
|
|
100
|
-
function c(l) {
|
|
101
|
-
return n(void 0, l);
|
|
102
|
-
}
|
|
103
|
-
function s(l) {
|
|
104
|
-
return r(Number.isNaN, l);
|
|
105
|
-
}
|
|
106
|
-
function u(l, i) {
|
|
107
|
-
return r((f) => {
|
|
108
|
-
const v = Array.from(f);
|
|
109
|
-
return v.includes(l) || v.includes(P(l));
|
|
110
|
-
}, i);
|
|
111
|
-
}
|
|
112
|
-
function p(l) {
|
|
113
|
-
return d(1, l);
|
|
114
|
-
}
|
|
115
|
-
function d(l = 1, i) {
|
|
116
|
-
let f = -1;
|
|
117
|
-
return r(() => (f += 1, f >= l), i);
|
|
118
|
-
}
|
|
119
|
-
return Array.isArray(P(e)) ? {
|
|
120
|
-
toMatch: r,
|
|
121
|
-
toContains: u,
|
|
122
|
-
changed: p,
|
|
123
|
-
changedTimes: d,
|
|
124
|
-
get not() {
|
|
125
|
-
return G(e, !t);
|
|
126
|
-
}
|
|
127
|
-
} : {
|
|
128
|
-
toMatch: r,
|
|
129
|
-
toBe: n,
|
|
130
|
-
toBeTruthy: a,
|
|
131
|
-
toBeNull: o,
|
|
132
|
-
toBeNaN: s,
|
|
133
|
-
toBeUndefined: c,
|
|
134
|
-
changed: p,
|
|
135
|
-
changedTimes: d,
|
|
136
|
-
get not() {
|
|
137
|
-
return G(e, !t);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function tt(e) {
|
|
142
|
-
return G(e);
|
|
143
|
-
}
|
|
144
|
-
function rt(e, t, r = {}) {
|
|
145
|
-
const {
|
|
146
|
-
immediate: n = !0
|
|
147
|
-
} = r, a = w(!1);
|
|
148
|
-
let o = null;
|
|
149
|
-
function c() {
|
|
150
|
-
o && (clearTimeout(o), o = null);
|
|
151
|
-
}
|
|
152
|
-
function s() {
|
|
153
|
-
a.value = !1, c();
|
|
154
|
-
}
|
|
155
|
-
function u(...p) {
|
|
156
|
-
c(), a.value = !0, o = setTimeout(() => {
|
|
157
|
-
a.value = !1, o = null, e(...p);
|
|
158
|
-
}, P(t));
|
|
159
|
-
}
|
|
160
|
-
return n && (a.value = !0, k && u()), _e(s), {
|
|
161
|
-
isPending: me(a),
|
|
162
|
-
start: u,
|
|
163
|
-
stop: s
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
var ne = Object.getOwnPropertySymbols, nt = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable, at = (e, t) => {
|
|
167
|
-
var r = {};
|
|
168
|
-
for (var n in e)
|
|
169
|
-
nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
170
|
-
if (e != null && ne)
|
|
171
|
-
for (var n of ne(e))
|
|
172
|
-
t.indexOf(n) < 0 && ot.call(e, n) && (r[n] = e[n]);
|
|
173
|
-
return r;
|
|
174
|
-
};
|
|
175
|
-
function it(e, t, r = {}) {
|
|
176
|
-
const n = r, {
|
|
177
|
-
eventFilter: a = Oe
|
|
178
|
-
} = n, o = at(n, [
|
|
179
|
-
"eventFilter"
|
|
180
|
-
]);
|
|
181
|
-
return T(
|
|
182
|
-
e,
|
|
183
|
-
Ze(
|
|
184
|
-
a,
|
|
185
|
-
t
|
|
186
|
-
),
|
|
187
|
-
o
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
function st(e, t, r) {
|
|
191
|
-
const n = T(e, (...a) => (Ce(() => n()), t(...a)), r);
|
|
192
|
-
}
|
|
193
|
-
var ct = Object.defineProperty, ut = Object.defineProperties, lt = Object.getOwnPropertyDescriptors, V = Object.getOwnPropertySymbols, we = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable, oe = (e, t, r) => t in e ? ct(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
|
|
194
|
-
for (var r in t || (t = {}))
|
|
195
|
-
we.call(t, r) && oe(e, r, t[r]);
|
|
196
|
-
if (V)
|
|
197
|
-
for (var r of V(t))
|
|
198
|
-
be.call(t, r) && oe(e, r, t[r]);
|
|
199
|
-
return e;
|
|
200
|
-
}, pt = (e, t) => ut(e, lt(t)), dt = (e, t) => {
|
|
201
|
-
var r = {};
|
|
202
|
-
for (var n in e)
|
|
203
|
-
we.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
204
|
-
if (e != null && V)
|
|
205
|
-
for (var n of V(e))
|
|
206
|
-
t.indexOf(n) < 0 && be.call(e, n) && (r[n] = e[n]);
|
|
207
|
-
return r;
|
|
208
|
-
};
|
|
209
|
-
function Xt(e, t, r = {}) {
|
|
210
|
-
const n = r, {
|
|
211
|
-
eventFilter: a
|
|
212
|
-
} = n, o = dt(n, [
|
|
213
|
-
"eventFilter"
|
|
214
|
-
]), { eventFilter: c, pause: s, resume: u, isActive: p } = et(a);
|
|
215
|
-
return { stop: it(
|
|
216
|
-
e,
|
|
217
|
-
t,
|
|
218
|
-
pt(ft({}, o), {
|
|
219
|
-
eventFilter: c
|
|
220
|
-
})
|
|
221
|
-
), pause: s, resume: u, isActive: p };
|
|
222
|
-
}
|
|
223
|
-
function Yt(e, t, r) {
|
|
224
|
-
return T(
|
|
225
|
-
e,
|
|
226
|
-
(n, a, o) => {
|
|
227
|
-
n && t(n, a, o);
|
|
228
|
-
},
|
|
229
|
-
r
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
function $(e) {
|
|
233
|
-
var t;
|
|
234
|
-
const r = P(e);
|
|
235
|
-
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
236
|
-
}
|
|
237
|
-
const Ee = k ? window : void 0, vt = k ? window.document : void 0;
|
|
238
|
-
function L(...e) {
|
|
239
|
-
let t, r, n, a;
|
|
240
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = Ee) : [t, r, n, a] = e, !t)
|
|
241
|
-
return B;
|
|
242
|
-
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
243
|
-
const o = [], c = () => {
|
|
244
|
-
o.forEach((d) => d()), o.length = 0;
|
|
245
|
-
}, s = (d, l, i, f) => (d.addEventListener(l, i, f), () => d.removeEventListener(l, i, f)), u = T(
|
|
246
|
-
() => [$(t), P(a)],
|
|
247
|
-
([d, l]) => {
|
|
248
|
-
c(), d && o.push(
|
|
249
|
-
...r.flatMap((i) => n.map((f) => s(d, i, f, l)))
|
|
250
|
-
);
|
|
251
|
-
},
|
|
252
|
-
{ immediate: !0, flush: "post" }
|
|
253
|
-
), p = () => {
|
|
254
|
-
u(), c();
|
|
255
|
-
};
|
|
256
|
-
return _e(p), p;
|
|
257
|
-
}
|
|
258
|
-
let ae = !1;
|
|
259
|
-
function Jt(e, t, r = {}) {
|
|
260
|
-
const { window: n = Ee, ignore: a = [], capture: o = !0, detectIframe: c = !1 } = r;
|
|
261
|
-
if (!n)
|
|
262
|
-
return;
|
|
263
|
-
Je && !ae && (ae = !0, Array.from(n.document.body.children).forEach((i) => i.addEventListener("click", B)));
|
|
264
|
-
let s = !0;
|
|
265
|
-
const u = (i) => a.some((f) => {
|
|
266
|
-
if (typeof f == "string")
|
|
267
|
-
return Array.from(n.document.querySelectorAll(f)).some((v) => v === i.target || i.composedPath().includes(v));
|
|
268
|
-
{
|
|
269
|
-
const v = $(f);
|
|
270
|
-
return v && (i.target === v || i.composedPath().includes(v));
|
|
271
|
-
}
|
|
272
|
-
}), d = [
|
|
273
|
-
L(n, "click", (i) => {
|
|
274
|
-
const f = $(e);
|
|
275
|
-
if (!(!f || f === i.target || i.composedPath().includes(f))) {
|
|
276
|
-
if (i.detail === 0 && (s = !u(i)), !s) {
|
|
277
|
-
s = !0;
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
t(i);
|
|
281
|
-
}
|
|
282
|
-
}, { passive: !0, capture: o }),
|
|
283
|
-
L(n, "pointerdown", (i) => {
|
|
284
|
-
const f = $(e);
|
|
285
|
-
f && (s = !i.composedPath().includes(f) && !u(i));
|
|
286
|
-
}, { passive: !0 }),
|
|
287
|
-
c && L(n, "blur", (i) => {
|
|
288
|
-
var f;
|
|
289
|
-
const v = $(e);
|
|
290
|
-
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(i);
|
|
291
|
-
})
|
|
292
|
-
].filter(Boolean);
|
|
293
|
-
return () => d.forEach((i) => i());
|
|
294
|
-
}
|
|
295
|
-
var mt = Object.defineProperty, yt = Object.defineProperties, gt = Object.getOwnPropertyDescriptors, ie = Object.getOwnPropertySymbols, ht = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable, se = (e, t, r) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ot = (e, t) => {
|
|
296
|
-
for (var r in t || (t = {}))
|
|
297
|
-
ht.call(t, r) && se(e, r, t[r]);
|
|
298
|
-
if (ie)
|
|
299
|
-
for (var r of ie(t))
|
|
300
|
-
_t.call(t, r) && se(e, r, t[r]);
|
|
301
|
-
return e;
|
|
302
|
-
}, wt = (e, t) => yt(e, gt(t));
|
|
303
|
-
function bt(e, t, r) {
|
|
304
|
-
const {
|
|
305
|
-
immediate: n = !0,
|
|
306
|
-
delay: a = 0,
|
|
307
|
-
onError: o = B,
|
|
308
|
-
onSuccess: c = B,
|
|
309
|
-
resetOnExecute: s = !0,
|
|
310
|
-
shallow: u = !0,
|
|
311
|
-
throwError: p
|
|
312
|
-
} = r ?? {}, d = u ? te(t) : w(t), l = w(!1), i = w(!1), f = te(void 0);
|
|
313
|
-
async function v(y = 0, ...O) {
|
|
314
|
-
s && (d.value = t), f.value = void 0, l.value = !1, i.value = !0, y > 0 && await K(y);
|
|
315
|
-
const b = typeof e == "function" ? e(...O) : e;
|
|
316
|
-
try {
|
|
317
|
-
const m = await b;
|
|
318
|
-
d.value = m, l.value = !0, c(m);
|
|
319
|
-
} catch (m) {
|
|
320
|
-
if (f.value = m, o(m), p)
|
|
321
|
-
throw m;
|
|
322
|
-
} finally {
|
|
323
|
-
i.value = !1;
|
|
324
|
-
}
|
|
325
|
-
return d.value;
|
|
326
|
-
}
|
|
327
|
-
n && v(a);
|
|
328
|
-
const I = {
|
|
329
|
-
state: d,
|
|
330
|
-
isReady: l,
|
|
331
|
-
isLoading: i,
|
|
332
|
-
error: f,
|
|
333
|
-
execute: v
|
|
334
|
-
};
|
|
335
|
-
function _() {
|
|
336
|
-
return new Promise((y, O) => {
|
|
337
|
-
tt(i).toBe(!1).then(() => y(I)).catch(O);
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
return wt(Ot({}, I), {
|
|
341
|
-
then(y, O) {
|
|
342
|
-
return _().then(y, O);
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
function Qt({ document: e = vt } = {}) {
|
|
347
|
-
if (!e)
|
|
348
|
-
return w("visible");
|
|
349
|
-
const t = w(e.visibilityState);
|
|
350
|
-
return L(e, "visibilitychange", () => {
|
|
351
|
-
t.value = e.visibilityState;
|
|
352
|
-
}), t;
|
|
353
|
-
}
|
|
354
|
-
var Et = Object.defineProperty, ce = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Tt = (e, t) => {
|
|
355
|
-
for (var r in t || (t = {}))
|
|
356
|
-
Pt.call(t, r) && ue(e, r, t[r]);
|
|
357
|
-
if (ce)
|
|
358
|
-
for (var r of ce(t))
|
|
359
|
-
It.call(t, r) && ue(e, r, t[r]);
|
|
360
|
-
return e;
|
|
361
|
-
};
|
|
362
|
-
async function At(e) {
|
|
363
|
-
return new Promise((t, r) => {
|
|
364
|
-
const n = new Image(), { src: a, srcset: o, sizes: c, class: s, loading: u, crossorigin: p } = e;
|
|
365
|
-
n.src = a, o && (n.srcset = o), c && (n.sizes = c), s && (n.className = s), u && (n.loading = u), p && (n.crossOrigin = p), n.onload = () => t(n), n.onerror = r;
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
function Zt(e, t = {}) {
|
|
369
|
-
const r = bt(
|
|
370
|
-
() => At(P(e)),
|
|
371
|
-
void 0,
|
|
372
|
-
Tt({
|
|
373
|
-
resetOnExecute: !0
|
|
374
|
-
}, t)
|
|
375
|
-
);
|
|
376
|
-
return T(
|
|
377
|
-
() => P(e),
|
|
378
|
-
() => r.execute(t.delay),
|
|
379
|
-
{ deep: !0 }
|
|
380
|
-
), r;
|
|
381
|
-
}
|
|
382
|
-
function er(e = [], t = {}) {
|
|
383
|
-
const { delay: r = 0 } = t, n = w(!1), a = A(() => {
|
|
384
|
-
const s = E(e);
|
|
385
|
-
return Array.isArray(s) ? s.map((u) => E(u)).some(Boolean) : s;
|
|
386
|
-
}), { start: o, stop: c } = rt(() => {
|
|
387
|
-
n.value = !0;
|
|
388
|
-
}, r);
|
|
389
|
-
return T(
|
|
390
|
-
a,
|
|
391
|
-
(s) => {
|
|
392
|
-
if (s)
|
|
393
|
-
return o();
|
|
394
|
-
c(), n.value = !1;
|
|
395
|
-
},
|
|
396
|
-
{ immediate: !0, deep: !0 }
|
|
397
|
-
), n;
|
|
398
|
-
}
|
|
399
|
-
function St(e) {
|
|
400
|
-
var t = Object.prototype.toString.call(e);
|
|
401
|
-
return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
|
|
402
|
-
}
|
|
403
|
-
var xt = /* @__PURE__ */ F(function(t) {
|
|
404
|
-
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Ue(t) ? [] : ke(t) ? "" : Me(t) ? {} : We(t) ? /* @__PURE__ */ function() {
|
|
405
|
-
return arguments;
|
|
406
|
-
}() : St(t) ? t.constructor.from("") : void 0;
|
|
407
|
-
}), $t = /* @__PURE__ */ F(function(t) {
|
|
408
|
-
return t != null && ze(t, xt(t));
|
|
409
|
-
}), jt = /* @__PURE__ */ qe(function(t, r) {
|
|
410
|
-
for (var n = {}, a = {}, o = 0, c = t.length; o < c; )
|
|
411
|
-
a[t[o]] = 1, o += 1;
|
|
412
|
-
for (var s in r)
|
|
413
|
-
a.hasOwnProperty(s) || (n[s] = r[s]);
|
|
414
|
-
return n;
|
|
415
|
-
}), x = `
|
|
416
|
-
\v\f\r \u2028\u2029\uFEFF`, Rt = "", Ct = typeof String.prototype.trim == "function", Nt = !Ct || /* @__PURE__ */ x.trim() || !/* @__PURE__ */ Rt.trim() ? /* @__PURE__ */ F(function(t) {
|
|
417
|
-
var r = new RegExp("^[" + x + "][" + x + "]*"), n = new RegExp("[" + x + "][" + x + "]*$");
|
|
418
|
-
return t.replace(r, "").replace(n, "");
|
|
419
|
-
}) : /* @__PURE__ */ F(function(t) {
|
|
420
|
-
return t.trim();
|
|
421
|
-
});
|
|
422
|
-
const U = Nt, Pe = Symbol("I18nContext"), h = ye({
|
|
423
|
-
messages: {},
|
|
424
|
-
locale: "",
|
|
425
|
-
fallbackLocale: ""
|
|
426
|
-
}), tr = ({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) => {
|
|
427
|
-
h.messages = e, h.locale = t, h.fallbackLocale = r;
|
|
428
|
-
const n = (u, p = {}) => {
|
|
429
|
-
const d = !$t(p), l = j(U, R(".", u));
|
|
430
|
-
return A(() => {
|
|
431
|
-
const f = Ie(l);
|
|
432
|
-
return d ? Ft(f, p) : f;
|
|
433
|
-
}).value;
|
|
434
|
-
}, a = (u) => {
|
|
435
|
-
const p = j(U, R(".", u));
|
|
436
|
-
return !!H(h.locale, p, h.messages);
|
|
437
|
-
}, o = (u) => {
|
|
438
|
-
h.locale = u;
|
|
439
|
-
}, s = {
|
|
440
|
-
locale: A({
|
|
441
|
-
get() {
|
|
442
|
-
return h.locale;
|
|
443
|
-
},
|
|
444
|
-
set(u) {
|
|
445
|
-
h.locale = u;
|
|
446
|
-
}
|
|
447
|
-
}),
|
|
448
|
-
setLocale: o,
|
|
449
|
-
translate: n,
|
|
450
|
-
hasTranslation: a
|
|
451
|
-
};
|
|
452
|
-
return ge(Pe, s), {
|
|
453
|
-
translate: n
|
|
454
|
-
};
|
|
455
|
-
}, Dt = (e) => {
|
|
456
|
-
e && (h.messages = e.messages, h.locale = e.locale, h.fallbackLocale = e.fallbackLocale);
|
|
457
|
-
const t = Lt();
|
|
458
|
-
return {
|
|
459
|
-
locale: t.locale,
|
|
460
|
-
t: t.translate,
|
|
461
|
-
setLocale: t.setLocale,
|
|
462
|
-
hasTranslation: t.hasTranslation
|
|
463
|
-
};
|
|
464
|
-
}, Lt = () => {
|
|
465
|
-
const e = he(Pe, null);
|
|
466
|
-
if (e === null)
|
|
467
|
-
throw new Error("Privider is missing a parent component.");
|
|
468
|
-
return e;
|
|
469
|
-
}, Ie = (e = []) => {
|
|
470
|
-
let t = H(h.locale, e, h.messages);
|
|
471
|
-
return !t && h.fallbackLocale && (t = H(h.fallbackLocale, e, h.messages)), t || e.join(".");
|
|
472
|
-
};
|
|
473
|
-
function H(e, t, r) {
|
|
474
|
-
return Ke([e, ...t], r);
|
|
475
|
-
}
|
|
476
|
-
const Ft = function(e, t) {
|
|
477
|
-
return e.replace(/\{(\w+)\}/g, function(r, n) {
|
|
478
|
-
return t[n];
|
|
479
|
-
});
|
|
480
|
-
}, rr = Fe({
|
|
481
|
-
props: {
|
|
482
|
-
tag: {
|
|
483
|
-
type: String,
|
|
484
|
-
default: "div"
|
|
485
|
-
},
|
|
486
|
-
path: {
|
|
487
|
-
type: String,
|
|
488
|
-
defult: ""
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
setup(e, { slots: t }) {
|
|
492
|
-
const r = j(U, R(".", e.path)), n = Ie(r), a = R(/{|}/, n), o = Object.keys(t).map((c) => {
|
|
493
|
-
const s = a.indexOf(c);
|
|
494
|
-
return s > -1 && (a[s] = t[c]()[0]), a;
|
|
495
|
-
});
|
|
496
|
-
return () => Be(e.tag, o);
|
|
497
|
-
}
|
|
498
|
-
}), Te = Symbol("ErrorProviderContext"), nr = () => {
|
|
499
|
-
const e = w(""), t = w({}), r = (o) => {
|
|
500
|
-
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
501
|
-
message: o.message,
|
|
502
|
-
key: o.key || Ge(o.message),
|
|
503
|
-
cause: o.cause
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
return ge(Te, {
|
|
507
|
-
onError: r,
|
|
508
|
-
reset: () => {
|
|
509
|
-
e.value = "", t.value = {};
|
|
510
|
-
}
|
|
511
|
-
}), window.onerror = (o) => {
|
|
512
|
-
console.error("WINDOW_ONERROR:", o);
|
|
513
|
-
}, Ve((o, c, s) => {
|
|
514
|
-
console.error("onErrorCaptured:", o, c, s);
|
|
515
|
-
}), {
|
|
516
|
-
hasError: A(() => e.value.length > 0),
|
|
517
|
-
message: e,
|
|
518
|
-
error: t,
|
|
519
|
-
onError: r
|
|
520
|
-
};
|
|
521
|
-
}, or = () => {
|
|
522
|
-
const e = Bt();
|
|
523
|
-
return {
|
|
524
|
-
onError: e.onError,
|
|
525
|
-
reset: e.reset
|
|
526
|
-
};
|
|
527
|
-
}, Bt = () => {
|
|
528
|
-
const e = he(Te, null);
|
|
529
|
-
if (e === null)
|
|
530
|
-
throw new Error("Privider is missing a parent component.");
|
|
531
|
-
return e;
|
|
532
|
-
}, ar = (e, t = "", r = {}) => {
|
|
533
|
-
const n = w(""), { t: a } = Dt(), o = A(() => {
|
|
534
|
-
if (E(t))
|
|
535
|
-
try {
|
|
536
|
-
const u = Vt(E(e), E(t));
|
|
537
|
-
return jt(u, E(e));
|
|
538
|
-
} catch (u) {
|
|
539
|
-
n.value = u;
|
|
540
|
-
}
|
|
541
|
-
return E(e);
|
|
542
|
-
}), c = (u) => ({
|
|
543
|
-
...u,
|
|
544
|
-
...u.label && { label: a(u.label ?? "", E(r)) },
|
|
545
|
-
...u.tooltip && { tooltip: a(u.tooltip ?? "") }
|
|
546
|
-
});
|
|
547
|
-
return {
|
|
548
|
-
columns: A(() => j(c, o.value)),
|
|
549
|
-
error: n
|
|
550
|
-
};
|
|
551
|
-
}, Vt = (e, t = "") => {
|
|
552
|
-
const r = j(U, R(",", t)), n = He(e);
|
|
553
|
-
if (r[0] === "")
|
|
554
|
-
return resolve([]);
|
|
555
|
-
const a = r.findIndex((o) => !n.includes(o));
|
|
556
|
-
if (a > -1)
|
|
557
|
-
throw r[a];
|
|
558
|
-
return r;
|
|
559
|
-
};
|
|
560
|
-
/*! *****************************************************************************
|
|
561
|
-
Copyright (c) Microsoft Corporation.
|
|
562
|
-
|
|
563
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
564
|
-
purpose with or without fee is hereby granted.
|
|
565
|
-
|
|
566
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
567
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
568
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
569
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
570
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
571
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
572
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
573
|
-
***************************************************************************** */
|
|
574
|
-
function le(e, t) {
|
|
575
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
576
|
-
if (!r)
|
|
577
|
-
return e;
|
|
578
|
-
var n, a, o = r.call(e), c = [];
|
|
579
|
-
try {
|
|
580
|
-
for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; )
|
|
581
|
-
c.push(n.value);
|
|
582
|
-
} catch (s) {
|
|
583
|
-
a = { error: s };
|
|
584
|
-
} finally {
|
|
585
|
-
try {
|
|
586
|
-
n && !n.done && (r = o.return) && r.call(o);
|
|
587
|
-
} finally {
|
|
588
|
-
if (a)
|
|
589
|
-
throw a.error;
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
return c;
|
|
593
|
-
}
|
|
594
|
-
var fe;
|
|
595
|
-
(function(e) {
|
|
596
|
-
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
597
|
-
})(fe || (fe = {}));
|
|
598
|
-
var Ut = { type: "xstate.init" };
|
|
599
|
-
function q(e) {
|
|
600
|
-
return e === void 0 ? [] : [].concat(e);
|
|
601
|
-
}
|
|
602
|
-
function pe(e, t) {
|
|
603
|
-
return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
|
|
604
|
-
}
|
|
605
|
-
function X(e) {
|
|
606
|
-
return function(t) {
|
|
607
|
-
return e === t;
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function kt(e) {
|
|
611
|
-
return typeof e == "string" ? { type: e } : e;
|
|
612
|
-
}
|
|
613
|
-
function de(e, t) {
|
|
614
|
-
return { value: e, context: t, actions: [], changed: !1, matches: X(e) };
|
|
615
|
-
}
|
|
616
|
-
function ve(e, t, r) {
|
|
617
|
-
var n = t, a = !1;
|
|
618
|
-
return [e.filter(function(o) {
|
|
619
|
-
if (o.type === "xstate.assign") {
|
|
620
|
-
a = !0;
|
|
621
|
-
var c = Object.assign({}, n);
|
|
622
|
-
return typeof o.assignment == "function" ? c = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
|
|
623
|
-
c[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
|
|
624
|
-
}), n = c, !1;
|
|
625
|
-
}
|
|
626
|
-
return !0;
|
|
627
|
-
}), n, a];
|
|
628
|
-
}
|
|
629
|
-
function Mt(e, t) {
|
|
630
|
-
t === void 0 && (t = {});
|
|
631
|
-
var r = le(ve(q(e.states[e.initial].entry).map(function(c) {
|
|
632
|
-
return pe(c, t.actions);
|
|
633
|
-
}), e.context, Ut), 2), n = r[0], a = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: a, matches: X(e.initial) }, transition: function(c, s) {
|
|
634
|
-
var u, p, d = typeof c == "string" ? { value: c, context: e.context } : c, l = d.value, i = d.context, f = kt(s), v = e.states[l];
|
|
635
|
-
if (v.on) {
|
|
636
|
-
var I = q(v.on[f.type]);
|
|
637
|
-
try {
|
|
638
|
-
for (var _ = function(g) {
|
|
639
|
-
var W = typeof Symbol == "function" && Symbol.iterator, Z = W && g[W], ee = 0;
|
|
640
|
-
if (Z)
|
|
641
|
-
return Z.call(g);
|
|
642
|
-
if (g && typeof g.length == "number")
|
|
643
|
-
return { next: function() {
|
|
644
|
-
return g && ee >= g.length && (g = void 0), { value: g && g[ee++], done: !g };
|
|
645
|
-
} };
|
|
646
|
-
throw new TypeError(W ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
647
|
-
}(I), y = _.next(); !y.done; y = _.next()) {
|
|
648
|
-
var O = y.value;
|
|
649
|
-
if (O === void 0)
|
|
650
|
-
return de(l, i);
|
|
651
|
-
var b = typeof O == "string" ? { target: O } : O, m = b.target, S = b.actions, C = S === void 0 ? [] : S, Y = b.cond, Ae = Y === void 0 ? function() {
|
|
652
|
-
return !0;
|
|
653
|
-
} : Y, Se = m === void 0, xe = m ?? l, $e = e.states[xe];
|
|
654
|
-
if (Ae(i, f)) {
|
|
655
|
-
var M = le(ve((Se ? q(C) : [].concat(v.exit, C, $e.entry).filter(function(g) {
|
|
656
|
-
return g;
|
|
657
|
-
})).map(function(g) {
|
|
658
|
-
return pe(g, o._options.actions);
|
|
659
|
-
}), i, f), 3), J = M[0], je = M[1], Re = M[2], Q = m ?? l;
|
|
660
|
-
return { value: Q, context: je, actions: J, changed: m !== l || J.length > 0 || Re, matches: X(Q) };
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
} catch (g) {
|
|
664
|
-
u = { error: g };
|
|
665
|
-
} finally {
|
|
666
|
-
try {
|
|
667
|
-
y && !y.done && (p = _.return) && p.call(_);
|
|
668
|
-
} finally {
|
|
669
|
-
if (u)
|
|
670
|
-
throw u.error;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
return de(l, i);
|
|
675
|
-
} };
|
|
676
|
-
return o;
|
|
677
|
-
}
|
|
678
|
-
const Wt = Mt({
|
|
679
|
-
id: "sort",
|
|
680
|
-
initial: N,
|
|
681
|
-
states: {
|
|
682
|
-
[N]: {
|
|
683
|
-
on: {
|
|
684
|
-
DIRECTION1: z,
|
|
685
|
-
DIRECTION2: D
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
[z]: {
|
|
689
|
-
on: {
|
|
690
|
-
DIRECTION1: D,
|
|
691
|
-
DIRECTION2: N
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
[D]: {
|
|
695
|
-
on: {
|
|
696
|
-
DIRECTION1: N,
|
|
697
|
-
DIRECTION2: z
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}), zt = (e, t) => {
|
|
702
|
-
const r = t === D ? "DIRECTION2" : "DIRECTION1";
|
|
703
|
-
return Wt.transition(e, r).value;
|
|
704
|
-
};
|
|
705
|
-
function ir(e = {}) {
|
|
706
|
-
const { sortTarget: t = null, orders: r = [] } = e, n = ye({ sortTarget: t, orders: r });
|
|
707
|
-
return {
|
|
708
|
-
sort: n,
|
|
709
|
-
change: ({ target: o, orders: c }) => {
|
|
710
|
-
if (n.sortTarget !== o) {
|
|
711
|
-
n.sortTarget = o, n.orders = c;
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
const s = c.map((u, p) => ({
|
|
715
|
-
...u,
|
|
716
|
-
direction: zt(n.orders[p].direction, u.direction)
|
|
717
|
-
}));
|
|
718
|
-
n.sortTarget = o, n.orders = s;
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
function sr(e, t, r, n) {
|
|
723
|
-
const a = w(""), o = w(!1), c = (s) => {
|
|
724
|
-
const u = Xe(re(t), s), p = u.length > 0;
|
|
725
|
-
if (o.value = p, !p)
|
|
726
|
-
return a.value = "";
|
|
727
|
-
const l = u.map((i) => ({
|
|
728
|
-
team: i.team.longName,
|
|
729
|
-
points: Math.abs(re(t, i))
|
|
730
|
-
})).map((i) => r(`additionalText.${t}.content`, i)).join(", ");
|
|
731
|
-
a.value = [
|
|
732
|
-
r(`additionalText.${t}.prependix`),
|
|
733
|
-
l,
|
|
734
|
-
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
735
|
-
].join(" ");
|
|
736
|
-
};
|
|
737
|
-
return st(e, c), T(n, () => c(E(e))), {
|
|
738
|
-
text: a,
|
|
739
|
-
isVisible: o
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
export {
|
|
743
|
-
nr as a,
|
|
744
|
-
or as b,
|
|
745
|
-
tr as c,
|
|
746
|
-
Dt as d,
|
|
747
|
-
er as e,
|
|
748
|
-
Ht as f,
|
|
749
|
-
ir as g,
|
|
750
|
-
sr as h,
|
|
751
|
-
rr as i,
|
|
752
|
-
Zt as j,
|
|
753
|
-
st as k,
|
|
754
|
-
bt as l,
|
|
755
|
-
Qt as m,
|
|
756
|
-
B as n,
|
|
757
|
-
Jt as o,
|
|
758
|
-
Xt as p,
|
|
759
|
-
$ as q,
|
|
760
|
-
ar as u,
|
|
761
|
-
Vt as v,
|
|
762
|
-
Yt as w
|
|
763
|
-
};
|