@mjsz-vbr-elements/core 2.9.1 → 2.10.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.
@@ -1,1272 +0,0 @@
1
- /**
2
- * name: @mjsz-vbr-elements/core
3
- * version: v2.9.1 - 09/01/2025, 16:02:42
4
- * (c) 2025
5
- * description: Data visualization for MJSZ VBR
6
- * author: Ákos Stegner <akos.stegner@gmail.com>
7
- */
8
- import { LOCALE_FOR_LANG as Nt } from "./constants.js";
9
- function A(t) {
10
- return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
11
- }
12
- function q(t) {
13
- return function e(r) {
14
- return arguments.length === 0 || A(r) ? e : t.apply(this, arguments);
15
- };
16
- }
17
- function B(t) {
18
- return function e(r, n) {
19
- switch (arguments.length) {
20
- case 0:
21
- return e;
22
- case 1:
23
- return A(r) ? e : q(function(a) {
24
- return t(r, a);
25
- });
26
- default:
27
- return A(r) && A(n) ? e : A(r) ? q(function(a) {
28
- return t(a, n);
29
- }) : A(n) ? q(function(a) {
30
- return t(r, a);
31
- }) : t(r, n);
32
- }
33
- };
34
- }
35
- function vt(t, e) {
36
- switch (t) {
37
- case 0:
38
- return function() {
39
- return e.apply(this, arguments);
40
- };
41
- case 1:
42
- return function(r) {
43
- return e.apply(this, arguments);
44
- };
45
- case 2:
46
- return function(r, n) {
47
- return e.apply(this, arguments);
48
- };
49
- case 3:
50
- return function(r, n, a) {
51
- return e.apply(this, arguments);
52
- };
53
- case 4:
54
- return function(r, n, a, i) {
55
- return e.apply(this, arguments);
56
- };
57
- case 5:
58
- return function(r, n, a, i, s) {
59
- return e.apply(this, arguments);
60
- };
61
- case 6:
62
- return function(r, n, a, i, s, u) {
63
- return e.apply(this, arguments);
64
- };
65
- case 7:
66
- return function(r, n, a, i, s, u, c) {
67
- return e.apply(this, arguments);
68
- };
69
- case 8:
70
- return function(r, n, a, i, s, u, c, o) {
71
- return e.apply(this, arguments);
72
- };
73
- case 9:
74
- return function(r, n, a, i, s, u, c, o, w) {
75
- return e.apply(this, arguments);
76
- };
77
- case 10:
78
- return function(r, n, a, i, s, u, c, o, w, S) {
79
- return e.apply(this, arguments);
80
- };
81
- default:
82
- throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
83
- }
84
- }
85
- function yt(t, e, r) {
86
- return function() {
87
- for (var n = [], a = 0, i = t, s = 0, u = !1; s < e.length || a < arguments.length; ) {
88
- var c;
89
- s < e.length && (!A(e[s]) || a >= arguments.length) ? c = e[s] : (c = arguments[a], a += 1), n[s] = c, A(c) ? u = !0 : i -= 1, s += 1;
90
- }
91
- return !u && i <= 0 ? r.apply(this, n) : vt(Math.max(0, i), yt(t, n, r));
92
- };
93
- }
94
- var $t = /* @__PURE__ */ B(function(e, r) {
95
- return e === 1 ? q(r) : vt(e, yt(e, [], r));
96
- });
97
- function Ce(t) {
98
- return function e(r, n, a) {
99
- switch (arguments.length) {
100
- case 0:
101
- return e;
102
- case 1:
103
- return A(r) ? e : B(function(i, s) {
104
- return t(r, i, s);
105
- });
106
- case 2:
107
- return A(r) && A(n) ? e : A(r) ? B(function(i, s) {
108
- return t(i, n, s);
109
- }) : A(n) ? B(function(i, s) {
110
- return t(r, i, s);
111
- }) : q(function(i) {
112
- return t(r, n, i);
113
- });
114
- default:
115
- return A(r) && A(n) && A(a) ? e : A(r) && A(n) ? B(function(i, s) {
116
- return t(i, s, a);
117
- }) : A(r) && A(a) ? B(function(i, s) {
118
- return t(i, n, s);
119
- }) : A(n) && A(a) ? B(function(i, s) {
120
- return t(r, i, s);
121
- }) : A(r) ? q(function(i) {
122
- return t(i, n, a);
123
- }) : A(n) ? q(function(i) {
124
- return t(r, i, a);
125
- }) : A(a) ? q(function(i) {
126
- return t(r, n, i);
127
- }) : t(r, n, a);
128
- }
129
- };
130
- }
131
- const Ft = Array.isArray || function(e) {
132
- return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]";
133
- };
134
- function Ht(t) {
135
- return t != null && typeof t["@@transducer/step"] == "function";
136
- }
137
- function Mt(t, e, r) {
138
- return function() {
139
- if (arguments.length === 0)
140
- return r();
141
- var n = arguments[arguments.length - 1];
142
- if (!Ft(n)) {
143
- for (var a = 0; a < t.length; ) {
144
- if (typeof n[t[a]] == "function")
145
- return n[t[a]].apply(n, Array.prototype.slice.call(arguments, 0, -1));
146
- a += 1;
147
- }
148
- if (Ht(n)) {
149
- var i = e.apply(null, Array.prototype.slice.call(arguments, 0, -1));
150
- return i(n);
151
- }
152
- }
153
- return r.apply(this, arguments);
154
- };
155
- }
156
- function Ie(t) {
157
- return t && t["@@transducer/reduced"] ? t : {
158
- "@@transducer/value": t,
159
- "@@transducer/reduced": !0
160
- };
161
- }
162
- const at = {
163
- init: function() {
164
- return this.xf["@@transducer/init"]();
165
- },
166
- result: function(t) {
167
- return this.xf["@@transducer/result"](t);
168
- }
169
- };
170
- function ft(t) {
171
- for (var e = [], r; !(r = t.next()).done; )
172
- e.push(r.value);
173
- return e;
174
- }
175
- function lt(t, e, r) {
176
- for (var n = 0, a = r.length; n < a; ) {
177
- if (t(e, r[n]))
178
- return !0;
179
- n += 1;
180
- }
181
- return !1;
182
- }
183
- function Ut(t) {
184
- var e = String(t).match(/^function (\w*)/);
185
- return e == null ? "" : e[1];
186
- }
187
- function ut(t, e) {
188
- return Object.prototype.hasOwnProperty.call(e, t);
189
- }
190
- function Bt(t, e) {
191
- return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
192
- }
193
- const st = typeof Object.is == "function" ? Object.is : Bt;
194
- var ht = Object.prototype.toString, Et = /* @__PURE__ */ function() {
195
- return ht.call(arguments) === "[object Arguments]" ? function(e) {
196
- return ht.call(e) === "[object Arguments]";
197
- } : function(e) {
198
- return ut("callee", e);
199
- };
200
- }(), Wt = !/* @__PURE__ */ {
201
- toString: null
202
- }.propertyIsEnumerable("toString"), dt = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], pt = /* @__PURE__ */ function() {
203
- return arguments.propertyIsEnumerable("length");
204
- }(), qt = function(e, r) {
205
- for (var n = 0; n < e.length; ) {
206
- if (e[n] === r)
207
- return !0;
208
- n += 1;
209
- }
210
- return !1;
211
- }, J = /* @__PURE__ */ q(typeof Object.keys == "function" && !pt ? function(e) {
212
- return Object(e) !== e ? [] : Object.keys(e);
213
- } : function(e) {
214
- if (Object(e) !== e)
215
- return [];
216
- var r, n, a = [], i = pt && Et(e);
217
- for (r in e)
218
- ut(r, e) && (!i || r !== "length") && (a[a.length] = r);
219
- if (Wt)
220
- for (n = dt.length - 1; n >= 0; )
221
- r = dt[n], ut(r, e) && !qt(a, r) && (a[a.length] = r), n -= 1;
222
- return a;
223
- }), mt = /* @__PURE__ */ q(function(e) {
224
- return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
225
- });
226
- function gt(t, e, r, n) {
227
- var a = ft(t), i = ft(e);
228
- function s(u, c) {
229
- return ot(u, c, r.slice(), n.slice());
230
- }
231
- return !lt(function(u, c) {
232
- return !lt(s, c, u);
233
- }, i, a);
234
- }
235
- function ot(t, e, r, n) {
236
- if (st(t, e))
237
- return !0;
238
- var a = mt(t);
239
- if (a !== mt(e))
240
- return !1;
241
- if (typeof t["fantasy-land/equals"] == "function" || typeof e["fantasy-land/equals"] == "function")
242
- return typeof t["fantasy-land/equals"] == "function" && t["fantasy-land/equals"](e) && typeof e["fantasy-land/equals"] == "function" && e["fantasy-land/equals"](t);
243
- if (typeof t.equals == "function" || typeof e.equals == "function")
244
- return typeof t.equals == "function" && t.equals(e) && typeof e.equals == "function" && e.equals(t);
245
- switch (a) {
246
- case "Arguments":
247
- case "Array":
248
- case "Object":
249
- if (typeof t.constructor == "function" && Ut(t.constructor) === "Promise")
250
- return t === e;
251
- break;
252
- case "Boolean":
253
- case "Number":
254
- case "String":
255
- if (!(typeof t == typeof e && st(t.valueOf(), e.valueOf())))
256
- return !1;
257
- break;
258
- case "Date":
259
- if (!st(t.valueOf(), e.valueOf()))
260
- return !1;
261
- break;
262
- case "Error":
263
- return t.name === e.name && t.message === e.message;
264
- case "RegExp":
265
- 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))
266
- return !1;
267
- break;
268
- }
269
- for (var i = r.length - 1; i >= 0; ) {
270
- if (r[i] === t)
271
- return n[i] === e;
272
- i -= 1;
273
- }
274
- switch (a) {
275
- case "Map":
276
- return t.size !== e.size ? !1 : gt(t.entries(), e.entries(), r.concat([t]), n.concat([e]));
277
- case "Set":
278
- return t.size !== e.size ? !1 : gt(t.values(), e.values(), r.concat([t]), n.concat([e]));
279
- case "Arguments":
280
- case "Array":
281
- case "Object":
282
- case "Boolean":
283
- case "Number":
284
- case "String":
285
- case "Date":
286
- case "Error":
287
- case "RegExp":
288
- case "Int8Array":
289
- case "Uint8Array":
290
- case "Uint8ClampedArray":
291
- case "Int16Array":
292
- case "Uint16Array":
293
- case "Int32Array":
294
- case "Uint32Array":
295
- case "Float32Array":
296
- case "Float64Array":
297
- case "ArrayBuffer":
298
- break;
299
- default:
300
- return !1;
301
- }
302
- var s = J(t);
303
- if (s.length !== J(e).length)
304
- return !1;
305
- var u = r.concat([t]), c = n.concat([e]);
306
- for (i = s.length - 1; i >= 0; ) {
307
- var o = s[i];
308
- if (!(ut(o, e) && ot(e[o], t[o], u, c)))
309
- return !1;
310
- i -= 1;
311
- }
312
- return !0;
313
- }
314
- var Zt = /* @__PURE__ */ B(function(e, r) {
315
- return ot(e, r, [], []);
316
- });
317
- function Gt(t, e, r) {
318
- var n, a;
319
- if (typeof t.indexOf == "function")
320
- switch (typeof e) {
321
- case "number":
322
- if (e === 0) {
323
- for (n = 1 / e; r < t.length; ) {
324
- if (a = t[r], a === 0 && 1 / a === n)
325
- return r;
326
- r += 1;
327
- }
328
- return -1;
329
- } else if (e !== e) {
330
- for (; r < t.length; ) {
331
- if (a = t[r], typeof a == "number" && a !== a)
332
- return r;
333
- r += 1;
334
- }
335
- return -1;
336
- }
337
- return t.indexOf(e, r);
338
- case "string":
339
- case "boolean":
340
- case "function":
341
- case "undefined":
342
- return t.indexOf(e, r);
343
- case "object":
344
- if (e === null)
345
- return t.indexOf(e, r);
346
- }
347
- for (; r < t.length; ) {
348
- if (Zt(t[r], e))
349
- return r;
350
- r += 1;
351
- }
352
- return -1;
353
- }
354
- function Pt(t, e) {
355
- return Gt(e, t, 0) >= 0;
356
- }
357
- function nt(t, e) {
358
- for (var r = 0, n = e.length, a = Array(n); r < n; )
359
- a[r] = t(e[r]), r += 1;
360
- return a;
361
- }
362
- function it(t) {
363
- 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");
364
- return '"' + e.replace(/"/g, '\\"') + '"';
365
- }
366
- var tt = function(e) {
367
- return (e < 10 ? "0" : "") + e;
368
- }, Vt = typeof Date.prototype.toISOString == "function" ? function(e) {
369
- return e.toISOString();
370
- } : function(e) {
371
- return e.getUTCFullYear() + "-" + tt(e.getUTCMonth() + 1) + "-" + tt(e.getUTCDate()) + "T" + tt(e.getUTCHours()) + ":" + tt(e.getUTCMinutes()) + ":" + tt(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
372
- };
373
- function Rt(t) {
374
- return function() {
375
- return !t.apply(this, arguments);
376
- };
377
- }
378
- function St(t, e, r) {
379
- for (var n = 0, a = r.length; n < a; )
380
- e = t(e, r[n]), n += 1;
381
- return e;
382
- }
383
- function Xt(t, e) {
384
- for (var r = 0, n = e.length, a = []; r < n; )
385
- t(e[r]) && (a[a.length] = e[r]), r += 1;
386
- return a;
387
- }
388
- function Jt(t) {
389
- return Object.prototype.toString.call(t) === "[object Object]";
390
- }
391
- var Qt = /* @__PURE__ */ function() {
392
- function t(e, r) {
393
- this.xf = r, this.f = e;
394
- }
395
- return t.prototype["@@transducer/init"] = at.init, t.prototype["@@transducer/result"] = at.result, t.prototype["@@transducer/step"] = function(e, r) {
396
- return this.f(r) ? this.xf["@@transducer/step"](e, r) : e;
397
- }, t;
398
- }();
399
- function Kt(t) {
400
- return function(e) {
401
- return new Qt(t, e);
402
- };
403
- }
404
- var te = /* @__PURE__ */ B(/* @__PURE__ */ Mt(["fantasy-land/filter", "filter"], Kt, function(t, e) {
405
- return Jt(e) ? St(function(r, n) {
406
- return t(e[n]) && (r[n] = e[n]), r;
407
- }, {}, J(e)) : (
408
- // else
409
- Xt(t, e)
410
- );
411
- })), ee = /* @__PURE__ */ B(function(e, r) {
412
- return te(Rt(e), r);
413
- });
414
- function _t(t, e) {
415
- var r = function(s) {
416
- var u = e.concat([t]);
417
- return Pt(s, u) ? "<Circular>" : _t(s, u);
418
- }, n = function(i, s) {
419
- return nt(function(u) {
420
- return it(u) + ": " + r(i[u]);
421
- }, s.slice().sort());
422
- };
423
- switch (Object.prototype.toString.call(t)) {
424
- case "[object Arguments]":
425
- return "(function() { return arguments; }(" + nt(r, t).join(", ") + "))";
426
- case "[object Array]":
427
- return "[" + nt(r, t).concat(n(t, ee(function(i) {
428
- return /^\d+$/.test(i);
429
- }, J(t)))).join(", ") + "]";
430
- case "[object Boolean]":
431
- return typeof t == "object" ? "new Boolean(" + r(t.valueOf()) + ")" : t.toString();
432
- case "[object Date]":
433
- return "new Date(" + (isNaN(t.valueOf()) ? r(NaN) : it(Vt(t))) + ")";
434
- case "[object Map]":
435
- return "new Map(" + r(Array.from(t)) + ")";
436
- case "[object Null]":
437
- return "null";
438
- case "[object Number]":
439
- return typeof t == "object" ? "new Number(" + r(t.valueOf()) + ")" : 1 / t === -1 / 0 ? "-0" : t.toString(10);
440
- case "[object Set]":
441
- return "new Set(" + r(Array.from(t).sort()) + ")";
442
- case "[object String]":
443
- return typeof t == "object" ? "new String(" + r(t.valueOf()) + ")" : it(t);
444
- case "[object Undefined]":
445
- return "undefined";
446
- default:
447
- if (typeof t.toString == "function") {
448
- var a = t.toString();
449
- if (a !== "[object Object]")
450
- return a;
451
- }
452
- return "{" + n(t, J(t)).join(", ") + "}";
453
- }
454
- }
455
- var re = /* @__PURE__ */ q(function(e) {
456
- return _t(e, []);
457
- }), ne = /* @__PURE__ */ function() {
458
- function t(e, r) {
459
- this.xf = r, this.f = e;
460
- }
461
- return t.prototype["@@transducer/init"] = at.init, t.prototype["@@transducer/result"] = at.result, t.prototype["@@transducer/step"] = function(e, r) {
462
- return this.xf["@@transducer/step"](e, this.f(r));
463
- }, t;
464
- }(), ae = function(e) {
465
- return function(r) {
466
- return new ne(e, r);
467
- };
468
- }, Ne = /* @__PURE__ */ B(/* @__PURE__ */ Mt(["fantasy-land/map", "map"], ae, function(e, r) {
469
- switch (Object.prototype.toString.call(r)) {
470
- case "[object Function]":
471
- return $t(r.length, function() {
472
- return e.call(this, r.apply(this, arguments));
473
- });
474
- case "[object Object]":
475
- return St(function(n, a) {
476
- return n[a] = e(r[a]), n;
477
- }, {}, J(r));
478
- default:
479
- return nt(e, r);
480
- }
481
- }));
482
- const wt = Number.isInteger || function(e) {
483
- return e << 0 === e;
484
- };
485
- function ue(t) {
486
- return Object.prototype.toString.call(t) === "[object String]";
487
- }
488
- function Ot(t, e) {
489
- var r = t < 0 ? e.length + t : t;
490
- return ue(e) ? e.charAt(r) : e[r];
491
- }
492
- var Fe = /* @__PURE__ */ B(function(e, r) {
493
- if (r != null)
494
- return wt(e) ? Ot(e, r) : r[e];
495
- });
496
- function se(t) {
497
- var e = Object.prototype.toString.call(t);
498
- return e === "[object Function]" || e === "[object AsyncFunction]" || e === "[object GeneratorFunction]" || e === "[object AsyncGeneratorFunction]";
499
- }
500
- var ie = /* @__PURE__ */ B(function(e, r) {
501
- return $t(e + 1, function() {
502
- var n = arguments[e];
503
- if (n != null && se(n[r]))
504
- return n[r].apply(n, Array.prototype.slice.call(arguments, 0, e));
505
- throw new TypeError(re(n) + ' does not have a method named "' + r + '"');
506
- });
507
- });
508
- function oe(t, e) {
509
- for (var r = e, n = 0; n < t.length; n += 1) {
510
- if (r == null)
511
- return;
512
- var a = t[n];
513
- wt(a) ? r = Ot(a, r) : r = r[a];
514
- }
515
- return r;
516
- }
517
- var ce = /* @__PURE__ */ B(oe), fe = /* @__PURE__ */ ie(1, "split");
518
- function He(t) {
519
- 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("-");
520
- }
521
- const Ue = function(t = "", e = {}) {
522
- return t.replace(/\{([^}]+)\}/g, function(r, n) {
523
- return ce(fe(".", n), e);
524
- });
525
- };
526
- var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
527
- function G(t) {
528
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
529
- }
530
- var Dt = { exports: {} };
531
- (function(t, e) {
532
- (function(r, n) {
533
- t.exports = n();
534
- })(Z, function() {
535
- var r = 1e3, n = 6e4, a = 36e5, i = "millisecond", s = "second", u = "minute", c = "hour", o = "day", w = "week", S = "month", M = "quarter", D = "year", y = "date", l = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|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, b = { 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(m) {
536
- var d = ["th", "st", "nd", "rd"], f = m % 100;
537
- return "[" + m + (d[(f - 20) % 10] || d[f] || d[0]) + "]";
538
- } }, j = function(m, d, f) {
539
- var p = String(m);
540
- return !p || p.length >= d ? m : "" + Array(d + 1 - p.length).join(f) + m;
541
- }, C = { s: j, z: function(m) {
542
- var d = -m.utcOffset(), f = Math.abs(d), p = Math.floor(f / 60), h = f % 60;
543
- return (d <= 0 ? "+" : "-") + j(p, 2, "0") + ":" + j(h, 2, "0");
544
- }, m: function m(d, f) {
545
- if (d.date() < f.date()) return -m(f, d);
546
- var p = 12 * (f.year() - d.year()) + (f.month() - d.month()), h = d.clone().add(p, S), g = f - h < 0, v = d.clone().add(p + (g ? -1 : 1), S);
547
- return +(-(p + (f - h) / (g ? h - v : v - h)) || 0);
548
- }, a: function(m) {
549
- return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
550
- }, p: function(m) {
551
- return { M: S, y: D, w, d: o, D: y, h: c, m: u, s, ms: i, Q: M }[m] || String(m || "").toLowerCase().replace(/s$/, "");
552
- }, u: function(m) {
553
- return m === void 0;
554
- } }, x = "en", L = {};
555
- L[x] = b;
556
- var N = "$isDayjsObject", H = function(m) {
557
- return m instanceof et || !(!m || !m[N]);
558
- }, E = function m(d, f, p) {
559
- var h;
560
- if (!d) return x;
561
- if (typeof d == "string") {
562
- var g = d.toLowerCase();
563
- L[g] && (h = g), f && (L[g] = f, h = g);
564
- var v = d.split("-");
565
- if (!h && v.length > 1) return m(v[0]);
566
- } else {
567
- var Y = d.name;
568
- L[Y] = d, h = Y;
569
- }
570
- return !p && h && (x = h), h || !p && x;
571
- }, T = function(m, d) {
572
- if (H(m)) return m.clone();
573
- var f = typeof d == "object" ? d : {};
574
- return f.date = m, f.args = arguments, new et(f);
575
- }, O = C;
576
- O.l = E, O.i = H, O.w = function(m, d) {
577
- return T(m, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
578
- };
579
- var et = function() {
580
- function m(f) {
581
- this.$L = E(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[N] = !0;
582
- }
583
- var d = m.prototype;
584
- return d.parse = function(f) {
585
- this.$d = function(p) {
586
- var h = p.date, g = p.utc;
587
- if (h === null) return /* @__PURE__ */ new Date(NaN);
588
- if (O.u(h)) return /* @__PURE__ */ new Date();
589
- if (h instanceof Date) return new Date(h);
590
- if (typeof h == "string" && !/Z$/i.test(h)) {
591
- var v = h.match(_);
592
- if (v) {
593
- var Y = v[2] - 1 || 0, z = (v[7] || "0").substring(0, 3);
594
- return g ? new Date(Date.UTC(v[1], Y, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, z)) : new Date(v[1], Y, v[3] || 1, v[4] || 0, v[5] || 0, v[6] || 0, z);
595
- }
596
- }
597
- return new Date(h);
598
- }(f), this.init();
599
- }, d.init = function() {
600
- var f = this.$d;
601
- this.$y = f.getFullYear(), this.$M = f.getMonth(), this.$D = f.getDate(), this.$W = f.getDay(), this.$H = f.getHours(), this.$m = f.getMinutes(), this.$s = f.getSeconds(), this.$ms = f.getMilliseconds();
602
- }, d.$utils = function() {
603
- return O;
604
- }, d.isValid = function() {
605
- return this.$d.toString() !== l;
606
- }, d.isSame = function(f, p) {
607
- var h = T(f);
608
- return this.startOf(p) <= h && h <= this.endOf(p);
609
- }, d.isAfter = function(f, p) {
610
- return T(f) < this.startOf(p);
611
- }, d.isBefore = function(f, p) {
612
- return this.endOf(p) < T(f);
613
- }, d.$g = function(f, p, h) {
614
- return O.u(f) ? this[p] : this.set(h, f);
615
- }, d.unix = function() {
616
- return Math.floor(this.valueOf() / 1e3);
617
- }, d.valueOf = function() {
618
- return this.$d.getTime();
619
- }, d.startOf = function(f, p) {
620
- var h = this, g = !!O.u(p) || p, v = O.p(f), Y = function(R, U) {
621
- var P = O.w(h.$u ? Date.UTC(h.$y, U, R) : new Date(h.$y, U, R), h);
622
- return g ? P : P.endOf(o);
623
- }, z = function(R, U) {
624
- return O.w(h.toDate()[R].apply(h.toDate("s"), (g ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), h);
625
- }, I = this.$W, F = this.$M, W = this.$D, X = "set" + (this.$u ? "UTC" : "");
626
- switch (v) {
627
- case D:
628
- return g ? Y(1, 0) : Y(31, 11);
629
- case S:
630
- return g ? Y(1, F) : Y(0, F + 1);
631
- case w:
632
- var V = this.$locale().weekStart || 0, Q = (I < V ? I + 7 : I) - V;
633
- return Y(g ? W - Q : W + (6 - Q), F);
634
- case o:
635
- case y:
636
- return z(X + "Hours", 0);
637
- case c:
638
- return z(X + "Minutes", 1);
639
- case u:
640
- return z(X + "Seconds", 2);
641
- case s:
642
- return z(X + "Milliseconds", 3);
643
- default:
644
- return this.clone();
645
- }
646
- }, d.endOf = function(f) {
647
- return this.startOf(f, !1);
648
- }, d.$set = function(f, p) {
649
- var h, g = O.p(f), v = "set" + (this.$u ? "UTC" : ""), Y = (h = {}, h[o] = v + "Date", h[y] = v + "Date", h[S] = v + "Month", h[D] = v + "FullYear", h[c] = v + "Hours", h[u] = v + "Minutes", h[s] = v + "Seconds", h[i] = v + "Milliseconds", h)[g], z = g === o ? this.$D + (p - this.$W) : p;
650
- if (g === S || g === D) {
651
- var I = this.clone().set(y, 1);
652
- I.$d[Y](z), I.init(), this.$d = I.set(y, Math.min(this.$D, I.daysInMonth())).$d;
653
- } else Y && this.$d[Y](z);
654
- return this.init(), this;
655
- }, d.set = function(f, p) {
656
- return this.clone().$set(f, p);
657
- }, d.get = function(f) {
658
- return this[O.p(f)]();
659
- }, d.add = function(f, p) {
660
- var h, g = this;
661
- f = Number(f);
662
- var v = O.p(p), Y = function(F) {
663
- var W = T(g);
664
- return O.w(W.date(W.date() + Math.round(F * f)), g);
665
- };
666
- if (v === S) return this.set(S, this.$M + f);
667
- if (v === D) return this.set(D, this.$y + f);
668
- if (v === o) return Y(1);
669
- if (v === w) return Y(7);
670
- var z = (h = {}, h[u] = n, h[c] = a, h[s] = r, h)[v] || 1, I = this.$d.getTime() + f * z;
671
- return O.w(I, this);
672
- }, d.subtract = function(f, p) {
673
- return this.add(-1 * f, p);
674
- }, d.format = function(f) {
675
- var p = this, h = this.$locale();
676
- if (!this.isValid()) return h.invalidDate || l;
677
- var g = f || "YYYY-MM-DDTHH:mm:ssZ", v = O.z(this), Y = this.$H, z = this.$m, I = this.$M, F = h.weekdays, W = h.months, X = h.meridiem, V = function(U, P, K, rt) {
678
- return U && (U[P] || U(p, g)) || K[P].slice(0, rt);
679
- }, Q = function(U) {
680
- return O.s(Y % 12 || 12, U, "0");
681
- }, R = X || function(U, P, K) {
682
- var rt = U < 12 ? "AM" : "PM";
683
- return K ? rt.toLowerCase() : rt;
684
- };
685
- return g.replace(k, function(U, P) {
686
- return P || function(K) {
687
- switch (K) {
688
- case "YY":
689
- return String(p.$y).slice(-2);
690
- case "YYYY":
691
- return O.s(p.$y, 4, "0");
692
- case "M":
693
- return I + 1;
694
- case "MM":
695
- return O.s(I + 1, 2, "0");
696
- case "MMM":
697
- return V(h.monthsShort, I, W, 3);
698
- case "MMMM":
699
- return V(W, I);
700
- case "D":
701
- return p.$D;
702
- case "DD":
703
- return O.s(p.$D, 2, "0");
704
- case "d":
705
- return String(p.$W);
706
- case "dd":
707
- return V(h.weekdaysMin, p.$W, F, 2);
708
- case "ddd":
709
- return V(h.weekdaysShort, p.$W, F, 3);
710
- case "dddd":
711
- return F[p.$W];
712
- case "H":
713
- return String(Y);
714
- case "HH":
715
- return O.s(Y, 2, "0");
716
- case "h":
717
- return Q(1);
718
- case "hh":
719
- return Q(2);
720
- case "a":
721
- return R(Y, z, !0);
722
- case "A":
723
- return R(Y, z, !1);
724
- case "m":
725
- return String(z);
726
- case "mm":
727
- return O.s(z, 2, "0");
728
- case "s":
729
- return String(p.$s);
730
- case "ss":
731
- return O.s(p.$s, 2, "0");
732
- case "SSS":
733
- return O.s(p.$ms, 3, "0");
734
- case "Z":
735
- return v;
736
- }
737
- return null;
738
- }(U) || v.replace(":", "");
739
- });
740
- }, d.utcOffset = function() {
741
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
742
- }, d.diff = function(f, p, h) {
743
- var g, v = this, Y = O.p(p), z = T(f), I = (z.utcOffset() - this.utcOffset()) * n, F = this - z, W = function() {
744
- return O.m(v, z);
745
- };
746
- switch (Y) {
747
- case D:
748
- g = W() / 12;
749
- break;
750
- case S:
751
- g = W();
752
- break;
753
- case M:
754
- g = W() / 3;
755
- break;
756
- case w:
757
- g = (F - I) / 6048e5;
758
- break;
759
- case o:
760
- g = (F - I) / 864e5;
761
- break;
762
- case c:
763
- g = F / a;
764
- break;
765
- case u:
766
- g = F / n;
767
- break;
768
- case s:
769
- g = F / r;
770
- break;
771
- default:
772
- g = F;
773
- }
774
- return h ? g : O.a(g);
775
- }, d.daysInMonth = function() {
776
- return this.endOf(S).$D;
777
- }, d.$locale = function() {
778
- return L[this.$L];
779
- }, d.locale = function(f, p) {
780
- if (!f) return this.$L;
781
- var h = this.clone(), g = E(f, p, !0);
782
- return g && (h.$L = g), h;
783
- }, d.clone = function() {
784
- return O.w(this.$d, this);
785
- }, d.toDate = function() {
786
- return new Date(this.valueOf());
787
- }, d.toJSON = function() {
788
- return this.isValid() ? this.toISOString() : null;
789
- }, d.toISOString = function() {
790
- return this.$d.toISOString();
791
- }, d.toString = function() {
792
- return this.$d.toUTCString();
793
- }, m;
794
- }(), ct = et.prototype;
795
- return T.prototype = ct, [["$ms", i], ["$s", s], ["$m", u], ["$H", c], ["$W", o], ["$M", S], ["$y", D], ["$D", y]].forEach(function(m) {
796
- ct[m[1]] = function(d) {
797
- return this.$g(d, m[0], m[1]);
798
- };
799
- }), T.extend = function(m, d) {
800
- return m.$i || (m(d, et, T), m.$i = !0), T;
801
- }, T.locale = E, T.isDayjs = H, T.unix = function(m) {
802
- return T(1e3 * m);
803
- }, T.en = L[x], T.Ls = L, T.p = {}, T;
804
- });
805
- })(Dt);
806
- var xt = Dt.exports;
807
- const $ = /* @__PURE__ */ G(xt);
808
- var jt = { exports: {} };
809
- (function(t, e) {
810
- (function(r, n) {
811
- t.exports = n();
812
- })(Z, function() {
813
- var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
814
- return function(i, s, u) {
815
- var c = s.prototype;
816
- u.utc = function(l) {
817
- var _ = { date: l, utc: !0, args: arguments };
818
- return new s(_);
819
- }, c.utc = function(l) {
820
- var _ = u(this.toDate(), { locale: this.$L, utc: !0 });
821
- return l ? _.add(this.utcOffset(), r) : _;
822
- }, c.local = function() {
823
- return u(this.toDate(), { locale: this.$L, utc: !1 });
824
- };
825
- var o = c.parse;
826
- c.parse = function(l) {
827
- l.utc && (this.$u = !0), this.$utils().u(l.$offset) || (this.$offset = l.$offset), o.call(this, l);
828
- };
829
- var w = c.init;
830
- c.init = function() {
831
- if (this.$u) {
832
- var l = this.$d;
833
- this.$y = l.getUTCFullYear(), this.$M = l.getUTCMonth(), this.$D = l.getUTCDate(), this.$W = l.getUTCDay(), this.$H = l.getUTCHours(), this.$m = l.getUTCMinutes(), this.$s = l.getUTCSeconds(), this.$ms = l.getUTCMilliseconds();
834
- } else w.call(this);
835
- };
836
- var S = c.utcOffset;
837
- c.utcOffset = function(l, _) {
838
- var k = this.$utils().u;
839
- if (k(l)) return this.$u ? 0 : k(this.$offset) ? S.call(this) : this.$offset;
840
- if (typeof l == "string" && (l = function(x) {
841
- x === void 0 && (x = "");
842
- var L = x.match(n);
843
- if (!L) return null;
844
- var N = ("" + L[0]).match(a) || ["-", 0, 0], H = N[0], E = 60 * +N[1] + +N[2];
845
- return E === 0 ? 0 : H === "+" ? E : -E;
846
- }(l), l === null)) return this;
847
- var b = Math.abs(l) <= 16 ? 60 * l : l, j = this;
848
- if (_) return j.$offset = b, j.$u = l === 0, j;
849
- if (l !== 0) {
850
- var C = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
851
- (j = this.local().add(b + C, r)).$offset = b, j.$x.$localOffset = C;
852
- } else j = this.utc();
853
- return j;
854
- };
855
- var M = c.format;
856
- c.format = function(l) {
857
- var _ = l || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
858
- return M.call(this, _);
859
- }, c.valueOf = function() {
860
- var l = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
861
- return this.$d.valueOf() - 6e4 * l;
862
- }, c.isUTC = function() {
863
- return !!this.$u;
864
- }, c.toISOString = function() {
865
- return this.toDate().toISOString();
866
- }, c.toString = function() {
867
- return this.toDate().toUTCString();
868
- };
869
- var D = c.toDate;
870
- c.toDate = function(l) {
871
- return l === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : D.call(this);
872
- };
873
- var y = c.diff;
874
- c.diff = function(l, _, k) {
875
- if (l && this.$u === l.$u) return y.call(this, l, _, k);
876
- var b = this.local(), j = u(l).local();
877
- return y.call(b, j, _, k);
878
- };
879
- };
880
- });
881
- })(jt);
882
- var le = jt.exports;
883
- const he = /* @__PURE__ */ G(le);
884
- var Yt = { exports: {} };
885
- (function(t, e) {
886
- (function(r, n) {
887
- t.exports = n();
888
- })(Z, function() {
889
- var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
890
- return function(a, i, s) {
891
- var u, c = function(M, D, y) {
892
- y === void 0 && (y = {});
893
- var l = new Date(M), _ = function(k, b) {
894
- b === void 0 && (b = {});
895
- var j = b.timeZoneName || "short", C = k + "|" + j, x = n[C];
896
- return x || (x = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: k, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: j }), n[C] = x), x;
897
- }(D, y);
898
- return _.formatToParts(l);
899
- }, o = function(M, D) {
900
- for (var y = c(M, D), l = [], _ = 0; _ < y.length; _ += 1) {
901
- var k = y[_], b = k.type, j = k.value, C = r[b];
902
- C >= 0 && (l[C] = parseInt(j, 10));
903
- }
904
- var x = l[3], L = x === 24 ? 0 : x, N = l[0] + "-" + l[1] + "-" + l[2] + " " + L + ":" + l[4] + ":" + l[5] + ":000", H = +M;
905
- return (s.utc(N).valueOf() - (H -= H % 1e3)) / 6e4;
906
- }, w = i.prototype;
907
- w.tz = function(M, D) {
908
- M === void 0 && (M = u);
909
- var y, l = this.utcOffset(), _ = this.toDate(), k = _.toLocaleString("en-US", { timeZone: M }), b = Math.round((_ - new Date(k)) / 1e3 / 60), j = 15 * -Math.round(_.getTimezoneOffset() / 15) - b;
910
- if (!Number(j)) y = this.utcOffset(0, D);
911
- else if (y = s(k, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(j, !0), D) {
912
- var C = y.utcOffset();
913
- y = y.add(l - C, "minute");
914
- }
915
- return y.$x.$timezone = M, y;
916
- }, w.offsetName = function(M) {
917
- var D = this.$x.$timezone || s.tz.guess(), y = c(this.valueOf(), D, { timeZoneName: M }).find(function(l) {
918
- return l.type.toLowerCase() === "timezonename";
919
- });
920
- return y && y.value;
921
- };
922
- var S = w.startOf;
923
- w.startOf = function(M, D) {
924
- if (!this.$x || !this.$x.$timezone) return S.call(this, M, D);
925
- var y = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
926
- return S.call(y, M, D).tz(this.$x.$timezone, !0);
927
- }, s.tz = function(M, D, y) {
928
- var l = y && D, _ = y || D || u, k = o(+s(), _);
929
- if (typeof M != "string") return s(M).tz(_);
930
- var b = function(L, N, H) {
931
- var E = L - 60 * N * 1e3, T = o(E, H);
932
- if (N === T) return [E, N];
933
- var O = o(E -= 60 * (T - N) * 1e3, H);
934
- return T === O ? [E, T] : [L - 60 * Math.min(T, O) * 1e3, Math.max(T, O)];
935
- }(s.utc(M, l).valueOf(), k, _), j = b[0], C = b[1], x = s(j).utcOffset(C);
936
- return x.$x.$timezone = _, x;
937
- }, s.tz.guess = function() {
938
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
939
- }, s.tz.setDefault = function(M) {
940
- u = M;
941
- };
942
- };
943
- });
944
- })(Yt);
945
- var de = Yt.exports;
946
- const pe = /* @__PURE__ */ G(de);
947
- var Tt = { exports: {} };
948
- (function(t, e) {
949
- (function(r, n) {
950
- t.exports = n();
951
- })(Z, function() {
952
- return function(r, n) {
953
- var a = n.prototype, i = a.format;
954
- a.format = function(s) {
955
- var u = this, c = this.$locale();
956
- if (!this.isValid()) return i.bind(this)(s);
957
- var o = this.$utils(), w = (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(S) {
958
- switch (S) {
959
- case "Q":
960
- return Math.ceil((u.$M + 1) / 3);
961
- case "Do":
962
- return c.ordinal(u.$D);
963
- case "gggg":
964
- return u.weekYear();
965
- case "GGGG":
966
- return u.isoWeekYear();
967
- case "wo":
968
- return c.ordinal(u.week(), "W");
969
- case "w":
970
- case "ww":
971
- return o.s(u.week(), S === "w" ? 1 : 2, "0");
972
- case "W":
973
- case "WW":
974
- return o.s(u.isoWeek(), S === "W" ? 1 : 2, "0");
975
- case "k":
976
- case "kk":
977
- return o.s(String(u.$H === 0 ? 24 : u.$H), S === "k" ? 1 : 2, "0");
978
- case "X":
979
- return Math.floor(u.$d.getTime() / 1e3);
980
- case "x":
981
- return u.$d.getTime();
982
- case "z":
983
- return "[" + u.offsetName() + "]";
984
- case "zzz":
985
- return "[" + u.offsetName("long") + "]";
986
- default:
987
- return S;
988
- }
989
- });
990
- return i.bind(this)(w);
991
- };
992
- };
993
- });
994
- })(Tt);
995
- var me = Tt.exports;
996
- const ge = /* @__PURE__ */ G(me);
997
- var At = { exports: {} };
998
- (function(t, e) {
999
- (function(r, n) {
1000
- t.exports = n();
1001
- })(Z, function() {
1002
- return function(r, n) {
1003
- n.prototype.isSameOrBefore = function(a, i) {
1004
- return this.isSame(a, i) || this.isBefore(a, i);
1005
- };
1006
- };
1007
- });
1008
- })(At);
1009
- var ve = At.exports;
1010
- const ye = /* @__PURE__ */ G(ve);
1011
- var bt = { exports: {} };
1012
- (function(t, e) {
1013
- (function(r, n) {
1014
- t.exports = n();
1015
- })(Z, function() {
1016
- return function(r, n, a) {
1017
- n.prototype.isBetween = function(i, s, u, c) {
1018
- var o = a(i), w = a(s), S = (c = c || "()")[0] === "(", M = c[1] === ")";
1019
- return (S ? this.isAfter(o, u) : !this.isBefore(o, u)) && (M ? this.isBefore(w, u) : !this.isAfter(w, u)) || (S ? this.isBefore(o, u) : !this.isAfter(o, u)) && (M ? this.isAfter(w, u) : !this.isBefore(w, u));
1020
- };
1021
- };
1022
- });
1023
- })(bt);
1024
- var $e = bt.exports;
1025
- const Me = /* @__PURE__ */ G($e);
1026
- var kt = { exports: {} };
1027
- (function(t, e) {
1028
- (function(r, n) {
1029
- t.exports = n();
1030
- })(Z, function() {
1031
- return function(r, n, a) {
1032
- n.prototype.isToday = function() {
1033
- var i = "YYYY-MM-DD", s = a();
1034
- return this.format(i) === s.format(i);
1035
- };
1036
- };
1037
- });
1038
- })(kt);
1039
- var Se = kt.exports;
1040
- const _e = /* @__PURE__ */ G(Se);
1041
- var Lt = { exports: {} };
1042
- (function(t, e) {
1043
- (function(r, n) {
1044
- t.exports = n();
1045
- })(Z, function() {
1046
- return function(r, n) {
1047
- n.prototype.weekday = function(a) {
1048
- var i = this.$locale().weekStart || 0, s = this.$W, u = (s < i ? s + 7 : s) - i;
1049
- return this.$utils().u(a) ? u : this.subtract(u, "day").add(a, "day");
1050
- };
1051
- };
1052
- });
1053
- })(Lt);
1054
- var we = Lt.exports;
1055
- const Oe = /* @__PURE__ */ G(we);
1056
- var zt = { exports: {} };
1057
- (function(t, e) {
1058
- (function(r, n) {
1059
- t.exports = n();
1060
- })(Z, function() {
1061
- return function(r, n, a) {
1062
- var i = function(s, u) {
1063
- if (!u || !u.length || u.length === 1 && !u[0] || u.length === 1 && Array.isArray(u[0]) && !u[0].length) return null;
1064
- var c;
1065
- u.length === 1 && u[0].length > 0 && (u = u[0]), c = (u = u.filter(function(w) {
1066
- return w;
1067
- }))[0];
1068
- for (var o = 1; o < u.length; o += 1) u[o].isValid() && !u[o][s](c) || (c = u[o]);
1069
- return c;
1070
- };
1071
- a.max = function() {
1072
- var s = [].slice.call(arguments, 0);
1073
- return i("isAfter", s);
1074
- }, a.min = function() {
1075
- var s = [].slice.call(arguments, 0);
1076
- return i("isBefore", s);
1077
- };
1078
- };
1079
- });
1080
- })(zt);
1081
- var De = zt.exports;
1082
- const xe = /* @__PURE__ */ G(De);
1083
- var Ct = { exports: {} };
1084
- (function(t, e) {
1085
- (function(r, n) {
1086
- t.exports = n();
1087
- })(Z, function() {
1088
- 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" };
1089
- return function(n, a, i) {
1090
- var s = a.prototype, u = s.format;
1091
- i.en.formats = r, s.format = function(c) {
1092
- c === void 0 && (c = "YYYY-MM-DDTHH:mm:ssZ");
1093
- var o = this.$locale().formats, w = function(S, M) {
1094
- return S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, y, l) {
1095
- var _ = l && l.toUpperCase();
1096
- return y || M[l] || r[l] || M[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(k, b, j) {
1097
- return b || j.slice(1);
1098
- });
1099
- });
1100
- }(c, o === void 0 ? {} : o);
1101
- return u.call(this, w);
1102
- };
1103
- };
1104
- });
1105
- })(Ct);
1106
- var je = Ct.exports;
1107
- const Ye = /* @__PURE__ */ G(je);
1108
- var It = { exports: {} };
1109
- (function(t, e) {
1110
- (function(r, n) {
1111
- t.exports = n();
1112
- })(Z, function() {
1113
- return function(r, n, a) {
1114
- r = r || {};
1115
- var i = n.prototype, s = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
1116
- function u(o, w, S, M) {
1117
- return i.fromToBase(o, w, S, M);
1118
- }
1119
- a.en.relativeTime = s, i.fromToBase = function(o, w, S, M, D) {
1120
- for (var y, l, _, k = S.$locale().relativeTime || s, b = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], j = b.length, C = 0; C < j; C += 1) {
1121
- var x = b[C];
1122
- x.d && (y = M ? a(o).diff(S, x.d, !0) : S.diff(o, x.d, !0));
1123
- var L = (r.rounding || Math.round)(Math.abs(y));
1124
- if (_ = y > 0, L <= x.r || !x.r) {
1125
- L <= 1 && C > 0 && (x = b[C - 1]);
1126
- var N = k[x.l];
1127
- D && (L = D("" + L)), l = typeof N == "string" ? N.replace("%d", L) : N(L, w, x.l, _);
1128
- break;
1129
- }
1130
- }
1131
- if (w) return l;
1132
- var H = _ ? k.future : k.past;
1133
- return typeof H == "function" ? H(l) : H.replace("%s", l);
1134
- }, i.to = function(o, w) {
1135
- return u(o, w, this, !0);
1136
- }, i.from = function(o, w) {
1137
- return u(o, w, this);
1138
- };
1139
- var c = function(o) {
1140
- return o.$u ? a.utc() : a();
1141
- };
1142
- i.toNow = function(o) {
1143
- return this.to(c(this), o);
1144
- }, i.fromNow = function(o) {
1145
- return this.from(c(this), o);
1146
- };
1147
- };
1148
- });
1149
- })(It);
1150
- var Te = It.exports;
1151
- const Ae = /* @__PURE__ */ G(Te);
1152
- var be = { exports: {} };
1153
- (function(t, e) {
1154
- (function(r, n) {
1155
- t.exports = n(xt);
1156
- })(Z, function(r) {
1157
- function n(s) {
1158
- return s && typeof s == "object" && "default" in s ? s : { default: s };
1159
- }
1160
- var a = n(r), i = { 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) {
1161
- return s + ".";
1162
- }, weekStart: 1, relativeTime: { future: "%s múlva", past: "%s", s: function(s, u, c, o) {
1163
- return "néhány másodperc" + (o || u ? "" : "e");
1164
- }, m: function(s, u, c, o) {
1165
- return "egy perc" + (o || u ? "" : "e");
1166
- }, mm: function(s, u, c, o) {
1167
- return s + " perc" + (o || u ? "" : "e");
1168
- }, h: function(s, u, c, o) {
1169
- return "egy " + (o || u ? "óra" : "órája");
1170
- }, hh: function(s, u, c, o) {
1171
- return s + " " + (o || u ? "óra" : "órája");
1172
- }, d: function(s, u, c, o) {
1173
- return "egy " + (o || u ? "nap" : "napja");
1174
- }, dd: function(s, u, c, o) {
1175
- return s + " " + (o || u ? "nap" : "napja");
1176
- }, M: function(s, u, c, o) {
1177
- return "egy " + (o || u ? "hónap" : "hónapja");
1178
- }, MM: function(s, u, c, o) {
1179
- return s + " " + (o || u ? "hónap" : "hónapja");
1180
- }, y: function(s, u, c, o) {
1181
- return "egy " + (o || u ? "év" : "éve");
1182
- }, yy: function(s, u, c, o) {
1183
- return s + " " + (o || u ? "év" : "éve");
1184
- } }, 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" } };
1185
- return a.default.locale(i, null, !0), i;
1186
- });
1187
- })(be);
1188
- $.extend(he);
1189
- $.extend(pe);
1190
- $.extend(ge);
1191
- $.extend(Ae);
1192
- $.extend(Ye);
1193
- $.extend(ye);
1194
- $.extend(Me);
1195
- $.extend(_e);
1196
- $.extend(Oe);
1197
- $.extend(xe);
1198
- const Be = () => $.tz.guess(), Ee = (t = "", e = "", r = "", n = "hu") => (r = r || $.tz.guess(), $(t).isValid() ? $(t).tz(r).locale(n).format(e) : ""), We = (t = "", e = "", r = "hu") => {
1199
- if (!$(t).isValid()) return "";
1200
- e = e || $.tz.guess();
1201
- const a = new Intl.DateTimeFormat(ke(r), {
1202
- timeZone: e,
1203
- timeZoneName: "short"
1204
- }).formatToParts(new Date(t)).find((i) => i.type === "timeZoneName");
1205
- return a && a.value;
1206
- }, ke = (t) => Nt.get(t), qe = (t) => {
1207
- const e = t.split(":");
1208
- return parseInt(e[0], 10) * 60 + parseInt(e[1], 10);
1209
- }, Ze = (t) => {
1210
- const e = ~~(t / 60), r = ~~t % 60;
1211
- return [e.toString().padStart(2, "0"), r.toString().padStart(2, "0")].join(":");
1212
- }, Ge = (t) => {
1213
- const e = Math.trunc(t), r = Math.round((t - e) / 10 * 60 * 10);
1214
- return [e.toString().padStart(2, "0"), r.toString().padStart(2, "0")].join(":");
1215
- }, Pe = (t, e = "day") => $().isSameOrBefore($(t), e), Le = (t, e, r, n = "[]") => $(t).isBetween(e, $(r), "day", n), Ve = (t, e, r = "month") => $(t).isSame(e, r), Re = (t, e = "hu") => $(t).locale(e).toNow(!0), Xe = (t, e, r = "day") => $(t).isBefore(e, r), Je = (t, e, r = "day") => $(t).isAfter(e, r), Qe = (t) => $(t).isToday(), Ke = (t) => {
1216
- const e = $().weekday(1), r = $().weekday(7);
1217
- return Le(t, e, r);
1218
- }, tr = (t) => {
1219
- const e = $(t).weekday(1), r = $(t).weekday(7);
1220
- return { startDate: e, endDate: r };
1221
- }, er = (t, e) => $(t).subtract(e, "day"), rr = (t, e) => $(t).add(e, "day"), nr = (t) => $(t).startOf("month"), ar = (t) => $(t).endOf("month"), ur = (t) => (Array.isArray(t) && (t = t.map((e) => $(e))), $.min(t)), sr = (t) => (Array.isArray(t) && (t = t.map((e) => $(e))), $.max(...t));
1222
- export {
1223
- Et as A,
1224
- Zt as B,
1225
- B as C,
1226
- Ne as D,
1227
- fe as E,
1228
- ce as F,
1229
- J as G,
1230
- te as H,
1231
- Fe as I,
1232
- Ce as J,
1233
- ut as K,
1234
- re as L,
1235
- vt as M,
1236
- $t as N,
1237
- wt as O,
1238
- mt as P,
1239
- at as Q,
1240
- yt as R,
1241
- Mt as S,
1242
- Ie as T,
1243
- Pt as U,
1244
- ie as V,
1245
- q as _,
1246
- Ze as a,
1247
- Ge as b,
1248
- qe as c,
1249
- Le as d,
1250
- Ve as e,
1251
- Ee as f,
1252
- Be as g,
1253
- Xe as h,
1254
- Pe as i,
1255
- Je as j,
1256
- Qe as k,
1257
- Ke as l,
1258
- tr as m,
1259
- rr as n,
1260
- We as o,
1261
- nr as p,
1262
- ar as q,
1263
- ur as r,
1264
- er as s,
1265
- sr as t,
1266
- He as u,
1267
- Ue as v,
1268
- Ft as w,
1269
- ue as x,
1270
- Re as y,
1271
- Jt as z
1272
- };