@kupola/kupola 1.6.7 → 1.6.8

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.
@@ -202,122 +202,122 @@ class ht {
202
202
  }
203
203
  }
204
204
  const Ta = new ht("app");
205
- function Ia(i = "app") {
205
+ function Aa(i = "app") {
206
206
  return new ht(i);
207
207
  }
208
- const Se = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
208
+ const Le = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
209
209
  function Q(i) {
210
- return Se.has(i);
210
+ return Le.has(i);
211
211
  }
212
- function Le(i) {
212
+ function De(i) {
213
213
  return i ? i.trim() : "";
214
214
  }
215
- function De(i) {
215
+ function He(i) {
216
216
  return i ? i.replace(/^\s+/, "") : "";
217
217
  }
218
- function He(i) {
218
+ function Me(i) {
219
219
  return i ? i.replace(/\s+$/, "") : "";
220
220
  }
221
- function Me(i) {
221
+ function Ie(i) {
222
222
  return i ? i.toUpperCase() : "";
223
223
  }
224
224
  function Te(i) {
225
225
  return i ? i.toLowerCase() : "";
226
226
  }
227
- function Ie(i) {
227
+ function Ae(i) {
228
228
  return i ? i.charAt(0).toUpperCase() + i.slice(1) : "";
229
229
  }
230
- function Ae(i) {
230
+ function ze(i) {
231
231
  return i ? i.replace(/-(\w)/g, (t, e) => e ? e.toUpperCase() : "") : "";
232
232
  }
233
- function ze(i) {
233
+ function Pe(i) {
234
234
  return i ? i.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "") : "";
235
235
  }
236
- function Pe(i, t, e = " ") {
236
+ function $e(i, t, e = " ") {
237
237
  return (String(i) || "").padStart(t, e);
238
238
  }
239
- function $e(i, t, e = " ") {
239
+ function Be(i, t, e = " ") {
240
240
  return (String(i) || "").padEnd(t, e);
241
241
  }
242
- function Be(i, t, e = "...") {
242
+ function qe(i, t, e = "...") {
243
243
  return !i || i.length <= t ? i || "" : i.slice(0, t) + e;
244
244
  }
245
- function qe(i, t, e) {
245
+ function Oe(i, t, e) {
246
246
  return i ? i.split(t).join(e) : "";
247
247
  }
248
- function Oe(i, t) {
248
+ function Fe(i, t) {
249
249
  return i ? i.replace(/\{\{(\w+)\}\}/g, (e, s) => t[s] !== void 0 ? t[s] : `{{${s}}}`) : "";
250
250
  }
251
- function Fe(i, t) {
251
+ function Ne(i, t) {
252
252
  return (i || "").startsWith(t);
253
253
  }
254
- function Ne(i, t) {
254
+ function Re(i, t) {
255
255
  return (i || "").endsWith(t);
256
256
  }
257
- function Re(i, t) {
257
+ function Ve(i, t) {
258
258
  return (i || "").includes(t);
259
259
  }
260
- function Ve(i, t) {
260
+ function Ke(i, t) {
261
261
  return (i || "").repeat(t);
262
262
  }
263
- function Ke(i) {
263
+ function We(i) {
264
264
  return (i || "").split("").reverse().join("");
265
265
  }
266
- function We(i, t) {
266
+ function Ue(i, t) {
267
267
  return !i || !t ? 0 : i.split(t).length - 1;
268
268
  }
269
- function Ue(i) {
269
+ function Ye(i) {
270
270
  if (!i) return "";
271
271
  const t = document.createElement("div");
272
272
  return t.textContent = i, t.innerHTML;
273
273
  }
274
- function Ye(i) {
274
+ function Xe(i) {
275
275
  if (!i) return "";
276
276
  const t = document.createElement("div");
277
277
  return t.innerHTML = i, t.textContent;
278
278
  }
279
- function Xe(i = 8) {
279
+ function je(i = 8) {
280
280
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
281
281
  let e = "";
282
282
  for (let s = 0; s < i; s++)
283
283
  e += t.charAt(Math.floor(Math.random() * t.length));
284
284
  return e;
285
285
  }
286
- function je() {
286
+ function Je() {
287
287
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
288
288
  const t = Math.random() * 16 | 0;
289
289
  return (i === "x" ? t : t & 3 | 8).toString(16);
290
290
  });
291
291
  }
292
- const Je = { trim: Le, trimLeft: De, trimRight: He, toUpperCase: Me, toLowerCase: Te, capitalize: Ie, camelize: Ae, hyphenate: ze, padStart: Pe, padEnd: $e, truncate: Be, replaceAll: qe, format: Oe, startsWith: Fe, endsWith: Ne, includes: Re, repeat: Ve, reverse: Ke, countOccurrences: We, escapeHtml: Ue, unescapeHtml: Ye, generateRandom: Xe, generateUUID: je };
293
- function Ze(i) {
292
+ const Ze = { trim: De, trimLeft: He, trimRight: Me, toUpperCase: Ie, toLowerCase: Te, capitalize: Ae, camelize: ze, hyphenate: Pe, padStart: $e, padEnd: Be, truncate: qe, replaceAll: Oe, format: Fe, startsWith: Ne, endsWith: Re, includes: Ve, repeat: Ke, reverse: We, countOccurrences: Ue, escapeHtml: Ye, unescapeHtml: Xe, generateRandom: je, generateUUID: Je };
293
+ function Ge(i) {
294
294
  return Array.isArray(i);
295
295
  }
296
- function Ge(i) {
296
+ function Qe(i) {
297
297
  return !i || i.length === 0;
298
298
  }
299
- function Qe(i) {
299
+ function ts(i) {
300
300
  return i ? i.length : 0;
301
301
  }
302
- function ts(i, t) {
302
+ function es(i, t) {
303
303
  return i && i.length > 0 ? i[0] : t;
304
304
  }
305
- function es(i, t) {
305
+ function ss(i, t) {
306
306
  return i && i.length > 0 ? i[i.length - 1] : t;
307
307
  }
308
- function ss(i, t, e) {
308
+ function is(i, t, e) {
309
309
  return i && i[t] !== void 0 ? i[t] : e;
310
310
  }
311
- function is(i, t, e) {
311
+ function ns(i, t, e) {
312
312
  return i ? i.slice(t, e) : [];
313
313
  }
314
- function ns(...i) {
314
+ function rs(...i) {
315
315
  return i.reduce((t, e) => t.concat(e || []), []);
316
316
  }
317
- function rs(i, t = ",") {
317
+ function as(i, t = ",") {
318
318
  return i ? i.join(t) : "";
319
319
  }
320
- function as(i, t, e = 0) {
320
+ function os(i, t, e = 0) {
321
321
  if (!i) return -1;
322
322
  if (Number.isNaN(t)) {
323
323
  for (let s = e; s < i.length; s++)
@@ -326,7 +326,7 @@ function as(i, t, e = 0) {
326
326
  }
327
327
  return i.indexOf(t, e);
328
328
  }
329
- function os(i, t, e) {
329
+ function ls(i, t, e) {
330
330
  if (!i) return -1;
331
331
  if (Number.isNaN(t)) {
332
332
  const s = e !== void 0 ? e : i.length - 1;
@@ -336,78 +336,78 @@ function os(i, t, e) {
336
336
  }
337
337
  return i.lastIndexOf(t, e);
338
338
  }
339
- function ls(i, t) {
339
+ function cs(i, t) {
340
340
  return i ? i.includes(t) : !1;
341
341
  }
342
- function cs(i, ...t) {
342
+ function hs(i, ...t) {
343
343
  return i && i.push(...t), i;
344
344
  }
345
- function hs(i) {
345
+ function ds(i) {
346
346
  return i ? i.pop() : void 0;
347
347
  }
348
- function ds(i) {
348
+ function us(i) {
349
349
  return i ? i.shift() : void 0;
350
350
  }
351
- function us(i, ...t) {
351
+ function ps(i, ...t) {
352
352
  return i && i.unshift(...t), i;
353
353
  }
354
- function ps(i, t) {
354
+ function fs(i, t) {
355
355
  if (!i) return i;
356
356
  const e = Number.isNaN(t) ? i.findIndex((s) => Number.isNaN(s)) : i.indexOf(t);
357
357
  return e > -1 && i.splice(e, 1), i;
358
358
  }
359
- function fs(i, t) {
359
+ function ms(i, t) {
360
360
  return !i || t < 0 || t >= i.length || i.splice(t, 1), i;
361
361
  }
362
- function ms(i, t, e) {
362
+ function gs(i, t, e) {
363
363
  return i && (i.splice(t, 0, e), i);
364
364
  }
365
- function gs(i) {
365
+ function _s(i) {
366
366
  return i ? i.slice().reverse() : [];
367
367
  }
368
- function _s(i, t) {
368
+ function ys(i, t) {
369
369
  return i ? i.slice().sort(t) : [];
370
370
  }
371
- function ys(i, t, e = "asc") {
371
+ function vs(i, t, e = "asc") {
372
372
  return i ? i.slice().sort((s, n) => {
373
373
  const r = typeof s == "object" ? s[t] : s, a = typeof n == "object" ? n[t] : n;
374
374
  return r < a ? e === "asc" ? -1 : 1 : r > a ? e === "asc" ? 1 : -1 : 0;
375
375
  }) : [];
376
376
  }
377
- function vs(i, t) {
377
+ function bs(i, t) {
378
378
  return i ? i.filter(t) : [];
379
379
  }
380
- function bs(i, t) {
380
+ function xs(i, t) {
381
381
  return i ? i.map(t) : [];
382
382
  }
383
- function xs(i, t, e) {
383
+ function Es(i, t, e) {
384
384
  return i ? i.reduce(t, e) : e;
385
385
  }
386
- function Es(i, t) {
386
+ function ws(i, t) {
387
387
  i && i.forEach(t);
388
388
  }
389
- function ws(i, t) {
389
+ function ks(i, t) {
390
390
  return i ? i.every(t) : !0;
391
391
  }
392
- function ks(i, t) {
392
+ function Cs(i, t) {
393
393
  return i ? i.some(t) : !1;
394
394
  }
395
- function Cs(i, t) {
395
+ function Ss(i, t) {
396
396
  return i ? i.find(t) : void 0;
397
397
  }
398
- function Ss(i, t) {
398
+ function Ls(i, t) {
399
399
  return i ? i.findIndex(t) : -1;
400
400
  }
401
- function Ls(i, t = 1) {
401
+ function Ds(i, t = 1) {
402
402
  return i ? i.flat(t) : [];
403
403
  }
404
404
  function St(i) {
405
405
  return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(St(e)) : t.concat(e), []) : [];
406
406
  }
407
- function Ds(i) {
407
+ function Hs(i) {
408
408
  return i ? [...new Set(i)] : [];
409
409
  }
410
- function Hs(i, t) {
410
+ function Ms(i, t) {
411
411
  if (!i) return [];
412
412
  const e = /* @__PURE__ */ new Set();
413
413
  return i.filter((s) => {
@@ -415,7 +415,7 @@ function Hs(i, t) {
415
415
  return e.has(n) ? !1 : (e.add(n), !0);
416
416
  });
417
417
  }
418
- function Ms(i, t) {
418
+ function Is(i, t) {
419
419
  if (!i || t <= 0) return [];
420
420
  const e = [];
421
421
  for (let s = 0; s < i.length; s += t)
@@ -434,54 +434,54 @@ function Ts(i) {
434
434
  function Lt(i) {
435
435
  return i ? i.reduce((t, e) => t + (Number(e) || 0), 0) : 0;
436
436
  }
437
- function Is(i) {
437
+ function As(i) {
438
438
  return !i || i.length === 0 ? 0 : Lt(i) / i.length;
439
439
  }
440
- function As(i) {
440
+ function zs(i) {
441
441
  return i && i.length > 0 ? Math.max(...i) : -1 / 0;
442
442
  }
443
- function zs(i) {
443
+ function Ps(i) {
444
444
  return i && i.length > 0 ? Math.min(...i) : 1 / 0;
445
445
  }
446
- function Ps(...i) {
446
+ function $s(...i) {
447
447
  return i.length === 0 ? [] : i.reduce((t, e) => t.filter((s) => e && e.includes(s)));
448
448
  }
449
- function $s(...i) {
449
+ function Bs(...i) {
450
450
  return [...new Set(i.flat().filter(Boolean))];
451
451
  }
452
- function Bs(i, t) {
452
+ function qs(i, t) {
453
453
  return i ? i.filter((e) => !t || !t.includes(e)) : [];
454
454
  }
455
- function qs(...i) {
455
+ function Os(...i) {
456
456
  if (i.length === 0) return [];
457
457
  const t = Math.max(...i.map((e) => e ? e.length : 0));
458
458
  return Array.from({ length: t }, (e, s) => i.map((n) => n && n[s]));
459
459
  }
460
- const Os = { isArray: Ze, isEmpty: Ge, size: Qe, first: ts, last: es, get: ss, slice: is, concat: ns, join: rs, indexOf: as, lastIndexOf: os, includes: ls, push: cs, pop: hs, shift: ds, unshift: us, remove: ps, removeAt: fs, insert: ms, reverse: gs, sort: _s, sortBy: ys, filter: vs, map: bs, reduce: xs, forEach: Es, every: ws, some: ks, find: Cs, findIndex: Ss, flat: Ls, flattenDeep: St, unique: Ds, uniqueBy: Hs, chunk: Ms, shuffle: Ts, sum: Lt, average: Is, max: As, min: zs, intersection: Ps, union: $s, difference: Bs, zip: qs };
460
+ const Fs = { isArray: Ge, isEmpty: Qe, size: ts, first: es, last: ss, get: is, slice: ns, concat: rs, join: as, indexOf: os, lastIndexOf: ls, includes: cs, push: hs, pop: ds, shift: us, unshift: ps, remove: fs, removeAt: ms, insert: gs, reverse: _s, sort: ys, sortBy: vs, filter: bs, map: xs, reduce: Es, forEach: ws, every: ks, some: Cs, find: Ss, findIndex: Ls, flat: Ds, flattenDeep: St, unique: Hs, uniqueBy: Ms, chunk: Is, shuffle: Ts, sum: Lt, average: As, max: zs, min: Ps, intersection: $s, union: Bs, difference: qs, zip: Os };
461
461
  function rt(i) {
462
462
  return i !== null && typeof i == "object" && !Array.isArray(i);
463
463
  }
464
- function Fs(i) {
464
+ function Ns(i) {
465
465
  return !i || typeof i != "object" ? !0 : Object.keys(i).length === 0;
466
466
  }
467
- function Ns(i) {
467
+ function Rs(i) {
468
468
  return i ? Object.keys(i) : [];
469
469
  }
470
- function Rs(i) {
470
+ function Vs(i) {
471
471
  return i ? Object.values(i) : [];
472
472
  }
473
- function Vs(i) {
473
+ function Ks(i) {
474
474
  return i ? Object.entries(i) : [];
475
475
  }
476
- function Ks(i, t) {
476
+ function Ws(i, t) {
477
477
  return i ? Object.prototype.hasOwnProperty.call(i, t) : !1;
478
478
  }
479
- function Ws(i, t, e) {
479
+ function Us(i, t, e) {
480
480
  if (!i) return e;
481
481
  const s = t.split(".");
482
482
  return s.some(Q) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
483
483
  }
484
- function Us(i, t, e) {
484
+ function Ys(i, t, e) {
485
485
  if (!i || typeof i != "object") return i;
486
486
  const s = t.split(".");
487
487
  if (s.some(Q)) return i;
@@ -491,10 +491,10 @@ function Us(i, t, e) {
491
491
  (!r[a] || typeof r[a] != "object") && (r[a] = {}), r = r[a];
492
492
  }), r[n] = e, i;
493
493
  }
494
- function Ys(i, t) {
494
+ function Xs(i, t) {
495
495
  return i ? t.reduce((e, s) => (i[s] !== void 0 && (e[s] = i[s]), e), {}) : {};
496
496
  }
497
- function Xs(i, t) {
497
+ function js(i, t) {
498
498
  return i ? Object.keys(i).reduce((e, s) => (t.includes(s) || (e[s] = i[s]), e), {}) : {};
499
499
  }
500
500
  function Dt(...i) {
@@ -502,7 +502,7 @@ function Dt(...i) {
502
502
  Q(s) || (rt(e[s]) && rt(t[s]) ? t[s] = Dt(t[s], e[s]) : t[s] = e[s]);
503
503
  }), t), {});
504
504
  }
505
- function js(i) {
505
+ function Js(i) {
506
506
  return i && JSON.parse(JSON.stringify(i));
507
507
  }
508
508
  function Y(i, t = /* @__PURE__ */ new WeakMap()) {
@@ -527,39 +527,39 @@ function Y(i, t = /* @__PURE__ */ new WeakMap()) {
527
527
  Q(s) || (e[s] = Y(i[s], t));
528
528
  }), e;
529
529
  }
530
- function Js(i, t) {
530
+ function Zs(i, t) {
531
531
  i && Object.keys(i).forEach((e) => t(i[e], e, i));
532
532
  }
533
- function Zs(i, t) {
533
+ function Gs(i, t) {
534
534
  if (!i) return {};
535
535
  const e = {};
536
536
  return Object.keys(i).forEach((s) => {
537
537
  e[s] = t(i[s], s, i);
538
538
  }), e;
539
539
  }
540
- function Gs(i, t) {
540
+ function Qs(i, t) {
541
541
  if (!i) return {};
542
542
  const e = {};
543
543
  return Object.keys(i).forEach((s) => {
544
544
  t(i[s], s, i) && (e[s] = i[s]);
545
545
  }), e;
546
546
  }
547
- function Qs(i, t, e) {
547
+ function ti(i, t, e) {
548
548
  return i ? Object.keys(i).reduce((s, n) => t(s, i[n], n, i), e) : e;
549
549
  }
550
- function ti(i) {
550
+ function ei(i) {
551
551
  return i ? Object.keys(i).map((t) => ({ key: t, value: i[t] })) : [];
552
552
  }
553
- function ei(i, t, e) {
553
+ function si(i, t, e) {
554
554
  return i ? i.reduce((s, n) => {
555
555
  const r = typeof n == "object" ? n[t] : n, a = e ? n[e] : n;
556
556
  return r !== void 0 && (s[r] = a), s;
557
557
  }, {}) : {};
558
558
  }
559
- function si(i) {
559
+ function ii(i) {
560
560
  return i ? Object.keys(i).length : 0;
561
561
  }
562
- function ii(i) {
562
+ function ni(i) {
563
563
  if (!i) return {};
564
564
  const t = {};
565
565
  return Object.keys(i).forEach((e) => {
@@ -577,104 +577,104 @@ function Mt(i) {
577
577
  typeof i[t] == "object" && Mt(i[t]);
578
578
  }), i);
579
579
  }
580
- function ni(i) {
580
+ function ri(i) {
581
581
  return i && Object.seal(i);
582
582
  }
583
- const ri = { isObject: rt, isEmpty: Fs, keys: Ns, values: Rs, entries: Vs, has: Ks, get: Ws, set: Us, pick: Ys, omit: Xs, merge: Dt, clone: js, deepClone: Y, forEach: Js, map: Zs, filter: Gs, reduce: Qs, toArray: ti, fromArray: ei, size: si, invert: ii, isEqual: Ht, freeze: Mt, seal: ni };
583
+ const ai = { isObject: rt, isEmpty: Ns, keys: Rs, values: Vs, entries: Ks, has: Ws, get: Us, set: Ys, pick: Xs, omit: js, merge: Dt, clone: Js, deepClone: Y, forEach: Zs, map: Gs, filter: Qs, reduce: ti, toArray: ei, fromArray: si, size: ii, invert: ni, isEqual: Ht, freeze: Mt, seal: ri };
584
584
  function L(i) {
585
585
  return typeof i == "number" && !isNaN(i);
586
586
  }
587
- function ai(i) {
587
+ function oi(i) {
588
588
  return Number.isInteger(i);
589
589
  }
590
- function oi(i) {
590
+ function li(i) {
591
591
  return L(i) && !Number.isInteger(i);
592
592
  }
593
- function li(i) {
593
+ function ci(i) {
594
594
  return L(i) && i > 0;
595
595
  }
596
- function ci(i) {
596
+ function hi(i) {
597
597
  return L(i) && i < 0;
598
598
  }
599
- function hi(i) {
599
+ function di(i) {
600
600
  return L(i) && i === 0;
601
601
  }
602
- function di(i, t, e) {
602
+ function ui(i, t, e) {
603
603
  return L(i) ? Math.min(Math.max(i, t), e) : i;
604
604
  }
605
- function ui(i, t = 0) {
605
+ function pi(i, t = 0) {
606
606
  if (!L(i)) return i;
607
607
  const e = Math.pow(10, t);
608
608
  return Math.round(i * e) / e;
609
609
  }
610
- function pi(i) {
610
+ function fi(i) {
611
611
  return L(i) ? Math.floor(i) : i;
612
612
  }
613
- function fi(i) {
613
+ function mi(i) {
614
614
  return L(i) ? Math.ceil(i) : i;
615
615
  }
616
- function mi(i) {
616
+ function gi(i) {
617
617
  return L(i) ? Math.abs(i) : i;
618
618
  }
619
- function gi(...i) {
619
+ function _i(...i) {
620
620
  const t = i.filter(L);
621
621
  return t.length > 0 ? Math.min(...t) : void 0;
622
622
  }
623
- function _i(...i) {
623
+ function yi(...i) {
624
624
  const t = i.filter(L);
625
625
  return t.length > 0 ? Math.max(...t) : void 0;
626
626
  }
627
- function Tt(...i) {
627
+ function It(...i) {
628
628
  return i.flat().filter(L).reduce((e, s) => e + s, 0);
629
629
  }
630
- function yi(...i) {
630
+ function vi(...i) {
631
631
  const t = i.flat().filter(L);
632
- return t.length > 0 ? Tt(t) / t.length : 0;
632
+ return t.length > 0 ? It(t) / t.length : 0;
633
633
  }
634
- function It(i = 0, t = 1) {
634
+ function Tt(i = 0, t = 1) {
635
635
  return Math.random() * (t - i) + i;
636
636
  }
637
- function vi(i, t) {
638
- return Math.floor(It(i, t + 1));
637
+ function bi(i, t) {
638
+ return Math.floor(Tt(i, t + 1));
639
639
  }
640
- function bi(i, t = 2) {
640
+ function xi(i, t = 2) {
641
641
  return L(i) ? i.toFixed(t) : String(i);
642
642
  }
643
- function xi(i, t = "CNY", e = 2) {
643
+ function Ei(i, t = "CNY", e = 2) {
644
644
  return L(i) ? new Intl.NumberFormat("zh-CN", { style: "currency", currency: t, minimumFractionDigits: e, maximumFractionDigits: e }).format(i) : String(i);
645
645
  }
646
- function Ei(i, t = 0) {
646
+ function wi(i, t = 0) {
647
647
  return L(i) ? `${(i * 100).toFixed(t)}%` : String(i);
648
648
  }
649
- function wi(i, t = 0) {
649
+ function ki(i, t = 0) {
650
650
  return L(i) ? i.toFixed(t) : String(i);
651
651
  }
652
- function ki(i, t = 6) {
652
+ function Ci(i, t = 6) {
653
653
  return L(i) ? i.toPrecision(t) : String(i);
654
654
  }
655
- function Ci(i) {
655
+ function Si(i) {
656
656
  return Number.isNaN(i);
657
657
  }
658
- function Si(i) {
658
+ function Li(i) {
659
659
  return Number.isFinite(i);
660
660
  }
661
- function Li(i, t = 10) {
661
+ function Di(i, t = 10) {
662
662
  return Number.parseInt(i, t);
663
663
  }
664
- function Di(i) {
664
+ function Hi(i) {
665
665
  return Number.parseFloat(i);
666
666
  }
667
- function Hi(i, t = 0) {
667
+ function Mi(i, t = 0) {
668
668
  const e = Number(i);
669
669
  return isNaN(e) ? t : e;
670
670
  }
671
- function Mi(i, t, e = 0) {
671
+ function Ii(i, t, e = 0) {
672
672
  return !L(i) || !L(t) || t === 0 ? e : i / t;
673
673
  }
674
674
  function Ti(...i) {
675
675
  return i.reduce((t, e) => !L(t) || !L(e) ? 0 : t * e, 1);
676
676
  }
677
- const Ii = { isNumber: L, isInteger: ai, isFloat: oi, isPositive: li, isNegative: ci, isZero: hi, clamp: di, round: ui, floor: pi, ceil: fi, abs: mi, min: gi, max: _i, sum: Tt, average: yi, random: It, randomInt: vi, format: bi, formatCurrency: xi, formatPercent: Ei, toFixed: wi, toPrecision: ki, isNaN: Ci, isFinite: Si, parseInt: Li, parseFloat: Di, toNumber: Hi, safeDivide: Mi, safeMultiply: Ti };
677
+ const Ai = { isNumber: L, isInteger: oi, isFloat: li, isPositive: ci, isNegative: hi, isZero: di, clamp: ui, round: pi, floor: fi, ceil: mi, abs: gi, min: _i, max: yi, sum: It, average: vi, random: Tt, randomInt: bi, format: xi, formatCurrency: Ei, formatPercent: wi, toFixed: ki, toPrecision: Ci, isNaN: Si, isFinite: Li, parseInt: Di, parseFloat: Hi, toNumber: Mi, safeDivide: Ii, safeMultiply: Ti };
678
678
  function tt() {
679
679
  return Date.now();
680
680
  }
@@ -682,11 +682,11 @@ function K() {
682
682
  const i = /* @__PURE__ */ new Date();
683
683
  return i.setHours(0, 0, 0, 0), i;
684
684
  }
685
- function Ai() {
685
+ function zi() {
686
686
  const i = K();
687
687
  return i.setDate(i.getDate() + 1), i;
688
688
  }
689
- function zi() {
689
+ function Pi() {
690
690
  const i = K();
691
691
  return i.setDate(i.getDate() - 1), i;
692
692
  }
@@ -696,37 +696,37 @@ function w(i) {
696
696
  function At(i) {
697
697
  return w(i);
698
698
  }
699
- function Pi(i) {
699
+ function $i(i) {
700
700
  const t = new Date(i);
701
701
  return At(t) ? t : null;
702
702
  }
703
- function $i(i, t = "YYYY-MM-DD HH:mm:ss") {
703
+ function Bi(i, t = "YYYY-MM-DD HH:mm:ss") {
704
704
  if (!w(i)) return "";
705
705
  const e = i.getFullYear(), s = String(i.getMonth() + 1).padStart(2, "0"), n = String(i.getDate()).padStart(2, "0"), r = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"), o = String(i.getSeconds()).padStart(2, "0"), l = String(i.getMilliseconds()).padStart(3, "0"), h = ["日", "一", "二", "三", "四", "五", "六"][i.getDay()];
706
706
  return t.replace("YYYY", e).replace("MM", s).replace("DD", n).replace("HH", r).replace("mm", a).replace("ss", o).replace("SSS", l).replace("D", i.getDate()).replace("M", i.getMonth() + 1).replace("H", i.getHours()).replace("m", i.getMinutes()).replace("s", i.getSeconds()).replace("W", h);
707
707
  }
708
- function Bi(i) {
708
+ function qi(i) {
709
709
  return w(i) ? i.toISOString() : "";
710
710
  }
711
- function qi(i) {
711
+ function Oi(i) {
712
712
  return w(i) ? new Date(i.toUTCString()) : null;
713
713
  }
714
- function Oi(i, t) {
714
+ function Fi(i, t) {
715
715
  if (!w(i)) return i;
716
716
  const e = new Date(i);
717
717
  return e.setDate(e.getDate() + t), e;
718
718
  }
719
- function Fi(i, t) {
719
+ function Ni(i, t) {
720
720
  if (!w(i)) return i;
721
721
  const e = new Date(i);
722
722
  return e.setHours(e.getHours() + t), e;
723
723
  }
724
- function Ni(i, t) {
724
+ function Ri(i, t) {
725
725
  if (!w(i)) return i;
726
726
  const e = new Date(i);
727
727
  return e.setMinutes(e.getMinutes() + t), e;
728
728
  }
729
- function Ri(i, t) {
729
+ function Vi(i, t) {
730
730
  if (!w(i)) return i;
731
731
  const e = new Date(i);
732
732
  return e.setSeconds(e.getSeconds() + t), e;
@@ -738,60 +738,60 @@ function et(i, t) {
738
738
  const s = new Date(t);
739
739
  return s.setHours(0, 0, 0, 0), Math.floor((e.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24));
740
740
  }
741
- function Vi(i, t) {
741
+ function Ki(i, t) {
742
742
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60 * 60));
743
743
  }
744
- function Ki(i, t) {
744
+ function Wi(i, t) {
745
745
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60));
746
746
  }
747
- function Wi(i, t) {
747
+ function Ui(i, t) {
748
748
  return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / 1e3);
749
749
  }
750
- function Ui(i) {
750
+ function Yi(i) {
751
751
  return w(i) ? et(i, K()) === 0 : !1;
752
752
  }
753
- function Yi(i) {
753
+ function Xi(i) {
754
754
  return w(i) ? et(i, K()) === -1 : !1;
755
755
  }
756
- function Xi(i) {
756
+ function ji(i) {
757
757
  return w(i) ? et(i, K()) === 1 : !1;
758
758
  }
759
- function ji(i) {
759
+ function Ji(i) {
760
760
  return w(i) ? i.getTime() > tt() : !1;
761
761
  }
762
- function Ji(i) {
762
+ function Zi(i) {
763
763
  return w(i) ? i.getTime() < tt() : !1;
764
764
  }
765
- function Zi(i) {
765
+ function Gi(i) {
766
766
  if (!w(i)) return !1;
767
767
  const t = i.getFullYear();
768
768
  return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
769
769
  }
770
- function Gi(i) {
770
+ function Qi(i) {
771
771
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate() : 0;
772
772
  }
773
- function Qi(i) {
773
+ function tn(i) {
774
774
  if (!w(i)) return 0;
775
775
  const t = new Date(i.getFullYear(), 0, 1), e = i.getTime() - t.getTime();
776
776
  return Math.ceil(e / (1e3 * 60 * 60 * 24 * 7));
777
777
  }
778
- function tn(i) {
778
+ function en(i) {
779
779
  return w(i) ? Math.ceil((i.getMonth() + 1) / 3) : 0;
780
780
  }
781
- function en(i) {
781
+ function sn(i) {
782
782
  if (!w(i)) return i;
783
783
  const t = new Date(i);
784
784
  return t.setHours(0, 0, 0, 0), t;
785
785
  }
786
- function sn(i) {
786
+ function nn(i) {
787
787
  if (!w(i)) return i;
788
788
  const t = new Date(i);
789
789
  return t.setHours(23, 59, 59, 999), t;
790
790
  }
791
- function nn(i) {
791
+ function rn(i) {
792
792
  return w(i) ? new Date(i.getFullYear(), i.getMonth(), 1) : i;
793
793
  }
794
- function rn(i) {
794
+ function an(i) {
795
795
  return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0, 23, 59, 59, 999) : i;
796
796
  }
797
797
  function zt(i, t = 1) {
@@ -799,24 +799,24 @@ function zt(i, t = 1) {
799
799
  const e = new Date(i), s = e.getDay(), n = s >= t ? s - t : s + (7 - t);
800
800
  return e.setDate(e.getDate() - n), e.setHours(0, 0, 0, 0), e;
801
801
  }
802
- function an(i, t = 1) {
802
+ function on(i, t = 1) {
803
803
  if (!w(i)) return i;
804
804
  const e = zt(i, t), s = new Date(e);
805
805
  return s.setDate(s.getDate() + 6), s.setHours(23, 59, 59, 999), s;
806
806
  }
807
- function on(i) {
807
+ function ln(i) {
808
808
  if (!w(i)) return 0;
809
809
  const t = /* @__PURE__ */ new Date();
810
810
  let e = t.getFullYear() - i.getFullYear();
811
811
  return (t.getMonth() < i.getMonth() || t.getMonth() === i.getMonth() && t.getDate() < i.getDate()) && e--, Math.max(0, e);
812
812
  }
813
- function ln(i) {
813
+ function cn(i) {
814
814
  if (!w(i)) return "";
815
815
  const e = tt() - i.getTime(), s = 60 * 1e3, n = 60 * s, r = 24 * n, a = 7 * r, o = 30 * r, l = 365 * r;
816
816
  return e < s ? "刚刚" : e < n ? `${Math.floor(e / s)}分钟前` : e < r ? `${Math.floor(e / n)}小时前` : e < a ? `${Math.floor(e / r)}天前` : e < o ? `${Math.floor(e / a)}周前` : e < l ? `${Math.floor(e / o)}个月前` : `${Math.floor(e / l)}年前`;
817
817
  }
818
- const cn = { now: tt, today: K, tomorrow: Ai, yesterday: zi, isDate: w, isValid: At, parse: Pi, format: $i, toISO: Bi, toUTC: qi, addDays: Oi, addHours: Fi, addMinutes: Ni, addSeconds: Ri, diffDays: et, diffHours: Vi, diffMinutes: Ki, diffSeconds: Wi, isToday: Ui, isYesterday: Yi, isTomorrow: Xi, isFuture: ji, isPast: Ji, isLeapYear: Zi, getDaysInMonth: Gi, getWeekOfYear: Qi, getQuarter: tn, startOfDay: en, endOfDay: sn, startOfMonth: nn, endOfMonth: rn, startOfWeek: zt, endOfWeek: an, getAge: on, fromNow: ln };
819
- function hn(i, t, e = {}) {
818
+ const hn = { now: tt, today: K, tomorrow: zi, yesterday: Pi, isDate: w, isValid: At, parse: $i, format: Bi, toISO: qi, toUTC: Oi, addDays: Fi, addHours: Ni, addMinutes: Ri, addSeconds: Vi, diffDays: et, diffHours: Ki, diffMinutes: Wi, diffSeconds: Ui, isToday: Yi, isYesterday: Xi, isTomorrow: ji, isFuture: Ji, isPast: Zi, isLeapYear: Gi, getDaysInMonth: Qi, getWeekOfYear: tn, getQuarter: en, startOfDay: sn, endOfDay: nn, startOfMonth: rn, endOfMonth: an, startOfWeek: zt, endOfWeek: on, getAge: ln, fromNow: cn };
819
+ function dn(i, t, e = {}) {
820
820
  let s = null, n = null, r = null, a = 0;
821
821
  const o = e.leading || !1, l = e.trailing !== !1;
822
822
  function c() {
@@ -835,7 +835,7 @@ function hn(i, t, e = {}) {
835
835
  n = f, r = this, a = Date.now(), s ? (clearTimeout(s), s = setTimeout(d, u())) : h();
836
836
  };
837
837
  }
838
- function dn(i, t, e = {}) {
838
+ function un(i, t, e = {}) {
839
839
  let s = !1;
840
840
  const n = e.trailing || !1;
841
841
  let r = null, a = null;
@@ -848,13 +848,13 @@ function dn(i, t, e = {}) {
848
848
  }, t));
849
849
  };
850
850
  }
851
- function un(i) {
851
+ function pn(i) {
852
852
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i || "");
853
853
  }
854
- function pn(i) {
854
+ function fn(i) {
855
855
  return /^1[3-9]\d{9}$/.test(i || "");
856
856
  }
857
- function fn(i) {
857
+ function mn(i) {
858
858
  return /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w.-]*)*\/?$/.test(i || "");
859
859
  }
860
860
  function Pt(i) {
@@ -863,16 +863,16 @@ function Pt(i) {
863
863
  function $t(i) {
864
864
  return /^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(i || "");
865
865
  }
866
- function mn(i) {
866
+ function gn(i) {
867
867
  return Pt(i) || $t(i);
868
868
  }
869
- function gn(i) {
869
+ function _n(i) {
870
870
  return /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/.test(i || "");
871
871
  }
872
- function _n(i) {
872
+ function yn(i) {
873
873
  return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
874
874
  }
875
- function yn(i) {
875
+ function vn(i) {
876
876
  const t = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]{2})[0-9]{12}|3[47][0-9]{13})$/, e = i.replace(/\s/g, "");
877
877
  if (!t.test(e)) return !1;
878
878
  let s = 0, n = !1;
@@ -895,93 +895,93 @@ function Ot(i) {
895
895
  const [, e, s, n, r] = t;
896
896
  return parseInt(e) >= 0 && parseInt(e) <= 255 && parseInt(s) >= 0 && parseInt(s) <= 255 && parseInt(n) >= 0 && parseInt(n) <= 255 && parseFloat(r) >= 0 && parseFloat(r) <= 1;
897
897
  }
898
- function vn(i) {
898
+ function bn(i) {
899
899
  return Bt(i) || qt(i) || Ot(i);
900
900
  }
901
- function bn(i) {
901
+ function xn(i) {
902
902
  return !isNaN(new Date(i).getTime());
903
903
  }
904
- function xn(i) {
904
+ function En(i) {
905
905
  try {
906
906
  return JSON.parse(i), !0;
907
907
  } catch {
908
908
  return !1;
909
909
  }
910
910
  }
911
- function En(i) {
911
+ function wn(i) {
912
912
  return !i || i.trim() === "";
913
913
  }
914
- function wn(i) {
914
+ function kn(i) {
915
915
  return /^\s+$/.test(i || "");
916
916
  }
917
- function kn(i) {
917
+ function Cn(i) {
918
918
  return !isNaN(parseFloat(i)) && isFinite(i);
919
919
  }
920
- function Cn(i) {
920
+ function Sn(i) {
921
921
  return /^-?\d+$/.test(i || "");
922
922
  }
923
- function Sn(i) {
923
+ function Ln(i) {
924
924
  return /^-?\d+\.\d+$/.test(i || "");
925
925
  }
926
- function Ln(i) {
926
+ function Dn(i) {
927
927
  const t = parseFloat(i);
928
928
  return !isNaN(t) && t > 0;
929
929
  }
930
- function Dn(i) {
930
+ function Hn(i) {
931
931
  const t = parseFloat(i);
932
932
  return !isNaN(t) && t < 0;
933
933
  }
934
- function Hn(i) {
934
+ function Mn(i) {
935
935
  return /^[a-zA-Z]+$/.test(i || "");
936
936
  }
937
- function Mn(i) {
937
+ function In(i) {
938
938
  return /^[a-zA-Z0-9]+$/.test(i || "");
939
939
  }
940
940
  function Tn(i) {
941
941
  return /^[\u4e00-\u9fa5]+$/.test(i || "");
942
942
  }
943
- function In(i, t, e) {
943
+ function An(i, t, e) {
944
944
  const s = (i || "").length;
945
945
  return s >= t && (e === void 0 || s <= e);
946
946
  }
947
- function An(i, t) {
947
+ function zn(i, t) {
948
948
  return (i || "").length >= t;
949
949
  }
950
- function zn(i, t) {
950
+ function Pn(i, t) {
951
951
  return (i || "").length <= t;
952
952
  }
953
- function Pn(i, t) {
953
+ function $n(i, t) {
954
954
  return t instanceof RegExp ? t.test(i || "") : !1;
955
955
  }
956
- function $n(i, t) {
956
+ function Bn(i, t) {
957
957
  return String(i) === String(t);
958
958
  }
959
959
  function Ft(i, t) {
960
960
  return (i || "").includes(t);
961
961
  }
962
- function Bn(i, t) {
962
+ function qn(i, t) {
963
963
  return !Ft(i, t);
964
964
  }
965
- function qn(i) {
965
+ function On(i) {
966
966
  return Array.isArray(i);
967
967
  }
968
- function On(i, t, e) {
968
+ function Fn(i, t, e) {
969
969
  const s = i ? i.length : 0;
970
970
  return s >= t && (e === void 0 || s <= e);
971
971
  }
972
- function Fn(i, t) {
972
+ function Nn(i, t) {
973
973
  return i ? i.length >= t : !1;
974
974
  }
975
- function Nn(i, t) {
975
+ function Rn(i, t) {
976
976
  return i ? i.length <= t : !1;
977
977
  }
978
- function Rn(i) {
978
+ function Vn(i) {
979
979
  return i !== null && typeof i == "object" && !Array.isArray(i);
980
980
  }
981
- function Vn(i, t) {
981
+ function Kn(i, t) {
982
982
  return !i || !t || !Array.isArray(t) ? !1 : t.every((e) => Object.prototype.hasOwnProperty.call(i, e));
983
983
  }
984
- function Kn(i, t) {
984
+ function Wn(i, t) {
985
985
  const e = {};
986
986
  return Object.keys(t).forEach((s) => {
987
987
  const n = i[s], r = t[s], a = [];
@@ -996,8 +996,8 @@ function Kn(i, t) {
996
996
  }), a.length > 0 && (e[s] = a);
997
997
  }), { valid: Object.keys(e).length === 0, errors: e };
998
998
  }
999
- const Nt = { isEmail: un, isPhone: pn, isURL: fn, isIPv4: Pt, isIPv6: $t, isIP: mn, isIDCard: gn, isPassport: _n, isCreditCard: yn, isHexColor: Bt, isRGB: qt, isRGBA: Ot, isColor: vn, isDate: bn, isJSON: xn, isEmpty: En, isWhitespace: wn, isNumber: kn, isInteger: Cn, isFloat: Sn, isPositive: Ln, isNegative: Dn, isAlpha: Hn, isAlphaNumeric: Mn, isChinese: Tn, isLength: In, minLength: An, maxLength: zn, matches: Pn, equals: $n, contains: Ft, notContains: Bn, isArray: qn, arrayLength: On, arrayMinLength: Fn, arrayMaxLength: Nn, isObject: Rn, hasKeys: Vn, validate: Kn };
1000
- function Wn(i) {
999
+ const Nt = { isEmail: pn, isPhone: fn, isURL: mn, isIPv4: Pt, isIPv6: $t, isIP: gn, isIDCard: _n, isPassport: yn, isCreditCard: vn, isHexColor: Bt, isRGB: qt, isRGBA: Ot, isColor: bn, isDate: xn, isJSON: En, isEmpty: wn, isWhitespace: kn, isNumber: Cn, isInteger: Sn, isFloat: Ln, isPositive: Dn, isNegative: Hn, isAlpha: Mn, isAlphaNumeric: In, isChinese: Tn, isLength: An, minLength: zn, maxLength: Pn, matches: $n, equals: Bn, contains: Ft, notContains: qn, isArray: On, arrayLength: Fn, arrayMinLength: Nn, arrayMaxLength: Rn, isObject: Vn, hasKeys: Kn, validate: Wn };
1000
+ function Un(i) {
1001
1001
  const t = i ? String(i) : "", e = [1732584193, 4023233417, 2562383102, 271733878], s = [3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745], n = [[7, 12, 17, 22], [5, 9, 14, 20], [4, 11, 16, 23], [6, 10, 15, 21]];
1002
1002
  function r(d, u) {
1003
1003
  return d << u | d >>> 32 - u;
@@ -1037,7 +1037,7 @@ function Wn(i) {
1037
1037
  h += (d >>> 8 * u & 255).toString(16).padStart(2, "0");
1038
1038
  }), h;
1039
1039
  }
1040
- function Un(i) {
1040
+ function Yn(i) {
1041
1041
  const t = i ? String(i) : "", e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
1042
1042
  function s(c, h) {
1043
1043
  return c >>> h | c << 32 - h;
@@ -1078,7 +1078,7 @@ function Un(i) {
1078
1078
  l += (c >>> 8 * h & 255).toString(16).padStart(2, "0");
1079
1079
  }), l;
1080
1080
  }
1081
- function Yn(i) {
1081
+ function Xn(i) {
1082
1082
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1083
1083
  let e = "", s = 0;
1084
1084
  const n = i ? i.split("").map((r) => r.charCodeAt(0)) : [];
@@ -1088,7 +1088,7 @@ function Yn(i) {
1088
1088
  }
1089
1089
  return e;
1090
1090
  }
1091
- function Xn(i) {
1091
+ function jn(i) {
1092
1092
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1093
1093
  let e = "", s = 0;
1094
1094
  for (i = i.replace(/[^A-Za-z0-9+/=]/g, ""); s < i.length; ) {
@@ -1097,13 +1097,13 @@ function Xn(i) {
1097
1097
  }
1098
1098
  return e;
1099
1099
  }
1100
- function jn() {
1100
+ function Jn() {
1101
1101
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
1102
1102
  const t = Math.random() * 16 | 0;
1103
1103
  return (i === "x" ? t : t & 3 | 8).toString(16);
1104
1104
  });
1105
1105
  }
1106
- const Jn = { md5: Wn, sha256: Un, base64Encode: Yn, base64Decode: Xn, uuid: jn }, B = /* @__PURE__ */ new Map();
1106
+ const Zn = { md5: Un, sha256: Yn, base64Encode: Xn, base64Decode: jn, uuid: Jn }, B = /* @__PURE__ */ new Map();
1107
1107
  async function Z(i, t = {}) {
1108
1108
  const { crossOrigin: e = "anonymous" } = t;
1109
1109
  return B.has(i) ? B.get(i) : new Promise((s, n) => {
@@ -1115,7 +1115,7 @@ async function Z(i, t = {}) {
1115
1115
  }, r.src = i;
1116
1116
  });
1117
1117
  }
1118
- async function Zn(i, t = {}) {
1118
+ async function Gn(i, t = {}) {
1119
1119
  const { parallel: e = !0 } = t;
1120
1120
  if (e) return Promise.all(i.map((n) => Z(n, t)));
1121
1121
  const s = [];
@@ -1145,7 +1145,7 @@ async function Vt(i, t = {}) {
1145
1145
  }, document.head.appendChild(r);
1146
1146
  });
1147
1147
  }
1148
- async function Gn(i, t, e = {}) {
1148
+ async function Qn(i, t, e = {}) {
1149
1149
  const { weight: s = "normal", style: n = "normal" } = e, r = new FontFace(i, `url(${t})`, { weight: s, style: n });
1150
1150
  try {
1151
1151
  return await r.load(), document.fonts.add(r), r;
@@ -1153,7 +1153,7 @@ async function Gn(i, t, e = {}) {
1153
1153
  throw new Error(`Failed to load font: ${i}`);
1154
1154
  }
1155
1155
  }
1156
- async function Qn(i, t = "image") {
1156
+ async function tr(i, t = "image") {
1157
1157
  switch (t) {
1158
1158
  case "image":
1159
1159
  return Z(i);
@@ -1166,28 +1166,28 @@ async function Qn(i, t = "image") {
1166
1166
  throw new Error(`Unsupported preload type: ${t}`);
1167
1167
  }
1168
1168
  }
1169
- function tr(i) {
1169
+ function er(i) {
1170
1170
  return B.has(i);
1171
1171
  }
1172
- function er() {
1172
+ function sr() {
1173
1173
  B.clear();
1174
1174
  }
1175
- function sr(i) {
1175
+ function ir(i) {
1176
1176
  B.delete(i);
1177
1177
  }
1178
- const ir = { loadImage: Z, loadImages: Zn, loadScript: Rt, loadStylesheet: Vt, loadFont: Gn, preload: Qn, isLoaded: tr, clearCache: er, clearCacheByUrl: sr }, Aa = {
1179
- string: Je,
1180
- array: Os,
1181
- object: ri,
1182
- number: Ii,
1183
- date: cn,
1184
- debounce: hn,
1185
- throttle: dn,
1178
+ const nr = { loadImage: Z, loadImages: Gn, loadScript: Rt, loadStylesheet: Vt, loadFont: Qn, preload: tr, isLoaded: er, clearCache: sr, clearCacheByUrl: ir }, za = {
1179
+ string: Ze,
1180
+ array: Fs,
1181
+ object: ai,
1182
+ number: Ai,
1183
+ date: hn,
1184
+ debounce: dn,
1185
+ throttle: un,
1186
1186
  validator: Nt,
1187
- crypto: Jn,
1188
- preload: ir
1187
+ crypto: Zn,
1188
+ preload: nr
1189
1189
  };
1190
- function nr(i) {
1190
+ function rr(i) {
1191
1191
  if (!i) return "";
1192
1192
  let t = String(i);
1193
1193
  const e = /<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*>[\s\S]*?<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*\/?>/gi;
@@ -1242,7 +1242,7 @@ const g = {
1242
1242
  path: Symbol("reactive_path"),
1243
1243
  isReactive: Symbol("reactive_is_reactive")
1244
1244
  };
1245
- class rr {
1245
+ class ar {
1246
1246
  constructor() {
1247
1247
  this.rawData = {}, this.data = null, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new nt(), this.updateQueue = /* @__PURE__ */ new Map(), this.isProcessing = !1, this.pendingComputed = /* @__PURE__ */ new Set(), this.persistedKeys = /* @__PURE__ */ new Map(), this.snapshots = [], this.snapshotLimit = 10, this._proxyCache = /* @__PURE__ */ new WeakMap(), this.createReactiveData();
1248
1248
  }
@@ -1382,7 +1382,7 @@ class rr {
1382
1382
  t.textContent !== String(e ?? "") && (t.textContent = e ?? "");
1383
1383
  break;
1384
1384
  case "html":
1385
- const c = nr(e);
1385
+ const c = rr(e);
1386
1386
  t.innerHTML !== c && (t.innerHTML = c);
1387
1387
  break;
1388
1388
  case "value":
@@ -1779,7 +1779,7 @@ class gt {
1779
1779
  };
1780
1780
  }
1781
1781
  }
1782
- class ar {
1782
+ class or {
1783
1783
  constructor() {
1784
1784
  this.stores = /* @__PURE__ */ new Map();
1785
1785
  }
@@ -1797,7 +1797,7 @@ class ar {
1797
1797
  this.stores.clear();
1798
1798
  }
1799
1799
  }
1800
- class or {
1800
+ class lr {
1801
1801
  constructor() {
1802
1802
  this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1803
1803
  }
@@ -1854,7 +1854,7 @@ class or {
1854
1854
  }), this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1855
1855
  }
1856
1856
  }
1857
- function I(i = null) {
1857
+ function T(i = null) {
1858
1858
  const t = {
1859
1859
  _value: i,
1860
1860
  _subscribers: /* @__PURE__ */ new Set()
@@ -1874,14 +1874,14 @@ function I(i = null) {
1874
1874
  }
1875
1875
  }), t;
1876
1876
  }
1877
- const O = new rr(), za = new or(), Kt = new ar();
1878
- function Pa(i, t) {
1877
+ const O = new ar(), Pa = new lr(), Kt = new or();
1878
+ function $a(i, t) {
1879
1879
  return Kt.createStore(i, t);
1880
1880
  }
1881
- function $a(i) {
1881
+ function Ba(i) {
1882
1882
  return Kt.getStore(i);
1883
1883
  }
1884
- const T = {
1884
+ const I = {
1885
1885
  paths: {
1886
1886
  icons: "/icons/",
1887
1887
  base: "/"
@@ -1976,57 +1976,57 @@ const T = {
1976
1976
  silentErrors: !1
1977
1977
  }
1978
1978
  };
1979
- function Ba(i) {
1980
- Wt(T, i);
1979
+ function cr(i) {
1980
+ Ut(I, i);
1981
1981
  }
1982
1982
  function dt(i) {
1983
- return i ? mr(T, i) : T;
1983
+ return i ? gr(I, i) : I;
1984
1984
  }
1985
- function lr() {
1986
- return T.paths.base + T.paths.icons.replace(/^\//, "");
1985
+ function Wt() {
1986
+ return I.paths.base + I.paths.icons.replace(/^\//, "");
1987
1987
  }
1988
1988
  function qa() {
1989
- return T.paths.base;
1990
- }
1991
- function cr() {
1992
- return T.theme.default;
1989
+ return I.paths.base;
1993
1990
  }
1994
1991
  function hr() {
1995
- return T.theme.brand;
1992
+ return I.theme.default;
1993
+ }
1994
+ function dr() {
1995
+ return I.theme.brand;
1996
1996
  }
1997
1997
  function Oa() {
1998
- return T.http;
1998
+ return I.http;
1999
1999
  }
2000
2000
  function j() {
2001
- return T.ui;
2001
+ return I.ui;
2002
2002
  }
2003
2003
  function W() {
2004
- return T.zIndex;
2004
+ return I.zIndex;
2005
2005
  }
2006
2006
  function st() {
2007
- return T.security;
2008
- }
2009
- function dr() {
2010
- return T.performance;
2007
+ return I.security;
2011
2008
  }
2012
2009
  function ur() {
2013
- return T.message;
2010
+ return I.performance;
2014
2011
  }
2015
2012
  function pr() {
2016
- return T.notification;
2013
+ return I.message;
2017
2014
  }
2018
2015
  function fr() {
2019
- return T.validation;
2016
+ return I.notification;
2020
2017
  }
2021
- function Wt(i, t) {
2018
+ function mr() {
2019
+ return I.validation;
2020
+ }
2021
+ function Ut(i, t) {
2022
2022
  for (const e in t)
2023
- t[e] instanceof Object && e in i && i[e] instanceof Object ? Wt(i[e], t[e]) : i[e] = t[e];
2023
+ t[e] instanceof Object && e in i && i[e] instanceof Object ? Ut(i[e], t[e]) : i[e] = t[e];
2024
2024
  return i;
2025
2025
  }
2026
- function mr(i, t) {
2026
+ function gr(i, t) {
2027
2027
  return t.split(".").reduce((e, s) => (e && e[s]) !== void 0 ? e[s] : void 0, i);
2028
2028
  }
2029
- const Ut = "kupola-theme", Yt = "kupola-brand", X = [
2029
+ const Yt = "kupola-theme", Xt = "kupola-brand", X = [
2030
2030
  { id: "green", name: "翠绿", color: "#32F08C" },
2031
2031
  { id: "xionghuang", name: "雄黄", color: "#FF9900" },
2032
2032
  { id: "jianghuang", name: "姜黄", color: "#E2C027" },
@@ -2040,11 +2040,11 @@ const Ut = "kupola-theme", Yt = "kupola-brand", X = [
2040
2040
  { id: "roulan", name: "柔蓝", color: "#106898" }
2041
2041
  ];
2042
2042
  function R() {
2043
- return localStorage.getItem(Ut) || cr();
2043
+ return localStorage.getItem(Yt) || hr();
2044
2044
  }
2045
2045
  function at(i) {
2046
2046
  if (i !== "dark" && i !== "light") return;
2047
- document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Ut, i);
2047
+ document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Yt, i);
2048
2048
  const t = document.querySelector("[data-theme-toggle]");
2049
2049
  if (t) {
2050
2050
  t.setAttribute("data-current-theme", i);
@@ -2056,12 +2056,12 @@ function at(i) {
2056
2056
  }
2057
2057
  }
2058
2058
  function J() {
2059
- return localStorage.getItem(Yt) || hr();
2059
+ return localStorage.getItem(Xt) || dr();
2060
2060
  }
2061
2061
  function ot(i) {
2062
2062
  const t = X.find((n) => n.id === i);
2063
2063
  if (!t) return;
2064
- document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Yt, i);
2064
+ document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Xt, i);
2065
2065
  const e = document.querySelector("[data-brand-toggle]");
2066
2066
  if (e) {
2067
2067
  e.setAttribute("data-current-brand", i);
@@ -2077,23 +2077,34 @@ function ot(i) {
2077
2077
  function _t(i) {
2078
2078
  const t = i.querySelector(".theme-icon");
2079
2079
  if (t) {
2080
- const e = R(), s = t.src.substring(0, t.src.lastIndexOf("/") + 1);
2080
+ const e = R(), s = Wt();
2081
2081
  t.src = e === "dark" ? s + "sun.svg" : s + "moon.svg";
2082
2082
  }
2083
2083
  }
2084
- function gr() {
2085
- const i = R();
2086
- at(i);
2087
- const t = J();
2088
- ot(t);
2089
- const e = document.querySelector("[data-theme-toggle]");
2090
- if (e) {
2091
- _t(e);
2092
- const o = e.onclick;
2093
- e.onclick = function(l) {
2084
+ function _r() {
2085
+ const i = document.querySelector("[data-theme-toggle]");
2086
+ if (i) {
2087
+ const o = i.querySelector(".theme-icon");
2088
+ if (o && o.src) {
2089
+ const l = o.src.substring(0, o.src.lastIndexOf("/") + 1), c = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/") + 1), h = l.replace(window.location.origin + c, "");
2090
+ h !== l && cr({
2091
+ paths: {
2092
+ icons: h,
2093
+ base: c
2094
+ }
2095
+ });
2096
+ }
2097
+ }
2098
+ const t = R();
2099
+ at(t);
2100
+ const e = J();
2101
+ if (ot(e), i) {
2102
+ _t(i);
2103
+ const o = i.onclick;
2104
+ i.onclick = function(l) {
2094
2105
  l.preventDefault();
2095
2106
  const h = R() === "dark" ? "light" : "dark";
2096
- at(h), _t(e), typeof o == "function" && o.call(this, l);
2107
+ at(h), _t(i), typeof o == "function" && o.call(this, l);
2097
2108
  };
2098
2109
  }
2099
2110
  let s = document.getElementById("brand-picker");
@@ -2127,7 +2138,7 @@ function Fa() {
2127
2138
  i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", R()), i.className = "ds-btn ds-btn--ghost ds-btn--sm ds-btn--icon", i.style.position = "fixed", i.style.top = "16px", i.style.right = "16px", i.style.zIndex = "9999";
2128
2139
  const t = document.createElement("img");
2129
2140
  t.className = "theme-icon";
2130
- const e = lr();
2141
+ const e = Wt();
2131
2142
  return t.src = R() === "dark" ? e + "sun.svg" : e + "moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(s) {
2132
2143
  s.preventDefault();
2133
2144
  const r = R() === "dark" ? "light" : "dark";
@@ -2219,7 +2230,7 @@ function Ua(i, t) {
2219
2230
  o += r[a[l] % r.length];
2220
2231
  return t ? `${t}_${o}` : o;
2221
2232
  }
2222
- class _r {
2233
+ class yr {
2223
2234
  constructor() {
2224
2235
  this.initializers = /* @__PURE__ */ new Map(), this.cleanupFunctions = /* @__PURE__ */ new Map(), this.processedElements = /* @__PURE__ */ new WeakSet(), this._dataAttrs = ["data-component"], this._cssClasses = [], this._cachedSelector = null;
2225
2236
  }
@@ -2326,7 +2337,7 @@ class _r {
2326
2337
  }), await Promise.all(n);
2327
2338
  }
2328
2339
  }
2329
- const E = new _r(), yr = [
2340
+ const E = new yr(), vr = [
2330
2341
  { attr: "data-dropdown", cls: "ds-dropdown" },
2331
2342
  { attr: "data-select", cls: "ds-select" },
2332
2343
  { attr: "data-datepicker", cls: "ds-datepicker" },
@@ -2348,7 +2359,7 @@ const E = new _r(), yr = [
2348
2359
  { cls: "ds-notification" },
2349
2360
  { cls: "ds-message" }
2350
2361
  ];
2351
- for (const i of yr)
2362
+ for (const i of vr)
2352
2363
  i.attr && !E._dataAttrs.includes(i.attr) && E._dataAttrs.push(i.attr), i.cls && !E._cssClasses.includes(i.cls) && E._cssClasses.push(i.cls);
2353
2364
  class G {
2354
2365
  constructor(t) {
@@ -2497,7 +2508,7 @@ function yt(i, t) {
2497
2508
  i.prototype[e] = t[e];
2498
2509
  });
2499
2510
  }
2500
- class vr {
2511
+ class br {
2501
2512
  constructor() {
2502
2513
  this.components = /* @__PURE__ */ new Map(), this.lazyComponents = /* @__PURE__ */ new Map(), this.loadedComponents = /* @__PURE__ */ new Map(), this.instances = /* @__PURE__ */ new Map(), this.observer = null, this.mixins = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
2503
2514
  }
@@ -2628,8 +2639,8 @@ class vr {
2628
2639
  }
2629
2640
  }
2630
2641
  let M = null;
2631
- typeof window < "u" && (M = new vr());
2632
- function br() {
2642
+ typeof window < "u" && (M = new br());
2643
+ function xr() {
2633
2644
  if (st().xssProtection && typeof document < "u") {
2634
2645
  let t = document.querySelector('meta[http-equiv="X-XSS-Protection"]');
2635
2646
  t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-XSS-Protection"), t.setAttribute("content", "1; mode=block"), document.head.insertBefore(t, document.head.firstChild)), t = document.querySelector('meta[http-equiv="X-Content-Type-Options"]'), t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-Content-Type-Options"), t.setAttribute("content", "nosniff"), document.head.insertBefore(t, document.head.firstChild));
@@ -2637,9 +2648,9 @@ function br() {
2637
2648
  }
2638
2649
  async function vt() {
2639
2650
  if (typeof window < "u") {
2640
- br();
2651
+ xr();
2641
2652
  const i = dt();
2642
- O.loadPersisted(), O.bind(), gr(), i.components?.autoInit !== !1 && (await E.initializeAll(), M && await M.bootstrap());
2653
+ O.loadPersisted(), O.bind(), _r(), i.components?.autoInit !== !1 && (await E.initializeAll(), M && await M.bootstrap());
2643
2654
  }
2644
2655
  }
2645
2656
  typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", vt) : typeof window < "u" && setTimeout(vt, 0);
@@ -2670,7 +2681,7 @@ function Ga(i, t) {
2670
2681
  cssClass: t.cssClass
2671
2682
  });
2672
2683
  }
2673
- class Xt {
2684
+ class jt {
2674
2685
  constructor(t = {}) {
2675
2686
  const e = dt();
2676
2687
  this.locales = t.locales || {}, this.currentLocale = t.defaultLocale || e.i18n?.locale || "zh-CN", this.fallbackLocale = t.fallbackLocale || e.i18n?.fallbackLocale || "en-US", this.delimiter = t.delimiter || ".", this.missingHandler = t.missingHandler || ((s) => (console.warn(`Missing translation: ${s}`), s)), this._initFromDOM();
@@ -2768,9 +2779,9 @@ class Xt {
2768
2779
  return new Intl.RelativeTimeFormat(n, s).format(t, e);
2769
2780
  }
2770
2781
  }
2771
- const N = new Xt();
2782
+ const N = new jt();
2772
2783
  function Qa(i) {
2773
- return new Xt(i);
2784
+ return new jt(i);
2774
2785
  }
2775
2786
  function to(i, t = {}) {
2776
2787
  return N.t(i, t);
@@ -2793,7 +2804,7 @@ function ro(i, t = {}) {
2793
2804
  function ao(i, t, e = {}) {
2794
2805
  return N.formatCurrency(i, t, e);
2795
2806
  }
2796
- class xr {
2807
+ class Er {
2797
2808
  constructor() {
2798
2809
  this._listeners = /* @__PURE__ */ new Map(), this._scopeListeners = /* @__PURE__ */ new Map();
2799
2810
  }
@@ -2923,7 +2934,7 @@ class xr {
2923
2934
  this._listeners.clear(), this._scopeListeners.clear();
2924
2935
  }
2925
2936
  }
2926
- const H = new xr();
2937
+ const H = new Er();
2927
2938
  function oo(i, t, e, s) {
2928
2939
  return H.on(i, t, e, s);
2929
2940
  }
@@ -2948,7 +2959,7 @@ function fo(i, t) {
2948
2959
  function mo(i, t) {
2949
2960
  return H.getListenerCount(i, t);
2950
2961
  }
2951
- class Er {
2962
+ class wr {
2952
2963
  constructor(t, e = {}) {
2953
2964
  this.element = t, this.trigger = t.querySelector(".ds-dropdown__trigger"), this.menu = t.querySelector(".ds-dropdown__menu"), this.triggerText = this.trigger ? this.trigger.querySelector("span") : null, this.scope = `dropdown-${Math.random().toString(36).substr(2, 9)}`;
2954
2965
  const s = j();
@@ -3083,26 +3094,26 @@ class Er {
3083
3094
  }), this._mouseenterHandler && this.menu.removeEventListener("mouseenter", this._mouseenterHandler), this._mouseleaveHandler && this.menu.removeEventListener("mouseleave", this._mouseleaveHandler)), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.appendToBody && this._originalParent && this._restoreMenuFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._itemClickHandler = null, this._keydownHandler = null, this._mouseenterHandler = null, this._mouseleaveHandler = null, this._triggerMouseenterHandler = null, this._triggerMouseleaveHandler = null, this._triggerKeydownHandler = null, this.element.__kupolaInitialized = !1);
3084
3095
  }
3085
3096
  }
3086
- function jt(i, t) {
3097
+ function Jt(i, t) {
3087
3098
  i._kupolaDropdown && i._kupolaDropdown.destroy();
3088
- const e = new Er(i, t);
3099
+ const e = new wr(i, t);
3089
3100
  e.init(), i._kupolaDropdown = e;
3090
3101
  }
3091
3102
  function go(i = document) {
3092
3103
  i.querySelectorAll(".ds-dropdown").forEach((t) => {
3093
- jt(t);
3104
+ Jt(t);
3094
3105
  });
3095
3106
  }
3096
- function Jt(i) {
3107
+ function Zt(i) {
3097
3108
  i._kupolaDropdown && (i._kupolaDropdown.destroy(), i._kupolaDropdown = null);
3098
3109
  }
3099
3110
  function _o() {
3100
3111
  document.querySelectorAll(".ds-dropdown").forEach((i) => {
3101
- Jt(i);
3112
+ Zt(i);
3102
3113
  });
3103
3114
  }
3104
- E.register("dropdown", jt, Jt);
3105
- class wr {
3115
+ E.register("dropdown", Jt, Zt);
3116
+ class kr {
3106
3117
  constructor(t, e = {}) {
3107
3118
  this.element = t, this.trigger = t.querySelector(".ds-select__trigger"), this.valueEl = t.querySelector(".ds-select__value") || t.querySelector(".ds-select__trigger span"), this.optionsEl = t.querySelector(".ds-select__options") || t.querySelector(".ds-select__menu"), this.nativeSelect = t.querySelector("select"), this.icon = t.querySelector(".ds-select__icon"), this.scope = `select-${Math.random().toString(36).substr(2, 9)}`, this.multiple = e.multiple || t.hasAttribute("data-select-multiple"), this.searchable = e.searchable || t.hasAttribute("data-select-search"), this.clearable = e.clearable || t.hasAttribute("data-select-clear"), this.placeholder = e.placeholder || t.getAttribute("data-select-placeholder") || "", this.disabled = e.disabled || t.hasAttribute("data-select-disabled"), this.maxSelection = e.maxSelection || parseInt(t.getAttribute("data-select-max")) || 1 / 0, this.remoteMethod = e.remoteMethod || null, this.onChange = e.onChange || null, this.appendToBody = e.appendToBody !== !1, this.isOpen = !1, this.selectedValues = /* @__PURE__ */ new Set(), this.allOptions = [], this.filteredOptions = [], this.focusIndex = -1, this.searchInput = null, this.clearBtn = null, this.tagsWrap = null, this._originalParent = null, this._originalPosition = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._optionClickHandler = null, this._keydownHandler = null;
3108
3119
  }
@@ -3348,20 +3359,20 @@ class wr {
3348
3359
  }), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.searchInput && this.searchInput.remove(), this.clearBtn && this.clearBtn.remove(), this.tagsWrap && this.tagsWrap.remove(), this.appendToBody && this._originalParent && this._restoreOptionsFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._optionClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3349
3360
  }
3350
3361
  }
3351
- function Zt(i, t) {
3352
- const e = new wr(i, t);
3362
+ function Gt(i, t) {
3363
+ const e = new kr(i, t);
3353
3364
  e.init(), i._kupolaSelect = e;
3354
3365
  }
3355
3366
  function yo(i = document) {
3356
3367
  i.querySelectorAll(".ds-select").forEach((t) => {
3357
- Zt(t);
3368
+ Gt(t);
3358
3369
  });
3359
3370
  }
3360
- function kr(i) {
3371
+ function Cr(i) {
3361
3372
  i._kupolaSelect && (i._kupolaSelect.destroy(), i._kupolaSelect = null);
3362
3373
  }
3363
- E.register("select", Zt, kr);
3364
- class Cr {
3374
+ E.register("select", Gt, Cr);
3375
+ class Sr {
3365
3376
  constructor(t, e = {}) {
3366
3377
  this.element = t, this.input = t.querySelector("input"), this.endInput = t.querySelector(".ds-datepicker__end-input"), this.icon = t.querySelector(".ds-datepicker__icon"), this.calendarEl = t.querySelector(".ds-datepicker__calendar"), this.scope = `datepicker-${Math.random().toString(36).substr(2, 9)}`;
3367
3378
  const s = j(), n = s.datepicker?.weekStart !== void 0 ? s.datepicker.weekStart : 1;
@@ -3624,20 +3635,20 @@ class Cr {
3624
3635
  }), this.appendToBody && this._originalParent && this._restoreCalendarFromBody(), this._documentClickHandler = null, this._resizeHandler = null, this._documentClickListener = null, this._resizeListener = null, this._iconClickHandler = null, this._inputClickHandler = null, this._endInputClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3625
3636
  }
3626
3637
  }
3627
- function Gt(i, t) {
3628
- const e = new Cr(i, t);
3638
+ function Qt(i, t) {
3639
+ const e = new Sr(i, t);
3629
3640
  e.init(), i._kupolaDatepicker = e;
3630
3641
  }
3631
3642
  function vo(i = document) {
3632
3643
  i.querySelectorAll(".ds-datepicker").forEach((t) => {
3633
- Gt(t);
3644
+ Qt(t);
3634
3645
  });
3635
3646
  }
3636
- function Sr(i) {
3647
+ function Lr(i) {
3637
3648
  i._kupolaDatepicker && (i._kupolaDatepicker.destroy(), i._kupolaDatepicker = null);
3638
3649
  }
3639
- E.register("datepicker", Gt, Sr);
3640
- class Lr {
3650
+ E.register("datepicker", Qt, Lr);
3651
+ class Dr {
3641
3652
  constructor(t, e = {}) {
3642
3653
  this.element = t, this.input = t.querySelector("input"), this.inputWrap = t.querySelector(".ds-timepicker__input-wrap"), this.panelEl = null, this.scope = `timepicker-${Math.random().toString(36).substr(2, 9)}`, this.showSeconds = e.showSeconds || t.hasAttribute("data-timepicker-seconds"), this.use12Hour = e.use12Hour || t.hasAttribute("data-timepicker-12h"), this.hourStep = e.hourStep || parseInt(t.getAttribute("data-timepicker-hour-step")) || 1, this.minuteStep = e.minuteStep || parseInt(t.getAttribute("data-timepicker-minute-step")) || 5, this.secondStep = e.secondStep || parseInt(t.getAttribute("data-timepicker-second-step")) || 5, this.minTime = e.minTime || t.getAttribute("data-timepicker-min") || null, this.maxTime = e.maxTime || t.getAttribute("data-timepicker-max") || null, this.disabledTime = e.disabledTime || null, this.placeholder = e.placeholder || t.getAttribute("data-timepicker-placeholder") || "", this.clearable = e.clearable || t.hasAttribute("data-timepicker-clear"), this.onChange = e.onChange || null, this.selectedHour = 12, this.selectedMinute = 0, this.selectedSecond = 0, this.isPM = !1, this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null;
3643
3654
  }
@@ -3819,20 +3830,20 @@ class Lr {
3819
3830
  this.element.__kupolaInitialized && (this.inputWrap && this._inputWrapClickHandler && this.inputWrap.removeEventListener("click", this._inputWrapClickHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._resizeListener && this._resizeListener.unsubscribe ? this._resizeListener.unsubscribe() : this._resizeHandler && window.removeEventListener("resize", this._resizeHandler), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this.panelEl && (this.panelEl.remove(), this.panelEl = null), this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3820
3831
  }
3821
3832
  }
3822
- function Qt(i, t) {
3823
- const e = new Lr(i, t);
3833
+ function te(i, t) {
3834
+ const e = new Dr(i, t);
3824
3835
  e.init(), i._kupolaTimepicker = e;
3825
3836
  }
3826
3837
  function bo(i = document) {
3827
3838
  i.querySelectorAll(".ds-timepicker").forEach((t) => {
3828
- Qt(t);
3839
+ te(t);
3829
3840
  });
3830
3841
  }
3831
- function Dr(i) {
3842
+ function Hr(i) {
3832
3843
  i._kupolaTimepicker && (i._kupolaTimepicker.destroy(), i._kupolaTimepicker = null);
3833
3844
  }
3834
- E.register("timepicker", Qt, Dr);
3835
- class Hr {
3845
+ E.register("timepicker", te, Hr);
3846
+ class Mr {
3836
3847
  constructor(t, e = {}) {
3837
3848
  if (this.element = t, this.track = t.querySelector(".ds-slider__track"), this.fill = t.querySelector(".ds-slider__fill"), this.input = t.querySelector(".ds-slider__input"), this.valueEl = t.querySelector(".ds-slider__value"), this.range = e.range || t.hasAttribute("data-slider-range"), this.vertical = e.vertical || t.hasAttribute("data-slider-vertical"), this.disabled = e.disabled || t.hasAttribute("data-slider-disabled"), this.showTooltip = e.showTooltip !== !1, this.showMarks = e.marks || t.hasAttribute("data-slider-marks"), this.markStep = e.markStep || parseInt(t.getAttribute("data-slider-mark-step")) || 10, this.tooltipFormat = e.tooltipFormat || ((s) => s), this.onChange = e.onChange || null, this.onInput = e.onInput || null, this.inputEnd = t.querySelector(".ds-slider__input--end"), this.fillEnd = null, this.thumbStart = null, this.thumbEnd = null, this.tooltipStart = null, this.tooltipEnd = null, this.marksEl = null, this._listeners = [], this._isDragging = !1, this._activeThumb = null, !this.track || !this.fill)
3838
3849
  throw new Error("Slider: Missing required elements");
@@ -3980,25 +3991,25 @@ class Hr {
3980
3991
  this.disabled = !0, this.element.classList.add("is-disabled");
3981
3992
  }
3982
3993
  }
3983
- function te(i, t) {
3994
+ function ee(i, t) {
3984
3995
  if (!i.__kupolaInitialized)
3985
3996
  try {
3986
- const e = new Hr(i, t);
3997
+ const e = new Mr(i, t);
3987
3998
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
3988
3999
  } catch (e) {
3989
4000
  console.error("[Slider] Error initializing:", e);
3990
4001
  }
3991
4002
  }
3992
- function Mr(i) {
4003
+ function Ir(i) {
3993
4004
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
3994
4005
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
3995
4006
  }
3996
4007
  function xo() {
3997
4008
  document.querySelectorAll(".ds-slider").forEach((i) => {
3998
- te(i);
4009
+ ee(i);
3999
4010
  });
4000
4011
  }
4001
- E.register("slider", te, Mr);
4012
+ E.register("slider", ee, Ir);
4002
4013
  class Tr {
4003
4014
  constructor(t, e = {}) {
4004
4015
  this.element = t, this.track = t.querySelector(".ds-carousel__track"), this.items = t.querySelectorAll(".ds-carousel__item"), this.prevBtn = t.querySelector(".ds-carousel__prev"), this.nextBtn = t.querySelector(".ds-carousel__next"), this.indicators = t.querySelectorAll(".ds-carousel__indicator"), this.autoBtn = t.querySelector(".ds-carousel__auto"), this.mode = e.mode || t.getAttribute("data-carousel-mode") || "slide", this.vertical = e.vertical || t.hasAttribute("data-carousel-vertical"), this.autoPlay = e.autoPlay !== !1, this.interval = e.interval || parseInt(t.getAttribute("data-carousel-interval")) || 3e3, this.transitionDuration = e.transitionDuration || parseInt(t.getAttribute("data-carousel-duration")) || 500, this.loop = e.loop !== !1, this.pauseOnHover = e.pauseOnHover !== !1, this.swipe = e.swipe !== !1, this.swipeThreshold = e.swipeThreshold || 50, this.keyboardNav = e.keyboardNav || t.hasAttribute("data-carousel-keyboard"), this.onChange = e.onChange || null, this.currentIndex = 0, this.totalItems = this.items.length, this.autoPlayTimer = null, this.isAutoPlaying = !1, this.isTransitioning = !1, this.touchStartX = 0, this.touchStartY = 0, this.touchDeltaX = 0, this.touchDeltaY = 0, this.isSwiping = !1, this._mouseEnterHandler = () => {
@@ -4080,22 +4091,22 @@ class Tr {
4080
4091
  }), this._touchStartHandler && this.element.removeEventListener("touchstart", this._touchStartHandler), this._touchMoveHandler && this.element.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndHandler && this.element.removeEventListener("touchend", this._touchEndHandler), this._keydownHandler && this.element.removeEventListener("keydown", this._keydownHandler), this._prevClickHandler = null, this._nextClickHandler = null, this._autoClickHandler = null, this._indicatorClickHandlers = null;
4081
4092
  }
4082
4093
  }
4083
- function ee(i, t) {
4094
+ function se(i, t) {
4084
4095
  if (i.__kupolaInitialized) return;
4085
4096
  const e = new Tr(i, t);
4086
4097
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4087
4098
  }
4088
4099
  function Eo(i = document) {
4089
4100
  i.querySelectorAll(".ds-carousel").forEach((t) => {
4090
- ee(t);
4101
+ se(t);
4091
4102
  });
4092
4103
  }
4093
- function Ir(i) {
4104
+ function Ar(i) {
4094
4105
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4095
4106
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4096
4107
  }
4097
- E.register("carousel", ee, Ir);
4098
- class Ar {
4108
+ E.register("carousel", se, Ar);
4109
+ class zr {
4099
4110
  constructor(t, e = {}) {
4100
4111
  this.element = t, this.mask = t.querySelector(".ds-drawer-mask"), this.drawerEl = t.querySelector(".ds-drawer"), this.placement = e.placement || t.getAttribute("data-drawer-placement") || "right", this.width = e.width || t.getAttribute("data-drawer-width") || "400px", this.height = e.height || t.getAttribute("data-drawer-height") || "400px", this.escClose = e.escClose !== !1, this.maskClosable = e.maskClosable !== !1, this.showMask = e.showMask !== !1, this.onOpen = e.onOpen || null, this.onClose = e.onClose || null, this.onBeforeClose = e.onBeforeClose || null, this._keydownHandler = null, this._bindEvents();
4101
4112
  }
@@ -4134,10 +4145,10 @@ class Ar {
4134
4145
  }
4135
4146
  function lt(i, t) {
4136
4147
  if (i.__kupolaInitialized) return;
4137
- const e = new Ar(i, t);
4148
+ const e = new zr(i, t);
4138
4149
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4139
4150
  }
4140
- function zr(i) {
4151
+ function Pr(i) {
4141
4152
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4142
4153
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4143
4154
  }
@@ -4156,7 +4167,7 @@ function wo() {
4156
4167
  t && lt(t);
4157
4168
  });
4158
4169
  }
4159
- E.register("drawer", lt, zr);
4170
+ E.register("drawer", lt, Pr);
4160
4171
  class $ {
4161
4172
  constructor(t, e = {}) {
4162
4173
  this.element = t, this.mask = t.querySelector(".ds-modal-mask"), this.modal = t.querySelector(".ds-modal"), this.closeBtn = t.querySelector(".ds-modal__close");
@@ -4193,7 +4204,7 @@ class $ {
4193
4204
  }
4194
4205
  }
4195
4206
  $._openCount = 0;
4196
- function se(i = {}) {
4207
+ function ie(i = {}) {
4197
4208
  const {
4198
4209
  title: t = "",
4199
4210
  content: e = "",
@@ -4260,46 +4271,46 @@ function se(i = {}) {
4260
4271
  m && m(), k.close();
4261
4272
  };
4262
4273
  D && D.addEventListener("click", pt), q && q.addEventListener("click", ft);
4263
- const we = () => {
4274
+ const ke = () => {
4264
4275
  setTimeout(() => {
4265
4276
  D && D.removeEventListener("click", pt), q && q.removeEventListener("click", ft), k.destroy(), C.remove(), _ && _(ut);
4266
4277
  }, 300);
4267
- }, ke = k.close.bind(k);
4278
+ }, Ce = k.close.bind(k);
4268
4279
  return k.close = () => {
4269
- ke(), we();
4280
+ Ce(), ke();
4270
4281
  }, k.open(), y && setTimeout(() => y(), 50), k;
4271
4282
  }
4272
4283
  function ko(i) {
4273
- return typeof i == "string" && (i = { content: i }), se({
4284
+ return typeof i == "string" && (i = { content: i }), ie({
4274
4285
  ...i,
4275
4286
  showCancel: !0,
4276
4287
  showConfirm: !0
4277
4288
  });
4278
4289
  }
4279
4290
  function Co(i) {
4280
- return typeof i == "string" && (i = { content: i }), se({
4291
+ return typeof i == "string" && (i = { content: i }), ie({
4281
4292
  ...i,
4282
4293
  showCancel: !1,
4283
4294
  showConfirm: !0
4284
4295
  });
4285
4296
  }
4286
- function ie(i) {
4297
+ function ne(i) {
4287
4298
  if (i.__kupolaInitialized)
4288
4299
  return;
4289
4300
  const t = new $(i);
4290
4301
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
4291
4302
  }
4292
- function Pr(i) {
4303
+ function $r(i) {
4293
4304
  if (!i.__kupolaInitialized || !i.__kupolaInstance)
4294
4305
  return;
4295
4306
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4296
4307
  }
4297
4308
  function So() {
4298
4309
  document.querySelectorAll(".ds-modal-container").forEach((i) => {
4299
- ie(i);
4310
+ ne(i);
4300
4311
  });
4301
4312
  }
4302
- E.register("modal", ie, Pr);
4313
+ E.register("modal", ne, $r);
4303
4314
  class Lo {
4304
4315
  static normal(t = {}) {
4305
4316
  return this._create({ type: "normal", ...t });
@@ -4382,7 +4393,7 @@ const Do = {
4382
4393
  this.show({ ...i, type: "info" });
4383
4394
  },
4384
4395
  show: function(i) {
4385
- const t = pr(), { title: e, message: s, type: n = "normal", duration: r = t.duration, position: a = t.position } = i, o = document.createElement("div");
4396
+ const t = fr(), { title: e, message: s, type: n = "normal", duration: r = t.duration, position: a = t.position } = i, o = document.createElement("div");
4386
4397
  o.className = `ds-notification__item ds-notification__item--${n}`;
4387
4398
  const l = {
4388
4399
  normal: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>',
@@ -4435,7 +4446,7 @@ const Mo = {
4435
4446
  this.show(i, "info", t);
4436
4447
  },
4437
4448
  show: function(i, t = "normal", e = {}) {
4438
- const s = ur(), { duration: n = s.duration, position: r = s.position } = e, a = s.maxCount || 5, o = document.createElement("div");
4449
+ const s = pr(), { duration: n = s.duration, position: r = s.position } = e, a = s.maxCount || 5, o = document.createElement("div");
4439
4450
  o.className = `ds-message__item ds-message__item--${t}`;
4440
4451
  const l = {
4441
4452
  normal: '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>',
@@ -4466,12 +4477,12 @@ const Mo = {
4466
4477
  }, n);
4467
4478
  }
4468
4479
  };
4469
- function To() {
4480
+ function Io() {
4470
4481
  }
4471
4482
  function bt(i) {
4472
4483
  return i ? i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;") : "";
4473
4484
  }
4474
- class $r {
4485
+ class Br {
4475
4486
  constructor(t) {
4476
4487
  this.element = t, this.dropzone = t.querySelector(".ds-fileupload__dropzone"), this.input = t.querySelector(".ds-fileupload__input"), this.list = t.querySelector(".ds-fileupload__list"), this.progress = t.querySelector(".ds-fileupload__preview"), this.files = [], this.maxSize = parseInt(t.getAttribute("data-max-size")) || 0, this.maxCount = parseInt(t.getAttribute("data-max-count")) || 0, this._listeners = [], this.init();
4477
4488
  }
@@ -4629,22 +4640,22 @@ class $r {
4629
4640
  }), this._listeners = null, this.files = [], this.dropzone = null, this.input = null, this.list = null, this.progress = null, this.preview = null, this.element = null;
4630
4641
  }
4631
4642
  }
4632
- function ne(i) {
4643
+ function re(i) {
4633
4644
  if (i.__kupolaInitialized) return;
4634
- const t = new $r(i);
4645
+ const t = new Br(i);
4635
4646
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
4636
4647
  }
4637
- function Br(i) {
4648
+ function qr(i) {
4638
4649
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4639
4650
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4640
4651
  }
4641
- function Io() {
4652
+ function To() {
4642
4653
  document.querySelectorAll(".ds-fileupload").forEach((i) => {
4643
- ne(i);
4654
+ re(i);
4644
4655
  });
4645
4656
  }
4646
- E.register("fileupload", ne, Br);
4647
- class qr {
4657
+ E.register("fileupload", re, qr);
4658
+ class Or {
4648
4659
  constructor(t, e = {}) {
4649
4660
  this.element = t, this.headers = [], this._listeners = [], this.accordion = e.accordion || t.hasAttribute("data-collapse-accordion"), this.animationDuration = e.animationDuration || parseInt(t.getAttribute("data-collapse-duration")) || 300, this.disabledItems = e.disabledItems || [], this.defaultExpanded = e.defaultExpanded || [], this._init();
4650
4661
  }
@@ -4726,22 +4737,22 @@ class qr {
4726
4737
  this.headers[t] && (this.headers[t].isDisabled = !1, this.headers[t].item.classList.remove("is-disabled"));
4727
4738
  }
4728
4739
  }
4729
- function re(i, t) {
4740
+ function ae(i, t) {
4730
4741
  if (i.__kupolaInitialized) return;
4731
- const e = new qr(i, t);
4742
+ const e = new Or(i, t);
4732
4743
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4733
4744
  }
4734
- function Or(i) {
4745
+ function Fr(i) {
4735
4746
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4736
4747
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4737
4748
  }
4738
4749
  function Ao() {
4739
4750
  document.querySelectorAll(".ds-collapse").forEach((i) => {
4740
- re(i);
4751
+ ae(i);
4741
4752
  });
4742
4753
  }
4743
- E.register("collapse", re, Or);
4744
- class Fr {
4754
+ E.register("collapse", ae, Fr);
4755
+ class Nr {
4745
4756
  constructor(t, e = {}) {
4746
4757
  this.element = t, this.trigger = t.querySelector(".ds-color-picker__trigger"), this.panel = t.querySelector(".ds-color-picker__panel"), this.valueSpan = t.querySelector(".ds-color-picker__value"), this.customInput = t.querySelector(".ds-color-picker__input"), this.scope = `colorpicker-${Math.random().toString(36).substr(2, 9)}`, this.options = e, this.value = e.value || "#007bff", this.showAlpha = e.showAlpha !== !1, this.mode = e.mode || "hex", this.previousColors = e.previousColors || this._getStoredColors(), this.previousColorsLimit = e.previousColorsLimit || 12, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.hue = 210, this.saturation = 100, this.brightness = 50, this.alpha = 100, this._colorStringToHSB(this.value);
4747
4758
  }
@@ -4906,20 +4917,20 @@ class Fr {
4906
4917
  }), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.element.__kupolaInitialized = !1;
4907
4918
  }
4908
4919
  }
4909
- function ae(i, t) {
4910
- const e = new Fr(i, t);
4920
+ function oe(i, t) {
4921
+ const e = new Nr(i, t);
4911
4922
  e.init(), i._kupolaColorPicker = e;
4912
4923
  }
4913
4924
  function zo(i = document) {
4914
4925
  i.querySelectorAll(".ds-color-picker").forEach((t) => {
4915
- ae(t);
4926
+ oe(t);
4916
4927
  });
4917
4928
  }
4918
- function Nr(i) {
4929
+ function Rr(i) {
4919
4930
  i._kupolaColorPicker && (i._kupolaColorPicker.destroy(), i._kupolaColorPicker = null);
4920
4931
  }
4921
- E.register("color-picker", ae, Nr);
4922
- class Rr {
4932
+ E.register("color-picker", oe, Rr);
4933
+ class Vr {
4923
4934
  constructor(t, e = {}) {
4924
4935
  if (this.element = t, this.titleEl = t.querySelector(".ds-calendar__title"), this.daysEl = t.querySelector(".ds-calendar__days"), this.prevBtn = t.querySelector(".ds-calendar__nav--prev"), this.nextBtn = t.querySelector(".ds-calendar__nav--next"), this.todayBtn = t.querySelector(".ds-calendar__nav--today"), this._listeners = [], !this.titleEl || !this.daysEl)
4925
4936
  throw new Error("Calendar: Missing required elements");
@@ -5116,26 +5127,26 @@ class Rr {
5116
5127
  this.isRangeMode = !this.isRangeMode, this.rangeStart = null, this.rangeEnd = null, this.render(), this._emitChange();
5117
5128
  }
5118
5129
  }
5119
- function oe(i, t) {
5130
+ function le(i, t) {
5120
5131
  if (!i.__kupolaInitialized)
5121
5132
  try {
5122
- const e = new Rr(i, t);
5133
+ const e = new Vr(i, t);
5123
5134
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
5124
5135
  } catch (e) {
5125
5136
  console.error("[Calendar] Error initializing:", e);
5126
5137
  }
5127
5138
  }
5128
- function Vr(i) {
5139
+ function Kr(i) {
5129
5140
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5130
5141
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5131
5142
  }
5132
5143
  function Po() {
5133
5144
  document.querySelectorAll(".ds-calendar").forEach((i) => {
5134
- oe(i);
5145
+ le(i);
5135
5146
  });
5136
5147
  }
5137
- E.register("calendar", oe, Vr);
5138
- class Kr {
5148
+ E.register("calendar", le, Kr);
5149
+ class Wr {
5139
5150
  constructor(t, e = {}) {
5140
5151
  this.element = t, this.input = t.querySelector(".ds-dynamic-tags__input"), this._listeners = [], this.maxCount = e.maxCount || parseInt(t.getAttribute("data-dynamic-tags-max")) || 1 / 0, this.allowDuplicates = e.allowDuplicates !== !1, this.color = e.color || t.getAttribute("data-dynamic-tags-color") || "default", this.init();
5141
5152
  }
@@ -5281,22 +5292,22 @@ class Kr {
5281
5292
  }), this._listeners = null, this.input = null, this.element = null;
5282
5293
  }
5283
5294
  }
5284
- function le(i, t) {
5295
+ function ce(i, t) {
5285
5296
  if (i.__kupolaInitialized) return;
5286
- const e = new Kr(i, t);
5297
+ const e = new Wr(i, t);
5287
5298
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
5288
5299
  }
5289
- function Wr(i) {
5300
+ function Ur(i) {
5290
5301
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5291
5302
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5292
5303
  }
5293
5304
  function $o() {
5294
5305
  document.querySelectorAll(".ds-dynamic-tags").forEach((i) => {
5295
- le(i);
5306
+ ce(i);
5296
5307
  });
5297
5308
  }
5298
- E.register("dynamic-tags", le, Wr);
5299
- class ce {
5309
+ E.register("dynamic-tags", ce, Ur);
5310
+ class he {
5300
5311
  constructor(t = {}) {
5301
5312
  this.images = t.images || [], this.currentIndex = t.currentIndex || 0, this.overlay = null, this.closeHandler = this.close.bind(this), this.keyHandler = this.handleKeydown.bind(this), this.clickHandler = this.handleOverlayClick.bind(this), this.zoom = 1, this.rotation = 0, this.zoomStep = t.zoomStep || 0.2, this.minZoom = t.minZoom || 0.5, this.maxZoom = t.maxZoom || 3, this.init();
5302
5313
  }
@@ -5489,7 +5500,7 @@ class ce {
5489
5500
  }
5490
5501
  let V = null;
5491
5502
  function Bo() {
5492
- V || (V = new ce()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5503
+ V || (V = new he()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5493
5504
  i.addEventListener("click", () => {
5494
5505
  const t = JSON.parse(i.getAttribute("data-image-preview")), e = parseInt(i.getAttribute("data-image-index")) || 0;
5495
5506
  V.show(t, e);
@@ -5497,9 +5508,9 @@ function Bo() {
5497
5508
  });
5498
5509
  }
5499
5510
  function qo(i, t = 0) {
5500
- V || (V = new ce()), V.show(i, t);
5511
+ V || (V = new he()), V.show(i, t);
5501
5512
  }
5502
- class Ur {
5513
+ class Yr {
5503
5514
  constructor(t, e = {}) {
5504
5515
  this.element = t, this.closeBtn = t.querySelector(".ds-tag__close"), this.checkbox = t.querySelector(".ds-tag__checkbox"), this.editInput = t.querySelector(".ds-tag__input"), this._listeners = [], this.color = e.color || t.getAttribute("data-tag-color") || "default", this.size = e.size || t.getAttribute("data-tag-size") || "default", this.checkable = e.checkable || t.hasAttribute("data-tag-checkable"), this.checked = e.checked || t.hasAttribute("data-tag-checked"), this.editable = e.editable || t.hasAttribute("data-tag-editable"), this.maxLength = e.maxLength || parseInt(t.getAttribute("data-tag-maxlength")) || 50, this.init();
5505
5516
  }
@@ -5629,22 +5640,22 @@ class Ur {
5629
5640
  }), this._listeners = [], this.closeBtn = null, this.checkbox = null, this.editInput = null, this.element = null;
5630
5641
  }
5631
5642
  }
5632
- function he(i, t) {
5643
+ function de(i, t) {
5633
5644
  if (i.__kupolaInitialized) return;
5634
- const e = new Ur(i, t);
5645
+ const e = new Yr(i, t);
5635
5646
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
5636
5647
  }
5637
- function Yr(i) {
5648
+ function Xr(i) {
5638
5649
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5639
5650
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5640
5651
  }
5641
5652
  function Oo() {
5642
5653
  document.querySelectorAll(".ds-tag").forEach((i) => {
5643
- he(i);
5654
+ de(i);
5644
5655
  });
5645
5656
  }
5646
- E.register("tag", he, Yr);
5647
- class Xr {
5657
+ E.register("tag", de, Xr);
5658
+ class jr {
5648
5659
  constructor(t) {
5649
5660
  this.element = t, this.valueElement = t.querySelector(".ds-statcard__value"), this.progressFill = t.querySelector(".ds-statcard__progress-fill"), this.animated = !1, this._observer = null, this.init();
5650
5661
  }
@@ -5704,22 +5715,22 @@ class Xr {
5704
5715
  this._observer && (this._observer.disconnect(), this._observer = null), this.animated = !1, this.valueElement = null, this.progressFill = null, this.element = null;
5705
5716
  }
5706
5717
  }
5707
- function de(i) {
5718
+ function ue(i) {
5708
5719
  if (i.__kupolaInitialized) return;
5709
- const t = new Xr(i);
5720
+ const t = new jr(i);
5710
5721
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
5711
5722
  }
5712
- function jr(i) {
5723
+ function Jr(i) {
5713
5724
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5714
5725
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5715
5726
  }
5716
5727
  function Fo() {
5717
5728
  document.querySelectorAll(".ds-statcard").forEach((i) => {
5718
- de(i);
5729
+ ue(i);
5719
5730
  });
5720
5731
  }
5721
- E.register("statcard", de, jr);
5722
- class Jr {
5732
+ E.register("statcard", ue, Jr);
5733
+ class Zr {
5723
5734
  constructor(t, e = {}) {
5724
5735
  this.element = t, this.data = e.data || [], this.startDate = e.startDate || this.getOneYearAgo(), this.endDate = e.endDate || /* @__PURE__ */ new Date(), this.cellSize = e.cellSize || 14, this.onCellClick = e.onCellClick || null, this.tooltip = null, this.baseColor = e.color || t.getAttribute("data-color") || "#22c55e", this._listeners = [], this.init();
5725
5736
  }
@@ -5874,7 +5885,7 @@ class Jr {
5874
5885
  }), this._listeners = null, this.tooltip && this.tooltip.parentNode && this.tooltip.parentNode.removeChild(this.tooltip), this.tooltip = null, this.data = [], this.element = null;
5875
5886
  }
5876
5887
  }
5877
- function ue(i) {
5888
+ function pe(i) {
5878
5889
  if (i.__kupolaInitialized) return;
5879
5890
  const t = i.getAttribute("data-heatmap-data");
5880
5891
  let e = [];
@@ -5886,20 +5897,20 @@ function ue(i) {
5886
5897
  }
5887
5898
  else
5888
5899
  e = xt();
5889
- const s = new Jr(i, {
5900
+ const s = new Zr(i, {
5890
5901
  data: e,
5891
5902
  onCellClick: (n) => {
5892
5903
  }
5893
5904
  });
5894
5905
  i.__kupolaInstance = s, i.__kupolaInitialized = !0;
5895
5906
  }
5896
- function Zr(i) {
5907
+ function Gr(i) {
5897
5908
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5898
5909
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5899
5910
  }
5900
5911
  function No() {
5901
5912
  document.querySelectorAll(".ds-heatmap").forEach((i) => {
5902
- ue(i);
5913
+ pe(i);
5903
5914
  });
5904
5915
  }
5905
5916
  function xt() {
@@ -5914,8 +5925,8 @@ function xt() {
5914
5925
  }
5915
5926
  return i;
5916
5927
  }
5917
- E.register("heatmap", ue, Zr);
5918
- class Gr {
5928
+ E.register("heatmap", pe, Gr);
5929
+ class Qr {
5919
5930
  constructor(t, e = {}) {
5920
5931
  this.element = t, this.tooltipEl = null, this.options = e;
5921
5932
  const s = j(), n = s.tooltip?.delay !== void 0 ? s.tooltip.delay : 300;
@@ -6016,20 +6027,20 @@ class Gr {
6016
6027
  this.element.__kupolaInitialized && (this._showTimer && (clearTimeout(this._showTimer), this._showTimer = null), this._hideTimer && (clearTimeout(this._hideTimer), this._hideTimer = null), (this.trigger === "hover" || this.trigger === "focus") && (this.element.removeEventListener("mouseenter", this._showTooltip), this.element.removeEventListener("mouseleave", this._hideTooltip)), this.trigger === "click" && this.element.removeEventListener("click", this._clickHandler), (this.trigger === "focus" || this.trigger === "hover") && (this.element.removeEventListener("focus", this._showTooltip), this.element.removeEventListener("blur", this._hideTooltip)), this.mouseFollow && this.element.removeEventListener("mousemove", this._mouseMoveHandler), this.tooltipEl && (this.tooltipEl.remove(), this.tooltipEl = null), this.isVisible = !1, this._showTooltip = null, this._hideTooltip = null, this._clickHandler = null, this._mouseMoveHandler = null, this.element.__kupolaInitialized = !1);
6017
6028
  }
6018
6029
  }
6019
- function pe(i, t) {
6020
- const e = new Gr(i, t);
6030
+ function fe(i, t) {
6031
+ const e = new Qr(i, t);
6021
6032
  e.init(), i._kupolaTooltip = e;
6022
6033
  }
6023
6034
  function Ro(i = document) {
6024
6035
  i.querySelectorAll("[data-tooltip]").forEach((t) => {
6025
- pe(t);
6036
+ fe(t);
6026
6037
  });
6027
6038
  }
6028
- function Qr(i) {
6039
+ function ta(i) {
6029
6040
  i._kupolaTooltip && (i._kupolaTooltip.destroy(), i._kupolaTooltip = null);
6030
6041
  }
6031
- E.register("tooltip", pe, Qr);
6032
- class ta {
6042
+ E.register("tooltip", fe, ta);
6043
+ class ea {
6033
6044
  constructor() {
6034
6045
  this.validators = {
6035
6046
  required: this.validateRequired,
@@ -6255,7 +6266,7 @@ class ta {
6255
6266
  }[t] || "Invalid input";
6256
6267
  }
6257
6268
  }
6258
- const P = new ta();
6269
+ const P = new ea();
6259
6270
  window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized = !0, document.addEventListener("DOMContentLoaded", () => {
6260
6271
  document.querySelectorAll("form[data-validation]").forEach((i) => {
6261
6272
  i.addEventListener("submit", async (t) => {
@@ -6285,7 +6296,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
6285
6296
  r && r.focus();
6286
6297
  }
6287
6298
  }), i.querySelectorAll("[data-validate]").forEach((t) => {
6288
- const e = fr(), s = e.trigger || "blur", n = () => {
6299
+ const e = mr(), s = e.trigger || "blur", n = () => {
6289
6300
  e.showErrors && setTimeout(() => {
6290
6301
  const l = document.activeElement;
6291
6302
  if (l && l.closest(".ds-select"))
@@ -6299,7 +6310,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
6299
6310
  return (...d) => {
6300
6311
  clearTimeout(h), h = setTimeout(() => l(...d), c);
6301
6312
  };
6302
- }, a = dr(), o = r(() => {
6313
+ }, a = ur(), o = r(() => {
6303
6314
  if (!e.showErrors)
6304
6315
  return;
6305
6316
  const l = P.getValue(t);
@@ -6311,7 +6322,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
6311
6322
  });
6312
6323
  });
6313
6324
  }));
6314
- class ea {
6325
+ class sa {
6315
6326
  constructor(t, e = {}) {
6316
6327
  this.element = t, this.data = e.data || [], this.itemHeight = e.itemHeight || 48, this.itemWidth = e.itemWidth || 200, this.bufferSize = e.bufferSize || 5, this.renderItem = e.renderItem || this.defaultRenderItem, this.onItemClick = e.onItemClick || null, this.onItemSelect = e.onItemSelect || null, this.onScroll = e.onScroll || null, this.onScrollEnd = e.onScrollEnd || null, this.selectedKey = e.selectedKey || null, this.keyField = e.keyField || "id", this.useDynamicHeight = e.useDynamicHeight || !1, this.dynamicHeightCache = /* @__PURE__ */ new Map(), this.estimatedHeight = e.estimatedHeight || 48, this.container = null, this.scrollbarTrack = null, this.scrollbarThumb = null, this.totalHeight = 0, this.startIndex = 0, this.endIndex = 0, this.isScrolling = !1, this.scrollTimeout = null, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.init();
6317
6328
  }
@@ -6563,7 +6574,7 @@ function Et(i = 1e3) {
6563
6574
  }
6564
6575
  return t;
6565
6576
  }
6566
- function sa(i) {
6577
+ function ia(i) {
6567
6578
  if (i.__kupolaInitialized) return;
6568
6579
  const t = i.getAttribute("data-virtual-list");
6569
6580
  let e = [];
@@ -6575,7 +6586,7 @@ function sa(i) {
6575
6586
  }
6576
6587
  else
6577
6588
  e = Et(1e3);
6578
- const s = new ea(i, {
6589
+ const s = new sa(i, {
6579
6590
  data: e,
6580
6591
  onItemClick: (n) => {
6581
6592
  },
@@ -6584,12 +6595,12 @@ function sa(i) {
6584
6595
  });
6585
6596
  i.__kupolaInstance = s, i.__kupolaInitialized = !0;
6586
6597
  }
6587
- function ia(i) {
6598
+ function na(i) {
6588
6599
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6589
6600
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6590
6601
  }
6591
- E.register("virtual-list", sa, ia);
6592
- const na = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', fe = {
6602
+ E.register("virtual-list", ia, na);
6603
+ const ra = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', me = {
6593
6604
  globe: '<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/>',
6594
6605
  dashboard: '<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>',
6595
6606
  mouse: '<rect x="6" y="2" width="12" height="20" rx="6"/><line x1="12" y1="6" x2="12" y2="11"/>',
@@ -6699,19 +6710,19 @@ const na = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0
6699
6710
  code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
6700
6711
  apple: '<path fill="currentColor" stroke="none" d="M17.05 12.04c-.03-3.04 2.49-4.5 2.6-4.57-1.42-2.07-3.62-2.36-4.4-2.39-1.87-.19-3.65 1.1-4.6 1.1-.96 0-2.42-1.08-3.98-1.05-2.05.03-3.94 1.19-4.99 3.02-2.13 3.69-.54 9.13 1.53 12.12 1.01 1.46 2.21 3.1 3.78 3.04 1.52-.06 2.09-.98 3.93-.98 1.83 0 2.36.98 3.97.95 1.64-.03 2.68-1.49 3.68-2.96 1.16-1.7 1.64-3.35 1.66-3.43-.04-.02-3.18-1.22-3.21-4.85zM14.06 4.34c.83-1.01 1.39-2.41 1.24-3.81-1.2.05-2.65.8-3.51 1.8-.77.89-1.45 2.31-1.27 3.68 1.34.1 2.71-.68 3.54-1.67z"/>'
6701
6712
  };
6702
- function me(i, t = 16, e = "0 0 24 24") {
6703
- const s = fe[i];
6704
- return s ? `<svg ${na.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6713
+ function ge(i, t = 16, e = "0 0 24 24") {
6714
+ const s = me[i];
6715
+ return s ? `<svg ${ra.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6705
6716
  }
6706
6717
  function ct(i = document) {
6707
6718
  i.querySelectorAll("[data-icon]").forEach((t) => {
6708
6719
  const e = t.getAttribute("data-icon"), s = +t.getAttribute("data-size") || 16, n = t.getAttribute("data-viewbox") || "0 0 24 24";
6709
- t.innerHTML = me(e, s, n), t.classList.add("icon");
6720
+ t.innerHTML = ge(e, s, n), t.classList.add("icon");
6710
6721
  });
6711
6722
  }
6712
- const Vo = { svg: me, render: ct, PATHS: fe };
6723
+ const Vo = { svg: ge, render: ct, PATHS: me };
6713
6724
  typeof document < "u" && (document.readyState !== "loading" ? ct() : document.addEventListener("DOMContentLoaded", () => ct()));
6714
- class ra {
6725
+ class aa {
6715
6726
  constructor(t) {
6716
6727
  this.element = t, this.hoursEl = t.querySelector(".ds-countdown__item--hours .ds-countdown__value"), this.minutesEl = t.querySelector(".ds-countdown__item--minutes .ds-countdown__value"), this.secondsEl = t.querySelector(".ds-countdown__item--seconds .ds-countdown__value"), this.endTime = this.parseEndTime(), this.interval = null, this.init();
6717
6728
  }
@@ -6763,22 +6774,22 @@ class ra {
6763
6774
  this.stop(), this.hoursEl = null, this.minutesEl = null, this.secondsEl = null, this.element = null;
6764
6775
  }
6765
6776
  }
6766
- function ge(i) {
6777
+ function _e(i) {
6767
6778
  if (i.__kupolaInitialized) return;
6768
- const t = new ra(i);
6779
+ const t = new aa(i);
6769
6780
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
6770
6781
  }
6771
- function aa(i) {
6782
+ function oa(i) {
6772
6783
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6773
6784
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6774
6785
  }
6775
6786
  function Ko() {
6776
6787
  document.querySelectorAll(".ds-countdown").forEach((t) => {
6777
- ge(t);
6788
+ _e(t);
6778
6789
  });
6779
6790
  }
6780
- E.register("countdown", ge, aa);
6781
- class oa {
6791
+ E.register("countdown", _e, oa);
6792
+ class la {
6782
6793
  constructor(t) {
6783
6794
  if (this.element = t, this.minusBtn = t.querySelector(".ds-number-input__btn--decrease"), this.plusBtn = t.querySelector(".ds-number-input__btn--increase"), this.inputEl = t.querySelector(".ds-number-input__input"), this._listeners = [], !this.minusBtn || !this.plusBtn || !this.inputEl)
6784
6795
  throw new Error("NumberInput: Missing required elements");
@@ -6829,26 +6840,26 @@ class oa {
6829
6840
  }), this._listeners = null, this.minusBtn = null, this.plusBtn = null, this.inputEl = null, this.element = null;
6830
6841
  }
6831
6842
  }
6832
- function _e(i) {
6843
+ function ye(i) {
6833
6844
  if (!i.__kupolaInitialized)
6834
6845
  try {
6835
- const t = new oa(i);
6846
+ const t = new la(i);
6836
6847
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
6837
6848
  } catch (t) {
6838
6849
  console.error("[NumberInput] Error initializing:", t);
6839
6850
  }
6840
6851
  }
6841
- function la(i) {
6852
+ function ca(i) {
6842
6853
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6843
6854
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6844
6855
  }
6845
6856
  function Wo() {
6846
6857
  document.querySelectorAll(".ds-number-input").forEach((i) => {
6847
- _e(i);
6858
+ ye(i);
6848
6859
  });
6849
6860
  }
6850
- E.register("number-input", _e, la);
6851
- class ca {
6861
+ E.register("number-input", ye, ca);
6862
+ class ha {
6852
6863
  constructor(t) {
6853
6864
  this.container = t, this.track = t.querySelector(".ds-slider-captcha__track"), this.btn = t.querySelector(".ds-slider-captcha__btn"), this.text = t.querySelector(".ds-slider-captcha__text"), this.progress = t.querySelector(".ds-slider-captcha__progress"), this.statusEl = t.querySelector(".ds-slider-captcha__status"), this.refreshBtn = t.querySelector(".ds-slider-captcha__refresh"), this.footerRefreshBtn = t.querySelector(".ds-slider-captcha__footer-refresh"), this.config = {
6854
6865
  tolerance: 6,
@@ -6991,22 +7002,22 @@ class ca {
6991
7002
  this.container._initialized && (this.btn && this._mouseDownHandler && this.btn.removeEventListener("mousedown", this._mouseDownHandler), this.btn && this._touchStartHandler && this.btn.removeEventListener("touchstart", this._touchStartHandler), this.refreshBtn && this.refreshBtn.removeEventListener("click", () => this.loadCaptcha()), this.footerRefreshBtn && this.footerRefreshBtn.removeEventListener("click", () => this.loadCaptcha()), this._mouseMoveListener && this._mouseMoveListener.unsubscribe ? this._mouseMoveListener.unsubscribe() : this._mouseMoveHandler && document.removeEventListener("mousemove", this._mouseMoveHandler), this._mouseUpListener && this._mouseUpListener.unsubscribe ? this._mouseUpListener.unsubscribe() : this._mouseUpHandler && document.removeEventListener("mouseup", this._mouseUpHandler), this._touchMoveListener && this._touchMoveListener.unsubscribe ? this._touchMoveListener.unsubscribe() : this._touchMoveHandler && document.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndListener && this._touchEndListener.unsubscribe ? this._touchEndListener.unsubscribe() : this._touchEndHandler && document.removeEventListener("touchend", this._touchEndHandler), this.container._initialized = !1);
6992
7003
  }
6993
7004
  }
6994
- function ha() {
7005
+ function da() {
6995
7006
  document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
6996
- const t = new ca(i);
7007
+ const t = new ha(i);
6997
7008
  t.init(), i._kupolaSlideCaptcha = t;
6998
7009
  });
6999
7010
  }
7000
- function da(i) {
7011
+ function ua(i) {
7001
7012
  i._kupolaSlideCaptcha && (i._kupolaSlideCaptcha.destroy(), i._kupolaSlideCaptcha = null);
7002
7013
  }
7003
- function ua() {
7014
+ function pa() {
7004
7015
  document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
7005
- da(i);
7016
+ ua(i);
7006
7017
  });
7007
7018
  }
7008
- E.register("slide-captcha", ha, ua);
7009
- class pa {
7019
+ E.register("slide-captcha", da, pa);
7020
+ class fa {
7010
7021
  constructor(t) {
7011
7022
  this.form = t, this.fields = [], this.validators = {}, this.errorMessages = {}, this._submitHandler = null, this._fieldHandlers = /* @__PURE__ */ new Map(), this._init();
7012
7023
  }
@@ -7146,11 +7157,11 @@ class pa {
7146
7157
  }), this._submitHandler = null, this._fieldHandlers.clear(), this._fieldHandlers = null, this.fields = null, this.validators = null, this.errorMessages = null, this.form = null;
7147
7158
  }
7148
7159
  }
7149
- function fa(i) {
7160
+ function ma(i) {
7150
7161
  const t = document.querySelectorAll(i || ".ds-form");
7151
7162
  return t.forEach((e) => {
7152
7163
  if (e._kupolaForm) return;
7153
- const s = new pa(e);
7164
+ const s = new fa(e);
7154
7165
  e._kupolaForm = s;
7155
7166
  }), t.length;
7156
7167
  }
@@ -7161,8 +7172,8 @@ function Yo(i) {
7161
7172
  const t = i._kupolaForm;
7162
7173
  return t ? t.validate() : !1;
7163
7174
  }
7164
- E.register("form-validation", fa);
7165
- class ma {
7175
+ E.register("form-validation", ma);
7176
+ class ga {
7166
7177
  constructor() {
7167
7178
  this._queue = /* @__PURE__ */ new Set(), this._scheduled = !1, this._flushDepth = 0, this._maxDepth = 10;
7168
7179
  }
@@ -7189,8 +7200,8 @@ class ma {
7189
7200
  this._flushDepth--;
7190
7201
  }
7191
7202
  }
7192
- const ga = new ma();
7193
- class _a {
7203
+ const _a = new ga();
7204
+ class ya {
7194
7205
  constructor(t, e) {
7195
7206
  this.data = t, this.createdAt = Date.now(), this.ttl = e;
7196
7207
  }
@@ -7201,7 +7212,7 @@ class _a {
7201
7212
  return !this.isFresh;
7202
7213
  }
7203
7214
  }
7204
- class ye {
7215
+ class ve {
7205
7216
  constructor() {
7206
7217
  this._store = /* @__PURE__ */ new Map();
7207
7218
  }
@@ -7210,7 +7221,7 @@ class ye {
7210
7221
  return e || null;
7211
7222
  }
7212
7223
  set(t, e, s = 6e4) {
7213
- this._store.set(t, new _a(e, s));
7224
+ this._store.set(t, new ya(e, s));
7214
7225
  }
7215
7226
  has(t) {
7216
7227
  return this._store.has(t);
@@ -7255,7 +7266,7 @@ class U {
7255
7266
  };
7256
7267
  }
7257
7268
  notify() {
7258
- ga.schedule(() => {
7269
+ _a.schedule(() => {
7259
7270
  this.subscribers.forEach((t) => {
7260
7271
  try {
7261
7272
  t();
@@ -7303,7 +7314,7 @@ class U {
7303
7314
  this.subscribers = [], this.pending = null;
7304
7315
  }
7305
7316
  }
7306
- class ya extends U {
7317
+ class va extends U {
7307
7318
  constructor(t, e) {
7308
7319
  super(t, e), this.method = t.method || "GET", this.headers = t.headers || {}, this.queryParams = t.query || {};
7309
7320
  }
@@ -7333,7 +7344,7 @@ class ya extends U {
7333
7344
  return typeof l.json == "function" ? await l.json() : l.data !== void 0 ? l.data : l;
7334
7345
  }
7335
7346
  }
7336
- class ve extends U {
7347
+ class be extends U {
7337
7348
  constructor(t, e) {
7338
7349
  super(t, e), this.storageKey = t.source.replace("localStorage:", ""), this.defaultValue = t.default, this.sync = t.sync !== !1, this.sync && typeof window < "u" && (this._storageHandler = (s) => {
7339
7350
  s.key === this.storageKey && (this.cache.delete(this.cacheKey), this.notify());
@@ -7360,7 +7371,7 @@ class ve extends U {
7360
7371
  super.destroy(), this._storageHandler && window.removeEventListener("storage", this._storageHandler);
7361
7372
  }
7362
7373
  }
7363
- class va extends U {
7374
+ class ba extends U {
7364
7375
  constructor(t, e) {
7365
7376
  super(t, e), this.paramName = t.source.replace("route:", "");
7366
7377
  }
@@ -7370,17 +7381,17 @@ class va extends U {
7370
7381
  return e ? decodeURIComponent(e[1]) : new URLSearchParams(location.search).get(this.paramName) || "";
7371
7382
  }
7372
7383
  }
7373
- class ba extends U {
7384
+ class xa extends U {
7374
7385
  async fetch(t) {
7375
7386
  return await this.config.source(t);
7376
7387
  }
7377
7388
  }
7378
- class xa extends U {
7389
+ class Ea extends U {
7379
7390
  async fetch() {
7380
7391
  return this.config.source;
7381
7392
  }
7382
7393
  }
7383
- class be extends U {
7394
+ class xe extends U {
7384
7395
  constructor(t, e) {
7385
7396
  super(t, e), this.ws = null, this.reconnect = t.reconnect !== !1, this.reconnectDelay = t.reconnectDelay || 3e3, this._reconnectAttempt = 0, this._maxReconnectDelay = t.maxReconnectDelay || 3e4, this.messageHandler = null, this._connected = !1, this._destroyed = !1;
7386
7397
  }
@@ -7420,12 +7431,12 @@ class be extends U {
7420
7431
  this._destroyed = !0, super.destroy(), this.ws && (this.ws.onmessage = null, this.ws.onclose = null, this.ws.close(), this.ws = null);
7421
7432
  }
7422
7433
  }
7423
- function xe(i, t) {
7434
+ function Ee(i, t) {
7424
7435
  const e = i.source;
7425
- return typeof e == "function" ? new ba(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new be(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ya(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new ve(i, t) : typeof e == "string" && e.startsWith("route:") ? new va(i, t) : new xa(i, t);
7436
+ return typeof e == "function" ? new xa(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new xe(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new va(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new be(i, t) : typeof e == "string" && e.startsWith("route:") ? new ba(i, t) : new Ea(i, t);
7426
7437
  }
7427
7438
  function Zo(i, t) {
7428
- const e = {}, s = new ye(), n = [];
7439
+ const e = {}, s = new ve(), n = [];
7429
7440
  for (const r in t) {
7430
7441
  let p = function() {
7431
7442
  return wt(i);
@@ -7434,7 +7445,7 @@ function Zo(i, t) {
7434
7445
  const o = {
7435
7446
  ...a,
7436
7447
  cacheKey: a.cacheKey || `${r}-${JSON.stringify(wt(i))}`
7437
- }, l = xe(o, s), c = I(null), h = I(!0), d = I(null), u = I(null);
7448
+ }, l = Ee(o, s), c = T(null), h = T(!0), d = T(null), u = T(null);
7438
7449
  let f = 0;
7439
7450
  async function m() {
7440
7451
  const b = ++f;
@@ -7475,11 +7486,11 @@ function Zo(i, t) {
7475
7486
  },
7476
7487
  // For StorageSource
7477
7488
  setValue(b) {
7478
- l instanceof ve && (l.setValue(b), c.value = b);
7489
+ l instanceof be && (l.setValue(b), c.value = b);
7479
7490
  },
7480
7491
  // For WebSocketSource
7481
7492
  send(b) {
7482
- l instanceof be && l.send(b);
7493
+ l instanceof xe && l.send(b);
7483
7494
  },
7484
7495
  _source: l
7485
7496
  };
@@ -7492,7 +7503,7 @@ function Zo(i, t) {
7492
7503
  }, window.__kupolaDepInstances || (window.__kupolaDepInstances = []), window.__kupolaDepInstances.push(e), e;
7493
7504
  }
7494
7505
  function Go(i) {
7495
- const t = new ye(), e = xe(i, t), s = I(null), n = I(!0), r = I(null);
7506
+ const t = new ve(), e = Ee(i, t), s = T(null), n = T(!0), r = T(null);
7496
7507
  let a = 0;
7497
7508
  async function o() {
7498
7509
  const l = ++a;
@@ -7530,9 +7541,9 @@ function wt(i) {
7530
7541
  }
7531
7542
  function Qo() {
7532
7543
  }
7533
- class Ea {
7544
+ class wa {
7534
7545
  constructor(t, e = {}) {
7535
- this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey = I(null), this.sortOrder = I(null), this.currentPage = I(1), this.filterText = I(""), this.selectedKeys = I([]), this._init();
7546
+ this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey = T(null), this.sortOrder = T(null), this.currentPage = T(1), this.filterText = T(""), this.selectedKeys = T([]), this._init();
7536
7547
  }
7537
7548
  _init() {
7538
7549
  this.element.classList.add("kupola-table-wrapper"), this.virtualScroll && this.element.classList.add("kupola-table-virtual-wrapper"), this.render();
@@ -8070,8 +8081,8 @@ class Ea {
8070
8081
  this._filterDebounceTimer && (clearTimeout(this._filterDebounceTimer), this._filterDebounceTimer = null), this._resizeCleanups.forEach((t) => t()), this._resizeCleanups = [], this._reactiveCleanups.forEach((t) => t.unsubscribe()), this._reactiveCleanups = [], this.element.innerHTML = "", this.element.classList.remove("kupola-table-wrapper", "kupola-table-virtual-wrapper"), this._data = [], this._virtualData = null, this._dragState = null, this._editingCell = null, this._editBuffer = {};
8071
8082
  }
8072
8083
  }
8073
- function Ee(i, t) {
8074
- return new Ea(i, t);
8084
+ function we(i, t) {
8085
+ return new wa(i, t);
8075
8086
  }
8076
8087
  function tl() {
8077
8088
  document.querySelectorAll("[data-kupola-table]").forEach((i) => {
@@ -8082,13 +8093,13 @@ function tl() {
8082
8093
  e = JSON.parse(t);
8083
8094
  } catch {
8084
8095
  }
8085
- Ee(i, e);
8096
+ we(i, e);
8086
8097
  });
8087
8098
  }
8088
- E.register("table", Ee);
8089
- class wa {
8099
+ E.register("table", we);
8100
+ class ka {
8090
8101
  constructor(t, e = {}) {
8091
- this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = I(this._current), this.total = I(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
8102
+ this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = T(this._current), this.total = T(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
8092
8103
  }
8093
8104
  _init() {
8094
8105
  this.element.classList.add("kupola-pagination"), this.render();
@@ -8187,7 +8198,7 @@ class wa {
8187
8198
  }
8188
8199
  }
8189
8200
  let kt = !1;
8190
- function ka() {
8201
+ function Ca() {
8191
8202
  if (kt || typeof document > "u") return;
8192
8203
  const i = document.createElement("style");
8193
8204
  i.textContent = `
@@ -8207,10 +8218,10 @@ function ka() {
8207
8218
  `, document.head.appendChild(i), kt = !0;
8208
8219
  }
8209
8220
  function el(i, t) {
8210
- return ka(), new wa(i, t);
8221
+ return Ca(), new ka(i, t);
8211
8222
  }
8212
8223
  let Ct = !1;
8213
- class Ca extends HTMLElement {
8224
+ class Sa extends HTMLElement {
8214
8225
  static get observedAttributes() {
8215
8226
  return ["open"];
8216
8227
  }
@@ -8232,7 +8243,7 @@ class Ca extends HTMLElement {
8232
8243
  }
8233
8244
  }
8234
8245
  }
8235
- class Sa extends HTMLElement {
8246
+ class La extends HTMLElement {
8236
8247
  static get observedAttributes() {
8237
8248
  return ["title", "position"];
8238
8249
  }
@@ -8247,7 +8258,7 @@ class Sa extends HTMLElement {
8247
8258
  }
8248
8259
  }
8249
8260
  }
8250
- class La extends HTMLElement {
8261
+ class Da extends HTMLElement {
8251
8262
  connectedCallback() {
8252
8263
  this._render();
8253
8264
  }
@@ -8265,13 +8276,13 @@ class La extends HTMLElement {
8265
8276
  }), this.innerHTML = "", this.appendChild(t);
8266
8277
  }
8267
8278
  }
8268
- class Da extends HTMLElement {
8279
+ class Ha extends HTMLElement {
8269
8280
  static get observedAttributes() {
8270
8281
  return ["title"];
8271
8282
  }
8272
8283
  // Content is read by parent <k-collapse> during its connectedCallback
8273
8284
  }
8274
- class Ha extends HTMLElement {
8285
+ class Ma extends HTMLElement {
8275
8286
  static get observedAttributes() {
8276
8287
  return ["position", "open"];
8277
8288
  }
@@ -8289,7 +8300,7 @@ class Ha extends HTMLElement {
8289
8300
  }
8290
8301
  }
8291
8302
  }
8292
- class Ma extends HTMLElement {
8303
+ class Ia extends HTMLElement {
8293
8304
  static get observedAttributes() {
8294
8305
  return ["title", "open"];
8295
8306
  }
@@ -8336,111 +8347,111 @@ function sl() {
8336
8347
  if (Ct || typeof customElements > "u") return;
8337
8348
  Ct = !0;
8338
8349
  const i = [
8339
- ["k-dropdown", Ca],
8340
- ["k-tooltip", Sa],
8341
- ["k-collapse", La],
8342
- ["k-collapse-item", Da],
8343
- ["k-drawer", Ha],
8344
- ["k-modal", Ma]
8350
+ ["k-dropdown", Sa],
8351
+ ["k-tooltip", La],
8352
+ ["k-collapse", Da],
8353
+ ["k-collapse-item", Ha],
8354
+ ["k-drawer", Ma],
8355
+ ["k-modal", Ia]
8345
8356
  ];
8346
8357
  for (const [t, e] of i)
8347
8358
  customElements.get(t) || customElements.define(t, e);
8348
8359
  }
8349
8360
  export {
8350
8361
  X as BRAND_OPTIONS,
8351
- _a as CacheEntry,
8352
- ye as CacheManager,
8353
- Rr as Calendar,
8362
+ ya as CacheEntry,
8363
+ ve as CacheManager,
8364
+ Vr as Calendar,
8354
8365
  Tr as Carousel,
8355
- qr as Collapse,
8356
- Fr as ColorPicker,
8357
- _r as ComponentInitializerRegistry,
8358
- ra as Countdown,
8359
- Cr as Datepicker,
8366
+ Or as Collapse,
8367
+ Nr as ColorPicker,
8368
+ yr as ComponentInitializerRegistry,
8369
+ aa as Countdown,
8370
+ Sr as Datepicker,
8360
8371
  F as DependsError,
8361
8372
  U as DependsSource,
8362
8373
  Lo as Dialog,
8363
- Ar as Drawer,
8364
- Er as Dropdown,
8365
- Kr as DynamicTags,
8366
- ya as FetchedSource,
8367
- $r as FileUpload,
8368
- ba as FunctionSource,
8369
- xr as GlobalEvents,
8370
- Jr as Heatmap,
8374
+ zr as Drawer,
8375
+ wr as Dropdown,
8376
+ Wr as DynamicTags,
8377
+ va as FetchedSource,
8378
+ Br as FileUpload,
8379
+ xa as FunctionSource,
8380
+ Er as GlobalEvents,
8381
+ Zr as Heatmap,
8371
8382
  Vo as Icons,
8372
- ce as ImagePreview,
8383
+ he as ImagePreview,
8373
8384
  G as KupolaComponent,
8374
- vr as KupolaComponentRegistry,
8375
- rr as KupolaDataBind,
8376
- or as KupolaEventBus,
8377
- pa as KupolaForm,
8378
- Xt as KupolaI18n,
8385
+ br as KupolaComponentRegistry,
8386
+ ar as KupolaDataBind,
8387
+ lr as KupolaEventBus,
8388
+ fa as KupolaForm,
8389
+ jt as KupolaI18n,
8379
8390
  ht as KupolaLifecycle,
8380
- wa as KupolaPagination,
8391
+ ka as KupolaPagination,
8381
8392
  gt as KupolaStore,
8382
- ar as KupolaStoreManager,
8383
- Ea as KupolaTable,
8384
- Aa as KupolaUtils,
8385
- ta as KupolaValidator,
8393
+ or as KupolaStoreManager,
8394
+ wa as KupolaTable,
8395
+ za as KupolaUtils,
8396
+ ea as KupolaValidator,
8386
8397
  Mo as Message,
8387
8398
  $ as Modal,
8388
8399
  Do as Notification,
8389
- oa as NumberInput,
8390
- fe as PATHS,
8391
- va as RouteSource,
8392
- ma as Scheduler,
8393
- wr as Select,
8394
- ca as SlideCaptcha,
8395
- Hr as Slider,
8396
- Xr as StatCard,
8397
- xa as StaticSource,
8398
- ve as StorageSource,
8399
- Ur as Tag,
8400
- Lr as Timepicker,
8401
- Gr as Tooltip,
8402
- ea as VirtualList,
8403
- be as WebSocketSource,
8400
+ la as NumberInput,
8401
+ me as PATHS,
8402
+ ba as RouteSource,
8403
+ ga as Scheduler,
8404
+ kr as Select,
8405
+ ha as SlideCaptcha,
8406
+ Mr as Slider,
8407
+ jr as StatCard,
8408
+ Ea as StaticSource,
8409
+ be as StorageSource,
8410
+ Yr as Tag,
8411
+ Dr as Timepicker,
8412
+ Qr as Tooltip,
8413
+ sa as VirtualList,
8414
+ xe as WebSocketSource,
8404
8415
  Co as alertModal,
8405
8416
  yt as applyMixin,
8406
- Os as arrayUtils,
8417
+ Fs as arrayUtils,
8407
8418
  ja as bootstrapComponents,
8408
8419
  _o as cleanupAllDropdowns,
8409
- ua as cleanupAllSlideCaptchas,
8410
- Vr as cleanupCalendar,
8411
- Ir as cleanupCarousel,
8412
- Or as cleanupCollapse,
8413
- Nr as cleanupColorPicker,
8414
- aa as cleanupCountdown,
8415
- Sr as cleanupDatepicker,
8416
- zr as cleanupDrawer,
8417
- Jt as cleanupDropdown,
8418
- Wr as cleanupDynamicTags,
8419
- Br as cleanupFileUpload,
8420
- Zr as cleanupHeatmap,
8421
- Pr as cleanupModal,
8422
- la as cleanupNumberInput,
8423
- kr as cleanupSelect,
8424
- da as cleanupSlideCaptcha,
8425
- Mr as cleanupSlider,
8426
- jr as cleanupStatCard,
8427
- Yr as cleanupTag,
8428
- Dr as cleanupTimepicker,
8429
- Qr as cleanupTooltip,
8430
- ia as cleanupVirtualList,
8420
+ pa as cleanupAllSlideCaptchas,
8421
+ Kr as cleanupCalendar,
8422
+ Ar as cleanupCarousel,
8423
+ Fr as cleanupCollapse,
8424
+ Rr as cleanupColorPicker,
8425
+ oa as cleanupCountdown,
8426
+ Lr as cleanupDatepicker,
8427
+ Pr as cleanupDrawer,
8428
+ Zt as cleanupDropdown,
8429
+ Ur as cleanupDynamicTags,
8430
+ qr as cleanupFileUpload,
8431
+ Gr as cleanupHeatmap,
8432
+ $r as cleanupModal,
8433
+ ca as cleanupNumberInput,
8434
+ Cr as cleanupSelect,
8435
+ ua as cleanupSlideCaptcha,
8436
+ Ir as cleanupSlider,
8437
+ Jr as cleanupStatCard,
8438
+ Xr as cleanupTag,
8439
+ Hr as cleanupTimepicker,
8440
+ ta as cleanupTooltip,
8441
+ na as cleanupVirtualList,
8431
8442
  Qo as clearCache,
8432
8443
  Xo as configureHttpClient,
8433
8444
  ko as confirmModal,
8434
8445
  Na as createBrandPicker,
8435
8446
  Qa as createI18n,
8436
- Ia as createLifecycle,
8437
- se as createModal,
8438
- xe as createSource,
8439
- Pa as createStore,
8447
+ Aa as createLifecycle,
8448
+ ie as createModal,
8449
+ Ee as createSource,
8450
+ $a as createStore,
8440
8451
  Fa as createThemeToggle,
8441
- Jn as cryptoUtils,
8442
- cn as dateUtils,
8443
- hn as debounce,
8452
+ Zn as cryptoUtils,
8453
+ hn as dateUtils,
8454
+ dn as debounce,
8444
8455
  Ga as defineComponent,
8445
8456
  Ja as defineMixin,
8446
8457
  ho as emit,
@@ -8453,74 +8464,74 @@ export {
8453
8464
  qa as getBasePath,
8454
8465
  J as getBrand,
8455
8466
  dt as getConfig,
8456
- hr as getDefaultBrand,
8457
- cr as getDefaultTheme,
8467
+ dr as getDefaultBrand,
8468
+ hr as getDefaultTheme,
8458
8469
  Uo as getFormInstance,
8459
8470
  jo as getHttpClient,
8460
8471
  Oa as getHttpConfig,
8461
- lr as getIconsPath,
8472
+ Wt as getIconsPath,
8462
8473
  mo as getListenerCount,
8463
8474
  io as getLocale,
8464
- ur as getMessageConfig,
8465
- pr as getNotificationConfig,
8466
- dr as getPerformanceConfig,
8475
+ pr as getMessageConfig,
8476
+ fr as getNotificationConfig,
8477
+ ur as getPerformanceConfig,
8467
8478
  st as getSecurityConfig,
8468
- $a as getStore,
8479
+ Ba as getStore,
8469
8480
  R as getTheme,
8470
8481
  j as getUiConfig,
8471
- fr as getValidationConfig,
8482
+ mr as getValidationConfig,
8472
8483
  H as globalEvents,
8473
8484
  tl as initAllTables,
8474
- oe as initCalendar,
8485
+ le as initCalendar,
8475
8486
  Po as initCalendars,
8476
- ee as initCarousel,
8487
+ se as initCarousel,
8477
8488
  Eo as initCarousels,
8478
- re as initCollapse,
8489
+ ae as initCollapse,
8479
8490
  Ao as initCollapses,
8480
- ae as initColorPicker,
8491
+ oe as initColorPicker,
8481
8492
  zo as initColorPickers,
8482
- ge as initCountdown,
8493
+ _e as initCountdown,
8483
8494
  Ko as initCountdowns,
8484
- Gt as initDatepicker,
8495
+ Qt as initDatepicker,
8485
8496
  vo as initDatepickers,
8486
8497
  lt as initDrawer,
8487
8498
  wo as initDrawers,
8488
- jt as initDropdown,
8499
+ Jt as initDropdown,
8489
8500
  go as initDropdowns,
8490
- le as initDynamicTags,
8501
+ ce as initDynamicTags,
8491
8502
  $o as initDynamicTagsAll,
8492
- ne as initFileUpload,
8493
- Io as initFileUploads,
8494
- fa as initFormValidation,
8495
- ue as initHeatmap,
8503
+ re as initFileUpload,
8504
+ To as initFileUploads,
8505
+ ma as initFormValidation,
8506
+ pe as initHeatmap,
8496
8507
  No as initHeatmaps,
8497
8508
  Bo as initImagePreview,
8498
- To as initMessages,
8499
- ie as initModal,
8509
+ Io as initMessages,
8510
+ ne as initModal,
8500
8511
  So as initModals,
8501
8512
  Ho as initNotifications,
8502
- _e as initNumberInput,
8513
+ ye as initNumberInput,
8503
8514
  Wo as initNumberInputs,
8504
8515
  el as initPagination,
8505
- Zt as initSelect,
8516
+ Gt as initSelect,
8506
8517
  yo as initSelects,
8507
- ha as initSlideCaptchas,
8508
- te as initSlider,
8518
+ da as initSlideCaptchas,
8519
+ ee as initSlider,
8509
8520
  xo as initSliders,
8510
- de as initStatCard,
8521
+ ue as initStatCard,
8511
8522
  Fo as initStatCards,
8512
- Ee as initTable,
8513
- he as initTag,
8523
+ we as initTable,
8524
+ de as initTag,
8514
8525
  Oo as initTags,
8515
- gr as initTheme,
8516
- Qt as initTimepicker,
8526
+ _r as initTheme,
8527
+ te as initTimepicker,
8517
8528
  bo as initTimepickers,
8518
- pe as initTooltip,
8529
+ fe as initTooltip,
8519
8530
  Ro as initTooltips,
8520
- sa as initVirtualList,
8531
+ ia as initVirtualList,
8521
8532
  vt as kupolaBootstrap,
8522
8533
  O as kupolaData,
8523
- za as kupolaEvents,
8534
+ Pa as kupolaEvents,
8524
8535
  N as kupolaI18n,
8525
8536
  E as kupolaInitializer,
8526
8537
  Ta as kupolaLifecycle,
@@ -8528,15 +8539,15 @@ export {
8528
8539
  Kt as kupolaStoreManager,
8529
8540
  Wa as maskData,
8530
8541
  eo as n,
8531
- Ii as numberUtils,
8532
- ri as objectUtils,
8542
+ Ai as numberUtils,
8543
+ ai as objectUtils,
8533
8544
  co as off,
8534
8545
  fo as offAll,
8535
8546
  po as offByScope,
8536
8547
  oo as on,
8537
8548
  lo as once,
8538
- ir as preloadUtils,
8539
- I as ref,
8549
+ nr as preloadUtils,
8550
+ T as ref,
8540
8551
  Ya as registerComponent,
8541
8552
  Xa as registerLazyComponent,
8542
8553
  sl as registerWebComponents,
@@ -8544,15 +8555,15 @@ export {
8544
8555
  Jo as resetHttpClient,
8545
8556
  Ra as sanitizeHtml,
8546
8557
  ot as setBrand,
8547
- Ba as setConfig,
8558
+ cr as setConfig,
8548
8559
  so as setLocale,
8549
8560
  at as setTheme,
8550
8561
  qo as showImagePreview,
8551
- Je as stringUtils,
8562
+ Ze as stringUtils,
8552
8563
  Ka as stripHtml,
8553
- me as svg,
8564
+ ge as svg,
8554
8565
  to as t,
8555
- dn as throttle,
8566
+ un as throttle,
8556
8567
  Zo as useDeps,
8557
8568
  Za as useMixin,
8558
8569
  Go as useQuery,