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