@mjsz-vbr-elements/core 2.1.0-beta.5

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/index.js ADDED
@@ -0,0 +1,4929 @@
1
+ /**
2
+ * name: @mjsz-vbr-elements/core
3
+ * version: v2.1.0-beta.5 - 14/09/2023, 22:57:17
4
+ * (c) 2023
5
+ * description: Data visualization for MJSZ VBR
6
+ * author: Ákos Stegner <akos.stegner@gmail.com>
7
+ */
8
+ import { computed as Z, withDirectives as un, openBlock as L, createElementBlock as z, normalizeClass as rt, unref as b, renderSlot as ot, vModelSelect as fn, ref as H, readonly as dn, watch as dt, nextTick as pn, getCurrentScope as mn, onScopeDispose as hn, isRef as hr, shallowRef as ze, reactive as gr, defineComponent as yr, h as gn, provide as vr, inject as br, createElementVNode as R, Fragment as Ot, normalizeStyle as Ne, createVNode as $t, Transition as yn, withCtx as lt, createTextVNode as Rt, toDisplayString as Q, createCommentVNode as et, toRefs as wr, renderList as Bt, createBlock as gt, withKeys as Ce, withModifiers as Ht, onErrorCaptured as vn, createSlots as bn } from "vue";
9
+ const It = (t) => ({}.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t, Ri = {
10
+ __name: "BaseSelect",
11
+ props: {
12
+ modelValue: {
13
+ type: [String, Number],
14
+ default: null
15
+ }
16
+ },
17
+ emits: ["update:modelValue"],
18
+ setup(t, { emit: e }) {
19
+ const r = t, n = It("base-input"), a = Z({ get: () => r.modelValue, set: (o) => e("update:modelValue", o) });
20
+ return (o, s) => un((L(), z("select", {
21
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => a.value = i),
22
+ class: rt([b(n), "is-select"])
23
+ }, [
24
+ ot(o.$slots, "default")
25
+ ], 2)), [
26
+ [fn, a.value]
27
+ ]);
28
+ }
29
+ };
30
+ function Pr(t) {
31
+ return mn() ? (hn(t), !0) : !1;
32
+ }
33
+ function ct(t) {
34
+ return typeof t == "function" ? t() : b(t);
35
+ }
36
+ const ae = typeof window < "u", bt = () => {
37
+ }, wn = /* @__PURE__ */ Pn();
38
+ function Pn() {
39
+ var t;
40
+ return ae && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
41
+ }
42
+ function we(t, e = !1, r = "Timeout") {
43
+ return new Promise((n, a) => {
44
+ setTimeout(e ? () => a(r) : n, t);
45
+ });
46
+ }
47
+ function Pe(t, e = !1) {
48
+ function r(u, { flush: d = "sync", deep: f = !1, timeout: h, throwOnTimeout: p } = {}) {
49
+ let g = null;
50
+ const A = [new Promise((_) => {
51
+ g = dt(
52
+ t,
53
+ (D) => {
54
+ u(D) !== e && (g == null || g(), _(D));
55
+ },
56
+ {
57
+ flush: d,
58
+ deep: f,
59
+ immediate: !0
60
+ }
61
+ );
62
+ })];
63
+ return h != null && A.push(
64
+ we(h, p).then(() => ct(t)).finally(() => g == null ? void 0 : g())
65
+ ), Promise.race(A);
66
+ }
67
+ function n(u, d) {
68
+ if (!hr(u))
69
+ return r((D) => D === u, d);
70
+ const { flush: f = "sync", deep: h = !1, timeout: p, throwOnTimeout: g } = d ?? {};
71
+ let O = null;
72
+ const _ = [new Promise((D) => {
73
+ O = dt(
74
+ [t, u],
75
+ ([k, N]) => {
76
+ e !== (k === N) && (O == null || O(), D(k));
77
+ },
78
+ {
79
+ flush: f,
80
+ deep: h,
81
+ immediate: !0
82
+ }
83
+ );
84
+ })];
85
+ return p != null && _.push(
86
+ we(p, g).then(() => ct(t)).finally(() => (O == null || O(), ct(t)))
87
+ ), Promise.race(_);
88
+ }
89
+ function a(u) {
90
+ return r((d) => !!d, u);
91
+ }
92
+ function o(u) {
93
+ return n(null, u);
94
+ }
95
+ function s(u) {
96
+ return n(void 0, u);
97
+ }
98
+ function i(u) {
99
+ return r(Number.isNaN, u);
100
+ }
101
+ function c(u, d) {
102
+ return r((f) => {
103
+ const h = Array.from(f);
104
+ return h.includes(u) || h.includes(ct(u));
105
+ }, d);
106
+ }
107
+ function l(u) {
108
+ return m(1, u);
109
+ }
110
+ function m(u = 1, d) {
111
+ let f = -1;
112
+ return r(() => (f += 1, f >= u), d);
113
+ }
114
+ return Array.isArray(ct(t)) ? {
115
+ toMatch: r,
116
+ toContains: c,
117
+ changed: l,
118
+ changedTimes: m,
119
+ get not() {
120
+ return Pe(t, !e);
121
+ }
122
+ } : {
123
+ toMatch: r,
124
+ toBe: n,
125
+ toBeTruthy: a,
126
+ toBeNull: o,
127
+ toBeNaN: i,
128
+ toBeUndefined: s,
129
+ changed: l,
130
+ changedTimes: m,
131
+ get not() {
132
+ return Pe(t, !e);
133
+ }
134
+ };
135
+ }
136
+ function On(t) {
137
+ return Pe(t);
138
+ }
139
+ function An(t, e, r = {}) {
140
+ const {
141
+ immediate: n = !0
142
+ } = r, a = H(!1);
143
+ let o = null;
144
+ function s() {
145
+ o && (clearTimeout(o), o = null);
146
+ }
147
+ function i() {
148
+ a.value = !1, s();
149
+ }
150
+ function c(...l) {
151
+ s(), a.value = !0, o = setTimeout(() => {
152
+ a.value = !1, o = null, t(...l);
153
+ }, ct(e));
154
+ }
155
+ return n && (a.value = !0, ae && c()), Pr(i), {
156
+ isPending: dn(a),
157
+ start: c,
158
+ stop: i
159
+ };
160
+ }
161
+ function $n(t, e, r) {
162
+ const n = dt(t, (...a) => (pn(() => n()), e(...a)), r);
163
+ }
164
+ function jt(t) {
165
+ var e;
166
+ const r = ct(t);
167
+ return (e = r == null ? void 0 : r.$el) != null ? e : r;
168
+ }
169
+ const Or = ae ? window : void 0, xn = ae ? window.document : void 0;
170
+ function Jt(...t) {
171
+ let e, r, n, a;
172
+ if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, a] = t, e = Or) : [e, r, n, a] = t, !e)
173
+ return bt;
174
+ Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
175
+ const o = [], s = () => {
176
+ o.forEach((m) => m()), o.length = 0;
177
+ }, i = (m, u, d, f) => (m.addEventListener(u, d, f), () => m.removeEventListener(u, d, f)), c = dt(
178
+ () => [jt(e), ct(a)],
179
+ ([m, u]) => {
180
+ s(), m && o.push(
181
+ ...r.flatMap((d) => n.map((f) => i(m, d, f, u)))
182
+ );
183
+ },
184
+ { immediate: !0, flush: "post" }
185
+ ), l = () => {
186
+ c(), s();
187
+ };
188
+ return Pr(l), l;
189
+ }
190
+ let Ge = !1;
191
+ function _n(t, e, r = {}) {
192
+ const { window: n = Or, ignore: a = [], capture: o = !0, detectIframe: s = !1 } = r;
193
+ if (!n)
194
+ return;
195
+ wn && !Ge && (Ge = !0, Array.from(n.document.body.children).forEach((d) => d.addEventListener("click", bt)));
196
+ let i = !0;
197
+ const c = (d) => a.some((f) => {
198
+ if (typeof f == "string")
199
+ return Array.from(n.document.querySelectorAll(f)).some((h) => h === d.target || d.composedPath().includes(h));
200
+ {
201
+ const h = jt(f);
202
+ return h && (d.target === h || d.composedPath().includes(h));
203
+ }
204
+ }), m = [
205
+ Jt(n, "click", (d) => {
206
+ const f = jt(t);
207
+ if (!(!f || f === d.target || d.composedPath().includes(f))) {
208
+ if (d.detail === 0 && (i = !c(d)), !i) {
209
+ i = !0;
210
+ return;
211
+ }
212
+ e(d);
213
+ }
214
+ }, { passive: !0, capture: o }),
215
+ Jt(n, "pointerdown", (d) => {
216
+ const f = jt(t);
217
+ f && (i = !d.composedPath().includes(f) && !c(d));
218
+ }, { passive: !0 }),
219
+ s && Jt(n, "blur", (d) => {
220
+ var f;
221
+ const h = jt(t);
222
+ ((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(h != null && h.contains(n.document.activeElement)) && e(d);
223
+ })
224
+ ].filter(Boolean);
225
+ return () => m.forEach((d) => d());
226
+ }
227
+ var Sn = Object.defineProperty, Tn = Object.defineProperties, Mn = Object.getOwnPropertyDescriptors, Re = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, je = (t, e, r) => e in t ? Sn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ln = (t, e) => {
228
+ for (var r in e || (e = {}))
229
+ Dn.call(e, r) && je(t, r, e[r]);
230
+ if (Re)
231
+ for (var r of Re(e))
232
+ kn.call(e, r) && je(t, r, e[r]);
233
+ return t;
234
+ }, En = (t, e) => Tn(t, Mn(e));
235
+ function Ar(t, e, r) {
236
+ const {
237
+ immediate: n = !0,
238
+ delay: a = 0,
239
+ onError: o = bt,
240
+ onSuccess: s = bt,
241
+ resetOnExecute: i = !0,
242
+ shallow: c = !0,
243
+ throwError: l
244
+ } = r ?? {}, m = c ? ze(e) : H(e), u = H(!1), d = H(!1), f = ze(void 0);
245
+ async function h(O = 0, ...A) {
246
+ i && (m.value = e), f.value = void 0, u.value = !1, d.value = !0, O > 0 && await we(O);
247
+ const _ = typeof t == "function" ? t(...A) : t;
248
+ try {
249
+ const D = await _;
250
+ m.value = D, u.value = !0, s(D);
251
+ } catch (D) {
252
+ if (f.value = D, o(D), l)
253
+ throw D;
254
+ } finally {
255
+ d.value = !1;
256
+ }
257
+ return m.value;
258
+ }
259
+ n && h(a);
260
+ const p = {
261
+ state: m,
262
+ isReady: u,
263
+ isLoading: d,
264
+ error: f,
265
+ execute: h
266
+ };
267
+ function g() {
268
+ return new Promise((O, A) => {
269
+ On(d).toBe(!1).then(() => O(p)).catch(A);
270
+ });
271
+ }
272
+ return En(Ln({}, p), {
273
+ then(O, A) {
274
+ return g().then(O, A);
275
+ }
276
+ });
277
+ }
278
+ function In({ document: t = xn } = {}) {
279
+ if (!t)
280
+ return H("visible");
281
+ const e = H(t.visibilityState);
282
+ return Jt(t, "visibilitychange", () => {
283
+ e.value = t.visibilityState;
284
+ }), e;
285
+ }
286
+ var zn = Object.defineProperty, Be = Object.getOwnPropertySymbols, Nn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, Fe = (t, e, r) => e in t ? zn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Gn = (t, e) => {
287
+ for (var r in e || (e = {}))
288
+ Nn.call(e, r) && Fe(t, r, e[r]);
289
+ if (Be)
290
+ for (var r of Be(e))
291
+ Cn.call(e, r) && Fe(t, r, e[r]);
292
+ return t;
293
+ };
294
+ async function Rn(t) {
295
+ return new Promise((e, r) => {
296
+ const n = new Image(), { src: a, srcset: o, sizes: s, class: i, loading: c, crossorigin: l } = t;
297
+ n.src = a, o && (n.srcset = o), s && (n.sizes = s), i && (n.className = i), c && (n.loading = c), l && (n.crossOrigin = l), n.onload = () => e(n), n.onerror = r;
298
+ });
299
+ }
300
+ function jn(t, e = {}) {
301
+ const r = Ar(
302
+ () => Rn(ct(t)),
303
+ void 0,
304
+ Gn({
305
+ resetOnExecute: !0
306
+ }, e)
307
+ );
308
+ return dt(
309
+ () => ct(t),
310
+ () => r.execute(e.delay),
311
+ { deep: !0 }
312
+ ), r;
313
+ }
314
+ function Bn(t = [], e = {}) {
315
+ const { delay: r = 0 } = e, n = H(!1), a = Z(() => {
316
+ const i = b(t);
317
+ return Array.isArray(i) ? i.map((c) => b(c)).some(Boolean) : i;
318
+ }), { start: o, stop: s } = An(() => {
319
+ n.value = !0;
320
+ }, r);
321
+ return dt(
322
+ a,
323
+ (i) => {
324
+ if (i)
325
+ return o();
326
+ s(), n.value = !1;
327
+ },
328
+ { immediate: !0, deep: !0 }
329
+ ), n;
330
+ }
331
+ function B(t) {
332
+ return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
333
+ }
334
+ function W(t) {
335
+ return function e(r) {
336
+ return arguments.length === 0 || B(r) ? e : t.apply(this, arguments);
337
+ };
338
+ }
339
+ function F(t) {
340
+ return function e(r, n) {
341
+ switch (arguments.length) {
342
+ case 0:
343
+ return e;
344
+ case 1:
345
+ return B(r) ? e : W(function(a) {
346
+ return t(r, a);
347
+ });
348
+ default:
349
+ return B(r) && B(n) ? e : B(r) ? W(function(a) {
350
+ return t(a, n);
351
+ }) : B(n) ? W(function(a) {
352
+ return t(r, a);
353
+ }) : t(r, n);
354
+ }
355
+ };
356
+ }
357
+ function se(t, e) {
358
+ switch (t) {
359
+ case 0:
360
+ return function() {
361
+ return e.apply(this, arguments);
362
+ };
363
+ case 1:
364
+ return function(r) {
365
+ return e.apply(this, arguments);
366
+ };
367
+ case 2:
368
+ return function(r, n) {
369
+ return e.apply(this, arguments);
370
+ };
371
+ case 3:
372
+ return function(r, n, a) {
373
+ return e.apply(this, arguments);
374
+ };
375
+ case 4:
376
+ return function(r, n, a, o) {
377
+ return e.apply(this, arguments);
378
+ };
379
+ case 5:
380
+ return function(r, n, a, o, s) {
381
+ return e.apply(this, arguments);
382
+ };
383
+ case 6:
384
+ return function(r, n, a, o, s, i) {
385
+ return e.apply(this, arguments);
386
+ };
387
+ case 7:
388
+ return function(r, n, a, o, s, i, c) {
389
+ return e.apply(this, arguments);
390
+ };
391
+ case 8:
392
+ return function(r, n, a, o, s, i, c, l) {
393
+ return e.apply(this, arguments);
394
+ };
395
+ case 9:
396
+ return function(r, n, a, o, s, i, c, l, m) {
397
+ return e.apply(this, arguments);
398
+ };
399
+ case 10:
400
+ return function(r, n, a, o, s, i, c, l, m, u) {
401
+ return e.apply(this, arguments);
402
+ };
403
+ default:
404
+ throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
405
+ }
406
+ }
407
+ function Te(t, e, r) {
408
+ return function() {
409
+ for (var n = [], a = 0, o = t, s = 0; s < e.length || a < arguments.length; ) {
410
+ var i;
411
+ s < e.length && (!B(e[s]) || a >= arguments.length) ? i = e[s] : (i = arguments[a], a += 1), n[s] = i, B(i) || (o -= 1), s += 1;
412
+ }
413
+ return o <= 0 ? r.apply(this, n) : se(o, Te(t, n, r));
414
+ };
415
+ }
416
+ var ie = /* @__PURE__ */ F(function(e, r) {
417
+ return e === 1 ? W(r) : se(e, Te(e, [], r));
418
+ });
419
+ function pt(t) {
420
+ return function e(r, n, a) {
421
+ switch (arguments.length) {
422
+ case 0:
423
+ return e;
424
+ case 1:
425
+ return B(r) ? e : F(function(o, s) {
426
+ return t(r, o, s);
427
+ });
428
+ case 2:
429
+ return B(r) && B(n) ? e : B(r) ? F(function(o, s) {
430
+ return t(o, n, s);
431
+ }) : B(n) ? F(function(o, s) {
432
+ return t(r, o, s);
433
+ }) : W(function(o) {
434
+ return t(r, n, o);
435
+ });
436
+ default:
437
+ return B(r) && B(n) && B(a) ? e : B(r) && B(n) ? F(function(o, s) {
438
+ return t(o, s, a);
439
+ }) : B(r) && B(a) ? F(function(o, s) {
440
+ return t(o, n, s);
441
+ }) : B(n) && B(a) ? F(function(o, s) {
442
+ return t(r, o, s);
443
+ }) : B(r) ? W(function(o) {
444
+ return t(o, n, a);
445
+ }) : B(n) ? W(function(o) {
446
+ return t(r, o, a);
447
+ }) : B(a) ? W(function(o) {
448
+ return t(r, n, o);
449
+ }) : t(r, n, a);
450
+ }
451
+ };
452
+ }
453
+ const le = Array.isArray || function(e) {
454
+ return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]";
455
+ };
456
+ function Fn(t) {
457
+ return t != null && typeof t["@@transducer/step"] == "function";
458
+ }
459
+ function ce(t, e, r) {
460
+ return function() {
461
+ if (arguments.length === 0)
462
+ return r();
463
+ var n = arguments[arguments.length - 1];
464
+ if (!le(n)) {
465
+ for (var a = 0; a < t.length; ) {
466
+ if (typeof n[t[a]] == "function")
467
+ return n[t[a]].apply(n, Array.prototype.slice.call(arguments, 0, -1));
468
+ a += 1;
469
+ }
470
+ if (Fn(n)) {
471
+ var o = e.apply(null, Array.prototype.slice.call(arguments, 0, -1));
472
+ return o(n);
473
+ }
474
+ }
475
+ return r.apply(this, arguments);
476
+ };
477
+ }
478
+ function $r(t) {
479
+ return t && t["@@transducer/reduced"] ? t : {
480
+ "@@transducer/value": t,
481
+ "@@transducer/reduced": !0
482
+ };
483
+ }
484
+ const kt = {
485
+ init: function() {
486
+ return this.xf["@@transducer/init"]();
487
+ },
488
+ result: function(t) {
489
+ return this.xf["@@transducer/result"](t);
490
+ }
491
+ };
492
+ function Ve(t) {
493
+ for (var e = [], r; !(r = t.next()).done; )
494
+ e.push(r.value);
495
+ return e;
496
+ }
497
+ function He(t, e, r) {
498
+ for (var n = 0, a = r.length; n < a; ) {
499
+ if (t(e, r[n]))
500
+ return !0;
501
+ n += 1;
502
+ }
503
+ return !1;
504
+ }
505
+ function Vn(t) {
506
+ var e = String(t).match(/^function (\w*)/);
507
+ return e == null ? "" : e[1];
508
+ }
509
+ function ut(t, e) {
510
+ return Object.prototype.hasOwnProperty.call(e, t);
511
+ }
512
+ function Hn(t, e) {
513
+ return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
514
+ }
515
+ const he = typeof Object.is == "function" ? Object.is : Hn;
516
+ var Ye = Object.prototype.toString, xr = /* @__PURE__ */ function() {
517
+ return Ye.call(arguments) === "[object Arguments]" ? function(e) {
518
+ return Ye.call(e) === "[object Arguments]";
519
+ } : function(e) {
520
+ return ut("callee", e);
521
+ };
522
+ }(), Yn = !/* @__PURE__ */ {
523
+ toString: null
524
+ }.propertyIsEnumerable("toString"), Ue = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], We = /* @__PURE__ */ function() {
525
+ return arguments.propertyIsEnumerable("length");
526
+ }(), Un = function(e, r) {
527
+ for (var n = 0; n < e.length; ) {
528
+ if (e[n] === r)
529
+ return !0;
530
+ n += 1;
531
+ }
532
+ return !1;
533
+ }, xt = /* @__PURE__ */ W(typeof Object.keys == "function" && !We ? function(e) {
534
+ return Object(e) !== e ? [] : Object.keys(e);
535
+ } : function(e) {
536
+ if (Object(e) !== e)
537
+ return [];
538
+ var r, n, a = [], o = We && xr(e);
539
+ for (r in e)
540
+ ut(r, e) && (!o || r !== "length") && (a[a.length] = r);
541
+ if (Yn)
542
+ for (n = Ue.length - 1; n >= 0; )
543
+ r = Ue[n], ut(r, e) && !Un(a, r) && (a[a.length] = r), n -= 1;
544
+ return a;
545
+ }), Oe = /* @__PURE__ */ W(function(e) {
546
+ return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
547
+ });
548
+ function Ke(t, e, r, n) {
549
+ var a = Ve(t), o = Ve(e);
550
+ function s(i, c) {
551
+ return Me(i, c, r.slice(), n.slice());
552
+ }
553
+ return !He(function(i, c) {
554
+ return !He(s, c, i);
555
+ }, o, a);
556
+ }
557
+ function Me(t, e, r, n) {
558
+ if (he(t, e))
559
+ return !0;
560
+ var a = Oe(t);
561
+ if (a !== Oe(e))
562
+ return !1;
563
+ if (typeof t["fantasy-land/equals"] == "function" || typeof e["fantasy-land/equals"] == "function")
564
+ return typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e) && typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t);
565
+ if (typeof t.equals == "function" || typeof e.equals == "function")
566
+ return typeof t.equals == "function" && t.equals(e) && typeof e.equals == "function" && e.equals(t);
567
+ switch (a) {
568
+ case "Arguments":
569
+ case "Array":
570
+ case "Object":
571
+ if (typeof t.constructor == "function" && Vn(t.constructor) === "Promise")
572
+ return t === e;
573
+ break;
574
+ case "Boolean":
575
+ case "Number":
576
+ case "String":
577
+ if (!(typeof t == typeof e && he(t.valueOf(), e.valueOf())))
578
+ return !1;
579
+ break;
580
+ case "Date":
581
+ if (!he(t.valueOf(), e.valueOf()))
582
+ return !1;
583
+ break;
584
+ case "Error":
585
+ return t.name === e.name && t.message === e.message;
586
+ case "RegExp":
587
+ if (!(t.source === e.source && t.global === e.global && t.ignoreCase === e.ignoreCase && t.multiline === e.multiline && t.sticky === e.sticky && t.unicode === e.unicode))
588
+ return !1;
589
+ break;
590
+ }
591
+ for (var o = r.length - 1; o >= 0; ) {
592
+ if (r[o] === t)
593
+ return n[o] === e;
594
+ o -= 1;
595
+ }
596
+ switch (a) {
597
+ case "Map":
598
+ return t.size !== e.size ? !1 : Ke(t.entries(), e.entries(), r.concat([t]), n.concat([e]));
599
+ case "Set":
600
+ return t.size !== e.size ? !1 : Ke(t.values(), e.values(), r.concat([t]), n.concat([e]));
601
+ case "Arguments":
602
+ case "Array":
603
+ case "Object":
604
+ case "Boolean":
605
+ case "Number":
606
+ case "String":
607
+ case "Date":
608
+ case "Error":
609
+ case "RegExp":
610
+ case "Int8Array":
611
+ case "Uint8Array":
612
+ case "Uint8ClampedArray":
613
+ case "Int16Array":
614
+ case "Uint16Array":
615
+ case "Int32Array":
616
+ case "Uint32Array":
617
+ case "Float32Array":
618
+ case "Float64Array":
619
+ case "ArrayBuffer":
620
+ break;
621
+ default:
622
+ return !1;
623
+ }
624
+ var s = xt(t);
625
+ if (s.length !== xt(e).length)
626
+ return !1;
627
+ var i = r.concat([t]), c = n.concat([e]);
628
+ for (o = s.length - 1; o >= 0; ) {
629
+ var l = s[o];
630
+ if (!(ut(l, e) && Me(e[l], t[l], i, c)))
631
+ return !1;
632
+ o -= 1;
633
+ }
634
+ return !0;
635
+ }
636
+ var ue = /* @__PURE__ */ F(function(e, r) {
637
+ return Me(e, r, [], []);
638
+ });
639
+ function Wn(t, e, r) {
640
+ var n, a;
641
+ if (typeof t.indexOf == "function")
642
+ switch (typeof e) {
643
+ case "number":
644
+ if (e === 0) {
645
+ for (n = 1 / e; r < t.length; ) {
646
+ if (a = t[r], a === 0 && 1 / a === n)
647
+ return r;
648
+ r += 1;
649
+ }
650
+ return -1;
651
+ } else if (e !== e) {
652
+ for (; r < t.length; ) {
653
+ if (a = t[r], typeof a == "number" && a !== a)
654
+ return r;
655
+ r += 1;
656
+ }
657
+ return -1;
658
+ }
659
+ return t.indexOf(e, r);
660
+ case "string":
661
+ case "boolean":
662
+ case "function":
663
+ case "undefined":
664
+ return t.indexOf(e, r);
665
+ case "object":
666
+ if (e === null)
667
+ return t.indexOf(e, r);
668
+ }
669
+ for (; r < t.length; ) {
670
+ if (ue(t[r], e))
671
+ return r;
672
+ r += 1;
673
+ }
674
+ return -1;
675
+ }
676
+ function _r(t, e) {
677
+ return Wn(e, t, 0) >= 0;
678
+ }
679
+ function Qt(t, e) {
680
+ for (var r = 0, n = e.length, a = Array(n); r < n; )
681
+ a[r] = t(e[r]), r += 1;
682
+ return a;
683
+ }
684
+ function ge(t) {
685
+ var e = t.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0");
686
+ return '"' + e.replace(/"/g, '\\"') + '"';
687
+ }
688
+ var Ct = function(e) {
689
+ return (e < 10 ? "0" : "") + e;
690
+ }, Kn = typeof Date.prototype.toISOString == "function" ? function(e) {
691
+ return e.toISOString();
692
+ } : function(e) {
693
+ return e.getUTCFullYear() + "-" + Ct(e.getUTCMonth() + 1) + "-" + Ct(e.getUTCDate()) + "T" + Ct(e.getUTCHours()) + ":" + Ct(e.getUTCMinutes()) + ":" + Ct(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
694
+ };
695
+ function qn(t) {
696
+ return function() {
697
+ return !t.apply(this, arguments);
698
+ };
699
+ }
700
+ function Sr(t, e, r) {
701
+ for (var n = 0, a = r.length; n < a; )
702
+ e = t(e, r[n]), n += 1;
703
+ return e;
704
+ }
705
+ function Zn(t, e) {
706
+ for (var r = 0, n = e.length, a = []; r < n; )
707
+ t(e[r]) && (a[a.length] = e[r]), r += 1;
708
+ return a;
709
+ }
710
+ function te(t) {
711
+ return Object.prototype.toString.call(t) === "[object Object]";
712
+ }
713
+ var Xn = /* @__PURE__ */ function() {
714
+ function t(e, r) {
715
+ this.xf = r, this.f = e;
716
+ }
717
+ return t.prototype["@@transducer/init"] = kt.init, t.prototype["@@transducer/result"] = kt.result, t.prototype["@@transducer/step"] = function(e, r) {
718
+ return this.f(r) ? this.xf["@@transducer/step"](e, r) : e;
719
+ }, t;
720
+ }();
721
+ function Jn(t) {
722
+ return function(e) {
723
+ return new Xn(t, e);
724
+ };
725
+ }
726
+ var Tr = /* @__PURE__ */ F(
727
+ /* @__PURE__ */ ce(["fantasy-land/filter", "filter"], Jn, function(t, e) {
728
+ return te(e) ? Sr(function(r, n) {
729
+ return t(e[n]) && (r[n] = e[n]), r;
730
+ }, {}, xt(e)) : (
731
+ // else
732
+ Zn(t, e)
733
+ );
734
+ })
735
+ ), Qn = /* @__PURE__ */ F(function(e, r) {
736
+ return Tr(qn(e), r);
737
+ });
738
+ function Mr(t, e) {
739
+ var r = function(s) {
740
+ var i = e.concat([t]);
741
+ return _r(s, i) ? "<Circular>" : Mr(s, i);
742
+ }, n = function(o, s) {
743
+ return Qt(function(i) {
744
+ return ge(i) + ": " + r(o[i]);
745
+ }, s.slice().sort());
746
+ };
747
+ switch (Object.prototype.toString.call(t)) {
748
+ case "[object Arguments]":
749
+ return "(function() { return arguments; }(" + Qt(r, t).join(", ") + "))";
750
+ case "[object Array]":
751
+ return "[" + Qt(r, t).concat(n(t, Qn(function(o) {
752
+ return /^\d+$/.test(o);
753
+ }, xt(t)))).join(", ") + "]";
754
+ case "[object Boolean]":
755
+ return typeof t == "object" ? "new Boolean(" + r(t.valueOf()) + ")" : t.toString();
756
+ case "[object Date]":
757
+ return "new Date(" + (isNaN(t.valueOf()) ? r(NaN) : ge(Kn(t))) + ")";
758
+ case "[object Map]":
759
+ return "new Map(" + r(Array.from(t)) + ")";
760
+ case "[object Null]":
761
+ return "null";
762
+ case "[object Number]":
763
+ return typeof t == "object" ? "new Number(" + r(t.valueOf()) + ")" : 1 / t === -1 / 0 ? "-0" : t.toString(10);
764
+ case "[object Set]":
765
+ return "new Set(" + r(Array.from(t).sort()) + ")";
766
+ case "[object String]":
767
+ return typeof t == "object" ? "new String(" + r(t.valueOf()) + ")" : ge(t);
768
+ case "[object Undefined]":
769
+ return "undefined";
770
+ default:
771
+ if (typeof t.toString == "function") {
772
+ var a = t.toString();
773
+ if (a !== "[object Object]")
774
+ return a;
775
+ }
776
+ return "{" + n(t, xt(t)).join(", ") + "}";
777
+ }
778
+ }
779
+ var Ae = /* @__PURE__ */ W(function(e) {
780
+ return Mr(e, []);
781
+ }), to = /* @__PURE__ */ F(function(e, r) {
782
+ if (e === r)
783
+ return r;
784
+ function n(c, l) {
785
+ if (c > l != l > c)
786
+ return l > c ? l : c;
787
+ }
788
+ var a = n(e, r);
789
+ if (a !== void 0)
790
+ return a;
791
+ var o = n(typeof e, typeof r);
792
+ if (o !== void 0)
793
+ return o === typeof e ? e : r;
794
+ var s = Ae(e), i = n(s, Ae(r));
795
+ return i !== void 0 && i === s ? e : r;
796
+ }), eo = /* @__PURE__ */ function() {
797
+ function t(e, r) {
798
+ this.xf = r, this.f = e;
799
+ }
800
+ return t.prototype["@@transducer/init"] = kt.init, t.prototype["@@transducer/result"] = kt.result, t.prototype["@@transducer/step"] = function(e, r) {
801
+ return this.xf["@@transducer/step"](e, this.f(r));
802
+ }, t;
803
+ }(), ro = function(e) {
804
+ return function(r) {
805
+ return new eo(e, r);
806
+ };
807
+ }, no = /* @__PURE__ */ F(
808
+ /* @__PURE__ */ ce(["fantasy-land/map", "map"], ro, function(e, r) {
809
+ switch (Object.prototype.toString.call(r)) {
810
+ case "[object Function]":
811
+ return ie(r.length, function() {
812
+ return e.call(this, r.apply(this, arguments));
813
+ });
814
+ case "[object Object]":
815
+ return Sr(function(n, a) {
816
+ return n[a] = e(r[a]), n;
817
+ }, {}, xt(r));
818
+ default:
819
+ return Qt(e, r);
820
+ }
821
+ })
822
+ );
823
+ const _t = no, Dr = Number.isInteger || function(e) {
824
+ return e << 0 === e;
825
+ };
826
+ function fe(t) {
827
+ return Object.prototype.toString.call(t) === "[object String]";
828
+ }
829
+ var kr = /* @__PURE__ */ F(function(e, r) {
830
+ var n = e < 0 ? r.length + e : e;
831
+ return fe(r) ? r.charAt(n) : r[n];
832
+ }), oo = /* @__PURE__ */ F(function(e, r) {
833
+ if (r != null)
834
+ return Dr(e) ? kr(e, r) : r[e];
835
+ });
836
+ const Lt = oo;
837
+ var ao = /* @__PURE__ */ F(function(e, r) {
838
+ return _t(Lt(e), r);
839
+ }), so = /* @__PURE__ */ W(function(e) {
840
+ return le(e) ? !0 : !e || typeof e != "object" || fe(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
841
+ }), qe = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
842
+ function io(t, e, r) {
843
+ return function(a, o, s) {
844
+ if (so(s))
845
+ return t(a, o, s);
846
+ if (s == null)
847
+ return o;
848
+ if (typeof s["fantasy-land/reduce"] == "function")
849
+ return e(a, o, s, "fantasy-land/reduce");
850
+ if (s[qe] != null)
851
+ return r(a, o, s[qe]());
852
+ if (typeof s.next == "function")
853
+ return r(a, o, s);
854
+ if (typeof s.reduce == "function")
855
+ return e(a, o, s, "reduce");
856
+ throw new TypeError("reduce: list must be array or iterable");
857
+ };
858
+ }
859
+ function lo(t, e, r) {
860
+ for (var n = 0, a = r.length; n < a; ) {
861
+ if (e = t["@@transducer/step"](e, r[n]), e && e["@@transducer/reduced"]) {
862
+ e = e["@@transducer/value"];
863
+ break;
864
+ }
865
+ n += 1;
866
+ }
867
+ return t["@@transducer/result"](e);
868
+ }
869
+ var co = /* @__PURE__ */ F(function(e, r) {
870
+ return se(e.length, function() {
871
+ return e.apply(r, arguments);
872
+ });
873
+ });
874
+ function uo(t, e, r) {
875
+ for (var n = r.next(); !n.done; ) {
876
+ if (e = t["@@transducer/step"](e, n.value), e && e["@@transducer/reduced"]) {
877
+ e = e["@@transducer/value"];
878
+ break;
879
+ }
880
+ n = r.next();
881
+ }
882
+ return t["@@transducer/result"](e);
883
+ }
884
+ function fo(t, e, r, n) {
885
+ return t["@@transducer/result"](r[n](co(t["@@transducer/step"], t), e));
886
+ }
887
+ var Lr = /* @__PURE__ */ io(lo, fo, uo), po = /* @__PURE__ */ function() {
888
+ function t(e) {
889
+ this.f = e;
890
+ }
891
+ return t.prototype["@@transducer/init"] = function() {
892
+ throw new Error("init not implemented on XWrap");
893
+ }, t.prototype["@@transducer/result"] = function(e) {
894
+ return e;
895
+ }, t.prototype["@@transducer/step"] = function(e, r) {
896
+ return this.f(e, r);
897
+ }, t;
898
+ }();
899
+ function Er(t) {
900
+ return new po(t);
901
+ }
902
+ var mo = /* @__PURE__ */ pt(function(t, e, r) {
903
+ return Lr(typeof t == "function" ? Er(t) : t, e, r);
904
+ });
905
+ const Ir = mo;
906
+ var ho = /* @__PURE__ */ W(function(e) {
907
+ return function() {
908
+ return e;
909
+ };
910
+ });
911
+ const Ze = ho;
912
+ var go = /* @__PURE__ */ W(function(e) {
913
+ return ie(Ir(to, 0, ao("length", e)), function() {
914
+ for (var r = 0, n = e.length; r < n; ) {
915
+ if (e[r].apply(this, arguments))
916
+ return !0;
917
+ r += 1;
918
+ }
919
+ return !1;
920
+ });
921
+ });
922
+ const yo = go;
923
+ var vo = /* @__PURE__ */ pt(function(e, r, n) {
924
+ var a = e(r), o = e(n);
925
+ return a < o ? -1 : a > o ? 1 : 0;
926
+ });
927
+ const zr = vo;
928
+ function bo(t) {
929
+ var e = Object.prototype.toString.call(t);
930
+ return e === "[object Function]" || e === "[object AsyncFunction]" || e === "[object GeneratorFunction]" || e === "[object AsyncGeneratorFunction]";
931
+ }
932
+ function wo(t) {
933
+ return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
934
+ }
935
+ function De(t, e, r) {
936
+ if (r || (r = new Oo()), Po(t))
937
+ return t;
938
+ var n = function(o) {
939
+ var s = r.get(t);
940
+ if (s)
941
+ return s;
942
+ r.set(t, o);
943
+ for (var i in t)
944
+ Object.prototype.hasOwnProperty.call(t, i) && (o[i] = e ? De(t[i], !0, r) : t[i]);
945
+ return o;
946
+ };
947
+ switch (Oe(t)) {
948
+ case "Object":
949
+ return n(Object.create(Object.getPrototypeOf(t)));
950
+ case "Array":
951
+ return n([]);
952
+ case "Date":
953
+ return new Date(t.valueOf());
954
+ case "RegExp":
955
+ return wo(t);
956
+ case "Int8Array":
957
+ case "Uint8Array":
958
+ case "Uint8ClampedArray":
959
+ case "Int16Array":
960
+ case "Uint16Array":
961
+ case "Int32Array":
962
+ case "Uint32Array":
963
+ case "Float32Array":
964
+ case "Float64Array":
965
+ case "BigInt64Array":
966
+ case "BigUint64Array":
967
+ return t.slice();
968
+ default:
969
+ return t;
970
+ }
971
+ }
972
+ function Po(t) {
973
+ var e = typeof t;
974
+ return t == null || e != "object" && e != "function";
975
+ }
976
+ var Oo = /* @__PURE__ */ function() {
977
+ function t() {
978
+ this.map = {}, this.length = 0;
979
+ }
980
+ return t.prototype.set = function(e, r) {
981
+ const n = this.hash(e);
982
+ let a = this.map[n];
983
+ a || (this.map[n] = a = []), a.push([e, r]), this.length += 1;
984
+ }, t.prototype.hash = function(e) {
985
+ let r = [];
986
+ for (var n in e)
987
+ r.push(Object.prototype.toString.call(e[n]));
988
+ return r.join();
989
+ }, t.prototype.get = function(e) {
990
+ if (this.length <= 180) {
991
+ for (const a in this.map) {
992
+ const o = this.map[a];
993
+ for (let s = 0; s < o.length; s += 1) {
994
+ const i = o[s];
995
+ if (i[0] === e)
996
+ return i[1];
997
+ }
998
+ }
999
+ return;
1000
+ }
1001
+ const r = this.hash(e), n = this.map[r];
1002
+ if (n)
1003
+ for (let a = 0; a < n.length; a += 1) {
1004
+ const o = n[a];
1005
+ if (o[0] === e)
1006
+ return o[1];
1007
+ }
1008
+ }, t;
1009
+ }();
1010
+ function Ao(t, e) {
1011
+ return function() {
1012
+ return e.call(this, t.apply(this, arguments));
1013
+ };
1014
+ }
1015
+ function ke(t, e) {
1016
+ return function() {
1017
+ var r = arguments.length;
1018
+ if (r === 0)
1019
+ return e();
1020
+ var n = arguments[r - 1];
1021
+ return le(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
1022
+ };
1023
+ }
1024
+ var $o = /* @__PURE__ */ pt(
1025
+ /* @__PURE__ */ ke("slice", function(e, r, n) {
1026
+ return Array.prototype.slice.call(n, e, r);
1027
+ })
1028
+ ), xo = /* @__PURE__ */ W(
1029
+ /* @__PURE__ */ ke(
1030
+ "tail",
1031
+ /* @__PURE__ */ $o(1, 1 / 0)
1032
+ )
1033
+ );
1034
+ const _o = xo;
1035
+ function Nr() {
1036
+ if (arguments.length === 0)
1037
+ throw new Error("pipe requires at least one argument");
1038
+ return se(arguments[0].length, Ir(Ao, arguments[0], _o(arguments)));
1039
+ }
1040
+ var So = /* @__PURE__ */ W(function(e) {
1041
+ return fe(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
1042
+ });
1043
+ const To = So;
1044
+ function Cr() {
1045
+ if (arguments.length === 0)
1046
+ throw new Error("compose requires at least one argument");
1047
+ return Nr.apply(this, To(arguments));
1048
+ }
1049
+ var Mo = /* @__PURE__ */ function() {
1050
+ function t(e, r, n, a) {
1051
+ this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
1052
+ }
1053
+ return t.prototype["@@transducer/init"] = kt.init, t.prototype["@@transducer/result"] = function(e) {
1054
+ var r;
1055
+ for (r in this.inputs)
1056
+ if (ut(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
1057
+ e = e["@@transducer/value"];
1058
+ break;
1059
+ }
1060
+ return this.inputs = null, this.xf["@@transducer/result"](e);
1061
+ }, t.prototype["@@transducer/step"] = function(e, r) {
1062
+ var n = this.keyFn(r);
1063
+ return this.inputs[n] = this.inputs[n] || [n, De(this.valueAcc, !1)], this.inputs[n][1] = this.valueFn(this.inputs[n][1], r), e;
1064
+ }, t;
1065
+ }();
1066
+ function Do(t, e, r) {
1067
+ return function(n) {
1068
+ return new Mo(t, e, r, n);
1069
+ };
1070
+ }
1071
+ var ko = /* @__PURE__ */ Te(
1072
+ 4,
1073
+ [],
1074
+ /* @__PURE__ */ ce([], Do, function(e, r, n, a) {
1075
+ var o = Er(function(s, i) {
1076
+ var c = n(i), l = e(ut(c, s) ? s[c] : De(r, !1), i);
1077
+ return l && l["@@transducer/reduced"] ? $r(s) : (s[c] = l, s);
1078
+ });
1079
+ return Lr(o, {}, a);
1080
+ })
1081
+ ), Lo = /* @__PURE__ */ pt(function(e, r, n) {
1082
+ var a = e(r), o = e(n);
1083
+ return a > o ? -1 : a < o ? 1 : 0;
1084
+ });
1085
+ const Eo = Lo;
1086
+ function Io(t) {
1087
+ var e = Object.prototype.toString.call(t);
1088
+ 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]";
1089
+ }
1090
+ var zo = /* @__PURE__ */ W(function(e) {
1091
+ 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() : le(e) ? [] : fe(e) ? "" : te(e) ? {} : xr(e) ? function() {
1092
+ return arguments;
1093
+ }() : Io(e) ? e.constructor.from("") : void 0;
1094
+ }), No = /* @__PURE__ */ function() {
1095
+ function t(e, r) {
1096
+ this.xf = r, this.f = e, this.idx = -1, this.found = !1;
1097
+ }
1098
+ return t.prototype["@@transducer/init"] = kt.init, t.prototype["@@transducer/result"] = function(e) {
1099
+ return this.found || (e = this.xf["@@transducer/step"](e, -1)), this.xf["@@transducer/result"](e);
1100
+ }, t.prototype["@@transducer/step"] = function(e, r) {
1101
+ return this.idx += 1, this.f(r) && (this.found = !0, e = $r(this.xf["@@transducer/step"](e, this.idx))), e;
1102
+ }, t;
1103
+ }();
1104
+ function Co(t) {
1105
+ return function(e) {
1106
+ return new No(t, e);
1107
+ };
1108
+ }
1109
+ var Go = /* @__PURE__ */ F(
1110
+ /* @__PURE__ */ ce([], Co, function(e, r) {
1111
+ for (var n = 0, a = r.length; n < a; ) {
1112
+ if (e(r[n]))
1113
+ return n;
1114
+ n += 1;
1115
+ }
1116
+ return -1;
1117
+ })
1118
+ );
1119
+ const Ro = Go;
1120
+ var jo = /* @__PURE__ */ F(
1121
+ /* @__PURE__ */ ke(
1122
+ "groupBy",
1123
+ /* @__PURE__ */ ko(function(t, e) {
1124
+ return t.push(e), t;
1125
+ }, [])
1126
+ )
1127
+ );
1128
+ const Bo = jo;
1129
+ var Fo = /* @__PURE__ */ pt(function(e, r, n) {
1130
+ return ie(Math.max(e.length, r.length, n.length), function() {
1131
+ return e.apply(this, arguments) ? r.apply(this, arguments) : n.apply(this, arguments);
1132
+ });
1133
+ });
1134
+ const Vo = Fo;
1135
+ var Ho = /* @__PURE__ */ F(_r);
1136
+ const Yo = Ho;
1137
+ var Uo = /* @__PURE__ */ F(function(e, r) {
1138
+ return ie(e + 1, function() {
1139
+ var n = arguments[e];
1140
+ if (n != null && bo(n[r]))
1141
+ return n[r].apply(n, Array.prototype.slice.call(arguments, 0, e));
1142
+ throw new TypeError(Ae(n) + ' does not have a method named "' + r + '"');
1143
+ });
1144
+ });
1145
+ const Gr = Uo;
1146
+ var Wo = /* @__PURE__ */ W(function(e) {
1147
+ return e != null && ue(e, zo(e));
1148
+ });
1149
+ const Ko = Wo;
1150
+ var qo = /* @__PURE__ */ F(function(e, r) {
1151
+ return e.map(function(n) {
1152
+ for (var a = r, o = 0, s; o < n.length; ) {
1153
+ if (a == null)
1154
+ return;
1155
+ s = n[o], a = Dr(s) ? kr(s, a) : a[s], o += 1;
1156
+ }
1157
+ return a;
1158
+ });
1159
+ }), Zo = /* @__PURE__ */ F(function(e, r) {
1160
+ return qo([e], r)[0];
1161
+ });
1162
+ const Xo = Zo;
1163
+ var Jo = /* @__PURE__ */ pt(function(e, r, n) {
1164
+ var a = {}, o;
1165
+ r = r || {}, n = n || {};
1166
+ for (o in r)
1167
+ ut(o, r) && (a[o] = ut(o, n) ? e(o, r[o], n[o]) : r[o]);
1168
+ for (o in n)
1169
+ ut(o, n) && !ut(o, a) && (a[o] = n[o]);
1170
+ return a;
1171
+ }), Qo = /* @__PURE__ */ pt(function t(e, r, n) {
1172
+ return Jo(function(a, o, s) {
1173
+ return te(o) && te(s) ? t(e, o, s) : e(a, o, s);
1174
+ }, r, n);
1175
+ }), ta = /* @__PURE__ */ F(function(e, r) {
1176
+ return Qo(function(n, a, o) {
1177
+ return o;
1178
+ }, e, r);
1179
+ });
1180
+ const ea = ta;
1181
+ var ra = /* @__PURE__ */ F(function(e, r) {
1182
+ for (var n = {}, a = {}, o = 0, s = e.length; o < s; )
1183
+ a[e[o]] = 1, o += 1;
1184
+ for (var i in r)
1185
+ a.hasOwnProperty(i) || (n[i] = r[i]);
1186
+ return n;
1187
+ });
1188
+ const na = ra;
1189
+ var oa = /* @__PURE__ */ pt(function(e, r, n) {
1190
+ return ue(e, Lt(r, n));
1191
+ });
1192
+ const aa = oa;
1193
+ var sa = /* @__PURE__ */ pt(function(e, r, n) {
1194
+ return e(Lt(r, n));
1195
+ });
1196
+ const ia = sa;
1197
+ var la = /* @__PURE__ */ F(function(e, r) {
1198
+ return Array.prototype.slice.call(r, 0).sort(function(n, a) {
1199
+ for (var o = 0, s = 0; o === 0 && s < e.length; )
1200
+ o = e[s](n, a), s += 1;
1201
+ return o;
1202
+ });
1203
+ });
1204
+ const Rr = la;
1205
+ var ca = /* @__PURE__ */ Gr(1, "split");
1206
+ const Yt = ca;
1207
+ var ua = /* @__PURE__ */ Gr(0, "toLowerCase");
1208
+ const fa = ua;
1209
+ var Gt = `
1210
+ \v\f\r                 \u2028\u2029\uFEFF`, da = "​", pa = typeof String.prototype.trim == "function", ma = /* @__PURE__ */ W(!pa || /* @__PURE__ */ Gt.trim() || !/* @__PURE__ */ da.trim() ? function(e) {
1211
+ var r = new RegExp("^[" + Gt + "][" + Gt + "]*"), n = new RegExp("[" + Gt + "][" + Gt + "]*$");
1212
+ return e.replace(r, "").replace(n, "");
1213
+ } : function(e) {
1214
+ return e.trim();
1215
+ });
1216
+ const ee = ma, jr = Symbol("I18nContext"), J = gr({
1217
+ messages: {},
1218
+ locale: "",
1219
+ fallbackLocale: ""
1220
+ }), ha = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
1221
+ J.messages = t, J.locale = e, J.fallbackLocale = r;
1222
+ const n = (c, l = {}) => {
1223
+ const m = !Ko(l), u = _t(ee, Yt(".", c));
1224
+ return Z(() => {
1225
+ const f = Br(u);
1226
+ return m ? ya(f, l) : f;
1227
+ }).value;
1228
+ }, a = (c) => {
1229
+ const l = _t(ee, Yt(".", c));
1230
+ return !!$e(J.locale, l, J.messages);
1231
+ }, o = (c) => {
1232
+ J.locale = c;
1233
+ }, i = {
1234
+ locale: Z({
1235
+ get() {
1236
+ return J.locale;
1237
+ },
1238
+ set(c) {
1239
+ J.locale = c;
1240
+ }
1241
+ }),
1242
+ setLocale: o,
1243
+ translate: n,
1244
+ hasTranlation: a
1245
+ };
1246
+ return vr(jr, i), {
1247
+ translate: n
1248
+ };
1249
+ }, Wt = (t) => {
1250
+ t && (J.messages = t.messages, J.locale = t.locale, J.fallbackLocale = t.fallbackLocale);
1251
+ const e = ga();
1252
+ return {
1253
+ locale: e.locale,
1254
+ t: e.translate,
1255
+ setLocale: e.setLocale,
1256
+ hasTranlation: e.hasTranlation
1257
+ };
1258
+ }, ga = () => {
1259
+ const t = br(jr, null);
1260
+ if (t === null)
1261
+ throw new Error("Privider is missing a parent component.");
1262
+ return t;
1263
+ }, Br = (t = []) => {
1264
+ let e = $e(J.locale, t, J.messages);
1265
+ return !e && J.fallbackLocale && (e = $e(J.fallbackLocale, t, J.messages)), e || t.join(".");
1266
+ };
1267
+ function $e(t, e, r) {
1268
+ return Xo([t, ...e], r);
1269
+ }
1270
+ const ya = function(t, e) {
1271
+ return t.replace(/\{(\w+)\}/g, function(r, n) {
1272
+ return e[n];
1273
+ });
1274
+ }, va = yr({
1275
+ props: {
1276
+ tag: {
1277
+ type: String,
1278
+ default: "div"
1279
+ },
1280
+ path: {
1281
+ type: String,
1282
+ defult: ""
1283
+ }
1284
+ },
1285
+ setup(t, { slots: e }) {
1286
+ const r = _t(ee, Yt(".", t.path)), n = Br(r), a = Yt(/{|}/, n), o = Object.keys(e).map((s) => {
1287
+ const i = a.indexOf(s);
1288
+ return i > -1 && (a[i] = e[s]()[0]), a;
1289
+ });
1290
+ return () => gn(t.tag, o);
1291
+ }
1292
+ }), ba = "http://localhost:3333/vbr", wa = "https://www.jegkorongszovetseg.hu/event/game/", Pa = "https://jegkorongszovetseg.hu/assets/images/player_blank.png", Oa = "https://www.ersteliga.hu/stats/players#/player/", Aa = "https://www.ersteliga.hu/stats/teams#/team/3314/21096?name=", yt = "original", y = "descend", C = "ascend", $a = (/* @__PURE__ */ new Map()).set("hu", "hu-hu").set("en", "hu-gb"), xa = (/* @__PURE__ */ new Map()).set("Europe/Budapest", { countryLabelKey: "hungary", timezone: "Europe/Budapest" }).set("Europe/Bucharest", { countryLabelKey: "romania", timezone: "Europe/Bucharest" }), ji = "/v1/playersGoaliePeriod", Bi = "/v1/playersGoalieUnderPeriod", Fi = 1e3 * 60 * 5, _a = 1e3, Sa = {
1293
+ "aria-hidden": "true",
1294
+ focusable: "false",
1295
+ "data-prefix": "fas",
1296
+ "data-icon": "sort",
1297
+ class: "svg-inline--fa fa-sort fa-w-10",
1298
+ role: "img",
1299
+ xmlns: "http://www.w3.org/2000/svg",
1300
+ viewBox: "0 0 320 512"
1301
+ }, Ta = /* @__PURE__ */ R("path", {
1302
+ fill: "currentColor",
1303
+ d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"
1304
+ }, null, -1), Ma = [
1305
+ Ta
1306
+ ];
1307
+ function Da(t, e) {
1308
+ return L(), z("svg", Sa, Ma);
1309
+ }
1310
+ const Xe = { render: Da }, ka = {
1311
+ "aria-hidden": "true",
1312
+ focusable: "false",
1313
+ "data-prefix": "fas",
1314
+ "data-icon": "sort-down",
1315
+ class: "svg-inline--fa fa-sort-down fa-w-10",
1316
+ role: "img",
1317
+ xmlns: "http://www.w3.org/2000/svg",
1318
+ viewBox: "0 0 320 512"
1319
+ }, La = /* @__PURE__ */ R("path", {
1320
+ fill: "currentColor",
1321
+ d: "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"
1322
+ }, null, -1), Ea = [
1323
+ La
1324
+ ];
1325
+ function Ia(t, e) {
1326
+ return L(), z("svg", ka, Ea);
1327
+ }
1328
+ const Je = { render: Ia };
1329
+ function Kt(t) {
1330
+ return t.split("-")[1];
1331
+ }
1332
+ function Le(t) {
1333
+ return t === "y" ? "height" : "width";
1334
+ }
1335
+ function At(t) {
1336
+ return t.split("-")[0];
1337
+ }
1338
+ function qt(t) {
1339
+ return ["top", "bottom"].includes(At(t)) ? "x" : "y";
1340
+ }
1341
+ function Qe(t, e, r) {
1342
+ let { reference: n, floating: a } = t;
1343
+ const o = n.x + n.width / 2 - a.width / 2, s = n.y + n.height / 2 - a.height / 2, i = qt(e), c = Le(i), l = n[c] / 2 - a[c] / 2, m = i === "x";
1344
+ let u;
1345
+ switch (At(e)) {
1346
+ case "top":
1347
+ u = { x: o, y: n.y - a.height };
1348
+ break;
1349
+ case "bottom":
1350
+ u = { x: o, y: n.y + n.height };
1351
+ break;
1352
+ case "right":
1353
+ u = { x: n.x + n.width, y: s };
1354
+ break;
1355
+ case "left":
1356
+ u = { x: n.x - a.width, y: s };
1357
+ break;
1358
+ default:
1359
+ u = { x: n.x, y: n.y };
1360
+ }
1361
+ switch (Kt(e)) {
1362
+ case "start":
1363
+ u[i] -= l * (r && m ? -1 : 1);
1364
+ break;
1365
+ case "end":
1366
+ u[i] += l * (r && m ? -1 : 1);
1367
+ }
1368
+ return u;
1369
+ }
1370
+ const za = async (t, e, r) => {
1371
+ const { placement: n = "bottom", strategy: a = "absolute", middleware: o = [], platform: s } = r, i = o.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(e));
1372
+ let l = await s.getElementRects({ reference: t, floating: e, strategy: a }), { x: m, y: u } = Qe(l, n, c), d = n, f = {}, h = 0;
1373
+ for (let p = 0; p < i.length; p++) {
1374
+ const { name: g, fn: O } = i[p], { x: A, y: _, data: D, reset: k } = await O({ x: m, y: u, initialPlacement: n, placement: d, strategy: a, middlewareData: f, rects: l, platform: s, elements: { reference: t, floating: e } });
1375
+ m = A ?? m, u = _ ?? u, f = { ...f, [g]: { ...f[g], ...D } }, k && h <= 50 && (h++, typeof k == "object" && (k.placement && (d = k.placement), k.rects && (l = k.rects === !0 ? await s.getElementRects({ reference: t, floating: e, strategy: a }) : k.rects), { x: m, y: u } = Qe(l, d, c)), p = -1);
1376
+ }
1377
+ return { x: m, y: u, placement: d, strategy: a, middlewareData: f };
1378
+ };
1379
+ function Fr(t) {
1380
+ return typeof t != "number" ? function(e) {
1381
+ return { top: 0, right: 0, bottom: 0, left: 0, ...e };
1382
+ }(t) : { top: t, right: t, bottom: t, left: t };
1383
+ }
1384
+ function re(t) {
1385
+ return { ...t, top: t.y, left: t.x, right: t.x + t.width, bottom: t.y + t.height };
1386
+ }
1387
+ async function Vr(t, e) {
1388
+ var r;
1389
+ e === void 0 && (e = {});
1390
+ const { x: n, y: a, platform: o, rects: s, elements: i, strategy: c } = t, { boundary: l = "clippingAncestors", rootBoundary: m = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = e, h = Fr(f), p = i[d ? u === "floating" ? "reference" : "floating" : u], g = re(await o.getClippingRect({ element: (r = await (o.isElement == null ? void 0 : o.isElement(p))) == null || r ? p : p.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)), boundary: l, rootBoundary: m, strategy: c })), O = u === "floating" ? { ...s.floating, x: n, y: a } : s.reference, A = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), _ = await (o.isElement == null ? void 0 : o.isElement(A)) && await (o.getScale == null ? void 0 : o.getScale(A)) || { x: 1, y: 1 }, D = re(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: O, offsetParent: A, strategy: c }) : O);
1391
+ return { top: (g.top - D.top + h.top) / _.y, bottom: (D.bottom - g.bottom + h.bottom) / _.y, left: (g.left - D.left + h.left) / _.x, right: (D.right - g.right + h.right) / _.x };
1392
+ }
1393
+ const Na = Math.min, Ca = Math.max;
1394
+ function xe(t, e, r) {
1395
+ return Ca(t, Na(e, r));
1396
+ }
1397
+ const tr = (t) => ({ name: "arrow", options: t, async fn(e) {
1398
+ const { element: r, padding: n = 0 } = t || {}, { x: a, y: o, placement: s, rects: i, platform: c, elements: l } = e;
1399
+ if (r == null)
1400
+ return {};
1401
+ const m = Fr(n), u = { x: a, y: o }, d = qt(s), f = Le(d), h = await c.getDimensions(r), p = d === "y", g = p ? "top" : "left", O = p ? "bottom" : "right", A = p ? "clientHeight" : "clientWidth", _ = i.reference[f] + i.reference[d] - u[d] - i.floating[f], D = u[d] - i.reference[d], k = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(r));
1402
+ let N = k ? k[A] : 0;
1403
+ N && await (c.isElement == null ? void 0 : c.isElement(k)) || (N = l.floating[A] || i.floating[f]);
1404
+ const j = _ / 2 - D / 2, U = m[g], E = N - h[f] - m[O], T = N / 2 - h[f] / 2 + j, G = xe(U, T, E), K = Kt(s) != null && T != G && i.reference[f] / 2 - (T < U ? m[g] : m[O]) - h[f] / 2 < 0;
1405
+ return { [d]: u[d] - (K ? T < U ? U - T : E - T : 0), data: { [d]: G, centerOffset: T - G } };
1406
+ } }), Ga = ["top", "right", "bottom", "left"];
1407
+ Ga.reduce((t, e) => t.concat(e, e + "-start", e + "-end"), []);
1408
+ const Ra = { left: "right", right: "left", bottom: "top", top: "bottom" };
1409
+ function ne(t) {
1410
+ return t.replace(/left|right|bottom|top/g, (e) => Ra[e]);
1411
+ }
1412
+ function ja(t, e, r) {
1413
+ r === void 0 && (r = !1);
1414
+ const n = Kt(t), a = qt(t), o = Le(a);
1415
+ let s = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
1416
+ return e.reference[o] > e.floating[o] && (s = ne(s)), { main: s, cross: ne(s) };
1417
+ }
1418
+ const Ba = { start: "end", end: "start" };
1419
+ function ye(t) {
1420
+ return t.replace(/start|end/g, (e) => Ba[e]);
1421
+ }
1422
+ const Fa = function(t) {
1423
+ return t === void 0 && (t = {}), { name: "flip", options: t, async fn(e) {
1424
+ var r;
1425
+ const { placement: n, middlewareData: a, rects: o, initialPlacement: s, platform: i, elements: c } = e, { mainAxis: l = !0, crossAxis: m = !0, fallbackPlacements: u, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: f = "none", flipAlignment: h = !0, ...p } = t, g = At(n), O = At(s) === s, A = await (i.isRTL == null ? void 0 : i.isRTL(c.floating)), _ = u || (O || !h ? [ne(s)] : function(G) {
1426
+ const K = ne(G);
1427
+ return [ye(G), K, ye(K)];
1428
+ }(s));
1429
+ u || f === "none" || _.push(...function(G, K, x, P) {
1430
+ const w = Kt(G);
1431
+ let $ = function(v, S, M) {
1432
+ const I = ["left", "right"], Y = ["right", "left"], V = ["top", "bottom"], q = ["bottom", "top"];
1433
+ switch (v) {
1434
+ case "top":
1435
+ case "bottom":
1436
+ return M ? S ? Y : I : S ? I : Y;
1437
+ case "left":
1438
+ case "right":
1439
+ return S ? V : q;
1440
+ default:
1441
+ return [];
1442
+ }
1443
+ }(At(G), x === "start", P);
1444
+ return w && ($ = $.map((v) => v + "-" + w), K && ($ = $.concat($.map(ye)))), $;
1445
+ }(s, h, f, A));
1446
+ const D = [s, ..._], k = await Vr(e, p), N = [];
1447
+ let j = ((r = a.flip) == null ? void 0 : r.overflows) || [];
1448
+ if (l && N.push(k[g]), m) {
1449
+ const { main: G, cross: K } = ja(n, o, A);
1450
+ N.push(k[G], k[K]);
1451
+ }
1452
+ if (j = [...j, { placement: n, overflows: N }], !N.every((G) => G <= 0)) {
1453
+ var U, E;
1454
+ const G = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, K = D[G];
1455
+ if (K)
1456
+ return { data: { index: G, overflows: j }, reset: { placement: K } };
1457
+ let x = (E = j.filter((P) => P.overflows[0] <= 0).sort((P, w) => P.overflows[1] - w.overflows[1])[0]) == null ? void 0 : E.placement;
1458
+ if (!x)
1459
+ switch (d) {
1460
+ case "bestFit": {
1461
+ var T;
1462
+ const P = (T = j.map((w) => [w.placement, w.overflows.filter(($) => $ > 0).reduce(($, v) => $ + v, 0)]).sort((w, $) => w[1] - $[1])[0]) == null ? void 0 : T[0];
1463
+ P && (x = P);
1464
+ break;
1465
+ }
1466
+ case "initialPlacement":
1467
+ x = s;
1468
+ }
1469
+ if (n !== x)
1470
+ return { reset: { placement: x } };
1471
+ }
1472
+ return {};
1473
+ } };
1474
+ }, Va = function(t) {
1475
+ return t === void 0 && (t = 0), { name: "offset", options: t, async fn(e) {
1476
+ const { x: r, y: n } = e, a = await async function(o, s) {
1477
+ const { placement: i, platform: c, elements: l } = o, m = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), u = At(i), d = Kt(i), f = qt(i) === "x", h = ["left", "top"].includes(u) ? -1 : 1, p = m && f ? -1 : 1, g = typeof s == "function" ? s(o) : s;
1478
+ let { mainAxis: O, crossAxis: A, alignmentAxis: _ } = typeof g == "number" ? { mainAxis: g, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...g };
1479
+ return d && typeof _ == "number" && (A = d === "end" ? -1 * _ : _), f ? { x: A * p, y: O * h } : { x: O * h, y: A * p };
1480
+ }(e, t);
1481
+ return { x: r + a.x, y: n + a.y, data: a };
1482
+ } };
1483
+ };
1484
+ function Ha(t) {
1485
+ return t === "x" ? "y" : "x";
1486
+ }
1487
+ const Ya = function(t) {
1488
+ return t === void 0 && (t = {}), { name: "shift", options: t, async fn(e) {
1489
+ const { x: r, y: n, placement: a } = e, { mainAxis: o = !0, crossAxis: s = !1, limiter: i = { fn: (g) => {
1490
+ let { x: O, y: A } = g;
1491
+ return { x: O, y: A };
1492
+ } }, ...c } = t, l = { x: r, y: n }, m = await Vr(e, c), u = qt(At(a)), d = Ha(u);
1493
+ let f = l[u], h = l[d];
1494
+ if (o) {
1495
+ const g = u === "y" ? "bottom" : "right";
1496
+ f = xe(f + m[u === "y" ? "top" : "left"], f, f - m[g]);
1497
+ }
1498
+ if (s) {
1499
+ const g = d === "y" ? "bottom" : "right";
1500
+ h = xe(h + m[d === "y" ? "top" : "left"], h, h - m[g]);
1501
+ }
1502
+ const p = i.fn({ ...e, [u]: f, [d]: h });
1503
+ return { ...p, data: { x: p.x - r, y: p.y - n } };
1504
+ } };
1505
+ };
1506
+ function at(t) {
1507
+ var e;
1508
+ return ((e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1509
+ }
1510
+ function st(t) {
1511
+ return at(t).getComputedStyle(t);
1512
+ }
1513
+ function Hr(t) {
1514
+ return t instanceof at(t).Node;
1515
+ }
1516
+ function wt(t) {
1517
+ return Hr(t) ? (t.nodeName || "").toLowerCase() : "";
1518
+ }
1519
+ function it(t) {
1520
+ return t instanceof at(t).HTMLElement;
1521
+ }
1522
+ function nt(t) {
1523
+ return t instanceof at(t).Element;
1524
+ }
1525
+ function er(t) {
1526
+ return typeof ShadowRoot > "u" ? !1 : t instanceof at(t).ShadowRoot || t instanceof ShadowRoot;
1527
+ }
1528
+ function Ut(t) {
1529
+ const { overflow: e, overflowX: r, overflowY: n, display: a } = st(t);
1530
+ return /auto|scroll|overlay|hidden|clip/.test(e + n + r) && !["inline", "contents"].includes(a);
1531
+ }
1532
+ function Ua(t) {
1533
+ return ["table", "td", "th"].includes(wt(t));
1534
+ }
1535
+ function _e(t) {
1536
+ const e = Ee(), r = st(t);
1537
+ return r.transform !== "none" || r.perspective !== "none" || !e && !!r.backdropFilter && r.backdropFilter !== "none" || !e && !!r.filter && r.filter !== "none" || ["transform", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
1538
+ }
1539
+ function Ee() {
1540
+ return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
1541
+ }
1542
+ function de(t) {
1543
+ return ["html", "body", "#document"].includes(wt(t));
1544
+ }
1545
+ const rr = Math.min, Ft = Math.max, oe = Math.round;
1546
+ function Yr(t) {
1547
+ const e = st(t);
1548
+ let r = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
1549
+ const a = it(t), o = a ? t.offsetWidth : r, s = a ? t.offsetHeight : n, i = oe(r) !== o || oe(n) !== s;
1550
+ return i && (r = o, n = s), { width: r, height: n, fallback: i };
1551
+ }
1552
+ function Ur(t) {
1553
+ return nt(t) ? t : t.contextElement;
1554
+ }
1555
+ const Wr = { x: 1, y: 1 };
1556
+ function Dt(t) {
1557
+ const e = Ur(t);
1558
+ if (!it(e))
1559
+ return Wr;
1560
+ const r = e.getBoundingClientRect(), { width: n, height: a, fallback: o } = Yr(e);
1561
+ let s = (o ? oe(r.width) : r.width) / n, i = (o ? oe(r.height) : r.height) / a;
1562
+ return s && Number.isFinite(s) || (s = 1), i && Number.isFinite(i) || (i = 1), { x: s, y: i };
1563
+ }
1564
+ const nr = { x: 0, y: 0 };
1565
+ function Kr(t, e, r) {
1566
+ var n, a;
1567
+ if (e === void 0 && (e = !0), !Ee())
1568
+ return nr;
1569
+ const o = t ? at(t) : window;
1570
+ return !r || e && r !== o ? nr : { x: ((n = o.visualViewport) == null ? void 0 : n.offsetLeft) || 0, y: ((a = o.visualViewport) == null ? void 0 : a.offsetTop) || 0 };
1571
+ }
1572
+ function St(t, e, r, n) {
1573
+ e === void 0 && (e = !1), r === void 0 && (r = !1);
1574
+ const a = t.getBoundingClientRect(), o = Ur(t);
1575
+ let s = Wr;
1576
+ e && (n ? nt(n) && (s = Dt(n)) : s = Dt(t));
1577
+ const i = Kr(o, r, n);
1578
+ let c = (a.left + i.x) / s.x, l = (a.top + i.y) / s.y, m = a.width / s.x, u = a.height / s.y;
1579
+ if (o) {
1580
+ const d = at(o), f = n && nt(n) ? at(n) : n;
1581
+ let h = d.frameElement;
1582
+ for (; h && n && f !== d; ) {
1583
+ const p = Dt(h), g = h.getBoundingClientRect(), O = getComputedStyle(h);
1584
+ g.x += (h.clientLeft + parseFloat(O.paddingLeft)) * p.x, g.y += (h.clientTop + parseFloat(O.paddingTop)) * p.y, c *= p.x, l *= p.y, m *= p.x, u *= p.y, c += g.x, l += g.y, h = at(h).frameElement;
1585
+ }
1586
+ }
1587
+ return re({ width: m, height: u, x: c, y: l });
1588
+ }
1589
+ function vt(t) {
1590
+ return ((Hr(t) ? t.ownerDocument : t.document) || window.document).documentElement;
1591
+ }
1592
+ function pe(t) {
1593
+ return nt(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset };
1594
+ }
1595
+ function qr(t) {
1596
+ return St(vt(t)).left + pe(t).scrollLeft;
1597
+ }
1598
+ function Et(t) {
1599
+ if (wt(t) === "html")
1600
+ return t;
1601
+ const e = t.assignedSlot || t.parentNode || er(t) && t.host || vt(t);
1602
+ return er(e) ? e.host : e;
1603
+ }
1604
+ function Zr(t) {
1605
+ const e = Et(t);
1606
+ return de(e) ? e.ownerDocument.body : it(e) && Ut(e) ? e : Zr(e);
1607
+ }
1608
+ function Vt(t, e) {
1609
+ var r;
1610
+ e === void 0 && (e = []);
1611
+ const n = Zr(t), a = n === ((r = t.ownerDocument) == null ? void 0 : r.body), o = at(n);
1612
+ return a ? e.concat(o, o.visualViewport || [], Ut(n) ? n : []) : e.concat(n, Vt(n));
1613
+ }
1614
+ function or(t, e, r) {
1615
+ let n;
1616
+ if (e === "viewport")
1617
+ n = function(a, o) {
1618
+ const s = at(a), i = vt(a), c = s.visualViewport;
1619
+ let l = i.clientWidth, m = i.clientHeight, u = 0, d = 0;
1620
+ if (c) {
1621
+ l = c.width, m = c.height;
1622
+ const f = Ee();
1623
+ (!f || f && o === "fixed") && (u = c.offsetLeft, d = c.offsetTop);
1624
+ }
1625
+ return { width: l, height: m, x: u, y: d };
1626
+ }(t, r);
1627
+ else if (e === "document")
1628
+ n = function(a) {
1629
+ const o = vt(a), s = pe(a), i = a.ownerDocument.body, c = Ft(o.scrollWidth, o.clientWidth, i.scrollWidth, i.clientWidth), l = Ft(o.scrollHeight, o.clientHeight, i.scrollHeight, i.clientHeight);
1630
+ let m = -s.scrollLeft + qr(a);
1631
+ const u = -s.scrollTop;
1632
+ return st(i).direction === "rtl" && (m += Ft(o.clientWidth, i.clientWidth) - c), { width: c, height: l, x: m, y: u };
1633
+ }(vt(t));
1634
+ else if (nt(e))
1635
+ n = function(a, o) {
1636
+ const s = St(a, !0, o === "fixed"), i = s.top + a.clientTop, c = s.left + a.clientLeft, l = it(a) ? Dt(a) : { x: 1, y: 1 };
1637
+ return { width: a.clientWidth * l.x, height: a.clientHeight * l.y, x: c * l.x, y: i * l.y };
1638
+ }(e, r);
1639
+ else {
1640
+ const a = Kr(t);
1641
+ n = { ...e, x: e.x - a.x, y: e.y - a.y };
1642
+ }
1643
+ return re(n);
1644
+ }
1645
+ function Xr(t, e) {
1646
+ const r = Et(t);
1647
+ return !(r === e || !nt(r) || de(r)) && (st(r).position === "fixed" || Xr(r, e));
1648
+ }
1649
+ function ar(t, e) {
1650
+ return it(t) && st(t).position !== "fixed" ? e ? e(t) : t.offsetParent : null;
1651
+ }
1652
+ function sr(t, e) {
1653
+ const r = at(t);
1654
+ if (!it(t))
1655
+ return r;
1656
+ let n = ar(t, e);
1657
+ for (; n && Ua(n) && st(n).position === "static"; )
1658
+ n = ar(n, e);
1659
+ return n && (wt(n) === "html" || wt(n) === "body" && st(n).position === "static" && !_e(n)) ? r : n || function(a) {
1660
+ let o = Et(a);
1661
+ for (; it(o) && !de(o); ) {
1662
+ if (_e(o))
1663
+ return o;
1664
+ o = Et(o);
1665
+ }
1666
+ return null;
1667
+ }(t) || r;
1668
+ }
1669
+ function Wa(t, e, r) {
1670
+ const n = it(e), a = vt(e), o = r === "fixed", s = St(t, !0, o, e);
1671
+ let i = { scrollLeft: 0, scrollTop: 0 };
1672
+ const c = { x: 0, y: 0 };
1673
+ if (n || !n && !o)
1674
+ if ((wt(e) !== "body" || Ut(a)) && (i = pe(e)), it(e)) {
1675
+ const l = St(e, !0, o, e);
1676
+ c.x = l.x + e.clientLeft, c.y = l.y + e.clientTop;
1677
+ } else
1678
+ a && (c.x = qr(a));
1679
+ return { x: s.left + i.scrollLeft - c.x, y: s.top + i.scrollTop - c.y, width: s.width, height: s.height };
1680
+ }
1681
+ const Ka = { getClippingRect: function(t) {
1682
+ let { element: e, boundary: r, rootBoundary: n, strategy: a } = t;
1683
+ const o = r === "clippingAncestors" ? function(l, m) {
1684
+ const u = m.get(l);
1685
+ if (u)
1686
+ return u;
1687
+ let d = Vt(l).filter((g) => nt(g) && wt(g) !== "body"), f = null;
1688
+ const h = st(l).position === "fixed";
1689
+ let p = h ? Et(l) : l;
1690
+ for (; nt(p) && !de(p); ) {
1691
+ const g = st(p), O = _e(p);
1692
+ O || g.position !== "fixed" || (f = null), (h ? !O && !f : !O && g.position === "static" && f && ["absolute", "fixed"].includes(f.position) || Ut(p) && !O && Xr(l, p)) ? d = d.filter((A) => A !== p) : f = g, p = Et(p);
1693
+ }
1694
+ return m.set(l, d), d;
1695
+ }(e, this._c) : [].concat(r), s = [...o, n], i = s[0], c = s.reduce((l, m) => {
1696
+ const u = or(e, m, a);
1697
+ return l.top = Ft(u.top, l.top), l.right = rr(u.right, l.right), l.bottom = rr(u.bottom, l.bottom), l.left = Ft(u.left, l.left), l;
1698
+ }, or(e, i, a));
1699
+ return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
1700
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
1701
+ let { rect: e, offsetParent: r, strategy: n } = t;
1702
+ const a = it(r), o = vt(r);
1703
+ if (r === o)
1704
+ return e;
1705
+ let s = { scrollLeft: 0, scrollTop: 0 }, i = { x: 1, y: 1 };
1706
+ const c = { x: 0, y: 0 };
1707
+ if ((a || !a && n !== "fixed") && ((wt(r) !== "body" || Ut(o)) && (s = pe(r)), it(r))) {
1708
+ const l = St(r);
1709
+ i = Dt(r), c.x = l.x + r.clientLeft, c.y = l.y + r.clientTop;
1710
+ }
1711
+ return { width: e.width * i.x, height: e.height * i.y, x: e.x * i.x - s.scrollLeft * i.x + c.x, y: e.y * i.y - s.scrollTop * i.y + c.y };
1712
+ }, isElement: nt, getDimensions: function(t) {
1713
+ return Yr(t);
1714
+ }, getOffsetParent: sr, getDocumentElement: vt, getScale: Dt, async getElementRects(t) {
1715
+ let { reference: e, floating: r, strategy: n } = t;
1716
+ const a = this.getOffsetParent || sr, o = this.getDimensions;
1717
+ return { reference: Wa(e, await a(r), n), floating: { x: 0, y: 0, ...await o(r) } };
1718
+ }, getClientRects: (t) => Array.from(t.getClientRects()), isRTL: (t) => st(t).direction === "rtl" };
1719
+ function qa(t, e, r, n) {
1720
+ n === void 0 && (n = {});
1721
+ const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: s = !0, animationFrame: i = !1 } = n, c = a || o ? [...nt(t) ? Vt(t) : t.contextElement ? Vt(t.contextElement) : [], ...Vt(e)] : [];
1722
+ c.forEach((d) => {
1723
+ const f = !nt(d) && d.toString().includes("V");
1724
+ !a || i && !f || d.addEventListener("scroll", r, { passive: !0 }), o && d.addEventListener("resize", r);
1725
+ });
1726
+ let l, m = null;
1727
+ s && (m = new ResizeObserver(() => {
1728
+ r();
1729
+ }), nt(t) && !i && m.observe(t), nt(t) || !t.contextElement || i || m.observe(t.contextElement), m.observe(e));
1730
+ let u = i ? St(t) : null;
1731
+ return i && function d() {
1732
+ const f = St(t);
1733
+ !u || f.x === u.x && f.y === u.y && f.width === u.width && f.height === u.height || r(), u = f, l = requestAnimationFrame(d);
1734
+ }(), r(), () => {
1735
+ var d;
1736
+ c.forEach((f) => {
1737
+ a && f.removeEventListener("scroll", r), o && f.removeEventListener("resize", r);
1738
+ }), (d = m) == null || d.disconnect(), m = null, i && cancelAnimationFrame(l);
1739
+ };
1740
+ }
1741
+ const Za = (t, e, r) => {
1742
+ const n = /* @__PURE__ */ new Map(), a = { platform: Ka, ...r }, o = { ...a.platform, _c: n };
1743
+ return za(t, e, { ...a, platform: o });
1744
+ }, Xa = (t, e = "body") => {
1745
+ if (!t)
1746
+ return;
1747
+ if (typeof e != "string") {
1748
+ e == null || e.append(t);
1749
+ return;
1750
+ }
1751
+ const r = document.querySelector(e);
1752
+ r == null || r.append(t);
1753
+ };
1754
+ function Ja({ middleware: t, placement: e = null, strategy: r, append: n, enabled: a }) {
1755
+ const o = H(null), s = H(null), i = H(null), c = H(null), l = H(null), m = H(null), u = H(null), d = H(r ?? "absolute"), f = H(null), h = () => {
1756
+ !o.value || !s.value || Za(o.value, s.value, {
1757
+ middleware: t,
1758
+ placement: e,
1759
+ strategy: r
1760
+ }).then((g) => {
1761
+ i.value = g.x, c.value = g.y, d.value = g.strategy, l.value = g.middlewareData.arrow.x, m.value = g.middlewareData.arrow.y, u.value = g.placement;
1762
+ });
1763
+ };
1764
+ dt(
1765
+ () => ({
1766
+ reference: b(o),
1767
+ floating: b(s),
1768
+ append: b(n)
1769
+ }),
1770
+ ({ floating: g, append: O }) => {
1771
+ O && Xa(g, O), h();
1772
+ },
1773
+ { flush: "post" }
1774
+ ), dt(
1775
+ a,
1776
+ (g) => {
1777
+ if (!(!o.value || !s.value)) {
1778
+ if (!g)
1779
+ return p();
1780
+ f.value = qa(o.value, s.value, h, {});
1781
+ }
1782
+ },
1783
+ { flush: "post" }
1784
+ );
1785
+ const p = () => {
1786
+ var g;
1787
+ (g = f.value) == null || g.call(f), f.value = null;
1788
+ };
1789
+ return {
1790
+ x: i,
1791
+ y: c,
1792
+ arrowX: l,
1793
+ arrowY: m,
1794
+ placement: u,
1795
+ reference: o,
1796
+ floating: s,
1797
+ strategy: d,
1798
+ update: h
1799
+ };
1800
+ }
1801
+ const Qa = (t) => {
1802
+ const { element: e, padding: r } = t;
1803
+ return {
1804
+ name: "arrow",
1805
+ options: t,
1806
+ fn(n) {
1807
+ return hr(e) ? e.value != null ? tr({ element: e.value, padding: r }).fn(n) : {} : e ? tr({ element: e, padding: r }).fn(n) : {};
1808
+ }
1809
+ };
1810
+ }, ts = ["data-placement"], es = {
1811
+ __name: "FloatingPanel",
1812
+ props: {
1813
+ disabled: {
1814
+ type: Boolean,
1815
+ default: !1
1816
+ },
1817
+ placement: {
1818
+ type: String,
1819
+ default: "bottom"
1820
+ },
1821
+ theme: {
1822
+ type: String,
1823
+ default: "tooltip"
1824
+ },
1825
+ content: {
1826
+ type: String,
1827
+ default: ""
1828
+ },
1829
+ appendTo: {
1830
+ type: [Object, String],
1831
+ default: "body"
1832
+ },
1833
+ offset: {
1834
+ type: Number,
1835
+ default: 2
1836
+ }
1837
+ },
1838
+ setup(t) {
1839
+ const e = t, r = H(!1), n = H(null), { x: a, y: o, arrowX: s, arrowY: i, placement: c, reference: l, floating: m, strategy: u } = Ja({
1840
+ placement: e.placement,
1841
+ middleware: [Fa(), Ya({ padding: 5 }), Va(e.offset), Qa({ element: n, padding: 5 })],
1842
+ append: Z(() => e.appendTo),
1843
+ enabled: r
1844
+ }), d = () => {
1845
+ e.disabled || (r.value = !0);
1846
+ }, f = () => {
1847
+ r.value = !1;
1848
+ }, h = (p) => {
1849
+ l.value = p;
1850
+ };
1851
+ return _n(m, (p) => {
1852
+ var g;
1853
+ (g = l.value) != null && g.contains(p.target) || f();
1854
+ }), (p, g) => (L(), z(Ot, null, [
1855
+ ot(p.$slots, "default", {
1856
+ setRef: h,
1857
+ show: d,
1858
+ hide: f
1859
+ }),
1860
+ R("div", {
1861
+ ref_key: "floating",
1862
+ ref: m,
1863
+ "data-placement": b(c),
1864
+ style: Ne({
1865
+ position: b(u),
1866
+ top: b(o) ? `${b(o)}px` : "",
1867
+ left: b(a) ? `${b(a)}px` : ""
1868
+ })
1869
+ }, [
1870
+ $t(yn, {
1871
+ name: "transition-fade",
1872
+ mode: "out-in"
1873
+ }, {
1874
+ default: lt(() => [
1875
+ r.value ? (L(), z("div", {
1876
+ key: 0,
1877
+ class: rt(["floating-content", [`is-${e.theme}`]])
1878
+ }, [
1879
+ ot(p.$slots, "content", { close: f }, () => [
1880
+ Rt(Q(t.content), 1)
1881
+ ]),
1882
+ R("div", {
1883
+ ref_key: "arrowRef",
1884
+ ref: n,
1885
+ class: "is-arrow",
1886
+ style: Ne({
1887
+ position: b(u),
1888
+ top: b(i) ? `${b(i)}px` : "",
1889
+ left: b(s) ? `${b(s)}px` : ""
1890
+ })
1891
+ }, null, 4)
1892
+ ], 2)) : et("", !0)
1893
+ ]),
1894
+ _: 3
1895
+ })
1896
+ ], 12, ts)
1897
+ ], 64));
1898
+ }
1899
+ }, rs = ["onMouseenter", "onMouseleave", "onFocus", "onBlur", "onClick", "onKeydown", "tabindex"], ns = { key: 0 }, os = ["colspan"], as = { key: 1 }, ss = ["colspan"], is = {
1900
+ __name: "DataTable",
1901
+ props: {
1902
+ columns: {
1903
+ type: Object,
1904
+ default: () => ({})
1905
+ },
1906
+ rows: {
1907
+ type: Array,
1908
+ default: () => []
1909
+ },
1910
+ sort: {
1911
+ type: Object,
1912
+ default: () => ({})
1913
+ },
1914
+ isLoading: {
1915
+ type: Boolean,
1916
+ default: !1
1917
+ },
1918
+ appendTo: {
1919
+ type: [Object, String],
1920
+ default: null
1921
+ }
1922
+ },
1923
+ emits: ["sort"],
1924
+ setup(t, { emit: e }) {
1925
+ const r = t, { isLoading: n, appendTo: a } = wr(r), o = Bn(n, { delay: _a }), { t: s } = Wt(), i = It("table"), c = Z(() => r.columns), l = Z(() => Object.keys(r.columns).length), m = (u, d) => {
1926
+ u.sortOrders && e("sort", { target: d, orders: u.sortOrders });
1927
+ };
1928
+ return (u, d) => (L(), z("table", {
1929
+ class: rt(b(i))
1930
+ }, [
1931
+ R("thead", null, [
1932
+ R("tr", null, [
1933
+ (L(!0), z(Ot, null, Bt(c.value, (f, h) => (L(), gt(es, {
1934
+ key: h,
1935
+ placement: "top",
1936
+ content: f.tooltip,
1937
+ disabled: !f.tooltip,
1938
+ "append-to": b(a)
1939
+ }, {
1940
+ default: lt(({ setRef: p, show: g, hide: O }) => [
1941
+ R("th", {
1942
+ ref_for: !0,
1943
+ ref: p,
1944
+ class: rt([
1945
+ [f.class],
1946
+ {
1947
+ "is-active": h === t.sort.sortTarget && t.sort.orders[0].direction !== b(yt),
1948
+ "is-sortable": f.sortOrders,
1949
+ "is-desc": h === t.sort.sortTarget && t.sort.orders[0].direction === b(y),
1950
+ "is-asc": h === t.sort.sortTarget && t.sort.orders[0].direction === b(C)
1951
+ }
1952
+ ]),
1953
+ onMouseenter: g,
1954
+ onMouseleave: O,
1955
+ onFocus: g,
1956
+ onBlur: O,
1957
+ onClick: (A) => m(f, h),
1958
+ onKeydown: [
1959
+ Ce(Ht((A) => m(f, h), ["prevent"]), ["space"]),
1960
+ Ce(Ht((A) => m(f, h), ["prevent"]), ["enter"])
1961
+ ],
1962
+ tabindex: f.sortOrders ? 0 : -1,
1963
+ role: "button"
1964
+ }, [
1965
+ ot(u.$slots, `header-${h}`, { column: f }, () => [
1966
+ Rt(Q(f.label), 1)
1967
+ ]),
1968
+ f.sortOrders && h !== t.sort.sortTarget ? (L(), gt(b(Xe), {
1969
+ key: 0,
1970
+ class: "is-icon-sort"
1971
+ })) : et("", !0),
1972
+ h === t.sort.sortTarget && t.sort.orders[0].direction === b(yt) ? (L(), gt(b(Xe), {
1973
+ key: 1,
1974
+ class: "is-icon-sort"
1975
+ })) : et("", !0),
1976
+ h === t.sort.sortTarget && t.sort.orders[0].direction === b(y) ? (L(), gt(b(Je), {
1977
+ key: 2,
1978
+ class: "is-icon-sort"
1979
+ })) : et("", !0),
1980
+ h === t.sort.sortTarget && t.sort.orders[0].direction === b(C) ? (L(), gt(b(Je), {
1981
+ key: 3,
1982
+ class: "is-icon-sort"
1983
+ })) : et("", !0)
1984
+ ], 42, rs)
1985
+ ]),
1986
+ _: 2
1987
+ }, 1032, ["content", "disabled", "append-to"]))), 128))
1988
+ ])
1989
+ ]),
1990
+ R("tbody", null, [
1991
+ (L(!0), z(Ot, null, Bt(r.rows, (f, h) => (L(), z("tr", { key: h }, [
1992
+ (L(!0), z(Ot, null, Bt(c.value, (p, g) => (L(), z("td", {
1993
+ key: g,
1994
+ class: rt([
1995
+ [p.class],
1996
+ {
1997
+ "is-active": g === t.sort.sortTarget && t.sort.orders[0].direction !== b(yt)
1998
+ }
1999
+ ])
2000
+ }, [
2001
+ ot(u.$slots, `cell-${g}`, {
2002
+ row: f,
2003
+ prop: g
2004
+ }, () => [
2005
+ Rt(Q(f[g]), 1)
2006
+ ])
2007
+ ], 2))), 128))
2008
+ ]))), 128))
2009
+ ]),
2010
+ b(o) && t.rows.length === 0 ? (L(), z("tfoot", ns, [
2011
+ R("tr", null, [
2012
+ R("td", { colspan: l.value }, [
2013
+ ot(u.$slots, "loading", {}, () => [
2014
+ Rt(Q(b(s)("common.loading")), 1)
2015
+ ])
2016
+ ], 8, os)
2017
+ ])
2018
+ ])) : et("", !0),
2019
+ t.rows.length === 0 && !b(n) && !b(o) ? (L(), z("tfoot", as, [
2020
+ R("tr", null, [
2021
+ R("td", { colspan: l.value }, [
2022
+ ot(u.$slots, "empty", {}, () => [
2023
+ Rt(Q(b(s)("common.noData")), 1)
2024
+ ])
2025
+ ], 8, ss)
2026
+ ])
2027
+ ])) : et("", !0)
2028
+ ], 2));
2029
+ }
2030
+ }, ls = {
2031
+ xmlns: "http://www.w3.org/2000/svg",
2032
+ viewBox: "0 0 24 24",
2033
+ fill: "none",
2034
+ stroke: "currentColor",
2035
+ "stroke-width": "2",
2036
+ "stroke-linecap": "round",
2037
+ "stroke-linejoin": "round"
2038
+ }, cs = /* @__PURE__ */ R("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1), us = /* @__PURE__ */ R("line", {
2039
+ x1: "12",
2040
+ y1: "9",
2041
+ x2: "12",
2042
+ y2: "13"
2043
+ }, null, -1), fs = /* @__PURE__ */ R("line", {
2044
+ x1: "12",
2045
+ y1: "17",
2046
+ x2: "12.01",
2047
+ y2: "17"
2048
+ }, null, -1), ds = [
2049
+ cs,
2050
+ us,
2051
+ fs
2052
+ ];
2053
+ function ps(t, e) {
2054
+ return L(), z("svg", ls, ds);
2055
+ }
2056
+ const ms = { render: ps }, Vi = {
2057
+ __name: "ErrorNotice",
2058
+ props: {
2059
+ error: {
2060
+ type: Object,
2061
+ default: () => ({})
2062
+ }
2063
+ },
2064
+ setup(t) {
2065
+ const e = t, { t: r, hasTranlation: n } = Wt(), a = It("error-notice"), o = Z(() => {
2066
+ var s;
2067
+ return n(`errors.${e.error.key}`) ? r(`errors.${e.error.key}`, e.error.cause) : (s = e.error) == null ? void 0 : s.message;
2068
+ });
2069
+ return (s, i) => (L(), z("div", {
2070
+ class: rt(b(a))
2071
+ }, [
2072
+ $t(b(ms), {
2073
+ class: "icon",
2074
+ width: "20",
2075
+ height: "20"
2076
+ }),
2077
+ R("span", null, Q(o.value), 1)
2078
+ ], 2));
2079
+ }
2080
+ };
2081
+ function hs(t) {
2082
+ return t && t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map((e) => e.toLowerCase()).join("-");
2083
+ }
2084
+ function ir(t, e, r) {
2085
+ return (new Array(r + 1).join(e) + t).slice(-r);
2086
+ }
2087
+ const Jr = Symbol("ErrorProviderContext"), gs = () => {
2088
+ const t = H(""), e = H({}), r = (o) => {
2089
+ console.log({ error: o }), t.value = o.message || o.error.message, e.value = {
2090
+ message: o.message,
2091
+ key: o.key || hs(o.message),
2092
+ cause: o.cause
2093
+ };
2094
+ };
2095
+ return vr(Jr, {
2096
+ onError: r,
2097
+ reset: () => {
2098
+ t.value = "", e.value = {};
2099
+ }
2100
+ }), window.onerror = (o) => {
2101
+ console.log("WINDOW_ONERROR:", o);
2102
+ }, vn((o, s, i) => {
2103
+ console.log("onErrorCaptured:", o, s, i);
2104
+ }), {
2105
+ hasError: Z(() => t.value.length > 0),
2106
+ message: t,
2107
+ error: e,
2108
+ onError: r
2109
+ };
2110
+ }, ys = () => {
2111
+ const t = vs();
2112
+ return {
2113
+ onError: t.onError,
2114
+ reset: t.reset
2115
+ };
2116
+ }, vs = () => {
2117
+ const t = br(Jr, null);
2118
+ if (t === null)
2119
+ throw new Error("Privider is missing a parent component.");
2120
+ return t;
2121
+ }, Hi = {
2122
+ __name: "ErrorProvider",
2123
+ setup(t) {
2124
+ const { message: e, hasError: r, error: n } = gs();
2125
+ return (a, o) => ot(a.$slots, "default", {
2126
+ message: b(e),
2127
+ error: b(n),
2128
+ hasError: b(r)
2129
+ });
2130
+ }
2131
+ }, bs = {
2132
+ "undefined-column": "A(z) {column} oszlop nem létezik!",
2133
+ "invalid-season-name": "Érvénytelen szezon név",
2134
+ "api-key-not-found": "API Kulcs nem megfelelő"
2135
+ }, ws = {
2136
+ loading: "Töltődés...",
2137
+ noData: "Nincs megjeleníthető adat",
2138
+ selectTimezone: "*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",
2139
+ hungary: "Magyarország",
2140
+ romania: "Románia",
2141
+ shootoutShort: "SU.",
2142
+ overtimeShort: "HU.",
2143
+ all: "Mind",
2144
+ report: "Jegyzőkönyv",
2145
+ video: "Videó"
2146
+ }, Ps = {
2147
+ blank: "#",
2148
+ team: {
2149
+ short: "Csapat",
2150
+ tooltip: "Csapatnév"
2151
+ },
2152
+ game: {
2153
+ short: "M",
2154
+ tooltip: "Mérkőzésszám"
2155
+ },
2156
+ wins: {
2157
+ short: "GY",
2158
+ tooltip: "Győzelem"
2159
+ },
2160
+ draw: {
2161
+ short: "D",
2162
+ tooltip: "Döntetlen"
2163
+ },
2164
+ otw: {
2165
+ short: "GYH",
2166
+ tooltip: "Győzelem Hosszabbításban"
2167
+ },
2168
+ otl: {
2169
+ short: "VH",
2170
+ tooltip: "Vereség Hosszabbításban"
2171
+ },
2172
+ losses: {
2173
+ short: "V",
2174
+ tooltip: "Vereség"
2175
+ },
2176
+ goalFor: {
2177
+ short: "SZG",
2178
+ tooltip: "Szerzett Gól"
2179
+ },
2180
+ goalAgainst: {
2181
+ short: "KG",
2182
+ tooltip: "Kapott Gól"
2183
+ },
2184
+ goalDiff: {
2185
+ short: "GK",
2186
+ tooltip: "Gólkülönbség"
2187
+ },
2188
+ name: {
2189
+ short: "Név",
2190
+ tooltip: "Játékosnév"
2191
+ },
2192
+ goals: {
2193
+ short: "G",
2194
+ tooltip: "Gólok"
2195
+ },
2196
+ assists: {
2197
+ short: "A",
2198
+ tooltip: "Gólpasszok"
2199
+ },
2200
+ points: {
2201
+ short: "P",
2202
+ tooltip: "Pontok"
2203
+ },
2204
+ plusMinus: {
2205
+ short: "+/-",
2206
+ tooltip: "Plussz/Minusz"
2207
+ },
2208
+ sog: {
2209
+ short: "L",
2210
+ tooltip: "Lövések"
2211
+ },
2212
+ sogPercent: {
2213
+ short: "L%",
2214
+ tooltip: "Lövés Hatékonyság"
2215
+ },
2216
+ gameName: {
2217
+ short: "#",
2218
+ tooltip: "Mérkőzés Sorszáma"
2219
+ },
2220
+ gameDate: {
2221
+ short: "Dátum",
2222
+ tooltip: "Mérkőzés Dátuma"
2223
+ },
2224
+ gameDateTime: {
2225
+ short: "*Idő ({offsetName})",
2226
+ tooltip: "Mérkőzés kezdési ideje (Zóna neve)"
2227
+ },
2228
+ homeTeam: {
2229
+ short: "Hazai",
2230
+ tooltip: "Hazai Csapat"
2231
+ },
2232
+ awayTeam: {
2233
+ short: "Vendég",
2234
+ tooltip: "Vendég Csapat"
2235
+ },
2236
+ location: {
2237
+ short: "Helyszín",
2238
+ tooltip: "Mérkőzés Helyszíne"
2239
+ },
2240
+ broadcast: {
2241
+ short: "TV",
2242
+ tooltip: "TV Közvetítés"
2243
+ },
2244
+ minorPenalties: {
2245
+ short: "MINOR",
2246
+ tooltip: "Kisbüntetés (2p)"
2247
+ },
2248
+ majorPenalties: {
2249
+ short: "MAJOR",
2250
+ tooltip: "Büntetés (5p)"
2251
+ },
2252
+ misconducts: {
2253
+ short: "MISC",
2254
+ tooltip: "Fegyelmi büntetés (10p)"
2255
+ },
2256
+ gameMisconducts: {
2257
+ short: "GA-MI",
2258
+ tooltip: "Fegyelmi büntetés (20p)"
2259
+ },
2260
+ matchPenalties: {
2261
+ short: "MATCH",
2262
+ tooltip: "Végleges kiállítások (25p)"
2263
+ },
2264
+ pim: {
2265
+ short: "BÜP",
2266
+ tooltip: "Büntetés Percek"
2267
+ },
2268
+ pimPerGame: {
2269
+ short: "BÜP/M",
2270
+ tooltip: "Mérkőzésenkénti Büntetés Percek"
2271
+ },
2272
+ gpgk: {
2273
+ short: "M",
2274
+ tooltip: "Mérkőzésre Nevezve"
2275
+ },
2276
+ gpi: {
2277
+ short: "LM",
2278
+ tooltip: "Mérkőzésen Játszott"
2279
+ },
2280
+ toi: {
2281
+ short: "TOI",
2282
+ tooltip: "Jégen Töltött Idő"
2283
+ },
2284
+ toiPercent: {
2285
+ short: "TOI%",
2286
+ tooltip: "Jégen Töltött Idő Százalék"
2287
+ },
2288
+ ga: {
2289
+ short: "GA",
2290
+ tooltip: "Kapott Gól"
2291
+ },
2292
+ gaa: {
2293
+ short: "GAA",
2294
+ tooltip: "Kapott Gólátlag"
2295
+ },
2296
+ sa: {
2297
+ short: "KL",
2298
+ tooltip: "Kapott Lövés"
2299
+ },
2300
+ svs: {
2301
+ short: "VL",
2302
+ tooltip: "Védett Lövés"
2303
+ },
2304
+ svsPercent: {
2305
+ short: "VH%",
2306
+ tooltip: "Védés Hatékonyság"
2307
+ },
2308
+ homeHeader: {
2309
+ short: "Hazai:",
2310
+ tooltip: ""
2311
+ },
2312
+ awayHeader: {
2313
+ short: "Vendég:",
2314
+ tooltip: ""
2315
+ },
2316
+ totalHeader: {
2317
+ short: "Összes:",
2318
+ tooltip: ""
2319
+ },
2320
+ homeGame: {
2321
+ short: "M",
2322
+ tooltip: "Hazai Mérkőzés"
2323
+ },
2324
+ awayGame: {
2325
+ short: "M",
2326
+ tooltip: "Vendég Mérkőzés"
2327
+ },
2328
+ totalGame: {
2329
+ short: "M",
2330
+ tooltip: "Összes Mérkőzés"
2331
+ },
2332
+ homeAttendance: {
2333
+ short: "Nézőszám",
2334
+ tooltip: "Hazai Néző"
2335
+ },
2336
+ awayAttendance: {
2337
+ short: "Nézőszám",
2338
+ tooltip: "Vendég Néző"
2339
+ },
2340
+ totalAttendance: {
2341
+ short: "Nézőszám",
2342
+ tooltip: "Összes Néző"
2343
+ },
2344
+ homeAttendanceAvg: {
2345
+ short: "Átlag",
2346
+ tooltip: "Hazi Néző Átlag"
2347
+ },
2348
+ awayAttendanceAvg: {
2349
+ short: "Átlag",
2350
+ tooltip: "Vendég Néző Átlag"
2351
+ },
2352
+ totalAttendanceAvg: {
2353
+ short: "Átlag",
2354
+ tooltip: "Összes Néző Átlag"
2355
+ },
2356
+ powerplayDisadvantages: {
2357
+ short: "DVG",
2358
+ tooltip: "Emberhátrányok"
2359
+ },
2360
+ dvgTime: {
2361
+ short: "DVG-T",
2362
+ tooltip: "Emberhátrányban Töltött Idő"
2363
+ },
2364
+ dvgTimePP1: {
2365
+ short: "DVG-T PP1",
2366
+ tooltip: "Szimpla emberhátrányban töltött idő"
2367
+ },
2368
+ dvgTimePP2: {
2369
+ short: "DVG-T PP2",
2370
+ tooltip: "Kettős emberhátrányban töltött idő"
2371
+ },
2372
+ ppga: {
2373
+ short: "PPGA",
2374
+ tooltip: "Emberhátrányban kapott gólok"
2375
+ },
2376
+ shgf: {
2377
+ short: "SHGF",
2378
+ tooltip: "Emberhátrányban szerzett gól"
2379
+ },
2380
+ pkPercent: {
2381
+ short: "PK%",
2382
+ tooltip: "Emberhátrány kivédekezés"
2383
+ },
2384
+ adv: {
2385
+ short: "ADV",
2386
+ tooltip: "Emberelőnyök száma"
2387
+ },
2388
+ advTime: {
2389
+ short: "ADV-T",
2390
+ tooltip: "Emberelőnyben töltött idő"
2391
+ },
2392
+ advTimePP1: {
2393
+ short: "ADV-T PP1",
2394
+ tooltip: "Szimpla emberelőnyben töltött idő"
2395
+ },
2396
+ advTimePP2: {
2397
+ short: "ADV-T PP2",
2398
+ tooltip: "Kettős emberelőnyben töltött idő"
2399
+ },
2400
+ ppgf: {
2401
+ short: "PPGF",
2402
+ tooltip: "Emberelőnyben szerzett gólok"
2403
+ },
2404
+ shga: {
2405
+ short: "SHGA",
2406
+ tooltip: "Emberelőnyben kapott gólok"
2407
+ },
2408
+ ppPercent: {
2409
+ short: "PP%",
2410
+ tooltip: "Emberelőny kihasználás"
2411
+ },
2412
+ gfgp: {
2413
+ short: "GF/GP",
2414
+ tooltip: "Szerzett gólátlag"
2415
+ },
2416
+ gagp: {
2417
+ short: "GA/GP",
2418
+ tooltip: "Kapott gólátlag"
2419
+ },
2420
+ sogp: {
2421
+ short: "Shots/GP",
2422
+ tooltip: "Átlagos lövésszám"
2423
+ },
2424
+ sagp: {
2425
+ short: "SA/GP",
2426
+ tooltip: "Átlagos kapott lövésszám"
2427
+ },
2428
+ jerseyNumber: {
2429
+ short: "#",
2430
+ tooltip: "Mezszám"
2431
+ },
2432
+ row: {
2433
+ short: "Sor",
2434
+ tooltip: "Sor"
2435
+ },
2436
+ position: {
2437
+ short: "Po",
2438
+ tooltip: "Poszt"
2439
+ },
2440
+ teamOfficials: {
2441
+ short: "Hivatalos Személyek",
2442
+ tooltip: "Hivatalos Személyek"
2443
+ }
2444
+ }, Os = {
2445
+ data: {
2446
+ localTime: "Helyszín szerinti idő"
2447
+ },
2448
+ status: {
2449
+ jury: "Versenybíróság",
2450
+ delayed: "Elhalasztva"
2451
+ },
2452
+ period: {
2453
+ Bemelegítés: "Bemelegítés",
2454
+ "Bemelegítés vége": "Bemelegítés Vége",
2455
+ "1. harmad": "I. harmad",
2456
+ "1. harmad vége": "I. harmad Vége",
2457
+ "2. harmad": "II. harmad",
2458
+ "2. harmad vége": "II. harmad Vége",
2459
+ "3. harmad": "III. harmad",
2460
+ "3. harmad vége": "III. harmad Vége",
2461
+ "4. harmad": "IV. harmad",
2462
+ "4. harmad vége": "IV. harmad Vége",
2463
+ "5. harmad": "V. harmad",
2464
+ "5. harmad vége": "V. harmad Vége",
2465
+ "6. harmad": "VI. harmad",
2466
+ "6. harmad vége": "VI. harmad Vége",
2467
+ Hosszabbítás: "Hosszabbítás",
2468
+ "Hosszabbítás vége": "Hosszabbítás vége",
2469
+ Büntetők: "Szétlövés",
2470
+ "Büntetők vége": "Szétlövés vége",
2471
+ Végeredmény: "Végeredmény",
2472
+ Szétlövés: "Szétlövés"
2473
+ }
2474
+ }, As = {
2475
+ errors: bs,
2476
+ common: ws,
2477
+ table: Ps,
2478
+ game: Os
2479
+ }, $s = {
2480
+ "undefined-column": "The {column} column is not exists!",
2481
+ "invalid-season-name": "Invalid season name",
2482
+ "api-key-not-found": "API Key not found"
2483
+ }, xs = {
2484
+ loading: "Loading...",
2485
+ noData: "No data to display",
2486
+ selectTimezone: "*All times are displayed according to your computer's time zone ({timezone}). Change: ",
2487
+ hungary: "Hungary",
2488
+ romania: "Romania",
2489
+ shootoutShort: "SO",
2490
+ overtimeShort: "OT",
2491
+ all: "All",
2492
+ report: "Report Sheet",
2493
+ video: "Video"
2494
+ }, _s = {
2495
+ blank: "#",
2496
+ team: {
2497
+ short: "Team",
2498
+ tooltip: "Team name"
2499
+ },
2500
+ game: {
2501
+ short: "GP",
2502
+ tooltip: "Game Played"
2503
+ },
2504
+ wins: {
2505
+ short: "W",
2506
+ tooltip: "Wins"
2507
+ },
2508
+ draw: {
2509
+ short: "D",
2510
+ tooltip: "Draw"
2511
+ },
2512
+ otw: {
2513
+ short: "OTW",
2514
+ tooltip: "Overtime Wins"
2515
+ },
2516
+ otl: {
2517
+ short: "OTL",
2518
+ tooltip: "Overtime Losses"
2519
+ },
2520
+ losses: {
2521
+ short: "L",
2522
+ tooltip: "Losses"
2523
+ },
2524
+ goalFor: {
2525
+ short: "GF",
2526
+ tooltip: "Goals For"
2527
+ },
2528
+ goalAgainst: {
2529
+ short: "GA",
2530
+ tooltip: "Goals Against"
2531
+ },
2532
+ goalDiff: {
2533
+ short: "GD",
2534
+ tooltip: "Goal Differential"
2535
+ },
2536
+ points: {
2537
+ short: "PTS",
2538
+ tooltip: "Points"
2539
+ },
2540
+ name: {
2541
+ short: "Name",
2542
+ tooltip: "Player name"
2543
+ },
2544
+ goals: {
2545
+ short: "G",
2546
+ tooltip: "Goals"
2547
+ },
2548
+ assists: {
2549
+ short: "A",
2550
+ tooltip: "Assists"
2551
+ },
2552
+ plusMinus: {
2553
+ short: "+/-",
2554
+ tooltip: "Plus/Minus"
2555
+ },
2556
+ sog: {
2557
+ short: "SOG",
2558
+ tooltip: "Shots on Goal"
2559
+ },
2560
+ sogPercent: {
2561
+ short: "SOG%",
2562
+ tooltip: "Shots on Goal Percent"
2563
+ },
2564
+ gameName: {
2565
+ short: "#",
2566
+ tooltip: "Game name"
2567
+ },
2568
+ gameDate: {
2569
+ short: "Date",
2570
+ tooltip: "Scheduled Date"
2571
+ },
2572
+ gameDateTime: {
2573
+ short: "*Time ({offsetName})",
2574
+ tooltip: "Scheduled Time (Offset Name)"
2575
+ },
2576
+ homeTeam: {
2577
+ short: "Home",
2578
+ tooltip: "Home Team"
2579
+ },
2580
+ awayTeam: {
2581
+ short: "Away",
2582
+ tooltip: "Away Team"
2583
+ },
2584
+ location: {
2585
+ short: "Location",
2586
+ tooltip: "Game Location"
2587
+ },
2588
+ broadcast: {
2589
+ short: "Broadcast",
2590
+ tooltip: "Television Broadcast"
2591
+ },
2592
+ minorPenalties: {
2593
+ short: "MINOR",
2594
+ tooltip: "Penalties Minor"
2595
+ },
2596
+ majorPenalties: {
2597
+ short: "MAJOR",
2598
+ tooltip: "Penalties Major"
2599
+ },
2600
+ misconducts: {
2601
+ short: "MISC",
2602
+ tooltip: "Penalties Misconduct"
2603
+ },
2604
+ gameMisconducts: {
2605
+ short: "GA-MI",
2606
+ tooltip: "Penalties Game Misconduct"
2607
+ },
2608
+ matchPenalties: {
2609
+ short: "MATCH",
2610
+ tooltip: "Penalties Match"
2611
+ },
2612
+ pim: {
2613
+ short: "PIM",
2614
+ tooltip: "Penalty Minutes"
2615
+ },
2616
+ pimPerGame: {
2617
+ short: "PIM/G",
2618
+ tooltip: "Penalty Minutes per Game"
2619
+ },
2620
+ gpgk: {
2621
+ short: "GP",
2622
+ tooltip: "Games Played"
2623
+ },
2624
+ gpi: {
2625
+ short: "GPI",
2626
+ tooltip: "Games Played In"
2627
+ },
2628
+ toi: {
2629
+ short: "TOI",
2630
+ tooltip: "Time On Ice"
2631
+ },
2632
+ toiPercent: {
2633
+ short: "TOI%",
2634
+ tooltip: "Time On Ice as Percentage"
2635
+ },
2636
+ ga: {
2637
+ short: "GA",
2638
+ tooltip: "Goals Against"
2639
+ },
2640
+ gaa: {
2641
+ short: "GAA",
2642
+ tooltip: "Goals Against Average"
2643
+ },
2644
+ sa: {
2645
+ short: "SA",
2646
+ tooltip: "Shots Against"
2647
+ },
2648
+ svs: {
2649
+ short: "SVS",
2650
+ tooltip: "Saves"
2651
+ },
2652
+ svsPercent: {
2653
+ short: "SV%",
2654
+ tooltip: "Save Percentage"
2655
+ },
2656
+ homeHeader: {
2657
+ short: "Home:",
2658
+ tooltip: ""
2659
+ },
2660
+ awayHeader: {
2661
+ short: "Away:",
2662
+ tooltip: ""
2663
+ },
2664
+ totalHeader: {
2665
+ short: "Total:",
2666
+ tooltip: ""
2667
+ },
2668
+ homeGame: {
2669
+ short: "GP",
2670
+ tooltip: "Home Games Played"
2671
+ },
2672
+ awayGame: {
2673
+ short: "GP",
2674
+ tooltip: "Away Games Played"
2675
+ },
2676
+ totalGame: {
2677
+ short: "GP",
2678
+ tooltip: "Total Games Played"
2679
+ },
2680
+ homeAttendance: {
2681
+ short: "Att",
2682
+ tooltip: "Home Attendance"
2683
+ },
2684
+ awayAttendance: {
2685
+ short: "Att",
2686
+ tooltip: "Away Attendance"
2687
+ },
2688
+ totalAttendance: {
2689
+ short: "Att",
2690
+ tooltip: "Total Attendance"
2691
+ },
2692
+ homeAttendanceAvg: {
2693
+ short: "Avg",
2694
+ tooltip: "Home Average Attendance"
2695
+ },
2696
+ awayAttendanceAvg: {
2697
+ short: "Avg",
2698
+ tooltip: "Away Average Attendance"
2699
+ },
2700
+ totalAttendanceAvg: {
2701
+ short: "Avg",
2702
+ tooltip: "Total Average Attendance"
2703
+ },
2704
+ powerplayDisadvantages: {
2705
+ short: "DVG",
2706
+ tooltip: "Disadvantages (Number of Times Shorthanded)"
2707
+ },
2708
+ dvgTime: {
2709
+ short: "DVG-T",
2710
+ tooltip: "Disadvantages Time"
2711
+ },
2712
+ dvgTimePP1: {
2713
+ short: "DVG-T PP1",
2714
+ tooltip: "Disadvantages Time (Period of PP1)"
2715
+ },
2716
+ dvgTimePP2: {
2717
+ short: "DVG-T PP2",
2718
+ tooltip: "Disadvantages Time (Period of PP2)"
2719
+ },
2720
+ ppga: {
2721
+ short: "PPGA",
2722
+ tooltip: "Powerplay Goals Against"
2723
+ },
2724
+ shgf: {
2725
+ short: "SHGF",
2726
+ tooltip: "Shorthanded Goals For"
2727
+ },
2728
+ pkPercent: {
2729
+ short: "PK%",
2730
+ tooltip: "Penalty Killing Percentage"
2731
+ },
2732
+ adv: {
2733
+ short: "ADV",
2734
+ tooltip: "Advantages (Times on Powerplay)"
2735
+ },
2736
+ advTime: {
2737
+ short: "ADV-T",
2738
+ tooltip: "Advantages Time (Period of Powerplay)"
2739
+ },
2740
+ advTimePP1: {
2741
+ short: "ADV-T PP1",
2742
+ tooltip: "Advantages Time (Period of PP1)"
2743
+ },
2744
+ advTimePP2: {
2745
+ short: "ADV-T PP2",
2746
+ tooltip: "Advantages Time (Period of PP2)"
2747
+ },
2748
+ ppgf: {
2749
+ short: "PPGF",
2750
+ tooltip: "Powerplay Goals For"
2751
+ },
2752
+ shga: {
2753
+ short: "SHGA",
2754
+ tooltip: "Shorthanded Goals Against"
2755
+ },
2756
+ ppPercent: {
2757
+ short: "PP%",
2758
+ tooltip: "Powerplay Percentage"
2759
+ },
2760
+ gfgp: {
2761
+ short: "GF/GP",
2762
+ tooltip: "Szerzett gólátlag"
2763
+ },
2764
+ gagp: {
2765
+ short: "GA/GP",
2766
+ tooltip: "Kapott gólátlag"
2767
+ },
2768
+ sogp: {
2769
+ short: "Shots/GP",
2770
+ tooltip: "Átlagos lövésszám"
2771
+ },
2772
+ sagp: {
2773
+ short: "SA/GP",
2774
+ tooltip: "Shots Against per Game"
2775
+ },
2776
+ jerseyNumber: {
2777
+ short: "#",
2778
+ tooltip: "Jersey Number"
2779
+ },
2780
+ row: {
2781
+ short: "Row",
2782
+ tooltip: "Row"
2783
+ },
2784
+ position: {
2785
+ short: "Position",
2786
+ tooltip: "Position"
2787
+ },
2788
+ teamOfficials: {
2789
+ short: "Team officials",
2790
+ tooltip: "Team officials"
2791
+ }
2792
+ }, Ss = {
2793
+ data: {
2794
+ localTime: "Game local time"
2795
+ },
2796
+ status: {
2797
+ jury: "Jury result",
2798
+ delayed: "Game delayed"
2799
+ },
2800
+ period: {
2801
+ Bemelegítés: "Warm-up",
2802
+ "Bemelegítés vége": "Warm-up End",
2803
+ "1. harmad": "First period",
2804
+ "1. harmad vége": "First period End",
2805
+ "2. harmad": "Second period",
2806
+ "2. harmad vége": "Second period End",
2807
+ "3. harmad": "Third period",
2808
+ "3. harmad vége": "Third period End",
2809
+ "4. harmad": "IV. period",
2810
+ "4. harmad vége": "IV. period End",
2811
+ "5. harmad": "V. period",
2812
+ "5. harmad vége": "V. period End",
2813
+ "6. harmad": "VI. period",
2814
+ "6. harmad vége": "VI. period End",
2815
+ Hosszabbítás: "Overtime",
2816
+ "Hosszabbítás vége": "Overtime End",
2817
+ Büntetőlövések: "Penalty Shot",
2818
+ Végeredmény: "Game Completed",
2819
+ Szétlövés: "Shoot Out"
2820
+ }
2821
+ }, Ts = {
2822
+ errors: $s,
2823
+ common: xs,
2824
+ table: _s,
2825
+ game: Ss
2826
+ }, Qr = (t, e) => {
2827
+ const r = t.__vccOpts || t;
2828
+ for (const [n, a] of e)
2829
+ r[n] = a;
2830
+ return r;
2831
+ }, Ms = yr({
2832
+ props: {
2833
+ locale: {
2834
+ type: String,
2835
+ default: "hu"
2836
+ },
2837
+ messages: {
2838
+ type: Object,
2839
+ default: () => ({})
2840
+ }
2841
+ },
2842
+ setup(t) {
2843
+ const e = ea({ hu: As, en: Ts }, t.messages), { translate: r } = ha({
2844
+ locale: Z(() => t.locale),
2845
+ messages: e
2846
+ });
2847
+ return {
2848
+ translate: r
2849
+ };
2850
+ }
2851
+ });
2852
+ function Ds(t, e, r, n, a, o) {
2853
+ return ot(t.$slots, "default", { t: t.translate });
2854
+ }
2855
+ const Yi = /* @__PURE__ */ Qr(Ms, [["render", Ds]]), ks = ["src"], Ls = ["src", "title"], lr = /* @__PURE__ */ Object.assign({
2856
+ inheritAttrs: !1
2857
+ }, {
2858
+ __name: "Image",
2859
+ props: {
2860
+ src: {
2861
+ type: String,
2862
+ default: ""
2863
+ },
2864
+ title: {
2865
+ type: String,
2866
+ default: ""
2867
+ },
2868
+ defaultSrc: {
2869
+ type: String,
2870
+ default: ""
2871
+ }
2872
+ },
2873
+ setup(t) {
2874
+ const e = t, { defaultSrc: r } = wr(e), n = H({ src: e.src }), { error: a, isReady: o } = jn(n, { resetOnExecute: !1, shallow: !1 });
2875
+ return (s, i) => (L(), z(Ot, null, [
2876
+ b(a) && b(r) ? (L(), z("img", {
2877
+ key: 0,
2878
+ src: b(r),
2879
+ class: rt(["is-loaded", s.$attrs.class])
2880
+ }, null, 10, ks)) : et("", !0),
2881
+ b(a) ? et("", !0) : (L(), z("img", {
2882
+ key: 1,
2883
+ src: n.value.src,
2884
+ class: rt([s.$attrs.class, { "is-loaded": b(o) }]),
2885
+ title: e.title
2886
+ }, null, 10, Ls))
2887
+ ], 64));
2888
+ }
2889
+ }), Es = { style: { "text-align": "center" } }, Is = {
2890
+ __name: "LoadingIndicator",
2891
+ setup(t) {
2892
+ const { t: e } = Wt();
2893
+ return (r, n) => (L(), z("div", Es, Q(b(e)("common.loading")), 1));
2894
+ }
2895
+ };
2896
+ function zs({ currentPage: t, itemsPerPage: e = 20, totalItems: r, rangeLength: n = 5, update: a = bt }) {
2897
+ const o = Z(() => Math.ceil(b(r) / e)), s = Z(() => {
2898
+ const m = b(t) - 1, u = Array.from({ length: o.value }, (h, p) => p + 1), d = Math.floor(n / 2);
2899
+ let f = Math.max(m - d, 0);
2900
+ return f + n >= o.value && (f = Math.max(o.value - n, 0)), u.slice(f, f + n);
2901
+ }), i = (m) => {
2902
+ const u = b(t) + m;
2903
+ l(u) && a(u);
2904
+ }, c = (m) => {
2905
+ l(m) && a(m);
2906
+ }, l = (m) => m <= o.value && m > 0;
2907
+ return {
2908
+ page: t,
2909
+ range: s,
2910
+ pageCount: o,
2911
+ goTo: c,
2912
+ pageStep: i
2913
+ };
2914
+ }
2915
+ const Ns = {
2916
+ xmlns: "http://www.w3.org/2000/svg",
2917
+ viewBox: "0 0 24 24",
2918
+ fill: "none",
2919
+ stroke: "currentColor",
2920
+ "stroke-width": "2",
2921
+ "stroke-linecap": "round",
2922
+ "stroke-linejoin": "round"
2923
+ }, Cs = /* @__PURE__ */ R("polyline", { points: "15 18 9 12 15 6" }, null, -1), Gs = [
2924
+ Cs
2925
+ ];
2926
+ function Rs(t, e) {
2927
+ return L(), z("svg", Ns, Gs);
2928
+ }
2929
+ const js = { render: Rs }, Bs = {
2930
+ xmlns: "http://www.w3.org/2000/svg",
2931
+ viewBox: "0 0 24 24",
2932
+ fill: "none",
2933
+ stroke: "currentColor",
2934
+ "stroke-width": "2",
2935
+ "stroke-linecap": "round",
2936
+ "stroke-linejoin": "round"
2937
+ }, Fs = /* @__PURE__ */ R("polyline", { points: "9 18 15 12 9 6" }, null, -1), Vs = [
2938
+ Fs
2939
+ ];
2940
+ function Hs(t, e) {
2941
+ return L(), z("svg", Bs, Vs);
2942
+ }
2943
+ const Ys = { render: Hs }, Us = ["disabled"], Ws = ["disabled"], Ks = {
2944
+ key: 1,
2945
+ class: "is-disabled"
2946
+ }, qs = ["disabled", "onClick"], Zs = {
2947
+ key: 2,
2948
+ class: "is-disabled"
2949
+ }, Xs = /* @__PURE__ */ R("span", null, "...", -1), Js = [
2950
+ Xs
2951
+ ], Qs = ["disabled"], ti = ["disabled"], Ui = {
2952
+ __name: "Paginator",
2953
+ props: {
2954
+ page: {
2955
+ type: Number,
2956
+ required: !1,
2957
+ default: 0,
2958
+ validator: (t) => t >= 0
2959
+ },
2960
+ itemsPerPage: {
2961
+ type: Number,
2962
+ required: !1,
2963
+ default: 10,
2964
+ validator: (t) => t > 0
2965
+ },
2966
+ totalItems: {
2967
+ type: Number,
2968
+ required: !0,
2969
+ validator: (t) => t >= 0
2970
+ },
2971
+ rangeLength: {
2972
+ type: Number,
2973
+ default: 3,
2974
+ validator: (t) => t >= 2
2975
+ },
2976
+ isCompact: {
2977
+ type: Boolean,
2978
+ default: !1
2979
+ }
2980
+ },
2981
+ emits: ["change"],
2982
+ setup(t, { emit: e }) {
2983
+ const r = t, n = It("paginator"), { page: a, pageCount: o, range: s, goTo: i, pageStep: c } = zs({
2984
+ currentPage: Z(() => r.page),
2985
+ totalItems: Z(() => r.totalItems),
2986
+ itemsPerPage: r.itemsPerPage,
2987
+ rangeLength: r.rangeLength,
2988
+ update: (l) => e("change", l)
2989
+ });
2990
+ return (l, m) => b(o) > 1 ? (L(), z("div", {
2991
+ key: 0,
2992
+ class: rt(b(n))
2993
+ }, [
2994
+ R("button", {
2995
+ type: "button",
2996
+ disabled: b(a) === 1,
2997
+ onClick: m[0] || (m[0] = (u) => b(c)(-1))
2998
+ }, [
2999
+ ot(l.$slots, "prev", {}, () => [
3000
+ $t(b(js), { class: "icon paginator-left" })
3001
+ ])
3002
+ ], 8, Us),
3003
+ t.isCompact ? et("", !0) : (L(), z("button", {
3004
+ key: 0,
3005
+ type: "button",
3006
+ disabled: b(a) === 1,
3007
+ onClick: m[1] || (m[1] = (u) => b(i)(1))
3008
+ }, "1", 8, Ws)),
3009
+ t.isCompact ? et("", !0) : (L(), z("div", Ks, "...")),
3010
+ (L(!0), z(Ot, null, Bt(b(s), (u) => (L(), z("button", {
3011
+ type: "button",
3012
+ key: u,
3013
+ class: rt({ "is-active": u === b(a) }),
3014
+ disabled: u === b(a),
3015
+ onClick: (d) => b(i)(u)
3016
+ }, Q(u), 11, qs))), 128)),
3017
+ t.isCompact ? et("", !0) : (L(), z("div", Zs, Js)),
3018
+ t.isCompact ? et("", !0) : (L(), z("button", {
3019
+ key: 3,
3020
+ type: "button",
3021
+ disabled: b(a) === b(o),
3022
+ onClick: m[2] || (m[2] = (u) => b(i)(b(o)))
3023
+ }, Q(b(o)), 9, Qs)),
3024
+ R("button", {
3025
+ type: "button",
3026
+ disabled: b(a) === b(o),
3027
+ onClick: m[3] || (m[3] = Ht((u) => b(c)(1), ["prevent"]))
3028
+ }, [
3029
+ ot(l.$slots, "next", {}, () => [
3030
+ $t(b(Ys), { class: "icon paginator-left" })
3031
+ ])
3032
+ ], 8, ti)
3033
+ ], 2)) : et("", !0);
3034
+ }
3035
+ }, ei = {
3036
+ __name: "ResponsiveTable",
3037
+ setup(t) {
3038
+ const e = H(null), r = It("table-responsive");
3039
+ return (n, a) => (L(), z("div", {
3040
+ ref_key: "el",
3041
+ ref: e,
3042
+ class: rt(b(r))
3043
+ }, [
3044
+ ot(n.$slots, "default", { el: e.value })
3045
+ ], 2));
3046
+ }
3047
+ };
3048
+ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3049
+ function Tt(t) {
3050
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3051
+ }
3052
+ var tn = { exports: {} };
3053
+ (function(t, e) {
3054
+ (function(r, n) {
3055
+ t.exports = n();
3056
+ })(Pt, function() {
3057
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", c = "hour", l = "day", m = "week", u = "month", d = "quarter", f = "year", h = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, O = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, A = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
3058
+ var P = ["th", "st", "nd", "rd"], w = x % 100;
3059
+ return "[" + x + (P[(w - 20) % 10] || P[w] || P[0]) + "]";
3060
+ } }, _ = function(x, P, w) {
3061
+ var $ = String(x);
3062
+ return !$ || $.length >= P ? x : "" + Array(P + 1 - $.length).join(w) + x;
3063
+ }, D = { s: _, z: function(x) {
3064
+ var P = -x.utcOffset(), w = Math.abs(P), $ = Math.floor(w / 60), v = w % 60;
3065
+ return (P <= 0 ? "+" : "-") + _($, 2, "0") + ":" + _(v, 2, "0");
3066
+ }, m: function x(P, w) {
3067
+ if (P.date() < w.date())
3068
+ return -x(w, P);
3069
+ var $ = 12 * (w.year() - P.year()) + (w.month() - P.month()), v = P.clone().add($, u), S = w - v < 0, M = P.clone().add($ + (S ? -1 : 1), u);
3070
+ return +(-($ + (w - v) / (S ? v - M : M - v)) || 0);
3071
+ }, a: function(x) {
3072
+ return x < 0 ? Math.ceil(x) || 0 : Math.floor(x);
3073
+ }, p: function(x) {
3074
+ return { M: u, y: f, w: m, d: l, D: h, h: c, m: i, s, ms: o, Q: d }[x] || String(x || "").toLowerCase().replace(/s$/, "");
3075
+ }, u: function(x) {
3076
+ return x === void 0;
3077
+ } }, k = "en", N = {};
3078
+ N[k] = A;
3079
+ var j = function(x) {
3080
+ return x instanceof G;
3081
+ }, U = function x(P, w, $) {
3082
+ var v;
3083
+ if (!P)
3084
+ return k;
3085
+ if (typeof P == "string") {
3086
+ var S = P.toLowerCase();
3087
+ N[S] && (v = S), w && (N[S] = w, v = S);
3088
+ var M = P.split("-");
3089
+ if (!v && M.length > 1)
3090
+ return x(M[0]);
3091
+ } else {
3092
+ var I = P.name;
3093
+ N[I] = P, v = I;
3094
+ }
3095
+ return !$ && v && (k = v), v || !$ && k;
3096
+ }, E = function(x, P) {
3097
+ if (j(x))
3098
+ return x.clone();
3099
+ var w = typeof P == "object" ? P : {};
3100
+ return w.date = x, w.args = arguments, new G(w);
3101
+ }, T = D;
3102
+ T.l = U, T.i = j, T.w = function(x, P) {
3103
+ return E(x, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
3104
+ };
3105
+ var G = function() {
3106
+ function x(w) {
3107
+ this.$L = U(w.locale, null, !0), this.parse(w);
3108
+ }
3109
+ var P = x.prototype;
3110
+ return P.parse = function(w) {
3111
+ this.$d = function($) {
3112
+ var v = $.date, S = $.utc;
3113
+ if (v === null)
3114
+ return /* @__PURE__ */ new Date(NaN);
3115
+ if (T.u(v))
3116
+ return /* @__PURE__ */ new Date();
3117
+ if (v instanceof Date)
3118
+ return new Date(v);
3119
+ if (typeof v == "string" && !/Z$/i.test(v)) {
3120
+ var M = v.match(g);
3121
+ if (M) {
3122
+ var I = M[2] - 1 || 0, Y = (M[7] || "0").substring(0, 3);
3123
+ return S ? new Date(Date.UTC(M[1], I, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, Y)) : new Date(M[1], I, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, Y);
3124
+ }
3125
+ }
3126
+ return new Date(v);
3127
+ }(w), this.$x = w.x || {}, this.init();
3128
+ }, P.init = function() {
3129
+ var w = this.$d;
3130
+ this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
3131
+ }, P.$utils = function() {
3132
+ return T;
3133
+ }, P.isValid = function() {
3134
+ return this.$d.toString() !== p;
3135
+ }, P.isSame = function(w, $) {
3136
+ var v = E(w);
3137
+ return this.startOf($) <= v && v <= this.endOf($);
3138
+ }, P.isAfter = function(w, $) {
3139
+ return E(w) < this.startOf($);
3140
+ }, P.isBefore = function(w, $) {
3141
+ return this.endOf($) < E(w);
3142
+ }, P.$g = function(w, $, v) {
3143
+ return T.u(w) ? this[$] : this.set(v, w);
3144
+ }, P.unix = function() {
3145
+ return Math.floor(this.valueOf() / 1e3);
3146
+ }, P.valueOf = function() {
3147
+ return this.$d.getTime();
3148
+ }, P.startOf = function(w, $) {
3149
+ var v = this, S = !!T.u($) || $, M = T.p(w), I = function(Mt, tt) {
3150
+ var ht = T.w(v.$u ? Date.UTC(v.$y, tt, Mt) : new Date(v.$y, tt, Mt), v);
3151
+ return S ? ht : ht.endOf(l);
3152
+ }, Y = function(Mt, tt) {
3153
+ return T.w(v.toDate()[Mt].apply(v.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(tt)), v);
3154
+ }, V = this.$W, q = this.$M, mt = this.$D, ft = "set" + (this.$u ? "UTC" : "");
3155
+ switch (M) {
3156
+ case f:
3157
+ return S ? I(1, 0) : I(31, 11);
3158
+ case u:
3159
+ return S ? I(1, q) : I(0, q + 1);
3160
+ case m:
3161
+ var zt = this.$locale().weekStart || 0, Nt = (V < zt ? V + 7 : V) - zt;
3162
+ return I(S ? mt - Nt : mt + (6 - Nt), q);
3163
+ case l:
3164
+ case h:
3165
+ return Y(ft + "Hours", 0);
3166
+ case c:
3167
+ return Y(ft + "Minutes", 1);
3168
+ case i:
3169
+ return Y(ft + "Seconds", 2);
3170
+ case s:
3171
+ return Y(ft + "Milliseconds", 3);
3172
+ default:
3173
+ return this.clone();
3174
+ }
3175
+ }, P.endOf = function(w) {
3176
+ return this.startOf(w, !1);
3177
+ }, P.$set = function(w, $) {
3178
+ var v, S = T.p(w), M = "set" + (this.$u ? "UTC" : ""), I = (v = {}, v[l] = M + "Date", v[h] = M + "Date", v[u] = M + "Month", v[f] = M + "FullYear", v[c] = M + "Hours", v[i] = M + "Minutes", v[s] = M + "Seconds", v[o] = M + "Milliseconds", v)[S], Y = S === l ? this.$D + ($ - this.$W) : $;
3179
+ if (S === u || S === f) {
3180
+ var V = this.clone().set(h, 1);
3181
+ V.$d[I](Y), V.init(), this.$d = V.set(h, Math.min(this.$D, V.daysInMonth())).$d;
3182
+ } else
3183
+ I && this.$d[I](Y);
3184
+ return this.init(), this;
3185
+ }, P.set = function(w, $) {
3186
+ return this.clone().$set(w, $);
3187
+ }, P.get = function(w) {
3188
+ return this[T.p(w)]();
3189
+ }, P.add = function(w, $) {
3190
+ var v, S = this;
3191
+ w = Number(w);
3192
+ var M = T.p($), I = function(q) {
3193
+ var mt = E(S);
3194
+ return T.w(mt.date(mt.date() + Math.round(q * w)), S);
3195
+ };
3196
+ if (M === u)
3197
+ return this.set(u, this.$M + w);
3198
+ if (M === f)
3199
+ return this.set(f, this.$y + w);
3200
+ if (M === l)
3201
+ return I(1);
3202
+ if (M === m)
3203
+ return I(7);
3204
+ var Y = (v = {}, v[i] = n, v[c] = a, v[s] = r, v)[M] || 1, V = this.$d.getTime() + w * Y;
3205
+ return T.w(V, this);
3206
+ }, P.subtract = function(w, $) {
3207
+ return this.add(-1 * w, $);
3208
+ }, P.format = function(w) {
3209
+ var $ = this, v = this.$locale();
3210
+ if (!this.isValid())
3211
+ return v.invalidDate || p;
3212
+ var S = w || "YYYY-MM-DDTHH:mm:ssZ", M = T.z(this), I = this.$H, Y = this.$m, V = this.$M, q = v.weekdays, mt = v.months, ft = function(tt, ht, me, Zt) {
3213
+ return tt && (tt[ht] || tt($, S)) || me[ht].slice(0, Zt);
3214
+ }, zt = function(tt) {
3215
+ return T.s(I % 12 || 12, tt, "0");
3216
+ }, Nt = v.meridiem || function(tt, ht, me) {
3217
+ var Zt = tt < 12 ? "AM" : "PM";
3218
+ return me ? Zt.toLowerCase() : Zt;
3219
+ }, Mt = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: V + 1, MM: T.s(V + 1, 2, "0"), MMM: ft(v.monthsShort, V, mt, 3), MMMM: ft(mt, V), D: this.$D, DD: T.s(this.$D, 2, "0"), d: String(this.$W), dd: ft(v.weekdaysMin, this.$W, q, 2), ddd: ft(v.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(I), HH: T.s(I, 2, "0"), h: zt(1), hh: zt(2), a: Nt(I, Y, !0), A: Nt(I, Y, !1), m: String(Y), mm: T.s(Y, 2, "0"), s: String(this.$s), ss: T.s(this.$s, 2, "0"), SSS: T.s(this.$ms, 3, "0"), Z: M };
3220
+ return S.replace(O, function(tt, ht) {
3221
+ return ht || Mt[tt] || M.replace(":", "");
3222
+ });
3223
+ }, P.utcOffset = function() {
3224
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3225
+ }, P.diff = function(w, $, v) {
3226
+ var S, M = T.p($), I = E(w), Y = (I.utcOffset() - this.utcOffset()) * n, V = this - I, q = T.m(this, I);
3227
+ return q = (S = {}, S[f] = q / 12, S[u] = q, S[d] = q / 3, S[m] = (V - Y) / 6048e5, S[l] = (V - Y) / 864e5, S[c] = V / a, S[i] = V / n, S[s] = V / r, S)[M] || V, v ? q : T.a(q);
3228
+ }, P.daysInMonth = function() {
3229
+ return this.endOf(u).$D;
3230
+ }, P.$locale = function() {
3231
+ return N[this.$L];
3232
+ }, P.locale = function(w, $) {
3233
+ if (!w)
3234
+ return this.$L;
3235
+ var v = this.clone(), S = U(w, $, !0);
3236
+ return S && (v.$L = S), v;
3237
+ }, P.clone = function() {
3238
+ return T.w(this.$d, this);
3239
+ }, P.toDate = function() {
3240
+ return new Date(this.valueOf());
3241
+ }, P.toJSON = function() {
3242
+ return this.isValid() ? this.toISOString() : null;
3243
+ }, P.toISOString = function() {
3244
+ return this.$d.toISOString();
3245
+ }, P.toString = function() {
3246
+ return this.$d.toUTCString();
3247
+ }, x;
3248
+ }(), K = G.prototype;
3249
+ return E.prototype = K, [["$ms", o], ["$s", s], ["$m", i], ["$H", c], ["$W", l], ["$M", u], ["$y", f], ["$D", h]].forEach(function(x) {
3250
+ K[x[1]] = function(P) {
3251
+ return this.$g(P, x[0], x[1]);
3252
+ };
3253
+ }), E.extend = function(x, P) {
3254
+ return x.$i || (x(P, G, E), x.$i = !0), E;
3255
+ }, E.locale = U, E.isDayjs = j, E.unix = function(x) {
3256
+ return E(1e3 * x);
3257
+ }, E.en = N[k], E.Ls = N, E.p = {}, E;
3258
+ });
3259
+ })(tn);
3260
+ var en = tn.exports;
3261
+ const X = /* @__PURE__ */ Tt(en);
3262
+ var rn = { exports: {} };
3263
+ (function(t, e) {
3264
+ (function(r, n) {
3265
+ t.exports = n();
3266
+ })(Pt, function() {
3267
+ var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
3268
+ return function(o, s, i) {
3269
+ var c = s.prototype;
3270
+ i.utc = function(p) {
3271
+ var g = { date: p, utc: !0, args: arguments };
3272
+ return new s(g);
3273
+ }, c.utc = function(p) {
3274
+ var g = i(this.toDate(), { locale: this.$L, utc: !0 });
3275
+ return p ? g.add(this.utcOffset(), r) : g;
3276
+ }, c.local = function() {
3277
+ return i(this.toDate(), { locale: this.$L, utc: !1 });
3278
+ };
3279
+ var l = c.parse;
3280
+ c.parse = function(p) {
3281
+ p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), l.call(this, p);
3282
+ };
3283
+ var m = c.init;
3284
+ c.init = function() {
3285
+ if (this.$u) {
3286
+ var p = this.$d;
3287
+ this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
3288
+ } else
3289
+ m.call(this);
3290
+ };
3291
+ var u = c.utcOffset;
3292
+ c.utcOffset = function(p, g) {
3293
+ var O = this.$utils().u;
3294
+ if (O(p))
3295
+ return this.$u ? 0 : O(this.$offset) ? u.call(this) : this.$offset;
3296
+ if (typeof p == "string" && (p = function(k) {
3297
+ k === void 0 && (k = "");
3298
+ var N = k.match(n);
3299
+ if (!N)
3300
+ return null;
3301
+ var j = ("" + N[0]).match(a) || ["-", 0, 0], U = j[0], E = 60 * +j[1] + +j[2];
3302
+ return E === 0 ? 0 : U === "+" ? E : -E;
3303
+ }(p), p === null))
3304
+ return this;
3305
+ var A = Math.abs(p) <= 16 ? 60 * p : p, _ = this;
3306
+ if (g)
3307
+ return _.$offset = A, _.$u = p === 0, _;
3308
+ if (p !== 0) {
3309
+ var D = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
3310
+ (_ = this.local().add(A + D, r)).$offset = A, _.$x.$localOffset = D;
3311
+ } else
3312
+ _ = this.utc();
3313
+ return _;
3314
+ };
3315
+ var d = c.format;
3316
+ c.format = function(p) {
3317
+ var g = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
3318
+ return d.call(this, g);
3319
+ }, c.valueOf = function() {
3320
+ var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
3321
+ return this.$d.valueOf() - 6e4 * p;
3322
+ }, c.isUTC = function() {
3323
+ return !!this.$u;
3324
+ }, c.toISOString = function() {
3325
+ return this.toDate().toISOString();
3326
+ }, c.toString = function() {
3327
+ return this.toDate().toUTCString();
3328
+ };
3329
+ var f = c.toDate;
3330
+ c.toDate = function(p) {
3331
+ return p === "s" && this.$offset ? i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : f.call(this);
3332
+ };
3333
+ var h = c.diff;
3334
+ c.diff = function(p, g, O) {
3335
+ if (p && this.$u === p.$u)
3336
+ return h.call(this, p, g, O);
3337
+ var A = this.local(), _ = i(p).local();
3338
+ return h.call(A, _, g, O);
3339
+ };
3340
+ };
3341
+ });
3342
+ })(rn);
3343
+ var ri = rn.exports;
3344
+ const ni = /* @__PURE__ */ Tt(ri);
3345
+ var nn = { exports: {} };
3346
+ (function(t, e) {
3347
+ (function(r, n) {
3348
+ t.exports = n();
3349
+ })(Pt, function() {
3350
+ var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
3351
+ return function(a, o, s) {
3352
+ var i, c = function(d, f, h) {
3353
+ h === void 0 && (h = {});
3354
+ var p = new Date(d), g = function(O, A) {
3355
+ A === void 0 && (A = {});
3356
+ var _ = A.timeZoneName || "short", D = O + "|" + _, k = n[D];
3357
+ return k || (k = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: O, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), n[D] = k), k;
3358
+ }(f, h);
3359
+ return g.formatToParts(p);
3360
+ }, l = function(d, f) {
3361
+ for (var h = c(d, f), p = [], g = 0; g < h.length; g += 1) {
3362
+ var O = h[g], A = O.type, _ = O.value, D = r[A];
3363
+ D >= 0 && (p[D] = parseInt(_, 10));
3364
+ }
3365
+ var k = p[3], N = k === 24 ? 0 : k, j = p[0] + "-" + p[1] + "-" + p[2] + " " + N + ":" + p[4] + ":" + p[5] + ":000", U = +d;
3366
+ return (s.utc(j).valueOf() - (U -= U % 1e3)) / 6e4;
3367
+ }, m = o.prototype;
3368
+ m.tz = function(d, f) {
3369
+ d === void 0 && (d = i);
3370
+ var h = this.utcOffset(), p = this.toDate(), g = p.toLocaleString("en-US", { timeZone: d }), O = Math.round((p - new Date(g)) / 1e3 / 60), A = s(g).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(p.getTimezoneOffset() / 15) - O, !0);
3371
+ if (f) {
3372
+ var _ = A.utcOffset();
3373
+ A = A.add(h - _, "minute");
3374
+ }
3375
+ return A.$x.$timezone = d, A;
3376
+ }, m.offsetName = function(d) {
3377
+ var f = this.$x.$timezone || s.tz.guess(), h = c(this.valueOf(), f, { timeZoneName: d }).find(function(p) {
3378
+ return p.type.toLowerCase() === "timezonename";
3379
+ });
3380
+ return h && h.value;
3381
+ };
3382
+ var u = m.startOf;
3383
+ m.startOf = function(d, f) {
3384
+ if (!this.$x || !this.$x.$timezone)
3385
+ return u.call(this, d, f);
3386
+ var h = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
3387
+ return u.call(h, d, f).tz(this.$x.$timezone, !0);
3388
+ }, s.tz = function(d, f, h) {
3389
+ var p = h && f, g = h || f || i, O = l(+s(), g);
3390
+ if (typeof d != "string")
3391
+ return s(d).tz(g);
3392
+ var A = function(N, j, U) {
3393
+ var E = N - 60 * j * 1e3, T = l(E, U);
3394
+ if (j === T)
3395
+ return [E, j];
3396
+ var G = l(E -= 60 * (T - j) * 1e3, U);
3397
+ return T === G ? [E, T] : [N - 60 * Math.min(T, G) * 1e3, Math.max(T, G)];
3398
+ }(s.utc(d, p).valueOf(), O, g), _ = A[0], D = A[1], k = s(_).utcOffset(D);
3399
+ return k.$x.$timezone = g, k;
3400
+ }, s.tz.guess = function() {
3401
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
3402
+ }, s.tz.setDefault = function(d) {
3403
+ i = d;
3404
+ };
3405
+ };
3406
+ });
3407
+ })(nn);
3408
+ var oi = nn.exports;
3409
+ const ai = /* @__PURE__ */ Tt(oi);
3410
+ var on = { exports: {} };
3411
+ (function(t, e) {
3412
+ (function(r, n) {
3413
+ t.exports = n();
3414
+ })(Pt, function() {
3415
+ return function(r, n) {
3416
+ var a = n.prototype, o = a.format;
3417
+ a.format = function(s) {
3418
+ var i = this, c = this.$locale();
3419
+ if (!this.isValid())
3420
+ return o.bind(this)(s);
3421
+ var l = this.$utils(), m = (s || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(u) {
3422
+ switch (u) {
3423
+ case "Q":
3424
+ return Math.ceil((i.$M + 1) / 3);
3425
+ case "Do":
3426
+ return c.ordinal(i.$D);
3427
+ case "gggg":
3428
+ return i.weekYear();
3429
+ case "GGGG":
3430
+ return i.isoWeekYear();
3431
+ case "wo":
3432
+ return c.ordinal(i.week(), "W");
3433
+ case "w":
3434
+ case "ww":
3435
+ return l.s(i.week(), u === "w" ? 1 : 2, "0");
3436
+ case "W":
3437
+ case "WW":
3438
+ return l.s(i.isoWeek(), u === "W" ? 1 : 2, "0");
3439
+ case "k":
3440
+ case "kk":
3441
+ return l.s(String(i.$H === 0 ? 24 : i.$H), u === "k" ? 1 : 2, "0");
3442
+ case "X":
3443
+ return Math.floor(i.$d.getTime() / 1e3);
3444
+ case "x":
3445
+ return i.$d.getTime();
3446
+ case "z":
3447
+ return "[" + i.offsetName() + "]";
3448
+ case "zzz":
3449
+ return "[" + i.offsetName("long") + "]";
3450
+ default:
3451
+ return u;
3452
+ }
3453
+ });
3454
+ return o.bind(this)(m);
3455
+ };
3456
+ };
3457
+ });
3458
+ })(on);
3459
+ var si = on.exports;
3460
+ const ii = /* @__PURE__ */ Tt(si);
3461
+ var an = { exports: {} };
3462
+ (function(t, e) {
3463
+ (function(r, n) {
3464
+ t.exports = n();
3465
+ })(Pt, function() {
3466
+ return function(r, n) {
3467
+ n.prototype.isSameOrBefore = function(a, o) {
3468
+ return this.isSame(a, o) || this.isBefore(a, o);
3469
+ };
3470
+ };
3471
+ });
3472
+ })(an);
3473
+ var li = an.exports;
3474
+ const ci = /* @__PURE__ */ Tt(li);
3475
+ var sn = { exports: {} };
3476
+ (function(t, e) {
3477
+ (function(r, n) {
3478
+ t.exports = n();
3479
+ })(Pt, function() {
3480
+ return function(r, n, a) {
3481
+ n.prototype.isBetween = function(o, s, i, c) {
3482
+ var l = a(o), m = a(s), u = (c = c || "()")[0] === "(", d = c[1] === ")";
3483
+ return (u ? this.isAfter(l, i) : !this.isBefore(l, i)) && (d ? this.isBefore(m, i) : !this.isAfter(m, i)) || (u ? this.isBefore(l, i) : !this.isAfter(l, i)) && (d ? this.isAfter(m, i) : !this.isBefore(m, i));
3484
+ };
3485
+ };
3486
+ });
3487
+ })(sn);
3488
+ var ui = sn.exports;
3489
+ const fi = /* @__PURE__ */ Tt(ui);
3490
+ var ln = { exports: {} };
3491
+ (function(t, e) {
3492
+ (function(r, n) {
3493
+ t.exports = n();
3494
+ })(Pt, function() {
3495
+ var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
3496
+ return function(n, a, o) {
3497
+ var s = a.prototype, i = s.format;
3498
+ o.en.formats = r, s.format = function(c) {
3499
+ c === void 0 && (c = "YYYY-MM-DDTHH:mm:ssZ");
3500
+ var l = this.$locale().formats, m = function(u, d) {
3501
+ return u.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(f, h, p) {
3502
+ var g = p && p.toUpperCase();
3503
+ return h || d[p] || r[p] || d[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(O, A, _) {
3504
+ return A || _.slice(1);
3505
+ });
3506
+ });
3507
+ }(c, l === void 0 ? {} : l);
3508
+ return i.call(this, m);
3509
+ };
3510
+ };
3511
+ });
3512
+ })(ln);
3513
+ var di = ln.exports;
3514
+ const pi = /* @__PURE__ */ Tt(di);
3515
+ var mi = { exports: {} };
3516
+ (function(t, e) {
3517
+ (function(r, n) {
3518
+ t.exports = n(en);
3519
+ })(Pt, function(r) {
3520
+ function n(s) {
3521
+ return s && typeof s == "object" && "default" in s ? s : { default: s };
3522
+ }
3523
+ var a = n(r), o = { name: "hu", weekdays: "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"), weekdaysShort: "vas_hét_kedd_sze_csüt_pén_szo".split("_"), weekdaysMin: "v_h_k_sze_cs_p_szo".split("_"), months: "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"), monthsShort: "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"), ordinal: function(s) {
3524
+ return s + ".";
3525
+ }, weekStart: 1, relativeTime: { future: "%s múlva", past: "%s", s: function(s, i, c, l) {
3526
+ return "néhány másodperc" + (l || i ? "" : "e");
3527
+ }, m: function(s, i, c, l) {
3528
+ return "egy perc" + (l || i ? "" : "e");
3529
+ }, mm: function(s, i, c, l) {
3530
+ return s + " perc" + (l || i ? "" : "e");
3531
+ }, h: function(s, i, c, l) {
3532
+ return "egy " + (l || i ? "óra" : "órája");
3533
+ }, hh: function(s, i, c, l) {
3534
+ return s + " " + (l || i ? "óra" : "órája");
3535
+ }, d: function(s, i, c, l) {
3536
+ return "egy " + (l || i ? "nap" : "napja");
3537
+ }, dd: function(s, i, c, l) {
3538
+ return s + " " + (l || i ? "nap" : "napja");
3539
+ }, M: function(s, i, c, l) {
3540
+ return "egy " + (l || i ? "hónap" : "hónapja");
3541
+ }, MM: function(s, i, c, l) {
3542
+ return s + " " + (l || i ? "hónap" : "hónapja");
3543
+ }, y: function(s, i, c, l) {
3544
+ return "egy " + (l || i ? "év" : "éve");
3545
+ }, yy: function(s, i, c, l) {
3546
+ return s + " " + (l || i ? "év" : "éve");
3547
+ } }, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY. MMMM D.", LLL: "YYYY. MMMM D. H:mm", LLLL: "YYYY. MMMM D., dddd H:mm" } };
3548
+ return a.default.locale(o, null, !0), o;
3549
+ });
3550
+ })(mi);
3551
+ X.extend(ni);
3552
+ X.extend(ai);
3553
+ X.extend(ii);
3554
+ X.extend(pi);
3555
+ X.extend(ci);
3556
+ X.extend(fi);
3557
+ const hi = () => X.tz.guess(), ve = (t = "", e = "", r = "", n = "hu") => (r = r || X.tz.guess(), X(t).isValid() ? X(t).tz(r).locale(n).format(e) : ""), Xt = (t = "", e = "", r = "hu") => {
3558
+ if (!X(t).isValid())
3559
+ return "";
3560
+ e = e || X.tz.guess();
3561
+ const a = new Intl.DateTimeFormat(gi(r), {
3562
+ timeZone: e,
3563
+ timeZoneName: "short"
3564
+ }).formatToParts(new Date(t)).find((o) => o.type === "timeZoneName");
3565
+ return a && a.value;
3566
+ }, gi = (t) => $a.get(t), cn = (t) => {
3567
+ const e = t.split(":");
3568
+ return parseInt(e[0], 10) * 60 + parseInt(e[1], 10);
3569
+ }, yi = (t) => {
3570
+ const e = ~~(t / 60), r = ~~t % 60;
3571
+ return ir(e, "0", 2) + ":" + ir(r, "0", 2);
3572
+ }, vi = (t, e = "day") => X().isSameOrBefore(X(t), e), Wi = (t, e, r) => X(t).isBetween(e, X(r)), Ki = (t, e, r = "month") => X(t).isSame(e, r), bi = ["onClick"], qi = {
3573
+ __name: "TimezoneSelector",
3574
+ props: {
3575
+ locale: {
3576
+ type: String,
3577
+ default: "hu"
3578
+ },
3579
+ currentZone: {
3580
+ type: String,
3581
+ required: !0
3582
+ }
3583
+ },
3584
+ emits: ["change"],
3585
+ setup(t, { emit: e }) {
3586
+ const r = t, { t: n } = Wt(), a = It("timezone-selector"), o = Z(() => Xt(/* @__PURE__ */ new Date(), null, r.locale)), s = hi(), i = Z(() => Array.from(xa.values()).map((l) => ({
3587
+ ...l,
3588
+ isActive: Xt(/* @__PURE__ */ new Date(), r.currentZone, r.locale) === Xt(/* @__PURE__ */ new Date(), l.timezone, r.locale),
3589
+ zoneOffsetName: Xt(/* @__PURE__ */ new Date(), l.timezone, r.locale)
3590
+ }))), c = (l) => e("change", l);
3591
+ return (l, m) => (L(), z("div", {
3592
+ class: rt(b(a))
3593
+ }, [
3594
+ $t(b(va), {
3595
+ path: "common.selectTimezone",
3596
+ tag: "span"
3597
+ }, {
3598
+ timezone: lt(() => [
3599
+ R("a", {
3600
+ href: "#",
3601
+ onClick: m[0] || (m[0] = Ht((u) => c(b(s)), ["prevent"]))
3602
+ }, Q(o.value), 1)
3603
+ ]),
3604
+ _: 1
3605
+ }),
3606
+ (L(!0), z(Ot, null, Bt(i.value, (u) => (L(), z("a", {
3607
+ key: u.countryLabelKey,
3608
+ href: "#",
3609
+ class: rt({ "is-active": u.isActive }),
3610
+ onClick: Ht((d) => c(u.timezone), ["prevent"])
3611
+ }, Q(b(n)(`common.${u.countryLabelKey}`)) + " (" + Q(u.zoneOffsetName) + ") ", 11, bi))), 128))
3612
+ ], 2));
3613
+ }
3614
+ }, wi = (t, e = "", r = {}) => {
3615
+ const n = H(""), { t: a } = Wt();
3616
+ if (e)
3617
+ try {
3618
+ const i = Pi(b(t), e);
3619
+ t = na(i, b(t));
3620
+ } catch (i) {
3621
+ n.value = i;
3622
+ }
3623
+ const o = (i) => ({
3624
+ ...i,
3625
+ ...i.label && { label: a(i.label ?? "", b(r)) },
3626
+ ...i.tooltip && { tooltip: a(i.tooltip ?? "") }
3627
+ });
3628
+ return {
3629
+ columns: Z(() => _t(o, b(t))),
3630
+ error: n
3631
+ };
3632
+ }, Pi = (t, e = "") => {
3633
+ const r = _t(ee, Yt(",", e)), n = xt(t);
3634
+ if (r[0] === "")
3635
+ return resolve([]);
3636
+ const a = r.findIndex((o) => !n.includes(o));
3637
+ if (a > -1)
3638
+ throw r[a];
3639
+ return r;
3640
+ };
3641
+ class Oi extends Error {
3642
+ constructor(e, r = {}) {
3643
+ const { key: n, cause: a } = r;
3644
+ super(e), this.name = "WidgetError", this.key = n, this.cause = a;
3645
+ }
3646
+ }
3647
+ const cr = {
3648
+ message: "Undefined Column name Message",
3649
+ options: {
3650
+ key: "undefined-column",
3651
+ cause: {}
3652
+ }
3653
+ }, Zi = {
3654
+ message: "Invalid season name",
3655
+ options: {
3656
+ key: "invalid-season-name",
3657
+ cause: {}
3658
+ }
3659
+ }, Ai = { class: "is-portrait-image" }, $i = ["href"], xi = ["href"], Xi = {
3660
+ __name: "StatisticsTable",
3661
+ props: {
3662
+ columns: {
3663
+ type: Object,
3664
+ required: !0
3665
+ },
3666
+ rows: {
3667
+ type: Array,
3668
+ default: () => []
3669
+ },
3670
+ isLoading: {
3671
+ type: Boolean,
3672
+ deafult: !1
3673
+ },
3674
+ hideColumns: {
3675
+ type: String,
3676
+ default: ""
3677
+ },
3678
+ sort: {
3679
+ type: Object,
3680
+ default: () => ({})
3681
+ },
3682
+ externalTeamResolver: {
3683
+ type: Function,
3684
+ required: !0
3685
+ },
3686
+ externalPlayerResolver: {
3687
+ type: Function,
3688
+ default: () => {
3689
+ }
3690
+ },
3691
+ isTeamLinked: {
3692
+ type: Boolean,
3693
+ default: !1
3694
+ },
3695
+ isPlayerLinked: {
3696
+ type: Boolean,
3697
+ default: !1
3698
+ }
3699
+ },
3700
+ emits: ["sort"],
3701
+ setup(t, { emit: e }) {
3702
+ const r = t, { onError: n } = ys(), a = Z(() => r.columns), { columns: o, error: s } = wi(a, r.hideColumns);
3703
+ s.value && n(
3704
+ new Oi(cr.message, {
3705
+ ...cr.options,
3706
+ cause: { column: s.value }
3707
+ })
3708
+ );
3709
+ const i = (c) => e("sort", c);
3710
+ return (c, l) => (L(), gt(ei, null, {
3711
+ default: lt(({ el: m }) => [
3712
+ $t(is, {
3713
+ columns: b(o),
3714
+ sort: r.sort,
3715
+ rows: r.rows,
3716
+ "is-loading": t.isLoading,
3717
+ "append-to": m,
3718
+ onSort: i
3719
+ }, bn({
3720
+ "cell-index": lt(({ row: u }) => [
3721
+ R("span", {
3722
+ class: rt(u.indexClass)
3723
+ }, Q(u.index), 3)
3724
+ ]),
3725
+ "cell-playerPortrait": lt(({ row: u }) => [
3726
+ R("div", Ai, [
3727
+ (L(), gt(lr, {
3728
+ key: u.id || u.playerId,
3729
+ src: u.playerPortrait,
3730
+ "default-src": b(Pa)
3731
+ }, null, 8, ["src", "default-src"]))
3732
+ ])
3733
+ ]),
3734
+ "cell-teamLogo": lt(({ row: u }) => [
3735
+ (L(), gt(lr, {
3736
+ class: "is-logo-image",
3737
+ key: u.teamId || u.id,
3738
+ src: u.teamLogo
3739
+ }, null, 8, ["src"]))
3740
+ ]),
3741
+ loading: lt(() => [
3742
+ $t(Is)
3743
+ ]),
3744
+ _: 2
3745
+ }, [
3746
+ t.isTeamLinked ? {
3747
+ name: "cell-teamName",
3748
+ fn: lt(({ row: u }) => [
3749
+ R("a", {
3750
+ href: t.externalTeamResolver(u.teamName),
3751
+ target: "_blank"
3752
+ }, Q(u.teamName), 9, $i)
3753
+ ]),
3754
+ key: "0"
3755
+ } : void 0,
3756
+ t.isPlayerLinked ? {
3757
+ name: "cell-name",
3758
+ fn: lt(({ row: u }) => [
3759
+ R("a", {
3760
+ href: t.externalPlayerResolver(u.id),
3761
+ target: "_blank"
3762
+ }, Q(u.name), 9, xi)
3763
+ ]),
3764
+ key: "1"
3765
+ } : void 0
3766
+ ]), 1032, ["columns", "sort", "rows", "is-loading", "append-to"])
3767
+ ]),
3768
+ _: 1
3769
+ }));
3770
+ }
3771
+ }, _i = {};
3772
+ function Si(t, e) {
3773
+ return L(), z("div", null, " Test-8 ");
3774
+ }
3775
+ const Ji = /* @__PURE__ */ Qr(_i, [["render", Si]]), Ti = async (t, e, r) => {
3776
+ const n = `${ba}${b(t)}?${Mi(r)}`;
3777
+ return new Promise((a, o) => {
3778
+ fetch(n, {
3779
+ method: "GET",
3780
+ cache: "no-cache",
3781
+ headers: {
3782
+ "Content-Type": "application/json",
3783
+ "X-API-KEY": Di(e)
3784
+ }
3785
+ }).then((s) => s.json()).then((s) => {
3786
+ if (s.error)
3787
+ return o(s);
3788
+ a(s.data);
3789
+ }).catch((s) => {
3790
+ o(s);
3791
+ });
3792
+ });
3793
+ }, Mi = (t) => Object.keys(t).map((e) => e + "=" + t[e]).join("&"), Di = (t) => {
3794
+ var e;
3795
+ return t || ((e = window.__MJSZ_VBR_WIDGET__) != null && e.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : {}.NODE_ENV !== "production" ? {}.VITE_VBR_API_KEY : "");
3796
+ }, Qi = (t = {}) => {
3797
+ const { initial: e = 1, items: r = [], limit: n, auto: a = !1 } = t, o = H(e), s = (l) => vi(l, "day");
3798
+ return $n(r, () => {
3799
+ if (!a)
3800
+ return;
3801
+ const l = Ro(ia(s, "gameDate"))(b(r));
3802
+ o.value = l === -1 ? 1 : Math.floor(l / n) + 1;
3803
+ }), {
3804
+ page: o,
3805
+ change: (l) => {
3806
+ o.value = l;
3807
+ }
3808
+ };
3809
+ }, tl = ({ options: t = {}, transform: e = (n) => n, onError: r = bt }) => {
3810
+ const { path: n, apiKey: a, params: o } = t, {
3811
+ state: s,
3812
+ error: i,
3813
+ isLoading: c,
3814
+ execute: l
3815
+ } = Ar(() => Ti(n, a, b(o)).then((m) => e(m)), [], {
3816
+ immediate: !1,
3817
+ resetOnExecute: !1,
3818
+ onError: r
3819
+ });
3820
+ return {
3821
+ state: s,
3822
+ error: i,
3823
+ isLoading: c,
3824
+ execute: l
3825
+ };
3826
+ };
3827
+ /*! *****************************************************************************
3828
+ Copyright (c) Microsoft Corporation.
3829
+
3830
+ Permission to use, copy, modify, and/or distribute this software for any
3831
+ purpose with or without fee is hereby granted.
3832
+
3833
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3834
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3835
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3836
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3837
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3838
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3839
+ PERFORMANCE OF THIS SOFTWARE.
3840
+ ***************************************************************************** */
3841
+ function ur(t, e) {
3842
+ var r = typeof Symbol == "function" && t[Symbol.iterator];
3843
+ if (!r)
3844
+ return t;
3845
+ var n, a, o = r.call(t), s = [];
3846
+ try {
3847
+ for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; )
3848
+ s.push(n.value);
3849
+ } catch (i) {
3850
+ a = { error: i };
3851
+ } finally {
3852
+ try {
3853
+ n && !n.done && (r = o.return) && r.call(o);
3854
+ } finally {
3855
+ if (a)
3856
+ throw a.error;
3857
+ }
3858
+ }
3859
+ return s;
3860
+ }
3861
+ var fr;
3862
+ (function(t) {
3863
+ t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
3864
+ })(fr || (fr = {}));
3865
+ var ki = { type: "xstate.init" };
3866
+ function be(t) {
3867
+ return t === void 0 ? [] : [].concat(t);
3868
+ }
3869
+ function dr(t, e) {
3870
+ return typeof (t = typeof t == "string" && e && e[t] ? e[t] : t) == "string" ? { type: t } : typeof t == "function" ? { type: t.name, exec: t } : t;
3871
+ }
3872
+ function Se(t) {
3873
+ return function(e) {
3874
+ return t === e;
3875
+ };
3876
+ }
3877
+ function Li(t) {
3878
+ return typeof t == "string" ? { type: t } : t;
3879
+ }
3880
+ function pr(t, e) {
3881
+ return { value: t, context: e, actions: [], changed: !1, matches: Se(t) };
3882
+ }
3883
+ function mr(t, e, r) {
3884
+ var n = e, a = !1;
3885
+ return [t.filter(function(o) {
3886
+ if (o.type === "xstate.assign") {
3887
+ a = !0;
3888
+ var s = Object.assign({}, n);
3889
+ return typeof o.assignment == "function" ? s = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(i) {
3890
+ s[i] = typeof o.assignment[i] == "function" ? o.assignment[i](n, r) : o.assignment[i];
3891
+ }), n = s, !1;
3892
+ }
3893
+ return !0;
3894
+ }), n, a];
3895
+ }
3896
+ function Ei(t, e) {
3897
+ e === void 0 && (e = {});
3898
+ var r = ur(mr(be(t.states[t.initial].entry).map(function(s) {
3899
+ return dr(s, e.actions);
3900
+ }), t.context, ki), 2), n = r[0], a = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: a, matches: Se(t.initial) }, transition: function(s, i) {
3901
+ var c, l, m = typeof s == "string" ? { value: s, context: t.context } : s, u = m.value, d = m.context, f = Li(i), h = t.states[u];
3902
+ if (h.on) {
3903
+ var p = be(h.on[f.type]);
3904
+ try {
3905
+ for (var g = function(v) {
3906
+ var S = typeof Symbol == "function" && Symbol.iterator, M = S && v[S], I = 0;
3907
+ if (M)
3908
+ return M.call(v);
3909
+ if (v && typeof v.length == "number")
3910
+ return { next: function() {
3911
+ return v && I >= v.length && (v = void 0), { value: v && v[I++], done: !v };
3912
+ } };
3913
+ throw new TypeError(S ? "Object is not iterable." : "Symbol.iterator is not defined.");
3914
+ }(p), O = g.next(); !O.done; O = g.next()) {
3915
+ var A = O.value;
3916
+ if (A === void 0)
3917
+ return pr(u, d);
3918
+ var _ = typeof A == "string" ? { target: A } : A, D = _.target, k = _.actions, N = k === void 0 ? [] : k, j = _.cond, U = j === void 0 ? function() {
3919
+ return !0;
3920
+ } : j, E = D === void 0, T = D ?? u, G = t.states[T];
3921
+ if (U(d, f)) {
3922
+ var K = ur(mr((E ? be(N) : [].concat(h.exit, N, G.entry).filter(function(v) {
3923
+ return v;
3924
+ })).map(function(v) {
3925
+ return dr(v, o._options.actions);
3926
+ }), d, f), 3), x = K[0], P = K[1], w = K[2], $ = D ?? u;
3927
+ return { value: $, context: P, actions: x, changed: D !== u || x.length > 0 || w, matches: Se($) };
3928
+ }
3929
+ }
3930
+ } catch (v) {
3931
+ c = { error: v };
3932
+ } finally {
3933
+ try {
3934
+ O && !O.done && (l = g.return) && l.call(g);
3935
+ } finally {
3936
+ if (c)
3937
+ throw c.error;
3938
+ }
3939
+ }
3940
+ }
3941
+ return pr(u, d);
3942
+ } };
3943
+ return o;
3944
+ }
3945
+ const Ii = Ei({
3946
+ id: "sort",
3947
+ initial: yt,
3948
+ states: {
3949
+ [yt]: {
3950
+ on: {
3951
+ DIRECTION1: y,
3952
+ DIRECTION2: C
3953
+ }
3954
+ },
3955
+ [y]: {
3956
+ on: {
3957
+ DIRECTION1: C,
3958
+ DIRECTION2: yt
3959
+ }
3960
+ },
3961
+ [C]: {
3962
+ on: {
3963
+ DIRECTION1: yt,
3964
+ DIRECTION2: y
3965
+ }
3966
+ }
3967
+ }
3968
+ }), zi = (t, e) => {
3969
+ const r = e === C ? "DIRECTION2" : "DIRECTION1";
3970
+ return Ii.transition(t, r).value;
3971
+ };
3972
+ function el(t = {}) {
3973
+ const { sortTarget: e = null, orders: r = [] } = t, n = gr({ sortTarget: e, orders: r });
3974
+ return {
3975
+ sort: n,
3976
+ change: ({ target: o, orders: s }) => {
3977
+ if (n.sortTarget !== o) {
3978
+ n.sortTarget = o, n.orders = s;
3979
+ return;
3980
+ }
3981
+ const i = s.map((c, l) => ({
3982
+ ...c,
3983
+ direction: zi(n.orders[l].direction, c.direction)
3984
+ }));
3985
+ n.sortTarget = o, n.orders = i;
3986
+ }
3987
+ };
3988
+ }
3989
+ function rl(t = !1, e = bt, r = bt) {
3990
+ const n = In();
3991
+ dt(n, (a) => {
3992
+ if (b(t)) {
3993
+ if (a === "visible")
3994
+ return e();
3995
+ r();
3996
+ }
3997
+ });
3998
+ }
3999
+ const nl = (t = []) => ({
4000
+ result: [...t],
4001
+ filteredRowsLength: 0,
4002
+ isFiltered: !1,
4003
+ value() {
4004
+ return {
4005
+ rows: this.result,
4006
+ totalItems: this.filteredRowsLength,
4007
+ totalItems: this.isFiltered ? this.filteredRowsLength : t.length
4008
+ };
4009
+ },
4010
+ filter(e, r = [], n = !1) {
4011
+ if (e) {
4012
+ const a = r.map(
4013
+ (s) => n ? aa(s, e) : Nr(Lt(s), fa, Yo(e))
4014
+ ), o = Tr(yo([...a]), this.result);
4015
+ this.isFiltered = !0, this.filteredRowsLength = o.length, this.result = o;
4016
+ }
4017
+ return this;
4018
+ },
4019
+ sorted(e) {
4020
+ if (!e.sortTarget)
4021
+ return this;
4022
+ if (e.orders[0].direction === yt)
4023
+ return this;
4024
+ const r = Vo(ue(C), Ze(zr), Ze(Eo));
4025
+ return this.result = Rr(e.orders.map((n) => Cr(r(n.direction), Lt)(n.target)))(this.result), this;
4026
+ },
4027
+ addIndex(e = null) {
4028
+ return this.result.reduce((r, n, a) => {
4029
+ const o = r[r.length - 1] || [], s = e && o[e] === n[e];
4030
+ return n.index = s ? o.index : a + 1, n.indexClass = s ? "is-duplicated" : null, r.push(n), r;
4031
+ }, []), this;
4032
+ },
4033
+ addContinuousIndex() {
4034
+ return this.result = this.result.map((e, r) => ({
4035
+ ...e,
4036
+ index: r + 1
4037
+ })), this;
4038
+ },
4039
+ pagination(e, r) {
4040
+ e = Number(e), r = Number(r);
4041
+ const n = (e - 1) * r, a = n + r;
4042
+ return this.result = this.result.slice(n, a), this;
4043
+ },
4044
+ playerName() {
4045
+ return this.result = this.result.map((e) => ({
4046
+ ...e,
4047
+ name: `${e.lastName} ${e.firstName}`
4048
+ })), this;
4049
+ },
4050
+ schedule(e = "", r = "hu") {
4051
+ return this.result = this.result.map((n) => ({
4052
+ ...n,
4053
+ gameResult: `${n.homeTeamScore}-${n.awayTeamScore}`,
4054
+ gameDateDate: ve(n.gameDate, "L dddd", e, r),
4055
+ gameDateTime: ve(n.gameDate, "HH:mm", e, r)
4056
+ })), this;
4057
+ },
4058
+ gameDateFilter(e) {
4059
+ return e === null ? this : (this.result = this.result.filter((r) => new Date(r.gameDate).getMonth() == e), this);
4060
+ },
4061
+ convertTimes(e = []) {
4062
+ return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = cn(r[n]) : r), r)), this;
4063
+ },
4064
+ groupByDays() {
4065
+ return this.result = Bo((e) => ve(e.gameDate, "YYYY-MM-DD"))(this.result), this;
4066
+ }
4067
+ }), ol = (t, ...e) => _t(Cr(...e))(t), al = (t) => ({
4068
+ ...t,
4069
+ ...t.lastName && { name: `${t.lastName} ${t.firstName}` }
4070
+ }), sl = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = cn(e[r]) : e), e), il = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = yi(e[r])), e), Ni = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), ll = Rr([Ni, zr(Lt("id"))]), cl = (t, e) => {
4071
+ const r = Ie("gameResolver") || t;
4072
+ return typeof r == "function" ? r(e) : r ? r + e : wa + e;
4073
+ }, ul = (t, e) => {
4074
+ const r = Ie("teamResolver") || t;
4075
+ return typeof r == "function" ? r(e) : encodeURI(r ? r + e : Aa + e);
4076
+ }, fl = (t, e) => {
4077
+ const r = Ie("playerResolver") || t;
4078
+ return typeof r == "function" ? r(e) : encodeURI(r ? r + e : Oa + e);
4079
+ }, Ie = (t = "") => {
4080
+ var e;
4081
+ return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[t];
4082
+ }, dl = {
4083
+ locale: {
4084
+ type: String,
4085
+ default: "hu"
4086
+ },
4087
+ championshipId: {
4088
+ type: String,
4089
+ default: ""
4090
+ },
4091
+ division: {
4092
+ type: String,
4093
+ default: ""
4094
+ },
4095
+ apiKey: {
4096
+ type: String,
4097
+ default: ""
4098
+ },
4099
+ hideColumns: {
4100
+ type: String,
4101
+ default: ""
4102
+ }
4103
+ }, Ci = {
4104
+ externalTeamLink: {
4105
+ type: [String, Function],
4106
+ default: ""
4107
+ },
4108
+ isTeamLinked: {
4109
+ type: Boolean,
4110
+ default: !1
4111
+ }
4112
+ }, pl = {
4113
+ limit: {
4114
+ type: Number,
4115
+ default: 20
4116
+ },
4117
+ teamFilterByName: {
4118
+ type: String,
4119
+ default: ""
4120
+ },
4121
+ externalPlayerLink: {
4122
+ type: [String, Function],
4123
+ default: ""
4124
+ },
4125
+ isPlayerLinked: {
4126
+ type: Boolean,
4127
+ default: !1
4128
+ },
4129
+ ...Ci
4130
+ }, ml = {
4131
+ name: {
4132
+ label: "table.gameName.short",
4133
+ tooltip: "table.gameName.tooltip",
4134
+ class: "is-text-left is-text-light"
4135
+ },
4136
+ gameDateDate: {
4137
+ label: "table.gameDate.short",
4138
+ tooltip: "table.gameDate.tooltip",
4139
+ class: "is-text-left"
4140
+ },
4141
+ gameDateTime: {
4142
+ label: "table.gameDateTime.short",
4143
+ tooltip: "table.gameDateTime.tooltip",
4144
+ class: "is-text-left"
4145
+ },
4146
+ homeTeamName: {
4147
+ label: "table.homeTeam.short",
4148
+ tooltip: "table.homeTeam.tooltip",
4149
+ class: "is-text-right is-w-auto is-text-bold"
4150
+ },
4151
+ homeTeamLogo: {
4152
+ label: "",
4153
+ class: "is-has-image"
4154
+ },
4155
+ gameResult: {
4156
+ label: "",
4157
+ class: "is-text-bold is-text-xl"
4158
+ },
4159
+ gameResultType: {
4160
+ label: "",
4161
+ tooltip: ""
4162
+ },
4163
+ awayTeamLogo: {
4164
+ label: "",
4165
+ class: "is-has-image"
4166
+ },
4167
+ awayTeamName: {
4168
+ label: "table.awayTeam.short",
4169
+ tooltip: "table.awayTeam.tooltip",
4170
+ class: "is-text-left is-w-auto is-text-bold"
4171
+ },
4172
+ location: {
4173
+ label: "table.location.short",
4174
+ tooltip: "table.location.tooltip",
4175
+ class: "is-text-left"
4176
+ },
4177
+ broadcast: {
4178
+ label: "table.broadcast.short",
4179
+ tooltip: "table.broadcast.tooltip"
4180
+ },
4181
+ more: {
4182
+ label: ""
4183
+ }
4184
+ }, hl = {
4185
+ index: {
4186
+ label: "table.blank",
4187
+ class: "is-text-left"
4188
+ },
4189
+ teamLogo: {
4190
+ label: "",
4191
+ class: "is-has-image"
4192
+ },
4193
+ teamName: {
4194
+ label: "table.team.short",
4195
+ tooltip: "table.team.tooltip",
4196
+ class: "is-text-left is-w-auto is-text-bold",
4197
+ sortOrders: [{ target: "teamName", direction: C }]
4198
+ },
4199
+ m: {
4200
+ label: "table.game.short",
4201
+ tooltip: "table.game.tooltip",
4202
+ sortOrders: [{ target: "m", direction: y }]
4203
+ },
4204
+ p3: {
4205
+ label: "table.wins.short",
4206
+ tooltip: "table.wins.tooltip",
4207
+ sortOrders: [
4208
+ { target: "p3", direction: y },
4209
+ { target: "p2", direction: y }
4210
+ ]
4211
+ },
4212
+ p2: {
4213
+ label: "table.otw.short",
4214
+ tooltip: "table.otw.tooltip",
4215
+ sortOrders: [{ target: "p2", direction: y }]
4216
+ },
4217
+ p1: {
4218
+ label: "table.otl.short",
4219
+ tooltip: "table.otl.tooltip",
4220
+ sortOrders: [{ target: "p1", direction: C }]
4221
+ },
4222
+ p0: {
4223
+ label: "table.losses.short",
4224
+ tooltip: "table.losses.tooltip",
4225
+ sortOrders: [{ target: "p0", direction: C }]
4226
+ },
4227
+ plus: {
4228
+ label: "table.goalFor.short",
4229
+ tooltip: "table.goalFor.tooltip",
4230
+ sortOrders: [{ target: "plus", direction: y }]
4231
+ },
4232
+ minus: {
4233
+ label: "table.goalAgainst.short",
4234
+ tooltip: "table.goalAgainst.tooltip",
4235
+ sortOrders: [{ target: "minus", direction: C }]
4236
+ },
4237
+ gk: {
4238
+ label: "table.goalDiff.short",
4239
+ tooltip: "table.goalDiff.tooltip",
4240
+ sortOrders: [{ target: "gk", direction: y }]
4241
+ },
4242
+ p: {
4243
+ label: "table.points.short",
4244
+ tooltip: "table.points.tooltip",
4245
+ class: "is-text-bold",
4246
+ sortOrders: [{ target: "p", direction: y }]
4247
+ }
4248
+ }, gl = {
4249
+ index: {
4250
+ label: "#",
4251
+ class: "is-text-left"
4252
+ },
4253
+ teamLogo: {
4254
+ label: "",
4255
+ class: "is-has-image"
4256
+ },
4257
+ teamName: {
4258
+ label: "table.team.short",
4259
+ tooltip: "table.team.tooltip",
4260
+ class: "is-text-left is-w-auto is-text-bold",
4261
+ sortOrders: [{ target: "teamName", direction: C }]
4262
+ },
4263
+ m: {
4264
+ label: "table.game.short",
4265
+ tooltip: "table.game.tooltip",
4266
+ sortOrders: [{ target: "m", direction: y }]
4267
+ },
4268
+ p2: {
4269
+ label: "table.wins.short",
4270
+ tooltip: "table.wins.tooltip",
4271
+ sortOrders: [
4272
+ { target: "p2", direction: y },
4273
+ { target: "p1", direction: y }
4274
+ ]
4275
+ },
4276
+ p1: {
4277
+ label: "table.draw.short",
4278
+ tooltip: "table.draw.tooltip",
4279
+ sortOrders: [
4280
+ { target: "p1", direction: y },
4281
+ { target: "p2", direction: y }
4282
+ ]
4283
+ },
4284
+ p0: {
4285
+ label: "table.losses.short",
4286
+ tooltip: "table.losses.tooltip",
4287
+ sortOrders: [{ target: "p0", direction: C }]
4288
+ },
4289
+ plus: {
4290
+ label: "table.goalFor.short",
4291
+ tooltip: "table.goalFor.tooltip",
4292
+ sortOrders: [{ target: "plus", direction: y }]
4293
+ },
4294
+ minus: {
4295
+ label: "table.goalAgainst.short",
4296
+ tooltip: "table.goalAgainst.tooltip",
4297
+ sortOrders: [{ target: "minus", direction: C }]
4298
+ },
4299
+ gk: {
4300
+ label: "table.goalDiff.short",
4301
+ tooltip: "table.goalDiff.tooltip",
4302
+ sortOrders: [{ target: "gk", direction: y }]
4303
+ },
4304
+ p: {
4305
+ label: "table.points.short",
4306
+ tooltip: "table.points.tooltip",
4307
+ class: "is-text-bold",
4308
+ sortOrders: [{ target: "p", direction: y }]
4309
+ }
4310
+ }, yl = {
4311
+ index: {
4312
+ label: "#",
4313
+ class: "is-text-left"
4314
+ },
4315
+ playerPortrait: {
4316
+ label: "",
4317
+ class: "is-has-image"
4318
+ },
4319
+ name: {
4320
+ label: "table.name.short",
4321
+ tooltip: "table.name.tooltip",
4322
+ class: "is-text-left is-w-auto is-text-bold",
4323
+ sortOrders: [{ target: "name", direction: C }]
4324
+ },
4325
+ teamLogo: {
4326
+ label: "",
4327
+ class: "is-has-image"
4328
+ },
4329
+ teamName: {
4330
+ label: "table.team.short",
4331
+ tooltip: "table.team.tooltip",
4332
+ class: "is-text-left is-w-auto",
4333
+ sortOrders: [{ target: "teamName", direction: C }]
4334
+ },
4335
+ gp: {
4336
+ label: "table.game.short",
4337
+ tooltip: "table.game.tooltip",
4338
+ sortOrders: [{ target: "gp", direction: y }]
4339
+ },
4340
+ g: {
4341
+ label: "table.goals.short",
4342
+ tooltip: "table.goals.tooltip",
4343
+ sortOrders: [
4344
+ { target: "g", direction: y },
4345
+ { target: "a", direction: y }
4346
+ ]
4347
+ },
4348
+ a: {
4349
+ label: "table.assists.short",
4350
+ tooltip: "table.assists.tooltip",
4351
+ sortOrders: [
4352
+ { target: "a", direction: y },
4353
+ { target: "g", direction: y }
4354
+ ]
4355
+ },
4356
+ point: {
4357
+ label: "table.points.short",
4358
+ tooltip: "table.points.tooltip",
4359
+ sortOrders: [{ target: "point", direction: y }]
4360
+ },
4361
+ plusMinus: {
4362
+ label: "table.plusMinus.short",
4363
+ tooltip: "table.plusMinus.tooltip",
4364
+ sortOrders: [{ target: "plusMinus", direction: y }]
4365
+ },
4366
+ shoot: {
4367
+ label: "table.sog.short",
4368
+ tooltip: "table.sog.tooltip",
4369
+ sortOrders: [{ target: "shoot", direction: y }]
4370
+ },
4371
+ shootPercent: {
4372
+ label: "table.sogPercent.short",
4373
+ tooltip: "table.sogPercent.tooltip",
4374
+ sortOrders: [{ target: "shootPercent", direction: y }]
4375
+ }
4376
+ }, vl = {
4377
+ index: {
4378
+ label: "table.blank",
4379
+ class: "is-text-left"
4380
+ },
4381
+ playerPortrait: {
4382
+ label: "",
4383
+ class: "is-has-image"
4384
+ },
4385
+ name: {
4386
+ label: "table.name.short",
4387
+ tooltip: "table.name.tooltip",
4388
+ class: "is-text-left is-w-auto is-text-bold",
4389
+ sortOrders: [{ target: "name", direction: C }]
4390
+ },
4391
+ teamLogo: {
4392
+ label: "",
4393
+ class: "is-has-image"
4394
+ },
4395
+ teamName: {
4396
+ label: "table.team.short",
4397
+ tooltip: "table.team.tooltip",
4398
+ class: "is-text-left is-w-auto",
4399
+ sortOrders: [{ target: "teamName", direction: C }]
4400
+ },
4401
+ gp: {
4402
+ label: "table.game.short",
4403
+ tooltip: "table.game.tooltip",
4404
+ sortOrders: [{ target: "gp", direction: y }]
4405
+ },
4406
+ p2: {
4407
+ label: "table.minorPenalties.short",
4408
+ tooltip: "table.minorPenalties.tooltip",
4409
+ sortOrders: [
4410
+ { target: "p2", direction: y },
4411
+ { target: "pim", direction: y }
4412
+ ]
4413
+ },
4414
+ p5: {
4415
+ label: "table.majorPenalties.short",
4416
+ tooltip: "table.majorPenalties.tooltip",
4417
+ sortOrders: [
4418
+ { target: "p5", direction: y },
4419
+ { target: "pim", direction: y }
4420
+ ]
4421
+ },
4422
+ p10: {
4423
+ label: "table.misconducts.short",
4424
+ tooltip: "table.misconducts.tooltip",
4425
+ sortOrders: [
4426
+ { target: "p10", direction: y },
4427
+ { target: "pim", direction: y }
4428
+ ]
4429
+ },
4430
+ p20: {
4431
+ label: "table.gameMisconducts.short",
4432
+ tooltip: "table.gameMisconducts.tooltip",
4433
+ sortOrders: [
4434
+ { target: "p20", direction: y },
4435
+ { target: "pim", direction: y }
4436
+ ]
4437
+ },
4438
+ p25: {
4439
+ label: "table.matchPenalties.short",
4440
+ tooltip: "table.matchPenalties.tooltip",
4441
+ sortOrders: [
4442
+ { target: "p25", direction: y },
4443
+ { target: "pim", direction: y }
4444
+ ]
4445
+ },
4446
+ pim: {
4447
+ label: "table.pim.short",
4448
+ tooltip: "table.pim.tooltip",
4449
+ sortOrders: [{ target: "pim", direction: y }]
4450
+ }
4451
+ }, bl = {
4452
+ index: {
4453
+ label: "table.blank",
4454
+ class: "is-text-left"
4455
+ },
4456
+ playerPortrait: {
4457
+ label: "",
4458
+ class: "is-has-image"
4459
+ },
4460
+ name: {
4461
+ label: "table.name.short",
4462
+ tooltip: "table.name.tooltip",
4463
+ class: "is-text-left is-w-auto is-text-bold",
4464
+ sortOrders: [{ target: "name", direction: C }]
4465
+ },
4466
+ teamLogo: {
4467
+ label: "",
4468
+ class: "is-has-image"
4469
+ },
4470
+ teamName: {
4471
+ label: "table.team.short",
4472
+ tooltip: "table.team.tooltip",
4473
+ class: "is-text-left is-w-auto",
4474
+ sortOrders: [{ target: "teamName", direction: C }]
4475
+ },
4476
+ gkd: {
4477
+ label: "table.gpgk.short",
4478
+ tooltip: "table.gpgk.tooltip",
4479
+ sortOrders: [{ target: "gkd", direction: y }]
4480
+ },
4481
+ gpi: {
4482
+ label: "table.gpi.short",
4483
+ tooltip: "table.gpi.tooltip",
4484
+ sortOrders: [{ target: "gpi", direction: y }]
4485
+ },
4486
+ mip: {
4487
+ label: "table.toi.short",
4488
+ tooltip: "table.toi.tooltip",
4489
+ sortOrders: [{ target: "mipSec", direction: y }]
4490
+ },
4491
+ mipPercent: {
4492
+ label: "table.toiPercent.short",
4493
+ tooltip: "table.toiPercent.tooltip",
4494
+ sortOrders: [{ target: "mipPercent", direction: y }]
4495
+ },
4496
+ ga: {
4497
+ label: "table.ga.short",
4498
+ tooltip: "table.ga.tooltip",
4499
+ sortOrders: [{ target: "ga", direction: y }]
4500
+ },
4501
+ gaa: {
4502
+ label: "table.gaa.short",
4503
+ tooltip: "table.gaa.tooltip",
4504
+ sortOrders: [{ target: "gaa", direction: y }]
4505
+ },
4506
+ sa: {
4507
+ label: "table.sa.short",
4508
+ tooltip: "table.sa.tooltip",
4509
+ sortOrders: [{ target: "sa", direction: y }]
4510
+ },
4511
+ svs: {
4512
+ label: "table.svs.short",
4513
+ tooltip: "table.svs.tooltip",
4514
+ sortOrders: [{ target: "svs", direction: y }]
4515
+ },
4516
+ svsPercent: {
4517
+ label: "table.svsPercent.short",
4518
+ tooltip: "table.svsPercent.tooltip",
4519
+ sortOrders: [{ target: "svsPercent", direction: y }]
4520
+ }
4521
+ }, wl = {
4522
+ index: {
4523
+ label: "table.blank",
4524
+ class: "is-text-left"
4525
+ },
4526
+ teamLogo: {
4527
+ label: "",
4528
+ class: "is-has-image"
4529
+ },
4530
+ teamName: {
4531
+ label: "table.team.short",
4532
+ tooltip: "table.team.tooltip",
4533
+ class: "is-text-left is-w-auto is-text-bold",
4534
+ sortOrders: [{ target: "teamName", direction: C }]
4535
+ },
4536
+ home: {
4537
+ label: "table.homeHeader.short"
4538
+ },
4539
+ homeGame: {
4540
+ label: "table.homeGame.short",
4541
+ tooltip: "table.homeGame.tooltip",
4542
+ sortOrders: [{ target: "homeGame", direction: y }]
4543
+ },
4544
+ homeAttendance: {
4545
+ label: "table.homeAttendance.short",
4546
+ tooltip: "table.homeAttendance.tooltip",
4547
+ sortOrders: [{ target: "homeAttendance", direction: y }]
4548
+ },
4549
+ homeAttendanceAvg: {
4550
+ label: "table.homeAttendanceAvg.short",
4551
+ tooltip: "table.homeAttendanceAvg.tooltip",
4552
+ sortOrders: [{ target: "homeAttendanceAvg", direction: y }]
4553
+ },
4554
+ away: {
4555
+ label: "table.awayHeader.short"
4556
+ },
4557
+ awayGame: {
4558
+ label: "table.awayGame.short",
4559
+ tooltip: "table.awayGame.tooltip",
4560
+ sortOrders: [{ target: "awayGame", direction: y }]
4561
+ },
4562
+ awayAttendance: {
4563
+ label: "table.awayAttendance.short",
4564
+ tooltip: "table.awayAttendance.tooltip",
4565
+ sortOrders: [{ target: "awayAttendance", direction: y }]
4566
+ },
4567
+ awayAttendanceAvg: {
4568
+ label: "table.awayAttendanceAvg.short",
4569
+ tooltip: "table.awayAttendanceAvg.tooltip",
4570
+ sortOrders: [{ target: "awayAttendanceAvg", direction: y }]
4571
+ },
4572
+ total: {
4573
+ label: "table.totalHeader.short"
4574
+ },
4575
+ totalGame: {
4576
+ label: "table.totalGame.short",
4577
+ tooltip: "table.totalGame.tooltip",
4578
+ sortOrders: [{ target: "totalGame", direction: y }]
4579
+ },
4580
+ totalAttendance: {
4581
+ label: "table.totalAttendance.short",
4582
+ tooltip: "table.totalAttendance.tooltip",
4583
+ sortOrders: [{ target: "totalAttendance", direction: y }]
4584
+ },
4585
+ totalAttendanceAvg: {
4586
+ label: "table.totalAttendanceAvg.short",
4587
+ tooltip: "table.totalAttendanceAvg.tooltip",
4588
+ sortOrders: [{ target: "totalAttendanceAvg", direction: y }]
4589
+ }
4590
+ }, Pl = {
4591
+ index: {
4592
+ label: "table.blank",
4593
+ class: "is-text-left"
4594
+ },
4595
+ teamLogo: {
4596
+ label: "",
4597
+ class: "is-has-image"
4598
+ },
4599
+ teamName: {
4600
+ label: "table.team.short",
4601
+ tooltip: "table.team.tooltip",
4602
+ class: "is-text-left is-w-auto is-text-bold",
4603
+ sortOrders: [{ target: "teamName", direction: C }]
4604
+ },
4605
+ gp: {
4606
+ label: "table.game.short",
4607
+ tooltip: "table.game.tooltip",
4608
+ sortOrders: [{ target: "gp", direction: y }]
4609
+ },
4610
+ p2: {
4611
+ label: "table.minorPenalties.short",
4612
+ tooltip: "table.minorPenalties.tooltip",
4613
+ sortOrders: [
4614
+ { target: "p2", direction: y },
4615
+ { target: "pim", direction: y }
4616
+ ]
4617
+ },
4618
+ p5: {
4619
+ label: "table.majorPenalties.short",
4620
+ tooltip: "table.majorPenalties.tooltip",
4621
+ sortOrders: [
4622
+ { target: "p5", direction: y },
4623
+ { target: "pim", direction: y }
4624
+ ]
4625
+ },
4626
+ p10: {
4627
+ label: "table.misconducts.short",
4628
+ tooltip: "table.misconducts.tooltip",
4629
+ sortOrders: [
4630
+ { target: "p10", direction: y },
4631
+ { target: "pim", direction: y }
4632
+ ]
4633
+ },
4634
+ p20: {
4635
+ label: "table.gameMisconducts.short",
4636
+ tooltip: "table.gameMisconducts.tooltip",
4637
+ sortOrders: [
4638
+ { target: "p20", direction: y },
4639
+ { target: "pim", direction: y }
4640
+ ]
4641
+ },
4642
+ p25: {
4643
+ label: "table.matchPenalties.short",
4644
+ tooltip: "table.matchPenalties.tooltip",
4645
+ sortOrders: [
4646
+ { target: "p25", direction: y },
4647
+ { target: "pim", direction: y }
4648
+ ]
4649
+ },
4650
+ pimPerGame: {
4651
+ label: "table.pimPerGame.short",
4652
+ tooltip: "table.pimPerGame.tooltip",
4653
+ sortOrders: [{ target: "pimPerGame", direction: y }]
4654
+ },
4655
+ pim: {
4656
+ label: "table.pim.short",
4657
+ tooltip: "table.pim.tooltip",
4658
+ sortOrders: [{ target: "pim", direction: y }]
4659
+ }
4660
+ }, Ol = {
4661
+ index: {
4662
+ label: "table.blank",
4663
+ class: "is-text-left"
4664
+ },
4665
+ teamLogo: {
4666
+ label: "",
4667
+ class: "is-has-image"
4668
+ },
4669
+ teamName: {
4670
+ label: "table.team.short",
4671
+ tooltip: "table.team.tooltip",
4672
+ class: "is-text-left is-w-auto is-text-bold",
4673
+ sortOrders: [{ target: "teamName", direction: C }]
4674
+ },
4675
+ gp: {
4676
+ label: "table.game.short",
4677
+ tooltip: "table.game.tooltip",
4678
+ sortOrders: [{ target: "gp", direction: y }]
4679
+ },
4680
+ dvg: {
4681
+ label: "table.powerplayDisadvantages.short",
4682
+ tooltip: "table.powerplayDisadvantages.tooltip",
4683
+ sortOrders: [{ target: "dvg", direction: y }]
4684
+ },
4685
+ dvgTime: {
4686
+ label: "table.dvgTime.short",
4687
+ tooltip: "table.dvgTime.tooltip",
4688
+ sortOrders: [{ target: "dvgTimeSec", direction: y }]
4689
+ },
4690
+ dvgTimePP1: {
4691
+ label: "table.dvgTimePP1.short",
4692
+ tooltip: "table.dvgTimePP1.tooltip",
4693
+ sortOrders: [{ target: "dvgTimePP1Sec", direction: y }]
4694
+ },
4695
+ dvgTimePP2: {
4696
+ label: "table.dvgTimePP2.short",
4697
+ tooltip: "table.dvgTimePP2.tooltip",
4698
+ sortOrders: [{ target: "dvgTimePP2", direction: y }]
4699
+ },
4700
+ ppga: {
4701
+ label: "table.ppga.short",
4702
+ tooltip: "table.ppga.tooltip",
4703
+ sortOrders: [{ target: "ppga", direction: y }]
4704
+ },
4705
+ shgf: {
4706
+ label: "table.shgf.short",
4707
+ tooltip: "table.shgf.tooltip",
4708
+ sortOrders: [{ target: "shgf", direction: y }]
4709
+ },
4710
+ pkPercent: {
4711
+ label: "table.pkPercent.short",
4712
+ tooltip: "table.pkPercent.tooltip",
4713
+ sortOrders: [{ target: "pkPercent", direction: y }]
4714
+ }
4715
+ }, Al = {
4716
+ index: {
4717
+ label: "table.blank",
4718
+ class: "is-text-left"
4719
+ },
4720
+ teamLogo: {
4721
+ label: "",
4722
+ class: "is-has-image"
4723
+ },
4724
+ teamName: {
4725
+ label: "table.team.short",
4726
+ tooltip: "table.team.tooltip",
4727
+ class: "is-text-left is-w-auto is-text-bold",
4728
+ sortOrders: [{ target: "teamName", direction: C }]
4729
+ },
4730
+ gp: {
4731
+ label: "table.game.short",
4732
+ tooltip: "table.game.tooltip",
4733
+ sortOrders: [{ target: "gp", direction: y }]
4734
+ },
4735
+ adv: {
4736
+ label: "table.adv.short",
4737
+ tooltip: "table.adv.tooltip",
4738
+ sortOrders: [{ target: "adv", direction: y }]
4739
+ },
4740
+ advTime: {
4741
+ label: "table.advTime.short",
4742
+ tooltip: "table.advTime.tooltip",
4743
+ sortOrders: [{ target: "advTimeSec", direction: y }]
4744
+ },
4745
+ advTimePP1: {
4746
+ label: "table.advTimePP1.short",
4747
+ tooltip: "table.advTimePP1.tooltip",
4748
+ sortOrders: [{ target: "advTimePP1Sec", direction: y }]
4749
+ },
4750
+ advTimePP2: {
4751
+ label: "table.advTimePP2.short",
4752
+ tooltip: "table.advTimePP2.tooltip",
4753
+ sortOrders: [{ target: "advTimePP2Sec", direction: y }]
4754
+ },
4755
+ ppgf: {
4756
+ label: "table.ppgf.short",
4757
+ tooltip: "table.ppgf.tooltip",
4758
+ sortOrders: [{ target: "ppgf", direction: y }]
4759
+ },
4760
+ shga: {
4761
+ label: "table.shga.short",
4762
+ tooltip: "table.shga.tooltip",
4763
+ sortOrders: [{ target: "shga", direction: y }]
4764
+ },
4765
+ ppPercent: {
4766
+ label: "table.ppPercent.short",
4767
+ tooltip: "table.ppPercent.tooltip",
4768
+ sortOrders: [{ target: "ppPercent", direction: y }]
4769
+ }
4770
+ }, $l = {
4771
+ index: {
4772
+ label: "table.blank",
4773
+ class: "is-text-left"
4774
+ },
4775
+ teamLogo: {
4776
+ label: "",
4777
+ class: "is-has-image"
4778
+ },
4779
+ teamName: {
4780
+ label: "table.team.short",
4781
+ tooltip: "table.team.tooltip",
4782
+ class: "is-text-left is-w-auto is-text-bold",
4783
+ sortOrders: [{ target: "teamName", direction: C }]
4784
+ },
4785
+ m: {
4786
+ label: "table.game.short",
4787
+ tooltip: "table.game.tooltip",
4788
+ sortOrders: [{ target: "gp", direction: y }]
4789
+ },
4790
+ plus: {
4791
+ label: "table.goalFor.short",
4792
+ tooltip: "table.goalFor.tooltip",
4793
+ sortOrders: [{ target: "plus", direction: y }]
4794
+ },
4795
+ minus: {
4796
+ label: "table.goalAgainst.short",
4797
+ tooltip: "table.goalAgainst.tooltip",
4798
+ sortOrders: [{ target: "minus", direction: C }]
4799
+ },
4800
+ gk: {
4801
+ label: "table.goalDiff.short",
4802
+ tooltip: "table.goalDiff.tooltip",
4803
+ sortOrders: [{ target: "gk", direction: y }]
4804
+ },
4805
+ GFGP: {
4806
+ label: "table.gfgp.short",
4807
+ tooltip: "table.gfgp.tooltip",
4808
+ sortOrders: [{ target: "GFGP", direction: y }]
4809
+ },
4810
+ GAGP: {
4811
+ label: "table.gagp.short",
4812
+ tooltip: "table.gagp.tooltip",
4813
+ sortOrders: [{ target: "GAGP", direction: C }]
4814
+ },
4815
+ Shots: {
4816
+ label: "table.sog.short",
4817
+ tooltip: "table.sog.tooltip",
4818
+ sortOrders: [{ target: "Shots", direction: y }]
4819
+ },
4820
+ SA: {
4821
+ label: "table.sa.short",
4822
+ tooltip: "table.sa.tooltip",
4823
+ sortOrders: [{ target: "SA", direction: C }]
4824
+ },
4825
+ ShotsGP: {
4826
+ label: "table.sogp.short",
4827
+ tooltip: "table.sogp.tooltip",
4828
+ sortOrders: [{ target: "ShotsGP", direction: y }]
4829
+ },
4830
+ SAGP: {
4831
+ label: "table.sagp.short",
4832
+ tooltip: "table.sagp.tooltip",
4833
+ sortOrders: [{ target: "SAGP", direction: C }]
4834
+ },
4835
+ GFShots: {
4836
+ label: "table.sogPercent.short",
4837
+ tooltip: "table.sogPercent.tooltip",
4838
+ sortOrders: [{ target: "GFShots", direction: y }]
4839
+ }
4840
+ }, xl = ({ modules: t = [], apiKey: e, gameResolver: r, teamResolver: n, playerResolver: a }) => {
4841
+ if (window.__MJSZ_VBR_WIDGET__ = { apiKey: e, gameResolver: r, teamResolver: n, playerResolver: a }, t.length === 0)
4842
+ throw new Error("At least one module must be set");
4843
+ t.forEach((o) => {
4844
+ if (o.register)
4845
+ return o.register();
4846
+ o == null || o();
4847
+ });
4848
+ };
4849
+ export {
4850
+ xa as AVAILABLE_TIMEZONES_BY_COUNTRY,
4851
+ Ri as BaseSelect,
4852
+ yl as COLUMNS_FIELD_PLAYERS,
4853
+ vl as COLUMNS_FIELD_PLAYERS_PENALTY,
4854
+ bl as COLUMNS_GOALIES,
4855
+ ml as COLUMNS_SCHEDULE,
4856
+ $l as COLUMNS_SCORING_EFFICIENCY,
4857
+ gl as COLUMNS_STANDINGS_P_2,
4858
+ hl as COLUMNS_STANDINGS_P_3,
4859
+ Pl as COLUMNS_TEAMS_FAIRPLAY,
4860
+ Ol as COLUMNS_TEAMS_PENALTY_KILLING,
4861
+ Al as COLUMNS_TEAMS_POWERPLAY,
4862
+ wl as COLUMNS_TEAM_ATTENDANCE,
4863
+ wa as DEFAULT_EXTERNAL_BASE_URL,
4864
+ Oa as DEFAULT_EXTERNAL_PLAYER_URL,
4865
+ Aa as DEFAULT_EXTERNAL_TEAM_URL,
4866
+ Pa as DEFAULT_PORTRAIT_IMAGE_URL,
4867
+ is as DataTable,
4868
+ Vi as ErrorNotice,
4869
+ Hi as ErrorProvider,
4870
+ es as FloatingPanel,
4871
+ Yi as I18NProvider,
4872
+ lr as Image,
4873
+ Zi as InvalidSeasonName,
4874
+ _a as LAZY_LOADING_STATE_DELAY,
4875
+ $a as LOCALE_FOR_LANG,
4876
+ Is as LoadingIndicator,
4877
+ Ui as Paginator,
4878
+ Fi as REFRESH_DELAY,
4879
+ ei as ResponsiveTable,
4880
+ C as SORT_STATE_ASCEND,
4881
+ y as SORT_STATE_DESCEND,
4882
+ yt as SORT_STATE_ORIGINAL,
4883
+ Xi as StatisticsTable,
4884
+ Ji as Test,
4885
+ qi as TimezoneSelector,
4886
+ cr as UndefinedColumn,
4887
+ ba as VBR_API_BASE_URL,
4888
+ ji as VBR_API_GOALIE_PATH,
4889
+ Bi as VBR_API_GOALIE_UNDER_PATH,
4890
+ Oi as WidgetError,
4891
+ Xa as appendTo,
4892
+ dl as baseProps,
4893
+ nl as convert,
4894
+ cn as convertMinToSec,
4895
+ yi as convertSecToMin,
4896
+ sl as convertTimes,
4897
+ il as convertTimesSecToMin,
4898
+ xl as createConfig,
4899
+ ha as createI18n,
4900
+ cl as externalGameLinkResolver,
4901
+ fl as externalPlayerLinkResolver,
4902
+ ul as externalTeamLinkResolver,
4903
+ Ti as fetchVBRData,
4904
+ ve as format,
4905
+ hi as getLocalTimezone,
4906
+ va as i18n,
4907
+ Wi as isBetween,
4908
+ Ki as isSame,
4909
+ vi as isSameOrBefore,
4910
+ Xt as offsetName,
4911
+ al as playerName,
4912
+ pl as playerStatsProps,
4913
+ ol as rawConvert,
4914
+ ll as sortGames,
4915
+ ir as stringPadLeft,
4916
+ Ci as teamStatsProps,
4917
+ hs as toKebabCase,
4918
+ wi as useColumns,
4919
+ ys as useError,
4920
+ gs as useErrorProvider,
4921
+ Wt as useI18n,
4922
+ Bn as useLazyLoadingState,
4923
+ It as useMainClass,
4924
+ Qi as usePage,
4925
+ tl as useServices,
4926
+ el as useSort,
4927
+ rl as useVisibilityChange,
4928
+ Pi as validateColumnsName
4929
+ };