@cronocode/react-box 3.1.10 → 3.1.12

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,36 +1,36 @@
1
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 S } from "react/jsx-runtime";
2
+ import { jsx as $ } from "react/jsx-runtime";
3
3
  import T from "./components/baseSvg.mjs";
4
4
  import Fe from "./box.mjs";
5
5
  function fe(...e) {
6
- return e.reduce((r, a) => a ? typeof a == "string" ? (r.push(a), r) : Array.isArray(a) ? (r.push(...fe(...a)), r) : (Object.entries(a).forEach(([l, t]) => {
7
- t && r.push(l);
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]) => {
7
+ t && r.push(o);
8
8
  }), r) : r, []);
9
9
  }
10
10
  const Y = 4;
11
- var o;
11
+ var a;
12
12
  ((e) => {
13
13
  ((r) => {
14
- function a(t, n) {
14
+ function l(t, n) {
15
15
  return `${t}${n.replace("/", "-")}`;
16
16
  }
17
- r.fraction = a;
18
- function l(t) {
17
+ r.fraction = l;
18
+ function o(t) {
19
19
  return [`${t} path`, `${t} circle`, `${t} rect`, `${t} line`];
20
20
  }
21
- r.svg = l;
21
+ r.svg = o;
22
22
  })(e.ClassName || (e.ClassName = {})), ((r) => {
23
- function a(x, C, k = Y) {
24
- return `${x / k}rem`;
23
+ function l(x, C, R = Y) {
24
+ return `${x / R}rem`;
25
25
  }
26
- r.rem = a;
27
- function l(x) {
26
+ r.rem = l;
27
+ function o(x) {
28
28
  return `${x}px`;
29
29
  }
30
- r.px = l;
30
+ r.px = o;
31
31
  function t(x) {
32
- const [C, k] = x.split("/");
33
- return `${+C / +k * 100}%`;
32
+ const [C, R] = x.split("/");
33
+ return `${+C / +R * 100}%`;
34
34
  }
35
35
  r.fraction = t;
36
36
  function n(x, C) {
@@ -44,18 +44,18 @@ var o;
44
44
  }
45
45
  }
46
46
  r.widthHeight = n;
47
- function u(x) {
48
- return (C, k) => `var(--${x}${k});`;
47
+ function i(x) {
48
+ return (C, R) => `var(--${x}${R});`;
49
49
  }
50
- r.variables = u;
50
+ r.variables = i;
51
51
  function c(x) {
52
- return (C, k) => `var(--${x}${k});`;
52
+ return (C, R) => `var(--${x}${R});`;
53
53
  }
54
54
  r.svgVariables = c;
55
- function s(x, C) {
55
+ function u(x, C) {
56
56
  return `repeat(${C},minmax(0,1fr))`;
57
57
  }
58
- r.gridColumns = s;
58
+ r.gridColumns = u;
59
59
  function m(x, C) {
60
60
  return C === "full-row" ? "1/-1" : `span ${C}/span ${C}`;
61
61
  }
@@ -73,7 +73,7 @@ var o;
73
73
  }
74
74
  r.flip = z;
75
75
  })(e.Value || (e.Value = {}));
76
- })(o || (o = {}));
76
+ })(a || (a = {}));
77
77
  var Z;
78
78
  ((e) => {
79
79
  e.colors = {
@@ -398,24 +398,24 @@ var Z;
398
398
  "-10/12",
399
399
  "-11/12"
400
400
  ], e.percentString = "";
401
- const a = { ...{
401
+ const l = { ...{
402
402
  inherit: "inherit",
403
403
  none: "none"
404
- }, ...e.colors, ...e.bgImages, ...e.shadows }, l = {}, t = {};
404
+ }, ...e.colors, ...e.bgImages, ...e.shadows }, o = {}, t = {};
405
405
  let n = {};
406
- function u(y) {
407
- return y in l || (y in n ? (t[y] = n[y], l[y] = n[y]) : y in a ? (t[y] = a[y], l[y] = a[y]) : (t[y] = y, l[y] = y)), `var(--${y})`;
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})`;
408
408
  }
409
- e.getVariableValue = u;
409
+ e.getVariableValue = i;
410
410
  function c() {
411
- return Object.entries(l).map(([y, z]) => `--${y}: ${z};`).join("");
411
+ return Object.entries(o).map(([y, z]) => `--${y}: ${z};`).join("");
412
412
  }
413
413
  e.generateVariables = c;
414
- function s() {
414
+ function u() {
415
415
  const y = { ...t };
416
416
  return Object.keys(t).forEach((z) => delete t[z]), y;
417
417
  }
418
- e.getPendingVariables = s;
418
+ e.getPendingVariables = u;
419
419
  function m() {
420
420
  return Object.keys(t).length > 0;
421
421
  }
@@ -425,7 +425,7 @@ var Z;
425
425
  }
426
426
  e.setUserVariables = f;
427
427
  })(Z || (Z = {}));
428
- const i = Z, L = {
428
+ const s = Z, L = {
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 i = Z, L = {
437
437
  {
438
438
  values: 0,
439
439
  styleName: "border-width",
440
- valueFormat: o.Value.px
440
+ valueFormat: a.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 i = Z, L = {
445
445
  {
446
446
  values: 0,
447
447
  styleName: "border-inline-width",
448
- valueFormat: o.Value.px
448
+ valueFormat: a.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 i = Z, L = {
453
453
  {
454
454
  values: 0,
455
455
  styleName: "border-block-width",
456
- valueFormat: o.Value.px
456
+ valueFormat: a.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 i = Z, L = {
461
461
  {
462
462
  values: 0,
463
463
  styleName: "border-top-width",
464
- valueFormat: o.Value.px
464
+ valueFormat: a.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 i = Z, L = {
469
469
  {
470
470
  values: 0,
471
471
  styleName: "border-right-width",
472
- valueFormat: o.Value.px
472
+ valueFormat: a.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 i = Z, L = {
477
477
  {
478
478
  values: 0,
479
479
  styleName: "border-bottom-width",
480
- valueFormat: o.Value.px
480
+ valueFormat: a.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 i = Z, L = {
485
485
  {
486
486
  values: 0,
487
487
  styleName: "border-left-width",
488
- valueFormat: o.Value.px
488
+ valueFormat: a.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 i = Z, L = {
500
500
  {
501
501
  styleName: "border-radius",
502
502
  values: 0,
503
- valueFormat: o.Value.rem
503
+ valueFormat: a.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 i = Z, L = {
508
508
  {
509
509
  values: 0,
510
510
  styleName: ["border-top-left-radius", "border-top-right-radius"],
511
- valueFormat: o.Value.rem
511
+ valueFormat: a.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 i = Z, L = {
516
516
  {
517
517
  values: 0,
518
518
  styleName: ["border-top-right-radius", "border-bottom-right-radius"],
519
- valueFormat: o.Value.rem
519
+ valueFormat: a.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 i = Z, L = {
524
524
  {
525
525
  values: 0,
526
526
  styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
527
- valueFormat: o.Value.rem
527
+ valueFormat: a.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 i = Z, L = {
532
532
  {
533
533
  values: 0,
534
534
  styleName: ["border-top-left-radius", "border-bottom-left-radius"],
535
- valueFormat: o.Value.rem
535
+ valueFormat: a.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 i = Z, L = {
540
540
  {
541
541
  values: 0,
542
542
  styleName: "border-top-left-radius",
543
- valueFormat: o.Value.rem
543
+ valueFormat: a.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 i = Z, L = {
548
548
  {
549
549
  values: 0,
550
550
  styleName: "border-top-right-radius",
551
- valueFormat: o.Value.rem
551
+ valueFormat: a.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 i = Z, L = {
556
556
  {
557
557
  values: 0,
558
558
  styleName: "border-bottom-right-radius",
559
- valueFormat: o.Value.rem
559
+ valueFormat: a.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 i = Z, L = {
564
564
  {
565
565
  values: 0,
566
566
  styleName: "border-bottom-left-radius",
567
- valueFormat: o.Value.rem
567
+ valueFormat: a.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,82 +577,82 @@ const i = Z, L = {
577
577
  top: [
578
578
  {
579
579
  values: 0,
580
- valueFormat: o.Value.rem
580
+ valueFormat: a.Value.rem
581
581
  },
582
582
  {
583
- values: i.percentages,
584
- valueFormat: o.Value.fraction
583
+ values: s.percentages,
584
+ valueFormat: a.Value.fraction
585
585
  },
586
586
  {
587
- values: i.negativePercentages,
588
- valueFormat: o.Value.fraction
587
+ values: s.negativePercentages,
588
+ valueFormat: a.Value.fraction
589
589
  },
590
590
  {
591
- values: i.percentString
591
+ values: s.percentString
592
592
  }
593
593
  ],
594
594
  /** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
595
595
  right: [
596
596
  {
597
597
  values: 0,
598
- valueFormat: o.Value.rem
598
+ valueFormat: a.Value.rem
599
599
  },
600
600
  {
601
- values: i.percentages,
602
- valueFormat: o.Value.fraction
601
+ values: s.percentages,
602
+ valueFormat: a.Value.fraction
603
603
  },
604
604
  {
605
- values: i.negativePercentages,
606
- valueFormat: o.Value.fraction
605
+ values: s.negativePercentages,
606
+ valueFormat: a.Value.fraction
607
607
  },
608
608
  {
609
- values: i.percentString
609
+ values: s.percentString
610
610
  }
611
611
  ],
612
612
  /** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
613
613
  bottom: [
614
614
  {
615
615
  values: 0,
616
- valueFormat: o.Value.rem
616
+ valueFormat: a.Value.rem
617
617
  },
618
618
  {
619
- values: i.percentages,
620
- valueFormat: o.Value.fraction
619
+ values: s.percentages,
620
+ valueFormat: a.Value.fraction
621
621
  },
622
622
  {
623
- values: i.negativePercentages,
624
- valueFormat: o.Value.fraction
623
+ values: s.negativePercentages,
624
+ valueFormat: a.Value.fraction
625
625
  },
626
626
  {
627
- values: i.percentString
627
+ values: s.percentString
628
628
  }
629
629
  ],
630
630
  /** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
631
631
  left: [
632
632
  {
633
633
  values: 0,
634
- valueFormat: o.Value.rem
634
+ valueFormat: a.Value.rem
635
635
  },
636
636
  {
637
- values: i.percentages,
638
- valueFormat: o.Value.fraction
637
+ values: s.percentages,
638
+ valueFormat: a.Value.fraction
639
639
  },
640
640
  {
641
- values: i.negativePercentages,
642
- valueFormat: o.Value.fraction
641
+ values: s.negativePercentages,
642
+ valueFormat: a.Value.fraction
643
643
  },
644
644
  {
645
- values: i.percentString
645
+ values: s.percentString
646
646
  }
647
647
  ],
648
648
  /** The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the same multi-value syntax of the margin shorthand. */
649
649
  inset: [
650
650
  {
651
651
  values: 0,
652
- valueFormat: o.Value.rem
652
+ valueFormat: a.Value.rem
653
653
  },
654
654
  {
655
- values: i.percentString
655
+ values: s.percentString
656
656
  }
657
657
  ],
658
658
  /** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
@@ -831,7 +831,7 @@ const i = Z, L = {
831
831
  {
832
832
  styleName: "font-size",
833
833
  values: 0,
834
- valueFormat: (e) => o.Value.rem(e, void 0, 16)
834
+ valueFormat: (e) => a.Value.rem(e, void 0, 16)
835
835
  },
836
836
  {
837
837
  styleName: "font-size",
@@ -856,10 +856,10 @@ const i = Z, L = {
856
856
  gap: [
857
857
  {
858
858
  values: 0,
859
- valueFormat: o.Value.rem
859
+ valueFormat: a.Value.rem
860
860
  },
861
861
  {
862
- values: i.percentString
862
+ values: s.percentString
863
863
  }
864
864
  ],
865
865
  /** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
@@ -867,11 +867,11 @@ const i = Z, L = {
867
867
  {
868
868
  styleName: "row-gap",
869
869
  values: 0,
870
- valueFormat: o.Value.rem
870
+ valueFormat: a.Value.rem
871
871
  },
872
872
  {
873
873
  styleName: "row-gap",
874
- values: i.percentString
874
+ values: s.percentString
875
875
  }
876
876
  ],
877
877
  /** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
@@ -879,11 +879,11 @@ const i = Z, L = {
879
879
  {
880
880
  styleName: "column-gap",
881
881
  values: 0,
882
- valueFormat: o.Value.rem
882
+ valueFormat: a.Value.rem
883
883
  },
884
884
  {
885
885
  styleName: "column-gap",
886
- values: i.percentString
886
+ values: s.percentString
887
887
  }
888
888
  ],
889
889
  /** The order CSS property sets the order to lay out an item in a flex or grid container. Items in a container are sorted by ascending order value and then by their source code order. Items not given an explicit order value are assigned the default value of 0. */
@@ -895,7 +895,7 @@ const i = 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: o.Value.rem },
898
+ { values: 0, valueFormat: a.Value.rem },
899
899
  {
900
900
  values: ["fit"],
901
901
  valueFormat: () => "100%"
@@ -905,19 +905,19 @@ const i = Z, L = {
905
905
  valueFormat: () => "100vh"
906
906
  },
907
907
  {
908
- values: i.percentages,
909
- valueFormat: o.Value.fraction
908
+ values: s.percentages,
909
+ valueFormat: a.Value.fraction
910
910
  },
911
911
  {
912
912
  values: ["auto", "fit-content", "max-content", "min-content"]
913
913
  },
914
914
  {
915
- values: i.percentString
915
+ values: s.percentString
916
916
  }
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: o.Value.rem },
920
+ { styleName: "min-height", values: 0, valueFormat: a.Value.rem },
921
921
  {
922
922
  styleName: "min-height",
923
923
  values: ["fit"],
@@ -930,8 +930,8 @@ const i = Z, L = {
930
930
  },
931
931
  {
932
932
  styleName: "min-height",
933
- values: i.percentages,
934
- valueFormat: o.Value.fraction
933
+ values: s.percentages,
934
+ valueFormat: a.Value.fraction
935
935
  },
936
936
  {
937
937
  styleName: "min-height",
@@ -939,12 +939,12 @@ const i = Z, L = {
939
939
  },
940
940
  {
941
941
  styleName: "min-height",
942
- values: i.percentString
942
+ values: s.percentString
943
943
  }
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: o.Value.rem },
947
+ { styleName: "max-height", values: 0, valueFormat: a.Value.rem },
948
948
  {
949
949
  styleName: "max-height",
950
950
  values: ["fit"],
@@ -957,8 +957,8 @@ const i = Z, L = {
957
957
  },
958
958
  {
959
959
  styleName: "max-height",
960
- values: i.percentages,
961
- valueFormat: o.Value.fraction
960
+ values: s.percentages,
961
+ valueFormat: a.Value.fraction
962
962
  },
963
963
  {
964
964
  styleName: "max-height",
@@ -966,12 +966,12 @@ const i = Z, L = {
966
966
  },
967
967
  {
968
968
  styleName: "max-height",
969
- values: i.percentString
969
+ values: s.percentString
970
970
  }
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: o.Value.rem },
974
+ { values: 0, valueFormat: a.Value.rem },
975
975
  {
976
976
  values: ["fit"],
977
977
  valueFormat: () => "100%"
@@ -981,19 +981,19 @@ const i = Z, L = {
981
981
  valueFormat: () => "100vw"
982
982
  },
983
983
  {
984
- values: i.percentages,
985
- valueFormat: o.Value.fraction
984
+ values: s.percentages,
985
+ valueFormat: a.Value.fraction
986
986
  },
987
987
  {
988
988
  values: ["auto", "fit-content", "max-content", "min-content"]
989
989
  },
990
990
  {
991
- values: i.percentString
991
+ values: s.percentString
992
992
  }
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: o.Value.rem },
996
+ { styleName: "min-width", values: 0, valueFormat: a.Value.rem },
997
997
  {
998
998
  styleName: "min-width",
999
999
  values: ["fit"],
@@ -1006,8 +1006,8 @@ const i = Z, L = {
1006
1006
  },
1007
1007
  {
1008
1008
  styleName: "min-width",
1009
- values: i.percentages,
1010
- valueFormat: o.Value.fraction
1009
+ values: s.percentages,
1010
+ valueFormat: a.Value.fraction
1011
1011
  },
1012
1012
  {
1013
1013
  styleName: "min-width",
@@ -1015,12 +1015,12 @@ const i = Z, L = {
1015
1015
  },
1016
1016
  {
1017
1017
  styleName: "min-width",
1018
- values: i.percentString
1018
+ values: s.percentString
1019
1019
  }
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: o.Value.rem },
1023
+ { styleName: "max-width", values: 0, valueFormat: a.Value.rem },
1024
1024
  {
1025
1025
  styleName: "max-width",
1026
1026
  values: ["fit"],
@@ -1033,8 +1033,8 @@ const i = Z, L = {
1033
1033
  },
1034
1034
  {
1035
1035
  styleName: "max-width",
1036
- values: i.percentages,
1037
- valueFormat: o.Value.fraction
1036
+ values: s.percentages,
1037
+ valueFormat: a.Value.fraction
1038
1038
  },
1039
1039
  {
1040
1040
  styleName: "max-width",
@@ -1042,7 +1042,7 @@ const i = Z, L = {
1042
1042
  },
1043
1043
  {
1044
1044
  styleName: "max-width",
1045
- values: i.percentString
1045
+ values: s.percentString
1046
1046
  }
1047
1047
  ],
1048
1048
  /** The letter-spacing CSS property sets the horizontal spacing behavior between text characters. This value is added to the natural spacing between characters while rendering the text. Positive values of letter-spacing causes characters to spread farther apart, while negative values of letter-spacing bring characters closer together. */
@@ -1050,7 +1050,7 @@ const i = Z, L = {
1050
1050
  {
1051
1051
  styleName: "letter-spacing",
1052
1052
  values: 0,
1053
- valueFormat: o.Value.px
1053
+ valueFormat: a.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 i = Z, L = {
1058
1058
  {
1059
1059
  styleName: "line-height",
1060
1060
  values: 0,
1061
- valueFormat: o.Value.px
1061
+ valueFormat: a.Value.px
1062
1062
  },
1063
1063
  {
1064
1064
  styleName: "line-height",
@@ -1078,7 +1078,7 @@ const i = Z, L = {
1078
1078
  {
1079
1079
  values: 0,
1080
1080
  styleName: "margin",
1081
- valueFormat: o.Value.rem
1081
+ valueFormat: a.Value.rem
1082
1082
  },
1083
1083
  {
1084
1084
  values: ["auto"],
@@ -1086,11 +1086,11 @@ const i = Z, L = {
1086
1086
  },
1087
1087
  {
1088
1088
  styleName: "margin",
1089
- values: i.percentages,
1090
- valueFormat: o.Value.fraction
1089
+ values: s.percentages,
1090
+ valueFormat: a.Value.fraction
1091
1091
  },
1092
1092
  {
1093
- values: i.percentString,
1093
+ values: s.percentString,
1094
1094
  styleName: "margin"
1095
1095
  }
1096
1096
  ],
@@ -1099,7 +1099,7 @@ const i = Z, L = {
1099
1099
  {
1100
1100
  values: 0,
1101
1101
  styleName: "margin-inline",
1102
- valueFormat: o.Value.rem
1102
+ valueFormat: a.Value.rem
1103
1103
  },
1104
1104
  {
1105
1105
  values: ["auto"],
@@ -1107,11 +1107,11 @@ const i = Z, L = {
1107
1107
  },
1108
1108
  {
1109
1109
  styleName: "margin-inline",
1110
- values: i.percentages,
1111
- valueFormat: o.Value.fraction
1110
+ values: s.percentages,
1111
+ valueFormat: a.Value.fraction
1112
1112
  },
1113
1113
  {
1114
- values: i.percentString,
1114
+ values: s.percentString,
1115
1115
  styleName: "margin-inline"
1116
1116
  }
1117
1117
  ],
@@ -1120,7 +1120,7 @@ const i = Z, L = {
1120
1120
  {
1121
1121
  values: 0,
1122
1122
  styleName: "margin-block",
1123
- valueFormat: o.Value.rem
1123
+ valueFormat: a.Value.rem
1124
1124
  },
1125
1125
  {
1126
1126
  values: ["auto"],
@@ -1128,11 +1128,11 @@ const i = Z, L = {
1128
1128
  },
1129
1129
  {
1130
1130
  styleName: "margin-block",
1131
- values: i.percentages,
1132
- valueFormat: o.Value.fraction
1131
+ values: s.percentages,
1132
+ valueFormat: a.Value.fraction
1133
1133
  },
1134
1134
  {
1135
- values: i.percentString,
1135
+ values: s.percentString,
1136
1136
  styleName: "margin-block"
1137
1137
  }
1138
1138
  ],
@@ -1141,19 +1141,19 @@ const i = Z, L = {
1141
1141
  {
1142
1142
  values: 0,
1143
1143
  styleName: "margin-top",
1144
- valueFormat: o.Value.rem
1144
+ valueFormat: a.Value.rem
1145
1145
  },
1146
1146
  {
1147
1147
  values: ["auto"],
1148
1148
  styleName: "margin-top"
1149
1149
  },
1150
1150
  {
1151
- values: i.percentages,
1152
- valueFormat: o.Value.fraction,
1151
+ values: s.percentages,
1152
+ valueFormat: a.Value.fraction,
1153
1153
  styleName: "margin-top"
1154
1154
  },
1155
1155
  {
1156
- values: i.percentString,
1156
+ values: s.percentString,
1157
1157
  styleName: "margin-top"
1158
1158
  }
1159
1159
  ],
@@ -1162,19 +1162,19 @@ const i = Z, L = {
1162
1162
  {
1163
1163
  values: 0,
1164
1164
  styleName: "margin-right",
1165
- valueFormat: o.Value.rem
1165
+ valueFormat: a.Value.rem
1166
1166
  },
1167
1167
  {
1168
1168
  values: ["auto"],
1169
1169
  styleName: "margin-right"
1170
1170
  },
1171
1171
  {
1172
- values: i.percentages,
1173
- valueFormat: o.Value.fraction,
1172
+ values: s.percentages,
1173
+ valueFormat: a.Value.fraction,
1174
1174
  styleName: "margin-right"
1175
1175
  },
1176
1176
  {
1177
- values: i.percentString,
1177
+ values: s.percentString,
1178
1178
  styleName: "margin-right"
1179
1179
  }
1180
1180
  ],
@@ -1183,19 +1183,19 @@ const i = Z, L = {
1183
1183
  {
1184
1184
  values: 0,
1185
1185
  styleName: "margin-bottom",
1186
- valueFormat: o.Value.rem
1186
+ valueFormat: a.Value.rem
1187
1187
  },
1188
1188
  {
1189
1189
  values: ["auto"],
1190
1190
  styleName: "margin-bottom"
1191
1191
  },
1192
1192
  {
1193
- values: i.percentages,
1194
- valueFormat: o.Value.fraction,
1193
+ values: s.percentages,
1194
+ valueFormat: a.Value.fraction,
1195
1195
  styleName: "margin-bottom"
1196
1196
  },
1197
1197
  {
1198
- values: i.percentString,
1198
+ values: s.percentString,
1199
1199
  styleName: "margin-bottom"
1200
1200
  }
1201
1201
  ],
@@ -1204,19 +1204,19 @@ const i = Z, L = {
1204
1204
  {
1205
1205
  values: 0,
1206
1206
  styleName: "margin-left",
1207
- valueFormat: o.Value.rem
1207
+ valueFormat: a.Value.rem
1208
1208
  },
1209
1209
  {
1210
1210
  values: ["auto"],
1211
1211
  styleName: "margin-left"
1212
1212
  },
1213
1213
  {
1214
- values: i.percentages,
1215
- valueFormat: o.Value.fraction,
1214
+ values: s.percentages,
1215
+ valueFormat: a.Value.fraction,
1216
1216
  styleName: "margin-left"
1217
1217
  },
1218
1218
  {
1219
- values: i.percentString,
1219
+ values: s.percentString,
1220
1220
  styleName: "margin-left"
1221
1221
  }
1222
1222
  ],
@@ -1225,15 +1225,15 @@ const i = Z, L = {
1225
1225
  {
1226
1226
  values: 0,
1227
1227
  styleName: "padding",
1228
- valueFormat: o.Value.rem
1228
+ valueFormat: a.Value.rem
1229
1229
  },
1230
1230
  {
1231
- values: i.percentages,
1232
- valueFormat: o.Value.fraction,
1231
+ values: s.percentages,
1232
+ valueFormat: a.Value.fraction,
1233
1233
  styleName: "padding"
1234
1234
  },
1235
1235
  {
1236
- values: i.percentString,
1236
+ values: s.percentString,
1237
1237
  styleName: "padding"
1238
1238
  }
1239
1239
  ],
@@ -1242,15 +1242,15 @@ const i = Z, L = {
1242
1242
  {
1243
1243
  values: 0,
1244
1244
  styleName: "padding-inline",
1245
- valueFormat: o.Value.rem
1245
+ valueFormat: a.Value.rem
1246
1246
  },
1247
1247
  {
1248
- values: i.percentages,
1249
- valueFormat: o.Value.fraction,
1248
+ values: s.percentages,
1249
+ valueFormat: a.Value.fraction,
1250
1250
  styleName: "padding-inline"
1251
1251
  },
1252
1252
  {
1253
- values: i.percentString,
1253
+ values: s.percentString,
1254
1254
  styleName: "padding-inline"
1255
1255
  }
1256
1256
  ],
@@ -1259,15 +1259,15 @@ const i = Z, L = {
1259
1259
  {
1260
1260
  values: 0,
1261
1261
  styleName: "padding-block",
1262
- valueFormat: o.Value.rem
1262
+ valueFormat: a.Value.rem
1263
1263
  },
1264
1264
  {
1265
- values: i.percentages,
1266
- valueFormat: o.Value.fraction,
1265
+ values: s.percentages,
1266
+ valueFormat: a.Value.fraction,
1267
1267
  styleName: "padding-block"
1268
1268
  },
1269
1269
  {
1270
- values: i.percentString,
1270
+ values: s.percentString,
1271
1271
  styleName: "padding-block"
1272
1272
  }
1273
1273
  ],
@@ -1276,15 +1276,15 @@ const i = Z, L = {
1276
1276
  {
1277
1277
  values: 0,
1278
1278
  styleName: "padding-top",
1279
- valueFormat: o.Value.rem
1279
+ valueFormat: a.Value.rem
1280
1280
  },
1281
1281
  {
1282
- values: i.percentages,
1283
- valueFormat: o.Value.fraction,
1282
+ values: s.percentages,
1283
+ valueFormat: a.Value.fraction,
1284
1284
  styleName: "padding-top"
1285
1285
  },
1286
1286
  {
1287
- values: i.percentString,
1287
+ values: s.percentString,
1288
1288
  styleName: "padding-top"
1289
1289
  }
1290
1290
  ],
@@ -1293,15 +1293,15 @@ const i = Z, L = {
1293
1293
  {
1294
1294
  values: 0,
1295
1295
  styleName: "padding-right",
1296
- valueFormat: o.Value.rem
1296
+ valueFormat: a.Value.rem
1297
1297
  },
1298
1298
  {
1299
- values: i.percentages,
1300
- valueFormat: o.Value.fraction,
1299
+ values: s.percentages,
1300
+ valueFormat: a.Value.fraction,
1301
1301
  styleName: "padding-right"
1302
1302
  },
1303
1303
  {
1304
- values: i.percentString,
1304
+ values: s.percentString,
1305
1305
  styleName: "padding-right"
1306
1306
  }
1307
1307
  ],
@@ -1310,15 +1310,15 @@ const i = Z, L = {
1310
1310
  {
1311
1311
  values: 0,
1312
1312
  styleName: "padding-bottom",
1313
- valueFormat: o.Value.rem
1313
+ valueFormat: a.Value.rem
1314
1314
  },
1315
1315
  {
1316
- values: i.percentages,
1317
- valueFormat: o.Value.fraction,
1316
+ values: s.percentages,
1317
+ valueFormat: a.Value.fraction,
1318
1318
  styleName: "padding-bottom"
1319
1319
  },
1320
1320
  {
1321
- values: i.percentString,
1321
+ values: s.percentString,
1322
1322
  styleName: "padding-bottom"
1323
1323
  }
1324
1324
  ],
@@ -1327,15 +1327,15 @@ const i = Z, L = {
1327
1327
  {
1328
1328
  values: 0,
1329
1329
  styleName: "padding-left",
1330
- valueFormat: o.Value.rem
1330
+ valueFormat: a.Value.rem
1331
1331
  },
1332
1332
  {
1333
- values: i.percentages,
1334
- valueFormat: o.Value.fraction,
1333
+ values: s.percentages,
1334
+ valueFormat: a.Value.fraction,
1335
1335
  styleName: "padding-left"
1336
1336
  },
1337
1337
  {
1338
- values: i.percentString,
1338
+ values: s.percentString,
1339
1339
  styleName: "padding-left"
1340
1340
  }
1341
1341
  ],
@@ -1357,7 +1357,7 @@ const i = Z, L = {
1357
1357
  {
1358
1358
  styleName: "outline-width",
1359
1359
  values: 0,
1360
- valueFormat: o.Value.px
1360
+ valueFormat: a.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 i = Z, L = {
1372
1372
  {
1373
1373
  styleName: "outline-offset",
1374
1374
  values: 0,
1375
- valueFormat: o.Value.px
1375
+ valueFormat: a.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. */
@@ -1588,14 +1588,14 @@ const i = Z, L = {
1588
1588
  /** The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. */
1589
1589
  color: [
1590
1590
  {
1591
- values: i.colorValues,
1591
+ values: s.colorValues,
1592
1592
  valueFormat: (e, r) => r(e)
1593
1593
  }
1594
1594
  ],
1595
1595
  /** The background-color CSS property sets the background color of an element. */
1596
1596
  bgColor: [
1597
1597
  {
1598
- values: i.colorValues,
1598
+ values: s.colorValues,
1599
1599
  valueFormat: (e, r) => r(e),
1600
1600
  styleName: "background-color"
1601
1601
  }
@@ -1603,7 +1603,7 @@ const i = Z, L = {
1603
1603
  /** The border-color shorthand CSS property sets the color of an element's border. */
1604
1604
  borderColor: [
1605
1605
  {
1606
- values: i.colorValues,
1606
+ values: s.colorValues,
1607
1607
  valueFormat: (e, r) => r(e),
1608
1608
  styleName: "border-color"
1609
1609
  }
@@ -1611,7 +1611,7 @@ const i = Z, L = {
1611
1611
  /** The outline-color CSS property sets the color of an element's outline. */
1612
1612
  outlineColor: [
1613
1613
  {
1614
- values: i.colorValues,
1614
+ values: s.colorValues,
1615
1615
  valueFormat: (e, r) => r(e),
1616
1616
  styleName: "outline-color"
1617
1617
  }
@@ -1619,21 +1619,21 @@ const i = Z, L = {
1619
1619
  /** The fill CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute. */
1620
1620
  fill: [
1621
1621
  {
1622
- values: i.colorValues,
1622
+ values: s.colorValues,
1623
1623
  valueFormat: (e, r) => r(e)
1624
1624
  }
1625
1625
  ],
1626
1626
  /** The stroke CSS property defines the color or SVG paint server used to draw an element's stroke. */
1627
1627
  stroke: [
1628
1628
  {
1629
- values: i.colorValues,
1629
+ values: s.colorValues,
1630
1630
  valueFormat: (e, r) => r(e)
1631
1631
  }
1632
1632
  ],
1633
1633
  /** The background-image CSS property sets one or more background images on an element. */
1634
1634
  bgImage: [
1635
1635
  {
1636
- values: i.bgImageValues,
1636
+ values: s.bgImageValues,
1637
1637
  valueFormat: (e, r) => r(e),
1638
1638
  styleName: "background-image"
1639
1639
  }
@@ -1641,7 +1641,7 @@ const i = Z, L = {
1641
1641
  /** The box-shadow CSS property adds shadow effects around an element's frame */
1642
1642
  shadow: [
1643
1643
  {
1644
- values: i.shadowValues,
1644
+ values: s.shadowValues,
1645
1645
  valueFormat: (e, r) => r(e),
1646
1646
  styleName: "box-shadow"
1647
1647
  }
@@ -1654,17 +1654,17 @@ const i = Z, L = {
1654
1654
  styleName: "transform"
1655
1655
  },
1656
1656
  {
1657
- values: i.percentages,
1658
- valueFormat: (e) => `translateX(${o.Value.fraction(e)})`,
1657
+ values: s.percentages,
1658
+ valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
1659
1659
  styleName: "transform"
1660
1660
  },
1661
1661
  {
1662
- values: i.negativePercentages,
1663
- valueFormat: (e) => `translateX(${o.Value.fraction(e)})`,
1662
+ values: s.negativePercentages,
1663
+ valueFormat: (e) => `translateX(${a.Value.fraction(e)})`,
1664
1664
  styleName: "transform"
1665
1665
  },
1666
1666
  {
1667
- values: i.percentString,
1667
+ values: s.percentString,
1668
1668
  valueFormat: (e) => `translateX(${e})`,
1669
1669
  styleName: "transform"
1670
1670
  }
@@ -1677,17 +1677,17 @@ const i = Z, L = {
1677
1677
  styleName: "transform"
1678
1678
  },
1679
1679
  {
1680
- values: i.percentages,
1681
- valueFormat: (e) => `translateY(${o.Value.fraction(e)})`,
1680
+ values: s.percentages,
1681
+ valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
1682
1682
  styleName: "transform"
1683
1683
  },
1684
1684
  {
1685
- values: i.negativePercentages,
1686
- valueFormat: (e) => `translateY(${o.Value.fraction(e)})`,
1685
+ values: s.negativePercentages,
1686
+ valueFormat: (e) => `translateY(${a.Value.fraction(e)})`,
1687
1687
  styleName: "transform"
1688
1688
  },
1689
1689
  {
1690
- values: i.percentString,
1690
+ values: s.percentString,
1691
1691
  valueFormat: (e) => `translateY(${e})`,
1692
1692
  styleName: "transform"
1693
1693
  }
@@ -1719,7 +1719,8 @@ const i = Z, L = {
1719
1719
  hasRequired: ":has(:required)",
1720
1720
  hasDisabled: ":has([disabled])",
1721
1721
  before: "::before",
1722
- after: "::after"
1722
+ after: "::after",
1723
+ placeholderStyles: "::placeholder"
1723
1724
  }, W = {
1724
1725
  indeterminate: ":indeterminate",
1725
1726
  checked: ":checked",
@@ -1729,25 +1730,25 @@ const i = Z, L = {
1729
1730
  }, Ve = {
1730
1731
  theme: ""
1731
1732
  }, K = { ...me, ...W, ...Ve }, ye = Object.entries(K).reduce(
1732
- (e, [r], a) => (e[r] = Math.pow(2, a), e),
1733
+ (e, [r], l) => (e[r] = Math.pow(2, l), e),
1733
1734
  {}
1734
1735
  ), X = Object.entries(K).reduce(
1735
1736
  (e, [r]) => {
1736
- const a = ye[r];
1737
- return Object.entries(e).forEach(([l, t]) => {
1738
- e[+l + a] = [...t, r];
1737
+ const l = ye[r];
1738
+ return Object.entries(e).forEach(([o, t]) => {
1739
+ e[+o + l] = [...t, r];
1739
1740
  }), e;
1740
1741
  },
1741
1742
  { 0: [] }
1742
- ), P = {
1743
+ ), D = {
1743
1744
  hoverGroup: "hover",
1744
1745
  focusGroup: "focus",
1745
1746
  activeGroup: "active",
1746
1747
  disabledGroup: "disabled",
1747
1748
  selectedGroup: "selected"
1748
- }, ie = {
1749
+ }, se = {
1749
1750
  theme: "theme"
1750
- }, D = {
1751
+ }, P = {
1751
1752
  /** Styles applied for small screens and larger. >= 640 */
1752
1753
  sm: 640,
1753
1754
  /** Styles applied for medium screens and larger. >= 768 */
@@ -1761,32 +1762,32 @@ const i = Z, L = {
1761
1762
  };
1762
1763
  var Q;
1763
1764
  ((e) => {
1764
- function r(n, u, c) {
1765
- const s = { ...n }, m = s.props || {};
1766
- return u.forEach((f) => {
1767
- f in s && (m[f] = s[f], delete s[f]);
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]);
1768
1769
  }), c && Object.entries(c).forEach(([f, y]) => {
1769
1770
  m[f] = y;
1770
- }), s.props = m, s;
1771
+ }), u.props = m, u;
1771
1772
  }
1772
1773
  e.buildProps = r;
1773
- function a(n) {
1774
+ function l(n) {
1774
1775
  return !!n && typeof n == "object";
1775
1776
  }
1776
- e.isObject = a;
1777
- function l(...n) {
1778
- return n.reduce((u, c) => (Object.keys(c ?? {}).forEach((s) => {
1779
- const m = u[s], f = c[s];
1780
- a(f) && "clean" in f && f.clean ? u[s] = f : s in W && typeof f == "boolean" || (s in W && Array.isArray(f) ? u[s] = l(m, f[1] ?? {}) : Array.isArray(m) && Array.isArray(f) ? u[s] = m.concat(...f) : a(m) && a(f) ? u[s] = l(m, f) : u[s] = f);
1781
- }), u), {});
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), {});
1782
1783
  }
1783
- e.mergeDeep = l;
1784
- function t(n, u) {
1785
- return n in u;
1784
+ e.mergeDeep = o;
1785
+ function t(n, i) {
1786
+ return n in i;
1786
1787
  }
1787
1788
  e.isKeyOf = t;
1788
1789
  })(Q || (Q = {}));
1789
- const R = Q, se = {
1790
+ const k = Q, ie = {
1790
1791
  h1: {
1791
1792
  styles: { fontSize: 14 * 2.5 }
1792
1793
  },
@@ -2436,6 +2437,9 @@ const R = Q, se = {
2436
2437
  }
2437
2438
  },
2438
2439
  children: {
2440
+ content: {
2441
+ styles: {}
2442
+ },
2439
2443
  topBar: {
2440
2444
  styles: {
2441
2445
  py: 3,
@@ -2862,9 +2866,21 @@ const R = Q, se = {
2862
2866
  isLastLeaf: {},
2863
2867
  isEmptyCell: {}
2864
2868
  }
2869
+ },
2870
+ detailRow: {
2871
+ styles: {}
2872
+ },
2873
+ row: {
2874
+ styles: {}
2875
+ },
2876
+ groupRow: {
2877
+ styles: {}
2865
2878
  }
2866
2879
  }
2867
2880
  },
2881
+ emptyColumns: {
2882
+ styles: {}
2883
+ },
2868
2884
  bottomBar: {
2869
2885
  styles: {
2870
2886
  py: 3,
@@ -2884,56 +2900,72 @@ const R = Q, se = {
2884
2900
  color: "gray-200"
2885
2901
  }
2886
2902
  }
2903
+ },
2904
+ children: {
2905
+ pagination: {
2906
+ styles: {}
2907
+ }
2887
2908
  }
2888
2909
  }
2889
2910
  }
2890
2911
  }
2891
2912
  };
2913
+ function Se(e) {
2914
+ const r = { ...e };
2915
+ for (const [l, o] of Object.entries(r)) {
2916
+ if (!o.extends) continue;
2917
+ const t = r[o.extends];
2918
+ if (!t) continue;
2919
+ const { extends: n, ...i } = o;
2920
+ r[l] = k.mergeDeep({}, t, i);
2921
+ }
2922
+ return r;
2923
+ }
2892
2924
  var J;
2893
2925
  ((e) => {
2894
- function r(l, t, n) {
2895
- return i.setUserVariables(l), Object.entries(t).forEach(([u, c]) => {
2896
- L[u] = c;
2897
- }), Object.entries(n).forEach(([u, c]) => {
2898
- const s = L[u];
2899
- L[u] = s ? [...c, ...s] : c;
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;
2900
2932
  }), { extendedProps: t, extendedPropTypes: n };
2901
2933
  }
2902
- e.extend = r, e.componentsStyles = se;
2903
- function a(l) {
2904
- return e.componentsStyles = R.mergeDeep(se, l), l;
2934
+ e.extend = r, e.componentsStyles = ie;
2935
+ function l(o) {
2936
+ return e.componentsStyles = Se(k.mergeDeep(ie, o)), o;
2905
2937
  }
2906
- e.components = a;
2938
+ e.components = l;
2907
2939
  })(J || (J = {}));
2908
2940
  const $e = J, ee = we.createContext({ theme: "", setTheme: () => {
2909
2941
  } });
2910
2942
  function re(e) {
2911
- const { children: r, theme: a, use: l = "local" } = e, [t, n] = de(a ?? "light");
2943
+ const { children: r, theme: l, use: o = "local" } = e, [t, n] = de(l ?? "light");
2912
2944
  return U(() => {
2913
- if (a !== void 0) return;
2914
- const u = window.matchMedia("(prefers-color-scheme: dark)");
2915
- n(u.matches ? "dark" : "light");
2916
- const c = (s) => {
2917
- n(s.matches ? "dark" : "light");
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");
2918
2950
  };
2919
- return u.addEventListener("change", c), () => u.removeEventListener("change", c);
2920
- }, [a]), U(() => {
2921
- if (l === "local") return;
2922
- const u = document.documentElement;
2923
- return u.classList.add(t), () => {
2924
- u.classList.remove(t);
2951
+ return i.addEventListener("change", c), () => i.removeEventListener("change", c);
2952
+ }, [l]), U(() => {
2953
+ if (o === "local") return;
2954
+ const i = document.documentElement;
2955
+ return i.classList.add(t), () => {
2956
+ i.classList.remove(t);
2925
2957
  };
2926
- }, [t, l]), l === "local" ? /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: /* @__PURE__ */ S(Fe, { className: t, children: r }) }) : /* @__PURE__ */ S(ee.Provider, { value: { theme: t, setTheme: n }, children: r });
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 });
2927
2959
  }
2928
2960
  ((e) => {
2929
2961
  function r() {
2930
- const { theme: a, setTheme: l } = xe(ee);
2931
- return [a, l];
2962
+ const { theme: l, setTheme: o } = xe(ee);
2963
+ return [l, o];
2932
2964
  }
2933
2965
  e.useTheme = r;
2934
2966
  })(re || (re = {}));
2935
- const Se = re;
2936
- class ze {
2967
+ const ze = re;
2968
+ class ke {
2937
2969
  constructor() {
2938
2970
  this._index = 0, this._cache = {};
2939
2971
  }
@@ -2941,89 +2973,90 @@ class ze {
2941
2973
  return this._cache[r] || (this._cache[r] = this.getByIndex(this._index++)), this._cache[r];
2942
2974
  }
2943
2975
  getByIndex(r) {
2944
- const { first: a, next: l } = ke, t = r - a.length;
2976
+ const { first: l, next: o } = Re, t = r - l.length;
2945
2977
  if (t < 0)
2946
- return a[r];
2947
- const n = Math.floor(t / l.length), u = t - n * l.length;
2948
- return this.getByIndex(n) + l[u];
2978
+ return l[r];
2979
+ const n = Math.floor(t / o.length), i = t - n * o.length;
2980
+ return this.getByIndex(n) + o[i];
2949
2981
  }
2950
2982
  }
2951
- const ke = {
2983
+ const Re = {
2952
2984
  first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
2953
2985
  next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
2954
2986
  };
2955
- function Re(e) {
2956
- const { clean: r, component: a, variant: l } = e;
2987
+ function Ae(e) {
2988
+ const { clean: r, component: l, variant: o } = e;
2957
2989
  return le(() => {
2958
2990
  if (r) return;
2959
- const t = a?.split(".");
2991
+ const t = l?.split(".");
2960
2992
  if (!t) return;
2961
- const n = t.reduce((s, m, f) => f === 0 ? $e.componentsStyles[m] : s?.children?.[m], void 0);
2993
+ const n = t.reduce((u, m, f) => f === 0 ? $e.componentsStyles[m] : u?.children?.[m], void 0);
2962
2994
  if (!n) return;
2963
- if (!l) return n.styles;
2964
- const u = fe(l);
2965
- if (u.length === 0) return n.styles;
2966
- const c = R.mergeDeep(...u.map((s) => n.variants?.[s]));
2967
- return n.styles ? R.mergeDeep(n.styles, c) : c;
2968
- }, [r, a, l]);
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]);
2969
3001
  }
2970
- const Ae = new ze(), Oe = typeof window < "u" && typeof window.document < "u", H = typeof process == "object" && process.env?.NODE_ENV === "test", Ee = Oe && !H ? U : ge, be = "_b", I = "_s";
2971
- function He(e, r) {
2972
- const a = Re(e), l = le(() => a ? R.mergeDeep(a, e) : e, [e, a]), t = [r ? I : be];
2973
- return B.addClassNames(l, t, []), Ee(() => {
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";
3003
+ 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(() => {
2974
3006
  B.flush();
2975
- }, [l]), t;
3007
+ }, [o]), t;
2976
3008
  }
2977
3009
  var B;
2978
3010
  ((e) => {
2979
- let r = !0, a = !1;
2980
- const l = /* @__PURE__ */ new Set(), t = [], n = [];
2981
- let u = 0;
3011
+ let r = !0, l = !1;
3012
+ const o = /* @__PURE__ */ new Set(), t = [], n = [];
3013
+ let i = 0;
2982
3014
  const c = Object.keys(L).reduce((b, h, w) => (b[h] = w, b), {});
2983
- let s = {};
3015
+ let u = {};
2984
3016
  function m(b, h, w, p, g) {
2985
3017
  Object.entries(b).forEach(([v, d]) => {
2986
- if (R.isKeyOf(v, L))
2987
- x(v, d, h, w, p, g);
2988
- else if (R.isKeyOf(v, me))
2989
- m(d, h, [...w, v], p, g);
2990
- else if (R.isKeyOf(v, W)) {
2991
- if (Array.isArray(d)) {
2992
- const [N, F] = d;
2993
- m(F, h, [...w, v], p, g);
2994
- }
2995
- R.isObject(d) && m(d, h, [...w, v], p, g);
2996
- } else R.isKeyOf(v, D) ? m(d, h, w, v, g) : R.isKeyOf(v, P) ? Object.entries(d).forEach(([N, F]) => {
2997
- m(F, h, [...w, P[v]], p, N);
2998
- }) : R.isKeyOf(v, ie) && Object.entries(d).forEach(([N, F]) => {
2999
- const $ = [...w, ie[v]];
3000
- Object.entries(F).forEach(([V, O]) => {
3001
- R.isKeyOf(V, P) ? Object.entries(O).forEach(([M, E]) => {
3002
- m(
3003
- E,
3004
- h,
3005
- [...$, P[V]],
3006
- p,
3007
- // Use | as separator to distinguish theme from group name
3008
- `${N}|${M}`
3009
- );
3010
- }) : m({ [V]: O }, h, $, p, N);
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);
3023
+ else if (k.isKeyOf(v, W)) {
3024
+ if (Array.isArray(d)) {
3025
+ const [N, F] = d;
3026
+ m(F, h, [...w, v], p, g);
3027
+ }
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]) => {
3035
+ m(
3036
+ E,
3037
+ h,
3038
+ [...S, D[V]],
3039
+ p,
3040
+ // Use | as separator to distinguish theme from group name
3041
+ `${N}|${M}`
3042
+ );
3043
+ }) : m({ [V]: O }, h, S, p, N);
3044
+ });
3011
3045
  });
3012
- });
3013
3046
  });
3014
3047
  }
3015
3048
  e.addClassNames = m;
3016
3049
  function f() {
3017
- const b = i.hasPendingVariables();
3050
+ const b = s.hasPendingVariables();
3018
3051
  if (!r && !b) return;
3019
3052
  console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
3020
3053
  const h = q(), w = h.sheet;
3021
- if (a) {
3022
- if (i.hasPendingVariables()) {
3023
- const p = i.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
3054
+ if (l) {
3055
+ if (s.hasPendingVariables()) {
3056
+ const p = s.getPendingVariables(), g = `:root{${Object.entries(p).map(([v, d]) => `--${v}: ${d};`).join("")}}`;
3024
3057
  if (w && !H)
3025
3058
  try {
3026
- w.insertRule(g, 0), u++;
3059
+ w.insertRule(g, 0), i++;
3027
3060
  } catch {
3028
3061
  }
3029
3062
  else
@@ -3032,7 +3065,7 @@ var B;
3032
3065
  }
3033
3066
  } else {
3034
3067
  const p = [
3035
- `:root{${i.generateVariables()}}`,
3068
+ `:root{${s.generateVariables()}}`,
3036
3069
  ":root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}",
3037
3070
  "#crono-box {position: absolute;top: 0;left: 0;height: 0;z-index:99999;}",
3038
3071
  "html{font-size: 16px;font-family: Arial, sans-serif;}",
@@ -3048,13 +3081,13 @@ var B;
3048
3081
  if (w && !H)
3049
3082
  for (const g of p)
3050
3083
  try {
3051
- w.insertRule(g, u), u++;
3084
+ w.insertRule(g, i), i++;
3052
3085
  } catch {
3053
3086
  }
3054
3087
  else
3055
3088
  h.textContent = p.join(`
3056
3089
  `);
3057
- a = !0;
3090
+ l = !0;
3058
3091
  }
3059
3092
  if (t.length > 0) {
3060
3093
  if (t.sort((p, g) => p[1] - g[1] || p[0] - g[0]), w && !H)
@@ -3067,7 +3100,7 @@ var B;
3067
3100
  break;
3068
3101
  }
3069
3102
  try {
3070
- w.insertRule(v, u + N), n.splice(N, 0, d);
3103
+ w.insertRule(v, i + N), n.splice(N, 0, d);
3071
3104
  } catch {
3072
3105
  w.insertRule(v, w.cssRules.length), n.push(d);
3073
3106
  }
@@ -3082,7 +3115,7 @@ var B;
3082
3115
  function y(b, h, w, p, g) {
3083
3116
  const d = L[b].find((V) => Array.isArray(V.values) ? V.values.includes(h) : typeof h == typeof V.values);
3084
3117
  if (!d) return null;
3085
- const N = c[b] ?? 0, F = D[p] ?? 0, $ = C(
3118
+ const N = c[b] ?? 0, F = P[p] ?? 0, S = C(
3086
3119
  b,
3087
3120
  h,
3088
3121
  w,
@@ -3094,37 +3127,37 @@ var B;
3094
3127
  let A;
3095
3128
  if (G) {
3096
3129
  const [j, Ce] = g.split("|");
3097
- A = `.${j} .${Ce}${E} .${$}`;
3098
- } else O ? A = `.${g} .${$}${E}` : A = `.${g}${E} .${$}`;
3099
- const he = d.selector?.(A, "") ?? A, ve = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], pe = d.valueFormat?.(h, i.getVariableValue) ?? h, ne = `${he}{${ve.map((j) => `${j}:${pe}`).join(";")}}`;
3100
- return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${ne}}`, sortIndex: N, breakpointOrder: F } : { rule: ne, sortIndex: N, breakpointOrder: F };
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 };
3101
3134
  } else {
3102
- const V = X[w].map((A) => K[A]).join(""), O = d.selector?.(`.${$}`, V) ?? `.${$}${V}`, M = Array.isArray(d.styleName) ? d.styleName : [d.styleName ?? b], E = d.valueFormat?.(h, i.getVariableValue) ?? h, G = `${O}{${M.map((A) => `${A}:${E}`).join(";")}}`;
3103
- return p !== "normal" ? { rule: `@media(min-width: ${D[p]}px){${G}}`, sortIndex: N, breakpointOrder: F } : { rule: G, sortIndex: N, breakpointOrder: F };
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 };
3104
3137
  }
