@kupola/kupola 1.4.7 → 1.4.9

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.
@@ -201,123 +201,123 @@ class at {
201
201
  console.error(`[KupolaLifecycle] Unhandled error in ${t.phase}:`, t.error);
202
202
  }
203
203
  }
204
- const pa = new at("app");
205
- function fa(i = "app") {
204
+ const fa = new at("app");
205
+ function ma(i = "app") {
206
206
  return new at(i);
207
207
  }
208
- const _e = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
208
+ const ye = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
209
209
  function J(i) {
210
- return _e.has(i);
210
+ return ye.has(i);
211
211
  }
212
- function ye(i) {
212
+ function ve(i) {
213
213
  return i ? i.trim() : "";
214
214
  }
215
- function ve(i) {
215
+ function be(i) {
216
216
  return i ? i.replace(/^\s+/, "") : "";
217
217
  }
218
- function be(i) {
218
+ function xe(i) {
219
219
  return i ? i.replace(/\s+$/, "") : "";
220
220
  }
221
- function xe(i) {
221
+ function Ee(i) {
222
222
  return i ? i.toUpperCase() : "";
223
223
  }
224
- function Ee(i) {
224
+ function ke(i) {
225
225
  return i ? i.toLowerCase() : "";
226
226
  }
227
- function ke(i) {
227
+ function we(i) {
228
228
  return i ? i.charAt(0).toUpperCase() + i.slice(1) : "";
229
229
  }
230
- function we(i) {
230
+ function Ce(i) {
231
231
  return i ? i.replace(/-(\w)/g, (t, e) => e ? e.toUpperCase() : "") : "";
232
232
  }
233
- function Ce(i) {
233
+ function Se(i) {
234
234
  return i ? i.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "") : "";
235
235
  }
236
- function Se(i, t, e = " ") {
236
+ function Le(i, t, e = " ") {
237
237
  return (String(i) || "").padStart(t, e);
238
238
  }
239
- function Le(i, t, e = " ") {
239
+ function De(i, t, e = " ") {
240
240
  return (String(i) || "").padEnd(t, e);
241
241
  }
242
- function De(i, t, e = "...") {
242
+ function He(i, t, e = "...") {
243
243
  return !i || i.length <= t ? i || "" : i.slice(0, t) + e;
244
244
  }
245
- function He(i, t, e) {
245
+ function Me(i, t, e) {
246
246
  return i ? i.split(t).join(e) : "";
247
247
  }
248
- function Me(i, t) {
248
+ function Ie(i, t) {
249
249
  return i ? i.replace(/\{\{(\w+)\}\}/g, (e, s) => t[s] !== void 0 ? t[s] : `{{${s}}}`) : "";
250
250
  }
251
- function Ie(i, t) {
251
+ function Te(i, t) {
252
252
  return (i || "").startsWith(t);
253
253
  }
254
- function Te(i, t) {
254
+ function Ae(i, t) {
255
255
  return (i || "").endsWith(t);
256
256
  }
257
- function Ae(i, t) {
257
+ function ze(i, t) {
258
258
  return (i || "").includes(t);
259
259
  }
260
- function ze(i, t) {
260
+ function Pe(i, t) {
261
261
  return (i || "").repeat(t);
262
262
  }
263
- function Pe(i) {
263
+ function $e(i) {
264
264
  return (i || "").split("").reverse().join("");
265
265
  }
266
- function $e(i, t) {
266
+ function qe(i, t) {
267
267
  return !i || !t ? 0 : i.split(t).length - 1;
268
268
  }
269
- function qe(i) {
269
+ function Be(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 Be(i) {
274
+ function Fe(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 Fe(i = 8) {
279
+ function Ne(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 Ne() {
286
+ function Oe() {
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 Oe = { trim: ye, trimLeft: ve, trimRight: be, toUpperCase: xe, toLowerCase: Ee, capitalize: ke, camelize: we, hyphenate: Ce, padStart: Se, padEnd: Le, truncate: De, replaceAll: He, format: Me, startsWith: Ie, endsWith: Te, includes: Ae, repeat: ze, reverse: Pe, countOccurrences: $e, escapeHtml: qe, unescapeHtml: Be, generateRandom: Fe, generateUUID: Ne };
293
- function Re(i) {
292
+ const Re = { trim: ve, trimLeft: be, trimRight: xe, toUpperCase: Ee, toLowerCase: ke, capitalize: we, camelize: Ce, hyphenate: Se, padStart: Le, padEnd: De, truncate: He, replaceAll: Me, format: Ie, startsWith: Te, endsWith: Ae, includes: ze, repeat: Pe, reverse: $e, countOccurrences: qe, escapeHtml: Be, unescapeHtml: Fe, generateRandom: Ne, generateUUID: Oe };
293
+ function Ve(i) {
294
294
  return Array.isArray(i);
295
295
  }
296
- function Ve(i) {
296
+ function Ke(i) {
297
297
  return !i || i.length === 0;
298
298
  }
299
- function Ke(i) {
299
+ function We(i) {
300
300
  return i ? i.length : 0;
301
301
  }
302
- function We(i, t) {
302
+ function Ye(i, t) {
303
303
  return i && i.length > 0 ? i[0] : t;
304
304
  }
305
- function Ye(i, t) {
305
+ function Ue(i, t) {
306
306
  return i && i.length > 0 ? i[i.length - 1] : t;
307
307
  }
308
- function Ue(i, t, e) {
308
+ function Xe(i, t, e) {
309
309
  return i && i[t] !== void 0 ? i[t] : e;
310
310
  }
311
- function Xe(i, t, e) {
311
+ function je(i, t, e) {
312
312
  return i ? i.slice(t, e) : [];
313
313
  }
314
- function je(...i) {
314
+ function Je(...i) {
315
315
  return i.reduce((t, e) => t.concat(e || []), []);
316
316
  }
317
- function Je(i, t = ",") {
317
+ function Ge(i, t = ",") {
318
318
  return i ? i.join(t) : "";
319
319
  }
320
- function Ge(i, t, e = 0) {
320
+ function Ze(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 Ge(i, t, e = 0) {
326
326
  }
327
327
  return i.indexOf(t, e);
328
328
  }
329
- function Ze(i, t, e) {
329
+ function Qe(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 Ze(i, t, e) {
336
336
  }
337
337
  return i.lastIndexOf(t, e);
338
338
  }
339
- function Qe(i, t) {
339
+ function ts(i, t) {
340
340
  return i ? i.includes(t) : !1;
341
341
  }
342
- function ts(i, ...t) {
342
+ function es(i, ...t) {
343
343
  return i && i.push(...t), i;
344
344
  }
345
- function es(i) {
345
+ function ss(i) {
346
346
  return i ? i.pop() : void 0;
347
347
  }
348
- function ss(i) {
348
+ function is(i) {
349
349
  return i ? i.shift() : void 0;
350
350
  }
351
- function is(i, ...t) {
351
+ function ns(i, ...t) {
352
352
  return i && i.unshift(...t), i;
353
353
  }
354
- function ns(i, t) {
354
+ function rs(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 rs(i, t) {
359
+ function as(i, t) {
360
360
  return !i || t < 0 || t >= i.length || i.splice(t, 1), i;
361
361
  }
362
- function as(i, t, e) {
362
+ function os(i, t, e) {
363
363
  return i && (i.splice(t, 0, e), i);
364
364
  }
365
- function os(i) {
365
+ function ls(i) {
366
366
  return i ? i.slice().reverse() : [];
367
367
  }
368
- function ls(i, t) {
368
+ function cs(i, t) {
369
369
  return i ? i.slice().sort(t) : [];
370
370
  }
371
- function cs(i, t, e = "asc") {
371
+ function hs(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 hs(i, t) {
377
+ function ds(i, t) {
378
378
  return i ? i.filter(t) : [];
379
379
  }
380
- function ds(i, t) {
380
+ function us(i, t) {
381
381
  return i ? i.map(t) : [];
382
382
  }
383
- function us(i, t, e) {
383
+ function ps(i, t, e) {
384
384
  return i ? i.reduce(t, e) : e;
385
385
  }
386
- function ps(i, t) {
386
+ function fs(i, t) {
387
387
  i && i.forEach(t);
388
388
  }
389
- function fs(i, t) {
389
+ function ms(i, t) {
390
390
  return i ? i.every(t) : !0;
391
391
  }
392
- function ms(i, t) {
392
+ function gs(i, t) {
393
393
  return i ? i.some(t) : !1;
394
394
  }
395
- function gs(i, t) {
395
+ function _s(i, t) {
396
396
  return i ? i.find(t) : void 0;
397
397
  }
398
- function _s(i, t) {
398
+ function ys(i, t) {
399
399
  return i ? i.findIndex(t) : -1;
400
400
  }
401
- function ys(i, t = 1) {
401
+ function vs(i, t = 1) {
402
402
  return i ? i.flat(t) : [];
403
403
  }
404
- function yt(i) {
405
- return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(yt(e)) : t.concat(e), []) : [];
404
+ function vt(i) {
405
+ return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(vt(e)) : t.concat(e), []) : [];
406
406
  }
407
- function vs(i) {
407
+ function bs(i) {
408
408
  return i ? [...new Set(i)] : [];
409
409
  }
410
- function bs(i, t) {
410
+ function xs(i, t) {
411
411
  if (!i) return [];
412
412
  const e = /* @__PURE__ */ new Set();
413
413
  return i.filter((s) => {
@@ -415,14 +415,14 @@ function bs(i, t) {
415
415
  return e.has(n) ? !1 : (e.add(n), !0);
416
416
  });
417
417
  }
418
- function xs(i, t) {
418
+ function Es(i, t) {
419
419
  if (!i || t <= 0) return [];
420
420
  const e = [];
421
421
  for (let s = 0; s < i.length; s += t)
422
422
  e.push(i.slice(s, s + t));
423
423
  return e;
424
424
  }
425
- function Es(i) {
425
+ function ks(i) {
426
426
  if (!i) return [];
427
427
  const t = i.slice();
428
428
  for (let e = t.length - 1; e > 0; e--) {
@@ -431,57 +431,57 @@ function Es(i) {
431
431
  }
432
432
  return t;
433
433
  }
434
- function vt(i) {
434
+ function bt(i) {
435
435
  return i ? i.reduce((t, e) => t + (Number(e) || 0), 0) : 0;
436
436
  }
437
- function ks(i) {
438
- return !i || i.length === 0 ? 0 : vt(i) / i.length;
439
- }
440
437
  function ws(i) {
441
- return i && i.length > 0 ? Math.max(...i) : -1 / 0;
438
+ return !i || i.length === 0 ? 0 : bt(i) / i.length;
442
439
  }
443
440
  function Cs(i) {
441
+ return i && i.length > 0 ? Math.max(...i) : -1 / 0;
442
+ }
443
+ function Ss(i) {
444
444
  return i && i.length > 0 ? Math.min(...i) : 1 / 0;
445
445
  }
446
- function Ss(...i) {
446
+ function Ls(...i) {
447
447
  return i.length === 0 ? [] : i.reduce((t, e) => t.filter((s) => e && e.includes(s)));
448
448
  }
449
- function Ls(...i) {
449
+ function Ds(...i) {
450
450
  return [...new Set(i.flat().filter(Boolean))];
451
451
  }
452
- function Ds(i, t) {
452
+ function Hs(i, t) {
453
453
  return i ? i.filter((e) => !t || !t.includes(e)) : [];
454
454
  }
455
- function Hs(...i) {
455
+ function Ms(...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 Ms = { isArray: Re, isEmpty: Ve, size: Ke, first: We, last: Ye, get: Ue, slice: Xe, concat: je, join: Je, indexOf: Ge, lastIndexOf: Ze, includes: Qe, push: ts, pop: es, shift: ss, unshift: is, remove: ns, removeAt: rs, insert: as, reverse: os, sort: ls, sortBy: cs, filter: hs, map: ds, reduce: us, forEach: ps, every: fs, some: ms, find: gs, findIndex: _s, flat: ys, flattenDeep: yt, unique: vs, uniqueBy: bs, chunk: xs, shuffle: Es, sum: vt, average: ks, max: ws, min: Cs, intersection: Ss, union: Ls, difference: Ds, zip: Hs };
460
+ const Is = { isArray: Ve, isEmpty: Ke, size: We, first: Ye, last: Ue, get: Xe, slice: je, concat: Je, join: Ge, indexOf: Ze, lastIndexOf: Qe, includes: ts, push: es, pop: ss, shift: is, unshift: ns, remove: rs, removeAt: as, insert: os, reverse: ls, sort: cs, sortBy: hs, filter: ds, map: us, reduce: ps, forEach: fs, every: ms, some: gs, find: _s, findIndex: ys, flat: vs, flattenDeep: vt, unique: bs, uniqueBy: xs, chunk: Es, shuffle: ks, sum: bt, average: ws, max: Cs, min: Ss, intersection: Ls, union: Ds, difference: Hs, zip: Ms };
461
461
  function et(i) {
462
462
  return i !== null && typeof i == "object" && !Array.isArray(i);
463
463
  }
464
- function Is(i) {
464
+ function Ts(i) {
465
465
  return !i || typeof i != "object" ? !0 : Object.keys(i).length === 0;
466
466
  }
467
- function Ts(i) {
467
+ function As(i) {
468
468
  return i ? Object.keys(i) : [];
469
469
  }
470
- function As(i) {
470
+ function zs(i) {
471
471
  return i ? Object.values(i) : [];
472
472
  }
473
- function zs(i) {
473
+ function Ps(i) {
474
474
  return i ? Object.entries(i) : [];
475
475
  }
476
- function Ps(i, t) {
476
+ function $s(i, t) {
477
477
  return i ? Object.prototype.hasOwnProperty.call(i, t) : !1;
478
478
  }
479
- function $s(i, t, e) {
479
+ function qs(i, t, e) {
480
480
  if (!i) return e;
481
481
  const s = t.split(".");
482
482
  return s.some(J) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
483
483
  }
484
- function qs(i, t, e) {
484
+ function Bs(i, t, e) {
485
485
  if (!i || typeof i != "object") return i;
486
486
  const s = t.split(".");
487
487
  if (s.some(J)) return i;
@@ -491,242 +491,242 @@ function qs(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 Bs(i, t) {
494
+ function Fs(i, t) {
495
495
  return i ? t.reduce((e, s) => (i[s] !== void 0 && (e[s] = i[s]), e), {}) : {};
496
496
  }
497
- function Fs(i, t) {
497
+ function Ns(i, t) {
498
498
  return i ? Object.keys(i).reduce((e, s) => (t.includes(s) || (e[s] = i[s]), e), {}) : {};
499
499
  }
500
- function bt(...i) {
500
+ function xt(...i) {
501
501
  return i.reduce((t, e) => (e && typeof e == "object" && Object.keys(e).forEach((s) => {
502
- J(s) || (et(e[s]) && et(t[s]) ? t[s] = bt(t[s], e[s]) : t[s] = e[s]);
502
+ J(s) || (et(e[s]) && et(t[s]) ? t[s] = xt(t[s], e[s]) : t[s] = e[s]);
503
503
  }), t), {});
504
504
  }
505
- function Ns(i) {
505
+ function Os(i) {
506
506
  return i && JSON.parse(JSON.stringify(i));
507
507
  }
508
- function K(i, t = /* @__PURE__ */ new WeakMap()) {
508
+ function W(i, t = /* @__PURE__ */ new WeakMap()) {
509
509
  if (!i || typeof i != "object") return i;
510
510
  if (t.has(i)) return t.get(i);
511
511
  if (i instanceof Date) return new Date(i);
512
512
  if (i instanceof RegExp) return new RegExp(i);
513
513
  if (i instanceof Map) {
514
514
  const s = /* @__PURE__ */ new Map();
515
- return t.set(i, s), i.forEach((n, r) => s.set(r, K(n, t))), s;
515
+ return t.set(i, s), i.forEach((n, r) => s.set(r, W(n, t))), s;
516
516
  }
517
517
  if (i instanceof Set) {
518
518
  const s = /* @__PURE__ */ new Set();
519
- return t.set(i, s), i.forEach((n) => s.add(K(n, t))), s;
519
+ return t.set(i, s), i.forEach((n) => s.add(W(n, t))), s;
520
520
  }
521
521
  if (Array.isArray(i)) {
522
522
  const s = [];
523
- return t.set(i, s), i.forEach((n) => s.push(K(n, t))), s;
523
+ return t.set(i, s), i.forEach((n) => s.push(W(n, t))), s;
524
524
  }
525
525
  const e = {};
526
526
  return t.set(i, e), Object.keys(i).forEach((s) => {
527
- J(s) || (e[s] = K(i[s], t));
527
+ J(s) || (e[s] = W(i[s], t));
528
528
  }), e;
529
529
  }
530
- function Os(i, t) {
530
+ function Rs(i, t) {
531
531
  i && Object.keys(i).forEach((e) => t(i[e], e, i));
532
532
  }
533
- function Rs(i, t) {
533
+ function Vs(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 Vs(i, t) {
540
+ function Ks(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 Ks(i, t, e) {
547
+ function Ws(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 Ws(i) {
550
+ function Ys(i) {
551
551
  return i ? Object.keys(i).map((t) => ({ key: t, value: i[t] })) : [];
552
552
  }
553
- function Ys(i, t, e) {
553
+ function Us(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 Us(i) {
559
+ function Xs(i) {
560
560
  return i ? Object.keys(i).length : 0;
561
561
  }
562
- function Xs(i) {
562
+ function js(i) {
563
563
  if (!i) return {};
564
564
  const t = {};
565
565
  return Object.keys(i).forEach((e) => {
566
566
  t[i[e]] = e;
567
567
  }), t;
568
568
  }
569
- function xt(i, t) {
569
+ function Et(i, t) {
570
570
  if (i === t) return !0;
571
571
  if (!i || !t || typeof i != "object" || typeof t != "object") return !1;
572
572
  const e = Object.keys(i), s = Object.keys(t);
573
- return e.length !== s.length ? !1 : e.every((n) => xt(i[n], t[n]));
573
+ return e.length !== s.length ? !1 : e.every((n) => Et(i[n], t[n]));
574
574
  }
575
- function Et(i) {
575
+ function kt(i) {
576
576
  return i && (Object.freeze(i), Object.keys(i).forEach((t) => {
577
- typeof i[t] == "object" && Et(i[t]);
577
+ typeof i[t] == "object" && kt(i[t]);
578
578
  }), i);
579
579
  }
580
- function js(i) {
580
+ function Js(i) {
581
581
  return i && Object.seal(i);
582
582
  }
583
- const Js = { isObject: et, isEmpty: Is, keys: Ts, values: As, entries: zs, has: Ps, get: $s, set: qs, pick: Bs, omit: Fs, merge: bt, clone: Ns, deepClone: K, forEach: Os, map: Rs, filter: Vs, reduce: Ks, toArray: Ws, fromArray: Ys, size: Us, invert: Xs, isEqual: xt, freeze: Et, seal: js };
583
+ const Gs = { isObject: et, isEmpty: Ts, keys: As, values: zs, entries: Ps, has: $s, get: qs, set: Bs, pick: Fs, omit: Ns, merge: xt, clone: Os, deepClone: W, forEach: Rs, map: Vs, filter: Ks, reduce: Ws, toArray: Ys, fromArray: Us, size: Xs, invert: js, isEqual: Et, freeze: kt, seal: Js };
584
584
  function L(i) {
585
585
  return typeof i == "number" && !isNaN(i);
586
586
  }
587
- function Gs(i) {
587
+ function Zs(i) {
588
588
  return Number.isInteger(i);
589
589
  }
590
- function Zs(i) {
590
+ function Qs(i) {
591
591
  return L(i) && !Number.isInteger(i);
592
592
  }
593
- function Qs(i) {
593
+ function ti(i) {
594
594
  return L(i) && i > 0;
595
595
  }
596
- function ti(i) {
596
+ function ei(i) {
597
597
  return L(i) && i < 0;
598
598
  }
599
- function ei(i) {
599
+ function si(i) {
600
600
  return L(i) && i === 0;
601
601
  }
602
- function si(i, t, e) {
602
+ function ii(i, t, e) {
603
603
  return L(i) ? Math.min(Math.max(i, t), e) : i;
604
604
  }
605
- function ii(i, t = 0) {
605
+ function ni(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 ni(i) {
610
+ function ri(i) {
611
611
  return L(i) ? Math.floor(i) : i;
612
612
  }
613
- function ri(i) {
613
+ function ai(i) {
614
614
  return L(i) ? Math.ceil(i) : i;
615
615
  }
616
- function ai(i) {
616
+ function oi(i) {
617
617
  return L(i) ? Math.abs(i) : i;
618
618
  }
619
- function oi(...i) {
619
+ function li(...i) {
620
620
  const t = i.filter(L);
621
621
  return t.length > 0 ? Math.min(...t) : void 0;
622
622
  }
623
- function li(...i) {
623
+ function ci(...i) {
624
624
  const t = i.filter(L);
625
625
  return t.length > 0 ? Math.max(...t) : void 0;
626
626
  }
627
- function kt(...i) {
627
+ function wt(...i) {
628
628
  return i.flat().filter(L).reduce((e, s) => e + s, 0);
629
629
  }
630
- function ci(...i) {
630
+ function hi(...i) {
631
631
  const t = i.flat().filter(L);
632
- return t.length > 0 ? kt(t) / t.length : 0;
632
+ return t.length > 0 ? wt(t) / t.length : 0;
633
633
  }
634
- function wt(i = 0, t = 1) {
634
+ function Ct(i = 0, t = 1) {
635
635
  return Math.random() * (t - i) + i;
636
636
  }
637
- function hi(i, t) {
638
- return Math.floor(wt(i, t + 1));
637
+ function di(i, t) {
638
+ return Math.floor(Ct(i, t + 1));
639
639
  }
640
- function di(i, t = 2) {
640
+ function ui(i, t = 2) {
641
641
  return L(i) ? i.toFixed(t) : String(i);
642
642
  }
643
- function ui(i, t = "CNY", e = 2) {
643
+ function pi(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 pi(i, t = 0) {
646
+ function fi(i, t = 0) {
647
647
  return L(i) ? `${(i * 100).toFixed(t)}%` : String(i);
648
648
  }
649
- function fi(i, t = 0) {
649
+ function mi(i, t = 0) {
650
650
  return L(i) ? i.toFixed(t) : String(i);
651
651
  }
652
- function mi(i, t = 6) {
652
+ function gi(i, t = 6) {
653
653
  return L(i) ? i.toPrecision(t) : String(i);
654
654
  }
655
- function gi(i) {
655
+ function _i(i) {
656
656
  return Number.isNaN(i);
657
657
  }
658
- function _i(i) {
658
+ function yi(i) {
659
659
  return Number.isFinite(i);
660
660
  }
661
- function yi(i, t = 10) {
661
+ function vi(i, t = 10) {
662
662
  return Number.parseInt(i, t);
663
663
  }
664
- function vi(i) {
664
+ function bi(i) {
665
665
  return Number.parseFloat(i);
666
666
  }
667
- function bi(i, t = 0) {
667
+ function xi(i, t = 0) {
668
668
  const e = Number(i);
669
669
  return isNaN(e) ? t : e;
670
670
  }
671
- function xi(i, t, e = 0) {
671
+ function Ei(i, t, e = 0) {
672
672
  return !L(i) || !L(t) || t === 0 ? e : i / t;
673
673
  }
674
- function Ei(...i) {
674
+ function ki(...i) {
675
675
  return i.reduce((t, e) => !L(t) || !L(e) ? 0 : t * e, 1);
676
676
  }
677
- const ki = { isNumber: L, isInteger: Gs, isFloat: Zs, isPositive: Qs, isNegative: ti, isZero: ei, clamp: si, round: ii, floor: ni, ceil: ri, abs: ai, min: oi, max: li, sum: kt, average: ci, random: wt, randomInt: hi, format: di, formatCurrency: ui, formatPercent: pi, toFixed: fi, toPrecision: mi, isNaN: gi, isFinite: _i, parseInt: yi, parseFloat: vi, toNumber: bi, safeDivide: xi, safeMultiply: Ei };
677
+ const wi = { isNumber: L, isInteger: Zs, isFloat: Qs, isPositive: ti, isNegative: ei, isZero: si, clamp: ii, round: ni, floor: ri, ceil: ai, abs: oi, min: li, max: ci, sum: wt, average: hi, random: Ct, randomInt: di, format: ui, formatCurrency: pi, formatPercent: fi, toFixed: mi, toPrecision: gi, isNaN: _i, isFinite: yi, parseInt: vi, parseFloat: bi, toNumber: xi, safeDivide: Ei, safeMultiply: ki };
678
678
  function G() {
679
679
  return Date.now();
680
680
  }
681
- function R() {
681
+ function V() {
682
682
  const i = /* @__PURE__ */ new Date();
683
683
  return i.setHours(0, 0, 0, 0), i;
684
684
  }
685
- function wi() {
686
- const i = R();
685
+ function Ci() {
686
+ const i = V();
687
687
  return i.setDate(i.getDate() + 1), i;
688
688
  }
689
- function Ci() {
690
- const i = R();
689
+ function Si() {
690
+ const i = V();
691
691
  return i.setDate(i.getDate() - 1), i;
692
692
  }
693
693
  function k(i) {
694
694
  return i instanceof Date && !isNaN(i.getTime());
695
695
  }
696
- function Ct(i) {
696
+ function St(i) {
697
697
  return k(i);
698
698
  }
699
- function Si(i) {
699
+ function Li(i) {
700
700
  const t = new Date(i);
701
- return Ct(t) ? t : null;
701
+ return St(t) ? t : null;
702
702
  }
703
- function Li(i, t = "YYYY-MM-DD HH:mm:ss") {
703
+ function Di(i, t = "YYYY-MM-DD HH:mm:ss") {
704
704
  if (!k(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 Di(i) {
708
+ function Hi(i) {
709
709
  return k(i) ? i.toISOString() : "";
710
710
  }
711
- function Hi(i) {
711
+ function Mi(i) {
712
712
  return k(i) ? new Date(i.toUTCString()) : null;
713
713
  }
714
- function Mi(i, t) {
714
+ function Ii(i, t) {
715
715
  if (!k(i)) return i;
716
716
  const e = new Date(i);
717
717
  return e.setDate(e.getDate() + t), e;
718
718
  }
719
- function Ii(i, t) {
719
+ function Ti(i, t) {
720
720
  if (!k(i)) return i;
721
721
  const e = new Date(i);
722
722
  return e.setHours(e.getHours() + t), e;
723
723
  }
724
- function Ti(i, t) {
724
+ function Ai(i, t) {
725
725
  if (!k(i)) return i;
726
726
  const e = new Date(i);
727
727
  return e.setMinutes(e.getMinutes() + t), e;
728
728
  }
729
- function Ai(i, t) {
729
+ function zi(i, t) {
730
730
  if (!k(i)) return i;
731
731
  const e = new Date(i);
732
732
  return e.setSeconds(e.getSeconds() + t), e;
@@ -738,85 +738,85 @@ function Z(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 zi(i, t) {
741
+ function Pi(i, t) {
742
742
  return !k(i) || !k(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60 * 60));
743
743
  }
744
- function Pi(i, t) {
744
+ function $i(i, t) {
745
745
  return !k(i) || !k(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60));
746
746
  }
747
- function $i(i, t) {
747
+ function qi(i, t) {
748
748
  return !k(i) || !k(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / 1e3);
749
749
  }
750
- function qi(i) {
751
- return k(i) ? Z(i, R()) === 0 : !1;
752
- }
753
750
  function Bi(i) {
754
- return k(i) ? Z(i, R()) === -1 : !1;
751
+ return k(i) ? Z(i, V()) === 0 : !1;
755
752
  }
756
753
  function Fi(i) {
757
- return k(i) ? Z(i, R()) === 1 : !1;
754
+ return k(i) ? Z(i, V()) === -1 : !1;
758
755
  }
759
756
  function Ni(i) {
760
- return k(i) ? i.getTime() > G() : !1;
757
+ return k(i) ? Z(i, V()) === 1 : !1;
761
758
  }
762
759
  function Oi(i) {
763
- return k(i) ? i.getTime() < G() : !1;
760
+ return k(i) ? i.getTime() > G() : !1;
764
761
  }
765
762
  function Ri(i) {
763
+ return k(i) ? i.getTime() < G() : !1;
764
+ }
765
+ function Vi(i) {
766
766
  if (!k(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 Vi(i) {
770
+ function Ki(i) {
771
771
  return k(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate() : 0;
772
772
  }
773
- function Ki(i) {
773
+ function Wi(i) {
774
774
  if (!k(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 Wi(i) {
778
+ function Yi(i) {
779
779
  return k(i) ? Math.ceil((i.getMonth() + 1) / 3) : 0;
780
780
  }
781
- function Yi(i) {
781
+ function Ui(i) {
782
782
  if (!k(i)) return i;
783
783
  const t = new Date(i);
784
784
  return t.setHours(0, 0, 0, 0), t;
785
785
  }
786
- function Ui(i) {
786
+ function Xi(i) {
787
787
  if (!k(i)) return i;
788
788
  const t = new Date(i);
789
789
  return t.setHours(23, 59, 59, 999), t;
790
790
  }
791
- function Xi(i) {
791
+ function ji(i) {
792
792
  return k(i) ? new Date(i.getFullYear(), i.getMonth(), 1) : i;
793
793
  }
794
- function ji(i) {
794
+ function Ji(i) {
795
795
  return k(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0, 23, 59, 59, 999) : i;
796
796
  }
797
- function St(i, t = 1) {
797
+ function Lt(i, t = 1) {
798
798
  if (!k(i)) return i;
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 Ji(i, t = 1) {
802
+ function Gi(i, t = 1) {
803
803
  if (!k(i)) return i;
804
- const e = St(i, t), s = new Date(e);
804
+ const e = Lt(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 Gi(i) {
807
+ function Zi(i) {
808
808
  if (!k(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 Zi(i) {
813
+ function Qi(i) {
814
814
  if (!k(i)) return "";
815
815
  const e = G() - 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 Qi = { now: G, today: R, tomorrow: wi, yesterday: Ci, isDate: k, isValid: Ct, parse: Si, format: Li, toISO: Di, toUTC: Hi, addDays: Mi, addHours: Ii, addMinutes: Ti, addSeconds: Ai, diffDays: Z, diffHours: zi, diffMinutes: Pi, diffSeconds: $i, isToday: qi, isYesterday: Bi, isTomorrow: Fi, isFuture: Ni, isPast: Oi, isLeapYear: Ri, getDaysInMonth: Vi, getWeekOfYear: Ki, getQuarter: Wi, startOfDay: Yi, endOfDay: Ui, startOfMonth: Xi, endOfMonth: ji, startOfWeek: St, endOfWeek: Ji, getAge: Gi, fromNow: Zi };
819
- function tn(i, t, e = {}) {
818
+ const tn = { now: G, today: V, tomorrow: Ci, yesterday: Si, isDate: k, isValid: St, parse: Li, format: Di, toISO: Hi, toUTC: Mi, addDays: Ii, addHours: Ti, addMinutes: Ai, addSeconds: zi, diffDays: Z, diffHours: Pi, diffMinutes: $i, diffSeconds: qi, isToday: Bi, isYesterday: Fi, isTomorrow: Ni, isFuture: Oi, isPast: Ri, isLeapYear: Vi, getDaysInMonth: Ki, getWeekOfYear: Wi, getQuarter: Yi, startOfDay: Ui, endOfDay: Xi, startOfMonth: ji, endOfMonth: Ji, startOfWeek: Lt, endOfWeek: Gi, getAge: Zi, fromNow: Qi };
819
+ function en(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 tn(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 en(i, t, e = {}) {
838
+ function sn(i, t, e = {}) {
839
839
  let s = !1;
840
840
  const n = e.trailing || !1;
841
841
  let r = null, a = null;
@@ -848,31 +848,31 @@ function en(i, t, e = {}) {
848
848
  }, t));
849
849
  };
850
850
  }
851
- function sn(i) {
851
+ function nn(i) {
852
852
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i || "");
853
853
  }
854
- function nn(i) {
854
+ function rn(i) {
855
855
  return /^1[3-9]\d{9}$/.test(i || "");
856
856
  }
857
- function rn(i) {
857
+ function an(i) {
858
858
  return /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w.-]*)*\/?$/.test(i || "");
859
859
  }
860
- function Lt(i) {
860
+ function Dt(i) {
861
861
  return /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(i || "");
862
862
  }
863
- function Dt(i) {
863
+ function Ht(i) {
864
864
  return /^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(i || "");
865
865
  }
866
- function an(i) {
867
- return Lt(i) || Dt(i);
868
- }
869
866
  function on(i) {
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 || "");
867
+ return Dt(i) || Ht(i);
871
868
  }
872
869
  function ln(i) {
873
- return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
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 || "");
874
871
  }
875
872
  function cn(i) {
873
+ return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
874
+ }
875
+ function hn(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;
@@ -882,113 +882,113 @@ function cn(i) {
882
882
  }
883
883
  return s % 10 === 0;
884
884
  }
885
- function Ht(i) {
885
+ function Mt(i) {
886
886
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(i || "");
887
887
  }
888
- function Mt(i) {
888
+ function It(i) {
889
889
  const t = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(i || "");
890
890
  return t ? t.slice(1).every((e) => parseInt(e) >= 0 && parseInt(e) <= 255) : !1;
891
891
  }
892
- function It(i) {
892
+ function Tt(i) {
893
893
  const t = /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*([01]|0\.\d+)\)$/.exec(i || "");
894
894
  if (!t) return !1;
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 hn(i) {
899
- return Ht(i) || Mt(i) || It(i);
900
- }
901
898
  function dn(i) {
902
- return !isNaN(new Date(i).getTime());
899
+ return Mt(i) || It(i) || Tt(i);
903
900
  }
904
901
  function un(i) {
902
+ return !isNaN(new Date(i).getTime());
903
+ }
904
+ function pn(i) {
905
905
  try {
906
906
  return JSON.parse(i), !0;
907
907
  } catch {
908
908
  return !1;
909
909
  }
910
910
  }
911
- function pn(i) {
911
+ function fn(i) {
912
912
  return !i || i.trim() === "";
913
913
  }
914
- function fn(i) {
914
+ function mn(i) {
915
915
  return /^\s+$/.test(i || "");
916
916
  }
917
- function mn(i) {
917
+ function gn(i) {
918
918
  return !isNaN(parseFloat(i)) && isFinite(i);
919
919
  }
920
- function gn(i) {
920
+ function _n(i) {
921
921
  return /^-?\d+$/.test(i || "");
922
922
  }
923
- function _n(i) {
923
+ function yn(i) {
924
924
  return /^-?\d+\.\d+$/.test(i || "");
925
925
  }
926
- function yn(i) {
926
+ function vn(i) {
927
927
  const t = parseFloat(i);
928
928
  return !isNaN(t) && t > 0;
929
929
  }
930
- function vn(i) {
930
+ function bn(i) {
931
931
  const t = parseFloat(i);
932
932
  return !isNaN(t) && t < 0;
933
933
  }
934
- function bn(i) {
934
+ function xn(i) {
935
935
  return /^[a-zA-Z]+$/.test(i || "");
936
936
  }
937
- function xn(i) {
937
+ function En(i) {
938
938
  return /^[a-zA-Z0-9]+$/.test(i || "");
939
939
  }
940
- function En(i) {
940
+ function kn(i) {
941
941
  return /^[\u4e00-\u9fa5]+$/.test(i || "");
942
942
  }
943
- function kn(i, t, e) {
943
+ function wn(i, t, e) {
944
944
  const s = (i || "").length;
945
945
  return s >= t && (e === void 0 || s <= e);
946
946
  }
947
- function wn(i, t) {
947
+ function Cn(i, t) {
948
948
  return (i || "").length >= t;
949
949
  }
950
- function Cn(i, t) {
950
+ function Sn(i, t) {
951
951
  return (i || "").length <= t;
952
952
  }
953
- function Sn(i, t) {
953
+ function Ln(i, t) {
954
954
  return t instanceof RegExp ? t.test(i || "") : !1;
955
955
  }
956
- function Ln(i, t) {
956
+ function Dn(i, t) {
957
957
  return String(i) === String(t);
958
958
  }
959
- function Tt(i, t) {
959
+ function At(i, t) {
960
960
  return (i || "").includes(t);
961
961
  }
962
- function Dn(i, t) {
963
- return !Tt(i, t);
962
+ function Hn(i, t) {
963
+ return !At(i, t);
964
964
  }
965
- function Hn(i) {
965
+ function Mn(i) {
966
966
  return Array.isArray(i);
967
967
  }
968
- function Mn(i, t, e) {
968
+ function In(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 In(i, t) {
972
+ function Tn(i, t) {
973
973
  return i ? i.length >= t : !1;
974
974
  }
975
- function Tn(i, t) {
975
+ function An(i, t) {
976
976
  return i ? i.length <= t : !1;
977
977
  }
978
- function An(i) {
978
+ function zn(i) {
979
979
  return i !== null && typeof i == "object" && !Array.isArray(i);
980
980
  }
981
- function zn(i, t) {
981
+ function Pn(i, t) {
982
982
  return !i || !t || !Array.isArray(t) ? !1 : t.every((e) => Object.prototype.hasOwnProperty.call(i, e));
983
983
  }
984
- function Pn(i, t) {
984
+ function $n(i, t) {
985
985
  const e = {};
986
986
  return Object.keys(t).forEach((s) => {
987
987
  const n = i[s], r = t[s], a = [];
988
988
  r.forEach((o) => {
989
989
  if (typeof o == "string") {
990
990
  const [l, ...c] = o.split(":");
991
- At[l](n, ...c) || a.push(l);
991
+ zt[l](n, ...c) || a.push(l);
992
992
  } else if (typeof o == "function") {
993
993
  const l = o(n, i);
994
994
  l !== !0 && a.push(l || "validation_failed");
@@ -996,8 +996,8 @@ function Pn(i, t) {
996
996
  }), a.length > 0 && (e[s] = a);
997
997
  }), { valid: Object.keys(e).length === 0, errors: e };
998
998
  }
999
- const At = { isEmail: sn, isPhone: nn, isURL: rn, isIPv4: Lt, isIPv6: Dt, isIP: an, isIDCard: on, isPassport: ln, isCreditCard: cn, isHexColor: Ht, isRGB: Mt, isRGBA: It, isColor: hn, isDate: dn, isJSON: un, isEmpty: pn, isWhitespace: fn, isNumber: mn, isInteger: gn, isFloat: _n, isPositive: yn, isNegative: vn, isAlpha: bn, isAlphaNumeric: xn, isChinese: En, isLength: kn, minLength: wn, maxLength: Cn, matches: Sn, equals: Ln, contains: Tt, notContains: Dn, isArray: Hn, arrayLength: Mn, arrayMinLength: In, arrayMaxLength: Tn, isObject: An, hasKeys: zn, validate: Pn };
1000
- function $n(i) {
999
+ const zt = { isEmail: nn, isPhone: rn, isURL: an, isIPv4: Dt, isIPv6: Ht, isIP: on, isIDCard: ln, isPassport: cn, isCreditCard: hn, isHexColor: Mt, isRGB: It, isRGBA: Tt, isColor: dn, isDate: un, isJSON: pn, isEmpty: fn, isWhitespace: mn, isNumber: gn, isInteger: _n, isFloat: yn, isPositive: vn, isNegative: bn, isAlpha: xn, isAlphaNumeric: En, isChinese: kn, isLength: wn, minLength: Cn, maxLength: Sn, matches: Ln, equals: Dn, contains: At, notContains: Hn, isArray: Mn, arrayLength: In, arrayMinLength: Tn, arrayMaxLength: An, isObject: zn, hasKeys: Pn, validate: $n };
1000
+ function qn(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 $n(i) {
1037
1037
  h += (d >>> 8 * u & 255).toString(16).padStart(2, "0");
1038
1038
  }), h;
1039
1039
  }
1040
- function qn(i) {
1040
+ function Bn(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 qn(i) {
1078
1078
  l += (c >>> 8 * h & 255).toString(16).padStart(2, "0");
1079
1079
  }), l;
1080
1080
  }
1081
- function Bn(i) {
1081
+ function Fn(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 Bn(i) {
1088
1088
  }
1089
1089
  return e;
1090
1090
  }
1091
- function Fn(i) {
1091
+ function Nn(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 Fn(i) {
1097
1097
  }
1098
1098
  return e;
1099
1099
  }
1100
- function Nn() {
1100
+ function On() {
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 On = { md5: $n, sha256: qn, base64Encode: Bn, base64Decode: Fn, uuid: Nn }, $ = /* @__PURE__ */ new Map();
1106
+ const Rn = { md5: qn, sha256: Bn, base64Encode: Fn, base64Decode: Nn, uuid: On }, $ = /* @__PURE__ */ new Map();
1107
1107
  async function X(i, t = {}) {
1108
1108
  const { crossOrigin: e = "anonymous" } = t;
1109
1109
  return $.has(i) ? $.get(i) : new Promise((s, n) => {
@@ -1115,7 +1115,7 @@ async function X(i, t = {}) {
1115
1115
  }, r.src = i;
1116
1116
  });
1117
1117
  }
1118
- async function Rn(i, t = {}) {
1118
+ async function Vn(i, t = {}) {
1119
1119
  const { parallel: e = !0 } = t;
1120
1120
  if (e) return Promise.all(i.map((n) => X(n, t)));
1121
1121
  const s = [];
@@ -1123,7 +1123,7 @@ async function Rn(i, t = {}) {
1123
1123
  s.push(await X(n, t));
1124
1124
  return s;
1125
1125
  }
1126
- async function zt(i, t = {}) {
1126
+ async function Pt(i, t = {}) {
1127
1127
  const { type: e = "text/javascript", async: s = !0, defer: n = !1 } = t;
1128
1128
  return $.has(i) ? $.get(i) : new Promise((r, a) => {
1129
1129
  const o = document.createElement("script");
@@ -1134,7 +1134,7 @@ async function zt(i, t = {}) {
1134
1134
  }, o.src = i, document.head.appendChild(o);
1135
1135
  });
1136
1136
  }
1137
- async function Pt(i, t = {}) {
1137
+ async function $t(i, t = {}) {
1138
1138
  const { media: e = "all" } = t;
1139
1139
  return $.has(i) ? $.get(i) : new Promise((s, n) => {
1140
1140
  const r = document.createElement("link");
@@ -1145,7 +1145,7 @@ async function Pt(i, t = {}) {
1145
1145
  }, document.head.appendChild(r);
1146
1146
  });
1147
1147
  }
1148
- async function Vn(i, t, e = {}) {
1148
+ async function Kn(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,41 +1153,41 @@ async function Vn(i, t, e = {}) {
1153
1153
  throw new Error(`Failed to load font: ${i}`);
1154
1154
  }
1155
1155
  }
1156
- async function Kn(i, t = "image") {
1156
+ async function Wn(i, t = "image") {
1157
1157
  switch (t) {
1158
1158
  case "image":
1159
1159
  return X(i);
1160
1160
  case "script":
1161
- return zt(i);
1161
+ return Pt(i);
1162
1162
  case "stylesheet":
1163
1163
  case "style":
1164
- return Pt(i);
1164
+ return $t(i);
1165
1165
  default:
1166
1166
  throw new Error(`Unsupported preload type: ${t}`);
1167
1167
  }
1168
1168
  }
1169
- function Wn(i) {
1169
+ function Yn(i) {
1170
1170
  return $.has(i);
1171
1171
  }
1172
- function Yn() {
1172
+ function Un() {
1173
1173
  $.clear();
1174
1174
  }
1175
- function Un(i) {
1175
+ function Xn(i) {
1176
1176
  $.delete(i);
1177
1177
  }
1178
- const Xn = { loadImage: X, loadImages: Rn, loadScript: zt, loadStylesheet: Pt, loadFont: Vn, preload: Kn, isLoaded: Wn, clearCache: Yn, clearCacheByUrl: Un }, ma = {
1179
- string: Oe,
1180
- array: Ms,
1181
- object: Js,
1182
- number: ki,
1183
- date: Qi,
1184
- debounce: tn,
1185
- throttle: en,
1186
- validator: At,
1187
- crypto: On,
1188
- preload: Xn
1178
+ const jn = { loadImage: X, loadImages: Vn, loadScript: Pt, loadStylesheet: $t, loadFont: Kn, preload: Wn, isLoaded: Yn, clearCache: Un, clearCacheByUrl: Xn }, ga = {
1179
+ string: Re,
1180
+ array: Is,
1181
+ object: Gs,
1182
+ number: wi,
1183
+ date: tn,
1184
+ debounce: en,
1185
+ throttle: sn,
1186
+ validator: zt,
1187
+ crypto: Rn,
1188
+ preload: jn
1189
1189
  };
1190
- function jn(i) {
1190
+ function Jn(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 Jn {
1245
+ class Gn {
1246
1246
  constructor() {
1247
1247
  this.rawData = {}, this.data = null, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new tt(), 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 Jn {
1382
1382
  t.textContent !== String(e ?? "") && (t.textContent = e ?? "");
1383
1383
  break;
1384
1384
  case "html":
1385
- const c = jn(e);
1385
+ const c = Jn(e);
1386
1386
  t.innerHTML !== c && (t.innerHTML = c);
1387
1387
  break;
1388
1388
  case "value":
@@ -1779,7 +1779,7 @@ class ct {
1779
1779
  };
1780
1780
  }
1781
1781
  }
1782
- class Gn {
1782
+ class Zn {
1783
1783
  constructor() {
1784
1784
  this.stores = /* @__PURE__ */ new Map();
1785
1785
  }
@@ -1797,7 +1797,7 @@ class Gn {
1797
1797
  this.stores.clear();
1798
1798
  }
1799
1799
  }
1800
- class Zn {
1800
+ class Qn {
1801
1801
  constructor() {
1802
1802
  this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
1803
1803
  }
@@ -1874,14 +1874,14 @@ function T(i = null) {
1874
1874
  }
1875
1875
  }), t;
1876
1876
  }
1877
- const q = new Jn(), ga = new Zn(), $t = new Gn();
1878
- function _a(i, t) {
1879
- return $t.createStore(i, t);
1877
+ const q = new Gn(), _a = new Qn(), qt = new Zn();
1878
+ function ya(i, t) {
1879
+ return qt.createStore(i, t);
1880
1880
  }
1881
- function ya(i) {
1882
- return $t.getStore(i);
1881
+ function va(i) {
1882
+ return qt.getStore(i);
1883
1883
  }
1884
- const qt = "kupola-theme", Bt = "kupola-brand", W = [
1884
+ const Bt = "kupola-theme", Ft = "kupola-brand", Y = [
1885
1885
  { id: "green", name: "翠绿", color: "#32F08C" },
1886
1886
  { id: "xionghuang", name: "雄黄", color: "#FF9900" },
1887
1887
  { id: "jianghuang", name: "姜黄", color: "#E2C027" },
@@ -1894,12 +1894,12 @@ const qt = "kupola-theme", Bt = "kupola-brand", W = [
1894
1894
  { id: "zengqing", name: "曾青", color: "#535164" },
1895
1895
  { id: "roulan", name: "柔蓝", color: "#106898" }
1896
1896
  ];
1897
- function Y() {
1898
- return localStorage.getItem(qt) || "dark";
1897
+ function O() {
1898
+ return localStorage.getItem(Bt) || "dark";
1899
1899
  }
1900
1900
  function st(i) {
1901
1901
  if (i !== "dark" && i !== "light") return;
1902
- document.documentElement.setAttribute("data-theme", i), localStorage.setItem(qt, i);
1902
+ document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Bt, i);
1903
1903
  const t = document.querySelector("[data-theme-toggle]");
1904
1904
  if (t) {
1905
1905
  t.setAttribute("data-current-theme", i);
@@ -1911,12 +1911,12 @@ function st(i) {
1911
1911
  }
1912
1912
  }
1913
1913
  function U() {
1914
- return localStorage.getItem(Bt) || "zengqing";
1914
+ return localStorage.getItem(Ft) || "zengqing";
1915
1915
  }
1916
1916
  function it(i) {
1917
- const t = W.find((n) => n.id === i);
1917
+ const t = Y.find((n) => n.id === i);
1918
1918
  if (!t) return;
1919
- document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Bt, i);
1919
+ document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Ft, i);
1920
1920
  const e = document.querySelector("[data-brand-toggle]");
1921
1921
  if (e) {
1922
1922
  e.setAttribute("data-current-brand", i);
@@ -1929,22 +1929,30 @@ function it(i) {
1929
1929
  n.getAttribute("data-brand-btn") === i ? n.classList.add("is-active") : n.classList.remove("is-active");
1930
1930
  });
1931
1931
  }
1932
- function Qn() {
1933
- const i = Y();
1932
+ function ht(i) {
1933
+ const t = i.querySelector(".theme-icon");
1934
+ if (t) {
1935
+ const e = O();
1936
+ t.src = e === "dark" ? "/icons/sun.svg" : "/icons/moon.svg";
1937
+ }
1938
+ }
1939
+ function tr() {
1940
+ const i = O();
1934
1941
  st(i);
1935
1942
  const t = U();
1936
1943
  it(t);
1937
1944
  const e = document.querySelector("[data-theme-toggle]");
1938
1945
  if (e) {
1946
+ ht(e);
1939
1947
  const o = e.onclick;
1940
1948
  e.onclick = function(l) {
1941
1949
  l.preventDefault();
1942
- const h = Y() === "dark" ? "light" : "dark";
1943
- st(h), typeof o == "function" && o.call(this, l);
1950
+ const h = O() === "dark" ? "light" : "dark";
1951
+ st(h), ht(e), typeof o == "function" && o.call(this, l);
1944
1952
  };
1945
1953
  }
1946
1954
  let s = document.getElementById("brand-picker");
1947
- s || (s = document.createElement("div"), s.id = "brand-picker", s.style.position = "fixed", s.style.top = "64px", s.style.right = "16px", s.style.zIndex = "9998", s.style.display = "none", s.style.padding = "12px", s.style.width = "200px", s.style.gridTemplateColumns = "repeat(3, 1fr)", s.style.gap = "6px", s.style.backgroundColor = "var(--bg-base-secondary)", s.style.border = "1px solid var(--border-neutral-l1)", s.style.borderRadius = "8px", s.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", s.style.overflow = "hidden", W.forEach((o) => {
1955
+ s || (s = document.createElement("div"), s.id = "brand-picker", s.style.position = "fixed", s.style.top = "64px", s.style.right = "16px", s.style.zIndex = "9998", s.style.display = "none", s.style.padding = "12px", s.style.width = "200px", s.style.gridTemplateColumns = "repeat(3, 1fr)", s.style.gap = "6px", s.style.backgroundColor = "var(--bg-base-secondary)", s.style.border = "1px solid var(--border-neutral-l1)", s.style.borderRadius = "8px", s.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", s.style.overflow = "hidden", Y.forEach((o) => {
1948
1956
  const l = document.createElement("button");
1949
1957
  l.setAttribute("data-brand-btn", o.id), l.style.display = "flex", l.style.justifyContent = "center", l.style.alignItems = "center", l.style.height = "60px", l.style.backgroundColor = o.color, l.style.color = ["#32F08C", "#FF9900", "#E2C027", "#0EB0C9", "#B1A6CC"].includes(o.color) ? "#0C0C0D" : "#FFFFFF", l.style.fontWeight = "500", l.style.borderRadius = "4px", l.style.border = "none", l.style.cursor = "pointer", l.style.margin = "0", l.style.padding = "0", l.textContent = o.name, s.appendChild(l);
1950
1958
  }), document.body.appendChild(s));
@@ -1969,30 +1977,30 @@ function Qn() {
1969
1977
  });
1970
1978
  });
1971
1979
  }
1972
- function va() {
1980
+ function ba() {
1973
1981
  const i = document.createElement("button");
1974
- i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", Y()), 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";
1982
+ i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", O()), 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";
1975
1983
  const t = document.createElement("img");
1976
1984
  t.className = "theme-icon";
1977
1985
  const e = document.getElementsByTagName("script"), s = e[e.length - 1], n = s.src.substring(0, s.src.lastIndexOf("/") + 1);
1978
- return t.src = Y() === "dark" ? n + "../icons/sun.svg" : n + "../icons/moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(r) {
1986
+ return t.src = O() === "dark" ? n + "../icons/sun.svg" : n + "../icons/moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(r) {
1979
1987
  r.preventDefault();
1980
- const o = Y() === "dark" ? "light" : "dark";
1988
+ const o = O() === "dark" ? "light" : "dark";
1981
1989
  st(o);
1982
1990
  }, i;
1983
1991
  }
1984
- function ba() {
1992
+ function xa() {
1985
1993
  const i = document.createElement("div");
1986
- i.id = "brand-picker-auto", i.style.position = "fixed", i.style.top = "56px", i.style.right = "16px", i.style.zIndex = "9998", i.style.display = "none", i.style.padding = "12px", i.style.width = "200px", i.style.gridTemplateColumns = "repeat(3, 1fr)", i.style.gap = "6px", i.style.backgroundColor = "var(--bg-base-secondary)", i.style.border = "1px solid var(--border-neutral-l1)", i.style.borderRadius = "8px", i.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", i.style.overflow = "hidden", W.forEach((a) => {
1994
+ i.id = "brand-picker-auto", i.style.position = "fixed", i.style.top = "56px", i.style.right = "16px", i.style.zIndex = "9998", i.style.display = "none", i.style.padding = "12px", i.style.width = "200px", i.style.gridTemplateColumns = "repeat(3, 1fr)", i.style.gap = "6px", i.style.backgroundColor = "var(--bg-base-secondary)", i.style.border = "1px solid var(--border-neutral-l1)", i.style.borderRadius = "8px", i.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", i.style.overflow = "hidden", Y.forEach((a) => {
1987
1995
  const o = document.createElement("button");
1988
1996
  o.setAttribute("data-brand-btn", a.id), o.style.display = "flex", o.style.justifyContent = "center", o.style.alignItems = "center", o.style.height = "60px", o.style.backgroundColor = a.color, o.style.color = ["#32F08C", "#FF9900", "#E2C027", "#0EB0C9", "#B1A6CC"].includes(a.color) ? "#0C0C0D" : "#FFFFFF", o.style.fontWeight = "500", o.style.borderRadius = "4px", o.style.border = "none", o.style.cursor = "pointer", o.style.margin = "0", o.style.padding = "0", o.textContent = a.name, i.appendChild(o);
1989
1997
  }), document.body.appendChild(i);
1990
1998
  const t = document.createElement("button");
1991
1999
  t.setAttribute("data-brand-toggle", ""), t.setAttribute("data-current-brand", U()), t.className = "ds-btn ds-btn--ghost ds-btn--sm", t.style.position = "fixed", t.style.top = "16px", t.style.right = "56px", t.style.zIndex = "9999", t.style.display = "flex", t.style.alignItems = "center", t.style.gap = "6px";
1992
2000
  const e = document.createElement("span");
1993
- e.className = "brand-icon", e.style.width = "12px", e.style.height = "12px", e.style.borderRadius = "50%", e.style.backgroundColor = W.find((a) => a.id === U()).color;
2001
+ e.className = "brand-icon", e.style.width = "12px", e.style.height = "12px", e.style.borderRadius = "50%", e.style.backgroundColor = Y.find((a) => a.id === U()).color;
1994
2002
  const s = document.createElement("span");
1995
- s.className = "brand-name", s.style.fontSize = "11px", s.textContent = W.find((a) => a.id === U()).name, t.appendChild(e), t.appendChild(s), document.body.appendChild(t), t.onclick = function(a) {
2003
+ s.className = "brand-name", s.style.fontSize = "11px", s.textContent = Y.find((a) => a.id === U()).name, t.appendChild(e), t.appendChild(s), document.body.appendChild(t), t.onclick = function(a) {
1996
2004
  a.stopPropagation(), a.preventDefault();
1997
2005
  const o = i.style.display === "none";
1998
2006
  i.style.display = o ? "grid" : "none", o ? setTimeout(() => {
@@ -2012,7 +2020,7 @@ function ba() {
2012
2020
  });
2013
2021
  }), { toggleBtn: t, container: i };
2014
2022
  }
2015
- class tr {
2023
+ class er {
2016
2024
  constructor() {
2017
2025
  this.initializers = /* @__PURE__ */ new Map(), this.cleanupFunctions = /* @__PURE__ */ new Map(), this.processedElements = /* @__PURE__ */ new WeakSet(), this._dataAttrs = ["data-component"], this._cssClasses = [], this._cachedSelector = null;
2018
2026
  }
@@ -2119,7 +2127,7 @@ class tr {
2119
2127
  }), await Promise.all(n);
2120
2128
  }
2121
2129
  }
2122
- const E = new tr(), er = [
2130
+ const E = new er(), sr = [
2123
2131
  { attr: "data-dropdown", cls: "ds-dropdown" },
2124
2132
  { attr: "data-select", cls: "ds-select" },
2125
2133
  { attr: "data-datepicker", cls: "ds-datepicker" },
@@ -2141,7 +2149,7 @@ const E = new tr(), er = [
2141
2149
  { cls: "ds-notification" },
2142
2150
  { cls: "ds-message" }
2143
2151
  ];
2144
- for (const i of er)
2152
+ for (const i of sr)
2145
2153
  i.attr && !E._dataAttrs.includes(i.attr) && E._dataAttrs.push(i.attr), i.cls && !E._cssClasses.includes(i.cls) && E._cssClasses.push(i.cls);
2146
2154
  class j {
2147
2155
  constructor(t) {
@@ -2278,7 +2286,7 @@ class j {
2278
2286
  setup() {
2279
2287
  }
2280
2288
  }
2281
- function ht(i, t) {
2289
+ function dt(i, t) {
2282
2290
  Object.keys(t).forEach((e) => {
2283
2291
  if (e !== "constructor")
2284
2292
  if (typeof t[e] == "function") {
@@ -2290,7 +2298,7 @@ function ht(i, t) {
2290
2298
  i.prototype[e] = t[e];
2291
2299
  });
2292
2300
  }
2293
- class sr {
2301
+ class ir {
2294
2302
  constructor() {
2295
2303
  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();
2296
2304
  }
@@ -2334,7 +2342,7 @@ class sr {
2334
2342
  useMixin(t, ...e) {
2335
2343
  e.forEach((s) => {
2336
2344
  const n = this.mixins.get(s);
2337
- n && ht(t, n);
2345
+ n && dt(t, n);
2338
2346
  });
2339
2347
  }
2340
2348
  async bootstrap(t = document) {
@@ -2375,7 +2383,7 @@ class sr {
2375
2383
  const n = t.getAttribute("data-mixins"), r = s;
2376
2384
  n && n.split(",").forEach((o) => {
2377
2385
  const l = this.mixins.get(o.trim());
2378
- l && ht(r, l);
2386
+ l && dt(r, l);
2379
2387
  });
2380
2388
  const a = new r(t);
2381
2389
  t.__kupolaInstance = a, this.instances.set(t, a), a.mount();
@@ -2421,27 +2429,27 @@ class sr {
2421
2429
  }
2422
2430
  }
2423
2431
  let M = null;
2424
- typeof window < "u" && (M = new sr());
2425
- async function dt() {
2426
- typeof window < "u" && (q.loadPersisted(), q.bind(), Qn(), await E.initializeAll(), M && await M.bootstrap());
2432
+ typeof window < "u" && (M = new ir());
2433
+ async function ut() {
2434
+ typeof window < "u" && (q.loadPersisted(), q.bind(), tr(), await E.initializeAll(), M && await M.bootstrap());
2427
2435
  }
2428
- typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", dt) : typeof window < "u" && setTimeout(dt, 0);
2429
- function xa(i, t) {
2436
+ typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", ut) : typeof window < "u" && setTimeout(ut, 0);
2437
+ function Ea(i, t) {
2430
2438
  M && M.register(i, t);
2431
2439
  }
2432
- function Ea(i, t) {
2440
+ function ka(i, t) {
2433
2441
  M && M.registerLazy(i, t);
2434
2442
  }
2435
- function ka(i) {
2443
+ function wa(i) {
2436
2444
  return M ? M.bootstrap(i) : Promise.resolve();
2437
2445
  }
2438
- function wa(i, t) {
2446
+ function Ca(i, t) {
2439
2447
  M && M.defineMixin(i, t);
2440
2448
  }
2441
- function Ca(i, ...t) {
2449
+ function Sa(i, ...t) {
2442
2450
  M && M.useMixin(i, ...t);
2443
2451
  }
2444
- function Sa(i, t) {
2452
+ function La(i, t) {
2445
2453
  if (!t || typeof t != "object")
2446
2454
  throw new Error(`defineComponent("${i}"): options must be an object`);
2447
2455
  t.componentClass ? M && M.register(i, t.componentClass) : t.lazy && M && M.registerLazy(i, t.lazy), t.init ? E.register(i, t.init, t.cleanup || null, {
@@ -2453,7 +2461,7 @@ function Sa(i, t) {
2453
2461
  cssClass: t.cssClass
2454
2462
  });
2455
2463
  }
2456
- class Ft {
2464
+ class Nt {
2457
2465
  constructor(t = {}) {
2458
2466
  this.locales = t.locales || {}, this.currentLocale = t.defaultLocale || "zh-CN", this.fallbackLocale = t.fallbackLocale || "zh-CN", this.delimiter = t.delimiter || ".", this.missingHandler = t.missingHandler || ((e) => (console.warn(`Missing translation: ${e}`), e)), this._initFromDOM();
2459
2467
  }
@@ -2550,32 +2558,32 @@ class Ft {
2550
2558
  return new Intl.RelativeTimeFormat(n, s).format(t, e);
2551
2559
  }
2552
2560
  }
2553
- const N = new Ft();
2554
- function La(i) {
2555
- return new Ft(i);
2561
+ const N = new Nt();
2562
+ function Da(i) {
2563
+ return new Nt(i);
2556
2564
  }
2557
- function Da(i, t = {}) {
2565
+ function Ha(i, t = {}) {
2558
2566
  return N.t(i, t);
2559
2567
  }
2560
- function Ha(i, t, e = {}) {
2568
+ function Ma(i, t, e = {}) {
2561
2569
  return N.n(i, t, e);
2562
2570
  }
2563
- function Ma(i) {
2571
+ function Ia(i) {
2564
2572
  return N.setLocale(i);
2565
2573
  }
2566
- function Ia() {
2574
+ function Ta() {
2567
2575
  return N.getLocale();
2568
2576
  }
2569
- function Ta(i, t = {}) {
2577
+ function Aa(i, t = {}) {
2570
2578
  return N.formatDate(i, t);
2571
2579
  }
2572
- function Aa(i, t = {}) {
2580
+ function za(i, t = {}) {
2573
2581
  return N.formatNumber(i, t);
2574
2582
  }
2575
- function za(i, t, e = {}) {
2583
+ function Pa(i, t, e = {}) {
2576
2584
  return N.formatCurrency(i, t, e);
2577
2585
  }
2578
- class ir {
2586
+ class nr {
2579
2587
  constructor() {
2580
2588
  this._listeners = /* @__PURE__ */ new Map(), this._scopeListeners = /* @__PURE__ */ new Map();
2581
2589
  }
@@ -2705,32 +2713,32 @@ class ir {
2705
2713
  this._listeners.clear(), this._scopeListeners.clear();
2706
2714
  }
2707
2715
  }
2708
- const H = new ir();
2709
- function Pa(i, t, e, s) {
2716
+ const H = new nr();
2717
+ function $a(i, t, e, s) {
2710
2718
  return H.on(i, t, e, s);
2711
2719
  }
2712
- function $a(i, t, e, s) {
2720
+ function qa(i, t, e, s) {
2713
2721
  return H.once(i, t, e, s);
2714
2722
  }
2715
- function qa(i, t, e) {
2723
+ function Ba(i, t, e) {
2716
2724
  H.off(i, t, e);
2717
2725
  }
2718
- function Ba(i, t, e) {
2726
+ function Fa(i, t, e) {
2719
2727
  return H.emit(i, t, e);
2720
2728
  }
2721
- function Fa(i, t) {
2729
+ function Na(i, t) {
2722
2730
  return H.emitGlobal(i, t);
2723
2731
  }
2724
- function Na(i) {
2732
+ function Oa(i) {
2725
2733
  H.offByScope(i);
2726
2734
  }
2727
- function Oa(i, t) {
2735
+ function Ra(i, t) {
2728
2736
  H.offAll(i, t);
2729
2737
  }
2730
- function Ra(i, t) {
2738
+ function Va(i, t) {
2731
2739
  return H.getListenerCount(i, t);
2732
2740
  }
2733
- class nr {
2741
+ class rr {
2734
2742
  constructor(t, e = {}) {
2735
2743
  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)}`, this.triggerMode = e.trigger || t.getAttribute("data-dropdown-trigger") || "click", this.hoverDelay = e.hoverDelay || parseInt(t.getAttribute("data-dropdown-hover-delay")) || 150, this.disabled = e.disabled || t.hasAttribute("data-dropdown-disabled"), this.keyboardNav = e.keyboardNav !== !1, this.autoPosition = e.autoPosition !== !1, this.onSelect = e.onSelect || null, this.onShow = e.onShow || null, this.onHide = e.onHide || null, this.isOpen = !1, this.focusIndex = -1, this._hoverTimer = null, this._hoverLeaveTimer = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._itemClickHandler = null, this._keydownHandler = null, this._mouseenterHandler = null, this._mouseleaveHandler = null, this._triggerMouseenterHandler = null, this._triggerMouseleaveHandler = null, this._triggerKeydownHandler = null;
2736
2744
  }
@@ -2832,25 +2840,25 @@ class nr {
2832
2840
  }), 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._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);
2833
2841
  }
2834
2842
  }
2835
- function Nt(i, t) {
2836
- const e = new nr(i, t);
2843
+ function Ot(i, t) {
2844
+ const e = new rr(i, t);
2837
2845
  e.init(), i._kupolaDropdown = e;
2838
2846
  }
2839
- function Va(i = document) {
2847
+ function Ka(i = document) {
2840
2848
  i.querySelectorAll(".ds-dropdown").forEach((t) => {
2841
- Nt(t);
2849
+ Ot(t);
2842
2850
  });
2843
2851
  }
2844
- function Ot(i) {
2852
+ function Rt(i) {
2845
2853
  i._kupolaDropdown && (i._kupolaDropdown.destroy(), i._kupolaDropdown = null);
2846
2854
  }
2847
- function Ka() {
2855
+ function Wa() {
2848
2856
  document.querySelectorAll(".ds-dropdown").forEach((i) => {
2849
- Ot(i);
2857
+ Rt(i);
2850
2858
  });
2851
2859
  }
2852
- E.register("dropdown", Nt, Ot);
2853
- class rr {
2860
+ E.register("dropdown", Ot, Rt);
2861
+ class ar {
2854
2862
  constructor(t, e = {}) {
2855
2863
  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.isOpen = !1, this.selectedValues = /* @__PURE__ */ new Set(), this.allOptions = [], this.filteredOptions = [], this.focusIndex = -1, this.searchInput = null, this.clearBtn = null, this.tagsWrap = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._optionClickHandler = null, this._keydownHandler = null;
2856
2864
  }
@@ -3063,20 +3071,20 @@ class rr {
3063
3071
  }), 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._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._optionClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
3064
3072
  }
3065
3073
  }
3066
- function Rt(i, t) {
3067
- const e = new rr(i, t);
3074
+ function Vt(i, t) {
3075
+ const e = new ar(i, t);
3068
3076
  e.init(), i._kupolaSelect = e;
3069
3077
  }
3070
- function Wa(i = document) {
3078
+ function Ya(i = document) {
3071
3079
  i.querySelectorAll(".ds-select").forEach((t) => {
3072
- Rt(t);
3080
+ Vt(t);
3073
3081
  });
3074
3082
  }
3075
- function ar(i) {
3083
+ function or(i) {
3076
3084
  i._kupolaSelect && (i._kupolaSelect.destroy(), i._kupolaSelect = null);
3077
3085
  }
3078
- E.register("select", Rt, ar);
3079
- class or {
3086
+ E.register("select", Vt, or);
3087
+ class lr {
3080
3088
  constructor(t, e = {}) {
3081
3089
  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)}`, this.format = e.format || t.getAttribute("data-datepicker-format") || "YYYY-MM-DD", this.range = e.range || t.hasAttribute("data-datepicker-range"), this.minDate = e.minDate || t.getAttribute("data-datepicker-min") || null, this.maxDate = e.maxDate || t.getAttribute("data-datepicker-max") || null, this.disabledDate = e.disabledDate || null, this.weekStart = e.weekStart || parseInt(t.getAttribute("data-datepicker-week-start")) || 0, this.placeholder = e.placeholder || t.getAttribute("data-datepicker-placeholder") || "", this.showToday = e.showToday !== !1, this.showWeekNumber = e.showWeekNumber || t.hasAttribute("data-datepicker-week-number"), this.onChange = e.onChange || null, this.months = e.months || ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], this.weekDays = e.weekDays || ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.todayText = e.todayText || "Today", this.clearText = e.clearText || "Clear", this.currentDate = /* @__PURE__ */ new Date(), this.viewMode = "days", this.selectedDate = null, this.rangeStart = null, this.rangeEnd = null, this.isSelectingEnd = !1, this._iconClickHandler = null, this._inputClickHandler = null, this._endInputClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null;
3082
3090
  }
@@ -3314,20 +3322,20 @@ class or {
3314
3322
  }), 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);
3315
3323
  }
3316
3324
  }
3317
- function Vt(i, t) {
3318
- const e = new or(i, t);
3325
+ function Kt(i, t) {
3326
+ const e = new lr(i, t);
3319
3327
  e.init(), i._kupolaDatepicker = e;
3320
3328
  }
3321
- function Ya(i = document) {
3329
+ function Ua(i = document) {
3322
3330
  i.querySelectorAll(".ds-datepicker").forEach((t) => {
3323
- Vt(t);
3331
+ Kt(t);
3324
3332
  });
3325
3333
  }
3326
- function lr(i) {
3334
+ function cr(i) {
3327
3335
  i._kupolaDatepicker && (i._kupolaDatepicker.destroy(), i._kupolaDatepicker = null);
3328
3336
  }
3329
- E.register("datepicker", Vt, lr);
3330
- class cr {
3337
+ E.register("datepicker", Kt, cr);
3338
+ class hr {
3331
3339
  constructor(t, e = {}) {
3332
3340
  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;
3333
3341
  }
@@ -3509,20 +3517,20 @@ class cr {
3509
3517
  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);
3510
3518
  }
3511
3519
  }
3512
- function Kt(i, t) {
3513
- const e = new cr(i, t);
3520
+ function Wt(i, t) {
3521
+ const e = new hr(i, t);
3514
3522
  e.init(), i._kupolaTimepicker = e;
3515
3523
  }
3516
- function Ua(i = document) {
3524
+ function Xa(i = document) {
3517
3525
  i.querySelectorAll(".ds-timepicker").forEach((t) => {
3518
- Kt(t);
3526
+ Wt(t);
3519
3527
  });
3520
3528
  }
3521
- function hr(i) {
3529
+ function dr(i) {
3522
3530
  i._kupolaTimepicker && (i._kupolaTimepicker.destroy(), i._kupolaTimepicker = null);
3523
3531
  }
3524
- E.register("timepicker", Kt, hr);
3525
- class dr {
3532
+ E.register("timepicker", Wt, dr);
3533
+ class ur {
3526
3534
  constructor(t, e = {}) {
3527
3535
  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)
3528
3536
  throw new Error("Slider: Missing required elements");
@@ -3670,26 +3678,26 @@ class dr {
3670
3678
  this.disabled = !0, this.element.classList.add("is-disabled");
3671
3679
  }
3672
3680
  }
3673
- function Wt(i, t) {
3681
+ function Yt(i, t) {
3674
3682
  if (!i.__kupolaInitialized)
3675
3683
  try {
3676
- const e = new dr(i, t);
3684
+ const e = new ur(i, t);
3677
3685
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
3678
3686
  } catch (e) {
3679
3687
  console.error("[Slider] Error initializing:", e);
3680
3688
  }
3681
3689
  }
3682
- function ur(i) {
3690
+ function pr(i) {
3683
3691
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
3684
3692
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
3685
3693
  }
3686
- function Xa() {
3694
+ function ja() {
3687
3695
  document.querySelectorAll(".ds-slider").forEach((i) => {
3688
- Wt(i);
3696
+ Yt(i);
3689
3697
  });
3690
3698
  }
3691
- E.register("slider", Wt, ur);
3692
- class pr {
3699
+ E.register("slider", Yt, pr);
3700
+ class fr {
3693
3701
  constructor(t, e = {}) {
3694
3702
  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 = () => {
3695
3703
  this.pauseOnHover && this.stopAutoPlay();
@@ -3770,22 +3778,22 @@ class pr {
3770
3778
  }), 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;
3771
3779
  }
3772
3780
  }
3773
- function Yt(i, t) {
3781
+ function Ut(i, t) {
3774
3782
  if (i.__kupolaInitialized) return;
3775
- const e = new pr(i, t);
3783
+ const e = new fr(i, t);
3776
3784
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
3777
3785
  }
3778
- function ja(i = document) {
3786
+ function Ja(i = document) {
3779
3787
  i.querySelectorAll(".ds-carousel").forEach((t) => {
3780
- Yt(t);
3788
+ Ut(t);
3781
3789
  });
3782
3790
  }
3783
- function fr(i) {
3791
+ function mr(i) {
3784
3792
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
3785
3793
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
3786
3794
  }
3787
- E.register("carousel", Yt, fr);
3788
- class mr {
3795
+ E.register("carousel", Ut, mr);
3796
+ class gr {
3789
3797
  constructor(t, e = {}) {
3790
3798
  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();
3791
3799
  }
@@ -3824,14 +3832,14 @@ class mr {
3824
3832
  }
3825
3833
  function nt(i, t) {
3826
3834
  if (i.__kupolaInitialized) return;
3827
- const e = new mr(i, t);
3835
+ const e = new gr(i, t);
3828
3836
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
3829
3837
  }
3830
- function gr(i) {
3838
+ function _r(i) {
3831
3839
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
3832
3840
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
3833
3841
  }
3834
- function Ja() {
3842
+ function Ga() {
3835
3843
  document.querySelectorAll("[data-drawer]").forEach((i) => {
3836
3844
  i.addEventListener("click", () => {
3837
3845
  const t = i.getAttribute("data-drawer"), e = document.getElementById(t);
@@ -3846,7 +3854,7 @@ function Ja() {
3846
3854
  t && nt(t);
3847
3855
  });
3848
3856
  }
3849
- E.register("drawer", nt, gr);
3857
+ E.register("drawer", nt, _r);
3850
3858
  class P {
3851
3859
  constructor(t, e = {}) {
3852
3860
  this.element = t, this.mask = t.querySelector(".ds-modal-mask"), this.modal = t.querySelector(".ds-modal"), this.closeBtn = t.querySelector(".ds-modal__close"), this.fullscreen = e.fullscreen || t.hasAttribute("data-modal-fullscreen"), this.closableOnMask = e.closableOnMask !== !1, this.escClose = e.escClose !== !1, this.width = e.width || t.getAttribute("data-modal-width") || "", this.center = e.center !== !1, this.onBeforeOpen = e.onBeforeOpen || null, this.onBeforeClose = e.onBeforeClose || null, this.onOpened = e.onOpened || null, this.onClosed = e.onClosed || null, this._isOpen = !1, this._keydownHandler = (s) => {
@@ -3881,7 +3889,7 @@ class P {
3881
3889
  }
3882
3890
  }
3883
3891
  P._openCount = 0;
3884
- function Ut(i = {}) {
3892
+ function Xt(i = {}) {
3885
3893
  const {
3886
3894
  title: t = "",
3887
3895
  content: e = "",
@@ -3947,45 +3955,45 @@ function Ut(i = {}) {
3947
3955
  m && m(), w.close();
3948
3956
  };
3949
3957
  D && D.addEventListener("click", B), I && I.addEventListener("click", ot);
3950
- const fe = () => {
3958
+ const me = () => {
3951
3959
  setTimeout(() => {
3952
3960
  D && D.removeEventListener("click", B), I && I.removeEventListener("click", ot), w.destroy(), b.remove(), _ && _(z);
3953
3961
  }, 300);
3954
- }, me = w.close.bind(w);
3962
+ }, ge = w.close.bind(w);
3955
3963
  return w.close = () => {
3956
- me(), fe();
3964
+ ge(), me();
3957
3965
  }, w.open(), y && setTimeout(() => y(), 50), w;
3958
3966
  }
3959
- function Ga(i) {
3960
- return typeof i == "string" && (i = { content: i }), Ut({
3967
+ function Za(i) {
3968
+ return typeof i == "string" && (i = { content: i }), Xt({
3961
3969
  ...i,
3962
3970
  showCancel: !0,
3963
3971
  showConfirm: !0
3964
3972
  });
3965
3973
  }
3966
- function Za(i) {
3967
- return typeof i == "string" && (i = { content: i }), Ut({
3974
+ function Qa(i) {
3975
+ return typeof i == "string" && (i = { content: i }), Xt({
3968
3976
  ...i,
3969
3977
  showCancel: !1,
3970
3978
  showConfirm: !0
3971
3979
  });
3972
3980
  }
3973
- function Xt(i) {
3981
+ function jt(i) {
3974
3982
  if (i.__kupolaInitialized) return;
3975
3983
  const t = new P(i);
3976
3984
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
3977
3985
  }
3978
- function _r(i) {
3986
+ function yr(i) {
3979
3987
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
3980
3988
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
3981
3989
  }
3982
- function Qa() {
3990
+ function to() {
3983
3991
  document.querySelectorAll(".ds-modal-container").forEach((i) => {
3984
- Xt(i);
3992
+ jt(i);
3985
3993
  });
3986
3994
  }
3987
- E.register("modal", Xt, _r);
3988
- class to {
3995
+ E.register("modal", jt, yr);
3996
+ class eo {
3989
3997
  static normal(t = {}) {
3990
3998
  return this._create({ type: "normal", ...t });
3991
3999
  }
@@ -4050,7 +4058,7 @@ class to {
4050
4058
  return c.classList.add("is-visible"), document.body.style.overflow = "hidden", h && h.addEventListener("click", p), d && d.addEventListener("click", m), c.addEventListener("click", f), document.addEventListener("keydown", u), { close: y };
4051
4059
  }
4052
4060
  }
4053
- const eo = {
4061
+ const so = {
4054
4062
  normal: function(i) {
4055
4063
  this.show({ ...i, type: "normal" });
4056
4064
  },
@@ -4096,9 +4104,9 @@ const eo = {
4096
4104
  }, n);
4097
4105
  }
4098
4106
  };
4099
- function so() {
4107
+ function io() {
4100
4108
  }
4101
- const io = {
4109
+ const no = {
4102
4110
  normal: function(i, t = {}) {
4103
4111
  this.show(i, "normal", t);
4104
4112
  },
@@ -4136,12 +4144,12 @@ const io = {
4136
4144
  }, s);
4137
4145
  }
4138
4146
  };
4139
- function no() {
4147
+ function ro() {
4140
4148
  }
4141
- function ut(i) {
4149
+ function pt(i) {
4142
4150
  return i ? i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;") : "";
4143
4151
  }
4144
- class yr {
4152
+ class vr {
4145
4153
  constructor(t) {
4146
4154
  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();
4147
4155
  }
@@ -4197,7 +4205,7 @@ class yr {
4197
4205
  <div class="ds-fileupload__icon" style="width: 24px; height: 24px; border-radius: 4px;">
4198
4206
  ${s}
4199
4207
  </div>
4200
- <span class="ds-fileupload__filename">${this.truncateFilename(ut(t.name))}</span>
4208
+ <span class="ds-fileupload__filename">${this.truncateFilename(pt(t.name))}</span>
4201
4209
  <span class="ds-fileupload__size">${this.formatSize(t.size)}</span>
4202
4210
  <button class="ds-fileupload__remove" type="button" aria-label="Remove file">
4203
4211
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
@@ -4249,7 +4257,7 @@ class yr {
4249
4257
  e.onload = (s) => {
4250
4258
  const n = document.createElement("div");
4251
4259
  n.className = "ds-fileupload__preview-item", n.innerHTML = `
4252
- <img src="${s.target.result}" alt="${ut(t.name)}">
4260
+ <img src="${s.target.result}" alt="${pt(t.name)}">
4253
4261
  <button class="ds-fileupload__preview-remove" type="button" aria-label="Remove preview">
4254
4262
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
4255
4263
  <path d="M18 6L6 18"/>
@@ -4299,22 +4307,22 @@ class yr {
4299
4307
  }), this._listeners = null, this.files = [], this.dropzone = null, this.input = null, this.list = null, this.progress = null, this.preview = null, this.element = null;
4300
4308
  }
4301
4309
  }
4302
- function jt(i) {
4310
+ function Jt(i) {
4303
4311
  if (i.__kupolaInitialized) return;
4304
- const t = new yr(i);
4312
+ const t = new vr(i);
4305
4313
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
4306
4314
  }
4307
- function vr(i) {
4315
+ function br(i) {
4308
4316
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4309
4317
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4310
4318
  }
4311
- function ro() {
4319
+ function ao() {
4312
4320
  document.querySelectorAll(".ds-fileupload").forEach((i) => {
4313
- jt(i);
4321
+ Jt(i);
4314
4322
  });
4315
4323
  }
4316
- E.register("fileupload", jt, vr);
4317
- class br {
4324
+ E.register("fileupload", Jt, br);
4325
+ class xr {
4318
4326
  constructor(t, e = {}) {
4319
4327
  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();
4320
4328
  }
@@ -4396,22 +4404,22 @@ class br {
4396
4404
  this.headers[t] && (this.headers[t].isDisabled = !1, this.headers[t].item.classList.remove("is-disabled"));
4397
4405
  }
4398
4406
  }
4399
- function Jt(i, t) {
4407
+ function Gt(i, t) {
4400
4408
  if (i.__kupolaInitialized) return;
4401
- const e = new br(i, t);
4409
+ const e = new xr(i, t);
4402
4410
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4403
4411
  }
4404
- function xr(i) {
4412
+ function Er(i) {
4405
4413
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4406
4414
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4407
4415
  }
4408
- function ao() {
4416
+ function oo() {
4409
4417
  document.querySelectorAll(".ds-collapse").forEach((i) => {
4410
- Jt(i);
4418
+ Gt(i);
4411
4419
  });
4412
4420
  }
4413
- E.register("collapse", Jt, xr);
4414
- class Er {
4421
+ E.register("collapse", Gt, Er);
4422
+ class kr {
4415
4423
  constructor(t, e = {}) {
4416
4424
  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);
4417
4425
  }
@@ -4576,20 +4584,20 @@ class Er {
4576
4584
  }), 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;
4577
4585
  }
4578
4586
  }
4579
- function Gt(i, t) {
4580
- const e = new Er(i, t);
4587
+ function Zt(i, t) {
4588
+ const e = new kr(i, t);
4581
4589
  e.init(), i._kupolaColorPicker = e;
4582
4590
  }
4583
- function oo(i = document) {
4591
+ function lo(i = document) {
4584
4592
  i.querySelectorAll(".ds-color-picker").forEach((t) => {
4585
- Gt(t);
4593
+ Zt(t);
4586
4594
  });
4587
4595
  }
4588
- function kr(i) {
4596
+ function wr(i) {
4589
4597
  i._kupolaColorPicker && (i._kupolaColorPicker.destroy(), i._kupolaColorPicker = null);
4590
4598
  }
4591
- E.register("color-picker", Gt, kr);
4592
- class wr {
4599
+ E.register("color-picker", Zt, wr);
4600
+ class Cr {
4593
4601
  constructor(t, e = {}) {
4594
4602
  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)
4595
4603
  throw new Error("Calendar: Missing required elements");
@@ -4786,26 +4794,26 @@ class wr {
4786
4794
  this.isRangeMode = !this.isRangeMode, this.rangeStart = null, this.rangeEnd = null, this.render(), this._emitChange();
4787
4795
  }
4788
4796
  }
4789
- function Zt(i, t) {
4797
+ function Qt(i, t) {
4790
4798
  if (!i.__kupolaInitialized)
4791
4799
  try {
4792
- const e = new wr(i, t);
4800
+ const e = new Cr(i, t);
4793
4801
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4794
4802
  } catch (e) {
4795
4803
  console.error("[Calendar] Error initializing:", e);
4796
4804
  }
4797
4805
  }
4798
- function Cr(i) {
4806
+ function Sr(i) {
4799
4807
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4800
4808
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4801
4809
  }
4802
- function lo() {
4810
+ function co() {
4803
4811
  document.querySelectorAll(".ds-calendar").forEach((i) => {
4804
- Zt(i);
4812
+ Qt(i);
4805
4813
  });
4806
4814
  }
4807
- E.register("calendar", Zt, Cr);
4808
- class Sr {
4815
+ E.register("calendar", Qt, Sr);
4816
+ class Lr {
4809
4817
  constructor(t, e = {}) {
4810
4818
  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();
4811
4819
  }
@@ -4951,22 +4959,22 @@ class Sr {
4951
4959
  }), this._listeners = null, this.input = null, this.element = null;
4952
4960
  }
4953
4961
  }
4954
- function Qt(i, t) {
4962
+ function te(i, t) {
4955
4963
  if (i.__kupolaInitialized) return;
4956
- const e = new Sr(i, t);
4964
+ const e = new Lr(i, t);
4957
4965
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
4958
4966
  }
4959
- function Lr(i) {
4967
+ function Dr(i) {
4960
4968
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
4961
4969
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
4962
4970
  }
4963
- function co() {
4971
+ function ho() {
4964
4972
  document.querySelectorAll(".ds-dynamic-tags").forEach((i) => {
4965
- Qt(i);
4973
+ te(i);
4966
4974
  });
4967
4975
  }
4968
- E.register("dynamic-tags", Qt, Lr);
4969
- class te {
4976
+ E.register("dynamic-tags", te, Dr);
4977
+ class ee {
4970
4978
  constructor(t = {}) {
4971
4979
  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();
4972
4980
  }
@@ -5157,19 +5165,19 @@ class te {
5157
5165
  e && e.removeEventListener("click", this.closeHandler), s && this._prevHandler && s.removeEventListener("click", this._prevHandler), n && this._nextHandler && n.removeEventListener("click", this._nextHandler), this.overlay && this.overlay.parentNode && this.overlay.parentNode.removeChild(this.overlay);
5158
5166
  }
5159
5167
  }
5160
- let O = null;
5161
- function ho() {
5162
- O || (O = new te()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5168
+ let R = null;
5169
+ function uo() {
5170
+ R || (R = new ee()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
5163
5171
  i.addEventListener("click", () => {
5164
5172
  const t = JSON.parse(i.getAttribute("data-image-preview")), e = parseInt(i.getAttribute("data-image-index")) || 0;
5165
- O.show(t, e);
5173
+ R.show(t, e);
5166
5174
  });
5167
5175
  });
5168
5176
  }
5169
- function uo(i, t = 0) {
5170
- O || (O = new te()), O.show(i, t);
5177
+ function po(i, t = 0) {
5178
+ R || (R = new ee()), R.show(i, t);
5171
5179
  }
5172
- class Dr {
5180
+ class Hr {
5173
5181
  constructor(t, e = {}) {
5174
5182
  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();
5175
5183
  }
@@ -5299,22 +5307,22 @@ class Dr {
5299
5307
  }), this._listeners = [], this.closeBtn = null, this.checkbox = null, this.editInput = null, this.element = null;
5300
5308
  }
5301
5309
  }
5302
- function ee(i, t) {
5310
+ function se(i, t) {
5303
5311
  if (i.__kupolaInitialized) return;
5304
- const e = new Dr(i, t);
5312
+ const e = new Hr(i, t);
5305
5313
  i.__kupolaInstance = e, i.__kupolaInitialized = !0;
5306
5314
  }
5307
- function Hr(i) {
5315
+ function Mr(i) {
5308
5316
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5309
5317
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5310
5318
  }
5311
- function po() {
5319
+ function fo() {
5312
5320
  document.querySelectorAll(".ds-tag").forEach((i) => {
5313
- ee(i);
5321
+ se(i);
5314
5322
  });
5315
5323
  }
5316
- E.register("tag", ee, Hr);
5317
- class Mr {
5324
+ E.register("tag", se, Mr);
5325
+ class Ir {
5318
5326
  constructor(t) {
5319
5327
  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();
5320
5328
  }
@@ -5374,22 +5382,22 @@ class Mr {
5374
5382
  this._observer && (this._observer.disconnect(), this._observer = null), this.animated = !1, this.valueElement = null, this.progressFill = null, this.element = null;
5375
5383
  }
5376
5384
  }
5377
- function se(i) {
5385
+ function ie(i) {
5378
5386
  if (i.__kupolaInitialized) return;
5379
- const t = new Mr(i);
5387
+ const t = new Ir(i);
5380
5388
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
5381
5389
  }
5382
- function Ir(i) {
5390
+ function Tr(i) {
5383
5391
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5384
5392
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5385
5393
  }
5386
- function fo() {
5394
+ function mo() {
5387
5395
  document.querySelectorAll(".ds-statcard").forEach((i) => {
5388
- se(i);
5396
+ ie(i);
5389
5397
  });
5390
5398
  }
5391
- E.register("statcard", se, Ir);
5392
- class Tr {
5399
+ E.register("statcard", ie, Tr);
5400
+ class Ar {
5393
5401
  constructor(t, e = {}) {
5394
5402
  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();
5395
5403
  }
@@ -5544,7 +5552,7 @@ class Tr {
5544
5552
  }), this._listeners = null, this.tooltip && this.tooltip.parentNode && this.tooltip.parentNode.removeChild(this.tooltip), this.tooltip = null, this.data = [], this.element = null;
5545
5553
  }
5546
5554
  }
5547
- function ie(i) {
5555
+ function ne(i) {
5548
5556
  if (i.__kupolaInitialized) return;
5549
5557
  const t = i.getAttribute("data-heatmap-data");
5550
5558
  let e = [];
@@ -5552,27 +5560,27 @@ function ie(i) {
5552
5560
  try {
5553
5561
  e = JSON.parse(t);
5554
5562
  } catch {
5555
- e = pt();
5563
+ e = ft();
5556
5564
  }
5557
5565
  else
5558
- e = pt();
5559
- const s = new Tr(i, {
5566
+ e = ft();
5567
+ const s = new Ar(i, {
5560
5568
  data: e,
5561
5569
  onCellClick: (n) => {
5562
5570
  }
5563
5571
  });
5564
5572
  i.__kupolaInstance = s, i.__kupolaInitialized = !0;
5565
5573
  }
5566
- function Ar(i) {
5574
+ function zr(i) {
5567
5575
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
5568
5576
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
5569
5577
  }
5570
- function mo() {
5578
+ function go() {
5571
5579
  document.querySelectorAll(".ds-heatmap").forEach((i) => {
5572
- ie(i);
5580
+ ne(i);
5573
5581
  });
5574
5582
  }
5575
- function pt() {
5583
+ function ft() {
5576
5584
  const i = [], t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
5577
5585
  e.setFullYear(e.getFullYear() - 1);
5578
5586
  for (let s = new Date(e); s <= t; s.setDate(s.getDate() + 1)) {
@@ -5584,8 +5592,8 @@ function pt() {
5584
5592
  }
5585
5593
  return i;
5586
5594
  }
5587
- E.register("heatmap", ie, Ar);
5588
- class zr {
5595
+ E.register("heatmap", ne, zr);
5596
+ class Pr {
5589
5597
  constructor(t, e = {}) {
5590
5598
  this.element = t, this.tooltipEl = null, this.options = e, this.delay = e.delay || parseInt(t.getAttribute("data-tooltip-delay")) || 0, this.hideDelay = e.hideDelay || parseInt(t.getAttribute("data-tooltip-hide-delay")) || 0, this.trigger = e.trigger || t.getAttribute("data-tooltip-trigger") || "hover", this.html = e.html || t.hasAttribute("data-tooltip-html"), this.theme = e.theme || t.getAttribute("data-tooltip-theme") || "default", this.position = e.position || t.getAttribute("data-tooltip-position") || "top", this.animation = e.animation !== !1, this.mouseFollow = e.mouseFollow || t.hasAttribute("data-tooltip-mouse-follow"), this._showTooltip = null, this._hideTooltip = null, this._showTimer = null, this._hideTimer = null, this._clickHandler = null, this._focusHandler = null, this._blurHandler = null, this._mouseMoveHandler = null, this.isVisible = !1;
5591
5599
  }
@@ -5676,20 +5684,20 @@ class zr {
5676
5684
  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);
5677
5685
  }
5678
5686
  }
5679
- function ne(i, t) {
5680
- const e = new zr(i, t);
5687
+ function re(i, t) {
5688
+ const e = new Pr(i, t);
5681
5689
  e.init(), i._kupolaTooltip = e;
5682
5690
  }
5683
- function go(i = document) {
5691
+ function _o(i = document) {
5684
5692
  i.querySelectorAll("[data-tooltip]").forEach((t) => {
5685
- ne(t);
5693
+ re(t);
5686
5694
  });
5687
5695
  }
5688
- function Pr(i) {
5696
+ function $r(i) {
5689
5697
  i._kupolaTooltip && (i._kupolaTooltip.destroy(), i._kupolaTooltip = null);
5690
5698
  }
5691
- E.register("tooltip", ne, Pr);
5692
- class $r {
5699
+ E.register("tooltip", re, $r);
5700
+ class qr {
5693
5701
  constructor() {
5694
5702
  this.validators = {
5695
5703
  required: this.validateRequired,
@@ -5915,7 +5923,7 @@ class $r {
5915
5923
  }[t] || "Invalid input";
5916
5924
  }
5917
5925
  }
5918
- const A = new $r();
5926
+ const A = new qr();
5919
5927
  window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized = !0, document.addEventListener("DOMContentLoaded", () => {
5920
5928
  document.querySelectorAll("form[data-validation]").forEach((i) => {
5921
5929
  i.addEventListener("submit", async (t) => {
@@ -5968,7 +5976,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
5968
5976
  });
5969
5977
  });
5970
5978
  }));
5971
- class qr {
5979
+ class Br {
5972
5980
  constructor(t, e = {}) {
5973
5981
  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();
5974
5982
  }
@@ -6207,7 +6215,7 @@ class qr {
6207
6215
  }), this.data = [], this.dynamicHeightCache.clear(), this.container.innerHTML = "", this._listeners = null, this._scrollHandler = null, this._thumbDragStartHandler = null, this._thumbDragMoveHandler = null, this._thumbDragEndHandler = null, this._wheelHandler = null, this.container = null, this.scrollbarThumb = null, this.element = null;
6208
6216
  }
6209
6217
  }
6210
- function ft(i = 1e3) {
6218
+ function mt(i = 1e3) {
6211
6219
  const t = [], e = ["Document", "Image", "Video", "Folder", "Archive", "Spreadsheet", "Presentation", "Code"];
6212
6220
  for (let s = 1; s <= i; s++) {
6213
6221
  const n = Math.floor(Math.random() * e.length), r = Math.floor(Math.random() * 1e4);
@@ -6220,7 +6228,7 @@ function ft(i = 1e3) {
6220
6228
  }
6221
6229
  return t;
6222
6230
  }
6223
- function Br(i) {
6231
+ function Fr(i) {
6224
6232
  if (i.__kupolaInitialized) return;
6225
6233
  const t = i.getAttribute("data-virtual-list");
6226
6234
  let e = [];
@@ -6228,11 +6236,11 @@ function Br(i) {
6228
6236
  try {
6229
6237
  e = JSON.parse(t);
6230
6238
  } catch {
6231
- e = ft(1e3);
6239
+ e = mt(1e3);
6232
6240
  }
6233
6241
  else
6234
- e = ft(1e3);
6235
- const s = new qr(i, {
6242
+ e = mt(1e3);
6243
+ const s = new Br(i, {
6236
6244
  data: e,
6237
6245
  onItemClick: (n) => {
6238
6246
  },
@@ -6241,12 +6249,12 @@ function Br(i) {
6241
6249
  });
6242
6250
  i.__kupolaInstance = s, i.__kupolaInitialized = !0;
6243
6251
  }
6244
- function Fr(i) {
6252
+ function Nr(i) {
6245
6253
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6246
6254
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6247
6255
  }
6248
- E.register("virtual-list", Br, Fr);
6249
- const Nr = '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"', re = {
6256
+ E.register("virtual-list", Fr, Nr);
6257
+ const Or = '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"', ae = {
6250
6258
  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"/>',
6251
6259
  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"/>',
6252
6260
  mouse: '<rect x="6" y="2" width="12" height="20" rx="6"/><line x1="12" y1="6" x2="12" y2="11"/>',
@@ -6356,19 +6364,19 @@ const Nr = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0
6356
6364
  code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
6357
6365
  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"/>'
6358
6366
  };
6359
- function ae(i, t = 16, e = "0 0 24 24") {
6360
- const s = re[i];
6361
- return s ? `<svg ${Nr.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6367
+ function oe(i, t = 16, e = "0 0 24 24") {
6368
+ const s = ae[i];
6369
+ return s ? `<svg ${Or.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
6362
6370
  }
6363
6371
  function rt(i = document) {
6364
6372
  i.querySelectorAll("[data-icon]").forEach((t) => {
6365
6373
  const e = t.getAttribute("data-icon"), s = +t.getAttribute("data-size") || 16, n = t.getAttribute("data-viewbox") || "0 0 24 24";
6366
- t.innerHTML = ae(e, s, n), t.classList.add("icon");
6374
+ t.innerHTML = oe(e, s, n), t.classList.add("icon");
6367
6375
  });
6368
6376
  }
6369
- const _o = { svg: ae, render: rt, PATHS: re };
6377
+ const yo = { svg: oe, render: rt, PATHS: ae };
6370
6378
  typeof document < "u" && (document.readyState !== "loading" ? rt() : document.addEventListener("DOMContentLoaded", () => rt()));
6371
- class Or {
6379
+ class Rr {
6372
6380
  constructor(t) {
6373
6381
  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();
6374
6382
  }
@@ -6420,22 +6428,22 @@ class Or {
6420
6428
  this.stop(), this.hoursEl = null, this.minutesEl = null, this.secondsEl = null, this.element = null;
6421
6429
  }
6422
6430
  }
6423
- function oe(i) {
6431
+ function le(i) {
6424
6432
  if (i.__kupolaInitialized) return;
6425
- const t = new Or(i);
6433
+ const t = new Rr(i);
6426
6434
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
6427
6435
  }
6428
- function Rr(i) {
6436
+ function Vr(i) {
6429
6437
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6430
6438
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6431
6439
  }
6432
- function yo() {
6440
+ function vo() {
6433
6441
  document.querySelectorAll(".ds-countdown").forEach((t) => {
6434
- oe(t);
6442
+ le(t);
6435
6443
  });
6436
6444
  }
6437
- E.register("countdown", oe, Rr);
6438
- class Vr {
6445
+ E.register("countdown", le, Vr);
6446
+ class Kr {
6439
6447
  constructor(t) {
6440
6448
  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)
6441
6449
  throw new Error("NumberInput: Missing required elements");
@@ -6486,26 +6494,26 @@ class Vr {
6486
6494
  }), this._listeners = null, this.minusBtn = null, this.plusBtn = null, this.inputEl = null, this.element = null;
6487
6495
  }
6488
6496
  }
6489
- function le(i) {
6497
+ function ce(i) {
6490
6498
  if (!i.__kupolaInitialized)
6491
6499
  try {
6492
- const t = new Vr(i);
6500
+ const t = new Kr(i);
6493
6501
  i.__kupolaInstance = t, i.__kupolaInitialized = !0;
6494
6502
  } catch (t) {
6495
6503
  console.error("[NumberInput] Error initializing:", t);
6496
6504
  }
6497
6505
  }
6498
- function Kr(i) {
6506
+ function Wr(i) {
6499
6507
  if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
6500
6508
  i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
6501
6509
  }
6502
- function vo() {
6510
+ function bo() {
6503
6511
  document.querySelectorAll(".ds-number-input").forEach((i) => {
6504
- le(i);
6512
+ ce(i);
6505
6513
  });
6506
6514
  }
6507
- E.register("number-input", le, Kr);
6508
- class Wr {
6515
+ E.register("number-input", ce, Wr);
6516
+ class Yr {
6509
6517
  constructor(t) {
6510
6518
  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 = {
6511
6519
  tolerance: 6,
@@ -6648,22 +6656,22 @@ class Wr {
6648
6656
  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);
6649
6657
  }
6650
6658
  }
6651
- function Yr() {
6659
+ function Ur() {
6652
6660
  document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
6653
- const t = new Wr(i);
6661
+ const t = new Yr(i);
6654
6662
  t.init(), i._kupolaSlideCaptcha = t;
6655
6663
  });
6656
6664
  }
6657
- function Ur(i) {
6665
+ function Xr(i) {
6658
6666
  i._kupolaSlideCaptcha && (i._kupolaSlideCaptcha.destroy(), i._kupolaSlideCaptcha = null);
6659
6667
  }
6660
- function Xr() {
6668
+ function jr() {
6661
6669
  document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
6662
- Ur(i);
6670
+ Xr(i);
6663
6671
  });
6664
6672
  }
6665
- E.register("slide-captcha", Yr, Xr);
6666
- class jr {
6673
+ E.register("slide-captcha", Ur, jr);
6674
+ class Jr {
6667
6675
  constructor(t) {
6668
6676
  this.form = t, this.fields = [], this.validators = {}, this.errorMessages = {}, this._submitHandler = null, this._fieldHandlers = /* @__PURE__ */ new Map(), this._init();
6669
6677
  }
@@ -6803,23 +6811,23 @@ class jr {
6803
6811
  }), this._submitHandler = null, this._fieldHandlers.clear(), this._fieldHandlers = null, this.fields = null, this.validators = null, this.errorMessages = null, this.form = null;
6804
6812
  }
6805
6813
  }
6806
- function Jr(i) {
6814
+ function Gr(i) {
6807
6815
  const t = document.querySelectorAll(i || ".ds-form");
6808
6816
  return t.forEach((e) => {
6809
6817
  if (e._kupolaForm) return;
6810
- const s = new jr(e);
6818
+ const s = new Jr(e);
6811
6819
  e._kupolaForm = s;
6812
6820
  }), t.length;
6813
6821
  }
6814
- function bo(i) {
6822
+ function xo(i) {
6815
6823
  return i._kupolaForm;
6816
6824
  }
6817
- function xo(i) {
6825
+ function Eo(i) {
6818
6826
  const t = i._kupolaForm;
6819
6827
  return t ? t.validate() : !1;
6820
6828
  }
6821
- E.register("form-validation", Jr);
6822
- class Gr {
6829
+ E.register("form-validation", Gr);
6830
+ class Zr {
6823
6831
  constructor() {
6824
6832
  this._queue = /* @__PURE__ */ new Set(), this._scheduled = !1, this._flushDepth = 0, this._maxDepth = 10;
6825
6833
  }
@@ -6846,8 +6854,8 @@ class Gr {
6846
6854
  this._flushDepth--;
6847
6855
  }
6848
6856
  }
6849
- const Zr = new Gr();
6850
- class Qr {
6857
+ const Qr = new Zr();
6858
+ class ta {
6851
6859
  constructor(t, e) {
6852
6860
  this.data = t, this.createdAt = Date.now(), this.ttl = e;
6853
6861
  }
@@ -6858,7 +6866,7 @@ class Qr {
6858
6866
  return !this.isFresh;
6859
6867
  }
6860
6868
  }
6861
- class ce {
6869
+ class he {
6862
6870
  constructor() {
6863
6871
  this._store = /* @__PURE__ */ new Map();
6864
6872
  }
@@ -6867,7 +6875,7 @@ class ce {
6867
6875
  return e || null;
6868
6876
  }
6869
6877
  set(t, e, s = 6e4) {
6870
- this._store.set(t, new Qr(e, s));
6878
+ this._store.set(t, new ta(e, s));
6871
6879
  }
6872
6880
  has(t) {
6873
6881
  return this._store.has(t);
@@ -6890,18 +6898,18 @@ class F extends Error {
6890
6898
  }
6891
6899
  }
6892
6900
  let Q = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
6893
- function Eo(i) {
6901
+ function ko(i) {
6894
6902
  if (!i || typeof i.fetch != "function")
6895
6903
  throw new TypeError("[Kupola] configureHttpClient: client must provide a fetch function");
6896
6904
  Q = i.fetch.bind(i);
6897
6905
  }
6898
- function ko() {
6906
+ function wo() {
6899
6907
  return Q;
6900
6908
  }
6901
- function wo() {
6909
+ function Co() {
6902
6910
  Q = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
6903
6911
  }
6904
- class V {
6912
+ class K {
6905
6913
  constructor(t, e) {
6906
6914
  this.config = t, this.cacheKey = t.cacheKey || String(t.source), this.staleTime = t.staleTime ?? 6e4, this.cache = e, this.subscribers = [], this.pending = null, this.retryCount = t.retry ?? 0, this.retryDelay = t.retryDelay ?? 1e3, this.onError = t.onError || null;
6907
6915
  }
@@ -6912,7 +6920,7 @@ class V {
6912
6920
  };
6913
6921
  }
6914
6922
  notify() {
6915
- Zr.schedule(() => {
6923
+ Qr.schedule(() => {
6916
6924
  this.subscribers.forEach((t) => {
6917
6925
  try {
6918
6926
  t();
@@ -6960,7 +6968,7 @@ class V {
6960
6968
  this.subscribers = [], this.pending = null;
6961
6969
  }
6962
6970
  }
6963
- class ta extends V {
6971
+ class ea extends K {
6964
6972
  constructor(t, e) {
6965
6973
  super(t, e), this.method = t.method || "GET", this.headers = t.headers || {}, this.queryParams = t.query || {};
6966
6974
  }
@@ -6988,7 +6996,7 @@ class ta extends V {
6988
6996
  return typeof a.json == "function" ? await a.json() : a.data !== void 0 ? a.data : a;
6989
6997
  }
6990
6998
  }
6991
- class he extends V {
6999
+ class de extends K {
6992
7000
  constructor(t, e) {
6993
7001
  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) => {
6994
7002
  s.key === this.storageKey && (this.cache.delete(this.cacheKey), this.notify());
@@ -7015,7 +7023,7 @@ class he extends V {
7015
7023
  super.destroy(), this._storageHandler && window.removeEventListener("storage", this._storageHandler);
7016
7024
  }
7017
7025
  }
7018
- class ea extends V {
7026
+ class sa extends K {
7019
7027
  constructor(t, e) {
7020
7028
  super(t, e), this.paramName = t.source.replace("route:", "");
7021
7029
  }
@@ -7025,17 +7033,17 @@ class ea extends V {
7025
7033
  return e ? decodeURIComponent(e[1]) : new URLSearchParams(location.search).get(this.paramName) || "";
7026
7034
  }
7027
7035
  }
7028
- class sa extends V {
7036
+ class ia extends K {
7029
7037
  async fetch(t) {
7030
7038
  return await this.config.source(t);
7031
7039
  }
7032
7040
  }
7033
- class ia extends V {
7041
+ class na extends K {
7034
7042
  async fetch() {
7035
7043
  return this.config.source;
7036
7044
  }
7037
7045
  }
7038
- class de extends V {
7046
+ class ue extends K {
7039
7047
  constructor(t, e) {
7040
7048
  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;
7041
7049
  }
@@ -7075,21 +7083,21 @@ class de extends V {
7075
7083
  this._destroyed = !0, super.destroy(), this.ws && (this.ws.onmessage = null, this.ws.onclose = null, this.ws.close(), this.ws = null);
7076
7084
  }
7077
7085
  }
7078
- function ue(i, t) {
7086
+ function pe(i, t) {
7079
7087
  const e = i.source;
7080
- return typeof e == "function" ? new sa(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new de(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ta(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new he(i, t) : typeof e == "string" && e.startsWith("route:") ? new ea(i, t) : new ia(i, t);
7088
+ return typeof e == "function" ? new ia(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new ue(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new ea(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new de(i, t) : typeof e == "string" && e.startsWith("route:") ? new sa(i, t) : new na(i, t);
7081
7089
  }
7082
- function Co(i, t) {
7083
- const e = {}, s = new ce(), n = [];
7090
+ function So(i, t) {
7091
+ const e = {}, s = new he(), n = [];
7084
7092
  for (const r in t) {
7085
7093
  let p = function() {
7086
- return mt(i);
7094
+ return gt(i);
7087
7095
  }, a = t[r];
7088
7096
  typeof a == "string" && (a = { source: a });
7089
7097
  const o = {
7090
7098
  ...a,
7091
- cacheKey: a.cacheKey || `${r}-${JSON.stringify(mt(i))}`
7092
- }, l = ue(o, s), c = T(null), h = T(!0), d = T(null), u = T(null);
7099
+ cacheKey: a.cacheKey || `${r}-${JSON.stringify(gt(i))}`
7100
+ }, l = pe(o, s), c = T(null), h = T(!0), d = T(null), u = T(null);
7093
7101
  let f = 0;
7094
7102
  async function m() {
7095
7103
  const x = ++f;
@@ -7130,11 +7138,11 @@ function Co(i, t) {
7130
7138
  },
7131
7139
  // For StorageSource
7132
7140
  setValue(x) {
7133
- l instanceof he && (l.setValue(x), c.value = x);
7141
+ l instanceof de && (l.setValue(x), c.value = x);
7134
7142
  },
7135
7143
  // For WebSocketSource
7136
7144
  send(x) {
7137
- l instanceof de && l.send(x);
7145
+ l instanceof ue && l.send(x);
7138
7146
  },
7139
7147
  _source: l
7140
7148
  };
@@ -7146,8 +7154,8 @@ function Co(i, t) {
7146
7154
  }
7147
7155
  }, window.__kupolaDepInstances || (window.__kupolaDepInstances = []), window.__kupolaDepInstances.push(e), e;
7148
7156
  }
7149
- function So(i) {
7150
- const t = new ce(), e = ue(i, t), s = T(null), n = T(!0), r = T(null);
7157
+ function Lo(i) {
7158
+ const t = new he(), e = pe(i, t), s = T(null), n = T(!0), r = T(null);
7151
7159
  let a = 0;
7152
7160
  async function o() {
7153
7161
  const l = ++a;
@@ -7175,7 +7183,7 @@ function So(i) {
7175
7183
  }
7176
7184
  };
7177
7185
  }
7178
- function mt(i) {
7186
+ function gt(i) {
7179
7187
  const t = {};
7180
7188
  for (const e in i) {
7181
7189
  const s = i[e];
@@ -7183,9 +7191,9 @@ function mt(i) {
7183
7191
  }
7184
7192
  return t;
7185
7193
  }
7186
- function Lo() {
7194
+ function Do() {
7187
7195
  }
7188
- class na {
7196
+ class ra {
7189
7197
  constructor(t, e = {}) {
7190
7198
  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();
7191
7199
  }
@@ -7725,10 +7733,10 @@ class na {
7725
7733
  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 = {};
7726
7734
  }
7727
7735
  }
7728
- function pe(i, t) {
7729
- return new na(i, t);
7736
+ function fe(i, t) {
7737
+ return new ra(i, t);
7730
7738
  }
7731
- function Do() {
7739
+ function Ho() {
7732
7740
  document.querySelectorAll("[data-kupola-table]").forEach((i) => {
7733
7741
  const t = i.getAttribute("data-kupola-table");
7734
7742
  let e = {};
@@ -7737,11 +7745,11 @@ function Do() {
7737
7745
  e = JSON.parse(t);
7738
7746
  } catch {
7739
7747
  }
7740
- pe(i, e);
7748
+ fe(i, e);
7741
7749
  });
7742
7750
  }
7743
- E.register("table", pe);
7744
- class ra {
7751
+ E.register("table", fe);
7752
+ class aa {
7745
7753
  constructor(t, e = {}) {
7746
7754
  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();
7747
7755
  }
@@ -7841,9 +7849,9 @@ class ra {
7841
7849
  this.element.innerHTML = "", this.element.classList.remove("kupola-pagination");
7842
7850
  }
7843
7851
  }
7844
- let gt = !1;
7845
- function aa() {
7846
- if (gt || typeof document > "u") return;
7852
+ let _t = !1;
7853
+ function oa() {
7854
+ if (_t || typeof document > "u") return;
7847
7855
  const i = document.createElement("style");
7848
7856
  i.textContent = `
7849
7857
  .kupola-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@@ -7859,13 +7867,13 @@ function aa() {
7859
7867
  .kupola-pagination-jumper { font-size: 14px; color: #666; }
7860
7868
  .kupola-pagination-jumper input { width: 50px; height: 28px; margin: 0 4px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 4px; text-align: center; font-size: 13px; }
7861
7869
  .kupola-pagination-jumper input:focus { outline: none; border-color: #1890ff; }
7862
- `, document.head.appendChild(i), gt = !0;
7870
+ `, document.head.appendChild(i), _t = !0;
7863
7871
  }
7864
- function Ho(i, t) {
7865
- return aa(), new ra(i, t);
7872
+ function Mo(i, t) {
7873
+ return oa(), new aa(i, t);
7866
7874
  }
7867
- let _t = !1;
7868
- class oa extends HTMLElement {
7875
+ let yt = !1;
7876
+ class la extends HTMLElement {
7869
7877
  static get observedAttributes() {
7870
7878
  return ["open"];
7871
7879
  }
@@ -7887,7 +7895,7 @@ class oa extends HTMLElement {
7887
7895
  }
7888
7896
  }
7889
7897
  }
7890
- class la extends HTMLElement {
7898
+ class ca extends HTMLElement {
7891
7899
  static get observedAttributes() {
7892
7900
  return ["title", "position"];
7893
7901
  }
@@ -7902,7 +7910,7 @@ class la extends HTMLElement {
7902
7910
  }
7903
7911
  }
7904
7912
  }
7905
- class ca extends HTMLElement {
7913
+ class ha extends HTMLElement {
7906
7914
  connectedCallback() {
7907
7915
  this._render();
7908
7916
  }
@@ -7920,13 +7928,13 @@ class ca extends HTMLElement {
7920
7928
  }), this.innerHTML = "", this.appendChild(t);
7921
7929
  }
7922
7930
  }
7923
- class ha extends HTMLElement {
7931
+ class da extends HTMLElement {
7924
7932
  static get observedAttributes() {
7925
7933
  return ["title"];
7926
7934
  }
7927
7935
  // Content is read by parent <k-collapse> during its connectedCallback
7928
7936
  }
7929
- class da extends HTMLElement {
7937
+ class ua extends HTMLElement {
7930
7938
  static get observedAttributes() {
7931
7939
  return ["position", "open"];
7932
7940
  }
@@ -7944,7 +7952,7 @@ class da extends HTMLElement {
7944
7952
  }
7945
7953
  }
7946
7954
  }
7947
- class ua extends HTMLElement {
7955
+ class pa extends HTMLElement {
7948
7956
  static get observedAttributes() {
7949
7957
  return ["title", "open"];
7950
7958
  }
@@ -7987,214 +7995,214 @@ class ua extends HTMLElement {
7987
7995
  this.removeAttribute("open");
7988
7996
  }
7989
7997
  }
7990
- function Mo() {
7991
- if (_t || typeof customElements > "u") return;
7992
- _t = !0;
7998
+ function Io() {
7999
+ if (yt || typeof customElements > "u") return;
8000
+ yt = !0;
7993
8001
  const i = [
7994
- ["k-dropdown", oa],
7995
- ["k-tooltip", la],
7996
- ["k-collapse", ca],
7997
- ["k-collapse-item", ha],
7998
- ["k-drawer", da],
7999
- ["k-modal", ua]
8002
+ ["k-dropdown", la],
8003
+ ["k-tooltip", ca],
8004
+ ["k-collapse", ha],
8005
+ ["k-collapse-item", da],
8006
+ ["k-drawer", ua],
8007
+ ["k-modal", pa]
8000
8008
  ];
8001
8009
  for (const [t, e] of i)
8002
8010
  customElements.get(t) || customElements.define(t, e);
8003
8011
  }
8004
8012
  export {
8005
- W as BRAND_OPTIONS,
8006
- Qr as CacheEntry,
8007
- ce as CacheManager,
8008
- wr as Calendar,
8009
- pr as Carousel,
8010
- br as Collapse,
8011
- Er as ColorPicker,
8012
- tr as ComponentInitializerRegistry,
8013
- Or as Countdown,
8014
- or as Datepicker,
8013
+ Y as BRAND_OPTIONS,
8014
+ ta as CacheEntry,
8015
+ he as CacheManager,
8016
+ Cr as Calendar,
8017
+ fr as Carousel,
8018
+ xr as Collapse,
8019
+ kr as ColorPicker,
8020
+ er as ComponentInitializerRegistry,
8021
+ Rr as Countdown,
8022
+ lr as Datepicker,
8015
8023
  F as DependsError,
8016
- V as DependsSource,
8017
- to as Dialog,
8018
- mr as Drawer,
8019
- nr as Dropdown,
8020
- Sr as DynamicTags,
8021
- ta as FetchedSource,
8022
- yr as FileUpload,
8023
- sa as FunctionSource,
8024
- ir as GlobalEvents,
8025
- Tr as Heatmap,
8026
- _o as Icons,
8027
- te as ImagePreview,
8024
+ K as DependsSource,
8025
+ eo as Dialog,
8026
+ gr as Drawer,
8027
+ rr as Dropdown,
8028
+ Lr as DynamicTags,
8029
+ ea as FetchedSource,
8030
+ vr as FileUpload,
8031
+ ia as FunctionSource,
8032
+ nr as GlobalEvents,
8033
+ Ar as Heatmap,
8034
+ yo as Icons,
8035
+ ee as ImagePreview,
8028
8036
  j as KupolaComponent,
8029
- sr as KupolaComponentRegistry,
8030
- Jn as KupolaDataBind,
8031
- Zn as KupolaEventBus,
8032
- jr as KupolaForm,
8033
- Ft as KupolaI18n,
8037
+ ir as KupolaComponentRegistry,
8038
+ Gn as KupolaDataBind,
8039
+ Qn as KupolaEventBus,
8040
+ Jr as KupolaForm,
8041
+ Nt as KupolaI18n,
8034
8042
  at as KupolaLifecycle,
8035
- ra as KupolaPagination,
8043
+ aa as KupolaPagination,
8036
8044
  ct as KupolaStore,
8037
- Gn as KupolaStoreManager,
8038
- na as KupolaTable,
8039
- ma as KupolaUtils,
8040
- $r as KupolaValidator,
8041
- io as Message,
8045
+ Zn as KupolaStoreManager,
8046
+ ra as KupolaTable,
8047
+ ga as KupolaUtils,
8048
+ qr as KupolaValidator,
8049
+ no as Message,
8042
8050
  P as Modal,
8043
- eo as Notification,
8044
- Vr as NumberInput,
8045
- re as PATHS,
8046
- ea as RouteSource,
8047
- Gr as Scheduler,
8048
- rr as Select,
8049
- Wr as SlideCaptcha,
8050
- dr as Slider,
8051
- Mr as StatCard,
8052
- ia as StaticSource,
8053
- he as StorageSource,
8054
- Dr as Tag,
8055
- cr as Timepicker,
8056
- zr as Tooltip,
8057
- qr as VirtualList,
8058
- de as WebSocketSource,
8059
- Za as alertModal,
8060
- ht as applyMixin,
8061
- Ms as arrayUtils,
8062
- ka as bootstrapComponents,
8063
- Ka as cleanupAllDropdowns,
8064
- Xr as cleanupAllSlideCaptchas,
8065
- Cr as cleanupCalendar,
8066
- fr as cleanupCarousel,
8067
- xr as cleanupCollapse,
8068
- kr as cleanupColorPicker,
8069
- Rr as cleanupCountdown,
8070
- lr as cleanupDatepicker,
8071
- gr as cleanupDrawer,
8072
- Ot as cleanupDropdown,
8073
- Lr as cleanupDynamicTags,
8074
- vr as cleanupFileUpload,
8075
- Ar as cleanupHeatmap,
8076
- _r as cleanupModal,
8077
- Kr as cleanupNumberInput,
8078
- ar as cleanupSelect,
8079
- Ur as cleanupSlideCaptcha,
8080
- ur as cleanupSlider,
8081
- Ir as cleanupStatCard,
8082
- Hr as cleanupTag,
8083
- hr as cleanupTimepicker,
8084
- Pr as cleanupTooltip,
8085
- Fr as cleanupVirtualList,
8086
- Lo as clearCache,
8087
- Eo as configureHttpClient,
8088
- Ga as confirmModal,
8089
- ba as createBrandPicker,
8090
- La as createI18n,
8091
- fa as createLifecycle,
8092
- Ut as createModal,
8093
- ue as createSource,
8094
- _a as createStore,
8095
- va as createThemeToggle,
8096
- On as cryptoUtils,
8097
- Qi as dateUtils,
8098
- tn as debounce,
8099
- Sa as defineComponent,
8100
- wa as defineMixin,
8101
- Ba as emit,
8102
- Fa as emitGlobal,
8103
- za as formatCurrency,
8104
- Ta as formatDate,
8105
- Aa as formatNumber,
8051
+ so as Notification,
8052
+ Kr as NumberInput,
8053
+ ae as PATHS,
8054
+ sa as RouteSource,
8055
+ Zr as Scheduler,
8056
+ ar as Select,
8057
+ Yr as SlideCaptcha,
8058
+ ur as Slider,
8059
+ Ir as StatCard,
8060
+ na as StaticSource,
8061
+ de as StorageSource,
8062
+ Hr as Tag,
8063
+ hr as Timepicker,
8064
+ Pr as Tooltip,
8065
+ Br as VirtualList,
8066
+ ue as WebSocketSource,
8067
+ Qa as alertModal,
8068
+ dt as applyMixin,
8069
+ Is as arrayUtils,
8070
+ wa as bootstrapComponents,
8071
+ Wa as cleanupAllDropdowns,
8072
+ jr as cleanupAllSlideCaptchas,
8073
+ Sr as cleanupCalendar,
8074
+ mr as cleanupCarousel,
8075
+ Er as cleanupCollapse,
8076
+ wr as cleanupColorPicker,
8077
+ Vr as cleanupCountdown,
8078
+ cr as cleanupDatepicker,
8079
+ _r as cleanupDrawer,
8080
+ Rt as cleanupDropdown,
8081
+ Dr as cleanupDynamicTags,
8082
+ br as cleanupFileUpload,
8083
+ zr as cleanupHeatmap,
8084
+ yr as cleanupModal,
8085
+ Wr as cleanupNumberInput,
8086
+ or as cleanupSelect,
8087
+ Xr as cleanupSlideCaptcha,
8088
+ pr as cleanupSlider,
8089
+ Tr as cleanupStatCard,
8090
+ Mr as cleanupTag,
8091
+ dr as cleanupTimepicker,
8092
+ $r as cleanupTooltip,
8093
+ Nr as cleanupVirtualList,
8094
+ Do as clearCache,
8095
+ ko as configureHttpClient,
8096
+ Za as confirmModal,
8097
+ xa as createBrandPicker,
8098
+ Da as createI18n,
8099
+ ma as createLifecycle,
8100
+ Xt as createModal,
8101
+ pe as createSource,
8102
+ ya as createStore,
8103
+ ba as createThemeToggle,
8104
+ Rn as cryptoUtils,
8105
+ tn as dateUtils,
8106
+ en as debounce,
8107
+ La as defineComponent,
8108
+ Ca as defineMixin,
8109
+ Fa as emit,
8110
+ Na as emitGlobal,
8111
+ Pa as formatCurrency,
8112
+ Aa as formatDate,
8113
+ za as formatNumber,
8106
8114
  U as getBrand,
8107
- bo as getFormInstance,
8108
- ko as getHttpClient,
8109
- Ra as getListenerCount,
8110
- Ia as getLocale,
8111
- ya as getStore,
8112
- Y as getTheme,
8115
+ xo as getFormInstance,
8116
+ wo as getHttpClient,
8117
+ Va as getListenerCount,
8118
+ Ta as getLocale,
8119
+ va as getStore,
8120
+ O as getTheme,
8113
8121
  H as globalEvents,
8114
- Do as initAllTables,
8115
- Zt as initCalendar,
8116
- lo as initCalendars,
8117
- Yt as initCarousel,
8118
- ja as initCarousels,
8119
- Jt as initCollapse,
8120
- ao as initCollapses,
8121
- Gt as initColorPicker,
8122
- oo as initColorPickers,
8123
- oe as initCountdown,
8124
- yo as initCountdowns,
8125
- Vt as initDatepicker,
8126
- Ya as initDatepickers,
8122
+ Ho as initAllTables,
8123
+ Qt as initCalendar,
8124
+ co as initCalendars,
8125
+ Ut as initCarousel,
8126
+ Ja as initCarousels,
8127
+ Gt as initCollapse,
8128
+ oo as initCollapses,
8129
+ Zt as initColorPicker,
8130
+ lo as initColorPickers,
8131
+ le as initCountdown,
8132
+ vo as initCountdowns,
8133
+ Kt as initDatepicker,
8134
+ Ua as initDatepickers,
8127
8135
  nt as initDrawer,
8128
- Ja as initDrawers,
8129
- Nt as initDropdown,
8130
- Va as initDropdowns,
8131
- Qt as initDynamicTags,
8132
- co as initDynamicTagsAll,
8133
- jt as initFileUpload,
8134
- ro as initFileUploads,
8135
- Jr as initFormValidation,
8136
- ie as initHeatmap,
8137
- mo as initHeatmaps,
8138
- ho as initImagePreview,
8139
- no as initMessages,
8140
- Xt as initModal,
8141
- Qa as initModals,
8142
- so as initNotifications,
8143
- le as initNumberInput,
8144
- vo as initNumberInputs,
8145
- Ho as initPagination,
8146
- Rt as initSelect,
8147
- Wa as initSelects,
8148
- Yr as initSlideCaptchas,
8149
- Wt as initSlider,
8150
- Xa as initSliders,
8151
- se as initStatCard,
8152
- fo as initStatCards,
8153
- pe as initTable,
8154
- ee as initTag,
8155
- po as initTags,
8156
- Qn as initTheme,
8157
- Kt as initTimepicker,
8158
- Ua as initTimepickers,
8159
- ne as initTooltip,
8160
- go as initTooltips,
8161
- Br as initVirtualList,
8162
- dt as kupolaBootstrap,
8136
+ Ga as initDrawers,
8137
+ Ot as initDropdown,
8138
+ Ka as initDropdowns,
8139
+ te as initDynamicTags,
8140
+ ho as initDynamicTagsAll,
8141
+ Jt as initFileUpload,
8142
+ ao as initFileUploads,
8143
+ Gr as initFormValidation,
8144
+ ne as initHeatmap,
8145
+ go as initHeatmaps,
8146
+ uo as initImagePreview,
8147
+ ro as initMessages,
8148
+ jt as initModal,
8149
+ to as initModals,
8150
+ io as initNotifications,
8151
+ ce as initNumberInput,
8152
+ bo as initNumberInputs,
8153
+ Mo as initPagination,
8154
+ Vt as initSelect,
8155
+ Ya as initSelects,
8156
+ Ur as initSlideCaptchas,
8157
+ Yt as initSlider,
8158
+ ja as initSliders,
8159
+ ie as initStatCard,
8160
+ mo as initStatCards,
8161
+ fe as initTable,
8162
+ se as initTag,
8163
+ fo as initTags,
8164
+ tr as initTheme,
8165
+ Wt as initTimepicker,
8166
+ Xa as initTimepickers,
8167
+ re as initTooltip,
8168
+ _o as initTooltips,
8169
+ Fr as initVirtualList,
8170
+ ut as kupolaBootstrap,
8163
8171
  q as kupolaData,
8164
- ga as kupolaEvents,
8172
+ _a as kupolaEvents,
8165
8173
  N as kupolaI18n,
8166
8174
  E as kupolaInitializer,
8167
- pa as kupolaLifecycle,
8175
+ fa as kupolaLifecycle,
8168
8176
  M as kupolaRegistry,
8169
- $t as kupolaStoreManager,
8170
- Ha as n,
8171
- ki as numberUtils,
8172
- Js as objectUtils,
8173
- qa as off,
8174
- Oa as offAll,
8175
- Na as offByScope,
8176
- Pa as on,
8177
- $a as once,
8178
- Xn as preloadUtils,
8177
+ qt as kupolaStoreManager,
8178
+ Ma as n,
8179
+ wi as numberUtils,
8180
+ Gs as objectUtils,
8181
+ Ba as off,
8182
+ Ra as offAll,
8183
+ Oa as offByScope,
8184
+ $a as on,
8185
+ qa as once,
8186
+ jn as preloadUtils,
8179
8187
  T as ref,
8180
- xa as registerComponent,
8181
- Ea as registerLazyComponent,
8182
- Mo as registerWebComponents,
8188
+ Ea as registerComponent,
8189
+ ka as registerLazyComponent,
8190
+ Io as registerWebComponents,
8183
8191
  rt as renderIcon,
8184
- wo as resetHttpClient,
8192
+ Co as resetHttpClient,
8185
8193
  it as setBrand,
8186
- Ma as setLocale,
8194
+ Ia as setLocale,
8187
8195
  st as setTheme,
8188
- uo as showImagePreview,
8189
- Oe as stringUtils,
8190
- ae as svg,
8191
- Da as t,
8192
- en as throttle,
8193
- Co as useDeps,
8194
- Ca as useMixin,
8195
- So as useQuery,
8196
- xo as validateForm,
8196
+ po as showImagePreview,
8197
+ Re as stringUtils,
8198
+ oe as svg,
8199
+ Ha as t,
8200
+ sn as throttle,
8201
+ So as useDeps,
8202
+ Sa as useMixin,
8203
+ Lo as useQuery,
8204
+ Eo as validateForm,
8197
8205
  A as validator,
8198
- At as validatorUtils
8206
+ zt as validatorUtils
8199
8207
  };
8200
8208
  //# sourceMappingURL=kupola.esm.js.map