@cronocode/react-box 3.1.12 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.mjs CHANGED
@@ -1,80 +1,80 @@
1
- import we, { useContext as xe, useState as de, useLayoutEffect as U, useMemo as le, useEffect as ge, useRef as Ne } from "react";
2
- import { jsx as $ } from "react/jsx-runtime";
3
- import T from "./components/baseSvg.mjs";
1
+ import we, { useContext as xe, useState as Z, useRef as fe, useCallback as Ne, useLayoutEffect as B, useMemo as se, useEffect as me } from "react";
2
+ import { jsx as z } from "react/jsx-runtime";
3
+ import H from "./components/baseSvg.mjs";
4
4
  import Fe from "./box.mjs";
5
- function fe(...e) {
6
- return e.reduce((r, l) => l ? typeof l == "string" ? (r.push(l), r) : Array.isArray(l) ? (r.push(...fe(...l)), r) : (Object.entries(l).forEach(([o, t]) => {
5
+ function ye(...e) {
6
+ return e.reduce((r, a) => a ? typeof a == "string" ? (r.push(a), r) : Array.isArray(a) ? (r.push(...ye(...a)), r) : (Object.entries(a).forEach(([o, t]) => {
7
7
  t && r.push(o);
8
8
  }), r) : r, []);
9
9
  }
10
- const Y = 4;
11
- var a;
10
+ const Q = 4;
11
+ var n;
12
12
  ((e) => {
13
13
  ((r) => {
14
- function l(t, n) {
15
- return `${t}${n.replace("/", "-")}`;
14
+ function a(t, l) {
15
+ return `${t}${l.replace("/", "-")}`;
16
16
  }
17
- r.fraction = l;
17
+ r.fraction = a;
18
18
  function o(t) {
19
19
  return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
20
20
  }
21
21
  r.svg = o;
22
22
  })(e.ClassName || (e.ClassName = {})), ((r) => {
23
- function l(x, C, R = Y) {
24
- return `${x / R}rem`;
23
+ function a(C) {
24
+ return `${C / Q}rem`;
25
25
  }
26
- r.rem = l;
27
- function o(x) {
28
- return `${x}px`;
26
+ r.rem = a;
27
+ function o(C) {
28
+ return `${C}px`;
29
29
  }
30
30
  r.px = o;
31
- function t(x) {
32
- const [C, R] = x.split("/");
33
- return `${+C / +R * 100}%`;
31
+ function t(C) {
32
+ const [w, R] = C.split("/");
33
+ return `${+w / +R * 100}%`;
34
34
  }
35
35
  r.fraction = t;
36
- function n(x, C) {
37
- switch (C) {
36
+ function l(C, w) {
37
+ switch (w) {
38
38
  case "fit":
39
39
  return "100%";
40
40
  case "fit-screen":
41
- return x.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
41
+ return C.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
42
42
  default:
43
- return C;
43
+ return w;
44
44
  }
45
45
  }
46
- r.widthHeight = n;
47
- function i(x) {
48
- return (C, R) => `var(--${x}${R});`;
46
+ r.widthHeight = l;
47
+ function u(C) {
48
+ return (w, R) => `var(--${C}${R});`;
49
49
  }
50
- r.variables = i;
51
- function c(x) {
52
- return (C, R) => `var(--${x}${R});`;
50
+ r.variables = u;
51
+ function c(C) {
52
+ return (w, R) => `var(--${C}${R});`;
53
53
  }
54
54
  r.svgVariables = c;
55
- function u(x, C) {
56
- return `repeat(${C},minmax(0,1fr))`;
55
+ function i(C, w) {
56
+ return `repeat(${w},minmax(0,1fr))`;
57
57
  }
58
- r.gridColumns = u;
59
- function m(x, C) {
60
- return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
58
+ r.gridColumns = i;
59
+ function m(C, w) {
60
+ return w === "full-row" ? "1/-1" : `span ${w}/span ${w}`;
61
61
  }
62
62
  r.gridColumn = m;
63
- function f(x, C) {
64
- return `${C}ms`;
63
+ function y(C, w) {
64
+ return `${w}ms`;
65
65
  }
66
- r.ms = f;
67
- function y(x, C) {
68
- return `${C}deg`;
66
+ r.ms = y;
67
+ function d(C, w) {
68
+ return `${w}deg`;
69
69
  }
70
- r.rotate = y;
71
- function z(x, C) {
72
- return C === "xAxis" ? "-1 1" : "1 -1";
70
+ r.rotate = d;
71
+ function V(C, w) {
72
+ return w === "xAxis" ? "-1 1" : "1 -1";
73
73
  }
74
- r.flip = z;
74
+ r.flip = V;
75
75
  })(e.Value || (e.Value = {}));
76
- })(a || (a = {}));
77
- var Z;
76
+ })(n || (n = {}));
77
+ var J;
78
78
  ((e) => {
79
79
  e.colors = {
80
80
  currentColor: "currentColor",
@@ -398,34 +398,34 @@ var Z;
398
398
  "-10/12",
399
399
  "-11/12"
400
400
  ], e.percentString = "";
401
- const l = { ...{
401
+ const a = { ...{
402
402
  inherit: "inherit",
403
403
  none: "none"
404
404
  }, ...e.colors, ...e.bgImages, ...e.shadows }, o = {}, t = {};
405
- let n = {};
406
- function i(y) {
407
- return y in o || (y in n ? (t[y] = n[y], o[y] = n[y]) : y in l ? (t[y] = l[y], o[y] = l[y]) : (t[y] = y, o[y] = y)), `var(--${y})`;
405
+ let l = {};
406
+ function u(d) {
407
+ return d in o || (d in l ? (t[d] = l[d], o[d] = l[d]) : d in a ? (t[d] = a[d], o[d] = a[d]) : (t[d] = d, o[d] = d)), `var(--${d})`;
408
408
  }
409
- e.getVariableValue = i;
409
+ e.getVariableValue = u;
410
410
  function c() {
411
- return Object.entries(o).map(([y, z]) => `--${y}: ${z};`).join("");
411
+ return Object.entries(o).map(([d, V]) => `--${d}: ${V};`).join("");
412
412
  }
413
413
  e.generateVariables = c;
414
- function u() {
415
- const y = { ...t };
416
- return Object.keys(t).forEach((z) => delete t[z]), y;
414
+ function i() {
415
+ const d = { ...t };
416
+ return Object.keys(t).forEach((V) => delete t[V]), d;
417
417
  }
418
- e.getPendingVariables = u;
418
+ e.getPendingVariables = i;
419
419
  function m() {
420
420
  return Object.keys(t).length > 0;
421
421
  }
422
422
  e.hasPendingVariables = m;
423
- function f(y) {
424
- n = y;
423
+ function y(d) {
424
+ l = d;
425
425
  }
426
- e.setUserVariables = f;
427
- })(Z || (Z = {}));
428
- const s = Z, L = {
426
+ e.setUserVariables = y;
427
+ })(J || (J = {}));
428
+ const s = J, T = {
429
429
  /** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
430
430
  appearance: [
431
431
  {
@@ -437,7 +437,7 @@ const s = Z, L = {
437
437
  {
438
438
  values: 0,
439
439
  styleName: "border-width",
440
- valueFormat: a.Value.px
440
+ valueFormat: n.Value.px
441
441
  }
442
442
  ],
443
443
  /** The border-width shorthand CSS property sets the width of an element's left and right border. */
@@ -445,7 +445,7 @@ const s = Z, L = {
445
445
  {
446
446
  values: 0,
447
447
  styleName: "border-inline-width",
448
- valueFormat: a.Value.px
448
+ valueFormat: n.Value.px
449
449
  }
450
450
  ],
451
451
  /** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
@@ -453,7 +453,7 @@ const s = Z, L = {
453
453
  {
454
454
  values: 0,
455
455
  styleName: "border-block-width",
456
- valueFormat: a.Value.px
456
+ valueFormat: n.Value.px
457
457
  }
458
458
  ],
459
459
  /** The border-top-width CSS property sets the width of the top border of an element. */
@@ -461,7 +461,7 @@ const s = Z, L = {
461
461
  {
462
462
  values: 0,
463
463
  styleName: "border-top-width",
464
- valueFormat: a.Value.px
464
+ valueFormat: n.Value.px
465
465
  }
466
466
  ],
467
467
  /** The border-right-width CSS property sets the width of the right border of an element. */
@@ -469,7 +469,7 @@ const s = Z, L = {
469
469
  {
470
470
  values: 0,
471
471
  styleName: "border-right-width",
472
- valueFormat: a.Value.px
472
+ valueFormat: n.Value.px
473
473
  }
474
474
  ],
475
475
  /** The border-bottom-width CSS property sets the width of the bottom border of an element. */
@@ -477,7 +477,7 @@ const s = Z, L = {
477
477
  {
478
478
  values: 0,
479
479
  styleName: "border-bottom-width",
480
- valueFormat: a.Value.px
480
+ valueFormat: n.Value.px
481
481
  }
482
482
  ],
483
483
  /** The border-left-width CSS property sets the width of the left border of an element. */
@@ -485,7 +485,7 @@ const s = Z, L = {
485
485
  {
486
486
  values: 0,
487
487
  styleName: "border-left-width",
488
- valueFormat: a.Value.px
488
+ valueFormat: n.Value.px
489
489
  }
490
490
  ],
491
491
  /** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
@@ -500,7 +500,7 @@ const s = Z, L = {
500
500
  {
501
501
  styleName: "border-radius",
502
502
  values: 0,
503
- valueFormat: a.Value.rem
503
+ valueFormat: n.Value.rem
504
504
  }
505
505
  ],
506
506
  /** The border-top-radius CSS property rounds the top corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -508,7 +508,7 @@ const s = Z, L = {
508
508
  {
509
509
  values: 0,
510
510
  styleName: ["border-top-left-radius", "border-top-right-radius"],
511
- valueFormat: a.Value.rem
511
+ valueFormat: n.Value.rem
512
512
  }
513
513
  ],
514
514
  /** The border-right-radius CSS property rounds the right corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -516,7 +516,7 @@ const s = Z, L = {
516
516
  {
517
517
  values: 0,
518
518
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
519
- valueFormat: a.Value.rem
519
+ valueFormat: n.Value.rem
520
520
  }
521
521
  ],
522
522
  /** The border-bottom-radius CSS property rounds the bottom corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -524,7 +524,7 @@ const s = Z, L = {
524
524
  {
525
525
  values: 0,
526
526
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
527
- valueFormat: a.Value.rem
527
+ valueFormat: n.Value.rem
528
528
  }
529
529
  ],
530
530
  /** The border-left-radius CSS property rounds the left corners of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -532,7 +532,7 @@ const s = Z, L = {
532
532
  {
533
533
  values: 0,
534
534
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
535
- valueFormat: a.Value.rem
535
+ valueFormat: n.Value.rem
536
536
  }
537
537
  ],
538
538
  /** The border-top-left-radius CSS property rounds the top-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -540,7 +540,7 @@ const s = Z, L = {
540
540
  {
541
541
  values: 0,
542
542
  styleName: "border-top-left-radius",
543
- valueFormat: a.Value.rem
543
+ valueFormat: n.Value.rem
544
544
  }
545
545
  ],
546
546
  /** The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -548,7 +548,7 @@ const s = Z, L = {
548
548
  {
549
549
  values: 0,
550
550
  styleName: "border-top-right-radius",
551
- valueFormat: a.Value.rem
551
+ valueFormat: n.Value.rem
552
552
  }
553
553
  ],
554
554
  /** The border-bottom-right-radius CSS property rounds the bottom-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -556,7 +556,7 @@ const s = Z, L = {
556
556
  {
557
557
  values: 0,
558
558
  styleName: "border-bottom-right-radius",
559
- valueFormat: a.Value.rem
559
+ valueFormat: n.Value.rem
560
560
  }
561
561
  ],
562
562
  /** The border-bottom-left-radius CSS property rounds the bottom-left corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner. */
@@ -564,7 +564,7 @@ const s = Z, L = {
564
564
  {
565
565
  values: 0,
566
566
  styleName: "border-bottom-left-radius",
567
- valueFormat: a.Value.rem
567
+ valueFormat: n.Value.rem
568
568
  }
569
569
  ],
570
570
  /** The position CSS property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
@@ -577,15 +577,15 @@ const s = Z, L = {
577
577
  top: [
578
578
  {
579
579
  values: 0,
580
- valueFormat: a.Value.rem
580
+ valueFormat: n.Value.rem
581
581
  },
582
582
  {
583
583
  values: s.percentages,
584
- valueFormat: a.Value.fraction
584
+ valueFormat: n.Value.fraction
585
585
  },
586
586
  {
587
587
  values: s.negativePercentages,
588
- valueFormat: a.Value.fraction
588
+ valueFormat: n.Value.fraction
589
589
  },
590
590
  {
591
591
  values: s.percentString
@@ -595,15 +595,15 @@ const s = Z, L = {
595
595
  right: [
596
596
  {
597
597
  values: 0,
598
- valueFormat: a.Value.rem
598
+ valueFormat: n.Value.rem
599
599
  },
600
600
  {
601
601
  values: s.percentages,
602
- valueFormat: a.Value.fraction
602
+ valueFormat: n.Value.fraction
603
603
  },
604
604
  {
605
605
  values: s.negativePercentages,
606
- valueFormat: a.Value.fraction
606
+ valueFormat: n.Value.fraction
607
607
  },
608
608
  {
609
609
  values: s.percentString
@@ -613,15 +613,15 @@ const s = Z, L = {
613
613
  bottom: [
614
614
  {
615
615
  values: 0,
616
- valueFormat: a.Value.rem
616
+ valueFormat: n.Value.rem
617
617
  },
618
618
  {
619
619
  values: s.percentages,
620
- valueFormat: a.Value.fraction
620
+ valueFormat: n.Value.fraction
621
621
  },
622
622
  {
623
623
  values: s.negativePercentages,
624
- valueFormat: a.Value.fraction
624
+ valueFormat: n.Value.fraction
625
625
  },
626
626
  {
627
627
  values: s.percentString
@@ -631,15 +631,15 @@ const s = Z, L = {
631
631
  left: [
632
632
  {
633
633
  values: 0,
634
- valueFormat: a.Value.rem
634
+ valueFormat: n.Value.rem
635
635
  },
636
636
  {
637
637
  values: s.percentages,
638
- valueFormat: a.Value.fraction
638
+ valueFormat: n.Value.fraction
639
639
  },
640
640
  {
641
641
  values: s.negativePercentages,
642
- valueFormat: a.Value.fraction
642
+ valueFormat: n.Value.fraction
643
643
  },
644
644
  {
645
645
  values: s.percentString
@@ -649,7 +649,7 @@ const s = Z, L = {
649
649
  inset: [
650
650
  {
651
651
  values: 0,
652
- valueFormat: a.Value.rem
652
+ valueFormat: n.Value.rem
653
653
  },
654
654
  {
655
655
  values: s.percentString
@@ -831,7 +831,7 @@ const s = Z, L = {
831
831
  {
832
832
  styleName: "font-size",
833
833
  values: 0,
834
- valueFormat: (e) => a.Value.rem(e, void 0, 16)
834
+ valueFormat: (e) => `${e / 16}rem`
835
835
  },
836
836
  {
837
837
  styleName: "font-size",
@@ -856,7 +856,7 @@ const s = Z, L = {
856
856
  gap: [
857
857
  {
858
858
  values: 0,
859
- valueFormat: a.Value.rem
859
+ valueFormat: n.Value.rem
860
860
  },
861
861
  {
862
862
  values: s.percentString
@@ -867,7 +867,7 @@ const s = Z, L = {
867
867
  {
868
868
  styleName: "row-gap",
869
869
  values: 0,
870
- valueFormat: a.Value.rem
870
+ valueFormat: n.Value.rem
871
871
  },
872
872
  {
873
873
  styleName: "row-gap",
@@ -879,7 +879,7 @@ const s = Z, L = {
879
879
  {
880
880
  styleName: "column-gap",
881
881
  values: 0,
882
- valueFormat: a.Value.rem
882
+ valueFormat: n.Value.rem
883
883
  },
884
884
  {
885
885
  styleName: "column-gap",
@@ -895,7 +895,7 @@ const s = Z, L = {
895
895
  ],
896
896
  /** The height CSS property specifies the height of an element. By default, the property defines the height of the content area. If box-sizing is set to border-box, however, it instead determines the height of the border area. */
897
897
  height: [
898
- { values: 0, valueFormat: a.Value.rem },
898
+ { values: 0, valueFormat: n.Value.rem },
899
899
  {
900
900
  values: ["fit"],
901
901
  valueFormat: () => "100%"
@@ -906,7 +906,7 @@ const s = Z, L = {
906
906
  },
907
907
  {
908
908
  values: s.percentages,
909
- valueFormat: a.Value.fraction
909
+ valueFormat: n.Value.fraction
910
910
  },
911
911
  {
912
912
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -917,7 +917,7 @@ const s = Z, L = {
917
917
  ],
918
918
  /** The min-height CSS property sets the minimum height of an element. It prevents the used value of the height property from becoming smaller than the value specified for min-height. */
919
919
  minHeight: [
920
- { styleName: "min-height", values: 0, valueFormat: a.Value.rem },
920
+ { styleName: "min-height", values: 0, valueFormat: n.Value.rem },
921
921
  {
922
922
  styleName: "min-height",
923
923
  values: ["fit"],
@@ -931,7 +931,7 @@ const s = Z, L = {
931
931
  {
932
932
  styleName: "min-height",
933
933
  values: s.percentages,
934
- valueFormat: a.Value.fraction
934
+ valueFormat: n.Value.fraction
935
935
  },
936
936
  {
937
937
  styleName: "min-height",
@@ -944,7 +944,7 @@ const s = Z, L = {
944
944
  ],
945
945
  /** The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger than the value specified for max-height. */
946
946
  maxHeight: [
947
- { styleName: "max-height", values: 0, valueFormat: a.Value.rem },
947
+ { styleName: "max-height", values: 0, valueFormat: n.Value.rem },
948
948
  {
949
949
  styleName: "max-height",
950
950
  values: ["fit"],
@@ -958,7 +958,7 @@ const s = Z, L = {
958
958
  {
959
959
  styleName: "max-height",
960
960
  values: s.percentages,
961
- valueFormat: a.Value.fraction
961
+ valueFormat: n.Value.fraction
962
962
  },
963
963
  {
964
964
  styleName: "max-height",
@@ -971,7 +971,7 @@ const s = Z, L = {
971
971
  ],
972
972
  /** The width CSS property sets an element's width. By default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area. */
973
973
  width: [
974
- { values: 0, valueFormat: a.Value.rem },
974
+ { values: 0, valueFormat: n.Value.rem },
975
975
  {
976
976
  values: ["fit"],
977
977
  valueFormat: () => "100%"
@@ -982,7 +982,7 @@ const s = Z, L = {
982
982
  },
983
983
  {
984
984
  values: s.percentages,
985
- valueFormat: a.Value.fraction
985
+ valueFormat: n.Value.fraction
986
986
  },
987
987
  {
988
988
  values: ["auto", "fit-content", "max-content", "min-content"]
@@ -993,7 +993,7 @@ const s = Z, L = {
993
993
  ],
994
994
  /** The min-width CSS property sets the minimum width of an element. It prevents the used value of the width property from becoming smaller than the value specified for min-width. */
995
995
  minWidth: [
996
- { styleName: "min-width", values: 0, valueFormat: a.Value.rem },
996
+ { styleName: "min-width", values: 0, valueFormat: n.Value.rem },
997
997
  {
998
998
  styleName: "min-width",
999
999
  values: ["fit"],
@@ -1007,7 +1007,7 @@ const s = Z, L = {
1007
1007
  {
1008
1008
  styleName: "min-width",
1009
1009
  values: s.percentages,
1010
- valueFormat: a.Value.fraction
1010
+ valueFormat: n.Value.fraction
1011
1011
  },
1012
1012
  {
1013
1013
  styleName: "min-width",
@@ -1020,7 +1020,7 @@ const s = Z, L = {
1020
1020
  ],
1021
1021
  /** The max-width CSS property sets the maximum width of an element. It prevents the used value of the width property from becoming larger than the value specified by max-width. */
1022
1022
  maxWidth: [
1023
- { styleName: "max-width", values: 0, valueFormat: a.Value.rem },
1023
+ { styleName: "max-width", values: 0, valueFormat: n.Value.rem },
1024
1024
  {
1025
1025
  styleName: "max-width",
1026
1026
  values: ["fit"],
@@ -1034,7 +1034,7 @@ const s = Z, L = {
1034
1034
  {
1035
1035
  styleName: "max-width",
1036
1036
  values: s.percentages,
1037
- valueFormat: a.Value.fraction
1037
+ valueFormat: n.Value.fraction
1038
1038
  },
1039
1039
  {
1040
1040
  styleName: "max-width",
@@ -1050,7 +1050,7 @@ const s = Z, L = {
1050
1050
  {
1051
1051
  styleName: "letter-spacing",
1052
1052
  values: 0,
1053
- valueFormat: a.Value.px
1053
+ valueFormat: n.Value.px
1054
1054
  }
1055
1055
  ],
1056
1056
  /** The line-height CSS property sets the height of a line box in horizontal writing modes. In vertical writing modes, it sets the width of a line box. It's commonly used to set the distance between lines of text. On block-level elements in horizontal writing modes, it specifies the preferred height of line boxes within the element, and on non-replaced inline elements, it specifies the height that is used to calculate line box height. */
@@ -1058,7 +1058,7 @@ const s = Z, L = {
1058
1058
  {
1059
1059
  styleName: "line-height",
1060
1060
  values: 0,
1061
- valueFormat: a.Value.px
1061
+ valueFormat: n.Value.px
1062
1062
  },
1063
1063
  {
1064
1064
  styleName: "line-height",
@@ -1078,7 +1078,7 @@ const s = Z, L = {
1078
1078
  {
1079
1079
  values: 0,
1080
1080
  styleName: "margin",
1081
- valueFormat: a.Value.rem
1081
+ valueFormat: n.Value.rem
1082
1082
  },
1083
1083
  {
1084
1084
  values: ["auto"],
@@ -1087,7 +1087,7 @@ const s = Z, L = {
1087
1087
  {
1088
1088
  styleName: "margin",
1089
1089
  values: s.percentages,
1090
- valueFormat: a.Value.fraction
1090
+ valueFormat: n.Value.fraction
1091
1091
  },
1092
1092
  {
1093
1093
  values: s.percentString,
@@ -1099,7 +1099,7 @@ const s = Z, L = {
1099
1099
  {
1100
1100
  values: 0,
1101
1101
  styleName: "margin-inline",
1102
- valueFormat: a.Value.rem
1102
+ valueFormat: n.Value.rem
1103
1103
  },
1104
1104
  {
1105
1105
  values: ["auto"],
@@ -1108,7 +1108,7 @@ const s = Z, L = {
1108
1108
  {
1109
1109
  styleName: "margin-inline",
1110
1110
  values: s.percentages,
1111
- valueFormat: a.Value.fraction
1111
+ valueFormat: n.Value.fraction
1112
1112
  },
1113
1113
  {
1114
1114
  values: s.percentString,
@@ -1120,7 +1120,7 @@ const s = Z, L = {
1120
1120
  {
1121
1121
  values: 0,
1122
1122
  styleName: "margin-block",
1123
- valueFormat: a.Value.rem
1123
+ valueFormat: n.Value.rem
1124
1124
  },
1125
1125
  {
1126
1126
  values: ["auto"],
@@ -1129,7 +1129,7 @@ const s = Z, L = {
1129
1129
  {
1130
1130
  styleName: "margin-block",
1131
1131
  values: s.percentages,
1132
- valueFormat: a.Value.fraction
1132
+ valueFormat: n.Value.fraction
1133
1133
  },
1134
1134
  {
1135
1135
  values: s.percentString,
@@ -1141,7 +1141,7 @@ const s = Z, L = {
1141
1141
  {
1142
1142
  values: 0,
1143
1143
  styleName: "margin-top",
1144
- valueFormat: a.Value.rem
1144
+ valueFormat: n.Value.rem
1145
1145
  },
1146
1146
  {
1147
1147
  values: ["auto"],
@@ -1149,7 +1149,7 @@ const s = Z, L = {
1149
1149
  },
1150
1150
  {
1151
1151
  values: s.percentages,
1152
- valueFormat: a.Value.fraction,
1152
+ valueFormat: n.Value.fraction,
1153
1153
  styleName: "margin-top"
1154
1154
  },
1155
1155
  {
@@ -1162,7 +1162,7 @@ const s = Z, L = {
1162
1162
  {
1163
1163
  values: 0,
1164
1164
  styleName: "margin-right",
1165
- valueFormat: a.Value.rem
1165
+ valueFormat: n.Value.rem
1166
1166
  },
1167
1167
  {
1168
1168
  values: ["auto"],
@@ -1170,7 +1170,7 @@ const s = Z, L = {
1170
1170
  },
1171
1171
  {
1172
1172
  values: s.percentages,
1173
- valueFormat: a.Value.fraction,
1173
+ valueFormat: n.Value.fraction,
1174
1174
  styleName: "margin-right"
1175
1175
  },
1176
1176
  {
@@ -1183,7 +1183,7 @@ const s = Z, L = {
1183
1183
  {
1184
1184
  values: 0,
1185
1185
  styleName: "margin-bottom",
1186
- valueFormat: a.Value.rem
1186
+ valueFormat: n.Value.rem
1187
1187
  },
1188
1188
  {
1189
1189
  values: ["auto"],
@@ -1191,7 +1191,7 @@ const s = Z, L = {
1191
1191
  },
1192
1192
  {
1193
1193
  values: s.percentages,
1194
- valueFormat: a.Value.fraction,
1194
+ valueFormat: n.Value.fraction,
1195
1195
  styleName: "margin-bottom"
1196
1196
  },
1197
1197
  {
@@ -1204,7 +1204,7 @@ const s = Z, L = {
1204
1204
  {
1205
1205
  values: 0,
1206
1206
  styleName: "margin-left",
1207
- valueFormat: a.Value.rem
1207
+ valueFormat: n.Value.rem
1208
1208
  },
1209
1209
  {
1210
1210
  values: ["auto"],
@@ -1212,7 +1212,7 @@ const s = Z, L = {
1212
1212
  },
1213
1213
  {
1214
1214
  values: s.percentages,
1215
- valueFormat: a.Value.fraction,
1215
+ valueFormat: n.Value.fraction,
1216
1216
  styleName: "margin-left"
1217
1217
  },
1218
1218
  {
@@ -1225,11 +1225,11 @@ const s = Z, L = {
1225
1225
  {
1226
1226
  values: 0,
1227
1227
  styleName: "padding",
1228
- valueFormat: a.Value.rem
1228
+ valueFormat: n.Value.rem
1229
1229
  },
1230
1230
  {
1231
1231
  values: s.percentages,
1232
- valueFormat: a.Value.fraction,
1232
+ valueFormat: n.Value.fraction,
1233
1233
  styleName: "padding"
1234
1234
  },
1235
1235
  {
@@ -1242,11 +1242,11 @@ const s = Z, L = {
1242
1242
  {
1243
1243
  values: 0,
1244
1244
  styleName: "padding-inline",
1245
- valueFormat: a.Value.rem
1245
+ valueFormat: n.Value.rem
1246
1246
  },
1247
1247
  {
1248
1248
  values: s.percentages,
1249
- valueFormat: a.Value.fraction,
1249
+ valueFormat: n.Value.fraction,
1250
1250
  styleName: "padding-inline"
1251
1251
  },
1252
1252
  {
@@ -1259,11 +1259,11 @@ const s = Z, L = {
1259
1259
  {
1260
1260
  values: 0,
1261
1261
  styleName: "padding-block",
1262
- valueFormat: a.Value.rem
1262
+ valueFormat: n.Value.rem
1263
1263
  },
1264
1264
  {
1265
1265
  values: s.percentages,
1266
- valueFormat: a.Value.fraction,
1266
+ valueFormat: n.Value.fraction,
1267
1267
  styleName: "padding-block"
1268
1268
  },
1269
1269
  {
@@ -1276,11 +1276,11 @@ const s = Z, L = {
1276
1276
  {
1277
1277
  values: 0,
1278
1278
  styleName: "padding-top",
1279
- valueFormat: a.Value.rem
1279
+ valueFormat: n.Value.rem
1280
1280
  },
1281
1281
  {
1282
1282
  values: s.percentages,
1283
- valueFormat: a.Value.fraction,
1283
+ valueFormat: n.Value.fraction,
1284
1284
  styleName: "padding-top"
1285
1285
  },
1286
1286
  {
@@ -1293,11 +1293,11 @@ const s = Z, L = {
1293
1293
  {
1294
1294
  values: 0,
1295
1295
  styleName: "padding-right",
1296
- valueFormat: a.Value.rem
1296
+ valueFormat: n.Value.rem
1297
1297
  },
1298
1298
  {
1299
1299
  values: s.percentages,
1300
- valueFormat: a.Value.fraction,
1300
+ valueFormat: n.Value.fraction,
1301
1301
  styleName: "padding-right"
1302
1302
  },
1303
1303
  {
@@ -1310,11 +1310,11 @@ const s = Z, L = {
1310
1310
  {
1311
1311
  values: 0,
1312
1312
  styleName: "padding-bottom",
1313
- valueFormat: a.Value.rem
1313
+ valueFormat: n.Value.rem
1314
1314
  },
1315
1315
  {
1316
1316
  values: s.percentages,
1317
- valueFormat: a.Value.fraction,
1317
+ valueFormat: n.Value.fraction,
1318
1318
  styleName: "padding-bottom"
1319
1319
  },
1320
1320
  {
@@ -1327,11 +1327,11 @@ const s = Z, L = {
1327
1327
  {
1328
1328
  values: 0,
1329
1329
  styleName: "padding-left",
1330
- valueFormat: a.Value.rem
1330
+ valueFormat: n.Value.rem
1331
1331
  },
1332
1332
  {
1333
1333
  values: s.percentages,
1334
- valueFormat: a.Value.fraction,
1334
+ valueFormat: n.Value.fraction,
1335
1335
  styleName: "padding-left"
1336
1336
  },
1337
1337
  {
@@ -1357,7 +1357,7 @@ const s = Z, L = {
1357
1357
  {
1358
1358
  styleName: "outline-width",
1359
1359
  values: 0,
1360
- valueFormat: a.Value.px
1360
+ valueFormat: n.Value.px
1361
1361
  }
1362
1362
  ],
1363
1363
  /** The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border. */
@@ -1372,7 +1372,7 @@ const s = Z, L = {
1372
1372
  {
1373
1373
  styleName: "outline-offset",
1374
1374
  values: 0,
1375
- valueFormat: a.Value.px
1375
+ valueFormat: n.Value.px
1376
1376
  }
1377
1377
  ],
1378
1378
  /** The overflow CSS shorthand property sets the desired behavior when content does not fit in the element's padding box (overflows) in the horizontal and/or vertical direction. */
@@ -1650,17 +1650,17 @@ const s = Z, L = {
1650
1650
  translateX: [
1651
1651
  {
1652
1652
  values: 0,
1653
- valueFormat: (e) => `translateX(${e / Y}rem)`,
1653
+ valueFormat: (e) => `translateX(${e / Q}rem)`,
1654
1654
  styleName: "transform"
1655
1655
  },
1656
1656
  {
1657
1657
  values: s.percentages,
1658
- valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
1658
+ valueFormat: (e) => `translateX(${n.Value.fraction(e)})`,
1659
1659
  styleName: "transform"
1660
1660
  },
1661
1661
  {
1662
1662
  values: s.negativePercentages,
1663
- valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
1663
+ valueFormat: (e) => `translateX(${n.Value.fraction(e)})`,
1664
1664
  styleName: "transform"
1665
1665
  },
1666
1666
  {
@@ -1673,17 +1673,17 @@ const s = Z, L = {
1673
1673
  translateY: [
1674
1674
  {
1675
1675
  values: 0,
1676
- valueFormat: (e) => `translateY(${e / Y}rem)`,
1676
+ valueFormat: (e) => `translateY(${e / Q}rem)`,
1677
1677
  styleName: "transform"
1678
1678
  },
1679
1679
  {
1680
1680
  values: s.percentages,
1681
- valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
1681
+ valueFormat: (e) => `translateY(${n.Value.fraction(e)})`,
1682
1682
  styleName: "transform"
1683
1683
  },
1684
1684
  {
1685
1685
  values: s.negativePercentages,
1686
- valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
1686
+ valueFormat: (e) => `translateY(${n.Value.fraction(e)})`,
1687
1687
  styleName: "transform"
1688
1688
  },
1689
1689
  {
@@ -1705,7 +1705,7 @@ const s = Z, L = {
1705
1705
  styleName: "backdrop-filter"
1706
1706
  }
1707
1707
  ]
1708
- }, me = {
1708
+ }, be = {
1709
1709
  hover: ":hover",
1710
1710
  focus: ":focus-within",
1711
1711
  hasFocus: ":has(:focus)",
@@ -1729,14 +1729,14 @@ const s = Z, L = {
1729
1729
  selected: '[aria-selected="true"]'
1730
1730
  }, Ve = {
1731
1731
  theme: ""
1732
- }, K = { ...me, ...W, ...Ve }, ye = Object.entries(K).reduce(
1733
- (e, [r], l) => (e[r] = Math.pow(2, l), e),
1732
+ }, K = { ...be, ...W, ...Ve }, he = Object.entries(K).reduce(
1733
+ (e, [r], a) => (e[r] = Math.pow(2, a), e),
1734
1734
  {}
1735
- ), X = Object.entries(K).reduce(
1735
+ ), Y = Object.entries(K).reduce(
1736
1736
  (e, [r]) => {
1737
- const l = ye[r];
1737
+ const a = he[r];
1738
1738
  return Object.entries(e).forEach(([o, t]) => {
1739
- e[+o + l] = [...t, r];
1739
+ e[+o + a] = [...t, r];
1740
1740
  }), e;
1741
1741
  },
1742
1742
  { 0: [] }
@@ -1746,7 +1746,7 @@ const s = Z, L = {
1746
1746
  activeGroup: "active",
1747
1747
  disabledGroup: "disabled",
1748
1748
  selectedGroup: "selected"
1749
- }, se = {
1749
+ }, ue = {
1750
1750
  theme: "theme"
1751
1751
  }, P = {
1752
1752
  /** Styles applied for small screens and larger. >= 640 */
@@ -1760,34 +1760,34 @@ const s = Z, L = {
1760
1760
  /** Styles applied for 2x extra-large screens and larger. >= 1536 */
1761
1761
  xxl: 1536
1762
1762
  };
1763
- var Q;
1763
+ var ee;
1764
1764
  ((e) => {
1765
- function r(n, i, c) {
1766
- const u = { ...n }, m = u.props || {};
1767
- return i.forEach((f) => {
1768
- f in u && (m[f] = u[f], delete u[f]);
1769
- }), c && Object.entries(c).forEach(([f, y]) => {
1770
- m[f] = y;
1771
- }), u.props = m, u;
1765
+ function r(l, u, c) {
1766
+ const i = { ...l }, m = i.props || {};
1767
+ return u.forEach((y) => {
1768
+ y in i && (m[y] = i[y], delete i[y]);
1769
+ }), c && Object.entries(c).forEach(([y, d]) => {
1770
+ m[y] = d;
1771
+ }), i.props = m, i;
1772
1772
  }
1773
1773
  e.buildProps = r;
1774
- function l(n) {
1775
- return !!n && typeof n == "object";
1774
+ function a(l) {
1775
+ return !!l && typeof l == "object";
1776
1776
  }
1777
- e.isObject = l;
1778
- function o(...n) {
1779
- return n.reduce((i, c) => (Object.keys(c ?? {}).forEach((u) => {
1780
- const m = i[u], f = c[u];
1781
- l(f) && "clean" in f && f.clean ? i[u] = f : u in W && typeof f == "boolean" || (u in W && Array.isArray(f) ? i[u] = o(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? i[u] = m.concat(...f) : l(m) && l(f) ? i[u] = o(m, f) : i[u] = f);
1782
- }), i), {});
1777
+ e.isObject = a;
1778
+ function o(...l) {
1779
+ return l.reduce((u, c) => (Object.keys(c ?? {}).forEach((i) => {
1780
+ const m = u[i], y = c[i];
1781
+ a(y) && "clean" in y && y.clean ? u[i] = y : i in W && typeof y == "boolean" || (i in W && Array.isArray(y) ? u[i] = o(m, y[1] ?? {}) : Array.isArray(m) && Array.isArray(y) ? u[i] = m.concat(...y) : a(m) && a(y) ? u[i] = o(m, y) : u[i] = y);
1782
+ }), u), {});
1783
1783
  }
1784
1784
  e.mergeDeep = o;
1785
- function t(n, i) {
1786
- return n in i;
1785
+ function t(l, u) {
1786
+ return l in u;
1787
1787
  }
1788
1788
  e.isKeyOf = t;
1789
- })(Q || (Q = {}));
1790
- const k = Q, ie = {
1789
+ })(ee || (ee = {}));
1790
+ const k = ee, ce = {
1791
1791
  h1: {
1792
1792
  styles: { fontSize: 14 * 2.5 }
1793
1793
  },
@@ -2912,59 +2912,91 @@ const k = Q, ie = {
2912
2912
  };
2913
2913
  function Se(e) {
2914
2914
  const r = { ...e };
2915
- for (const [l, o] of Object.entries(r)) {
2915
+ for (const [a, o] of Object.entries(r)) {
2916
2916
  if (!o.extends) continue;
2917
2917
  const t = r[o.extends];
2918
2918
  if (!t) continue;
2919
- const { extends: n, ...i } = o;
2920
- r[l] = k.mergeDeep({}, t, i);
2919
+ const { extends: l, ...u } = o;
2920
+ r[a] = k.mergeDeep({}, t, u);
2921
2921
  }
2922
2922
  return r;
2923
2923
  }
2924
- var J;
2924
+ var re;
2925
2925
  ((e) => {
2926
- function r(o, t, n) {
2927
- return s.setUserVariables(o), Object.entries(t).forEach(([i, c]) => {
2928
- L[i] = c;
2929
- }), Object.entries(n).forEach(([i, c]) => {
2930
- const u = L[i];
2931
- L[i] = u ? [...c, ...u] : c;
2932
- }), { extendedProps: t, extendedPropTypes: n };
2926
+ function r(o, t, l) {
2927
+ return s.setUserVariables(o), Object.entries(t).forEach(([u, c]) => {
2928
+ T[u] = c;
2929
+ }), Object.entries(l).forEach(([u, c]) => {
2930
+ const i = T[u];
2931
+ T[u] = i ? [...c, ...i] : c;
2932
+ }), { extendedProps: t, extendedPropTypes: l };
2933
2933
  }
2934
- e.extend = r, e.componentsStyles = ie;
2935
- function l(o) {
2936
- return e.componentsStyles = Se(k.mergeDeep(ie, o)), o;
2934
+ e.extend = r, e.componentsStyles = ce;
2935
+ function a(o) {
2936
+ return e.componentsStyles = Se(k.mergeDeep(ce, o)), o;
2937
2937
  }
2938
- e.components = l;
2939
- })(J || (J = {}));
2940
- const $e = J, ee = we.createContext({ theme: "", setTheme: () => {
2938
+ e.components = a;
2939
+ })(re || (re = {}));
2940
+ const $e = re, te = we.createContext({ theme: "", setTheme: () => {
2941
2941
  } });
2942
- function re(e) {
2943
- const { children: r, theme: l, use: o = "local" } = e, [t, n] = de(l ?? "light");
2944
- return U(() => {
2945
- if (l !== void 0) return;
2946
- const i = window.matchMedia("(prefers-color-scheme: dark)");
2947
- n(i.matches ? "dark" : "light");
2948
- const c = (u) => {
2949
- n(u.matches ? "dark" : "light");
2942
+ function oe(e) {
2943
+ const { children: r, theme: a, use: o = "local", storageKey: t } = e, [l, u] = Z(a ?? "light"), [c, i] = Z(a !== void 0), m = fe(null), y = Ne(
2944
+ (d) => {
2945
+ if (d === null) {
2946
+ if (t)
2947
+ try {
2948
+ localStorage.removeItem(t);
2949
+ } catch {
2950
+ }
2951
+ i(!1);
2952
+ } else {
2953
+ if (t)
2954
+ try {
2955
+ localStorage.setItem(t, d);
2956
+ } catch {
2957
+ }
2958
+ u(d), i(!0);
2959
+ }
2960
+ },
2961
+ [t]
2962
+ );
2963
+ return B(() => {
2964
+ a !== void 0 ? (u(a), i(!0)) : i(!1);
2965
+ }, [a]), B(() => {
2966
+ if (c) return;
2967
+ if (t)
2968
+ try {
2969
+ const C = localStorage.getItem(t);
2970
+ if (C) {
2971
+ u(C), i(!0);
2972
+ return;
2973
+ }
2974
+ } catch {
2975
+ }
2976
+ const d = window.matchMedia("(prefers-color-scheme: dark)");
2977
+ u(d.matches ? "dark" : "light");
2978
+ const V = (C) => {
2979
+ u(C.matches ? "dark" : "light");
2950
2980
  };
2951
- return i.addEventListener("change", c), () => i.removeEventListener("change", c);
2952
- }, [l]), U(() => {
2981
+ return d.addEventListener("change", V), () => d.removeEventListener("change", V);
2982
+ }, [c, t]), B(() => {
2953
2983
  if (o === "local") return;
2954
- const i = document.documentElement;
2955
- return i.classList.add(t), () => {
2956
- i.classList.remove(t);
2984
+ const d = document.documentElement;
2985
+ return d.classList.add(l), d.setAttribute("data-theme", l), () => {
2986
+ d.classList.remove(l), d.removeAttribute("data-theme");
2957
2987
  };
2958
- }, [t, o]), o === "local" ? /* @__PURE__ */ $(ee.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ $(Fe, { className: t, children: r }) }) : /* @__PURE__ */ $(ee.Provider, { value: { theme: t, setTheme: n }, children: r });
2988
+ }, [l, o]), B(() => {
2989
+ o !== "local" || !m.current || m.current.setAttribute("data-theme", l);
2990
+ }, [l, o]), o === "local" ? /* @__PURE__ */ z(te.Provider, { value: { theme: l, setTheme: y }, children: /* @__PURE__ */ z(Fe, { ref: m, className: l, children: r }) }) : /* @__PURE__ */ z(te.Provider, { value: { theme: l, setTheme: y }, children: r });
2959
2991
  }
2960
2992
  ((e) => {
2961
2993
  function r() {
2962
- const { theme: l, setTheme: o } = xe(ee);
2963
- return [l, o];
2994
+ const { theme: a, setTheme: o } = xe(te);
2995
+ return [a, o];
2964
2996
  }
2965
2997
  e.useTheme = r;
2966
- })(re || (re = {}));
2967
- const ze = re;
2998
+ })(oe || (oe = {}));
2999
+ const ze = oe;
2968
3000
  class ke {
2969
3001
  constructor() {
2970
3002
  this._index = 0, this._cache = {};
@@ -2973,11 +3005,11 @@ class ke {
2973
3005
  return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
2974
3006
  }
2975
3007
  getByIndex(r) {
2976
- const { first: l, next: o } = Re, t = r - l.length;
3008
+ const { first: a, next: o } = Re, t = r - a.length;
2977
3009
  if (t < 0)
2978
- return l[r];
2979
- const n = Math.floor(t / o.length), i = t - n * o.length;
2980
- return this.getByIndex(n) + o[i];
3010
+ return a[r];
3011
+ const l = Math.floor(t / o.length), u = t - l * o.length;
3012
+ return this.getByIndex(l) + o[u];
2981
3013
  }
2982
3014
  }
2983
3015
  const Re = {
@@ -2985,82 +3017,82 @@ const Re = {
2985
3017
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
2986
3018
  };
2987
3019
  function Ae(e) {
2988
- const { clean: r, component: l, variant: o } = e;
2989
- return le(() => {
3020
+ const { clean: r, component: a, variant: o } = e;
3021
+ return se(() => {
2990
3022
  if (r) return;
2991
- const t = l?.split(".");
3023
+ const t = a?.split(".");
2992
3024
  if (!t) return;
2993
- const n = t.reduce((u, m, f) => f === 0 ? $e.componentsStyles[m] : u?.children?.[m], void 0);
2994
- if (!n) return;
2995
- if (!o) return n.styles;
2996
- const i = fe(o);
2997
- if (i.length === 0) return n.styles;
2998
- const c = k.mergeDeep(...i.map((u) => n.variants?.[u]));
2999
- return n.styles ? k.mergeDeep(n.styles, c) : c;
3000
- }, [r, l, o]);
3025
+ const l = t.reduce((i, m, y) => y === 0 ? $e.componentsStyles[m] : i?.children?.[m], void 0);
3026
+ if (!l) return;
3027
+ if (!o) return l.styles;
3028
+ const u = ye(o);
3029
+ if (u.length === 0) return l.styles;
3030
+ const c = k.mergeDeep(...u.map((i) => l.variants?.[i]));
3031
+ return l.styles ? k.mergeDeep(l.styles, c) : c;
3032
+ }, [r, a, o]);
3001
3033
  }
3002
- const Oe = new ke(), Ee = typeof window < "u" && typeof window.document < "u", H = typeof process == "object" && process.env?.NODE_ENV === "test", je = Ee && !H ? U : ge, be = "_b", I = "_s";
3034
+ const Oe = new ke(), Ie = typeof window < "u" && typeof window.document < "u", G = typeof process == "object" && process.env?.NODE_ENV === "test", Ee = Ie && !G ? B : me, ve = "_b", L = "_s";
3003
3035
  function Me(e, r) {
3004
- const l = Ae(e), o = le(() => l ? k.mergeDeep(l, e) : e, [e, l]), t = [r ? I : be];
3005
- return B.addClassNames(o, t, []), je(() => {
3006
- B.flush();
3036
+ const a = Ae(e), o = se(() => a ? k.mergeDeep(a, e) : e, [e, a]), t = [r ? L : ve];
3037
+ return _.addClassNames(o, t, []), Ee(() => {
3038
+ _.flush();
3007
3039
  }, [o]), t;
3008
3040
  }
3009
- var B;
3041
+ var _;
3010
3042
  ((e) => {
3011
- let r = !0, l = !1;
3012
- const o = /* @__PURE__ */ new Set(), t = [], n = [];
3013
- let i = 0;
3014
- const c = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
3015
- let u = {};
3016
- function m(b, h, w, p, g) {
3017
- Object.entries(b).forEach(([v, d]) => {
3018
- if (d != null)
3019
- if (k.isKeyOf(v, L))
3020
- x(v, d, h, w, p, g);
3021
- else if (k.isKeyOf(v, me))
3022
- m(d, h, [...w, v], p, g);
3043
+ let r = !0, a = !1;
3044
+ const o = /* @__PURE__ */ new Set(), t = [], l = [];
3045
+ let u = 0;
3046
+ const c = Object.keys(T).reduce((b, h, x) => (b[h] = x, b), {});
3047
+ let i = {};
3048
+ function m(b, h, x, p, f) {
3049
+ Object.entries(b).forEach(([v, g]) => {
3050
+ if (g != null)
3051
+ if (k.isKeyOf(v, T))
3052
+ C(v, g, h, x, p, f);
3053
+ else if (k.isKeyOf(v, be))
3054
+ m(g, h, [...x, v], p, f);
3023
3055
  else if (k.isKeyOf(v, W)) {
3024
- if (Array.isArray(d)) {
3025
- const [N, F] = d;
3026
- m(F, h, [...w, v], p, g);
3056
+ if (Array.isArray(g)) {
3057
+ const [N, F] = g;
3058
+ m(F, h, [...x, v], p, f);
3027
3059
  }
3028
- k.isObject(d) && m(d, h, [...w, v], p, g);
3029
- } else k.isKeyOf(v, P) ? m(d, h, w, v, g) : k.isKeyOf(v, D) ? Object.entries(d).forEach(([N, F]) => {
3030
- m(F, h, [...w, D[v]], p, N);
3031
- }) : k.isKeyOf(v, se) && Object.entries(d).forEach(([N, F]) => {
3032
- const S = [...w, se[v]];
3033
- Object.entries(F).forEach(([V, O]) => {
3034
- k.isKeyOf(V, D) ? Object.entries(O).forEach(([M, E]) => {
3060
+ k.isObject(g) && m(g, h, [...x, v], p, f);
3061
+ } else k.isKeyOf(v, P) ? m(g, h, x, v, f) : k.isKeyOf(v, D) ? Object.entries(g).forEach(([N, F]) => {
3062
+ m(F, h, [...x, D[v]], p, N);
3063
+ }) : k.isKeyOf(v, ue) && Object.entries(g).forEach(([N, F]) => {
3064
+ const $ = [...x, ue[v]];
3065
+ Object.entries(F).forEach(([S, I]) => {
3066
+ k.isKeyOf(S, D) ? Object.entries(I).forEach(([U, A]) => {
3035
3067
  m(
3036
- E,
3068
+ A,
3037
3069
  h,
3038
- [...S, D[V]],
3070
+ [...$, D[S]],
3039
3071
  p,
3040
3072
  // Use | as separator to distinguish theme from group name
3041
- `${N}|${M}`
3073
+ `${N}|${U}`
3042
3074
  );
3043
- }) : m({ [V]: O }, h, S, p, N);
3075
+ }) : m({ [S]: I }, h, $, p, N);
3044
3076
  });
3045
3077
  });
3046
3078
  });
3047
3079
  }
3048
3080
  e.addClassNames = m;
3049
- function f() {
3081
+ function y() {
3050
3082
  const b = s.hasPendingVariables();
3051
3083
  if (!r && !b) return;
3052
3084
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
3053
- const h = q(), w = h.sheet;
3054
- if (l) {
3085
+ const h = q(), x = h.sheet;
3086
+ if (a) {
3055
3087
  if (s.hasPendingVariables()) {
3056
- const p = s.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
3057
- if (w && !H)
3088
+ const p = s.getPendingVariables(), f = `:root{${Object.entries(p).map(([v, g]) => `--${v}: ${g};`).join("")}}`;
3089
+ if (x && !G)
3058
3090
  try {
3059
- w.insertRule(g, 0), i++;
3091
+ x.insertRule(f, 0), u++;
3060
3092
  } catch {
3061
3093
  }
3062
3094
  else
3063
- h.textContent = g + `
3095
+ h.textContent = f + `
3064
3096
  ` + h.textContent;
3065
3097
  }
3066
3098
  } else {
@@ -3074,35 +3106,35 @@ var B;
3074
3106
  "button{color: inherit;}",
3075
3107
  'input[type="number"]{-moz-appearance: textfield;}',
3076
3108
  'input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{-webkit-appearance: none;margin: 0;}',
3077
- `.${be}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}`,
3078
- `.${I}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}`,
3079
- `.${I} path,.${I} circle,.${I} rect,.${I} line {transition: all var(--svgTransitionTime);}`
3109
+ `.${ve}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;background-color: initial;transition: all var(--transitionTime);box-sizing: border-box;font-family: inherit;font-size: inherit;}`,
3110
+ `.${L}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}`,
3111
+ `.${L} path,.${L} circle,.${L} rect,.${L} line {transition: all var(--svgTransitionTime);}`
3080
3112
  ];
3081
- if (w && !H)
3082
- for (const g of p)
3113
+ if (x && !G)
3114
+ for (const f of p)
3083
3115
  try {
3084
- w.insertRule(g, i), i++;
3116
+ x.insertRule(f, u), u++;
3085
3117
  } catch {
3086
3118
  }
3087
3119
  else
3088
3120
  h.textContent = p.join(`
3089
3121
  `);
3090
- l = !0;
3122
+ a = !0;
3091
3123
  }
3092
3124
  if (t.length > 0) {
3093
- if (t.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !H)
3094
- for (const [p, g, v] of t) {
3095
- const d = g * 1e5 + p;
3096
- let N = n.length;
3097
- for (let F = 0; F < n.length; F++)
3098
- if (d < n[F]) {
3125
+ if (t.sort((p, f) => p[1] - f[1] || p[0] - f[0]), x && !G)
3126
+ for (const [p, f, v] of t) {
3127
+ const g = f * 1e5 + p;
3128
+ let N = l.length;
3129
+ for (let F = 0; F < l.length; F++)
3130
+ if (g < l[F]) {
3099
3131
  N = F;
3100
3132
  break;
3101
3133
  }
3102
3134
  try {
3103
- w.insertRule(v, i + N), n.splice(N, 0, d);
3135
+ x.insertRule(v, u + N), l.splice(N, 0, g);
3104
3136
  } catch {
3105
- w.insertRule(v, w.cssRules.length), n.push(d);
3137
+ x.insertRule(v, x.cssRules.length), l.push(g);
3106
3138
  }
3107
3139
  }
3108
3140
  else
@@ -3111,59 +3143,65 @@ var B;
3111
3143
  }
3112
3144
  r = !1;
3113
3145
  }
3114
- e.flush = f;
3115
- function y(b, h, w, p, g) {
3116
- const d = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
3117
- if (!d) return null;
3118
- const N = c[b] ?? 0, F = P[p] ?? 0, S = C(
3146
+ e.flush = y;
3147
+ function d(b, h, x, p, f) {
3148
+ const g = T[b].find((S) => Array.isArray(S.values) ? S.values.includes(h) : typeof h == typeof S.values);
3149
+ if (!g) return null;
3150
+ const N = c[b] ?? 0, F = P[p] ?? 0, $ = w(
3119
3151
  b,
3120
3152
  h,
3121
- w,
3153
+ x,
3122
3154
  p,
3123
- g
3155
+ f
3124
3156
  );
3125
- if (g) {
3126
- const V = X[w], O = V.includes("theme"), E = (O ? V.filter((j) => j !== "theme") : V).map((j) => K[j]).join(""), G = g.includes("|");
3127
- let A;
3128
- if (G) {
3129
- const [j, Ce] = g.split("|");
3130
- A = `.${j} .${Ce}${E} .${S}`;
3131
- } else O ? A = `.${g} .${S}${E}` : A = `.${g}${E} .${S}`;
3132
- const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h, s.getVariableValue) ?? h, ne = `${he}{${ve.map((j) => `${j}:${pe}`).join(";")}}`;
3133
- return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${ne}}`, sortIndex: N, breakpointOrder: F } : { rule: ne, sortIndex: N, breakpointOrder: F };
3157
+ if (f) {
3158
+ const S = Y[x], I = S.includes("theme"), A = (I ? S.filter((O) => O !== "theme") : S).map((O) => K[O]).join(""), j = f.includes("|");
3159
+ let E;
3160
+ if (j) {
3161
+ const [O, X] = f.split("|");
3162
+ E = `.${O} .${X}${A} .${$}`;
3163
+ } else I ? E = `.${f} .${$}${A}` : E = `.${f}${A} .${$}`;
3164
+ const pe = g.selector?.(E, "") ?? E, Ce = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? b], ie = `${pe}{${Ce.map((O) => {
3165
+ const X = g.valueFormat?.(h, s.getVariableValue, O) ?? h;
3166
+ return `${O}:${X}`;
3167
+ }).join(";")}}`;
3168
+ return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${ie}}`, sortIndex: N, breakpointOrder: F } : { rule: ie, sortIndex: N, breakpointOrder: F };
3134
3169
  } else {
3135
- const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${S}`, V) ?? `.${S}${V}`, M = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], E = d.valueFormat?.(h, s.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${E}`).join(";")}}`;
3136
- return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${G}}`, sortIndex: N, breakpointOrder: F } : { rule: G, sortIndex: N, breakpointOrder: F };
3170
+ const S = Y[x].map((j) => K[j]).join(""), I = g.selector?.(`.${$}`, S) ?? `.${$}${S}`, U = Array.isArray(g.styleName) ? g.styleName : [g.styleName ?? b], A = `${I}{${U.map((j) => {
3171
+ const E = g.valueFormat?.(h, s.getVariableValue, j) ?? h;
3172
+ return `${j}:${E}`;
3173
+ }).join(";")}}`;
3174
+ return p !== "normal" ? { rule: `@media(min-width: ${P[p]}px){${A}}`, sortIndex: N, breakpointOrder: F } : { rule: A, sortIndex: N, breakpointOrder: F };
3137
3175
  }
3138
3176
  }
3139
- function z() {
3140
- u = {}, o.clear(), t.length = 0, n.length = 0, i = 0, l = !1;
3177
+ function V() {
3178
+ i = {}, o.clear(), t.length = 0, l.length = 0, u = 0, a = !1;
3141
3179
  }
3142
- e.clear = z;
3143
- function x(b, h, w, p, g = "normal", v) {
3180
+ e.clear = V;
3181
+ function C(b, h, x, p, f = "normal", v) {
3144
3182
  if (h == null) return;
3145
- const d = p.reduce((S, V) => S + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
3183
+ const g = p.reduce(($, S) => $ + he[S], 0), N = w(b, h, g, f, v), F = `${f}-${g}-${b}-${h}-${v ?? ""}`;
3146
3184
  if (!o.has(F)) {
3147
3185
  o.add(F);
3148
- const S = y(b, h, d, g, v);
3149
- S && (t.push([S.sortIndex, S.breakpointOrder, S.rule]), r = !0), u[g] ? u[g][d] ? u[g][d][b] || (u[g][d][b] = /* @__PURE__ */ new Set()) : u[g][d] = { [b]: /* @__PURE__ */ new Set() } : u[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (u[g][d].__parents ? u[g][d].__parents[v] ? u[g][d].__parents[v][b] || (u[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : u[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : u[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, u[g][d].__parents[v][b].add(h)) : u[g][d][b].add(h);
3186
+ const $ = d(b, h, g, f, v);
3187
+ $ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), i[f] ? i[f][g] ? i[f][g][b] || (i[f][g][b] = /* @__PURE__ */ new Set()) : i[f][g] = { [b]: /* @__PURE__ */ new Set() } : i[f] = { [g]: { [b]: /* @__PURE__ */ new Set() } }, v ? (i[f][g].__parents ? i[f][g].__parents[v] ? i[f][g].__parents[v][b] || (i[f][g].__parents[v][b] = /* @__PURE__ */ new Set()) : i[f][g].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : i[f][g].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, i[f][g].__parents[v][b].add(h)) : i[f][g][b].add(h);
3150
3188
  }
3151
- w.push(N);
3189
+ x.push(N);
3152
3190
  }
3153
- function C(b, h, w, p, g) {
3154
- const v = X[w], d = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
3155
- return H ? d : Oe.getIdentity(d);
3191
+ function w(b, h, x, p, f) {
3192
+ const v = Y[x], g = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${f ? `${f}-` : ""}${b}-${h}`;
3193
+ return G ? g : Oe.getIdentity(g);
3156
3194
  }
3157
3195
  const R = "crono-styles";
3158
3196
  function q() {
3159
3197
  let b = document.getElementById(R);
3160
3198
  return b || (b = document.createElement("style"), b.setAttribute("id", R), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
3161
3199
  }
3162
- })(B || (B = {}));
3163
- var ue;
3200
+ })(_ || (_ = {}));
3201
+ var de;
3164
3202
  ((e) => {
3165
- e.flush = B.flush, e.clear = B.clear;
3166
- })(ue || (ue = {}));
3203
+ e.flush = _.flush, e.clear = _.clear;
3204
+ })(de || (de = {}));
3167
3205
  Array.prototype.removeBy || (Array.prototype.removeBy = function(e) {
3168
3206
  return this.filter((r) => !e(r));
3169
3207
  });
@@ -3175,12 +3213,12 @@ Array.prototype.add || (Array.prototype.add = function(...e) {
3175
3213
  return r.push(...e), r;
3176
3214
  });
3177
3215
  Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
3178
- return this.reduce((l, o, t) => l + e(o, t), r);
3216
+ return this.reduce((a, o, t) => a + e(o, t), r);
3179
3217
  });
3180
3218
  Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
3181
3219
  return [...this].sort((o, t) => {
3182
- const n = e(o), i = e(t);
3183
- return n < i ? r === "DESC" ? 1 : -1 : n > i ? r === "DESC" ? -1 : 1 : 0;
3220
+ const l = e(o), u = e(t);
3221
+ return l < u ? r === "DESC" ? 1 : -1 : l > u ? r === "DESC" ? -1 : 1 : 0;
3184
3222
  });
3185
3223
  });
3186
3224
  Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
@@ -3193,54 +3231,54 @@ Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
3193
3231
  });
3194
3232
  Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
3195
3233
  return this.reduce(
3196
- (r, l) => {
3197
- const o = e(l);
3234
+ (r, a) => {
3235
+ const o = e(a);
3198
3236
  if (!o) return r;
3199
- const [t, n] = o;
3200
- return r[t] = n, r;
3237
+ const [t, l] = o;
3238
+ return r[t] = l, r;
3201
3239
  },
3202
3240
  {}
3203
3241
  );
3204
3242
  });
3205
3243
  Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
3206
- const l = this.reduce((o, t, n) => {
3207
- const i = e(t, n);
3208
- return r && typeof i != "number" && !i || (o.has(i) === !1 && o.set(i, []), o.get(i)?.push(t)), o;
3244
+ const a = this.reduce((o, t, l) => {
3245
+ const u = e(t, l);
3246
+ return r && typeof u != "number" && !u || (o.has(u) === !1 && o.set(u, []), o.get(u)?.push(t)), o;
3209
3247
  }, /* @__PURE__ */ new Map());
3210
- return Array.from(l, ([o, t]) => ({ key: o, values: t }));
3248
+ return Array.from(a, ([o, t]) => ({ key: o, values: t }));
3211
3249
  });
3212
3250
  function Ge(e) {
3213
- const { node: r = null, event: l = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [i, c] = de(!1), u = Ne(null);
3214
- return ge(() => {
3215
- function m(C) {
3216
- (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3251
+ const { node: r = null, event: a = "click", hideOnScroll: o = !1, hideOnResize: t = !1, hideOnEscape: l = !0 } = e ?? {}, [u, c] = Z(!1), i = fe(null);
3252
+ return me(() => {
3253
+ function m(w) {
3254
+ (r ?? i.current)?.contains(w.target) === !1 && c(!1);
3217
3255
  }
3218
- function f() {
3256
+ function y() {
3219
3257
  c(!1);
3220
3258
  }
3221
- function y(C) {
3222
- (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3259
+ function d(w) {
3260
+ (r ?? i.current)?.contains(w.target) === !1 && c(!1);
3223
3261
  }
3224
- function z(C) {
3225
- C.key === "Escape" && c(!1);
3262
+ function V(w) {
3263
+ w.key === "Escape" && c(!1);
3226
3264
  }
3227
- const x = new AbortController();
3228
- return i && (window.addEventListener(l, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), o && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
3229
- x.abort();
3265
+ const C = new AbortController();
3266
+ return u && (window.addEventListener(a, m, C), l && window.addEventListener("keydown", V, C), t && window.addEventListener("resize", y, C), o && window.addEventListener("scroll", d, { signal: C.signal, capture: !0 })), () => {
3267
+ C.abort();
3230
3268
  };
3231
- }, [r, i]), [i, c, u];
3269
+ }, [r, u]), [u, c, i];
3232
3270
  }
3233
- const Ie = {
3271
+ const je = {
3234
3272
  selected: "aria-selected"
3235
3273
  };
3236
- var ce;
3274
+ var ge;
3237
3275
  ((e) => {
3238
- function r(l, o, t) {
3239
- l !== void 0 && l != null && (t[Ie[o] ?? o] = Array.isArray(l) ? l[0] : l);
3276
+ function r(a, o, t) {
3277
+ a !== void 0 && a != null && (t[je[o] ?? o] = Array.isArray(a) ? a[0] : a);
3240
3278
  }
3241
3279
  e.assignBooleanProp = r;
3242
- })(ce || (ce = {}));
3243
- function De(e) {
3280
+ })(ge || (ge = {}));
3281
+ function Ue(e) {
3244
3282
  let r;
3245
3283
  return Object.defineProperty({
3246
3284
  clear() {
@@ -3253,19 +3291,19 @@ function De(e) {
3253
3291
  function Le(e, r) {
3254
3292
  if (!e) return { score: 1, matches: [] };
3255
3293
  if (!r) return null;
3256
- const l = e.toLowerCase(), o = r.toLowerCase();
3257
- let t = 0, n = 0;
3258
- const i = [];
3259
- let c = -1, u = 0, m = 0;
3260
- for (; t < l.length && n < o.length; )
3261
- l[t] === o[n] ? (c === -1 && (c = n), t++, m++, u += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (u += 5), e[t - 1] === r[n] && (u += 1)) : (c !== -1 && (i.push([c, n]), c = -1), m = 0), n++;
3262
- return c !== -1 && i.push([c, n]), t < l.length ? null : (u = u / r.length, { score: u, matches: i });
3294
+ const a = e.toLowerCase(), o = r.toLowerCase();
3295
+ let t = 0, l = 0;
3296
+ const u = [];
3297
+ let c = -1, i = 0, m = 0;
3298
+ for (; t < a.length && l < o.length; )
3299
+ a[t] === o[l] ? (c === -1 && (c = l), t++, m++, i += m, (l === 0 || /\s|_|-/.test(r[l - 1])) && (i += 5), e[t - 1] === r[l] && (i += 1)) : (c !== -1 && (u.push([c, l]), c = -1), m = 0), l++;
3300
+ return c !== -1 && u.push([c, l]), t < a.length ? null : (i = i / r.length, { score: i, matches: u });
3263
3301
  }
3264
- function Pe(e, r) {
3302
+ function De(e, r) {
3265
3303
  return Le(e, r) !== null;
3266
3304
  }
3267
- function Ue(e) {
3268
- return /* @__PURE__ */ $(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ $(
3305
+ function Pe(e) {
3306
+ return /* @__PURE__ */ z(H, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ z(
3269
3307
  "path",
3270
3308
  {
3271
3309
  fillRule: "evenodd",
@@ -3274,43 +3312,43 @@ function Ue(e) {
3274
3312
  }
3275
3313
  ) });
3276
3314
  }
3277
- var te;
3315
+ var ae;
3278
3316
  ((e) => {
3279
- function r(l, o = 300) {
3280
- let t = !1, n;
3281
- return (...i) => {
3317
+ function r(a, o = 300) {
3318
+ let t = !1, l;
3319
+ return (...u) => {
3282
3320
  if (t) {
3283
- n = i;
3321
+ l = u;
3284
3322
  return;
3285
3323
  }
3286
- l(...i), t = !0, setTimeout(() => {
3287
- t = !1, n && l(...n);
3324
+ a(...u), t = !0, setTimeout(() => {
3325
+ t = !1, l && a(...l);
3288
3326
  }, o);
3289
3327
  };
3290
3328
  }
3291
3329
  e.throttle = r;
3292
- })(te || (te = {}));
3293
- const We = te, _ = /* @__PURE__ */ new Map();
3330
+ })(ae || (ae = {}));
3331
+ const We = ae, M = /* @__PURE__ */ new Map();
3294
3332
  function Ke() {
3295
- const [e] = ze.useTheme(), r = le(() => {
3296
- const l = "crono-box";
3297
- let o = document.getElementById(l);
3298
- return o || (o = document.createElement("div"), o.id = l, document.body.appendChild(o)), o;
3333
+ const [e] = ze.useTheme(), r = se(() => {
3334
+ const a = "crono-box";
3335
+ let o = document.getElementById(a);
3336
+ return o || (o = document.createElement("div"), o.id = a, document.body.appendChild(o)), o;
3299
3337
  }, []);
3300
- return U(() => {
3338
+ return B(() => {
3301
3339
  if (!e) return;
3302
- const l = _.get(e) ?? 0;
3303
- return _.set(e, l + 1), l === 0 && r.classList.add(e), () => {
3304
- const t = (_.get(e) ?? 1) - 1;
3305
- t <= 0 ? (_.delete(e), r.classList.remove(e)) : _.set(e, t);
3340
+ const a = M.get(e) ?? 0;
3341
+ return M.set(e, a + 1), a === 0 && r.classList.add(e), () => {
3342
+ const t = (M.get(e) ?? 1) - 1;
3343
+ t <= 0 ? (M.delete(e), r.classList.remove(e)) : M.set(e, t);
3306
3344
  };
3307
3345
  }, [r, e]), r;
3308
3346
  }
3309
3347
  function qe(e) {
3310
- return /* @__PURE__ */ $(T, { ...e, children: /* @__PURE__ */ $("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3348
+ return /* @__PURE__ */ z(H, { ...e, children: /* @__PURE__ */ z("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3311
3349
  }
3312
3350
  function Xe(e) {
3313
- return /* @__PURE__ */ $(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ $(
3351
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ z(
3314
3352
  "path",
3315
3353
  {
3316
3354
  strokeWidth: 4,
@@ -3319,68 +3357,68 @@ function Xe(e) {
3319
3357
  ) });
3320
3358
  }
3321
3359
  function Ye(e) {
3322
- return /* @__PURE__ */ $(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ $("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
3360
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ z("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
3323
3361
  }
3324
3362
  function Ze(e) {
3325
- return /* @__PURE__ */ $(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ $("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
3363
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ z("path", { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" }) });
3326
3364
  }
3327
- var oe;
3365
+ var le;
3328
3366
  ((e) => {
3329
- function r(l) {
3330
- return l.charAt(0).toUpperCase() + l.slice(1);
3367
+ function r(a) {
3368
+ return a.charAt(0).toUpperCase() + a.slice(1);
3331
3369
  }
3332
3370
  e.capitalize = r;
3333
- })(oe || (oe = {}));
3334
- const Qe = oe;
3371
+ })(le || (le = {}));
3372
+ const Qe = le;
3335
3373
  function Je(e) {
3336
- return /* @__PURE__ */ $(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ $("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
3374
+ return /* @__PURE__ */ z(H, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ z("path", { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" }) });
3337
3375
  }
3338
- var ae;
3376
+ var ne;
3339
3377
  ((e) => {
3340
3378
  function r(o) {
3341
3379
  const t = Array.from(o.elements).reduce(
3342
- (n, i) => {
3343
- const c = i.name;
3344
- return c && (n[c] || (n[c] = []), n[c].push(i)), n;
3380
+ (l, u) => {
3381
+ const c = u.name;
3382
+ return c && (l[c] || (l[c] = []), l[c].push(u)), l;
3345
3383
  },
3346
3384
  {}
3347
3385
  );
3348
- return Object.entries(t).reduce((n, [i, c]) => {
3386
+ return Object.entries(t).reduce((l, [u, c]) => {
3349
3387
  if (c.length === 1) {
3350
- const u = c[0];
3351
- l(n, i, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
3388
+ const i = c[0];
3389
+ a(l, u, i.type === "checkbox" || i.type === "radio" ? i.checked : i.value);
3352
3390
  } else {
3353
- const u = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
3354
- l(n, i, u);
3391
+ const i = c.reduce((m, y) => (y.type === "checkbox" || y.type === "radio" ? y.checked && m.push(y.value) : m.push(y.value), m), []);
3392
+ a(l, u, i);
3355
3393
  }
3356
- return n;
3394
+ return l;
3357
3395
  }, {});
3358
3396
  }
3359
3397
  e.getFormEntries = r;
3360
- function l(o, t, n) {
3398
+ function a(o, t, l) {
3361
3399
  if (t.includes(".")) {
3362
- const i = t.split(".");
3400
+ const u = t.split(".");
3363
3401
  let c = o;
3364
- i.forEach((u, m) => {
3365
- if (i.length > m + 1) {
3366
- const f = u.match(/^(.+)\[(\d)\]$/);
3367
- if (f) {
3368
- const [, y, z] = f;
3369
- c[y] = c[y] || [], c[y][z] = c[y][z] || {}, c = c[y][z];
3402
+ u.forEach((i, m) => {
3403
+ if (u.length > m + 1) {
3404
+ const y = i.match(/^(.+)\[(\d)\]$/);
3405
+ if (y) {
3406
+ const [, d, V] = y;
3407
+ c[d] = c[d] || [], c[d][V] = c[d][V] || {}, c = c[d][V];
3370
3408
  } else
3371
- c[u] = c[u] || {}, c = c[u];
3409
+ c[i] = c[i] || {}, c = c[i];
3372
3410
  } else
3373
- c[u] = n;
3411
+ c[i] = l;
3374
3412
  });
3375
3413
  } else
3376
- o[t] = n;
3414
+ o[t] = l;
3377
3415
  }
3378
- })(ae || (ae = {}));
3379
- const er = ae;
3416
+ })(ne || (ne = {}));
3417
+ const er = ne;
3380
3418
  export {
3381
- ce as B,
3419
+ ge as B,
3382
3420
  Xe as D,
3383
- Ue as E,
3421
+ Pe as E,
3384
3422
  We as F,
3385
3423
  Ye as G,
3386
3424
  k as O,
@@ -3390,13 +3428,13 @@ export {
3390
3428
  s as V,
3391
3429
  $e as a,
3392
3430
  Ge as b,
3393
- fe as c,
3431
+ ye as c,
3394
3432
  Je as d,
3395
3433
  er as e,
3396
- Pe as f,
3434
+ De as f,
3397
3435
  Qe as g,
3398
3436
  Ke as h,
3399
- ue as i,
3400
- De as m,
3437
+ de as i,
3438
+ Ue as m,
3401
3439
  Me as u
3402
3440
  };