3105
3138
  }
3106
3139
  function z() {
3107
- s = {}, l.clear(), t.length = 0, n.length = 0, u = 0, a = !1;
3140
+ u = {}, o.clear(), t.length = 0, n.length = 0, i = 0, l = !1;
3108
3141
  }
3109
3142
  e.clear = z;
3110
3143
  function x(b, h, w, p, g = "normal", v) {
3111
3144
  if (h == null) return;
3112
- const d = p.reduce(($, V) => $ + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
3113
- if (!l.has(F)) {
3114
- l.add(F);
3115
- const $ = y(b, h, d, g, v);
3116
- $ && (t.push([$.sortIndex, $.breakpointOrder, $.rule]), r = !0), s[g] ? s[g][d] ? s[g][d][b] || (s[g][d][b] = /* @__PURE__ */ new Set()) : s[g][d] = { [b]: /* @__PURE__ */ new Set() } : s[g] = { [d]: { [b]: /* @__PURE__ */ new Set() } }, v ? (s[g][d].__parents ? s[g][d].__parents[v] ? s[g][d].__parents[v][b] || (s[g][d].__parents[v][b] = /* @__PURE__ */ new Set()) : s[g][d].__parents[v] = { [b]: /* @__PURE__ */ new Set() } : s[g][d].__parents = { [v]: { [b]: /* @__PURE__ */ new Set() } }, s[g][d].__parents[v][b].add(h)) : s[g][d][b].add(h);
3145
+ const d = p.reduce((S, V) => S + ye[V], 0), N = C(b, h, d, g, v), F = `${g}-${d}-${b}-${h}-${v ?? ""}`;
3146
+ if (!o.has(F)) {
3147
+ 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);
3117
3150
  }
3118
3151
  w.push(N);
3119
3152
  }
3120
3153
  function C(b, h, w, p, g) {
3121
3154
  const v = X[w], d = `${p === "normal" ? "" : `${p}-`}${v.map((N) => `${N}-`).join("")}${g ? `${g}-` : ""}${b}-${h}`;
3122
- return H ? d : Ae.getIdentity(d);
3155
+ return H ? d : Oe.getIdentity(d);
3123
3156
  }
3124
- const k = "crono-styles";
3157
+ const R = "crono-styles";
3125
3158
  function q() {
3126
- let b = document.getElementById(k);
3127
- return b || (b = document.createElement("style"), b.setAttribute("id", k), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
3159
+ let b = document.getElementById(R);
3160
+ return b || (b = document.createElement("style"), b.setAttribute("id", R), b.setAttribute("type", "text/css"), document.head.insertBefore(b, document.head.firstChild)), b;
3128
3161
  }
3129
3162
  })(B || (B = {}));
