@cronocode/react-box 3.0.4 → 3.0.6
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/box.cjs +1 -1
- package/box.mjs +13 -13
- package/components/baseSvg.d.ts +3 -0
- package/components/button.cjs +1 -1
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.d.ts +15 -8
- package/components/dropdown.mjs +97 -37
- package/components/tooltip.cjs +1 -1
- package/components/tooltip.d.ts +2 -2
- package/components/tooltip.mjs +16 -14
- package/core/boxStyles.d.ts +9 -2
- package/core/variables.d.ts +7 -3
- package/core.cjs +2 -2
- package/core.mjs +482 -329
- package/package.json +1 -1
- package/types.d.ts +2 -3
- package/utils/box/boxUtils.d.ts +2 -2
package/core.mjs
CHANGED
|
@@ -1,81 +1,84 @@
|
|
|
1
|
-
import { useMemo as Q, useLayoutEffect as
|
|
1
|
+
import { useMemo as Q, useLayoutEffect as ce, useEffect as le, useState as fe, useRef as me } from "react";
|
|
2
2
|
function ve(...e) {
|
|
3
|
-
return e.reduce((t,
|
|
4
|
-
|
|
3
|
+
return e.reduce((t, r) => r ? typeof r == "string" ? (t.push(r), t) : Array.isArray(r) ? (t.push(...ve(...r)), t) : (Object.entries(r).forEach(([l, d]) => {
|
|
4
|
+
d && t.push(l);
|
|
5
5
|
}), t) : t, []);
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var n;
|
|
8
8
|
((e) => {
|
|
9
9
|
((t) => {
|
|
10
|
-
function
|
|
11
|
-
return `${
|
|
10
|
+
function r(d, s) {
|
|
11
|
+
return `${d}${s.replace("/", "-")}`;
|
|
12
12
|
}
|
|
13
|
-
t.fraction =
|
|
14
|
-
function
|
|
15
|
-
return [`${
|
|
13
|
+
t.fraction = r;
|
|
14
|
+
function l(d) {
|
|
15
|
+
return [`${d} path`, `${d} circle`, `${d} rect`, `${d} line`];
|
|
16
16
|
}
|
|
17
|
-
t.svg =
|
|
17
|
+
t.svg = l;
|
|
18
18
|
})(e.ClassName || (e.ClassName = {})), ((t) => {
|
|
19
|
-
function
|
|
19
|
+
function r(b) {
|
|
20
20
|
return `${b / 4}rem`;
|
|
21
21
|
}
|
|
22
|
-
t.rem =
|
|
23
|
-
function
|
|
22
|
+
t.rem = r;
|
|
23
|
+
function l(b) {
|
|
24
24
|
return `${b}px`;
|
|
25
25
|
}
|
|
26
|
-
t.px =
|
|
27
|
-
function
|
|
28
|
-
const [m,
|
|
29
|
-
return `${+m / +
|
|
26
|
+
t.px = l;
|
|
27
|
+
function d(b, i) {
|
|
28
|
+
const [m, c] = i.split("/");
|
|
29
|
+
return `${+m / +c * 100}%`;
|
|
30
30
|
}
|
|
31
|
-
t.fraction =
|
|
32
|
-
function s(b,
|
|
33
|
-
switch (
|
|
31
|
+
t.fraction = d;
|
|
32
|
+
function s(b, i) {
|
|
33
|
+
switch (i) {
|
|
34
34
|
case "fit":
|
|
35
35
|
return "100%";
|
|
36
36
|
case "fit-screen":
|
|
37
37
|
return b.toLocaleLowerCase().includes("height") ? "100vh" : "100vw";
|
|
38
38
|
default:
|
|
39
|
-
return
|
|
39
|
+
return i;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
t.widthHeight = s;
|
|
43
|
-
function
|
|
44
|
-
return (
|
|
43
|
+
function f(b) {
|
|
44
|
+
return (i, m) => `var(--${b}${m});`;
|
|
45
45
|
}
|
|
46
|
-
t.variables =
|
|
47
|
-
function
|
|
48
|
-
return (
|
|
46
|
+
t.variables = f;
|
|
47
|
+
function o(b) {
|
|
48
|
+
return (i, m) => `var(--${b}${m});`;
|
|
49
49
|
}
|
|
50
|
-
t.svgVariables =
|
|
51
|
-
function
|
|
52
|
-
return `repeat(${
|
|
50
|
+
t.svgVariables = o;
|
|
51
|
+
function u(b, i) {
|
|
52
|
+
return `repeat(${i},minmax(0,1fr))`;
|
|
53
53
|
}
|
|
54
|
-
t.gridColumns =
|
|
55
|
-
function
|
|
56
|
-
return
|
|
54
|
+
t.gridColumns = u;
|
|
55
|
+
function g(b, i) {
|
|
56
|
+
return i === "full-row" ? "1/-1" : `span ${i}/span ${i}`;
|
|
57
57
|
}
|
|
58
|
-
t.gridColumn =
|
|
59
|
-
function
|
|
60
|
-
return `${
|
|
58
|
+
t.gridColumn = g;
|
|
59
|
+
function a(b, i) {
|
|
60
|
+
return `${i}ms`;
|
|
61
61
|
}
|
|
62
|
-
t.ms =
|
|
63
|
-
function v(b,
|
|
64
|
-
return `${
|
|
62
|
+
t.ms = a;
|
|
63
|
+
function v(b, i) {
|
|
64
|
+
return `${i}deg`;
|
|
65
65
|
}
|
|
66
66
|
t.rotate = v;
|
|
67
|
-
function
|
|
68
|
-
return
|
|
67
|
+
function y(b, i) {
|
|
68
|
+
return i === "xAxis" ? "-1 1" : "1 -1";
|
|
69
69
|
}
|
|
70
|
-
t.flip =
|
|
70
|
+
t.flip = y;
|
|
71
71
|
})(e.Value || (e.Value = {}));
|
|
72
|
-
})(
|
|
73
|
-
var
|
|
72
|
+
})(n || (n = {}));
|
|
73
|
+
var W;
|
|
74
74
|
((e) => {
|
|
75
75
|
e.colors = {
|
|
76
|
-
|
|
77
|
-
current: "currentColor",
|
|
76
|
+
currentColor: "currentColor",
|
|
78
77
|
transparent: "transparent",
|
|
78
|
+
green: "green",
|
|
79
|
+
red: "red",
|
|
80
|
+
blue: "blue",
|
|
81
|
+
gray: "gray",
|
|
79
82
|
black: "#000",
|
|
80
83
|
white: "#fff",
|
|
81
84
|
"slate-50": "#f8fafc",
|
|
@@ -276,6 +279,7 @@ var q;
|
|
|
276
279
|
"violet-800": "#5b21b6",
|
|
277
280
|
"violet-900": "#4c1d95",
|
|
278
281
|
"violet-950": "#2e1065",
|
|
282
|
+
vi: "#7949FF",
|
|
279
283
|
"purple-50": "#faf5ff",
|
|
280
284
|
"purple-100": "#f3e8ff",
|
|
281
285
|
"purple-200": "#e9d5ff",
|
|
@@ -321,22 +325,28 @@ var q;
|
|
|
321
325
|
"rose-900": "#881337",
|
|
322
326
|
"rose-950": "#4c0519"
|
|
323
327
|
};
|
|
324
|
-
const t = {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
+
const t = {
|
|
329
|
+
inherit: "inherit",
|
|
330
|
+
none: "none",
|
|
331
|
+
"bg-img-checked": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><path fill='none' stroke='#FFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 10l3 3l6-6'/></svg>")}")`,
|
|
332
|
+
"bg-img-indeterminate": `url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><line stroke='${e.colors["violet-400"]}' x1='4' y1='10' x2='16' y2='10' stroke-width='1' /></svg>`)}")`,
|
|
333
|
+
"bg-img-radio": `url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' width='100%' viewBox='0 0 20 20'><circle fill='#FFF' cx='10' cy='10' r='5'/></svg>")}")`
|
|
334
|
+
}, r = {};
|
|
335
|
+
let l = {};
|
|
336
|
+
function d(o) {
|
|
337
|
+
return o in l ? r[o] = l[o] : o in t ? r[o] = t[o] : o in e.colors ? r[o] = e.colors[o] : r[o] = o, `var(--${o})`;
|
|
328
338
|
}
|
|
329
|
-
e.getVariableValue =
|
|
330
|
-
function
|
|
331
|
-
return Object.entries(
|
|
339
|
+
e.getVariableValue = d;
|
|
340
|
+
function s() {
|
|
341
|
+
return Object.entries(r).map(([o, u]) => `--${o}: ${u};`).join("");
|
|
332
342
|
}
|
|
333
|
-
e.generateVariables =
|
|
334
|
-
function
|
|
335
|
-
|
|
343
|
+
e.generateVariables = s;
|
|
344
|
+
function f(o) {
|
|
345
|
+
l = o;
|
|
336
346
|
}
|
|
337
|
-
e.setUserVariables =
|
|
338
|
-
})(
|
|
339
|
-
const
|
|
347
|
+
e.setUserVariables = f;
|
|
348
|
+
})(W || (W = {}));
|
|
349
|
+
const z = W, E = {
|
|
340
350
|
/** The appearance CSS property is used to display UI elements with platform-specific styling, based on the operating system's theme. */
|
|
341
351
|
appearance: [
|
|
342
352
|
{
|
|
@@ -348,7 +358,7 @@ const E = q, C = {
|
|
|
348
358
|
{
|
|
349
359
|
values: 0,
|
|
350
360
|
styleName: "border-width",
|
|
351
|
-
valueFormat:
|
|
361
|
+
valueFormat: n.Value.px
|
|
352
362
|
}
|
|
353
363
|
],
|
|
354
364
|
/** The border-width shorthand CSS property sets the width of an element's left and right border. */
|
|
@@ -356,7 +366,7 @@ const E = q, C = {
|
|
|
356
366
|
{
|
|
357
367
|
values: 0,
|
|
358
368
|
styleName: "border-inline-width",
|
|
359
|
-
valueFormat:
|
|
369
|
+
valueFormat: n.Value.px
|
|
360
370
|
}
|
|
361
371
|
],
|
|
362
372
|
/** The border-width shorthand CSS property sets the width of an element's top and bottom border. */
|
|
@@ -364,7 +374,7 @@ const E = q, C = {
|
|
|
364
374
|
{
|
|
365
375
|
values: 0,
|
|
366
376
|
styleName: "border-block-width",
|
|
367
|
-
valueFormat:
|
|
377
|
+
valueFormat: n.Value.px
|
|
368
378
|
}
|
|
369
379
|
],
|
|
370
380
|
/** The border-top-width CSS property sets the width of the top border of an element. */
|
|
@@ -372,7 +382,7 @@ const E = q, C = {
|
|
|
372
382
|
{
|
|
373
383
|
values: 0,
|
|
374
384
|
styleName: "border-top-width",
|
|
375
|
-
valueFormat:
|
|
385
|
+
valueFormat: n.Value.px
|
|
376
386
|
}
|
|
377
387
|
],
|
|
378
388
|
/** The border-right-width CSS property sets the width of the right border of an element. */
|
|
@@ -380,7 +390,7 @@ const E = q, C = {
|
|
|
380
390
|
{
|
|
381
391
|
values: 0,
|
|
382
392
|
styleName: "border-right-width",
|
|
383
|
-
valueFormat:
|
|
393
|
+
valueFormat: n.Value.px
|
|
384
394
|
}
|
|
385
395
|
],
|
|
386
396
|
/** The border-bottom-width CSS property sets the width of the bottom border of an element. */
|
|
@@ -388,7 +398,7 @@ const E = q, C = {
|
|
|
388
398
|
{
|
|
389
399
|
values: 0,
|
|
390
400
|
styleName: "border-bottom-width",
|
|
391
|
-
valueFormat:
|
|
401
|
+
valueFormat: n.Value.px
|
|
392
402
|
}
|
|
393
403
|
],
|
|
394
404
|
/** The border-left-width CSS property sets the width of the left border of an element. */
|
|
@@ -396,7 +406,7 @@ const E = q, C = {
|
|
|
396
406
|
{
|
|
397
407
|
values: 0,
|
|
398
408
|
styleName: "border-left-width",
|
|
399
|
-
valueFormat:
|
|
409
|
+
valueFormat: n.Value.px
|
|
400
410
|
}
|
|
401
411
|
],
|
|
402
412
|
/** The border-style shorthand CSS property sets the line style for all four sides of an element's border. */
|
|
@@ -411,7 +421,7 @@ const E = q, C = {
|
|
|
411
421
|
{
|
|
412
422
|
styleName: "border-radius",
|
|
413
423
|
values: 0,
|
|
414
|
-
valueFormat:
|
|
424
|
+
valueFormat: n.Value.rem
|
|
415
425
|
}
|
|
416
426
|
],
|
|
417
427
|
/** 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. */
|
|
@@ -419,7 +429,7 @@ const E = q, C = {
|
|
|
419
429
|
{
|
|
420
430
|
values: 0,
|
|
421
431
|
styleName: ["border-top-left-radius", "border-top-right-radius"],
|
|
422
|
-
valueFormat:
|
|
432
|
+
valueFormat: n.Value.rem
|
|
423
433
|
}
|
|
424
434
|
],
|
|
425
435
|
/** 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. */
|
|
@@ -427,7 +437,7 @@ const E = q, C = {
|
|
|
427
437
|
{
|
|
428
438
|
values: 0,
|
|
429
439
|
styleName: ["border-top-right-radius", "border-bottom-right-radius"],
|
|
430
|
-
valueFormat:
|
|
440
|
+
valueFormat: n.Value.rem
|
|
431
441
|
}
|
|
432
442
|
],
|
|
433
443
|
/** 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. */
|
|
@@ -435,7 +445,7 @@ const E = q, C = {
|
|
|
435
445
|
{
|
|
436
446
|
values: 0,
|
|
437
447
|
styleName: ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
438
|
-
valueFormat:
|
|
448
|
+
valueFormat: n.Value.rem
|
|
439
449
|
}
|
|
440
450
|
],
|
|
441
451
|
/** 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. */
|
|
@@ -443,7 +453,7 @@ const E = q, C = {
|
|
|
443
453
|
{
|
|
444
454
|
values: 0,
|
|
445
455
|
styleName: ["border-top-left-radius", "border-bottom-left-radius"],
|
|
446
|
-
valueFormat:
|
|
456
|
+
valueFormat: n.Value.rem
|
|
447
457
|
}
|
|
448
458
|
],
|
|
449
459
|
/** 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. */
|
|
@@ -451,7 +461,7 @@ const E = q, C = {
|
|
|
451
461
|
{
|
|
452
462
|
values: 0,
|
|
453
463
|
styleName: "border-top-left-radius",
|
|
454
|
-
valueFormat:
|
|
464
|
+
valueFormat: n.Value.rem
|
|
455
465
|
}
|
|
456
466
|
],
|
|
457
467
|
/** 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. */
|
|
@@ -459,7 +469,7 @@ const E = q, C = {
|
|
|
459
469
|
{
|
|
460
470
|
values: 0,
|
|
461
471
|
styleName: "border-top-right-radius",
|
|
462
|
-
valueFormat:
|
|
472
|
+
valueFormat: n.Value.rem
|
|
463
473
|
}
|
|
464
474
|
],
|
|
465
475
|
/** 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. */
|
|
@@ -467,7 +477,7 @@ const E = q, C = {
|
|
|
467
477
|
{
|
|
468
478
|
values: 0,
|
|
469
479
|
styleName: "border-bottom-right-radius",
|
|
470
|
-
valueFormat:
|
|
480
|
+
valueFormat: n.Value.rem
|
|
471
481
|
}
|
|
472
482
|
],
|
|
473
483
|
/** 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. */
|
|
@@ -475,7 +485,7 @@ const E = q, C = {
|
|
|
475
485
|
{
|
|
476
486
|
values: 0,
|
|
477
487
|
styleName: "border-bottom-left-radius",
|
|
478
|
-
valueFormat:
|
|
488
|
+
valueFormat: n.Value.rem
|
|
479
489
|
}
|
|
480
490
|
],
|
|
481
491
|
/** 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. */
|
|
@@ -488,35 +498,35 @@ const E = q, C = {
|
|
|
488
498
|
top: [
|
|
489
499
|
{
|
|
490
500
|
values: 0,
|
|
491
|
-
valueFormat:
|
|
501
|
+
valueFormat: n.Value.rem
|
|
492
502
|
}
|
|
493
503
|
],
|
|
494
504
|
/** The right CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
495
505
|
right: [
|
|
496
506
|
{
|
|
497
507
|
values: 0,
|
|
498
|
-
valueFormat:
|
|
508
|
+
valueFormat: n.Value.rem
|
|
499
509
|
}
|
|
500
510
|
],
|
|
501
511
|
/** The bottom CSS property participates in setting the vertical position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
502
512
|
bottom: [
|
|
503
513
|
{
|
|
504
514
|
values: 0,
|
|
505
|
-
valueFormat:
|
|
515
|
+
valueFormat: n.Value.rem
|
|
506
516
|
}
|
|
507
517
|
],
|
|
508
518
|
/** The left CSS property participates in specifying the horizontal position of a positioned element. This inset property has no effect on non-positioned elements. */
|
|
509
519
|
left: [
|
|
510
520
|
{
|
|
511
521
|
values: 0,
|
|
512
|
-
valueFormat:
|
|
522
|
+
valueFormat: n.Value.rem
|
|
513
523
|
}
|
|
514
524
|
],
|
|
515
525
|
/** 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. */
|
|
516
526
|
inset: [
|
|
517
527
|
{
|
|
518
528
|
values: 0,
|
|
519
|
-
valueFormat:
|
|
529
|
+
valueFormat: n.Value.rem
|
|
520
530
|
}
|
|
521
531
|
],
|
|
522
532
|
/** The `box-sizing` CSS property sets how the total width and height of an element is calculated. */
|
|
@@ -689,7 +699,7 @@ const E = q, C = {
|
|
|
689
699
|
{
|
|
690
700
|
styleName: "font-size",
|
|
691
701
|
values: 0,
|
|
692
|
-
valueFormat:
|
|
702
|
+
valueFormat: n.Value.px
|
|
693
703
|
},
|
|
694
704
|
{
|
|
695
705
|
styleName: "font-size",
|
|
@@ -714,7 +724,7 @@ const E = q, C = {
|
|
|
714
724
|
gap: [
|
|
715
725
|
{
|
|
716
726
|
values: 0,
|
|
717
|
-
valueFormat:
|
|
727
|
+
valueFormat: n.Value.rem
|
|
718
728
|
}
|
|
719
729
|
],
|
|
720
730
|
/** The row-gap CSS property sets the size of the gap (gutter) between an element's rows. */
|
|
@@ -722,7 +732,7 @@ const E = q, C = {
|
|
|
722
732
|
{
|
|
723
733
|
styleName: "row-gap",
|
|
724
734
|
values: 0,
|
|
725
|
-
valueFormat:
|
|
735
|
+
valueFormat: n.Value.rem
|
|
726
736
|
}
|
|
727
737
|
],
|
|
728
738
|
/** The column-gap CSS property sets the size of the gap (gutter) between an element's columns. */
|
|
@@ -730,7 +740,7 @@ const E = q, C = {
|
|
|
730
740
|
{
|
|
731
741
|
styleName: "column-gap",
|
|
732
742
|
values: 0,
|
|
733
|
-
valueFormat:
|
|
743
|
+
valueFormat: n.Value.rem
|
|
734
744
|
}
|
|
735
745
|
],
|
|
736
746
|
/** 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. */
|
|
@@ -781,8 +791,8 @@ const E = q, C = {
|
|
|
781
791
|
"11/12"
|
|
782
792
|
],
|
|
783
793
|
valueFormat: (e) => {
|
|
784
|
-
const [t,
|
|
785
|
-
return `${+t / +
|
|
794
|
+
const [t, r] = e.split("/");
|
|
795
|
+
return `${+t / +r * 100}%`;
|
|
786
796
|
}
|
|
787
797
|
},
|
|
788
798
|
{
|
|
@@ -833,8 +843,8 @@ const E = q, C = {
|
|
|
833
843
|
"11/12"
|
|
834
844
|
],
|
|
835
845
|
valueFormat: (e) => {
|
|
836
|
-
const [t,
|
|
837
|
-
return `${+t / +
|
|
846
|
+
const [t, r] = e.split("/");
|
|
847
|
+
return `${+t / +r * 100}%`;
|
|
838
848
|
}
|
|
839
849
|
},
|
|
840
850
|
{
|
|
@@ -886,8 +896,8 @@ const E = q, C = {
|
|
|
886
896
|
"11/12"
|
|
887
897
|
],
|
|
888
898
|
valueFormat: (e) => {
|
|
889
|
-
const [t,
|
|
890
|
-
return `${+t / +
|
|
899
|
+
const [t, r] = e.split("/");
|
|
900
|
+
return `${+t / +r * 100}%`;
|
|
891
901
|
}
|
|
892
902
|
},
|
|
893
903
|
{
|
|
@@ -936,8 +946,8 @@ const E = q, C = {
|
|
|
936
946
|
"11/12"
|
|
937
947
|
],
|
|
938
948
|
valueFormat: (e) => {
|
|
939
|
-
const [t,
|
|
940
|
-
return `${+t / +
|
|
949
|
+
const [t, r] = e.split("/");
|
|
950
|
+
return `${+t / +r * 100}%`;
|
|
941
951
|
}
|
|
942
952
|
},
|
|
943
953
|
{
|
|
@@ -988,8 +998,8 @@ const E = q, C = {
|
|
|
988
998
|
"11/12"
|
|
989
999
|
],
|
|
990
1000
|
valueFormat: (e) => {
|
|
991
|
-
const [t,
|
|
992
|
-
return `${+t / +
|
|
1001
|
+
const [t, r] = e.split("/");
|
|
1002
|
+
return `${+t / +r * 100}%`;
|
|
993
1003
|
}
|
|
994
1004
|
},
|
|
995
1005
|
{
|
|
@@ -1041,8 +1051,8 @@ const E = q, C = {
|
|
|
1041
1051
|
"11/12"
|
|
1042
1052
|
],
|
|
1043
1053
|
valueFormat: (e) => {
|
|
1044
|
-
const [t,
|
|
1045
|
-
return `${+t / +
|
|
1054
|
+
const [t, r] = e.split("/");
|
|
1055
|
+
return `${+t / +r * 100}%`;
|
|
1046
1056
|
}
|
|
1047
1057
|
},
|
|
1048
1058
|
{
|
|
@@ -1055,7 +1065,7 @@ const E = q, C = {
|
|
|
1055
1065
|
{
|
|
1056
1066
|
styleName: "letter-spacing",
|
|
1057
1067
|
values: 0,
|
|
1058
|
-
valueFormat:
|
|
1068
|
+
valueFormat: n.Value.px
|
|
1059
1069
|
}
|
|
1060
1070
|
],
|
|
1061
1071
|
/** 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. */
|
|
@@ -1063,7 +1073,7 @@ const E = q, C = {
|
|
|
1063
1073
|
{
|
|
1064
1074
|
styleName: "line-height",
|
|
1065
1075
|
values: 0,
|
|
1066
|
-
valueFormat:
|
|
1076
|
+
valueFormat: n.Value.px
|
|
1067
1077
|
},
|
|
1068
1078
|
{
|
|
1069
1079
|
styleName: "line-height",
|
|
@@ -1083,7 +1093,7 @@ const E = q, C = {
|
|
|
1083
1093
|
{
|
|
1084
1094
|
values: 0,
|
|
1085
1095
|
styleName: "margin",
|
|
1086
|
-
valueFormat:
|
|
1096
|
+
valueFormat: n.Value.rem
|
|
1087
1097
|
},
|
|
1088
1098
|
{
|
|
1089
1099
|
values: ["auto"],
|
|
@@ -1095,7 +1105,7 @@ const E = q, C = {
|
|
|
1095
1105
|
{
|
|
1096
1106
|
values: 0,
|
|
1097
1107
|
styleName: "margin-inline",
|
|
1098
|
-
valueFormat:
|
|
1108
|
+
valueFormat: n.Value.rem
|
|
1099
1109
|
},
|
|
1100
1110
|
{
|
|
1101
1111
|
values: ["auto"],
|
|
@@ -1107,7 +1117,7 @@ const E = q, C = {
|
|
|
1107
1117
|
{
|
|
1108
1118
|
values: 0,
|
|
1109
1119
|
styleName: "margin-block",
|
|
1110
|
-
valueFormat:
|
|
1120
|
+
valueFormat: n.Value.rem
|
|
1111
1121
|
},
|
|
1112
1122
|
{
|
|
1113
1123
|
values: ["auto"],
|
|
@@ -1119,7 +1129,7 @@ const E = q, C = {
|
|
|
1119
1129
|
{
|
|
1120
1130
|
values: 0,
|
|
1121
1131
|
styleName: "margin-top",
|
|
1122
|
-
valueFormat:
|
|
1132
|
+
valueFormat: n.Value.rem
|
|
1123
1133
|
},
|
|
1124
1134
|
{
|
|
1125
1135
|
values: ["auto"],
|
|
@@ -1131,7 +1141,7 @@ const E = q, C = {
|
|
|
1131
1141
|
{
|
|
1132
1142
|
values: 0,
|
|
1133
1143
|
styleName: "margin-right",
|
|
1134
|
-
valueFormat:
|
|
1144
|
+
valueFormat: n.Value.rem
|
|
1135
1145
|
},
|
|
1136
1146
|
{
|
|
1137
1147
|
values: ["auto"],
|
|
@@ -1143,7 +1153,7 @@ const E = q, C = {
|
|
|
1143
1153
|
{
|
|
1144
1154
|
values: 0,
|
|
1145
1155
|
styleName: "margin-bottom",
|
|
1146
|
-
valueFormat:
|
|
1156
|
+
valueFormat: n.Value.rem
|
|
1147
1157
|
},
|
|
1148
1158
|
{
|
|
1149
1159
|
values: ["auto"],
|
|
@@ -1155,7 +1165,7 @@ const E = q, C = {
|
|
|
1155
1165
|
{
|
|
1156
1166
|
values: 0,
|
|
1157
1167
|
styleName: "margin-left",
|
|
1158
|
-
valueFormat:
|
|
1168
|
+
valueFormat: n.Value.rem
|
|
1159
1169
|
},
|
|
1160
1170
|
{
|
|
1161
1171
|
values: ["auto"],
|
|
@@ -1167,7 +1177,7 @@ const E = q, C = {
|
|
|
1167
1177
|
{
|
|
1168
1178
|
values: 0,
|
|
1169
1179
|
styleName: "padding",
|
|
1170
|
-
valueFormat:
|
|
1180
|
+
valueFormat: n.Value.rem
|
|
1171
1181
|
}
|
|
1172
1182
|
],
|
|
1173
1183
|
/** The padding-inline CSS shorthand property defines the logical inline start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1175,7 +1185,7 @@ const E = q, C = {
|
|
|
1175
1185
|
{
|
|
1176
1186
|
values: 0,
|
|
1177
1187
|
styleName: "padding-inline",
|
|
1178
|
-
valueFormat:
|
|
1188
|
+
valueFormat: n.Value.rem
|
|
1179
1189
|
}
|
|
1180
1190
|
],
|
|
1181
1191
|
/** The padding-block CSS shorthand property defines the logical block start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation. */
|
|
@@ -1183,7 +1193,7 @@ const E = q, C = {
|
|
|
1183
1193
|
{
|
|
1184
1194
|
values: 0,
|
|
1185
1195
|
styleName: "padding-block",
|
|
1186
|
-
valueFormat:
|
|
1196
|
+
valueFormat: n.Value.rem
|
|
1187
1197
|
}
|
|
1188
1198
|
],
|
|
1189
1199
|
/** The padding-top CSS property sets the height of the padding area on the top of an element. */
|
|
@@ -1191,7 +1201,7 @@ const E = q, C = {
|
|
|
1191
1201
|
{
|
|
1192
1202
|
values: 0,
|
|
1193
1203
|
styleName: "padding-top",
|
|
1194
|
-
valueFormat:
|
|
1204
|
+
valueFormat: n.Value.rem
|
|
1195
1205
|
}
|
|
1196
1206
|
],
|
|
1197
1207
|
/** The padding-right CSS property sets the width of the padding area on the right of an element. */
|
|
@@ -1199,7 +1209,7 @@ const E = q, C = {
|
|
|
1199
1209
|
{
|
|
1200
1210
|
values: 0,
|
|
1201
1211
|
styleName: "padding-right",
|
|
1202
|
-
valueFormat:
|
|
1212
|
+
valueFormat: n.Value.rem
|
|
1203
1213
|
}
|
|
1204
1214
|
],
|
|
1205
1215
|
/** The padding-bottom CSS property sets the height of the padding area on the bottom of an element. */
|
|
@@ -1207,7 +1217,7 @@ const E = q, C = {
|
|
|
1207
1217
|
{
|
|
1208
1218
|
values: 0,
|
|
1209
1219
|
styleName: "padding-bottom",
|
|
1210
|
-
valueFormat:
|
|
1220
|
+
valueFormat: n.Value.rem
|
|
1211
1221
|
}
|
|
1212
1222
|
],
|
|
1213
1223
|
/** The padding-left CSS property sets the width of the padding area to the left of an element. */
|
|
@@ -1215,7 +1225,7 @@ const E = q, C = {
|
|
|
1215
1225
|
{
|
|
1216
1226
|
values: 0,
|
|
1217
1227
|
styleName: "padding-left",
|
|
1218
|
-
valueFormat:
|
|
1228
|
+
valueFormat: n.Value.rem
|
|
1219
1229
|
}
|
|
1220
1230
|
],
|
|
1221
1231
|
/** The object-fit CSS property sets how the content of a replaced element, such as an <img> or <video>, should be resized to fit its container. */
|
|
@@ -1236,7 +1246,7 @@ const E = q, C = {
|
|
|
1236
1246
|
{
|
|
1237
1247
|
styleName: "outline-width",
|
|
1238
1248
|
values: 0,
|
|
1239
|
-
valueFormat:
|
|
1249
|
+
valueFormat: n.Value.px
|
|
1240
1250
|
}
|
|
1241
1251
|
],
|
|
1242
1252
|
/** 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. */
|
|
@@ -1251,7 +1261,7 @@ const E = q, C = {
|
|
|
1251
1261
|
{
|
|
1252
1262
|
styleName: "outline-offset",
|
|
1253
1263
|
values: 0,
|
|
1254
|
-
valueFormat:
|
|
1264
|
+
valueFormat: n.Value.px
|
|
1255
1265
|
}
|
|
1256
1266
|
],
|
|
1257
1267
|
/** 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. */
|
|
@@ -1459,32 +1469,39 @@ const E = q, C = {
|
|
|
1459
1469
|
],
|
|
1460
1470
|
color: [
|
|
1461
1471
|
{
|
|
1462
|
-
values: Object.keys(
|
|
1472
|
+
values: Object.keys(z.colors),
|
|
1463
1473
|
valueFormat: (e, t) => t(e)
|
|
1464
1474
|
}
|
|
1465
1475
|
],
|
|
1466
1476
|
bgColor: [
|
|
1467
1477
|
{
|
|
1468
|
-
values: Object.keys(
|
|
1478
|
+
values: Object.keys(z.colors),
|
|
1469
1479
|
valueFormat: (e, t) => t(e),
|
|
1470
1480
|
styleName: "background-color"
|
|
1471
1481
|
}
|
|
1472
1482
|
],
|
|
1473
1483
|
borderColor: [
|
|
1474
1484
|
{
|
|
1475
|
-
values: Object.keys(
|
|
1485
|
+
values: Object.keys(z.colors),
|
|
1476
1486
|
valueFormat: (e, t) => t(e),
|
|
1477
1487
|
styleName: "border-color"
|
|
1478
1488
|
}
|
|
1479
1489
|
],
|
|
1480
1490
|
outlineColor: [
|
|
1481
1491
|
{
|
|
1482
|
-
values: Object.keys(
|
|
1492
|
+
values: Object.keys(z.colors),
|
|
1483
1493
|
valueFormat: (e, t) => t(e),
|
|
1484
1494
|
styleName: "outline-color"
|
|
1485
1495
|
}
|
|
1496
|
+
],
|
|
1497
|
+
bgImage: [
|
|
1498
|
+
{
|
|
1499
|
+
values: ["none", "bg-img-checked", "bg-img-indeterminate", "bg-img-radio"],
|
|
1500
|
+
valueFormat: (e, t) => t(e),
|
|
1501
|
+
styleName: "background-image"
|
|
1502
|
+
}
|
|
1486
1503
|
]
|
|
1487
|
-
},
|
|
1504
|
+
}, se = {
|
|
1488
1505
|
hover: ":hover",
|
|
1489
1506
|
focus: ":focus-within",
|
|
1490
1507
|
hasFocus: ":has(:focus)",
|
|
@@ -1501,15 +1518,16 @@ const E = q, C = {
|
|
|
1501
1518
|
indeterminate: ":indeterminate",
|
|
1502
1519
|
checked: ":checked",
|
|
1503
1520
|
required: ":required",
|
|
1504
|
-
disabled: "[disabled]"
|
|
1505
|
-
|
|
1506
|
-
|
|
1521
|
+
disabled: "[disabled]",
|
|
1522
|
+
selected: '[aria-selected="true"]'
|
|
1523
|
+
}, Z = { ...se, ...L }, ie = Object.entries(Z).reduce(
|
|
1524
|
+
(e, [t], r) => (e[t] = Math.pow(2, r), e),
|
|
1507
1525
|
{}
|
|
1508
1526
|
), D = Object.entries(Z).reduce(
|
|
1509
1527
|
(e, [t]) => {
|
|
1510
|
-
const
|
|
1511
|
-
return Object.entries(e).forEach(([
|
|
1512
|
-
e[+
|
|
1528
|
+
const r = ie[t];
|
|
1529
|
+
return Object.entries(e).forEach(([l, d]) => {
|
|
1530
|
+
e[+l + r] = [...d, t];
|
|
1513
1531
|
}), e;
|
|
1514
1532
|
},
|
|
1515
1533
|
{ 0: [] }
|
|
@@ -1518,41 +1536,41 @@ const E = q, C = {
|
|
|
1518
1536
|
focusGroup: "focus",
|
|
1519
1537
|
activeGroup: "active",
|
|
1520
1538
|
disabledGroup: "disabled"
|
|
1521
|
-
},
|
|
1539
|
+
}, k = {
|
|
1522
1540
|
sm: 640,
|
|
1523
1541
|
md: 768,
|
|
1524
1542
|
lg: 1024,
|
|
1525
1543
|
xl: 1280,
|
|
1526
1544
|
xxl: 1536
|
|
1527
1545
|
};
|
|
1528
|
-
var
|
|
1546
|
+
var q;
|
|
1529
1547
|
((e) => {
|
|
1530
|
-
function t(s,
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
|
|
1534
|
-
}),
|
|
1535
|
-
|
|
1536
|
-
}),
|
|
1548
|
+
function t(s, f, o) {
|
|
1549
|
+
const u = { ...s }, g = u.props || {};
|
|
1550
|
+
return f.forEach((a) => {
|
|
1551
|
+
a in u && (g[a] = u[a], delete u[a]);
|
|
1552
|
+
}), o && Object.entries(o).forEach(([a, v]) => {
|
|
1553
|
+
g[a] = v;
|
|
1554
|
+
}), u.props = g, u;
|
|
1537
1555
|
}
|
|
1538
1556
|
e.buildProps = t;
|
|
1539
|
-
function
|
|
1557
|
+
function r(s) {
|
|
1540
1558
|
return !!s && typeof s == "object";
|
|
1541
1559
|
}
|
|
1542
|
-
e.isObject =
|
|
1543
|
-
function
|
|
1544
|
-
return s.reduce((
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
}),
|
|
1560
|
+
e.isObject = r;
|
|
1561
|
+
function l(...s) {
|
|
1562
|
+
return s.reduce((f, o) => (Object.keys(o ?? {}).forEach((u) => {
|
|
1563
|
+
const g = f[u], a = o[u];
|
|
1564
|
+
u in L && typeof a == "boolean" || (u in L && Array.isArray(a) ? f[u] = l(g, a[1] ?? {}) : Array.isArray(g) && Array.isArray(a) ? f[u] = g.concat(...a) : r(g) && r(a) ? f[u] = l(g, a) : f[u] = a);
|
|
1565
|
+
}), f), {});
|
|
1548
1566
|
}
|
|
1549
|
-
e.mergeDeep =
|
|
1550
|
-
function
|
|
1551
|
-
return s in
|
|
1567
|
+
e.mergeDeep = l;
|
|
1568
|
+
function d(s, f) {
|
|
1569
|
+
return s in f;
|
|
1552
1570
|
}
|
|
1553
|
-
e.isKeyOf =
|
|
1554
|
-
})(
|
|
1555
|
-
const $ =
|
|
1571
|
+
e.isKeyOf = d;
|
|
1572
|
+
})(q || (q = {}));
|
|
1573
|
+
const $ = q;
|
|
1556
1574
|
class be {
|
|
1557
1575
|
constructor() {
|
|
1558
1576
|
this._index = 0, this._cache = {};
|
|
@@ -1561,153 +1579,150 @@ class be {
|
|
|
1561
1579
|
return this._cache[t] || (this._cache[t] = this.getByIndex(this._index++)), this._cache[t];
|
|
1562
1580
|
}
|
|
1563
1581
|
getByIndex(t) {
|
|
1564
|
-
const { first:
|
|
1565
|
-
if (
|
|
1566
|
-
return
|
|
1567
|
-
const s = Math.floor(
|
|
1568
|
-
return this.getByIndex(s) +
|
|
1582
|
+
const { first: r, next: l } = ge, d = t - r.length;
|
|
1583
|
+
if (d < 0)
|
|
1584
|
+
return r[t];
|
|
1585
|
+
const s = Math.floor(d / l.length), f = d - s * l.length;
|
|
1586
|
+
return this.getByIndex(s) + l[f];
|
|
1569
1587
|
}
|
|
1570
1588
|
}
|
|
1571
|
-
const
|
|
1589
|
+
const ge = {
|
|
1572
1590
|
first: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
|
1573
1591
|
next: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
|
1574
1592
|
};
|
|
1575
|
-
var
|
|
1593
|
+
var I;
|
|
1576
1594
|
((e) => {
|
|
1577
1595
|
e.components = {};
|
|
1578
|
-
})(
|
|
1579
|
-
function
|
|
1580
|
-
const { clean: t, theme:
|
|
1596
|
+
})(I || (I = {}));
|
|
1597
|
+
function ye(e) {
|
|
1598
|
+
const { clean: t, theme: r, component: l } = e;
|
|
1581
1599
|
return Q(() => {
|
|
1582
|
-
var
|
|
1600
|
+
var f;
|
|
1583
1601
|
if (t) return;
|
|
1584
|
-
const
|
|
1585
|
-
if (!
|
|
1586
|
-
const s =
|
|
1587
|
-
var
|
|
1588
|
-
return
|
|
1602
|
+
const d = l == null ? void 0 : l.split(".");
|
|
1603
|
+
if (!d) return;
|
|
1604
|
+
const s = d.reduce((o, u, g) => {
|
|
1605
|
+
var a, v;
|
|
1606
|
+
return g === 0 ? (a = I.components) == null ? void 0 : a[u] : (v = o == null ? void 0 : o.children) == null ? void 0 : v[u];
|
|
1589
1607
|
}, void 0);
|
|
1590
1608
|
if (s)
|
|
1591
|
-
return
|
|
1592
|
-
}, [
|
|
1609
|
+
return r ? $.mergeDeep(s.styles, ((f = s.themes) == null ? void 0 : f[r]) ?? {}) : s.styles;
|
|
1610
|
+
}, [l, t, r]);
|
|
1593
1611
|
}
|
|
1594
|
-
const
|
|
1595
|
-
var
|
|
1596
|
-
const ne = typeof process == "object" && ((
|
|
1597
|
-
function
|
|
1598
|
-
|
|
1599
|
-
const
|
|
1612
|
+
const he = new be(), pe = typeof window < "u" && typeof window.document < "u";
|
|
1613
|
+
var ae;
|
|
1614
|
+
const ne = typeof process == "object" && ((ae = process.env) == null ? void 0 : ae.NODE_ENV) === "test", we = pe && !ne ? ce : le, ue = "_b", A = "_s";
|
|
1615
|
+
function Fe(e, t) {
|
|
1616
|
+
we(S.flush, [e]);
|
|
1617
|
+
const r = ye(e);
|
|
1600
1618
|
return Q(() => {
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
const c = a ? $.mergeDeep(a, e) : e;
|
|
1605
|
-
return A.addClassNames(c, o, []), o;
|
|
1606
|
-
}, [e, t, a]);
|
|
1619
|
+
const l = [t ? A : ue], d = r ? $.mergeDeep(r, e) : e;
|
|
1620
|
+
return S.addClassNames(d, l, []), l;
|
|
1621
|
+
}, [e, t, r]);
|
|
1607
1622
|
}
|
|
1608
|
-
var
|
|
1623
|
+
var S;
|
|
1609
1624
|
((e) => {
|
|
1610
|
-
let t = !0,
|
|
1611
|
-
function
|
|
1612
|
-
Object.entries(
|
|
1613
|
-
if ($.isKeyOf(m,
|
|
1614
|
-
|
|
1615
|
-
else if ($.isKeyOf(m,
|
|
1616
|
-
|
|
1625
|
+
let t = !0, r = {};
|
|
1626
|
+
function l(a, v, y, b, i) {
|
|
1627
|
+
Object.entries(a).forEach(([m, c]) => {
|
|
1628
|
+
if ($.isKeyOf(m, E))
|
|
1629
|
+
f(m, c, v, y, b, i);
|
|
1630
|
+
else if ($.isKeyOf(m, se))
|
|
1631
|
+
l(c, v, [...y, m], b, i);
|
|
1617
1632
|
else if ($.isKeyOf(m, L)) {
|
|
1618
|
-
if (Array.isArray(
|
|
1619
|
-
const [
|
|
1620
|
-
|
|
1633
|
+
if (Array.isArray(c)) {
|
|
1634
|
+
const [w, x] = c;
|
|
1635
|
+
l(x, v, [...y, m], b, i);
|
|
1621
1636
|
}
|
|
1622
|
-
$.isObject(
|
|
1623
|
-
} else $.isKeyOf(m,
|
|
1624
|
-
|
|
1637
|
+
$.isObject(c) && l(c, v, [...y, m], b, i);
|
|
1638
|
+
} else $.isKeyOf(m, k) ? l(c, v, y, m, i) : $.isKeyOf(m, K) && (typeof c == "string" ? v.push(`${K[m]}-${c}`) : Object.entries(c).forEach(([w, x]) => {
|
|
1639
|
+
l(x, v, [...y, K[m]], b, w);
|
|
1625
1640
|
}));
|
|
1626
1641
|
});
|
|
1627
1642
|
}
|
|
1628
|
-
e.addClassNames =
|
|
1629
|
-
function
|
|
1643
|
+
e.addClassNames = l;
|
|
1644
|
+
function d() {
|
|
1630
1645
|
if (!t) return;
|
|
1631
1646
|
console.debug("\x1B[36m%s\x1B[0m", "[react-box]: flush");
|
|
1632
|
-
const
|
|
1647
|
+
const a = Object.entries(E).reduce((m, [c], w) => (m[c] = w, m), {}), v = `:root{--borderColor: black;--outlineColor: black;--lineHeight: 1.2;--fontSize: 14px;--transitionTime: 0.25s;--svgTransitionTime: 0.3s;}#crono-box {position: absolute;top: 0;left: 0;height: 0;}
|
|
1633
1648
|
html{font-size: 16px;font-family: Arial, sans-serif;}
|
|
1634
1649
|
body{margin: 0;line-height: var(--lineHeight);font-size: var(--fontSize);}
|
|
1635
1650
|
a,ul{all: unset;}
|
|
1636
1651
|
.${ue}{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;}
|
|
1637
|
-
.${
|
|
1638
|
-
`,
|
|
1639
|
-
|
|
1640
|
-
([m], [
|
|
1652
|
+
.${A}{display: block;border: 0 solid var(--borderColor);outline: 0px solid var(--outlineColor);margin: 0;padding: 0;transition: all var(--svgTransitionTime);}.${A} path,.${A} circle,.${A} rect,.${A} line {transition: all var(--svgTransitionTime);}
|
|
1653
|
+
`, y = Object.entries(r);
|
|
1654
|
+
y.sort(
|
|
1655
|
+
([m], [c]) => (k[m] ?? 0) - (k[c] ?? 0)
|
|
1641
1656
|
);
|
|
1642
|
-
const b =
|
|
1643
|
-
(m, [
|
|
1644
|
-
const { __parents: P, ...
|
|
1645
|
-
ee.sort(([N], [_]) =>
|
|
1646
|
-
_.forEach((
|
|
1647
|
-
var
|
|
1648
|
-
const
|
|
1649
|
-
if (!
|
|
1650
|
-
const
|
|
1651
|
-
m.push(`${p}{${
|
|
1657
|
+
const b = y.reduce(
|
|
1658
|
+
(m, [c, w]) => (c !== "normal" && m.push(`@media(min-width: ${k[c]}px){`), Object.entries(w).forEach(([x, U]) => {
|
|
1659
|
+
const { __parents: P, ...de } = U, ee = Object.entries(de);
|
|
1660
|
+
ee.sort(([N], [_]) => a[N] - a[_]), ee.forEach(([N, _]) => {
|
|
1661
|
+
_.forEach((C) => {
|
|
1662
|
+
var B, H;
|
|
1663
|
+
const h = E[N].find((F) => Array.isArray(F.values) ? F.values.includes(C) : typeof C == typeof F.values);
|
|
1664
|
+
if (!h) return;
|
|
1665
|
+
const V = o(N, C, +x, c), G = D[+x].map((F) => Z[F]).join(""), p = ((B = h.selector) == null ? void 0 : B.call(h, `.${V}`, G)) ?? `.${V}${G}`, T = Array.isArray(h.styleName) ? h.styleName : [h.styleName ?? N], O = ((H = h.valueFormat) == null ? void 0 : H.call(h, C, z.getVariableValue)) ?? C;
|
|
1666
|
+
m.push(`${p}{${T.map((F) => `${F}:${O}`).join(";")}}`);
|
|
1652
1667
|
});
|
|
1653
1668
|
}), P && Object.entries(P).forEach(([N, _]) => {
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
var te,
|
|
1658
|
-
const p =
|
|
1669
|
+
const C = Object.entries(_);
|
|
1670
|
+
C.sort(([j], [h]) => a[j] - a[h]), C.forEach(([j, h]) => {
|
|
1671
|
+
h.forEach((V) => {
|
|
1672
|
+
var te, re;
|
|
1673
|
+
const p = E[j].find((R) => Array.isArray(R.values) ? R.values.includes(V) : typeof V == typeof R.values);
|
|
1659
1674
|
if (!p) return;
|
|
1660
|
-
const
|
|
1661
|
-
m.push(`${
|
|
1675
|
+
const T = o(j, V, +x, c, N), [O] = D[+x], B = ((te = p.selector) == null ? void 0 : te.call(p, `.${O}-${N}:${O} .${T}`, "")) ?? `.${O}-${N}:${O} .${T}`, H = Array.isArray(p.styleName) ? p.styleName : [p.styleName ?? j], F = ((re = p.valueFormat) == null ? void 0 : re.call(p, V, z.getVariableValue)) ?? V;
|
|
1676
|
+
m.push(`${B}{${H.map((R) => `${R}:${F}`).join(";")}}`);
|
|
1662
1677
|
});
|
|
1663
1678
|
});
|
|
1664
1679
|
});
|
|
1665
|
-
}),
|
|
1680
|
+
}), c !== "normal" && m.push("}"), m),
|
|
1666
1681
|
[v]
|
|
1667
1682
|
);
|
|
1668
|
-
b.unshift(`:root{${
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1683
|
+
b.unshift(`:root{${z.generateVariables()}}`);
|
|
1684
|
+
const i = g();
|
|
1685
|
+
i.innerHTML = b.join(""), t = !1;
|
|
1671
1686
|
}
|
|
1672
|
-
e.flush =
|
|
1687
|
+
e.flush = d;
|
|
1673
1688
|
function s() {
|
|
1674
|
-
|
|
1689
|
+
r = {};
|
|
1675
1690
|
}
|
|
1676
1691
|
e.clear = s;
|
|
1677
|
-
function
|
|
1692
|
+
function f(a, v, y, b, i = "normal", m) {
|
|
1678
1693
|
if (v == null) return;
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1681
|
-
const
|
|
1682
|
-
|
|
1694
|
+
const c = b.reduce((x, U) => x + ie[U], 0);
|
|
1695
|
+
r[i] ? r[i][c] ? r[i][c][a] || (r[i][c][a] = /* @__PURE__ */ new Set()) : r[i][c] = { [a]: /* @__PURE__ */ new Set() } : r[i] = { [c]: { [a]: /* @__PURE__ */ new Set() } }, m ? (r[i][c].__parents ? r[i][c].__parents[m] ? r[i][c].__parents[m][a] || (r[i][c].__parents[m][a] = /* @__PURE__ */ new Set()) : r[i][c].__parents[m] = { [a]: /* @__PURE__ */ new Set() } : r[i][c].__parents = { [m]: { [a]: /* @__PURE__ */ new Set() } }, r[i][c].__parents[m][a].has(v) || (r[i][c].__parents[m][a].add(v), t = !0)) : r[i][c][a].has(v) || (r[i][c][a].add(v), t = !0);
|
|
1696
|
+
const w = o(a, v, c, i, m);
|
|
1697
|
+
y.push(w);
|
|
1683
1698
|
}
|
|
1684
|
-
function
|
|
1685
|
-
const m = D[
|
|
1686
|
-
return ne ?
|
|
1699
|
+
function o(a, v, y, b, i) {
|
|
1700
|
+
const m = D[y], c = `${b === "normal" ? "" : `${b}-`}${m.map((w) => `${w}-`).join("")}${i ? `${i}-` : ""}${a}-${v}`;
|
|
1701
|
+
return ne ? c : he.getIdentity(c);
|
|
1687
1702
|
}
|
|
1688
|
-
const
|
|
1689
|
-
function
|
|
1690
|
-
let
|
|
1691
|
-
return
|
|
1703
|
+
const u = "crono-styles";
|
|
1704
|
+
function g() {
|
|
1705
|
+
let a = document.getElementById(u);
|
|
1706
|
+
return a || (a = document.createElement("style"), a.setAttribute("id", u), a.setAttribute("type", "text/css"), document.head.insertBefore(a, document.head.firstChild)), a;
|
|
1692
1707
|
}
|
|
1693
|
-
})(
|
|
1694
|
-
var
|
|
1708
|
+
})(S || (S = {}));
|
|
1709
|
+
var oe;
|
|
1695
1710
|
((e) => {
|
|
1696
|
-
e.flush =
|
|
1697
|
-
})(
|
|
1711
|
+
e.flush = S.flush, e.clear = S.clear;
|
|
1712
|
+
})(oe || (oe = {}));
|
|
1698
1713
|
var M;
|
|
1699
1714
|
((e) => {
|
|
1700
|
-
function t(
|
|
1701
|
-
return
|
|
1702
|
-
|
|
1703
|
-
}), Object.entries(
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
}), { extendedProps:
|
|
1715
|
+
function t(r, l, d) {
|
|
1716
|
+
return z.setUserVariables(r), Object.entries(l).forEach(([s, f]) => {
|
|
1717
|
+
E[s] = f;
|
|
1718
|
+
}), Object.entries(d).forEach(([s, f]) => {
|
|
1719
|
+
const o = E[s];
|
|
1720
|
+
E[s] = o ? [...f, ...o] : f;
|
|
1721
|
+
}), { extendedProps: l, extendedPropTypes: d };
|
|
1707
1722
|
}
|
|
1708
1723
|
e.extend = t;
|
|
1709
1724
|
})(M || (M = {}));
|
|
1710
|
-
const
|
|
1725
|
+
const $e = M;
|
|
1711
1726
|
var X;
|
|
1712
1727
|
((e) => {
|
|
1713
1728
|
const t = {
|
|
@@ -1715,83 +1730,173 @@ var X;
|
|
|
1715
1730
|
styles: {
|
|
1716
1731
|
display: "inline-flex",
|
|
1717
1732
|
color: "white",
|
|
1718
|
-
bgColor: "violet-
|
|
1733
|
+
bgColor: "violet-500",
|
|
1719
1734
|
borderColor: "violet-500",
|
|
1720
1735
|
p: 3,
|
|
1721
1736
|
cursor: "pointer",
|
|
1722
1737
|
b: 1,
|
|
1723
1738
|
borderRadius: 1,
|
|
1724
1739
|
userSelect: "none",
|
|
1740
|
+
lineHeight: 20,
|
|
1725
1741
|
hover: {
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
borderColor: "violet-300"
|
|
1742
|
+
bgColor: "violet-600",
|
|
1743
|
+
borderColor: "violet-600"
|
|
1729
1744
|
},
|
|
1730
1745
|
disabled: {
|
|
1731
1746
|
cursor: "not-allowed",
|
|
1732
1747
|
bgColor: "violet-50",
|
|
1733
|
-
color: "
|
|
1748
|
+
color: "gray-400",
|
|
1734
1749
|
borderColor: "gray-300"
|
|
1735
1750
|
}
|
|
1736
|
-
},
|
|
1737
|
-
themes: {
|
|
1738
|
-
reverse: {
|
|
1739
|
-
color: "slate-700",
|
|
1740
|
-
bgColor: "violet-100",
|
|
1741
|
-
borderColor: "violet-300",
|
|
1742
|
-
hover: {
|
|
1743
|
-
color: "white",
|
|
1744
|
-
bgColor: "violet-400",
|
|
1745
|
-
borderColor: "violet-500"
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
1751
|
}
|
|
1749
1752
|
},
|
|
1750
|
-
|
|
1753
|
+
textbox: {
|
|
1751
1754
|
styles: {
|
|
1752
|
-
display: "inline-block"
|
|
1755
|
+
display: "inline-block",
|
|
1756
|
+
b: 1,
|
|
1757
|
+
borderColor: "violet-200",
|
|
1758
|
+
bgColor: "violet-50",
|
|
1759
|
+
color: "violet-950",
|
|
1760
|
+
borderRadius: 1,
|
|
1761
|
+
p: 3,
|
|
1762
|
+
transition: "none",
|
|
1763
|
+
lineHeight: 20,
|
|
1764
|
+
hover: {
|
|
1765
|
+
borderColor: "violet-300"
|
|
1766
|
+
},
|
|
1767
|
+
focus: {
|
|
1768
|
+
outline: 1,
|
|
1769
|
+
borderColor: "violet-500",
|
|
1770
|
+
outlineColor: "violet-500"
|
|
1771
|
+
},
|
|
1772
|
+
disabled: {
|
|
1773
|
+
cursor: "not-allowed",
|
|
1774
|
+
bgColor: "violet-50",
|
|
1775
|
+
color: "gray-400",
|
|
1776
|
+
borderColor: "gray-300"
|
|
1777
|
+
}
|
|
1753
1778
|
}
|
|
1754
1779
|
},
|
|
1755
|
-
|
|
1780
|
+
textarea: {
|
|
1756
1781
|
styles: {
|
|
1757
1782
|
display: "inline-block",
|
|
1758
1783
|
b: 1,
|
|
1759
|
-
|
|
1784
|
+
borderColor: "violet-200",
|
|
1785
|
+
bgColor: "violet-50",
|
|
1786
|
+
color: "violet-950",
|
|
1787
|
+
borderRadius: 1,
|
|
1788
|
+
p: 3,
|
|
1789
|
+
transition: "none",
|
|
1790
|
+
hover: {
|
|
1791
|
+
borderColor: "violet-300"
|
|
1792
|
+
},
|
|
1793
|
+
focus: {
|
|
1794
|
+
outline: 1,
|
|
1795
|
+
borderColor: "violet-500",
|
|
1796
|
+
outlineColor: "violet-500"
|
|
1797
|
+
},
|
|
1798
|
+
disabled: {
|
|
1799
|
+
cursor: "not-allowed",
|
|
1800
|
+
bgColor: "violet-50",
|
|
1801
|
+
color: "gray-400",
|
|
1802
|
+
borderColor: "gray-300",
|
|
1803
|
+
resize: "none"
|
|
1804
|
+
}
|
|
1760
1805
|
}
|
|
1761
1806
|
},
|
|
1762
|
-
|
|
1807
|
+
checkbox: {
|
|
1763
1808
|
styles: {
|
|
1764
1809
|
display: "inline-block",
|
|
1810
|
+
appearance: "none",
|
|
1765
1811
|
b: 1,
|
|
1812
|
+
borderColor: "violet-300",
|
|
1766
1813
|
borderRadius: 1,
|
|
1767
|
-
p:
|
|
1814
|
+
p: 2,
|
|
1815
|
+
cursor: "pointer",
|
|
1816
|
+
transition: "none",
|
|
1817
|
+
hover: {
|
|
1818
|
+
borderColor: "violet-500"
|
|
1819
|
+
},
|
|
1820
|
+
focus: {
|
|
1821
|
+
outline: 2,
|
|
1822
|
+
outlineOffset: 2,
|
|
1823
|
+
outlineColor: "violet-500"
|
|
1824
|
+
},
|
|
1825
|
+
checked: {
|
|
1826
|
+
bgColor: "violet-500",
|
|
1827
|
+
borderColor: "violet-500",
|
|
1828
|
+
bgImage: "bg-img-checked"
|
|
1829
|
+
},
|
|
1830
|
+
indeterminate: {
|
|
1831
|
+
color: "violet-500",
|
|
1832
|
+
bgImage: "bg-img-indeterminate"
|
|
1833
|
+
},
|
|
1834
|
+
disabled: {
|
|
1835
|
+
cursor: "not-allowed",
|
|
1836
|
+
bgColor: "violet-100",
|
|
1837
|
+
color: "gray-400",
|
|
1838
|
+
borderColor: "gray-300"
|
|
1839
|
+
}
|
|
1768
1840
|
}
|
|
1769
1841
|
},
|
|
1770
|
-
|
|
1842
|
+
radioButton: {
|
|
1771
1843
|
styles: {
|
|
1772
|
-
|
|
1844
|
+
appearance: "none",
|
|
1773
1845
|
b: 1,
|
|
1774
|
-
|
|
1846
|
+
borderColor: "violet-300",
|
|
1847
|
+
borderRadius: 3,
|
|
1848
|
+
p: 2,
|
|
1849
|
+
cursor: "pointer",
|
|
1850
|
+
transition: "none",
|
|
1851
|
+
hover: {
|
|
1852
|
+
borderColor: "violet-500"
|
|
1853
|
+
},
|
|
1854
|
+
focus: {
|
|
1855
|
+
outline: 2,
|
|
1856
|
+
outlineOffset: 2,
|
|
1857
|
+
outlineColor: "violet-500"
|
|
1858
|
+
},
|
|
1859
|
+
checked: {
|
|
1860
|
+
bgColor: "violet-500",
|
|
1861
|
+
borderColor: "violet-500",
|
|
1862
|
+
bgImage: "bg-img-radio"
|
|
1863
|
+
},
|
|
1864
|
+
disabled: {
|
|
1865
|
+
cursor: "not-allowed",
|
|
1866
|
+
bgColor: "violet-100",
|
|
1867
|
+
color: "gray-400",
|
|
1868
|
+
borderColor: "violet-200"
|
|
1869
|
+
}
|
|
1775
1870
|
}
|
|
1776
1871
|
},
|
|
1777
1872
|
dropdown: {
|
|
1778
1873
|
styles: {
|
|
1779
1874
|
display: "inline-flex",
|
|
1780
|
-
|
|
1781
|
-
|
|
1875
|
+
ai: "center",
|
|
1876
|
+
gap: 2,
|
|
1877
|
+
jc: "space-between",
|
|
1782
1878
|
p: 3,
|
|
1783
1879
|
cursor: "pointer",
|
|
1880
|
+
bgColor: "violet-50",
|
|
1881
|
+
color: "violet-950",
|
|
1784
1882
|
b: 1,
|
|
1883
|
+
borderColor: "violet-200",
|
|
1785
1884
|
borderRadius: 1,
|
|
1786
1885
|
userSelect: "none",
|
|
1787
|
-
borderColor: "violet-400",
|
|
1788
1886
|
lineHeight: 20,
|
|
1887
|
+
minWidth: 40,
|
|
1888
|
+
transition: "none",
|
|
1789
1889
|
hover: {
|
|
1790
|
-
|
|
1890
|
+
borderColor: "violet-300"
|
|
1891
|
+
},
|
|
1892
|
+
focus: {
|
|
1893
|
+
outline: 1,
|
|
1894
|
+
borderColor: "violet-500",
|
|
1895
|
+
outlineColor: "violet-500"
|
|
1791
1896
|
},
|
|
1792
1897
|
disabled: {
|
|
1793
1898
|
cursor: "not-allowed",
|
|
1794
|
-
bgColor: "violet-
|
|
1899
|
+
bgColor: "violet-50",
|
|
1795
1900
|
color: "gray-400",
|
|
1796
1901
|
borderColor: "gray-300"
|
|
1797
1902
|
}
|
|
@@ -1799,43 +1904,91 @@ var X;
|
|
|
1799
1904
|
children: {
|
|
1800
1905
|
items: {
|
|
1801
1906
|
styles: {
|
|
1907
|
+
display: "flex",
|
|
1908
|
+
d: "column",
|
|
1909
|
+
gap: 1,
|
|
1910
|
+
p: 1,
|
|
1802
1911
|
b: 1,
|
|
1803
1912
|
borderRadius: 1,
|
|
1804
1913
|
position: "relative",
|
|
1805
1914
|
top: 1,
|
|
1806
1915
|
bgColor: "white",
|
|
1807
1916
|
overflow: "auto",
|
|
1808
|
-
maxHeight:
|
|
1809
|
-
borderColor: "violet-
|
|
1810
|
-
color: "violet-
|
|
1917
|
+
maxHeight: 62,
|
|
1918
|
+
borderColor: "violet-300",
|
|
1919
|
+
color: "violet-950"
|
|
1811
1920
|
}
|
|
1812
1921
|
},
|
|
1813
1922
|
item: {
|
|
1814
1923
|
styles: {
|
|
1924
|
+
display: "flex",
|
|
1925
|
+
width: "fit",
|
|
1815
1926
|
p: 3,
|
|
1816
1927
|
cursor: "pointer",
|
|
1817
1928
|
lineHeight: 20,
|
|
1929
|
+
borderRadius: 1,
|
|
1818
1930
|
hover: {
|
|
1819
1931
|
bgColor: "violet-50"
|
|
1932
|
+
},
|
|
1933
|
+
focus: {
|
|
1934
|
+
bgColor: "violet-50"
|
|
1935
|
+
},
|
|
1936
|
+
selected: {
|
|
1937
|
+
bgColor: "violet-50",
|
|
1938
|
+
cursor: "default"
|
|
1820
1939
|
}
|
|
1821
1940
|
}
|
|
1941
|
+
},
|
|
1942
|
+
nullItem: {
|
|
1943
|
+
styles: {
|
|
1944
|
+
display: "flex",
|
|
1945
|
+
width: "fit",
|
|
1946
|
+
p: 3,
|
|
1947
|
+
cursor: "pointer",
|
|
1948
|
+
lineHeight: 20,
|
|
1949
|
+
borderRadius: 1,
|
|
1950
|
+
color: "violet-400",
|
|
1951
|
+
hover: {
|
|
1952
|
+
bgColor: "violet-50"
|
|
1953
|
+
},
|
|
1954
|
+
focus: {
|
|
1955
|
+
bgColor: "violet-50"
|
|
1956
|
+
},
|
|
1957
|
+
selected: {
|
|
1958
|
+
bgColor: "violet-50",
|
|
1959
|
+
cursor: "default"
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
noItems: {
|
|
1964
|
+
styles: {
|
|
1965
|
+
display: "flex",
|
|
1966
|
+
width: "fit",
|
|
1967
|
+
p: 3,
|
|
1968
|
+
cursor: "default",
|
|
1969
|
+
lineHeight: 20,
|
|
1970
|
+
borderRadius: 1,
|
|
1971
|
+
color: "violet-400"
|
|
1972
|
+
}
|
|
1822
1973
|
}
|
|
1823
1974
|
}
|
|
1824
1975
|
}
|
|
1825
1976
|
};
|
|
1826
|
-
function
|
|
1827
|
-
const { components:
|
|
1828
|
-
Object.entries(s).forEach(([
|
|
1829
|
-
|
|
1830
|
-
}),
|
|
1977
|
+
function r(l) {
|
|
1978
|
+
const { components: d, ...s } = l, f = d ?? {};
|
|
1979
|
+
Object.entries(s).forEach(([o, u]) => {
|
|
1980
|
+
f[o] = u;
|
|
1981
|
+
}), I.components = $.mergeDeep(t, f);
|
|
1831
1982
|
}
|
|
1832
|
-
e.setup =
|
|
1983
|
+
e.setup = r, I.components = { ...t };
|
|
1833
1984
|
})(X || (X = {}));
|
|
1834
|
-
const
|
|
1985
|
+
const Ce = X, xe = {
|
|
1986
|
+
selected: "aria-selected"
|
|
1987
|
+
};
|
|
1835
1988
|
var Y;
|
|
1836
1989
|
((e) => {
|
|
1837
|
-
function t(
|
|
1838
|
-
|
|
1990
|
+
function t(r, l, d) {
|
|
1991
|
+
r !== void 0 && r != null && (d[xe[l] ?? l] = Array.isArray(r) ? r[0] : r);
|
|
1839
1992
|
}
|
|
1840
1993
|
e.assignBooleanProp = t;
|
|
1841
1994
|
})(Y || (Y = {}));
|
|
@@ -1848,75 +2001,75 @@ function ze() {
|
|
|
1848
2001
|
}, []);
|
|
1849
2002
|
}
|
|
1850
2003
|
function Ee(e = null) {
|
|
1851
|
-
const [t,
|
|
1852
|
-
return
|
|
1853
|
-
function
|
|
1854
|
-
const
|
|
1855
|
-
(
|
|
2004
|
+
const [t, r] = fe(!1), l = me(null);
|
|
2005
|
+
return le(() => {
|
|
2006
|
+
function d(o) {
|
|
2007
|
+
const u = e ?? l.current;
|
|
2008
|
+
(u == null ? void 0 : u.contains(o.target)) === !1 && r(!1);
|
|
1856
2009
|
}
|
|
1857
2010
|
function s() {
|
|
1858
|
-
|
|
2011
|
+
r(!1);
|
|
1859
2012
|
}
|
|
1860
|
-
function
|
|
1861
|
-
|
|
2013
|
+
function f(o) {
|
|
2014
|
+
o.key === "Escape" && r(!1);
|
|
1862
2015
|
}
|
|
1863
|
-
return t && (window.addEventListener("
|
|
1864
|
-
window.removeEventListener("
|
|
2016
|
+
return t && (window.addEventListener("mousedown", d), window.addEventListener("resize", s), window.addEventListener("keydown", f)), () => {
|
|
2017
|
+
window.removeEventListener("mousedown", d), window.removeEventListener("resize", s), window.removeEventListener("keydown", f);
|
|
1865
2018
|
};
|
|
1866
|
-
}, [e, t]), [t,
|
|
2019
|
+
}, [e, t]), [t, r, l];
|
|
1867
2020
|
}
|
|
1868
2021
|
var J;
|
|
1869
2022
|
((e) => {
|
|
1870
|
-
function t(
|
|
1871
|
-
const
|
|
1872
|
-
(s,
|
|
1873
|
-
const
|
|
1874
|
-
return
|
|
2023
|
+
function t(l) {
|
|
2024
|
+
const d = Array.from(l.elements).reduce(
|
|
2025
|
+
(s, f) => {
|
|
2026
|
+
const o = f.name;
|
|
2027
|
+
return o && (s[o] || (s[o] = []), s[o].push(f)), s;
|
|
1875
2028
|
},
|
|
1876
2029
|
{}
|
|
1877
2030
|
);
|
|
1878
|
-
return Object.entries(
|
|
1879
|
-
if (
|
|
1880
|
-
const
|
|
1881
|
-
|
|
2031
|
+
return Object.entries(d).reduce((s, [f, o]) => {
|
|
2032
|
+
if (o.length === 1) {
|
|
2033
|
+
const u = o[0];
|
|
2034
|
+
r(s, f, u.type === "checkbox" || u.type === "radio" ? u.checked : u.value);
|
|
1882
2035
|
} else {
|
|
1883
|
-
const
|
|
1884
|
-
|
|
2036
|
+
const u = o.reduce((g, a) => (a.type === "checkbox" || a.type === "radio" ? a.checked && g.push(a.value) : g.push(a.value), g), []);
|
|
2037
|
+
r(s, f, u);
|
|
1885
2038
|
}
|
|
1886
2039
|
return s;
|
|
1887
2040
|
}, {});
|
|
1888
2041
|
}
|
|
1889
2042
|
e.getFormEntries = t;
|
|
1890
|
-
function
|
|
1891
|
-
if (
|
|
1892
|
-
const
|
|
1893
|
-
let
|
|
1894
|
-
|
|
1895
|
-
if (
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const [, v,
|
|
1899
|
-
|
|
2043
|
+
function r(l, d, s) {
|
|
2044
|
+
if (d.includes(".")) {
|
|
2045
|
+
const f = d.split(".");
|
|
2046
|
+
let o = l;
|
|
2047
|
+
f.forEach((u, g) => {
|
|
2048
|
+
if (f.length > g + 1) {
|
|
2049
|
+
const a = u.match(/^(.+)\[(\d)\]$/);
|
|
2050
|
+
if (a) {
|
|
2051
|
+
const [, v, y] = a;
|
|
2052
|
+
o[v] = o[v] || [], o[v][y] = o[v][y] || {}, o = o[v][y];
|
|
1900
2053
|
} else
|
|
1901
|
-
|
|
2054
|
+
o[u] = o[u] || {}, o = o[u];
|
|
1902
2055
|
} else
|
|
1903
|
-
|
|
2056
|
+
o[u] = s;
|
|
1904
2057
|
});
|
|
1905
2058
|
} else
|
|
1906
|
-
|
|
2059
|
+
l[d] = s;
|
|
1907
2060
|
}
|
|
1908
2061
|
})(J || (J = {}));
|
|
1909
|
-
const
|
|
2062
|
+
const je = J;
|
|
1910
2063
|
export {
|
|
1911
|
-
|
|
1912
|
-
|
|
2064
|
+
$e as B,
|
|
2065
|
+
je as F,
|
|
1913
2066
|
$ as O,
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
2067
|
+
oe as S,
|
|
2068
|
+
Ce as T,
|
|
2069
|
+
z as V,
|
|
1917
2070
|
Ve as a,
|
|
1918
2071
|
Ee as b,
|
|
1919
2072
|
ve as c,
|
|
1920
2073
|
ze as d,
|
|
1921
|
-
|
|
2074
|
+
Fe as u
|
|
1922
2075
|
};
|