3130
3163
  var ue;
@@ -3142,12 +3175,12 @@ Array.prototype.add || (Array.prototype.add = function(...e) {
3142
3175
  return r.push(...e), r;
3143
3176
  });
3144
3177
  Array.prototype.sumBy || (Array.prototype.sumBy = function(e, r = 0) {
3145
- return this.reduce((a, l, t) => a + e(l, t), r);
3178
+ return this.reduce((l, o, t) => l + e(o, t), r);
3146
3179
  });
3147
3180
  Array.prototype.sortBy || (Array.prototype.sortBy = function(e, r) {
3148
- return [...this].sort((l, t) => {
3149
- const n = e(l), u = e(t);
3150
- return n < u ? r === "DESC" ? 1 : -1 : n > u ? r === "DESC" ? -1 : 1 : 0;
3181
+ 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;
3151
3184
  });
3152
3185
  });
3153
3186
  Array.prototype.maxBy || (Array.prototype.maxBy = function(e) {
@@ -3160,54 +3193,54 @@ Array.prototype.findOrThrow || (Array.prototype.findOrThrow = function(e) {
3160
3193
  });
3161
3194
  Array.prototype.toRecord || (Array.prototype.toRecord = function(e) {
3162
3195
  return this.reduce(
3163
- (r, a) => {
3164
- const l = e(a);
3165
- if (!l) return r;
3166
- const [t, n] = l;
3196
+ (r, l) => {
3197
+ const o = e(l);
3198
+ if (!o) return r;
3199
+ const [t, n] = o;
3167
3200
  return r[t] = n, r;
3168
3201
  },
3169
3202
  {}
3170
3203
  );
3171
3204
  });
3172
3205
  Array.prototype.groupBy || (Array.prototype.groupBy = function(e, r = !1) {
3173
- const a = this.reduce((l, t, n) => {
3174
- const u = e(t, n);
3175
- return r && typeof u != "number" && !u || (l.has(u) === !1 && l.set(u, []), l.get(u)?.push(t)), l;
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;
3176
3209
  }, /* @__PURE__ */ new Map());
3177
- return Array.from(a, ([l, t]) => ({ key: l, values: t }));
3210
+ return Array.from(l, ([o, t]) => ({ key: o, values: t }));
3178
3211
  });
3179
- function Me(e) {
3180
- const { node: r = null, event: a = "click", hideOnScroll: l = !1, hideOnResize: t = !1, hideOnEscape: n = !0 } = e ?? {}, [u, c] = de(!1), s = Ne(null);
3212
+ 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);
3181
3214
  return ge(() => {
3182
3215
  function m(C) {
3183
- (r ?? s.current)?.contains(C.target) === !1 && c(!1);
3216
+ (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3184
3217
  }
3185
3218
  function f() {
3186
3219
  c(!1);
3187
3220
  }
3188
3221
  function y(C) {
3189
- (r ?? s.current)?.contains(C.target) === !1 && c(!1);
3222
+ (r ?? u.current)?.contains(C.target) === !1 && c(!1);
3190
3223
  }
3191
3224
  function z(C) {
3192
3225
  C.key === "Escape" && c(!1);
3193
3226
  }
3194
3227
  const x = new AbortController();
3195
- return u && (window.addEventListener(a, m, x), n && window.addEventListener("keydown", z, x), t && window.addEventListener("resize", f, x), l && window.addEventListener("scroll", y, { signal: x.signal, capture: !0 })), () => {
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 })), () => {
3196
3229
  x.abort();
3197
3230
  };
3198
- }, [r, u]), [u, c, s];
3231
+ }, [r, i]), [i, c, u];
3199
3232
  }
3200
- const je = {
3233
+ const Ie = {
3201
3234
  selected: "aria-selected"
3202
3235
  };
3203
3236
  var ce;
3204
3237
  ((e) => {
3205
- function r(a, l, t) {
3206
- a !== void 0 && a != null && (t[je[l] ?? l] = Array.isArray(a) ? a[0] : a);
3238
+ function r(l, o, t) {
3239
+ l !== void 0 && l != null && (t[Ie[o] ?? o] = Array.isArray(l) ? l[0] : l);
3207
3240
  }
3208
3241
  e.assignBooleanProp = r;
3209
3242
  })(ce || (ce = {}));
3210
- function Ge(e) {
3243
+ function De(e) {
3211
3244
  let r;
3212
3245
  return Object.defineProperty({
3213
3246
  clear() {
@@ -3217,68 +3250,67 @@ function Ge(e) {
3217
3250
  get: () => (r === void 0 && (r = e()), r)
3218
3251
  });
3219
3252
  }
3220
- function Ie(e, r) {
3253
+ function Le(e, r) {
3221
3254
  if (!e) return { score: 1, matches: [] };
3222
3255
  if (!r) return null;
3223
- const a = e.toLowerCase(), l = r.toLowerCase();
3256
+ const l = e.toLowerCase(), o = r.toLowerCase();
3224
3257
  let t = 0, n = 0;
3225
- const u = [];
3226
- let c = -1, s = 0, m = 0;
3227
- for (; t < a.length && n < l.length; )
3228
- a[t] === l[n] ? (c === -1 && (c = n), t++, m++, s += m, (n === 0 || /\s|_|-/.test(r[n - 1])) && (s += 5), e[t - 1] === r[n] && (s += 1)) : (c !== -1 && (u.push([c, n]), c = -1), m = 0), n++;
3229
- return c !== -1 && u.push([c, n]), t < a.length ? null : (s = s / r.length, { score: s, matches: u });
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 });
3230
3263
  }
3231
3264
  function Pe(e, r) {
3232
- return Ie(e, r) !== null;
3265
+ return Le(e, r) !== null;
3266
+ }
3267
+ function Ue(e) {
3268
+ return /* @__PURE__ */ $(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ $(
3269
+ "path",
3270
+ {
3271
+ fillRule: "evenodd",
3272
+ d: "M12.707 14.707a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L12 12.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5Z",
3273
+ clipRule: "evenodd"
3274
+ }
3275
+ ) });
3233
3276
  }
3234
3277
  var te;
3235
3278
  ((e) => {
3236
- function r(a, l = 300) {
3279
+ function r(l, o = 300) {
3237
3280
  let t = !1, n;
3238
- return (...u) => {
3281
+ return (...i) => {
3239
3282
  if (t) {
3240
- n = u;
3283
+ n = i;
3241
3284
  return;
3242
3285
  }
3243
- a(...u), t = !0, setTimeout(() => {
3244
- t = !1, n && a(...n);
3245
- }, l);
3286
+ l(...i), t = !0, setTimeout(() => {
3287
+ t = !1, n && l(...n);
3288
+ }, o);
3246
3289
  };
3247
3290
  }
3248
3291
  e.throttle = r;
3249
3292
  })(te || (te = {}));
3250
- const De = te;
3251
- function Ue(e) {
3252
- return /* @__PURE__ */ S(T, { viewBox: "4 2 16 18", width: "1rem", fill: "currentColor", ...e, children: /* @__PURE__ */ S(
3253
- "path",
3254
- {
3255
- fillRule: "evenodd",
3256
- d: "M12.707 14.707a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L12 12.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5Z",
3257
- clipRule: "evenodd"
3258
- }
3259
- ) });
3260
- }
3261
- const _ = /* @__PURE__ */ new Map();
3262
- function We() {
3263
- const [e] = Se.useTheme(), r = le(() => {
3264
- const a = "crono-box";
3265
- let l = document.getElementById(a);
3266
- return l || (l = document.createElement("div"), l.id = a, document.body.appendChild(l)), l;
3293
+ const We = te, _ = /* @__PURE__ */ new Map();
3294
+ 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;
3267
3299
  }, []);
3268
3300
  return U(() => {
3269
3301
  if (!e) return;
3270
- const a = _.get(e) ?? 0;
3271
- return _.set(e, a + 1), a === 0 && r.classList.add(e), () => {
3302
+ const l = _.get(e) ?? 0;
3303
+ return _.set(e, l + 1), l === 0 && r.classList.add(e), () => {
3272
3304
  const t = (_.get(e) ?? 1) - 1;
3273
3305
  t <= 0 ? (_.delete(e), r.classList.remove(e)) : _.set(e, t);
3274
3306
  };
3275
3307
  }, [r, e]), r;
3276
3308
  }
3277
- function Ke(e) {
3278
- return /* @__PURE__ */ S(T, { ...e, children: /* @__PURE__ */ S("path", { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" }) });
3279
- }
3280
3309
  function qe(e) {
3281
- return /* @__PURE__ */ S(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ S(
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" }) });
3311
+ }
3312
+ function Xe(e) {
3313
+ return /* @__PURE__ */ $(T, { viewBox: "0 0 16 16", width: "18", ...e, children: /* @__PURE__ */ $(
3282
3314
  "path",
3283
3315
  {
3284
3316
  strokeWidth: 4,
@@ -3286,85 +3318,85 @@ function qe(e) {
3286
3318
  }
3287
3319
  ) });
3288
3320
  }
3289
- function Xe(e) {
3290
- return /* @__PURE__ */ S(T, { viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ S("path", { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" }) });
3291
- }
3292
3321
  function Ye(e) {
3293
- return /* @__PURE__ */ S(T, { viewBox: "0 0 1024 1024", ...e, children: /* @__PURE__ */ S("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" }) });
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" }) });
3323
+ }
3324
+ 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" }) });
3294
3326
  }
3295
3327
  var oe;
3296
3328
  ((e) => {
3297
- function r(a) {
3298
- return a.charAt(0).toUpperCase() + a.slice(1);
3329
+ function r(l) {
3330
+ return l.charAt(0).toUpperCase() + l.slice(1);
3299
3331
  }
3300
3332
  e.capitalize = r;
3301
3333
  })(oe || (oe = {}));
3302
- const Ze = oe;
3303
- function Qe(e) {
3304
- return /* @__PURE__ */ S(T, { viewBox: "0 0 488.4 488.4", ...e, children: /* @__PURE__ */ S("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" }) });
3334
+ const Qe = oe;
3335
+ 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" }) });
3305
3337
  }
3306
3338
  var ae;
3307
3339
  ((e) => {
3308
- function r(l) {
3309
- const t = Array.from(l.elements).reduce(
3310
- (n, u) => {
3311
- const c = u.name;
3312
- return c && (n[c] || (n[c] = []), n[c].push(u)), n;
3340
+ function r(o) {
3341
+ 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;
3313
3345
  },
3314
3346
  {}
3315
3347
  );
3316
- return Object.entries(t).reduce((n, [u, c]) => {
3348
+ return Object.entries(t).reduce((n, [i, c]) => {
3317
3349
  if (c.length === 1) {
3318
- const s = c[0];
3319
- a(n, u, s.type === "checkbox" || s.type === "radio" ? s.checked : s.value);
3350
+ const u = c[0];
3351
+ l(n, i, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
3320
3352
  } else {
3321
- const s = c.reduce((m, f) => (f.type === "checkbox" || f.type === "radio" ? f.checked && m.push(f.value) : m.push(f.value), m), []);
3322
- a(n, u, s);
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);
3323
3355
  }
3324
3356
  return n;
3325
3357
  }, {});
3326
3358
  }
3327
3359
  e.getFormEntries = r;
3328
- function a(l, t, n) {
3360
+ function l(o, t, n) {
3329
3361
  if (t.includes(".")) {
3330
- const u = t.split(".");
3331
- let c = l;
3332
- u.forEach((s, m) => {
3333
- if (u.length > m + 1) {
3334
- const f = s.match(/^(.+)\[(\d)\]$/);
3362
+ const i = t.split(".");
3363
+ let c = o;
3364
+ i.forEach((u, m) => {
3365
+ if (i.length > m + 1) {
3366
+ const f = u.match(/^(.+)\[(\d)\]$/);
3335
3367
  if (f) {
3336
3368
  const [, y, z] = f;
3337
3369
  c[y] = c[y] || [], c[y][z] = c[y][z] || {}, c = c[y][z];
3338
3370
  } else
3339
- c[s] = c[s] || {}, c = c[s];
3371
+ c[u] = c[u] || {}, c = c[u];
3340
3372
  } else
3341
- c[s] = n;
3373
+ c[u] = n;
3342
3374
  });
3343
3375
  } else
3344
- l[t] = n;
3376
+ o[t] = n;
3345
3377
  }
3346
3378
  })(ae || (ae = {}));
3347
- const Je = ae;
3379
+ const er = ae;
3348
3380
  export {
3349
3381
  ce as B,
3350
- qe as D,
3382
+ Xe as D,
3351
3383
  Ue as E,
3352
- De as F,
3353
- Xe as G,
3354
- R as O,
3355
- Ye as P,
3356
- Ke as S,
3357
- Se as T,
3358
- i as V,
3384
+ We as F,
3385
+ Ye as G,
3386
+ k as O,
3387
+ Ze as P,
3388
+ qe as S,
3389
+ ze as T,
3390
+ s as V,
3359
3391
  $e as a,
3360
- Me as b,
3392
+ Ge as b,
3361
3393
  fe as c,
3362
- Qe as d,
3363
- Je as e,
3394
+ Je as d,
3395
+ er as e,
3364
3396
  Pe as f,
3365
- Ze as g,
3366
- We as h,
3397
+ Qe as g,
3398
+ Ke as h,
3367
3399
  ue as i,
3368
- Ge as m,
3369
- He as u
3400
+ De as m,
3401
+ Me as u
3370
3402
  };